From af1e5e4644f910a228be0ddfdcf9e7a2b1ed9ddb Mon Sep 17 00:00:00 2001 From: mario4tier Date: Wed, 22 May 2024 01:07:24 -0400 Subject: [PATCH] (#85) VSCode extension 0.1.7 released. Many installation+UI fixes. --- rust/demo-app/move/Move.lock | 6 +- rust/suibase/Cargo.lock | 10 +- rust/suibase/Cargo.toml | 2 +- .../crates/common/src/workers/shell_worker.rs | 18 +- typescript/vscode-extension/CHANGELOG.md | 6 +- typescript/vscode-extension/package.json | 2 +- .../vscode-extension/src/BackendSync.ts | 28 +- .../src/common/ViewMessages.ts | 6 +- .../webview-ui/build/assets/index.js | 398 +++++++++--------- .../src/components/DashboardController.tsx | 39 +- .../src/components/ExplorerController.tsx | 128 ++++-- 11 files changed, 376 insertions(+), 267 deletions(-) diff --git a/rust/demo-app/move/Move.lock b/rust/demo-app/move/Move.lock index 26211f45..2b0f58f8 100644 --- a/rust/demo-app/move/Move.lock +++ b/rust/demo-app/move/Move.lock @@ -30,7 +30,7 @@ dependencies = [ ] [move.toolchain-version] -compiler-version = "1.25.0" +compiler-version = "1.25.1" edition = "2024.beta" flavor = "sui" @@ -49,6 +49,6 @@ published-version = "1" [env.testnet_proxy] chain-id = "4c78adac" -original-published-id = "0xdfebbe9396d28c054dec993c5d209f8564b7d8559aba93bd5722958bbd080d69" -latest-published-id = "0xdfebbe9396d28c054dec993c5d209f8564b7d8559aba93bd5722958bbd080d69" +original-published-id = "0x47a6d73defe78b2c2500fd25c01dd520aec45bb7fae178b92ffd39036f1d31b1" +latest-published-id = "0x47a6d73defe78b2c2500fd25c01dd520aec45bb7fae178b92ffd39036f1d31b1" published-version = "1" diff --git a/rust/suibase/Cargo.lock b/rust/suibase/Cargo.lock index 7274e79a..7dadbc35 100644 --- a/rust/suibase/Cargo.lock +++ b/rust/suibase/Cargo.lock @@ -1223,7 +1223,7 @@ dependencies = [ [[package]] name = "common" -version = "0.0.7" +version = "0.0.8" dependencies = [ "anyhow", "axum", @@ -1719,7 +1719,7 @@ checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" [[package]] name = "dtp-core" -version = "0.0.7" +version = "0.0.8" dependencies = [ "anyhow", "axum", @@ -1768,7 +1768,7 @@ dependencies = [ [[package]] name = "dtp-daemon" -version = "0.0.7" +version = "0.0.8" dependencies = [ "anyhow", "axum", @@ -1820,7 +1820,7 @@ dependencies = [ [[package]] name = "dtp-sdk" -version = "0.0.7" +version = "0.0.8" dependencies = [ "anyhow", "bitflags 2.5.0", @@ -6441,7 +6441,7 @@ dependencies = [ [[package]] name = "suibase-daemon" -version = "0.0.7" +version = "0.0.8" dependencies = [ "anyhow", "axum", diff --git a/rust/suibase/Cargo.toml b/rust/suibase/Cargo.toml index 8e8c331a..f20231e1 100644 --- a/rust/suibase/Cargo.toml +++ b/rust/suibase/Cargo.toml @@ -10,7 +10,7 @@ members = ["crates/suibase-daemon", [workspace.package] # Bump 'version' for the daemon to self-restart after an update. # (this is not the Suibase package version, it is specifically for the Rust crates). -version = "0.0.7" +version = "0.0.8" edition = "2021" [workspace.dependencies] diff --git a/rust/suibase/crates/common/src/workers/shell_worker.rs b/rust/suibase/crates/common/src/workers/shell_worker.rs index 4b880f45..2e474df6 100644 --- a/rust/suibase/crates/common/src/workers/shell_worker.rs +++ b/rust/suibase/crates/common/src/workers/shell_worker.rs @@ -9,9 +9,7 @@ use std::{path::PathBuf, process::Command}; use anyhow::Result; use tokio_graceful_shutdown::{FutureExt, SubsystemHandle}; -use crate::{ - basic_types::{GenericChannelMsg, GenericRx, WorkdirIdx}, -}; +use crate::basic_types::{GenericChannelMsg, GenericRx, WorkdirIdx}; use home::home_dir; @@ -101,14 +99,20 @@ impl ShellWorker { match output { Ok(output) => { + let stderr = String::from_utf8_lossy(&output.stderr).to_string(); + let stdout = String::from_utf8_lossy(&output.stdout).to_string(); + let mut outputs = if stderr.is_empty() { + stdout + } else { + format!("{}\n{}", stderr, stdout) + }; + outputs = outputs.trim().to_string(); if output.status.success() { - let stdout = String::from_utf8_lossy(&output.stdout).to_string(); - resp = Some(stdout.trim().to_string()); + resp = Some(outputs); } else { - let stderr = String::from_utf8_lossy(&output.stderr).to_string(); let error_msg = format!( "Error: do_exec({:?}, {:?}) returned {}", - msg.workdir_idx, cmd, stderr + msg.workdir_idx, cmd, outputs ); log::error!("{}", error_msg); resp = Some(error_msg); diff --git a/typescript/vscode-extension/CHANGELOG.md b/typescript/vscode-extension/CHANGELOG.md index d4fbada9..057520c2 100644 --- a/typescript/vscode-extension/CHANGELOG.md +++ b/typescript/vscode-extension/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log -When upgrading the extension, do also "~/suibase/update" to get the latest Suibase CLI. +Important: + When upgrading the extension, do also "~/suibase/update" to get the latest Suibase CLI. + +## 0.1.7 + - Better UI to help the user get started. Less "unexplained" spinners... ## 0.1.6 - Make installation/upgrade more user friendly, better error messages. diff --git a/typescript/vscode-extension/package.json b/typescript/vscode-extension/package.json index 80d234c8..c6b08465 100644 --- a/typescript/vscode-extension/package.json +++ b/typescript/vscode-extension/package.json @@ -8,7 +8,7 @@ }, "license": "Apache-2.0", "icon": "media/logo_128.png", - "version": "0.1.6", + "version": "0.1.7", "repository": { "type": "git", "url": "https://github.com/ChainMovers/suibase.git" diff --git a/typescript/vscode-extension/src/BackendSync.ts b/typescript/vscode-extension/src/BackendSync.ts index ae98772c..3988f69c 100644 --- a/typescript/vscode-extension/src/BackendSync.ts +++ b/typescript/vscode-extension/src/BackendSync.ts @@ -4,6 +4,7 @@ import { SETUP_ISSUE_SUIBASE_NOT_INSTALLED, WEBVIEW_BACKEND, WORKDIRS_KEYS, + WORKDIR_IDX_TESTNET, } from "./common/Consts"; import { Mutex } from "async-mutex"; import { BaseWebview } from "./bases/BaseWebview"; @@ -16,6 +17,7 @@ import { } from "./common/ViewMessages"; import { SuibaseJson, SuibaseJsonVersions } from "./common/SuibaseJson"; import { SuibaseExec } from "./SuibaseExec"; +import * as vscode from "vscode"; // One instance per workdir, instantiated in same size and order as WORKDIRS_KEYS. class BackendWorkdirTracking { @@ -36,6 +38,7 @@ export class BackendSync { private mWorkdir: string; // Last known active workdir. One of "localnet", "mainnet", "testnet", "devnet". private mWorkdirTrackings: BackendWorkdirTracking[] = []; // One instance per workdir, align with WORKDIRS_KEYS. private mForceRefreshOnNextReconnect: boolean; // Force some refresh when there was a lost of backend connection. + private activeWorkdir: string = WORKDIRS_KEYS[WORKDIR_IDX_TESTNET]; // Singleton private constructor() { @@ -102,6 +105,11 @@ export class BackendSync { void this.replyWorkdirStatus(message as RequestWorkdirStatus); } else if (message.name === "RequestWorkdirPackages") { void this.replyWorkdirPackages(message as RequestWorkdirPackages); + } else if (message.name === "OpenDiagnosticPanel") { + // Call the VSCode command "suibase.dashboard" to open/reveal the dashboard panel. + vscode.commands.executeCommand("suibase.dashboard").then(undefined, (error) => { + console.error(`Error executing suibase.dashboard command: ${error}`); + }); } } catch (error) { console.error(`Error in handleViewMessage: ${JSON.stringify(error)}`); @@ -298,16 +306,21 @@ export class BackendSync { // Sanity check that the data is valid. // - result should have a header with method "getVersions". // - the key must match the workdir. - // - asuiSelection should always be set to one of "localnet", "mainnet", "testnet", "devnet". - if ( - data?.result?.header?.method !== "getVersions" || - data?.result?.header?.key !== workdir || - data?.result?.asuiSelection === "Unknown" - ) { + if (data?.result?.header?.method !== "getVersions" || data?.result?.header?.key !== workdir) { await this.diagnoseBackendError(workdirIdx); return; } + // In the UI, the asuiSelection should always be one of "localnet", "mainnet", "testnet", "devnet". + // + // If the backend has trouble to identify the active, just default to the last known valid. + if (!data.result.asuiSelection || !WORKDIRS_KEYS.includes(data.result.asuiSelection)) { + data.result.asuiSelection = this.activeWorkdir; + } else { + // Got a valid active workdir from backend, make it the last known valid. + this.activeWorkdir = data.result.asuiSelection; + } + // Update the SuibaseJson instance for the workdir. const workdirTracking = this.mWorkdirTrackings[workdirIdx]; const hasChanged = workdirTracking.versions.update(data.result); @@ -328,6 +341,9 @@ export class BackendSync { } } } + + // TODO Robustness. If there was no valid active workdir coming from the backend, then + // try to resolve it with the ~/suibase/workdirs/active symlink. } private async replyWorkdirStatus(message: RequestWorkdirStatus) { diff --git a/typescript/vscode-extension/src/common/ViewMessages.ts b/typescript/vscode-extension/src/common/ViewMessages.ts index d9b52fdc..d32cb903 100644 --- a/typescript/vscode-extension/src/common/ViewMessages.ts +++ b/typescript/vscode-extension/src/common/ViewMessages.ts @@ -110,7 +110,6 @@ export class RequestWorkdirStatus extends ViewMessages { methodUuid: string; dataUuid: string; - constructor(sender: string, workdirIdx: number, methodUuid: string, dataUuid: string) { super("RequestWorkdirStatus", sender); this.workdirIdx = workdirIdx; @@ -134,3 +133,8 @@ export class RequestWorkdirPackages extends ViewMessages { } } +export class OpenDiagnosticPanel extends ViewMessages { + constructor() { + super("OpenDiagnosticPanel", ""); + } +} diff --git a/typescript/vscode-extension/webview-ui/build/assets/index.js b/typescript/vscode-extension/webview-ui/build/assets/index.js index d0e0851a..bcf76749 100644 --- a/typescript/vscode-extension/webview-ui/build/assets/index.js +++ b/typescript/vscode-extension/webview-ui/build/assets/index.js @@ -1,4 +1,4 @@ -var B1=Object.defineProperty;var V1=(e,t,n)=>t in e?B1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var we=(e,t,n)=>(V1(e,typeof t!="symbol"?t+"":t,n),n);function H1(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Af(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pr(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 i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var bv={exports:{}},Ga={},xv={exports:{}},Z={};/** +var B1=Object.defineProperty;var V1=(e,t,n)=>t in e?B1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var we=(e,t,n)=>(V1(e,typeof t!="symbol"?t+"":t,n),n);function H1(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Af(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Or(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 i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var bv={exports:{}},Qa={},xv={exports:{}},Z={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var B1=Object.defineProperty;var V1=(e,t,n)=>t in e?B1(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var js=Symbol.for("react.element"),U1=Symbol.for("react.portal"),W1=Symbol.for("react.fragment"),G1=Symbol.for("react.strict_mode"),q1=Symbol.for("react.profiler"),Q1=Symbol.for("react.provider"),X1=Symbol.for("react.context"),Y1=Symbol.for("react.forward_ref"),K1=Symbol.for("react.suspense"),J1=Symbol.for("react.memo"),Z1=Symbol.for("react.lazy"),$p=Symbol.iterator;function ew(e){return e===null||typeof e!="object"?null:(e=$p&&e[$p]||e["@@iterator"],typeof e=="function"?e:null)}var wv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kv=Object.assign,Cv={};function fo(e,t,n){this.props=e,this.context=t,this.refs=Cv,this.updater=n||wv}fo.prototype.isReactComponent={};fo.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")};fo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sv(){}Sv.prototype=fo.prototype;function Mf(e,t,n){this.props=e,this.context=t,this.refs=Cv,this.updater=n||wv}var Df=Mf.prototype=new Sv;Df.constructor=Mf;kv(Df,fo.prototype);Df.isPureReactComponent=!0;var Tp=Array.isArray,$v=Object.prototype.hasOwnProperty,Lf={current:null},Tv={key:!0,ref:!0,__self:!0,__source:!0};function Iv(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)$v.call(t,r)&&!Tv.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1t in e?B1(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ow=x,sw=Symbol.for("react.element"),lw=Symbol.for("react.fragment"),aw=Object.prototype.hasOwnProperty,cw=ow.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uw={key:!0,ref:!0,__self:!0,__source:!0};function Rv(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)aw.call(t,r)&&!uw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:sw,type:e,key:o,ref:s,props:i,_owner:cw.current}}Ga.Fragment=lw;Ga.jsx=Rv;Ga.jsxs=Rv;bv.exports=Ga;var C=bv.exports,md={},Pv={exports:{}},Vt={},Ov={exports:{}},_v={};/** + */var ow=x,sw=Symbol.for("react.element"),lw=Symbol.for("react.fragment"),aw=Object.prototype.hasOwnProperty,cw=ow.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uw={key:!0,ref:!0,__self:!0,__source:!0};function Rv(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)aw.call(t,r)&&!uw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:sw,type:e,key:o,ref:s,props:i,_owner:cw.current}}Qa.Fragment=lw;Qa.jsx=Rv;Qa.jsxs=Rv;bv.exports=Qa;var C=bv.exports,gd={},Pv={exports:{}},Vt={},Ov={exports:{}},_v={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var B1=Object.defineProperty;var V1=(e,t,n)=>t in e?B1(e,t,{enumerable:!0,config * * 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(_,D){var H=_.length;_.push(D);e:for(;0>>1,ae=_[re];if(0>>1;rei(et,H))Ui(xe,et)?(_[re]=xe,_[U]=H,re=U):(_[re]=et,_[Ie]=H,re=Ie);else if(Ui(xe,H))_[re]=xe,_[U]=H,re=U;else break e}}return D}function i(_,D){var H=_.sortIndex-D.sortIndex;return H!==0?H:_.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],c=[],d=1,u=null,f=3,v=!1,m=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,p=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(_){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=_)r(c),D.sortIndex=D.expirationTime,t(a,D);else break;D=n(c)}}function w(_){if(g=!1,y(_),!m)if(n(a)!==null)m=!0,q(k);else{var D=n(c);D!==null&&W(w,D.startTime-_)}}function k(_,D){m=!1,g&&(g=!1,p(R),R=-1),v=!0;var H=f;try{for(y(D),u=n(a);u!==null&&(!(u.expirationTime>D)||_&&!P());){var re=u.callback;if(typeof re=="function"){u.callback=null,f=u.priorityLevel;var ae=re(u.expirationTime<=D);D=e.unstable_now(),typeof ae=="function"?u.callback=ae:u===n(a)&&r(a),y(D)}else r(a);u=n(a)}if(u!==null)var At=!0;else{var Ie=n(c);Ie!==null&&W(w,Ie.startTime-D),At=!1}return At}finally{u=null,f=H,v=!1}}var $=!1,I=null,R=-1,B=5,M=-1;function P(){return!(e.unstable_now()-M_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var D=3;break;default:D=f}var H=f;f=D;try{return _()}finally{f=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,D){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var H=f;f=_;try{return D()}finally{f=H}},e.unstable_scheduleCallback=function(_,D,H){var re=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0re?(_.sortIndex=H,t(c,_),n(a)===null&&_===n(c)&&(g?(p(R),R=-1):g=!0,W(w,H-re))):(_.sortIndex=ae,t(a,_),m||v||(m=!0,q(k))),_},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(_){var D=f;return function(){var H=f;f=D;try{return _.apply(this,arguments)}finally{f=H}}}})(_v);Ov.exports=_v;var dw=Ov.exports;/** + */(function(e){function t(_,M){var H=_.length;_.push(M);e:for(;0>>1,ae=_[re];if(0>>1;rei(et,H))Ui(xe,et)?(_[re]=xe,_[U]=H,re=U):(_[re]=et,_[Ie]=H,re=Ie);else if(Ui(xe,H))_[re]=xe,_[U]=H,re=U;else break e}}return M}function i(_,M){var H=_.sortIndex-M.sortIndex;return H!==0?H:_.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],c=[],d=1,u=null,f=3,v=!1,g=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,p=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(_){for(var M=n(c);M!==null;){if(M.callback===null)r(c);else if(M.startTime<=_)r(c),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(c)}}function w(_){if(m=!1,y(_),!g)if(n(a)!==null)g=!0,q(k);else{var M=n(c);M!==null&&W(w,M.startTime-_)}}function k(_,M){g=!1,m&&(m=!1,p(R),R=-1),v=!0;var H=f;try{for(y(M),u=n(a);u!==null&&(!(u.expirationTime>M)||_&&!P());){var re=u.callback;if(typeof re=="function"){u.callback=null,f=u.priorityLevel;var ae=re(u.expirationTime<=M);M=e.unstable_now(),typeof ae=="function"?u.callback=ae:u===n(a)&&r(a),y(M)}else r(a);u=n(a)}if(u!==null)var At=!0;else{var Ie=n(c);Ie!==null&&W(w,Ie.startTime-M),At=!1}return At}finally{u=null,f=H,v=!1}}var $=!1,I=null,R=-1,B=5,D=-1;function P(){return!(e.unstable_now()-D_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(f){case 1:case 2:case 3:var M=3;break;default:M=f}var H=f;f=M;try{return _()}finally{f=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,M){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var H=f;f=_;try{return M()}finally{f=H}},e.unstable_scheduleCallback=function(_,M,H){var re=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0re?(_.sortIndex=H,t(c,_),n(a)===null&&_===n(c)&&(m?(p(R),R=-1):m=!0,W(w,H-re))):(_.sortIndex=ae,t(a,_),g||v||(g=!0,q(k))),_},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(_){var M=f;return function(){var H=f;f=M;try{return _.apply(this,arguments)}finally{f=H}}}})(_v);Ov.exports=_v;var dw=Ov.exports;/** * @license React * react-dom.production.min.js * @@ -30,21 +30,21 @@ var B1=Object.defineProperty;var V1=(e,t,n)=>t in e?B1(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var fw=x,zt=dw;function A(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"),gd=Object.prototype.hasOwnProperty,hw=/^[: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]*$/,Ep={},Rp={};function pw(e){return gd.call(Rp,e)?!0:gd.call(Ep,e)?!1:hw.test(e)?Rp[e]=!0:(Ep[e]=!0,!1)}function mw(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 gw(e,t,n,r){if(t===null||typeof t>"u"||mw(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 xt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Je[e]=new xt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Je[t]=new xt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Je[e]=new xt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Je[e]=new xt(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){Je[e]=new xt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Je[e]=new xt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Je[e]=new xt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Je[e]=new xt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Je[e]=new xt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ff=/[\-:]([a-z])/g;function jf(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(Ff,jf);Je[t]=new xt(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(Ff,jf);Je[t]=new xt(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(Ff,jf);Je[t]=new xt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Je[e]=new xt(e,1,!1,e.toLowerCase(),null,!1,!1)});Je.xlinkHref=new xt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Je[e]=new xt(e,1,!1,e.toLowerCase(),null,!0,!0)});function zf(e,t,n,r){var i=Je.hasOwnProperty(t)?Je[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vd=Object.prototype.hasOwnProperty,hw=/^[: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]*$/,Ep={},Rp={};function pw(e){return vd.call(Rp,e)?!0:vd.call(Ep,e)?!1:hw.test(e)?Rp[e]=!0:(Ep[e]=!0,!1)}function mw(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 gw(e,t,n,r){if(t===null||typeof t>"u"||mw(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 wt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Je[e]=new wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Je[t]=new wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Je[e]=new wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Je[e]=new wt(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){Je[e]=new wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Je[e]=new wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Je[e]=new wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Je[e]=new wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Je[e]=new wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ff=/[\-:]([a-z])/g;function jf(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(Ff,jf);Je[t]=new wt(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(Ff,jf);Je[t]=new wt(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(Ff,jf);Je[t]=new wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Je[e]=new wt(e,1,!1,e.toLowerCase(),null,!1,!1)});Je.xlinkHref=new wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Je[e]=new wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function zf(e,t,n,r){var i=Je.hasOwnProperty(t)?Je[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var a=` -`+i[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{vu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wo(e):""}function vw(e){switch(e.tag){case 5:return Wo(e.type);case 16:return Wo("Lazy");case 13:return Wo("Suspense");case 19:return Wo("SuspenseList");case 0:case 2:case 15:return e=yu(e.type,!1),e;case 11:return e=yu(e.type.render,!1),e;case 1:return e=yu(e.type,!0),e;default:return""}}function xd(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 Si:return"Portal";case vd:return"Profiler";case Bf:return"StrictMode";case yd:return"Suspense";case bd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Dv:return(e.displayName||"Context")+".Consumer";case Mv:return(e._context.displayName||"Context")+".Provider";case Vf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hf:return t=e.displayName||null,t!==null?t:xd(e.type)||"Memo";case lr:t=e._payload,e=e._init;try{return xd(e(t))}catch{}}return null}function yw(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 xd(t);case 8:return t===Bf?"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 Sr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bw(e){var t=Nv(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.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 al(e){e._valueTracker||(e._valueTracker=bw(e))}function Fv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Nv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function oa(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 wd(e,t){var n=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Op(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Sr(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 jv(e,t){t=t.checked,t!=null&&zf(e,"checked",t,!1)}function kd(e,t){jv(e,t);var n=Sr(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")?Cd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Cd(e,t.type,Sr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _p(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 Cd(e,t,n){(t!=="number"||oa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Go=Array.isArray;function Fi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=cl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yo={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},xw=["Webkit","ms","Moz","O"];Object.keys(Yo).forEach(function(e){xw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yo[t]=Yo[e]})});function Hv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yo.hasOwnProperty(e)&&Yo[e]?(""+t).trim():t+"px"}function Uv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Hv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ww=$e({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 Td(e,t){if(t){if(ww[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Id(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 Ed=null;function Uf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rd=null,ji=null,zi=null;function Dp(e){if(e=Vs(e)){if(typeof Rd!="function")throw Error(A(280));var t=e.stateNode;t&&(t=Ka(t),Rd(e.stateNode,e.type,t))}}function Wv(e){ji?zi?zi.push(e):zi=[e]:ji=e}function Gv(){if(ji){var e=ji,t=zi;if(zi=ji=null,Dp(e),t)for(e=0;e>>=0,e===0?32:31-(_w(e)/Aw|0)|0}var ul=64,dl=4194304;function qo(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 ca(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=qo(l):(o&=s,o!==0&&(r=qo(o)))}else s=n&~i,s!==0?r=qo(s):o!==0&&(r=qo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 zs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-pn(t),e[t]=n}function Nw(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=Jo),Up=" ",Wp=!1;function fy(e,t){switch(e){case"keyup":return dk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ti=!1;function hk(e,t){switch(e){case"compositionend":return hy(t);case"keypress":return t.which!==32?null:(Wp=!0,Up);case"textInput":return e=t.data,e===Up&&Wp?null:e;default:return null}}function pk(e,t){if(Ti)return e==="compositionend"||!Jf&&fy(e,t)?(e=uy(),jl=Xf=fr=null,Ti=!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=Xp(n)}}function vy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yy(){for(var e=window,t=oa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=oa(e.document)}return t}function Zf(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 Ck(e){var t=yy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vy(n.ownerDocument.documentElement,n)){if(r!==null&&Zf(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Yp(n,o);var s=Yp(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>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,Ii=null,Dd=null,es=null,Ld=!1;function Kp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ld||Ii==null||Ii!==oa(r)||(r=Ii,"selectionStart"in r&&Zf(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}),es&&bs(es,r)||(es=r,r=fa(Dd,"onSelect"),0Pi||(e.current=Vd[Pi],Vd[Pi]=null,Pi--)}function fe(e,t){Pi++,Vd[Pi]=e.current,e.current=t}var $r={},st=_r($r),Tt=_r(!1),Zr=$r;function Ji(e,t){var n=e.type.contextTypes;if(!n)return $r;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function It(e){return e=e.childContextTypes,e!=null}function pa(){me(Tt),me(st)}function im(e,t,n){if(st.current!==$r)throw Error(A(168));fe(st,t),fe(Tt,n)}function Iy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(A(108,yw(e)||"Unknown",i));return $e({},n,r)}function ma(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$r,Zr=st.current,fe(st,e),fe(Tt,Tt.current),!0}function om(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Iy(e,t,Zr),r.__reactInternalMemoizedMergedChildContext=e,me(Tt),me(st),fe(st,e)):me(Tt),fe(Tt,n)}var jn=null,Ja=!1,_u=!1;function Ey(e){jn===null?jn=[e]:jn.push(e)}function Dk(e){Ja=!0,Ey(e)}function Ar(){if(!_u&&jn!==null){_u=!0;var e=0,t=ce;try{var n=jn;for(ce=1;e>=s,i-=s,Vn=1<<32-pn(t)+i|n<R?(B=I,I=null):B=I.sibling;var M=f(p,I,y[R],w);if(M===null){I===null&&(I=B);break}e&&I&&M.alternate===null&&t(p,I),h=o(M,h,R),$===null?k=M:$.sibling=M,$=M,I=B}if(R===y.length)return n(p,I),ve&&Fr(p,R),k;if(I===null){for(;RR?(B=I,I=null):B=I.sibling;var P=f(p,I,M.value,w);if(P===null){I===null&&(I=B);break}e&&I&&P.alternate===null&&t(p,I),h=o(P,h,R),$===null?k=P:$.sibling=P,$=P,I=B}if(M.done)return n(p,I),ve&&Fr(p,R),k;if(I===null){for(;!M.done;R++,M=y.next())M=u(p,M.value,w),M!==null&&(h=o(M,h,R),$===null?k=M:$.sibling=M,$=M);return ve&&Fr(p,R),k}for(I=r(p,I);!M.done;R++,M=y.next())M=v(I,p,R,M.value,w),M!==null&&(e&&M.alternate!==null&&I.delete(M.key===null?R:M.key),h=o(M,h,R),$===null?k=M:$.sibling=M,$=M);return e&&I.forEach(function(O){return t(p,O)}),ve&&Fr(p,R),k}function b(p,h,y,w){if(typeof y=="object"&&y!==null&&y.type===$i&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ll:e:{for(var k=y.key,$=h;$!==null;){if($.key===k){if(k=y.type,k===$i){if($.tag===7){n(p,$.sibling),h=i($,y.props.children),h.return=p,p=h;break e}}else if($.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===lr&&am(k)===$.type){n(p,$.sibling),h=i($,y.props),h.ref=Do(p,$,y),h.return=p,p=h;break e}n(p,$);break}else t(p,$);$=$.sibling}y.type===$i?(h=Xr(y.props.children,p.mode,w,y.key),h.return=p,p=h):(w=ql(y.type,y.key,y.props,null,p.mode,w),w.ref=Do(p,h,y),w.return=p,p=w)}return s(p);case Si:e:{for($=y.key;h!==null;){if(h.key===$)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(p,h.sibling),h=i(h,y.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=zu(y,p.mode,w),h.return=p,p=h}return s(p);case lr:return $=y._init,b(p,h,$(y._payload),w)}if(Go(y))return m(p,h,y,w);if(Po(y))return g(p,h,y,w);yl(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,y),h.return=p,p=h):(n(p,h),h=ju(y,p.mode,w),h.return=p,p=h),s(p)):n(p,h)}return b}var eo=_y(!0),Ay=_y(!1),ya=_r(null),ba=null,Ai=null,rh=null;function ih(){rh=Ai=ba=null}function oh(e){var t=ya.current;me(ya),e._currentValue=t}function Wd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vi(e,t){ba=e,rh=Ai=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($t=!0),e.firstContext=null)}function tn(e){var t=e._currentValue;if(rh!==e)if(e={context:e,memoizedValue:t,next:null},Ai===null){if(ba===null)throw Error(A(308));Ai=e,ba.dependencies={lanes:0,firstContext:e}}else Ai=Ai.next=e;return t}var Ur=null;function sh(e){Ur===null?Ur=[e]:Ur.push(e)}function My(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,sh(t)):(n.next=i.next,i.next=n),t.interleaved=n,Qn(e,r)}function Qn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ar=!1;function lh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dy(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function br(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Qn(e,n)}return i=r.interleaved,i===null?(t.next=t,sh(r)):(t.next=i.next,i.next=t),r.interleaved=t,Qn(e,n)}function Bl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gf(e,n)}}function cm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function xa(e,t,n,r){var i=e.updateQueue;ar=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,c=a.next;a.next=null,s===null?o=c:s.next=c,s=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=a))}if(o!==null){var u=i.baseState;s=0,d=c=a=null,l=o;do{var f=l.lane,v=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,g=l;switch(f=t,v=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){u=m.call(v,u,f);break e}u=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m=="function"?m.call(v,u,f):m,f==null)break e;u=$e({},u,f);break e;case 2:ar=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else v={eventTime:v,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=v,a=u):d=d.next=v,s|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(a=u),i.baseState=a,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ni|=s,e.lanes=s,e.memoizedState=u}}function um(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Mu.transition;Mu.transition={};try{e(!1),t()}finally{ce=n,Mu.transition=r}}function Jy(){return nn().memoizedState}function jk(e,t,n){var r=wr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zy(e))e0(t,n);else if(n=My(e,t,n,r),n!==null){var i=mt();mn(n,e,r,i),t0(n,t,r)}}function zk(e,t,n){var r=wr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zy(e))e0(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,gn(l,s)){var a=t.interleaved;a===null?(i.next=i,sh(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=My(e,t,i,r),n!==null&&(i=mt(),mn(n,e,r,i),t0(n,t,r))}}function Zy(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function e0(e,t){ts=ka=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function t0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gf(e,n)}}var Ca={readContext:tn,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},Bk={readContext:tn,useCallback:function(e,t){return Cn().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:fm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hl(4194308,4,qy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hl(4,2,e,t)},useMemo:function(e,t){var n=Cn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Cn();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=jk.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Cn();return e={current:e},t.memoizedState=e},useState:dm,useDebugValue:mh,useDeferredValue:function(e){return Cn().memoizedState=e},useTransition:function(){var e=dm(!1),t=e[0];return e=Fk.bind(null,e[1]),Cn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,i=Cn();if(ve){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ue===null)throw Error(A(349));ti&30||jy(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,fm(By.bind(null,r,o,e),[e]),r.flags|=2048,Is(9,zy.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Cn(),t=Ue.identifierPrefix;if(ve){var n=Hn,r=Vn;n=(r&~(1<<32-pn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$s++,0")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{yu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Go(e):""}function vw(e){switch(e.tag){case 5:return Go(e.type);case 16:return Go("Lazy");case 13:return Go("Suspense");case 19:return Go("SuspenseList");case 0:case 2:case 15:return e=bu(e.type,!1),e;case 11:return e=bu(e.type.render,!1),e;case 1:return e=bu(e.type,!0),e;default:return""}}function wd(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 Si:return"Portal";case yd:return"Profiler";case Bf:return"StrictMode";case bd:return"Suspense";case xd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Mv:return(e.displayName||"Context")+".Consumer";case Dv:return(e._context.displayName||"Context")+".Provider";case Vf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hf:return t=e.displayName||null,t!==null?t:wd(e.type)||"Memo";case ar:t=e._payload,e=e._init;try{return wd(e(t))}catch{}}return null}function yw(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 wd(t);case 8:return t===Bf?"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 $r(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bw(e){var t=Nv(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.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 cl(e){e._valueTracker||(e._valueTracker=bw(e))}function Fv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Nv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sa(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 kd(e,t){var n=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Op(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$r(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 jv(e,t){t=t.checked,t!=null&&zf(e,"checked",t,!1)}function Cd(e,t){jv(e,t);var n=$r(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")?Sd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Sd(e,t.type,$r(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _p(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 Sd(e,t,n){(t!=="number"||sa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var qo=Array.isArray;function Fi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ul.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ko={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},xw=["Webkit","ms","Moz","O"];Object.keys(Ko).forEach(function(e){xw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ko[t]=Ko[e]})});function Hv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ko.hasOwnProperty(e)&&Ko[e]?(""+t).trim():t+"px"}function Uv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Hv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ww=$e({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 Id(e,t){if(t){if(ww[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Ed(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 Rd=null;function Uf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pd=null,ji=null,zi=null;function Mp(e){if(e=Vs(e)){if(typeof Pd!="function")throw Error(A(280));var t=e.stateNode;t&&(t=Za(t),Pd(e.stateNode,e.type,t))}}function Wv(e){ji?zi?zi.push(e):zi=[e]:ji=e}function Gv(){if(ji){var e=ji,t=zi;if(zi=ji=null,Mp(e),t)for(e=0;e>>=0,e===0?32:31-(_w(e)/Aw|0)|0}var dl=64,fl=4194304;function Qo(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 ua(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Qo(l):(o&=s,o!==0&&(r=Qo(o)))}else s=n&~i,s!==0?r=Qo(s):o!==0&&(r=Qo(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 zs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mn(t),e[t]=n}function Nw(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=Zo),Up=" ",Wp=!1;function fy(e,t){switch(e){case"keyup":return dk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ti=!1;function hk(e,t){switch(e){case"compositionend":return hy(t);case"keypress":return t.which!==32?null:(Wp=!0,Up);case"textInput":return e=t.data,e===Up&&Wp?null:e;default:return null}}function pk(e,t){if(Ti)return e==="compositionend"||!Jf&&fy(e,t)?(e=uy(),zl=Xf=hr=null,Ti=!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=Xp(n)}}function vy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yy(){for(var e=window,t=sa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sa(e.document)}return t}function Zf(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 Ck(e){var t=yy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vy(n.ownerDocument.documentElement,n)){if(r!==null&&Zf(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Yp(n,o);var s=Yp(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>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,Ii=null,Ld=null,ts=null,Nd=!1;function Kp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nd||Ii==null||Ii!==sa(r)||(r=Ii,"selectionStart"in r&&Zf(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}),ts&&bs(ts,r)||(ts=r,r=ha(Ld,"onSelect"),0Pi||(e.current=Hd[Pi],Hd[Pi]=null,Pi--)}function fe(e,t){Pi++,Hd[Pi]=e.current,e.current=t}var Tr={},st=Ar(Tr),Tt=Ar(!1),Zr=Tr;function Zi(e,t){var n=e.type.contextTypes;if(!n)return Tr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function It(e){return e=e.childContextTypes,e!=null}function ma(){me(Tt),me(st)}function im(e,t,n){if(st.current!==Tr)throw Error(A(168));fe(st,t),fe(Tt,n)}function Iy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(A(108,yw(e)||"Unknown",i));return $e({},n,r)}function ga(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tr,Zr=st.current,fe(st,e),fe(Tt,Tt.current),!0}function om(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=Iy(e,t,Zr),r.__reactInternalMemoizedMergedChildContext=e,me(Tt),me(st),fe(st,e)):me(Tt),fe(Tt,n)}var jn=null,ec=!1,Au=!1;function Ey(e){jn===null?jn=[e]:jn.push(e)}function Mk(e){ec=!0,Ey(e)}function Dr(){if(!Au&&jn!==null){Au=!0;var e=0,t=ce;try{var n=jn;for(ce=1;e>=s,i-=s,Vn=1<<32-mn(t)+i|n<R?(B=I,I=null):B=I.sibling;var D=f(p,I,y[R],w);if(D===null){I===null&&(I=B);break}e&&I&&D.alternate===null&&t(p,I),h=o(D,h,R),$===null?k=D:$.sibling=D,$=D,I=B}if(R===y.length)return n(p,I),ve&&jr(p,R),k;if(I===null){for(;RR?(B=I,I=null):B=I.sibling;var P=f(p,I,D.value,w);if(P===null){I===null&&(I=B);break}e&&I&&P.alternate===null&&t(p,I),h=o(P,h,R),$===null?k=P:$.sibling=P,$=P,I=B}if(D.done)return n(p,I),ve&&jr(p,R),k;if(I===null){for(;!D.done;R++,D=y.next())D=u(p,D.value,w),D!==null&&(h=o(D,h,R),$===null?k=D:$.sibling=D,$=D);return ve&&jr(p,R),k}for(I=r(p,I);!D.done;R++,D=y.next())D=v(I,p,R,D.value,w),D!==null&&(e&&D.alternate!==null&&I.delete(D.key===null?R:D.key),h=o(D,h,R),$===null?k=D:$.sibling=D,$=D);return e&&I.forEach(function(O){return t(p,O)}),ve&&jr(p,R),k}function b(p,h,y,w){if(typeof y=="object"&&y!==null&&y.type===$i&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case al:e:{for(var k=y.key,$=h;$!==null;){if($.key===k){if(k=y.type,k===$i){if($.tag===7){n(p,$.sibling),h=i($,y.props.children),h.return=p,p=h;break e}}else if($.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ar&&am(k)===$.type){n(p,$.sibling),h=i($,y.props),h.ref=Lo(p,$,y),h.return=p,p=h;break e}n(p,$);break}else t(p,$);$=$.sibling}y.type===$i?(h=Yr(y.props.children,p.mode,w,y.key),h.return=p,p=h):(w=Ql(y.type,y.key,y.props,null,p.mode,w),w.ref=Lo(p,h,y),w.return=p,p=w)}return s(p);case Si:e:{for($=y.key;h!==null;){if(h.key===$)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(p,h.sibling),h=i(h,y.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=Bu(y,p.mode,w),h.return=p,p=h}return s(p);case ar:return $=y._init,b(p,h,$(y._payload),w)}if(qo(y))return g(p,h,y,w);if(Oo(y))return m(p,h,y,w);bl(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,y),h.return=p,p=h):(n(p,h),h=zu(y,p.mode,w),h.return=p,p=h),s(p)):n(p,h)}return b}var to=_y(!0),Ay=_y(!1),ba=Ar(null),xa=null,Ai=null,rh=null;function ih(){rh=Ai=xa=null}function oh(e){var t=ba.current;me(ba),e._currentValue=t}function Gd(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vi(e,t){xa=e,rh=Ai=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($t=!0),e.firstContext=null)}function tn(e){var t=e._currentValue;if(rh!==e)if(e={context:e,memoizedValue:t,next:null},Ai===null){if(xa===null)throw Error(A(308));Ai=e,xa.dependencies={lanes:0,firstContext:e}}else Ai=Ai.next=e;return t}var Wr=null;function sh(e){Wr===null?Wr=[e]:Wr.push(e)}function Dy(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,sh(t)):(n.next=i.next,i.next=n),t.interleaved=n,Xn(e,r)}function Xn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cr=!1;function lh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function My(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Xn(e,n)}return i=r.interleaved,i===null?(t.next=t,sh(r)):(t.next=i.next,i.next=t),r.interleaved=t,Xn(e,n)}function Vl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gf(e,n)}}function cm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function wa(e,t,n,r){var i=e.updateQueue;cr=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,c=a.next;a.next=null,s===null?o=c:s.next=c,s=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==s&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=a))}if(o!==null){var u=i.baseState;s=0,d=c=a=null,l=o;do{var f=l.lane,v=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var g=e,m=l;switch(f=t,v=n,m.tag){case 1:if(g=m.payload,typeof g=="function"){u=g.call(v,u,f);break e}u=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=m.payload,f=typeof g=="function"?g.call(v,u,f):g,f==null)break e;u=$e({},u,f);break e;case 2:cr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else v={eventTime:v,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=v,a=u):d=d.next=v,s|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(a=u),i.baseState=a,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ni|=s,e.lanes=s,e.memoizedState=u}}function um(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Mu.transition;Mu.transition={};try{e(!1),t()}finally{ce=n,Mu.transition=r}}function Jy(){return nn().memoizedState}function jk(e,t,n){var r=kr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zy(e))e0(t,n);else if(n=Dy(e,t,n,r),n!==null){var i=gt();gn(n,e,r,i),t0(n,t,r)}}function zk(e,t,n){var r=kr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zy(e))e0(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,vn(l,s)){var a=t.interleaved;a===null?(i.next=i,sh(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Dy(e,t,i,r),n!==null&&(i=gt(),gn(n,e,r,i),t0(n,t,r))}}function Zy(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function e0(e,t){ns=Ca=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function t0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gf(e,n)}}var Sa={readContext:tn,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useInsertionEffect:tt,useLayoutEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useMutableSource:tt,useSyncExternalStore:tt,useId:tt,unstable_isNewReconciler:!1},Bk={readContext:tn,useCallback:function(e,t){return Sn().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:fm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ul(4194308,4,qy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ul(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ul(4,2,e,t)},useMemo:function(e,t){var n=Sn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sn();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=jk.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=Sn();return e={current:e},t.memoizedState=e},useState:dm,useDebugValue:mh,useDeferredValue:function(e){return Sn().memoizedState=e},useTransition:function(){var e=dm(!1),t=e[0];return e=Fk.bind(null,e[1]),Sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,i=Sn();if(ve){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Ue===null)throw Error(A(349));ti&30||jy(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,fm(By.bind(null,r,o,e),[e]),r.flags|=2048,Is(9,zy.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Sn(),t=Ue.identifierPrefix;if(ve){var n=Hn,r=Vn;n=(r&~(1<<32-mn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$s++,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[In]=t,e[ks]=r,d0(e,t,!1,!1),t.stateNode=e;e:{switch(s=Id(n,r),n){case"dialog":pe("cancel",e),pe("close",e),i=r;break;case"iframe":case"object":case"embed":pe("load",e),i=r;break;case"video":case"audio":for(i=0;iro&&(t.flags|=128,r=!0,Lo(o,!1),t.lanes=4194304)}else{if(!r)if(e=wa(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Lo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ve)return nt(t),null}else 2*_e()-o.renderingStartTime>ro&&n!==1073741824&&(t.flags|=128,r=!0,Lo(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=_e(),t.sibling=null,n=Ce.current,fe(Ce,r?n&1|2:n&1),t):(nt(t),null);case 22:case 23:return wh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Mt&1073741824&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function Xk(e,t){switch(th(t),t.tag){case 1:return It(t.type)&&pa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return to(),me(Tt),me(st),uh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ch(t),null;case 13:if(me(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(Ce),null;case 4:return to(),null;case 10:return oh(t.type._context),null;case 22:case 23:return wh(),null;case 24:return null;default:return null}}var xl=!1,it=!1,Yk=typeof WeakSet=="function"?WeakSet:Set,N=null;function Mi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function ef(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var Cm=!1;function Kk(e,t){if(Nd=ua,e=yy(),Zf(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,c=0,d=0,u=e,f=null;t:for(;;){for(var v;u!==n||i!==0&&u.nodeType!==3||(l=s+i),u!==o||r!==0&&u.nodeType!==3||(a=s+r),u.nodeType===3&&(s+=u.nodeValue.length),(v=u.firstChild)!==null;)f=u,u=v;for(;;){if(u===e)break t;if(f===n&&++c===i&&(l=s),f===o&&++d===r&&(a=s),(v=u.nextSibling)!==null)break;u=f,f=u.parentNode}u=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fd={focusedElem:e,selectionRange:n},ua=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;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,b=m.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:un(t.type,g),b);p.__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(A(163))}}catch(w){Pe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return m=Cm,Cm=!1,m}function ns(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ef(t,n,o)}i=i.next}while(i!==r)}}function tc(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 tf(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 p0(e){var t=e.alternate;t!==null&&(e.alternate=null,p0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[In],delete t[ks],delete t[Bd],delete t[Ak],delete t[Mk])),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 m0(e){return e.tag===5||e.tag===3||e.tag===4}function Sm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||m0(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 nf(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=ha));else if(r!==4&&(e=e.child,e!==null))for(nf(e,t,n),e=e.sibling;e!==null;)nf(e,t,n),e=e.sibling}function rf(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(rf(e,t,n),e=e.sibling;e!==null;)rf(e,t,n),e=e.sibling}var Xe=null,dn=!1;function tr(e,t,n){for(n=n.child;n!==null;)g0(e,t,n),n=n.sibling}function g0(e,t,n){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(qa,n)}catch{}switch(n.tag){case 5:it||Mi(n,t);case 6:var r=Xe,i=dn;Xe=null,tr(e,t,n),Xe=r,dn=i,Xe!==null&&(dn?(e=Xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xe.removeChild(n.stateNode));break;case 18:Xe!==null&&(dn?(e=Xe,n=n.stateNode,e.nodeType===8?Ou(e.parentNode,n):e.nodeType===1&&Ou(e,n),vs(e)):Ou(Xe,n.stateNode));break;case 4:r=Xe,i=dn,Xe=n.stateNode.containerInfo,dn=!0,tr(e,t,n),Xe=r,dn=i;break;case 0:case 11:case 14:case 15:if(!it&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ef(n,t,s),i=i.next}while(i!==r)}tr(e,t,n);break;case 1:if(!it&&(Mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Pe(n,t,l)}tr(e,t,n);break;case 21:tr(e,t,n);break;case 22:n.mode&1?(it=(r=it)||n.memoizedState!==null,tr(e,t,n),it=r):tr(e,t,n);break;default:tr(e,t,n)}}function $m(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yk),t.forEach(function(r){var i=sC.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function cn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zk(r/1960))-r,10e?16:e,hr===null)var r=!1;else{if(e=hr,hr=null,Ta=0,ne&6)throw Error(A(331));var i=ne;for(ne|=4,N=e.current;N!==null;){var o=N,s=o.child;if(N.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a_e()-bh?Qr(e,0):yh|=n),Et(e,t)}function S0(e,t){t===0&&(e.mode&1?(t=dl,dl<<=1,!(dl&130023424)&&(dl=4194304)):t=1);var n=mt();e=Qn(e,t),e!==null&&(zs(e,t,n),Et(e,n))}function oC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),S0(e,n)}function sC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),S0(e,n)}var $0;$0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tt.current)$t=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $t=!1,qk(e,t,n);$t=!!(e.flags&131072)}else $t=!1,ve&&t.flags&1048576&&Ry(t,va,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ul(e,t),e=t.pendingProps;var i=Ji(t,st.current);Vi(t,n),i=fh(null,t,r,e,i,n);var o=hh();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,It(r)?(o=!0,ma(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,lh(t),i.updater=ec,t.stateNode=i,i._reactInternals=t,qd(t,r,e,n),t=Yd(null,t,r,!0,o,n)):(t.tag=0,ve&&o&&eh(t),ht(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ul(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=aC(r),e=un(r,e),i){case 0:t=Xd(null,t,r,e,n);break e;case 1:t=xm(null,t,r,e,n);break e;case 11:t=ym(null,t,r,e,n);break e;case 14:t=bm(null,t,r,un(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:un(r,i),Xd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:un(r,i),xm(e,t,r,i,n);case 3:e:{if(a0(t),e===null)throw Error(A(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Dy(e,t),xa(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=no(Error(A(423)),t),t=wm(e,t,r,n,i);break e}else if(r!==i){i=no(Error(A(424)),t),t=wm(e,t,r,n,i);break e}else for(Lt=yr(t.stateNode.containerInfo.firstChild),Nt=t,ve=!0,fn=null,n=Ay(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Zi(),r===i){t=Xn(e,t,n);break e}ht(e,t,r,n)}t=t.child}return t;case 5:return Ly(t),e===null&&Ud(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,jd(r,i)?s=null:o!==null&&jd(r,o)&&(t.flags|=32),l0(e,t),ht(e,t,s,n),t.child;case 6:return e===null&&Ud(t),null;case 13:return c0(e,t,n);case 4:return ah(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=eo(t,null,r,n):ht(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:un(r,i),ym(e,t,r,i,n);case 7:return ht(e,t,t.pendingProps,n),t.child;case 8:return ht(e,t,t.pendingProps.children,n),t.child;case 12:return ht(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,fe(ya,r._currentValue),r._currentValue=s,o!==null)if(gn(o.value,s)){if(o.children===i.children&&!Tt.current){t=Xn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Wn(-1,n&-n),a.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Wd(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(A(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Wd(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ht(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vi(t,n),i=tn(i),r=r(i),t.flags|=1,ht(e,t,r,n),t.child;case 14:return r=t.type,i=un(r,t.pendingProps),i=un(r.type,i),bm(e,t,r,i,n);case 15:return o0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:un(r,i),Ul(e,t),t.tag=1,It(r)?(e=!0,ma(t)):e=!1,Vi(t,n),n0(t,r,i),qd(t,r,i,n),Yd(null,t,r,!0,e,n);case 19:return u0(e,t,n);case 22:return s0(e,t,n)}throw Error(A(156,t.tag))};function T0(e,t){return Zv(e,t)}function lC(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 Jt(e,t,n,r){return new lC(e,t,n,r)}function Ch(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aC(e){if(typeof e=="function")return Ch(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vf)return 11;if(e===Hf)return 14}return 2}function kr(e,t){var n=e.alternate;return n===null?(n=Jt(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 ql(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Ch(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case $i:return Xr(n.children,i,o,t);case Bf:s=8,i|=8;break;case vd:return e=Jt(12,n,t,i|2),e.elementType=vd,e.lanes=o,e;case yd:return e=Jt(13,n,t,i),e.elementType=yd,e.lanes=o,e;case bd:return e=Jt(19,n,t,i),e.elementType=bd,e.lanes=o,e;case Lv:return rc(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mv:s=10;break e;case Dv:s=9;break e;case Vf:s=11;break e;case Hf:s=14;break e;case lr:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Jt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Xr(e,t,n,r){return e=Jt(7,e,r,t),e.lanes=n,e}function rc(e,t,n,r){return e=Jt(22,e,r,t),e.elementType=Lv,e.lanes=n,e.stateNode={isHidden:!1},e}function ju(e,t,n){return e=Jt(6,e,null,t),e.lanes=n,e}function zu(e,t,n){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cC(e,t,n,r,i){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=xu(0),this.expirationTimes=xu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Sh(e,t,n,r,i,o,s,l,a){return e=new cC(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Jt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lh(o),e}function uC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(P0)}catch(e){console.error(e)}}P0(),Pv.exports=Vt;var ac=Pv.exports;const Cl=Af(ac);var Am=ac;md.createRoot=Am.createRoot,md.hydrateRoot=Am.hydrateRoot;const O0=x.createContext({message:null,setMessage:e=>{}}),mC=({children:e})=>{const[t,n]=x.useState(null);return C.jsx(O0.Provider,{value:{message:t,setMessage:n},children:e})},_0=()=>x.useContext(O0),Rs={black:"#000",white:"#fff"},vi={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"},Sn={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"},yi={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"},bi={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"},xi={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"},Fo={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"},gC={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function ii(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)continue;n[r]=e[r]}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 yC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|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)-.*))$/,bC=A0(function(e){return yC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function xC(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ye(mo,--Pt):0,io--,Le===10&&(io=1,uc--),Le}function Ft(){return Le=Pt2||Os(Le)>3?"":" "}function AC(e,t){for(;--t&&Ft()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return Us(e,Ql()+(t<6&&_n()==32&&Ft()==32))}function uf(e){for(;Ft();)switch(Le){case e:return Pt;case 34:case 39:e!==34&&e!==39&&uf(Le);break;case 40:e===41&&uf(e);break;case 92:Ft();break}return Pt}function MC(e,t){for(;Ft()&&e+Le!==57;)if(e+Le===84&&_n()===47)break;return"/*"+Us(t,Pt-1)+"*"+cc(e===47?e:Ft())}function DC(e){for(;!Os(_n());)Ft();return Us(e,Pt)}function LC(e){return j0(Yl("",null,null,null,[""],e=F0(e),0,[0],e))}function Yl(e,t,n,r,i,o,s,l,a){for(var c=0,d=0,u=s,f=0,v=0,m=0,g=1,b=1,p=1,h=0,y="",w=i,k=o,$=r,I=y;b;)switch(m=h,h=Ft()){case 40:if(m!=108&&Ye(I,u-1)==58){cf(I+=oe(Xl(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:I+=Xl(h);break;case 9:case 10:case 13:case 32:I+=_C(m);break;case 92:I+=AC(Ql()-1,7);continue;case 47:switch(_n()){case 42:case 47:Sl(NC(MC(Ft(),Ql()),t,n),a);break;default:I+="/"}break;case 123*g:l[c++]=$n(I)*p;case 125*g:case 59:case 0:switch(h){case 0:case 125:b=0;case 59+d:p==-1&&(I=oe(I,/\f/g,"")),v>0&&$n(I)-u&&Sl(v>32?Dm(I+";",r,n,u-1):Dm(oe(I," ","")+";",r,n,u-2),a);break;case 59:I+=";";default:if(Sl($=Mm(I,t,n,c,d,i,l,y,w=[],k=[],u),o),h===123)if(d===0)Yl(I,t,$,$,w,o,u,l,k);else switch(f===99&&Ye(I,3)===110?100:f){case 100:case 108:case 109:case 115:Yl(e,$,$,r&&Sl(Mm(e,$,$,0,0,i,l,y,i,w=[],u),k),i,k,u,l,r?w:k);break;default:Yl(I,$,$,$,[""],k,0,l,k)}}c=d=v=0,g=p=1,y=I="",u=s;break;case 58:u=1+$n(I),v=m;default:if(g<1){if(h==123)--g;else if(h==125&&g++==0&&OC()==125)continue}switch(I+=cc(h),h*g){case 38:p=d>0?1:(I+="\f",-1);break;case 44:l[c++]=($n(I)-1)*p,p=1;break;case 64:_n()===45&&(I+=Xl(Ft())),f=_n(),d=u=$n(y=I+=DC(Ql())),h++;break;case 45:m===45&&$n(I)==2&&(g=0)}}return o}function Mm(e,t,n,r,i,o,s,l,a,c,d){for(var u=i-1,f=i===0?o:[""],v=Ph(f),m=0,g=0,b=0;m0?f[p]+" "+h:oe(h,/&\f/g,f[p])))&&(a[b++]=y);return dc(e,t,n,i===0?Eh:l,a,c,d)}function NC(e,t,n){return dc(e,t,n,M0,cc(PC()),Ps(e,2,-2),0)}function Dm(e,t,n,r){return dc(e,t,n,Rh,Ps(e,0,r),Ps(e,r+1,-1),r)}function Ui(e,t){for(var n="",r=Ph(e),i=0;i6)switch(Ye(e,t+1)){case 109:if(Ye(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+Ra+(Ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cf(e,"stretch")?z0(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ye(e,t+1)!==115)break;case 6444:switch(Ye(e,$n(e)-3-(~cf(e,"!important")&&10))){case 107:return oe(e,":",":"+ie)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(Ye(e,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return ie+e+rt+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+rt+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+rt+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ie+e+rt+e+e}return e}var GC=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Rh:t.return=z0(t.value,t.length);break;case D0:return Ui([jo(t,{value:oe(t.value,"@","@"+ie)})],i);case Eh:if(t.length)return RC(t.props,function(o){switch(EC(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ui([jo(t,{props:[oe(o,/:(read-\w+)/,":"+Ra+"$1")]})],i);case"::placeholder":return Ui([jo(t,{props:[oe(o,/:(plac\w+)/,":"+ie+"input-$1")]}),jo(t,{props:[oe(o,/:(plac\w+)/,":"+Ra+"$1")]}),jo(t,{props:[oe(o,/:(plac\w+)/,rt+"input-$1")]})],i)}return""})}},qC=[GC],B0=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 b=g.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||qC,o={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var b=g.getAttribute("data-emotion").split(" "),p=1;p<\/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[En]=t,e[ks]=r,d0(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ed(n,r),n){case"dialog":pe("cancel",e),pe("close",e),i=r;break;case"iframe":case"object":case"embed":pe("load",e),i=r;break;case"video":case"audio":for(i=0;iio&&(t.flags|=128,r=!0,No(o,!1),t.lanes=4194304)}else{if(!r)if(e=ka(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),No(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ve)return nt(t),null}else 2*_e()-o.renderingStartTime>io&&n!==1073741824&&(t.flags|=128,r=!0,No(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=_e(),t.sibling=null,n=Ce.current,fe(Ce,r?n&1|2:n&1),t):(nt(t),null);case 22:case 23:return wh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Dt&1073741824&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function Xk(e,t){switch(th(t),t.tag){case 1:return It(t.type)&&ma(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return no(),me(Tt),me(st),uh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ch(t),null;case 13:if(me(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));eo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(Ce),null;case 4:return no(),null;case 10:return oh(t.type._context),null;case 22:case 23:return wh(),null;case 24:return null;default:return null}}var wl=!1,it=!1,Yk=typeof WeakSet=="function"?WeakSet:Set,N=null;function Di(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function tf(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var Cm=!1;function Kk(e,t){if(Fd=da,e=yy(),Zf(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,c=0,d=0,u=e,f=null;t:for(;;){for(var v;u!==n||i!==0&&u.nodeType!==3||(l=s+i),u!==o||r!==0&&u.nodeType!==3||(a=s+r),u.nodeType===3&&(s+=u.nodeValue.length),(v=u.firstChild)!==null;)f=u,u=v;for(;;){if(u===e)break t;if(f===n&&++c===i&&(l=s),f===o&&++d===r&&(a=s),(v=u.nextSibling)!==null)break;u=f,f=u.parentNode}u=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(jd={focusedElem:e,selectionRange:n},da=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,b=g.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?m:un(t.type,m),b);p.__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(A(163))}}catch(w){Pe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return g=Cm,Cm=!1,g}function rs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&tf(t,n,o)}i=i.next}while(i!==r)}}function rc(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 nf(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 p0(e){var t=e.alternate;t!==null&&(e.alternate=null,p0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[En],delete t[ks],delete t[Vd],delete t[Ak],delete t[Dk])),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 m0(e){return e.tag===5||e.tag===3||e.tag===4}function Sm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||m0(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 rf(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=pa));else if(r!==4&&(e=e.child,e!==null))for(rf(e,t,n),e=e.sibling;e!==null;)rf(e,t,n),e=e.sibling}function of(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(of(e,t,n),e=e.sibling;e!==null;)of(e,t,n),e=e.sibling}var Xe=null,dn=!1;function nr(e,t,n){for(n=n.child;n!==null;)g0(e,t,n),n=n.sibling}function g0(e,t,n){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(Xa,n)}catch{}switch(n.tag){case 5:it||Di(n,t);case 6:var r=Xe,i=dn;Xe=null,nr(e,t,n),Xe=r,dn=i,Xe!==null&&(dn?(e=Xe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Xe.removeChild(n.stateNode));break;case 18:Xe!==null&&(dn?(e=Xe,n=n.stateNode,e.nodeType===8?_u(e.parentNode,n):e.nodeType===1&&_u(e,n),vs(e)):_u(Xe,n.stateNode));break;case 4:r=Xe,i=dn,Xe=n.stateNode.containerInfo,dn=!0,nr(e,t,n),Xe=r,dn=i;break;case 0:case 11:case 14:case 15:if(!it&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&tf(n,t,s),i=i.next}while(i!==r)}nr(e,t,n);break;case 1:if(!it&&(Di(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Pe(n,t,l)}nr(e,t,n);break;case 21:nr(e,t,n);break;case 22:n.mode&1?(it=(r=it)||n.memoizedState!==null,nr(e,t,n),it=r):nr(e,t,n);break;default:nr(e,t,n)}}function $m(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yk),t.forEach(function(r){var i=sC.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function cn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Zk(r/1960))-r,10e?16:e,pr===null)var r=!1;else{if(e=pr,pr=null,Ia=0,ne&6)throw Error(A(331));var i=ne;for(ne|=4,N=e.current;N!==null;){var o=N,s=o.child;if(N.flags&16){var l=o.deletions;if(l!==null){for(var a=0;a_e()-bh?Xr(e,0):yh|=n),Et(e,t)}function S0(e,t){t===0&&(e.mode&1?(t=fl,fl<<=1,!(fl&130023424)&&(fl=4194304)):t=1);var n=gt();e=Xn(e,t),e!==null&&(zs(e,t,n),Et(e,n))}function oC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),S0(e,n)}function sC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),S0(e,n)}var $0;$0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tt.current)$t=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $t=!1,qk(e,t,n);$t=!!(e.flags&131072)}else $t=!1,ve&&t.flags&1048576&&Ry(t,ya,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var i=Zi(t,st.current);Vi(t,n),i=fh(null,t,r,e,i,n);var o=hh();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,It(r)?(o=!0,ga(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,lh(t),i.updater=nc,t.stateNode=i,i._reactInternals=t,Qd(t,r,e,n),t=Kd(null,t,r,!0,o,n)):(t.tag=0,ve&&o&&eh(t),ht(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=aC(r),e=un(r,e),i){case 0:t=Yd(null,t,r,e,n);break e;case 1:t=xm(null,t,r,e,n);break e;case 11:t=ym(null,t,r,e,n);break e;case 14:t=bm(null,t,r,un(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:un(r,i),Yd(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:un(r,i),xm(e,t,r,i,n);case 3:e:{if(a0(t),e===null)throw Error(A(387));r=t.pendingProps,o=t.memoizedState,i=o.element,My(e,t),wa(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ro(Error(A(423)),t),t=wm(e,t,r,n,i);break e}else if(r!==i){i=ro(Error(A(424)),t),t=wm(e,t,r,n,i);break e}else for(Lt=br(t.stateNode.containerInfo.firstChild),Nt=t,ve=!0,fn=null,n=Ay(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(eo(),r===i){t=Yn(e,t,n);break e}ht(e,t,r,n)}t=t.child}return t;case 5:return Ly(t),e===null&&Wd(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,zd(r,i)?s=null:o!==null&&zd(r,o)&&(t.flags|=32),l0(e,t),ht(e,t,s,n),t.child;case 6:return e===null&&Wd(t),null;case 13:return c0(e,t,n);case 4:return ah(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=to(t,null,r,n):ht(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:un(r,i),ym(e,t,r,i,n);case 7:return ht(e,t,t.pendingProps,n),t.child;case 8:return ht(e,t,t.pendingProps.children,n),t.child;case 12:return ht(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,fe(ba,r._currentValue),r._currentValue=s,o!==null)if(vn(o.value,s)){if(o.children===i.children&&!Tt.current){t=Yn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Wn(-1,n&-n),a.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Gd(o.return,n,t),l.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(A(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Gd(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}ht(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vi(t,n),i=tn(i),r=r(i),t.flags|=1,ht(e,t,r,n),t.child;case 14:return r=t.type,i=un(r,t.pendingProps),i=un(r.type,i),bm(e,t,r,i,n);case 15:return o0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:un(r,i),Wl(e,t),t.tag=1,It(r)?(e=!0,ga(t)):e=!1,Vi(t,n),n0(t,r,i),Qd(t,r,i,n),Kd(null,t,r,!0,e,n);case 19:return u0(e,t,n);case 22:return s0(e,t,n)}throw Error(A(156,t.tag))};function T0(e,t){return Zv(e,t)}function lC(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 Jt(e,t,n,r){return new lC(e,t,n,r)}function Ch(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aC(e){if(typeof e=="function")return Ch(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vf)return 11;if(e===Hf)return 14}return 2}function Cr(e,t){var n=e.alternate;return n===null?(n=Jt(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 Ql(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Ch(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case $i:return Yr(n.children,i,o,t);case Bf:s=8,i|=8;break;case yd:return e=Jt(12,n,t,i|2),e.elementType=yd,e.lanes=o,e;case bd:return e=Jt(13,n,t,i),e.elementType=bd,e.lanes=o,e;case xd:return e=Jt(19,n,t,i),e.elementType=xd,e.lanes=o,e;case Lv:return oc(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Dv:s=10;break e;case Mv:s=9;break e;case Vf:s=11;break e;case Hf:s=14;break e;case ar:s=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Jt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Yr(e,t,n,r){return e=Jt(7,e,r,t),e.lanes=n,e}function oc(e,t,n,r){return e=Jt(22,e,r,t),e.elementType=Lv,e.lanes=n,e.stateNode={isHidden:!1},e}function zu(e,t,n){return e=Jt(6,e,null,t),e.lanes=n,e}function Bu(e,t,n){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cC(e,t,n,r,i){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=wu(0),this.expirationTimes=wu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Sh(e,t,n,r,i,o,s,l,a){return e=new cC(e,t,n,l,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Jt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lh(o),e}function uC(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(P0)}catch(e){console.error(e)}}P0(),Pv.exports=Vt;var uc=Pv.exports;const Sl=Af(uc);var Am=uc;gd.createRoot=Am.createRoot,gd.hydrateRoot=Am.hydrateRoot;const O0=x.createContext({message:null,setMessage:e=>{}}),mC=({children:e})=>{const[t,n]=x.useState(null);return C.jsx(O0.Provider,{value:{message:t,setMessage:n},children:e})},_0=()=>x.useContext(O0),Rs={black:"#000",white:"#fff"},vi={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"},$n={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"},yi={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"},bi={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"},xi={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"},jo={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"},gC={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function ii(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)continue;n[r]=e[r]}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 yC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|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)-.*))$/,bC=A0(function(e){return yC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function xC(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ye(go,--Pt):0,oo--,Le===10&&(oo=1,fc--),Le}function Ft(){return Le=Pt2||Os(Le)>3?"":" "}function AC(e,t){for(;--t&&Ft()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return Us(e,Xl()+(t<6&&_n()==32&&Ft()==32))}function df(e){for(;Ft();)switch(Le){case e:return Pt;case 34:case 39:e!==34&&e!==39&&df(Le);break;case 40:e===41&&df(e);break;case 92:Ft();break}return Pt}function DC(e,t){for(;Ft()&&e+Le!==57;)if(e+Le===84&&_n()===47)break;return"/*"+Us(t,Pt-1)+"*"+dc(e===47?e:Ft())}function MC(e){for(;!Os(_n());)Ft();return Us(e,Pt)}function LC(e){return j0(Kl("",null,null,null,[""],e=F0(e),0,[0],e))}function Kl(e,t,n,r,i,o,s,l,a){for(var c=0,d=0,u=s,f=0,v=0,g=0,m=1,b=1,p=1,h=0,y="",w=i,k=o,$=r,I=y;b;)switch(g=h,h=Ft()){case 40:if(g!=108&&Ye(I,u-1)==58){uf(I+=oe(Yl(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:I+=Yl(h);break;case 9:case 10:case 13:case 32:I+=_C(g);break;case 92:I+=AC(Xl()-1,7);continue;case 47:switch(_n()){case 42:case 47:$l(NC(DC(Ft(),Xl()),t,n),a);break;default:I+="/"}break;case 123*m:l[c++]=Tn(I)*p;case 125*m:case 59:case 0:switch(h){case 0:case 125:b=0;case 59+d:p==-1&&(I=oe(I,/\f/g,"")),v>0&&Tn(I)-u&&$l(v>32?Mm(I+";",r,n,u-1):Mm(oe(I," ","")+";",r,n,u-2),a);break;case 59:I+=";";default:if($l($=Dm(I,t,n,c,d,i,l,y,w=[],k=[],u),o),h===123)if(d===0)Kl(I,t,$,$,w,o,u,l,k);else switch(f===99&&Ye(I,3)===110?100:f){case 100:case 108:case 109:case 115:Kl(e,$,$,r&&$l(Dm(e,$,$,0,0,i,l,y,i,w=[],u),k),i,k,u,l,r?w:k);break;default:Kl(I,$,$,$,[""],k,0,l,k)}}c=d=v=0,m=p=1,y=I="",u=s;break;case 58:u=1+Tn(I),v=g;default:if(m<1){if(h==123)--m;else if(h==125&&m++==0&&OC()==125)continue}switch(I+=dc(h),h*m){case 38:p=d>0?1:(I+="\f",-1);break;case 44:l[c++]=(Tn(I)-1)*p,p=1;break;case 64:_n()===45&&(I+=Yl(Ft())),f=_n(),d=u=Tn(y=I+=MC(Xl())),h++;break;case 45:g===45&&Tn(I)==2&&(m=0)}}return o}function Dm(e,t,n,r,i,o,s,l,a,c,d){for(var u=i-1,f=i===0?o:[""],v=Ph(f),g=0,m=0,b=0;g0?f[p]+" "+h:oe(h,/&\f/g,f[p])))&&(a[b++]=y);return hc(e,t,n,i===0?Eh:l,a,c,d)}function NC(e,t,n){return hc(e,t,n,D0,dc(PC()),Ps(e,2,-2),0)}function Mm(e,t,n,r){return hc(e,t,n,Rh,Ps(e,0,r),Ps(e,r+1,-1),r)}function Ui(e,t){for(var n="",r=Ph(e),i=0;i6)switch(Ye(e,t+1)){case 109:if(Ye(e,t+4)!==45)break;case 102:return oe(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+Pa+(Ye(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~uf(e,"stretch")?z0(oe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ye(e,t+1)!==115)break;case 6444:switch(Ye(e,Tn(e)-3-(~uf(e,"!important")&&10))){case 107:return oe(e,":",":"+ie)+e;case 101:return oe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(Ye(e,14)===45?"inline-":"")+"box$3$1"+ie+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(Ye(e,t+11)){case 114:return ie+e+rt+oe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+rt+oe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+rt+oe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ie+e+rt+e+e}return e}var GC=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Rh:t.return=z0(t.value,t.length);break;case M0:return Ui([zo(t,{value:oe(t.value,"@","@"+ie)})],i);case Eh:if(t.length)return RC(t.props,function(o){switch(EC(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ui([zo(t,{props:[oe(o,/:(read-\w+)/,":"+Pa+"$1")]})],i);case"::placeholder":return Ui([zo(t,{props:[oe(o,/:(plac\w+)/,":"+ie+"input-$1")]}),zo(t,{props:[oe(o,/:(plac\w+)/,":"+Pa+"$1")]}),zo(t,{props:[oe(o,/:(plac\w+)/,rt+"input-$1")]})],i)}return""})}},qC=[GC],B0=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 i=t.stylisPlugins||qC,o={},s,l=[];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(" "),p=1;p=4;++r,i-=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(i){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 oS={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},sS=/[A-Z]|^ms/g,lS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Q0=function(t){return t.charCodeAt(1)===45},Nm=function(t){return t!=null&&typeof t!="boolean"},Bu=A0(function(e){return Q0(e)?e:e.replace(sS,"-$&").toLowerCase()}),Fm=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(lS,function(r,i,o){return Tn={name:i,styles:o,next:Tn},i})}return oS[t]!==1&&!Q0(t)&&typeof n=="number"&&n!==0?n+"px":n};function _s(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 Tn={name:n.name,styles:n.styles,next:Tn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Tn={name:r.name,styles:r.styles,next:Tn},r=r.next;var i=n.styles+";";return i}return aS(e,t,n)}case"function":{if(e!==void 0){var o=Tn,s=n(e);return Tn=o,_s(e,t,s)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function aS(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?hS:pS},Hm=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},mS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return G0(n,r,i),uS(function(){return q0(n,r,i)}),null},gS=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var l=Hm(t,n,r),a=l||Vm(i),c=!a("as");return function(){var d=arguments,u=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&u.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{u.push(d[0][0]);for(var f=d.length,v=1;vt(SS(i)?n:i):t;return C.jsx(fS,{styles:r})}function rb(e,t){return df(e,t)}const $S=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},TS=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:nb,StyledEngineProvider:CS,ThemeContext:Ws,css:kc,default:rb,internal_processStyles:$S,keyframes:go},Symbol.toStringTag,{value:"Module"}));function dr(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 ib(e){if(!dr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ib(e[n])}),t}function An(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return dr(e)&&dr(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(dr(t[i])&&i in e&&dr(e[i])?r[i]=An(e[i],t[i],n):n.clone?r[i]=dr(t[i])?ib(t[i]):t[i]:r[i]=t[i])}),r}const IS=Object.freeze(Object.defineProperty({__proto__:null,default:An,isPlainObject:dr},Symbol.toStringTag,{value:"Module"})),ES=["values","unit","step"],RS=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)=>T({},n,{[r.key]:r.val}),{})};function ob(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=K(e,ES),o=RS(t),s=Object.keys(o);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function a(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,v){const m=s.indexOf(v);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]]:v)-r/100}${n})`}function d(f){return s.indexOf(f)+1`@media (min-width:${Dh[e]}px)`};function Yn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Wm;return t.reduce((s,l,a)=>(s[o.up(o.keys[a])]=n(t[a]),s),{})}if(typeof t=="object"){const o=r.breakpoints||Wm;return Object.keys(t).reduce((s,l)=>{if(Object.keys(o.values||Dh).indexOf(l)!==-1){const a=o.up(l);s[a]=n(t[l],l)}else{const a=l;s[a]=t[a]}return s},{})}return n(t)}function OS(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function _S(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function X(e){if(typeof e!="string")throw new Error(ii(7));return e.charAt(0).toUpperCase()+e.slice(1)}const AS=Object.freeze(Object.defineProperty({__proto__:null,default:X},Symbol.toStringTag,{value:"Module"}));function oo(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Pa(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=oo(e,n)||r,t&&(i=t(i,r,e)),i}function Me(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const l=s[t],a=s.theme,c=oo(a,r)||{};return Yn(s,l,u=>{let f=Pa(c,i,u);return u===f&&typeof u=="string"&&(f=Pa(c,i,`${t}${u==="default"?"":X(u)}`,u)),n===!1?f:{[n]:f}})};return o.propTypes={},o.filterProps=[t],o}function MS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const DS={m:"margin",p:"padding"},LS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Gm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},NS=MS(e=>{if(e.length>2)if(Gm[e])e=Gm[e];else return[e];const[t,n]=e.split(""),r=DS[t],i=LS[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Lh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Nh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Lh,...Nh];function Gs(e,t,n,r){var i;const o=(i=oo(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function sb(e){return Gs(e,"spacing",8)}function qs(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 FS(e,t){return n=>e.reduce((r,i)=>(r[i]=qs(t,n),r),{})}function jS(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=NS(n),o=FS(i,r),s=e[n];return Yn(e,s,o)}function lb(e,t){const n=sb(e.theme);return Object.keys(e).map(r=>jS(e,t,r,n)).reduce(os,{})}function Ee(e){return lb(e,Lh)}Ee.propTypes={};Ee.filterProps=Lh;function Re(e){return lb(e,Nh)}Re.propTypes={};Re.filterProps=Nh;function zS(e=8){if(e.mui)return e;const t=sb({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Cc(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?os(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Yt(e){return typeof e!="number"?e:`${e}px solid`}function sn(e,t){return Me({prop:e,themeKey:"borders",transform:t})}const BS=sn("border",Yt),VS=sn("borderTop",Yt),HS=sn("borderRight",Yt),US=sn("borderBottom",Yt),WS=sn("borderLeft",Yt),GS=sn("borderColor"),qS=sn("borderTopColor"),QS=sn("borderRightColor"),XS=sn("borderBottomColor"),YS=sn("borderLeftColor"),KS=sn("outline",Yt),JS=sn("outlineColor"),Sc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Gs(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:qs(t,r)});return Yn(e,e.borderRadius,n)}return null};Sc.propTypes={};Sc.filterProps=["borderRadius"];Cc(BS,VS,HS,US,WS,GS,qS,QS,XS,YS,Sc,KS,JS);const $c=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Gs(e.theme,"spacing",8),n=r=>({gap:qs(t,r)});return Yn(e,e.gap,n)}return null};$c.propTypes={};$c.filterProps=["gap"];const Tc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Gs(e.theme,"spacing",8),n=r=>({columnGap:qs(t,r)});return Yn(e,e.columnGap,n)}return null};Tc.propTypes={};Tc.filterProps=["columnGap"];const Ic=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Gs(e.theme,"spacing",8),n=r=>({rowGap:qs(t,r)});return Yn(e,e.rowGap,n)}return null};Ic.propTypes={};Ic.filterProps=["rowGap"];const ZS=Me({prop:"gridColumn"}),e$=Me({prop:"gridRow"}),t$=Me({prop:"gridAutoFlow"}),n$=Me({prop:"gridAutoColumns"}),r$=Me({prop:"gridAutoRows"}),i$=Me({prop:"gridTemplateColumns"}),o$=Me({prop:"gridTemplateRows"}),s$=Me({prop:"gridTemplateAreas"}),l$=Me({prop:"gridArea"});Cc($c,Tc,Ic,ZS,e$,t$,n$,r$,i$,o$,s$,l$);function Wi(e,t){return t==="grey"?t:e}const a$=Me({prop:"color",themeKey:"palette",transform:Wi}),c$=Me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wi}),u$=Me({prop:"backgroundColor",themeKey:"palette",transform:Wi});Cc(a$,c$,u$);function Dt(e){return e<=1&&e!==0?`${e*100}%`:e}const d$=Me({prop:"width",transform:Dt}),Fh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Dh[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Dt(n)}};return Yn(e,e.maxWidth,t)}return null};Fh.filterProps=["maxWidth"];const f$=Me({prop:"minWidth",transform:Dt}),h$=Me({prop:"height",transform:Dt}),p$=Me({prop:"maxHeight",transform:Dt}),m$=Me({prop:"minHeight",transform:Dt});Me({prop:"size",cssProperty:"width",transform:Dt});Me({prop:"size",cssProperty:"height",transform:Dt});const g$=Me({prop:"boxSizing"});Cc(d$,Fh,f$,h$,p$,m$,g$);const Qs={border:{themeKey:"borders",transform:Yt},borderTop:{themeKey:"borders",transform:Yt},borderRight:{themeKey:"borders",transform:Yt},borderBottom:{themeKey:"borders",transform:Yt},borderLeft:{themeKey:"borders",transform:Yt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Yt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Sc},color:{themeKey:"palette",transform:Wi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wi},backgroundColor:{themeKey:"palette",transform:Wi},p:{style:Re},pt:{style:Re},pr:{style:Re},pb:{style:Re},pl:{style:Re},px:{style:Re},py:{style:Re},padding:{style:Re},paddingTop:{style:Re},paddingRight:{style:Re},paddingBottom:{style:Re},paddingLeft:{style:Re},paddingX:{style:Re},paddingY:{style:Re},paddingInline:{style:Re},paddingInlineStart:{style:Re},paddingInlineEnd:{style:Re},paddingBlock:{style:Re},paddingBlockStart:{style:Re},paddingBlockEnd:{style:Re},m:{style:Ee},mt:{style:Ee},mr:{style:Ee},mb:{style:Ee},ml:{style:Ee},mx:{style:Ee},my:{style:Ee},margin:{style:Ee},marginTop:{style:Ee},marginRight:{style:Ee},marginBottom:{style:Ee},marginLeft:{style:Ee},marginX:{style:Ee},marginY:{style:Ee},marginInline:{style:Ee},marginInlineStart:{style:Ee},marginInlineEnd:{style:Ee},marginBlock:{style:Ee},marginBlockStart:{style:Ee},marginBlockEnd:{style:Ee},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:$c},rowGap:{style:Ic},columnGap:{style:Tc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Dt},maxWidth:{style:Fh},minWidth:{transform:Dt},height:{transform:Dt},maxHeight:{transform:Dt},minHeight:{transform:Dt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function v$(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function y$(e,t){return typeof e=="function"?e(t):e}function ab(){function e(n,r,i,o){const s={[n]:r,theme:i},l=o[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:c,transform:d,style:u}=l;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=oo(i,c)||{};return u?u(s):Yn(s,r,m=>{let g=Pa(f,d,m);return m===g&&typeof m=="string"&&(g=Pa(f,d,`${n}${m==="default"?"":X(m)}`,m)),a===!1?g:{[a]:g}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:Qs;function l(a){let c=a;if(typeof a=="function")c=a(o);else if(typeof a!="object")return a;if(!c)return null;const d=OS(o.breakpoints),u=Object.keys(d);let f=d;return Object.keys(c).forEach(v=>{const m=y$(c[v],o);if(m!=null)if(typeof m=="object")if(s[v])f=os(f,e(v,m,o,s));else{const g=Yn({theme:o},m,b=>({[v]:b}));v$(g,m)?f[v]=t({sx:m,theme:o}):f=os(f,g)}else f=os(f,e(v,m,o,s))}),_S(u,f)}return Array.isArray(i)?i.map(l):l(i)}return t}const Xs=ab();Xs.filterProps=["sx"];function cb(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 b$=["breakpoints","palette","spacing","shape"];function Ec(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=K(e,b$),l=ob(n),a=zS(i);let c=An({breakpoints:l,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:a,shape:T({},PS,o)},s);return c.applyStyles=cb,c=t.reduce((d,u)=>An(d,u),c),c.unstable_sxConfig=T({},Qs,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(u){return Xs({sx:u,theme:this})},c}const x$=Object.freeze(Object.defineProperty({__proto__:null,default:Ec,private_createBreakpoints:ob,unstable_applyStyles:cb},Symbol.toStringTag,{value:"Module"}));function w$(e){return Object.keys(e).length===0}function ub(e=null){const t=x.useContext(Ws);return!t||w$(t)?e:t}const k$=Ec();function Rc(e=k$){return ub(e)}function C$({styles:e,themeId:t,defaultTheme:n={}}){const r=Rc(n),i=typeof e=="function"?e(t&&r[t]||r):e;return C.jsx(nb,{styles:i})}const S$=["sx"],$$=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Qs;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function jh(e){const{sx:t}=e,n=K(e,S$),{systemProps:r,otherProps:i}=$$(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const l=t(...s);return dr(l)?T({},r,l):r}:o=T({},r,t),T({},i,{sx:o})}const T$=Object.freeze(Object.defineProperty({__proto__:null,default:Xs,extendSxProp:jh,unstable_createStyleFunctionSx:ab,unstable_defaultSxConfig:Qs},Symbol.toStringTag,{value:"Module"})),qm=e=>e,I$=()=>{let e=qm;return{configure(t){e=t},generate(t){return e(t)},reset(){e=qm}}},db=I$();function fb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;tl!=="theme"&&l!=="sx"&&l!=="as"})(Xs);return x.forwardRef(function(a,c){const d=Rc(n),u=jh(a),{className:f,component:v="div"}=u,m=K(u,E$);return C.jsx(o,T({as:v,ref:c,className:le(f,i?i(r):r),theme:t&&d[t]||d},m))})}const hb={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 Ge(e,t,n="Mui"){const r=hb[t];return r?`${n}-${r}`:`${db.generate(e)}-${t}`}function ze(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ge(e,i,n)}),r}var pb={exports:{}},de={};/** + */var We=typeof Symbol=="function"&&Symbol.for,Oh=We?Symbol.for("react.element"):60103,_h=We?Symbol.for("react.portal"):60106,pc=We?Symbol.for("react.fragment"):60107,mc=We?Symbol.for("react.strict_mode"):60108,gc=We?Symbol.for("react.profiler"):60114,vc=We?Symbol.for("react.provider"):60109,yc=We?Symbol.for("react.context"):60110,Ah=We?Symbol.for("react.async_mode"):60111,bc=We?Symbol.for("react.concurrent_mode"):60111,xc=We?Symbol.for("react.forward_ref"):60112,wc=We?Symbol.for("react.suspense"):60113,QC=We?Symbol.for("react.suspense_list"):60120,kc=We?Symbol.for("react.memo"):60115,Cc=We?Symbol.for("react.lazy"):60116,XC=We?Symbol.for("react.block"):60121,YC=We?Symbol.for("react.fundamental"):60117,KC=We?Symbol.for("react.responder"):60118,JC=We?Symbol.for("react.scope"):60119;function Ut(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Oh:switch(e=e.type,e){case Ah:case bc:case pc:case gc:case mc:case wc:return e;default:switch(e=e&&e.$$typeof,e){case yc:case xc:case Cc:case kc:case vc:return e;default:return t}}case _h:return t}}}function H0(e){return Ut(e)===bc}ue.AsyncMode=Ah;ue.ConcurrentMode=bc;ue.ContextConsumer=yc;ue.ContextProvider=vc;ue.Element=Oh;ue.ForwardRef=xc;ue.Fragment=pc;ue.Lazy=Cc;ue.Memo=kc;ue.Portal=_h;ue.Profiler=gc;ue.StrictMode=mc;ue.Suspense=wc;ue.isAsyncMode=function(e){return H0(e)||Ut(e)===Ah};ue.isConcurrentMode=H0;ue.isContextConsumer=function(e){return Ut(e)===yc};ue.isContextProvider=function(e){return Ut(e)===vc};ue.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Oh};ue.isForwardRef=function(e){return Ut(e)===xc};ue.isFragment=function(e){return Ut(e)===pc};ue.isLazy=function(e){return Ut(e)===Cc};ue.isMemo=function(e){return Ut(e)===kc};ue.isPortal=function(e){return Ut(e)===_h};ue.isProfiler=function(e){return Ut(e)===gc};ue.isStrictMode=function(e){return Ut(e)===mc};ue.isSuspense=function(e){return Ut(e)===wc};ue.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===pc||e===bc||e===gc||e===mc||e===wc||e===QC||typeof e=="object"&&e!==null&&(e.$$typeof===Cc||e.$$typeof===kc||e.$$typeof===vc||e.$$typeof===yc||e.$$typeof===xc||e.$$typeof===YC||e.$$typeof===KC||e.$$typeof===JC||e.$$typeof===XC)};ue.typeOf=Ut;V0.exports=ue;var ZC=V0.exports,U0=ZC,eS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},W0={};W0[U0.ForwardRef]=eS;W0[U0.Memo]=tS;var nS=!0;function rS(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var G0=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||nS===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},q0=function(t,n,r){G0(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function iS(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 oS={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},sS=/[A-Z]|^ms/g,lS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Q0=function(t){return t.charCodeAt(1)===45},Nm=function(t){return t!=null&&typeof t!="boolean"},Vu=A0(function(e){return Q0(e)?e:e.replace(sS,"-$&").toLowerCase()}),Fm=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(lS,function(r,i,o){return In={name:i,styles:o,next:In},i})}return oS[t]!==1&&!Q0(t)&&typeof n=="number"&&n!==0?n+"px":n};function _s(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 In={name:n.name,styles:n.styles,next:In},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)In={name:r.name,styles:r.styles,next:In},r=r.next;var i=n.styles+";";return i}return aS(e,t,n)}case"function":{if(e!==void 0){var o=In,s=n(e);return In=o,_s(e,t,s)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function aS(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?hS:pS},Hm=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},mS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return G0(n,r,i),uS(function(){return q0(n,r,i)}),null},gS=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var l=Hm(t,n,r),a=l||Vm(i),c=!a("as");return function(){var d=arguments,u=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&u.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{u.push(d[0][0]);for(var f=d.length,v=1;vt(SS(i)?n:i):t;return C.jsx(fS,{styles:r})}function rb(e,t){return ff(e,t)}const $S=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},TS=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:nb,StyledEngineProvider:CS,ThemeContext:Ws,css:Sc,default:rb,internal_processStyles:$S,keyframes:vo},Symbol.toStringTag,{value:"Module"}));function fr(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 ib(e){if(!fr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ib(e[n])}),t}function An(e,t,n={clone:!0}){const r=n.clone?T({},e):e;return fr(e)&&fr(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(fr(t[i])&&i in e&&fr(e[i])?r[i]=An(e[i],t[i],n):n.clone?r[i]=fr(t[i])?ib(t[i]):t[i]:r[i]=t[i])}),r}const IS=Object.freeze(Object.defineProperty({__proto__:null,default:An,isPlainObject:fr},Symbol.toStringTag,{value:"Module"})),ES=["values","unit","step"],RS=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)=>T({},n,{[r.key]:r.val}),{})};function ob(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=K(e,ES),o=RS(t),s=Object.keys(o);function l(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function a(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function c(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function d(f){return s.indexOf(f)+1`@media (min-width:${Mh[e]}px)`};function Kn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Wm;return t.reduce((s,l,a)=>(s[o.up(o.keys[a])]=n(t[a]),s),{})}if(typeof t=="object"){const o=r.breakpoints||Wm;return Object.keys(t).reduce((s,l)=>{if(Object.keys(o.values||Mh).indexOf(l)!==-1){const a=o.up(l);s[a]=n(t[l],l)}else{const a=l;s[a]=t[a]}return s},{})}return n(t)}function OS(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function _S(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function X(e){if(typeof e!="string")throw new Error(ii(7));return e.charAt(0).toUpperCase()+e.slice(1)}const AS=Object.freeze(Object.defineProperty({__proto__:null,default:X},Symbol.toStringTag,{value:"Module"}));function so(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Oa(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=so(e,n)||r,t&&(i=t(i,r,e)),i}function De(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const l=s[t],a=s.theme,c=so(a,r)||{};return Kn(s,l,u=>{let f=Oa(c,i,u);return u===f&&typeof u=="string"&&(f=Oa(c,i,`${t}${u==="default"?"":X(u)}`,u)),n===!1?f:{[n]:f}})};return o.propTypes={},o.filterProps=[t],o}function DS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const MS={m:"margin",p:"padding"},LS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Gm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},NS=DS(e=>{if(e.length>2)if(Gm[e])e=Gm[e];else return[e];const[t,n]=e.split(""),r=MS[t],i=LS[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Lh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Nh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Lh,...Nh];function Gs(e,t,n,r){var i;const o=(i=so(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function sb(e){return Gs(e,"spacing",8)}function qs(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 FS(e,t){return n=>e.reduce((r,i)=>(r[i]=qs(t,n),r),{})}function jS(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=NS(n),o=FS(i,r),s=e[n];return Kn(e,s,o)}function lb(e,t){const n=sb(e.theme);return Object.keys(e).map(r=>jS(e,t,r,n)).reduce(ss,{})}function Ee(e){return lb(e,Lh)}Ee.propTypes={};Ee.filterProps=Lh;function Re(e){return lb(e,Nh)}Re.propTypes={};Re.filterProps=Nh;function zS(e=8){if(e.mui)return e;const t=sb({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function $c(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?ss(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Yt(e){return typeof e!="number"?e:`${e}px solid`}function sn(e,t){return De({prop:e,themeKey:"borders",transform:t})}const BS=sn("border",Yt),VS=sn("borderTop",Yt),HS=sn("borderRight",Yt),US=sn("borderBottom",Yt),WS=sn("borderLeft",Yt),GS=sn("borderColor"),qS=sn("borderTopColor"),QS=sn("borderRightColor"),XS=sn("borderBottomColor"),YS=sn("borderLeftColor"),KS=sn("outline",Yt),JS=sn("outlineColor"),Tc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Gs(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:qs(t,r)});return Kn(e,e.borderRadius,n)}return null};Tc.propTypes={};Tc.filterProps=["borderRadius"];$c(BS,VS,HS,US,WS,GS,qS,QS,XS,YS,Tc,KS,JS);const Ic=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Gs(e.theme,"spacing",8),n=r=>({gap:qs(t,r)});return Kn(e,e.gap,n)}return null};Ic.propTypes={};Ic.filterProps=["gap"];const Ec=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Gs(e.theme,"spacing",8),n=r=>({columnGap:qs(t,r)});return Kn(e,e.columnGap,n)}return null};Ec.propTypes={};Ec.filterProps=["columnGap"];const Rc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Gs(e.theme,"spacing",8),n=r=>({rowGap:qs(t,r)});return Kn(e,e.rowGap,n)}return null};Rc.propTypes={};Rc.filterProps=["rowGap"];const ZS=De({prop:"gridColumn"}),e$=De({prop:"gridRow"}),t$=De({prop:"gridAutoFlow"}),n$=De({prop:"gridAutoColumns"}),r$=De({prop:"gridAutoRows"}),i$=De({prop:"gridTemplateColumns"}),o$=De({prop:"gridTemplateRows"}),s$=De({prop:"gridTemplateAreas"}),l$=De({prop:"gridArea"});$c(Ic,Ec,Rc,ZS,e$,t$,n$,r$,i$,o$,s$,l$);function Wi(e,t){return t==="grey"?t:e}const a$=De({prop:"color",themeKey:"palette",transform:Wi}),c$=De({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wi}),u$=De({prop:"backgroundColor",themeKey:"palette",transform:Wi});$c(a$,c$,u$);function Mt(e){return e<=1&&e!==0?`${e*100}%`:e}const d$=De({prop:"width",transform:Mt}),Fh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Mh[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Mt(n)}};return Kn(e,e.maxWidth,t)}return null};Fh.filterProps=["maxWidth"];const f$=De({prop:"minWidth",transform:Mt}),h$=De({prop:"height",transform:Mt}),p$=De({prop:"maxHeight",transform:Mt}),m$=De({prop:"minHeight",transform:Mt});De({prop:"size",cssProperty:"width",transform:Mt});De({prop:"size",cssProperty:"height",transform:Mt});const g$=De({prop:"boxSizing"});$c(d$,Fh,f$,h$,p$,m$,g$);const Qs={border:{themeKey:"borders",transform:Yt},borderTop:{themeKey:"borders",transform:Yt},borderRight:{themeKey:"borders",transform:Yt},borderBottom:{themeKey:"borders",transform:Yt},borderLeft:{themeKey:"borders",transform:Yt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Yt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Tc},color:{themeKey:"palette",transform:Wi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wi},backgroundColor:{themeKey:"palette",transform:Wi},p:{style:Re},pt:{style:Re},pr:{style:Re},pb:{style:Re},pl:{style:Re},px:{style:Re},py:{style:Re},padding:{style:Re},paddingTop:{style:Re},paddingRight:{style:Re},paddingBottom:{style:Re},paddingLeft:{style:Re},paddingX:{style:Re},paddingY:{style:Re},paddingInline:{style:Re},paddingInlineStart:{style:Re},paddingInlineEnd:{style:Re},paddingBlock:{style:Re},paddingBlockStart:{style:Re},paddingBlockEnd:{style:Re},m:{style:Ee},mt:{style:Ee},mr:{style:Ee},mb:{style:Ee},ml:{style:Ee},mx:{style:Ee},my:{style:Ee},margin:{style:Ee},marginTop:{style:Ee},marginRight:{style:Ee},marginBottom:{style:Ee},marginLeft:{style:Ee},marginX:{style:Ee},marginY:{style:Ee},marginInline:{style:Ee},marginInlineStart:{style:Ee},marginInlineEnd:{style:Ee},marginBlock:{style:Ee},marginBlockStart:{style:Ee},marginBlockEnd:{style:Ee},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:Ic},rowGap:{style:Rc},columnGap:{style:Ec},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Mt},maxWidth:{style:Fh},minWidth:{transform:Mt},height:{transform:Mt},maxHeight:{transform:Mt},minHeight:{transform:Mt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function v$(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function y$(e,t){return typeof e=="function"?e(t):e}function ab(){function e(n,r,i,o){const s={[n]:r,theme:i},l=o[n];if(!l)return{[n]:r};const{cssProperty:a=n,themeKey:c,transform:d,style:u}=l;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=so(i,c)||{};return u?u(s):Kn(s,r,g=>{let m=Oa(f,d,g);return g===m&&typeof g=="string"&&(m=Oa(f,d,`${n}${g==="default"?"":X(g)}`,g)),a===!1?m:{[a]:m}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:Qs;function l(a){let c=a;if(typeof a=="function")c=a(o);else if(typeof a!="object")return a;if(!c)return null;const d=OS(o.breakpoints),u=Object.keys(d);let f=d;return Object.keys(c).forEach(v=>{const g=y$(c[v],o);if(g!=null)if(typeof g=="object")if(s[v])f=ss(f,e(v,g,o,s));else{const m=Kn({theme:o},g,b=>({[v]:b}));v$(m,g)?f[v]=t({sx:g,theme:o}):f=ss(f,m)}else f=ss(f,e(v,g,o,s))}),_S(u,f)}return Array.isArray(i)?i.map(l):l(i)}return t}const Xs=ab();Xs.filterProps=["sx"];function cb(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 b$=["breakpoints","palette","spacing","shape"];function Pc(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=K(e,b$),l=ob(n),a=zS(i);let c=An({breakpoints:l,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:a,shape:T({},PS,o)},s);return c.applyStyles=cb,c=t.reduce((d,u)=>An(d,u),c),c.unstable_sxConfig=T({},Qs,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(u){return Xs({sx:u,theme:this})},c}const x$=Object.freeze(Object.defineProperty({__proto__:null,default:Pc,private_createBreakpoints:ob,unstable_applyStyles:cb},Symbol.toStringTag,{value:"Module"}));function w$(e){return Object.keys(e).length===0}function ub(e=null){const t=x.useContext(Ws);return!t||w$(t)?e:t}const k$=Pc();function Oc(e=k$){return ub(e)}function C$({styles:e,themeId:t,defaultTheme:n={}}){const r=Oc(n),i=typeof e=="function"?e(t&&r[t]||r):e;return C.jsx(nb,{styles:i})}const S$=["sx"],$$=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Qs;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function jh(e){const{sx:t}=e,n=K(e,S$),{systemProps:r,otherProps:i}=$$(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const l=t(...s);return fr(l)?T({},r,l):r}:o=T({},r,t),T({},i,{sx:o})}const T$=Object.freeze(Object.defineProperty({__proto__:null,default:Xs,extendSxProp:jh,unstable_createStyleFunctionSx:ab,unstable_defaultSxConfig:Qs},Symbol.toStringTag,{value:"Module"})),qm=e=>e,I$=()=>{let e=qm;return{configure(t){e=t},generate(t){return e(t)},reset(){e=qm}}},db=I$();function fb(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;tl!=="theme"&&l!=="sx"&&l!=="as"})(Xs);return x.forwardRef(function(a,c){const d=Oc(n),u=jh(a),{className:f,component:v="div"}=u,g=K(u,E$);return C.jsx(o,T({as:v,ref:c,className:le(f,i?i(r):r),theme:t&&d[t]||d},g))})}const hb={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 Ge(e,t,n="Mui"){const r=hb[t];return r?`${n}-${r}`:`${db.generate(e)}-${t}`}function ze(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ge(e,i,n)}),r}var pb={exports:{}},de={};/** * @license React * react-is.production.min.js * @@ -52,7 +52,7 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var zh=Symbol.for("react.element"),Bh=Symbol.for("react.portal"),Pc=Symbol.for("react.fragment"),Oc=Symbol.for("react.strict_mode"),_c=Symbol.for("react.profiler"),Ac=Symbol.for("react.provider"),Mc=Symbol.for("react.context"),P$=Symbol.for("react.server_context"),Dc=Symbol.for("react.forward_ref"),Lc=Symbol.for("react.suspense"),Nc=Symbol.for("react.suspense_list"),Fc=Symbol.for("react.memo"),jc=Symbol.for("react.lazy"),O$=Symbol.for("react.offscreen"),mb;mb=Symbol.for("react.module.reference");function ln(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zh:switch(e=e.type,e){case Pc:case _c:case Oc:case Lc:case Nc:return e;default:switch(e=e&&e.$$typeof,e){case P$:case Mc:case Dc:case jc:case Fc:case Ac:return e;default:return t}}case Bh:return t}}}de.ContextConsumer=Mc;de.ContextProvider=Ac;de.Element=zh;de.ForwardRef=Dc;de.Fragment=Pc;de.Lazy=jc;de.Memo=Fc;de.Portal=Bh;de.Profiler=_c;de.StrictMode=Oc;de.Suspense=Lc;de.SuspenseList=Nc;de.isAsyncMode=function(){return!1};de.isConcurrentMode=function(){return!1};de.isContextConsumer=function(e){return ln(e)===Mc};de.isContextProvider=function(e){return ln(e)===Ac};de.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zh};de.isForwardRef=function(e){return ln(e)===Dc};de.isFragment=function(e){return ln(e)===Pc};de.isLazy=function(e){return ln(e)===jc};de.isMemo=function(e){return ln(e)===Fc};de.isPortal=function(e){return ln(e)===Bh};de.isProfiler=function(e){return ln(e)===_c};de.isStrictMode=function(e){return ln(e)===Oc};de.isSuspense=function(e){return ln(e)===Lc};de.isSuspenseList=function(e){return ln(e)===Nc};de.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pc||e===_c||e===Oc||e===Lc||e===Nc||e===O$||typeof e=="object"&&e!==null&&(e.$$typeof===jc||e.$$typeof===Fc||e.$$typeof===Ac||e.$$typeof===Mc||e.$$typeof===Dc||e.$$typeof===mb||e.getModuleId!==void 0)};de.typeOf=ln;pb.exports=de;var Qm=pb.exports;const _$=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function gb(e){const t=`${e}`.match(_$);return t&&t[1]||""}function vb(e,t=""){return e.displayName||e.name||gb(e)||t}function Xm(e,t,n){const r=vb(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function A$(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return vb(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Qm.ForwardRef:return Xm(e,e.render,"ForwardRef");case Qm.Memo:return Xm(e,e.type,"memo");default:return}}}const M$=Object.freeze(Object.defineProperty({__proto__:null,default:A$,getFunctionName:gb},Symbol.toStringTag,{value:"Module"}));function D$(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}Ec();function yb(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=T({},o),Object.keys(i).forEach(s=>{n[r][s]=yb(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function L$(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:yb(t.components[n].defaultProps,r)}function N$({props:e,name:t,defaultTheme:n,themeId:r}){let i=Rc(n);return r&&(i=i[r]||i),L$({theme:i,name:t,props:e})}const Oa=typeof window<"u"?x.useLayoutEffect:x.useEffect;function bb(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const F$=Object.freeze(Object.defineProperty({__proto__:null,default:bb},Symbol.toStringTag,{value:"Module"}));function j$(e,t=0,n=1){return bb(e,t,n)}function z$(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,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function xb(e){if(e.type)return e;if(e.charAt(0)==="#")return xb(z$(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ii(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=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(i)===-1)throw new Error(ii(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function B$(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):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 pr(e,t){return e=xb(e),t=j$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,B$(e)}function Kl(e){return e&&e.ownerDocument||document}function hf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Ym=0;function V$(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(Ym+=1,n(`mui-${Ym}`))},[t]),r}const Km=pd.useId;function H$(e){if(Km!==void 0){const t=Km();return e??t}return V$(e)}function U$({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=x.useRef(e!==void 0),[o,s]=x.useState(t),l=i?e:o,a=x.useCallback(c=>{i||s(c)},[]);return[l,a]}function Zt(e){const t=x.useRef(e);return Oa(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function Bt(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{hf(n,t)})},e)}const Jm={};function W$(e,t){const n=x.useRef(Jm);return n.current===Jm&&(n.current=e(t)),n}const G$=[];function q$(e){x.useEffect(e,G$)}class zc{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new zc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function wb(){const e=W$(zc.create).current;return q$(e.disposeEffect),e}let Bc=!0,pf=!1;const Q$=new zc,X$={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 Y$(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&X$[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function K$(e){e.metaKey||e.altKey||e.ctrlKey||(Bc=!0)}function Hu(){Bc=!1}function J$(){this.visibilityState==="hidden"&&pf&&(Bc=!0)}function Z$(e){e.addEventListener("keydown",K$,!0),e.addEventListener("mousedown",Hu,!0),e.addEventListener("pointerdown",Hu,!0),e.addEventListener("touchstart",Hu,!0),e.addEventListener("visibilitychange",J$,!0)}function eT(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Bc||Y$(t)}function kb(){const e=x.useCallback(i=>{i!=null&&Z$(i.ownerDocument)},[]),t=x.useRef(!1);function n(){return t.current?(pf=!0,Q$.start(100,()=>{pf=!1}),t.current=!1,!0):!1}function r(i){return eT(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const Cb=e=>{const t=x.useRef({});return x.useEffect(()=>{t.current=e}),t.current};function qe(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const l=t(s);l!==""&&o.push(l),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const Sb=x.createContext(null);function $b(){return x.useContext(Sb)}const tT=typeof Symbol=="function"&&Symbol.for,nT=tT?Symbol.for("mui.nested"):"__THEME_NESTED__";function rT(e,t){return typeof t=="function"?t(e):T({},e,t)}function iT(e){const{children:t,theme:n}=e,r=$b(),i=x.useMemo(()=>{const o=r===null?n:rT(r,n);return o!=null&&(o[nT]=r!==null),o},[n,r]);return C.jsx(Sb.Provider,{value:i,children:t})}const oT=["value"],sT=x.createContext();function lT(e){let{value:t}=e,n=K(e,oT);return C.jsx(sT.Provider,T({value:t??!0},n))}const Zm={};function eg(e,t,n,r=!1){return x.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?T({},t,{[e]:o}):o;return r?()=>s:s}return e?T({},t,{[e]:n}):T({},t,n)},[e,t,n,r])}function aT(e){const{children:t,theme:n,themeId:r}=e,i=ub(Zm),o=$b()||Zm,s=eg(r,i,n),l=eg(r,o,n,!0),a=s.direction==="rtl";return C.jsx(iT,{theme:l,children:C.jsx(Ws.Provider,{value:s,children:C.jsx(lT,{value:a,children:t})})})}function cT(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var De={},Tb={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})(Tb);var Ib=Tb.exports;const uT=Pr(vC),dT=Pr(F$);var Eb=Ib;Object.defineProperty(De,"__esModule",{value:!0});var si=De.alpha=_b;De.blend=kT;De.colorChannel=void 0;var Vh=De.darken=Wh;De.decomposeColor=rn;De.emphasize=Ab;var fT=De.getContrastRatio=vT;De.getLuminance=_a;De.hexToRgb=Rb;De.hslToRgb=Ob;var Hh=De.lighten=Gh;De.private_safeAlpha=yT;De.private_safeColorChannel=void 0;De.private_safeDarken=bT;De.private_safeEmphasize=wT;De.private_safeLighten=xT;De.recomposeColor=vo;De.rgbToHex=gT;var tg=Eb(uT),hT=Eb(dT);function Uh(e,t=0,n=1){return(0,hT.default)(e,t,n)}function Rb(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,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function pT(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function rn(e){if(e.type)return e;if(e.charAt(0)==="#")return rn(Rb(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,tg.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=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(i)===-1)throw new Error((0,tg.default)(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const Pb=e=>{const t=rn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};De.colorChannel=Pb;const mT=(e,t)=>{try{return Pb(e)}catch{return e}};De.private_safeColorChannel=mT;function vo(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):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 gT(e){if(e.indexOf("#")===0)return e;const{values:t}=rn(e);return`#${t.map((n,r)=>pT(r===3?Math.round(255*n):n)).join("")}`}function Ob(e){e=rn(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(c,d=(c+n/30)%12)=>i-o*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),vo({type:l,values:a})}function _a(e){e=rn(e);let t=e.type==="hsl"||e.type==="hsla"?rn(Ob(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 vT(e,t){const n=_a(e),r=_a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function _b(e,t){return e=rn(e),t=Uh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vo(e)}function yT(e,t,n){try{return _b(e,t)}catch{return e}}function Wh(e,t){if(e=rn(e),t=Uh(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 vo(e)}function bT(e,t,n){try{return Wh(e,t)}catch{return e}}function Gh(e,t){if(e=rn(e),t=Uh(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 vo(e)}function xT(e,t,n){try{return Gh(e,t)}catch{return e}}function Ab(e,t=.15){return _a(e)>.5?Wh(e,t):Gh(e,t)}function wT(e,t,n){try{return Ab(e,t)}catch{return e}}function kT(e,t,n,r=1){const i=(a,c)=>Math.round((a**(1/r)*(1-n)+c**(1/r)*n)**r),o=rn(e),s=rn(t),l=[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])];return vo({type:"rgb",values:l})}const CT=["mode","contrastThreshold","tonalOffset"],ng={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:Rs.white,default:Rs.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}},Uu={text:{primary:Rs.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:Rs.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 rg(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Hh(e.main,i):t==="dark"&&(e.dark=Vh(e.main,o)))}function ST(e="light"){return e==="dark"?{main:yi[200],light:yi[50],dark:yi[400]}:{main:yi[700],light:yi[400],dark:yi[800]}}function $T(e="light"){return e==="dark"?{main:Sn[200],light:Sn[50],dark:Sn[400]}:{main:Sn[500],light:Sn[300],dark:Sn[700]}}function TT(e="light"){return e==="dark"?{main:vi[500],light:vi[300],dark:vi[700]}:{main:vi[700],light:vi[400],dark:vi[800]}}function IT(e="light"){return e==="dark"?{main:bi[400],light:bi[300],dark:bi[700]}:{main:bi[700],light:bi[500],dark:bi[900]}}function ET(e="light"){return e==="dark"?{main:xi[400],light:xi[300],dark:xi[700]}:{main:xi[800],light:xi[500],dark:xi[900]}}function RT(e="light"){return e==="dark"?{main:Fo[400],light:Fo[300],dark:Fo[700]}:{main:"#ed6c02",light:Fo[500],dark:Fo[900]}}function PT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=K(e,CT),o=e.primary||ST(t),s=e.secondary||$T(t),l=e.error||TT(t),a=e.info||IT(t),c=e.success||ET(t),d=e.warning||RT(t);function u(g){return fT(g,Uu.text.primary)>=n?Uu.text.primary:ng.text.primary}const f=({color:g,name:b,mainShade:p=500,lightShade:h=300,darkShade:y=700})=>{if(g=T({},g),!g.main&&g[p]&&(g.main=g[p]),!g.hasOwnProperty("main"))throw new Error(ii(11,b?` (${b})`:"",p));if(typeof g.main!="string")throw new Error(ii(12,b?` (${b})`:"",JSON.stringify(g.main)));return rg(g,"light",h,r),rg(g,"dark",y,r),g.contrastText||(g.contrastText=u(g.main)),g},v={dark:Uu,light:ng};return An(T({common:T({},Rs),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:a,name:"info"}),success:f({color:c,name:"success"}),grey:gC,contrastThreshold:n,getContrastText:u,augmentColor:f,tonalOffset:r},v[t]),i)}const OT=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function _T(e){return Math.round(e*1e5)/1e5}const ig={textTransform:"uppercase"},og='"Roboto", "Helvetica", "Arial", sans-serif';function AT(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=og,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,f=K(n,OT),v=i/14,m=u||(p=>`${p/c*v}rem`),g=(p,h,y,w,k)=>T({fontFamily:r,fontWeight:p,fontSize:m(h),lineHeight:y},r===og?{letterSpacing:`${_T(w/h)}em`}:{},k,d),b={h1:g(o,96,1.167,-1.5),h2:g(o,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(l,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(l,14,1.75,.4,ig),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,ig),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return An(T({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:a},b),f,{clone:!1})}const MT=.2,DT=.14,LT=.12;function ge(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${MT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${DT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${LT})`].join(",")}const NT=["none",ge(0,2,1,-1,0,1,1,0,0,1,3,0),ge(0,3,1,-2,0,2,2,0,0,1,5,0),ge(0,3,3,-2,0,3,4,0,0,1,8,0),ge(0,2,4,-1,0,4,5,0,0,1,10,0),ge(0,3,5,-1,0,5,8,0,0,1,14,0),ge(0,3,5,-1,0,6,10,0,0,1,18,0),ge(0,4,5,-2,0,7,10,1,0,2,16,1),ge(0,5,5,-3,0,8,10,1,0,3,14,2),ge(0,5,6,-3,0,9,12,1,0,3,16,2),ge(0,6,6,-3,0,10,14,1,0,4,18,3),ge(0,6,7,-4,0,11,15,1,0,4,20,3),ge(0,7,8,-4,0,12,17,2,0,5,22,4),ge(0,7,8,-4,0,13,19,2,0,5,24,4),ge(0,7,9,-4,0,14,21,2,0,5,26,4),ge(0,8,9,-5,0,15,22,2,0,6,28,5),ge(0,8,10,-5,0,16,24,2,0,6,30,5),ge(0,8,11,-5,0,17,26,2,0,6,32,5),ge(0,9,11,-5,0,18,28,2,0,7,34,6),ge(0,9,12,-6,0,19,29,2,0,7,36,6),ge(0,10,13,-6,0,20,31,3,0,8,38,7),ge(0,10,13,-6,0,21,33,3,0,8,40,7),ge(0,10,14,-6,0,22,35,3,0,8,42,7),ge(0,11,14,-7,0,23,36,3,0,9,44,8),ge(0,11,15,-7,0,24,38,3,0,9,46,8)],FT=["duration","easing","delay"],jT={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)"},Mb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function sg(e){return`${Math.round(e)}ms`}function zT(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function BT(e){const t=T({},jT,e.easing),n=T({},Mb,e.duration);return T({getAutoHeightDuration:zT,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:a=0}=o;return K(o,FT),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof s=="string"?s:sg(s)} ${l} ${typeof a=="string"?a:sg(a)}`).join(",")}},e,{easing:t,duration:n})}const VT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},HT=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function qh(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=K(e,HT);if(e.vars)throw new Error(ii(18));const l=PT(r),a=Ec(e);let c=An(a,{mixins:cT(a.breakpoints,n),palette:l,shadows:NT.slice(),typography:AT(l,o),transitions:BT(i),zIndex:T({},VT)});return c=An(c,s),c=t.reduce((d,u)=>An(d,u),c),c.unstable_sxConfig=T({},Qs,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(u){return Xs({sx:u,theme:this})},c}const Vc=qh();function Hc(){const e=Rc(Vc);return e[oi]||e}function Ze({props:e,name:t}){return N$({props:e,name:t,defaultTheme:Vc,themeId:oi})}var Ys={},Wu={exports:{}},lg;function UT(){return lg||(lg=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){if(r.indexOf(o)>=0)continue;i[o]=n[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Wu)),Wu.exports}const WT=Pr(TS),GT=Pr(IS),qT=Pr(AS),QT=Pr(M$),XT=Pr(x$),YT=Pr(T$);var yo=Ib;Object.defineProperty(Ys,"__esModule",{value:!0});var KT=Ys.default=uI;Ys.shouldForwardProp=Jl;Ys.systemDefaultTheme=void 0;var Gt=yo(J0()),mf=yo(UT()),ag=iI(WT),JT=GT;yo(qT);yo(QT);var ZT=yo(XT),eI=yo(YT);const tI=["ownerState"],nI=["variants"],rI=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Db(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Db=function(r){return r?n:t})(e)}function iI(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Db(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function oI(e){return Object.keys(e).length===0}function sI(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Jl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const lI=Ys.systemDefaultTheme=(0,ZT.default)(),aI=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function $l({defaultTheme:e,theme:t,themeId:n}){return oI(t)?e:t[n]||t}function cI(e){return e?(t,n)=>n[e]:null}function Zl(e,t){let{ownerState:n}=t,r=(0,mf.default)(t,tI);const i=typeof e=="function"?e((0,Gt.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>Zl(o,(0,Gt.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let l=(0,mf.default)(i,nI);return o.forEach(a=>{let c=!0;typeof a.props=="function"?c=a.props((0,Gt.default)({ownerState:n},r,n)):Object.keys(a.props).forEach(d=>{(n==null?void 0:n[d])!==a.props[d]&&r[d]!==a.props[d]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof a.style=="function"?a.style((0,Gt.default)({ownerState:n},r,n)):a.style))}),l}return i}function uI(e={}){const{themeId:t,defaultTheme:n=lI,rootShouldForwardProp:r=Jl,slotShouldForwardProp:i=Jl}=e,o=s=>(0,eI.default)((0,Gt.default)({},s,{theme:$l((0,Gt.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,l={})=>{(0,ag.internal_processStyles)(s,k=>k.filter($=>!($!=null&&$.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:d,skipSx:u,overridesResolver:f=cI(aI(c))}=l,v=(0,mf.default)(l,rI),m=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,g=u||!1;let b,p=Jl;c==="Root"||c==="root"?p=r:c?p=i:sI(s)&&(p=void 0);const h=(0,ag.default)(s,(0,Gt.default)({shouldForwardProp:p,label:b},v)),y=k=>typeof k=="function"&&k.__emotion_real!==k||(0,JT.isPlainObject)(k)?$=>Zl(k,(0,Gt.default)({},$,{theme:$l({theme:$.theme,defaultTheme:n,themeId:t})})):k,w=(k,...$)=>{let I=y(k);const R=$?$.map(y):[];a&&f&&R.push(P=>{const O=$l((0,Gt.default)({},P,{defaultTheme:n,themeId:t}));if(!O.components||!O.components[a]||!O.components[a].styleOverrides)return null;const j=O.components[a].styleOverrides,z={};return Object.entries(j).forEach(([V,q])=>{z[V]=Zl(q,(0,Gt.default)({},P,{theme:O}))}),f(P,z)}),a&&!m&&R.push(P=>{var O;const j=$l((0,Gt.default)({},P,{defaultTheme:n,themeId:t})),z=j==null||(O=j.components)==null||(O=O[a])==null?void 0:O.variants;return Zl({variants:z},(0,Gt.default)({},P,{theme:j}))}),g||R.push(o);const B=R.length-$.length;if(Array.isArray(k)&&B>0){const P=new Array(B).fill("");I=[...k,...P],I.raw=[...k.raw,...P]}const M=h(I,...R);return s.muiName&&(M.muiName=s.muiName),M};return h.withConfig&&(w.withConfig=h.withConfig),w}}function dI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Lb=e=>dI(e)&&e!=="classes",ee=KT({themeId:oi,defaultTheme:Vc,rootShouldForwardProp:Lb}),fI=["theme"];function hI(e){let{theme:t}=e,n=K(e,fI);const r=t[oi];return C.jsx(aT,T({},n,{themeId:r?oi:void 0,theme:r||t}))}function pI(e){return Ge("MuiSvgIcon",e)}ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mI=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gI=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${X(t)}`,`fontSize${X(n)}`]};return qe(i,pI,r)},vI=ee("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${X(n.color)}`],t[`fontSize${X(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,l,a,c,d,u,f,v,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:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((l=e.typography)==null||(a=l.pxToRem)==null?void 0:a.call(l,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(u=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?u:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),gf=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:l="svg",fontSize:a="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:f="0 0 24 24"}=r,v=K(r,mI),m=x.isValidElement(i)&&i.type==="svg",g=T({},r,{color:s,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:m}),b={};d||(b.viewBox=f);const p=gI(g);return C.jsxs(vI,T({as:l,className:le(p.root,o),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:n},b,v,m&&i.props,{ownerState:g,children:[m?i.props.children:i,u?C.jsx("title",{children:u}):null]}))});gf.muiName="SvgIcon";function Nb(e,t){function n(r,i){return C.jsx(gf,T({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=gf.muiName,x.memo(x.forwardRef(n))}function Fb(e){return Ze}function vf(e,t){return vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vf(e,t)}function jb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vf(e,t)}const cg={disabled:!1},Aa=St.createContext(null);var yI=function(t){return t.scrollTop},Xo="unmounted",zr="exited",Br="entering",ki="entered",yf="exiting",Ln=function(e){jb(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,l=s&&!s.isMounting?r.enter:r.appear,a;return o.appearStatus=null,r.in?l?(a=zr,o.appearStatus=Br):a=ki:r.unmountOnExit||r.mountOnEnter?a=Xo:a=zr,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Xo?{status:zr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Br&&s!==ki&&(o=Br):(s===Br||s===ki)&&(o=yf)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,l;return o=s=l=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:l}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Br){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Cl.findDOMNode(this);s&&yI(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zr&&this.setState({status:Xo})},n.performEnter=function(i){var o=this,s=this.props.enter,l=this.context?this.context.isMounting:i,a=this.props.nodeRef?[l]:[Cl.findDOMNode(this),l],c=a[0],d=a[1],u=this.getTimeouts(),f=l?u.appear:u.enter;if(!i&&!s||cg.disabled){this.safeSetState({status:ki},function(){o.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Br},function(){o.props.onEntering(c,d),o.onTransitionEnd(f,function(){o.safeSetState({status:ki},function(){o.props.onEntered(c,d)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Cl.findDOMNode(this);if(!o||cg.disabled){this.safeSetState({status:zr},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:yf},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:zr},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,o.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Cl.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=a[0],d=a[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Xo)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=K(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return St.createElement(Aa.Provider,{value:null},typeof s=="function"?s(i,l):St.cloneElement(St.Children.only(s),l))},t}(St.Component);Ln.contextType=Aa;Ln.propTypes={};function wi(){}Ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wi,onEntering:wi,onEntered:wi,onExit:wi,onExiting:wi,onExited:wi};Ln.UNMOUNTED=Xo;Ln.EXITED=zr;Ln.ENTERING=Br;Ln.ENTERED=ki;Ln.EXITING=yf;function bI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qh(e,t){var n=function(o){return t&&x.isValidElement(o)?t(o):o},r=Object.create(null);return e&&x.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function xI(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,l={};for(var a in t){if(r[a])for(s=0;se.scrollTop;function Ma(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function TI(e){return Ge("MuiCollapse",e)}ze("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const II=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],EI=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return qe(r,TI,n)},RI=ee("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),PI=ee("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),OI=ee("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Yh=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:l="0px",component:a,easing:c,in:d,onEnter:u,onEntered:f,onEntering:v,onExit:m,onExited:g,onExiting:b,orientation:p="vertical",style:h,timeout:y=Mb.standard,TransitionComponent:w=Ln}=r,k=K(r,II),$=T({},r,{orientation:p,collapsedSize:l}),I=EI($),R=Hc(),B=wb(),M=x.useRef(null),P=x.useRef(),O=typeof l=="number"?`${l}px`:l,j=p==="horizontal",z=j?"width":"height",V=x.useRef(null),q=Bt(n,V),W=U=>xe=>{if(U){const dt=V.current;xe===void 0?U(dt):U(dt,xe)}},_=()=>M.current?M.current[j?"clientWidth":"clientHeight"]:0,D=W((U,xe)=>{M.current&&j&&(M.current.style.position="absolute"),U.style[z]=O,u&&u(U,xe)}),H=W((U,xe)=>{const dt=_();M.current&&j&&(M.current.style.position="");const{duration:Qe,easing:wn}=Ma({style:h,timeout:y,easing:c},{mode:"enter"});if(y==="auto"){const mi=R.transitions.getAutoHeightDuration(dt);U.style.transitionDuration=`${mi}ms`,P.current=mi}else U.style.transitionDuration=typeof Qe=="string"?Qe:`${Qe}ms`;U.style[z]=`${dt}px`,U.style.transitionTimingFunction=wn,v&&v(U,xe)}),re=W((U,xe)=>{U.style[z]="auto",f&&f(U,xe)}),ae=W(U=>{U.style[z]=`${_()}px`,m&&m(U)}),At=W(g),Ie=W(U=>{const xe=_(),{duration:dt,easing:Qe}=Ma({style:h,timeout:y,easing:c},{mode:"exit"});if(y==="auto"){const wn=R.transitions.getAutoHeightDuration(xe);U.style.transitionDuration=`${wn}ms`,P.current=wn}else U.style.transitionDuration=typeof dt=="string"?dt:`${dt}ms`;U.style[z]=O,U.style.transitionTimingFunction=Qe,b&&b(U)}),et=U=>{y==="auto"&&B.start(P.current||0,U),i&&i(V.current,U)};return C.jsx(w,T({in:d,onEnter:D,onEntered:re,onEntering:H,onExit:ae,onExited:At,onExiting:Ie,addEndListener:et,nodeRef:V,timeout:y==="auto"?null:y},k,{children:(U,xe)=>C.jsx(RI,T({as:a,className:le(I.root,s,{entered:I.entered,exited:!d&&O==="0px"&&I.hidden}[U]),style:T({[j?"minWidth":"minHeight"]:O},h),ref:q},xe,{ownerState:T({},$,{state:U}),children:C.jsx(PI,{ownerState:T({},$,{state:U}),className:I.wrapper,ref:M,children:C.jsx(OI,{ownerState:T({},$,{state:U}),className:I.wrapperInner,children:o})})}))}))});Yh.muiSupportAuto=!0;function _I(e){return typeof e=="string"}function AI(e,t,n){return e===void 0||_I(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}const MI={disableDefaultClasses:!1},DI=x.createContext(MI);function LI(e){const{disableDefaultClasses:t}=x.useContext(DI);return n=>t?"":e(n)}function sr(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 zn(e,t,n){return typeof e=="function"?e(t,n):e}function ug(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 NI(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const v=le(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),m=T({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),g=T({},n,i,r);return v.length>0&&(g.className=v),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:void 0}}const s=sr(T({},i,r)),l=ug(r),a=ug(i),c=t(s),d=le(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),u=T({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=T({},c,n,a,l);return d.length>0&&(f.className=d),Object.keys(u).length>0&&(f.style=u),{props:f,internalRef:c.ref}}const FI=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function En(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=K(e,FI),l=o?{}:zn(r,i),{props:a,internalRef:c}=NI(T({},s,{externalSlotProps:l})),d=Bt(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return AI(n,T({},a,{ref:d}),i)}function jI(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:l,onExited:a,timeout:c}=e,[d,u]=x.useState(!1),f=le(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},m=le(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&u(!0),x.useEffect(()=>{if(!l&&a!=null){const g=setTimeout(a,c);return()=>{clearTimeout(g)}}},[a,l,c]),C.jsx("span",{className:f,style:v,children:C.jsx("span",{className:m})})}const qt=ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zI=["center","classes","className"];let Uc=e=>e,dg,fg,hg,pg;const bf=550,BI=80,VI=go(dg||(dg=Uc` + */var zh=Symbol.for("react.element"),Bh=Symbol.for("react.portal"),_c=Symbol.for("react.fragment"),Ac=Symbol.for("react.strict_mode"),Dc=Symbol.for("react.profiler"),Mc=Symbol.for("react.provider"),Lc=Symbol.for("react.context"),P$=Symbol.for("react.server_context"),Nc=Symbol.for("react.forward_ref"),Fc=Symbol.for("react.suspense"),jc=Symbol.for("react.suspense_list"),zc=Symbol.for("react.memo"),Bc=Symbol.for("react.lazy"),O$=Symbol.for("react.offscreen"),mb;mb=Symbol.for("react.module.reference");function ln(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zh:switch(e=e.type,e){case _c:case Dc:case Ac:case Fc:case jc:return e;default:switch(e=e&&e.$$typeof,e){case P$:case Lc:case Nc:case Bc:case zc:case Mc:return e;default:return t}}case Bh:return t}}}de.ContextConsumer=Lc;de.ContextProvider=Mc;de.Element=zh;de.ForwardRef=Nc;de.Fragment=_c;de.Lazy=Bc;de.Memo=zc;de.Portal=Bh;de.Profiler=Dc;de.StrictMode=Ac;de.Suspense=Fc;de.SuspenseList=jc;de.isAsyncMode=function(){return!1};de.isConcurrentMode=function(){return!1};de.isContextConsumer=function(e){return ln(e)===Lc};de.isContextProvider=function(e){return ln(e)===Mc};de.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zh};de.isForwardRef=function(e){return ln(e)===Nc};de.isFragment=function(e){return ln(e)===_c};de.isLazy=function(e){return ln(e)===Bc};de.isMemo=function(e){return ln(e)===zc};de.isPortal=function(e){return ln(e)===Bh};de.isProfiler=function(e){return ln(e)===Dc};de.isStrictMode=function(e){return ln(e)===Ac};de.isSuspense=function(e){return ln(e)===Fc};de.isSuspenseList=function(e){return ln(e)===jc};de.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_c||e===Dc||e===Ac||e===Fc||e===jc||e===O$||typeof e=="object"&&e!==null&&(e.$$typeof===Bc||e.$$typeof===zc||e.$$typeof===Mc||e.$$typeof===Lc||e.$$typeof===Nc||e.$$typeof===mb||e.getModuleId!==void 0)};de.typeOf=ln;pb.exports=de;var Qm=pb.exports;const _$=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function gb(e){const t=`${e}`.match(_$);return t&&t[1]||""}function vb(e,t=""){return e.displayName||e.name||gb(e)||t}function Xm(e,t,n){const r=vb(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function A$(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return vb(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Qm.ForwardRef:return Xm(e,e.render,"ForwardRef");case Qm.Memo:return Xm(e,e.type,"memo");default:return}}}const D$=Object.freeze(Object.defineProperty({__proto__:null,default:A$,getFunctionName:gb},Symbol.toStringTag,{value:"Module"}));function M$(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}Pc();function yb(e,t){const n=T({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=T({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=T({},o),Object.keys(i).forEach(s=>{n[r][s]=yb(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function L$(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:yb(t.components[n].defaultProps,r)}function N$({props:e,name:t,defaultTheme:n,themeId:r}){let i=Oc(n);return r&&(i=i[r]||i),L$({theme:i,name:t,props:e})}const _a=typeof window<"u"?x.useLayoutEffect:x.useEffect;function bb(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const F$=Object.freeze(Object.defineProperty({__proto__:null,default:bb},Symbol.toStringTag,{value:"Module"}));function j$(e,t=0,n=1){return bb(e,t,n)}function z$(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,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function xb(e){if(e.type)return e;if(e.charAt(0)==="#")return xb(z$(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ii(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=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(i)===-1)throw new Error(ii(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function B$(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):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 mr(e,t){return e=xb(e),t=j$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,B$(e)}function Jl(e){return e&&e.ownerDocument||document}function pf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Ym=0;function V$(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(Ym+=1,n(`mui-${Ym}`))},[t]),r}const Km=md.useId;function H$(e){if(Km!==void 0){const t=Km();return e??t}return V$(e)}function U$({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=x.useRef(e!==void 0),[o,s]=x.useState(t),l=i?e:o,a=x.useCallback(c=>{i||s(c)},[]);return[l,a]}function Zt(e){const t=x.useRef(e);return _a(()=>{t.current=e}),x.useRef((...n)=>(0,t.current)(...n)).current}function Bt(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{pf(n,t)})},e)}const Jm={};function W$(e,t){const n=x.useRef(Jm);return n.current===Jm&&(n.current=e(t)),n}const G$=[];function q$(e){x.useEffect(e,G$)}class Vc{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Vc}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function wb(){const e=W$(Vc.create).current;return q$(e.disposeEffect),e}let Hc=!0,mf=!1;const Q$=new Vc,X$={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 Y$(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&X$[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function K$(e){e.metaKey||e.altKey||e.ctrlKey||(Hc=!0)}function Uu(){Hc=!1}function J$(){this.visibilityState==="hidden"&&mf&&(Hc=!0)}function Z$(e){e.addEventListener("keydown",K$,!0),e.addEventListener("mousedown",Uu,!0),e.addEventListener("pointerdown",Uu,!0),e.addEventListener("touchstart",Uu,!0),e.addEventListener("visibilitychange",J$,!0)}function eT(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Hc||Y$(t)}function kb(){const e=x.useCallback(i=>{i!=null&&Z$(i.ownerDocument)},[]),t=x.useRef(!1);function n(){return t.current?(mf=!0,Q$.start(100,()=>{mf=!1}),t.current=!1,!0):!1}function r(i){return eT(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const Cb=e=>{const t=x.useRef({});return x.useEffect(()=>{t.current=e}),t.current};function qe(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const l=t(s);l!==""&&o.push(l),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const Sb=x.createContext(null);function $b(){return x.useContext(Sb)}const tT=typeof Symbol=="function"&&Symbol.for,nT=tT?Symbol.for("mui.nested"):"__THEME_NESTED__";function rT(e,t){return typeof t=="function"?t(e):T({},e,t)}function iT(e){const{children:t,theme:n}=e,r=$b(),i=x.useMemo(()=>{const o=r===null?n:rT(r,n);return o!=null&&(o[nT]=r!==null),o},[n,r]);return C.jsx(Sb.Provider,{value:i,children:t})}const oT=["value"],sT=x.createContext();function lT(e){let{value:t}=e,n=K(e,oT);return C.jsx(sT.Provider,T({value:t??!0},n))}const Zm={};function eg(e,t,n,r=!1){return x.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?T({},t,{[e]:o}):o;return r?()=>s:s}return e?T({},t,{[e]:n}):T({},t,n)},[e,t,n,r])}function aT(e){const{children:t,theme:n,themeId:r}=e,i=ub(Zm),o=$b()||Zm,s=eg(r,i,n),l=eg(r,o,n,!0),a=s.direction==="rtl";return C.jsx(iT,{theme:l,children:C.jsx(Ws.Provider,{value:s,children:C.jsx(lT,{value:a,children:t})})})}function cT(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Me={},Tb={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})(Tb);var Ib=Tb.exports;const uT=Or(vC),dT=Or(F$);var Eb=Ib;Object.defineProperty(Me,"__esModule",{value:!0});var si=Me.alpha=_b;Me.blend=kT;Me.colorChannel=void 0;var Vh=Me.darken=Wh;Me.decomposeColor=rn;Me.emphasize=Ab;var fT=Me.getContrastRatio=vT;Me.getLuminance=Aa;Me.hexToRgb=Rb;Me.hslToRgb=Ob;var Hh=Me.lighten=Gh;Me.private_safeAlpha=yT;Me.private_safeColorChannel=void 0;Me.private_safeDarken=bT;Me.private_safeEmphasize=wT;Me.private_safeLighten=xT;Me.recomposeColor=yo;Me.rgbToHex=gT;var tg=Eb(uT),hT=Eb(dT);function Uh(e,t=0,n=1){return(0,hT.default)(e,t,n)}function Rb(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,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function pT(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function rn(e){if(e.type)return e;if(e.charAt(0)==="#")return rn(Rb(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,tg.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=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(i)===-1)throw new Error((0,tg.default)(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const Pb=e=>{const t=rn(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Me.colorChannel=Pb;const mT=(e,t)=>{try{return Pb(e)}catch{return e}};Me.private_safeColorChannel=mT;function yo(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):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 gT(e){if(e.indexOf("#")===0)return e;const{values:t}=rn(e);return`#${t.map((n,r)=>pT(r===3?Math.round(255*n):n)).join("")}`}function Ob(e){e=rn(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(c,d=(c+n/30)%12)=>i-o*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const a=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",a.push(t[3])),yo({type:l,values:a})}function Aa(e){e=rn(e);let t=e.type==="hsl"||e.type==="hsla"?rn(Ob(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 vT(e,t){const n=Aa(e),r=Aa(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function _b(e,t){return e=rn(e),t=Uh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,yo(e)}function yT(e,t,n){try{return _b(e,t)}catch{return e}}function Wh(e,t){if(e=rn(e),t=Uh(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 yo(e)}function bT(e,t,n){try{return Wh(e,t)}catch{return e}}function Gh(e,t){if(e=rn(e),t=Uh(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 yo(e)}function xT(e,t,n){try{return Gh(e,t)}catch{return e}}function Ab(e,t=.15){return Aa(e)>.5?Wh(e,t):Gh(e,t)}function wT(e,t,n){try{return Ab(e,t)}catch{return e}}function kT(e,t,n,r=1){const i=(a,c)=>Math.round((a**(1/r)*(1-n)+c**(1/r)*n)**r),o=rn(e),s=rn(t),l=[i(o.values[0],s.values[0]),i(o.values[1],s.values[1]),i(o.values[2],s.values[2])];return yo({type:"rgb",values:l})}const CT=["mode","contrastThreshold","tonalOffset"],ng={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:Rs.white,default:Rs.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}},Wu={text:{primary:Rs.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:Rs.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 rg(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Hh(e.main,i):t==="dark"&&(e.dark=Vh(e.main,o)))}function ST(e="light"){return e==="dark"?{main:yi[200],light:yi[50],dark:yi[400]}:{main:yi[700],light:yi[400],dark:yi[800]}}function $T(e="light"){return e==="dark"?{main:$n[200],light:$n[50],dark:$n[400]}:{main:$n[500],light:$n[300],dark:$n[700]}}function TT(e="light"){return e==="dark"?{main:vi[500],light:vi[300],dark:vi[700]}:{main:vi[700],light:vi[400],dark:vi[800]}}function IT(e="light"){return e==="dark"?{main:bi[400],light:bi[300],dark:bi[700]}:{main:bi[700],light:bi[500],dark:bi[900]}}function ET(e="light"){return e==="dark"?{main:xi[400],light:xi[300],dark:xi[700]}:{main:xi[800],light:xi[500],dark:xi[900]}}function RT(e="light"){return e==="dark"?{main:jo[400],light:jo[300],dark:jo[700]}:{main:"#ed6c02",light:jo[500],dark:jo[900]}}function PT(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=K(e,CT),o=e.primary||ST(t),s=e.secondary||$T(t),l=e.error||TT(t),a=e.info||IT(t),c=e.success||ET(t),d=e.warning||RT(t);function u(m){return fT(m,Wu.text.primary)>=n?Wu.text.primary:ng.text.primary}const f=({color:m,name:b,mainShade:p=500,lightShade:h=300,darkShade:y=700})=>{if(m=T({},m),!m.main&&m[p]&&(m.main=m[p]),!m.hasOwnProperty("main"))throw new Error(ii(11,b?` (${b})`:"",p));if(typeof m.main!="string")throw new Error(ii(12,b?` (${b})`:"",JSON.stringify(m.main)));return rg(m,"light",h,r),rg(m,"dark",y,r),m.contrastText||(m.contrastText=u(m.main)),m},v={dark:Wu,light:ng};return An(T({common:T({},Rs),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:a,name:"info"}),success:f({color:c,name:"success"}),grey:gC,contrastThreshold:n,getContrastText:u,augmentColor:f,tonalOffset:r},v[t]),i)}const OT=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function _T(e){return Math.round(e*1e5)/1e5}const ig={textTransform:"uppercase"},og='"Roboto", "Helvetica", "Arial", sans-serif';function AT(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=og,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:a=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,f=K(n,OT),v=i/14,g=u||(p=>`${p/c*v}rem`),m=(p,h,y,w,k)=>T({fontFamily:r,fontWeight:p,fontSize:g(h),lineHeight:y},r===og?{letterSpacing:`${_T(w/h)}em`}:{},k,d),b={h1:m(o,96,1.167,-1.5),h2:m(o,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(l,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(l,14,1.75,.4,ig),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,ig),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return An(T({htmlFontSize:c,pxToRem:g,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:a},b),f,{clone:!1})}const DT=.2,MT=.14,LT=.12;function ge(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${DT})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${MT})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${LT})`].join(",")}const NT=["none",ge(0,2,1,-1,0,1,1,0,0,1,3,0),ge(0,3,1,-2,0,2,2,0,0,1,5,0),ge(0,3,3,-2,0,3,4,0,0,1,8,0),ge(0,2,4,-1,0,4,5,0,0,1,10,0),ge(0,3,5,-1,0,5,8,0,0,1,14,0),ge(0,3,5,-1,0,6,10,0,0,1,18,0),ge(0,4,5,-2,0,7,10,1,0,2,16,1),ge(0,5,5,-3,0,8,10,1,0,3,14,2),ge(0,5,6,-3,0,9,12,1,0,3,16,2),ge(0,6,6,-3,0,10,14,1,0,4,18,3),ge(0,6,7,-4,0,11,15,1,0,4,20,3),ge(0,7,8,-4,0,12,17,2,0,5,22,4),ge(0,7,8,-4,0,13,19,2,0,5,24,4),ge(0,7,9,-4,0,14,21,2,0,5,26,4),ge(0,8,9,-5,0,15,22,2,0,6,28,5),ge(0,8,10,-5,0,16,24,2,0,6,30,5),ge(0,8,11,-5,0,17,26,2,0,6,32,5),ge(0,9,11,-5,0,18,28,2,0,7,34,6),ge(0,9,12,-6,0,19,29,2,0,7,36,6),ge(0,10,13,-6,0,20,31,3,0,8,38,7),ge(0,10,13,-6,0,21,33,3,0,8,40,7),ge(0,10,14,-6,0,22,35,3,0,8,42,7),ge(0,11,14,-7,0,23,36,3,0,9,44,8),ge(0,11,15,-7,0,24,38,3,0,9,46,8)],FT=["duration","easing","delay"],jT={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)"},Db={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function sg(e){return`${Math.round(e)}ms`}function zT(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function BT(e){const t=T({},jT,e.easing),n=T({},Db,e.duration);return T({getAutoHeightDuration:zT,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:a=0}=o;return K(o,FT),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof s=="string"?s:sg(s)} ${l} ${typeof a=="string"?a:sg(a)}`).join(",")}},e,{easing:t,duration:n})}const VT={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},HT=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function qh(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=K(e,HT);if(e.vars)throw new Error(ii(18));const l=PT(r),a=Pc(e);let c=An(a,{mixins:cT(a.breakpoints,n),palette:l,shadows:NT.slice(),typography:AT(l,o),transitions:BT(i),zIndex:T({},VT)});return c=An(c,s),c=t.reduce((d,u)=>An(d,u),c),c.unstable_sxConfig=T({},Qs,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(u){return Xs({sx:u,theme:this})},c}const Uc=qh();function Wc(){const e=Oc(Uc);return e[oi]||e}function Ze({props:e,name:t}){return N$({props:e,name:t,defaultTheme:Uc,themeId:oi})}var Ys={},Gu={exports:{}},lg;function UT(){return lg||(lg=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){if(r.indexOf(o)>=0)continue;i[o]=n[o]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Gu)),Gu.exports}const WT=Or(TS),GT=Or(IS),qT=Or(AS),QT=Or(D$),XT=Or(x$),YT=Or(T$);var bo=Ib;Object.defineProperty(Ys,"__esModule",{value:!0});var KT=Ys.default=uI;Ys.shouldForwardProp=Zl;Ys.systemDefaultTheme=void 0;var Gt=bo(J0()),gf=bo(UT()),ag=iI(WT),JT=GT;bo(qT);bo(QT);var ZT=bo(XT),eI=bo(YT);const tI=["ownerState"],nI=["variants"],rI=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Mb(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Mb=function(r){return r?n:t})(e)}function iI(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Mb(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function oI(e){return Object.keys(e).length===0}function sI(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Zl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const lI=Ys.systemDefaultTheme=(0,ZT.default)(),aI=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Tl({defaultTheme:e,theme:t,themeId:n}){return oI(t)?e:t[n]||t}function cI(e){return e?(t,n)=>n[e]:null}function ea(e,t){let{ownerState:n}=t,r=(0,gf.default)(t,tI);const i=typeof e=="function"?e((0,Gt.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(o=>ea(o,(0,Gt.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:o=[]}=i;let l=(0,gf.default)(i,nI);return o.forEach(a=>{let c=!0;typeof a.props=="function"?c=a.props((0,Gt.default)({ownerState:n},r,n)):Object.keys(a.props).forEach(d=>{(n==null?void 0:n[d])!==a.props[d]&&r[d]!==a.props[d]&&(c=!1)}),c&&(Array.isArray(l)||(l=[l]),l.push(typeof a.style=="function"?a.style((0,Gt.default)({ownerState:n},r,n)):a.style))}),l}return i}function uI(e={}){const{themeId:t,defaultTheme:n=lI,rootShouldForwardProp:r=Zl,slotShouldForwardProp:i=Zl}=e,o=s=>(0,eI.default)((0,Gt.default)({},s,{theme:Tl((0,Gt.default)({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,l={})=>{(0,ag.internal_processStyles)(s,k=>k.filter($=>!($!=null&&$.__mui_systemSx)));const{name:a,slot:c,skipVariantsResolver:d,skipSx:u,overridesResolver:f=cI(aI(c))}=l,v=(0,gf.default)(l,rI),g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,m=u||!1;let b,p=Zl;c==="Root"||c==="root"?p=r:c?p=i:sI(s)&&(p=void 0);const h=(0,ag.default)(s,(0,Gt.default)({shouldForwardProp:p,label:b},v)),y=k=>typeof k=="function"&&k.__emotion_real!==k||(0,JT.isPlainObject)(k)?$=>ea(k,(0,Gt.default)({},$,{theme:Tl({theme:$.theme,defaultTheme:n,themeId:t})})):k,w=(k,...$)=>{let I=y(k);const R=$?$.map(y):[];a&&f&&R.push(P=>{const O=Tl((0,Gt.default)({},P,{defaultTheme:n,themeId:t}));if(!O.components||!O.components[a]||!O.components[a].styleOverrides)return null;const j=O.components[a].styleOverrides,z={};return Object.entries(j).forEach(([V,q])=>{z[V]=ea(q,(0,Gt.default)({},P,{theme:O}))}),f(P,z)}),a&&!g&&R.push(P=>{var O;const j=Tl((0,Gt.default)({},P,{defaultTheme:n,themeId:t})),z=j==null||(O=j.components)==null||(O=O[a])==null?void 0:O.variants;return ea({variants:z},(0,Gt.default)({},P,{theme:j}))}),m||R.push(o);const B=R.length-$.length;if(Array.isArray(k)&&B>0){const P=new Array(B).fill("");I=[...k,...P],I.raw=[...k.raw,...P]}const D=h(I,...R);return s.muiName&&(D.muiName=s.muiName),D};return h.withConfig&&(w.withConfig=h.withConfig),w}}function dI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Lb=e=>dI(e)&&e!=="classes",ee=KT({themeId:oi,defaultTheme:Uc,rootShouldForwardProp:Lb}),fI=["theme"];function hI(e){let{theme:t}=e,n=K(e,fI);const r=t[oi];return C.jsx(aT,T({},n,{themeId:r?oi:void 0,theme:r||t}))}function pI(e){return Ge("MuiSvgIcon",e)}ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mI=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gI=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${X(t)}`,`fontSize${X(n)}`]};return qe(i,pI,r)},vI=ee("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${X(n.color)}`],t[`fontSize${X(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,l,a,c,d,u,f,v,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((l=e.typography)==null||(a=l.pxToRem)==null?void 0:a.call(l,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(u=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?u:{action:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),vf=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:l="svg",fontSize:a="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:f="0 0 24 24"}=r,v=K(r,mI),g=x.isValidElement(i)&&i.type==="svg",m=T({},r,{color:s,component:l,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:f,hasSvgAsChild:g}),b={};d||(b.viewBox=f);const p=gI(m);return C.jsxs(vI,T({as:l,className:le(p.root,o),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:n},b,v,g&&i.props,{ownerState:m,children:[g?i.props.children:i,u?C.jsx("title",{children:u}):null]}))});vf.muiName="SvgIcon";function Nb(e,t){function n(r,i){return C.jsx(vf,T({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=vf.muiName,x.memo(x.forwardRef(n))}function Fb(e){return Ze}function yf(e,t){return yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yf(e,t)}function jb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yf(e,t)}const cg={disabled:!1},Da=St.createContext(null);var yI=function(t){return t.scrollTop},Yo="unmounted",Br="exited",Vr="entering",ki="entered",bf="exiting",Ln=function(e){jb(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,l=s&&!s.isMounting?r.enter:r.appear,a;return o.appearStatus=null,r.in?l?(a=Br,o.appearStatus=Vr):a=ki:r.unmountOnExit||r.mountOnEnter?a=Yo:a=Br,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Yo?{status:Br}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Vr&&s!==ki&&(o=Vr):(s===Vr||s===ki)&&(o=bf)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,l;return o=s=l=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:l}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Vr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Sl.findDOMNode(this);s&&yI(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Br&&this.setState({status:Yo})},n.performEnter=function(i){var o=this,s=this.props.enter,l=this.context?this.context.isMounting:i,a=this.props.nodeRef?[l]:[Sl.findDOMNode(this),l],c=a[0],d=a[1],u=this.getTimeouts(),f=l?u.appear:u.enter;if(!i&&!s||cg.disabled){this.safeSetState({status:ki},function(){o.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Vr},function(){o.props.onEntering(c,d),o.onTransitionEnd(f,function(){o.safeSetState({status:ki},function(){o.props.onEntered(c,d)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Sl.findDOMNode(this);if(!o||cg.disabled){this.safeSetState({status:Br},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:bf},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Br},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,o.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Sl.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=a[0],d=a[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Yo)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=K(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return St.createElement(Da.Provider,{value:null},typeof s=="function"?s(i,l):St.cloneElement(St.Children.only(s),l))},t}(St.Component);Ln.contextType=Da;Ln.propTypes={};function wi(){}Ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wi,onEntering:wi,onEntered:wi,onExit:wi,onExiting:wi,onExited:wi};Ln.UNMOUNTED=Yo;Ln.EXITED=Br;Ln.ENTERING=Vr;Ln.ENTERED=ki;Ln.EXITING=bf;function bI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qh(e,t){var n=function(o){return t&&x.isValidElement(o)?t(o):o},r=Object.create(null);return e&&x.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function xI(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,l={};for(var a in t){if(r[a])for(s=0;se.scrollTop;function Ma(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function TI(e){return Ge("MuiCollapse",e)}ze("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const II=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],EI=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return qe(r,TI,n)},RI=ee("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>T({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&T({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),PI=ee("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>T({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),OI=ee("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>T({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Yh=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:l="0px",component:a,easing:c,in:d,onEnter:u,onEntered:f,onEntering:v,onExit:g,onExited:m,onExiting:b,orientation:p="vertical",style:h,timeout:y=Db.standard,TransitionComponent:w=Ln}=r,k=K(r,II),$=T({},r,{orientation:p,collapsedSize:l}),I=EI($),R=Wc(),B=wb(),D=x.useRef(null),P=x.useRef(),O=typeof l=="number"?`${l}px`:l,j=p==="horizontal",z=j?"width":"height",V=x.useRef(null),q=Bt(n,V),W=U=>xe=>{if(U){const dt=V.current;xe===void 0?U(dt):U(dt,xe)}},_=()=>D.current?D.current[j?"clientWidth":"clientHeight"]:0,M=W((U,xe)=>{D.current&&j&&(D.current.style.position="absolute"),U.style[z]=O,u&&u(U,xe)}),H=W((U,xe)=>{const dt=_();D.current&&j&&(D.current.style.position="");const{duration:Qe,easing:kn}=Ma({style:h,timeout:y,easing:c},{mode:"enter"});if(y==="auto"){const mi=R.transitions.getAutoHeightDuration(dt);U.style.transitionDuration=`${mi}ms`,P.current=mi}else U.style.transitionDuration=typeof Qe=="string"?Qe:`${Qe}ms`;U.style[z]=`${dt}px`,U.style.transitionTimingFunction=kn,v&&v(U,xe)}),re=W((U,xe)=>{U.style[z]="auto",f&&f(U,xe)}),ae=W(U=>{U.style[z]=`${_()}px`,g&&g(U)}),At=W(m),Ie=W(U=>{const xe=_(),{duration:dt,easing:Qe}=Ma({style:h,timeout:y,easing:c},{mode:"exit"});if(y==="auto"){const kn=R.transitions.getAutoHeightDuration(xe);U.style.transitionDuration=`${kn}ms`,P.current=kn}else U.style.transitionDuration=typeof dt=="string"?dt:`${dt}ms`;U.style[z]=O,U.style.transitionTimingFunction=Qe,b&&b(U)}),et=U=>{y==="auto"&&B.start(P.current||0,U),i&&i(V.current,U)};return C.jsx(w,T({in:d,onEnter:M,onEntered:re,onEntering:H,onExit:ae,onExited:At,onExiting:Ie,addEndListener:et,nodeRef:V,timeout:y==="auto"?null:y},k,{children:(U,xe)=>C.jsx(RI,T({as:a,className:le(I.root,s,{entered:I.entered,exited:!d&&O==="0px"&&I.hidden}[U]),style:T({[j?"minWidth":"minHeight"]:O},h),ref:q},xe,{ownerState:T({},$,{state:U}),children:C.jsx(PI,{ownerState:T({},$,{state:U}),className:I.wrapper,ref:D,children:C.jsx(OI,{ownerState:T({},$,{state:U}),className:I.wrapperInner,children:o})})}))}))});Yh.muiSupportAuto=!0;function _I(e){return typeof e=="string"}function AI(e,t,n){return e===void 0||_I(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}const DI={disableDefaultClasses:!1},MI=x.createContext(DI);function LI(e){const{disableDefaultClasses:t}=x.useContext(MI);return n=>t?"":e(n)}function lr(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 zn(e,t,n){return typeof e=="function"?e(t,n):e}function ug(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 NI(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const v=le(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),g=T({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=T({},n,i,r);return v.length>0&&(m.className=v),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:void 0}}const s=lr(T({},i,r)),l=ug(r),a=ug(i),c=t(s),d=le(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),u=T({},c==null?void 0:c.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),f=T({},c,n,a,l);return d.length>0&&(f.className=d),Object.keys(u).length>0&&(f.style=u),{props:f,internalRef:c.ref}}const FI=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Rn(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=K(e,FI),l=o?{}:zn(r,i),{props:a,internalRef:c}=NI(T({},s,{externalSlotProps:l})),d=Bt(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return AI(n,T({},a,{ref:d}),i)}function jI(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:l,onExited:a,timeout:c}=e,[d,u]=x.useState(!1),f=le(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),v={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},g=le(n.child,d&&n.childLeaving,r&&n.childPulsate);return!l&&!d&&u(!0),x.useEffect(()=>{if(!l&&a!=null){const m=setTimeout(a,c);return()=>{clearTimeout(m)}}},[a,l,c]),C.jsx("span",{className:f,style:v,children:C.jsx("span",{className:g})})}const qt=ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zI=["center","classes","className"];let Gc=e=>e,dg,fg,hg,pg;const xf=550,BI=80,VI=vo(dg||(dg=Gc` 0% { transform: scale(0); opacity: 0.1; @@ -62,7 +62,7 @@ Error generating stack: `+o.message+` transform: scale(1); opacity: 0.3; } -`)),HI=go(fg||(fg=Uc` +`)),HI=vo(fg||(fg=Gc` 0% { opacity: 1; } @@ -70,7 +70,7 @@ Error generating stack: `+o.message+` 100% { opacity: 0; } -`)),UI=go(hg||(hg=Uc` +`)),UI=vo(hg||(hg=Gc` 0% { transform: scale(1); } @@ -82,7 +82,7 @@ Error generating stack: `+o.message+` 100% { transform: scale(1); } -`)),WI=ee("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),GI=ee(jI,{name:"MuiTouchRipple",slot:"Ripple"})(pg||(pg=Uc` +`)),WI=ee("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),GI=ee(jI,{name:"MuiTouchRipple",slot:"Ripple"})(pg||(pg=Gc` opacity: 0; position: absolute; @@ -125,7 +125,7 @@ Error generating stack: `+o.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),qt.rippleVisible,VI,bf,({theme:e})=>e.transitions.easing.easeInOut,qt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,qt.child,qt.childLeaving,HI,bf,({theme:e})=>e.transitions.easing.easeInOut,qt.childPulsate,UI,({theme:e})=>e.transitions.easing.easeInOut),qI=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,l=K(r,zI),[a,c]=x.useState([]),d=x.useRef(0),u=x.useRef(null);x.useEffect(()=>{u.current&&(u.current(),u.current=null)},[a]);const f=x.useRef(!1),v=wb(),m=x.useRef(null),g=x.useRef(null),b=x.useCallback(w=>{const{pulsate:k,rippleX:$,rippleY:I,rippleSize:R,cb:B}=w;c(M=>[...M,C.jsx(GI,{classes:{ripple:le(o.ripple,qt.ripple),rippleVisible:le(o.rippleVisible,qt.rippleVisible),ripplePulsate:le(o.ripplePulsate,qt.ripplePulsate),child:le(o.child,qt.child),childLeaving:le(o.childLeaving,qt.childLeaving),childPulsate:le(o.childPulsate,qt.childPulsate)},timeout:bf,pulsate:k,rippleX:$,rippleY:I,rippleSize:R},d.current)]),d.current+=1,u.current=B},[o]),p=x.useCallback((w={},k={},$=()=>{})=>{const{pulsate:I=!1,center:R=i||k.pulsate,fakeElement:B=!1}=k;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const M=B?null:g.current,P=M?M.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,j,z;if(R||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)O=Math.round(P.width/2),j=Math.round(P.height/2);else{const{clientX:V,clientY:q}=w.touches&&w.touches.length>0?w.touches[0]:w;O=Math.round(V-P.left),j=Math.round(q-P.top)}if(R)z=Math.sqrt((2*P.width**2+P.height**2)/3),z%2===0&&(z+=1);else{const V=Math.max(Math.abs((M?M.clientWidth:0)-O),O)*2+2,q=Math.max(Math.abs((M?M.clientHeight:0)-j),j)*2+2;z=Math.sqrt(V**2+q**2)}w!=null&&w.touches?m.current===null&&(m.current=()=>{b({pulsate:I,rippleX:O,rippleY:j,rippleSize:z,cb:$})},v.start(BI,()=>{m.current&&(m.current(),m.current=null)})):b({pulsate:I,rippleX:O,rippleY:j,rippleSize:z,cb:$})},[i,b,v]),h=x.useCallback(()=>{p({},{pulsate:!0})},[p]),y=x.useCallback((w,k)=>{if(v.clear(),(w==null?void 0:w.type)==="touchend"&&m.current){m.current(),m.current=null,v.start(0,()=>{y(w,k)});return}m.current=null,c($=>$.length>0?$.slice(1):$),u.current=k},[v]);return x.useImperativeHandle(n,()=>({pulsate:h,start:p,stop:y}),[h,p,y]),C.jsx(WI,T({className:le(qt.root,o.root,s),ref:g},l,{children:C.jsx(Xh,{component:null,exit:!0,children:a})}))});function QI(e){return Ge("MuiButtonBase",e)}const XI=ze("MuiButtonBase",["root","disabled","focusVisible"]),YI=["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"],KI=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=qe({root:["root",t&&"disabled",n&&"focusVisible"]},QI,i);return n&&r&&(s.root+=` ${r}`),s},JI=ee("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"},[`&.${XI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ZI=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:l,component:a="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:u=!1,focusRipple:f=!1,LinkComponent:v="a",onBlur:m,onClick:g,onContextMenu:b,onDragLeave:p,onFocus:h,onFocusVisible:y,onKeyDown:w,onKeyUp:k,onMouseDown:$,onMouseLeave:I,onMouseUp:R,onTouchEnd:B,onTouchMove:M,onTouchStart:P,tabIndex:O=0,TouchRippleProps:j,touchRippleRef:z,type:V}=r,q=K(r,YI),W=x.useRef(null),_=x.useRef(null),D=Bt(_,z),{isFocusVisibleRef:H,onFocus:re,onBlur:ae,ref:At}=kb(),[Ie,et]=x.useState(!1);c&&Ie&&et(!1),x.useImperativeHandle(i,()=>({focusVisible:()=>{et(!0),W.current.focus()}}),[]);const[U,xe]=x.useState(!1);x.useEffect(()=>{xe(!0)},[]);const dt=U&&!d&&!c;x.useEffect(()=>{Ie&&f&&!d&&U&&_.current.pulsate()},[d,f,Ie,U]);function Qe(Q,Cp,z1=u){return Zt(Sp=>(Cp&&Cp(Sp),!z1&&_.current&&_.current[Q](Sp),!0))}const wn=Qe("start",$),mi=Qe("stop",b),au=Qe("stop",p),cu=Qe("stop",R),Eo=Qe("stop",Q=>{Ie&&Q.preventDefault(),I&&I(Q)}),uu=Qe("start",P),du=Qe("stop",B),fu=Qe("stop",M),hu=Qe("stop",Q=>{ae(Q),H.current===!1&&et(!1),m&&m(Q)},!1),pu=Zt(Q=>{W.current||(W.current=Q.currentTarget),re(Q),H.current===!0&&(et(!0),y&&y(Q)),h&&h(Q)}),he=()=>{const Q=W.current;return a&&a!=="button"&&!(Q.tagName==="A"&&Q.href)},il=x.useRef(!1),L1=Zt(Q=>{f&&!il.current&&Ie&&_.current&&Q.key===" "&&(il.current=!0,_.current.stop(Q,()=>{_.current.start(Q)})),Q.target===Q.currentTarget&&he()&&Q.key===" "&&Q.preventDefault(),w&&w(Q),Q.target===Q.currentTarget&&he()&&Q.key==="Enter"&&!c&&(Q.preventDefault(),g&&g(Q))}),N1=Zt(Q=>{f&&Q.key===" "&&_.current&&Ie&&!Q.defaultPrevented&&(il.current=!1,_.current.stop(Q,()=>{_.current.pulsate(Q)})),k&&k(Q),g&&Q.target===Q.currentTarget&&he()&&Q.key===" "&&!Q.defaultPrevented&&g(Q)});let ol=a;ol==="button"&&(q.href||q.to)&&(ol=v);const Ro={};ol==="button"?(Ro.type=V===void 0?"button":V,Ro.disabled=c):(!q.href&&!q.to&&(Ro.role="button"),c&&(Ro["aria-disabled"]=c));const F1=Bt(n,At,W),kp=T({},r,{centerRipple:o,component:a,disabled:c,disableRipple:d,disableTouchRipple:u,focusRipple:f,tabIndex:O,focusVisible:Ie}),j1=KI(kp);return C.jsxs(JI,T({as:ol,className:le(j1.root,l),ownerState:kp,onBlur:hu,onClick:g,onContextMenu:mi,onFocus:pu,onKeyDown:L1,onKeyUp:N1,onMouseDown:wn,onMouseLeave:Eo,onMouseUp:cu,onDragLeave:au,onTouchEnd:du,onTouchMove:fu,onTouchStart:uu,ref:F1,tabIndex:c?-1:O,type:V},Ro,q,{children:[s,dt?C.jsx(qI,T({ref:D,center:o},j)):null]}))});function eE(e){return Ge("MuiTypography",e)}ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],nE=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,l={root:["root",o,e.align!=="inherit"&&`align${X(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return qe(l,eE,s)},rE=ee("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${X(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({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})),mg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},iE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},oE=e=>iE[e]||e,Rn=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTypography"}),i=oE(r.color),o=jh(T({},r,{color:i})),{align:s="inherit",className:l,component:a,gutterBottom:c=!1,noWrap:d=!1,paragraph:u=!1,variant:f="body1",variantMapping:v=mg}=o,m=K(o,tE),g=T({},o,{align:s,color:i,className:l,component:a,gutterBottom:c,noWrap:d,paragraph:u,variant:f,variantMapping:v}),b=a||(u?"p":v[f]||mg[f])||"span",p=nE(g);return C.jsx(rE,T({as:b,ref:n,ownerState:g,className:le(p.root,l)},m))});function sE(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=Cb({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!i&&(s=!0);const{badgeContent:l,max:a=r}=s?o:e,c=l&&Number(l)>a?`${a}+`:l;return{badgeContent:l,invisible:s,max:a,displayValue:c}}const zb="base";function lE(e){return`${zb}--${e}`}function aE(e,t){return`${zb}-${e}-${t}`}function Bb(e,t){const n=hb[t];return n?lE(n):aE(e,t)}function cE(e,t){const n={};return t.forEach(r=>{n[r]=Bb(e,r)}),n}function gg(e){return e.substring(2).toLowerCase()}function uE(e,t){return t.documentElement.clientWidth(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const d=Bt(t.ref,l),u=Zt(m=>{const g=c.current;c.current=!1;const b=Kl(l.current);if(!a.current||!l.current||"clientX"in m&&uE(m,b))return;if(s.current){s.current=!1;return}let p;m.composedPath?p=m.composedPath().indexOf(l.current)>-1:p=!b.documentElement.contains(m.target)||l.current.contains(m.target),!p&&(n||!g)&&i(m)}),f=m=>g=>{c.current=!0;const b=t.props[m];b&&b(g)},v={ref:d};return o!==!1&&(v[o]=f(o)),x.useEffect(()=>{if(o!==!1){const m=gg(o),g=Kl(l.current),b=()=>{s.current=!0};return g.addEventListener(m,u),g.addEventListener("touchmove",b),()=>{g.removeEventListener(m,u),g.removeEventListener("touchmove",b)}}},[u,o]),r!==!1&&(v[r]=f(r)),x.useEffect(()=>{if(r!==!1){const m=gg(r),g=Kl(l.current);return g.addEventListener(m,u),()=>{g.removeEventListener(m,u)}}},[u,r]),C.jsx(x.Fragment,{children:x.cloneElement(t,v)})}const Da=Math.min,Yr=Math.max,La=Math.round,Tl=Math.floor,Tr=e=>({x:e,y:e}),fE={left:"right",right:"left",bottom:"top",top:"bottom"},hE={start:"end",end:"start"};function vg(e,t,n){return Yr(e,Da(t,n))}function Wc(e,t){return typeof e=="function"?e(t):e}function li(e){return e.split("-")[0]}function Gc(e){return e.split("-")[1]}function Vb(e){return e==="x"?"y":"x"}function Hb(e){return e==="y"?"height":"width"}function qc(e){return["top","bottom"].includes(li(e))?"y":"x"}function Ub(e){return Vb(qc(e))}function pE(e,t,n){n===void 0&&(n=!1);const r=Gc(e),i=Ub(e),o=Hb(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Na(s)),[s,Na(s)]}function mE(e){const t=Na(e);return[xf(e),t,xf(t)]}function xf(e){return e.replace(/start|end/g,t=>hE[t])}function gE(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function vE(e,t,n,r){const i=Gc(e);let o=gE(li(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(xf)))),o}function Na(e){return e.replace(/left|right|bottom|top/g,t=>fE[t])}function yE(e){return{top:0,right:0,bottom:0,left:0,...e}}function bE(e){return typeof e!="number"?yE(e):{top:e,right:e,bottom:e,left:e}}function Fa(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function yg(e,t,n){let{reference:r,floating:i}=e;const o=qc(t),s=Ub(t),l=Hb(s),a=li(t),c=o==="y",d=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,f=r[l]/2-i[l]/2;let v;switch(a){case"top":v={x:d,y:r.y-i.height};break;case"bottom":v={x:d,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:u};break;case"left":v={x:r.x-i.width,y:u};break;default:v={x:r.x,y:r.y}}switch(Gc(t)){case"start":v[s]-=f*(n&&c?-1:1);break;case"end":v[s]+=f*(n&&c?-1:1);break}return v}const xE=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=yg(c,r,a),f=r,v={},m=0;for(let g=0;gO<=0)){var B,M;const O=(((B=o.flip)==null?void 0:B.index)||0)+1,j=k[O];if(j)return{data:{index:O,overflows:R},reset:{placement:j}};let z=(M=R.filter(V=>V.overflows[0]<=0).sort((V,q)=>V.overflows[1]-q.overflows[1])[0])==null?void 0:M.placement;if(!z)switch(v){case"bestFit":{var P;const V=(P=R.map(q=>[q.placement,q.overflows.filter(W=>W>0).reduce((W,_)=>W+_,0)]).sort((q,W)=>q[1]-W[1])[0])==null?void 0:P[0];V&&(z=V);break}case"initialPlacement":z=l;break}if(i!==z)return{reset:{placement:z}}}return{}}}};async function kE(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=li(n),l=Gc(n),a=qc(n)==="y",c=["left","top"].includes(s)?-1:1,d=o&&a?-1:1,u=Wc(t,e);let{mainAxis:f,crossAxis:v,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof m=="number"&&(v=l==="end"?m*-1:m),a?{x:v*d,y:f*c}:{x:f*c,y:v*d}}const CE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:l}=t,a=await kE(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},SE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x:p,y:h}=b;return{x:p,y:h}}},...a}=Wc(e,t),c={x:n,y:r},d=await Wb(t,a),u=qc(li(i)),f=Vb(u);let v=c[f],m=c[u];if(o){const b=f==="y"?"top":"left",p=f==="y"?"bottom":"right",h=v+d[b],y=v-d[p];v=vg(h,v,y)}if(s){const b=u==="y"?"top":"left",p=u==="y"?"bottom":"right",h=m+d[b],y=m-d[p];m=vg(h,m,y)}const g=l.fn({...t,[f]:v,[u]:m});return{...g,data:{x:g.x-n,y:g.y-r}}}}};function bo(e){return Gb(e)?(e.nodeName||"").toLowerCase():"#document"}function jt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Jn(e){var t;return(t=(Gb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gb(e){return e instanceof Node||e instanceof jt(e).Node}function Mn(e){return e instanceof Element||e instanceof jt(e).Element}function Dn(e){return e instanceof HTMLElement||e instanceof jt(e).HTMLElement}function bg(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof jt(e).ShadowRoot}function Ks(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function $E(e){return["table","td","th"].includes(bo(e))}function Kh(e){const t=Jh(),n=vn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function TE(e){let t=Ir(e);for(;Dn(t)&&!so(t);){if(Kh(t))return t;t=Ir(t)}return null}function Jh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function so(e){return["html","body","#document"].includes(bo(e))}function vn(e){return jt(e).getComputedStyle(e)}function Qc(e){return Mn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ir(e){if(bo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bg(e)&&e.host||Jn(e);return bg(t)?t.host:t}function qb(e){const t=Ir(e);return so(t)?e.ownerDocument?e.ownerDocument.body:e.body:Dn(t)&&Ks(t)?t:qb(t)}function As(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=qb(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=jt(i);return o?t.concat(s,s.visualViewport||[],Ks(i)?i:[],s.frameElement&&n?As(s.frameElement):[]):t.concat(i,As(i,[],n))}function Qb(e){const t=vn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Dn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=La(n)!==o||La(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function Zh(e){return Mn(e)?e:e.contextElement}function Gi(e){const t=Zh(e);if(!Dn(t))return Tr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Qb(t);let s=(o?La(n.width):n.width)/r,l=(o?La(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const IE=Tr(0);function Xb(e){const t=jt(e);return!Jh()||!t.visualViewport?IE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function EE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==jt(e)?!1:t}function ai(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Zh(e);let s=Tr(1);t&&(r?Mn(r)&&(s=Gi(r)):s=Gi(e));const l=EE(o,n,r)?Xb(o):Tr(0);let a=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,d=i.width/s.x,u=i.height/s.y;if(o){const f=jt(o),v=r&&Mn(r)?jt(r):r;let m=f,g=m.frameElement;for(;g&&r&&v!==m;){const b=Gi(g),p=g.getBoundingClientRect(),h=vn(g),y=p.left+(g.clientLeft+parseFloat(h.paddingLeft))*b.x,w=p.top+(g.clientTop+parseFloat(h.paddingTop))*b.y;a*=b.x,c*=b.y,d*=b.x,u*=b.y,a+=y,c+=w,m=jt(g),g=m.frameElement}}return Fa({width:d,height:u,x:a,y:c})}const RE=[":popover-open",":modal"];function ep(e){return RE.some(t=>{try{return e.matches(t)}catch{return!1}})}function PE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Jn(r),l=t?ep(t.floating):!1;if(r===s||l&&o)return n;let a={scrollLeft:0,scrollTop:0},c=Tr(1);const d=Tr(0),u=Dn(r);if((u||!u&&!o)&&((bo(r)!=="body"||Ks(s))&&(a=Qc(r)),Dn(r))){const f=ai(r);c=Gi(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+d.x,y:n.y*c.y-a.scrollTop*c.y+d.y}}function OE(e){return Array.from(e.getClientRects())}function Yb(e){return ai(Jn(e)).left+Qc(e).scrollLeft}function _E(e){const t=Jn(e),n=Qc(e),r=e.ownerDocument.body,i=Yr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Yr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Yb(e);const l=-n.scrollTop;return vn(r).direction==="rtl"&&(s+=Yr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}function AE(e,t){const n=jt(e),r=Jn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const c=Jh();(!c||c&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function ME(e,t){const n=ai(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Dn(e)?Gi(e):Tr(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,a=i*o.x,c=r*o.y;return{width:s,height:l,x:a,y:c}}function xg(e,t,n){let r;if(t==="viewport")r=AE(e,n);else if(t==="document")r=_E(Jn(e));else if(Mn(t))r=ME(t,n);else{const i=Xb(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Fa(r)}function Kb(e,t){const n=Ir(e);return n===t||!Mn(n)||so(n)?!1:vn(n).position==="fixed"||Kb(n,t)}function DE(e,t){const n=t.get(e);if(n)return n;let r=As(e,[],!1).filter(l=>Mn(l)&&bo(l)!=="body"),i=null;const o=vn(e).position==="fixed";let s=o?Ir(e):e;for(;Mn(s)&&!so(s);){const l=vn(s),a=Kh(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ks(s)&&!a&&Kb(e,s))?r=r.filter(d=>d!==s):i=l,s=Ir(s)}return t.set(e,r),r}function LE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?ep(t)?[]:DE(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((c,d)=>{const u=xg(t,d,i);return c.top=Yr(u.top,c.top),c.right=Da(u.right,c.right),c.bottom=Da(u.bottom,c.bottom),c.left=Yr(u.left,c.left),c},xg(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function NE(e){const{width:t,height:n}=Qb(e);return{width:t,height:n}}function FE(e,t,n){const r=Dn(t),i=Jn(t),o=n==="fixed",s=ai(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=Tr(0);if(r||!r&&!o)if((bo(t)!=="body"||Ks(i))&&(l=Qc(t)),r){const u=ai(t,!0,o,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else i&&(a.x=Yb(i));const c=s.left+l.scrollLeft-a.x,d=s.top+l.scrollTop-a.y;return{x:c,y:d,width:s.width,height:s.height}}function Gu(e){return vn(e).position==="static"}function wg(e,t){return!Dn(e)||vn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Jb(e,t){const n=jt(e);if(ep(e))return n;if(!Dn(e)){let i=Ir(e);for(;i&&!so(i);){if(Mn(i)&&!Gu(i))return i;i=Ir(i)}return n}let r=wg(e,t);for(;r&&$E(r)&&Gu(r);)r=wg(r,t);return r&&so(r)&&Gu(r)&&!Kh(r)?n:r||TE(e)||n}const jE=async function(e){const t=this.getOffsetParent||Jb,n=this.getDimensions,r=await n(e.floating);return{reference:FE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zE(e){return vn(e).direction==="rtl"}const BE={convertOffsetParentRelativeRectToViewportRelativeRect:PE,getDocumentElement:Jn,getClippingRect:LE,getOffsetParent:Jb,getElementRects:jE,getClientRects:OE,getDimensions:NE,getScale:Gi,isElement:Mn,isRTL:zE};function VE(e,t){let n=null,r;const i=Jn(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const{left:c,top:d,width:u,height:f}=e.getBoundingClientRect();if(l||t(),!u||!f)return;const v=Tl(d),m=Tl(i.clientWidth-(c+u)),g=Tl(i.clientHeight-(d+f)),b=Tl(c),h={rootMargin:-v+"px "+-m+"px "+-g+"px "+-b+"px",threshold:Yr(0,Da(1,a))||1};let y=!0;function w(k){const $=k[0].intersectionRatio;if($!==a){if(!y)return s();$?s(!1,$):r=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(w,{...h,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,h)}n.observe(e)}return s(!0),o}function kg(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=Zh(e),d=i||o?[...c?As(c):[],...As(t)]:[];d.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const u=c&&l?VE(c,n):null;let f=-1,v=null;s&&(v=new ResizeObserver(p=>{let[h]=p;h&&h.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=v)==null||y.observe(t)})),n()}),c&&!a&&v.observe(c),v.observe(t));let m,g=a?ai(e):null;a&&b();function b(){const p=ai(e);g&&(p.x!==g.x||p.y!==g.y||p.width!==g.width||p.height!==g.height)&&n(),g=p,m=requestAnimationFrame(b)}return n(),()=>{var p;d.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),u==null||u(),(p=v)==null||p.disconnect(),v=null,a&&cancelAnimationFrame(m)}}const Cg=CE,HE=SE,UE=wE,WE=(e,t,n)=>{const r=new Map,i={platform:BE,...n},o={...i.platform,_c:r};return xE(e,t,{...i,platform:o})};var ea=typeof document<"u"?x.useLayoutEffect:x.useEffect;function ja(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ja(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!ja(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Zb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sg(e,t){const n=Zb(e);return Math.round(t*n)/n}function $g(e){const t=x.useRef(e);return ea(()=>{t.current=e}),t}function GE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:a,open:c}=e,[d,u]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,v]=x.useState(r);ja(f,r)||v(r);const[m,g]=x.useState(null),[b,p]=x.useState(null),h=x.useCallback(W=>{W!==$.current&&($.current=W,g(W))},[]),y=x.useCallback(W=>{W!==I.current&&(I.current=W,p(W))},[]),w=o||m,k=s||b,$=x.useRef(null),I=x.useRef(null),R=x.useRef(d),B=a!=null,M=$g(a),P=$g(i),O=x.useCallback(()=>{if(!$.current||!I.current)return;const W={placement:t,strategy:n,middleware:f};P.current&&(W.platform=P.current),WE($.current,I.current,W).then(_=>{const D={..._,isPositioned:!0};j.current&&!ja(R.current,D)&&(R.current=D,ac.flushSync(()=>{u(D)}))})},[f,t,n,P]);ea(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,u(W=>({...W,isPositioned:!1})))},[c]);const j=x.useRef(!1);ea(()=>(j.current=!0,()=>{j.current=!1}),[]),ea(()=>{if(w&&($.current=w),k&&(I.current=k),w&&k){if(M.current)return M.current(w,k,O);O()}},[w,k,O,M,B]);const z=x.useMemo(()=>({reference:$,floating:I,setReference:h,setFloating:y}),[h,y]),V=x.useMemo(()=>({reference:w,floating:k}),[w,k]),q=x.useMemo(()=>{const W={position:n,left:0,top:0};if(!V.floating)return W;const _=Sg(V.floating,d.x),D=Sg(V.floating,d.y);return l?{...W,transform:"translate("+_+"px, "+D+"px)",...Zb(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:D}},[n,l,V.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:O,refs:z,elements:V,floatingStyles:q}),[d,O,z,V,q])}function qE(e){return typeof e=="function"?e():e}const QE=x.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,l]=x.useState(null),a=Bt(x.isValidElement(r)?r.ref:null,n);if(Oa(()=>{o||l(qE(i)||document.body)},[i,o]),Oa(()=>{if(s&&!o)return hf(n,s),()=>{hf(n,null)}},[n,s,o]),o){if(x.isValidElement(r)){const c={ref:a};return x.cloneElement(r,c)}return C.jsx(x.Fragment,{children:r})}return C.jsx(x.Fragment,{children:s&&ac.createPortal(r,s)})}),ex="Popup";function XE(e){return Bb(ex,e)}cE(ex,["root","open"]);const YE=x.createContext(null);function KE(e){const[t,n]=x.useState(!0),r=x.useRef(!1),i=x.useRef(0),[o,s]=x.useState(!1),l=x.useRef(e);x.useEffect(()=>{!e&&i.current>0&&l.current!==e&&(r.current=!0,n(!1)),l.current=e},[e]);const a=x.useCallback(()=>{r.current=!1,n(!0)},[]),c=x.useCallback(()=>(i.current+=1,s(!0),()=>{i.current-=1,i.current===0&&s(!1)}),[]);let d;return o?e?d=!1:d=!r.current&&t:d=!e,{contextValue:x.useMemo(()=>({requestedEnter:e,onExited:a,registerTransition:c,hasExited:d}),[a,e,c,d]),hasExited:d}}const JE=x.createContext(null),ZE=["anchor","children","container","disablePortal","keepMounted","middleware","offset","open","placement","slotProps","slots","strategy"];function eR(e){const{open:t}=e;return qe({root:["root",t&&"open"]},LI(XE))}function tR(e){return typeof e=="function"?e():e}const nR=x.forwardRef(function(t,n){var r;const{anchor:i,children:o,container:s,disablePortal:l=!1,keepMounted:a=!1,middleware:c,offset:d=0,open:u=!1,placement:f="bottom",slotProps:v={},slots:m={},strategy:g="absolute"}=t,b=K(t,ZE),{refs:p,elements:h,floatingStyles:y,update:w,placement:k}=GE({elements:{reference:tR(i)},open:u,middleware:c??[Cg(d??0),UE(),HE()],placement:f,strategy:g,whileElementsMounted:a?void 0:kg}),$=Bt(p.setFloating,n);Oa(()=>{if(a&&u&&h.reference&&h.floating)return kg(h.reference,h.floating,w)},[a,u,h,w]);const I=T({},t,{disablePortal:l,keepMounted:a,offset:Cg,open:u,placement:f,finalPlacement:k,strategy:g}),{contextValue:R,hasExited:B}=KE(u),M=a&&B?"hidden":void 0,P=eR(I),O=(r=m==null?void 0:m.root)!=null?r:"div",j=En({elementType:O,externalSlotProps:v.root,externalForwardedProps:b,ownerState:I,className:P.root,additionalProps:{ref:$,role:"tooltip",style:T({},y,{visibility:M})}}),z=x.useMemo(()=>({placement:k}),[k]);return a||!B?C.jsx(QE,{disablePortal:l,container:s,children:C.jsx(JE.Provider,{value:z,children:C.jsx(YE.Provider,{value:R,children:C.jsx(O,T({},j,{children:o}))})})}):null}),rR=x.createContext(void 0);function iR(){return x.useContext(rR)}function oR(e){return C.jsx(C$,T({},e,{defaultTheme:Vc,themeId:oi}))}const sR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],lR={entering:{opacity:1},entered:{opacity:1}},aR=x.forwardRef(function(t,n){const r=Hc(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,easing:a,in:c,onEnter:d,onEntered:u,onEntering:f,onExit:v,onExited:m,onExiting:g,style:b,timeout:p=i,TransitionComponent:h=Ln}=t,y=K(t,sR),w=x.useRef(null),k=Bt(w,l.ref,n),$=z=>V=>{if(z){const q=w.current;V===void 0?z(q):z(q,V)}},I=$(f),R=$((z,V)=>{$I(z);const q=Ma({style:b,timeout:p,easing:a},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",q),z.style.transition=r.transitions.create("opacity",q),d&&d(z,V)}),B=$(u),M=$(g),P=$(z=>{const V=Ma({style:b,timeout:p,easing:a},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",V),z.style.transition=r.transitions.create("opacity",V),v&&v(z)}),O=$(m),j=z=>{o&&o(w.current,z)};return C.jsx(h,T({appear:s,in:c,nodeRef:w,onEnter:R,onEntered:B,onEntering:I,onExit:P,onExited:O,onExiting:M,addEndListener:j,timeout:p},y,{children:(z,V)=>x.cloneElement(l,T({style:T({opacity:0,visibility:z==="exited"&&!c?"hidden":void 0},lR[z],b,l.props.style),ref:k},V))}))});function cR(e){return Ge("MuiBadge",e)}const nr=ze("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),uR=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],qu=10,Qu=4,dR=Fb(),fR=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:s={}}=e,l={root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${X(n.vertical)}${X(n.horizontal)}`,`anchorOrigin${X(n.vertical)}${X(n.horizontal)}${X(i)}`,`overlap${X(i)}`,t!=="default"&&`color${X(t)}`]};return qe(l,cR,s)},hR=ee("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),pR=ee("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${X(n.anchorOrigin.vertical)}${X(n.anchorOrigin.horizontal)}${X(n.overlap)}`],n.color!=="default"&&t[`color${X(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:qu*2,lineHeight:1,padding:"0 6px",height:qu*2,borderRadius:qu,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,i;return((r=e.vars)!=null?r:e).palette[n].main&&((i=e.vars)!=null?i:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Qu,height:Qu*2,minWidth:Qu*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${nr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${nr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${nr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${nr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${nr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${nr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${nr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${nr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),mR=x.forwardRef(function(t,n){var r,i,o,s,l,a;const c=dR({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:u,component:f,components:v={},componentsProps:m={},children:g,overlap:b="rectangular",color:p="default",invisible:h=!1,max:y=99,badgeContent:w,slots:k,slotProps:$,showZero:I=!1,variant:R="standard"}=c,B=K(c,uR),{badgeContent:M,invisible:P,max:O,displayValue:j}=sE({max:y,invisible:h,badgeContent:w,showZero:I}),z=Cb({anchorOrigin:d,color:p,overlap:b,variant:R,badgeContent:w}),V=P||M==null&&R!=="dot",{color:q=p,overlap:W=b,anchorOrigin:_=d,variant:D=R}=V?z:c,H=D!=="dot"?j:void 0,re=T({},c,{badgeContent:M,invisible:V,max:O,displayValue:H,showZero:I,anchorOrigin:_,color:q,overlap:W,variant:D}),ae=fR(re),At=(r=(i=k==null?void 0:k.root)!=null?i:v.Root)!=null?r:hR,Ie=(o=(s=k==null?void 0:k.badge)!=null?s:v.Badge)!=null?o:pR,et=(l=$==null?void 0:$.root)!=null?l:m.root,U=(a=$==null?void 0:$.badge)!=null?a:m.badge,xe=En({elementType:At,externalSlotProps:et,externalForwardedProps:B,additionalProps:{ref:n,as:f},ownerState:re,className:le(et==null?void 0:et.className,ae.root,u)}),dt=En({elementType:Ie,externalSlotProps:U,ownerState:re,className:le(ae.badge,U==null?void 0:U.className)});return C.jsxs(At,T({},xe,{children:[g,C.jsx(Ie,T({},dt,{children:H}))]}))}),gR=ze("MuiBox",["root"]),vR=qh(),Ct=R$({themeId:oi,defaultTheme:vR,defaultClassName:gR.root,generateClassName:db.generate});function yR(e){return Ge("PrivateSwitchBase",e)}ze("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const bR=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],xR=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${X(i)}`],input:["input"]};return qe(o,yR,t)},wR=ee(ZI)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),kR=ee("input",{shouldForwardProp:Lb})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),CR=x.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:s,defaultChecked:l,disabled:a,disableFocusRipple:c=!1,edge:d=!1,icon:u,id:f,inputProps:v,inputRef:m,name:g,onBlur:b,onChange:p,onFocus:h,readOnly:y,required:w=!1,tabIndex:k,type:$,value:I}=t,R=K(t,bR),[B,M]=U$({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),P=iR(),O=D=>{h&&h(D),P&&P.onFocus&&P.onFocus(D)},j=D=>{b&&b(D),P&&P.onBlur&&P.onBlur(D)},z=D=>{if(D.nativeEvent.defaultPrevented)return;const H=D.target.checked;M(H),p&&p(D,H)};let V=a;P&&typeof V>"u"&&(V=P.disabled);const q=$==="checkbox"||$==="radio",W=T({},t,{checked:B,disabled:V,disableFocusRipple:c,edge:d}),_=xR(W);return C.jsxs(wR,T({component:"span",className:le(_.root,s),centerRipple:!0,focusRipple:!c,disabled:V,tabIndex:null,role:void 0,onFocus:O,onBlur:j,ownerState:W,ref:n},R,{children:[C.jsx(kR,T({autoFocus:r,checked:i,defaultChecked:l,className:_.input,disabled:V,id:q?f:void 0,name:g,onChange:z,readOnly:y,ref:m,required:w,ownerState:W,tabIndex:k,type:$},$==="checkbox"&&I===void 0?{}:{value:I},v)),B?o:u]}))});function SR(e){return Ge("MuiCircularProgress",e)}ze("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const $R=["className","color","disableShrink","size","style","thickness","value","variant"];let Xc=e=>e,Tg,Ig,Eg,Rg;const rr=44,TR=go(Tg||(Tg=Xc` +`),qt.rippleVisible,VI,xf,({theme:e})=>e.transitions.easing.easeInOut,qt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,qt.child,qt.childLeaving,HI,xf,({theme:e})=>e.transitions.easing.easeInOut,qt.childPulsate,UI,({theme:e})=>e.transitions.easing.easeInOut),qI=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,l=K(r,zI),[a,c]=x.useState([]),d=x.useRef(0),u=x.useRef(null);x.useEffect(()=>{u.current&&(u.current(),u.current=null)},[a]);const f=x.useRef(!1),v=wb(),g=x.useRef(null),m=x.useRef(null),b=x.useCallback(w=>{const{pulsate:k,rippleX:$,rippleY:I,rippleSize:R,cb:B}=w;c(D=>[...D,C.jsx(GI,{classes:{ripple:le(o.ripple,qt.ripple),rippleVisible:le(o.rippleVisible,qt.rippleVisible),ripplePulsate:le(o.ripplePulsate,qt.ripplePulsate),child:le(o.child,qt.child),childLeaving:le(o.childLeaving,qt.childLeaving),childPulsate:le(o.childPulsate,qt.childPulsate)},timeout:xf,pulsate:k,rippleX:$,rippleY:I,rippleSize:R},d.current)]),d.current+=1,u.current=B},[o]),p=x.useCallback((w={},k={},$=()=>{})=>{const{pulsate:I=!1,center:R=i||k.pulsate,fakeElement:B=!1}=k;if((w==null?void 0:w.type)==="mousedown"&&f.current){f.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(f.current=!0);const D=B?null:m.current,P=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,j,z;if(R||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)O=Math.round(P.width/2),j=Math.round(P.height/2);else{const{clientX:V,clientY:q}=w.touches&&w.touches.length>0?w.touches[0]:w;O=Math.round(V-P.left),j=Math.round(q-P.top)}if(R)z=Math.sqrt((2*P.width**2+P.height**2)/3),z%2===0&&(z+=1);else{const V=Math.max(Math.abs((D?D.clientWidth:0)-O),O)*2+2,q=Math.max(Math.abs((D?D.clientHeight:0)-j),j)*2+2;z=Math.sqrt(V**2+q**2)}w!=null&&w.touches?g.current===null&&(g.current=()=>{b({pulsate:I,rippleX:O,rippleY:j,rippleSize:z,cb:$})},v.start(BI,()=>{g.current&&(g.current(),g.current=null)})):b({pulsate:I,rippleX:O,rippleY:j,rippleSize:z,cb:$})},[i,b,v]),h=x.useCallback(()=>{p({},{pulsate:!0})},[p]),y=x.useCallback((w,k)=>{if(v.clear(),(w==null?void 0:w.type)==="touchend"&&g.current){g.current(),g.current=null,v.start(0,()=>{y(w,k)});return}g.current=null,c($=>$.length>0?$.slice(1):$),u.current=k},[v]);return x.useImperativeHandle(n,()=>({pulsate:h,start:p,stop:y}),[h,p,y]),C.jsx(WI,T({className:le(qt.root,o.root,s),ref:m},l,{children:C.jsx(Xh,{component:null,exit:!0,children:a})}))});function QI(e){return Ge("MuiButtonBase",e)}const XI=ze("MuiButtonBase",["root","disabled","focusVisible"]),YI=["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"],KI=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=qe({root:["root",t&&"disabled",n&&"focusVisible"]},QI,i);return n&&r&&(s.root+=` ${r}`),s},JI=ee("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"},[`&.${XI.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ZI=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:l,component:a="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:u=!1,focusRipple:f=!1,LinkComponent:v="a",onBlur:g,onClick:m,onContextMenu:b,onDragLeave:p,onFocus:h,onFocusVisible:y,onKeyDown:w,onKeyUp:k,onMouseDown:$,onMouseLeave:I,onMouseUp:R,onTouchEnd:B,onTouchMove:D,onTouchStart:P,tabIndex:O=0,TouchRippleProps:j,touchRippleRef:z,type:V}=r,q=K(r,YI),W=x.useRef(null),_=x.useRef(null),M=Bt(_,z),{isFocusVisibleRef:H,onFocus:re,onBlur:ae,ref:At}=kb(),[Ie,et]=x.useState(!1);c&&Ie&&et(!1),x.useImperativeHandle(i,()=>({focusVisible:()=>{et(!0),W.current.focus()}}),[]);const[U,xe]=x.useState(!1);x.useEffect(()=>{xe(!0)},[]);const dt=U&&!d&&!c;x.useEffect(()=>{Ie&&f&&!d&&U&&_.current.pulsate()},[d,f,Ie,U]);function Qe(Q,Cp,z1=u){return Zt(Sp=>(Cp&&Cp(Sp),!z1&&_.current&&_.current[Q](Sp),!0))}const kn=Qe("start",$),mi=Qe("stop",b),cu=Qe("stop",p),uu=Qe("stop",R),Ro=Qe("stop",Q=>{Ie&&Q.preventDefault(),I&&I(Q)}),du=Qe("start",P),fu=Qe("stop",B),hu=Qe("stop",D),pu=Qe("stop",Q=>{ae(Q),H.current===!1&&et(!1),g&&g(Q)},!1),mu=Zt(Q=>{W.current||(W.current=Q.currentTarget),re(Q),H.current===!0&&(et(!0),y&&y(Q)),h&&h(Q)}),he=()=>{const Q=W.current;return a&&a!=="button"&&!(Q.tagName==="A"&&Q.href)},ol=x.useRef(!1),L1=Zt(Q=>{f&&!ol.current&&Ie&&_.current&&Q.key===" "&&(ol.current=!0,_.current.stop(Q,()=>{_.current.start(Q)})),Q.target===Q.currentTarget&&he()&&Q.key===" "&&Q.preventDefault(),w&&w(Q),Q.target===Q.currentTarget&&he()&&Q.key==="Enter"&&!c&&(Q.preventDefault(),m&&m(Q))}),N1=Zt(Q=>{f&&Q.key===" "&&_.current&&Ie&&!Q.defaultPrevented&&(ol.current=!1,_.current.stop(Q,()=>{_.current.pulsate(Q)})),k&&k(Q),m&&Q.target===Q.currentTarget&&he()&&Q.key===" "&&!Q.defaultPrevented&&m(Q)});let sl=a;sl==="button"&&(q.href||q.to)&&(sl=v);const Po={};sl==="button"?(Po.type=V===void 0?"button":V,Po.disabled=c):(!q.href&&!q.to&&(Po.role="button"),c&&(Po["aria-disabled"]=c));const F1=Bt(n,At,W),kp=T({},r,{centerRipple:o,component:a,disabled:c,disableRipple:d,disableTouchRipple:u,focusRipple:f,tabIndex:O,focusVisible:Ie}),j1=KI(kp);return C.jsxs(JI,T({as:sl,className:le(j1.root,l),ownerState:kp,onBlur:pu,onClick:m,onContextMenu:mi,onFocus:mu,onKeyDown:L1,onKeyUp:N1,onMouseDown:kn,onMouseLeave:Ro,onMouseUp:uu,onDragLeave:cu,onTouchEnd:fu,onTouchMove:hu,onTouchStart:du,ref:F1,tabIndex:c?-1:O,type:V},Po,q,{children:[s,dt?C.jsx(qI,T({ref:M,center:o},j)):null]}))});function eE(e){return Ge("MuiTypography",e)}ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],nE=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,l={root:["root",o,e.align!=="inherit"&&`align${X(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return qe(l,eE,s)},rE=ee("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${X(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({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})),mg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},iE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},oE=e=>iE[e]||e,pn=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTypography"}),i=oE(r.color),o=jh(T({},r,{color:i})),{align:s="inherit",className:l,component:a,gutterBottom:c=!1,noWrap:d=!1,paragraph:u=!1,variant:f="body1",variantMapping:v=mg}=o,g=K(o,tE),m=T({},o,{align:s,color:i,className:l,component:a,gutterBottom:c,noWrap:d,paragraph:u,variant:f,variantMapping:v}),b=a||(u?"p":v[f]||mg[f])||"span",p=nE(m);return C.jsx(rE,T({as:b,ref:n,ownerState:m,className:le(p.root,l)},g))});function sE(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,o=Cb({badgeContent:t,max:r});let s=n;n===!1&&t===0&&!i&&(s=!0);const{badgeContent:l,max:a=r}=s?o:e,c=l&&Number(l)>a?`${a}+`:l;return{badgeContent:l,invisible:s,max:a,displayValue:c}}const zb="base";function lE(e){return`${zb}--${e}`}function aE(e,t){return`${zb}-${e}-${t}`}function Bb(e,t){const n=hb[t];return n?lE(n):aE(e,t)}function cE(e,t){const n={};return t.forEach(r=>{n[r]=Bb(e,r)}),n}function gg(e){return e.substring(2).toLowerCase()}function uE(e,t){return t.documentElement.clientWidth(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const d=Bt(t.ref,l),u=Zt(g=>{const m=c.current;c.current=!1;const b=Jl(l.current);if(!a.current||!l.current||"clientX"in g&&uE(g,b))return;if(s.current){s.current=!1;return}let p;g.composedPath?p=g.composedPath().indexOf(l.current)>-1:p=!b.documentElement.contains(g.target)||l.current.contains(g.target),!p&&(n||!m)&&i(g)}),f=g=>m=>{c.current=!0;const b=t.props[g];b&&b(m)},v={ref:d};return o!==!1&&(v[o]=f(o)),x.useEffect(()=>{if(o!==!1){const g=gg(o),m=Jl(l.current),b=()=>{s.current=!0};return m.addEventListener(g,u),m.addEventListener("touchmove",b),()=>{m.removeEventListener(g,u),m.removeEventListener("touchmove",b)}}},[u,o]),r!==!1&&(v[r]=f(r)),x.useEffect(()=>{if(r!==!1){const g=gg(r),m=Jl(l.current);return m.addEventListener(g,u),()=>{m.removeEventListener(g,u)}}},[u,r]),C.jsx(x.Fragment,{children:x.cloneElement(t,v)})}const La=Math.min,Kr=Math.max,Na=Math.round,Il=Math.floor,Ir=e=>({x:e,y:e}),fE={left:"right",right:"left",bottom:"top",top:"bottom"},hE={start:"end",end:"start"};function vg(e,t,n){return Kr(e,La(t,n))}function qc(e,t){return typeof e=="function"?e(t):e}function li(e){return e.split("-")[0]}function Qc(e){return e.split("-")[1]}function Vb(e){return e==="x"?"y":"x"}function Hb(e){return e==="y"?"height":"width"}function Xc(e){return["top","bottom"].includes(li(e))?"y":"x"}function Ub(e){return Vb(Xc(e))}function pE(e,t,n){n===void 0&&(n=!1);const r=Qc(e),i=Ub(e),o=Hb(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Fa(s)),[s,Fa(s)]}function mE(e){const t=Fa(e);return[wf(e),t,wf(t)]}function wf(e){return e.replace(/start|end/g,t=>hE[t])}function gE(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function vE(e,t,n,r){const i=Qc(e);let o=gE(li(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(wf)))),o}function Fa(e){return e.replace(/left|right|bottom|top/g,t=>fE[t])}function yE(e){return{top:0,right:0,bottom:0,left:0,...e}}function bE(e){return typeof e!="number"?yE(e):{top:e,right:e,bottom:e,left:e}}function ja(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function yg(e,t,n){let{reference:r,floating:i}=e;const o=Xc(t),s=Ub(t),l=Hb(s),a=li(t),c=o==="y",d=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,f=r[l]/2-i[l]/2;let v;switch(a){case"top":v={x:d,y:r.y-i.height};break;case"bottom":v={x:d,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:u};break;case"left":v={x:r.x-i.width,y:u};break;default:v={x:r.x,y:r.y}}switch(Qc(t)){case"start":v[s]-=f*(n&&c?-1:1);break;case"end":v[s]+=f*(n&&c?-1:1);break}return v}const xE=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=yg(c,r,a),f=r,v={},g=0;for(let m=0;mO<=0)){var B,D;const O=(((B=o.flip)==null?void 0:B.index)||0)+1,j=k[O];if(j)return{data:{index:O,overflows:R},reset:{placement:j}};let z=(D=R.filter(V=>V.overflows[0]<=0).sort((V,q)=>V.overflows[1]-q.overflows[1])[0])==null?void 0:D.placement;if(!z)switch(v){case"bestFit":{var P;const V=(P=R.map(q=>[q.placement,q.overflows.filter(W=>W>0).reduce((W,_)=>W+_,0)]).sort((q,W)=>q[1]-W[1])[0])==null?void 0:P[0];V&&(z=V);break}case"initialPlacement":z=l;break}if(i!==z)return{reset:{placement:z}}}return{}}}};async function kE(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=li(n),l=Qc(n),a=Xc(n)==="y",c=["left","top"].includes(s)?-1:1,d=o&&a?-1:1,u=qc(t,e);let{mainAxis:f,crossAxis:v,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return l&&typeof g=="number"&&(v=l==="end"?g*-1:g),a?{x:v*d,y:f*c}:{x:f*c,y:v*d}}const CE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:l}=t,a=await kE(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},SE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x:p,y:h}=b;return{x:p,y:h}}},...a}=qc(e,t),c={x:n,y:r},d=await Wb(t,a),u=Xc(li(i)),f=Vb(u);let v=c[f],g=c[u];if(o){const b=f==="y"?"top":"left",p=f==="y"?"bottom":"right",h=v+d[b],y=v-d[p];v=vg(h,v,y)}if(s){const b=u==="y"?"top":"left",p=u==="y"?"bottom":"right",h=g+d[b],y=g-d[p];g=vg(h,g,y)}const m=l.fn({...t,[f]:v,[u]:g});return{...m,data:{x:m.x-n,y:m.y-r}}}}};function xo(e){return Gb(e)?(e.nodeName||"").toLowerCase():"#document"}function jt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zn(e){var t;return(t=(Gb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gb(e){return e instanceof Node||e instanceof jt(e).Node}function Dn(e){return e instanceof Element||e instanceof jt(e).Element}function Mn(e){return e instanceof HTMLElement||e instanceof jt(e).HTMLElement}function bg(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof jt(e).ShadowRoot}function Ks(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=yn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function $E(e){return["table","td","th"].includes(xo(e))}function Kh(e){const t=Jh(),n=yn(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function TE(e){let t=Er(e);for(;Mn(t)&&!lo(t);){if(Kh(t))return t;t=Er(t)}return null}function Jh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function lo(e){return["html","body","#document"].includes(xo(e))}function yn(e){return jt(e).getComputedStyle(e)}function Yc(e){return Dn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Er(e){if(xo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bg(e)&&e.host||Zn(e);return bg(t)?t.host:t}function qb(e){const t=Er(e);return lo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Mn(t)&&Ks(t)?t:qb(t)}function As(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=qb(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=jt(i);return o?t.concat(s,s.visualViewport||[],Ks(i)?i:[],s.frameElement&&n?As(s.frameElement):[]):t.concat(i,As(i,[],n))}function Qb(e){const t=yn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Mn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,l=Na(n)!==o||Na(r)!==s;return l&&(n=o,r=s),{width:n,height:r,$:l}}function Zh(e){return Dn(e)?e:e.contextElement}function Gi(e){const t=Zh(e);if(!Mn(t))return Ir(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Qb(t);let s=(o?Na(n.width):n.width)/r,l=(o?Na(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const IE=Ir(0);function Xb(e){const t=jt(e);return!Jh()||!t.visualViewport?IE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function EE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==jt(e)?!1:t}function ai(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Zh(e);let s=Ir(1);t&&(r?Dn(r)&&(s=Gi(r)):s=Gi(e));const l=EE(o,n,r)?Xb(o):Ir(0);let a=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,d=i.width/s.x,u=i.height/s.y;if(o){const f=jt(o),v=r&&Dn(r)?jt(r):r;let g=f,m=g.frameElement;for(;m&&r&&v!==g;){const b=Gi(m),p=m.getBoundingClientRect(),h=yn(m),y=p.left+(m.clientLeft+parseFloat(h.paddingLeft))*b.x,w=p.top+(m.clientTop+parseFloat(h.paddingTop))*b.y;a*=b.x,c*=b.y,d*=b.x,u*=b.y,a+=y,c+=w,g=jt(m),m=g.frameElement}}return ja({width:d,height:u,x:a,y:c})}const RE=[":popover-open",":modal"];function ep(e){return RE.some(t=>{try{return e.matches(t)}catch{return!1}})}function PE(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Zn(r),l=t?ep(t.floating):!1;if(r===s||l&&o)return n;let a={scrollLeft:0,scrollTop:0},c=Ir(1);const d=Ir(0),u=Mn(r);if((u||!u&&!o)&&((xo(r)!=="body"||Ks(s))&&(a=Yc(r)),Mn(r))){const f=ai(r);c=Gi(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+d.x,y:n.y*c.y-a.scrollTop*c.y+d.y}}function OE(e){return Array.from(e.getClientRects())}function Yb(e){return ai(Zn(e)).left+Yc(e).scrollLeft}function _E(e){const t=Zn(e),n=Yc(e),r=e.ownerDocument.body,i=Kr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Kr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Yb(e);const l=-n.scrollTop;return yn(r).direction==="rtl"&&(s+=Kr(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}function AE(e,t){const n=jt(e),r=Zn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;const c=Jh();(!c||c&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function DE(e,t){const n=ai(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Mn(e)?Gi(e):Ir(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,a=i*o.x,c=r*o.y;return{width:s,height:l,x:a,y:c}}function xg(e,t,n){let r;if(t==="viewport")r=AE(e,n);else if(t==="document")r=_E(Zn(e));else if(Dn(t))r=DE(t,n);else{const i=Xb(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return ja(r)}function Kb(e,t){const n=Er(e);return n===t||!Dn(n)||lo(n)?!1:yn(n).position==="fixed"||Kb(n,t)}function ME(e,t){const n=t.get(e);if(n)return n;let r=As(e,[],!1).filter(l=>Dn(l)&&xo(l)!=="body"),i=null;const o=yn(e).position==="fixed";let s=o?Er(e):e;for(;Dn(s)&&!lo(s);){const l=yn(s),a=Kh(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ks(s)&&!a&&Kb(e,s))?r=r.filter(d=>d!==s):i=l,s=Er(s)}return t.set(e,r),r}function LE(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?ep(t)?[]:ME(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((c,d)=>{const u=xg(t,d,i);return c.top=Kr(u.top,c.top),c.right=La(u.right,c.right),c.bottom=La(u.bottom,c.bottom),c.left=Kr(u.left,c.left),c},xg(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function NE(e){const{width:t,height:n}=Qb(e);return{width:t,height:n}}function FE(e,t,n){const r=Mn(t),i=Zn(t),o=n==="fixed",s=ai(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const a=Ir(0);if(r||!r&&!o)if((xo(t)!=="body"||Ks(i))&&(l=Yc(t)),r){const u=ai(t,!0,o,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else i&&(a.x=Yb(i));const c=s.left+l.scrollLeft-a.x,d=s.top+l.scrollTop-a.y;return{x:c,y:d,width:s.width,height:s.height}}function qu(e){return yn(e).position==="static"}function wg(e,t){return!Mn(e)||yn(e).position==="fixed"?null:t?t(e):e.offsetParent}function Jb(e,t){const n=jt(e);if(ep(e))return n;if(!Mn(e)){let i=Er(e);for(;i&&!lo(i);){if(Dn(i)&&!qu(i))return i;i=Er(i)}return n}let r=wg(e,t);for(;r&&$E(r)&&qu(r);)r=wg(r,t);return r&&lo(r)&&qu(r)&&!Kh(r)?n:r||TE(e)||n}const jE=async function(e){const t=this.getOffsetParent||Jb,n=this.getDimensions,r=await n(e.floating);return{reference:FE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function zE(e){return yn(e).direction==="rtl"}const BE={convertOffsetParentRelativeRectToViewportRelativeRect:PE,getDocumentElement:Zn,getClippingRect:LE,getOffsetParent:Jb,getElementRects:jE,getClientRects:OE,getDimensions:NE,getScale:Gi,isElement:Dn,isRTL:zE};function VE(e,t){let n=null,r;const i=Zn(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();const{left:c,top:d,width:u,height:f}=e.getBoundingClientRect();if(l||t(),!u||!f)return;const v=Il(d),g=Il(i.clientWidth-(c+u)),m=Il(i.clientHeight-(d+f)),b=Il(c),h={rootMargin:-v+"px "+-g+"px "+-m+"px "+-b+"px",threshold:Kr(0,La(1,a))||1};let y=!0;function w(k){const $=k[0].intersectionRatio;if($!==a){if(!y)return s();$?s(!1,$):r=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{n=new IntersectionObserver(w,{...h,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,h)}n.observe(e)}return s(!0),o}function kg(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,c=Zh(e),d=i||o?[...c?As(c):[],...As(t)]:[];d.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const u=c&&l?VE(c,n):null;let f=-1,v=null;s&&(v=new ResizeObserver(p=>{let[h]=p;h&&h.target===c&&v&&(v.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=v)==null||y.observe(t)})),n()}),c&&!a&&v.observe(c),v.observe(t));let g,m=a?ai(e):null;a&&b();function b(){const p=ai(e);m&&(p.x!==m.x||p.y!==m.y||p.width!==m.width||p.height!==m.height)&&n(),m=p,g=requestAnimationFrame(b)}return n(),()=>{var p;d.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),u==null||u(),(p=v)==null||p.disconnect(),v=null,a&&cancelAnimationFrame(g)}}const Cg=CE,HE=SE,UE=wE,WE=(e,t,n)=>{const r=new Map,i={platform:BE,...n},o={...i.platform,_c:r};return xE(e,t,{...i,platform:o})};var ta=typeof document<"u"?x.useLayoutEffect:x.useEffect;function za(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!za(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!za(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Zb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sg(e,t){const n=Zb(e);return Math.round(t*n)/n}function $g(e){const t=x.useRef(e);return ta(()=>{t.current=e}),t}function GE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:a,open:c}=e,[d,u]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,v]=x.useState(r);za(f,r)||v(r);const[g,m]=x.useState(null),[b,p]=x.useState(null),h=x.useCallback(W=>{W!==$.current&&($.current=W,m(W))},[]),y=x.useCallback(W=>{W!==I.current&&(I.current=W,p(W))},[]),w=o||g,k=s||b,$=x.useRef(null),I=x.useRef(null),R=x.useRef(d),B=a!=null,D=$g(a),P=$g(i),O=x.useCallback(()=>{if(!$.current||!I.current)return;const W={placement:t,strategy:n,middleware:f};P.current&&(W.platform=P.current),WE($.current,I.current,W).then(_=>{const M={..._,isPositioned:!0};j.current&&!za(R.current,M)&&(R.current=M,uc.flushSync(()=>{u(M)}))})},[f,t,n,P]);ta(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,u(W=>({...W,isPositioned:!1})))},[c]);const j=x.useRef(!1);ta(()=>(j.current=!0,()=>{j.current=!1}),[]),ta(()=>{if(w&&($.current=w),k&&(I.current=k),w&&k){if(D.current)return D.current(w,k,O);O()}},[w,k,O,D,B]);const z=x.useMemo(()=>({reference:$,floating:I,setReference:h,setFloating:y}),[h,y]),V=x.useMemo(()=>({reference:w,floating:k}),[w,k]),q=x.useMemo(()=>{const W={position:n,left:0,top:0};if(!V.floating)return W;const _=Sg(V.floating,d.x),M=Sg(V.floating,d.y);return l?{...W,transform:"translate("+_+"px, "+M+"px)",...Zb(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:M}},[n,l,V.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:O,refs:z,elements:V,floatingStyles:q}),[d,O,z,V,q])}function qE(e){return typeof e=="function"?e():e}const QE=x.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[s,l]=x.useState(null),a=Bt(x.isValidElement(r)?r.ref:null,n);if(_a(()=>{o||l(qE(i)||document.body)},[i,o]),_a(()=>{if(s&&!o)return pf(n,s),()=>{pf(n,null)}},[n,s,o]),o){if(x.isValidElement(r)){const c={ref:a};return x.cloneElement(r,c)}return C.jsx(x.Fragment,{children:r})}return C.jsx(x.Fragment,{children:s&&uc.createPortal(r,s)})}),ex="Popup";function XE(e){return Bb(ex,e)}cE(ex,["root","open"]);const YE=x.createContext(null);function KE(e){const[t,n]=x.useState(!0),r=x.useRef(!1),i=x.useRef(0),[o,s]=x.useState(!1),l=x.useRef(e);x.useEffect(()=>{!e&&i.current>0&&l.current!==e&&(r.current=!0,n(!1)),l.current=e},[e]);const a=x.useCallback(()=>{r.current=!1,n(!0)},[]),c=x.useCallback(()=>(i.current+=1,s(!0),()=>{i.current-=1,i.current===0&&s(!1)}),[]);let d;return o?e?d=!1:d=!r.current&&t:d=!e,{contextValue:x.useMemo(()=>({requestedEnter:e,onExited:a,registerTransition:c,hasExited:d}),[a,e,c,d]),hasExited:d}}const JE=x.createContext(null),ZE=["anchor","children","container","disablePortal","keepMounted","middleware","offset","open","placement","slotProps","slots","strategy"];function eR(e){const{open:t}=e;return qe({root:["root",t&&"open"]},LI(XE))}function tR(e){return typeof e=="function"?e():e}const nR=x.forwardRef(function(t,n){var r;const{anchor:i,children:o,container:s,disablePortal:l=!1,keepMounted:a=!1,middleware:c,offset:d=0,open:u=!1,placement:f="bottom",slotProps:v={},slots:g={},strategy:m="absolute"}=t,b=K(t,ZE),{refs:p,elements:h,floatingStyles:y,update:w,placement:k}=GE({elements:{reference:tR(i)},open:u,middleware:c??[Cg(d??0),UE(),HE()],placement:f,strategy:m,whileElementsMounted:a?void 0:kg}),$=Bt(p.setFloating,n);_a(()=>{if(a&&u&&h.reference&&h.floating)return kg(h.reference,h.floating,w)},[a,u,h,w]);const I=T({},t,{disablePortal:l,keepMounted:a,offset:Cg,open:u,placement:f,finalPlacement:k,strategy:m}),{contextValue:R,hasExited:B}=KE(u),D=a&&B?"hidden":void 0,P=eR(I),O=(r=g==null?void 0:g.root)!=null?r:"div",j=Rn({elementType:O,externalSlotProps:v.root,externalForwardedProps:b,ownerState:I,className:P.root,additionalProps:{ref:$,role:"tooltip",style:T({},y,{visibility:D})}}),z=x.useMemo(()=>({placement:k}),[k]);return a||!B?C.jsx(QE,{disablePortal:l,container:s,children:C.jsx(JE.Provider,{value:z,children:C.jsx(YE.Provider,{value:R,children:C.jsx(O,T({},j,{children:o}))})})}):null}),rR=x.createContext(void 0);function iR(){return x.useContext(rR)}function oR(e){return C.jsx(C$,T({},e,{defaultTheme:Uc,themeId:oi}))}const sR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],lR={entering:{opacity:1},entered:{opacity:1}},aR=x.forwardRef(function(t,n){const r=Wc(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,easing:a,in:c,onEnter:d,onEntered:u,onEntering:f,onExit:v,onExited:g,onExiting:m,style:b,timeout:p=i,TransitionComponent:h=Ln}=t,y=K(t,sR),w=x.useRef(null),k=Bt(w,l.ref,n),$=z=>V=>{if(z){const q=w.current;V===void 0?z(q):z(q,V)}},I=$(f),R=$((z,V)=>{$I(z);const q=Ma({style:b,timeout:p,easing:a},{mode:"enter"});z.style.webkitTransition=r.transitions.create("opacity",q),z.style.transition=r.transitions.create("opacity",q),d&&d(z,V)}),B=$(u),D=$(m),P=$(z=>{const V=Ma({style:b,timeout:p,easing:a},{mode:"exit"});z.style.webkitTransition=r.transitions.create("opacity",V),z.style.transition=r.transitions.create("opacity",V),v&&v(z)}),O=$(g),j=z=>{o&&o(w.current,z)};return C.jsx(h,T({appear:s,in:c,nodeRef:w,onEnter:R,onEntered:B,onEntering:I,onExit:P,onExited:O,onExiting:D,addEndListener:j,timeout:p},y,{children:(z,V)=>x.cloneElement(l,T({style:T({opacity:0,visibility:z==="exited"&&!c?"hidden":void 0},lR[z],b,l.props.style),ref:k},V))}))});function cR(e){return Ge("MuiBadge",e)}const rr=ze("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),uR=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Qu=10,Xu=4,dR=Fb(),fR=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:s={}}=e,l={root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${X(n.vertical)}${X(n.horizontal)}`,`anchorOrigin${X(n.vertical)}${X(n.horizontal)}${X(i)}`,`overlap${X(i)}`,t!=="default"&&`color${X(t)}`]};return qe(l,cR,s)},hR=ee("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),pR=ee("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${X(n.anchorOrigin.vertical)}${X(n.anchorOrigin.horizontal)}${X(n.overlap)}`],n.color!=="default"&&t[`color${X(n.color)}`],n.invisible&&t.invisible]}})(({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:Qu*2,lineHeight:1,padding:"0 6px",height:Qu*2,borderRadius:Qu,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r,i;return((r=e.vars)!=null?r:e).palette[n].main&&((i=e.vars)!=null?i:e).palette[n].contrastText}).map(n=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Xu,height:Xu*2,minWidth:Xu*2,padding:0}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${rr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${rr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${rr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${rr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${rr.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="right"&&n.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${rr.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="top"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${rr.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:n})=>n.anchorOrigin.vertical==="bottom"&&n.anchorOrigin.horizontal==="left"&&n.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${rr.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}}),mR=x.forwardRef(function(t,n){var r,i,o,s,l,a;const c=dR({props:t,name:"MuiBadge"}),{anchorOrigin:d={vertical:"top",horizontal:"right"},className:u,component:f,components:v={},componentsProps:g={},children:m,overlap:b="rectangular",color:p="default",invisible:h=!1,max:y=99,badgeContent:w,slots:k,slotProps:$,showZero:I=!1,variant:R="standard"}=c,B=K(c,uR),{badgeContent:D,invisible:P,max:O,displayValue:j}=sE({max:y,invisible:h,badgeContent:w,showZero:I}),z=Cb({anchorOrigin:d,color:p,overlap:b,variant:R,badgeContent:w}),V=P||D==null&&R!=="dot",{color:q=p,overlap:W=b,anchorOrigin:_=d,variant:M=R}=V?z:c,H=M!=="dot"?j:void 0,re=T({},c,{badgeContent:D,invisible:V,max:O,displayValue:H,showZero:I,anchorOrigin:_,color:q,overlap:W,variant:M}),ae=fR(re),At=(r=(i=k==null?void 0:k.root)!=null?i:v.Root)!=null?r:hR,Ie=(o=(s=k==null?void 0:k.badge)!=null?s:v.Badge)!=null?o:pR,et=(l=$==null?void 0:$.root)!=null?l:g.root,U=(a=$==null?void 0:$.badge)!=null?a:g.badge,xe=Rn({elementType:At,externalSlotProps:et,externalForwardedProps:B,additionalProps:{ref:n,as:f},ownerState:re,className:le(et==null?void 0:et.className,ae.root,u)}),dt=Rn({elementType:Ie,externalSlotProps:U,ownerState:re,className:le(ae.badge,U==null?void 0:U.className)});return C.jsxs(At,T({},xe,{children:[m,C.jsx(Ie,T({},dt,{children:H}))]}))}),gR=ze("MuiBox",["root"]),vR=qh(),mt=R$({themeId:oi,defaultTheme:vR,defaultClassName:gR.root,generateClassName:db.generate});function yR(e){return Ge("PrivateSwitchBase",e)}ze("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const bR=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],xR=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${X(i)}`],input:["input"]};return qe(o,yR,t)},wR=ee(ZI)(({ownerState:e})=>T({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),kR=ee("input",{shouldForwardProp:Lb})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),CR=x.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:s,defaultChecked:l,disabled:a,disableFocusRipple:c=!1,edge:d=!1,icon:u,id:f,inputProps:v,inputRef:g,name:m,onBlur:b,onChange:p,onFocus:h,readOnly:y,required:w=!1,tabIndex:k,type:$,value:I}=t,R=K(t,bR),[B,D]=U$({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),P=iR(),O=M=>{h&&h(M),P&&P.onFocus&&P.onFocus(M)},j=M=>{b&&b(M),P&&P.onBlur&&P.onBlur(M)},z=M=>{if(M.nativeEvent.defaultPrevented)return;const H=M.target.checked;D(H),p&&p(M,H)};let V=a;P&&typeof V>"u"&&(V=P.disabled);const q=$==="checkbox"||$==="radio",W=T({},t,{checked:B,disabled:V,disableFocusRipple:c,edge:d}),_=xR(W);return C.jsxs(wR,T({component:"span",className:le(_.root,s),centerRipple:!0,focusRipple:!c,disabled:V,tabIndex:null,role:void 0,onFocus:O,onBlur:j,ownerState:W,ref:n},R,{children:[C.jsx(kR,T({autoFocus:r,checked:i,defaultChecked:l,className:_.input,disabled:V,id:q?f:void 0,name:m,onChange:z,readOnly:y,ref:g,required:w,ownerState:W,tabIndex:k,type:$},$==="checkbox"&&I===void 0?{}:{value:I},v)),B?o:u]}))});function SR(e){return Ge("MuiCircularProgress",e)}ze("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const $R=["className","color","disableShrink","size","style","thickness","value","variant"];let Kc=e=>e,Tg,Ig,Eg,Rg;const ir=44,TR=vo(Tg||(Tg=Kc` 0% { transform: rotate(0deg); } @@ -133,7 +133,7 @@ Error generating stack: `+o.message+` 100% { transform: rotate(360deg); } -`)),IR=go(Ig||(Ig=Xc` +`)),IR=vo(Ig||(Ig=Kc` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -148,48 +148,48 @@ Error generating stack: `+o.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),ER=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${X(r)}`],svg:["svg"],circle:["circle",`circle${X(n)}`,i&&"circleDisableShrink"]};return qe(o,SR,t)},RR=ee("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${X(n.color)}`]]}})(({ownerState:e,theme:t})=>T({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&kc(Eg||(Eg=Xc` +`)),ER=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${X(r)}`],svg:["svg"],circle:["circle",`circle${X(n)}`,i&&"circleDisableShrink"]};return qe(o,SR,t)},RR=ee("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${X(n.color)}`]]}})(({ownerState:e,theme:t})=>T({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Sc(Eg||(Eg=Kc` animation: ${0} 1.4s linear infinite; - `),TR)),PR=ee("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),OR=ee("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${X(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>T({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&kc(Rg||(Rg=Xc` + `),TR)),PR=ee("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),OR=ee("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${X(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>T({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Sc(Rg||(Rg=Kc` animation: ${0} 1.4s ease-in-out infinite; - `),IR)),za=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:l=40,style:a,thickness:c=3.6,value:d=0,variant:u="indeterminate"}=r,f=K(r,$R),v=T({},r,{color:o,disableShrink:s,size:l,thickness:c,value:d,variant:u}),m=ER(v),g={},b={},p={};if(u==="determinate"){const h=2*Math.PI*((rr-c)/2);g.strokeDasharray=h.toFixed(3),p["aria-valuenow"]=Math.round(d),g.strokeDashoffset=`${((100-d)/100*h).toFixed(3)}px`,b.transform="rotate(-90deg)"}return C.jsx(RR,T({className:le(m.root,i),style:T({width:l,height:l},b,a),ownerState:v,ref:n,role:"progressbar"},p,f,{children:C.jsx(PR,{className:m.svg,ownerState:v,viewBox:`${rr/2} ${rr/2} ${rr} ${rr}`,children:C.jsx(OR,{className:m.circle,style:g,ownerState:v,cx:rr,cy:rr,r:(rr-c)/2,fill:"none",strokeWidth:c})})}))}),_R=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),AR=e=>T({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}}),MR=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var a;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(a=l.palette)==null?void 0:a.mode}});let i=T({html:_R(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},AR(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function DR(e){const t=Ze({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return C.jsxs(x.Fragment,{children:[C.jsx(oR,{styles:i=>MR(i,r)}),n]})}function LR(e){return Ge("MuiLink",e)}const NR=ze("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),tx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},FR=e=>tx[e]||e,jR=({theme:e,ownerState:t})=>{const n=FR(t.color),r=oo(e,`palette.${n}`,!1)||t.color,i=oo(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:si(r,.4)},zR=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],BR=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${X(i)}`,n==="button"&&"button",r&&"focusVisible"]};return qe(o,LR,t)},VR=ee(Rn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${X(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>T({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&T({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:jR({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${NR.focusVisible}`]:{outline:"auto"}})),wf=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:s="a",onBlur:l,onFocus:a,TypographyClasses:c,underline:d="always",variant:u="inherit",sx:f}=r,v=K(r,zR),{isFocusVisibleRef:m,onBlur:g,onFocus:b,ref:p}=kb(),[h,y]=x.useState(!1),w=Bt(n,p),k=B=>{g(B),m.current===!1&&y(!1),l&&l(B)},$=B=>{b(B),m.current===!0&&y(!0),a&&a(B)},I=T({},r,{color:o,component:s,focusVisible:h,underline:d,variant:u}),R=BR(I);return C.jsx(VR,T({color:o,className:le(R.root,i),classes:c,component:s,onBlur:k,onFocus:$,ref:w,ownerState:I,variant:u,sx:[...Object.keys(tx).includes(o)?[]:[{color:o}],...Array.isArray(f)?f:[f]]},v))});function HR(e){return Ge("MuiSwitch",e)}const ft=ze("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),UR=["className","color","edge","size","sx"],WR=Fb(),GR=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:s}=e,l={root:["root",n&&`edge${X(n)}`,`size${X(r)}`],switchBase:["switchBase",`color${X(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=qe(l,HR,t);return T({},t,a)},qR=ee("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${X(n.edge)}`],t[`size${X(n.size)}`]]}})({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"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${ft.thumb}`]:{width:16,height:16},[`& .${ft.switchBase}`]:{padding:4,[`&.${ft.checked}`]:{transform:"translateX(16px)"}}}}]}),QR=ee(CR,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ft.input}`]:t.input},n.color!=="default"&&t[`color${X(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}),[`&.${ft.checked}`]:{transform:"translateX(20px)"},[`&.${ft.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ft.checked} + .${ft.track}`]:{opacity:.5},[`&.${ft.disabled} + .${ft.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ft.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:si(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${ft.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:si(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ft.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Hh(e.palette[t].main,.62):Vh(e.palette[t].main,.55)}`}},[`&.${ft.checked} + .${ft.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),XR=ee("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}`})),YR=ee("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%"})),KR=x.forwardRef(function(t,n){const r=WR({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:s=!1,size:l="medium",sx:a}=r,c=K(r,UR),d=T({},r,{color:o,edge:s,size:l}),u=GR(d),f=C.jsx(YR,{className:u.thumb,ownerState:d});return C.jsxs(qR,{className:le(u.root,i),sx:a,ownerState:d,children:[C.jsx(QR,T({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:d},c,{classes:T({},u,{root:u.switchBase})})),C.jsx(XR,{className:u.track,ownerState:d})]})}),nx=x.createContext();function JR(e){return Ge("MuiTable",e)}ze("MuiTable",["root","stickyHeader"]);const ZR=["className","component","padding","size","stickyHeader"],eP=e=>{const{classes:t,stickyHeader:n}=e;return qe({root:["root",n&&"stickyHeader"]},JR,t)},tP=ee("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Pg="table",nP=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTable"}),{className:i,component:o=Pg,padding:s="normal",size:l="medium",stickyHeader:a=!1}=r,c=K(r,ZR),d=T({},r,{component:o,padding:s,size:l,stickyHeader:a}),u=eP(d),f=x.useMemo(()=>({padding:s,size:l,stickyHeader:a}),[s,l,a]);return C.jsx(nx.Provider,{value:f,children:C.jsx(tP,T({as:o,role:o===Pg?null:"table",ref:n,className:le(u.root,i),ownerState:d},c))})}),Yc=x.createContext();function rP(e){return Ge("MuiTableBody",e)}ze("MuiTableBody",["root"]);const iP=["className","component"],oP=e=>{const{classes:t}=e;return qe({root:["root"]},rP,t)},sP=ee("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),lP={variant:"body"},Og="tbody",aP=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableBody"}),{className:i,component:o=Og}=r,s=K(r,iP),l=T({},r,{component:o}),a=oP(l);return C.jsx(Yc.Provider,{value:lP,children:C.jsx(sP,T({className:le(a.root,i),as:o,ref:n,role:o===Og?null:"rowgroup",ownerState:l},s))})});function cP(e){return Ge("MuiTableCell",e)}const uP=ze("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),dP=["align","className","component","padding","scope","size","sortDirection","variant"],fP=e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:s}=e,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${X(r)}`,i!=="normal"&&`padding${X(i)}`,`size${X(o)}`]};return qe(l,cP,t)},hP=ee("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${X(n.size)}`],n.padding!=="normal"&&t[`padding${X(n.padding)}`],n.align!=="inherit"&&t[`align${X(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?Hh(si(e.palette.divider,1),.88):Vh(si(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${uP.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),ir=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:s,padding:l,scope:a,size:c,sortDirection:d,variant:u}=r,f=K(r,dP),v=x.useContext(nx),m=x.useContext(Yc),g=m&&m.variant==="head";let b;s?b=s:b=g?"th":"td";let p=a;b==="td"?p=void 0:!p&&g&&(p="col");const h=u||m&&m.variant,y=T({},r,{align:i,component:b,padding:l||(v&&v.padding?v.padding:"normal"),size:c||(v&&v.size?v.size:"medium"),sortDirection:d,stickyHeader:h==="head"&&v&&v.stickyHeader,variant:h}),w=fP(y);let k=null;return d&&(k=d==="asc"?"ascending":"descending"),C.jsx(hP,T({as:b,ref:n,className:le(w.root,o),"aria-sort":k,scope:p,ownerState:y},f))});function pP(e){return Ge("MuiTableContainer",e)}ze("MuiTableContainer",["root"]);const mP=["className","component"],gP=e=>{const{classes:t}=e;return qe({root:["root"]},pP,t)},vP=ee("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),yP=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableContainer"}),{className:i,component:o="div"}=r,s=K(r,mP),l=T({},r,{component:o}),a=gP(l);return C.jsx(vP,T({ref:n,as:o,className:le(a.root,i),ownerState:l},s))});function bP(e){return Ge("MuiTableHead",e)}ze("MuiTableHead",["root"]);const xP=["className","component"],wP=e=>{const{classes:t}=e;return qe({root:["root"]},bP,t)},kP=ee("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),CP={variant:"head"},_g="thead",SP=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableHead"}),{className:i,component:o=_g}=r,s=K(r,xP),l=T({},r,{component:o}),a=wP(l);return C.jsx(Yc.Provider,{value:CP,children:C.jsx(kP,T({as:o,className:le(a.root,i),ref:n,role:o===_g?null:"rowgroup",ownerState:l},s))})});function $P(e){return Ge("MuiTableRow",e)}const Ag=ze("MuiTableRow",["root","selected","hover","head","footer"]),TP=["className","component","hover","selected"],IP=e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e;return qe({root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]},$P,t)},EP=ee("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Ag.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ag.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:si(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:si(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),Mg="tr",Dg=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableRow"}),{className:i,component:o=Mg,hover:s=!1,selected:l=!1}=r,a=K(r,TP),c=x.useContext(Yc),d=T({},r,{component:o,hover:s,selected:l,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),u=IP(d);return C.jsx(EP,T({as:o,ref:n,className:le(u.root,i),role:o===Mg?null:"row",ownerState:d},a))}),RP=e=>{try{return getComputedStyle(document.documentElement).getPropertyValue(e).trim()||Sn[500]}catch(t){return console.error(`Error getting CSS variable ${e}: ${t}`),Sn[500]}},Il=e=>{let t=e.replace(/\./g,"-").toLowerCase();t.startsWith("--vscode-")||(t="--vscode-"+t);const n=RP(`${t}`);return C.jsxs(Ct,{display:"flex",alignItems:"center",gap:1,children:[C.jsxs("div",{children:[t,": ",JSON.stringify(n)]}),C.jsx(Ct,{sx:{width:"10px",height:"10px",backgroundColor:n,border:"1px solid #000"}})]})},PP=()=>C.jsxs(C.Fragment,{children:["Note: Not implemented yet.",C.jsx("br",{})," Will show events from your last published module(s).",Il("editor-foreground"),Il("editor-background"),Il("badge-background"),Il("badge-foreground")]});class tp{constructor(){this.method="",this.methodUuid="",this.dataUuid="",this.json=null}getMethod(){return this.method}getMethodUuid(){return this.methodUuid}getDataUuid(){return this.dataUuid}getJson(){return this.json}update(t){const n=t.header.method,r=t.header.methodUuid,i=t.header.dataUuid;return this.method!==""&&n!==this.method?(console.error(`Trying to update [${this.json.method}] using a JSON from [${n}]`),!1):this.json===null||this.methodUuid!==r||i>this.dataUuid?(this.method=n,this.methodUuid=r,this.dataUuid=i,this.json=t,this.deltaDetected(),!0):!1}deltaDetected(){}}class OP extends tp{isWorkdirStatusUpdateNeeded(t){return this.isUpdateNeeded(t,"getWorkdirStatus")}isWorkdirPackagesUpdateNeeded(t){return this.isUpdateNeeded(t,"getWorkdirPackages")}isUpdateNeeded(t,n){try{const r=t===null||t.getJson()===null||t.getMethod()===""||t.getMethodUuid()===""||t.getDataUuid()==="";for(const i of this.getJson().versions)if(i.method===n){const o=i.methodUuid,s=i.dataUuid;if(r||t.getMethodUuid()!==o||t.getDataUuid()0?this.suiClientVersionShort=this.suiClientVersion.split("-")[0]:this.suiClientVersionShort="",this.isLoaded=!0}catch(t){console.error(`Problem with SuibaseJsonWorkdirStatus loading: ${JSON.stringify(t)}`)}}}class AP extends tp{constructor(){super(),this.isLoaded=!1}deltaDetected(){super.deltaDetected(),this.isLoaded=!0}}const Kr=["mainnet","testnet","devnet","localnet"],kf=["Mainnet","Testnet","Devnet","Localnet"],Cf="suibase.dashboard",MP="suibase.console",Sf="suibase.explorer",Ba="0",Xu="2",rx="P",ix="x",np=`${ix}-${Ba}-help`,ox="[TREE_ID_INSERT_ADDR]",Lg="Suibase not installed",Ng="Git not installed";class DP{constructor(){we(this,"vsCodeApi");typeof acquireVsCodeApi=="function"&&(this.vsCodeApi=acquireVsCodeApi())}postMessage(t){this.vsCodeApi?this.vsCodeApi.postMessage(t):console.log(t)}getState(){if(this.vsCodeApi)return this.vsCodeApi.getState();{const t=localStorage.getItem("vscodeState");return t?JSON.parse(t):void 0}}setState(t){return this.vsCodeApi?this.vsCodeApi.setState(t):(localStorage.setItem("vscodeState",JSON.stringify(t)),t)}}const ss=new DP;class Kc{constructor(t,n){this.name=t,this.sender=n}}class sx extends Kc{constructor(t,n,r){super("WorkdirCommand",t),this.workdirIdx=n,this.command=r}}class LP extends Kc{constructor(t){super("InitView",t)}}class NP extends Kc{constructor(t,n,r,i){super("RequestWorkdirStatus",t),this.workdirIdx=n,this.methodUuid=r,this.dataUuid=i}}class FP extends Kc{constructor(t,n,r,i){super("RequestWorkdirPackages",t),this.workdirIdx=n,this.methodUuid=r,this.dataUuid=i}}class jP{constructor(t,n){we(this,"label");we(this,"workdir");we(this,"workdirIdx");we(this,"versions");we(this,"workdirStatus");we(this,"workdirPackages");this.label=t.charAt(0).toUpperCase()+t.slice(1),this.workdir=t,this.workdirIdx=n,this.versions=new OP,this.workdirStatus=new _P,this.workdirPackages=new AP}}class zP{constructor(){we(this,"_activeWorkdir");we(this,"_activeWorkdirIdx");we(this,"_activeLoaded");we(this,"_setupIssue");this._activeWorkdir="",this._activeWorkdirIdx=0,this._activeLoaded=!1,this._setupIssue=""}get activeWorkdir(){return this._activeWorkdir}get activeWorkdirIdx(){return this._activeWorkdirIdx}get activeLoaded(){return this._activeLoaded}get setupIssue(){return this._setupIssue}set activeWorkdir(t){const n=Kr.indexOf(t);if(n<0){console.error(`Invalid workdir: ${t}`);return}this._activeWorkdirIdx=n,this._activeWorkdir=t,this._activeLoaded=!0}set activeWorkdirIdx(t){if(t<0||t>=Kr.length){console.error(`Invalid workdirIdx: ${t}`);return}this._activeWorkdir=Kr[t],this._activeWorkdirIdx=t,this._activeLoaded=!0}set setupIssue(t){this._setupIssue=t}}const lx=(e,t)=>{const n=(t==null?void 0:t.trackStatus)||!1,r=(t==null?void 0:t.trackPackages)||!1,{message:i}=_0(),o=x.useRef(new zP),[s]=x.useState(Kr.map((v,m)=>new jP(v,m))),[l,a]=x.useState(!1),[c,d]=x.useState(!1),[u,f]=x.useState(!1);return x.useEffect(()=>{let v=o.current.activeLoaded===!1;if(!v){for(let m=0;m{try{if(i&&i.name){let v=!1,m=!1,g=!1;switch(i.name){case"UpdateVersions":{let b=!1;if(i.setupIssue){const p=i.setupIssue;p!==o.current.setupIssue&&(o.current.setupIssue=p,v=!0),p!==""&&(b=!0)}if(b===!1&&o.current.setupIssue!==""&&(o.current.setupIssue="",v=!0),b===!1&&i.json){const p=s[i.workdirIdx];if(p.versions.update(i.json)){if(v=!0,n){const[y,w,k]=p.versions.isWorkdirStatusUpdateNeeded(p.workdirStatus);y&&ss.postMessage(new NP(e,i.workdirIdx,w,k))}if(r){const[y,w,k]=p.versions.isWorkdirPackagesUpdateNeeded(p.workdirPackages);y&&ss.postMessage(new FP(e,i.workdirIdx,w,k))}}o.current.activeWorkdir!==i.json.asuiSelection&&(o.current.activeWorkdir=i.json.asuiSelection,v=!0)}break}case"UpdateWorkdirStatus":{n&&s[i.workdirIdx].workdirStatus.update(i.json)&&(m=!0);break}case"UpdateWorkdirPackages":{r&&s[i.workdirIdx].workdirPackages.update(i.json)&&(g=!0);break}default:console.log("Received an unknown command",i)}v&&a(b=>!b),m&&d(b=>!b),g&&f(b=>!b)}}catch(v){console.error("An error occurred in useCommonController:",v)}},[i,s,e]),{commonTrigger:l,statusTrigger:c,packagesTrigger:u,common:o,workdirs:s}},Er=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();Er.trustedTypes===void 0&&(Er.trustedTypes={createPolicy:(e,t)=>t});const ax={configurable:!1,enumerable:!1,writable:!1};Er.FAST===void 0&&Reflect.defineProperty(Er,"FAST",Object.assign({value:Object.create(null)},ax));const Ms=Er.FAST;if(Ms.getById===void 0){const e=Object.create(null);Reflect.defineProperty(Ms,"getById",Object.assign({value(t,n){let r=e[t];return r===void 0&&(r=n?e[t]=n():null),r}},ax))}const Jr=Object.freeze([]);function cx(){const e=new WeakMap;return function(t){let n=e.get(t);if(n===void 0){let r=Reflect.getPrototypeOf(t);for(;n===void 0&&r!==null;)n=e.get(r),r=Reflect.getPrototypeOf(r);n=n===void 0?[]:n.slice(0),e.set(t,n)}return n}}const Yu=Er.FAST.getById(1,()=>{const e=[],t=[];function n(){if(t.length)throw t.shift()}function r(s){try{s.call()}catch(l){t.push(l),setTimeout(n,0)}}function i(){let l=0;for(;l1024){for(let a=0,c=e.length-l;ae});let Ku=ux;const ls=`fast-${Math.random().toString(36).substring(2,8)}`,dx=`${ls}{`,rp=`}${ls}`,J=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(Ku!==ux)throw new Error("The HTML policy can only be set once.");Ku=e},createHTML(e){return Ku.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith(ls)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${ls}:`,""))},createInterpolationPlaceholder(e){return`${dx}${e}${rp}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return``},queueUpdate:Yu.enqueue,processUpdates:Yu.process,nextUpdate(){return new Promise(Yu.enqueue)},setAttribute(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild)e.removeChild(t)},createTemplateWalker(e){return document.createTreeWalker(e,133,null,!1)}});class Va{constructor(t,n){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=n}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const n=this.spillover;if(n===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else n.indexOf(t)===-1&&n.push(t)}unsubscribe(t){const n=this.spillover;if(n===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}notify(t){const n=this.spillover,r=this.source;if(n===void 0){const i=this.sub1,o=this.sub2;i!==void 0&&i.handleChange(r,t),o!==void 0&&o.handleChange(r,t)}else for(let i=0,o=n.length;i{const e=/(:|&&|\|\||if)/,t=new WeakMap,n=J.queueUpdate;let r,i=c=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function o(c){let d=c.$fastController||t.get(c);return d===void 0&&(Array.isArray(c)?d=i(c):t.set(c,d=new fx(c))),d}const s=cx();class l{constructor(d){this.name=d,this.field=`_${d}`,this.callback=`${d}Changed`}getValue(d){return r!==void 0&&r.watch(d,this.name),d[this.field]}setValue(d,u){const f=this.field,v=d[f];if(v!==u){d[f]=u;const m=d[this.callback];typeof m=="function"&&m.call(d,v,u),o(d).notify(this.name)}}}class a extends Va{constructor(d,u,f=!1){super(d,u),this.binding=d,this.isVolatileBinding=f,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(d,u){this.needsRefresh&&this.last!==null&&this.disconnect();const f=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const v=this.binding(d,u);return r=f,v}disconnect(){if(this.last!==null){let d=this.first;for(;d!==void 0;)d.notifier.unsubscribe(this,d.propertyName),d=d.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(d,u){const f=this.last,v=o(d),m=f===null?this.first:{};if(m.propertySource=d,m.propertyName=u,m.notifier=v,v.subscribe(this,u),f!==null){if(!this.needsRefresh){let g;r=void 0,g=f.propertySource[f.propertyName],r=this,d===g&&(this.needsRefresh=!0)}f.next=m}this.last=m}handleChange(){this.needsQueue&&(this.needsQueue=!1,n(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let d=this.first;return{next:()=>{const u=d;return u===void 0?{value:void 0,done:!0}:(d=d.next,{value:u,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(c){i=c},getNotifier:o,track(c,d){r!==void 0&&r.watch(c,d)},trackVolatile(){r!==void 0&&(r.needsRefresh=!0)},notify(c,d){o(c).notify(d)},defineProperty(c,d){typeof d=="string"&&(d=new l(d)),s(c).push(d),Reflect.defineProperty(c,d.name,{enumerable:!0,get:function(){return d.getValue(this)},set:function(u){d.setValue(this,u)}})},getAccessors:s,binding(c,d,u=this.isVolatileBinding(c)){return new a(c,d,u)},isVolatileBinding(c){return e.test(c.toString())}})});function F(e,t){Y.defineProperty(e,t)}function BP(e,t,n){return Object.assign({},n,{get:function(){return Y.trackVolatile(),n.get.apply(this)}})}const Fg=Ms.getById(3,()=>{let e=null;return{get(){return e},set(t){e=t}}});class Ds{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return Fg.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){Fg.set(t)}}Y.defineProperty(Ds.prototype,"index");Y.defineProperty(Ds.prototype,"length");const as=Object.seal(new Ds);class Jc{constructor(){this.targetIndex=0}}class hx extends Jc{constructor(){super(...arguments),this.createPlaceholder=J.createInterpolationPlaceholder}}class ip extends Jc{constructor(t,n,r){super(),this.name=t,this.behavior=n,this.options=r}createPlaceholder(t){return J.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function VP(e,t){this.source=e,this.context=t,this.bindingObserver===null&&(this.bindingObserver=Y.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function HP(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function UP(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function WP(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function GP(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function qP(e){J.setAttribute(this.target,this.targetName,e)}function QP(e){J.setBooleanAttribute(this.target,this.targetName,e)}function XP(e){if(e==null&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function YP(e){this.target[this.targetName]=e}function KP(e){const t=this.classVersions||Object.create(null),n=this.target;let r=this.version||0;if(e!=null&&e.length){const i=e.split(/\s+/);for(let o=0,s=i.length;oJ.createHTML(n(r,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=QP;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=HP,this.unbind=GP;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=KP);break}}targetAtContent(){this.updateTarget=XP,this.unbind=WP}createBehavior(t){return new JP(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class JP{constructor(t,n,r,i,o,s,l){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=n,this.isBindingVolatile=r,this.bind=i,this.unbind=o,this.updateTarget=s,this.targetName=l}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){Ds.setEvent(t);const n=this.binding(this.source,this.context);Ds.setEvent(null),n!==!0&&t.preventDefault()}}let Ju=null;class sp{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){Ju=this}static borrow(t){const n=Ju||new sp;return n.directives=t,n.reset(),Ju=null,n}}function ZP(e){if(e.length===1)return e[0];let t;const n=e.length,r=e.map(s=>typeof s=="string"?()=>s:(t=s.targetName||t,s.binding)),i=(s,l)=>{let a="";for(let c=0;cl),c.targetName=s.name):c=ZP(a),c!==null&&(t.removeAttributeNode(s),i--,o--,e.addFactory(c))}}function tO(e,t,n){const r=px(e,t.textContent);if(r!==null){let i=t;for(let o=0,s=r.length;o0}const n=this.fragment.cloneNode(!0),r=this.viewBehaviorFactories,i=new Array(this.behaviorCount),o=J.createTemplateWalker(n);let s=0,l=this.targetOffset,a=o.nextNode();for(let c=r.length;s=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function se(e,...t){const n=[];let r="";for(let i=0,o=e.length-1;ia}if(typeof l=="function"&&(l=new op(l)),l instanceof hx){const a=rO.exec(s);a!==null&&(l.targetName=a[2])}l instanceof Jc?(r+=l.createPlaceholder(n.length),n.push(l)):r+=l}return r+=e[e.length-1],new zg(r,n)}class Rt{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}}Rt.create=(()=>{if(J.supportsAdoptedStyleSheets){const e=new Map;return t=>new iO(t,e)}return e=>new lO(e)})();function lp(e){return e.map(t=>t instanceof Rt?lp(t.styles):[t]).reduce((t,n)=>t.concat(n),[])}function gx(e){return e.map(t=>t instanceof Rt?t.behaviors:null).reduce((t,n)=>n===null?t:(t===null&&(t=[]),t.concat(n)),null)}const vx=Symbol("prependToAdoptedStyleSheets");function yx(e){const t=[],n=[];return e.forEach(r=>(r[vx]?t:n).push(r)),{prepend:t,append:n}}let bx=(e,t)=>{const{prepend:n,append:r}=yx(t);e.adoptedStyleSheets=[...n,...e.adoptedStyleSheets,...r]},xx=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(n=>t.indexOf(n)===-1)};if(J.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),bx=(e,t)=>{const{prepend:n,append:r}=yx(t);e.adoptedStyleSheets.splice(0,0,...n),e.adoptedStyleSheets.push(...r)},xx=(e,t)=>{for(const n of t){const r=e.adoptedStyleSheets.indexOf(n);r!==-1&&e.adoptedStyleSheets.splice(r,1)}}}catch{}class iO extends Rt{constructor(t,n){super(),this.styles=t,this.styleSheetCache=n,this._styleSheets=void 0,this.behaviors=gx(t)}get styleSheets(){if(this._styleSheets===void 0){const t=this.styles,n=this.styleSheetCache;this._styleSheets=lp(t).map(r=>{if(r instanceof CSSStyleSheet)return r;let i=n.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),n.set(r,i)),i})}return this._styleSheets}addStylesTo(t){bx(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){xx(t,this.styleSheets),super.removeStylesFrom(t)}}let oO=0;function sO(){return`fast-style-class-${++oO}`}class lO extends Rt{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=gx(t),this.styleSheets=lp(t),this.styleClass=sO()}addStylesTo(t){const n=this.styleSheets,r=this.styleClass;t=this.normalizeTarget(t);for(let i=0;i{r.add(t);const i=t[this.fieldName];switch(n){case"reflect":const o=this.converter;J.setAttribute(t,this.attribute,o!==void 0?o.toView(i):i);break;case"boolean":J.setBooleanAttribute(t,this.attribute,i);break}r.delete(t)})}static collect(t,...n){const r=[];n.push(Ha.locate(t));for(let i=0,o=n.length;i1&&(n.property=o),Ha.locate(i.constructor).push(n)}if(arguments.length>1){n={},r(e,t);return}return n=e===void 0?{}:e,r}const Bg={mode:"open"},Vg={},$f=Ms.getById(4,()=>{const e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)}})});class Js{constructor(t,n=t.definition){typeof n=="string"&&(n={name:n}),this.type=t,this.name=n.name,this.template=n.template;const r=Ua.collect(t,n.attributes),i=new Array(r.length),o={},s={};for(let l=0,a=r.length;l0){const o=this.boundObservables=Object.create(null);for(let s=0,l=i.length;s0||n>0;){if(t===0){i.push(Tf),n--;continue}if(n===0){i.push(If),t--;continue}const o=e[t-1][n-1],s=e[t-1][n],l=e[t][n-1];let a;s=0){e.splice(l,1),l--,s-=a.addedCount-a.removed.length,i.addedCount+=a.addedCount-c;const d=i.removed.length+a.removed.length-c;if(!i.addedCount&&!d)o=!0;else{let u=a.removed;if(i.indexa.index+a.addedCount){const f=i.removed.slice(a.index+a.addedCount-i.index);Ug.apply(u,f)}i.removed=u,a.indexr?n=r-e.addedCount:n<0&&(n=r+e.removed.length+n-e.addedCount),n<0&&(n=0),e.index=n,e}class yO extends Va{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){this.splices===void 0?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,J.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,J.queueUpdate(this))}flush(){const t=this.splices,n=this.oldCollection;if(t===void 0&&n===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const r=n===void 0?vO(this.source,t):Tx(this.source,0,this.source.length,n,0,n.length);this.notify(r)}}function bO(){if(Wg)return;Wg=!0,Y.setArrayObserverFactory(a=>new yO(a));const e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});const t=e.pop,n=e.push,r=e.reverse,i=e.shift,o=e.sort,s=e.splice,l=e.unshift;e.pop=function(){const a=this.length>0,c=t.apply(this,arguments),d=this.$fastController;return d!==void 0&&a&&d.addSplice(hn(this.length,[c],0)),c},e.push=function(){const a=n.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(td(hn(this.length-arguments.length,[],arguments.length),this)),a},e.reverse=function(){let a;const c=this.$fastController;c!==void 0&&(c.flush(),a=this.slice());const d=r.apply(this,arguments);return c!==void 0&&c.reset(a),d},e.shift=function(){const a=this.length>0,c=i.apply(this,arguments),d=this.$fastController;return d!==void 0&&a&&d.addSplice(hn(0,[c],0)),c},e.sort=function(){let a;const c=this.$fastController;c!==void 0&&(c.flush(),a=this.slice());const d=o.apply(this,arguments);return c!==void 0&&c.reset(a),d},e.splice=function(){const a=s.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(td(hn(+arguments[0],a,arguments.length>2?arguments.length-2:0),this)),a},e.unshift=function(){const a=l.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(td(hn(0,[],arguments.length),this)),a}}class xO{constructor(t,n){this.target=t,this.propertyName=n}bind(t){t[this.propertyName]=this.target}unbind(){}}function vt(e){return new ip("fast-ref",xO,e)}const Ix=e=>typeof e=="function",wO=()=>null;function Gg(e){return e===void 0?wO:Ix(e)?e:()=>e}function cp(e,t,n){const r=Ix(e)?e:()=>e,i=Gg(t),o=Gg(n);return(s,l)=>r(s,l)?i(s,l):o(s,l)}function kO(e,t,n,r){e.bind(t[n],r)}function CO(e,t,n,r){const i=Object.create(r);i.index=n,i.length=t.length,e.bind(t[n],i)}class SO{constructor(t,n,r,i,o,s){this.location=t,this.itemsBinding=n,this.templateBinding=i,this.options=s,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=kO,this.itemsBindingObserver=Y.binding(n,this,r),this.templateBindingObserver=Y.binding(i,this,o),s.positioning&&(this.bindView=CO)}bind(t,n){this.source=t,this.originalContext=n,this.childContext=Object.create(n),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,n){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(n)}observeItems(t=!1){if(!this.items){this.items=Jr;return}const n=this.itemsObserver,r=this.itemsObserver=Y.getNotifier(this.items),i=n!==r;i&&n!==null&&n.unsubscribe(this),(i||t)&&r.subscribe(this)}updateViews(t){const n=this.childContext,r=this.views,i=this.bindView,o=this.items,s=this.template,l=this.options.recycle,a=[];let c=0,d=0;for(let u=0,f=t.length;u0?(g<=y&&h.length>0?($=h[g],g++):($=a[c],c++),d--):$=s.create(),r.splice(b,0,$),i($,o,b,n),$.insertBefore(k)}h[g]&&a.push(...h.slice(g))}for(let u=c,f=a.length;ur.name===n),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(Jr),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return this.options.filter!==void 0&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class $O extends Rx{constructor(t,n){super(t,n)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function on(e){return typeof e=="string"&&(e={property:e}),new ip("fast-slotted",$O,e)}class TO extends Rx{constructor(t,n){super(t,n),this.observer=null,n.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function Px(e){return typeof e=="string"&&(e={property:e}),new ip("fast-children",TO,e)}class xo{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const wo=(e,t)=>se` + `),IR)),Ba=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:l=40,style:a,thickness:c=3.6,value:d=0,variant:u="indeterminate"}=r,f=K(r,$R),v=T({},r,{color:o,disableShrink:s,size:l,thickness:c,value:d,variant:u}),g=ER(v),m={},b={},p={};if(u==="determinate"){const h=2*Math.PI*((ir-c)/2);m.strokeDasharray=h.toFixed(3),p["aria-valuenow"]=Math.round(d),m.strokeDashoffset=`${((100-d)/100*h).toFixed(3)}px`,b.transform="rotate(-90deg)"}return C.jsx(RR,T({className:le(g.root,i),style:T({width:l,height:l},b,a),ownerState:v,ref:n,role:"progressbar"},p,f,{children:C.jsx(PR,{className:g.svg,ownerState:v,viewBox:`${ir/2} ${ir/2} ${ir} ${ir}`,children:C.jsx(OR,{className:g.circle,style:m,ownerState:v,cx:ir,cy:ir,r:(ir-c)/2,fill:"none",strokeWidth:c})})}))}),_R=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),AR=e=>T({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}}),DR=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var a;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(a=l.palette)==null?void 0:a.mode}});let i=T({html:_R(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},AR(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function MR(e){const t=Ze({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return C.jsxs(x.Fragment,{children:[C.jsx(oR,{styles:i=>DR(i,r)}),n]})}function LR(e){return Ge("MuiLink",e)}const NR=ze("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),tx={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},FR=e=>tx[e]||e,jR=({theme:e,ownerState:t})=>{const n=FR(t.color),r=so(e,`palette.${n}`,!1)||t.color,i=so(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:si(r,.4)},zR=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],BR=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${X(i)}`,n==="button"&&"button",r&&"focusVisible"]};return qe(o,LR,t)},VR=ee(pn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${X(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>T({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&T({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:jR({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${NR.focusVisible}`]:{outline:"auto"}})),Va=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:s="a",onBlur:l,onFocus:a,TypographyClasses:c,underline:d="always",variant:u="inherit",sx:f}=r,v=K(r,zR),{isFocusVisibleRef:g,onBlur:m,onFocus:b,ref:p}=kb(),[h,y]=x.useState(!1),w=Bt(n,p),k=B=>{m(B),g.current===!1&&y(!1),l&&l(B)},$=B=>{b(B),g.current===!0&&y(!0),a&&a(B)},I=T({},r,{color:o,component:s,focusVisible:h,underline:d,variant:u}),R=BR(I);return C.jsx(VR,T({color:o,className:le(R.root,i),classes:c,component:s,onBlur:k,onFocus:$,ref:w,ownerState:I,variant:u,sx:[...Object.keys(tx).includes(o)?[]:[{color:o}],...Array.isArray(f)?f:[f]]},v))});function HR(e){return Ge("MuiSwitch",e)}const ft=ze("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),UR=["className","color","edge","size","sx"],WR=Fb(),GR=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:s}=e,l={root:["root",n&&`edge${X(n)}`,`size${X(r)}`],switchBase:["switchBase",`color${X(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=qe(l,HR,t);return T({},t,a)},qR=ee("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${X(n.edge)}`],t[`size${X(n.size)}`]]}})({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"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${ft.thumb}`]:{width:16,height:16},[`& .${ft.switchBase}`]:{padding:4,[`&.${ft.checked}`]:{transform:"translateX(16px)"}}}}]}),QR=ee(CR,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ft.input}`]:t.input},n.color!=="default"&&t[`color${X(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}),[`&.${ft.checked}`]:{transform:"translateX(20px)"},[`&.${ft.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ft.checked} + .${ft.track}`]:{opacity:.5},[`&.${ft.disabled} + .${ft.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ft.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:si(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${ft.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:si(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ft.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?Hh(e.palette[t].main,.62):Vh(e.palette[t].main,.55)}`}},[`&.${ft.checked} + .${ft.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),XR=ee("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}`})),YR=ee("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%"})),KR=x.forwardRef(function(t,n){const r=WR({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:s=!1,size:l="medium",sx:a}=r,c=K(r,UR),d=T({},r,{color:o,edge:s,size:l}),u=GR(d),f=C.jsx(YR,{className:u.thumb,ownerState:d});return C.jsxs(qR,{className:le(u.root,i),sx:a,ownerState:d,children:[C.jsx(QR,T({type:"checkbox",icon:f,checkedIcon:f,ref:n,ownerState:d},c,{classes:T({},u,{root:u.switchBase})})),C.jsx(XR,{className:u.track,ownerState:d})]})}),nx=x.createContext();function JR(e){return Ge("MuiTable",e)}ze("MuiTable",["root","stickyHeader"]);const ZR=["className","component","padding","size","stickyHeader"],eP=e=>{const{classes:t,stickyHeader:n}=e;return qe({root:["root",n&&"stickyHeader"]},JR,t)},tP=ee("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":T({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Pg="table",nP=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTable"}),{className:i,component:o=Pg,padding:s="normal",size:l="medium",stickyHeader:a=!1}=r,c=K(r,ZR),d=T({},r,{component:o,padding:s,size:l,stickyHeader:a}),u=eP(d),f=x.useMemo(()=>({padding:s,size:l,stickyHeader:a}),[s,l,a]);return C.jsx(nx.Provider,{value:f,children:C.jsx(tP,T({as:o,role:o===Pg?null:"table",ref:n,className:le(u.root,i),ownerState:d},c))})}),Jc=x.createContext();function rP(e){return Ge("MuiTableBody",e)}ze("MuiTableBody",["root"]);const iP=["className","component"],oP=e=>{const{classes:t}=e;return qe({root:["root"]},rP,t)},sP=ee("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),lP={variant:"body"},Og="tbody",aP=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableBody"}),{className:i,component:o=Og}=r,s=K(r,iP),l=T({},r,{component:o}),a=oP(l);return C.jsx(Jc.Provider,{value:lP,children:C.jsx(sP,T({className:le(a.root,i),as:o,ref:n,role:o===Og?null:"rowgroup",ownerState:l},s))})});function cP(e){return Ge("MuiTableCell",e)}const uP=ze("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),dP=["align","className","component","padding","scope","size","sortDirection","variant"],fP=e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:s}=e,l={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${X(r)}`,i!=="normal"&&`padding${X(i)}`,`size${X(o)}`]};return qe(l,cP,t)},hP=ee("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${X(n.size)}`],n.padding!=="normal"&&t[`padding${X(n.padding)}`],n.align!=="inherit"&&t[`align${X(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>T({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?Hh(si(e.palette.divider,1),.88):Vh(si(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${uP.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),or=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:s,padding:l,scope:a,size:c,sortDirection:d,variant:u}=r,f=K(r,dP),v=x.useContext(nx),g=x.useContext(Jc),m=g&&g.variant==="head";let b;s?b=s:b=m?"th":"td";let p=a;b==="td"?p=void 0:!p&&m&&(p="col");const h=u||g&&g.variant,y=T({},r,{align:i,component:b,padding:l||(v&&v.padding?v.padding:"normal"),size:c||(v&&v.size?v.size:"medium"),sortDirection:d,stickyHeader:h==="head"&&v&&v.stickyHeader,variant:h}),w=fP(y);let k=null;return d&&(k=d==="asc"?"ascending":"descending"),C.jsx(hP,T({as:b,ref:n,className:le(w.root,o),"aria-sort":k,scope:p,ownerState:y},f))});function pP(e){return Ge("MuiTableContainer",e)}ze("MuiTableContainer",["root"]);const mP=["className","component"],gP=e=>{const{classes:t}=e;return qe({root:["root"]},pP,t)},vP=ee("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),yP=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableContainer"}),{className:i,component:o="div"}=r,s=K(r,mP),l=T({},r,{component:o}),a=gP(l);return C.jsx(vP,T({ref:n,as:o,className:le(a.root,i),ownerState:l},s))});function bP(e){return Ge("MuiTableHead",e)}ze("MuiTableHead",["root"]);const xP=["className","component"],wP=e=>{const{classes:t}=e;return qe({root:["root"]},bP,t)},kP=ee("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),CP={variant:"head"},_g="thead",SP=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableHead"}),{className:i,component:o=_g}=r,s=K(r,xP),l=T({},r,{component:o}),a=wP(l);return C.jsx(Jc.Provider,{value:CP,children:C.jsx(kP,T({as:o,className:le(a.root,i),ref:n,role:o===_g?null:"rowgroup",ownerState:l},s))})});function $P(e){return Ge("MuiTableRow",e)}const Ag=ze("MuiTableRow",["root","selected","hover","head","footer"]),TP=["className","component","hover","selected"],IP=e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e;return qe({root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]},$P,t)},EP=ee("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Ag.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Ag.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:si(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:si(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),Dg="tr",Mg=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiTableRow"}),{className:i,component:o=Dg,hover:s=!1,selected:l=!1}=r,a=K(r,TP),c=x.useContext(Jc),d=T({},r,{component:o,hover:s,selected:l,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),u=IP(d);return C.jsx(EP,T({as:o,ref:n,className:le(u.root,i),role:o===Dg?null:"row",ownerState:d},a))}),RP=e=>{try{return getComputedStyle(document.documentElement).getPropertyValue(e).trim()||$n[500]}catch(t){return console.error(`Error getting CSS variable ${e}: ${t}`),$n[500]}},El=e=>{let t=e.replace(/\./g,"-").toLowerCase();t.startsWith("--vscode-")||(t="--vscode-"+t);const n=RP(`${t}`);return C.jsxs(mt,{display:"flex",alignItems:"center",gap:1,children:[C.jsxs("div",{children:[t,": ",JSON.stringify(n)]}),C.jsx(mt,{sx:{width:"10px",height:"10px",backgroundColor:n,border:"1px solid #000"}})]})},PP=()=>C.jsxs(C.Fragment,{children:["Note: Not implemented yet.",C.jsx("br",{})," Will show events from your last published module(s).",El("editor-foreground"),El("editor-background"),El("badge-background"),El("badge-foreground")]});class tp{constructor(){this.method="",this.methodUuid="",this.dataUuid="",this.json=null}getMethod(){return this.method}getMethodUuid(){return this.methodUuid}getDataUuid(){return this.dataUuid}getJson(){return this.json}update(t){const n=t.header.method,r=t.header.methodUuid,i=t.header.dataUuid;return this.method!==""&&n!==this.method?(console.error(`Trying to update [${this.json.method}] using a JSON from [${n}]`),!1):this.json===null||this.methodUuid!==r||i>this.dataUuid?(this.method=n,this.methodUuid=r,this.dataUuid=i,this.json=t,this.deltaDetected(),!0):!1}deltaDetected(){}}class OP extends tp{isWorkdirStatusUpdateNeeded(t){return this.isUpdateNeeded(t,"getWorkdirStatus")}isWorkdirPackagesUpdateNeeded(t){return this.isUpdateNeeded(t,"getWorkdirPackages")}isUpdateNeeded(t,n){try{const r=t===null||t.getJson()===null||t.getMethod()===""||t.getMethodUuid()===""||t.getDataUuid()==="";for(const i of this.getJson().versions)if(i.method===n){const o=i.methodUuid,s=i.dataUuid;if(r||t.getMethodUuid()!==o||t.getDataUuid()0?this.suiClientVersionShort=this.suiClientVersion.split("-")[0]:this.suiClientVersionShort="",this.isLoaded=!0}catch(t){console.error(`Problem with SuibaseJsonWorkdirStatus loading: ${JSON.stringify(t)}`)}}}class AP extends tp{constructor(){super(),this.isLoaded=!1}deltaDetected(){super.deltaDetected(),this.isLoaded=!0}}const Gn=["mainnet","testnet","devnet","localnet"],kf=["Mainnet","Testnet","Devnet","Localnet"],Cf="suibase.dashboard",DP="suibase.console",Sf="suibase.explorer",Ha="0",Yu="2",rx="P",ix="x",np=`${ix}-${Ha}-help`,ox="[TREE_ID_INSERT_ADDR]",Lg="Suibase not installed",Ng="Git not installed";class MP{constructor(){we(this,"vsCodeApi");typeof acquireVsCodeApi=="function"&&(this.vsCodeApi=acquireVsCodeApi())}postMessage(t){this.vsCodeApi?this.vsCodeApi.postMessage(t):console.log(t)}getState(){if(this.vsCodeApi)return this.vsCodeApi.getState();{const t=localStorage.getItem("vscodeState");return t?JSON.parse(t):void 0}}setState(t){return this.vsCodeApi?this.vsCodeApi.setState(t):(localStorage.setItem("vscodeState",JSON.stringify(t)),t)}}const qi=new MP;class Js{constructor(t,n){this.name=t,this.sender=n}}class sx extends Js{constructor(t,n,r){super("WorkdirCommand",t),this.workdirIdx=n,this.command=r}}class LP extends Js{constructor(t){super("InitView",t)}}class NP extends Js{constructor(t,n,r,i){super("RequestWorkdirStatus",t),this.workdirIdx=n,this.methodUuid=r,this.dataUuid=i}}class FP extends Js{constructor(t,n,r,i){super("RequestWorkdirPackages",t),this.workdirIdx=n,this.methodUuid=r,this.dataUuid=i}}class jP extends Js{constructor(){super("OpenDiagnosticPanel","")}}class zP{constructor(t,n){we(this,"label");we(this,"workdir");we(this,"workdirIdx");we(this,"versions");we(this,"workdirStatus");we(this,"workdirPackages");this.label=t.charAt(0).toUpperCase()+t.slice(1),this.workdir=t,this.workdirIdx=n,this.versions=new OP,this.workdirStatus=new _P,this.workdirPackages=new AP}}class BP{constructor(){we(this,"_activeWorkdir");we(this,"_activeWorkdirIdx");we(this,"_activeLoaded");we(this,"_setupIssue");this._activeWorkdir="",this._activeWorkdirIdx=0,this._activeLoaded=!1,this._setupIssue=""}get activeWorkdir(){return this._activeWorkdir}get activeWorkdirIdx(){return this._activeWorkdirIdx}get activeLoaded(){return this._activeLoaded}get setupIssue(){return this._setupIssue}set activeWorkdir(t){const n=Gn.indexOf(t);if(n<0){console.error(`Invalid workdir: ${t}`);return}this._activeWorkdirIdx=n,this._activeWorkdir=t,this._activeLoaded=!0}set activeWorkdirIdx(t){if(t<0||t>=Gn.length){console.error(`Invalid workdirIdx: ${t}`);return}this._activeWorkdir=Gn[t],this._activeWorkdirIdx=t,this._activeLoaded=!0}set setupIssue(t){this._setupIssue=t}}const lx=(e,t)=>{const n=(t==null?void 0:t.trackStatus)||!1,r=(t==null?void 0:t.trackPackages)||!1,{message:i}=_0(),o=x.useRef(new BP),[s]=x.useState(Gn.map((v,g)=>new zP(v,g))),[l,a]=x.useState(!1),[c,d]=x.useState(!1),[u,f]=x.useState(!1);return x.useEffect(()=>{let v=o.current.activeLoaded===!1;if(!v){for(let g=0;g{try{if(i&&i.name){let v=!1,g=!1,m=!1;switch(i.name){case"UpdateVersions":{let b=!1;if(i.setupIssue){const p=i.setupIssue;p!==o.current.setupIssue&&(o.current.setupIssue=p,v=!0),p!==""&&(b=!0)}if(b===!1&&o.current.setupIssue!==""&&(o.current.setupIssue="",v=!0),b===!1&&i.json){const p=s[i.workdirIdx];if(p.versions.update(i.json)){if(v=!0,n){const[y,w,k]=p.versions.isWorkdirStatusUpdateNeeded(p.workdirStatus);y&&qi.postMessage(new NP(e,i.workdirIdx,w,k))}if(r){const[y,w,k]=p.versions.isWorkdirPackagesUpdateNeeded(p.workdirPackages);y&&qi.postMessage(new FP(e,i.workdirIdx,w,k))}}o.current.activeWorkdir!==i.json.asuiSelection&&(o.current.activeWorkdir=i.json.asuiSelection,v=!0)}break}case"UpdateWorkdirStatus":{n&&s[i.workdirIdx].workdirStatus.update(i.json)&&(g=!0);break}case"UpdateWorkdirPackages":{r&&s[i.workdirIdx].workdirPackages.update(i.json)&&(m=!0);break}default:console.log("Received an unknown command",i)}v&&a(b=>!b),g&&d(b=>!b),m&&f(b=>!b)}}catch(v){console.error("An error occurred in useCommonController:",v)}},[i,s,e]),{commonTrigger:l,statusTrigger:c,packagesTrigger:u,common:o,workdirs:s}},Rr=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();Rr.trustedTypes===void 0&&(Rr.trustedTypes={createPolicy:(e,t)=>t});const ax={configurable:!1,enumerable:!1,writable:!1};Rr.FAST===void 0&&Reflect.defineProperty(Rr,"FAST",Object.assign({value:Object.create(null)},ax));const Ds=Rr.FAST;if(Ds.getById===void 0){const e=Object.create(null);Reflect.defineProperty(Ds,"getById",Object.assign({value(t,n){let r=e[t];return r===void 0&&(r=n?e[t]=n():null),r}},ax))}const Jr=Object.freeze([]);function cx(){const e=new WeakMap;return function(t){let n=e.get(t);if(n===void 0){let r=Reflect.getPrototypeOf(t);for(;n===void 0&&r!==null;)n=e.get(r),r=Reflect.getPrototypeOf(r);n=n===void 0?[]:n.slice(0),e.set(t,n)}return n}}const Ku=Rr.FAST.getById(1,()=>{const e=[],t=[];function n(){if(t.length)throw t.shift()}function r(s){try{s.call()}catch(l){t.push(l),setTimeout(n,0)}}function i(){let l=0;for(;l1024){for(let a=0,c=e.length-l;ae});let Ju=ux;const ls=`fast-${Math.random().toString(36).substring(2,8)}`,dx=`${ls}{`,rp=`}${ls}`,J=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(Ju!==ux)throw new Error("The HTML policy can only be set once.");Ju=e},createHTML(e){return Ju.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith(ls)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${ls}:`,""))},createInterpolationPlaceholder(e){return`${dx}${e}${rp}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return``},queueUpdate:Ku.enqueue,processUpdates:Ku.process,nextUpdate(){return new Promise(Ku.enqueue)},setAttribute(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild)e.removeChild(t)},createTemplateWalker(e){return document.createTreeWalker(e,133,null,!1)}});class Ua{constructor(t,n){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=n}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const n=this.spillover;if(n===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else n.indexOf(t)===-1&&n.push(t)}unsubscribe(t){const n=this.spillover;if(n===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}notify(t){const n=this.spillover,r=this.source;if(n===void 0){const i=this.sub1,o=this.sub2;i!==void 0&&i.handleChange(r,t),o!==void 0&&o.handleChange(r,t)}else for(let i=0,o=n.length;i{const e=/(:|&&|\|\||if)/,t=new WeakMap,n=J.queueUpdate;let r,i=c=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function o(c){let d=c.$fastController||t.get(c);return d===void 0&&(Array.isArray(c)?d=i(c):t.set(c,d=new fx(c))),d}const s=cx();class l{constructor(d){this.name=d,this.field=`_${d}`,this.callback=`${d}Changed`}getValue(d){return r!==void 0&&r.watch(d,this.name),d[this.field]}setValue(d,u){const f=this.field,v=d[f];if(v!==u){d[f]=u;const g=d[this.callback];typeof g=="function"&&g.call(d,v,u),o(d).notify(this.name)}}}class a extends Ua{constructor(d,u,f=!1){super(d,u),this.binding=d,this.isVolatileBinding=f,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(d,u){this.needsRefresh&&this.last!==null&&this.disconnect();const f=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;const v=this.binding(d,u);return r=f,v}disconnect(){if(this.last!==null){let d=this.first;for(;d!==void 0;)d.notifier.unsubscribe(this,d.propertyName),d=d.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(d,u){const f=this.last,v=o(d),g=f===null?this.first:{};if(g.propertySource=d,g.propertyName=u,g.notifier=v,v.subscribe(this,u),f!==null){if(!this.needsRefresh){let m;r=void 0,m=f.propertySource[f.propertyName],r=this,d===m&&(this.needsRefresh=!0)}f.next=g}this.last=g}handleChange(){this.needsQueue&&(this.needsQueue=!1,n(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let d=this.first;return{next:()=>{const u=d;return u===void 0?{value:void 0,done:!0}:(d=d.next,{value:u,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(c){i=c},getNotifier:o,track(c,d){r!==void 0&&r.watch(c,d)},trackVolatile(){r!==void 0&&(r.needsRefresh=!0)},notify(c,d){o(c).notify(d)},defineProperty(c,d){typeof d=="string"&&(d=new l(d)),s(c).push(d),Reflect.defineProperty(c,d.name,{enumerable:!0,get:function(){return d.getValue(this)},set:function(u){d.setValue(this,u)}})},getAccessors:s,binding(c,d,u=this.isVolatileBinding(c)){return new a(c,d,u)},isVolatileBinding(c){return e.test(c.toString())}})});function F(e,t){Y.defineProperty(e,t)}function VP(e,t,n){return Object.assign({},n,{get:function(){return Y.trackVolatile(),n.get.apply(this)}})}const Fg=Ds.getById(3,()=>{let e=null;return{get(){return e},set(t){e=t}}});class Ms{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return Fg.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){Fg.set(t)}}Y.defineProperty(Ms.prototype,"index");Y.defineProperty(Ms.prototype,"length");const as=Object.seal(new Ms);class Zc{constructor(){this.targetIndex=0}}class hx extends Zc{constructor(){super(...arguments),this.createPlaceholder=J.createInterpolationPlaceholder}}class ip extends Zc{constructor(t,n,r){super(),this.name=t,this.behavior=n,this.options=r}createPlaceholder(t){return J.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}}function HP(e,t){this.source=e,this.context=t,this.bindingObserver===null&&(this.bindingObserver=Y.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function UP(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function WP(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function GP(){this.bindingObserver.disconnect(),this.source=null,this.context=null;const e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function qP(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function QP(e){J.setAttribute(this.target,this.targetName,e)}function XP(e){J.setBooleanAttribute(this.target,this.targetName,e)}function YP(e){if(e==null&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{const t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function KP(e){this.target[this.targetName]=e}function JP(e){const t=this.classVersions||Object.create(null),n=this.target;let r=this.version||0;if(e!=null&&e.length){const i=e.split(/\s+/);for(let o=0,s=i.length;oJ.createHTML(n(r,i))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=XP;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=UP,this.unbind=qP;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=JP);break}}targetAtContent(){this.updateTarget=YP,this.unbind=GP}createBehavior(t){return new ZP(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class ZP{constructor(t,n,r,i,o,s,l){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=n,this.isBindingVolatile=r,this.bind=i,this.unbind=o,this.updateTarget=s,this.targetName=l}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){Ms.setEvent(t);const n=this.binding(this.source,this.context);Ms.setEvent(null),n!==!0&&t.preventDefault()}}let Zu=null;class sp{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){Zu=this}static borrow(t){const n=Zu||new sp;return n.directives=t,n.reset(),Zu=null,n}}function eO(e){if(e.length===1)return e[0];let t;const n=e.length,r=e.map(s=>typeof s=="string"?()=>s:(t=s.targetName||t,s.binding)),i=(s,l)=>{let a="";for(let c=0;cl),c.targetName=s.name):c=eO(a),c!==null&&(t.removeAttributeNode(s),i--,o--,e.addFactory(c))}}function nO(e,t,n){const r=px(e,t.textContent);if(r!==null){let i=t;for(let o=0,s=r.length;o0}const n=this.fragment.cloneNode(!0),r=this.viewBehaviorFactories,i=new Array(this.behaviorCount),o=J.createTemplateWalker(n);let s=0,l=this.targetOffset,a=o.nextNode();for(let c=r.length;s=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function se(e,...t){const n=[];let r="";for(let i=0,o=e.length-1;ia}if(typeof l=="function"&&(l=new op(l)),l instanceof hx){const a=iO.exec(s);a!==null&&(l.targetName=a[2])}l instanceof Zc?(r+=l.createPlaceholder(n.length),n.push(l)):r+=l}return r+=e[e.length-1],new zg(r,n)}class Rt{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}}Rt.create=(()=>{if(J.supportsAdoptedStyleSheets){const e=new Map;return t=>new oO(t,e)}return e=>new aO(e)})();function lp(e){return e.map(t=>t instanceof Rt?lp(t.styles):[t]).reduce((t,n)=>t.concat(n),[])}function gx(e){return e.map(t=>t instanceof Rt?t.behaviors:null).reduce((t,n)=>n===null?t:(t===null&&(t=[]),t.concat(n)),null)}const vx=Symbol("prependToAdoptedStyleSheets");function yx(e){const t=[],n=[];return e.forEach(r=>(r[vx]?t:n).push(r)),{prepend:t,append:n}}let bx=(e,t)=>{const{prepend:n,append:r}=yx(t);e.adoptedStyleSheets=[...n,...e.adoptedStyleSheets,...r]},xx=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(n=>t.indexOf(n)===-1)};if(J.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),bx=(e,t)=>{const{prepend:n,append:r}=yx(t);e.adoptedStyleSheets.splice(0,0,...n),e.adoptedStyleSheets.push(...r)},xx=(e,t)=>{for(const n of t){const r=e.adoptedStyleSheets.indexOf(n);r!==-1&&e.adoptedStyleSheets.splice(r,1)}}}catch{}class oO extends Rt{constructor(t,n){super(),this.styles=t,this.styleSheetCache=n,this._styleSheets=void 0,this.behaviors=gx(t)}get styleSheets(){if(this._styleSheets===void 0){const t=this.styles,n=this.styleSheetCache;this._styleSheets=lp(t).map(r=>{if(r instanceof CSSStyleSheet)return r;let i=n.get(r);return i===void 0&&(i=new CSSStyleSheet,i.replaceSync(r),n.set(r,i)),i})}return this._styleSheets}addStylesTo(t){bx(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){xx(t,this.styleSheets),super.removeStylesFrom(t)}}let sO=0;function lO(){return`fast-style-class-${++sO}`}class aO extends Rt{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=gx(t),this.styleSheets=lp(t),this.styleClass=lO()}addStylesTo(t){const n=this.styleSheets,r=this.styleClass;t=this.normalizeTarget(t);for(let i=0;i{r.add(t);const i=t[this.fieldName];switch(n){case"reflect":const o=this.converter;J.setAttribute(t,this.attribute,o!==void 0?o.toView(i):i);break;case"boolean":J.setBooleanAttribute(t,this.attribute,i);break}r.delete(t)})}static collect(t,...n){const r=[];n.push(Wa.locate(t));for(let i=0,o=n.length;i1&&(n.property=o),Wa.locate(i.constructor).push(n)}if(arguments.length>1){n={},r(e,t);return}return n=e===void 0?{}:e,r}const Bg={mode:"open"},Vg={},$f=Ds.getById(4,()=>{const e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)}})});class Zs{constructor(t,n=t.definition){typeof n=="string"&&(n={name:n}),this.type=t,this.name=n.name,this.template=n.template;const r=Ga.collect(t,n.attributes),i=new Array(r.length),o={},s={};for(let l=0,a=r.length;l0){const o=this.boundObservables=Object.create(null);for(let s=0,l=i.length;s0||n>0;){if(t===0){i.push(Tf),n--;continue}if(n===0){i.push(If),t--;continue}const o=e[t-1][n-1],s=e[t-1][n],l=e[t][n-1];let a;s=0){e.splice(l,1),l--,s-=a.addedCount-a.removed.length,i.addedCount+=a.addedCount-c;const d=i.removed.length+a.removed.length-c;if(!i.addedCount&&!d)o=!0;else{let u=a.removed;if(i.indexa.index+a.addedCount){const f=i.removed.slice(a.index+a.addedCount-i.index);Ug.apply(u,f)}i.removed=u,a.indexr?n=r-e.addedCount:n<0&&(n=r+e.removed.length+n-e.addedCount),n<0&&(n=0),e.index=n,e}class bO extends Ua{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){this.splices===void 0?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,J.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,J.queueUpdate(this))}flush(){const t=this.splices,n=this.oldCollection;if(t===void 0&&n===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;const r=n===void 0?yO(this.source,t):Tx(this.source,0,this.source.length,n,0,n.length);this.notify(r)}}function xO(){if(Wg)return;Wg=!0,Y.setArrayObserverFactory(a=>new bO(a));const e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});const t=e.pop,n=e.push,r=e.reverse,i=e.shift,o=e.sort,s=e.splice,l=e.unshift;e.pop=function(){const a=this.length>0,c=t.apply(this,arguments),d=this.$fastController;return d!==void 0&&a&&d.addSplice(hn(this.length,[c],0)),c},e.push=function(){const a=n.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(nd(hn(this.length-arguments.length,[],arguments.length),this)),a},e.reverse=function(){let a;const c=this.$fastController;c!==void 0&&(c.flush(),a=this.slice());const d=r.apply(this,arguments);return c!==void 0&&c.reset(a),d},e.shift=function(){const a=this.length>0,c=i.apply(this,arguments),d=this.$fastController;return d!==void 0&&a&&d.addSplice(hn(0,[c],0)),c},e.sort=function(){let a;const c=this.$fastController;c!==void 0&&(c.flush(),a=this.slice());const d=o.apply(this,arguments);return c!==void 0&&c.reset(a),d},e.splice=function(){const a=s.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(nd(hn(+arguments[0],a,arguments.length>2?arguments.length-2:0),this)),a},e.unshift=function(){const a=l.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(nd(hn(0,[],arguments.length),this)),a}}class wO{constructor(t,n){this.target=t,this.propertyName=n}bind(t){t[this.propertyName]=this.target}unbind(){}}function yt(e){return new ip("fast-ref",wO,e)}const Ix=e=>typeof e=="function",kO=()=>null;function Gg(e){return e===void 0?kO:Ix(e)?e:()=>e}function cp(e,t,n){const r=Ix(e)?e:()=>e,i=Gg(t),o=Gg(n);return(s,l)=>r(s,l)?i(s,l):o(s,l)}function CO(e,t,n,r){e.bind(t[n],r)}function SO(e,t,n,r){const i=Object.create(r);i.index=n,i.length=t.length,e.bind(t[n],i)}class $O{constructor(t,n,r,i,o,s){this.location=t,this.itemsBinding=n,this.templateBinding=i,this.options=s,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=CO,this.itemsBindingObserver=Y.binding(n,this,r),this.templateBindingObserver=Y.binding(i,this,o),s.positioning&&(this.bindView=SO)}bind(t,n){this.source=t,this.originalContext=n,this.childContext=Object.create(n),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,n){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(n)}observeItems(t=!1){if(!this.items){this.items=Jr;return}const n=this.itemsObserver,r=this.itemsObserver=Y.getNotifier(this.items),i=n!==r;i&&n!==null&&n.unsubscribe(this),(i||t)&&r.subscribe(this)}updateViews(t){const n=this.childContext,r=this.views,i=this.bindView,o=this.items,s=this.template,l=this.options.recycle,a=[];let c=0,d=0;for(let u=0,f=t.length;u0?(m<=y&&h.length>0?($=h[m],m++):($=a[c],c++),d--):$=s.create(),r.splice(b,0,$),i($,o,b,n),$.insertBefore(k)}h[m]&&a.push(...h.slice(m))}for(let u=c,f=a.length;ur.name===n),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(Jr),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return this.options.filter!==void 0&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}}class TO extends Rx{constructor(t,n){super(t,n)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function on(e){return typeof e=="string"&&(e={property:e}),new ip("fast-slotted",TO,e)}class IO extends Rx{constructor(t,n){super(t,n),this.observer=null,n.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}function Px(e){return typeof e=="string"&&(e={property:e}),new ip("fast-children",IO,e)}class wo{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const ko=(e,t)=>se` t.end?"end":void 0} > - + ${t.end||""} -`,ko=(e,t)=>se` +`,Co=(e,t)=>se` ${t.start||""} `;se` - + `;se` - + @@ -206,7 +206,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function S(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}const nd=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(n){Reflect.defineMetadata(e,t,n)}},Reflect.defineMetadata=function(e,t,n){let r=nd.get(n);r===void 0&&nd.set(n,r=new Map),r.set(e,t)},Reflect.getOwnMetadata=function(e,t){const n=nd.get(t);if(n!==void 0)return n.get(e)});class IO{constructor(t,n){this.container=t,this.key=n}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,_x(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,n){const{container:r,key:i}=this;return this.container=this.key=void 0,r.registerResolver(i,new Kt(i,t,n))}}function zo(e){const t=e.slice(),n=Object.keys(e),r=n.length;let i;for(let o=0;onull,responsibleForOwnerRequests:!1,defaultResolver:EO.singleton})}),qg=new Map;function Qg(e){return t=>Reflect.getOwnMetadata(e,t)}let Xg=null;const ke=Object.freeze({createContainer(e){return new cs(null,Object.assign({},rd.default,e))},findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:ke.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(Ox,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||ke.getOrCreateDOMContainer()},getOrCreateDOMContainer(e,t){return e?e.$$container$$||new cs(e,Object.assign({},rd.default,t,{parentLocator:ke.findParentContainer})):Xg||(Xg=new cs(null,Object.assign({},rd.default,t,{parentLocator:()=>null})))},getDesignParamtypes:Qg("design:paramtypes"),getAnnotationParamtypes:Qg("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=qg.get(e);if(t===void 0){const n=e.inject;if(n===void 0){const r=ke.getDesignParamtypes(e),i=ke.getAnnotationParamtypes(e);if(r===void 0)if(i===void 0){const o=Object.getPrototypeOf(e);typeof o=="function"&&o!==Function.prototype?t=zo(ke.getDependencies(o)):t=[]}else t=zo(i);else if(i===void 0)t=zo(r);else{t=zo(r);let o=i.length,s;for(let c=0;c{const d=ke.findResponsibleContainer(this).get(n),u=this[i];d!==u&&(this[i]=o,l.notify(t))};l.subscribe({handleChange:a},"isConnected")}return o}})},createInterface(e,t){const n=typeof e=="function"?e:t,r=typeof e=="string"?e:e&&"friendlyName"in e&&e.friendlyName||Zg,i=typeof e=="string"?!1:e&&"respectConnection"in e&&e.respectConnection||!1,o=function(s,l,a){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${o.friendlyName}'`);if(l)ke.defineProperty(s,l,o,i);else{const c=ke.getOrCreateAnnotationParamTypes(s);c[a]=o}};return o.$isInterface=!0,o.friendlyName=r??"(anonymous)",n!=null&&(o.register=function(s,l){return n(new IO(s,l??o))}),o.toString=function(){return`InterfaceSymbol<${o.friendlyName}>`},o},inject(...e){return function(t,n,r){if(typeof r=="number"){const i=ke.getOrCreateAnnotationParamTypes(t),o=e[0];o!==void 0&&(i[r]=o)}else if(n)ke.defineProperty(t,n,e[0]);else{const i=r?ke.getOrCreateAnnotationParamTypes(r.value):ke.getOrCreateAnnotationParamTypes(t);let o;for(let s=0;s{r.composedPath()[0]!==this.owner&&(r.detail.container=this,r.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...n){return this.context=t,this.register(...n),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let n,r,i,o,s;const l=this.context;for(let a=0,c=t.length;athis}))}jitRegister(t,n){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(LO.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(ta(t)){const r=t.register(n);if(!(r instanceof Object)||r.resolve==null){const i=n.resolvers.get(t);if(i!=null)return i;throw new Error("A valid resolver was not returned from the static register method")}return r}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const r=this.config.defaultResolver(t,n);return n.resolvers.set(t,r),r}}}}const od=new WeakMap;function _x(e){return function(t,n,r){if(od.has(r))return od.get(r);const i=e(t,n,r);return od.set(r,i),i}}const Ls=Object.freeze({instance(e,t){return new Kt(e,0,t)},singleton(e,t){return new Kt(e,1,t)},transient(e,t){return new Kt(e,2,t)},callback(e,t){return new Kt(e,3,t)},cachedCallback(e,t){return new Kt(e,3,_x(t))},aliasTo(e,t){return new Kt(t,5,e)}});function El(e){if(e==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function Jg(e,t,n){if(e instanceof Kt&&e.strategy===4){const r=e.state;let i=r.length;const o=new Array(i);for(;i--;)o[i]=r[i].resolve(t,n);return o}return[e.resolve(t,n)]}const Zg="(anonymous)";function ev(e){return typeof e=="object"&&e!==null||typeof e=="function"}const NO=function(){const e=new WeakMap;let t=!1,n="",r=0;return function(i){return t=e.get(i),t===void 0&&(n=i.toString(),r=n.length,t=r>=29&&r<=100&&n.charCodeAt(r-1)===125&&n.charCodeAt(r-2)<=32&&n.charCodeAt(r-3)===93&&n.charCodeAt(r-4)===101&&n.charCodeAt(r-5)===100&&n.charCodeAt(r-6)===111&&n.charCodeAt(r-7)===99&&n.charCodeAt(r-8)===32&&n.charCodeAt(r-9)===101&&n.charCodeAt(r-10)===118&&n.charCodeAt(r-11)===105&&n.charCodeAt(r-12)===116&&n.charCodeAt(r-13)===97&&n.charCodeAt(r-14)===110&&n.charCodeAt(r-15)===88,e.set(i,t)),t}}(),Rl={};function Ax(e){switch(typeof e){case"number":return e>=0&&(e|0)===e;case"string":{const t=Rl[e];if(t!==void 0)return t;const n=e.length;if(n===0)return Rl[e]=!1;let r=0;for(let i=0;i1||r<48||r>57)return Rl[e]=!1;return Rl[e]=!0}default:return!1}}function tv(e){return`${e.toLowerCase()}:presentation`}const Pl=new Map,Mx=Object.freeze({define(e,t,n){const r=tv(e);Pl.get(r)===void 0?Pl.set(r,t):Pl.set(r,!1),n.register(Ls.instance(r,t))},forTag(e,t){const n=tv(e),r=Pl.get(n);return r===!1?ke.findResponsibleContainer(t).get(n):r||null}});class FO{constructor(t,n){this.template=t||null,this.styles=n===void 0?null:Array.isArray(n)?Rt.create(n):n instanceof Rt?n:Rt.create([n])}applyTo(t){const n=t.$fastController;n.template===null&&(n.template=this.template),n.styles===null&&(n.styles=this.styles)}}class ye extends Zc{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=Mx.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(n={})=>new Dx(this===ye?class extends ye{}:this,t,n)}}S([F],ye.prototype,"template",void 0);S([F],ye.prototype,"styles",void 0);function Bo(e,t,n){return typeof e=="function"?e(t,n):e}class Dx{constructor(t,n,r){this.type=t,this.elementDefinition=n,this.overrideDefinition=r,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,n){const r=this.definition,i=this.overrideDefinition,s=`${r.prefix||n.elementPrefix}-${r.baseName}`;n.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:l=>{const a=new FO(Bo(r.template,l,r),Bo(r.styles,l,r));l.definePresentation(a);let c=Bo(r.shadowOptions,l,r);l.shadowRootMode&&(c?i.shadowOptions||(c.mode=l.shadowRootMode):c!==null&&(c={mode:l.shadowRootMode})),l.defineElement({elementOptions:Bo(r.elementOptions,l,r),shadowOptions:c,attributes:Bo(r.attributes,l,r)})}})}}function _t(e,...t){const n=Ha.locate(e);t.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(o=>{o!=="constructor"&&Object.defineProperty(e.prototype,o,Object.getOwnPropertyDescriptor(r.prototype,o))}),Ha.locate(r).forEach(o=>n.push(o))})}const dp={horizontal:"horizontal",vertical:"vertical"};function jO(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return n;return-1}function zO(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function BO(...e){return e.every(t=>t instanceof HTMLElement)}function VO(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}let Nr;function HO(){if(typeof Nr=="boolean")return Nr;if(!zO())return Nr=!1,Nr;const e=document.createElement("style"),t=VO();t!==null&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),Nr=!0}catch{Nr=!1}finally{document.head.removeChild(e)}return Nr}const nv="focus",rv="focusin",lo="focusout",ao="keydown";var iv;(function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"})(iv||(iv={}));const di="ArrowDown",Ns="ArrowLeft",Fs="ArrowRight",fi="ArrowUp",Zs="Enter",eu="Escape",Co="Home",So="End",UO="F2",WO="PageDown",GO="PageUp",el=" ",fp="Tab",qO={ArrowDown:di,ArrowLeft:Ns,ArrowRight:Fs,ArrowUp:fi};var co;(function(e){e.ltr="ltr",e.rtl="rtl"})(co||(co={}));function QO(e,t,n){return Math.min(Math.max(n,e),t)}function Ol(e,t,n=0){return[t,n]=[t,n].sort((r,i)=>r-i),t<=e&&ese` +***************************************************************************** */function S(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}const rd=new Map;"metadata"in Reflect||(Reflect.metadata=function(e,t){return function(n){Reflect.defineMetadata(e,t,n)}},Reflect.defineMetadata=function(e,t,n){let r=rd.get(n);r===void 0&&rd.set(n,r=new Map),r.set(e,t)},Reflect.getOwnMetadata=function(e,t){const n=rd.get(t);if(n!==void 0)return n.get(e)});class EO{constructor(t,n){this.container=t,this.key=n}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,_x(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,n){const{container:r,key:i}=this;return this.container=this.key=void 0,r.registerResolver(i,new Kt(i,t,n))}}function Bo(e){const t=e.slice(),n=Object.keys(e),r=n.length;let i;for(let o=0;onull,responsibleForOwnerRequests:!1,defaultResolver:RO.singleton})}),qg=new Map;function Qg(e){return t=>Reflect.getOwnMetadata(e,t)}let Xg=null;const ke=Object.freeze({createContainer(e){return new cs(null,Object.assign({},id.default,e))},findResponsibleContainer(e){const t=e.$$container$$;return t&&t.responsibleForOwnerRequests?t:ke.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(Ox,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return e.dispatchEvent(t),t.detail.container||ke.getOrCreateDOMContainer()},getOrCreateDOMContainer(e,t){return e?e.$$container$$||new cs(e,Object.assign({},id.default,t,{parentLocator:ke.findParentContainer})):Xg||(Xg=new cs(null,Object.assign({},id.default,t,{parentLocator:()=>null})))},getDesignParamtypes:Qg("design:paramtypes"),getAnnotationParamtypes:Qg("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],e),t},getDependencies(e){let t=qg.get(e);if(t===void 0){const n=e.inject;if(n===void 0){const r=ke.getDesignParamtypes(e),i=ke.getAnnotationParamtypes(e);if(r===void 0)if(i===void 0){const o=Object.getPrototypeOf(e);typeof o=="function"&&o!==Function.prototype?t=Bo(ke.getDependencies(o)):t=[]}else t=Bo(i);else if(i===void 0)t=Bo(r);else{t=Bo(r);let o=i.length,s;for(let c=0;c{const d=ke.findResponsibleContainer(this).get(n),u=this[i];d!==u&&(this[i]=o,l.notify(t))};l.subscribe({handleChange:a},"isConnected")}return o}})},createInterface(e,t){const n=typeof e=="function"?e:t,r=typeof e=="string"?e:e&&"friendlyName"in e&&e.friendlyName||Zg,i=typeof e=="string"?!1:e&&"respectConnection"in e&&e.respectConnection||!1,o=function(s,l,a){if(s==null||new.target!==void 0)throw new Error(`No registration for interface: '${o.friendlyName}'`);if(l)ke.defineProperty(s,l,o,i);else{const c=ke.getOrCreateAnnotationParamTypes(s);c[a]=o}};return o.$isInterface=!0,o.friendlyName=r??"(anonymous)",n!=null&&(o.register=function(s,l){return n(new EO(s,l??o))}),o.toString=function(){return`InterfaceSymbol<${o.friendlyName}>`},o},inject(...e){return function(t,n,r){if(typeof r=="number"){const i=ke.getOrCreateAnnotationParamTypes(t),o=e[0];o!==void 0&&(i[r]=o)}else if(n)ke.defineProperty(t,n,e[0]);else{const i=r?ke.getOrCreateAnnotationParamTypes(r.value):ke.getOrCreateAnnotationParamTypes(t);let o;for(let s=0;s{r.composedPath()[0]!==this.owner&&(r.detail.container=this,r.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...n){return this.context=t,this.register(...n),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let n,r,i,o,s;const l=this.context;for(let a=0,c=t.length;athis}))}jitRegister(t,n){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(NO.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(na(t)){const r=t.register(n);if(!(r instanceof Object)||r.resolve==null){const i=n.resolvers.get(t);if(i!=null)return i;throw new Error("A valid resolver was not returned from the static register method")}return r}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{const r=this.config.defaultResolver(t,n);return n.resolvers.set(t,r),r}}}}const sd=new WeakMap;function _x(e){return function(t,n,r){if(sd.has(r))return sd.get(r);const i=e(t,n,r);return sd.set(r,i),i}}const Ls=Object.freeze({instance(e,t){return new Kt(e,0,t)},singleton(e,t){return new Kt(e,1,t)},transient(e,t){return new Kt(e,2,t)},callback(e,t){return new Kt(e,3,t)},cachedCallback(e,t){return new Kt(e,3,_x(t))},aliasTo(e,t){return new Kt(t,5,e)}});function Rl(e){if(e==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function Jg(e,t,n){if(e instanceof Kt&&e.strategy===4){const r=e.state;let i=r.length;const o=new Array(i);for(;i--;)o[i]=r[i].resolve(t,n);return o}return[e.resolve(t,n)]}const Zg="(anonymous)";function ev(e){return typeof e=="object"&&e!==null||typeof e=="function"}const FO=function(){const e=new WeakMap;let t=!1,n="",r=0;return function(i){return t=e.get(i),t===void 0&&(n=i.toString(),r=n.length,t=r>=29&&r<=100&&n.charCodeAt(r-1)===125&&n.charCodeAt(r-2)<=32&&n.charCodeAt(r-3)===93&&n.charCodeAt(r-4)===101&&n.charCodeAt(r-5)===100&&n.charCodeAt(r-6)===111&&n.charCodeAt(r-7)===99&&n.charCodeAt(r-8)===32&&n.charCodeAt(r-9)===101&&n.charCodeAt(r-10)===118&&n.charCodeAt(r-11)===105&&n.charCodeAt(r-12)===116&&n.charCodeAt(r-13)===97&&n.charCodeAt(r-14)===110&&n.charCodeAt(r-15)===88,e.set(i,t)),t}}(),Pl={};function Ax(e){switch(typeof e){case"number":return e>=0&&(e|0)===e;case"string":{const t=Pl[e];if(t!==void 0)return t;const n=e.length;if(n===0)return Pl[e]=!1;let r=0;for(let i=0;i1||r<48||r>57)return Pl[e]=!1;return Pl[e]=!0}default:return!1}}function tv(e){return`${e.toLowerCase()}:presentation`}const Ol=new Map,Dx=Object.freeze({define(e,t,n){const r=tv(e);Ol.get(r)===void 0?Ol.set(r,t):Ol.set(r,!1),n.register(Ls.instance(r,t))},forTag(e,t){const n=tv(e),r=Ol.get(n);return r===!1?ke.findResponsibleContainer(t).get(n):r||null}});class jO{constructor(t,n){this.template=t||null,this.styles=n===void 0?null:Array.isArray(n)?Rt.create(n):n instanceof Rt?n:Rt.create([n])}applyTo(t){const n=t.$fastController;n.template===null&&(n.template=this.template),n.styles===null&&(n.styles=this.styles)}}class ye extends eu{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=Dx.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(n={})=>new Mx(this===ye?class extends ye{}:this,t,n)}}S([F],ye.prototype,"template",void 0);S([F],ye.prototype,"styles",void 0);function Vo(e,t,n){return typeof e=="function"?e(t,n):e}class Mx{constructor(t,n,r){this.type=t,this.elementDefinition=n,this.overrideDefinition=r,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,n){const r=this.definition,i=this.overrideDefinition,s=`${r.prefix||n.elementPrefix}-${r.baseName}`;n.tryDefineElement({name:s,type:this.type,baseClass:this.elementDefinition.baseClass,callback:l=>{const a=new jO(Vo(r.template,l,r),Vo(r.styles,l,r));l.definePresentation(a);let c=Vo(r.shadowOptions,l,r);l.shadowRootMode&&(c?i.shadowOptions||(c.mode=l.shadowRootMode):c!==null&&(c={mode:l.shadowRootMode})),l.defineElement({elementOptions:Vo(r.elementOptions,l,r),shadowOptions:c,attributes:Vo(r.attributes,l,r)})}})}}function _t(e,...t){const n=Wa.locate(e);t.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(o=>{o!=="constructor"&&Object.defineProperty(e.prototype,o,Object.getOwnPropertyDescriptor(r.prototype,o))}),Wa.locate(r).forEach(o=>n.push(o))})}const dp={horizontal:"horizontal",vertical:"vertical"};function zO(e,t){let n=e.length;for(;n--;)if(t(e[n],n,e))return n;return-1}function BO(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function VO(...e){return e.every(t=>t instanceof HTMLElement)}function HO(){const e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}let Fr;function UO(){if(typeof Fr=="boolean")return Fr;if(!BO())return Fr=!1,Fr;const e=document.createElement("style"),t=HO();t!==null&&e.setAttribute("nonce",t),document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0),Fr=!0}catch{Fr=!1}finally{document.head.removeChild(e)}return Fr}const nv="focus",rv="focusin",ao="focusout",co="keydown";var iv;(function(e){e[e.alt=18]="alt",e[e.arrowDown=40]="arrowDown",e[e.arrowLeft=37]="arrowLeft",e[e.arrowRight=39]="arrowRight",e[e.arrowUp=38]="arrowUp",e[e.back=8]="back",e[e.backSlash=220]="backSlash",e[e.break=19]="break",e[e.capsLock=20]="capsLock",e[e.closeBracket=221]="closeBracket",e[e.colon=186]="colon",e[e.colon2=59]="colon2",e[e.comma=188]="comma",e[e.ctrl=17]="ctrl",e[e.delete=46]="delete",e[e.end=35]="end",e[e.enter=13]="enter",e[e.equals=187]="equals",e[e.equals2=61]="equals2",e[e.equals3=107]="equals3",e[e.escape=27]="escape",e[e.forwardSlash=191]="forwardSlash",e[e.function1=112]="function1",e[e.function10=121]="function10",e[e.function11=122]="function11",e[e.function12=123]="function12",e[e.function2=113]="function2",e[e.function3=114]="function3",e[e.function4=115]="function4",e[e.function5=116]="function5",e[e.function6=117]="function6",e[e.function7=118]="function7",e[e.function8=119]="function8",e[e.function9=120]="function9",e[e.home=36]="home",e[e.insert=45]="insert",e[e.menu=93]="menu",e[e.minus=189]="minus",e[e.minus2=109]="minus2",e[e.numLock=144]="numLock",e[e.numPad0=96]="numPad0",e[e.numPad1=97]="numPad1",e[e.numPad2=98]="numPad2",e[e.numPad3=99]="numPad3",e[e.numPad4=100]="numPad4",e[e.numPad5=101]="numPad5",e[e.numPad6=102]="numPad6",e[e.numPad7=103]="numPad7",e[e.numPad8=104]="numPad8",e[e.numPad9=105]="numPad9",e[e.numPadDivide=111]="numPadDivide",e[e.numPadDot=110]="numPadDot",e[e.numPadMinus=109]="numPadMinus",e[e.numPadMultiply=106]="numPadMultiply",e[e.numPadPlus=107]="numPadPlus",e[e.openBracket=219]="openBracket",e[e.pageDown=34]="pageDown",e[e.pageUp=33]="pageUp",e[e.period=190]="period",e[e.print=44]="print",e[e.quote=222]="quote",e[e.scrollLock=145]="scrollLock",e[e.shift=16]="shift",e[e.space=32]="space",e[e.tab=9]="tab",e[e.tilde=192]="tilde",e[e.windowsLeft=91]="windowsLeft",e[e.windowsOpera=219]="windowsOpera",e[e.windowsRight=92]="windowsRight"})(iv||(iv={}));const di="ArrowDown",Ns="ArrowLeft",Fs="ArrowRight",fi="ArrowUp",el="Enter",tu="Escape",So="Home",$o="End",WO="F2",GO="PageDown",qO="PageUp",tl=" ",fp="Tab",QO={ArrowDown:di,ArrowLeft:Ns,ArrowRight:Fs,ArrowUp:fi};var uo;(function(e){e.ltr="ltr",e.rtl="rtl"})(uo||(uo={}));function XO(e,t,n){return Math.min(Math.max(n,e),t)}function _l(e,t,n=0){return[t,n]=[t,n].sort((r,i)=>r-i),t<=e&&ese` - ${ko(e,t)} + ${Co(e,t)} - ${wo(e,t)} + ${ko(e,t)} -`;class be{}S([E({attribute:"aria-atomic"})],be.prototype,"ariaAtomic",void 0);S([E({attribute:"aria-busy"})],be.prototype,"ariaBusy",void 0);S([E({attribute:"aria-controls"})],be.prototype,"ariaControls",void 0);S([E({attribute:"aria-current"})],be.prototype,"ariaCurrent",void 0);S([E({attribute:"aria-describedby"})],be.prototype,"ariaDescribedby",void 0);S([E({attribute:"aria-details"})],be.prototype,"ariaDetails",void 0);S([E({attribute:"aria-disabled"})],be.prototype,"ariaDisabled",void 0);S([E({attribute:"aria-errormessage"})],be.prototype,"ariaErrormessage",void 0);S([E({attribute:"aria-flowto"})],be.prototype,"ariaFlowto",void 0);S([E({attribute:"aria-haspopup"})],be.prototype,"ariaHaspopup",void 0);S([E({attribute:"aria-hidden"})],be.prototype,"ariaHidden",void 0);S([E({attribute:"aria-invalid"})],be.prototype,"ariaInvalid",void 0);S([E({attribute:"aria-keyshortcuts"})],be.prototype,"ariaKeyshortcuts",void 0);S([E({attribute:"aria-label"})],be.prototype,"ariaLabel",void 0);S([E({attribute:"aria-labelledby"})],be.prototype,"ariaLabelledby",void 0);S([E({attribute:"aria-live"})],be.prototype,"ariaLive",void 0);S([E({attribute:"aria-owns"})],be.prototype,"ariaOwns",void 0);S([E({attribute:"aria-relevant"})],be.prototype,"ariaRelevant",void 0);S([E({attribute:"aria-roledescription"})],be.prototype,"ariaRoledescription",void 0);class bn extends ye{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{var n;(n=this.control)===null||n===void 0||n.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}S([E],bn.prototype,"download",void 0);S([E],bn.prototype,"href",void 0);S([E],bn.prototype,"hreflang",void 0);S([E],bn.prototype,"ping",void 0);S([E],bn.prototype,"referrerpolicy",void 0);S([E],bn.prototype,"rel",void 0);S([E],bn.prototype,"target",void 0);S([E],bn.prototype,"type",void 0);S([F],bn.prototype,"defaultSlottedContent",void 0);class hp{}S([E({attribute:"aria-expanded"})],hp.prototype,"ariaExpanded",void 0);_t(hp,be);_t(bn,xo,hp);const KO=e=>{const t=e.closest("[dir]");return t!==null&&t.dir==="rtl"?co.rtl:co.ltr},Lx=(e,t)=>se` +`;class be{}S([E({attribute:"aria-atomic"})],be.prototype,"ariaAtomic",void 0);S([E({attribute:"aria-busy"})],be.prototype,"ariaBusy",void 0);S([E({attribute:"aria-controls"})],be.prototype,"ariaControls",void 0);S([E({attribute:"aria-current"})],be.prototype,"ariaCurrent",void 0);S([E({attribute:"aria-describedby"})],be.prototype,"ariaDescribedby",void 0);S([E({attribute:"aria-details"})],be.prototype,"ariaDetails",void 0);S([E({attribute:"aria-disabled"})],be.prototype,"ariaDisabled",void 0);S([E({attribute:"aria-errormessage"})],be.prototype,"ariaErrormessage",void 0);S([E({attribute:"aria-flowto"})],be.prototype,"ariaFlowto",void 0);S([E({attribute:"aria-haspopup"})],be.prototype,"ariaHaspopup",void 0);S([E({attribute:"aria-hidden"})],be.prototype,"ariaHidden",void 0);S([E({attribute:"aria-invalid"})],be.prototype,"ariaInvalid",void 0);S([E({attribute:"aria-keyshortcuts"})],be.prototype,"ariaKeyshortcuts",void 0);S([E({attribute:"aria-label"})],be.prototype,"ariaLabel",void 0);S([E({attribute:"aria-labelledby"})],be.prototype,"ariaLabelledby",void 0);S([E({attribute:"aria-live"})],be.prototype,"ariaLive",void 0);S([E({attribute:"aria-owns"})],be.prototype,"ariaOwns",void 0);S([E({attribute:"aria-relevant"})],be.prototype,"ariaRelevant",void 0);S([E({attribute:"aria-roledescription"})],be.prototype,"ariaRoledescription",void 0);class xn extends ye{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{var n;(n=this.control)===null||n===void 0||n.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}S([E],xn.prototype,"download",void 0);S([E],xn.prototype,"href",void 0);S([E],xn.prototype,"hreflang",void 0);S([E],xn.prototype,"ping",void 0);S([E],xn.prototype,"referrerpolicy",void 0);S([E],xn.prototype,"rel",void 0);S([E],xn.prototype,"target",void 0);S([E],xn.prototype,"type",void 0);S([F],xn.prototype,"defaultSlottedContent",void 0);class hp{}S([E({attribute:"aria-expanded"})],hp.prototype,"ariaExpanded",void 0);_t(hp,be);_t(xn,wo,hp);const JO=e=>{const t=e.closest("[dir]");return t!==null&&t.dir==="rtl"?uo.rtl:uo.ltr},Lx=(e,t)=>se` -`;let tl=class extends ye{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,n=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?n:`${n} ${t}`}}};S([E({attribute:"fill"})],tl.prototype,"fill",void 0);S([E({attribute:"color"})],tl.prototype,"color",void 0);S([E({mode:"boolean"})],tl.prototype,"circular",void 0);const JO=(e,t)=>se` +`;let nl=class extends ye{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;const t=`background-color: var(--badge-fill-${this.fill});`,n=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?t:this.color&&!this.fill?n:`${n} ${t}`}}};S([E({attribute:"fill"})],nl.prototype,"fill",void 0);S([E({attribute:"color"})],nl.prototype,"color",void 0);S([E({mode:"boolean"})],nl.prototype,"circular",void 0);const ZO=(e,t)=>se` -`,ov="form-associated-proxy",sv="ElementInternals",lv=sv in window&&"setFormValue"in window[sv].prototype,av=new WeakMap;function nl(e){const t=class extends e{constructor(...n){super(...n),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return lv}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const n=this.proxy.labels,r=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=n?r.concat(Array.from(n)):r;return Object.freeze(i)}else return Jr}valueChanged(n,r){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(n,r){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),J.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),J.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!lv)return null;let n=av.get(this);return n||(n=this.attachInternals(),av.set(this,n)),n}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(n=>this.proxy.removeEventListener(n,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(n,r,i){this.elementInternals?this.elementInternals.setValidity(n,r,i):typeof r=="string"&&this.proxy.setCustomValidity(r)}formDisabledCallback(n){this.disabled=n}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var n;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(r=>this.proxy.addEventListener(r,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",ov),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",ov)),(n=this.shadowRoot)===null||n===void 0||n.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var n;this.removeChild(this.proxy),(n=this.shadowRoot)===null||n===void 0||n.removeChild(this.proxySlot)}validate(n){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,n)}setFormValue(n,r){this.elementInternals&&this.elementInternals.setFormValue(n,r||n)}_keypressHandler(n){switch(n.key){case Zs:if(this.form instanceof HTMLFormElement){const r=this.form.querySelector("[type=submit]");r==null||r.click()}break}}stopPropagation(n){n.stopPropagation()}};return E({mode:"boolean"})(t.prototype,"disabled"),E({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),E({attribute:"current-value"})(t.prototype,"currentValue"),E(t.prototype,"name"),E({mode:"boolean"})(t.prototype,"required"),F(t.prototype,"value"),t}function Nx(e){class t extends nl(e){}class n extends t{constructor(...i){super(i),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(i,o){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),i!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(i,o){this.checked=this.currentChecked}updateForm(){const i=this.checked?this.value:null;this.setFormValue(i,i)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return E({attribute:"checked",mode:"boolean"})(n.prototype,"checkedAttribute"),E({attribute:"current-checked",converter:wx})(n.prototype,"currentChecked"),F(n.prototype,"defaultChecked"),F(n.prototype,"checked"),n}class ZO extends ye{}class e2 extends nl(ZO){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let xn=class extends e2{constructor(){super(...arguments),this.handleClick=t=>{var n;this.disabled&&((n=this.defaultSlottedContent)===null||n===void 0?void 0:n.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;(t=this.form)===null||t===void 0||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,n){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),n==="submit"&&this.addEventListener("click",this.handleSubmission),t==="submit"&&this.removeEventListener("click",this.handleSubmission),n==="reset"&&this.addEventListener("click",this.handleFormReset),t==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const n=Array.from((t=this.control)===null||t===void 0?void 0:t.children);n&&n.forEach(r=>{r.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const n=Array.from((t=this.control)===null||t===void 0?void 0:t.children);n&&n.forEach(r=>{r.removeEventListener("click",this.handleClick)})}};S([E({mode:"boolean"})],xn.prototype,"autofocus",void 0);S([E({attribute:"form"})],xn.prototype,"formId",void 0);S([E],xn.prototype,"formaction",void 0);S([E],xn.prototype,"formenctype",void 0);S([E],xn.prototype,"formmethod",void 0);S([E({mode:"boolean"})],xn.prototype,"formnovalidate",void 0);S([E],xn.prototype,"formtarget",void 0);S([E],xn.prototype,"type",void 0);S([F],xn.prototype,"defaultSlottedContent",void 0);class tu{}S([E({attribute:"aria-expanded"})],tu.prototype,"ariaExpanded",void 0);S([E({attribute:"aria-pressed"})],tu.prototype,"ariaPressed",void 0);_t(tu,be);_t(xn,xo,tu);const _l={none:"none",default:"default",sticky:"sticky"},or={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},us={default:"default",header:"header",stickyHeader:"sticky-header"};let at=class extends ye{constructor(){super(...arguments),this.rowType=us.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Ex(t=>t.columnDefinitions,t=>t.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(lo,this.handleFocusout),this.addEventListener(ao,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(lo,this.handleFocusout),this.removeEventListener(ao,this.handleKeydown)}handleFocusout(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let n=0;switch(t.key){case Ns:n=Math.max(0,this.focusColumnIndex-1),this.cellElements[n].focus(),t.preventDefault();break;case Fs:n=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[n].focus(),t.preventDefault();break;case Co:t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case So:t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===us.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===us.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};S([E({attribute:"grid-template-columns"})],at.prototype,"gridTemplateColumns",void 0);S([E({attribute:"row-type"})],at.prototype,"rowType",void 0);S([F],at.prototype,"rowData",void 0);S([F],at.prototype,"columnDefinitions",void 0);S([F],at.prototype,"cellItemTemplate",void 0);S([F],at.prototype,"headerCellItemTemplate",void 0);S([F],at.prototype,"rowIndex",void 0);S([F],at.prototype,"isActiveRow",void 0);S([F],at.prototype,"activeCellItemTemplate",void 0);S([F],at.prototype,"defaultCellItemTemplate",void 0);S([F],at.prototype,"defaultHeaderCellItemTemplate",void 0);S([F],at.prototype,"cellElements",void 0);function t2(e){const t=e.tagFor(at);return se` +`,ov="form-associated-proxy",sv="ElementInternals",lv=sv in window&&"setFormValue"in window[sv].prototype,av=new WeakMap;function rl(e){const t=class extends e{constructor(...n){super(...n),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return lv}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const n=this.proxy.labels,r=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),i=n?r.concat(Array.from(n)):r;return Object.freeze(i)}else return Jr}valueChanged(n,r){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(n,r){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),J.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(n,r){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),J.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!lv)return null;let n=av.get(this);return n||(n=this.attachInternals(),av.set(this,n)),n}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(n=>this.proxy.removeEventListener(n,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(n,r,i){this.elementInternals?this.elementInternals.setValidity(n,r,i):typeof r=="string"&&this.proxy.setCustomValidity(r)}formDisabledCallback(n){this.disabled=n}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var n;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(r=>this.proxy.addEventListener(r,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",ov),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",ov)),(n=this.shadowRoot)===null||n===void 0||n.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var n;this.removeChild(this.proxy),(n=this.shadowRoot)===null||n===void 0||n.removeChild(this.proxySlot)}validate(n){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,n)}setFormValue(n,r){this.elementInternals&&this.elementInternals.setFormValue(n,r||n)}_keypressHandler(n){switch(n.key){case el:if(this.form instanceof HTMLFormElement){const r=this.form.querySelector("[type=submit]");r==null||r.click()}break}}stopPropagation(n){n.stopPropagation()}};return E({mode:"boolean"})(t.prototype,"disabled"),E({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),E({attribute:"current-value"})(t.prototype,"currentValue"),E(t.prototype,"name"),E({mode:"boolean"})(t.prototype,"required"),F(t.prototype,"value"),t}function Nx(e){class t extends rl(e){}class n extends t{constructor(...i){super(i),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(i,o){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),i!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(i,o){this.checked=this.currentChecked}updateForm(){const i=this.checked?this.value:null;this.setFormValue(i,i)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return E({attribute:"checked",mode:"boolean"})(n.prototype,"checkedAttribute"),E({attribute:"current-checked",converter:wx})(n.prototype,"currentChecked"),F(n.prototype,"defaultChecked"),F(n.prototype,"checked"),n}class e2 extends ye{}class t2 extends rl(e2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let wn=class extends t2{constructor(){super(...arguments),this.handleClick=t=>{var n;this.disabled&&((n=this.defaultSlottedContent)===null||n===void 0?void 0:n.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;const t=this.proxy.isConnected;t||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;(t=this.form)===null||t===void 0||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,n){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),n==="submit"&&this.addEventListener("click",this.handleSubmission),t==="submit"&&this.removeEventListener("click",this.handleSubmission),n==="reset"&&this.addEventListener("click",this.handleFormReset),t==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();const n=Array.from((t=this.control)===null||t===void 0?void 0:t.children);n&&n.forEach(r=>{r.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();const n=Array.from((t=this.control)===null||t===void 0?void 0:t.children);n&&n.forEach(r=>{r.removeEventListener("click",this.handleClick)})}};S([E({mode:"boolean"})],wn.prototype,"autofocus",void 0);S([E({attribute:"form"})],wn.prototype,"formId",void 0);S([E],wn.prototype,"formaction",void 0);S([E],wn.prototype,"formenctype",void 0);S([E],wn.prototype,"formmethod",void 0);S([E({mode:"boolean"})],wn.prototype,"formnovalidate",void 0);S([E],wn.prototype,"formtarget",void 0);S([E],wn.prototype,"type",void 0);S([F],wn.prototype,"defaultSlottedContent",void 0);class nu{}S([E({attribute:"aria-expanded"})],nu.prototype,"ariaExpanded",void 0);S([E({attribute:"aria-pressed"})],nu.prototype,"ariaPressed",void 0);_t(nu,be);_t(wn,wo,nu);const Al={none:"none",default:"default",sticky:"sticky"},sr={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},us={default:"default",header:"header",stickyHeader:"sticky-header"};let at=class extends ye{constructor(){super(...arguments),this.rowType=us.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Ex(t=>t.columnDefinitions,t=>t.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(ao,this.handleFocusout),this.addEventListener(co,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(ao,this.handleFocusout),this.removeEventListener(co,this.handleKeydown)}handleFocusout(t){this.contains(t.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(t){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(t.target),this.$emit("row-focused",this)}handleKeydown(t){if(t.defaultPrevented)return;let n=0;switch(t.key){case Ns:n=Math.max(0,this.focusColumnIndex-1),this.cellElements[n].focus(),t.preventDefault();break;case Fs:n=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[n].focus(),t.preventDefault();break;case So:t.ctrlKey||(this.cellElements[0].focus(),t.preventDefault());break;case $o:t.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),t.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===us.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===us.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};S([E({attribute:"grid-template-columns"})],at.prototype,"gridTemplateColumns",void 0);S([E({attribute:"row-type"})],at.prototype,"rowType",void 0);S([F],at.prototype,"rowData",void 0);S([F],at.prototype,"columnDefinitions",void 0);S([F],at.prototype,"cellItemTemplate",void 0);S([F],at.prototype,"headerCellItemTemplate",void 0);S([F],at.prototype,"rowIndex",void 0);S([F],at.prototype,"isActiveRow",void 0);S([F],at.prototype,"activeCellItemTemplate",void 0);S([F],at.prototype,"defaultCellItemTemplate",void 0);S([F],at.prototype,"defaultHeaderCellItemTemplate",void 0);S([F],at.prototype,"cellElements",void 0);function n2(e){const t=e.tagFor(at);return se` <${t} :rowData="${n=>n}" :cellItemTemplate="${(n,r)=>r.parent.cellItemTemplate}" :headerCellItemTemplate="${(n,r)=>r.parent.headerCellItemTemplate}" > -`}const n2=(e,t)=>{const n=t2(e),r=e.tagFor(at);return se` +`}const r2=(e,t)=>{const n=n2(e),r=e.tagFor(at);return se` - `};let ct=class Ef extends ye{constructor(){super(),this.noTabbing=!1,this.generateHeader=_l.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(t,n,r)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}const i=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[i].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),l=Math.max(0,Math.min(s.length-1,n)),a=s[l];r&&this.scrollHeight!==this.clientHeight&&(i0||i>this.focusRowIndex&&this.scrollTop{t&&t.length&&(t.forEach(r=>{r.addedNodes.forEach(i=>{i.nodeType===1&&i.getAttribute("role")==="row"&&(i.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,J.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let t=this.gridTemplateColumns;if(t===void 0){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){const n=this.rowElements[0];this.generatedGridTemplateColumns=new Array(n.cellElements.length).fill("1fr").join(" ")}t=this.generatedGridTemplateColumns}this.rowElements.forEach((n,r)=>{const i=n;i.rowIndex=r,i.gridTemplateColumns=t,this.columnDefinitionsStale&&(i.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let n="";return t.forEach(r=>{n=`${n}${n===""?"":" "}1fr`}),n}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=Ef.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=Ef.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Ex(t=>t.rowsData,t=>t.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(nv,this.handleFocus),this.addEventListener(ao,this.handleKeydown),this.addEventListener(lo,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),J.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(nv,this.handleFocus),this.removeEventListener(ao,this.handleKeydown),this.removeEventListener(lo,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(t){this.isUpdatingFocus=!0;const n=t.target;this.focusRowIndex=this.rowElements.indexOf(n),this.focusColumnIndex=n.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){(t.relatedTarget===null||!this.contains(t.relatedTarget))&&this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(t){if(t.defaultPrevented)return;let n;const r=this.rowElements.length-1,i=this.offsetHeight+this.scrollTop,o=this.rowElements[r];switch(t.key){case fi:t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case di:t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case GO:if(t.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(n=this.focusRowIndex-1,n;n>=0;n--){const s=this.rowElements[n];if(s.offsetTop=r||o.offsetTop+o.offsetHeight<=i){this.focusOnCell(r,this.focusColumnIndex,!1);return}for(n=this.focusRowIndex+1,n;n<=r;n++){const s=this.rowElements[n];if(s.offsetTop+s.offsetHeight>i){let l=0;this.generateHeader===_l.sticky&&this.generatedHeader!==null&&(l=this.generatedHeader.clientHeight),this.scrollTop=s.offsetTop-l;break}}this.focusOnCell(n,this.focusColumnIndex,!1);break;case Co:t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case So:t.ctrlKey&&this.columnDefinitions!==null&&(t.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0));break}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||this.pendingFocusUpdate===!1&&(this.pendingFocusUpdate=!0,J.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==_l.none&&this.rowsData.length>0){const t=document.createElement(this.rowElementTag);this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===_l.sticky?us.stickyHeader:us.header,(this.firstChild!==null||this.rowsPlaceholder!==null)&&this.insertBefore(t,this.firstChild!==null?this.firstChild:this.rowsPlaceholder);return}}};ct.generateColumns=e=>Object.getOwnPropertyNames(e).map((t,n)=>({columnDataKey:t,gridColumn:`${n}`}));S([E({attribute:"no-tabbing",mode:"boolean"})],ct.prototype,"noTabbing",void 0);S([E({attribute:"generate-header"})],ct.prototype,"generateHeader",void 0);S([E({attribute:"grid-template-columns"})],ct.prototype,"gridTemplateColumns",void 0);S([F],ct.prototype,"rowsData",void 0);S([F],ct.prototype,"columnDefinitions",void 0);S([F],ct.prototype,"rowItemTemplate",void 0);S([F],ct.prototype,"cellItemTemplate",void 0);S([F],ct.prototype,"headerCellItemTemplate",void 0);S([F],ct.prototype,"focusRowIndex",void 0);S([F],ct.prototype,"focusColumnIndex",void 0);S([F],ct.prototype,"defaultRowItemTemplate",void 0);S([F],ct.prototype,"rowElementTag",void 0);S([F],ct.prototype,"rowElements",void 0);const r2=se` + `};let ct=class Ef extends ye{constructor(){super(),this.noTabbing=!1,this.generateHeader=Al.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(t,n,r)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}const i=Math.max(0,Math.min(this.rowElements.length-1,t)),s=this.rowElements[i].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),l=Math.max(0,Math.min(s.length-1,n)),a=s[l];r&&this.scrollHeight!==this.clientHeight&&(i0||i>this.focusRowIndex&&this.scrollTop{t&&t.length&&(t.forEach(r=>{r.addedNodes.forEach(i=>{i.nodeType===1&&i.getAttribute("role")==="row"&&(i.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,J.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let t=this.gridTemplateColumns;if(t===void 0){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){const n=this.rowElements[0];this.generatedGridTemplateColumns=new Array(n.cellElements.length).fill("1fr").join(" ")}t=this.generatedGridTemplateColumns}this.rowElements.forEach((n,r)=>{const i=n;i.rowIndex=r,i.gridTemplateColumns=t,this.columnDefinitionsStale&&(i.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(t){let n="";return t.forEach(r=>{n=`${n}${n===""?"":" "}1fr`}),n}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=Ef.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=Ef.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Ex(t=>t.rowsData,t=>t.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(nv,this.handleFocus),this.addEventListener(co,this.handleKeydown),this.addEventListener(ao,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),J.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(nv,this.handleFocus),this.removeEventListener(co,this.handleKeydown),this.removeEventListener(ao,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(t){this.isUpdatingFocus=!0;const n=t.target;this.focusRowIndex=this.rowElements.indexOf(n),this.focusColumnIndex=n.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(t){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(t){(t.relatedTarget===null||!this.contains(t.relatedTarget))&&this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(t){if(t.defaultPrevented)return;let n;const r=this.rowElements.length-1,i=this.offsetHeight+this.scrollTop,o=this.rowElements[r];switch(t.key){case fi:t.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case di:t.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case qO:if(t.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(n=this.focusRowIndex-1,n;n>=0;n--){const s=this.rowElements[n];if(s.offsetTop=r||o.offsetTop+o.offsetHeight<=i){this.focusOnCell(r,this.focusColumnIndex,!1);return}for(n=this.focusRowIndex+1,n;n<=r;n++){const s=this.rowElements[n];if(s.offsetTop+s.offsetHeight>i){let l=0;this.generateHeader===Al.sticky&&this.generatedHeader!==null&&(l=this.generatedHeader.clientHeight),this.scrollTop=s.offsetTop-l;break}}this.focusOnCell(n,this.focusColumnIndex,!1);break;case So:t.ctrlKey&&(t.preventDefault(),this.focusOnCell(0,0,!0));break;case $o:t.ctrlKey&&this.columnDefinitions!==null&&(t.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0));break}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||this.pendingFocusUpdate===!1&&(this.pendingFocusUpdate=!0,J.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==Al.none&&this.rowsData.length>0){const t=document.createElement(this.rowElementTag);this.generatedHeader=t,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===Al.sticky?us.stickyHeader:us.header,(this.firstChild!==null||this.rowsPlaceholder!==null)&&this.insertBefore(t,this.firstChild!==null?this.firstChild:this.rowsPlaceholder);return}}};ct.generateColumns=e=>Object.getOwnPropertyNames(e).map((t,n)=>({columnDataKey:t,gridColumn:`${n}`}));S([E({attribute:"no-tabbing",mode:"boolean"})],ct.prototype,"noTabbing",void 0);S([E({attribute:"generate-header"})],ct.prototype,"generateHeader",void 0);S([E({attribute:"grid-template-columns"})],ct.prototype,"gridTemplateColumns",void 0);S([F],ct.prototype,"rowsData",void 0);S([F],ct.prototype,"columnDefinitions",void 0);S([F],ct.prototype,"rowItemTemplate",void 0);S([F],ct.prototype,"cellItemTemplate",void 0);S([F],ct.prototype,"headerCellItemTemplate",void 0);S([F],ct.prototype,"focusRowIndex",void 0);S([F],ct.prototype,"focusColumnIndex",void 0);S([F],ct.prototype,"defaultRowItemTemplate",void 0);S([F],ct.prototype,"rowElementTag",void 0);S([F],ct.prototype,"rowElements",void 0);const i2=se` -`,i2=se` +`,o2=se` -`;let Mr=class extends ye{constructor(){super(...arguments),this.cellType=or.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(t,n){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener(rv,this.handleFocusin),this.addEventListener(lo,this.handleFocusout),this.addEventListener(ao,this.handleKeydown),this.style.gridColumn=`${((t=this.columnDefinition)===null||t===void 0?void 0:t.gridColumn)===void 0?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(rv,this.handleFocusin),this.removeEventListener(lo,this.handleFocusout),this.removeEventListener(ao,this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case or.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==!0&&typeof this.columnDefinition.headerCellFocusTargetCallback=="function"){const n=this.columnDefinition.headerCellFocusTargetCallback(this);n!==null&&n.focus()}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==!0&&typeof this.columnDefinition.cellFocusTargetCallback=="function"){const n=this.columnDefinition.cellFocusTargetCallback(this);n!==null&&n.focus()}break}this.$emit("cell-focused",this)}}handleFocusout(t){this!==document.activeElement&&!this.contains(document.activeElement)&&(this.isActiveCell=!1)}handleKeydown(t){if(!(t.defaultPrevented||this.columnDefinition===null||this.cellType===or.default&&this.columnDefinition.cellInternalFocusQueue!==!0||this.cellType===or.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==!0))switch(t.key){case Zs:case UO:if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case or.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==void 0){const n=this.columnDefinition.headerCellFocusTargetCallback(this);n!==null&&n.focus(),t.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==void 0){const n=this.columnDefinition.cellFocusTargetCallback(this);n!==null&&n.focus(),t.preventDefault()}break}break;case eu:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),t.preventDefault());break}}updateCellView(){if(this.disconnectCellView(),this.columnDefinition!==null)switch(this.cellType){case or.columnHeader:this.columnDefinition.headerCellTemplate!==void 0?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=i2.render(this,this);break;case void 0:case or.rowHeader:case or.default:this.columnDefinition.cellTemplate!==void 0?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=r2.render(this,this);break}}disconnectCellView(){this.customCellView!==null&&(this.customCellView.dispose(),this.customCellView=null)}};S([E({attribute:"cell-type"})],Mr.prototype,"cellType",void 0);S([E({attribute:"grid-column"})],Mr.prototype,"gridColumn",void 0);S([F],Mr.prototype,"rowData",void 0);S([F],Mr.prototype,"columnDefinition",void 0);function o2(e){const t=e.tagFor(Mr);return se` +`;let Mr=class extends ye{constructor(){super(...arguments),this.cellType=sr.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(t,n){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var t;super.connectedCallback(),this.addEventListener(rv,this.handleFocusin),this.addEventListener(ao,this.handleFocusout),this.addEventListener(co,this.handleKeydown),this.style.gridColumn=`${((t=this.columnDefinition)===null||t===void 0?void 0:t.gridColumn)===void 0?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(rv,this.handleFocusin),this.removeEventListener(ao,this.handleFocusout),this.removeEventListener(co,this.handleKeydown),this.disconnectCellView()}handleFocusin(t){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case sr.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==!0&&typeof this.columnDefinition.headerCellFocusTargetCallback=="function"){const n=this.columnDefinition.headerCellFocusTargetCallback(this);n!==null&&n.focus()}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==!0&&typeof this.columnDefinition.cellFocusTargetCallback=="function"){const n=this.columnDefinition.cellFocusTargetCallback(this);n!==null&&n.focus()}break}this.$emit("cell-focused",this)}}handleFocusout(t){this!==document.activeElement&&!this.contains(document.activeElement)&&(this.isActiveCell=!1)}handleKeydown(t){if(!(t.defaultPrevented||this.columnDefinition===null||this.cellType===sr.default&&this.columnDefinition.cellInternalFocusQueue!==!0||this.cellType===sr.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==!0))switch(t.key){case el:case WO:if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case sr.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==void 0){const n=this.columnDefinition.headerCellFocusTargetCallback(this);n!==null&&n.focus(),t.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==void 0){const n=this.columnDefinition.cellFocusTargetCallback(this);n!==null&&n.focus(),t.preventDefault()}break}break;case tu:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),t.preventDefault());break}}updateCellView(){if(this.disconnectCellView(),this.columnDefinition!==null)switch(this.cellType){case sr.columnHeader:this.columnDefinition.headerCellTemplate!==void 0?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=o2.render(this,this);break;case void 0:case sr.rowHeader:case sr.default:this.columnDefinition.cellTemplate!==void 0?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=i2.render(this,this);break}}disconnectCellView(){this.customCellView!==null&&(this.customCellView.dispose(),this.customCellView=null)}};S([E({attribute:"cell-type"})],Mr.prototype,"cellType",void 0);S([E({attribute:"grid-column"})],Mr.prototype,"gridColumn",void 0);S([F],Mr.prototype,"rowData",void 0);S([F],Mr.prototype,"columnDefinition",void 0);function s2(e){const t=e.tagFor(Mr);return se` <${t} cell-type="${n=>n.isRowHeader?"rowheader":void 0}" grid-column="${(n,r)=>r.index+1}" :rowData="${(n,r)=>r.parent.rowData}" :columnDefinition="${n=>n}" > -`}function s2(e){const t=e.tagFor(Mr);return se` +`}function l2(e){const t=e.tagFor(Mr);return se` <${t} cell-type="columnheader" grid-column="${(n,r)=>r.index+1}" :columnDefinition="${n=>n}" > -`}const l2=(e,t)=>{const n=o2(e),r=s2(e);return se` +`}const a2=(e,t)=>{const n=s2(e),r=l2(e);return se` - `},a2=(e,t)=>se` + `},c2=(e,t)=>se` - `,c2=(e,t)=>se` + `,u2=(e,t)=>se` -`;class u2 extends ye{}class d2 extends Nx(u2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let nu=class extends d2{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly)switch(t.key){case el:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=t=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};S([E({attribute:"readonly",mode:"boolean"})],nu.prototype,"readOnly",void 0);S([F],nu.prototype,"defaultSlottedNodes",void 0);S([F],nu.prototype,"indeterminate",void 0);function Fx(e){return BO(e)&&(e.getAttribute("role")==="option"||e instanceof HTMLOptionElement)}class Zn extends ye{constructor(t,n,r,i){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),n&&(this.initialValue=n),r&&(this.defaultSelected=r),i&&(this.selected=i),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,n){if(typeof n=="boolean"){this.ariaChecked=n?"true":"false";return}this.ariaChecked=null}contentChanged(t,n){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,n){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,n){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t;return(t=this.value)!==null&&t!==void 0?t:this.text}get text(){var t,n;return(n=(t=this.textContent)===null||t===void 0?void 0:t.replace(/\s+/g," ").trim())!==null&&n!==void 0?n:""}set value(t){const n=`${t??""}`;this._value=n,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=n),Y.notify(this,"value")}get value(){var t;return Y.track(this,"value"),(t=this._value)!==null&&t!==void 0?t:this.text}get form(){return this.proxy?this.proxy.form:null}}S([F],Zn.prototype,"checked",void 0);S([F],Zn.prototype,"content",void 0);S([F],Zn.prototype,"defaultSelected",void 0);S([E({mode:"boolean"})],Zn.prototype,"disabled",void 0);S([E({attribute:"selected",mode:"boolean"})],Zn.prototype,"selectedAttribute",void 0);S([F],Zn.prototype,"selected",void 0);S([E({attribute:"value",mode:"fromView"})],Zn.prototype,"initialValue",void 0);class $o{}S([F],$o.prototype,"ariaChecked",void 0);S([F],$o.prototype,"ariaPosInSet",void 0);S([F],$o.prototype,"ariaSelected",void 0);S([F],$o.prototype,"ariaSetSize",void 0);_t($o,be);_t(Zn,xo,$o);class gt extends ye{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return(t=this.selectedOptions[0])!==null&&t!==void 0?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(t=>t.disabled)}get length(){var t,n;return(n=(t=this.options)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0}get options(){return Y.track(this,"options"),this._options}set options(t){this._options=t,Y.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const n=t.target.closest("option,[role=option]");if(n&&!n.disabled)return this.selectedIndex=this.options.indexOf(n),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&t!==null&&(t.focus(),requestAnimationFrame(()=>{t.scrollIntoView({block:"nearest"})}))}focusinHandler(t){!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`^${t}`,"gi");return this.options.filter(r=>r.text.trim().match(n))}getSelectableIndex(t=this.selectedIndex,n){const r=t>n?-1:t!s&&!l.disabled&&a!s&&!l.disabled&&a>i?l:s,o);break}}return this.options.indexOf(o)}handleChange(t,n){switch(n){case"selected":{gt.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions();break}}}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,gt.TYPE_AHEAD_TIMEOUT_MS),!(t.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const n=t.key;switch(n){case Co:{t.shiftKey||(t.preventDefault(),this.selectFirstOption());break}case di:{t.shiftKey||(t.preventDefault(),this.selectNextOption());break}case fi:{t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break}case So:{t.preventDefault(),this.selectLastOption();break}case fp:return this.focusAndScrollOptionIntoView(),!0;case Zs:case eu:return!0;case el:if(this.typeaheadExpired)return!0;default:return n.length===1&&this.handleTypeAhead(`${n}`),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,n){this.ariaMultiSelectable=n?"true":null}selectedIndexChanged(t,n){var r;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((r=this.options[this.selectedIndex])===null||r===void 0)&&r.disabled&&typeof t=="number"){const i=this.getSelectableIndex(t,n),o=i>-1?i:t;this.selectedIndex=o,n===o&&this.selectedIndexChanged(n,o);return}this.setSelectedOptions()}selectedOptionsChanged(t,n){var r;const i=n.filter(gt.slottedOptionFilter);(r=this.options)===null||r===void 0||r.forEach(o=>{const s=Y.getNotifier(o);s.unsubscribe(this,"selected"),o.selected=i.includes(o),s.subscribe(this,"selected")})}selectFirstOption(){var t,n;this.disabled||(this.selectedIndex=(n=(t=this.options)===null||t===void 0?void 0:t.findIndex(r=>!r.disabled))!==null&&n!==void 0?n:-1)}selectLastOption(){this.disabled||(this.selectedIndex=jO(this.options,t=>!t.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,n;this.selectedIndex=(n=(t=this.options)===null||t===void 0?void 0:t.findIndex(r=>r.defaultSelected))!==null&&n!==void 0?n:-1}setSelectedOptions(){var t,n,r;!((t=this.options)===null||t===void 0)&&t.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(r=(n=this.firstSelectedOption)===null||n===void 0?void 0:n.id)!==null&&r!==void 0?r:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,n){this.options=n.reduce((i,o)=>(Fx(o)&&i.push(o),i),[]);const r=`${this.options.length}`;this.options.forEach((i,o)=>{i.id||(i.id=Wa("option-")),i.ariaPosInSet=`${o+1}`,i.ariaSetSize=r}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,n){if(this.$fastController.isConnected){const r=this.getTypeaheadMatches();if(r.length){const i=this.options.indexOf(r[0]);i>-1&&(this.selectedIndex=i)}this.typeaheadExpired=!1}}}gt.slottedOptionFilter=e=>Fx(e)&&!e.hidden;gt.TYPE_AHEAD_TIMEOUT_MS=1e3;S([E({mode:"boolean"})],gt.prototype,"disabled",void 0);S([F],gt.prototype,"selectedIndex",void 0);S([F],gt.prototype,"selectedOptions",void 0);S([F],gt.prototype,"slottedOptions",void 0);S([F],gt.prototype,"typeaheadBuffer",void 0);class hi{}S([F],hi.prototype,"ariaActiveDescendant",void 0);S([F],hi.prototype,"ariaDisabled",void 0);S([F],hi.prototype,"ariaExpanded",void 0);S([F],hi.prototype,"ariaMultiSelectable",void 0);_t(hi,be);_t(gt,hi);const sd={above:"above",below:"below"};function Rf(e){const t=e.parentElement;if(t)return t;{const n=e.getRootNode();if(n.host instanceof HTMLElement)return n.host}return null}function f2(e,t){let n=t;for(;n!==null;){if(n===e)return!0;n=Rf(n)}return!1}const Un=document.createElement("div");function h2(e){return e instanceof Zc}class pp{setProperty(t,n){J.queueUpdate(()=>this.target.setProperty(t,n))}removeProperty(t){J.queueUpdate(()=>this.target.removeProperty(t))}}class p2 extends pp{constructor(t){super();const n=new CSSStyleSheet;n[vx]=!0,this.target=n.cssRules[n.insertRule(":host{}")].style,t.$fastController.addStyles(Rt.create([n]))}}class m2 extends pp{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class g2 extends pp{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const n=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[n].style}}}class jx{constructor(t){this.store=new Map,this.target=null;const n=t.$fastController;this.style=document.createElement("style"),n.addStyles(this.style),Y.getNotifier(n).subscribe(this,"isConnected"),this.handleChange(n,"isConnected")}targetChanged(){if(this.target!==null)for(const[t,n]of this.store.entries())this.target.setProperty(t,n)}setProperty(t,n){this.store.set(t,n),J.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,n)})}removeProperty(t){this.store.delete(t),J.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,n){const{sheet:r}=this.style;if(r){const i=r.insertRule(":host{}",r.cssRules.length);this.target=r.cssRules[i].style}else this.target=null}}S([F],jx.prototype,"target",void 0);class v2{constructor(t){this.target=t.style}setProperty(t,n){J.queueUpdate(()=>this.target.setProperty(t,n))}removeProperty(t){J.queueUpdate(()=>this.target.removeProperty(t))}}class Ve{setProperty(t,n){Ve.properties[t]=n;for(const r of Ve.roots.values())Li.getOrCreate(Ve.normalizeRoot(r)).setProperty(t,n)}removeProperty(t){delete Ve.properties[t];for(const n of Ve.roots.values())Li.getOrCreate(Ve.normalizeRoot(n)).removeProperty(t)}static registerRoot(t){const{roots:n}=Ve;if(!n.has(t)){n.add(t);const r=Li.getOrCreate(this.normalizeRoot(t));for(const i in Ve.properties)r.setProperty(i,Ve.properties[i])}}static unregisterRoot(t){const{roots:n}=Ve;if(n.has(t)){n.delete(t);const r=Li.getOrCreate(Ve.normalizeRoot(t));for(const i in Ve.properties)r.removeProperty(i)}}static normalizeRoot(t){return t===Un?document:t}}Ve.roots=new Set;Ve.properties={};const ld=new WeakMap,y2=J.supportsAdoptedStyleSheets?p2:jx,Li=Object.freeze({getOrCreate(e){if(ld.has(e))return ld.get(e);let t;return e===Un?t=new Ve:e instanceof Document?t=J.supportsAdoptedStyleSheets?new m2:new g2:h2(e)?t=new y2(e):t=new v2(e),ld.set(e,t),t}});class pt extends Cx{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=pt.uniqueId(),pt.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new pt({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return pt.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const n=Oe.getOrCreate(t).get(this);if(n!==void 0)return n;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,n){return this._appliedTo.add(t),n instanceof pt&&(n=this.alias(n)),Oe.getOrCreate(t).set(this,n),this}deleteValueFor(t){return this._appliedTo.delete(t),Oe.existsFor(t)&&Oe.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(Un,t),this}subscribe(t,n){const r=this.getOrCreateSubscriberSet(n);n&&!Oe.existsFor(n)&&Oe.getOrCreate(n),r.has(t)||r.add(t)}unsubscribe(t,n){const r=this.subscribers.get(n||this);r&&r.has(t)&&r.delete(t)}notify(t){const n=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(r=>r.handleChange(n)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(r=>r.handleChange(n))}alias(t){return n=>t.getValueFor(n)}}pt.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})();pt.tokensById=new Map;class b2{startReflection(t,n){t.subscribe(this,n),this.handleChange({token:t,target:n})}stopReflection(t,n){t.unsubscribe(this,n),this.remove(t,n)}handleChange(t){const{token:n,target:r}=t;this.add(n,r)}add(t,n){Li.getOrCreate(n).setProperty(t.cssCustomProperty,this.resolveCSSValue(Oe.getOrCreate(n).get(t)))}remove(t,n){Li.getOrCreate(n).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}}class x2{constructor(t,n,r){this.source=t,this.token=n,this.node=r,this.dependencies=new Set,this.observer=Y.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,as))}}class w2{constructor(){this.values=new Map}set(t,n){this.values.get(t)!==n&&(this.values.set(t,n),Y.getNotifier(this).notify(t.id))}get(t){return Y.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const Vo=new WeakMap,Ho=new WeakMap;class Oe{constructor(t){this.target=t,this.store=new w2,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(n,r)=>{const i=pt.getTokenById(r);i&&(i.notify(this.target),this.updateCSSTokenReflection(n,i))}},Vo.set(t,this),Y.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof Zc?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return Vo.get(t)||new Oe(t)}static existsFor(t){return Vo.has(t)}static findParent(t){if(Un!==t.target){let n=Rf(t.target);for(;n!==null;){if(Vo.has(n))return Vo.get(n);n=Rf(n)}return Oe.getOrCreate(Un)}return null}static findClosestAssignedNode(t,n){let r=n;do{if(r.has(t))return r;r=r.parent?r.parent:r.target!==Un?Oe.getOrCreate(Un):null}while(r!==null);return null}get parent(){return Ho.get(this)||null}updateCSSTokenReflection(t,n){if(pt.isCSSDesignToken(n)){const r=this.parent,i=this.isReflecting(n);if(r){const o=r.get(n),s=t.get(n);o!==s&&!i?this.reflectToCSS(n):o===s&&i&&this.stopReflectToCSS(n)}else i||this.reflectToCSS(n)}}has(t){return this.assignedValues.has(t)}get(t){const n=this.store.get(t);if(n!==void 0)return n;const r=this.getRaw(t);if(r!==void 0)return this.hydrate(t,r),this.get(t)}getRaw(t){var n;return this.assignedValues.has(t)?this.assignedValues.get(t):(n=Oe.findClosestAssignedNode(t,this))===null||n===void 0?void 0:n.getRaw(t)}set(t,n){pt.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,n),pt.isDerivedDesignTokenValue(n)?this.setupBindingObserver(t,n):this.store.set(t,n)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const n=this.getRaw(t);n?this.hydrate(t,n):this.store.delete(t)}bind(){const t=Oe.findParent(this);t&&t.appendChild(this);for(const n of this.assignedValues.keys())n.notify(this.target)}unbind(){this.parent&&Ho.get(this).removeChild(this)}appendChild(t){t.parent&&Ho.get(t).removeChild(t);const n=this.children.filter(r=>t.contains(r));Ho.set(t,this),this.children.push(t),n.forEach(r=>t.appendChild(r)),Y.getNotifier(this.store).subscribe(t);for(const[r,i]of this.store.all())t.hydrate(r,this.bindingObservers.has(r)?this.getRaw(r):i)}removeChild(t){const n=this.children.indexOf(t);return n!==-1&&this.children.splice(n,1),Y.getNotifier(this.store).unsubscribe(t),t.parent===this?Ho.delete(t):!1}contains(t){return f2(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),Oe.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),Oe.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,n){const r=pt.getTokenById(n);r&&(this.hydrate(r,this.getRaw(r)),this.updateCSSTokenReflection(this.store,r))}hydrate(t,n){if(!this.has(t)){const r=this.bindingObservers.get(t);pt.isDerivedDesignTokenValue(n)?r?r.source!==n&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,n)):this.setupBindingObserver(t,n):(r&&this.tearDownBindingObserver(t),this.store.set(t,n))}}setupBindingObserver(t,n){const r=new x2(n,t,this);return this.bindingObservers.set(t,r),r}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}}Oe.cssCustomPropertyReflector=new b2;S([F],Oe.prototype,"children",void 0);function k2(e){return pt.from(e)}const zx=Object.freeze({create:k2,notifyConnection(e){return!e.isConnected||!Oe.existsFor(e)?!1:(Oe.getOrCreate(e).bind(),!0)},notifyDisconnection(e){return e.isConnected||!Oe.existsFor(e)?!1:(Oe.getOrCreate(e).unbind(),!0)},registerRoot(e=Un){Ve.registerRoot(e)},unregisterRoot(e=Un){Ve.unregisterRoot(e)}}),ad=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),cd=new Map,na=new Map;let qi=null;const Uo=ke.createInterface(e=>e.cachedCallback(t=>(qi===null&&(qi=new Vx(null,t)),qi))),Bx=Object.freeze({tagFor(e){return na.get(e)},responsibleFor(e){const t=e.$$designSystem$$;return t||ke.findResponsibleContainer(e).get(Uo)},getOrCreate(e){if(!e)return qi===null&&(qi=ke.getOrCreateDOMContainer().get(Uo)),qi;const t=e.$$designSystem$$;if(t)return t;const n=ke.getOrCreateDOMContainer(e);if(n.has(Uo,!1))return n.get(Uo);{const r=new Vx(e,n);return n.register(Ls.instance(Uo,r)),r}}});function C2(e,t,n){return typeof e=="string"?{name:e,type:t,callback:n}:e}class Vx{constructor(t,n){this.owner=t,this.container=n,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>ad.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const n=this.container,r=[],i=this.disambiguate,o=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(l,a,c){const d=C2(l,a,c),{name:u,callback:f,baseClass:v}=d;let{type:m}=d,g=u,b=cd.get(g),p=!0;for(;b;){const h=i(g,m,b);switch(h){case ad.ignoreDuplicate:return;case ad.definitionCallbackOnly:p=!1,b=void 0;break;default:g=h,b=cd.get(g);break}}p&&((na.has(m)||m===ye)&&(m=class extends m{}),cd.set(g,m),na.set(m,g),v&&na.set(v,g)),r.push(new S2(n,g,m,o,f,p))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&zx.registerRoot(this.designTokenRoot)),n.registerWithContext(s,...t);for(const l of r)l.callback(l),l.willDefine&&l.definition!==null&&l.definition.define();return this}}class S2{constructor(t,n,r,i,o,s){this.container=t,this.name=n,this.type=r,this.shadowRootMode=i,this.callback=o,this.willDefine=s,this.definition=null}definePresentation(t){Mx.define(this.name,t,this.container)}defineElement(t){this.definition=new Js(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Bx.tagFor(t)}}const $2=(e,t)=>se` +`;class d2 extends ye{}class f2 extends Nx(d2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let ru=class extends f2{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=t=>{if(!this.readOnly)switch(t.key){case tl:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=t=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};S([E({attribute:"readonly",mode:"boolean"})],ru.prototype,"readOnly",void 0);S([F],ru.prototype,"defaultSlottedNodes",void 0);S([F],ru.prototype,"indeterminate",void 0);function Fx(e){return VO(e)&&(e.getAttribute("role")==="option"||e instanceof HTMLOptionElement)}class er extends ye{constructor(t,n,r,i){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),n&&(this.initialValue=n),r&&(this.defaultSelected=r),i&&(this.selected=i),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,n){if(typeof n=="boolean"){this.ariaChecked=n?"true":"false";return}this.ariaChecked=null}contentChanged(t,n){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,n){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,n){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t;return(t=this.value)!==null&&t!==void 0?t:this.text}get text(){var t,n;return(n=(t=this.textContent)===null||t===void 0?void 0:t.replace(/\s+/g," ").trim())!==null&&n!==void 0?n:""}set value(t){const n=`${t??""}`;this._value=n,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=n),Y.notify(this,"value")}get value(){var t;return Y.track(this,"value"),(t=this._value)!==null&&t!==void 0?t:this.text}get form(){return this.proxy?this.proxy.form:null}}S([F],er.prototype,"checked",void 0);S([F],er.prototype,"content",void 0);S([F],er.prototype,"defaultSelected",void 0);S([E({mode:"boolean"})],er.prototype,"disabled",void 0);S([E({attribute:"selected",mode:"boolean"})],er.prototype,"selectedAttribute",void 0);S([F],er.prototype,"selected",void 0);S([E({attribute:"value",mode:"fromView"})],er.prototype,"initialValue",void 0);class To{}S([F],To.prototype,"ariaChecked",void 0);S([F],To.prototype,"ariaPosInSet",void 0);S([F],To.prototype,"ariaSelected",void 0);S([F],To.prototype,"ariaSetSize",void 0);_t(To,be);_t(er,wo,To);class vt extends ye{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return(t=this.selectedOptions[0])!==null&&t!==void 0?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(t=>t.disabled)}get length(){var t,n;return(n=(t=this.options)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0}get options(){return Y.track(this,"options"),this._options}set options(t){this._options=t,Y.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const n=t.target.closest("option,[role=option]");if(n&&!n.disabled)return this.selectedIndex=this.options.indexOf(n),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&t!==null&&(t.focus(),requestAnimationFrame(()=>{t.scrollIntoView({block:"nearest"})}))}focusinHandler(t){!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`^${t}`,"gi");return this.options.filter(r=>r.text.trim().match(n))}getSelectableIndex(t=this.selectedIndex,n){const r=t>n?-1:t!s&&!l.disabled&&a!s&&!l.disabled&&a>i?l:s,o);break}}return this.options.indexOf(o)}handleChange(t,n){switch(n){case"selected":{vt.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions();break}}}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>this.typeaheadExpired=!0,vt.TYPE_AHEAD_TIMEOUT_MS),!(t.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const n=t.key;switch(n){case So:{t.shiftKey||(t.preventDefault(),this.selectFirstOption());break}case di:{t.shiftKey||(t.preventDefault(),this.selectNextOption());break}case fi:{t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break}case $o:{t.preventDefault(),this.selectLastOption();break}case fp:return this.focusAndScrollOptionIntoView(),!0;case el:case tu:return!0;case tl:if(this.typeaheadExpired)return!0;default:return n.length===1&&this.handleTypeAhead(`${n}`),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,n){this.ariaMultiSelectable=n?"true":null}selectedIndexChanged(t,n){var r;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((r=this.options[this.selectedIndex])===null||r===void 0)&&r.disabled&&typeof t=="number"){const i=this.getSelectableIndex(t,n),o=i>-1?i:t;this.selectedIndex=o,n===o&&this.selectedIndexChanged(n,o);return}this.setSelectedOptions()}selectedOptionsChanged(t,n){var r;const i=n.filter(vt.slottedOptionFilter);(r=this.options)===null||r===void 0||r.forEach(o=>{const s=Y.getNotifier(o);s.unsubscribe(this,"selected"),o.selected=i.includes(o),s.subscribe(this,"selected")})}selectFirstOption(){var t,n;this.disabled||(this.selectedIndex=(n=(t=this.options)===null||t===void 0?void 0:t.findIndex(r=>!r.disabled))!==null&&n!==void 0?n:-1)}selectLastOption(){this.disabled||(this.selectedIndex=zO(this.options,t=>!t.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,n;this.selectedIndex=(n=(t=this.options)===null||t===void 0?void 0:t.findIndex(r=>r.defaultSelected))!==null&&n!==void 0?n:-1}setSelectedOptions(){var t,n,r;!((t=this.options)===null||t===void 0)&&t.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(r=(n=this.firstSelectedOption)===null||n===void 0?void 0:n.id)!==null&&r!==void 0?r:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,n){this.options=n.reduce((i,o)=>(Fx(o)&&i.push(o),i),[]);const r=`${this.options.length}`;this.options.forEach((i,o)=>{i.id||(i.id=qa("option-")),i.ariaPosInSet=`${o+1}`,i.ariaSetSize=r}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,n){if(this.$fastController.isConnected){const r=this.getTypeaheadMatches();if(r.length){const i=this.options.indexOf(r[0]);i>-1&&(this.selectedIndex=i)}this.typeaheadExpired=!1}}}vt.slottedOptionFilter=e=>Fx(e)&&!e.hidden;vt.TYPE_AHEAD_TIMEOUT_MS=1e3;S([E({mode:"boolean"})],vt.prototype,"disabled",void 0);S([F],vt.prototype,"selectedIndex",void 0);S([F],vt.prototype,"selectedOptions",void 0);S([F],vt.prototype,"slottedOptions",void 0);S([F],vt.prototype,"typeaheadBuffer",void 0);class hi{}S([F],hi.prototype,"ariaActiveDescendant",void 0);S([F],hi.prototype,"ariaDisabled",void 0);S([F],hi.prototype,"ariaExpanded",void 0);S([F],hi.prototype,"ariaMultiSelectable",void 0);_t(hi,be);_t(vt,hi);const ld={above:"above",below:"below"};function Rf(e){const t=e.parentElement;if(t)return t;{const n=e.getRootNode();if(n.host instanceof HTMLElement)return n.host}return null}function h2(e,t){let n=t;for(;n!==null;){if(n===e)return!0;n=Rf(n)}return!1}const Un=document.createElement("div");function p2(e){return e instanceof eu}class pp{setProperty(t,n){J.queueUpdate(()=>this.target.setProperty(t,n))}removeProperty(t){J.queueUpdate(()=>this.target.removeProperty(t))}}class m2 extends pp{constructor(t){super();const n=new CSSStyleSheet;n[vx]=!0,this.target=n.cssRules[n.insertRule(":host{}")].style,t.$fastController.addStyles(Rt.create([n]))}}class g2 extends pp{constructor(){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}}class v2 extends pp{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);const{sheet:t}=this.style;if(t){const n=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[n].style}}}class jx{constructor(t){this.store=new Map,this.target=null;const n=t.$fastController;this.style=document.createElement("style"),n.addStyles(this.style),Y.getNotifier(n).subscribe(this,"isConnected"),this.handleChange(n,"isConnected")}targetChanged(){if(this.target!==null)for(const[t,n]of this.store.entries())this.target.setProperty(t,n)}setProperty(t,n){this.store.set(t,n),J.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,n)})}removeProperty(t){this.store.delete(t),J.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,n){const{sheet:r}=this.style;if(r){const i=r.insertRule(":host{}",r.cssRules.length);this.target=r.cssRules[i].style}else this.target=null}}S([F],jx.prototype,"target",void 0);class y2{constructor(t){this.target=t.style}setProperty(t,n){J.queueUpdate(()=>this.target.setProperty(t,n))}removeProperty(t){J.queueUpdate(()=>this.target.removeProperty(t))}}class Ve{setProperty(t,n){Ve.properties[t]=n;for(const r of Ve.roots.values())Li.getOrCreate(Ve.normalizeRoot(r)).setProperty(t,n)}removeProperty(t){delete Ve.properties[t];for(const n of Ve.roots.values())Li.getOrCreate(Ve.normalizeRoot(n)).removeProperty(t)}static registerRoot(t){const{roots:n}=Ve;if(!n.has(t)){n.add(t);const r=Li.getOrCreate(this.normalizeRoot(t));for(const i in Ve.properties)r.setProperty(i,Ve.properties[i])}}static unregisterRoot(t){const{roots:n}=Ve;if(n.has(t)){n.delete(t);const r=Li.getOrCreate(Ve.normalizeRoot(t));for(const i in Ve.properties)r.removeProperty(i)}}static normalizeRoot(t){return t===Un?document:t}}Ve.roots=new Set;Ve.properties={};const ad=new WeakMap,b2=J.supportsAdoptedStyleSheets?m2:jx,Li=Object.freeze({getOrCreate(e){if(ad.has(e))return ad.get(e);let t;return e===Un?t=new Ve:e instanceof Document?t=J.supportsAdoptedStyleSheets?new g2:new v2:p2(e)?t=new b2(e):t=new y2(e),ad.set(e,t),t}});class pt extends Cx{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=pt.uniqueId(),pt.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new pt({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return pt.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){const n=Oe.getOrCreate(t).get(this);if(n!==void 0)return n;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,n){return this._appliedTo.add(t),n instanceof pt&&(n=this.alias(n)),Oe.getOrCreate(t).set(this,n),this}deleteValueFor(t){return this._appliedTo.delete(t),Oe.existsFor(t)&&Oe.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(Un,t),this}subscribe(t,n){const r=this.getOrCreateSubscriberSet(n);n&&!Oe.existsFor(n)&&Oe.getOrCreate(n),r.has(t)||r.add(t)}unsubscribe(t,n){const r=this.subscribers.get(n||this);r&&r.has(t)&&r.delete(t)}notify(t){const n=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(r=>r.handleChange(n)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(r=>r.handleChange(n))}alias(t){return n=>t.getValueFor(n)}}pt.uniqueId=(()=>{let e=0;return()=>(e++,e.toString(16))})();pt.tokensById=new Map;class x2{startReflection(t,n){t.subscribe(this,n),this.handleChange({token:t,target:n})}stopReflection(t,n){t.unsubscribe(this,n),this.remove(t,n)}handleChange(t){const{token:n,target:r}=t;this.add(n,r)}add(t,n){Li.getOrCreate(n).setProperty(t.cssCustomProperty,this.resolveCSSValue(Oe.getOrCreate(n).get(t)))}remove(t,n){Li.getOrCreate(n).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}}class w2{constructor(t,n,r){this.source=t,this.token=n,this.node=r,this.dependencies=new Set,this.observer=Y.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,as))}}class k2{constructor(){this.values=new Map}set(t,n){this.values.get(t)!==n&&(this.values.set(t,n),Y.getNotifier(this).notify(t.id))}get(t){return Y.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}}const Ho=new WeakMap,Uo=new WeakMap;class Oe{constructor(t){this.target=t,this.store=new k2,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(n,r)=>{const i=pt.getTokenById(r);i&&(i.notify(this.target),this.updateCSSTokenReflection(n,i))}},Ho.set(t,this),Y.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof eu?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return Ho.get(t)||new Oe(t)}static existsFor(t){return Ho.has(t)}static findParent(t){if(Un!==t.target){let n=Rf(t.target);for(;n!==null;){if(Ho.has(n))return Ho.get(n);n=Rf(n)}return Oe.getOrCreate(Un)}return null}static findClosestAssignedNode(t,n){let r=n;do{if(r.has(t))return r;r=r.parent?r.parent:r.target!==Un?Oe.getOrCreate(Un):null}while(r!==null);return null}get parent(){return Uo.get(this)||null}updateCSSTokenReflection(t,n){if(pt.isCSSDesignToken(n)){const r=this.parent,i=this.isReflecting(n);if(r){const o=r.get(n),s=t.get(n);o!==s&&!i?this.reflectToCSS(n):o===s&&i&&this.stopReflectToCSS(n)}else i||this.reflectToCSS(n)}}has(t){return this.assignedValues.has(t)}get(t){const n=this.store.get(t);if(n!==void 0)return n;const r=this.getRaw(t);if(r!==void 0)return this.hydrate(t,r),this.get(t)}getRaw(t){var n;return this.assignedValues.has(t)?this.assignedValues.get(t):(n=Oe.findClosestAssignedNode(t,this))===null||n===void 0?void 0:n.getRaw(t)}set(t,n){pt.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,n),pt.isDerivedDesignTokenValue(n)?this.setupBindingObserver(t,n):this.store.set(t,n)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);const n=this.getRaw(t);n?this.hydrate(t,n):this.store.delete(t)}bind(){const t=Oe.findParent(this);t&&t.appendChild(this);for(const n of this.assignedValues.keys())n.notify(this.target)}unbind(){this.parent&&Uo.get(this).removeChild(this)}appendChild(t){t.parent&&Uo.get(t).removeChild(t);const n=this.children.filter(r=>t.contains(r));Uo.set(t,this),this.children.push(t),n.forEach(r=>t.appendChild(r)),Y.getNotifier(this.store).subscribe(t);for(const[r,i]of this.store.all())t.hydrate(r,this.bindingObservers.has(r)?this.getRaw(r):i)}removeChild(t){const n=this.children.indexOf(t);return n!==-1&&this.children.splice(n,1),Y.getNotifier(this.store).unsubscribe(t),t.parent===this?Uo.delete(t):!1}contains(t){return h2(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),Oe.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),Oe.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,n){const r=pt.getTokenById(n);r&&(this.hydrate(r,this.getRaw(r)),this.updateCSSTokenReflection(this.store,r))}hydrate(t,n){if(!this.has(t)){const r=this.bindingObservers.get(t);pt.isDerivedDesignTokenValue(n)?r?r.source!==n&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,n)):this.setupBindingObserver(t,n):(r&&this.tearDownBindingObserver(t),this.store.set(t,n))}}setupBindingObserver(t,n){const r=new w2(n,t,this);return this.bindingObservers.set(t,r),r}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}}Oe.cssCustomPropertyReflector=new x2;S([F],Oe.prototype,"children",void 0);function C2(e){return pt.from(e)}const zx=Object.freeze({create:C2,notifyConnection(e){return!e.isConnected||!Oe.existsFor(e)?!1:(Oe.getOrCreate(e).bind(),!0)},notifyDisconnection(e){return e.isConnected||!Oe.existsFor(e)?!1:(Oe.getOrCreate(e).unbind(),!0)},registerRoot(e=Un){Ve.registerRoot(e)},unregisterRoot(e=Un){Ve.unregisterRoot(e)}}),cd=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),ud=new Map,ra=new Map;let Qi=null;const Wo=ke.createInterface(e=>e.cachedCallback(t=>(Qi===null&&(Qi=new Vx(null,t)),Qi))),Bx=Object.freeze({tagFor(e){return ra.get(e)},responsibleFor(e){const t=e.$$designSystem$$;return t||ke.findResponsibleContainer(e).get(Wo)},getOrCreate(e){if(!e)return Qi===null&&(Qi=ke.getOrCreateDOMContainer().get(Wo)),Qi;const t=e.$$designSystem$$;if(t)return t;const n=ke.getOrCreateDOMContainer(e);if(n.has(Wo,!1))return n.get(Wo);{const r=new Vx(e,n);return n.register(Ls.instance(Wo,r)),r}}});function S2(e,t,n){return typeof e=="string"?{name:e,type:t,callback:n}:e}class Vx{constructor(t,n){this.owner=t,this.container=n,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>cd.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){const n=this.container,r=[],i=this.disambiguate,o=this.shadowRootMode,s={elementPrefix:this.prefix,tryDefineElement(l,a,c){const d=S2(l,a,c),{name:u,callback:f,baseClass:v}=d;let{type:g}=d,m=u,b=ud.get(m),p=!0;for(;b;){const h=i(m,g,b);switch(h){case cd.ignoreDuplicate:return;case cd.definitionCallbackOnly:p=!1,b=void 0;break;default:m=h,b=ud.get(m);break}}p&&((ra.has(g)||g===ye)&&(g=class extends g{}),ud.set(m,g),ra.set(g,m),v&&ra.set(v,m)),r.push(new $2(n,m,g,o,f,p))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&zx.registerRoot(this.designTokenRoot)),n.registerWithContext(s,...t);for(const l of r)l.callback(l),l.willDefine&&l.definition!==null&&l.definition.define();return this}}class $2{constructor(t,n,r,i,o,s){this.container=t,this.name=n,this.type=r,this.shadowRootMode=i,this.callback=o,this.willDefine=s,this.definition=null}definePresentation(t){Dx.define(this.name,t,this.container)}defineElement(t){this.definition=new Zs(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Bx.tagFor(t)}}const T2=(e,t)=>se` -`,T2={separator:"separator",presentation:"presentation"};let mp=class extends ye{constructor(){super(...arguments),this.role=T2.separator,this.orientation=dp.horizontal}};S([E],mp.prototype,"role",void 0);S([E],mp.prototype,"orientation",void 0);const I2=(e,t)=>se` +`,I2={separator:"separator",presentation:"presentation"};let mp=class extends ye{constructor(){super(...arguments),this.role=I2.separator,this.orientation=dp.horizontal}};S([E],mp.prototype,"role",void 0);S([E],mp.prototype,"orientation",void 0);const E2=(e,t)=>se` -`;class ru extends gt{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return(t=this.options)===null||t===void 0?void 0:t.filter(n=>n.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,n){var r,i;this.ariaActiveDescendant=(i=(r=this.options[n])===null||r===void 0?void 0:r.id)!==null&&i!==void 0?i:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((n,r)=>{n.checked=Ol(r,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((n,r)=>{n.checked=Ol(r,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((n,r)=>{n.checked=Ol(r,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex{n.checked=Ol(r,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var n;if(!this.multiple)return super.clickHandler(t);const r=(n=t.target)===null||n===void 0?void 0:n.closest("[role=option]");if(!(!r||r.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(r),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:n,shiftKey:r}=t;switch(this.shouldSkipFocus=!1,n){case Co:{this.checkFirstOption(r);return}case di:{this.checkNextOption(r);return}case fi:{this.checkPreviousOption(r);return}case So:{this.checkLastOption(r);return}case fp:return this.focusAndScrollOptionIntoView(),!0;case eu:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case el:if(t.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return n.length===1&&this.handleTypeAhead(`${n}`),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,n){var r;this.ariaMultiSelectable=n?"true":null,(r=this.options)===null||r===void 0||r.forEach(i=>{i.checked=n?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(t=>t.selected),this.focusAndScrollOptionIntoView())}sizeChanged(t,n){var r;const i=Math.max(0,parseInt((r=n==null?void 0:n.toFixed())!==null&&r!==void 0?r:"",10));i!==n&&J.queueUpdate(()=>{this.size=i})}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter(r=>!r.disabled),n=!t.every(r=>r.selected);t.forEach(r=>r.selected=n),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,n){if(!this.multiple){super.typeaheadBufferChanged(t,n);return}if(this.$fastController.isConnected){const r=this.getTypeaheadMatches(),i=this.options.indexOf(r[0]);i>-1&&(this.activeIndex=i,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(t=!1){this.options.forEach(n=>n.checked=this.multiple?!1:void 0),t||(this.rangeStartIndex=-1)}}S([F],ru.prototype,"activeIndex",void 0);S([E({mode:"boolean"})],ru.prototype,"multiple",void 0);S([E({converter:yn})],ru.prototype,"size",void 0);class E2 extends ye{}class R2 extends nl(E2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const P2={email:"email",password:"password",tel:"tel",text:"text",url:"url"};let Wt=class extends R2{constructor(){super(...arguments),this.type=P2.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&J.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};S([E({attribute:"readonly",mode:"boolean"})],Wt.prototype,"readOnly",void 0);S([E({mode:"boolean"})],Wt.prototype,"autofocus",void 0);S([E],Wt.prototype,"placeholder",void 0);S([E],Wt.prototype,"type",void 0);S([E],Wt.prototype,"list",void 0);S([E({converter:yn})],Wt.prototype,"maxlength",void 0);S([E({converter:yn})],Wt.prototype,"minlength",void 0);S([E],Wt.prototype,"pattern",void 0);S([E({converter:yn})],Wt.prototype,"size",void 0);S([E({mode:"boolean"})],Wt.prototype,"spellcheck",void 0);S([F],Wt.prototype,"defaultSlottedNodes",void 0);class gp{}_t(gp,be);_t(Wt,xo,gp);const cv=44,O2=(e,t)=>se` +`;class iu extends vt{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return(t=this.options)===null||t===void 0?void 0:t.filter(n=>n.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,n){var r,i;this.ariaActiveDescendant=(i=(r=this.options[n])===null||r===void 0?void 0:r.id)!==null&&i!==void 0?i:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((n,r)=>{n.checked=_l(r,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((n,r)=>{n.checked=_l(r,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((n,r)=>{n.checked=_l(r,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex{n.checked=_l(r,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var n;if(!this.multiple)return super.clickHandler(t);const r=(n=t.target)===null||n===void 0?void 0:n.closest("[role=option]");if(!(!r||r.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(r),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);!this.shouldSkipFocus&&t.target===t.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:n,shiftKey:r}=t;switch(this.shouldSkipFocus=!1,n){case So:{this.checkFirstOption(r);return}case di:{this.checkNextOption(r);return}case fi:{this.checkPreviousOption(r);return}case $o:{this.checkLastOption(r);return}case fp:return this.focusAndScrollOptionIntoView(),!0;case tu:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case tl:if(t.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return n.length===1&&this.handleTypeAhead(`${n}`),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,n){var r;this.ariaMultiSelectable=n?"true":null,(r=this.options)===null||r===void 0||r.forEach(i=>{i.checked=n?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(t=>t.selected),this.focusAndScrollOptionIntoView())}sizeChanged(t,n){var r;const i=Math.max(0,parseInt((r=n==null?void 0:n.toFixed())!==null&&r!==void 0?r:"",10));i!==n&&J.queueUpdate(()=>{this.size=i})}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter(r=>!r.disabled),n=!t.every(r=>r.selected);t.forEach(r=>r.selected=n),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,n){if(!this.multiple){super.typeaheadBufferChanged(t,n);return}if(this.$fastController.isConnected){const r=this.getTypeaheadMatches(),i=this.options.indexOf(r[0]);i>-1&&(this.activeIndex=i,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(t=!1){this.options.forEach(n=>n.checked=this.multiple?!1:void 0),t||(this.rangeStartIndex=-1)}}S([F],iu.prototype,"activeIndex",void 0);S([E({mode:"boolean"})],iu.prototype,"multiple",void 0);S([E({converter:bn})],iu.prototype,"size",void 0);class R2 extends ye{}class P2 extends rl(R2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const O2={email:"email",password:"password",tel:"tel",text:"text",url:"url"};let Wt=class extends P2{constructor(){super(...arguments),this.type=O2.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&J.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};S([E({attribute:"readonly",mode:"boolean"})],Wt.prototype,"readOnly",void 0);S([E({mode:"boolean"})],Wt.prototype,"autofocus",void 0);S([E],Wt.prototype,"placeholder",void 0);S([E],Wt.prototype,"type",void 0);S([E],Wt.prototype,"list",void 0);S([E({converter:bn})],Wt.prototype,"maxlength",void 0);S([E({converter:bn})],Wt.prototype,"minlength",void 0);S([E],Wt.prototype,"pattern",void 0);S([E({converter:bn})],Wt.prototype,"size",void 0);S([E({mode:"boolean"})],Wt.prototype,"spellcheck",void 0);S([F],Wt.prototype,"defaultSlottedNodes",void 0);class gp{}_t(gp,be);_t(Wt,wo,gp);const cv=44,_2=(e,t)=>se` -`;class To extends ye{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t=typeof this.min=="number"?this.min:0,n=typeof this.max=="number"?this.max:100,r=typeof this.value=="number"?this.value:0,i=n-t;this.percentComplete=i===0?0:Math.fround((r-t)/i*100)}}S([E({converter:yn})],To.prototype,"value",void 0);S([E({converter:yn})],To.prototype,"min",void 0);S([E({converter:yn})],To.prototype,"max",void 0);S([E({mode:"boolean"})],To.prototype,"paused",void 0);S([F],To.prototype,"percentComplete",void 0);const _2=(e,t)=>se` +`;class Io extends ye{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){const t=typeof this.min=="number"?this.min:0,n=typeof this.max=="number"?this.max:100,r=typeof this.value=="number"?this.value:0,i=n-t;this.percentComplete=i===0?0:Math.fround((r-t)/i*100)}}S([E({converter:bn})],Io.prototype,"value",void 0);S([E({converter:bn})],Io.prototype,"min",void 0);S([E({converter:bn})],Io.prototype,"max",void 0);S([E({mode:"boolean"})],Io.prototype,"paused",void 0);S([F],Io.prototype,"percentComplete",void 0);const A2=(e,t)=>se` -`;let Dr=class extends ye{constructor(){super(...arguments),this.orientation=dp.horizontal,this.radioChangeHandler=t=>{const n=t.target;n.checked&&(this.slottedRadioButtons.forEach(r=>{r!==n&&(r.checked=!1,this.isInsideFoundationToolbar||r.setAttribute("tabindex","-1"))}),this.selectedRadio=n,this.value=n.value,n.setAttribute("tabindex","0"),this.focusedRadio=n),t.stopPropagation()},this.moveToRadioByIndex=(t,n)=>{const r=t[n];this.isInsideToolbar||(r.setAttribute("tabindex","0"),r.readOnly?this.slottedRadioButtons.forEach(i=>{i!==r&&i.setAttribute("tabindex","-1")}):(r.checked=!0,this.selectedRadio=r)),this.focusedRadio=r,r.focus()},this.moveRightOffGroup=()=>{var t;(t=this.nextElementSibling)===null||t===void 0||t.focus()},this.moveLeftOffGroup=()=>{var t;(t=this.previousElementSibling)===null||t===void 0||t.focus()},this.focusOutHandler=t=>{const n=this.slottedRadioButtons,r=t.target,i=r!==null?n.indexOf(r):0,o=this.focusedRadio?n.indexOf(this.focusedRadio):-1;return(o===0&&i===o||o===n.length-1&&o===i)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),n.forEach(s=>{s!==this.selectedRadio&&s.setAttribute("tabindex","-1")}))):(this.focusedRadio=n[0],this.focusedRadio.setAttribute("tabindex","0"),n.forEach(s=>{s!==this.focusedRadio&&s.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const n=t.target;if(n){const r=this.slottedRadioButtons;n.checked||r.indexOf(n)===0?(n.setAttribute("tabindex","0"),this.selectedRadio=n):(n.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=n}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,n,r)=>t===n.length&&this.isInsideToolbar&&r===Fs,this.shouldMoveOffGroupToTheLeft=(t,n)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&n===Ns,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const n=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?n.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(r,n,t.key)){this.moveRightOffGroup();return}else r===n.length&&(r=0);for(;r1;)if(n[r].disabled){if(this.focusedRadio&&r===n.indexOf(this.focusedRadio))break;if(r+1>=n.length){if(this.isInsideToolbar)break;r=0}else r+=1}else{this.moveToRadioByIndex(n,r);break}},this.moveLeft=t=>{const n=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?n.indexOf(this.focusedRadio)-1:0,r=r<0?n.length-1:r,this.shouldMoveOffGroupToTheLeft(n,t.key)){this.moveLeftOffGroup();return}for(;r>=0&&n.length>1;)if(n[r].disabled){if(this.focusedRadio&&r===n.indexOf(this.focusedRadio))break;r-1<0?r=n.length-1:r-=1}else{this.moveToRadioByIndex(n,r);break}},this.keydownHandler=t=>{const n=t.key;if(n in qO&&this.isInsideFoundationToolbar)return!0;switch(n){case Zs:{this.checkFocusedRadio();break}case Fs:case di:{this.direction===co.ltr?this.moveRight(t):this.moveLeft(t);break}case Ns:case fi:{this.direction===co.ltr?this.moveLeft(t):this.moveRight(t);break}default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.value===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,n){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return(t=this.parentToolbar)!==null&&t!==void 0?t:!1}get isInsideFoundationToolbar(){var t;return!!(!((t=this.parentToolbar)===null||t===void 0)&&t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=KO(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(i=>i.hasAttribute("checked")),n=t?t.length:0;if(n>1){const i=t[n-1];i.checked=!0}let r=!1;if(this.slottedRadioButtons.forEach(i=>{this.name!==void 0&&i.setAttribute("name",this.name),this.disabled&&(i.disabled=!0),this.readOnly&&(i.readOnly=!0),this.value&&this.value===i.value?(this.selectedRadio=i,this.focusedRadio=i,i.checked=!0,i.setAttribute("tabindex","0"),r=!0):(this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"),i.checked=!1),i.addEventListener("change",this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){const i=this.slottedRadioButtons.filter(s=>s.hasAttribute("checked")),o=i!==null?i.length:0;if(o>0&&!r){const s=i[o-1];s.checked=!0,this.focusedRadio=s,s.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}};S([E({attribute:"readonly",mode:"boolean"})],Dr.prototype,"readOnly",void 0);S([E({attribute:"disabled",mode:"boolean"})],Dr.prototype,"disabled",void 0);S([E],Dr.prototype,"name",void 0);S([E],Dr.prototype,"value",void 0);S([E],Dr.prototype,"orientation",void 0);S([F],Dr.prototype,"childItems",void 0);S([F],Dr.prototype,"slottedRadioButtons",void 0);const A2=(e,t)=>se` +`;let Lr=class extends ye{constructor(){super(...arguments),this.orientation=dp.horizontal,this.radioChangeHandler=t=>{const n=t.target;n.checked&&(this.slottedRadioButtons.forEach(r=>{r!==n&&(r.checked=!1,this.isInsideFoundationToolbar||r.setAttribute("tabindex","-1"))}),this.selectedRadio=n,this.value=n.value,n.setAttribute("tabindex","0"),this.focusedRadio=n),t.stopPropagation()},this.moveToRadioByIndex=(t,n)=>{const r=t[n];this.isInsideToolbar||(r.setAttribute("tabindex","0"),r.readOnly?this.slottedRadioButtons.forEach(i=>{i!==r&&i.setAttribute("tabindex","-1")}):(r.checked=!0,this.selectedRadio=r)),this.focusedRadio=r,r.focus()},this.moveRightOffGroup=()=>{var t;(t=this.nextElementSibling)===null||t===void 0||t.focus()},this.moveLeftOffGroup=()=>{var t;(t=this.previousElementSibling)===null||t===void 0||t.focus()},this.focusOutHandler=t=>{const n=this.slottedRadioButtons,r=t.target,i=r!==null?n.indexOf(r):0,o=this.focusedRadio?n.indexOf(this.focusedRadio):-1;return(o===0&&i===o||o===n.length-1&&o===i)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),n.forEach(s=>{s!==this.selectedRadio&&s.setAttribute("tabindex","-1")}))):(this.focusedRadio=n[0],this.focusedRadio.setAttribute("tabindex","0"),n.forEach(s=>{s!==this.focusedRadio&&s.setAttribute("tabindex","-1")}))),!0},this.clickHandler=t=>{const n=t.target;if(n){const r=this.slottedRadioButtons;n.checked||r.indexOf(n)===0?(n.setAttribute("tabindex","0"),this.selectedRadio=n):(n.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=n}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,n,r)=>t===n.length&&this.isInsideToolbar&&r===Fs,this.shouldMoveOffGroupToTheLeft=(t,n)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&n===Ns,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const n=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?n.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(r,n,t.key)){this.moveRightOffGroup();return}else r===n.length&&(r=0);for(;r1;)if(n[r].disabled){if(this.focusedRadio&&r===n.indexOf(this.focusedRadio))break;if(r+1>=n.length){if(this.isInsideToolbar)break;r=0}else r+=1}else{this.moveToRadioByIndex(n,r);break}},this.moveLeft=t=>{const n=this.slottedRadioButtons;let r=0;if(r=this.focusedRadio?n.indexOf(this.focusedRadio)-1:0,r=r<0?n.length-1:r,this.shouldMoveOffGroupToTheLeft(n,t.key)){this.moveLeftOffGroup();return}for(;r>=0&&n.length>1;)if(n[r].disabled){if(this.focusedRadio&&r===n.indexOf(this.focusedRadio))break;r-1<0?r=n.length-1:r-=1}else{this.moveToRadioByIndex(n,r);break}},this.keydownHandler=t=>{const n=t.key;if(n in QO&&this.isInsideFoundationToolbar)return!0;switch(n){case el:{this.checkFocusedRadio();break}case Fs:case di:{this.direction===uo.ltr?this.moveRight(t):this.moveLeft(t);break}case Ns:case fi:{this.direction===uo.ltr?this.moveLeft(t):this.moveRight(t);break}default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(t=>{this.disabled?t.disabled=!0:t.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(t=>{t.value===this.value&&(t.checked=!0,this.selectedRadio=t)}),this.$emit("change")}slottedRadioButtonsChanged(t,n){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return(t=this.parentToolbar)!==null&&t!==void 0?t:!1}get isInsideFoundationToolbar(){var t;return!!(!((t=this.parentToolbar)===null||t===void 0)&&t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=JO(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(t=>{t.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){const t=this.slottedRadioButtons.filter(i=>i.hasAttribute("checked")),n=t?t.length:0;if(n>1){const i=t[n-1];i.checked=!0}let r=!1;if(this.slottedRadioButtons.forEach(i=>{this.name!==void 0&&i.setAttribute("name",this.name),this.disabled&&(i.disabled=!0),this.readOnly&&(i.readOnly=!0),this.value&&this.value===i.value?(this.selectedRadio=i,this.focusedRadio=i,i.checked=!0,i.setAttribute("tabindex","0"),r=!0):(this.isInsideFoundationToolbar||i.setAttribute("tabindex","-1"),i.checked=!1),i.addEventListener("change",this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){const i=this.slottedRadioButtons.filter(s=>s.hasAttribute("checked")),o=i!==null?i.length:0;if(o>0&&!r){const s=i[o-1];s.checked=!0,this.focusedRadio=s,s.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}};S([E({attribute:"readonly",mode:"boolean"})],Lr.prototype,"readOnly",void 0);S([E({attribute:"disabled",mode:"boolean"})],Lr.prototype,"disabled",void 0);S([E],Lr.prototype,"name",void 0);S([E],Lr.prototype,"value",void 0);S([E],Lr.prototype,"orientation",void 0);S([F],Lr.prototype,"childItems",void 0);S([F],Lr.prototype,"slottedRadioButtons",void 0);const D2=(e,t)=>se` -`;class M2 extends ye{}class D2 extends Nx(M2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let iu=class extends D2{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case el:!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=(t=this.defaultChecked)!==null&&t!==void 0?t:!1,this.dirtyChecked=!1))}connectedCallback(){var t,n;super.connectedCallback(),this.validate(),((t=this.parentElement)===null||t===void 0?void 0:t.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=(n=this.defaultChecked)!==null&&n!==void 0?n:!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest("[role=radiogroup]")!==null}clickHandler(t){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};S([E({attribute:"readonly",mode:"boolean"})],iu.prototype,"readOnly",void 0);S([F],iu.prototype,"name",void 0);S([F],iu.prototype,"defaultSlottedNodes",void 0);function L2(e,t,n){return e.nodeType!==Node.TEXT_NODE?!0:typeof e.nodeValue=="string"&&!!e.nodeValue.trim().length}class N2 extends ru{}class F2 extends nl(N2){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class Lr extends F2{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Wa("listbox-"),this.maxHeight=0}openChanged(t,n){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,J.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return Y.track(this,"value"),this._value}set value(t){var n,r,i,o,s,l,a;const c=`${this._value}`;if(!((n=this._options)===null||n===void 0)&&n.length){const d=this._options.findIndex(v=>v.value===t),u=(i=(r=this._options[this.selectedIndex])===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:null,f=(s=(o=this._options[d])===null||o===void 0?void 0:o.value)!==null&&s!==void 0?s:null;(d===-1||u!==f)&&(t="",this.selectedIndex=d),t=(a=(l=this.firstSelectedOption)===null||l===void 0?void 0:l.value)!==null&&a!==void 0?a:t}c!==t&&(this._value=t,super.valueChanged(c,t),Y.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var n,r;this.$fastController.isConnected&&(this.value=(r=(n=this.firstSelectedOption)===null||n===void 0?void 0:n.value)!==null&&r!==void 0?r:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,n){super.selectedIndexChanged(t,n),this.updateValue()}positionChanged(t,n){this.positionAttribute=n,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),r=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>r?sd.above:sd.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===sd.above?~~t.top:~~r}get displayValue(){var t,n;return Y.track(this,"displayValue"),(n=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.text)!==null&&n!==void 0?n:""}disabledChanged(t,n){super.disabledChanged&&super.disabledChanged(t,n),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){const n=t.target.closest("option,[role=option]");if(n&&n.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(t){var n;if(super.focusoutHandler(t),!this.open)return!0;const r=t.relatedTarget;if(this.isSameNode(r)){this.focus();return}!((n=this.options)===null||n===void 0)&&n.includes(r)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,n){super.handleChange(t,n),n==="value"&&this.updateValue()}slottedOptionsChanged(t,n){this.options.forEach(r=>{Y.getNotifier(r).unsubscribe(this,"value")}),super.slottedOptionsChanged(t,n),this.options.forEach(r=>{Y.getNotifier(r).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var n;return t.offsetX>=0&&t.offsetX<=((n=this.listbox)===null||n===void 0?void 0:n.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,n){super.multipleChanged(t,n),this.proxy&&(this.proxy.multiple=n)}selectedOptionsChanged(t,n){var r;super.selectedOptionsChanged(t,n),(r=this.options)===null||r===void 0||r.forEach((i,o)=>{var s;const l=(s=this.proxy)===null||s===void 0?void 0:s.options.item(o);l&&(l.selected=i.selected)})}setDefaultSelectedOption(){var t;const n=(t=this.options)!==null&&t!==void 0?t:Array.from(this.children).filter(gt.slottedOptionFilter),r=n==null?void 0:n.findIndex(i=>i.hasAttribute("selected")||i.selected||i.value===this.value);if(r!==-1){this.selectedIndex=r;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const n=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);n&&this.proxy.options.add(n)}))}keydownHandler(t){super.keydownHandler(t);const n=t.key||t.key.charCodeAt(0);switch(n){case el:{t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case Co:case So:{t.preventDefault();break}case Zs:{t.preventDefault(),this.open=!this.open;break}case eu:{this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break}case fp:return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(n===di||n===fi)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,n){super.sizeChanged(t,n),this.proxy&&(this.proxy.size=n)}updateDisplayValue(){this.collapsible&&Y.notify(this,"displayValue")}}S([E({attribute:"open",mode:"boolean"})],Lr.prototype,"open",void 0);S([BP],Lr.prototype,"collapsible",null);S([F],Lr.prototype,"control",void 0);S([E({attribute:"position"})],Lr.prototype,"positionAttribute",void 0);S([F],Lr.prototype,"position",void 0);S([F],Lr.prototype,"maxHeight",void 0);class vp{}S([F],vp.prototype,"ariaControls",void 0);_t(vp,hi);_t(Lr,xo,vp);const j2=(e,t)=>se` +`;class M2 extends ye{}class L2 extends Nx(M2){constructor(){super(...arguments),this.proxy=document.createElement("input")}}let ou=class extends L2{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{switch(t.key){case tl:!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=(t=this.defaultChecked)!==null&&t!==void 0?t:!1,this.dirtyChecked=!1))}connectedCallback(){var t,n;super.connectedCallback(),this.validate(),((t=this.parentElement)===null||t===void 0?void 0:t.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=(n=this.defaultChecked)!==null&&n!==void 0?n:!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest("[role=radiogroup]")!==null}clickHandler(t){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};S([E({attribute:"readonly",mode:"boolean"})],ou.prototype,"readOnly",void 0);S([F],ou.prototype,"name",void 0);S([F],ou.prototype,"defaultSlottedNodes",void 0);function N2(e,t,n){return e.nodeType!==Node.TEXT_NODE?!0:typeof e.nodeValue=="string"&&!!e.nodeValue.trim().length}class F2 extends iu{}class j2 extends rl(F2){constructor(){super(...arguments),this.proxy=document.createElement("select")}}class Nr extends j2{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=qa("listbox-"),this.maxHeight=0}openChanged(t,n){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,J.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return Y.track(this,"value"),this._value}set value(t){var n,r,i,o,s,l,a;const c=`${this._value}`;if(!((n=this._options)===null||n===void 0)&&n.length){const d=this._options.findIndex(v=>v.value===t),u=(i=(r=this._options[this.selectedIndex])===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:null,f=(s=(o=this._options[d])===null||o===void 0?void 0:o.value)!==null&&s!==void 0?s:null;(d===-1||u!==f)&&(t="",this.selectedIndex=d),t=(a=(l=this.firstSelectedOption)===null||l===void 0?void 0:l.value)!==null&&a!==void 0?a:t}c!==t&&(this._value=t,super.valueChanged(c,t),Y.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var n,r;this.$fastController.isConnected&&(this.value=(r=(n=this.firstSelectedOption)===null||n===void 0?void 0:n.value)!==null&&r!==void 0?r:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,n){super.selectedIndexChanged(t,n),this.updateValue()}positionChanged(t,n){this.positionAttribute=n,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),r=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>r?ld.above:ld.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===ld.above?~~t.top:~~r}get displayValue(){var t,n;return Y.track(this,"displayValue"),(n=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.text)!==null&&n!==void 0?n:""}disabledChanged(t,n){super.disabledChanged&&super.disabledChanged(t,n),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){const n=t.target.closest("option,[role=option]");if(n&&n.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(t){var n;if(super.focusoutHandler(t),!this.open)return!0;const r=t.relatedTarget;if(this.isSameNode(r)){this.focus();return}!((n=this.options)===null||n===void 0)&&n.includes(r)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,n){super.handleChange(t,n),n==="value"&&this.updateValue()}slottedOptionsChanged(t,n){this.options.forEach(r=>{Y.getNotifier(r).unsubscribe(this,"value")}),super.slottedOptionsChanged(t,n),this.options.forEach(r=>{Y.getNotifier(r).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var n;return t.offsetX>=0&&t.offsetX<=((n=this.listbox)===null||n===void 0?void 0:n.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,n){super.multipleChanged(t,n),this.proxy&&(this.proxy.multiple=n)}selectedOptionsChanged(t,n){var r;super.selectedOptionsChanged(t,n),(r=this.options)===null||r===void 0||r.forEach((i,o)=>{var s;const l=(s=this.proxy)===null||s===void 0?void 0:s.options.item(o);l&&(l.selected=i.selected)})}setDefaultSelectedOption(){var t;const n=(t=this.options)!==null&&t!==void 0?t:Array.from(this.children).filter(vt.slottedOptionFilter),r=n==null?void 0:n.findIndex(i=>i.hasAttribute("selected")||i.selected||i.value===this.value);if(r!==-1){this.selectedIndex=r;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(t=>{const n=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);n&&this.proxy.options.add(n)}))}keydownHandler(t){super.keydownHandler(t);const n=t.key||t.key.charCodeAt(0);switch(n){case tl:{t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case So:case $o:{t.preventDefault();break}case el:{t.preventDefault(),this.open=!this.open;break}case tu:{this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break}case fp:return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(n===di||n===fi)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,n){super.sizeChanged(t,n),this.proxy&&(this.proxy.size=n)}updateDisplayValue(){this.collapsible&&Y.notify(this,"displayValue")}}S([E({attribute:"open",mode:"boolean"})],Nr.prototype,"open",void 0);S([VP],Nr.prototype,"collapsible",null);S([F],Nr.prototype,"control",void 0);S([E({attribute:"position"})],Nr.prototype,"positionAttribute",void 0);S([F],Nr.prototype,"position",void 0);S([F],Nr.prototype,"maxHeight",void 0);class vp{}S([F],vp.prototype,"ariaControls",void 0);_t(vp,hi);_t(Nr,wo,vp);const z2=(e,t)=>se` -`,z2=(e,t)=>se` +`,B2=(e,t)=>se` -`;class B2 extends ye{}const V2=(e,t)=>se` +`;class V2 extends ye{}const H2=(e,t)=>se` -`;class Hx extends ye{}S([E({mode:"boolean"})],Hx.prototype,"disabled",void 0);const H2=(e,t)=>se` +`;class Hx extends ye{}S([E({mode:"boolean"})],Hx.prototype,"disabled",void 0);const U2=(e,t)=>se` -`,Pf={vertical:"vertical",horizontal:"horizontal"};class er extends ye{constructor(){super(...arguments),this.orientation=Pf.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.setTabs=()=>{const t="gridColumn",n="gridRow",r=this.isHorizontal()?t:n;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((i,o)=>{if(i.slot==="tab"){const s=this.activeTabIndex===o&&this.isFocusableElement(i);this.activeindicator&&this.isFocusableElement(i)&&(this.showActiveIndicator=!0);const l=this.tabIds[o],a=this.tabpanelIds[o];i.setAttribute("id",l),i.setAttribute("aria-selected",s?"true":"false"),i.setAttribute("aria-controls",a),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",s?"0":"-1"),s&&(this.activetab=i,this.activeid=l)}i.style[t]="",i.style[n]="",i.style[r]=`${o+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((t,n)=>{const r=this.tabIds[n],i=this.tabpanelIds[n];t.setAttribute("id",i),t.setAttribute("aria-labelledby",r),this.activeTabIndex!==n?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const n=t.currentTarget;n.nodeType===1&&this.isFocusableElement(n)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(n),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case Ns:t.preventDefault(),this.adjustBackward(t);break;case Fs:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case fi:t.preventDefault(),this.adjustBackward(t);break;case di:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case Co:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case So:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=t=>{const n=this.tabs;let r=0;for(r=this.activetab?n.indexOf(this.activetab)+1:1,r===n.length&&(r=0);r1;)if(this.isFocusableElement(n[r])){this.moveToTabByIndex(n,r);break}else{if(this.activetab&&r===n.indexOf(this.activetab))break;r+1>=n.length?r=0:r+=1}},this.adjustBackward=t=>{const n=this.tabs;let r=0;for(r=this.activetab?n.indexOf(this.activetab)-1:0,r=r<0?n.length-1:r;r>=0&&n.length>1;)if(this.isFocusableElement(n[r])){this.moveToTabByIndex(n,r);break}else r-1<0?r=n.length-1:r-=1},this.moveToTabByIndex=(t,n)=>{const r=t[n];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=n,r.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,n){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>{var n;return(n=t.getAttribute("id"))!==null&&n!==void 0?n:`tab-${Wa()}`})}getTabPanelIds(){return this.tabpanels.map(t=>{var n;return(n=t.getAttribute("id"))!==null&&n!==void 0?n:`panel-${Wa()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Pf.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",n=this.isHorizontal()?"translateX":"translateY",r=this.isHorizontal()?"offsetLeft":"offsetTop",i=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;const s=o-i;this.activeIndicatorRef.style.transform=`${n}(${s}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${n}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){const n=this.tabs.filter(s=>this.isFocusableElement(s)),r=n.indexOf(this.activetab),i=QO(0,n.length-1,r+t),o=this.tabs.indexOf(n[i]);o>-1&&this.moveToTabByIndex(this.tabs,o)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}S([E],er.prototype,"orientation",void 0);S([E],er.prototype,"activeid",void 0);S([F],er.prototype,"tabs",void 0);S([F],er.prototype,"tabpanels",void 0);S([E({mode:"boolean"})],er.prototype,"activeindicator",void 0);S([F],er.prototype,"activeIndicatorRef",void 0);S([F],er.prototype,"showActiveIndicator",void 0);_t(er,xo);class U2 extends ye{}class W2 extends nl(U2){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const Ux={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};let wt=class extends W2{constructor(){super(...arguments),this.resize=Ux.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};S([E({mode:"boolean"})],wt.prototype,"readOnly",void 0);S([E],wt.prototype,"resize",void 0);S([E({mode:"boolean"})],wt.prototype,"autofocus",void 0);S([E({attribute:"form"})],wt.prototype,"formId",void 0);S([E],wt.prototype,"list",void 0);S([E({converter:yn})],wt.prototype,"maxlength",void 0);S([E({converter:yn})],wt.prototype,"minlength",void 0);S([E],wt.prototype,"name",void 0);S([E],wt.prototype,"placeholder",void 0);S([E({converter:yn,mode:"fromView"})],wt.prototype,"cols",void 0);S([E({converter:yn,mode:"fromView"})],wt.prototype,"rows",void 0);S([E({mode:"boolean"})],wt.prototype,"spellcheck",void 0);S([F],wt.prototype,"defaultSlottedNodes",void 0);_t(wt,gp);const G2=(e,t)=>se` +`,Pf={vertical:"vertical",horizontal:"horizontal"};class tr extends ye{constructor(){super(...arguments),this.orientation=Pf.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>t.getAttribute("aria-disabled")==="true",this.isHiddenElement=t=>t.hasAttribute("hidden"),this.isFocusableElement=t=>!this.isDisabledElement(t)&&!this.isHiddenElement(t),this.setTabs=()=>{const t="gridColumn",n="gridRow",r=this.isHorizontal()?t:n;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach((i,o)=>{if(i.slot==="tab"){const s=this.activeTabIndex===o&&this.isFocusableElement(i);this.activeindicator&&this.isFocusableElement(i)&&(this.showActiveIndicator=!0);const l=this.tabIds[o],a=this.tabpanelIds[o];i.setAttribute("id",l),i.setAttribute("aria-selected",s?"true":"false"),i.setAttribute("aria-controls",a),i.addEventListener("click",this.handleTabClick),i.addEventListener("keydown",this.handleTabKeyDown),i.setAttribute("tabindex",s?"0":"-1"),s&&(this.activetab=i,this.activeid=l)}i.style[t]="",i.style[n]="",i.style[r]=`${o+1}`,this.isHorizontal()?i.classList.remove("vertical"):i.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((t,n)=>{const r=this.tabIds[n],i=this.tabpanelIds[n];t.setAttribute("id",i),t.setAttribute("aria-labelledby",r),this.activeTabIndex!==n?t.setAttribute("hidden",""):t.removeAttribute("hidden")})},this.handleTabClick=t=>{const n=t.currentTarget;n.nodeType===1&&this.isFocusableElement(n)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(n),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case Ns:t.preventDefault(),this.adjustBackward(t);break;case Fs:t.preventDefault(),this.adjustForward(t);break}else switch(t.key){case fi:t.preventDefault(),this.adjustBackward(t);break;case di:t.preventDefault(),this.adjustForward(t);break}switch(t.key){case So:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case $o:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=t=>{const n=this.tabs;let r=0;for(r=this.activetab?n.indexOf(this.activetab)+1:1,r===n.length&&(r=0);r1;)if(this.isFocusableElement(n[r])){this.moveToTabByIndex(n,r);break}else{if(this.activetab&&r===n.indexOf(this.activetab))break;r+1>=n.length?r=0:r+=1}},this.adjustBackward=t=>{const n=this.tabs;let r=0;for(r=this.activetab?n.indexOf(this.activetab)-1:0,r=r<0?n.length-1:r;r>=0&&n.length>1;)if(this.isFocusableElement(n[r])){this.moveToTabByIndex(n,r);break}else r-1<0?r=n.length-1:r-=1},this.moveToTabByIndex=(t,n)=>{const r=t[n];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=n,r.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,n){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(r=>r.id===t),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(t=>{var n;return(n=t.getAttribute("id"))!==null&&n!==void 0?n:`tab-${qa()}`})}getTabPanelIds(){return this.tabpanels.map(t=>{var n;return(n=t.getAttribute("id"))!==null&&n!==void 0?n:`panel-${qa()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===Pf.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",n=this.isHorizontal()?"translateX":"translateY",r=this.isHorizontal()?"offsetLeft":"offsetTop",i=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[r];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;const s=o-i;this.activeIndicatorRef.style.transform=`${n}(${s}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${n}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(t){const n=this.tabs.filter(s=>this.isFocusableElement(s)),r=n.indexOf(this.activetab),i=XO(0,n.length-1,r+t),o=this.tabs.indexOf(n[i]);o>-1&&this.moveToTabByIndex(this.tabs,o)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}S([E],tr.prototype,"orientation",void 0);S([E],tr.prototype,"activeid",void 0);S([F],tr.prototype,"tabs",void 0);S([F],tr.prototype,"tabpanels",void 0);S([E({mode:"boolean"})],tr.prototype,"activeindicator",void 0);S([F],tr.prototype,"activeIndicatorRef",void 0);S([F],tr.prototype,"showActiveIndicator",void 0);_t(tr,wo);class W2 extends ye{}class G2 extends rl(W2){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const Ux={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};let kt=class extends G2{constructor(){super(...arguments),this.resize=Ux.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};S([E({mode:"boolean"})],kt.prototype,"readOnly",void 0);S([E],kt.prototype,"resize",void 0);S([E({mode:"boolean"})],kt.prototype,"autofocus",void 0);S([E({attribute:"form"})],kt.prototype,"formId",void 0);S([E],kt.prototype,"list",void 0);S([E({converter:bn})],kt.prototype,"maxlength",void 0);S([E({converter:bn})],kt.prototype,"minlength",void 0);S([E],kt.prototype,"name",void 0);S([E],kt.prototype,"placeholder",void 0);S([E({converter:bn,mode:"fromView"})],kt.prototype,"cols",void 0);S([E({converter:bn,mode:"fromView"})],kt.prototype,"rows",void 0);S([E({mode:"boolean"})],kt.prototype,"spellcheck",void 0);S([F],kt.prototype,"defaultSlottedNodes",void 0);_t(kt,gp);const q2=(e,t)=>se` -`,q2=(e,t)=>se` +`,Q2=(e,t)=>se` -`,Rr="not-allowed",Q2=":host([hidden]){display:none}";function ut(e){return`${Q2}:host{display:${e}}`}const lt=HO()?"focus-visible":"focus",X2=new Set(["children","localName","ref","style","className"]),Y2=Object.freeze(Object.create(null)),uv="_default",Al=new Map;function K2(e,t){typeof e=="function"?e(t):e.current=t}function Wx(e,t){if(!t.name){const n=Js.forType(e);if(n)t.name=n.name;else throw new Error("React wrappers must wrap a FASTElement or be configured with a name.")}return t.name}function Of(e){return e.events||(e.events={})}function dv(e,t,n){return X2.has(n)?(console.warn(`${Wx(e,t)} contains property ${n} which is a React reserved property. It will be used by React and not set on the element.`),!1):!0}function J2(e,t){if(!t.keys)if(t.properties)t.keys=new Set(t.properties.concat(Object.keys(Of(t))));else{const n=new Set(Object.keys(Of(t))),r=Y.getAccessors(e.prototype);if(r.length>0)for(const i of r)dv(e,t,i.name)&&n.add(i.name);else for(const i in e.prototype)!(i in HTMLElement.prototype)&&dv(e,t,i)&&n.add(i);t.keys=n}return t.keys}function Z2(e,t){let n=[];const r={register(o,...s){n.forEach(l=>l.register(o,...s)),n=[]}};function i(o,s={}){var l,a;o instanceof Dx&&(t?t.register(o):n.push(o),o=o.type);const c=Al.get(o);if(c){const f=c.get((l=s.name)!==null&&l!==void 0?l:uv);if(f)return f}class d extends e.Component{constructor(){super(...arguments),this._element=null}_updateElement(v){const m=this._element;if(m===null)return;const g=this.props,b=v||Y2,p=Of(s);for(const h in this._elementProps){const y=g[h],w=p[h];if(w===void 0)m[h]=y;else{const k=b[h];if(y===k)continue;k!==void 0&&m.removeEventListener(w,k),y!==void 0&&m.addEventListener(w,y)}}}componentDidMount(){this._updateElement()}componentDidUpdate(v){this._updateElement(v)}render(){const v=this.props.__forwardedRef;(this._ref===void 0||this._userRef!==v)&&(this._ref=h=>{this._element===null&&(this._element=h),v!==null&&K2(v,h),this._userRef=v});const m={ref:this._ref},g=this._elementProps={},b=J2(o,s),p=this.props;for(const h in p){const y=p[h];b.has(h)?g[h]=y:m[h==="className"?"class":h]=y}return e.createElement(Wx(o,s),m)}}const u=e.forwardRef((f,v)=>e.createElement(d,Object.assign(Object.assign({},f),{__forwardedRef:v}),f==null?void 0:f.children));return Al.has(o)||Al.set(o,new Map),Al.get(o).set((a=s.name)!==null&&a!==void 0?a:uv,u),u}return{wrap:i,registry:r}}function Gx(e){return Bx.getOrCreate(e).withPrefix("vscode")}function e_(e){window.addEventListener("load",()=>{new MutationObserver(()=>{fv(e)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),fv(e)})}function fv(e){const t=getComputedStyle(document.body),n=document.querySelector("body");if(n){const r=n.getAttribute("data-vscode-theme-kind");for(const[i,o]of e){let s=t.getPropertyValue(i).toString();if(r==="vscode-high-contrast")s.length===0&&o.name.includes("background")&&(s="transparent"),o.name==="button-icon-hover-background"&&(s="transparent");else if(r==="vscode-high-contrast-light"){if(s.length===0&&o.name.includes("background"))switch(o.name){case"button-primary-hover-background":s="#0F4A85";break;case"button-secondary-hover-background":s="transparent";break;case"button-icon-hover-background":s="transparent";break}}else o.name==="contrast-active-border"&&(s="transparent");o.setValueFor(n,s)}}}const hv=new Map;let pv=!1;function L(e,t){const n=zx.create(e);if(t){if(t.includes("--fake-vscode-token")){const r="id"+Math.random().toString(16).slice(2);t=`${t}-${r}`}hv.set(t,n)}return pv||(e_(hv),pv=!0),n}const t_=L("background","--vscode-editor-background").withDefault("#1e1e1e"),te=L("border-width").withDefault(1),qx=L("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");L("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");const rl=L("corner-radius").withDefault(0),Qi=L("corner-radius-round").withDefault(2),G=L("design-unit").withDefault(4),pi=L("disabled-opacity").withDefault(.4),Ae=L("focus-border","--vscode-focusBorder").withDefault("#007fd4"),an=L("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol");L("font-weight","--vscode-font-weight").withDefault("400");const ot=L("foreground","--vscode-foreground").withDefault("#cccccc"),ra=L("input-height").withDefault("26"),yp=L("input-min-width").withDefault("100px"),yt=L("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),Ot=L("type-ramp-base-line-height").withDefault("normal"),Qx=L("type-ramp-minus1-font-size").withDefault("11px"),Xx=L("type-ramp-minus1-line-height").withDefault("16px");L("type-ramp-minus2-font-size").withDefault("9px");L("type-ramp-minus2-line-height").withDefault("16px");L("type-ramp-plus1-font-size").withDefault("16px");L("type-ramp-plus1-line-height").withDefault("24px");const n_=L("scrollbarWidth").withDefault("10px"),r_=L("scrollbarHeight").withDefault("10px"),i_=L("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),o_=L("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),s_=L("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),Yx=L("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),Kx=L("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),bp=L("button-border","--vscode-button-border").withDefault("transparent"),mv=L("button-icon-background").withDefault("transparent"),l_=L("button-icon-corner-radius").withDefault("5px"),a_=L("button-icon-outline-offset").withDefault(0),gv=L("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),c_=L("button-icon-padding").withDefault("3px"),Xi=L("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Jx=L("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Zx=L("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),ud=L("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),u_=L("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),d_=L("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),f_=L("button-padding-horizontal").withDefault("11px"),h_=L("button-padding-vertical").withDefault("4px"),Bn=L("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Ni=L("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),p_=L("checkbox-corner-radius").withDefault(3);L("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");const Vr=L("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),Yi=L("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),m_=L("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),g_=L("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),Ml=L("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Cr=L("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");L("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");const v_=L("dropdown-list-max-height").withDefault("200px"),qr=L("input-background","--vscode-input-background").withDefault("#3c3c3c"),e1=L("input-foreground","--vscode-input-foreground").withDefault("#cccccc");L("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");const vv=L("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),y_=L("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),b_=L("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),x_=L("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),Ci=L("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),w_=L("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");L("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e");L("panel-view-border","--vscode-panel-border").withDefault("#80808059");const k_=L("tag-corner-radius").withDefault("2px"),C_=(e,t)=>Te` +`,Pr="not-allowed",X2=":host([hidden]){display:none}";function ut(e){return`${X2}:host{display:${e}}`}const lt=UO()?"focus-visible":"focus",Y2=new Set(["children","localName","ref","style","className"]),K2=Object.freeze(Object.create(null)),uv="_default",Dl=new Map;function J2(e,t){typeof e=="function"?e(t):e.current=t}function Wx(e,t){if(!t.name){const n=Zs.forType(e);if(n)t.name=n.name;else throw new Error("React wrappers must wrap a FASTElement or be configured with a name.")}return t.name}function Of(e){return e.events||(e.events={})}function dv(e,t,n){return Y2.has(n)?(console.warn(`${Wx(e,t)} contains property ${n} which is a React reserved property. It will be used by React and not set on the element.`),!1):!0}function Z2(e,t){if(!t.keys)if(t.properties)t.keys=new Set(t.properties.concat(Object.keys(Of(t))));else{const n=new Set(Object.keys(Of(t))),r=Y.getAccessors(e.prototype);if(r.length>0)for(const i of r)dv(e,t,i.name)&&n.add(i.name);else for(const i in e.prototype)!(i in HTMLElement.prototype)&&dv(e,t,i)&&n.add(i);t.keys=n}return t.keys}function e_(e,t){let n=[];const r={register(o,...s){n.forEach(l=>l.register(o,...s)),n=[]}};function i(o,s={}){var l,a;o instanceof Mx&&(t?t.register(o):n.push(o),o=o.type);const c=Dl.get(o);if(c){const f=c.get((l=s.name)!==null&&l!==void 0?l:uv);if(f)return f}class d extends e.Component{constructor(){super(...arguments),this._element=null}_updateElement(v){const g=this._element;if(g===null)return;const m=this.props,b=v||K2,p=Of(s);for(const h in this._elementProps){const y=m[h],w=p[h];if(w===void 0)g[h]=y;else{const k=b[h];if(y===k)continue;k!==void 0&&g.removeEventListener(w,k),y!==void 0&&g.addEventListener(w,y)}}}componentDidMount(){this._updateElement()}componentDidUpdate(v){this._updateElement(v)}render(){const v=this.props.__forwardedRef;(this._ref===void 0||this._userRef!==v)&&(this._ref=h=>{this._element===null&&(this._element=h),v!==null&&J2(v,h),this._userRef=v});const g={ref:this._ref},m=this._elementProps={},b=Z2(o,s),p=this.props;for(const h in p){const y=p[h];b.has(h)?m[h]=y:g[h==="className"?"class":h]=y}return e.createElement(Wx(o,s),g)}}const u=e.forwardRef((f,v)=>e.createElement(d,Object.assign(Object.assign({},f),{__forwardedRef:v}),f==null?void 0:f.children));return Dl.has(o)||Dl.set(o,new Map),Dl.get(o).set((a=s.name)!==null&&a!==void 0?a:uv,u),u}return{wrap:i,registry:r}}function Gx(e){return Bx.getOrCreate(e).withPrefix("vscode")}function t_(e){window.addEventListener("load",()=>{new MutationObserver(()=>{fv(e)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),fv(e)})}function fv(e){const t=getComputedStyle(document.body),n=document.querySelector("body");if(n){const r=n.getAttribute("data-vscode-theme-kind");for(const[i,o]of e){let s=t.getPropertyValue(i).toString();if(r==="vscode-high-contrast")s.length===0&&o.name.includes("background")&&(s="transparent"),o.name==="button-icon-hover-background"&&(s="transparent");else if(r==="vscode-high-contrast-light"){if(s.length===0&&o.name.includes("background"))switch(o.name){case"button-primary-hover-background":s="#0F4A85";break;case"button-secondary-hover-background":s="transparent";break;case"button-icon-hover-background":s="transparent";break}}else o.name==="contrast-active-border"&&(s="transparent");o.setValueFor(n,s)}}}const hv=new Map;let pv=!1;function L(e,t){const n=zx.create(e);if(t){if(t.includes("--fake-vscode-token")){const r="id"+Math.random().toString(16).slice(2);t=`${t}-${r}`}hv.set(t,n)}return pv||(t_(hv),pv=!0),n}const n_=L("background","--vscode-editor-background").withDefault("#1e1e1e"),te=L("border-width").withDefault(1),qx=L("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518");L("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df");const il=L("corner-radius").withDefault(0),Xi=L("corner-radius-round").withDefault(2),G=L("design-unit").withDefault(4),pi=L("disabled-opacity").withDefault(.4),Ae=L("focus-border","--vscode-focusBorder").withDefault("#007fd4"),an=L("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol");L("font-weight","--vscode-font-weight").withDefault("400");const ot=L("foreground","--vscode-foreground").withDefault("#cccccc"),ia=L("input-height").withDefault("26"),yp=L("input-min-width").withDefault("100px"),bt=L("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),Ot=L("type-ramp-base-line-height").withDefault("normal"),Qx=L("type-ramp-minus1-font-size").withDefault("11px"),Xx=L("type-ramp-minus1-line-height").withDefault("16px");L("type-ramp-minus2-font-size").withDefault("9px");L("type-ramp-minus2-line-height").withDefault("16px");L("type-ramp-plus1-font-size").withDefault("16px");L("type-ramp-plus1-line-height").withDefault("24px");const r_=L("scrollbarWidth").withDefault("10px"),i_=L("scrollbarHeight").withDefault("10px"),o_=L("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),s_=L("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),l_=L("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),Yx=L("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),Kx=L("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),bp=L("button-border","--vscode-button-border").withDefault("transparent"),mv=L("button-icon-background").withDefault("transparent"),a_=L("button-icon-corner-radius").withDefault("5px"),c_=L("button-icon-outline-offset").withDefault(0),gv=L("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),u_=L("button-icon-padding").withDefault("3px"),Yi=L("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Jx=L("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Zx=L("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),dd=L("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),d_=L("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),f_=L("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),h_=L("button-padding-horizontal").withDefault("11px"),p_=L("button-padding-vertical").withDefault("4px"),Bn=L("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Ni=L("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),m_=L("checkbox-corner-radius").withDefault(3);L("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0");const Hr=L("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),Ki=L("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),g_=L("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),v_=L("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),Ml=L("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Sr=L("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c");L("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0");const y_=L("dropdown-list-max-height").withDefault("200px"),Qr=L("input-background","--vscode-input-background").withDefault("#3c3c3c"),e1=L("input-foreground","--vscode-input-foreground").withDefault("#cccccc");L("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc");const vv=L("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),b_=L("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),x_=L("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),w_=L("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),Ci=L("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),k_=L("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799");L("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e");L("panel-view-border","--vscode-panel-border").withDefault("#80808059");const C_=L("tag-corner-radius").withDefault("2px"),S_=(e,t)=>Te` ${ut("inline-block")} :host { box-sizing: border-box; font-family: ${an}; @@ -694,15 +694,15 @@ PERFORMANCE OF THIS SOFTWARE. min-height: calc(${G} * 4px + 2px); padding: 3px 6px; } -`;class S_ extends tl{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}const t1=S_.compose({baseName:"badge",template:Lx,styles:C_});function $_(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}const T_=Te` +`;class $_ extends nl{connectedCallback(){super.connectedCallback(),this.circular||(this.circular=!0)}}const t1=$_.compose({baseName:"badge",template:Lx,styles:S_});function T_(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}const I_=Te` ${ut("inline-flex")} :host { outline: none; font-family: ${an}; - font-size: ${yt}; + font-size: ${bt}; line-height: ${Ot}; color: ${Jx}; - background: ${Xi}; - border-radius: calc(${Qi} * 1px); + background: ${Yi}; + border-radius: calc(${Xi} * 1px); fill: currentColor; cursor: pointer; } @@ -714,7 +714,7 @@ PERFORMANCE OF THIS SOFTWARE. display: inline-flex; justify-content: center; align-items: center; - padding: ${h_} ${f_}; + padding: ${p_} ${h_}; white-space: wrap; outline: none; text-decoration: none; @@ -729,7 +729,7 @@ PERFORMANCE OF THIS SOFTWARE. background: ${Zx}; } :host(:active) { - background: ${Xi}; + background: ${Yi}; } .control:${lt} { outline: calc(${te} * 1px) solid ${Ae}; @@ -740,8 +740,8 @@ PERFORMANCE OF THIS SOFTWARE. } :host([disabled]) { opacity: ${pi}; - background: ${Xi}; - cursor: ${Rr}; + background: ${Yi}; + cursor: ${Pr}; } .content { display: flex; @@ -757,46 +757,46 @@ PERFORMANCE OF THIS SOFTWARE. .start { margin-inline-end: 8px; } -`,I_=Te` +`,E_=Te` :host([appearance='primary']) { - background: ${Xi}; + background: ${Yi}; color: ${Jx}; } :host([appearance='primary']:hover) { background: ${Zx}; } :host([appearance='primary']:active) .control:active { - background: ${Xi}; + background: ${Yi}; } :host([appearance='primary']) .control:${lt} { outline: calc(${te} * 1px) solid ${Ae}; outline-offset: calc(${te} * 2px); } :host([appearance='primary'][disabled]) { - background: ${Xi}; + background: ${Yi}; } -`,E_=Te` +`,R_=Te` :host([appearance='secondary']) { - background: ${ud}; - color: ${u_}; + background: ${dd}; + color: ${d_}; } :host([appearance='secondary']:hover) { - background: ${d_}; + background: ${f_}; } :host([appearance='secondary']:active) .control:active { - background: ${ud}; + background: ${dd}; } :host([appearance='secondary']) .control:${lt} { outline: calc(${te} * 1px) solid ${Ae}; outline-offset: calc(${te} * 2px); } :host([appearance='secondary'][disabled]) { - background: ${ud}; + background: ${dd}; } -`,R_=Te` +`,P_=Te` :host([appearance='icon']) { background: ${mv}; - border-radius: ${l_}; + border-radius: ${a_}; color: ${ot}; } :host([appearance='icon']:hover) { @@ -805,7 +805,7 @@ PERFORMANCE OF THIS SOFTWARE. outline-offset: -1px; } :host([appearance='icon']) .control { - padding: ${c_}; + padding: ${u_}; border: none; } :host([appearance='icon']:active) .control:active { @@ -813,23 +813,23 @@ PERFORMANCE OF THIS SOFTWARE. } :host([appearance='icon']) .control:${lt} { outline: calc(${te} * 1px) solid ${Ae}; - outline-offset: ${a_}; + outline-offset: ${c_}; } :host([appearance='icon'][disabled]) { background: ${mv}; } -`,P_=(e,t)=>Te` - ${T_} +`,O_=(e,t)=>Te` ${I_} ${E_} ${R_} -`;class n1 extends xn{connectedCallback(){if(super.connectedCallback(),!this.appearance){const t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,n,r){t==="appearance"&&r==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=r),t==="disabled"&&(this.disabled=r!==null)}}$_([E],n1.prototype,"appearance",void 0);const r1=n1.compose({baseName:"button",template:JO,styles:P_,shadowOptions:{delegatesFocus:!0}}),O_=(e,t)=>Te` + ${P_} +`;class n1 extends wn{connectedCallback(){if(super.connectedCallback(),!this.appearance){const t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,n,r){t==="appearance"&&r==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=r),t==="disabled"&&(this.disabled=r!==null)}}T_([E],n1.prototype,"appearance",void 0);const r1=n1.compose({baseName:"button",template:ZO,styles:O_,shadowOptions:{delegatesFocus:!0}}),__=(e,t)=>Te` ${ut("inline-flex")} :host { align-items: center; outline: none; margin: calc(${G} * 1px) 0; user-select: none; - font-size: ${yt}; + font-size: ${bt}; line-height: ${Ot}; } .control { @@ -837,7 +837,7 @@ PERFORMANCE OF THIS SOFTWARE. width: calc(${G} * 4px + 2px); height: calc(${G} * 4px + 2px); box-sizing: border-box; - border-radius: calc(${p_} * 1px); + border-radius: calc(${m_} * 1px); border: calc(${te} * 1px) solid ${Ni}; background: ${Bn}; outline: none; @@ -888,7 +888,7 @@ PERFORMANCE OF THIS SOFTWARE. :host(.readonly) .label, :host(.readonly) .control, :host(.disabled) .control { - cursor: ${Rr}; + cursor: ${Pr}; } :host(.checked:not(.indeterminate)) .checked-indicator, :host(.indeterminate) .indeterminate-indicator { @@ -897,7 +897,7 @@ PERFORMANCE OF THIS SOFTWARE. :host(.disabled) { opacity: ${pi}; } -`;class __ extends nu{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}const i1=__.compose({baseName:"checkbox",template:c2,styles:O_,checkedIndicator:` +`;class A_ extends ru{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Checkbox")}}const i1=A_.compose({baseName:"checkbox",template:u2,styles:__,checkedIndicator:` `,indeterminateIndicator:`
- `}),A_=(e,t)=>Te` + `}),D_=(e,t)=>Te` :host { display: flex; position: relative; @@ -933,27 +933,27 @@ PERFORMANCE OF THIS SOFTWARE. :host(.header) { } :host(.sticky-header) { - background: ${t_}; + background: ${n_}; position: sticky; top: 0; } :host(:hover) { - background: ${m_}; + background: ${g_}; outline: 1px dotted ${qx}; outline-offset: -1px; } -`,D_=(e,t)=>Te` +`,L_=(e,t)=>Te` :host { padding: calc(${G} * 1px) calc(${G} * 3px); color: ${ot}; opacity: 1; box-sizing: border-box; font-family: ${an}; - font-size: ${yt}; + font-size: ${bt}; line-height: ${Ot}; font-weight: 400; border: solid calc(${te} * 1px) transparent; - border-radius: calc(${rl} * 1px); + border-radius: calc(${il} * 1px); white-space: wrap; overflow-wrap: anywhere; } @@ -963,34 +963,34 @@ PERFORMANCE OF THIS SOFTWARE. :host(:${lt}), :host(:focus), :host(:active) { - background: ${Vr}; + background: ${Hr}; border: solid calc(${te} * 1px) ${Ae}; - color: ${Yi}; + color: ${Ki}; outline: none; } :host(:${lt}) ::slotted(*), :host(:focus) ::slotted(*), :host(:active) ::slotted(*) { - color: ${Yi} !important; + color: ${Ki} !important; } -`;class L_ extends ct{connectedCallback(){super.connectedCallback(),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}const o1=L_.compose({baseName:"data-grid",baseClass:ct,template:n2,styles:A_});class N_ extends at{}const s1=N_.compose({baseName:"data-grid-row",baseClass:at,template:l2,styles:M_});class F_ extends Mr{}const l1=F_.compose({baseName:"data-grid-cell",baseClass:Mr,template:a2,styles:D_}),j_=(e,t)=>Te` +`;class N_ extends ct{connectedCallback(){super.connectedCallback(),this.getAttribute("aria-label")||this.setAttribute("aria-label","Data Grid")}}const o1=N_.compose({baseName:"data-grid",baseClass:ct,template:r2,styles:D_});class F_ extends at{}const s1=F_.compose({baseName:"data-grid-row",baseClass:at,template:a2,styles:M_});class j_ extends Mr{}const l1=j_.compose({baseName:"data-grid-cell",baseClass:Mr,template:c2,styles:L_}),z_=(e,t)=>Te` ${ut("block")} :host { border: none; - border-top: calc(${te} * 1px) solid ${g_}; + border-top: calc(${te} * 1px) solid ${v_}; box-sizing: content-box; height: 0; margin: calc(${G} * 1px) 0; width: 100%; } -`;class z_ extends mp{}const a1=z_.compose({baseName:"divider",template:$2,styles:j_}),B_=(e,t)=>Te` +`;class B_ extends mp{}const a1=B_.compose({baseName:"divider",template:T2,styles:z_}),V_=(e,t)=>Te` ${ut("inline-flex")} :host { background: ${Ml}; - border-radius: calc(${Qi} * 1px); + border-radius: calc(${Xi} * 1px); box-sizing: border-box; color: ${ot}; contain: contents; font-family: ${an}; - height: calc(${ra} * 1px); + height: calc(${ia} * 1px); position: relative; user-select: none; min-width: ${yp}; @@ -1000,12 +1000,12 @@ PERFORMANCE OF THIS SOFTWARE. .control { align-items: center; box-sizing: border-box; - border: calc(${te} * 1px) solid ${Cr}; - border-radius: calc(${Qi} * 1px); + border: calc(${te} * 1px) solid ${Sr}; + border-radius: calc(${Xi} * 1px); cursor: pointer; display: flex; font-family: inherit; - font-size: ${yt}; + font-size: ${bt}; line-height: ${Ot}; min-height: 100%; padding: 2px 6px 2px 8px; @@ -1014,12 +1014,12 @@ PERFORMANCE OF THIS SOFTWARE. .listbox { background: ${Ml}; border: calc(${te} * 1px) solid ${Ae}; - border-radius: calc(${Qi} * 1px); + border-radius: calc(${Xi} * 1px); box-sizing: border-box; display: inline-flex; flex-direction: column; left: 0; - max-height: ${v_}; + max-height: ${y_}; padding: 0; overflow-y: auto; position: absolute; @@ -1034,19 +1034,19 @@ PERFORMANCE OF THIS SOFTWARE. } :host(:not([disabled]):hover) { background: ${Ml}; - border-color: ${Cr}; + border-color: ${Sr}; } :host(:${lt}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) { - background: ${Vr}; + background: ${Hr}; border: calc(${te} * 1px) solid transparent; - color: ${Yi}; + color: ${Ki}; } :host([disabled]) { - cursor: ${Rr}; + cursor: ${Pr}; opacity: ${pi}; } :host([disabled]) .control { - cursor: ${Rr}; + cursor: ${Pr}; user-select: none; } :host([disabled]:hover) { @@ -1072,10 +1072,10 @@ PERFORMANCE OF THIS SOFTWARE. border-top-right-radius: 0; } :host([open][position='above']) .listbox { - bottom: calc(${ra} * 1px); + bottom: calc(${ia} * 1px); } :host([open][position='below']) .listbox { - top: calc(${ra} * 1px); + top: calc(${ia} * 1px); } .selected-value { flex: 1 1 auto; @@ -1116,7 +1116,7 @@ PERFORMANCE OF THIS SOFTWARE. ::slotted(option) { flex: 0 0 auto; } -`;class V_ extends Lr{}const c1=V_.compose({baseName:"dropdown",template:j2,styles:B_,indicator:` +`;class H_ extends Nr{}const c1=H_.compose({baseName:"dropdown",template:z2,styles:V_,indicator:` - `}),H_=(e,t)=>Te` + `}),U_=(e,t)=>Te` ${ut("inline-flex")} :host { background: transparent; box-sizing: border-box; - color: ${y_}; + color: ${b_}; cursor: pointer; fill: currentcolor; font-family: ${an}; - font-size: ${yt}; + font-size: ${bt}; line-height: ${Ot}; outline: none; } .control { background: transparent; border: calc(${te} * 1px) solid transparent; - border-radius: calc(${rl} * 1px); + border-radius: calc(${il} * 1px); box-sizing: border-box; color: inherit; cursor: inherit; @@ -1176,16 +1176,16 @@ PERFORMANCE OF THIS SOFTWARE. :host(:focus) .control { border: calc(${te} * 1px) solid ${Ae}; } -`;class U_ extends bn{}const u1=U_.compose({baseName:"link",template:YO,styles:H_,shadowOptions:{delegatesFocus:!0}}),W_=(e,t)=>Te` +`;class W_ extends xn{}const u1=W_.compose({baseName:"link",template:KO,styles:U_,shadowOptions:{delegatesFocus:!0}}),G_=(e,t)=>Te` ${ut("inline-flex")} :host { font-family: var(--body-font); - border-radius: ${rl}; + border-radius: ${il}; border: calc(${te} * 1px) solid transparent; box-sizing: border-box; color: ${ot}; cursor: pointer; fill: currentcolor; - font-size: ${yt}; + font-size: ${bt}; line-height: ${Ot}; margin: 0; outline: none; @@ -1197,29 +1197,29 @@ PERFORMANCE OF THIS SOFTWARE. } :host(:${lt}) { border-color: ${Ae}; - background: ${Vr}; + background: ${Hr}; color: ${ot}; } :host([aria-selected='true']) { - background: ${Vr}; + background: ${Hr}; border: calc(${te} * 1px) solid transparent; - color: ${Yi}; + color: ${Ki}; } :host(:active) { - background: ${Vr}; - color: ${Yi}; + background: ${Hr}; + color: ${Ki}; } :host(:not([aria-selected='true']):hover) { - background: ${Vr}; + background: ${Hr}; border: calc(${te} * 1px) solid transparent; - color: ${Yi}; + color: ${Ki}; } :host(:not([aria-selected='true']):active) { - background: ${Vr}; + background: ${Hr}; color: ${ot}; } :host([disabled]) { - cursor: ${Rr}; + cursor: ${Pr}; opacity: ${pi}; } :host([disabled]:hover) { @@ -1231,11 +1231,11 @@ PERFORMANCE OF THIS SOFTWARE. overflow: hidden; text-overflow: ellipsis; } -`;let G_=class extends Zn{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}};const d1=G_.compose({baseName:"option",template:I2,styles:W_}),q_=(e,t)=>Te` +`;let q_=class extends er{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Option")}};const d1=q_.compose({baseName:"option",template:E2,styles:G_}),Q_=(e,t)=>Te` ${ut("grid")} :host { box-sizing: border-box; font-family: ${an}; - font-size: ${yt}; + font-size: ${bt}; line-height: ${Ot}; color: ${ot}; grid-template-columns: auto 1fr auto; @@ -1265,7 +1265,7 @@ PERFORMANCE OF THIS SOFTWARE. justify-self: center; background: ${Ci}; margin: 0; - border-radius: calc(${rl} * 1px); + border-radius: calc(${il} * 1px); } .activeIndicatorTransition { transition: transform 0.01s linear; @@ -1276,17 +1276,17 @@ PERFORMANCE OF THIS SOFTWARE. grid-column-end: 4; position: relative; } -`,Q_=(e,t)=>Te` +`,X_=(e,t)=>Te` ${ut("inline-flex")} :host { box-sizing: border-box; font-family: ${an}; - font-size: ${yt}; + font-size: ${bt}; line-height: ${Ot}; height: calc(${G} * 7px); padding: calc(${G} * 1px) 0; - color: ${w_}; + color: ${k_}; fill: currentcolor; - border-radius: calc(${rl} * 1px); + border-radius: calc(${il} * 1px); border: solid calc(${te} * 1px) transparent; align-items: center; justify-content: center; @@ -1318,7 +1318,7 @@ PERFORMANCE OF THIS SOFTWARE. } :host(:${lt}) { outline: none; - border: solid calc(${te} * 1px) ${x_}; + border: solid calc(${te} * 1px) ${w_}; } :host(:focus) { outline: none; @@ -1326,17 +1326,17 @@ PERFORMANCE OF THIS SOFTWARE. ::slotted(vscode-badge) { margin-inline-start: calc(${G} * 2px); } -`,X_=(e,t)=>Te` +`,Y_=(e,t)=>Te` ${ut("flex")} :host { color: inherit; background-color: transparent; border: solid calc(${te} * 1px) transparent; box-sizing: border-box; - font-size: ${yt}; + font-size: ${bt}; line-height: ${Ot}; padding: 10px calc((${G} + 2) * 1px); } -`;class Y_ extends er{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=Pf.horizontal),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}const f1=Y_.compose({baseName:"panels",template:H2,styles:q_});class K_ extends Hx{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}const h1=K_.compose({baseName:"panel-tab",template:V2,styles:Q_});class J_ extends B2{}const p1=J_.compose({baseName:"panel-view",template:z2,styles:X_}),Z_=(e,t)=>Te` +`;class K_ extends tr{connectedCallback(){super.connectedCallback(),this.orientation&&(this.orientation=Pf.horizontal),this.getAttribute("aria-label")||this.setAttribute("aria-label","Panels")}}const f1=K_.compose({baseName:"panels",template:U2,styles:Q_});class J_ extends Hx{connectedCallback(){super.connectedCallback(),this.disabled&&(this.disabled=!1),this.textContent&&this.setAttribute("aria-label",this.textContent)}}const h1=J_.compose({baseName:"panel-tab",template:H2,styles:X_});class Z_ extends V2{}const p1=Z_.compose({baseName:"panel-view",template:B2,styles:Y_}),eA=(e,t)=>Te` ${ut("flex")} :host { align-items: center; outline: none; @@ -1355,7 +1355,7 @@ PERFORMANCE OF THIS SOFTWARE. } .indeterminate-indicator-1 { fill: none; - stroke: ${b_}; + stroke: ${x_}; stroke-width: calc(${G} / 2 * 1px); stroke-linecap: square; transform-origin: 50% 50%; @@ -1377,7 +1377,7 @@ PERFORMANCE OF THIS SOFTWARE. transform: rotate(1080deg); } } -`;class eA extends To{connectedCallback(){super.connectedCallback(),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}attributeChangedCallback(t,n,r){t==="value"&&this.removeAttribute("value")}}const m1=eA.compose({baseName:"progress-ring",template:O2,styles:Z_,indeterminateIndicator:` +`;class tA extends Io{connectedCallback(){super.connectedCallback(),this.paused&&(this.paused=!1),this.setAttribute("aria-label","Loading"),this.setAttribute("aria-live","assertive"),this.setAttribute("role","alert")}attributeChangedCallback(t,n,r){t==="value"&&this.removeAttribute("value")}}const m1=tA.compose({baseName:"progress-ring",template:_2,styles:eA,indeterminateIndicator:` - `}),tA=(e,t)=>Te` + `}),nA=(e,t)=>Te` ${ut("flex")} :host { align-items: flex-start; margin: calc(${G} * 1px) 0; @@ -1412,14 +1412,14 @@ PERFORMANCE OF THIS SOFTWARE. } ::slotted([slot='label']) { color: ${ot}; - font-size: ${yt}; + font-size: ${bt}; margin: calc(${G} * 1px) 0; } -`;class nA extends Dr{connectedCallback(){super.connectedCallback();const t=this.querySelector("label");if(t){const n="radio-group-"+Math.random().toString(16).slice(2);t.setAttribute("id",n),this.setAttribute("aria-labelledby",n)}}}const g1=nA.compose({baseName:"radio-group",template:_2,styles:tA}),rA=(e,t)=>Te` +`;class rA extends Lr{connectedCallback(){super.connectedCallback();const t=this.querySelector("label");if(t){const n="radio-group-"+Math.random().toString(16).slice(2);t.setAttribute("id",n),this.setAttribute("aria-labelledby",n)}}}const g1=rA.compose({baseName:"radio-group",template:A2,styles:nA}),iA=(e,t)=>Te` ${ut("inline-flex")} :host { align-items: center; flex-direction: row; - font-size: ${yt}; + font-size: ${bt}; line-height: ${Ot}; margin: calc(${G} * 1px) 0; outline: none; @@ -1492,7 +1492,7 @@ PERFORMANCE OF THIS SOFTWARE. :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control { - cursor: ${Rr}; + cursor: ${Pr}; } :host([aria-checked='true']) .checked-indicator { opacity: 1; @@ -1500,9 +1500,9 @@ PERFORMANCE OF THIS SOFTWARE. :host([disabled]) { opacity: ${pi}; } -`;class iA extends iu{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}const v1=iA.compose({baseName:"radio",template:A2,styles:rA,checkedIndicator:` +`;class oA extends ou{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Radio")}}const v1=oA.compose({baseName:"radio",template:D2,styles:iA,checkedIndicator:`
- `}),oA=(e,t)=>Te` + `}),sA=(e,t)=>Te` ${ut("inline-block")} :host { box-sizing: border-box; font-family: ${an}; @@ -1512,12 +1512,12 @@ PERFORMANCE OF THIS SOFTWARE. .control { background-color: ${Yx}; border: calc(${te} * 1px) solid ${bp}; - border-radius: ${k_}; + border-radius: ${C_}; color: ${Kx}; padding: calc(${G} * 0.5px) calc(${G} * 1px); text-transform: uppercase; } -`;class sA extends tl{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}}const y1=sA.compose({baseName:"tag",template:Lx,styles:oA}),lA=(e,t)=>Te` +`;class lA extends nl{connectedCallback(){super.connectedCallback(),this.circular&&(this.circular=!1)}}const y1=lA.compose({baseName:"tag",template:Lx,styles:sA}),aA=(e,t)=>Te` ${ut("inline-block")} :host { font-family: ${an}; outline: none; @@ -1527,11 +1527,11 @@ PERFORMANCE OF THIS SOFTWARE. box-sizing: border-box; position: relative; color: ${e1}; - background: ${qr}; - border-radius: calc(${Qi} * 1px); - border: calc(${te} * 1px) solid ${Cr}; + background: ${Qr}; + border-radius: calc(${Xi} * 1px); + border: calc(${te} * 1px) solid ${Sr}; font: inherit; - font-size: ${yt}; + font-size: ${bt}; line-height: ${Ot}; padding: calc(${G} * 2px + 1px); width: 100%; @@ -1539,11 +1539,11 @@ PERFORMANCE OF THIS SOFTWARE. resize: none; } .control:hover:enabled { - background: ${qr}; - border-color: ${Cr}; + background: ${Qr}; + border-color: ${Sr}; } .control:active:enabled { - background: ${qr}; + background: ${Qr}; border-color: ${Ae}; } .control:hover, @@ -1553,20 +1553,20 @@ PERFORMANCE OF THIS SOFTWARE. outline: none; } .control::-webkit-scrollbar { - width: ${n_}; - height: ${r_}; + width: ${r_}; + height: ${i_}; } .control::-webkit-scrollbar-corner { - background: ${qr}; + background: ${Qr}; } .control::-webkit-scrollbar-thumb { - background: ${i_}; + background: ${o_}; } .control::-webkit-scrollbar-thumb:hover { - background: ${o_}; + background: ${s_}; } .control::-webkit-scrollbar-thumb:active { - background: ${s_}; + background: ${l_}; } :host(:focus-within:not([disabled])) .control { border-color: ${Ae}; @@ -1584,7 +1584,7 @@ PERFORMANCE OF THIS SOFTWARE. display: block; color: ${ot}; cursor: pointer; - font-size: ${yt}; + font-size: ${bt}; line-height: ${Ot}; margin-bottom: 2px; } @@ -1596,15 +1596,15 @@ PERFORMANCE OF THIS SOFTWARE. :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control { - cursor: ${Rr}; + cursor: ${Pr}; } :host([disabled]) { opacity: ${pi}; } :host([disabled]) .control { - border-color: ${Cr}; + border-color: ${Sr}; } -`;class aA extends wt{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}const b1=aA.compose({baseName:"text-area",template:G2,styles:lA,shadowOptions:{delegatesFocus:!0}}),cA=(e,t)=>Te` +`;class cA extends kt{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text area")}}const b1=cA.compose({baseName:"text-area",template:q2,styles:aA,shadowOptions:{delegatesFocus:!0}}),uA=(e,t)=>Te` ${ut("inline-block")} :host { font-family: ${an}; outline: none; @@ -1616,10 +1616,10 @@ PERFORMANCE OF THIS SOFTWARE. display: flex; flex-direction: row; color: ${e1}; - background: ${qr}; - border-radius: calc(${Qi} * 1px); - border: calc(${te} * 1px) solid ${Cr}; - height: calc(${ra} * 1px); + background: ${Qr}; + border-radius: calc(${Xi} * 1px); + border: calc(${te} * 1px) solid ${Sr}; + height: calc(${ia} * 1px); min-width: ${yp}; } .control { @@ -1634,7 +1634,7 @@ PERFORMANCE OF THIS SOFTWARE. margin-bottom: auto; border: none; padding: 0 calc(${G} * 2px + 1px); - font-size: ${yt}; + font-size: ${bt}; line-height: ${Ot}; } .control:hover, @@ -1647,7 +1647,7 @@ PERFORMANCE OF THIS SOFTWARE. display: block; color: ${ot}; cursor: pointer; - font-size: ${yt}; + font-size: ${bt}; line-height: ${Ot}; margin-bottom: 2px; } @@ -1673,11 +1673,11 @@ PERFORMANCE OF THIS SOFTWARE. margin-inline-end: calc(${G} * 2px); } :host(:hover:not([disabled])) .root { - background: ${qr}; - border-color: ${Cr}; + background: ${Qr}; + border-color: ${Sr}; } :host(:active:not([disabled])) .root { - background: ${qr}; + background: ${Qr}; border-color: ${Ae}; } :host(:focus-within:not([disabled])) .root { @@ -1687,16 +1687,16 @@ PERFORMANCE OF THIS SOFTWARE. :host([readonly]) .label, :host([readonly]) .control, :host([disabled]) .control { - cursor: ${Rr}; + cursor: ${Pr}; } :host([disabled]) { opacity: ${pi}; } :host([disabled]) .control { - border-color: ${Cr}; + border-color: ${Sr}; } -`;class uA extends Wt{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}const x1=uA.compose({baseName:"text-field",template:q2,styles:cA,shadowOptions:{delegatesFocus:!0}}),dA={vsCodeBadge:t1,vsCodeButton:r1,vsCodeCheckbox:i1,vsCodeDataGrid:o1,vsCodeDataGridCell:l1,vsCodeDataGridRow:s1,vsCodeDivider:a1,vsCodeDropdown:c1,vsCodeLink:u1,vsCodeOption:d1,vsCodePanels:f1,vsCodePanelTab:h1,vsCodePanelView:p1,vsCodeProgressRing:m1,vsCodeRadioGroup:g1,vsCodeRadio:v1,vsCodeTag:y1,vsCodeTextArea:b1,vsCodeTextField:x1,register(e,...t){if(e)for(const n in this)n!=="register"&&this[n]().register(e,...t)}},{wrap:Be}=Z2(St,Gx());Be(t1(),{name:"vscode-badge"});Be(r1(),{name:"vscode-button"});Be(i1(),{name:"vscode-checkbox",events:{onChange:"change"}});Be(o1(),{name:"vscode-data-grid"});Be(l1(),{name:"vscode-data-grid-cell"});Be(s1(),{name:"vscode-data-grid-row"});Be(a1(),{name:"vscode-divider"});const fA=Be(c1(),{name:"vscode-dropdown",events:{onChange:"change"}});Be(u1(),{name:"vscode-link"});const hA=Be(d1(),{name:"vscode-option"});Be(f1(),{name:"vscode-panels",events:{onChange:"change"}});Be(h1(),{name:"vscode-panel-tab"});Be(p1(),{name:"vscode-panel-view"});Be(m1(),{name:"vscode-progress-ring"});Be(v1(),{name:"vscode-radio",events:{onChange:"change"}});Be(g1(),{name:"vscode-radio-group",events:{onChange:"change"}});Be(y1(),{name:"vscode-tag"});Be(b1(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}});Be(x1(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}});function pA(e){return Ge("MuiRichTreeView",e)}ze("MuiRichTreeView",["root"]);const mA=(e,t)=>{const n=x.useRef({}),[r,i]=x.useState(()=>{const s={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([a,c])=>{n.current[a]={isControlled:t[a]!==void 0,getDefaultValue:c.getDefaultValue},s[a]=c.getDefaultValue(t)})}),s});return Object.fromEntries(Object.entries(n.current).map(([s,l])=>{const a=t[s]??r[s];return[s,{value:a,setControlledValue:c=>{l.isControlled||i(d=>T({},d,{[s]:c}))}}]}))};class gA{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let i=this.events[t];i||(i={highPriority:new Map,regular:new Map},this.events[t]=i),r.isFirst?i.highPriority.set(n,!0):i.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const i=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let s=i.length-1;s>=0;s-=1){const l=i[s];r.highPriority.has(l)&&l.apply(this,n)}for(let s=0;se.isPropagationStopped!==void 0,w1=()=>{const[e]=x.useState(()=>new gA),t=x.useCallback((...r)=>{const[i,o,s={}]=r;s.defaultMuiPrevented=!1,!(vA(s)&&s.isPropagationStopped())&&e.emit(i,o,s)},[e]),n=x.useCallback((r,i)=>(e.on(r,i),()=>{e.removeListener(r,i)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};w1.params={};const yA=[w1];function bA(e){const t=x.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const xA=e=>{const t=[...yA,...e.plugins],n=t.reduce((p,h)=>h.getDefaultizedParams?h.getDefaultizedParams(p):p,e),r=mA(t,n),o=x.useRef({}).current,s=bA(e.apiRef),l=x.useRef(null),a=Bt(l,e.rootRef),[c,d]=x.useState(()=>{const p={};return t.forEach(h=>{h.getInitialState&&Object.assign(p,h.getInitialState(n))}),p}),u=[],f={publicAPI:s,instance:o,rootRef:l},v=p=>{const h=p({instance:o,params:n,slots:n.slots,slotProps:n.slotProps,state:c,setState:d,rootRef:l,models:r});h.getRootProps&&u.push(h.getRootProps),h.publicAPI&&Object.assign(s,h.publicAPI),h.instance&&Object.assign(o,h.instance),h.contextValue&&Object.assign(f,h.contextValue)};t.forEach(v),f.runItemPlugins=p=>{let h=null,y=null;return t.forEach(w=>{if(!w.itemPlugin)return;const k=w.itemPlugin({props:p,rootRef:h,contentRef:y});k!=null&&k.rootRef&&(h=k.rootRef),k!=null&&k.contentRef&&(y=k.contentRef)}),{contentRef:y,rootRef:h}};const m=t.map(p=>p.wrapItem).filter(p=>!!p);f.wrapItem=({itemId:p,children:h})=>{let y=h;return m.forEach(w=>{y=w({itemId:p,children:y})}),y};const g=t.map(p=>p.wrapRoot).filter(p=>!!p);return f.wrapRoot=({children:p})=>{let h=p;return g.forEach(y=>{h=y({children:h})}),h},{getRootProps:(p={})=>{const h=T({role:"tree"},p,{ref:a});return u.forEach(y=>{Object.assign(h,y(p))}),h},rootRef:a,contextValue:f,instance:o}},k1=x.createContext(null);function wA(e){const{value:t,children:n}=e;return C.jsx(k1.Provider,{value:t,children:t.wrapRoot({children:n})})}const C1=({params:e})=>{const t=H$(e.id),n=x.useCallback((r,i)=>i??`${t}-${r}`,[t]);return{getRootProps:()=>({id:t}),instance:{getTreeItemIdAttribute:n}}};C1.params={id:!0};const kA=(e,t,n)=>{e.$$publishEvent(t,n)},ds="__TREE_VIEW_ROOT_PARENT_ID__",CA=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},S1=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const i={},o={},s={[ds]:[]},l=(c,d)=>{var m,g;const u=r?r(c):c.id;if(u==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(c)].join(` +`;class dA extends Wt{connectedCallback(){super.connectedCallback(),this.textContent?this.setAttribute("aria-label",this.textContent):this.setAttribute("aria-label","Text field")}}const x1=dA.compose({baseName:"text-field",template:Q2,styles:uA,shadowOptions:{delegatesFocus:!0}}),fA={vsCodeBadge:t1,vsCodeButton:r1,vsCodeCheckbox:i1,vsCodeDataGrid:o1,vsCodeDataGridCell:l1,vsCodeDataGridRow:s1,vsCodeDivider:a1,vsCodeDropdown:c1,vsCodeLink:u1,vsCodeOption:d1,vsCodePanels:f1,vsCodePanelTab:h1,vsCodePanelView:p1,vsCodeProgressRing:m1,vsCodeRadioGroup:g1,vsCodeRadio:v1,vsCodeTag:y1,vsCodeTextArea:b1,vsCodeTextField:x1,register(e,...t){if(e)for(const n in this)n!=="register"&&this[n]().register(e,...t)}},{wrap:Be}=e_(St,Gx());Be(t1(),{name:"vscode-badge"});Be(r1(),{name:"vscode-button"});Be(i1(),{name:"vscode-checkbox",events:{onChange:"change"}});Be(o1(),{name:"vscode-data-grid"});Be(l1(),{name:"vscode-data-grid-cell"});Be(s1(),{name:"vscode-data-grid-row"});Be(a1(),{name:"vscode-divider"});const hA=Be(c1(),{name:"vscode-dropdown",events:{onChange:"change"}});Be(u1(),{name:"vscode-link"});const pA=Be(d1(),{name:"vscode-option"});Be(f1(),{name:"vscode-panels",events:{onChange:"change"}});Be(h1(),{name:"vscode-panel-tab"});Be(p1(),{name:"vscode-panel-view"});Be(m1(),{name:"vscode-progress-ring"});Be(v1(),{name:"vscode-radio",events:{onChange:"change"}});Be(g1(),{name:"vscode-radio-group",events:{onChange:"change"}});Be(y1(),{name:"vscode-tag"});Be(b1(),{name:"vscode-text-area",events:{onChange:"change",onInput:"input"}});Be(x1(),{name:"vscode-text-field",events:{onChange:"change",onInput:"input"}});function mA(e){return Ge("MuiRichTreeView",e)}ze("MuiRichTreeView",["root"]);const gA=(e,t)=>{const n=x.useRef({}),[r,i]=x.useState(()=>{const s={};return e.forEach(l=>{l.models&&Object.entries(l.models).forEach(([a,c])=>{n.current[a]={isControlled:t[a]!==void 0,getDefaultValue:c.getDefaultValue},s[a]=c.getDefaultValue(t)})}),s});return Object.fromEntries(Object.entries(n.current).map(([s,l])=>{const a=t[s]??r[s];return[s,{value:a,setControlledValue:c=>{l.isControlled||i(d=>T({},d,{[s]:c}))}}]}))};class vA{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let i=this.events[t];i||(i={highPriority:new Map,regular:new Map},this.events[t]=i),r.isFirst?i.highPriority.set(n,!0):i.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const i=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let s=i.length-1;s>=0;s-=1){const l=i[s];r.highPriority.has(l)&&l.apply(this,n)}for(let s=0;se.isPropagationStopped!==void 0,w1=()=>{const[e]=x.useState(()=>new vA),t=x.useCallback((...r)=>{const[i,o,s={}]=r;s.defaultMuiPrevented=!1,!(yA(s)&&s.isPropagationStopped())&&e.emit(i,o,s)},[e]),n=x.useCallback((r,i)=>(e.on(r,i),()=>{e.removeListener(r,i)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};w1.params={};const bA=[w1];function xA(e){const t=x.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const wA=e=>{const t=[...bA,...e.plugins],n=t.reduce((p,h)=>h.getDefaultizedParams?h.getDefaultizedParams(p):p,e),r=gA(t,n),o=x.useRef({}).current,s=xA(e.apiRef),l=x.useRef(null),a=Bt(l,e.rootRef),[c,d]=x.useState(()=>{const p={};return t.forEach(h=>{h.getInitialState&&Object.assign(p,h.getInitialState(n))}),p}),u=[],f={publicAPI:s,instance:o,rootRef:l},v=p=>{const h=p({instance:o,params:n,slots:n.slots,slotProps:n.slotProps,state:c,setState:d,rootRef:l,models:r});h.getRootProps&&u.push(h.getRootProps),h.publicAPI&&Object.assign(s,h.publicAPI),h.instance&&Object.assign(o,h.instance),h.contextValue&&Object.assign(f,h.contextValue)};t.forEach(v),f.runItemPlugins=p=>{let h=null,y=null;return t.forEach(w=>{if(!w.itemPlugin)return;const k=w.itemPlugin({props:p,rootRef:h,contentRef:y});k!=null&&k.rootRef&&(h=k.rootRef),k!=null&&k.contentRef&&(y=k.contentRef)}),{contentRef:y,rootRef:h}};const g=t.map(p=>p.wrapItem).filter(p=>!!p);f.wrapItem=({itemId:p,children:h})=>{let y=h;return g.forEach(w=>{y=w({itemId:p,children:y})}),y};const m=t.map(p=>p.wrapRoot).filter(p=>!!p);return f.wrapRoot=({children:p})=>{let h=p;return m.forEach(y=>{h=y({children:h})}),h},{getRootProps:(p={})=>{const h=T({role:"tree"},p,{ref:a});return u.forEach(y=>{Object.assign(h,y(p))}),h},rootRef:a,contextValue:f,instance:o}},k1=x.createContext(null);function kA(e){const{value:t,children:n}=e;return C.jsx(k1.Provider,{value:t,children:t.wrapRoot({children:n})})}const C1=({params:e})=>{const t=H$(e.id),n=x.useCallback((r,i)=>i??`${t}-${r}`,[t]);return{getRootProps:()=>({id:t}),instance:{getTreeItemIdAttribute:n}}};C1.params={id:!0};const CA=(e,t,n)=>{e.$$publishEvent(t,n)},ds="__TREE_VIEW_ROOT_PARENT_ID__",SA=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},S1=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const i={},o={},s={[ds]:[]},l=(c,d)=>{var g,m;const u=r?r(c):c.id;if(u==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(c)].join(` `));if(i[u]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${u}"`].join(` `));const f=n?n(c):c.label;if(f==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(c)].join(` -`));i[u]={id:u,label:f,parentId:d,idAttribute:void 0,expandable:!!((m=c.children)!=null&&m.length),disabled:t?t(c):!1},o[u]=c,s[u]=[];const v=d??ds;s[v]||(s[v]=[]),s[v].push(u),(g=c.children)==null||g.forEach(b=>l(b,u))};e.forEach(c=>l(c,null));const a={};return Object.keys(s).forEach(c=>{a[c]=CA(s[c])}),{itemMetaMap:i,itemMap:o,itemOrderedChildrenIds:s,itemChildrenIndexes:a}},ou=({instance:e,params:t,state:n,setState:r})=>{const i=x.useCallback(m=>n.items.itemMetaMap[m],[n.items.itemMetaMap]),o=x.useCallback(m=>n.items.itemMap[m],[n.items.itemMap]),s=x.useCallback(m=>{if(m==null)return!1;let g=e.getItemMeta(m);if(!g)return!1;if(g.disabled)return!0;for(;g.parentId!=null;)if(g=e.getItemMeta(g.parentId),g.disabled)return!0;return!1},[e]),l=x.useCallback(m=>{const g=e.getItemMeta(m).parentId??ds;return n.items.itemChildrenIndexes[g][m]},[e,n.items.itemChildrenIndexes]),a=x.useCallback(m=>n.items.itemOrderedChildrenIds[m??ds]??[],[n.items.itemOrderedChildrenIds]),c=m=>t.disabledItemsFocusable?!0:!e.isItemDisabled(m),d=x.useRef(!1),u=x.useCallback(()=>{d.current=!0},[]),f=x.useCallback(()=>d.current,[]);return x.useEffect(()=>{e.areItemUpdatesPrevented()||r(m=>{const g=S1({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(m.items.itemMetaMap).forEach(b=>{g.itemMetaMap[b.id]||kA(e,"removeItem",{id:b.id})}),T({},m,{items:g})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{publicAPI:{getItem:o},instance:{getItemMeta:i,getItem:o,getItemsToRender:()=>{const m=g=>{const b=n.items.itemMetaMap[g];return{label:b.label,itemId:b.id,id:b.idAttribute,children:n.items.itemOrderedChildrenIds[g].map(m)}};return n.items.itemOrderedChildrenIds[ds].map(m)},getItemIndex:l,getItemOrderedChildrenIds:a,isItemDisabled:s,isItemNavigable:c,preventItemUpdates:u,areItemUpdatesPrevented:f},contextValue:{disabledItemsFocusable:t.disabledItemsFocusable}}};ou.getInitialState=e=>({items:S1({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});ou.getDefaultizedParams=e=>T({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1});ou.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0};const su=({instance:e,params:t,models:n})=>{const r=x.useMemo(()=>{const d=new Map;return n.expandedItems.value.forEach(u=>{d.set(u,!0)}),d},[n.expandedItems.value]),i=(d,u)=>{var f;(f=t.onExpandedItemsChange)==null||f.call(t,d,u),n.expandedItems.setControlledValue(u)},o=x.useCallback(d=>r.has(d),[r]),s=x.useCallback(d=>{var u;return!!((u=e.getItemMeta(d))!=null&&u.expandable)},[e]),l=Zt((d,u)=>{const f=e.isItemExpanded(u);e.setItemExpansion(d,u,!f)}),a=Zt((d,u,f)=>{if(e.isItemExpanded(u)===f)return;let m;f?m=[u].concat(n.expandedItems.value):m=n.expandedItems.value.filter(g=>g!==u),t.onItemExpansionToggle&&t.onItemExpansionToggle(d,u,f),i(d,m)});return{publicAPI:{setItemExpansion:a},instance:{isItemExpanded:o,isItemExpandable:s,setItemExpansion:a,toggleItemExpansion:l,expandAllSiblings:(d,u)=>{const f=e.getItemMeta(u),m=e.getItemOrderedChildrenIds(f.parentId).filter(b=>e.isItemExpandable(b)&&!e.isItemExpanded(b)),g=n.expandedItems.value.concat(m);m.length>0&&(t.onItemExpansionToggle&&m.forEach(b=>{t.onItemExpansionToggle(d,b,!0)}),i(d,g))}}}};su.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const SA=[];su.getDefaultizedParams=e=>T({},e,{defaultExpandedItems:e.defaultExpandedItems??SA});su.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0};const $1=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},$A=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),i=e.getItemIndex(t);if(i===0)return n.parentId;let o=r[i-1],s=$1(e,e.getItemOrderedChildrenIds(o));for(;e.isItemExpanded(o)&&s!=null;)o=s,s=e.getItemOrderedChildrenIds(o).find(e.isItemNavigable);return o},ia=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),i=e.getItemIndex(n.id);if(i{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=$1(e,n);if(r==null)return t;t=r}return t},uo=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),I1=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),i=e.getItemMeta(n);if(r.parentId===i.id||i.parentId===r.id)return i.parentId===r.id?[r.id,i.id]:[i.id,r.id];const o=[r.id],s=[i.id];let l=r.parentId,a=i.parentId,c=s.indexOf(l)!==-1,d=o.indexOf(a)!==-1,u=!0,f=!0;for(;!d&&!c;)u&&(o.push(l),c=s.indexOf(l)!==-1,u=l!==null,!c&&u&&(l=e.getItemMeta(l).parentId)),f&&!c&&(s.push(a),d=o.indexOf(a)!==-1,f=a!==null,!d&&f&&(a=e.getItemMeta(a).parentId));const v=c?l:a,m=e.getItemOrderedChildrenIds(v),g=o[o.indexOf(v)-1],b=s[s.indexOf(v)-1];return m.indexOf(g){const r=a=>{if(e.isItemExpandable(a)&&e.isItemExpanded(a))return e.getItemOrderedChildrenIds(a)[0];let c=e.getItemMeta(a);for(;c!=null;){const d=e.getItemOrderedChildrenIds(c.parentId),u=e.getItemIndex(c.id);if(u{let t=uo(e);const n=[];for(;t!=null;)n.push(t),t=ia(e,t);return n},dd=e=>Array.isArray(e)?e:e!=null?[e]:[],fd=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},lu=({instance:e,params:t,models:n})=>{const r=x.useRef(null),i=x.useRef({}),o=x.useMemo(()=>{const g=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(b=>{g.set(b,!0)}):n.selectedItems.value!=null&&g.set(n.selectedItems.value,!0),g},[n.selectedItems.value]),s=(g,b)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const p=b.filter(y=>!e.isItemSelected(y)),h=n.selectedItems.value.filter(y=>!b.includes(y));p.forEach(y=>{t.onItemSelectionToggle(g,y,!0)}),h.forEach(y=>{t.onItemSelectionToggle(g,y,!1)})}else b!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(g,n.selectedItems.value,!1),b!=null&&t.onItemSelectionToggle(g,b,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(g,b),n.selectedItems.setControlledValue(b)},l=g=>o.has(g),a=(g,b,p=!1)=>{if(t.disableSelection)return;let h;if(p){const y=dd(n.selectedItems.value);e.isItemSelected(b)?h=y.filter(w=>w!==b):h=[b].concat(y)}else h=t.multiSelect?[b]:b;s(g,h),r.current=b,i.current={}},c=(g,[b,p])=>{if(t.disableSelection||!t.multiSelect)return;let h=dd(n.selectedItems.value).slice();Object.keys(i.current).length>0&&(h=h.filter($=>!i.current[$]));const y=fd(h),w=TA(e,b,p),k=w.filter($=>!y[$]);h=h.concat(k),s(g,h),i.current=fd(w)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),instance:{isItemSelected:l,selectItem:a,selectAllNavigableItems:g=>{if(t.disableSelection||!t.multiSelect)return;const b=IA(e);s(g,b),i.current=fd(b)},expandSelectionRange:(g,b)=>{if(r.current!=null){const[p,h]=I1(e,b,r.current);c(g,[p,h])}},selectRangeFromStartToItem:(g,b)=>{c(g,[uo(e),b])},selectRangeFromItemToEnd:(g,b)=>{c(g,[b,T1(e)])},selectItemFromArrowNavigation:(g,b,p)=>{if(t.disableSelection||!t.multiSelect)return;let h=dd(n.selectedItems.value).slice();Object.keys(i.current).length===0?(h.push(p),i.current={[b]:!0,[p]:!0}):(i.current[b]||(i.current={}),i.current[p]?(h=h.filter(y=>y!==b),delete i.current[b]):(h.push(p),i.current[p]=!0)),s(g,h)}},contextValue:{selection:{multiSelect:t.multiSelect}}}};lu.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const EA=[];lu.getDefaultizedParams=e=>T({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?EA:null)});lu.params={disableSelection:!0,multiSelect:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};const yv=1e3;class RA{constructor(t=yv){this.timeouts=new Map,this.cleanupTimeout=yv,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const i=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,i)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class PA{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class OA{}function _A(e){let t=0;return function(r,i,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new PA:new RA);const[s]=x.useState(new OA),l=x.useRef(null),a=x.useRef();a.current=o;const c=x.useRef(null);if(!l.current&&a.current){const d=(u,f)=>{var v;f.defaultMuiPrevented||(v=a.current)==null||v.call(a,u,f)};l.current=r.$$subscribeEvent(i,d),t+=1,c.current={cleanupToken:t},e.registry.register(s,()=>{var u;(u=l.current)==null||u.call(l),l.current=null,c.current=null},c.current)}else!a.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));x.useEffect(()=>{if(!l.current&&a.current){const d=(u,f)=>{var v;f.defaultMuiPrevented||(v=a.current)==null||v.call(a,u,f)};l.current=r.$$subscribeEvent(i,d)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var d;(d=l.current)==null||d.call(l),l.current=null}},[r,i])}}const AA={registry:null},MA=_A(AA),E1=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?E1(t.shadowRoot):t:null},DA=(e,t)=>{const n=i=>{const o=e.getItemMeta(i);return o&&(o.parentId==null||e.isItemExpanded(o.parentId))};let r;return Array.isArray(t)?r=t.find(n):t!=null&&n(t)&&(r=t),r==null&&(r=uo(e)),r},xp=({instance:e,params:t,state:n,setState:r,models:i,rootRef:o})=>{const s=DA(e,i.selectedItems.value),l=Zt(p=>{const h=typeof p=="function"?p(n.focusedItemId):p;n.focusedItemId!==h&&r(y=>T({},y,{focusedItemId:h}))}),a=x.useCallback(()=>!!o.current&&o.current.contains(E1(Kl(o.current))),[o]),c=x.useCallback(p=>n.focusedItemId===p&&a(),[n.focusedItemId,a]),d=p=>{const h=e.getItemMeta(p);return h&&(h.parentId==null||e.isItemExpanded(h.parentId))},u=(p,h)=>{const y=e.getItemMeta(h),w=document.getElementById(e.getTreeItemIdAttribute(h,y.idAttribute));w&&w.focus(),l(h),t.onItemFocus&&t.onItemFocus(p,h)},f=Zt((p,h)=>{d(h)&&u(p,h)}),v=Zt(p=>{let h;Array.isArray(i.selectedItems.value)?h=i.selectedItems.value.find(d):i.selectedItems.value!=null&&d(i.selectedItems.value)&&(h=i.selectedItems.value),h==null&&(h=uo(e)),u(p,h)}),m=Zt(()=>{if(n.focusedItemId==null)return;const p=e.getItemMeta(n.focusedItemId);if(p){const h=document.getElementById(e.getTreeItemIdAttribute(n.focusedItemId,p.idAttribute));h&&h.blur()}l(null)}),g=p=>p===s;MA(e,"removeItem",({id:p})=>{n.focusedItemId===p&&e.focusDefaultItem(null)});const b=p=>h=>{var y;(y=p.onFocus)==null||y.call(p,h),!h.defaultMuiPrevented&&h.target===h.currentTarget&&e.focusDefaultItem(h)};return{getRootProps:p=>({onFocus:b(p)}),publicAPI:{focusItem:f},instance:{isItemFocused:c,canItemBeTabbed:g,focusItem:f,focusDefaultItem:v,removeFocusedItem:m}}};xp.getInitialState=()=>({focusedItemId:null});xp.params={onItemFocus:!0};function LA(e){return!!e&&e.length===1&&!!e.match(/\S/)}const R1=({instance:e,params:t,state:n})=>{const i=Hc().direction==="rtl",o=x.useRef({}),s=Zt(u=>{o.current=u(o.current)});x.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const u={},f=v=>{u[v.id]=v.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(f),o.current=u},[n.items.itemMetaMap,t.getItemId,e]);const l=(u,f)=>{const v=f.toLowerCase(),m=h=>{const y=ia(e,h);return y===null?uo(e):y};let g=null,b=m(u);const p={};for(;g==null&&!p[b];)o.current[b]===v?g=b:(p[b]=!0,b=m(b));return g},a=u=>!t.disableSelection&&!e.isItemDisabled(u),c=u=>!e.isItemDisabled(u)&&e.isItemExpandable(u);return{instance:{updateFirstCharMap:s,handleItemKeyDown:(u,f)=>{if(u.defaultMuiPrevented||u.altKey||u.currentTarget!==u.target)return;const v=u.ctrlKey||u.metaKey,m=u.key;switch(!0){case(m===" "&&a(f)):{u.preventDefault(),t.multiSelect&&u.shiftKey?e.expandSelectionRange(u,f):t.multiSelect?e.selectItem(u,f,!0):e.selectItem(u,f);break}case m==="Enter":{c(f)?(e.toggleItemExpansion(u,f),u.preventDefault()):a(f)&&(t.multiSelect?(u.preventDefault(),e.selectItem(u,f,!0)):e.isItemSelected(f)||(e.selectItem(u,f),u.preventDefault()));break}case m==="ArrowDown":{const g=ia(e,f);g&&(u.preventDefault(),e.focusItem(u,g),t.multiSelect&&u.shiftKey&&a(g)&&e.selectItemFromArrowNavigation(u,f,g));break}case m==="ArrowUp":{const g=$A(e,f);g&&(u.preventDefault(),e.focusItem(u,g),t.multiSelect&&u.shiftKey&&a(g)&&e.selectItemFromArrowNavigation(u,f,g));break}case(m==="ArrowRight"&&!i||m==="ArrowLeft"&&i):{if(e.isItemExpanded(f)){const g=ia(e,f);g&&(e.focusItem(u,g),u.preventDefault())}else c(f)&&(e.toggleItemExpansion(u,f),u.preventDefault());break}case(m==="ArrowLeft"&&!i||m==="ArrowRight"&&i):{if(c(f)&&e.isItemExpanded(f))e.toggleItemExpansion(u,f),u.preventDefault();else{const g=e.getItemMeta(f).parentId;g&&(e.focusItem(u,g),u.preventDefault())}break}case m==="Home":{a(f)&&t.multiSelect&&v&&u.shiftKey?e.selectRangeFromStartToItem(u,f):e.focusItem(u,uo(e)),u.preventDefault();break}case m==="End":{a(f)&&t.multiSelect&&v&&u.shiftKey?e.selectRangeFromItemToEnd(u,f):e.focusItem(u,T1(e)),u.preventDefault();break}case m==="*":{e.expandAllSiblings(u,f),u.preventDefault();break}case(m==="a"&&v&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(u),u.preventDefault();break}case(!v&&!u.shiftKey&&LA(m)):{const g=l(f,m);g!=null&&(e.focusItem(u,g),u.preventDefault());break}}}}}};R1.params={};const P1=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});P1.params={};const NA=[C1,ou,su,lu,xp,R1,P1],Io=()=>{const e=x.useContext(k1);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(` -`));return e};function FA(e){const{instance:t,selection:{multiSelect:n}}=Io(),r=t.isItemExpandable(e),i=t.isItemExpanded(e),o=t.isItemFocused(e),s=t.isItemSelected(e),l=t.isItemDisabled(e);return{disabled:l,expanded:i,selected:s,focused:o,handleExpansion:u=>{if(!l){o||t.focusItem(u,e);const f=n&&(u.shiftKey||u.ctrlKey||u.metaKey);r&&!(f&&t.isItemExpanded(e))&&t.toggleItemExpansion(u,e)}},handleSelection:u=>{l||(o||t.focusItem(u,e),n&&(u.shiftKey||u.ctrlKey||u.metaKey)?u.shiftKey?t.expandSelectionRange(u,e):t.selectItem(u,e,!0):t.selectItem(u,e))},preventSelection:u=>{(u.shiftKey||u.ctrlKey||u.metaKey||l)&&u.preventDefault()}}}const jA=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown"],O1=x.forwardRef(function(t,n){const{classes:r,className:i,displayIcon:o,expansionIcon:s,icon:l,label:a,itemId:c,onClick:d,onMouseDown:u}=t,f=K(t,jA),{disabled:v,expanded:m,selected:g,focused:b,handleExpansion:p,handleSelection:h,preventSelection:y}=FA(c),w=l||s||o,k=I=>{y(I),u&&u(I)},$=I=>{p(I),h(I),d&&d(I)};return C.jsxs("div",T({},f,{className:le(i,r.root,m&&r.expanded,g&&r.selected,b&&r.focused,v&&r.disabled),onClick:$,onMouseDown:k,ref:n,children:[C.jsx("div",{className:r.iconContainer,children:w}),C.jsx("div",{className:r.label,children:a})]}))});function zA(e){return Ge("MuiTreeItem",e)}const Nn=ze("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label"]),_1=Nb(C.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),A1=Nb(C.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon");function wp(e){const{children:t,itemId:n}=e,{wrapItem:r}=Io();return r({children:t,itemId:n})}wp.propTypes={children:Um.node,itemId:Um.string.isRequired};const BA=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],VA=["ownerState"],HA=["ownerState"],UA=["ownerState"],WA=e=>{const{classes:t}=e;return qe({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],groupTransition:["groupTransition"]},zA,t)},GA=ee("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),qA=ee(O1,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Nn.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Nn.label}`]:t.label}]})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(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})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Nn.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Nn.label}`]:T({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),QA=ee(Yh,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0,paddingLeft:12}),XA=x.forwardRef(function(t,n){const{icons:r,runItemPlugins:i,selection:{multiSelect:o},disabledItemsFocusable:s,instance:l}=Io(),a=Ze({props:t,name:"MuiTreeItem"}),{children:c,className:d,slots:u,slotProps:f,ContentComponent:v=O1,ContentProps:m,itemId:g,id:b,label:p,onClick:h,onMouseDown:y,onBlur:w,onKeyDown:k}=a,$=K(a,BA),{contentRef:I,rootRef:R}=i(a),B=Bt(n,R),M=Bt(m==null?void 0:m.ref,I),P={expandIcon:(u==null?void 0:u.expandIcon)??r.slots.expandIcon??_1,collapseIcon:(u==null?void 0:u.collapseIcon)??r.slots.collapseIcon??A1,endIcon:(u==null?void 0:u.endIcon)??r.slots.endIcon,icon:u==null?void 0:u.icon,groupTransition:u==null?void 0:u.groupTransition},O=he=>Array.isArray(he)?he.length>0&&he.some(O):!!he,j=O(c),z=l.isItemExpanded(g),V=l.isItemFocused(g),q=l.isItemSelected(g),W=l.isItemDisabled(g),_=T({},a,{expanded:z,focused:V,selected:q,disabled:W}),D=WA(_),H=P.groupTransition??void 0,re=En({elementType:H,ownerState:{},externalSlotProps:f==null?void 0:f.groupTransition,additionalProps:{unmountOnExit:!0,in:z,component:"ul",role:"group"},className:D.groupTransition}),ae=z?P.collapseIcon:P.expandIcon,At=En({elementType:ae,ownerState:{},externalSlotProps:he=>z?T({},zn(r.slotProps.collapseIcon,he),zn(f==null?void 0:f.collapseIcon,he)):T({},zn(r.slotProps.expandIcon,he),zn(f==null?void 0:f.expandIcon,he))}),Ie=K(At,VA),et=j&&ae?C.jsx(ae,T({},Ie)):null,U=j?void 0:P.endIcon,xe=En({elementType:U,ownerState:{},externalSlotProps:he=>j?{}:T({},zn(r.slotProps.endIcon,he),zn(f==null?void 0:f.endIcon,he))}),dt=K(xe,HA),Qe=U?C.jsx(U,T({},dt)):null,wn=P.icon,mi=En({elementType:wn,ownerState:{},externalSlotProps:f==null?void 0:f.icon}),au=K(mi,UA),cu=wn?C.jsx(wn,T({},au)):null;let Eo;o?Eo=q:q&&(Eo=!0);function uu(he){!V&&(!W||s)&&he.currentTarget===he.target&&l.focusItem(he,g)}function du(he){w==null||w(he),l.removeFocusedItem()}const fu=he=>{k==null||k(he),l.handleItemKeyDown(he,g)},hu=l.getTreeItemIdAttribute(g,b),pu=l.canItemBeTabbed(g)?0:-1;return C.jsx(wp,{itemId:g,children:C.jsxs(GA,T({className:le(D.root,d),role:"treeitem","aria-expanded":j?z:void 0,"aria-selected":Eo,"aria-disabled":W||void 0,id:hu,tabIndex:pu},$,{ownerState:_,onFocus:uu,onBlur:du,onKeyDown:fu,ref:B,children:[C.jsx(qA,T({as:v,classes:{root:D.content,expanded:D.expanded,selected:D.selected,focused:D.focused,disabled:D.disabled,iconContainer:D.iconContainer,label:D.label},label:p,itemId:g,onClick:h,onMouseDown:y,icon:cu,expansionIcon:et,displayIcon:Qe,ownerState:_},m,{ref:M})),c&&C.jsx(QA,T({as:H},re,{children:c}))]}))})}),YA=["slots","slotProps","apiRef"],KA=e=>{let{props:{slots:t,slotProps:n,apiRef:r},plugins:i,rootRef:o}=e,s=K(e.props,YA);const l={};i.forEach(d=>{Object.assign(l,d.params)});const a={plugins:i,rootRef:o,slots:t??{},slotProps:n??{},apiRef:r},c={};return Object.keys(s).forEach(d=>{const u=s[d];l[d]?a[d]=u:c[d]=u}),{pluginParams:a,slots:t,slotProps:n,otherProps:c}},JA=e=>{const{classes:t}=e;return qe({root:["root"]},pA,t)},ZA=ee("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"});function eM({slots:e,slotProps:t,label:n,id:r,itemId:i,children:o}){const s=(e==null?void 0:e.item)??XA,l=En({elementType:s,externalSlotProps:t==null?void 0:t.item,additionalProps:{itemId:i,id:r,label:n},ownerState:{itemId:i,label:n}});return C.jsx(s,T({},l,{children:o}))}const tM=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiRichTreeView"}),{pluginParams:i,slots:o,slotProps:s,otherProps:l}=KA({props:r,plugins:NA,rootRef:n}),{getRootProps:a,contextValue:c,instance:d}=xA(i),u=JA(r),f=(o==null?void 0:o.root)??ZA,v=En({elementType:f,externalSlotProps:s==null?void 0:s.root,externalForwardedProps:l,className:u.root,getSlotProps:a,ownerState:r}),m=d.getItemsToRender(),g=({label:b,itemId:p,id:h,children:y})=>C.jsx(eM,{slots:o,slotProps:s,label:b,id:h,itemId:p,children:y==null?void 0:y.map(g)},p);return C.jsx(wA,{value:c,children:C.jsx(f,T({},v,{children:m.map(g)}))})}),nM=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r}}=Io(),i={expandable:!!(Array.isArray(t)?t.length:t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e)};return{interactions:{handleExpansion:a=>{if(i.disabled)return;i.focused||n.focusItem(a,e);const c=r&&(a.shiftKey||a.ctrlKey||a.metaKey);i.expandable&&!(c&&n.isItemExpanded(e))&&n.toggleItemExpansion(a,e)},handleSelection:a=>{if(i.disabled)return;i.focused||n.focusItem(a,e),r&&(a.shiftKey||a.ctrlKey||a.metaKey)?a.shiftKey?n.expandSelectionRange(a,e):n.selectItem(a,e,!0):n.selectItem(a,e)}},status:i}},rM=e=>{const{runItemPlugins:t,selection:{multiSelect:n},disabledItemsFocusable:r,instance:i,publicAPI:o}=Io(),{id:s,itemId:l,label:a,children:c,rootRef:d}=e,{rootRef:u,contentRef:f}=t(e),{interactions:v,status:m}=nM({itemId:l,children:c}),g=i.getTreeItemIdAttribute(l,s),b=Bt(d,u),p=P=>O=>{var z;if((z=P.onFocus)==null||z.call(P,O),O.defaultMuiPrevented)return;const j=!m.disabled||r;!m.focused&&j&&O.currentTarget===O.target&&i.focusItem(O,l)},h=P=>O=>{var j;(j=P.onBlur)==null||j.call(P,O),!O.defaultMuiPrevented&&i.removeFocusedItem()},y=P=>O=>{var j;(j=P.onKeyDown)==null||j.call(P,O),!O.defaultMuiPrevented&&i.handleItemKeyDown(O,l)},w=P=>O=>{var j;(j=P.onClick)==null||j.call(P,O),!O.defaultMuiPrevented&&(v.handleExpansion(O),v.handleSelection(O))},k=P=>O=>{var j;(j=P.onMouseDown)==null||j.call(P,O),!O.defaultMuiPrevented&&(O.shiftKey||O.ctrlKey||O.metaKey||m.disabled)&&O.preventDefault()};return{getRootProps:(P={})=>{const O=T({},sr(e),sr(P));let j;return n?j=m.selected:m.selected&&(j=!0),T({},O,{ref:b,role:"treeitem",tabIndex:i.canItemBeTabbed(l)?0:-1,id:g,"aria-expanded":m.expandable?m.expanded:void 0,"aria-selected":j,"aria-disabled":m.disabled||void 0},P,{onFocus:p(O),onBlur:h(O),onKeyDown:y(O)})},getContentProps:(P={})=>{const O=sr(P);return T({},O,P,{ref:f,onClick:w(O),onMouseDown:k(O),status:m})},getGroupTransitionProps:(P={})=>{const O=sr(P);return T({},O,{unmountOnExit:!0,component:"ul",role:"group",in:m.expanded,children:c},P)},getIconContainerProps:(P={})=>{const O=sr(P);return T({},O,P)},getLabelProps:(P={})=>{const O=T({},sr(e),sr(P));return T({},O,{children:a},P)},rootRef:b,status:m,publicAPI:o}};function iM(e){const{slots:t,slotProps:n,status:r}=e,i=Io(),o=T({},i.icons.slots,{expandIcon:i.icons.slots.expandIcon??_1,collapseIcon:i.icons.slots.collapseIcon??A1}),s=i.icons.slotProps;let l;t!=null&&t.icon?l="icon":r.expandable?r.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const a=(t==null?void 0:t[l])??o[l],c=En({elementType:a,externalSlotProps:d=>T({},zn(s[l],d),zn(n==null?void 0:n[l],d)),ownerState:{}});return a?C.jsx(a,T({},c)):null}const oM=ee("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),sM=ee("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>D$(e)&&e!=="status"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`& .${Nn.groupTransition}`]:{margin:0,padding:0,paddingLeft:12},variants:[{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(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})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]}));ee("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1));const lM=ee("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}}),aM=ee(Yh,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0,paddingLeft:12}),cM=({text:e,message:t})=>{const n=Hc(),[r,i]=St.useState(null),[o,s]=x.useState(!1),l=c=>{navigator.clipboard.writeText(e),i(r?null:c.currentTarget),s(!0),setTimeout(()=>{s(!1)},1e3)},a=()=>{s(!1)};return t||(t=`Copied ${e}`),C.jsxs(C.Fragment,{children:[C.jsx("div",{className:"icon",onClick:l,children:C.jsx("i",{className:"codicon codicon-clippy"})}),C.jsx(nR,{id:"placement-popper",open:o,anchor:r,placement:"top-start",offset:4,children:C.jsx(dE,{onClickAway:a,children:C.jsx(aR,{in:o,timeout:1e3,children:C.jsx(Ct,{role:"presentation",sx:{padding:"2px",color:n.palette.secondary.contrastText,backgroundColor:n.palette.secondary.main,borderRadius:"2px"},children:t})})})})]})},uM=ee(sM)(({})=>({padding:0}));function dM(e){return e=e.trim(),e=e.replace(/^0x/,""),"0x"+(e.length>5?e.slice(0,2)+"~"+e.slice(-3):e)}const fM=e=>String(e).split("0x").map((r,i)=>C.jsxs(x.Fragment,{children:[i>0&&C.jsx("span",{style:{fontSize:"9px",filter:"brightness(50%)",fontWeight:"lighter"},children:"0x"}),r]},i)),hM=x.forwardRef(function(t,n){const{workdir:r,id:i,itemId:o,disabled:s,children:l,...a}=t;let{label:c}=t,d=!1,u=!1,f="(empty)",v;const m=o.charAt(0);if(m.length>0){if(m>="0"&&m<="9")d=!0;else if(m===ix)u=!0,o===np&&(f=`To get started, do '${r} publish' in a terminal`);else if(m===rx){const $=o.split("-").pop();if(c&&$){const I=dM($);c=c.toString().replace(ox,I),v=$}}}const{getRootProps:g,getContentProps:b,getIconContainerProps:p,getLabelProps:h,getGroupTransitionProps:y,status:w}=rM({id:i,itemId:o,children:l,label:c,disabled:s,rootRef:n});let k={padding:0,whiteSpace:"nowrap",fontSize:"13px",textOverflow:"ellipsis",overflow:"hidden"};return d?(k.fontSize="11px",k.textTransform="uppercase",k.fontWeight="bold"):u?k.whiteSpace="normal":(k.letterSpacing=0,k.fontFamily="monospace"),C.jsx(wp,{itemId:o,children:C.jsxs(oM,{...g(a),children:[C.jsxs(uM,{...b(),children:[C.jsx(lM,{...p(),children:C.jsx(iM,{status:w})}),u?C.jsx(Rn,{variant:"caption",sx:k,...h(),children:f}):C.jsxs(Ct,{display:"flex",overflow:"hidden",justifyContent:"space-between",width:"100%",children:[C.jsx(Ct,{flexGrow:1,overflow:"hidden",children:C.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:C.jsx("span",{style:k,...h(),children:fM(c)})})}),v&&C.jsx(Ct,{width:20,children:C.jsx(cM,{text:v,message:"Copied!"})})]})]}),l&&C.jsx(aM,{...y()})]})})});function pM({items:e,workdir:t}){return C.jsx(tM,{"aria-label":"icon expansion",sx:{position:"relative"},defaultExpandedItems:["3"],items:e,slots:{item:n=>C.jsx(hM,{...n,workdir:t})}})}const M1=[{id:Ba,label:"Recent Packages",children:[{id:np,label:""}]}];class _f{constructor(t,n){we(this,"workdir");we(this,"workdirIdx");we(this,"methodUuid");we(this,"dataUuid");we(this,"tree");this.workdir=t,this.workdirIdx=n,this.methodUuid="",this.dataUuid="",this.tree=M1}}function mM(e,t){if(!t.isLoaded)return e.tree==M1?e:new _f(e.workdir,e.workdirIdx);if(e.methodUuid===t.getMethodUuid()&&e.dataUuid===t.getDataUuid())return e;let n=new _f(e.workdir,e.workdirIdx);n.methodUuid=t.getMethodUuid(),n.dataUuid=t.getDataUuid(),n.tree=[];let r=t.getJson();if(!r)return console.log("Missing json in workdir_json: "+JSON.stringify(t)),e;if(!r.moveConfigs)return console.log("Missing moveConfigs in workdir_json: "+JSON.stringify(t)),e;const i=r.moveConfigs;let o=[],s=[];for(let l in i){const a=i[l];if(a.latestPackage!=null){let c=`${Ba}-${l}`,d=hd(c,a.latestPackage);d&&o.push(d),c=`${Xu}-${l}`,d=hd(c,a.latestPackage),d&&s.push(d)}if(a.olderPackages!=null)for(let c of a.olderPackages){const d=`${Xu}-${l}`,u=hd(d,c);u&&s.push(u)}}return o.length==0&&(o=[{id:np,label:""}]),n.tree.push({id:Ba,label:"Recent Packages",children:o}),n.tree.push({id:Xu,label:"All Packages",children:s}),n}function hd(e,t){const n=t.packageName;if(!n){console.log("Missing packageName in package json: "+JSON.stringify(t));return}const r=t.packageId;if(!r){console.log("Missing packageId in package json: "+JSON.stringify(t));return}const i=`${ox}::${n}`;return{id:`${rx}-${e}-${r}`,label:i}}function gM({workdir:e,workdirIdx:t,packagesTrigger:n,packagesJson:r}){const[i,o]=x.useState(new _f(e,t));return x.useEffect(()=>{try{const s=mM(i,r);s!==i&&o(s)}catch(s){console.error(`Error updating ExplorerTreeView: ${s}`)}},[e,t,n,r]),C.jsx(C.Fragment,{children:C.jsx(pM,{items:i.tree,workdir:e})})}function D1(e){const t=e.issue;return t==Lg?C.jsxs(Rn,{variant:"body2",children:[Lg,C.jsx("br",{}),"Check ",C.jsx(wf,{href:"https://suibase.io/how-to/install",children:"https://suibase.io/how-to/install"})]}):t==Ng?C.jsxs(Rn,{variant:"body2",children:[Ng,C.jsx("br",{}),"Please install Sui prerequisites",C.jsx("br",{}),"Check ",C.jsx(wf,{href:"https://docs.sui.io/guides/developer/getting-started/sui-install",children:"https://docs.sui.io"})]}):C.jsx(Rn,{variant:"body2",children:t})}const vM=()=>{const{common:e,workdirs:t,commonTrigger:n,packagesTrigger:r}=lx(Sf,{trackPackages:!0}),[i,o]=x.useState(""),[s,l]=x.useState(e.current.activeWorkdir),a=c=>{const d=c.target.value;if(d!==e.current.activeWorkdir){o(d),l(d);const u=Kr.indexOf(d);u!==-1&&ss.postMessage(new sx(Sf,u,"set-active"))}else o(""),l(e.current.activeWorkdir)};return x.useEffect(()=>(i!==""?i===e.current.activeWorkdir&&(o(""),l(e.current.activeWorkdir)):s!==e.current.activeWorkdir&&l(e.current.activeWorkdir),()=>{}),[i,s,e.current.activeWorkdir,n]),C.jsxs(C.Fragment,{children:[e.current.setupIssue&&C.jsx(D1,{issue:e.current.setupIssue}),C.jsx(Ct,{flexDirection:"column",justifyContent:"center",width:"100%",paddingLeft:1,paddingTop:1,children:e.current.activeLoaded&&!e.current.setupIssue?C.jsxs(C.Fragment,{children:[C.jsx(fA,{value:s,onChange:a,children:Kr.map((c,d)=>C.jsx(hA,{value:c,selected:c===s,children:kf[d]},c))}),i&&C.jsx(za,{size:15,style:{marginLeft:"3px"}})]}):C.jsx(za,{size:15})}),C.jsx(Ct,{display:"flex",justifyContent:"center",width:"100%",paddingTop:1,children:C.jsxs(Rn,{variant:"caption",sx:{alignContent:"center",fontSize:"9px"},children:["Need help? Try the ",C.jsx(wf,{color:"inherit",href:"https://suibase.io/community/",target:"_blank",rel:"noopener noreferrer",children:"sui community"})]})}),C.jsx(Ct,{width:"100%",paddingTop:1,children:e.current.activeLoaded&&C.jsx(gM,{packagesTrigger:r,packagesJson:t[e.current.activeWorkdirIdx].workdirPackages,workdir:e.current.activeWorkdir,workdirIdx:e.current.activeWorkdirIdx})})]})},yM=ee(KR)(({theme:e})=>({width:28,height:16,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:e.palette.mode==="dark"?"#177ddc":"#1890ff"}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:12,height:12,borderRadius:6,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:16/2,opacity:1,backgroundColor:"rgba(255,255,255,.35)",boxSizing:"border-box"}}));class bM{constructor(){we(this,"showSpinner");we(this,"spinnerForSwitch");we(this,"requestedChange");we(this,"switchState");we(this,"switchSkeleton");we(this,"spinnerForUpdate");this.showSpinner=!1,this.spinnerForSwitch=!1,this.spinnerForUpdate=!1,this.requestedChange=void 0,this.switchState=!1,this.switchSkeleton=!0}}const xM=()=>{const{commonTrigger:e,statusTrigger:t,common:n,workdirs:r}=lx(Cf,{trackStatus:!0}),i={inputProps:{"aria-label":"workdir on/off"}},[o,s]=x.useState(Kr.map(()=>new bM)),l=(d,u)=>{s(f=>f.map((v,m)=>m===d?{...v,...u}:v))},a=d=>{switch(d.workdirStatus.status){case"DEGRADED":case"OK":return!0;default:return!1}},c=(d,u)=>{const f=r[d],v=a(f);if(u!==v){l(d,{requestedChange:u,switchState:u,spinnerForSwitch:!0});const m=u?"start":"stop";ss.postMessage(new sx(Cf,d,m))}else l(d,{requestedChange:void 0,switchState:v,spinnerForSwitch:!1})};return x.useEffect(()=>(o.forEach((d,u)=>{const f=r[u],v=a(f);d.requestedChange!==void 0?d.requestedChange===v?l(u,{requestedChange:void 0,switchState:v,spinnerForSwitch:!1}):d.spinnerForSwitch||l(u,{spinnerForSwitch:!0}):d.switchState!==v&&l(u,{switchState:v,spinnerForSwitch:!1});const m=d.spinnerForSwitch||d.spinnerForUpdate;d.showSpinner!==m&&l(u,{showSpinner:m})}),()=>{}),[e,t,r,o]),C.jsxs(Ct,{sx:{paddingLeft:1},children:[n.current.setupIssue&&C.jsx(D1,{issue:n.current.setupIssue}),n.current.activeLoaded&&!n.current.setupIssue?C.jsxs(C.Fragment,{children:[C.jsx(Rn,{variant:"body1",children:"Services"}),C.jsx(yP,{children:C.jsxs(nP,{"aria-label":"Suibase Services",sx:{minWidth:420,maxWidth:420},size:"small",children:[C.jsx(SP,{children:C.jsxs(Dg,{children:[C.jsx(ir,{style:{width:"115px"}}),C.jsx(ir,{align:"center",style:{width:"105px"},children:"Status"}),C.jsx(ir,{style:{width:"100px"},children:"Version"}),C.jsx(ir,{style:{width:"100px"}})]})}),C.jsx(aP,{children:o.map((d,u)=>{const f=r[u];return C.jsxs(Dg,{sx:{p:0,m:0,"&:last-child td, &:last-child th":{border:0}},children:[C.jsx(ir,{sx:{width:115,maxWidth:115,p:0,m:0},children:C.jsxs(Ct,{display:"flex",alignItems:"center",flexWrap:"nowrap",children:[C.jsx(Ct,{width:"10px",display:"flex",justifyContent:"left",alignItems:"center",children:d.showSpinner&&C.jsx(za,{size:9})}),C.jsx(Ct,{width:"50px",display:"flex",justifyContent:"center",alignItems:"center",children:C.jsx(yM,{...i,checked:d.switchState,onChange:v=>c(u,v.target.checked)})}),C.jsx(Ct,{width:"50px",display:"flex",justifyContent:"left",alignItems:"center",children:C.jsx(mR,{variant:"dot",color:"info",anchorOrigin:{vertical:"top",horizontal:"left"},invisible:!f.workdirStatus.isLoaded||u!==n.current.activeWorkdirIdx,children:C.jsx(Rn,{variant:"body2",sx:{pl:"2px"},children:kf[u]})})})]})}),C.jsx(ir,{align:"center",sx:{width:105,maxWidth:105,p:0,m:0},children:C.jsx(Rn,{variant:"subtitle2",children:f.workdirStatus.status})}),C.jsx(ir,{children:C.jsx(Rn,{variant:"body2",children:f.workdirStatus.isLoaded&&f.workdirStatus.suiClientVersionShort})}),C.jsx(ir,{})]},kf[u])})})]})})]}):C.jsx(za,{size:15})]})},Dl=e=>{try{return getComputedStyle(document.documentElement).getPropertyValue(e).trim()||Sn[500]}catch(t){return console.error(`Error getting CSS variable ${e}: ${t}`),Sn[500]}},wM=e=>{const[t,n]=x.useState(getComputedStyle(document.documentElement).getPropertyValue(e));return x.useEffect(()=>{const r=setInterval(()=>{const i=getComputedStyle(document.documentElement).getPropertyValue(e);i!==t&&n(i)},1e3);return()=>clearInterval(r)},[t,e]),t};function kM(){const{setMessage:e}=_0(),t=wM("--vscode-editor-foreground"),n=St.useMemo(()=>qh({components:{MuiCssBaseline:{styleOverrides:{body:{padding:0}}}},palette:{background:{default:Dl("--vscode-editor-background")},text:{primary:Dl("--vscode-editor-foreground")},primary:{main:Dl("--vscode-editor-foreground")},secondary:{main:Dl("--vscode-editor-foreground")}}}),[t]);x.useEffect(()=>{const i=o=>{o.data&&e(o.data)};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)},[e]);let r;switch(globalThis.suibase_view_key){case Cf:r=C.jsx(xM,{});break;case MP:r=C.jsx(PP,{});break;case Sf:r=C.jsx(vM,{});break;default:r=null}return C.jsx(C.Fragment,{children:C.jsxs(hI,{theme:n,children:[C.jsx(DR,{}),C.jsx("main",{children:r})]})})}Gx().register(dA);md.createRoot(document.getElementById("root")).render(C.jsxs(C.Fragment,{children:[C.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),C.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),C.jsx("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"}),C.jsx(St.StrictMode,{children:C.jsx(mC,{children:C.jsx(kM,{})})})]})); +`));i[u]={id:u,label:f,parentId:d,idAttribute:void 0,expandable:!!((g=c.children)!=null&&g.length),disabled:t?t(c):!1},o[u]=c,s[u]=[];const v=d??ds;s[v]||(s[v]=[]),s[v].push(u),(m=c.children)==null||m.forEach(b=>l(b,u))};e.forEach(c=>l(c,null));const a={};return Object.keys(s).forEach(c=>{a[c]=SA(s[c])}),{itemMetaMap:i,itemMap:o,itemOrderedChildrenIds:s,itemChildrenIndexes:a}},su=({instance:e,params:t,state:n,setState:r})=>{const i=x.useCallback(g=>n.items.itemMetaMap[g],[n.items.itemMetaMap]),o=x.useCallback(g=>n.items.itemMap[g],[n.items.itemMap]),s=x.useCallback(g=>{if(g==null)return!1;let m=e.getItemMeta(g);if(!m)return!1;if(m.disabled)return!0;for(;m.parentId!=null;)if(m=e.getItemMeta(m.parentId),m.disabled)return!0;return!1},[e]),l=x.useCallback(g=>{const m=e.getItemMeta(g).parentId??ds;return n.items.itemChildrenIndexes[m][g]},[e,n.items.itemChildrenIndexes]),a=x.useCallback(g=>n.items.itemOrderedChildrenIds[g??ds]??[],[n.items.itemOrderedChildrenIds]),c=g=>t.disabledItemsFocusable?!0:!e.isItemDisabled(g),d=x.useRef(!1),u=x.useCallback(()=>{d.current=!0},[]),f=x.useCallback(()=>d.current,[]);return x.useEffect(()=>{e.areItemUpdatesPrevented()||r(g=>{const m=S1({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(g.items.itemMetaMap).forEach(b=>{m.itemMetaMap[b.id]||CA(e,"removeItem",{id:b.id})}),T({},g,{items:m})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{publicAPI:{getItem:o},instance:{getItemMeta:i,getItem:o,getItemsToRender:()=>{const g=m=>{const b=n.items.itemMetaMap[m];return{label:b.label,itemId:b.id,id:b.idAttribute,children:n.items.itemOrderedChildrenIds[m].map(g)}};return n.items.itemOrderedChildrenIds[ds].map(g)},getItemIndex:l,getItemOrderedChildrenIds:a,isItemDisabled:s,isItemNavigable:c,preventItemUpdates:u,areItemUpdatesPrevented:f},contextValue:{disabledItemsFocusable:t.disabledItemsFocusable}}};su.getInitialState=e=>({items:S1({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});su.getDefaultizedParams=e=>T({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1});su.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0};const lu=({instance:e,params:t,models:n})=>{const r=x.useMemo(()=>{const d=new Map;return n.expandedItems.value.forEach(u=>{d.set(u,!0)}),d},[n.expandedItems.value]),i=(d,u)=>{var f;(f=t.onExpandedItemsChange)==null||f.call(t,d,u),n.expandedItems.setControlledValue(u)},o=x.useCallback(d=>r.has(d),[r]),s=x.useCallback(d=>{var u;return!!((u=e.getItemMeta(d))!=null&&u.expandable)},[e]),l=Zt((d,u)=>{const f=e.isItemExpanded(u);e.setItemExpansion(d,u,!f)}),a=Zt((d,u,f)=>{if(e.isItemExpanded(u)===f)return;let g;f?g=[u].concat(n.expandedItems.value):g=n.expandedItems.value.filter(m=>m!==u),t.onItemExpansionToggle&&t.onItemExpansionToggle(d,u,f),i(d,g)});return{publicAPI:{setItemExpansion:a},instance:{isItemExpanded:o,isItemExpandable:s,setItemExpansion:a,toggleItemExpansion:l,expandAllSiblings:(d,u)=>{const f=e.getItemMeta(u),g=e.getItemOrderedChildrenIds(f.parentId).filter(b=>e.isItemExpandable(b)&&!e.isItemExpanded(b)),m=n.expandedItems.value.concat(g);g.length>0&&(t.onItemExpansionToggle&&g.forEach(b=>{t.onItemExpansionToggle(d,b,!0)}),i(d,m))}}}};lu.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const $A=[];lu.getDefaultizedParams=e=>T({},e,{defaultExpandedItems:e.defaultExpandedItems??$A});lu.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0};const $1=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},TA=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),i=e.getItemIndex(t);if(i===0)return n.parentId;let o=r[i-1],s=$1(e,e.getItemOrderedChildrenIds(o));for(;e.isItemExpanded(o)&&s!=null;)o=s,s=e.getItemOrderedChildrenIds(o).find(e.isItemNavigable);return o},oa=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),i=e.getItemIndex(n.id);if(i{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=$1(e,n);if(r==null)return t;t=r}return t},fo=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),I1=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),i=e.getItemMeta(n);if(r.parentId===i.id||i.parentId===r.id)return i.parentId===r.id?[r.id,i.id]:[i.id,r.id];const o=[r.id],s=[i.id];let l=r.parentId,a=i.parentId,c=s.indexOf(l)!==-1,d=o.indexOf(a)!==-1,u=!0,f=!0;for(;!d&&!c;)u&&(o.push(l),c=s.indexOf(l)!==-1,u=l!==null,!c&&u&&(l=e.getItemMeta(l).parentId)),f&&!c&&(s.push(a),d=o.indexOf(a)!==-1,f=a!==null,!d&&f&&(a=e.getItemMeta(a).parentId));const v=c?l:a,g=e.getItemOrderedChildrenIds(v),m=o[o.indexOf(v)-1],b=s[s.indexOf(v)-1];return g.indexOf(m){const r=a=>{if(e.isItemExpandable(a)&&e.isItemExpanded(a))return e.getItemOrderedChildrenIds(a)[0];let c=e.getItemMeta(a);for(;c!=null;){const d=e.getItemOrderedChildrenIds(c.parentId),u=e.getItemIndex(c.id);if(u{let t=fo(e);const n=[];for(;t!=null;)n.push(t),t=oa(e,t);return n},fd=e=>Array.isArray(e)?e:e!=null?[e]:[],hd=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},au=({instance:e,params:t,models:n})=>{const r=x.useRef(null),i=x.useRef({}),o=x.useMemo(()=>{const m=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(b=>{m.set(b,!0)}):n.selectedItems.value!=null&&m.set(n.selectedItems.value,!0),m},[n.selectedItems.value]),s=(m,b)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const p=b.filter(y=>!e.isItemSelected(y)),h=n.selectedItems.value.filter(y=>!b.includes(y));p.forEach(y=>{t.onItemSelectionToggle(m,y,!0)}),h.forEach(y=>{t.onItemSelectionToggle(m,y,!1)})}else b!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(m,n.selectedItems.value,!1),b!=null&&t.onItemSelectionToggle(m,b,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(m,b),n.selectedItems.setControlledValue(b)},l=m=>o.has(m),a=(m,b,p=!1)=>{if(t.disableSelection)return;let h;if(p){const y=fd(n.selectedItems.value);e.isItemSelected(b)?h=y.filter(w=>w!==b):h=[b].concat(y)}else h=t.multiSelect?[b]:b;s(m,h),r.current=b,i.current={}},c=(m,[b,p])=>{if(t.disableSelection||!t.multiSelect)return;let h=fd(n.selectedItems.value).slice();Object.keys(i.current).length>0&&(h=h.filter($=>!i.current[$]));const y=hd(h),w=IA(e,b,p),k=w.filter($=>!y[$]);h=h.concat(k),s(m,h),i.current=hd(w)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),instance:{isItemSelected:l,selectItem:a,selectAllNavigableItems:m=>{if(t.disableSelection||!t.multiSelect)return;const b=EA(e);s(m,b),i.current=hd(b)},expandSelectionRange:(m,b)=>{if(r.current!=null){const[p,h]=I1(e,b,r.current);c(m,[p,h])}},selectRangeFromStartToItem:(m,b)=>{c(m,[fo(e),b])},selectRangeFromItemToEnd:(m,b)=>{c(m,[b,T1(e)])},selectItemFromArrowNavigation:(m,b,p)=>{if(t.disableSelection||!t.multiSelect)return;let h=fd(n.selectedItems.value).slice();Object.keys(i.current).length===0?(h.push(p),i.current={[b]:!0,[p]:!0}):(i.current[b]||(i.current={}),i.current[p]?(h=h.filter(y=>y!==b),delete i.current[b]):(h.push(p),i.current[p]=!0)),s(m,h)}},contextValue:{selection:{multiSelect:t.multiSelect}}}};au.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const RA=[];au.getDefaultizedParams=e=>T({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?RA:null)});au.params={disableSelection:!0,multiSelect:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};const yv=1e3;class PA{constructor(t=yv){this.timeouts=new Map,this.cleanupTimeout=yv,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const i=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,i)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class OA{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class _A{}function AA(e){let t=0;return function(r,i,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new OA:new PA);const[s]=x.useState(new _A),l=x.useRef(null),a=x.useRef();a.current=o;const c=x.useRef(null);if(!l.current&&a.current){const d=(u,f)=>{var v;f.defaultMuiPrevented||(v=a.current)==null||v.call(a,u,f)};l.current=r.$$subscribeEvent(i,d),t+=1,c.current={cleanupToken:t},e.registry.register(s,()=>{var u;(u=l.current)==null||u.call(l),l.current=null,c.current=null},c.current)}else!a.current&&l.current&&(l.current(),l.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));x.useEffect(()=>{if(!l.current&&a.current){const d=(u,f)=>{var v;f.defaultMuiPrevented||(v=a.current)==null||v.call(a,u,f)};l.current=r.$$subscribeEvent(i,d)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var d;(d=l.current)==null||d.call(l),l.current=null}},[r,i])}}const DA={registry:null},MA=AA(DA),E1=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?E1(t.shadowRoot):t:null},LA=(e,t)=>{const n=i=>{const o=e.getItemMeta(i);return o&&(o.parentId==null||e.isItemExpanded(o.parentId))};let r;return Array.isArray(t)?r=t.find(n):t!=null&&n(t)&&(r=t),r==null&&(r=fo(e)),r},xp=({instance:e,params:t,state:n,setState:r,models:i,rootRef:o})=>{const s=LA(e,i.selectedItems.value),l=Zt(p=>{const h=typeof p=="function"?p(n.focusedItemId):p;n.focusedItemId!==h&&r(y=>T({},y,{focusedItemId:h}))}),a=x.useCallback(()=>!!o.current&&o.current.contains(E1(Jl(o.current))),[o]),c=x.useCallback(p=>n.focusedItemId===p&&a(),[n.focusedItemId,a]),d=p=>{const h=e.getItemMeta(p);return h&&(h.parentId==null||e.isItemExpanded(h.parentId))},u=(p,h)=>{const y=e.getItemMeta(h),w=document.getElementById(e.getTreeItemIdAttribute(h,y.idAttribute));w&&w.focus(),l(h),t.onItemFocus&&t.onItemFocus(p,h)},f=Zt((p,h)=>{d(h)&&u(p,h)}),v=Zt(p=>{let h;Array.isArray(i.selectedItems.value)?h=i.selectedItems.value.find(d):i.selectedItems.value!=null&&d(i.selectedItems.value)&&(h=i.selectedItems.value),h==null&&(h=fo(e)),u(p,h)}),g=Zt(()=>{if(n.focusedItemId==null)return;const p=e.getItemMeta(n.focusedItemId);if(p){const h=document.getElementById(e.getTreeItemIdAttribute(n.focusedItemId,p.idAttribute));h&&h.blur()}l(null)}),m=p=>p===s;MA(e,"removeItem",({id:p})=>{n.focusedItemId===p&&e.focusDefaultItem(null)});const b=p=>h=>{var y;(y=p.onFocus)==null||y.call(p,h),!h.defaultMuiPrevented&&h.target===h.currentTarget&&e.focusDefaultItem(h)};return{getRootProps:p=>({onFocus:b(p)}),publicAPI:{focusItem:f},instance:{isItemFocused:c,canItemBeTabbed:m,focusItem:f,focusDefaultItem:v,removeFocusedItem:g}}};xp.getInitialState=()=>({focusedItemId:null});xp.params={onItemFocus:!0};function NA(e){return!!e&&e.length===1&&!!e.match(/\S/)}const R1=({instance:e,params:t,state:n})=>{const i=Wc().direction==="rtl",o=x.useRef({}),s=Zt(u=>{o.current=u(o.current)});x.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const u={},f=v=>{u[v.id]=v.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(f),o.current=u},[n.items.itemMetaMap,t.getItemId,e]);const l=(u,f)=>{const v=f.toLowerCase(),g=h=>{const y=oa(e,h);return y===null?fo(e):y};let m=null,b=g(u);const p={};for(;m==null&&!p[b];)o.current[b]===v?m=b:(p[b]=!0,b=g(b));return m},a=u=>!t.disableSelection&&!e.isItemDisabled(u),c=u=>!e.isItemDisabled(u)&&e.isItemExpandable(u);return{instance:{updateFirstCharMap:s,handleItemKeyDown:(u,f)=>{if(u.defaultMuiPrevented||u.altKey||u.currentTarget!==u.target)return;const v=u.ctrlKey||u.metaKey,g=u.key;switch(!0){case(g===" "&&a(f)):{u.preventDefault(),t.multiSelect&&u.shiftKey?e.expandSelectionRange(u,f):t.multiSelect?e.selectItem(u,f,!0):e.selectItem(u,f);break}case g==="Enter":{c(f)?(e.toggleItemExpansion(u,f),u.preventDefault()):a(f)&&(t.multiSelect?(u.preventDefault(),e.selectItem(u,f,!0)):e.isItemSelected(f)||(e.selectItem(u,f),u.preventDefault()));break}case g==="ArrowDown":{const m=oa(e,f);m&&(u.preventDefault(),e.focusItem(u,m),t.multiSelect&&u.shiftKey&&a(m)&&e.selectItemFromArrowNavigation(u,f,m));break}case g==="ArrowUp":{const m=TA(e,f);m&&(u.preventDefault(),e.focusItem(u,m),t.multiSelect&&u.shiftKey&&a(m)&&e.selectItemFromArrowNavigation(u,f,m));break}case(g==="ArrowRight"&&!i||g==="ArrowLeft"&&i):{if(e.isItemExpanded(f)){const m=oa(e,f);m&&(e.focusItem(u,m),u.preventDefault())}else c(f)&&(e.toggleItemExpansion(u,f),u.preventDefault());break}case(g==="ArrowLeft"&&!i||g==="ArrowRight"&&i):{if(c(f)&&e.isItemExpanded(f))e.toggleItemExpansion(u,f),u.preventDefault();else{const m=e.getItemMeta(f).parentId;m&&(e.focusItem(u,m),u.preventDefault())}break}case g==="Home":{a(f)&&t.multiSelect&&v&&u.shiftKey?e.selectRangeFromStartToItem(u,f):e.focusItem(u,fo(e)),u.preventDefault();break}case g==="End":{a(f)&&t.multiSelect&&v&&u.shiftKey?e.selectRangeFromItemToEnd(u,f):e.focusItem(u,T1(e)),u.preventDefault();break}case g==="*":{e.expandAllSiblings(u,f),u.preventDefault();break}case(g==="a"&&v&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(u),u.preventDefault();break}case(!v&&!u.shiftKey&&NA(g)):{const m=l(f,g);m!=null&&(e.focusItem(u,m),u.preventDefault());break}}}}}};R1.params={};const P1=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});P1.params={};const FA=[C1,su,lu,au,xp,R1,P1],Eo=()=>{const e=x.useContext(k1);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(` +`));return e};function jA(e){const{instance:t,selection:{multiSelect:n}}=Eo(),r=t.isItemExpandable(e),i=t.isItemExpanded(e),o=t.isItemFocused(e),s=t.isItemSelected(e),l=t.isItemDisabled(e);return{disabled:l,expanded:i,selected:s,focused:o,handleExpansion:u=>{if(!l){o||t.focusItem(u,e);const f=n&&(u.shiftKey||u.ctrlKey||u.metaKey);r&&!(f&&t.isItemExpanded(e))&&t.toggleItemExpansion(u,e)}},handleSelection:u=>{l||(o||t.focusItem(u,e),n&&(u.shiftKey||u.ctrlKey||u.metaKey)?u.shiftKey?t.expandSelectionRange(u,e):t.selectItem(u,e,!0):t.selectItem(u,e))},preventSelection:u=>{(u.shiftKey||u.ctrlKey||u.metaKey||l)&&u.preventDefault()}}}const zA=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown"],O1=x.forwardRef(function(t,n){const{classes:r,className:i,displayIcon:o,expansionIcon:s,icon:l,label:a,itemId:c,onClick:d,onMouseDown:u}=t,f=K(t,zA),{disabled:v,expanded:g,selected:m,focused:b,handleExpansion:p,handleSelection:h,preventSelection:y}=jA(c),w=l||s||o,k=I=>{y(I),u&&u(I)},$=I=>{p(I),h(I),d&&d(I)};return C.jsxs("div",T({},f,{className:le(i,r.root,g&&r.expanded,m&&r.selected,b&&r.focused,v&&r.disabled),onClick:$,onMouseDown:k,ref:n,children:[C.jsx("div",{className:r.iconContainer,children:w}),C.jsx("div",{className:r.label,children:a})]}))});function BA(e){return Ge("MuiTreeItem",e)}const Nn=ze("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label"]),_1=Nb(C.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"TreeViewExpandIcon"),A1=Nb(C.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"TreeViewCollapseIcon");function wp(e){const{children:t,itemId:n}=e,{wrapItem:r}=Eo();return r({children:t,itemId:n})}wp.propTypes={children:Um.node,itemId:Um.string.isRequired};const VA=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],HA=["ownerState"],UA=["ownerState"],WA=["ownerState"],GA=e=>{const{classes:t}=e;return qe({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],groupTransition:["groupTransition"]},BA,t)},qA=ee("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),QA=ee(O1,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Nn.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Nn.label}`]:t.label}]})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Nn.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Nn.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mr(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})`:mr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Nn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Nn.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Nn.label}`]:T({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),XA=ee(Yh,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0,paddingLeft:12}),YA=x.forwardRef(function(t,n){const{icons:r,runItemPlugins:i,selection:{multiSelect:o},disabledItemsFocusable:s,instance:l}=Eo(),a=Ze({props:t,name:"MuiTreeItem"}),{children:c,className:d,slots:u,slotProps:f,ContentComponent:v=O1,ContentProps:g,itemId:m,id:b,label:p,onClick:h,onMouseDown:y,onBlur:w,onKeyDown:k}=a,$=K(a,VA),{contentRef:I,rootRef:R}=i(a),B=Bt(n,R),D=Bt(g==null?void 0:g.ref,I),P={expandIcon:(u==null?void 0:u.expandIcon)??r.slots.expandIcon??_1,collapseIcon:(u==null?void 0:u.collapseIcon)??r.slots.collapseIcon??A1,endIcon:(u==null?void 0:u.endIcon)??r.slots.endIcon,icon:u==null?void 0:u.icon,groupTransition:u==null?void 0:u.groupTransition},O=he=>Array.isArray(he)?he.length>0&&he.some(O):!!he,j=O(c),z=l.isItemExpanded(m),V=l.isItemFocused(m),q=l.isItemSelected(m),W=l.isItemDisabled(m),_=T({},a,{expanded:z,focused:V,selected:q,disabled:W}),M=GA(_),H=P.groupTransition??void 0,re=Rn({elementType:H,ownerState:{},externalSlotProps:f==null?void 0:f.groupTransition,additionalProps:{unmountOnExit:!0,in:z,component:"ul",role:"group"},className:M.groupTransition}),ae=z?P.collapseIcon:P.expandIcon,At=Rn({elementType:ae,ownerState:{},externalSlotProps:he=>z?T({},zn(r.slotProps.collapseIcon,he),zn(f==null?void 0:f.collapseIcon,he)):T({},zn(r.slotProps.expandIcon,he),zn(f==null?void 0:f.expandIcon,he))}),Ie=K(At,HA),et=j&&ae?C.jsx(ae,T({},Ie)):null,U=j?void 0:P.endIcon,xe=Rn({elementType:U,ownerState:{},externalSlotProps:he=>j?{}:T({},zn(r.slotProps.endIcon,he),zn(f==null?void 0:f.endIcon,he))}),dt=K(xe,UA),Qe=U?C.jsx(U,T({},dt)):null,kn=P.icon,mi=Rn({elementType:kn,ownerState:{},externalSlotProps:f==null?void 0:f.icon}),cu=K(mi,WA),uu=kn?C.jsx(kn,T({},cu)):null;let Ro;o?Ro=q:q&&(Ro=!0);function du(he){!V&&(!W||s)&&he.currentTarget===he.target&&l.focusItem(he,m)}function fu(he){w==null||w(he),l.removeFocusedItem()}const hu=he=>{k==null||k(he),l.handleItemKeyDown(he,m)},pu=l.getTreeItemIdAttribute(m,b),mu=l.canItemBeTabbed(m)?0:-1;return C.jsx(wp,{itemId:m,children:C.jsxs(qA,T({className:le(M.root,d),role:"treeitem","aria-expanded":j?z:void 0,"aria-selected":Ro,"aria-disabled":W||void 0,id:pu,tabIndex:mu},$,{ownerState:_,onFocus:du,onBlur:fu,onKeyDown:hu,ref:B,children:[C.jsx(QA,T({as:v,classes:{root:M.content,expanded:M.expanded,selected:M.selected,focused:M.focused,disabled:M.disabled,iconContainer:M.iconContainer,label:M.label},label:p,itemId:m,onClick:h,onMouseDown:y,icon:uu,expansionIcon:et,displayIcon:Qe,ownerState:_},g,{ref:D})),c&&C.jsx(XA,T({as:H},re,{children:c}))]}))})}),KA=["slots","slotProps","apiRef"],JA=e=>{let{props:{slots:t,slotProps:n,apiRef:r},plugins:i,rootRef:o}=e,s=K(e.props,KA);const l={};i.forEach(d=>{Object.assign(l,d.params)});const a={plugins:i,rootRef:o,slots:t??{},slotProps:n??{},apiRef:r},c={};return Object.keys(s).forEach(d=>{const u=s[d];l[d]?a[d]=u:c[d]=u}),{pluginParams:a,slots:t,slotProps:n,otherProps:c}},ZA=e=>{const{classes:t}=e;return qe({root:["root"]},mA,t)},eD=ee("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"});function tD({slots:e,slotProps:t,label:n,id:r,itemId:i,children:o}){const s=(e==null?void 0:e.item)??YA,l=Rn({elementType:s,externalSlotProps:t==null?void 0:t.item,additionalProps:{itemId:i,id:r,label:n},ownerState:{itemId:i,label:n}});return C.jsx(s,T({},l,{children:o}))}const nD=x.forwardRef(function(t,n){const r=Ze({props:t,name:"MuiRichTreeView"}),{pluginParams:i,slots:o,slotProps:s,otherProps:l}=JA({props:r,plugins:FA,rootRef:n}),{getRootProps:a,contextValue:c,instance:d}=wA(i),u=ZA(r),f=(o==null?void 0:o.root)??eD,v=Rn({elementType:f,externalSlotProps:s==null?void 0:s.root,externalForwardedProps:l,className:u.root,getSlotProps:a,ownerState:r}),g=d.getItemsToRender(),m=({label:b,itemId:p,id:h,children:y})=>C.jsx(tD,{slots:o,slotProps:s,label:b,id:h,itemId:p,children:y==null?void 0:y.map(m)},p);return C.jsx(kA,{value:c,children:C.jsx(f,T({},v,{children:g.map(m)}))})}),rD=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r}}=Eo(),i={expandable:!!(Array.isArray(t)?t.length:t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e)};return{interactions:{handleExpansion:a=>{if(i.disabled)return;i.focused||n.focusItem(a,e);const c=r&&(a.shiftKey||a.ctrlKey||a.metaKey);i.expandable&&!(c&&n.isItemExpanded(e))&&n.toggleItemExpansion(a,e)},handleSelection:a=>{if(i.disabled)return;i.focused||n.focusItem(a,e),r&&(a.shiftKey||a.ctrlKey||a.metaKey)?a.shiftKey?n.expandSelectionRange(a,e):n.selectItem(a,e,!0):n.selectItem(a,e)}},status:i}},iD=e=>{const{runItemPlugins:t,selection:{multiSelect:n},disabledItemsFocusable:r,instance:i,publicAPI:o}=Eo(),{id:s,itemId:l,label:a,children:c,rootRef:d}=e,{rootRef:u,contentRef:f}=t(e),{interactions:v,status:g}=rD({itemId:l,children:c}),m=i.getTreeItemIdAttribute(l,s),b=Bt(d,u),p=P=>O=>{var z;if((z=P.onFocus)==null||z.call(P,O),O.defaultMuiPrevented)return;const j=!g.disabled||r;!g.focused&&j&&O.currentTarget===O.target&&i.focusItem(O,l)},h=P=>O=>{var j;(j=P.onBlur)==null||j.call(P,O),!O.defaultMuiPrevented&&i.removeFocusedItem()},y=P=>O=>{var j;(j=P.onKeyDown)==null||j.call(P,O),!O.defaultMuiPrevented&&i.handleItemKeyDown(O,l)},w=P=>O=>{var j;(j=P.onClick)==null||j.call(P,O),!O.defaultMuiPrevented&&(v.handleExpansion(O),v.handleSelection(O))},k=P=>O=>{var j;(j=P.onMouseDown)==null||j.call(P,O),!O.defaultMuiPrevented&&(O.shiftKey||O.ctrlKey||O.metaKey||g.disabled)&&O.preventDefault()};return{getRootProps:(P={})=>{const O=T({},lr(e),lr(P));let j;return n?j=g.selected:g.selected&&(j=!0),T({},O,{ref:b,role:"treeitem",tabIndex:i.canItemBeTabbed(l)?0:-1,id:m,"aria-expanded":g.expandable?g.expanded:void 0,"aria-selected":j,"aria-disabled":g.disabled||void 0},P,{onFocus:p(O),onBlur:h(O),onKeyDown:y(O)})},getContentProps:(P={})=>{const O=lr(P);return T({},O,P,{ref:f,onClick:w(O),onMouseDown:k(O),status:g})},getGroupTransitionProps:(P={})=>{const O=lr(P);return T({},O,{unmountOnExit:!0,component:"ul",role:"group",in:g.expanded,children:c},P)},getIconContainerProps:(P={})=>{const O=lr(P);return T({},O,P)},getLabelProps:(P={})=>{const O=T({},lr(e),lr(P));return T({},O,{children:a},P)},rootRef:b,status:g,publicAPI:o}};function oD(e){const{slots:t,slotProps:n,status:r}=e,i=Eo(),o=T({},i.icons.slots,{expandIcon:i.icons.slots.expandIcon??_1,collapseIcon:i.icons.slots.collapseIcon??A1}),s=i.icons.slotProps;let l;t!=null&&t.icon?l="icon":r.expandable?r.expanded?l="collapseIcon":l="expandIcon":l="endIcon";const a=(t==null?void 0:t[l])??o[l],c=Rn({elementType:a,externalSlotProps:d=>T({},zn(s[l],d),zn(n==null?void 0:n[l],d)),ownerState:{}});return a?C.jsx(a,T({},c)):null}const sD=ee("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),lD=ee("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>M$(e)&&e!=="status"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`& .${Nn.groupTransition}`]:{margin:0,padding:0,paddingLeft:12},variants:[{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:mr(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:mr(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})`:mr(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:mr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]}));ee("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>T({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1));const aD=ee("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}}),cD=ee(Yh,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition})({margin:0,padding:0,paddingLeft:12}),uD=({text:e,message:t})=>{const n=Wc(),[r,i]=St.useState(null),[o,s]=x.useState(!1),l=c=>{navigator.clipboard.writeText(e),i(r?null:c.currentTarget),s(!0),setTimeout(()=>{s(!1)},1e3)},a=()=>{s(!1)};return t||(t=`Copied ${e}`),C.jsxs(C.Fragment,{children:[C.jsx("div",{className:"icon",onClick:l,children:C.jsx("i",{className:"codicon codicon-clippy"})}),C.jsx(nR,{id:"placement-popper",open:o,anchor:r,placement:"top-start",offset:4,children:C.jsx(dE,{onClickAway:a,children:C.jsx(aR,{in:o,timeout:1e3,children:C.jsx(mt,{role:"presentation",sx:{padding:"2px",color:n.palette.secondary.contrastText,backgroundColor:n.palette.secondary.main,borderRadius:"2px"},children:t})})})})]})},dD=ee(lD)(({})=>({padding:0}));function fD(e){return e=e.trim(),e=e.replace(/^0x/,""),"0x"+(e.length>5?e.slice(0,2)+"~"+e.slice(-3):e)}const hD=e=>String(e).split("0x").map((r,i)=>C.jsxs(x.Fragment,{children:[i>0&&C.jsx("span",{style:{fontSize:"9px",filter:"brightness(50%)",fontWeight:"lighter"},children:"0x"}),r]},i)),pD=x.forwardRef(function(t,n){const{workdir:r,id:i,itemId:o,disabled:s,children:l,...a}=t;let{label:c}=t,d=!1,u=!1,f="(empty)",v;const g=o.charAt(0);if(g.length>0){if(g>="0"&&g<="9")d=!0;else if(g===ix)u=!0,o===np&&(f=`To get started, do '${r} publish' in a terminal`);else if(g===rx){const $=o.split("-").pop();if(c&&$){const I=fD($);c=c.toString().replace(ox,I),v=$}}}const{getRootProps:m,getContentProps:b,getIconContainerProps:p,getLabelProps:h,getGroupTransitionProps:y,status:w}=iD({id:i,itemId:o,children:l,label:c,disabled:s,rootRef:n});let k={padding:0,whiteSpace:"nowrap",fontSize:"13px",textOverflow:"ellipsis",overflow:"hidden"};return d?(k.fontSize="11px",k.textTransform="uppercase",k.fontWeight="bold"):u?k.whiteSpace="normal":(k.letterSpacing=0,k.fontFamily="monospace"),C.jsx(wp,{itemId:o,children:C.jsxs(sD,{...m(a),children:[C.jsxs(dD,{...b(),children:[C.jsx(aD,{...p(),children:C.jsx(oD,{status:w})}),u?C.jsx(pn,{variant:"caption",sx:k,...h(),children:f}):C.jsxs(mt,{display:"flex",overflow:"hidden",justifyContent:"space-between",width:"100%",children:[C.jsx(mt,{flexGrow:1,overflow:"hidden",children:C.jsx("div",{style:{overflow:"hidden",textOverflow:"ellipsis"},children:C.jsx("span",{style:k,...h(),children:hD(c)})})}),v&&C.jsx(mt,{width:20,children:C.jsx(uD,{text:v,message:"Copied!"})})]})]}),l&&C.jsx(cD,{...y()})]})})});function mD({items:e,workdir:t}){return C.jsx(nD,{"aria-label":"icon expansion",sx:{position:"relative"},defaultExpandedItems:["3"],items:e,slots:{item:n=>C.jsx(pD,{...n,workdir:t})}})}const D1=[{id:Ha,label:"Recent Packages",children:[{id:np,label:""}]}];class _f{constructor(t,n){we(this,"workdir");we(this,"workdirIdx");we(this,"methodUuid");we(this,"dataUuid");we(this,"tree");this.workdir=t,this.workdirIdx=n,this.methodUuid="",this.dataUuid="",this.tree=D1}}function gD(e,t){if(!t.isLoaded)return e.tree==D1?e:new _f(e.workdir,e.workdirIdx);if(e.methodUuid===t.getMethodUuid()&&e.dataUuid===t.getDataUuid())return e;let n=new _f(e.workdir,e.workdirIdx);n.methodUuid=t.getMethodUuid(),n.dataUuid=t.getDataUuid(),n.tree=[];let r=t.getJson();if(!r)return console.log("Missing json in workdir_json: "+JSON.stringify(t)),e;if(!r.moveConfigs)return console.log("Missing moveConfigs in workdir_json: "+JSON.stringify(t)),e;const i=r.moveConfigs;let o=[],s=[];for(let l in i){const a=i[l];if(a.latestPackage!=null){let c=`${Ha}-${l}`,d=pd(c,a.latestPackage);d&&o.push(d),c=`${Yu}-${l}`,d=pd(c,a.latestPackage),d&&s.push(d)}if(a.olderPackages!=null)for(let c of a.olderPackages){const d=`${Yu}-${l}`,u=pd(d,c);u&&s.push(u)}}return o.length==0&&(o=[{id:np,label:""}]),n.tree.push({id:Ha,label:"Recent Packages",children:o}),n.tree.push({id:Yu,label:"All Packages",children:s}),n}function pd(e,t){const n=t.packageName;if(!n){console.log("Missing packageName in package json: "+JSON.stringify(t));return}const r=t.packageId;if(!r){console.log("Missing packageId in package json: "+JSON.stringify(t));return}const i=`${ox}::${n}`;return{id:`${rx}-${e}-${r}`,label:i}}function vD({workdir:e,workdirIdx:t,packagesTrigger:n,packagesJson:r}){const[i,o]=x.useState(new _f(e,t));return x.useEffect(()=>{try{const s=gD(i,r);s!==i&&o(s)}catch(s){console.error(`Error updating ExplorerTreeView: ${s}`)}},[e,t,n,r]),C.jsx(C.Fragment,{children:C.jsx(mD,{items:i.tree,workdir:e})})}function M1(e){const t=e.issue;return t==Lg?C.jsxs(pn,{variant:"body2",children:[Lg,C.jsx("br",{}),"Check ",C.jsx(Va,{href:"https://suibase.io/how-to/install",children:"https://suibase.io/how-to/install"})]}):t==Ng?C.jsxs(pn,{variant:"body2",children:[Ng,C.jsx("br",{}),"Please install Sui prerequisites",C.jsx("br",{}),"Check ",C.jsx(Va,{href:"https://docs.sui.io/guides/developer/getting-started/sui-install",children:"https://docs.sui.io"})]}):C.jsx(pn,{variant:"body2",children:t})}const yD=()=>{const{common:e,workdirs:t,statusTrigger:n,commonTrigger:r,packagesTrigger:i}=lx(Sf,{trackStatus:!0,trackPackages:!0}),[o,s]=x.useState(""),[l,a]=x.useState(e.current.activeWorkdir),[c,d]=x.useState(!1),u=p=>{const h=p.target.value;if(h!==e.current.activeWorkdir){s(h),a(h);const y=Gn.indexOf(h);y!==-1&&qi.postMessage(new sx(Sf,y,"set-active"))}else s(""),a(e.current.activeWorkdir)};x.useEffect(()=>(o!==""?o===e.current.activeWorkdir&&(s(""),a(e.current.activeWorkdir)):l!==e.current.activeWorkdir&&a(e.current.activeWorkdir),()=>{}),[o,l,e.current.activeWorkdir,r]),x.useEffect(()=>{let p=!0;for(let h=0;hC.jsx(mt,{flexDirection:"column",justifyContent:"center",width:"100%",paddingLeft:1,paddingTop:1,children:e.current.activeLoaded?C.jsxs(C.Fragment,{children:[C.jsx(hA,{value:l,onChange:u,children:Gn.map((p,h)=>{const y=t[h],w=p===l,k=!w&&y.workdirStatus.status==="DISABLED";return C.jsx(pA,{value:p,selected:w,disabled:k,children:kf[h]},p)})}),o&&C.jsx(Ba,{size:15,style:{marginLeft:"3px"}})]}):C.jsx(Ba,{size:15})}),v=()=>C.jsx(mt,{display:"flex",justifyContent:"center",width:"100%",paddingTop:1,children:C.jsxs(pn,{variant:"caption",sx:{alignContent:"center",fontSize:"9px"},children:["Need help? Try the ",C.jsx(Va,{color:"inherit",href:"https://suibase.io/community/",target:"_blank",rel:"noopener noreferrer",children:"sui community"})]})}),g=()=>C.jsx(mt,{width:"100%",paddingTop:1,children:e.current.activeLoaded&&C.jsx(vD,{packagesTrigger:i,packagesJson:t[e.current.activeWorkdirIdx].workdirPackages,workdir:e.current.activeWorkdir,workdirIdx:e.current.activeWorkdirIdx})}),m=()=>C.jsx(mt,{display:"flex",justifyContent:"center",width:"100%",paddingTop:1,children:C.jsxs(pn,{variant:"body2",children:["There is no workdir enabled. Do 'testnet start' command in a terminal or try the ",C.jsx(Va,{component:"button",variant:"body2",onClick:()=>{qi.postMessage(new jP)},children:"dashboard"}),"."]})}),b=!e.current.setupIssue&&!c;return C.jsxs(C.Fragment,{children:[e.current.setupIssue&&C.jsx(M1,{issue:e.current.setupIssue}),c&&m(),b&&f(),v(),b&&g()]})},bD=ee(KR)(({theme:e})=>({width:28,height:16,padding:0,display:"flex","&:active":{"& .MuiSwitch-thumb":{width:15},"& .MuiSwitch-switchBase.Mui-checked":{transform:"translateX(9px)"}},"& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(12px)",color:"#fff","& + .MuiSwitch-track":{opacity:1,backgroundColor:e.palette.mode==="dark"?"#177ddc":"#1890ff"}}},"& .MuiSwitch-thumb":{boxShadow:"0 2px 4px 0 rgb(0 35 11 / 20%)",width:12,height:12,borderRadius:6,transition:e.transitions.create(["width"],{duration:200})},"& .MuiSwitch-track":{borderRadius:16/2,opacity:1,backgroundColor:"rgba(255,255,255,.35)",boxSizing:"border-box"}}));class xD{constructor(){we(this,"showSpinner");we(this,"spinnerForSwitch");we(this,"requestedChange");we(this,"switchState");we(this,"switchSkeleton");we(this,"spinnerForUpdate");this.showSpinner=!1,this.spinnerForSwitch=!1,this.spinnerForUpdate=!1,this.requestedChange=void 0,this.switchState=!1,this.switchSkeleton=!0}}const wD=()=>{const{commonTrigger:e,statusTrigger:t,common:n,workdirs:r}=lx(Cf,{trackStatus:!0}),i={inputProps:{"aria-label":"workdir on/off"}},[o,s]=x.useState(!1),[l,a]=x.useState(Gn.map(()=>new xD)),c=(f,v)=>{a(g=>g.map((m,b)=>b===f?{...m,...v}:m))},d=f=>{switch(f.workdirStatus.status){case"DEGRADED":case"OK":return!0;default:return!1}},u=(f,v)=>{const g=r[f],m=d(g);if(v!==m){c(f,{requestedChange:v,switchState:v,spinnerForSwitch:!0});const b=v?"start":"stop";qi.postMessage(new sx(Cf,f,b))}else c(f,{requestedChange:void 0,switchState:m,spinnerForSwitch:!1})};return x.useEffect(()=>(l.forEach((f,v)=>{const g=r[v],m=d(g);f.requestedChange!==void 0?f.requestedChange===m?c(v,{requestedChange:void 0,switchState:m,spinnerForSwitch:!1}):f.spinnerForSwitch||c(v,{spinnerForSwitch:!0}):f.switchState!==m&&c(v,{switchState:m,spinnerForSwitch:!1});const b=f.spinnerForSwitch||f.spinnerForUpdate;f.showSpinner!==b&&c(v,{showSpinner:b})}),()=>{}),[e,t,r,l]),x.useEffect(()=>{let f=!0;for(let v=0;v{const g=r[v],m=o||!g.workdirStatus.isLoaded||v!==n.current.activeWorkdirIdx;return C.jsxs(Mg,{sx:{p:0,m:0,"&:last-child td, &:last-child th":{border:0}},children:[C.jsx(or,{sx:{width:115,maxWidth:115,pt:"6px",pb:"6px",pl:0,pr:0,m:0},children:C.jsxs(mt,{display:"flex",alignItems:"center",flexWrap:"nowrap",children:[C.jsx(mt,{width:"10px",display:"flex",justifyContent:"left",alignItems:"center",children:f.showSpinner&&C.jsx(Ba,{size:9})}),C.jsx(mt,{width:"50px",display:"flex",justifyContent:"center",alignItems:"center",children:C.jsx(bD,{...i,size:"small",disabled:f.showSpinner,checked:f.switchState,onChange:b=>u(v,b.target.checked)})}),C.jsx(mt,{width:"50px",display:"flex",justifyContent:"left",alignItems:"center",children:C.jsx(mR,{variant:"dot",color:"info",anchorOrigin:{vertical:"top",horizontal:"left"},invisible:m,children:C.jsx(pn,{variant:"body2",sx:{pl:"2px"},children:kf[v]})})})]})}),C.jsx(or,{align:"center",sx:{width:105,maxWidth:105,p:0,m:0},children:C.jsx(pn,{variant:"subtitle2",children:g.workdirStatus.status})}),C.jsx(or,{align:"center",sx:{width:65,maxWidth:65,p:0,m:0},children:C.jsx(pn,{variant:"body2",children:g.workdirStatus.isLoaded&&g.workdirStatus.suiClientVersionShort})}),C.jsx(or,{})]},kf[v])})})]})})]}):C.jsx(Ba,{size:15})]})},Ll=e=>{try{return getComputedStyle(document.documentElement).getPropertyValue(e).trim()||$n[500]}catch(t){return console.error(`Error getting CSS variable ${e}: ${t}`),$n[500]}},kD=e=>{const[t,n]=x.useState(getComputedStyle(document.documentElement).getPropertyValue(e));return x.useEffect(()=>{const r=setInterval(()=>{const i=getComputedStyle(document.documentElement).getPropertyValue(e);i!==t&&n(i)},1e3);return()=>clearInterval(r)},[t,e]),t};function CD(){const{setMessage:e}=_0(),t=kD("--vscode-editor-foreground"),n=St.useMemo(()=>qh({components:{MuiCssBaseline:{styleOverrides:{body:{padding:0}}}},palette:{background:{default:Ll("--vscode-editor-background")},text:{primary:Ll("--vscode-editor-foreground")},primary:{main:Ll("--vscode-editor-foreground")},secondary:{main:Ll("--vscode-editor-foreground")}}}),[t]);x.useEffect(()=>{const i=o=>{o.data&&e(o.data)};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)},[e]);let r;switch(globalThis.suibase_view_key){case Cf:r=C.jsx(wD,{});break;case DP:r=C.jsx(PP,{});break;case Sf:r=C.jsx(yD,{});break;default:r=null}return C.jsx(C.Fragment,{children:C.jsxs(hI,{theme:n,children:[C.jsx(MR,{}),C.jsx("main",{children:r})]})})}Gx().register(fA);gd.createRoot(document.getElementById("root")).render(C.jsxs(C.Fragment,{children:[C.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),C.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com"}),C.jsx("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"}),C.jsx(St.StrictMode,{children:C.jsx(mC,{children:C.jsx(CD,{})})})]})); diff --git a/typescript/vscode-extension/webview-ui/src/components/DashboardController.tsx b/typescript/vscode-extension/webview-ui/src/components/DashboardController.tsx index 93b02b3b..926596cb 100644 --- a/typescript/vscode-extension/webview-ui/src/components/DashboardController.tsx +++ b/typescript/vscode-extension/webview-ui/src/components/DashboardController.tsx @@ -48,8 +48,9 @@ export const DashboardController = () => { const switchProps = { inputProps: { 'aria-label': 'workdir on/off' } }; - // Calculated states that consider both the backend and the user requests. + const [allDisabled, setAllDisabled] = useState(false); const [workdirStates, setWorkdirStates] = useState(WORKDIRS_KEYS.map(() => new WorkdirStates())); + const updateWorkdirStates = (index: number, updates: Partial) => { setWorkdirStates(currentStates => currentStates.map((item, idx) => @@ -121,6 +122,21 @@ export const DashboardController = () => { return () => {}; }, [commonTrigger,statusTrigger,workdirs,workdirStates]); + useEffect(() => { + // Check if all workdirs are disabled. + let allDisabledCalc = true; + for (let i = 0; i < WORKDIRS_KEYS.length; i++) { + if (workdirs[i].workdirStatus.status !== "DISABLED") { + allDisabledCalc = false; + break; + } + } + // Update the state. + if (allDisabledCalc !== allDisabled) { + setAllDisabled(allDisabledCalc); + } + }, [workdirs, statusTrigger]); + return ( {common.current.setupIssue && } @@ -133,35 +149,36 @@ export const DashboardController = () => { Status - Version + Version {/*More Controls*/} {workdirStates.map((workdirState,index) => { - const workdirStates = workdirs[index]; + const viewData = workdirs[index]; + const badgeInvisible = allDisabled || !viewData.workdirStatus.isLoaded || index !== common.current.activeWorkdirIdx; return ( - - + + {workdirState.showSpinner && } - handleSwitchChange(index, event.target.checked)}/> + handleSwitchChange(index, event.target.checked)}/> - + {WORKDIRS_LABELS[index]} - - {workdirStates.workdirStatus.status} + + {viewData.workdirStatus.status} - - {workdirStates.workdirStatus.isLoaded && workdirStates.workdirStatus.suiClientVersionShort} + + {viewData.workdirStatus.isLoaded && viewData.workdirStatus.suiClientVersionShort} {/* Not supported for now diff --git a/typescript/vscode-extension/webview-ui/src/components/ExplorerController.tsx b/typescript/vscode-extension/webview-ui/src/components/ExplorerController.tsx index d0d414bf..9f0ddcb1 100644 --- a/typescript/vscode-extension/webview-ui/src/components/ExplorerController.tsx +++ b/typescript/vscode-extension/webview-ui/src/components/ExplorerController.tsx @@ -5,17 +5,17 @@ import { useEffect, useState } from "react"; import { VSCodeDropdown, VSCodeOption } from "@vscode/webview-ui-toolkit/react"; import { Box, CircularProgress, Link, Typography } from "@mui/material"; import { VSCode } from "../lib/VSCode"; -import { WorkdirCommand } from "../common/ViewMessages"; +import { WorkdirCommand, OpenDiagnosticPanel } from "../common/ViewMessages"; import { WEBVIEW_EXPLORER } from "../../../src/common/Consts"; import { ExplorerTreeView } from "./ExplorerTreeView"; import SetupIssue from "./SetupIssue"; export const ExplorerController = () => { - const {common, workdirs, commonTrigger, packagesTrigger} = useCommonController(WEBVIEW_EXPLORER, {trackPackages: true}); + const {common, workdirs, statusTrigger, commonTrigger, packagesTrigger} = useCommonController(WEBVIEW_EXPLORER, {trackStatus: true, trackPackages: true}); const [requestedActive, setRequestedActive] = useState(""); const [dropdownActive, setDropdownActive] = useState(common.current.activeWorkdir); - + const [allDisabled, setAllDisabled] = useState(false); const handleDropdownChange = (event: any) => { const newValue = event.target.value; @@ -51,44 +51,108 @@ export const ExplorerController = () => { return () => {}; }, [requestedActive, dropdownActive, common.current.activeWorkdir, commonTrigger]); + useEffect(() => { + // Check if all workdirs are disabled. + let allDisabledCalc = true; + for (let i = 0; i < WORKDIRS_KEYS.length; i++) { + if (workdirs[i].workdirStatus.status !== "DISABLED") { + allDisabledCalc = false; + break; + } + } + // Update the state. + if (allDisabledCalc !== allDisabled) { + setAllDisabled(allDisabledCalc); + } + }, [workdirs, statusTrigger]); - return ( - <> - {common.current.setupIssue && } + const renderDropdown = () => { + return ( - {common.current.activeLoaded && !common.current.setupIssue? ( + {common.current.activeLoaded ? ( <> - - {WORKDIRS_KEYS.map((key,index) => ( - - {WORKDIRS_LABELS[index]} - - ))} - - {requestedActive && } + + {WORKDIRS_KEYS.map((key,index) => { + const viewData = workdirs[index]; + const isSelected = (key === dropdownActive); + const isDisabled = !isSelected && (viewData.workdirStatus.status === "DISABLED"); + return ( + + {WORKDIRS_LABELS[index]} + + ); + })} + + {requestedActive && } ) : () } - - Need help? Try the  - sui community - - + ); + } - - {common.current.activeLoaded && - - } - + const renderCommunityLink = () => { + return ( + + Need help? Try the  + sui community + + + ); + } + + const renderTreeView = () => { + return ( + + {common.current.activeLoaded && + + } + + ); + } + + const renderAllDisabledHelp = () => { + return ( + + + There is no workdir enabled. Do 'testnet start' command in a terminal or try the  + { + // Post a message to the extension + VSCode.postMessage(new OpenDiagnosticPanel()); + }} + > + dashboard + . + + + ); + } + + const renderControls = !common.current.setupIssue && !allDisabled; + + return ( + <> + {common.current.setupIssue && } + + {allDisabled && renderAllDisabledHelp()} + + {renderControls && renderDropdown()} + + {renderCommunityLink()} + + {renderControls && renderTreeView()} ); } \ No newline at end of file