diff --git a/src/dispatch.ts b/src/dispatch.ts index 45df829fe948f02692d747c099107dfb604b6c12..507085bee3944451aeb23dd058f407cf2e1cda3c 100644 --- a/src/dispatch.ts +++ b/src/dispatch.ts @@ -49,7 +49,7 @@ if (isEmbed) { import.meta.env.VITE_HF_TOKEN && import.meta.env.VITE_HF_USERNAME ? { token: import.meta.env.VITE_HF_TOKEN as string, - username: import.meta.env.VITE_HF_USERNAME as string, + userName: import.meta.env.VITE_HF_USERNAME as string, } : undefined, clientId: import.meta.env.VITE_HF_OAUTH_CLIENT_ID as string | undefined, diff --git a/vendor/reachy-mini-host/dist/ReachyHost.d.ts b/vendor/reachy-mini-host/dist/ReachyHost.d.ts index daefdfc0649659a7d1c3ecf0229cf37e79ad84ed..2b6b9cddfd53c43b7f856f8db6aaf05a388f2ec4 100644 --- a/vendor/reachy-mini-host/dist/ReachyHost.d.ts +++ b/vendor/reachy-mini-host/dist/ReachyHost.d.ts @@ -1,26 +1,39 @@ -import { type Theme } from '@mui/material'; -import { type UseReachyHostOptions } from './hooks/useReachyHost'; +/** + * Public React component for the host shell. + * + * Wraps `ReachyHostShell` with the bundled MUI theme provider, + * CssBaseline, and the React-friendly hooks. App authors who + * want a single `` JSX node import this; everyone + * else uses `mountHost()`. + * + * Strict Mode safety: the underlying `useSdk` hook stores its + * SDK instance at module scope, so a double-mount in dev does + * NOT create two SDK instances. See SPEC §8.1 / §8.4. + */ +import type { JSX } from 'react'; import type { ConfigPayload } from './lib/protocol'; -export interface ReachyHostProps extends UseReachyHostOptions { - /** URL of the embedded app's HTML entry. Defaults to - * `window.location.origin + window.location.pathname`, which is - * correct when the host and app share an HF Space. */ - appUrl?: string; - /** Optional icon shown next to the app name in the top bar. */ - appIconUrl?: string | null; - /** Optional emoji fallback for the top-bar logo slot. */ - appEmoji?: string | null; - /** Override the bundled theme (light + dark variants). */ - theme?: { - light: Theme; - dark: Theme; - }; - /** Skip the bundled `ThemeProvider` + `CssBaseline`; the consumer - * must wrap us themselves. */ - skipTheme?: boolean; - /** Initial app config (typically parsed from `?config=` already - * by `mountHost`). Defaults to `readUrlConfig()`. */ +export interface ReachyHostProps { + /** App's display name. Required - shown in top bar, passed to + * the SDK, and surfaced to other apps that may collide on a + * busy robot. */ + appName: string; + /** Top-bar icon. Recommended size 32×32. */ + appIconUrl?: string; + /** Emoji fallback if no icon. */ + appEmoji?: string; + /** Allow microphone capture inside the iframe. */ + enableMicrophone?: boolean; + /** HF OAuth client ID. Falls back to + * `window.huggingface.variables.OAUTH_CLIENT_ID` then + * `localStorage`. */ + clientId?: string; + /** Embed entry path (defaults to `/?embed=1`). */ + embedPath?: string; + /** Host display name (e.g. "Reachy Mini Hub"). */ + hostName?: string; + /** Initial config payload (typically decoded from + * `?config=`). */ initialConfig?: ConfigPayload; } -export default function ReachyHost(props: ReachyHostProps): import("react/jsx-runtime").JSX.Element; +export declare function ReachyHost({ appName, appIconUrl, appEmoji, enableMicrophone, clientId, embedPath, hostName, initialConfig, }: ReachyHostProps): JSX.Element; //# sourceMappingURL=ReachyHost.d.ts.map \ No newline at end of file diff --git a/vendor/reachy-mini-host/dist/ReachyHost.d.ts.map b/vendor/reachy-mini-host/dist/ReachyHost.d.ts.map index f7570cd9fd99f10416d55903b585293ae1cf6495..ddc3625438781908e76e55b4fdfc159b9a092a1b 100644 --- a/vendor/reachy-mini-host/dist/ReachyHost.d.ts.map +++ b/vendor/reachy-mini-host/dist/ReachyHost.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ReachyHost.d.ts","sourceRoot":"","sources":["../src/ReachyHost.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAmC,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAE5E,OAAO,EAAiB,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAkBjF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;IAC3D;;2DAEuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,yDAAyD;IACzD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,0DAA0D;IAC1D,KAAK,CAAC,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,IAAI,EAAE,KAAK,CAAA;KAAE,CAAC;IACtC;mCAC+B;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;0DACsD;IACtD,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,eAAe,2CAexD"} \ No newline at end of file +{"version":3,"file":"ReachyHost.d.ts","sourceRoot":"","sources":["../src/ReachyHost.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAcjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,WAAW,eAAe;IAC9B;;sBAEkB;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;0BAEsB;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;uBACmB;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;AAED,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,UAAU,EACV,QAAQ,EACR,gBAAwB,EACxB,QAAQ,EACR,SAAuB,EACvB,QAAwB,EACxB,aAAa,GACd,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,CAyC/B"} \ No newline at end of file diff --git a/vendor/reachy-mini-host/dist/chunks/index-BLeHwvaH.js b/vendor/reachy-mini-host/dist/chunks/index-BLeHwvaH.js new file mode 100644 index 0000000000000000000000000000000000000000..b52b13d2052c5294e974649c7b276aee7ddbdb0a --- /dev/null +++ b/vendor/reachy-mini-host/dist/chunks/index-BLeHwvaH.js @@ -0,0 +1,348 @@ +import { d as L, a as m, P as y, i as v } from "./protocol-5pluLXHg.js"; +const N = 8e3, O = 8e3, P = 900 * 1e3; +let I = null; +async function F(t = {}) { + return I || (I = M(t)), await I; +} +async function M(t) { + const r = t.expectedOrigin ?? window.location.origin, s = L(window.location.hash); + if (C(), !s) + throw new Error( + "[@reachy-mini/host/embed] no creds bundle found in URL hash. Was the embed mounted directly without ?embed=1#creds=...?" + ); + if (!await D(N)) + throw new Error( + `[@reachy-mini/host/embed] window.ReachyMini did not become available within ${N}ms - check the SDK CDN tag.` + ); + s.hfToken && s.userName && H(s.hfToken, s.userName); + const e = new window.ReachyMini({ + appName: s.appName, + signalingUrl: s.signalingUrl, + ...t.sdkOptions + }), c = R(r); + b({ + source: y, + type: "embed:ready", + version: m + }), c.start(); + const d = await c.awaitHostInit(O, s); + g("connecting", "link"), l("boot:link:start", { robotPeerId: d.robotPeerId }), await e.authenticate(), l("boot:authenticate:ok", { state: e.state }), await e.connect(), l("boot:connect:ok", { + state: e.state, + robots: (e.robots ?? []).length + }), g("connecting", "session"), l("boot:session:start", { robotPeerId: d.robotPeerId }), A(e); + try { + await e.startSession(d.robotPeerId), l("boot:session:ok"); + } catch (u) { + throw l("boot:session:error", { + message: u?.message ?? String(u) + }), u; + } + return g("connecting", "wake"), l("boot:wake:start"), await e.ensureAwake(), l("boot:wake:ok"), c.attachPageHide(e), g("live", null), c.buildHandle(e, d); +} +function T(t) { + return { + theme: t.theme, + config: t.config, + appName: t.appName, + hostName: t.hostName, + userName: t.userName ?? null, + robotPeerId: t.robotPeerId + }; +} +function _(t) { + return { + theme: t.theme, + config: t.config, + appName: t.appName, + hostName: t.hostName, + userName: t.userName ?? null, + robotPeerId: t.robotPeerId + }; +} +function R(t) { + const r = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set(); + let e = null, c = !1, d = !1, u = null; + function w(n) { + switch (n.type) { + case "host:init": { + e = _(n), s.forEach((o) => o(e.theme)), h.forEach((o) => o(e.config)); + break; + } + case "host:theme-changed": { + e && (e.theme = n.theme), s.forEach((o) => o(n.theme)); + break; + } + case "host:config-changed": { + e && (e.config = n.config), h.forEach((o) => o(n.config)); + break; + } + case "host:leaving": { + i(); + break; + } + } + } + function i() { + c || (c = !0, r.forEach((n) => { + try { + n(); + } catch (o) { + console.warn("[@reachy-mini/host/embed] onLeave threw", o); + } + })); + } + return { + start() { + d || (d = !0, u = (n) => { + n.origin === t && v(n.data) && w(n.data); + }, window.addEventListener("message", u)); + }, + async awaitHostInit(n, o) { + return window.parent !== window ? e || new Promise((f) => { + const p = (S) => { + if (S.origin !== t || !v(S.data)) return; + const k = S.data; + k.type === "host:init" && (window.removeEventListener("message", p), window.clearTimeout(E), e = _(k), f(e)); + }, E = window.setTimeout(() => { + window.removeEventListener("message", p), e || (e = T(o)), f(e); + }, n); + window.addEventListener("message", p); + }) : (e = T(o), e); + }, + attachPageHide(n) { + const o = () => { + i(); + try { + n.stopSession(); + } catch { + } + }; + window.addEventListener("pagehide", o, { once: !0 }); + }, + buildHandle(n, o) { + return e = o, { + reachy: n, + get theme() { + return e.theme; + }, + get config() { + return e.config; + }, + get appName() { + return e.appName; + }, + get hostName() { + return e.hostName; + }, + get userName() { + return e.userName; + }, + onLeave(a) { + return r.add(a), () => r.delete(a); + }, + onThemeChange(a) { + return s.add(a), () => s.delete(a); + }, + onConfigChange(a) { + const f = (p) => a(p); + return h.add(f), () => h.delete(f); + }, + setAppState(a) { + g( + a.phase, + a.connectingStep ?? null, + a.message ?? null + ); + }, + requestLeave() { + b({ + source: y, + type: "embed:request-leave", + version: m + }); + }, + reportError(a, f) { + b({ + source: y, + type: "embed:error", + version: m, + message: a, + fatal: f?.fatal === !0, + detail: f?.detail + }); + } + }; + } + }; +} +function C() { + try { + const t = window.location.pathname + window.location.search; + history.replaceState(history.state, document.title, t); + } catch { + } +} +function H(t, r) { + try { + sessionStorage.setItem("hf_token", t), sessionStorage.setItem("hf_username", r), sessionStorage.setItem( + "hf_token_expires", + new Date(Date.now() + P).toISOString() + ); + } catch { + } +} +function D(t) { + return new Promise((r) => { + if (typeof window > "u") { + r(!1); + return; + } + if (window.ReachyMini) { + r(!0); + return; + } + let s = !1; + const h = () => { + s || (s = !0, window.removeEventListener("reachymini:ready", h), window.clearTimeout(e), r(!!window.ReachyMini)); + }, e = window.setTimeout(() => { + s || (s = !0, window.removeEventListener("reachymini:ready", h), r(!1)); + }, t); + window.addEventListener("reachymini:ready", h); + }); +} +function b(t) { + if (!(typeof window > "u")) + try { + window.parent.postMessage(t, window.location.origin); + } catch (r) { + console.warn("[@reachy-mini/host/embed] postMessage to host failed", r); + } +} +function g(t, r, s = null) { + b({ + source: y, + type: "embed:app-state", + version: m, + phase: t, + connectingStep: r, + message: s + }); +} +function l(t, r = {}) { + if (!(typeof window > "u")) { + try { + window.parent.postMessage( + { + source: y, + type: "embed:debug", + version: m, + tag: t, + payload: r + }, + window.location.origin + ); + } catch { + } + try { + let s = ""; + try { + s = JSON.stringify(r); + } catch { + s = ""; + } + console.info(`[embed-debug] ${t} ${s}`); + } catch { + } + } +} +function A(t) { + const r = [ + "connected", + "disconnected", + "streaming", + "sessionStopped", + "sessionRejected", + "robotsChanged", + "error", + "state", + "log", + "message" + ]; + for (const e of r) + try { + t.addEventListener(e, (c) => { + let d = {}; + const u = c; + if (u && typeof u == "object" && "detail" in u) + try { + d = JSON.parse(JSON.stringify(u.detail ?? null)); + } catch { + d = { _unserializable: !0 }; + } + l(`sdk:${e}`, d); + }); + } catch { + } + try { + const e = t, c = e._handleSignalingMessage; + if (typeof c == "function") { + const d = e._sendToServer; + typeof d == "function" && (e._sendToServer = async function(w) { + const i = w, n = { type: i?.type ?? "?" }; + if (i && "peerId" in i && (n.peerId = String(i.peerId)), i && "sessionId" in i && (n.sessionId = String(i.sessionId)), i && "sdp" in i) { + const o = i.sdp; + n.sdpType = o?.type ?? "?", n.sdpLen = o?.sdp?.length ?? 0; + } + if (i && "ice" in i) { + const o = i.ice; + n.iceCand = (o?.candidate ?? "").slice(0, 60) || ""; + } + l("sdk:send", n); + try { + const o = await d.call(this, w), a = o; + return l("sdk:send:res", { + inFor: n.type, + resType: a?.type ?? null, + keys: a ? Object.keys(a) : [] + }), o; + } catch (o) { + throw l("sdk:send:err", { + inFor: n.type, + msg: o?.message ?? String(o) + }), o; + } + }), e._handleSignalingMessage = function(w) { + const i = w, n = { type: i?.type ?? "?" }; + if ("sessionId" in i && (n.sessionId = String(i.sessionId)), "peerId" in i && (n.peerId = String(i.peerId)), "sdp" in i) { + const o = i.sdp; + n.sdpType = o?.type ?? "?", n.sdpLen = o?.sdp?.length ?? 0; + } + if ("ice" in i) { + const o = i.ice; + n.iceCand = (o?.candidate ?? "").slice(0, 60) || ""; + } + return "reason" in i && (n.reason = String(i.reason)), l("sdk:sse", n), c.call(this, w); + }; + } + } catch { + } + const s = Date.now(), h = window.setInterval(() => { + const e = t, c = e._pc, d = e._dc; + l("sdk:probe", { + elapsedMs: Date.now() - s, + myPeerId: e._peerId ?? null, + state: e._state ?? null, + sseAborted: e._sseAbortController?.signal?.aborted ?? null, + pcState: c?.connectionState ?? null, + iceState: c?.iceConnectionState ?? null, + iceGather: c?.iceGatheringState ?? null, + signalingState: c?.signalingState ?? null, + dcState: d?.readyState ?? null, + sessionId: e._sessionId ?? null + }), Date.now() - s > 3e4 && window.clearInterval(h); + }, 1500); +} +export { + F as c +}; +//# sourceMappingURL=index-BLeHwvaH.js.map diff --git a/vendor/reachy-mini-host/dist/chunks/index-BLeHwvaH.js.map b/vendor/reachy-mini-host/dist/chunks/index-BLeHwvaH.js.map new file mode 100644 index 0000000000000000000000000000000000000000..f692bb83484cf0a66f996492ec501ccc4682a32d --- /dev/null +++ b/vendor/reachy-mini-host/dist/chunks/index-BLeHwvaH.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index-BLeHwvaH.js","sources":["../../src/embed/index.ts"],"sourcesContent":["/**\n * Embedded-app client.\n *\n * Vanilla TypeScript helper that lives in the iframe side of the\n * host / app split. Consumed by `src/embed.{ts,tsx}` in each app\n * (or via the CDN entry `@reachy-mini/host/embed` script tag).\n *\n * import { connectToHost } from '@reachy-mini/host/embed';\n *\n * const handle = await connectToHost();\n * handle.onLeave(() => { /* clean up before unmount *\\/ });\n * handle.reachy.setHeadRpyDeg(0, 10, 0);\n *\n * Boot sequence (canonical reference: SPEC.md §6.4):\n * 1. Read `#creds=` synchronously and wipe the hash\n * with `history.replaceState`.\n * 2. Wait for `window.ReachyMini` (8 s timeout).\n * 3. Instantiate the SDK, seed the HF token into\n * `sessionStorage`.\n * 4. Send `embed:ready` to the parent.\n * 5. Wait for `host:init` (8 s timeout; Mode B proceeds from\n * hash alone when this never arrives).\n * 6. `connect()` → `startSession()` → `ensureAwake()`, emitting\n * `embed:app-state` at each step.\n * 7. Resolve `connectToHost()` with the live SDK handle.\n *\n * Strict Mode safety (SPEC §8.4): the function is idempotent\n * across multiple awaits via a module-level promise. Calling\n * `connectToHost()` twice returns the same in-flight promise;\n * a single SDK instance is created, a single `embed:ready` is\n * posted.\n */\nimport type {\n ReachyMiniInstance,\n ReachyMiniOptions,\n} from '../lib/sdk-types';\nimport {\n PROTOCOL_SOURCE,\n PROTOCOL_VERSION,\n decodeCredsFromHash,\n isProtocolMessage,\n} from '../lib/protocol';\nimport type {\n AppConnectingStep,\n AppPhase,\n ConfigPayload,\n CredsBundle,\n EmbedToHostMsg,\n HostInitMsg,\n HostToEmbedMsg,\n ThemeMode,\n} from '../lib/protocol';\n\nconst SDK_READY_TIMEOUT_MS = 8000;\nconst HOST_INIT_TIMEOUT_MS = 8000;\nconst TOKEN_TTL_MS = 15 * 60 * 1000;\n\n/** Resolved state at the moment `connectToHost()` returns. */\nexport interface ConnectedHandle {\n /** Live SDK instance: connected, session started, robot awake. */\n reachy: ReachyMiniInstance;\n /** Current theme; updated via `onThemeChange`. */\n theme: ThemeMode;\n /** Initial config (from URL `?config=` or mobile handoff).\n * Updates pushed via `onConfigChange`. */\n config: TConfig | null;\n /** App display name as passed by the host. */\n appName: string;\n /** Host display name (e.g. \"Reachy Mini\"). */\n hostName: string;\n /** HF user name when known (from `host:init`). */\n userName: string | null;\n\n /** Register a teardown callback. Fires on `host:leaving`\n * (one-shot) or `pagehide`. Return a promise to keep the host\n * waiting (bounded by the host's `timeoutMs`). Returns an\n * unsubscribe function. */\n onLeave(cb: () => void | Promise): () => void;\n /** Register a theme-change handler. */\n onThemeChange(cb: (theme: ThemeMode) => void): () => void;\n /** Register a config-change handler. */\n onConfigChange(cb: (config: TConfig | null) => void): () => void;\n\n /** Push an app-level state update upstream so the host can\n * drive its ConnectingView overlay. */\n setAppState(state: {\n phase: AppPhase;\n connectingStep?: AppConnectingStep | null;\n message?: string | null;\n }): void;\n /** Ask the host to start the leave sequence. */\n requestLeave(): void;\n /** Report an error. `fatal: true` switches the host to ErrorView. */\n reportError(\n message: string,\n opts?: { fatal?: boolean; detail?: unknown },\n ): void;\n}\n\nexport interface ConnectToHostOptions {\n /** Forwarded to the SDK constructor. `appName`, `signalingUrl`,\n * `clientId` are auto-set from the creds bundle. */\n sdkOptions?: Partial;\n /** Origin of the host's window. Defaults to\n * `window.location.origin` (same-origin iframe). */\n expectedOrigin?: string;\n}\n\n/* ─────────────────── Module-level idempotency ─────────────────── */\n\nlet bootPromise: Promise> | null = null;\n\n/** Boot the embedded app. Idempotent: calling twice returns the\n * same in-flight promise. */\nexport async function connectToHost(\n options: ConnectToHostOptions = {},\n): Promise> {\n if (!bootPromise) {\n bootPromise = bootOnce(options) as Promise>;\n }\n return (await bootPromise) as ConnectedHandle;\n}\n\n/* ─────────────────── Boot pipeline ─────────────────── */\n\nasync function bootOnce(\n options: ConnectToHostOptions,\n): Promise> {\n const expectedOrigin = options.expectedOrigin ?? window.location.origin;\n\n // 1. Parse creds from the URL hash and wipe it synchronously.\n const creds = decodeCredsFromHash(window.location.hash);\n wipeUrlHash();\n\n if (!creds) {\n throw new Error(\n '[@reachy-mini/host/embed] no creds bundle found in URL hash. ' +\n 'Was the embed mounted directly without ?embed=1#creds=...?',\n );\n }\n\n // 2. Wait for the SDK script to finish loading.\n const sdkReady = await waitForSdkReady(SDK_READY_TIMEOUT_MS);\n if (!sdkReady) {\n throw new Error(\n '[@reachy-mini/host/embed] window.ReachyMini did not become ' +\n `available within ${SDK_READY_TIMEOUT_MS}ms - check the SDK CDN tag.`,\n );\n }\n\n // 3. Seed the HF token before SDK construction so authenticate()\n // resolves without a redirect.\n if (creds.hfToken && creds.userName) {\n seedSessionToken(creds.hfToken, creds.userName);\n }\n\n // 4. Build the SDK with the bundled signaling URL + appName.\n const sdk: ReachyMiniInstance = new window.ReachyMini({\n appName: creds.appName,\n signalingUrl: creds.signalingUrl,\n ...options.sdkOptions,\n });\n\n // 5. Build the bridge (subscriber registry) + post ready.\n const bridge = createBridge(expectedOrigin);\n postToHost({\n source: PROTOCOL_SOURCE,\n type: 'embed:ready',\n version: PROTOCOL_VERSION,\n });\n bridge.start();\n\n // 6. Optional host:init wait. In Mode B (mobile) the parent\n // never sends this and we proceed with the hash bundle alone.\n const live = await bridge.awaitHostInit(HOST_INIT_TIMEOUT_MS, creds);\n\n // 7. Sequence: connect → startSession → ensureAwake.\n pushAppState('connecting', 'link');\n postDebug('boot:link:start', { robotPeerId: live.robotPeerId });\n await sdk.authenticate();\n postDebug('boot:authenticate:ok', { state: (sdk as { state?: string }).state });\n await sdk.connect();\n postDebug('boot:connect:ok', {\n state: (sdk as { state?: string }).state,\n robots: ((sdk as { robots?: unknown[] }).robots ?? []).length,\n });\n\n pushAppState('connecting', 'session');\n postDebug('boot:session:start', { robotPeerId: live.robotPeerId });\n installSdkProbe(sdk);\n try {\n await sdk.startSession(live.robotPeerId);\n postDebug('boot:session:ok');\n } catch (err) {\n postDebug('boot:session:error', {\n message: (err as Error)?.message ?? String(err),\n });\n throw err;\n }\n\n pushAppState('connecting', 'wake');\n postDebug('boot:wake:start');\n await sdk.ensureAwake();\n postDebug('boot:wake:ok');\n\n // 8. We're live. Wire pagehide cleanup so the SDK releases the\n // robot if the browser kills the tab.\n bridge.attachPageHide(sdk);\n pushAppState('live', null);\n\n return bridge.buildHandle(sdk, live);\n}\n\n/* ─────────────────── Bridge state ─────────────────── */\n\ninterface LiveState {\n theme: ThemeMode;\n config: ConfigPayload;\n appName: string;\n hostName: string;\n userName: string | null;\n robotPeerId: string;\n}\n\nfunction liveStateFromCreds(creds: CredsBundle): LiveState {\n return {\n theme: creds.theme,\n config: creds.config,\n appName: creds.appName,\n hostName: creds.hostName,\n userName: creds.userName ?? null,\n robotPeerId: creds.robotPeerId,\n };\n}\n\nfunction liveStateFromInit(msg: HostInitMsg): LiveState {\n return {\n theme: msg.theme,\n config: msg.config,\n appName: msg.appName,\n hostName: msg.hostName,\n userName: msg.userName ?? null,\n robotPeerId: msg.robotPeerId,\n };\n}\n\nfunction createBridge(expectedOrigin: string) {\n type LeaveCb = () => void | Promise;\n type ThemeCb = (t: ThemeMode) => void;\n type ConfigCb = (c: unknown) => void;\n\n const leaveListeners = new Set();\n const themeListeners = new Set();\n const configListeners = new Set();\n\n let current: LiveState | null = null;\n let leaveTriggered = false;\n\n // Listener installed lazily so `embed:ready` is the only\n // outgoing event before the host has time to respond.\n let started = false;\n let onMessage: ((event: MessageEvent) => void) | null = null;\n\n function dispatchMessage(msg: HostToEmbedMsg): void {\n switch (msg.type) {\n case 'host:init': {\n current = liveStateFromInit(msg);\n // Re-notify subscribers in case the init arrives after\n // they registered (shouldn't happen with the current\n // boot order but cheap defensive code).\n themeListeners.forEach((cb) => cb(current!.theme));\n configListeners.forEach((cb) => cb(current!.config));\n break;\n }\n case 'host:theme-changed': {\n if (current) current.theme = msg.theme;\n themeListeners.forEach((cb) => cb(msg.theme));\n break;\n }\n case 'host:config-changed': {\n if (current) current.config = msg.config;\n configListeners.forEach((cb) => cb(msg.config));\n break;\n }\n case 'host:leaving': {\n runLeaveOnce();\n break;\n }\n }\n }\n\n function runLeaveOnce(): void {\n if (leaveTriggered) return;\n leaveTriggered = true;\n // Fire and forget; the host doesn't wait for an ack, it just\n // unmounts the iframe after `timeoutMs`.\n leaveListeners.forEach((cb) => {\n try {\n void cb();\n } catch (err) {\n console.warn('[@reachy-mini/host/embed] onLeave threw', err);\n }\n });\n }\n\n return {\n start(): void {\n if (started) return;\n started = true;\n onMessage = (event: MessageEvent) => {\n if (event.origin !== expectedOrigin) return;\n if (!isProtocolMessage(event.data)) return;\n dispatchMessage(event.data as HostToEmbedMsg);\n };\n window.addEventListener('message', onMessage);\n },\n\n async awaitHostInit(\n timeoutMs: number,\n fallbackCreds: CredsBundle,\n ): Promise {\n // Mode A path: we expect a host:init. Mode B path: parent\n // is `window` (no iframe), so no one will reply - fall\n // back to creds after the timeout.\n const isInIframe = window.parent !== window;\n if (!isInIframe) {\n current = liveStateFromCreds(fallbackCreds);\n return current;\n }\n\n // If host:init already arrived (race), use it.\n if (current) return current;\n\n return new Promise((resolve) => {\n const initListener = (event: MessageEvent): void => {\n if (event.origin !== expectedOrigin) return;\n if (!isProtocolMessage(event.data)) return;\n const data = event.data as HostToEmbedMsg;\n if (data.type !== 'host:init') return;\n window.removeEventListener('message', initListener);\n window.clearTimeout(timer);\n current = liveStateFromInit(data);\n resolve(current);\n };\n const timer = window.setTimeout(() => {\n window.removeEventListener('message', initListener);\n // Timeout: fall back to creds. Useful when the parent\n // never sends init (older host versions, manual\n // testing).\n if (!current) current = liveStateFromCreds(fallbackCreds);\n resolve(current);\n }, timeoutMs);\n window.addEventListener('message', initListener);\n });\n },\n\n attachPageHide(sdk: ReachyMiniInstance): void {\n const onPageHide = (): void => {\n runLeaveOnce();\n try {\n void sdk.stopSession();\n } catch {\n /* ignore - tab is going away anyway */\n }\n };\n window.addEventListener('pagehide', onPageHide, { once: true });\n },\n\n buildHandle(\n sdk: ReachyMiniInstance,\n live: LiveState,\n ): ConnectedHandle {\n current = live;\n return {\n reachy: sdk,\n get theme(): ThemeMode {\n return current!.theme;\n },\n get config(): TConfig | null {\n return current!.config as TConfig | null;\n },\n get appName(): string {\n return current!.appName;\n },\n get hostName(): string {\n return current!.hostName;\n },\n get userName(): string | null {\n return current!.userName;\n },\n onLeave(cb) {\n leaveListeners.add(cb);\n return () => leaveListeners.delete(cb);\n },\n onThemeChange(cb) {\n themeListeners.add(cb);\n return () => themeListeners.delete(cb);\n },\n onConfigChange(cb) {\n const wrapped = (c: unknown) => cb(c as TConfig | null);\n configListeners.add(wrapped);\n return () => configListeners.delete(wrapped);\n },\n setAppState(state) {\n pushAppState(\n state.phase,\n state.connectingStep ?? null,\n state.message ?? null,\n );\n },\n requestLeave() {\n postToHost({\n source: PROTOCOL_SOURCE,\n type: 'embed:request-leave',\n version: PROTOCOL_VERSION,\n });\n },\n reportError(message, opts) {\n postToHost({\n source: PROTOCOL_SOURCE,\n type: 'embed:error',\n version: PROTOCOL_VERSION,\n message,\n fatal: opts?.fatal === true,\n detail: opts?.detail,\n });\n },\n };\n },\n };\n}\n\n/* ─────────────────── Helpers ─────────────────── */\n\nfunction wipeUrlHash(): void {\n // Best-effort: replaceState fails on `file://` and a few exotic\n // schemes. We don't want to throw in the embed for that.\n try {\n const cleanUrl =\n window.location.pathname + window.location.search;\n history.replaceState(history.state, document.title, cleanUrl);\n } catch {\n /* ignore */\n }\n}\n\nfunction seedSessionToken(token: string, userName: string): void {\n try {\n sessionStorage.setItem('hf_token', token);\n sessionStorage.setItem('hf_username', userName);\n sessionStorage.setItem(\n 'hf_token_expires',\n new Date(Date.now() + TOKEN_TTL_MS).toISOString(),\n );\n } catch {\n /* ignore - private browsing / quota */\n }\n}\n\nfunction waitForSdkReady(timeoutMs: number): Promise {\n return new Promise((resolve) => {\n if (typeof window === 'undefined') {\n resolve(false);\n return;\n }\n if (window.ReachyMini) {\n resolve(true);\n return;\n }\n let settled = false;\n const onReady = (): void => {\n if (settled) return;\n settled = true;\n window.removeEventListener('reachymini:ready', onReady);\n window.clearTimeout(timer);\n resolve(Boolean(window.ReachyMini));\n };\n const timer = window.setTimeout(() => {\n if (settled) return;\n settled = true;\n window.removeEventListener('reachymini:ready', onReady);\n resolve(false);\n }, timeoutMs);\n window.addEventListener('reachymini:ready', onReady);\n });\n}\n\nfunction postToHost(msg: EmbedToHostMsg): void {\n if (typeof window === 'undefined') return;\n // In Mode B (mobile, no iframe), `window.parent === window`,\n // so this is a self-message that nobody listens to. That's\n // fine - the call is a noop on Mode B.\n try {\n window.parent.postMessage(msg, window.location.origin);\n } catch (err) {\n console.warn('[@reachy-mini/host/embed] postMessage to host failed', err);\n }\n}\n\nfunction pushAppState(\n phase: AppPhase,\n connectingStep: AppConnectingStep | null,\n message: string | null = null,\n): void {\n postToHost({\n source: PROTOCOL_SOURCE,\n type: 'embed:app-state',\n version: PROTOCOL_VERSION,\n phase,\n connectingStep,\n message,\n });\n}\n\n/**\n * Dev-only diagnostic channel. Forwards a tag + payload to the host\n * so the parent's console (visible to devtools and the Cursor MCP\n * browser) shows the embed's boot progression. The host's\n * `ReachyHostShell` listens for `embed:debug` and `console.info`s\n * the payload.\n */\nfunction postDebug(tag: string, payload: Record = {}): void {\n if (typeof window === 'undefined') return;\n try {\n window.parent.postMessage(\n {\n source: PROTOCOL_SOURCE,\n type: 'embed:debug',\n version: PROTOCOL_VERSION,\n tag,\n payload,\n },\n window.location.origin,\n );\n } catch {\n /* ignore */\n }\n try {\n let asJson = '';\n try {\n asJson = JSON.stringify(payload);\n } catch {\n asJson = '';\n }\n console.info(`[embed-debug] ${tag} ${asJson}`);\n } catch {\n /* ignore */\n }\n}\n\n/**\n * One-shot SDK probe used while we hunt the \"stuck at session\" bug.\n * Subscribes to every internal event the SDK is known to emit and\n * forwards them to the host via `embed:debug`. No-op in production\n * once the bug is fixed.\n */\nfunction installSdkProbe(sdk: ReachyMiniInstance): void {\n const events = [\n 'connected',\n 'disconnected',\n 'streaming',\n 'sessionStopped',\n 'sessionRejected',\n 'robotsChanged',\n 'error',\n 'state',\n 'log',\n 'message',\n ];\n for (const ev of events) {\n try {\n (sdk as unknown as {\n addEventListener: (n: string, cb: (e: unknown) => void) => void;\n }).addEventListener(ev, (e: unknown) => {\n let detail: Record = {};\n const evObj = e as { detail?: unknown };\n if (evObj && typeof evObj === 'object' && 'detail' in evObj) {\n try {\n detail = JSON.parse(JSON.stringify(evObj.detail ?? null));\n } catch {\n detail = { _unserializable: true };\n }\n }\n postDebug(`sdk:${ev}`, detail);\n });\n } catch {\n /* ignore */\n }\n }\n // Wrap _handleSignalingMessage so we see every payload central\n // delivers via SSE (peer offers, ICE candidates, sessionRejected,\n // etc.). If we never see a `peer` message of kind `sdp/offer`\n // here, central is dropping the offer or routing it to a stale\n // peer.\n try {\n const sdkAny = sdk as unknown as {\n _handleSignalingMessage?: (msg: unknown) => unknown;\n };\n const orig = sdkAny._handleSignalingMessage;\n if (typeof orig === 'function') {\n const sendOrig = (sdkAny as Record)._sendToServer as\n | ((this: unknown, payload: unknown) => Promise)\n | undefined;\n if (typeof sendOrig === 'function') {\n (sdkAny as Record)._sendToServer =\n async function patchedSend(this: unknown, payload: unknown) {\n const p = payload as Record;\n const dbg: Record = { type: p?.type ?? '?' };\n if (p && 'peerId' in p) dbg.peerId = String(p.peerId);\n if (p && 'sessionId' in p) dbg.sessionId = String(p.sessionId);\n if (p && 'sdp' in p) {\n const sdp = p.sdp as { type?: string; sdp?: string } | undefined;\n dbg.sdpType = sdp?.type ?? '?';\n dbg.sdpLen = sdp?.sdp?.length ?? 0;\n }\n if (p && 'ice' in p) {\n const ice = p.ice as { candidate?: string } | undefined;\n dbg.iceCand =\n (ice?.candidate ?? '').slice(0, 60) || '';\n }\n postDebug('sdk:send', dbg);\n try {\n const res = await sendOrig.call(this, payload);\n const rj = res as Record | undefined;\n postDebug('sdk:send:res', {\n inFor: dbg.type,\n resType: rj?.type ?? null,\n keys: rj ? Object.keys(rj) : [],\n });\n return res;\n } catch (err) {\n postDebug('sdk:send:err', {\n inFor: dbg.type,\n msg: (err as Error)?.message ?? String(err),\n });\n throw err;\n }\n };\n }\n sdkAny._handleSignalingMessage = function patched(msg: unknown) {\n const m = msg as Record;\n const payload: Record = { type: m?.type ?? '?' };\n if ('sessionId' in m) payload.sessionId = String(m.sessionId);\n if ('peerId' in m) payload.peerId = String(m.peerId);\n if ('sdp' in m) {\n const sdp = m.sdp as { type?: string; sdp?: string } | undefined;\n payload.sdpType = sdp?.type ?? '?';\n payload.sdpLen = sdp?.sdp?.length ?? 0;\n }\n if ('ice' in m) {\n const ice = m.ice as { candidate?: string } | undefined;\n payload.iceCand =\n (ice?.candidate ?? '').slice(0, 60) || '';\n }\n if ('reason' in m) payload.reason = String(m.reason);\n postDebug('sdk:sse', payload);\n return orig.call(this, msg);\n };\n }\n } catch {\n /* ignore */\n }\n const probeStart = Date.now();\n const interval = window.setInterval(() => {\n const sdkAny = sdk as unknown as {\n _pc?: RTCPeerConnection;\n _dc?: RTCDataChannel;\n _sessionId?: string;\n _peerId?: string;\n _state?: string;\n _sseAbortController?: { signal?: { aborted?: boolean } };\n };\n const pc = sdkAny._pc;\n const dc = sdkAny._dc;\n postDebug('sdk:probe', {\n elapsedMs: Date.now() - probeStart,\n myPeerId: sdkAny._peerId ?? null,\n state: sdkAny._state ?? null,\n sseAborted: sdkAny._sseAbortController?.signal?.aborted ?? null,\n pcState: pc?.connectionState ?? null,\n iceState: pc?.iceConnectionState ?? null,\n iceGather: pc?.iceGatheringState ?? null,\n signalingState: pc?.signalingState ?? null,\n dcState: dc?.readyState ?? null,\n sessionId: sdkAny._sessionId ?? null,\n });\n if (Date.now() - probeStart > 30_000) window.clearInterval(interval);\n }, 1500);\n}\n"],"names":["SDK_READY_TIMEOUT_MS","HOST_INIT_TIMEOUT_MS","TOKEN_TTL_MS","bootPromise","connectToHost","options","bootOnce","expectedOrigin","creds","decodeCredsFromHash","wipeUrlHash","waitForSdkReady","seedSessionToken","sdk","bridge","createBridge","postToHost","PROTOCOL_SOURCE","PROTOCOL_VERSION","live","pushAppState","postDebug","installSdkProbe","err","liveStateFromCreds","liveStateFromInit","msg","leaveListeners","themeListeners","configListeners","current","leaveTriggered","started","onMessage","dispatchMessage","cb","runLeaveOnce","event","isProtocolMessage","timeoutMs","fallbackCreds","resolve","initListener","data","timer","onPageHide","wrapped","c","state","message","opts","cleanUrl","token","userName","settled","onReady","phase","connectingStep","tag","payload","asJson","events","ev","e","detail","evObj","sdkAny","orig","sendOrig","p","dbg","sdp","ice","res","rj","m","probeStart","interval","pc","dc"],"mappings":";AAqDA,MAAMA,IAAuB,KACvBC,IAAuB,KACvBC,IAAe,MAAU;AAuD/B,IAAIC,IAAwD;AAI5D,eAAsBC,EACpBC,IAAgC,IACG;AACnC,SAAKF,MACHA,IAAcG,EAASD,CAAO,IAExB,MAAMF;AAChB;AAIA,eAAeG,EACbD,GACmC;AACnC,QAAME,IAAiBF,EAAQ,kBAAkB,OAAO,SAAS,QAG3DG,IAAQC,EAAoB,OAAO,SAAS,IAAI;AAGtD,MAFAC,EAAA,GAEI,CAACF;AACH,UAAM,IAAI;AAAA,MACR;AAAA,IAAA;AAOJ,MAAI,CADa,MAAMG,EAAgBX,CAAoB;AAEzD,UAAM,IAAI;AAAA,MACR,+EACsBA,CAAoB;AAAA,IAAA;AAM9C,EAAIQ,EAAM,WAAWA,EAAM,YACzBI,EAAiBJ,EAAM,SAASA,EAAM,QAAQ;AAIhD,QAAMK,IAA0B,IAAI,OAAO,WAAW;AAAA,IACpD,SAASL,EAAM;AAAA,IACf,cAAcA,EAAM;AAAA,IACpB,GAAGH,EAAQ;AAAA,EAAA,CACZ,GAGKS,IAASC,EAAaR,CAAc;AAC1C,EAAAS,EAAW;AAAA,IACT,QAAQC;AAAA,IACR,MAAM;AAAA,IACN,SAASC;AAAA,EAAA,CACV,GACDJ,EAAO,MAAA;AAIP,QAAMK,IAAO,MAAML,EAAO,cAAcb,GAAsBO,CAAK;AAGnE,EAAAY,EAAa,cAAc,MAAM,GACjCC,EAAU,mBAAmB,EAAE,aAAaF,EAAK,aAAa,GAC9D,MAAMN,EAAI,aAAA,GACVQ,EAAU,wBAAwB,EAAE,OAAQR,EAA2B,OAAO,GAC9E,MAAMA,EAAI,QAAA,GACVQ,EAAU,mBAAmB;AAAA,IAC3B,OAAQR,EAA2B;AAAA,IACnC,SAAUA,EAA+B,UAAU,IAAI;AAAA,EAAA,CACxD,GAEDO,EAAa,cAAc,SAAS,GACpCC,EAAU,sBAAsB,EAAE,aAAaF,EAAK,aAAa,GACjEG,EAAgBT,CAAG;AACnB,MAAI;AACF,UAAMA,EAAI,aAAaM,EAAK,WAAW,GACvCE,EAAU,iBAAiB;AAAA,EAC7B,SAASE,GAAK;AACZ,UAAAF,EAAU,sBAAsB;AAAA,MAC9B,SAAUE,GAAe,WAAW,OAAOA,CAAG;AAAA,IAAA,CAC/C,GACKA;AAAA,EACR;AAEA,SAAAH,EAAa,cAAc,MAAM,GACjCC,EAAU,iBAAiB,GAC3B,MAAMR,EAAI,YAAA,GACVQ,EAAU,cAAc,GAIxBP,EAAO,eAAeD,CAAG,GACzBO,EAAa,QAAQ,IAAI,GAElBN,EAAO,YAAqBD,GAAKM,CAAI;AAC9C;AAaA,SAASK,EAAmBhB,GAA+B;AACzD,SAAO;AAAA,IACL,OAAOA,EAAM;AAAA,IACb,QAAQA,EAAM;AAAA,IACd,SAASA,EAAM;AAAA,IACf,UAAUA,EAAM;AAAA,IAChB,UAAUA,EAAM,YAAY;AAAA,IAC5B,aAAaA,EAAM;AAAA,EAAA;AAEvB;AAEA,SAASiB,EAAkBC,GAA6B;AACtD,SAAO;AAAA,IACL,OAAOA,EAAI;AAAA,IACX,QAAQA,EAAI;AAAA,IACZ,SAASA,EAAI;AAAA,IACb,UAAUA,EAAI;AAAA,IACd,UAAUA,EAAI,YAAY;AAAA,IAC1B,aAAaA,EAAI;AAAA,EAAA;AAErB;AAEA,SAASX,EAAaR,GAAwB;AAK5C,QAAMoB,wBAAqB,IAAA,GACrBC,wBAAqB,IAAA,GACrBC,wBAAsB,IAAA;AAE5B,MAAIC,IAA4B,MAC5BC,IAAiB,IAIjBC,IAAU,IACVC,IAAoD;AAExD,WAASC,EAAgBR,GAA2B;AAClD,YAAQA,EAAI,MAAA;AAAA,MACV,KAAK,aAAa;AAChB,QAAAI,IAAUL,EAAkBC,CAAG,GAI/BE,EAAe,QAAQ,CAACO,MAAOA,EAAGL,EAAS,KAAK,CAAC,GACjDD,EAAgB,QAAQ,CAACM,MAAOA,EAAGL,EAAS,MAAM,CAAC;AACnD;AAAA,MACF;AAAA,MACA,KAAK,sBAAsB;AACzB,QAAIA,MAASA,EAAQ,QAAQJ,EAAI,QACjCE,EAAe,QAAQ,CAACO,MAAOA,EAAGT,EAAI,KAAK,CAAC;AAC5C;AAAA,MACF;AAAA,MACA,KAAK,uBAAuB;AAC1B,QAAII,MAASA,EAAQ,SAASJ,EAAI,SAClCG,EAAgB,QAAQ,CAACM,MAAOA,EAAGT,EAAI,MAAM,CAAC;AAC9C;AAAA,MACF;AAAA,MACA,KAAK,gBAAgB;AACnB,QAAAU,EAAA;AACA;AAAA,MACF;AAAA,IAAA;AAAA,EAEJ;AAEA,WAASA,IAAqB;AAC5B,IAAIL,MACJA,IAAiB,IAGjBJ,EAAe,QAAQ,CAACQ,MAAO;AAC7B,UAAI;AACF,QAAKA,EAAA;AAAA,MACP,SAASZ,GAAK;AACZ,gBAAQ,KAAK,2CAA2CA,CAAG;AAAA,MAC7D;AAAA,IACF,CAAC;AAAA,EACH;AAEA,SAAO;AAAA,IACL,QAAc;AACZ,MAAIS,MACJA,IAAU,IACVC,IAAY,CAACI,MAAwB;AACnC,QAAIA,EAAM,WAAW9B,KAChB+B,EAAkBD,EAAM,IAAI,KACjCH,EAAgBG,EAAM,IAAsB;AAAA,MAC9C,GACA,OAAO,iBAAiB,WAAWJ,CAAS;AAAA,IAC9C;AAAA,IAEA,MAAM,cACJM,GACAC,GACoB;AAKpB,aADmB,OAAO,WAAW,SAOjCV,KAEG,IAAI,QAAQ,CAACW,MAAY;AAC9B,cAAMC,IAAe,CAACL,MAA8B;AAElD,cADIA,EAAM,WAAW9B,KACjB,CAAC+B,EAAkBD,EAAM,IAAI,EAAG;AACpC,gBAAMM,IAAON,EAAM;AACnB,UAAIM,EAAK,SAAS,gBAClB,OAAO,oBAAoB,WAAWD,CAAY,GAClD,OAAO,aAAaE,CAAK,GACzBd,IAAUL,EAAkBkB,CAAI,GAChCF,EAAQX,CAAO;AAAA,QACjB,GACMc,IAAQ,OAAO,WAAW,MAAM;AACpC,iBAAO,oBAAoB,WAAWF,CAAY,GAI7CZ,MAASA,IAAUN,EAAmBgB,CAAa,IACxDC,EAAQX,CAAO;AAAA,QACjB,GAAGS,CAAS;AACZ,eAAO,iBAAiB,WAAWG,CAAY;AAAA,MACjD,CAAC,KA3BCZ,IAAUN,EAAmBgB,CAAa,GACnCV;AAAA,IA2BX;AAAA,IAEA,eAAejB,GAA+B;AAC5C,YAAMgC,IAAa,MAAY;AAC7B,QAAAT,EAAA;AACA,YAAI;AACF,UAAKvB,EAAI,YAAA;AAAA,QACX,QAAQ;AAAA,QAER;AAAA,MACF;AACA,aAAO,iBAAiB,YAAYgC,GAAY,EAAE,MAAM,IAAM;AAAA,IAChE;AAAA,IAEA,YACEhC,GACAM,GAC0B;AAC1B,aAAAW,IAAUX,GACH;AAAA,QACL,QAAQN;AAAA,QACR,IAAI,QAAmB;AACrB,iBAAOiB,EAAS;AAAA,QAClB;AAAA,QACA,IAAI,SAAyB;AAC3B,iBAAOA,EAAS;AAAA,QAClB;AAAA,QACA,IAAI,UAAkB;AACpB,iBAAOA,EAAS;AAAA,QAClB;AAAA,QACA,IAAI,WAAmB;AACrB,iBAAOA,EAAS;AAAA,QAClB;AAAA,QACA,IAAI,WAA0B;AAC5B,iBAAOA,EAAS;AAAA,QAClB;AAAA,QACA,QAAQK,GAAI;AACV,iBAAAR,EAAe,IAAIQ,CAAE,GACd,MAAMR,EAAe,OAAOQ,CAAE;AAAA,QACvC;AAAA,QACA,cAAcA,GAAI;AAChB,iBAAAP,EAAe,IAAIO,CAAE,GACd,MAAMP,EAAe,OAAOO,CAAE;AAAA,QACvC;AAAA,QACA,eAAeA,GAAI;AACjB,gBAAMW,IAAU,CAACC,MAAeZ,EAAGY,CAAmB;AACtD,iBAAAlB,EAAgB,IAAIiB,CAAO,GACpB,MAAMjB,EAAgB,OAAOiB,CAAO;AAAA,QAC7C;AAAA,QACA,YAAYE,GAAO;AACjB,UAAA5B;AAAA,YACE4B,EAAM;AAAA,YACNA,EAAM,kBAAkB;AAAA,YACxBA,EAAM,WAAW;AAAA,UAAA;AAAA,QAErB;AAAA,QACA,eAAe;AACb,UAAAhC,EAAW;AAAA,YACT,QAAQC;AAAA,YACR,MAAM;AAAA,YACN,SAASC;AAAA,UAAA,CACV;AAAA,QACH;AAAA,QACA,YAAY+B,GAASC,GAAM;AACzB,UAAAlC,EAAW;AAAA,YACT,QAAQC;AAAA,YACR,MAAM;AAAA,YACN,SAASC;AAAA,YACT,SAAA+B;AAAA,YACA,OAAOC,GAAM,UAAU;AAAA,YACvB,QAAQA,GAAM;AAAA,UAAA,CACf;AAAA,QACH;AAAA,MAAA;AAAA,IAEJ;AAAA,EAAA;AAEJ;AAIA,SAASxC,IAAoB;AAG3B,MAAI;AACF,UAAMyC,IACJ,OAAO,SAAS,WAAW,OAAO,SAAS;AAC7C,YAAQ,aAAa,QAAQ,OAAO,SAAS,OAAOA,CAAQ;AAAA,EAC9D,QAAQ;AAAA,EAER;AACF;AAEA,SAASvC,EAAiBwC,GAAeC,GAAwB;AAC/D,MAAI;AACF,mBAAe,QAAQ,YAAYD,CAAK,GACxC,eAAe,QAAQ,eAAeC,CAAQ,GAC9C,eAAe;AAAA,MACb;AAAA,MACA,IAAI,KAAK,KAAK,QAAQnD,CAAY,EAAE,YAAA;AAAA,IAAY;AAAA,EAEpD,QAAQ;AAAA,EAER;AACF;AAEA,SAASS,EAAgB4B,GAAqC;AAC5D,SAAO,IAAI,QAAQ,CAACE,MAAY;AAC9B,QAAI,OAAO,SAAW,KAAa;AACjC,MAAAA,EAAQ,EAAK;AACb;AAAA,IACF;AACA,QAAI,OAAO,YAAY;AACrB,MAAAA,EAAQ,EAAI;AACZ;AAAA,IACF;AACA,QAAIa,IAAU;AACd,UAAMC,IAAU,MAAY;AAC1B,MAAID,MACJA,IAAU,IACV,OAAO,oBAAoB,oBAAoBC,CAAO,GACtD,OAAO,aAAaX,CAAK,GACzBH,EAAQ,EAAQ,OAAO,UAAW;AAAA,IACpC,GACMG,IAAQ,OAAO,WAAW,MAAM;AACpC,MAAIU,MACJA,IAAU,IACV,OAAO,oBAAoB,oBAAoBC,CAAO,GACtDd,EAAQ,EAAK;AAAA,IACf,GAAGF,CAAS;AACZ,WAAO,iBAAiB,oBAAoBgB,CAAO;AAAA,EACrD,CAAC;AACH;AAEA,SAASvC,EAAWU,GAA2B;AAC7C,MAAI,SAAO,SAAW;AAItB,QAAI;AACF,aAAO,OAAO,YAAYA,GAAK,OAAO,SAAS,MAAM;AAAA,IACvD,SAASH,GAAK;AACZ,cAAQ,KAAK,wDAAwDA,CAAG;AAAA,IAC1E;AACF;AAEA,SAASH,EACPoC,GACAC,GACAR,IAAyB,MACnB;AACN,EAAAjC,EAAW;AAAA,IACT,QAAQC;AAAA,IACR,MAAM;AAAA,IACN,SAASC;AAAA,IACT,OAAAsC;AAAA,IACA,gBAAAC;AAAA,IACA,SAAAR;AAAA,EAAA,CACD;AACH;AASA,SAAS5B,EAAUqC,GAAaC,IAAmC,IAAU;AAC3E,MAAI,SAAO,SAAW,MACtB;AAAA,QAAI;AACF,aAAO,OAAO;AAAA,QACZ;AAAA,UACE,QAAQ1C;AAAA,UACR,MAAM;AAAA,UACN,SAASC;AAAA,UACT,KAAAwC;AAAA,UACA,SAAAC;AAAA,QAAA;AAAA,QAEF,OAAO,SAAS;AAAA,MAAA;AAAA,IAEpB,QAAQ;AAAA,IAER;AACA,QAAI;AACF,UAAIC,IAAS;AACb,UAAI;AACF,QAAAA,IAAS,KAAK,UAAUD,CAAO;AAAA,MACjC,QAAQ;AACN,QAAAC,IAAS;AAAA,MACX;AACA,cAAQ,KAAK,iBAAiBF,CAAG,IAAIE,CAAM,EAAE;AAAA,IAC/C,QAAQ;AAAA,IAER;AAAA;AACF;AAQA,SAAStC,EAAgBT,GAA+B;AACtD,QAAMgD,IAAS;AAAA,IACb;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEF,aAAWC,KAAMD;AACf,QAAI;AACD,MAAAhD,EAEE,iBAAiBiD,GAAI,CAACC,MAAe;AACtC,YAAIC,IAAkC,CAAA;AACtC,cAAMC,IAAQF;AACd,YAAIE,KAAS,OAAOA,KAAU,YAAY,YAAYA;AACpD,cAAI;AACF,YAAAD,IAAS,KAAK,MAAM,KAAK,UAAUC,EAAM,UAAU,IAAI,CAAC;AAAA,UAC1D,QAAQ;AACN,YAAAD,IAAS,EAAE,iBAAiB,GAAA;AAAA,UAC9B;AAEF,QAAA3C,EAAU,OAAOyC,CAAE,IAAIE,CAAM;AAAA,MAC/B,CAAC;AAAA,IACH,QAAQ;AAAA,IAER;AAOF,MAAI;AACF,UAAME,IAASrD,GAGTsD,IAAOD,EAAO;AACpB,QAAI,OAAOC,KAAS,YAAY;AAC9B,YAAMC,IAAYF,EAAmC;AAGrD,MAAI,OAAOE,KAAa,eACrBF,EAAmC,gBAClC,eAA0CP,GAAkB;AAC1D,cAAMU,IAAIV,GACJW,IAA+B,EAAE,MAAMD,GAAG,QAAQ,IAAA;AAGxD,YAFIA,KAAK,YAAYA,QAAO,SAAS,OAAOA,EAAE,MAAM,IAChDA,KAAK,eAAeA,QAAO,YAAY,OAAOA,EAAE,SAAS,IACzDA,KAAK,SAASA,GAAG;AACnB,gBAAME,IAAMF,EAAE;AACd,UAAAC,EAAI,UAAUC,GAAK,QAAQ,KAC3BD,EAAI,SAASC,GAAK,KAAK,UAAU;AAAA,QACnC;AACA,YAAIF,KAAK,SAASA,GAAG;AACnB,gBAAMG,IAAMH,EAAE;AACd,UAAAC,EAAI,WACDE,GAAK,aAAa,IAAI,MAAM,GAAG,EAAE,KAAK;AAAA,QAC3C;AACA,QAAAnD,EAAU,YAAYiD,CAAG;AACzB,YAAI;AACF,gBAAMG,IAAM,MAAML,EAAS,KAAK,MAAMT,CAAO,GACvCe,IAAKD;AACX,iBAAApD,EAAU,gBAAgB;AAAA,YACxB,OAAOiD,EAAI;AAAA,YACX,SAASI,GAAI,QAAQ;AAAA,YACrB,MAAMA,IAAK,OAAO,KAAKA,CAAE,IAAI,CAAA;AAAA,UAAC,CAC/B,GACMD;AAAA,QACT,SAASlD,GAAK;AACZ,gBAAAF,EAAU,gBAAgB;AAAA,YACxB,OAAOiD,EAAI;AAAA,YACX,KAAM/C,GAAe,WAAW,OAAOA,CAAG;AAAA,UAAA,CAC3C,GACKA;AAAA,QACR;AAAA,MACF,IAEJ2C,EAAO,0BAA0B,SAAiBxC,GAAc;AAC9D,cAAMiD,IAAIjD,GACJiC,IAAmC,EAAE,MAAMgB,GAAG,QAAQ,IAAA;AAG5D,YAFI,eAAeA,MAAGhB,EAAQ,YAAY,OAAOgB,EAAE,SAAS,IACxD,YAAYA,MAAGhB,EAAQ,SAAS,OAAOgB,EAAE,MAAM,IAC/C,SAASA,GAAG;AACd,gBAAMJ,IAAMI,EAAE;AACd,UAAAhB,EAAQ,UAAUY,GAAK,QAAQ,KAC/BZ,EAAQ,SAASY,GAAK,KAAK,UAAU;AAAA,QACvC;AACA,YAAI,SAASI,GAAG;AACd,gBAAMH,IAAMG,EAAE;AACd,UAAAhB,EAAQ,WACLa,GAAK,aAAa,IAAI,MAAM,GAAG,EAAE,KAAK;AAAA,QAC3C;AACA,eAAI,YAAYG,MAAGhB,EAAQ,SAAS,OAAOgB,EAAE,MAAM,IACnDtD,EAAU,WAAWsC,CAAO,GACrBQ,EAAK,KAAK,MAAMzC,CAAG;AAAA,MAC5B;AAAA,IACF;AAAA,EACF,QAAQ;AAAA,EAER;AACA,QAAMkD,IAAa,KAAK,IAAA,GAClBC,IAAW,OAAO,YAAY,MAAM;AACxC,UAAMX,IAASrD,GAQTiE,IAAKZ,EAAO,KACZa,IAAKb,EAAO;AAClB,IAAA7C,EAAU,aAAa;AAAA,MACrB,WAAW,KAAK,IAAA,IAAQuD;AAAA,MACxB,UAAUV,EAAO,WAAW;AAAA,MAC5B,OAAOA,EAAO,UAAU;AAAA,MACxB,YAAYA,EAAO,qBAAqB,QAAQ,WAAW;AAAA,MAC3D,SAASY,GAAI,mBAAmB;AAAA,MAChC,UAAUA,GAAI,sBAAsB;AAAA,MACpC,WAAWA,GAAI,qBAAqB;AAAA,MACpC,gBAAgBA,GAAI,kBAAkB;AAAA,MACtC,SAASC,GAAI,cAAc;AAAA,MAC3B,WAAWb,EAAO,cAAc;AAAA,IAAA,CACjC,GACG,KAAK,QAAQU,IAAa,OAAQ,OAAO,cAAcC,CAAQ;AAAA,EACrE,GAAG,IAAI;AACT;"} \ No newline at end of file diff --git a/vendor/reachy-mini-host/dist/chunks/mountHost-9Zrr6zPn.js b/vendor/reachy-mini-host/dist/chunks/mountHost-9Zrr6zPn.js new file mode 100644 index 0000000000000000000000000000000000000000..bbf602abc02bd4ff9ba259b1dd85756ef4bc1f2a --- /dev/null +++ b/vendor/reachy-mini-host/dist/chunks/mountHost-9Zrr6zPn.js @@ -0,0 +1,48250 @@ +import { i as Lx, a as Ud, P as Bd, e as Nx } from "./protocol-5pluLXHg.js"; +function jx(o, u) { + for (var s = 0; s < u.length; s++) { + const d = u[s]; + if (typeof d != "string" && !Array.isArray(d)) { + for (const m in d) + if (m !== "default" && !(m in o)) { + const y = Object.getOwnPropertyDescriptor(d, m); + y && Object.defineProperty(o, m, y.get ? y : { + enumerable: !0, + get: () => d[m] + }); + } + } + } + return Object.freeze(Object.defineProperty(o, Symbol.toStringTag, { value: "Module" })); +} +function mC(o) { + return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o; +} +var Hd = { exports: {} }, R9 = {}; +var sv; +function Ux() { + if (sv) return R9; + sv = 1; + var o = /* @__PURE__ */ Symbol.for("react.transitional.element"), u = /* @__PURE__ */ Symbol.for("react.fragment"); + function s(d, m, y) { + var b = null; + if (y !== void 0 && (b = "" + y), m.key !== void 0 && (b = "" + m.key), "key" in m) { + y = {}; + for (var S in m) + S !== "key" && (y[S] = m[S]); + } else y = m; + return m = y.ref, { + $$typeof: o, + type: d, + key: b, + ref: m !== void 0 ? m : null, + props: y + }; + } + return R9.Fragment = u, R9.jsx = s, R9.jsxs = s, R9; +} +var A9 = {}, $d = { exports: {} }, be = {}; +var fv; +function Bx() { + if (fv) return be; + fv = 1; + var o = /* @__PURE__ */ Symbol.for("react.transitional.element"), u = /* @__PURE__ */ Symbol.for("react.portal"), s = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"), m = /* @__PURE__ */ Symbol.for("react.profiler"), y = /* @__PURE__ */ Symbol.for("react.consumer"), b = /* @__PURE__ */ Symbol.for("react.context"), S = /* @__PURE__ */ Symbol.for("react.forward_ref"), T = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.memo"), M = /* @__PURE__ */ Symbol.for("react.lazy"), A = /* @__PURE__ */ Symbol.for("react.activity"), R = Symbol.iterator; + function _(D) { + return D === null || typeof D != "object" ? null : (D = R && D[R] || D["@@iterator"], typeof D == "function" ? D : null); + } + var B = { + isMounted: function() { + return !1; + }, + enqueueForceUpdate: function() { + }, + enqueueReplaceState: function() { + }, + enqueueSetState: function() { + } + }, z = Object.assign, q = {}; + function Z(D, X, p2) { + this.props = D, this.context = X, this.refs = q, this.updater = p2 || B; + } + Z.prototype.isReactComponent = {}, Z.prototype.setState = function(D, X) { + if (typeof D != "object" && typeof D != "function" && D != null) + throw Error( + "takes an object of state variables to update or a function which returns an object of state variables." + ); + this.updater.enqueueSetState(this, D, X, "setState"); + }, Z.prototype.forceUpdate = function(D) { + this.updater.enqueueForceUpdate(this, D, "forceUpdate"); + }; + function F() { + } + F.prototype = Z.prototype; + function G(D, X, p2) { + this.props = D, this.context = X, this.refs = q, this.updater = p2 || B; + } + var k = G.prototype = new F(); + k.constructor = G, z(k, Z.prototype), k.isPureReactComponent = !0; + var $ = Array.isArray; + function K() { + } + var a2 = { H: null, A: null, T: null, S: null }, u2 = Object.prototype.hasOwnProperty; + function d2(D, X, p2) { + var s2 = p2.ref; + return { + $$typeof: o, + type: D, + key: X, + ref: s2 !== void 0 ? s2 : null, + props: p2 + }; + } + function r2(D, X) { + return d2(D.type, X, D.props); + } + function S2(D) { + return typeof D == "object" && D !== null && D.$$typeof === o; + } + function N(D) { + var X = { "=": "=0", ":": "=2" }; + return "$" + D.replace(/[=:]/g, function(p2) { + return X[p2]; + }); + } + var o2 = /\/+/g; + function g2(D, X) { + return typeof D == "object" && D !== null && D.key != null ? N("" + D.key) : X.toString(36); + } + function R2(D) { + switch (D.status) { + case "fulfilled": + return D.value; + case "rejected": + throw D.reason; + default: + switch (typeof D.status == "string" ? D.then(K, K) : (D.status = "pending", D.then( + function(X) { + D.status === "pending" && (D.status = "fulfilled", D.value = X); + }, + function(X) { + D.status === "pending" && (D.status = "rejected", D.reason = X); + } + )), D.status) { + case "fulfilled": + return D.value; + case "rejected": + throw D.reason; + } + } + throw D; + } + function H(D, X, p2, s2, L2) { + var D2 = typeof D; + (D2 === "undefined" || D2 === "boolean") && (D = null); + var A2 = !1; + if (D === null) A2 = !0; + else + switch (D2) { + case "bigint": + case "string": + case "number": + A2 = !0; + break; + case "object": + switch (D.$$typeof) { + case o: + case u: + A2 = !0; + break; + case M: + return A2 = D._init, H( + A2(D._payload), + X, + p2, + s2, + L2 + ); + } + } + if (A2) + return L2 = L2(D), A2 = s2 === "" ? "." + g2(D, 0) : s2, $(L2) ? (p2 = "", A2 != null && (p2 = A2.replace(o2, "$&/") + "/"), H(L2, X, p2, "", function($2) { + return $2; + })) : L2 != null && (S2(L2) && (L2 = r2( + L2, + p2 + (L2.key == null || D && D.key === L2.key ? "" : ("" + L2.key).replace( + o2, + "$&/" + ) + "/") + A2 + )), X.push(L2)), 1; + A2 = 0; + var B2 = s2 === "" ? "." : s2 + ":"; + if ($(D)) + for (var k2 = 0; k2 < D.length; k2++) + s2 = D[k2], D2 = B2 + g2(s2, k2), A2 += H( + s2, + X, + p2, + D2, + L2 + ); + else if (k2 = _(D), typeof k2 == "function") + for (D = k2.call(D), k2 = 0; !(s2 = D.next()).done; ) + s2 = s2.value, D2 = B2 + g2(s2, k2++), A2 += H( + s2, + X, + p2, + D2, + L2 + ); + else if (D2 === "object") { + if (typeof D.then == "function") + return H( + R2(D), + X, + p2, + s2, + L2 + ); + throw X = String(D), Error( + "Objects are not valid as a React child (found: " + (X === "[object Object]" ? "object with keys {" + Object.keys(D).join(", ") + "}" : X) + "). If you meant to render a collection of children, use an array instead." + ); + } + return A2; + } + function e2(D, X, p2) { + if (D == null) return D; + var s2 = [], L2 = 0; + return H(D, s2, "", "", function(D2) { + return X.call(p2, D2, L2++); + }), s2; + } + function v2(D) { + if (D._status === -1) { + var X = D._result; + X = X(), X.then( + function(p2) { + (D._status === 0 || D._status === -1) && (D._status = 1, D._result = p2); + }, + function(p2) { + (D._status === 0 || D._status === -1) && (D._status = 2, D._result = p2); + } + ), D._status === -1 && (D._status = 0, D._result = X); + } + if (D._status === 1) return D._result.default; + throw D._result; + } + var E2 = typeof reportError == "function" ? reportError : function(D) { + if (typeof window == "object" && typeof window.ErrorEvent == "function") { + var X = new window.ErrorEvent("error", { + bubbles: !0, + cancelable: !0, + message: typeof D == "object" && D !== null && typeof D.message == "string" ? String(D.message) : String(D), + error: D + }); + if (!window.dispatchEvent(X)) return; + } else if (typeof process == "object" && typeof process.emit == "function") { + process.emit("uncaughtException", D); + return; + } + console.error(D); + }, i2 = { + map: e2, + forEach: function(D, X, p2) { + e2( + D, + function() { + X.apply(this, arguments); + }, + p2 + ); + }, + count: function(D) { + var X = 0; + return e2(D, function() { + X++; + }), X; + }, + toArray: function(D) { + return e2(D, function(X) { + return X; + }) || []; + }, + only: function(D) { + if (!S2(D)) + throw Error( + "React.Children.only expected to receive a single React element child." + ); + return D; + } + }; + return be.Activity = A, be.Children = i2, be.Component = Z, be.Fragment = s, be.Profiler = m, be.PureComponent = G, be.StrictMode = d, be.Suspense = T, be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = a2, be.__COMPILER_RUNTIME = { + __proto__: null, + c: function(D) { + return a2.H.useMemoCache(D); + } + }, be.cache = function(D) { + return function() { + return D.apply(null, arguments); + }; + }, be.cacheSignal = function() { + return null; + }, be.cloneElement = function(D, X, p2) { + if (D == null) + throw Error( + "The argument must be a React element, but you passed " + D + "." + ); + var s2 = z({}, D.props), L2 = D.key; + if (X != null) + for (D2 in X.key !== void 0 && (L2 = "" + X.key), X) + !u2.call(X, D2) || D2 === "key" || D2 === "__self" || D2 === "__source" || D2 === "ref" && X.ref === void 0 || (s2[D2] = X[D2]); + var D2 = arguments.length - 2; + if (D2 === 1) s2.children = p2; + else if (1 < D2) { + for (var A2 = Array(D2), B2 = 0; B2 < D2; B2++) + A2[B2] = arguments[B2 + 2]; + s2.children = A2; + } + return d2(D.type, L2, s2); + }, be.createContext = function(D) { + return D = { + $$typeof: b, + _currentValue: D, + _currentValue2: D, + _threadCount: 0, + Provider: null, + Consumer: null + }, D.Provider = D, D.Consumer = { + $$typeof: y, + _context: D + }, D; + }, be.createElement = function(D, X, p2) { + var s2, L2 = {}, D2 = null; + if (X != null) + for (s2 in X.key !== void 0 && (D2 = "" + X.key), X) + u2.call(X, s2) && s2 !== "key" && s2 !== "__self" && s2 !== "__source" && (L2[s2] = X[s2]); + var A2 = arguments.length - 2; + if (A2 === 1) L2.children = p2; + else if (1 < A2) { + for (var B2 = Array(A2), k2 = 0; k2 < A2; k2++) + B2[k2] = arguments[k2 + 2]; + L2.children = B2; + } + if (D && D.defaultProps) + for (s2 in A2 = D.defaultProps, A2) + L2[s2] === void 0 && (L2[s2] = A2[s2]); + return d2(D, D2, L2); + }, be.createRef = function() { + return { current: null }; + }, be.forwardRef = function(D) { + return { $$typeof: S, render: D }; + }, be.isValidElement = S2, be.lazy = function(D) { + return { + $$typeof: M, + _payload: { _status: -1, _result: D }, + _init: v2 + }; + }, be.memo = function(D, X) { + return { + $$typeof: x, + type: D, + compare: X === void 0 ? null : X + }; + }, be.startTransition = function(D) { + var X = a2.T, p2 = {}; + a2.T = p2; + try { + var s2 = D(), L2 = a2.S; + L2 !== null && L2(p2, s2), typeof s2 == "object" && s2 !== null && typeof s2.then == "function" && s2.then(K, E2); + } catch (D2) { + E2(D2); + } finally { + X !== null && p2.types !== null && (X.types = p2.types), a2.T = X; + } + }, be.unstable_useCacheRefresh = function() { + return a2.H.useCacheRefresh(); + }, be.use = function(D) { + return a2.H.use(D); + }, be.useActionState = function(D, X, p2) { + return a2.H.useActionState(D, X, p2); + }, be.useCallback = function(D, X) { + return a2.H.useCallback(D, X); + }, be.useContext = function(D) { + return a2.H.useContext(D); + }, be.useDebugValue = function() { + }, be.useDeferredValue = function(D, X) { + return a2.H.useDeferredValue(D, X); + }, be.useEffect = function(D, X) { + return a2.H.useEffect(D, X); + }, be.useEffectEvent = function(D) { + return a2.H.useEffectEvent(D); + }, be.useId = function() { + return a2.H.useId(); + }, be.useImperativeHandle = function(D, X, p2) { + return a2.H.useImperativeHandle(D, X, p2); + }, be.useInsertionEffect = function(D, X) { + return a2.H.useInsertionEffect(D, X); + }, be.useLayoutEffect = function(D, X) { + return a2.H.useLayoutEffect(D, X); + }, be.useMemo = function(D, X) { + return a2.H.useMemo(D, X); + }, be.useOptimistic = function(D, X) { + return a2.H.useOptimistic(D, X); + }, be.useReducer = function(D, X, p2) { + return a2.H.useReducer(D, X, p2); + }, be.useRef = function(D) { + return a2.H.useRef(D); + }, be.useState = function(D) { + return a2.H.useState(D); + }, be.useSyncExternalStore = function(D, X, p2) { + return a2.H.useSyncExternalStore( + D, + X, + p2 + ); + }, be.useTransition = function() { + return a2.H.useTransition(); + }, be.version = "19.2.6", be; +} +var B9 = { exports: {} }; +B9.exports; +var dv; +function Hx() { + return dv || (dv = 1, (function(o, u) { + process.env.NODE_ENV !== "production" && (function() { + function s(j, c2) { + Object.defineProperty(y.prototype, j, { + get: function() { + console.warn( + "%s(...) is deprecated in plain JavaScript React classes. %s", + c2[0], + c2[1] + ); + } + }); + } + function d(j) { + return j === null || typeof j != "object" ? null : (j = h2 && j[h2] || j["@@iterator"], typeof j == "function" ? j : null); + } + function m(j, c2) { + j = (j = j.constructor) && (j.displayName || j.name) || "ReactClass"; + var H2 = j + "." + c2; + ge[H2] || (console.error( + "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", + c2, + j + ), ge[H2] = !0); + } + function y(j, c2, H2) { + this.props = j, this.context = c2, this.refs = me, this.updater = H2 || he; + } + function b() { + } + function S(j, c2, H2) { + this.props = j, this.context = c2, this.refs = me, this.updater = H2 || he; + } + function T() { + } + function x(j) { + return "" + j; + } + function M(j) { + try { + x(j); + var c2 = !1; + } catch { + c2 = !0; + } + if (c2) { + c2 = console; + var H2 = c2.error, V2 = typeof Symbol == "function" && Symbol.toStringTag && j[Symbol.toStringTag] || j.constructor.name || "Object"; + return H2.call( + c2, + "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", + V2 + ), x(j); + } + } + function A(j) { + if (j == null) return null; + if (typeof j == "function") + return j.$$typeof === Qe ? null : j.displayName || j.name || null; + if (typeof j == "string") return j; + switch (j) { + case D: + return "Fragment"; + case p2: + return "Profiler"; + case X: + return "StrictMode"; + case A2: + return "Suspense"; + case B2: + return "SuspenseList"; + case M2: + return "Activity"; + } + if (typeof j == "object") + switch (typeof j.tag == "number" && console.error( + "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." + ), j.$$typeof) { + case i2: + return "Portal"; + case L2: + return j.displayName || "Context"; + case s2: + return (j._context.displayName || "Context") + ".Consumer"; + case D2: + var c2 = j.render; + return j = j.displayName, j || (j = c2.displayName || c2.name || "", j = j !== "" ? "ForwardRef(" + j + ")" : "ForwardRef"), j; + case k2: + return c2 = j.displayName || null, c2 !== null ? c2 : A(j.type) || "Memo"; + case $2: + c2 = j._payload, j = j._init; + try { + return A(j(c2)); + } catch { + } + } + return null; + } + function R(j) { + if (j === D) return "<>"; + if (typeof j == "object" && j !== null && j.$$typeof === $2) + return "<...>"; + try { + var c2 = A(j); + return c2 ? "<" + c2 + ">" : "<...>"; + } catch { + return "<...>"; + } + } + function _() { + var j = Y2.A; + return j === null ? null : j.getOwner(); + } + function B() { + return Error("react-stack-top-frame"); + } + function z(j) { + if (Be.call(j, "key")) { + var c2 = Object.getOwnPropertyDescriptor(j, "key").get; + if (c2 && c2.isReactWarning) return !1; + } + return j.key !== void 0; + } + function q(j, c2) { + function H2() { + o4 || (o4 = !0, console.error( + "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", + c2 + )); + } + H2.isReactWarning = !0, Object.defineProperty(j, "key", { + get: H2, + configurable: !0 + }); + } + function Z() { + var j = A(this.type); + return p3[j] || (p3[j] = !0, console.error( + "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." + )), j = this.props.ref, j !== void 0 ? j : null; + } + function F(j, c2, H2, V2, X2, ae) { + var K2 = H2.ref; + return j = { + $$typeof: E2, + type: j, + key: c2, + props: H2, + _owner: V2 + }, (K2 !== void 0 ? K2 : null) !== null ? Object.defineProperty(j, "ref", { + enumerable: !1, + get: Z + }) : Object.defineProperty(j, "ref", { enumerable: !1, value: null }), j._store = {}, Object.defineProperty(j._store, "validated", { + configurable: !1, + enumerable: !1, + writable: !0, + value: 0 + }), Object.defineProperty(j, "_debugInfo", { + configurable: !1, + enumerable: !1, + writable: !0, + value: null + }), Object.defineProperty(j, "_debugStack", { + configurable: !1, + enumerable: !1, + writable: !0, + value: X2 + }), Object.defineProperty(j, "_debugTask", { + configurable: !1, + enumerable: !1, + writable: !0, + value: ae + }), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j; + } + function G(j, c2) { + return c2 = F( + j.type, + c2, + j.props, + j._owner, + j._debugStack, + j._debugTask + ), j._store && (c2._store.validated = j._store.validated), c2; + } + function k(j) { + $(j) ? j._store && (j._store.validated = 1) : typeof j == "object" && j !== null && j.$$typeof === $2 && (j._payload.status === "fulfilled" ? $(j._payload.value) && j._payload.value._store && (j._payload.value._store.validated = 1) : j._store && (j._store.validated = 1)); + } + function $(j) { + return typeof j == "object" && j !== null && j.$$typeof === E2; + } + function K(j) { + var c2 = { "=": "=0", ":": "=2" }; + return "$" + j.replace(/[=:]/g, function(H2) { + return c2[H2]; + }); + } + function a2(j, c2) { + return typeof j == "object" && j !== null && j.key != null ? (M(j.key), K("" + j.key)) : c2.toString(36); + } + function u2(j) { + switch (j.status) { + case "fulfilled": + return j.value; + case "rejected": + throw j.reason; + default: + switch (typeof j.status == "string" ? j.then(T, T) : (j.status = "pending", j.then( + function(c2) { + j.status === "pending" && (j.status = "fulfilled", j.value = c2); + }, + function(c2) { + j.status === "pending" && (j.status = "rejected", j.reason = c2); + } + )), j.status) { + case "fulfilled": + return j.value; + case "rejected": + throw j.reason; + } + } + throw j; + } + function d2(j, c2, H2, V2, X2) { + var ae = typeof j; + (ae === "undefined" || ae === "boolean") && (j = null); + var K2 = !1; + if (j === null) K2 = !0; + else + switch (ae) { + case "bigint": + case "string": + case "number": + K2 = !0; + break; + case "object": + switch (j.$$typeof) { + case E2: + case i2: + K2 = !0; + break; + case $2: + return K2 = j._init, d2( + K2(j._payload), + c2, + H2, + V2, + X2 + ); + } + } + if (K2) { + K2 = j, X2 = X2(K2); + var Se = V2 === "" ? "." + a2(K2, 0) : V2; + return y0(X2) ? (H2 = "", Se != null && (H2 = Se.replace(at, "$&/") + "/"), d2(X2, c2, H2, "", function(F2) { + return F2; + })) : X2 != null && ($(X2) && (X2.key != null && (K2 && K2.key === X2.key || M(X2.key)), H2 = G( + X2, + H2 + (X2.key == null || K2 && K2.key === X2.key ? "" : ("" + X2.key).replace( + at, + "$&/" + ) + "/") + Se + ), V2 !== "" && K2 != null && $(K2) && K2.key == null && K2._store && !K2._store.validated && (H2._store.validated = 2), X2 = H2), c2.push(X2)), 1; + } + if (K2 = 0, Se = V2 === "" ? "." : V2 + ":", y0(j)) + for (var ce = 0; ce < j.length; ce++) + V2 = j[ce], ae = Se + a2(V2, ce), K2 += d2( + V2, + c2, + H2, + ae, + X2 + ); + else if (ce = d(j), typeof ce == "function") + for (ce === j.entries && (l0 || console.warn( + "Using Maps as children is not supported. Use an array of keyed ReactElements instead." + ), l0 = !0), j = ce.call(j), ce = 0; !(V2 = j.next()).done; ) + V2 = V2.value, ae = Se + a2(V2, ce++), K2 += d2( + V2, + c2, + H2, + ae, + X2 + ); + else if (ae === "object") { + if (typeof j.then == "function") + return d2( + u2(j), + c2, + H2, + V2, + X2 + ); + throw c2 = String(j), Error( + "Objects are not valid as a React child (found: " + (c2 === "[object Object]" ? "object with keys {" + Object.keys(j).join(", ") + "}" : c2) + "). If you meant to render a collection of children, use an array instead." + ); + } + return K2; + } + function r2(j, c2, H2) { + if (j == null) return j; + var V2 = [], X2 = 0; + return d2(j, V2, "", "", function(ae) { + return c2.call(H2, ae, X2++); + }), V2; + } + function S2(j) { + if (j._status === -1) { + var c2 = j._ioInfo; + c2 != null && (c2.start = c2.end = performance.now()), c2 = j._result; + var H2 = c2(); + if (H2.then( + function(X2) { + if (j._status === 0 || j._status === -1) { + j._status = 1, j._result = X2; + var ae = j._ioInfo; + ae != null && (ae.end = performance.now()), H2.status === void 0 && (H2.status = "fulfilled", H2.value = X2); + } + }, + function(X2) { + if (j._status === 0 || j._status === -1) { + j._status = 2, j._result = X2; + var ae = j._ioInfo; + ae != null && (ae.end = performance.now()), H2.status === void 0 && (H2.status = "rejected", H2.reason = X2); + } + } + ), c2 = j._ioInfo, c2 != null) { + c2.value = H2; + var V2 = H2.displayName; + typeof V2 == "string" && (c2.name = V2); + } + j._status === -1 && (j._status = 0, j._result = H2); + } + if (j._status === 1) + return c2 = j._result, c2 === void 0 && console.error( + `lazy: Expected the result of a dynamic import() call. Instead received: %s + +Your code should look like: + const MyComponent = lazy(() => import('./MyComponent')) + +Did you accidentally put curly braces around the import?`, + c2 + ), "default" in c2 || console.error( + `lazy: Expected the result of a dynamic import() call. Instead received: %s + +Your code should look like: + const MyComponent = lazy(() => import('./MyComponent'))`, + c2 + ), c2.default; + throw j._result; + } + function N() { + var j = Y2.H; + return j === null && console.error( + `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: +1. You might have mismatching versions of React and the renderer (such as React DOM) +2. You might be breaking the Rules of Hooks +3. You might have more than one copy of React in the same app +See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.` + ), j; + } + function o2() { + Y2.asyncTransitions--; + } + function g2(j) { + if (V4 === null) + try { + var c2 = ("require" + Math.random()).slice(0, 7); + V4 = (o && o[c2]).call( + o, + "timers" + ).setImmediate; + } catch { + V4 = function(V2) { + ft === !1 && (ft = !0, typeof MessageChannel > "u" && console.error( + "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning." + )); + var X2 = new MessageChannel(); + X2.port1.onmessage = V2, X2.port2.postMessage(void 0); + }; + } + return V4(j); + } + function R2(j) { + return 1 < j.length && typeof AggregateError == "function" ? new AggregateError(j) : j[0]; + } + function H(j, c2) { + c2 !== dt - 1 && console.error( + "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. " + ), dt = c2; + } + function e2(j, c2, H2) { + var V2 = Y2.actQueue; + if (V2 !== null) + if (V2.length !== 0) + try { + v2(V2), g2(function() { + return e2(j, c2, H2); + }); + return; + } catch (X2) { + Y2.thrownErrors.push(X2); + } + else Y2.actQueue = null; + 0 < Y2.thrownErrors.length ? (V2 = R2(Y2.thrownErrors), Y2.thrownErrors.length = 0, H2(V2)) : c2(j); + } + function v2(j) { + if (!r4) { + r4 = !0; + var c2 = 0; + try { + for (; c2 < j.length; c2++) { + var H2 = j[c2]; + do { + Y2.didUsePromise = !1; + var V2 = H2(!1); + if (V2 !== null) { + if (Y2.didUsePromise) { + j[c2] = H2, j.splice(0, c2); + return; + } + H2 = V2; + } else break; + } while (!0); + } + j.length = 0; + } catch (X2) { + j.splice(0, c2 + 1), Y2.thrownErrors.push(X2); + } finally { + r4 = !1; + } + } + } + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); + var E2 = /* @__PURE__ */ Symbol.for("react.transitional.element"), i2 = /* @__PURE__ */ Symbol.for("react.portal"), D = /* @__PURE__ */ Symbol.for("react.fragment"), X = /* @__PURE__ */ Symbol.for("react.strict_mode"), p2 = /* @__PURE__ */ Symbol.for("react.profiler"), s2 = /* @__PURE__ */ Symbol.for("react.consumer"), L2 = /* @__PURE__ */ Symbol.for("react.context"), D2 = /* @__PURE__ */ Symbol.for("react.forward_ref"), A2 = /* @__PURE__ */ Symbol.for("react.suspense"), B2 = /* @__PURE__ */ Symbol.for("react.suspense_list"), k2 = /* @__PURE__ */ Symbol.for("react.memo"), $2 = /* @__PURE__ */ Symbol.for("react.lazy"), M2 = /* @__PURE__ */ Symbol.for("react.activity"), h2 = Symbol.iterator, ge = {}, he = { + isMounted: function() { + return !1; + }, + enqueueForceUpdate: function(j) { + m(j, "forceUpdate"); + }, + enqueueReplaceState: function(j) { + m(j, "replaceState"); + }, + enqueueSetState: function(j) { + m(j, "setState"); + } + }, je = Object.assign, me = {}; + Object.freeze(me), y.prototype.isReactComponent = {}, y.prototype.setState = function(j, c2) { + if (typeof j != "object" && typeof j != "function" && j != null) + throw Error( + "takes an object of state variables to update or a function which returns an object of state variables." + ); + this.updater.enqueueSetState(this, j, c2, "setState"); + }, y.prototype.forceUpdate = function(j) { + this.updater.enqueueForceUpdate(this, j, "forceUpdate"); + }; + var Ue = { + isMounted: [ + "isMounted", + "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks." + ], + replaceState: [ + "replaceState", + "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)." + ] + }; + for (hn in Ue) + Ue.hasOwnProperty(hn) && s(hn, Ue[hn]); + b.prototype = y.prototype, Ue = S.prototype = new b(), Ue.constructor = S, je(Ue, y.prototype), Ue.isPureReactComponent = !0; + var y0 = Array.isArray, Qe = /* @__PURE__ */ Symbol.for("react.client.reference"), Y2 = { + H: null, + A: null, + T: null, + S: null, + actQueue: null, + asyncTransitions: 0, + isBatchingLegacy: !1, + didScheduleLegacyUpdate: !1, + didUsePromise: !1, + thrownErrors: [], + getCurrentStack: null, + recentlyCreatedOwnerStacks: 0 + }, Be = Object.prototype.hasOwnProperty, P2 = console.createTask ? console.createTask : function() { + return null; + }; + Ue = { + react_stack_bottom_frame: function(j) { + return j(); + } + }; + var o4, a0, p3 = {}, E0 = Ue.react_stack_bottom_frame.bind( + Ue, + B + )(), He = P2(R(B)), l0 = !1, at = /\/+/g, O4 = typeof reportError == "function" ? reportError : function(j) { + if (typeof window == "object" && typeof window.ErrorEvent == "function") { + var c2 = new window.ErrorEvent("error", { + bubbles: !0, + cancelable: !0, + message: typeof j == "object" && j !== null && typeof j.message == "string" ? String(j.message) : String(j), + error: j + }); + if (!window.dispatchEvent(c2)) return; + } else if (typeof process == "object" && typeof process.emit == "function") { + process.emit("uncaughtException", j); + return; + } + console.error(j); + }, ft = !1, V4 = null, dt = 0, D0 = !1, r4 = !1, K0 = typeof queueMicrotask == "function" ? function(j) { + queueMicrotask(function() { + return queueMicrotask(j); + }); + } : g2; + Ue = Object.freeze({ + __proto__: null, + c: function(j) { + return N().useMemoCache(j); + } + }); + var hn = { + map: r2, + forEach: function(j, c2, H2) { + r2( + j, + function() { + c2.apply(this, arguments); + }, + H2 + ); + }, + count: function(j) { + var c2 = 0; + return r2(j, function() { + c2++; + }), c2; + }, + toArray: function(j) { + return r2(j, function(c2) { + return c2; + }) || []; + }, + only: function(j) { + if (!$(j)) + throw Error( + "React.Children.only expected to receive a single React element child." + ); + return j; + } + }; + u.Activity = M2, u.Children = hn, u.Component = y, u.Fragment = D, u.Profiler = p2, u.PureComponent = S, u.StrictMode = X, u.Suspense = A2, u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Y2, u.__COMPILER_RUNTIME = Ue, u.act = function(j) { + var c2 = Y2.actQueue, H2 = dt; + dt++; + var V2 = Y2.actQueue = c2 !== null ? c2 : [], X2 = !1; + try { + var ae = j(); + } catch (ce) { + Y2.thrownErrors.push(ce); + } + if (0 < Y2.thrownErrors.length) + throw H(c2, H2), j = R2(Y2.thrownErrors), Y2.thrownErrors.length = 0, j; + if (ae !== null && typeof ae == "object" && typeof ae.then == "function") { + var K2 = ae; + return K0(function() { + X2 || D0 || (D0 = !0, console.error( + "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);" + )); + }), { + then: function(ce, F2) { + X2 = !0, K2.then( + function(g0) { + if (H(c2, H2), H2 === 0) { + try { + v2(V2), g2(function() { + return e2( + g0, + ce, + F2 + ); + }); + } catch (tl) { + Y2.thrownErrors.push(tl); + } + if (0 < Y2.thrownErrors.length) { + var h3 = R2( + Y2.thrownErrors + ); + Y2.thrownErrors.length = 0, F2(h3); + } + } else ce(g0); + }, + function(g0) { + H(c2, H2), 0 < Y2.thrownErrors.length && (g0 = R2( + Y2.thrownErrors + ), Y2.thrownErrors.length = 0), F2(g0); + } + ); + } + }; + } + var Se = ae; + if (H(c2, H2), H2 === 0 && (v2(V2), V2.length !== 0 && K0(function() { + X2 || D0 || (D0 = !0, console.error( + "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)" + )); + }), Y2.actQueue = null), 0 < Y2.thrownErrors.length) + throw j = R2(Y2.thrownErrors), Y2.thrownErrors.length = 0, j; + return { + then: function(ce, F2) { + X2 = !0, H2 === 0 ? (Y2.actQueue = V2, g2(function() { + return e2( + Se, + ce, + F2 + ); + })) : ce(Se); + } + }; + }, u.cache = function(j) { + return function() { + return j.apply(null, arguments); + }; + }, u.cacheSignal = function() { + return null; + }, u.captureOwnerStack = function() { + var j = Y2.getCurrentStack; + return j === null ? null : j(); + }, u.cloneElement = function(j, c2, H2) { + if (j == null) + throw Error( + "The argument must be a React element, but you passed " + j + "." + ); + var V2 = je({}, j.props), X2 = j.key, ae = j._owner; + if (c2 != null) { + var K2; + e: { + if (Be.call(c2, "ref") && (K2 = Object.getOwnPropertyDescriptor( + c2, + "ref" + ).get) && K2.isReactWarning) { + K2 = !1; + break e; + } + K2 = c2.ref !== void 0; + } + K2 && (ae = _()), z(c2) && (M(c2.key), X2 = "" + c2.key); + for (Se in c2) + !Be.call(c2, Se) || Se === "key" || Se === "__self" || Se === "__source" || Se === "ref" && c2.ref === void 0 || (V2[Se] = c2[Se]); + } + var Se = arguments.length - 2; + if (Se === 1) V2.children = H2; + else if (1 < Se) { + K2 = Array(Se); + for (var ce = 0; ce < Se; ce++) + K2[ce] = arguments[ce + 2]; + V2.children = K2; + } + for (V2 = F( + j.type, + X2, + V2, + ae, + j._debugStack, + j._debugTask + ), X2 = 2; X2 < arguments.length; X2++) + k(arguments[X2]); + return V2; + }, u.createContext = function(j) { + return j = { + $$typeof: L2, + _currentValue: j, + _currentValue2: j, + _threadCount: 0, + Provider: null, + Consumer: null + }, j.Provider = j, j.Consumer = { + $$typeof: s2, + _context: j + }, j._currentRenderer = null, j._currentRenderer2 = null, j; + }, u.createElement = function(j, c2, H2) { + for (var V2 = 2; V2 < arguments.length; V2++) + k(arguments[V2]); + V2 = {}; + var X2 = null; + if (c2 != null) + for (ce in a0 || !("__self" in c2) || "key" in c2 || (a0 = !0, console.warn( + "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform" + )), z(c2) && (M(c2.key), X2 = "" + c2.key), c2) + Be.call(c2, ce) && ce !== "key" && ce !== "__self" && ce !== "__source" && (V2[ce] = c2[ce]); + var ae = arguments.length - 2; + if (ae === 1) V2.children = H2; + else if (1 < ae) { + for (var K2 = Array(ae), Se = 0; Se < ae; Se++) + K2[Se] = arguments[Se + 2]; + Object.freeze && Object.freeze(K2), V2.children = K2; + } + if (j && j.defaultProps) + for (ce in ae = j.defaultProps, ae) + V2[ce] === void 0 && (V2[ce] = ae[ce]); + X2 && q( + V2, + typeof j == "function" ? j.displayName || j.name || "Unknown" : j + ); + var ce = 1e4 > Y2.recentlyCreatedOwnerStacks++; + return F( + j, + X2, + V2, + _(), + ce ? Error("react-stack-top-frame") : E0, + ce ? P2(R(j)) : He + ); + }, u.createRef = function() { + var j = { current: null }; + return Object.seal(j), j; + }, u.forwardRef = function(j) { + j != null && j.$$typeof === k2 ? console.error( + "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))." + ) : typeof j != "function" ? console.error( + "forwardRef requires a render function but was given %s.", + j === null ? "null" : typeof j + ) : j.length !== 0 && j.length !== 2 && console.error( + "forwardRef render functions accept exactly two parameters: props and ref. %s", + j.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined." + ), j != null && j.defaultProps != null && console.error( + "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?" + ); + var c2 = { $$typeof: D2, render: j }, H2; + return Object.defineProperty(c2, "displayName", { + enumerable: !1, + configurable: !0, + get: function() { + return H2; + }, + set: function(V2) { + H2 = V2, j.name || j.displayName || (Object.defineProperty(j, "name", { value: V2 }), j.displayName = V2); + } + }), c2; + }, u.isValidElement = $, u.lazy = function(j) { + j = { _status: -1, _result: j }; + var c2 = { + $$typeof: $2, + _payload: j, + _init: S2 + }, H2 = { + name: "lazy", + start: -1, + end: -1, + value: null, + owner: null, + debugStack: Error("react-stack-top-frame"), + debugTask: console.createTask ? console.createTask("lazy()") : null + }; + return j._ioInfo = H2, c2._debugInfo = [{ awaited: H2 }], c2; + }, u.memo = function(j, c2) { + j == null && console.error( + "memo: The first argument must be a component. Instead received: %s", + j === null ? "null" : typeof j + ), c2 = { + $$typeof: k2, + type: j, + compare: c2 === void 0 ? null : c2 + }; + var H2; + return Object.defineProperty(c2, "displayName", { + enumerable: !1, + configurable: !0, + get: function() { + return H2; + }, + set: function(V2) { + H2 = V2, j.name || j.displayName || (Object.defineProperty(j, "name", { value: V2 }), j.displayName = V2); + } + }), c2; + }, u.startTransition = function(j) { + var c2 = Y2.T, H2 = {}; + H2._updatedFibers = /* @__PURE__ */ new Set(), Y2.T = H2; + try { + var V2 = j(), X2 = Y2.S; + X2 !== null && X2(H2, V2), typeof V2 == "object" && V2 !== null && typeof V2.then == "function" && (Y2.asyncTransitions++, V2.then(o2, o2), V2.then(T, O4)); + } catch (ae) { + O4(ae); + } finally { + c2 === null && H2._updatedFibers && (j = H2._updatedFibers.size, H2._updatedFibers.clear(), 10 < j && console.warn( + "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table." + )), c2 !== null && H2.types !== null && (c2.types !== null && c2.types !== H2.types && console.error( + "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React." + ), c2.types = H2.types), Y2.T = c2; + } + }, u.unstable_useCacheRefresh = function() { + return N().useCacheRefresh(); + }, u.use = function(j) { + return N().use(j); + }, u.useActionState = function(j, c2, H2) { + return N().useActionState( + j, + c2, + H2 + ); + }, u.useCallback = function(j, c2) { + return N().useCallback(j, c2); + }, u.useContext = function(j) { + var c2 = N(); + return j.$$typeof === s2 && console.error( + "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?" + ), c2.useContext(j); + }, u.useDebugValue = function(j, c2) { + return N().useDebugValue(j, c2); + }, u.useDeferredValue = function(j, c2) { + return N().useDeferredValue(j, c2); + }, u.useEffect = function(j, c2) { + return j == null && console.warn( + "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?" + ), N().useEffect(j, c2); + }, u.useEffectEvent = function(j) { + return N().useEffectEvent(j); + }, u.useId = function() { + return N().useId(); + }, u.useImperativeHandle = function(j, c2, H2) { + return N().useImperativeHandle(j, c2, H2); + }, u.useInsertionEffect = function(j, c2) { + return j == null && console.warn( + "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?" + ), N().useInsertionEffect(j, c2); + }, u.useLayoutEffect = function(j, c2) { + return j == null && console.warn( + "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?" + ), N().useLayoutEffect(j, c2); + }, u.useMemo = function(j, c2) { + return N().useMemo(j, c2); + }, u.useOptimistic = function(j, c2) { + return N().useOptimistic(j, c2); + }, u.useReducer = function(j, c2, H2) { + return N().useReducer(j, c2, H2); + }, u.useRef = function(j) { + return N().useRef(j); + }, u.useState = function(j) { + return N().useState(j); + }, u.useSyncExternalStore = function(j, c2, H2) { + return N().useSyncExternalStore( + j, + c2, + H2 + ); + }, u.useTransition = function() { + return N().useTransition(); + }, u.version = "19.2.6", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); + })(); + })(B9, B9.exports)), B9.exports; +} +var pv; +function A5() { + return pv || (pv = 1, process.env.NODE_ENV === "production" ? $d.exports = Bx() : $d.exports = Hx()), $d.exports; +} +var hv; +function $x() { + return hv || (hv = 1, process.env.NODE_ENV !== "production" && (function() { + function o(D) { + if (D == null) return null; + if (typeof D == "function") + return D.$$typeof === S2 ? null : D.displayName || D.name || null; + if (typeof D == "string") return D; + switch (D) { + case q: + return "Fragment"; + case F: + return "Profiler"; + case Z: + return "StrictMode"; + case K: + return "Suspense"; + case a2: + return "SuspenseList"; + case r2: + return "Activity"; + } + if (typeof D == "object") + switch (typeof D.tag == "number" && console.error( + "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." + ), D.$$typeof) { + case z: + return "Portal"; + case k: + return D.displayName || "Context"; + case G: + return (D._context.displayName || "Context") + ".Consumer"; + case $: + var X = D.render; + return D = D.displayName, D || (D = X.displayName || X.name || "", D = D !== "" ? "ForwardRef(" + D + ")" : "ForwardRef"), D; + case u2: + return X = D.displayName || null, X !== null ? X : o(D.type) || "Memo"; + case d2: + X = D._payload, D = D._init; + try { + return o(D(X)); + } catch { + } + } + return null; + } + function u(D) { + return "" + D; + } + function s(D) { + try { + u(D); + var X = !1; + } catch { + X = !0; + } + if (X) { + X = console; + var p2 = X.error, s2 = typeof Symbol == "function" && Symbol.toStringTag && D[Symbol.toStringTag] || D.constructor.name || "Object"; + return p2.call( + X, + "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", + s2 + ), u(D); + } + } + function d(D) { + if (D === q) return "<>"; + if (typeof D == "object" && D !== null && D.$$typeof === d2) + return "<...>"; + try { + var X = o(D); + return X ? "<" + X + ">" : "<...>"; + } catch { + return "<...>"; + } + } + function m() { + var D = N.A; + return D === null ? null : D.getOwner(); + } + function y() { + return Error("react-stack-top-frame"); + } + function b(D) { + if (o2.call(D, "key")) { + var X = Object.getOwnPropertyDescriptor(D, "key").get; + if (X && X.isReactWarning) return !1; + } + return D.key !== void 0; + } + function S(D, X) { + function p2() { + H || (H = !0, console.error( + "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", + X + )); + } + p2.isReactWarning = !0, Object.defineProperty(D, "key", { + get: p2, + configurable: !0 + }); + } + function T() { + var D = o(this.type); + return e2[D] || (e2[D] = !0, console.error( + "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." + )), D = this.props.ref, D !== void 0 ? D : null; + } + function x(D, X, p2, s2, L2, D2) { + var A2 = p2.ref; + return D = { + $$typeof: B, + type: D, + key: X, + props: p2, + _owner: s2 + }, (A2 !== void 0 ? A2 : null) !== null ? Object.defineProperty(D, "ref", { + enumerable: !1, + get: T + }) : Object.defineProperty(D, "ref", { enumerable: !1, value: null }), D._store = {}, Object.defineProperty(D._store, "validated", { + configurable: !1, + enumerable: !1, + writable: !0, + value: 0 + }), Object.defineProperty(D, "_debugInfo", { + configurable: !1, + enumerable: !1, + writable: !0, + value: null + }), Object.defineProperty(D, "_debugStack", { + configurable: !1, + enumerable: !1, + writable: !0, + value: L2 + }), Object.defineProperty(D, "_debugTask", { + configurable: !1, + enumerable: !1, + writable: !0, + value: D2 + }), Object.freeze && (Object.freeze(D.props), Object.freeze(D)), D; + } + function M(D, X, p2, s2, L2, D2) { + var A2 = X.children; + if (A2 !== void 0) + if (s2) + if (g2(A2)) { + for (s2 = 0; s2 < A2.length; s2++) + A(A2[s2]); + Object.freeze && Object.freeze(A2); + } else + console.error( + "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." + ); + else A(A2); + if (o2.call(X, "key")) { + A2 = o(D); + var B2 = Object.keys(X).filter(function($2) { + return $2 !== "key"; + }); + s2 = 0 < B2.length ? "{key: someKey, " + B2.join(": ..., ") + ": ...}" : "{key: someKey}", i2[A2 + s2] || (B2 = 0 < B2.length ? "{" + B2.join(": ..., ") + ": ...}" : "{}", console.error( + `A props object containing a "key" prop is being spread into JSX: + let props = %s; + <%s {...props} /> +React keys must be passed directly to JSX without using spread: + let props = %s; + <%s key={someKey} {...props} />`, + s2, + A2, + B2, + A2 + ), i2[A2 + s2] = !0); + } + if (A2 = null, p2 !== void 0 && (s(p2), A2 = "" + p2), b(X) && (s(X.key), A2 = "" + X.key), "key" in X) { + p2 = {}; + for (var k2 in X) + k2 !== "key" && (p2[k2] = X[k2]); + } else p2 = X; + return A2 && S( + p2, + typeof D == "function" ? D.displayName || D.name || "Unknown" : D + ), x( + D, + A2, + p2, + m(), + L2, + D2 + ); + } + function A(D) { + R(D) ? D._store && (D._store.validated = 1) : typeof D == "object" && D !== null && D.$$typeof === d2 && (D._payload.status === "fulfilled" ? R(D._payload.value) && D._payload.value._store && (D._payload.value._store.validated = 1) : D._store && (D._store.validated = 1)); + } + function R(D) { + return typeof D == "object" && D !== null && D.$$typeof === B; + } + var _ = A5(), B = /* @__PURE__ */ Symbol.for("react.transitional.element"), z = /* @__PURE__ */ Symbol.for("react.portal"), q = /* @__PURE__ */ Symbol.for("react.fragment"), Z = /* @__PURE__ */ Symbol.for("react.strict_mode"), F = /* @__PURE__ */ Symbol.for("react.profiler"), G = /* @__PURE__ */ Symbol.for("react.consumer"), k = /* @__PURE__ */ Symbol.for("react.context"), $ = /* @__PURE__ */ Symbol.for("react.forward_ref"), K = /* @__PURE__ */ Symbol.for("react.suspense"), a2 = /* @__PURE__ */ Symbol.for("react.suspense_list"), u2 = /* @__PURE__ */ Symbol.for("react.memo"), d2 = /* @__PURE__ */ Symbol.for("react.lazy"), r2 = /* @__PURE__ */ Symbol.for("react.activity"), S2 = /* @__PURE__ */ Symbol.for("react.client.reference"), N = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, o2 = Object.prototype.hasOwnProperty, g2 = Array.isArray, R2 = console.createTask ? console.createTask : function() { + return null; + }; + _ = { + react_stack_bottom_frame: function(D) { + return D(); + } + }; + var H, e2 = {}, v2 = _.react_stack_bottom_frame.bind( + _, + y + )(), E2 = R2(d(y)), i2 = {}; + A9.Fragment = q, A9.jsx = function(D, X, p2) { + var s2 = 1e4 > N.recentlyCreatedOwnerStacks++; + return M( + D, + X, + p2, + !1, + s2 ? Error("react-stack-top-frame") : v2, + s2 ? R2(d(D)) : E2 + ); + }, A9.jsxs = function(D, X, p2) { + var s2 = 1e4 > N.recentlyCreatedOwnerStacks++; + return M( + D, + X, + p2, + !0, + s2 ? Error("react-stack-top-frame") : v2, + s2 ? R2(d(D)) : E2 + ); + }; + })()), A9; +} +var mv; +function Vx() { + return mv || (mv = 1, process.env.NODE_ENV === "production" ? Hd.exports = Ux() : Hd.exports = $x()), Hd.exports; +} +var Y = Vx(), V = A5(); +const ja = /* @__PURE__ */ mC(V), Xm = /* @__PURE__ */ jx({ + __proto__: null, + default: ja +}, [V]); +var Vd = { exports: {} }, kd = { exports: {} }, p0 = {}; +var Cv; +function kx() { + if (Cv) return p0; + Cv = 1; + var o = typeof Symbol == "function" && Symbol.for, u = o ? /* @__PURE__ */ Symbol.for("react.element") : 60103, s = o ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, d = o ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, m = o ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, y = o ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, b = o ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, S = o ? /* @__PURE__ */ Symbol.for("react.context") : 60110, T = o ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, x = o ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, M = o ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, A = o ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, R = o ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = o ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, B = o ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, z = o ? /* @__PURE__ */ Symbol.for("react.block") : 60121, q = o ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, Z = o ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, F = o ? /* @__PURE__ */ Symbol.for("react.scope") : 60119; + function G($) { + if (typeof $ == "object" && $ !== null) { + var K = $.$$typeof; + switch (K) { + case u: + switch ($ = $.type, $) { + case T: + case x: + case d: + case y: + case m: + case A: + return $; + default: + switch ($ = $ && $.$$typeof, $) { + case S: + case M: + case B: + case _: + case b: + return $; + default: + return K; + } + } + case s: + return K; + } + } + } + function k($) { + return G($) === x; + } + return p0.AsyncMode = T, p0.ConcurrentMode = x, p0.ContextConsumer = S, p0.ContextProvider = b, p0.Element = u, p0.ForwardRef = M, p0.Fragment = d, p0.Lazy = B, p0.Memo = _, p0.Portal = s, p0.Profiler = y, p0.StrictMode = m, p0.Suspense = A, p0.isAsyncMode = function($) { + return k($) || G($) === T; + }, p0.isConcurrentMode = k, p0.isContextConsumer = function($) { + return G($) === S; + }, p0.isContextProvider = function($) { + return G($) === b; + }, p0.isElement = function($) { + return typeof $ == "object" && $ !== null && $.$$typeof === u; + }, p0.isForwardRef = function($) { + return G($) === M; + }, p0.isFragment = function($) { + return G($) === d; + }, p0.isLazy = function($) { + return G($) === B; + }, p0.isMemo = function($) { + return G($) === _; + }, p0.isPortal = function($) { + return G($) === s; + }, p0.isProfiler = function($) { + return G($) === y; + }, p0.isStrictMode = function($) { + return G($) === m; + }, p0.isSuspense = function($) { + return G($) === A; + }, p0.isValidElementType = function($) { + return typeof $ == "string" || typeof $ == "function" || $ === d || $ === x || $ === y || $ === m || $ === A || $ === R || typeof $ == "object" && $ !== null && ($.$$typeof === B || $.$$typeof === _ || $.$$typeof === b || $.$$typeof === S || $.$$typeof === M || $.$$typeof === q || $.$$typeof === Z || $.$$typeof === F || $.$$typeof === z); + }, p0.typeOf = G, p0; +} +var h0 = {}; +var yv; +function Yx() { + return yv || (yv = 1, process.env.NODE_ENV !== "production" && (function() { + var o = typeof Symbol == "function" && Symbol.for, u = o ? /* @__PURE__ */ Symbol.for("react.element") : 60103, s = o ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, d = o ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, m = o ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, y = o ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, b = o ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, S = o ? /* @__PURE__ */ Symbol.for("react.context") : 60110, T = o ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, x = o ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, M = o ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, A = o ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, R = o ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = o ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, B = o ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, z = o ? /* @__PURE__ */ Symbol.for("react.block") : 60121, q = o ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, Z = o ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, F = o ? /* @__PURE__ */ Symbol.for("react.scope") : 60119; + function G(h2) { + return typeof h2 == "string" || typeof h2 == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + h2 === d || h2 === x || h2 === y || h2 === m || h2 === A || h2 === R || typeof h2 == "object" && h2 !== null && (h2.$$typeof === B || h2.$$typeof === _ || h2.$$typeof === b || h2.$$typeof === S || h2.$$typeof === M || h2.$$typeof === q || h2.$$typeof === Z || h2.$$typeof === F || h2.$$typeof === z); + } + function k(h2) { + if (typeof h2 == "object" && h2 !== null) { + var ge = h2.$$typeof; + switch (ge) { + case u: + var he = h2.type; + switch (he) { + case T: + case x: + case d: + case y: + case m: + case A: + return he; + default: + var je = he && he.$$typeof; + switch (je) { + case S: + case M: + case B: + case _: + case b: + return je; + default: + return ge; + } + } + case s: + return ge; + } + } + } + var $ = T, K = x, a2 = S, u2 = b, d2 = u, r2 = M, S2 = d, N = B, o2 = _, g2 = s, R2 = y, H = m, e2 = A, v2 = !1; + function E2(h2) { + return v2 || (v2 = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), i2(h2) || k(h2) === T; + } + function i2(h2) { + return k(h2) === x; + } + function D(h2) { + return k(h2) === S; + } + function X(h2) { + return k(h2) === b; + } + function p2(h2) { + return typeof h2 == "object" && h2 !== null && h2.$$typeof === u; + } + function s2(h2) { + return k(h2) === M; + } + function L2(h2) { + return k(h2) === d; + } + function D2(h2) { + return k(h2) === B; + } + function A2(h2) { + return k(h2) === _; + } + function B2(h2) { + return k(h2) === s; + } + function k2(h2) { + return k(h2) === y; + } + function $2(h2) { + return k(h2) === m; + } + function M2(h2) { + return k(h2) === A; + } + h0.AsyncMode = $, h0.ConcurrentMode = K, h0.ContextConsumer = a2, h0.ContextProvider = u2, h0.Element = d2, h0.ForwardRef = r2, h0.Fragment = S2, h0.Lazy = N, h0.Memo = o2, h0.Portal = g2, h0.Profiler = R2, h0.StrictMode = H, h0.Suspense = e2, h0.isAsyncMode = E2, h0.isConcurrentMode = i2, h0.isContextConsumer = D, h0.isContextProvider = X, h0.isElement = p2, h0.isForwardRef = s2, h0.isFragment = L2, h0.isLazy = D2, h0.isMemo = A2, h0.isPortal = B2, h0.isProfiler = k2, h0.isStrictMode = $2, h0.isSuspense = M2, h0.isValidElementType = G, h0.typeOf = k; + })()), h0; +} +var gv; +function rS() { + return gv || (gv = 1, process.env.NODE_ENV === "production" ? kd.exports = kx() : kd.exports = Yx()), kd.exports; +} +var Em, vv; +function qx() { + if (vv) return Em; + vv = 1; + var o = Object.getOwnPropertySymbols, u = Object.prototype.hasOwnProperty, s = Object.prototype.propertyIsEnumerable; + function d(y) { + if (y == null) + throw new TypeError("Object.assign cannot be called with null or undefined"); + return Object(y); + } + function m() { + try { + if (!Object.assign) + return !1; + var y = new String("abc"); + if (y[5] = "de", Object.getOwnPropertyNames(y)[0] === "5") + return !1; + for (var b = {}, S = 0; S < 10; S++) + b["_" + String.fromCharCode(S)] = S; + var T = Object.getOwnPropertyNames(b).map(function(M) { + return b[M]; + }); + if (T.join("") !== "0123456789") + return !1; + var x = {}; + return "abcdefghijklmnopqrst".split("").forEach(function(M) { + x[M] = M; + }), Object.keys(Object.assign({}, x)).join("") === "abcdefghijklmnopqrst"; + } catch { + return !1; + } + } + return Em = m() ? Object.assign : function(y, b) { + for (var S, T = d(y), x, M = 1; M < arguments.length; M++) { + S = Object(arguments[M]); + for (var A in S) + u.call(S, A) && (T[A] = S[A]); + if (o) { + x = o(S); + for (var R = 0; R < x.length; R++) + s.call(S, x[R]) && (T[x[R]] = S[x[R]]); + } + } + return T; + }, Em; +} +var Tm, bv; +function CC() { + if (bv) return Tm; + bv = 1; + var o = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; + return Tm = o, Tm; +} +var xm, Sv; +function iS() { + return Sv || (Sv = 1, xm = Function.call.bind(Object.prototype.hasOwnProperty)), xm; +} +var Om, Ev; +function Zx() { + if (Ev) return Om; + Ev = 1; + var o = function() { + }; + if (process.env.NODE_ENV !== "production") { + var u = /* @__PURE__ */ CC(), s = {}, d = /* @__PURE__ */ iS(); + o = function(y) { + var b = "Warning: " + y; + typeof console < "u" && console.error(b); + try { + throw new Error(b); + } catch { + } + }; + } + function m(y, b, S, T, x) { + if (process.env.NODE_ENV !== "production") { + for (var M in y) + if (d(y, M)) { + var A; + try { + if (typeof y[M] != "function") { + var R = Error( + (T || "React class") + ": " + S + " type `" + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof y[M] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." + ); + throw R.name = "Invariant Violation", R; + } + A = y[M](b, M, T, S, null, u); + } catch (B) { + A = B; + } + if (A && !(A instanceof Error) && o( + (T || "React class") + ": type specification of " + S + " `" + M + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof A + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." + ), A instanceof Error && !(A.message in s)) { + s[A.message] = !0; + var _ = x ? x() : ""; + o( + "Failed " + S + " type: " + A.message + (_ ?? "") + ); + } + } + } + } + return m.resetWarningCache = function() { + process.env.NODE_ENV !== "production" && (s = {}); + }, Om = m, Om; +} +var Rm, Tv; +function Gx() { + if (Tv) return Rm; + Tv = 1; + var o = rS(), u = qx(), s = /* @__PURE__ */ CC(), d = /* @__PURE__ */ iS(), m = /* @__PURE__ */ Zx(), y = function() { + }; + process.env.NODE_ENV !== "production" && (y = function(S) { + var T = "Warning: " + S; + typeof console < "u" && console.error(T); + try { + throw new Error(T); + } catch { + } + }); + function b() { + return null; + } + return Rm = function(S, T) { + var x = typeof Symbol == "function" && Symbol.iterator, M = "@@iterator"; + function A(i2) { + var D = i2 && (x && i2[x] || i2[M]); + if (typeof D == "function") + return D; + } + var R = "<>", _ = { + array: Z("array"), + bigint: Z("bigint"), + bool: Z("boolean"), + func: Z("function"), + number: Z("number"), + object: Z("object"), + string: Z("string"), + symbol: Z("symbol"), + any: F(), + arrayOf: G, + element: k(), + elementType: $(), + instanceOf: K, + node: r2(), + objectOf: u2, + oneOf: a2, + oneOfType: d2, + shape: N, + exact: o2 + }; + function B(i2, D) { + return i2 === D ? i2 !== 0 || 1 / i2 === 1 / D : i2 !== i2 && D !== D; + } + function z(i2, D) { + this.message = i2, this.data = D && typeof D == "object" ? D : {}, this.stack = ""; + } + z.prototype = Error.prototype; + function q(i2) { + if (process.env.NODE_ENV !== "production") + var D = {}, X = 0; + function p2(L2, D2, A2, B2, k2, $2, M2) { + if (B2 = B2 || R, $2 = $2 || A2, M2 !== s) { + if (T) { + var h2 = new Error( + "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types" + ); + throw h2.name = "Invariant Violation", h2; + } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { + var ge = B2 + ":" + A2; + !D[ge] && // Avoid spamming the console because they are often not actionable except for lib authors + X < 3 && (y( + "You are manually calling a React.PropTypes validation function for the `" + $2 + "` prop on `" + B2 + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." + ), D[ge] = !0, X++); + } + } + return D2[A2] == null ? L2 ? D2[A2] === null ? new z("The " + k2 + " `" + $2 + "` is marked as required " + ("in `" + B2 + "`, but its value is `null`.")) : new z("The " + k2 + " `" + $2 + "` is marked as required in " + ("`" + B2 + "`, but its value is `undefined`.")) : null : i2(D2, A2, B2, k2, $2); + } + var s2 = p2.bind(null, !1); + return s2.isRequired = p2.bind(null, !0), s2; + } + function Z(i2) { + function D(X, p2, s2, L2, D2, A2) { + var B2 = X[p2], k2 = H(B2); + if (k2 !== i2) { + var $2 = e2(B2); + return new z( + "Invalid " + L2 + " `" + D2 + "` of type " + ("`" + $2 + "` supplied to `" + s2 + "`, expected ") + ("`" + i2 + "`."), + { expectedType: i2 } + ); + } + return null; + } + return q(D); + } + function F() { + return q(b); + } + function G(i2) { + function D(X, p2, s2, L2, D2) { + if (typeof i2 != "function") + return new z("Property `" + D2 + "` of component `" + s2 + "` has invalid PropType notation inside arrayOf."); + var A2 = X[p2]; + if (!Array.isArray(A2)) { + var B2 = H(A2); + return new z("Invalid " + L2 + " `" + D2 + "` of type " + ("`" + B2 + "` supplied to `" + s2 + "`, expected an array.")); + } + for (var k2 = 0; k2 < A2.length; k2++) { + var $2 = i2(A2, k2, s2, L2, D2 + "[" + k2 + "]", s); + if ($2 instanceof Error) + return $2; + } + return null; + } + return q(D); + } + function k() { + function i2(D, X, p2, s2, L2) { + var D2 = D[X]; + if (!S(D2)) { + var A2 = H(D2); + return new z("Invalid " + s2 + " `" + L2 + "` of type " + ("`" + A2 + "` supplied to `" + p2 + "`, expected a single ReactElement.")); + } + return null; + } + return q(i2); + } + function $() { + function i2(D, X, p2, s2, L2) { + var D2 = D[X]; + if (!o.isValidElementType(D2)) { + var A2 = H(D2); + return new z("Invalid " + s2 + " `" + L2 + "` of type " + ("`" + A2 + "` supplied to `" + p2 + "`, expected a single ReactElement type.")); + } + return null; + } + return q(i2); + } + function K(i2) { + function D(X, p2, s2, L2, D2) { + if (!(X[p2] instanceof i2)) { + var A2 = i2.name || R, B2 = E2(X[p2]); + return new z("Invalid " + L2 + " `" + D2 + "` of type " + ("`" + B2 + "` supplied to `" + s2 + "`, expected ") + ("instance of `" + A2 + "`.")); + } + return null; + } + return q(D); + } + function a2(i2) { + if (!Array.isArray(i2)) + return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? y( + "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])." + ) : y("Invalid argument supplied to oneOf, expected an array.")), b; + function D(X, p2, s2, L2, D2) { + for (var A2 = X[p2], B2 = 0; B2 < i2.length; B2++) + if (B(A2, i2[B2])) + return null; + var k2 = JSON.stringify(i2, function(M2, h2) { + var ge = e2(h2); + return ge === "symbol" ? String(h2) : h2; + }); + return new z("Invalid " + L2 + " `" + D2 + "` of value `" + String(A2) + "` " + ("supplied to `" + s2 + "`, expected one of " + k2 + ".")); + } + return q(D); + } + function u2(i2) { + function D(X, p2, s2, L2, D2) { + if (typeof i2 != "function") + return new z("Property `" + D2 + "` of component `" + s2 + "` has invalid PropType notation inside objectOf."); + var A2 = X[p2], B2 = H(A2); + if (B2 !== "object") + return new z("Invalid " + L2 + " `" + D2 + "` of type " + ("`" + B2 + "` supplied to `" + s2 + "`, expected an object.")); + for (var k2 in A2) + if (d(A2, k2)) { + var $2 = i2(A2, k2, s2, L2, D2 + "." + k2, s); + if ($2 instanceof Error) + return $2; + } + return null; + } + return q(D); + } + function d2(i2) { + if (!Array.isArray(i2)) + return process.env.NODE_ENV !== "production" && y("Invalid argument supplied to oneOfType, expected an instance of array."), b; + for (var D = 0; D < i2.length; D++) { + var X = i2[D]; + if (typeof X != "function") + return y( + "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + v2(X) + " at index " + D + "." + ), b; + } + function p2(s2, L2, D2, A2, B2) { + for (var k2 = [], $2 = 0; $2 < i2.length; $2++) { + var M2 = i2[$2], h2 = M2(s2, L2, D2, A2, B2, s); + if (h2 == null) + return null; + h2.data && d(h2.data, "expectedType") && k2.push(h2.data.expectedType); + } + var ge = k2.length > 0 ? ", expected one of type [" + k2.join(", ") + "]" : ""; + return new z("Invalid " + A2 + " `" + B2 + "` supplied to " + ("`" + D2 + "`" + ge + ".")); + } + return q(p2); + } + function r2() { + function i2(D, X, p2, s2, L2) { + return g2(D[X]) ? null : new z("Invalid " + s2 + " `" + L2 + "` supplied to " + ("`" + p2 + "`, expected a ReactNode.")); + } + return q(i2); + } + function S2(i2, D, X, p2, s2) { + return new z( + (i2 || "React class") + ": " + D + " type `" + X + "." + p2 + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + s2 + "`." + ); + } + function N(i2) { + function D(X, p2, s2, L2, D2) { + var A2 = X[p2], B2 = H(A2); + if (B2 !== "object") + return new z("Invalid " + L2 + " `" + D2 + "` of type `" + B2 + "` " + ("supplied to `" + s2 + "`, expected `object`.")); + for (var k2 in i2) { + var $2 = i2[k2]; + if (typeof $2 != "function") + return S2(s2, L2, D2, k2, e2($2)); + var M2 = $2(A2, k2, s2, L2, D2 + "." + k2, s); + if (M2) + return M2; + } + return null; + } + return q(D); + } + function o2(i2) { + function D(X, p2, s2, L2, D2) { + var A2 = X[p2], B2 = H(A2); + if (B2 !== "object") + return new z("Invalid " + L2 + " `" + D2 + "` of type `" + B2 + "` " + ("supplied to `" + s2 + "`, expected `object`.")); + var k2 = u({}, X[p2], i2); + for (var $2 in k2) { + var M2 = i2[$2]; + if (d(i2, $2) && typeof M2 != "function") + return S2(s2, L2, D2, $2, e2(M2)); + if (!M2) + return new z( + "Invalid " + L2 + " `" + D2 + "` key `" + $2 + "` supplied to `" + s2 + "`.\nBad object: " + JSON.stringify(X[p2], null, " ") + ` +Valid keys: ` + JSON.stringify(Object.keys(i2), null, " ") + ); + var h2 = M2(A2, $2, s2, L2, D2 + "." + $2, s); + if (h2) + return h2; + } + return null; + } + return q(D); + } + function g2(i2) { + switch (typeof i2) { + case "number": + case "string": + case "undefined": + return !0; + case "boolean": + return !i2; + case "object": + if (Array.isArray(i2)) + return i2.every(g2); + if (i2 === null || S(i2)) + return !0; + var D = A(i2); + if (D) { + var X = D.call(i2), p2; + if (D !== i2.entries) { + for (; !(p2 = X.next()).done; ) + if (!g2(p2.value)) + return !1; + } else + for (; !(p2 = X.next()).done; ) { + var s2 = p2.value; + if (s2 && !g2(s2[1])) + return !1; + } + } else + return !1; + return !0; + default: + return !1; + } + } + function R2(i2, D) { + return i2 === "symbol" ? !0 : D ? D["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && D instanceof Symbol : !1; + } + function H(i2) { + var D = typeof i2; + return Array.isArray(i2) ? "array" : i2 instanceof RegExp ? "object" : R2(D, i2) ? "symbol" : D; + } + function e2(i2) { + if (typeof i2 > "u" || i2 === null) + return "" + i2; + var D = H(i2); + if (D === "object") { + if (i2 instanceof Date) + return "date"; + if (i2 instanceof RegExp) + return "regexp"; + } + return D; + } + function v2(i2) { + var D = e2(i2); + switch (D) { + case "array": + case "object": + return "an " + D; + case "boolean": + case "date": + case "regexp": + return "a " + D; + default: + return D; + } + } + function E2(i2) { + return !i2.constructor || !i2.constructor.name ? R : i2.constructor.name; + } + return _.checkPropTypes = m, _.resetWarningCache = m.resetWarningCache, _.PropTypes = _, _; + }, Rm; +} +var Am, xv; +function Xx() { + if (xv) return Am; + xv = 1; + var o = /* @__PURE__ */ CC(); + function u() { + } + function s() { + } + return s.resetWarningCache = u, Am = function() { + function d(b, S, T, x, M, A) { + if (A !== o) { + var R = new Error( + "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" + ); + throw R.name = "Invariant Violation", R; + } + } + d.isRequired = d; + function m() { + return d; + } + var y = { + array: d, + bigint: d, + bool: d, + func: d, + number: d, + object: d, + string: d, + symbol: d, + any: d, + arrayOf: m, + element: d, + elementType: d, + instanceOf: m, + node: d, + objectOf: m, + oneOf: m, + oneOfType: m, + shape: m, + exact: m, + checkPropTypes: s, + resetWarningCache: u + }; + return y.PropTypes = y, y; + }, Am; +} +var Ov; +function Px() { + if (Ov) return Vd.exports; + if (Ov = 1, process.env.NODE_ENV !== "production") { + var o = rS(), u = !0; + Vd.exports = /* @__PURE__ */ Gx()(o.isElement, u); + } else + Vd.exports = /* @__PURE__ */ Xx()(); + return Vd.exports; +} +var Qx = /* @__PURE__ */ Px(); +const h = /* @__PURE__ */ mC(Qx); +function ji(o, ...u) { + const s = new URL(`https://mui.com/production-error/?code=${o}`); + return u.forEach((d) => s.searchParams.append("args[]", d)), `Minified MUI error #${o}; visit ${s} for the full message.`; +} +function I2(o) { + if (typeof o != "string") + throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : ji(7)); + return o.charAt(0).toUpperCase() + o.slice(1); +} +var Yd = { exports: {} }, M0 = {}; +var Rv; +function Ix() { + if (Rv) return M0; + Rv = 1; + var o = /* @__PURE__ */ Symbol.for("react.transitional.element"), u = /* @__PURE__ */ Symbol.for("react.portal"), s = /* @__PURE__ */ Symbol.for("react.fragment"), d = /* @__PURE__ */ Symbol.for("react.strict_mode"), m = /* @__PURE__ */ Symbol.for("react.profiler"), y = /* @__PURE__ */ Symbol.for("react.consumer"), b = /* @__PURE__ */ Symbol.for("react.context"), S = /* @__PURE__ */ Symbol.for("react.forward_ref"), T = /* @__PURE__ */ Symbol.for("react.suspense"), x = /* @__PURE__ */ Symbol.for("react.suspense_list"), M = /* @__PURE__ */ Symbol.for("react.memo"), A = /* @__PURE__ */ Symbol.for("react.lazy"), R = /* @__PURE__ */ Symbol.for("react.view_transition"), _ = /* @__PURE__ */ Symbol.for("react.client.reference"); + function B(z) { + if (typeof z == "object" && z !== null) { + var q = z.$$typeof; + switch (q) { + case o: + switch (z = z.type, z) { + case s: + case m: + case d: + case T: + case x: + case R: + return z; + default: + switch (z = z && z.$$typeof, z) { + case b: + case S: + case A: + case M: + return z; + case y: + return z; + default: + return q; + } + } + case u: + return q; + } + } + } + return M0.ContextConsumer = y, M0.ContextProvider = b, M0.Element = o, M0.ForwardRef = S, M0.Fragment = s, M0.Lazy = A, M0.Memo = M, M0.Portal = u, M0.Profiler = m, M0.StrictMode = d, M0.Suspense = T, M0.SuspenseList = x, M0.isContextConsumer = function(z) { + return B(z) === y; + }, M0.isContextProvider = function(z) { + return B(z) === b; + }, M0.isElement = function(z) { + return typeof z == "object" && z !== null && z.$$typeof === o; + }, M0.isForwardRef = function(z) { + return B(z) === S; + }, M0.isFragment = function(z) { + return B(z) === s; + }, M0.isLazy = function(z) { + return B(z) === A; + }, M0.isMemo = function(z) { + return B(z) === M; + }, M0.isPortal = function(z) { + return B(z) === u; + }, M0.isProfiler = function(z) { + return B(z) === m; + }, M0.isStrictMode = function(z) { + return B(z) === d; + }, M0.isSuspense = function(z) { + return B(z) === T; + }, M0.isSuspenseList = function(z) { + return B(z) === x; + }, M0.isValidElementType = function(z) { + return typeof z == "string" || typeof z == "function" || z === s || z === m || z === d || z === T || z === x || typeof z == "object" && z !== null && (z.$$typeof === A || z.$$typeof === M || z.$$typeof === b || z.$$typeof === y || z.$$typeof === S || z.$$typeof === _ || z.getModuleId !== void 0); + }, M0.typeOf = B, M0; +} +var w0 = {}; +var Av; +function Kx() { + return Av || (Av = 1, process.env.NODE_ENV !== "production" && (function() { + function o(z) { + if (typeof z == "object" && z !== null) { + var q = z.$$typeof; + switch (q) { + case u: + switch (z = z.type, z) { + case d: + case y: + case m: + case x: + case M: + case _: + return z; + default: + switch (z = z && z.$$typeof, z) { + case S: + case T: + case R: + case A: + return z; + case b: + return z; + default: + return q; + } + } + case s: + return q; + } + } + } + var u = /* @__PURE__ */ Symbol.for("react.transitional.element"), s = /* @__PURE__ */ Symbol.for("react.portal"), d = /* @__PURE__ */ Symbol.for("react.fragment"), m = /* @__PURE__ */ Symbol.for("react.strict_mode"), y = /* @__PURE__ */ Symbol.for("react.profiler"), b = /* @__PURE__ */ Symbol.for("react.consumer"), S = /* @__PURE__ */ Symbol.for("react.context"), T = /* @__PURE__ */ Symbol.for("react.forward_ref"), x = /* @__PURE__ */ Symbol.for("react.suspense"), M = /* @__PURE__ */ Symbol.for("react.suspense_list"), A = /* @__PURE__ */ Symbol.for("react.memo"), R = /* @__PURE__ */ Symbol.for("react.lazy"), _ = /* @__PURE__ */ Symbol.for("react.view_transition"), B = /* @__PURE__ */ Symbol.for("react.client.reference"); + w0.ContextConsumer = b, w0.ContextProvider = S, w0.Element = u, w0.ForwardRef = T, w0.Fragment = d, w0.Lazy = R, w0.Memo = A, w0.Portal = s, w0.Profiler = y, w0.StrictMode = m, w0.Suspense = x, w0.SuspenseList = M, w0.isContextConsumer = function(z) { + return o(z) === b; + }, w0.isContextProvider = function(z) { + return o(z) === S; + }, w0.isElement = function(z) { + return typeof z == "object" && z !== null && z.$$typeof === u; + }, w0.isForwardRef = function(z) { + return o(z) === T; + }, w0.isFragment = function(z) { + return o(z) === d; + }, w0.isLazy = function(z) { + return o(z) === R; + }, w0.isMemo = function(z) { + return o(z) === A; + }, w0.isPortal = function(z) { + return o(z) === s; + }, w0.isProfiler = function(z) { + return o(z) === y; + }, w0.isStrictMode = function(z) { + return o(z) === m; + }, w0.isSuspense = function(z) { + return o(z) === x; + }, w0.isSuspenseList = function(z) { + return o(z) === M; + }, w0.isValidElementType = function(z) { + return typeof z == "string" || typeof z == "function" || z === d || z === y || z === m || z === x || z === M || typeof z == "object" && z !== null && (z.$$typeof === R || z.$$typeof === A || z.$$typeof === S || z.$$typeof === b || z.$$typeof === T || z.$$typeof === B || z.getModuleId !== void 0); + }, w0.typeOf = o; + })()), w0; +} +var Mv; +function Jx() { + return Mv || (Mv = 1, process.env.NODE_ENV === "production" ? Yd.exports = /* @__PURE__ */ Ix() : Yd.exports = /* @__PURE__ */ Kx()), Yd.exports; +} +var g5 = /* @__PURE__ */ Jx(); +function Na(o) { + if (typeof o != "object" || o === null) + return !1; + const u = Object.getPrototypeOf(o); + return (u === null || u === Object.prototype || Object.getPrototypeOf(u) === null) && !(Symbol.toStringTag in o) && !(Symbol.iterator in o); +} +function uS(o) { + if (/* @__PURE__ */ V.isValidElement(o) || g5.isValidElementType(o) || !Na(o)) + return o; + const u = {}; + return Object.keys(o).forEach((s) => { + u[s] = uS(o[s]); + }), u; +} +function f3(o, u, s = { + clone: !0 +}) { + const d = s.clone ? { + ...o + } : o; + return Na(o) && Na(u) && Object.keys(u).forEach((m) => { + /* @__PURE__ */ V.isValidElement(u[m]) || g5.isValidElementType(u[m]) ? d[m] = u[m] : Na(u[m]) && // Avoid prototype pollution + Object.prototype.hasOwnProperty.call(o, m) && Na(o[m]) ? d[m] = f3(o[m], u[m], s) : s.clone ? d[m] = Na(u[m]) ? uS(u[m]) : u[m] : d[m] = u[m]; + }), d; +} +function q9(o, u) { + return u ? f3(o, u, { + clone: !1 + // No need to clone deep, it's way faster. + }) : o; +} +const $o = process.env.NODE_ENV !== "production" ? h.oneOfType([h.number, h.string, h.object, h.array]) : {}; +function wv(o, u) { + if (!o.containerQueries) + return u; + const s = Object.keys(u).filter((d) => d.startsWith("@container")).sort((d, m) => { + const y = /min-width:\s*([0-9.]+)/; + return +(d.match(y)?.[1] || 0) - +(m.match(y)?.[1] || 0); + }); + return s.length ? s.reduce((d, m) => { + const y = u[m]; + return delete d[m], d[m] = y, d; + }, { + ...u + }) : u; +} +function Fx(o, u) { + return u === "@" || u.startsWith("@") && (o.some((s) => u.startsWith(`@${s}`)) || !!u.match(/^@\d/)); +} +function Wx(o, u) { + const s = u.match(/^@([^/]+)?\/?(.+)?$/); + if (!s) { + if (process.env.NODE_ENV !== "production") + throw ( + /* minify-error */ + new Error(`MUI: The provided shorthand ${`(${u})`} is invalid. The format should be \`@\` or \`@/\`. +For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`) + ); + return null; + } + const [, d, m] = s, y = Number.isNaN(+d) ? d || 0 : +d; + return o.containerQueries(m).up(y); +} +function eO(o) { + const u = (y, b) => y.replace("@media", b ? `@container ${b}` : "@container"); + function s(y, b) { + y.up = (...S) => u(o.breakpoints.up(...S), b), y.down = (...S) => u(o.breakpoints.down(...S), b), y.between = (...S) => u(o.breakpoints.between(...S), b), y.only = (...S) => u(o.breakpoints.only(...S), b), y.not = (...S) => { + const T = u(o.breakpoints.not(...S), b); + return T.includes("not all and") ? T.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : T; + }; + } + const d = {}, m = (y) => (s(d, y), d); + return s(m), { + ...o, + containerQueries: m + }; +} +const Op = { + xs: 0, + // phone + sm: 600, + // tablet + md: 900, + // small laptop + lg: 1200, + // desktop + xl: 1536 + // large screen +}, _v = { + // Sorted ASC by size. That's important. + // It can't be configured as it's used statically for propTypes. + keys: ["xs", "sm", "md", "lg", "xl"], + up: (o) => `@media (min-width:${Op[o]}px)` +}, tO = { + containerQueries: (o) => ({ + up: (u) => { + let s = typeof u == "number" ? u : Op[u] || u; + return typeof s == "number" && (s = `${s}px`), o ? `@container ${o} (min-width:${s})` : `@container (min-width:${s})`; + } + }) +}; +function q8(o, u, s) { + const d = o.theme || {}; + if (Array.isArray(u)) { + const y = d.breakpoints || _v; + return u.reduce((b, S, T) => (b[y.up(y.keys[T])] = s(u[T]), b), {}); + } + if (typeof u == "object") { + const y = d.breakpoints || _v; + return Object.keys(u).reduce((b, S) => { + if (Fx(y.keys, S)) { + const T = Wx(d.containerQueries ? d : tO, S); + T && (b[T] = s(u[S], S)); + } else if (Object.keys(y.values || Op).includes(S)) { + const T = y.up(S); + b[T] = s(u[S], S); + } else { + const T = S; + b[T] = u[T]; + } + return b; + }, {}); + } + return s(u); +} +function cS(o = {}) { + return o.keys?.reduce((s, d) => { + const m = o.up(d); + return s[m] = {}, s; + }, {}) || {}; +} +function Pm(o, u) { + return o.reduce((s, d) => { + const m = s[d]; + return (!m || Object.keys(m).length === 0) && delete s[d], s; + }, u); +} +function nO(o, ...u) { + const s = cS(o), d = [s, ...u].reduce((m, y) => f3(m, y), {}); + return Pm(Object.keys(s), d); +} +function aO(o, u) { + if (typeof o != "object") + return {}; + const s = {}, d = Object.keys(u); + return Array.isArray(o) ? d.forEach((m, y) => { + y < o.length && (s[m] = !0); + }) : d.forEach((m) => { + o[m] != null && (s[m] = !0); + }), s; +} +function Mm({ + values: o, + breakpoints: u, + base: s +}) { + const d = s || aO(o, u), m = Object.keys(d); + if (m.length === 0) + return o; + let y; + return m.reduce((b, S, T) => (Array.isArray(o) ? (b[S] = o[T] != null ? o[T] : o[y], y = T) : typeof o == "object" ? (b[S] = o[S] != null ? o[S] : o[y], y = S) : b[S] = o, b), {}); +} +function Da(o, u, s = !0) { + if (!u || typeof u != "string") + return null; + if (o && o.vars && s) { + const d = `vars.${u}`.split(".").reduce((m, y) => m && m[y] ? m[y] : null, o); + if (d != null) + return d; + } + return u.split(".").reduce((d, m) => d && d[m] != null ? d[m] : null, o); +} +function dp(o, u, s, d = s) { + let m; + return typeof o == "function" ? m = o(s) : Array.isArray(o) ? m = o[s] || d : m = Da(o, s) || d, u && (m = u(m, d, o)), m; +} +function At(o) { + const { + prop: u, + cssProperty: s = o.prop, + themeKey: d, + transform: m + } = o, y = (b) => { + if (b[u] == null) + return null; + const S = b[u], T = b.theme, x = Da(T, d) || {}; + return q8(b, S, (A) => { + let R = dp(x, m, A); + return A === R && typeof A == "string" && (R = dp(x, m, `${u}${A === "default" ? "" : I2(A)}`, A)), s === !1 ? R : { + [s]: R + }; + }); + }; + return y.propTypes = process.env.NODE_ENV !== "production" ? { + [u]: $o + } : {}, y.filterProps = [u], y; +} +function lO(o) { + const u = {}; + return (s) => (u[s] === void 0 && (u[s] = o(s)), u[s]); +} +const oO = { + m: "margin", + p: "padding" +}, rO = { + t: "Top", + r: "Right", + b: "Bottom", + l: "Left", + x: ["Left", "Right"], + y: ["Top", "Bottom"] +}, Dv = { + marginX: "mx", + marginY: "my", + paddingX: "px", + paddingY: "py" +}, iO = lO((o) => { + if (o.length > 2) + if (Dv[o]) + o = Dv[o]; + else + return [o]; + const [u, s] = o.split(""), d = oO[u], m = rO[s] || ""; + return Array.isArray(m) ? m.map((y) => d + y) : [d + m]; +}), Rp = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Ap = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], uO = [...Rp, ...Ap]; +function o7(o, u, s, d) { + const m = Da(o, u, !0) ?? s; + return typeof m == "number" || typeof m == "string" ? (y) => typeof y == "string" ? y : (process.env.NODE_ENV !== "production" && typeof y != "number" && console.error(`MUI: Expected ${d} argument to be a number or a string, got ${y}.`), typeof m == "string" ? m.startsWith("var(") && y === 0 ? 0 : m.startsWith("var(") && y === 1 ? m : `calc(${y} * ${m})` : m * y) : Array.isArray(m) ? (y) => { + if (typeof y == "string") + return y; + const b = Math.abs(y); + process.env.NODE_ENV !== "production" && (Number.isInteger(b) ? b > m.length - 1 && console.error([`MUI: The value provided (${b}) overflows.`, `The supported values are: ${JSON.stringify(m)}.`, `${b} > ${m.length - 1}, you need to add the missing values.`].join(` +`)) : console.error([`MUI: The \`theme.${u}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${u}\` as a number.`].join(` +`))); + const S = m[b]; + return y >= 0 ? S : typeof S == "number" ? -S : typeof S == "string" && S.startsWith("var(") ? `calc(-1 * ${S})` : `-${S}`; + } : typeof m == "function" ? m : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${u}\` value (${m}) is invalid.`, "It should be a number, an array or a function."].join(` +`)), () => { + }); +} +function Mp(o) { + return o7(o, "spacing", 8, "spacing"); +} +function Ui(o, u) { + return typeof u == "string" || u == null ? u : o(u); +} +function cO(o, u) { + return (s) => o.reduce((d, m) => (d[m] = Ui(u, s), d), {}); +} +function sO(o, u, s, d) { + if (!u.includes(s)) + return null; + const m = iO(s), y = cO(m, d), b = o[s]; + return q8(o, b, y); +} +function sS(o, u) { + const s = Mp(o.theme); + return Object.keys(o).map((d) => sO(o, u, d, s)).reduce(q9, {}); +} +function yt(o) { + return sS(o, Rp); +} +yt.propTypes = process.env.NODE_ENV !== "production" ? Rp.reduce((o, u) => (o[u] = $o, o), {}) : {}; +yt.filterProps = Rp; +function gt(o) { + return sS(o, Ap); +} +gt.propTypes = process.env.NODE_ENV !== "production" ? Ap.reduce((o, u) => (o[u] = $o, o), {}) : {}; +gt.filterProps = Ap; +process.env.NODE_ENV !== "production" && uO.reduce((o, u) => (o[u] = $o, o), {}); +function wp(...o) { + const u = o.reduce((d, m) => (m.filterProps.forEach((y) => { + d[y] = m; + }), d), {}), s = (d) => Object.keys(d).reduce((m, y) => u[y] ? q9(m, u[y](d)) : m, {}); + return s.propTypes = process.env.NODE_ENV !== "production" ? o.reduce((d, m) => Object.assign(d, m.propTypes), {}) : {}, s.filterProps = o.reduce((d, m) => d.concat(m.filterProps), []), s; +} +function r8(o) { + return typeof o != "number" ? o : `${o}px solid`; +} +function d8(o, u) { + return At({ + prop: o, + themeKey: "borders", + transform: u + }); +} +const fO = d8("border", r8), dO = d8("borderTop", r8), pO = d8("borderRight", r8), hO = d8("borderBottom", r8), mO = d8("borderLeft", r8), CO = d8("borderColor"), yO = d8("borderTopColor"), gO = d8("borderRightColor"), vO = d8("borderBottomColor"), bO = d8("borderLeftColor"), SO = d8("outline", r8), EO = d8("outlineColor"), _p = (o) => { + if (o.borderRadius !== void 0 && o.borderRadius !== null) { + const u = o7(o.theme, "shape.borderRadius", 4, "borderRadius"), s = (d) => ({ + borderRadius: Ui(u, d) + }); + return q8(o, o.borderRadius, s); + } + return null; +}; +_p.propTypes = process.env.NODE_ENV !== "production" ? { + borderRadius: $o +} : {}; +_p.filterProps = ["borderRadius"]; +wp(fO, dO, pO, hO, mO, CO, yO, gO, vO, bO, _p, SO, EO); +const Dp = (o) => { + if (o.gap !== void 0 && o.gap !== null) { + const u = o7(o.theme, "spacing", 8, "gap"), s = (d) => ({ + gap: Ui(u, d) + }); + return q8(o, o.gap, s); + } + return null; +}; +Dp.propTypes = process.env.NODE_ENV !== "production" ? { + gap: $o +} : {}; +Dp.filterProps = ["gap"]; +const zp = (o) => { + if (o.columnGap !== void 0 && o.columnGap !== null) { + const u = o7(o.theme, "spacing", 8, "columnGap"), s = (d) => ({ + columnGap: Ui(u, d) + }); + return q8(o, o.columnGap, s); + } + return null; +}; +zp.propTypes = process.env.NODE_ENV !== "production" ? { + columnGap: $o +} : {}; +zp.filterProps = ["columnGap"]; +const Lp = (o) => { + if (o.rowGap !== void 0 && o.rowGap !== null) { + const u = o7(o.theme, "spacing", 8, "rowGap"), s = (d) => ({ + rowGap: Ui(u, d) + }); + return q8(o, o.rowGap, s); + } + return null; +}; +Lp.propTypes = process.env.NODE_ENV !== "production" ? { + rowGap: $o +} : {}; +Lp.filterProps = ["rowGap"]; +const TO = At({ + prop: "gridColumn" +}), xO = At({ + prop: "gridRow" +}), OO = At({ + prop: "gridAutoFlow" +}), RO = At({ + prop: "gridAutoColumns" +}), AO = At({ + prop: "gridAutoRows" +}), MO = At({ + prop: "gridTemplateColumns" +}), wO = At({ + prop: "gridTemplateRows" +}), _O = At({ + prop: "gridTemplateAreas" +}), DO = At({ + prop: "gridArea" +}); +wp(Dp, zp, Lp, TO, xO, OO, RO, AO, MO, wO, _O, DO); +function m5(o, u) { + return u === "grey" ? u : o; +} +const zO = At({ + prop: "color", + themeKey: "palette", + transform: m5 +}), LO = At({ + prop: "bgcolor", + cssProperty: "backgroundColor", + themeKey: "palette", + transform: m5 +}), NO = At({ + prop: "backgroundColor", + themeKey: "palette", + transform: m5 +}); +wp(zO, LO, NO); +function sn(o) { + return o <= 1 && o !== 0 ? `${o * 100}%` : o; +} +const jO = At({ + prop: "width", + transform: sn +}), yC = (o) => { + if (o.maxWidth !== void 0 && o.maxWidth !== null) { + const u = (s) => { + const d = o.theme?.breakpoints?.values?.[s] || Op[s]; + return d ? o.theme?.breakpoints?.unit !== "px" ? { + maxWidth: `${d}${o.theme.breakpoints.unit}` + } : { + maxWidth: d + } : { + maxWidth: sn(s) + }; + }; + return q8(o, o.maxWidth, u); + } + return null; +}; +yC.filterProps = ["maxWidth"]; +const UO = At({ + prop: "minWidth", + transform: sn +}), BO = At({ + prop: "height", + transform: sn +}), HO = At({ + prop: "maxHeight", + transform: sn +}), $O = At({ + prop: "minHeight", + transform: sn +}); +At({ + prop: "size", + cssProperty: "width", + transform: sn +}); +At({ + prop: "size", + cssProperty: "height", + transform: sn +}); +const VO = At({ + prop: "boxSizing" +}); +wp(jO, yC, UO, BO, HO, $O, VO); +const r7 = { + // borders + border: { + themeKey: "borders", + transform: r8 + }, + borderTop: { + themeKey: "borders", + transform: r8 + }, + borderRight: { + themeKey: "borders", + transform: r8 + }, + borderBottom: { + themeKey: "borders", + transform: r8 + }, + borderLeft: { + themeKey: "borders", + transform: r8 + }, + borderColor: { + themeKey: "palette" + }, + borderTopColor: { + themeKey: "palette" + }, + borderRightColor: { + themeKey: "palette" + }, + borderBottomColor: { + themeKey: "palette" + }, + borderLeftColor: { + themeKey: "palette" + }, + outline: { + themeKey: "borders", + transform: r8 + }, + outlineColor: { + themeKey: "palette" + }, + borderRadius: { + themeKey: "shape.borderRadius", + style: _p + }, + // palette + color: { + themeKey: "palette", + transform: m5 + }, + bgcolor: { + themeKey: "palette", + cssProperty: "backgroundColor", + transform: m5 + }, + backgroundColor: { + themeKey: "palette", + transform: m5 + }, + // spacing + p: { + style: gt + }, + pt: { + style: gt + }, + pr: { + style: gt + }, + pb: { + style: gt + }, + pl: { + style: gt + }, + px: { + style: gt + }, + py: { + style: gt + }, + padding: { + style: gt + }, + paddingTop: { + style: gt + }, + paddingRight: { + style: gt + }, + paddingBottom: { + style: gt + }, + paddingLeft: { + style: gt + }, + paddingX: { + style: gt + }, + paddingY: { + style: gt + }, + paddingInline: { + style: gt + }, + paddingInlineStart: { + style: gt + }, + paddingInlineEnd: { + style: gt + }, + paddingBlock: { + style: gt + }, + paddingBlockStart: { + style: gt + }, + paddingBlockEnd: { + style: gt + }, + m: { + style: yt + }, + mt: { + style: yt + }, + mr: { + style: yt + }, + mb: { + style: yt + }, + ml: { + style: yt + }, + mx: { + style: yt + }, + my: { + style: yt + }, + margin: { + style: yt + }, + marginTop: { + style: yt + }, + marginRight: { + style: yt + }, + marginBottom: { + style: yt + }, + marginLeft: { + style: yt + }, + marginX: { + style: yt + }, + marginY: { + style: yt + }, + marginInline: { + style: yt + }, + marginInlineStart: { + style: yt + }, + marginInlineEnd: { + style: yt + }, + marginBlock: { + style: yt + }, + marginBlockStart: { + style: yt + }, + marginBlockEnd: { + style: yt + }, + // display + displayPrint: { + cssProperty: !1, + transform: (o) => ({ + "@media print": { + display: o + } + }) + }, + display: {}, + overflow: {}, + textOverflow: {}, + visibility: {}, + whiteSpace: {}, + // flexbox + flexBasis: {}, + flexDirection: {}, + flexWrap: {}, + justifyContent: {}, + alignItems: {}, + alignContent: {}, + order: {}, + flex: {}, + flexGrow: {}, + flexShrink: {}, + alignSelf: {}, + justifyItems: {}, + justifySelf: {}, + // grid + gap: { + style: Dp + }, + rowGap: { + style: Lp + }, + columnGap: { + style: zp + }, + gridColumn: {}, + gridRow: {}, + gridAutoFlow: {}, + gridAutoColumns: {}, + gridAutoRows: {}, + gridTemplateColumns: {}, + gridTemplateRows: {}, + gridTemplateAreas: {}, + gridArea: {}, + // positions + position: {}, + zIndex: { + themeKey: "zIndex" + }, + top: {}, + right: {}, + bottom: {}, + left: {}, + // shadows + boxShadow: { + themeKey: "shadows" + }, + // sizing + width: { + transform: sn + }, + maxWidth: { + style: yC + }, + minWidth: { + transform: sn + }, + height: { + transform: sn + }, + maxHeight: { + transform: sn + }, + minHeight: { + transform: sn + }, + boxSizing: {}, + // typography + font: { + themeKey: "font" + }, + fontFamily: { + themeKey: "typography" + }, + fontSize: { + themeKey: "typography" + }, + fontStyle: { + themeKey: "typography" + }, + fontWeight: { + themeKey: "typography" + }, + letterSpacing: {}, + textTransform: {}, + lineHeight: {}, + textAlign: {}, + typography: { + cssProperty: !1, + themeKey: "typography" + } +}; +function kO(...o) { + const u = o.reduce((d, m) => d.concat(Object.keys(m)), []), s = new Set(u); + return o.every((d) => s.size === Object.keys(d).length); +} +function YO(o, u) { + return typeof o == "function" ? o(u) : o; +} +function qO() { + function o(s, d, m, y) { + const b = { + [s]: d, + theme: m + }, S = y[s]; + if (!S) + return { + [s]: d + }; + const { + cssProperty: T = s, + themeKey: x, + transform: M, + style: A + } = S; + if (d == null) + return null; + if (x === "typography" && d === "inherit") + return { + [s]: d + }; + const R = Da(m, x) || {}; + return A ? A(b) : q8(b, d, (B) => { + let z = dp(R, M, B); + return B === z && typeof B == "string" && (z = dp(R, M, `${s}${B === "default" ? "" : I2(B)}`, B)), T === !1 ? z : { + [T]: z + }; + }); + } + function u(s) { + const { + sx: d, + theme: m = {}, + nested: y + } = s || {}; + if (!d) + return null; + const b = m.unstable_sxConfig ?? r7; + function S(T) { + let x = T; + if (typeof T == "function") + x = T(m); + else if (typeof T != "object") + return T; + if (!x) + return null; + const M = cS(m.breakpoints), A = Object.keys(M); + let R = M; + return Object.keys(x).forEach((_) => { + const B = YO(x[_], m); + if (B != null) + if (typeof B == "object") + if (b[_]) + R = q9(R, o(_, B, m, b)); + else { + const z = q8({ + theme: m + }, B, (q) => ({ + [_]: q + })); + kO(z, B) ? R[_] = u({ + sx: B, + theme: m, + nested: !0 + }) : R = q9(R, z); + } + else + R = q9(R, o(_, B, m, b)); + }), !y && m.modularCssLayers ? { + "@layer sx": wv(m, Pm(A, R)) + } : wv(m, Pm(A, R)); + } + return Array.isArray(d) ? d.map(S) : S(d); + } + return u; +} +const jo = qO(); +jo.filterProps = ["sx"]; +const ZO = (o) => { + const u = { + systemProps: {}, + otherProps: {} + }, s = o?.theme?.unstable_sxConfig ?? r7; + return Object.keys(o).forEach((d) => { + s[d] ? u.systemProps[d] = o[d] : u.otherProps[d] = o[d]; + }), u; +}; +function gC(o) { + const { + sx: u, + ...s + } = o, { + systemProps: d, + otherProps: m + } = ZO(s); + let y; + return Array.isArray(u) ? y = [d, ...u] : typeof u == "function" ? y = (...b) => { + const S = u(...b); + return Na(S) ? { + ...d, + ...S + } : d; + } : y = { + ...d, + ...u + }, { + ...m, + sx: y + }; +} +function pp() { + return pp = Object.assign ? Object.assign.bind() : function(o) { + for (var u = 1; u < arguments.length; u++) { + var s = arguments[u]; + for (var d in s) ({}).hasOwnProperty.call(s, d) && (o[d] = s[d]); + } + return o; + }, pp.apply(null, arguments); +} +function GO(o) { + if (o.sheet) + return o.sheet; + for (var u = 0; u < document.styleSheets.length; u++) + if (document.styleSheets[u].ownerNode === o) + return document.styleSheets[u]; +} +function XO(o) { + var u = document.createElement("style"); + return u.setAttribute("data-emotion", o.key), o.nonce !== void 0 && u.setAttribute("nonce", o.nonce), u.appendChild(document.createTextNode("")), u.setAttribute("data-s", ""), u; +} +var PO = /* @__PURE__ */ (function() { + function o(s) { + var d = this; + this._insertTag = function(m) { + var y; + d.tags.length === 0 ? d.insertionPoint ? y = d.insertionPoint.nextSibling : d.prepend ? y = d.container.firstChild : y = d.before : y = d.tags[d.tags.length - 1].nextSibling, d.container.insertBefore(m, y), d.tags.push(m); + }, this.isSpeedy = s.speedy === void 0 ? !0 : s.speedy, this.tags = [], this.ctr = 0, this.nonce = s.nonce, this.key = s.key, this.container = s.container, this.prepend = s.prepend, this.insertionPoint = s.insertionPoint, this.before = null; + } + var u = o.prototype; + return u.hydrate = function(d) { + d.forEach(this._insertTag); + }, u.insert = function(d) { + this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(XO(this)); + var m = this.tags[this.tags.length - 1]; + if (this.isSpeedy) { + var y = GO(m); + try { + y.insertRule(d, y.cssRules.length); + } catch { + } + } else + m.appendChild(document.createTextNode(d)); + this.ctr++; + }, u.flush = function() { + this.tags.forEach(function(d) { + var m; + return (m = d.parentNode) == null ? void 0 : m.removeChild(d); + }), this.tags = [], this.ctr = 0; + }, o; +})(), B4 = "-ms-", hp = "-moz-", o0 = "-webkit-", fS = "comm", vC = "rule", bC = "decl", QO = "@import", dS = "@keyframes", IO = "@layer", KO = Math.abs, Np = String.fromCharCode, JO = Object.assign; +function FO(o, u) { + return x4(o, 0) ^ 45 ? (((u << 2 ^ x4(o, 0)) << 2 ^ x4(o, 1)) << 2 ^ x4(o, 2)) << 2 ^ x4(o, 3) : 0; +} +function pS(o) { + return o.trim(); +} +function WO(o, u) { + return (o = u.exec(o)) ? o[0] : o; +} +function r0(o, u, s) { + return o.replace(u, s); +} +function Qm(o, u) { + return o.indexOf(u); +} +function x4(o, u) { + return o.charCodeAt(u) | 0; +} +function Q9(o, u, s) { + return o.slice(u, s); +} +function za(o) { + return o.length; +} +function SC(o) { + return o.length; +} +function qd(o, u) { + return u.push(o), o; +} +function eR(o, u) { + return o.map(u).join(""); +} +var jp = 1, v5 = 1, hS = 0, L3 = 0, qt = 0, M5 = ""; +function Up(o, u, s, d, m, y, b) { + return { value: o, root: u, parent: s, type: d, props: m, children: y, line: jp, column: v5, length: b, return: "" }; +} +function M9(o, u) { + return JO(Up("", null, null, "", null, null, 0), o, { length: -o.length }, u); +} +function tR() { + return qt; +} +function nR() { + return qt = L3 > 0 ? x4(M5, --L3) : 0, v5--, qt === 10 && (v5 = 1, jp--), qt; +} +function dn() { + return qt = L3 < hS ? x4(M5, L3++) : 0, v5++, qt === 10 && (v5 = 1, jp++), qt; +} +function Ua() { + return x4(M5, L3); +} +function lp() { + return L3; +} +function i7(o, u) { + return Q9(M5, o, u); +} +function I9(o) { + switch (o) { + // \0 \t \n \r \s whitespace token + case 0: + case 9: + case 10: + case 13: + case 32: + return 5; + // ! + , / > @ ~ isolate token + case 33: + case 43: + case 44: + case 47: + case 62: + case 64: + case 126: + // ; { } breakpoint token + case 59: + case 123: + case 125: + return 4; + // : accompanied token + case 58: + return 3; + // " ' ( [ opening delimit token + case 34: + case 39: + case 40: + case 91: + return 2; + // ) ] closing delimit token + case 41: + case 93: + return 1; + } + return 0; +} +function mS(o) { + return jp = v5 = 1, hS = za(M5 = o), L3 = 0, []; +} +function CS(o) { + return M5 = "", o; +} +function op(o) { + return pS(i7(L3 - 1, Im(o === 91 ? o + 2 : o === 40 ? o + 1 : o))); +} +function aR(o) { + for (; (qt = Ua()) && qt < 33; ) + dn(); + return I9(o) > 2 || I9(qt) > 3 ? "" : " "; +} +function lR(o, u) { + for (; --u && dn() && !(qt < 48 || qt > 102 || qt > 57 && qt < 65 || qt > 70 && qt < 97); ) + ; + return i7(o, lp() + (u < 6 && Ua() == 32 && dn() == 32)); +} +function Im(o) { + for (; dn(); ) + switch (qt) { + // ] ) " ' + case o: + return L3; + // " ' + case 34: + case 39: + o !== 34 && o !== 39 && Im(qt); + break; + // ( + case 40: + o === 41 && Im(o); + break; + // \ + case 92: + dn(); + break; + } + return L3; +} +function oR(o, u) { + for (; dn() && o + qt !== 57; ) + if (o + qt === 84 && Ua() === 47) + break; + return "/*" + i7(u, L3 - 1) + "*" + Np(o === 47 ? o : dn()); +} +function rR(o) { + for (; !I9(Ua()); ) + dn(); + return i7(o, L3); +} +function iR(o) { + return CS(rp("", null, null, null, [""], o = mS(o), 0, [0], o)); +} +function rp(o, u, s, d, m, y, b, S, T) { + for (var x = 0, M = 0, A = b, R = 0, _ = 0, B = 0, z = 1, q = 1, Z = 1, F = 0, G = "", k = m, $ = y, K = d, a2 = G; q; ) + switch (B = F, F = dn()) { + // ( + case 40: + if (B != 108 && x4(a2, A - 1) == 58) { + Qm(a2 += r0(op(F), "&", "&\f"), "&\f") != -1 && (Z = -1); + break; + } + // " ' [ + case 34: + case 39: + case 91: + a2 += op(F); + break; + // \t \n \r \s + case 9: + case 10: + case 13: + case 32: + a2 += aR(B); + break; + // \ + case 92: + a2 += lR(lp() - 1, 7); + continue; + // / + case 47: + switch (Ua()) { + case 42: + case 47: + qd(uR(oR(dn(), lp()), u, s), T); + break; + default: + a2 += "/"; + } + break; + // { + case 123 * z: + S[x++] = za(a2) * Z; + // } ; \0 + case 125 * z: + case 59: + case 0: + switch (F) { + // \0 } + case 0: + case 125: + q = 0; + // ; + case 59 + M: + Z == -1 && (a2 = r0(a2, /\f/g, "")), _ > 0 && za(a2) - A && qd(_ > 32 ? Lv(a2 + ";", d, s, A - 1) : Lv(r0(a2, " ", "") + ";", d, s, A - 2), T); + break; + // @ ; + case 59: + a2 += ";"; + // { rule/at-rule + default: + if (qd(K = zv(a2, u, s, x, M, m, S, G, k = [], $ = [], A), y), F === 123) + if (M === 0) + rp(a2, u, K, K, k, y, A, S, $); + else + switch (R === 99 && x4(a2, 3) === 110 ? 100 : R) { + // d l m s + case 100: + case 108: + case 109: + case 115: + rp(o, K, K, d && qd(zv(o, K, K, 0, 0, m, S, G, m, k = [], A), $), m, $, A, S, d ? k : $); + break; + default: + rp(a2, K, K, K, [""], $, 0, S, $); + } + } + x = M = _ = 0, z = Z = 1, G = a2 = "", A = b; + break; + // : + case 58: + A = 1 + za(a2), _ = B; + default: + if (z < 1) { + if (F == 123) + --z; + else if (F == 125 && z++ == 0 && nR() == 125) + continue; + } + switch (a2 += Np(F), F * z) { + // & + case 38: + Z = M > 0 ? 1 : (a2 += "\f", -1); + break; + // , + case 44: + S[x++] = (za(a2) - 1) * Z, Z = 1; + break; + // @ + case 64: + Ua() === 45 && (a2 += op(dn())), R = Ua(), M = A = za(G = a2 += rR(lp())), F++; + break; + // - + case 45: + B === 45 && za(a2) == 2 && (z = 0); + } + } + return y; +} +function zv(o, u, s, d, m, y, b, S, T, x, M) { + for (var A = m - 1, R = m === 0 ? y : [""], _ = SC(R), B = 0, z = 0, q = 0; B < d; ++B) + for (var Z = 0, F = Q9(o, A + 1, A = KO(z = b[B])), G = o; Z < _; ++Z) + (G = pS(z > 0 ? R[Z] + " " + F : r0(F, /&\f/g, R[Z]))) && (T[q++] = G); + return Up(o, u, s, m === 0 ? vC : S, T, x, M); +} +function uR(o, u, s) { + return Up(o, u, s, fS, Np(tR()), Q9(o, 2, -2), 0); +} +function Lv(o, u, s, d) { + return Up(o, u, s, bC, Q9(o, 0, d), Q9(o, d + 1, -1), d); +} +function C5(o, u) { + for (var s = "", d = SC(o), m = 0; m < d; m++) + s += u(o[m], m, o, u) || ""; + return s; +} +function cR(o, u, s, d) { + switch (o.type) { + case IO: + if (o.children.length) break; + case QO: + case bC: + return o.return = o.return || o.value; + case fS: + return ""; + case dS: + return o.return = o.value + "{" + C5(o.children, d) + "}"; + case vC: + o.value = o.props.join(","); + } + return za(s = C5(o.children, d)) ? o.return = o.value + "{" + s + "}" : ""; +} +function sR(o) { + var u = SC(o); + return function(s, d, m, y) { + for (var b = "", S = 0; S < u; S++) + b += o[S](s, d, m, y) || ""; + return b; + }; +} +function fR(o) { + return function(u) { + u.root || (u = u.return) && o(u); + }; +} +function yS(o) { + var u = /* @__PURE__ */ Object.create(null); + return function(s) { + return u[s] === void 0 && (u[s] = o(s)), u[s]; + }; +} +var dR = function(u, s, d) { + for (var m = 0, y = 0; m = y, y = Ua(), m === 38 && y === 12 && (s[d] = 1), !I9(y); ) + dn(); + return i7(u, L3); +}, pR = function(u, s) { + var d = -1, m = 44; + do + switch (I9(m)) { + case 0: + m === 38 && Ua() === 12 && (s[d] = 1), u[d] += dR(L3 - 1, s, d); + break; + case 2: + u[d] += op(m); + break; + case 4: + if (m === 44) { + u[++d] = Ua() === 58 ? "&\f" : "", s[d] = u[d].length; + break; + } + // fallthrough + default: + u[d] += Np(m); + } + while (m = dn()); + return u; +}, hR = function(u, s) { + return CS(pR(mS(u), s)); +}, Nv = /* @__PURE__ */ new WeakMap(), mR = function(u) { + if (!(u.type !== "rule" || !u.parent || // positive .length indicates that this rule contains pseudo + // negative .length indicates that this rule has been already prefixed + u.length < 1)) { + for (var s = u.value, d = u.parent, m = u.column === d.column && u.line === d.line; d.type !== "rule"; ) + if (d = d.parent, !d) return; + if (!(u.props.length === 1 && s.charCodeAt(0) !== 58 && !Nv.get(d)) && !m) { + Nv.set(u, !0); + for (var y = [], b = hR(s, y), S = d.props, T = 0, x = 0; T < b.length; T++) + for (var M = 0; M < S.length; M++, x++) + u.props[x] = y[T] ? b[T].replace(/&\f/g, S[M]) : S[M] + " " + b[T]; + } + } +}, CR = function(u) { + if (u.type === "decl") { + var s = u.value; + // charcode for l + s.charCodeAt(0) === 108 && // charcode for b + s.charCodeAt(2) === 98 && (u.return = "", u.value = ""); + } +}; +function gS(o, u) { + switch (FO(o, u)) { + // color-adjust + case 5103: + return o0 + "print-" + o + o; + // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function) + case 5737: + case 4201: + case 3177: + case 3433: + case 1641: + case 4457: + case 2921: + // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break + case 5572: + case 6356: + case 5844: + case 3191: + case 6645: + case 3005: + // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite, + case 6391: + case 5879: + case 5623: + case 6135: + case 4599: + case 4855: + // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width) + case 4215: + case 6389: + case 5109: + case 5365: + case 5621: + case 3829: + return o0 + o + o; + // appearance, user-select, transform, hyphens, text-size-adjust + case 5349: + case 4246: + case 4810: + case 6968: + case 2756: + return o0 + o + hp + o + B4 + o + o; + // flex, flex-direction + case 6828: + case 4268: + return o0 + o + B4 + o + o; + // order + case 6165: + return o0 + o + B4 + "flex-" + o + o; + // align-items + case 5187: + return o0 + o + r0(o, /(\w+).+(:[^]+)/, o0 + "box-$1$2" + B4 + "flex-$1$2") + o; + // align-self + case 5443: + return o0 + o + B4 + "flex-item-" + r0(o, /flex-|-self/, "") + o; + // align-content + case 4675: + return o0 + o + B4 + "flex-line-pack" + r0(o, /align-content|flex-|-self/, "") + o; + // flex-shrink + case 5548: + return o0 + o + B4 + r0(o, "shrink", "negative") + o; + // flex-basis + case 5292: + return o0 + o + B4 + r0(o, "basis", "preferred-size") + o; + // flex-grow + case 6060: + return o0 + "box-" + r0(o, "-grow", "") + o0 + o + B4 + r0(o, "grow", "positive") + o; + // transition + case 4554: + return o0 + r0(o, /([^-])(transform)/g, "$1" + o0 + "$2") + o; + // cursor + case 6187: + return r0(r0(r0(o, /(zoom-|grab)/, o0 + "$1"), /(image-set)/, o0 + "$1"), o, "") + o; + // background, background-image + case 5495: + case 3959: + return r0(o, /(image-set\([^]*)/, o0 + "$1$`$1"); + // justify-content + case 4968: + return r0(r0(o, /(.+:)(flex-)?(.*)/, o0 + "box-pack:$3" + B4 + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + o0 + o + o; + // (margin|padding)-inline-(start|end) + case 4095: + case 3583: + case 4068: + case 2532: + return r0(o, /(.+)-inline(.+)/, o0 + "$1$2") + o; + // (min|max)?(width|height|inline-size|block-size) + case 8116: + case 7059: + case 5753: + case 5535: + case 5445: + case 5701: + case 4933: + case 4677: + case 5533: + case 5789: + case 5021: + case 4765: + if (za(o) - 1 - u > 6) switch (x4(o, u + 1)) { + // (m)ax-content, (m)in-content + case 109: + if (x4(o, u + 4) !== 45) break; + // (f)ill-available, (f)it-content + case 102: + return r0(o, /(.+:)(.+)-([^]+)/, "$1" + o0 + "$2-$3$1" + hp + (x4(o, u + 3) == 108 ? "$3" : "$2-$3")) + o; + // (s)tretch + case 115: + return ~Qm(o, "stretch") ? gS(r0(o, "stretch", "fill-available"), u) + o : o; + } + break; + // position: sticky + case 4949: + if (x4(o, u + 1) !== 115) break; + // display: (flex|inline-flex) + case 6444: + switch (x4(o, za(o) - 3 - (~Qm(o, "!important") && 10))) { + // stic(k)y + case 107: + return r0(o, ":", ":" + o0) + o; + // (inline-)?fl(e)x + case 101: + return r0(o, /(.+:)([^;!]+)(;|!.+)?/, "$1" + o0 + (x4(o, 14) === 45 ? "inline-" : "") + "box$3$1" + o0 + "$2$3$1" + B4 + "$2box$3") + o; + } + break; + // writing-mode + case 5936: + switch (x4(o, u + 11)) { + // vertical-l(r) + case 114: + return o0 + o + B4 + r0(o, /[svh]\w+-[tblr]{2}/, "tb") + o; + // vertical-r(l) + case 108: + return o0 + o + B4 + r0(o, /[svh]\w+-[tblr]{2}/, "tb-rl") + o; + // horizontal(-)tb + case 45: + return o0 + o + B4 + r0(o, /[svh]\w+-[tblr]{2}/, "lr") + o; + } + return o0 + o + B4 + o + o; + } + return o; +} +var yR = function(u, s, d, m) { + if (u.length > -1 && !u.return) switch (u.type) { + case bC: + u.return = gS(u.value, u.length); + break; + case dS: + return C5([M9(u, { + value: r0(u.value, "@", "@" + o0) + })], m); + case vC: + if (u.length) return eR(u.props, function(y) { + switch (WO(y, /(::plac\w+|:read-\w+)/)) { + // :read-(only|write) + case ":read-only": + case ":read-write": + return C5([M9(u, { + props: [r0(y, /:(read-\w+)/, ":" + hp + "$1")] + })], m); + // :placeholder + case "::placeholder": + return C5([M9(u, { + props: [r0(y, /:(plac\w+)/, ":" + o0 + "input-$1")] + }), M9(u, { + props: [r0(y, /:(plac\w+)/, ":" + hp + "$1")] + }), M9(u, { + props: [r0(y, /:(plac\w+)/, B4 + "input-$1")] + })], m); + } + return ""; + }); + } +}, gR = [yR], vR = function(u) { + var s = u.key; + if (s === "css") { + var d = document.querySelectorAll("style[data-emotion]:not([data-s])"); + Array.prototype.forEach.call(d, function(z) { + var q = z.getAttribute("data-emotion"); + q.indexOf(" ") !== -1 && (document.head.appendChild(z), z.setAttribute("data-s", "")); + }); + } + var m = u.stylisPlugins || gR, y = {}, b, S = []; + b = u.container || document.head, Array.prototype.forEach.call( + // this means we will ignore elements which don't have a space in them which + // means that the style elements we're looking at are only Emotion 11 server-rendered style elements + document.querySelectorAll('style[data-emotion^="' + s + ' "]'), + function(z) { + for (var q = z.getAttribute("data-emotion").split(" "), Z = 1; Z < q.length; Z++) + y[q[Z]] = !0; + S.push(z); + } + ); + var T, x = [mR, CR]; + { + var M, A = [cR, fR(function(z) { + M.insert(z); + })], R = sR(x.concat(m, A)), _ = function(q) { + return C5(iR(q), R); + }; + T = function(q, Z, F, G) { + M = F, _(q ? q + "{" + Z.styles + "}" : Z.styles), G && (B.inserted[Z.name] = !0); + }; + } + var B = { + key: s, + sheet: new PO({ + key: s, + container: b, + nonce: u.nonce, + speedy: u.speedy, + prepend: u.prepend, + insertionPoint: u.insertionPoint + }), + nonce: u.nonce, + inserted: y, + registered: {}, + insert: T + }; + return B.sheet.hydrate(S), B; +}, Zd = { exports: {} }, m0 = {}; +var jv; +function bR() { + if (jv) return m0; + jv = 1; + var o = typeof Symbol == "function" && Symbol.for, u = o ? /* @__PURE__ */ Symbol.for("react.element") : 60103, s = o ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, d = o ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, m = o ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, y = o ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, b = o ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, S = o ? /* @__PURE__ */ Symbol.for("react.context") : 60110, T = o ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, x = o ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, M = o ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, A = o ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, R = o ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = o ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, B = o ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, z = o ? /* @__PURE__ */ Symbol.for("react.block") : 60121, q = o ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, Z = o ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, F = o ? /* @__PURE__ */ Symbol.for("react.scope") : 60119; + function G($) { + if (typeof $ == "object" && $ !== null) { + var K = $.$$typeof; + switch (K) { + case u: + switch ($ = $.type, $) { + case T: + case x: + case d: + case y: + case m: + case A: + return $; + default: + switch ($ = $ && $.$$typeof, $) { + case S: + case M: + case B: + case _: + case b: + return $; + default: + return K; + } + } + case s: + return K; + } + } + } + function k($) { + return G($) === x; + } + return m0.AsyncMode = T, m0.ConcurrentMode = x, m0.ContextConsumer = S, m0.ContextProvider = b, m0.Element = u, m0.ForwardRef = M, m0.Fragment = d, m0.Lazy = B, m0.Memo = _, m0.Portal = s, m0.Profiler = y, m0.StrictMode = m, m0.Suspense = A, m0.isAsyncMode = function($) { + return k($) || G($) === T; + }, m0.isConcurrentMode = k, m0.isContextConsumer = function($) { + return G($) === S; + }, m0.isContextProvider = function($) { + return G($) === b; + }, m0.isElement = function($) { + return typeof $ == "object" && $ !== null && $.$$typeof === u; + }, m0.isForwardRef = function($) { + return G($) === M; + }, m0.isFragment = function($) { + return G($) === d; + }, m0.isLazy = function($) { + return G($) === B; + }, m0.isMemo = function($) { + return G($) === _; + }, m0.isPortal = function($) { + return G($) === s; + }, m0.isProfiler = function($) { + return G($) === y; + }, m0.isStrictMode = function($) { + return G($) === m; + }, m0.isSuspense = function($) { + return G($) === A; + }, m0.isValidElementType = function($) { + return typeof $ == "string" || typeof $ == "function" || $ === d || $ === x || $ === y || $ === m || $ === A || $ === R || typeof $ == "object" && $ !== null && ($.$$typeof === B || $.$$typeof === _ || $.$$typeof === b || $.$$typeof === S || $.$$typeof === M || $.$$typeof === q || $.$$typeof === Z || $.$$typeof === F || $.$$typeof === z); + }, m0.typeOf = G, m0; +} +var C0 = {}; +var Uv; +function SR() { + return Uv || (Uv = 1, process.env.NODE_ENV !== "production" && (function() { + var o = typeof Symbol == "function" && Symbol.for, u = o ? /* @__PURE__ */ Symbol.for("react.element") : 60103, s = o ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, d = o ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, m = o ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, y = o ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, b = o ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, S = o ? /* @__PURE__ */ Symbol.for("react.context") : 60110, T = o ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, x = o ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, M = o ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, A = o ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, R = o ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, _ = o ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, B = o ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, z = o ? /* @__PURE__ */ Symbol.for("react.block") : 60121, q = o ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, Z = o ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, F = o ? /* @__PURE__ */ Symbol.for("react.scope") : 60119; + function G(h2) { + return typeof h2 == "string" || typeof h2 == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + h2 === d || h2 === x || h2 === y || h2 === m || h2 === A || h2 === R || typeof h2 == "object" && h2 !== null && (h2.$$typeof === B || h2.$$typeof === _ || h2.$$typeof === b || h2.$$typeof === S || h2.$$typeof === M || h2.$$typeof === q || h2.$$typeof === Z || h2.$$typeof === F || h2.$$typeof === z); + } + function k(h2) { + if (typeof h2 == "object" && h2 !== null) { + var ge = h2.$$typeof; + switch (ge) { + case u: + var he = h2.type; + switch (he) { + case T: + case x: + case d: + case y: + case m: + case A: + return he; + default: + var je = he && he.$$typeof; + switch (je) { + case S: + case M: + case B: + case _: + case b: + return je; + default: + return ge; + } + } + case s: + return ge; + } + } + } + var $ = T, K = x, a2 = S, u2 = b, d2 = u, r2 = M, S2 = d, N = B, o2 = _, g2 = s, R2 = y, H = m, e2 = A, v2 = !1; + function E2(h2) { + return v2 || (v2 = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), i2(h2) || k(h2) === T; + } + function i2(h2) { + return k(h2) === x; + } + function D(h2) { + return k(h2) === S; + } + function X(h2) { + return k(h2) === b; + } + function p2(h2) { + return typeof h2 == "object" && h2 !== null && h2.$$typeof === u; + } + function s2(h2) { + return k(h2) === M; + } + function L2(h2) { + return k(h2) === d; + } + function D2(h2) { + return k(h2) === B; + } + function A2(h2) { + return k(h2) === _; + } + function B2(h2) { + return k(h2) === s; + } + function k2(h2) { + return k(h2) === y; + } + function $2(h2) { + return k(h2) === m; + } + function M2(h2) { + return k(h2) === A; + } + C0.AsyncMode = $, C0.ConcurrentMode = K, C0.ContextConsumer = a2, C0.ContextProvider = u2, C0.Element = d2, C0.ForwardRef = r2, C0.Fragment = S2, C0.Lazy = N, C0.Memo = o2, C0.Portal = g2, C0.Profiler = R2, C0.StrictMode = H, C0.Suspense = e2, C0.isAsyncMode = E2, C0.isConcurrentMode = i2, C0.isContextConsumer = D, C0.isContextProvider = X, C0.isElement = p2, C0.isForwardRef = s2, C0.isFragment = L2, C0.isLazy = D2, C0.isMemo = A2, C0.isPortal = B2, C0.isProfiler = k2, C0.isStrictMode = $2, C0.isSuspense = M2, C0.isValidElementType = G, C0.typeOf = k; + })()), C0; +} +var Bv; +function ER() { + return Bv || (Bv = 1, process.env.NODE_ENV === "production" ? Zd.exports = bR() : Zd.exports = SR()), Zd.exports; +} +var wm, Hv; +function TR() { + if (Hv) return wm; + Hv = 1; + var o = ER(), u = { + childContextTypes: !0, + contextType: !0, + contextTypes: !0, + defaultProps: !0, + displayName: !0, + getDefaultProps: !0, + getDerivedStateFromError: !0, + getDerivedStateFromProps: !0, + mixins: !0, + propTypes: !0, + type: !0 + }, s = { + name: !0, + length: !0, + prototype: !0, + caller: !0, + callee: !0, + arguments: !0, + arity: !0 + }, d = { + $$typeof: !0, + render: !0, + defaultProps: !0, + displayName: !0, + propTypes: !0 + }, m = { + $$typeof: !0, + compare: !0, + defaultProps: !0, + displayName: !0, + propTypes: !0, + type: !0 + }, y = {}; + y[o.ForwardRef] = d, y[o.Memo] = m; + function b(B) { + return o.isMemo(B) ? m : y[B.$$typeof] || u; + } + var S = Object.defineProperty, T = Object.getOwnPropertyNames, x = Object.getOwnPropertySymbols, M = Object.getOwnPropertyDescriptor, A = Object.getPrototypeOf, R = Object.prototype; + function _(B, z, q) { + if (typeof z != "string") { + if (R) { + var Z = A(z); + Z && Z !== R && _(B, Z, q); + } + var F = T(z); + x && (F = F.concat(x(z))); + for (var G = b(B), k = b(z), $ = 0; $ < F.length; ++$) { + var K = F[$]; + if (!s[K] && !(q && q[K]) && !(k && k[K]) && !(G && G[K])) { + var a2 = M(z, K); + try { + S(B, K, a2); + } catch { + } + } + } + } + return B; + } + return wm = _, wm; +} +TR(); +var xR = !0; +function vS(o, u, s) { + var d = ""; + return s.split(" ").forEach(function(m) { + o[m] !== void 0 ? u.push(o[m] + ";") : m && (d += m + " "); + }), d; +} +var EC = function(u, s, d) { + var m = u.key + "-" + s.name; + // we only need to add the styles to the registered cache if the + // class name could be used further down + // the tree but if it's a string tag, we know it won't + // so we don't have to add it to registered cache. + // this improves memory usage since we can avoid storing the whole style string + (d === !1 || // we need to always store it if we're in compat mode and + // in node since emotion-server relies on whether a style is in + // the registered cache to know whether a style is global or not + // also, note that this check will be dead code eliminated in the browser + xR === !1) && u.registered[m] === void 0 && (u.registered[m] = s.styles); +}, TC = function(u, s, d) { + EC(u, s, d); + var m = u.key + "-" + s.name; + if (u.inserted[s.name] === void 0) { + var y = s; + do + u.insert(s === y ? "." + m : "", y, u.sheet, !0), y = y.next; + while (y !== void 0); + } +}; +function OR(o) { + for (var u = 0, s, d = 0, m = o.length; m >= 4; ++d, m -= 4) + s = o.charCodeAt(d) & 255 | (o.charCodeAt(++d) & 255) << 8 | (o.charCodeAt(++d) & 255) << 16 | (o.charCodeAt(++d) & 255) << 24, s = /* Math.imul(k, m): */ + (s & 65535) * 1540483477 + ((s >>> 16) * 59797 << 16), s ^= /* k >>> r: */ + s >>> 24, u = /* Math.imul(k, m): */ + (s & 65535) * 1540483477 + ((s >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */ + (u & 65535) * 1540483477 + ((u >>> 16) * 59797 << 16); + switch (m) { + case 3: + u ^= (o.charCodeAt(d + 2) & 255) << 16; + case 2: + u ^= (o.charCodeAt(d + 1) & 255) << 8; + case 1: + u ^= o.charCodeAt(d) & 255, u = /* Math.imul(h, m): */ + (u & 65535) * 1540483477 + ((u >>> 16) * 59797 << 16); + } + return u ^= u >>> 13, u = /* Math.imul(h, m): */ + (u & 65535) * 1540483477 + ((u >>> 16) * 59797 << 16), ((u ^ u >>> 15) >>> 0).toString(36); +} +var RR = { + animationIterationCount: 1, + aspectRatio: 1, + borderImageOutset: 1, + borderImageSlice: 1, + borderImageWidth: 1, + boxFlex: 1, + boxFlexGroup: 1, + boxOrdinalGroup: 1, + columnCount: 1, + columns: 1, + flex: 1, + flexGrow: 1, + flexPositive: 1, + flexShrink: 1, + flexNegative: 1, + flexOrder: 1, + gridRow: 1, + gridRowEnd: 1, + gridRowSpan: 1, + gridRowStart: 1, + gridColumn: 1, + gridColumnEnd: 1, + gridColumnSpan: 1, + gridColumnStart: 1, + msGridRow: 1, + msGridRowSpan: 1, + msGridColumn: 1, + msGridColumnSpan: 1, + fontWeight: 1, + lineHeight: 1, + opacity: 1, + order: 1, + orphans: 1, + scale: 1, + tabSize: 1, + widows: 1, + zIndex: 1, + zoom: 1, + WebkitLineClamp: 1, + // SVG-related properties + fillOpacity: 1, + floodOpacity: 1, + stopOpacity: 1, + strokeDasharray: 1, + strokeDashoffset: 1, + strokeMiterlimit: 1, + strokeOpacity: 1, + strokeWidth: 1 +}, AR = /[A-Z]|^ms/g, MR = /_EMO_([^_]+?)_([^]*?)_EMO_/g, bS = function(u) { + return u.charCodeAt(1) === 45; +}, $v = function(u) { + return u != null && typeof u != "boolean"; +}, _m = /* @__PURE__ */ yS(function(o) { + return bS(o) ? o : o.replace(AR, "-$&").toLowerCase(); +}), Vv = function(u, s) { + switch (u) { + case "animation": + case "animationName": + if (typeof s == "string") + return s.replace(MR, function(d, m, y) { + return La = { + name: m, + styles: y, + next: La + }, m; + }); + } + return RR[u] !== 1 && !bS(u) && typeof s == "number" && s !== 0 ? s + "px" : s; +}; +function K9(o, u, s) { + if (s == null) + return ""; + var d = s; + if (d.__emotion_styles !== void 0) + return d; + switch (typeof s) { + case "boolean": + return ""; + case "object": { + var m = s; + if (m.anim === 1) + return La = { + name: m.name, + styles: m.styles, + next: La + }, m.name; + var y = s; + if (y.styles !== void 0) { + var b = y.next; + if (b !== void 0) + for (; b !== void 0; ) + La = { + name: b.name, + styles: b.styles, + next: La + }, b = b.next; + var S = y.styles + ";"; + return S; + } + return wR(o, u, s); + } + case "function": { + if (o !== void 0) { + var T = La, x = s(o); + return La = T, K9(o, u, x); + } + break; + } + } + var M = s; + if (u == null) + return M; + var A = u[M]; + return A !== void 0 ? A : M; +} +function wR(o, u, s) { + var d = ""; + if (Array.isArray(s)) + for (var m = 0; m < s.length; m++) + d += K9(o, u, s[m]) + ";"; + else + for (var y in s) { + var b = s[y]; + if (typeof b != "object") { + var S = b; + u != null && u[S] !== void 0 ? d += y + "{" + u[S] + "}" : $v(S) && (d += _m(y) + ":" + Vv(y, S) + ";"); + } else if (Array.isArray(b) && typeof b[0] == "string" && (u == null || u[b[0]] === void 0)) + for (var T = 0; T < b.length; T++) + $v(b[T]) && (d += _m(y) + ":" + Vv(y, b[T]) + ";"); + else { + var x = K9(o, u, b); + switch (y) { + case "animation": + case "animationName": { + d += _m(y) + ":" + x + ";"; + break; + } + default: + d += y + "{" + x + "}"; + } + } + } + return d; +} +var kv = /label:\s*([^\s;{]+)\s*(;|$)/g, La; +function u7(o, u, s) { + if (o.length === 1 && typeof o[0] == "object" && o[0] !== null && o[0].styles !== void 0) + return o[0]; + var d = !0, m = ""; + La = void 0; + var y = o[0]; + if (y == null || y.raw === void 0) + d = !1, m += K9(s, u, y); + else { + var b = y; + m += b[0]; + } + for (var S = 1; S < o.length; S++) + if (m += K9(s, u, o[S]), d) { + var T = y; + m += T[S]; + } + kv.lastIndex = 0; + for (var x = "", M; (M = kv.exec(m)) !== null; ) + x += "-" + M[1]; + var A = OR(m) + x; + return { + name: A, + styles: m, + next: La + }; +} +var _R = function(u) { + return u(); +}, SS = Xm.useInsertionEffect ? Xm.useInsertionEffect : !1, ES = SS || _R, Yv = SS || V.useLayoutEffect, TS = /* @__PURE__ */ V.createContext( + // we're doing this to avoid preconstruct's dead code elimination in this one case + // because this module is primarily intended for the browser and node + // but it's also required in react native and similar environments sometimes + // and we could have a special build just for that + // but this is much easier and the native packages + // might use a different theme context in the future anyway + typeof HTMLElement < "u" ? /* @__PURE__ */ vR({ + key: "css" + }) : null +); +TS.Provider; +var xC = function(u) { + return /* @__PURE__ */ V.forwardRef(function(s, d) { + var m = V.useContext(TS); + return u(s, m, d); + }); +}, c7 = /* @__PURE__ */ V.createContext({}), OC = {}.hasOwnProperty, Km = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", DR = function(u, s) { + var d = {}; + for (var m in s) + OC.call(s, m) && (d[m] = s[m]); + return d[Km] = u, d; +}, zR = function(u) { + var s = u.cache, d = u.serialized, m = u.isStringTag; + return EC(s, d, m), ES(function() { + return TC(s, d, m); + }), null; +}, LR = /* @__PURE__ */ xC(function(o, u, s) { + var d = o.css; + typeof d == "string" && u.registered[d] !== void 0 && (d = u.registered[d]); + var m = o[Km], y = [d], b = ""; + typeof o.className == "string" ? b = vS(u.registered, y, o.className) : o.className != null && (b = o.className + " "); + var S = u7(y, void 0, V.useContext(c7)); + b += u.key + "-" + S.name; + var T = {}; + for (var x in o) + OC.call(o, x) && x !== "css" && x !== Km && (T[x] = o[x]); + return T.className = b, s && (T.ref = s), /* @__PURE__ */ V.createElement(V.Fragment, null, /* @__PURE__ */ V.createElement(zR, { + cache: u, + serialized: S, + isStringTag: typeof m == "string" + }), /* @__PURE__ */ V.createElement(m, T)); +}), NR = LR, qv = function(u, s) { + var d = arguments; + if (s == null || !OC.call(s, "css")) + return V.createElement.apply(void 0, d); + var m = d.length, y = new Array(m); + y[0] = NR, y[1] = DR(u, s); + for (var b = 2; b < m; b++) + y[b] = d[b]; + return V.createElement.apply(null, y); +}; +(function(o) { + var u; + u || (u = o.JSX || (o.JSX = {})); +})(qv || (qv = {})); +var jR = /* @__PURE__ */ xC(function(o, u) { + var s = o.styles, d = u7([s], void 0, V.useContext(c7)), m = V.useRef(); + return Yv(function() { + var y = u.key + "-global", b = new u.sheet.constructor({ + key: y, + nonce: u.sheet.nonce, + container: u.sheet.container, + speedy: u.sheet.isSpeedy + }), S = !1, T = document.querySelector('style[data-emotion="' + y + " " + d.name + '"]'); + return u.sheet.tags.length && (b.before = u.sheet.tags[0]), T !== null && (S = !0, T.setAttribute("data-emotion", y), b.hydrate([T])), m.current = [b, S], function() { + b.flush(); + }; + }, [u]), Yv(function() { + var y = m.current, b = y[0], S = y[1]; + if (S) { + y[1] = !1; + return; + } + if (d.next !== void 0 && TC(u, d.next, !0), b.tags.length) { + var T = b.tags[b.tags.length - 1].nextElementSibling; + b.before = T, b.flush(); + } + u.insert("", d, b, !1); + }, [u, d.name]), null; +}); +function RC() { + for (var o = arguments.length, u = new Array(o), s = 0; s < o; s++) + u[s] = arguments[s]; + return u7(u); +} +function ka() { + var o = RC.apply(void 0, arguments), u = "animation-" + o.name; + return { + name: u, + styles: "@keyframes " + u + "{" + o.styles + "}", + anim: 1, + toString: function() { + return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; + } + }; +} +var UR = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|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)-.*))$/, BR = /* @__PURE__ */ yS( + function(o) { + return UR.test(o) || o.charCodeAt(0) === 111 && o.charCodeAt(1) === 110 && o.charCodeAt(2) < 91; + } + /* Z+1 */ +), HR = BR, $R = function(u) { + return u !== "theme"; +}, Zv = function(u) { + return typeof u == "string" && // 96 is one less than the char code + // for "a" so this is checking that + // it's a lowercase character + u.charCodeAt(0) > 96 ? HR : $R; +}, Gv = function(u, s, d) { + var m; + if (s) { + var y = s.shouldForwardProp; + m = u.__emotion_forwardProp && y ? function(b) { + return u.__emotion_forwardProp(b) && y(b); + } : y; + } + return typeof m != "function" && d && (m = u.__emotion_forwardProp), m; +}, VR = function(u) { + var s = u.cache, d = u.serialized, m = u.isStringTag; + return EC(s, d, m), ES(function() { + return TC(s, d, m); + }), null; +}, kR = function o(u, s) { + var d = u.__emotion_real === u, m = d && u.__emotion_base || u, y, b; + s !== void 0 && (y = s.label, b = s.target); + var S = Gv(u, s, d), T = S || Zv(m), x = !T("as"); + return function() { + var M = arguments, A = d && u.__emotion_styles !== void 0 ? u.__emotion_styles.slice(0) : []; + if (y !== void 0 && A.push("label:" + y + ";"), M[0] == null || M[0].raw === void 0) + A.push.apply(A, M); + else { + var R = M[0]; + A.push(R[0]); + for (var _ = M.length, B = 1; B < _; B++) + A.push(M[B], R[B]); + } + var z = xC(function(q, Z, F) { + var G = x && q.as || m, k = "", $ = [], K = q; + if (q.theme == null) { + K = {}; + for (var a2 in q) + K[a2] = q[a2]; + K.theme = V.useContext(c7); + } + typeof q.className == "string" ? k = vS(Z.registered, $, q.className) : q.className != null && (k = q.className + " "); + var u2 = u7(A.concat($), Z.registered, K); + k += Z.key + "-" + u2.name, b !== void 0 && (k += " " + b); + var d2 = x && S === void 0 ? Zv(G) : T, r2 = {}; + for (var S2 in q) + x && S2 === "as" || d2(S2) && (r2[S2] = q[S2]); + return r2.className = k, F && (r2.ref = F), /* @__PURE__ */ V.createElement(V.Fragment, null, /* @__PURE__ */ V.createElement(VR, { + cache: Z, + serialized: u2, + isStringTag: typeof G == "string" + }), /* @__PURE__ */ V.createElement(G, r2)); + }); + return z.displayName = y !== void 0 ? y : "Styled(" + (typeof m == "string" ? m : m.displayName || m.name || "Component") + ")", z.defaultProps = u.defaultProps, z.__emotion_real = z, z.__emotion_base = m, z.__emotion_styles = A, z.__emotion_forwardProp = S, Object.defineProperty(z, "toString", { + value: function() { + return "." + b; + } + }), z.withComponent = function(q, Z) { + var F = o(q, pp({}, s, Z, { + shouldForwardProp: Gv(z, Z, !0) + })); + return F.apply(void 0, A); + }, z; + }; +}, YR = [ + "a", + "abbr", + "address", + "area", + "article", + "aside", + "audio", + "b", + "base", + "bdi", + "bdo", + "big", + "blockquote", + "body", + "br", + "button", + "canvas", + "caption", + "cite", + "code", + "col", + "colgroup", + "data", + "datalist", + "dd", + "del", + "details", + "dfn", + "dialog", + "div", + "dl", + "dt", + "em", + "embed", + "fieldset", + "figcaption", + "figure", + "footer", + "form", + "h1", + "h2", + "h3", + "h4", + "h5", + "h6", + "head", + "header", + "hgroup", + "hr", + "html", + "i", + "iframe", + "img", + "input", + "ins", + "kbd", + "keygen", + "label", + "legend", + "li", + "link", + "main", + "map", + "mark", + "marquee", + "menu", + "menuitem", + "meta", + "meter", + "nav", + "noscript", + "object", + "ol", + "optgroup", + "option", + "output", + "p", + "param", + "picture", + "pre", + "progress", + "q", + "rp", + "rt", + "ruby", + "s", + "samp", + "script", + "section", + "select", + "small", + "source", + "span", + "strong", + "style", + "sub", + "summary", + "sup", + "table", + "tbody", + "td", + "textarea", + "tfoot", + "th", + "thead", + "time", + "title", + "tr", + "track", + "u", + "ul", + "var", + "video", + "wbr", + // SVG + "circle", + "clipPath", + "defs", + "ellipse", + "foreignObject", + "g", + "image", + "line", + "linearGradient", + "mask", + "path", + "pattern", + "polygon", + "polyline", + "radialGradient", + "rect", + "stop", + "svg", + "text", + "tspan" +], Jm = kR.bind(null); +YR.forEach(function(o) { + Jm[o] = Jm(o); +}); +function qR(o) { + return o == null || Object.keys(o).length === 0; +} +function AC(o) { + const { + styles: u, + defaultTheme: s = {} + } = o, d = typeof u == "function" ? (m) => u(qR(m) ? s : m) : u; + return /* @__PURE__ */ Y.jsx(jR, { + styles: d + }); +} +process.env.NODE_ENV !== "production" && (AC.propTypes = { + defaultTheme: h.object, + styles: h.oneOfType([h.array, h.string, h.object, h.func]) +}); +function xS(o, u) { + const s = Jm(o, u); + return process.env.NODE_ENV !== "production" ? (...d) => { + const m = typeof o == "string" ? `"${o}"` : "component"; + return d.length === 0 ? console.error([`MUI: Seems like you called \`styled(${m})()\` without a \`style\` argument.`, 'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(` +`)) : d.some((y) => y === void 0) && console.error(`MUI: the styled(${m})(...args) API requires all its args to be defined.`), s(...d); + } : s; +} +function ZR(o, u) { + Array.isArray(o.__emotion_styles) && (o.__emotion_styles = u(o.__emotion_styles)); +} +const Xv = []; +function Lo(o) { + return Xv[0] = o, u7(Xv); +} +const GR = (o) => { + const u = Object.keys(o).map((s) => ({ + key: s, + val: o[s] + })) || []; + return u.sort((s, d) => s.val - d.val), u.reduce((s, d) => ({ + ...s, + [d.key]: d.val + }), {}); +}; +function XR(o) { + const { + // The breakpoint **start** at this value. + // For instance with the first breakpoint xs: [xs, sm). + values: u = { + xs: 0, + // phone + sm: 600, + // tablet + md: 900, + // small laptop + lg: 1200, + // desktop + xl: 1536 + // large screen + }, + unit: s = "px", + step: d = 5, + ...m + } = o, y = GR(u), b = Object.keys(y); + function S(R) { + return `@media (min-width:${typeof u[R] == "number" ? u[R] : R}${s})`; + } + function T(R) { + return `@media (max-width:${(typeof u[R] == "number" ? u[R] : R) - d / 100}${s})`; + } + function x(R, _) { + const B = b.indexOf(_); + return `@media (min-width:${typeof u[R] == "number" ? u[R] : R}${s}) and (max-width:${(B !== -1 && typeof u[b[B]] == "number" ? u[b[B]] : _) - d / 100}${s})`; + } + function M(R) { + return b.indexOf(R) + 1 < b.length ? x(R, b[b.indexOf(R) + 1]) : S(R); + } + function A(R) { + const _ = b.indexOf(R); + return _ === 0 ? S(b[1]) : _ === b.length - 1 ? T(b[_]) : x(R, b[b.indexOf(R) + 1]).replace("@media", "@media not all and"); + } + return { + keys: b, + values: y, + up: S, + down: T, + between: x, + only: M, + not: A, + unit: s, + ...m + }; +} +const PR = { + borderRadius: 4 +}; +function OS(o = 8, u = Mp({ + spacing: o +})) { + if (o.mui) + return o; + const s = (...d) => (process.env.NODE_ENV !== "production" && (d.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${d.length}`)), (d.length === 0 ? [1] : d).map((y) => { + const b = u(y); + return typeof b == "number" ? `${b}px` : b; + }).join(" ")); + return s.mui = !0, s; +} +function QR(o, u) { + const s = this; + if (s.vars) { + if (!s.colorSchemes?.[o] || typeof s.getColorSchemeSelector != "function") + return {}; + let d = s.getColorSchemeSelector(o); + return d === "&" ? u : ((d.includes("data-") || d.includes(".")) && (d = `*:where(${d.replace(/\s*&$/, "")}) &`), { + [d]: u + }); + } + return s.palette.mode === o ? u : {}; +} +function Bp(o = {}, ...u) { + const { + breakpoints: s = {}, + palette: d = {}, + spacing: m, + shape: y = {}, + ...b + } = o, S = XR(s), T = OS(m); + let x = f3({ + breakpoints: S, + direction: "ltr", + components: {}, + // Inject component definitions. + palette: { + mode: "light", + ...d + }, + spacing: T, + shape: { + ...PR, + ...y + } + }, b); + return x = eO(x), x.applyStyles = QR, x = u.reduce((M, A) => f3(M, A), x), x.unstable_sxConfig = { + ...r7, + ...b?.unstable_sxConfig + }, x.unstable_sx = function(A) { + return jo({ + sx: A, + theme: this + }); + }, x; +} +function IR(o) { + return Object.keys(o).length === 0; +} +function MC(o = null) { + const u = V.useContext(c7); + return !u || IR(u) ? o : u; +} +const KR = Bp(); +function Hp(o = KR) { + return MC(o); +} +function Dm(o) { + const u = Lo(o); + return o !== u && u.styles ? (u.styles.match(/^@layer\s+[^{]*$/) || (u.styles = `@layer global{${u.styles}}`), u) : o; +} +function wC({ + styles: o, + themeId: u, + defaultTheme: s = {} +}) { + const d = Hp(s), m = u && d[u] || d; + let y = typeof o == "function" ? o(m) : o; + return m.modularCssLayers && (Array.isArray(y) ? y = y.map((b) => Dm(typeof b == "function" ? b(m) : b)) : y = Dm(y)), /* @__PURE__ */ Y.jsx(AC, { + styles: y + }); +} +process.env.NODE_ENV !== "production" && (wC.propTypes = { + // ┌────────────────────────────── Warning ──────────────────────────────┐ + // │ These PropTypes are generated from the TypeScript type definitions. │ + // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ + // └─────────────────────────────────────────────────────────────────────┘ + /** + * @ignore + */ + defaultTheme: h.object, + /** + * @ignore + */ + styles: h.oneOfType([h.array, h.func, h.number, h.object, h.string, h.bool]), + /** + * @ignore + */ + themeId: h.string +}); +const Pv = (o) => o, JR = () => { + let o = Pv; + return { + configure(u) { + o = u; + }, + generate(u) { + return o(u); + }, + reset() { + o = Pv; + } + }; +}, RS = JR(); +function AS(o) { + var u, s, d = ""; + if (typeof o == "string" || typeof o == "number") d += o; + else if (typeof o == "object") if (Array.isArray(o)) { + var m = o.length; + for (u = 0; u < m; u++) o[u] && (s = AS(o[u])) && (d && (d += " "), d += s); + } else for (s in o) o[s] && (d && (d += " "), d += s); + return d; +} +function Ce() { + for (var o, u, s = 0, d = "", m = arguments.length; s < m; s++) (o = arguments[s]) && (u = AS(o)) && (d && (d += " "), d += u); + return d; +} +function FR(o = {}) { + const { + themeId: u, + defaultTheme: s, + defaultClassName: d = "MuiBox-root", + generateClassName: m + } = o, y = xS("div", { + shouldForwardProp: (S) => S !== "theme" && S !== "sx" && S !== "as" + })(jo); + return /* @__PURE__ */ V.forwardRef(function(T, x) { + const M = Hp(s), { + className: A, + component: R = "div", + ..._ + } = gC(T); + return /* @__PURE__ */ Y.jsx(y, { + as: R, + ref: x, + className: Ce(A, m ? m(d) : d), + theme: u && M[u] || M, + ..._ + }); + }); +} +const WR = { + 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 j0(o, u, s = "Mui") { + const d = WR[u]; + return d ? `${s}-${d}` : `${RS.generate(o)}-${u}`; +} +function Z0(o, u, s = "Mui") { + const d = {}; + return u.forEach((m) => { + d[m] = j0(o, m, s); + }), d; +} +function MS(o, u = "") { + return o.displayName || o.name || u; +} +function Qv(o, u, s) { + const d = MS(u); + return o.displayName || (d !== "" ? `${s}(${d})` : s); +} +function eA(o) { + if (o != null) { + if (typeof o == "string") + return o; + if (typeof o == "function") + return MS(o, "Component"); + if (typeof o == "object") + switch (o.$$typeof) { + case g5.ForwardRef: + return Qv(o, o.render, "ForwardRef"); + case g5.Memo: + return Qv(o, o.type, "memo"); + default: + return; + } + } +} +function wS(o) { + const { + variants: u, + ...s + } = o, d = { + variants: u, + style: Lo(s), + isProcessed: !0 + }; + return d.style === s || u && u.forEach((m) => { + typeof m.style != "function" && (m.style = Lo(m.style)); + }), d; +} +const tA = Bp(); +function zm(o) { + return o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as"; +} +function zi(o, u) { + return u && o && typeof o == "object" && o.styles && !o.styles.startsWith("@layer") && (o.styles = `@layer ${u}{${String(o.styles)}}`), o; +} +function nA(o) { + return o ? (u, s) => s[o] : null; +} +function aA(o, u, s) { + o.theme = rA(o.theme) ? s : o.theme[u] || o.theme; +} +function ip(o, u, s) { + const d = typeof u == "function" ? u(o) : u; + if (Array.isArray(d)) + return d.flatMap((m) => ip(o, m, s)); + if (Array.isArray(d?.variants)) { + let m; + if (d.isProcessed) + m = s ? zi(d.style, s) : d.style; + else { + const { + variants: y, + ...b + } = d; + m = s ? zi(Lo(b), s) : b; + } + return _S(o, d.variants, [m], s); + } + return d?.isProcessed ? s ? zi(Lo(d.style), s) : d.style : s ? zi(Lo(d), s) : d; +} +function _S(o, u, s = [], d = void 0) { + let m; + e: for (let y = 0; y < u.length; y += 1) { + const b = u[y]; + if (typeof b.props == "function") { + if (m ??= { + ...o, + ...o.ownerState, + ownerState: o.ownerState + }, !b.props(m)) + continue; + } else + for (const S in b.props) + if (o[S] !== b.props[S] && o.ownerState?.[S] !== b.props[S]) + continue e; + typeof b.style == "function" ? (m ??= { + ...o, + ...o.ownerState, + ownerState: o.ownerState + }, s.push(d ? zi(Lo(b.style(m)), d) : b.style(m))) : s.push(d ? zi(Lo(b.style), d) : b.style); + } + return s; +} +function DS(o = {}) { + const { + themeId: u, + defaultTheme: s = tA, + rootShouldForwardProp: d = zm, + slotShouldForwardProp: m = zm + } = o; + function y(S) { + aA(S, u, s); + } + return (S, T = {}) => { + ZR(S, (K) => K.filter((a2) => a2 !== jo)); + const { + name: x, + slot: M, + skipVariantsResolver: A, + skipSx: R, + // TODO v6: remove `lowercaseFirstLetter()` in the next major release + // For more details: https://github.com/mui/material-ui/pull/37908 + overridesResolver: _ = nA(zS(M)), + ...B + } = T, z = x && x.startsWith("Mui") || M ? "components" : "custom", q = A !== void 0 ? A : ( + // TODO v6: remove `Root` in the next major release + // For more details: https://github.com/mui/material-ui/pull/37908 + M && M !== "Root" && M !== "root" || !1 + ), Z = R || !1; + let F = zm; + M === "Root" || M === "root" ? F = d : M ? F = m : iA(S) && (F = void 0); + const G = xS(S, { + shouldForwardProp: F, + label: oA(x, M), + ...B + }), k = (K) => { + if (K.__emotion_real === K) + return K; + if (typeof K == "function") + return function(u2) { + return ip(u2, K, u2.theme.modularCssLayers ? z : void 0); + }; + if (Na(K)) { + const a2 = wS(K); + return function(d2) { + return a2.variants ? ip(d2, a2, d2.theme.modularCssLayers ? z : void 0) : d2.theme.modularCssLayers ? zi(a2.style, z) : a2.style; + }; + } + return K; + }, $ = (...K) => { + const a2 = [], u2 = K.map(k), d2 = []; + if (a2.push(y), x && _ && d2.push(function(o2) { + const R2 = o2.theme.components?.[x]?.styleOverrides; + if (!R2) + return null; + const H = {}; + for (const e2 in R2) + H[e2] = ip(o2, R2[e2], o2.theme.modularCssLayers ? "theme" : void 0); + return _(o2, H); + }), x && !q && d2.push(function(o2) { + const R2 = o2.theme?.components?.[x]?.variants; + return R2 ? _S(o2, R2, [], o2.theme.modularCssLayers ? "theme" : void 0) : null; + }), Z || d2.push(jo), Array.isArray(u2[0])) { + const N = u2.shift(), o2 = new Array(a2.length).fill(""), g2 = new Array(d2.length).fill(""); + let R2; + R2 = [...o2, ...N, ...g2], R2.raw = [...o2, ...N.raw, ...g2], a2.unshift(R2); + } + const r2 = [...a2, ...u2, ...d2], S2 = G(...r2); + return S.muiName && (S2.muiName = S.muiName), process.env.NODE_ENV !== "production" && (S2.displayName = lA(x, M, S)), S2; + }; + return G.withConfig && ($.withConfig = G.withConfig), $; + }; +} +function lA(o, u, s) { + return o ? `${o}${I2(u || "")}` : `Styled(${eA(s)})`; +} +function oA(o, u) { + let s; + return process.env.NODE_ENV !== "production" && o && (s = `${o}-${zS(u || "Root")}`), s; +} +function rA(o) { + for (const u in o) + return !1; + return !0; +} +function iA(o) { + return typeof o == "string" && // 96 is one less than the char code + // for "a" so this is checking that + // it's a lowercase character + o.charCodeAt(0) > 96; +} +function zS(o) { + return o && o.charAt(0).toLowerCase() + o.slice(1); +} +const uA = DS(); +function J9(o, u, s = !1) { + const d = { + ...u + }; + for (const m in o) + if (Object.prototype.hasOwnProperty.call(o, m)) { + const y = m; + if (y === "components" || y === "slots") + d[y] = { + ...o[y], + ...d[y] + }; + else if (y === "componentsProps" || y === "slotProps") { + const b = o[y], S = u[y]; + if (!S) + d[y] = b || {}; + else if (!b) + d[y] = S; + else { + d[y] = { + ...S + }; + for (const T in b) + if (Object.prototype.hasOwnProperty.call(b, T)) { + const x = T; + d[y][x] = J9(b[x], S[x], s); + } + } + } else y === "className" && s && u.className ? d.className = Ce(o?.className, u?.className) : y === "style" && s && u.style ? d.style = { + ...o?.style, + ...u?.style + } : d[y] === void 0 && (d[y] = o[y]); + } + return d; +} +function cA(o) { + const { + theme: u, + name: s, + props: d + } = o; + return !u || !u.components || !u.components[s] || !u.components[s].defaultProps ? d : J9(u.components[s].defaultProps, d); +} +function sA({ + props: o, + name: u, + defaultTheme: s, + themeId: d +}) { + let m = Hp(s); + return d && (m = m[d] || m), cA({ + theme: m, + name: u, + props: o + }); +} +const $a = typeof window < "u" ? V.useLayoutEffect : V.useEffect; +function fA(o, u = Number.MIN_SAFE_INTEGER, s = Number.MAX_SAFE_INTEGER) { + return Math.max(u, Math.min(o, s)); +} +function _C(o, u = 0, s = 1) { + return process.env.NODE_ENV !== "production" && (o < u || o > s) && console.error(`MUI: The value provided ${o} is out of range [${u}, ${s}].`), fA(o, u, s); +} +function dA(o) { + o = o.slice(1); + const u = new RegExp(`.{1,${o.length >= 6 ? 2 : 1}}`, "g"); + let s = o.match(u); + return s && s[0].length === 1 && (s = s.map((d) => d + d)), process.env.NODE_ENV !== "production" && o.length !== o.trim().length && console.error(`MUI: The color: "${o}" is invalid. Make sure the color input doesn't contain leading/trailing space.`), s ? `rgb${s.length === 4 ? "a" : ""}(${s.map((d, m) => m < 3 ? parseInt(d, 16) : Math.round(parseInt(d, 16) / 255 * 1e3) / 1e3).join(", ")})` : ""; +} +function Uo(o) { + if (o.type) + return o; + if (o.charAt(0) === "#") + return Uo(dA(o)); + const u = o.indexOf("("), s = o.substring(0, u); + if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(s)) + throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${o}\` color. +The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : ji(9, o)); + let d = o.substring(u + 1, o.length - 1), m; + if (s === "color") { + if (d = d.split(" "), m = d.shift(), d.length === 4 && d[3].charAt(0) === "/" && (d[3] = d[3].slice(1)), !["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].includes(m)) + throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${m}\` color space. +The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : ji(10, m)); + } else + d = d.split(","); + return d = d.map((y) => parseFloat(y)), { + type: s, + values: d, + colorSpace: m + }; +} +const pA = (o) => { + const u = Uo(o); + return u.values.slice(0, 3).map((s, d) => u.type.includes("hsl") && d !== 0 ? `${s}%` : s).join(" "); +}, H9 = (o, u) => { + try { + return pA(o); + } catch { + return u && process.env.NODE_ENV !== "production" && console.warn(u), o; + } +}; +function $p(o) { + const { + type: u, + colorSpace: s + } = o; + let { + values: d + } = o; + return u.includes("rgb") ? d = d.map((m, y) => y < 3 ? parseInt(m, 10) : m) : u.includes("hsl") && (d[1] = `${d[1]}%`, d[2] = `${d[2]}%`), u.includes("color") ? d = `${s} ${d.join(" ")}` : d = `${d.join(", ")}`, `${u}(${d})`; +} +function LS(o) { + o = Uo(o); + const { + values: u + } = o, s = u[0], d = u[1] / 100, m = u[2] / 100, y = d * Math.min(m, 1 - m), b = (x, M = (x + s / 30) % 12) => m - y * Math.max(Math.min(M - 3, 9 - M, 1), -1); + let S = "rgb"; + const T = [Math.round(b(0) * 255), Math.round(b(8) * 255), Math.round(b(4) * 255)]; + return o.type === "hsla" && (S += "a", T.push(u[3])), $p({ + type: S, + values: T + }); +} +function Fm(o) { + o = Uo(o); + let u = o.type === "hsl" || o.type === "hsla" ? Uo(LS(o)).values : o.values; + return u = u.map((s) => (o.type !== "color" && (s /= 255), s <= 0.03928 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4)), Number((0.2126 * u[0] + 0.7152 * u[1] + 0.0722 * u[2]).toFixed(3)); +} +function Iv(o, u) { + const s = Fm(o), d = Fm(u); + return (Math.max(s, d) + 0.05) / (Math.min(s, d) + 0.05); +} +function b5(o, u) { + return o = Uo(o), u = _C(u), (o.type === "rgb" || o.type === "hsl") && (o.type += "a"), o.type === "color" ? o.values[3] = `/${u}` : o.values[3] = u, $p(o); +} +function Ai(o, u, s) { + try { + return b5(o, u); + } catch { + return s && process.env.NODE_ENV !== "production" && console.warn(s), o; + } +} +function Vp(o, u) { + if (o = Uo(o), u = _C(u), o.type.includes("hsl")) + o.values[2] *= 1 - u; + else if (o.type.includes("rgb") || o.type.includes("color")) + for (let s = 0; s < 3; s += 1) + o.values[s] *= 1 - u; + return $p(o); +} +function v0(o, u, s) { + try { + return Vp(o, u); + } catch { + return s && process.env.NODE_ENV !== "production" && console.warn(s), o; + } +} +function kp(o, u) { + if (o = Uo(o), u = _C(u), o.type.includes("hsl")) + o.values[2] += (100 - o.values[2]) * u; + else if (o.type.includes("rgb")) + for (let s = 0; s < 3; s += 1) + o.values[s] += (255 - o.values[s]) * u; + else if (o.type.includes("color")) + for (let s = 0; s < 3; s += 1) + o.values[s] += (1 - o.values[s]) * u; + return $p(o); +} +function b0(o, u, s) { + try { + return kp(o, u); + } catch { + return s && process.env.NODE_ENV !== "production" && console.warn(s), o; + } +} +function hA(o, u = 0.15) { + return Fm(o) > 0.5 ? Vp(o, u) : kp(o, u); +} +function Gd(o, u, s) { + try { + return hA(o, u); + } catch { + return o; + } +} +const mA = "exact-prop: ​"; +function Yp(o) { + return process.env.NODE_ENV === "production" ? o : { + ...o, + [mA]: (u) => { + const s = Object.keys(u).filter((d) => !o.hasOwnProperty(d)); + return s.length > 0 ? new Error(`The following props are not supported: ${s.map((d) => `\`${d}\``).join(", ")}. Please remove them.`) : null; + } + }; +} +const DC = /* @__PURE__ */ V.createContext(null); +process.env.NODE_ENV !== "production" && (DC.displayName = "ThemeContext"); +function zC() { + const o = V.useContext(DC); + return process.env.NODE_ENV !== "production" && V.useDebugValue(o), o; +} +const CA = typeof Symbol == "function" && Symbol.for, yA = CA ? /* @__PURE__ */ Symbol.for("mui.nested") : "__THEME_NESTED__"; +function gA(o, u) { + if (typeof u == "function") { + const s = u(o); + return process.env.NODE_ENV !== "production" && (s || console.error(["MUI: You should return an object from your theme function, i.e.", " ({})} />"].join(` +`))), s; + } + return { + ...o, + ...u + }; +} +function mp(o) { + const { + children: u, + theme: s + } = o, d = zC(); + process.env.NODE_ENV !== "production" && d === null && typeof s == "function" && console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", " outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join(` +`)); + const m = V.useMemo(() => { + const y = d === null ? { + ...s + } : gA(d, s); + return y != null && (y[yA] = d !== null), y; + }, [s, d]); + return /* @__PURE__ */ Y.jsx(DC.Provider, { + value: m, + children: u + }); +} +process.env.NODE_ENV !== "production" && (mp.propTypes = { + /** + * Your component tree. + */ + children: h.node, + /** + * A theme object. You can provide a function to extend the outer theme. + */ + theme: h.oneOfType([h.object, h.func]).isRequired +}); +process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && (mp.propTypes = Yp(mp.propTypes)); +const NS = /* @__PURE__ */ V.createContext(); +function jS({ + value: o, + ...u +}) { + return /* @__PURE__ */ Y.jsx(NS.Provider, { + value: o ?? !0, + ...u + }); +} +process.env.NODE_ENV !== "production" && (jS.propTypes = { + children: h.node, + value: h.bool +}); +const LC = () => V.useContext(NS) ?? !1, US = /* @__PURE__ */ V.createContext(void 0); +function BS({ + value: o, + children: u +}) { + return /* @__PURE__ */ Y.jsx(US.Provider, { + value: o, + children: u + }); +} +process.env.NODE_ENV !== "production" && (BS.propTypes = { + // ┌────────────────────────────── Warning ──────────────────────────────┐ + // │ These PropTypes are generated from the TypeScript type definitions. │ + // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ + // └─────────────────────────────────────────────────────────────────────┘ + /** + * @ignore + */ + children: h.node, + /** + * @ignore + */ + value: h.object +}); +function vA(o) { + const { + theme: u, + name: s, + props: d + } = o; + if (!u || !u.components || !u.components[s]) + return d; + const m = u.components[s]; + return m.defaultProps ? J9(m.defaultProps, d, u.components.mergeClassNameAndStyle) : !m.styleOverrides && !m.variants ? J9(m, d, u.components.mergeClassNameAndStyle) : d; +} +function bA({ + props: o, + name: u +}) { + const s = V.useContext(US); + return vA({ + props: o, + name: u, + theme: { + components: s + } + }); +} +let Kv = 0; +function SA(o) { + const [u, s] = V.useState(o), d = o || u; + return V.useEffect(() => { + u == null && (Kv += 1, s(`mui-${Kv}`)); + }, [u]), d; +} +const EA = { + ...Xm +}, Jv = EA.useId; +function qp(o) { + if (Jv !== void 0) { + const u = Jv(); + return o ?? u; + } + return SA(o); +} +function TA(o) { + const u = MC(), s = qp() || "", { + modularCssLayers: d + } = o; + let m = "mui.global, mui.components, mui.theme, mui.custom, mui.sx"; + return !d || u !== null ? m = "" : typeof d == "string" ? m = d.replace(/mui(?!\.)/g, m) : m = `@layer ${m};`, $a(() => { + const y = document.querySelector("head"); + if (!y) + return; + const b = y.firstChild; + if (m) { + if (b && b.hasAttribute?.("data-mui-layer-order") && b.getAttribute("data-mui-layer-order") === s) + return; + const S = document.createElement("style"); + S.setAttribute("data-mui-layer-order", s), S.textContent = m, y.prepend(S); + } else + y.querySelector(`style[data-mui-layer-order="${s}"]`)?.remove(); + }, [m, s]), m ? /* @__PURE__ */ Y.jsx(wC, { + styles: m + }) : null; +} +const Fv = {}; +function Wv(o, u, s, d = !1) { + return V.useMemo(() => { + const m = o && u[o] || u; + if (typeof s == "function") { + const y = s(m), b = o ? { + ...u, + [o]: y + } : y; + return d ? () => b : b; + } + return o ? { + ...u, + [o]: s + } : { + ...u, + ...s + }; + }, [o, u, s, d]); +} +function F9(o) { + const { + children: u, + theme: s, + themeId: d + } = o, m = MC(Fv), y = zC() || Fv; + process.env.NODE_ENV !== "production" && (m === null && typeof s == "function" || d && m && !m[d] && typeof s == "function") && console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", " outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join(` +`)); + const b = Wv(d, m, s), S = Wv(d, y, s, !0), T = (d ? b[d] : b).direction === "rtl", x = TA(b); + return /* @__PURE__ */ Y.jsx(mp, { + theme: S, + children: /* @__PURE__ */ Y.jsx(c7.Provider, { + value: b, + children: /* @__PURE__ */ Y.jsx(jS, { + value: T, + children: /* @__PURE__ */ Y.jsxs(BS, { + value: d ? b[d].components : b.components, + children: [x, u] + }) + }) + }) + }); +} +process.env.NODE_ENV !== "production" && (F9.propTypes = { + // ┌────────────────────────────── Warning ──────────────────────────────┐ + // │ These PropTypes are generated from the TypeScript type definitions. │ + // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ + // └─────────────────────────────────────────────────────────────────────┘ + /** + * Your component tree. + */ + children: h.node, + /** + * A theme object. You can provide a function to extend the outer theme. + */ + theme: h.oneOfType([h.func, h.object]).isRequired, + /** + * The design system's unique id for getting the corresponded theme when there are multiple design systems. + */ + themeId: h.string +}); +process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && (F9.propTypes = Yp(F9.propTypes)); +const eb = { + theme: void 0 +}; +function xA(o) { + let u, s; + return function(m) { + let y = u; + return (y === void 0 || m.theme !== s) && (eb.theme = m.theme, y = wS(o(eb)), u = y, s = m.theme), y; + }; +} +const NC = "mode", jC = "color-scheme", OA = "data-color-scheme"; +function RA(o) { + const { + defaultMode: u = "system", + defaultLightColorScheme: s = "light", + defaultDarkColorScheme: d = "dark", + modeStorageKey: m = NC, + colorSchemeStorageKey: y = jC, + attribute: b = OA, + colorSchemeNode: S = "document.documentElement", + nonce: T + } = o || {}; + let x = "", M = b; + if (b === "class" && (M = ".%s"), b === "data" && (M = "[data-%s]"), M.startsWith(".")) { + const R = M.substring(1); + x += `${S}.classList.remove('${R}'.replace('%s', light), '${R}'.replace('%s', dark)); + ${S}.classList.add('${R}'.replace('%s', colorScheme));`; + } + const A = M.match(/\[([^[\]]+)\]/); + if (A) { + const [R, _] = A[1].split("="); + _ || (x += `${S}.removeAttribute('${R}'.replace('%s', light)); + ${S}.removeAttribute('${R}'.replace('%s', dark));`), x += ` + ${S}.setAttribute('${R}'.replace('%s', colorScheme), ${_ ? `${_}.replace('%s', colorScheme)` : '""'});`; + } else M !== ".%s" && (x += `${S}.setAttribute('${M}', colorScheme);`); + return /* @__PURE__ */ Y.jsx("script", { + suppressHydrationWarning: !0, + nonce: typeof window > "u" ? T : "", + dangerouslySetInnerHTML: { + __html: `(function() { +try { + let colorScheme = ''; + const mode = localStorage.getItem('${m}') || '${u}'; + const dark = localStorage.getItem('${y}-dark') || '${d}'; + const light = localStorage.getItem('${y}-light') || '${s}'; + if (mode === 'system') { + // handle system mode + const mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = dark + } else { + colorScheme = light + } + } + if (mode === 'light') { + colorScheme = light; + } + if (mode === 'dark') { + colorScheme = dark; + } + if (colorScheme) { + ${x} + } +} catch(e){}})();` + } + }, "mui-color-scheme-init"); +} +function AA() { +} +const MA = ({ + key: o, + storageWindow: u +}) => (!u && typeof window < "u" && (u = window), { + get(s) { + if (typeof window > "u") + return; + if (!u) + return s; + let d; + try { + d = u.localStorage.getItem(o); + } catch { + } + return d || s; + }, + set: (s) => { + if (u) + try { + u.localStorage.setItem(o, s); + } catch { + } + }, + subscribe: (s) => { + if (!u) + return AA; + const d = (m) => { + const y = m.newValue; + m.key === o && s(y); + }; + return u.addEventListener("storage", d), () => { + u.removeEventListener("storage", d); + }; + } +}); +function Lm() { +} +function tb(o) { + if (typeof window < "u" && typeof window.matchMedia == "function" && o === "system") + return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; +} +function HS(o, u) { + if (o.mode === "light" || o.mode === "system" && o.systemMode === "light") + return u("light"); + if (o.mode === "dark" || o.mode === "system" && o.systemMode === "dark") + return u("dark"); +} +function wA(o) { + return HS(o, (u) => { + if (u === "light") + return o.lightColorScheme; + if (u === "dark") + return o.darkColorScheme; + }); +} +function _A(o) { + const { + defaultMode: u = "light", + defaultLightColorScheme: s, + defaultDarkColorScheme: d, + supportedColorSchemes: m = [], + modeStorageKey: y = NC, + colorSchemeStorageKey: b = jC, + storageWindow: S = typeof window > "u" ? void 0 : window, + storageManager: T = MA, + noSsr: x = !1 + } = o, M = m.join(","), A = m.length > 1, R = V.useMemo(() => T?.({ + key: y, + storageWindow: S + }), [T, y, S]), _ = V.useMemo(() => T?.({ + key: `${b}-light`, + storageWindow: S + }), [T, b, S]), B = V.useMemo(() => T?.({ + key: `${b}-dark`, + storageWindow: S + }), [T, b, S]), [z, q] = V.useState(() => { + const u2 = R?.get(u) || u, d2 = _?.get(s) || s, r2 = B?.get(d) || d; + return { + mode: u2, + systemMode: tb(u2), + lightColorScheme: d2, + darkColorScheme: r2 + }; + }), [Z, F] = V.useState(x || !A); + V.useEffect(() => { + F(!0); + }, []); + const G = wA(z), k = V.useCallback((u2) => { + q((d2) => { + if (u2 === d2.mode) + return d2; + const r2 = u2 ?? u; + return R?.set(r2), { + ...d2, + mode: r2, + systemMode: tb(r2) + }; + }); + }, [R, u]), $ = V.useCallback((u2) => { + u2 ? typeof u2 == "string" ? u2 && !M.includes(u2) ? console.error(`\`${u2}\` does not exist in \`theme.colorSchemes\`.`) : q((d2) => { + const r2 = { + ...d2 + }; + return HS(d2, (S2) => { + S2 === "light" && (_?.set(u2), r2.lightColorScheme = u2), S2 === "dark" && (B?.set(u2), r2.darkColorScheme = u2); + }), r2; + }) : q((d2) => { + const r2 = { + ...d2 + }, S2 = u2.light === null ? s : u2.light, N = u2.dark === null ? d : u2.dark; + return S2 && (M.includes(S2) ? (r2.lightColorScheme = S2, _?.set(S2)) : console.error(`\`${S2}\` does not exist in \`theme.colorSchemes\`.`)), N && (M.includes(N) ? (r2.darkColorScheme = N, B?.set(N)) : console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`)), r2; + }) : q((d2) => (_?.set(s), B?.set(d), { + ...d2, + lightColorScheme: s, + darkColorScheme: d + })); + }, [M, _, B, s, d]), K = V.useCallback((u2) => { + z.mode === "system" && q((d2) => { + const r2 = u2?.matches ? "dark" : "light"; + return d2.systemMode === r2 ? d2 : { + ...d2, + systemMode: r2 + }; + }); + }, [z.mode]), a2 = V.useRef(K); + return a2.current = K, V.useEffect(() => { + if (typeof window.matchMedia != "function" || !A) + return; + const u2 = (...r2) => a2.current(...r2), d2 = window.matchMedia("(prefers-color-scheme: dark)"); + return d2.addListener(u2), u2(d2), () => { + d2.removeListener(u2); + }; + }, [A]), V.useEffect(() => { + if (A) { + const u2 = R?.subscribe((S2) => { + (!S2 || ["light", "dark", "system"].includes(S2)) && k(S2 || u); + }) || Lm, d2 = _?.subscribe((S2) => { + (!S2 || M.match(S2)) && $({ + light: S2 + }); + }) || Lm, r2 = B?.subscribe((S2) => { + (!S2 || M.match(S2)) && $({ + dark: S2 + }); + }) || Lm; + return () => { + u2(), d2(), r2(); + }; + } + }, [$, k, M, u, S, A, R, _, B]), { + ...z, + mode: Z ? z.mode : void 0, + systemMode: Z ? z.systemMode : void 0, + colorScheme: Z ? G : void 0, + setMode: k, + setColorScheme: $ + }; +} +const DA = "*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}"; +function zA(o) { + const { + themeId: u, + /** + * This `theme` object needs to follow a certain structure to + * be used correctly by the finel `CssVarsProvider`. It should have a + * `colorSchemes` key with the light and dark (and any other) palette. + * It should also ideally have a vars object created using `prepareCssVars`. + */ + theme: s = {}, + modeStorageKey: d = NC, + colorSchemeStorageKey: m = jC, + disableTransitionOnChange: y = !1, + defaultColorScheme: b, + resolveTheme: S + } = o, T = { + allColorSchemes: [], + colorScheme: void 0, + darkColorScheme: void 0, + lightColorScheme: void 0, + mode: void 0, + setColorScheme: () => { + }, + setMode: () => { + }, + systemMode: void 0 + }, x = /* @__PURE__ */ V.createContext(void 0); + process.env.NODE_ENV !== "production" && (x.displayName = "ColorSchemeContext"); + const M = () => V.useContext(x) || T, A = {}, R = {}; + function _(Z) { + const { + children: F, + theme: G, + modeStorageKey: k = d, + colorSchemeStorageKey: $ = m, + disableTransitionOnChange: K = y, + storageManager: a2, + storageWindow: u2 = typeof window > "u" ? void 0 : window, + documentNode: d2 = typeof document > "u" ? void 0 : document, + colorSchemeNode: r2 = typeof document > "u" ? void 0 : document.documentElement, + disableNestedContext: S2 = !1, + disableStyleSheetGeneration: N = !1, + defaultMode: o2 = "system", + forceThemeRerender: g2 = !1, + noSsr: R2 + } = Z, H = V.useRef(!1), e2 = zC(), v2 = V.useContext(x), E2 = !!v2 && !S2, i2 = V.useMemo(() => G || (typeof s == "function" ? s() : s), [G]), D = i2[u], X = D || i2, { + colorSchemes: p2 = A, + components: s2 = R, + cssVarPrefix: L2 + } = X, D2 = Object.keys(p2).filter((E0) => !!p2[E0]).join(","), A2 = V.useMemo(() => D2.split(","), [D2]), B2 = typeof b == "string" ? b : b.light, k2 = typeof b == "string" ? b : b.dark, $2 = p2[B2] && p2[k2] ? o2 : p2[X.defaultColorScheme]?.palette?.mode || X.palette?.mode, { + mode: M2, + setMode: h2, + systemMode: ge, + lightColorScheme: he, + darkColorScheme: je, + colorScheme: me, + setColorScheme: Ue + } = _A({ + supportedColorSchemes: A2, + defaultLightColorScheme: B2, + defaultDarkColorScheme: k2, + modeStorageKey: k, + colorSchemeStorageKey: $, + defaultMode: $2, + storageManager: a2, + storageWindow: u2, + noSsr: R2 + }); + let y0 = M2, Qe = me; + E2 && (y0 = v2.mode, Qe = v2.colorScheme), process.env.NODE_ENV !== "production" && g2 && !X.vars && console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.", "Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution."].join(` +`)); + let Y2 = Qe || X.defaultColorScheme; + X.vars && !g2 && (Y2 = X.defaultColorScheme); + const Be = V.useMemo(() => { + const E0 = X.generateThemeVars?.() || X.vars, He = { + ...X, + components: s2, + colorSchemes: p2, + cssVarPrefix: L2, + vars: E0 + }; + if (typeof He.generateSpacing == "function" && (He.spacing = He.generateSpacing()), Y2) { + const l0 = p2[Y2]; + l0 && typeof l0 == "object" && Object.keys(l0).forEach((at) => { + l0[at] && typeof l0[at] == "object" ? He[at] = { + ...He[at], + ...l0[at] + } : He[at] = l0[at]; + }); + } + return S ? S(He) : He; + }, [X, Y2, s2, p2, L2]), P2 = X.colorSchemeSelector; + $a(() => { + if (Qe && r2 && P2 && P2 !== "media") { + const E0 = P2; + let He = P2; + if (E0 === "class" && (He = ".%s"), E0 === "data" && (He = "[data-%s]"), E0?.startsWith("data-") && !E0.includes("%s") && (He = `[${E0}="%s"]`), He.startsWith(".")) + r2.classList.remove(...A2.map((l0) => He.substring(1).replace("%s", l0))), r2.classList.add(He.substring(1).replace("%s", Qe)); + else { + const l0 = He.replace("%s", Qe).match(/\[([^\]]+)\]/); + if (l0) { + const [at, O4] = l0[1].split("="); + O4 || A2.forEach((ft) => { + r2.removeAttribute(at.replace(Qe, ft)); + }), r2.setAttribute(at, O4 ? O4.replace(/"|'/g, "") : ""); + } else + r2.setAttribute(He, Qe); + } + } + }, [Qe, P2, r2, A2]), V.useEffect(() => { + let E0; + if (K && H.current && d2) { + const He = d2.createElement("style"); + He.appendChild(d2.createTextNode(DA)), d2.head.appendChild(He), window.getComputedStyle(d2.body), E0 = setTimeout(() => { + d2.head.removeChild(He); + }, 1); + } + return () => { + clearTimeout(E0); + }; + }, [Qe, K, d2]), V.useEffect(() => (H.current = !0, () => { + H.current = !1; + }), []); + const o4 = V.useMemo(() => ({ + allColorSchemes: A2, + colorScheme: Qe, + darkColorScheme: je, + lightColorScheme: he, + mode: y0, + setColorScheme: Ue, + setMode: process.env.NODE_ENV === "production" ? h2 : (E0) => { + Be.colorSchemeSelector === "media" && console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).", "To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.", "To learn more, visit https://v7.mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually"].join(` +`)), h2(E0); + }, + systemMode: ge + }), [A2, Qe, je, he, y0, Ue, h2, ge, Be.colorSchemeSelector]); + let a0 = !0; + (N || X.cssVariables === !1 || E2 && e2?.cssVarPrefix === L2) && (a0 = !1); + const p3 = /* @__PURE__ */ Y.jsxs(V.Fragment, { + children: [/* @__PURE__ */ Y.jsx(F9, { + themeId: D ? u : void 0, + theme: Be, + children: F + }), a0 && /* @__PURE__ */ Y.jsx(AC, { + styles: Be.generateStyleSheets?.() || [] + })] + }); + return E2 ? p3 : /* @__PURE__ */ Y.jsx(x.Provider, { + value: o4, + children: p3 + }); + } + process.env.NODE_ENV !== "production" && (_.propTypes = { + /** + * The component tree. + */ + children: h.node, + /** + * The node used to attach the color-scheme attribute + */ + colorSchemeNode: h.any, + /** + * localStorage key used to store `colorScheme` + */ + colorSchemeStorageKey: h.string, + /** + * The default mode when the storage is empty, + * require the theme to have `colorSchemes` with light and dark. + */ + defaultMode: h.string, + /** + * If `true`, the provider creates its own context and generate stylesheet as if it is a root `CssVarsProvider`. + */ + disableNestedContext: h.bool, + /** + * If `true`, the style sheet won't be generated. + * + * This is useful for controlling nested CssVarsProvider behavior. + */ + disableStyleSheetGeneration: h.bool, + /** + * Disable CSS transitions when switching between modes or color schemes. + */ + disableTransitionOnChange: h.bool, + /** + * The document to attach the attribute to. + */ + documentNode: h.any, + /** + * If `true`, theme values are recalculated when the mode changes. + */ + forceThemeRerender: h.bool, + /** + * The key in the local storage used to store current color scheme. + */ + modeStorageKey: h.string, + /** + * If `true`, the mode will be the same value as the storage without an extra rerendering after the hydration. + * You should use this option in conjunction with `InitColorSchemeScript` component. + */ + noSsr: h.bool, + /** + * The storage manager to be used for storing the mode and color scheme + * @default using `window.localStorage` + */ + storageManager: h.func, + /** + * The window that attaches the 'storage' event listener. + * @default window + */ + storageWindow: h.any, + /** + * The calculated theme object that will be passed through context. + */ + theme: h.object + }); + const B = typeof b == "string" ? b : b.light, z = typeof b == "string" ? b : b.dark; + return { + CssVarsProvider: _, + useColorScheme: M, + getInitColorSchemeScript: (Z) => RA({ + colorSchemeStorageKey: m, + defaultLightColorScheme: B, + defaultDarkColorScheme: z, + modeStorageKey: d, + ...Z + }) + }; +} +function LA(o = "") { + function u(...d) { + if (!d.length) + return ""; + const m = d[0]; + return typeof m == "string" && !m.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/) ? `, var(--${o ? `${o}-` : ""}${m}${u(...d.slice(1))})` : `, ${m}`; + } + return (d, ...m) => `var(--${o ? `${o}-` : ""}${d}${u(...m)})`; +} +const nb = (o, u, s, d = []) => { + let m = o; + u.forEach((y, b) => { + b === u.length - 1 ? Array.isArray(m) ? m[Number(y)] = s : m && typeof m == "object" && (m[y] = s) : m && typeof m == "object" && (m[y] || (m[y] = d.includes(y) ? [] : {}), m = m[y]); + }); +}, NA = (o, u, s) => { + function d(m, y = [], b = []) { + Object.entries(m).forEach(([S, T]) => { + (!s || s && !s([...y, S])) && T != null && (typeof T == "object" && Object.keys(T).length > 0 ? d(T, [...y, S], Array.isArray(T) ? [...b, S] : b) : u([...y, S], T, b)); + }); + } + d(o); +}, jA = (o, u) => typeof u == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((d) => o.includes(d)) || o[o.length - 1].toLowerCase().includes("opacity") ? u : `${u}px` : u; +function Nm(o, u) { + const { + prefix: s, + shouldSkipGeneratingVar: d + } = u || {}, m = {}, y = {}, b = {}; + return NA( + o, + (S, T, x) => { + if ((typeof T == "string" || typeof T == "number") && (!d || !d(S, T))) { + const M = `--${s ? `${s}-` : ""}${S.join("-")}`, A = jA(S, T); + Object.assign(m, { + [M]: A + }), nb(y, S, `var(${M})`, x), nb(b, S, `var(${M}, ${A})`, x); + } + }, + (S) => S[0] === "vars" + // skip 'vars/*' paths + ), { + css: m, + vars: y, + varsWithDefaults: b + }; +} +function UA(o, u = {}) { + const { + getSelector: s = Z, + disableCssColorScheme: d, + colorSchemeSelector: m, + enableContrastVars: y + } = u, { + colorSchemes: b = {}, + components: S, + defaultColorScheme: T = "light", + ...x + } = o, { + vars: M, + css: A, + varsWithDefaults: R + } = Nm(x, u); + let _ = R; + const B = {}, { + [T]: z, + ...q + } = b; + if (Object.entries(q || {}).forEach(([k, $]) => { + const { + vars: K, + css: a2, + varsWithDefaults: u2 + } = Nm($, u); + _ = f3(_, u2), B[k] = { + css: a2, + vars: K + }; + }), z) { + const { + css: k, + vars: $, + varsWithDefaults: K + } = Nm(z, u); + _ = f3(_, K), B[T] = { + css: k, + vars: $ + }; + } + function Z(k, $) { + let K = m; + if (m === "class" && (K = ".%s"), m === "data" && (K = "[data-%s]"), m?.startsWith("data-") && !m.includes("%s") && (K = `[${m}="%s"]`), k) { + if (K === "media") + return o.defaultColorScheme === k ? ":root" : { + [`@media (prefers-color-scheme: ${b[k]?.palette?.mode || k})`]: { + ":root": $ + } + }; + if (K) + return o.defaultColorScheme === k ? `:root, ${K.replace("%s", String(k))}` : K.replace("%s", String(k)); + } + return ":root"; + } + return { + vars: _, + generateThemeVars: () => { + let k = { + ...M + }; + return Object.entries(B).forEach(([, { + vars: $ + }]) => { + k = f3(k, $); + }), k; + }, + generateStyleSheets: () => { + const k = [], $ = o.defaultColorScheme || "light"; + function K(d2, r2) { + Object.keys(r2).length && k.push(typeof d2 == "string" ? { + [d2]: { + ...r2 + } + } : d2); + } + K(s(void 0, { + ...A + }), A); + const { + [$]: a2, + ...u2 + } = B; + if (a2) { + const { + css: d2 + } = a2, r2 = b[$]?.palette?.mode, S2 = !d && r2 ? { + colorScheme: r2, + ...d2 + } : { + ...d2 + }; + K(s($, { + ...S2 + }), S2); + } + return Object.entries(u2).forEach(([d2, { + css: r2 + }]) => { + const S2 = b[d2]?.palette?.mode, N = !d && S2 ? { + colorScheme: S2, + ...r2 + } : { + ...r2 + }; + K(s(d2, { + ...N + }), N); + }), y && k.push({ + ":root": { + // use double underscore to indicate that these are private variables + "--__l-threshold": "0.7", + "--__l": "clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)", + "--__a": "clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)" + // 0.87 is the default alpha value for black text. + } + }), k; + } + }; +} +function BA(o) { + return function(s) { + return o === "media" ? (process.env.NODE_ENV !== "production" && s !== "light" && s !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${s}'.`), `@media (prefers-color-scheme: ${s})`) : o ? o.startsWith("data-") && !o.includes("%s") ? `[${o}="${s}"] &` : o === "class" ? `.${s} &` : o === "data" ? `[data-${s}] &` : `${o.replace("%s", s)} &` : "&"; + }; +} +function I0(o, u, s = void 0) { + const d = {}; + for (const m in o) { + const y = o[m]; + let b = "", S = !0; + for (let T = 0; T < y.length; T += 1) { + const x = y[T]; + x && (b += (S === !0 ? "" : " ") + u(x), S = !1, s && s[x] && (b += " " + s[x])); + } + d[m] = b; + } + return d; +} +const HA = Bp(), $A = uA("div", { + name: "MuiStack", + slot: "Root" +}); +function VA(o) { + return sA({ + props: o, + name: "MuiStack", + defaultTheme: HA + }); +} +function kA(o, u) { + const s = V.Children.toArray(o).filter(Boolean); + return s.reduce((d, m, y) => (d.push(m), y < s.length - 1 && d.push(/* @__PURE__ */ V.cloneElement(u, { + key: `separator-${y}` + })), d), []); +} +const YA = (o) => ({ + row: "Left", + "row-reverse": "Right", + column: "Top", + "column-reverse": "Bottom" +})[o], qA = ({ + ownerState: o, + theme: u +}) => { + let s = { + display: "flex", + flexDirection: "column", + ...q8({ + theme: u + }, Mm({ + values: o.direction, + breakpoints: u.breakpoints.values + }), (d) => ({ + flexDirection: d + })) + }; + if (o.spacing) { + const d = Mp(u), m = Object.keys(u.breakpoints.values).reduce((T, x) => ((typeof o.spacing == "object" && o.spacing[x] != null || typeof o.direction == "object" && o.direction[x] != null) && (T[x] = !0), T), {}), y = Mm({ + values: o.direction, + base: m + }), b = Mm({ + values: o.spacing, + base: m + }); + typeof y == "object" && Object.keys(y).forEach((T, x, M) => { + if (!y[T]) { + const R = x > 0 ? y[M[x - 1]] : "column"; + y[T] = R; + } + }), s = f3(s, q8({ + theme: u + }, b, (T, x) => o.useFlexGap ? { + gap: Ui(d, T) + } : { + // The useFlexGap={false} implement relies on each child to give up control of the margin. + // We need to reset the margin to avoid double spacing. + "& > :not(style):not(style)": { + margin: 0 + }, + "& > :not(style) ~ :not(style)": { + [`margin${YA(x ? y[x] : o.direction)}`]: Ui(d, T) + } + })); + } + return s = nO(u.breakpoints, s), s; +}; +function ZA(o = {}) { + const { + // This will allow adding custom styled fn (for example for custom sx style function) + createStyledComponent: u = $A, + useThemeProps: s = VA, + componentName: d = "MuiStack" + } = o, m = () => I0({ + root: ["root"] + }, (T) => j0(d, T), {}), y = u(qA), b = /* @__PURE__ */ V.forwardRef(function(T, x) { + const M = s(T), A = gC(M), { + component: R = "div", + direction: _ = "column", + spacing: B = 0, + divider: z, + children: q, + className: Z, + useFlexGap: F = !1, + ...G + } = A, k = { + direction: _, + spacing: B, + useFlexGap: F + }, $ = m(); + return /* @__PURE__ */ Y.jsx(y, { + as: R, + ownerState: k, + ref: x, + className: Ce($.root, Z), + ...G, + children: z ? kA(q, z) : q + }); + }); + return process.env.NODE_ENV !== "production" && (b.propTypes = { + children: h.node, + direction: h.oneOfType([h.oneOf(["column-reverse", "column", "row-reverse", "row"]), h.arrayOf(h.oneOf(["column-reverse", "column", "row-reverse", "row"])), h.object]), + divider: h.node, + spacing: h.oneOfType([h.arrayOf(h.oneOfType([h.number, h.string])), h.number, h.object, h.string]), + sx: h.oneOfType([h.arrayOf(h.oneOfType([h.func, h.object, h.bool])), h.func, h.object]) + }), b; +} +const W9 = { + black: "#000", + white: "#fff" +}, GA = { + 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" +}, o5 = { + 50: "#f3e5f5", + 200: "#ce93d8", + 300: "#ba68c8", + 400: "#ab47bc", + 500: "#9c27b0", + 700: "#7b1fa2" +}, r5 = { + 300: "#e57373", + 400: "#ef5350", + 500: "#f44336", + 700: "#d32f2f", + 800: "#c62828" +}, w9 = { + 300: "#ffb74d", + 400: "#ffa726", + 500: "#ff9800", + 700: "#f57c00", + 900: "#e65100" +}, i5 = { + 50: "#e3f2fd", + 200: "#90caf9", + 400: "#42a5f5", + 700: "#1976d2", + 800: "#1565c0" +}, u5 = { + 300: "#4fc3f7", + 400: "#29b6f6", + 500: "#03a9f4", + 700: "#0288d1", + 900: "#01579b" +}, c5 = { + 300: "#81c784", + 400: "#66bb6a", + 500: "#4caf50", + 700: "#388e3c", + 800: "#2e7d32", + 900: "#1b5e20" +}; +function $S() { + return { + // The colors used to style the text. + text: { + // The most important text. + primary: "rgba(0, 0, 0, 0.87)", + // Secondary text. + secondary: "rgba(0, 0, 0, 0.6)", + // Disabled text have even lower visual prominence. + disabled: "rgba(0, 0, 0, 0.38)" + }, + // The color used to divide different elements. + divider: "rgba(0, 0, 0, 0.12)", + // The background colors used to style the surfaces. + // Consistency between these values is important. + background: { + paper: W9.white, + default: W9.white + }, + // The colors used to style the action elements. + action: { + // The color of an active action like an icon button. + active: "rgba(0, 0, 0, 0.54)", + // The color of an hovered action. + hover: "rgba(0, 0, 0, 0.04)", + hoverOpacity: 0.04, + // The color of a selected action. + selected: "rgba(0, 0, 0, 0.08)", + selectedOpacity: 0.08, + // The color of a disabled action. + disabled: "rgba(0, 0, 0, 0.26)", + // The background color of a disabled action. + disabledBackground: "rgba(0, 0, 0, 0.12)", + disabledOpacity: 0.38, + focus: "rgba(0, 0, 0, 0.12)", + focusOpacity: 0.12, + activatedOpacity: 0.12 + } + }; +} +const VS = $S(); +function kS() { + return { + text: { + primary: W9.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: W9.white, + hover: "rgba(255, 255, 255, 0.08)", + hoverOpacity: 0.08, + selected: "rgba(255, 255, 255, 0.16)", + selectedOpacity: 0.16, + disabled: "rgba(255, 255, 255, 0.3)", + disabledBackground: "rgba(255, 255, 255, 0.12)", + disabledOpacity: 0.38, + focus: "rgba(255, 255, 255, 0.12)", + focusOpacity: 0.12, + activatedOpacity: 0.24 + } + }; +} +const Wm = kS(); +function ab(o, u, s, d) { + const m = d.light || d, y = d.dark || d * 1.5; + o[u] || (o.hasOwnProperty(s) ? o[u] = o[s] : u === "light" ? o.light = kp(o.main, m) : u === "dark" && (o.dark = Vp(o.main, y))); +} +function lb(o, u, s, d, m) { + const y = m.light || m, b = m.dark || m * 1.5; + u[s] || (u.hasOwnProperty(d) ? u[s] = u[d] : s === "light" ? u.light = `color-mix(in ${o}, ${u.main}, #fff ${(y * 100).toFixed(0)}%)` : s === "dark" && (u.dark = `color-mix(in ${o}, ${u.main}, #000 ${(b * 100).toFixed(0)}%)`)); +} +function XA(o = "light") { + return o === "dark" ? { + main: i5[200], + light: i5[50], + dark: i5[400] + } : { + main: i5[700], + light: i5[400], + dark: i5[800] + }; +} +function PA(o = "light") { + return o === "dark" ? { + main: o5[200], + light: o5[50], + dark: o5[400] + } : { + main: o5[500], + light: o5[300], + dark: o5[700] + }; +} +function QA(o = "light") { + return o === "dark" ? { + main: r5[500], + light: r5[300], + dark: r5[700] + } : { + main: r5[700], + light: r5[400], + dark: r5[800] + }; +} +function IA(o = "light") { + return o === "dark" ? { + main: u5[400], + light: u5[300], + dark: u5[700] + } : { + main: u5[700], + light: u5[500], + dark: u5[900] + }; +} +function KA(o = "light") { + return o === "dark" ? { + main: c5[400], + light: c5[300], + dark: c5[700] + } : { + main: c5[800], + light: c5[500], + dark: c5[900] + }; +} +function JA(o = "light") { + return o === "dark" ? { + main: w9[400], + light: w9[300], + dark: w9[700] + } : { + main: "#ed6c02", + // closest to orange[800] that pass 3:1. + light: w9[500], + dark: w9[900] + }; +} +function FA(o) { + return `oklch(from ${o} var(--__l) 0 h / var(--__a))`; +} +function UC(o) { + const { + mode: u = "light", + contrastThreshold: s = 3, + tonalOffset: d = 0.2, + colorSpace: m, + ...y + } = o, b = o.primary || XA(u), S = o.secondary || PA(u), T = o.error || QA(u), x = o.info || IA(u), M = o.success || KA(u), A = o.warning || JA(u); + function R(q) { + if (m) + return FA(q); + const Z = Iv(q, Wm.text.primary) >= s ? Wm.text.primary : VS.text.primary; + if (process.env.NODE_ENV !== "production") { + const F = Iv(q, Z); + F < 3 && console.error([`MUI: The contrast ratio of ${F}:1 for ${Z} on ${q}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` +`)); + } + return Z; + } + const _ = ({ + color: q, + name: Z, + mainShade: F = 500, + lightShade: G = 300, + darkShade: k = 700 + }) => { + if (q = { + ...q + }, !q.main && q[F] && (q.main = q[F]), !q.hasOwnProperty("main")) + throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${Z ? ` (${Z})` : ""} provided to augmentColor(color) is invalid. +The color object needs to have a \`main\` property or a \`${F}\` property.` : ji(11, Z ? ` (${Z})` : "", F)); + if (typeof q.main != "string") + throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${Z ? ` (${Z})` : ""} provided to augmentColor(color) is invalid. +\`color.main\` should be a string, but \`${JSON.stringify(q.main)}\` was provided instead. + +Did you intend to use one of the following approaches? + +import { green } from "@mui/material/colors"; + +const theme1 = createTheme({ palette: { + primary: green, +} }); + +const theme2 = createTheme({ palette: { + primary: { main: green[500] }, +} });` : ji(12, Z ? ` (${Z})` : "", JSON.stringify(q.main))); + return m ? (lb(m, q, "light", G, d), lb(m, q, "dark", k, d)) : (ab(q, "light", G, d), ab(q, "dark", k, d)), q.contrastText || (q.contrastText = R(q.main)), q; + }; + let B; + return u === "light" ? B = $S() : u === "dark" && (B = kS()), process.env.NODE_ENV !== "production" && (B || console.error(`MUI: The palette mode \`${u}\` is not supported.`)), f3({ + // A collection of common colors. + common: { + ...W9 + }, + // prevent mutable object. + // The palette mode, can be light or dark. + mode: u, + // The colors used to represent primary interface elements for a user. + primary: _({ + color: b, + name: "primary" + }), + // The colors used to represent secondary interface elements for a user. + secondary: _({ + color: S, + name: "secondary", + mainShade: "A400", + lightShade: "A200", + darkShade: "A700" + }), + // The colors used to represent interface elements that the user should be made aware of. + error: _({ + color: T, + name: "error" + }), + // The colors used to represent potentially dangerous actions or important messages. + warning: _({ + color: A, + name: "warning" + }), + // The colors used to present information to the user that is neutral and not necessarily important. + info: _({ + color: x, + name: "info" + }), + // The colors used to indicate the successful completion of an action that user triggered. + success: _({ + color: M, + name: "success" + }), + // The grey colors. + grey: GA, + // Used by `getContrastText()` to maximize the contrast between + // the background and the text. + contrastThreshold: s, + // Takes a background color and returns the text color that maximizes the contrast. + getContrastText: R, + // Generate a rich color object. + augmentColor: _, + // Used by the functions below to shift a color's luminance by approximately + // two indexes within its tonal palette. + // E.g., shift from Red 500 to Red 300 or Red 700. + tonalOffset: d, + // The light and dark mode object. + ...B + }, y); +} +function WA(o) { + const u = {}; + return Object.entries(o).forEach((d) => { + const [m, y] = d; + typeof y == "object" && (u[m] = `${y.fontStyle ? `${y.fontStyle} ` : ""}${y.fontVariant ? `${y.fontVariant} ` : ""}${y.fontWeight ? `${y.fontWeight} ` : ""}${y.fontStretch ? `${y.fontStretch} ` : ""}${y.fontSize || ""}${y.lineHeight ? `/${y.lineHeight} ` : ""}${y.fontFamily || ""}`); + }), u; +} +function eM(o, u) { + return { + toolbar: { + minHeight: 56, + [o.up("xs")]: { + "@media (orientation: landscape)": { + minHeight: 48 + } + }, + [o.up("sm")]: { + minHeight: 64 + } + }, + ...u + }; +} +function tM(o) { + return Math.round(o * 1e5) / 1e5; +} +const ob = { + textTransform: "uppercase" +}, rb = '"Roboto", "Helvetica", "Arial", sans-serif'; +function YS(o, u) { + const { + fontFamily: s = rb, + // The default font size of the Material Specification. + fontSize: d = 14, + // px + fontWeightLight: m = 300, + fontWeightRegular: y = 400, + fontWeightMedium: b = 500, + fontWeightBold: S = 700, + // Tell MUI what's the font-size on the html element. + // 16px is the default font-size used by browsers. + htmlFontSize: T = 16, + // Apply the CSS properties to all the variants. + allVariants: x, + pxToRem: M, + ...A + } = typeof u == "function" ? u(o) : u; + process.env.NODE_ENV !== "production" && (typeof d != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof T != "number" && console.error("MUI: `htmlFontSize` is required to be a number.")); + const R = d / 14, _ = M || ((q) => `${q / T * R}rem`), B = (q, Z, F, G, k) => ({ + fontFamily: s, + fontWeight: q, + fontSize: _(Z), + // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/ + lineHeight: F, + // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing + // across font-families can cause issues with the kerning. + ...s === rb ? { + letterSpacing: `${tM(G / Z)}em` + } : {}, + ...k, + ...x + }), z = { + h1: B(m, 96, 1.167, -1.5), + h2: B(m, 60, 1.2, -0.5), + h3: B(y, 48, 1.167, 0), + h4: B(y, 34, 1.235, 0.25), + h5: B(y, 24, 1.334, 0), + h6: B(b, 20, 1.6, 0.15), + subtitle1: B(y, 16, 1.75, 0.15), + subtitle2: B(b, 14, 1.57, 0.1), + body1: B(y, 16, 1.5, 0.15), + body2: B(y, 14, 1.43, 0.15), + button: B(b, 14, 1.75, 0.4, ob), + caption: B(y, 12, 1.66, 0.4), + overline: B(y, 12, 2.66, 1, ob), + // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types. + inherit: { + fontFamily: "inherit", + fontWeight: "inherit", + fontSize: "inherit", + lineHeight: "inherit", + letterSpacing: "inherit" + } + }; + return f3({ + htmlFontSize: T, + pxToRem: _, + fontFamily: s, + fontSize: d, + fontWeightLight: m, + fontWeightRegular: y, + fontWeightMedium: b, + fontWeightBold: S, + ...z + }, A, { + clone: !1 + // No need to clone deep + }); +} +const nM = 0.2, aM = 0.14, lM = 0.12; +function nt(...o) { + return [`${o[0]}px ${o[1]}px ${o[2]}px ${o[3]}px rgba(0,0,0,${nM})`, `${o[4]}px ${o[5]}px ${o[6]}px ${o[7]}px rgba(0,0,0,${aM})`, `${o[8]}px ${o[9]}px ${o[10]}px ${o[11]}px rgba(0,0,0,${lM})`].join(","); +} +const oM = ["none", nt(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), nt(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), nt(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), nt(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), nt(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), nt(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), nt(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), nt(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), nt(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), nt(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), nt(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), nt(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), nt(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), nt(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), nt(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), nt(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), nt(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), nt(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), nt(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), nt(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), nt(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), nt(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), nt(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), nt(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], rM = { + // This is the most common easing curve. + easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)", + // Objects enter the screen at full velocity from off-screen and + // slowly decelerate to a resting point. + easeOut: "cubic-bezier(0.0, 0, 0.2, 1)", + // Objects leave the screen at full velocity. They do not decelerate when off-screen. + easeIn: "cubic-bezier(0.4, 0, 1, 1)", + // The sharp curve is used by objects that may return to the screen at any time. + sharp: "cubic-bezier(0.4, 0, 0.6, 1)" +}, iM = { + shortest: 150, + shorter: 200, + short: 250, + // most basic recommended timing + standard: 300, + // this is to be used in complex animations + complex: 375, + // recommended when something is entering screen + enteringScreen: 225, + // recommended when something is leaving screen + leavingScreen: 195 +}; +function ib(o) { + return `${Math.round(o)}ms`; +} +function uM(o) { + if (!o) + return 0; + const u = o / 36; + return Math.min(Math.round((4 + 15 * u ** 0.25 + u / 5) * 10), 3e3); +} +function cM(o) { + const u = { + ...rM, + ...o.easing + }, s = { + ...iM, + ...o.duration + }; + return { + getAutoHeightDuration: uM, + create: (m = ["all"], y = {}) => { + const { + duration: b = s.standard, + easing: S = u.easeInOut, + delay: T = 0, + ...x + } = y; + if (process.env.NODE_ENV !== "production") { + const M = (R) => typeof R == "string", A = (R) => !Number.isNaN(parseFloat(R)); + !M(m) && !Array.isArray(m) && console.error('MUI: Argument "props" must be a string or Array.'), !A(b) && !M(b) && console.error(`MUI: Argument "duration" must be a number or a string but found ${b}.`), M(S) || console.error('MUI: Argument "easing" must be a string.'), !A(T) && !M(T) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof y != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(` +`)), Object.keys(x).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(x).join(",")}].`); + } + return (Array.isArray(m) ? m : [m]).map((M) => `${M} ${typeof b == "string" ? b : ib(b)} ${S} ${typeof T == "string" ? T : ib(T)}`).join(","); + }, + ...o, + easing: u, + duration: s + }; +} +const sM = { + mobileStepper: 1e3, + fab: 1050, + speedDial: 1050, + appBar: 1100, + drawer: 1200, + modal: 1300, + snackbar: 1400, + tooltip: 1500 +}; +function fM(o) { + return Na(o) || typeof o > "u" || typeof o == "string" || typeof o == "boolean" || typeof o == "number" || Array.isArray(o); +} +function qS(o = {}) { + const u = { + ...o + }; + function s(d) { + const m = Object.entries(d); + for (let y = 0; y < m.length; y++) { + const [b, S] = m[y]; + !fM(S) || b.startsWith("unstable_") ? delete d[b] : Na(S) && (d[b] = { + ...S + }, s(d[b])); + } + } + return s(u), `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles'; + +const theme = ${JSON.stringify(u, null, 2)}; + +theme.breakpoints = createBreakpoints(theme.breakpoints || {}); +theme.transitions = createTransitions(theme.transitions || {}); + +export default theme;`; +} +function ub(o) { + return typeof o == "number" ? `${(o * 100).toFixed(0)}%` : `calc((${o}) * 100%)`; +} +const dM = (o) => { + if (!Number.isNaN(+o)) + return +o; + const u = o.match(/\d*\.?\d+/g); + if (!u) + return 0; + let s = 0; + for (let d = 0; d < u.length; d += 1) + s += +u[d]; + return s; +}; +function pM(o) { + Object.assign(o, { + alpha(u, s) { + const d = this || o; + return d.colorSpace ? `oklch(from ${u} l c h / ${typeof s == "string" ? `calc(${s})` : s})` : d.vars ? `rgba(${u.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g, "var(--$1Channel)")} / ${typeof s == "string" ? `calc(${s})` : s})` : b5(u, dM(s)); + }, + lighten(u, s) { + const d = this || o; + return d.colorSpace ? `color-mix(in ${d.colorSpace}, ${u}, #fff ${ub(s)})` : kp(u, s); + }, + darken(u, s) { + const d = this || o; + return d.colorSpace ? `color-mix(in ${d.colorSpace}, ${u}, #000 ${ub(s)})` : Vp(u, s); + } + }); +} +function eC(o = {}, ...u) { + const { + breakpoints: s, + mixins: d = {}, + spacing: m, + palette: y = {}, + transitions: b = {}, + typography: S = {}, + shape: T, + colorSpace: x, + ...M + } = o; + if (o.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`. + // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider. + o.generateThemeVars === void 0) + throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : ji(20)); + const A = UC({ + ...y, + colorSpace: x + }), R = Bp(o); + let _ = f3(R, { + mixins: eM(R.breakpoints, d), + palette: A, + // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol. + shadows: oM.slice(), + typography: YS(A, S), + transitions: cM(b), + zIndex: { + ...sM + } + }); + if (_ = f3(_, M), _ = u.reduce((B, z) => f3(B, z), _), process.env.NODE_ENV !== "production") { + const B = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], z = (q, Z) => { + let F; + for (F in q) { + const G = q[F]; + if (B.includes(F) && Object.keys(G).length > 0) { + if (process.env.NODE_ENV !== "production") { + const k = j0("", F); + console.error([`MUI: The \`${Z}\` component increases the CSS specificity of the \`${F}\` internal state.`, "You can not override it like this: ", JSON.stringify(q, null, 2), "", `Instead, you need to use the '&.${k}' syntax:`, JSON.stringify({ + root: { + [`&.${k}`]: G + } + }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(` +`)); + } + q[F] = {}; + } + } + }; + Object.keys(_.components).forEach((q) => { + const Z = _.components[q].styleOverrides; + Z && q.startsWith("Mui") && z(Z, q); + }); + } + return _.unstable_sxConfig = { + ...r7, + ...M?.unstable_sxConfig + }, _.unstable_sx = function(z) { + return jo({ + sx: z, + theme: this + }); + }, _.toRuntimeSource = qS, pM(_), _; +} +function tC(o) { + let u; + return o < 1 ? u = 5.11916 * o ** 2 : u = 4.5 * Math.log(o + 1) + 2, Math.round(u * 10) / 1e3; +} +const hM = [...Array(25)].map((o, u) => { + if (u === 0) + return "none"; + const s = tC(u); + return `linear-gradient(rgba(255 255 255 / ${s}), rgba(255 255 255 / ${s}))`; +}); +function ZS(o) { + return { + inputPlaceholder: o === "dark" ? 0.5 : 0.42, + inputUnderline: o === "dark" ? 0.7 : 0.42, + switchTrackDisabled: o === "dark" ? 0.2 : 0.12, + switchTrack: o === "dark" ? 0.3 : 0.38 + }; +} +function GS(o) { + return o === "dark" ? hM : []; +} +function mM(o) { + const { + palette: u = { + mode: "light" + }, + // need to cast to avoid module augmentation test + opacity: s, + overlays: d, + colorSpace: m, + ...y + } = o, b = UC({ + ...u, + colorSpace: m + }); + return { + palette: b, + opacity: { + ...ZS(b.mode), + ...s + }, + overlays: d || GS(b.mode), + ...y + }; +} +function CM(o) { + return !!o[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!o[0].match(/sxConfig$/) || // ends with sxConfig + o[0] === "palette" && !!o[1]?.match(/(mode|contrastThreshold|tonalOffset)/); +} +const yM = (o) => [...[...Array(25)].map((u, s) => `--${o ? `${o}-` : ""}overlays-${s}`), `--${o ? `${o}-` : ""}palette-AppBar-darkBg`, `--${o ? `${o}-` : ""}palette-AppBar-darkColor`], gM = (o) => (u, s) => { + const d = o.rootSelector || ":root", m = o.colorSchemeSelector; + let y = m; + if (m === "class" && (y = ".%s"), m === "data" && (y = "[data-%s]"), m?.startsWith("data-") && !m.includes("%s") && (y = `[${m}="%s"]`), o.defaultColorScheme === u) { + if (u === "dark") { + const b = {}; + return yM(o.cssVarPrefix).forEach((S) => { + b[S] = s[S], delete s[S]; + }), y === "media" ? { + [d]: s, + "@media (prefers-color-scheme: dark)": { + [d]: b + } + } : y ? { + [y.replace("%s", u)]: b, + [`${d}, ${y.replace("%s", u)}`]: s + } : { + [d]: { + ...s, + ...b + } + }; + } + if (y && y !== "media") + return `${d}, ${y.replace("%s", String(u))}`; + } else if (u) { + if (y === "media") + return { + [`@media (prefers-color-scheme: ${String(u)})`]: { + [d]: s + } + }; + if (y) + return y.replace("%s", String(u)); + } + return d; +}; +function vM(o, u) { + u.forEach((s) => { + o[s] || (o[s] = {}); + }); +} +function z2(o, u, s) { + !o[u] && s && (o[u] = s); +} +function $9(o) { + return typeof o != "string" || !o.startsWith("hsl") ? o : LS(o); +} +function J1(o, u) { + `${u}Channel` in o || (o[`${u}Channel`] = H9($9(o[u]), `MUI: Can't create \`palette.${u}Channel\` because \`palette.${u}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${u}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`)); +} +function bM(o) { + return typeof o == "number" ? `${o}px` : typeof o == "string" || typeof o == "function" || Array.isArray(o) ? o : "8px"; +} +const _a = (o) => { + try { + return o(); + } catch { + } +}, SM = (o = "mui") => LA(o); +function jm(o, u, s, d, m) { + if (!s) + return; + s = s === !0 ? {} : s; + const y = m === "dark" ? "dark" : "light"; + if (!d) { + u[m] = mM({ + ...s, + palette: { + mode: y, + ...s?.palette + }, + colorSpace: o + }); + return; + } + const { + palette: b, + ...S + } = eC({ + ...d, + palette: { + mode: y, + ...s?.palette + }, + colorSpace: o + }); + return u[m] = { + ...s, + palette: b, + opacity: { + ...ZS(y), + ...s?.opacity + }, + overlays: s?.overlays || GS(y) + }, S; +} +function EM(o = {}, ...u) { + const { + colorSchemes: s = { + light: !0 + }, + defaultColorScheme: d, + disableCssColorScheme: m = !1, + cssVarPrefix: y = "mui", + nativeColor: b = !1, + shouldSkipGeneratingVar: S = CM, + colorSchemeSelector: T = s.light && s.dark ? "media" : void 0, + rootSelector: x = ":root", + ...M + } = o, A = Object.keys(s)[0], R = d || (s.light && A !== "light" ? "light" : A), _ = SM(y), { + [R]: B, + light: z, + dark: q, + ...Z + } = s, F = { + ...Z + }; + let G = B; + if ((R === "dark" && !("dark" in s) || R === "light" && !("light" in s)) && (G = !0), !G) + throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${R}\` option is either missing or invalid.` : ji(21, R)); + let k; + b && (k = "oklch"); + const $ = jm(k, F, G, M, R); + z && !F.light && jm(k, F, z, void 0, "light"), q && !F.dark && jm(k, F, q, void 0, "dark"); + let K = { + defaultColorScheme: R, + ...$, + cssVarPrefix: y, + colorSchemeSelector: T, + rootSelector: x, + getCssVar: _, + colorSchemes: F, + font: { + ...WA($.typography), + ...$.font + }, + spacing: bM(M.spacing) + }; + Object.keys(K.colorSchemes).forEach((S2) => { + const N = K.colorSchemes[S2].palette, o2 = (R2) => { + const H = R2.split("-"), e2 = H[1], v2 = H[2]; + return _(R2, N[e2][v2]); + }; + N.mode === "light" && (z2(N.common, "background", "#fff"), z2(N.common, "onBackground", "#000")), N.mode === "dark" && (z2(N.common, "background", "#000"), z2(N.common, "onBackground", "#fff")); + function g2(R2, H, e2) { + if (k) { + let v2; + return R2 === Ai && (v2 = `transparent ${((1 - e2) * 100).toFixed(0)}%`), R2 === v0 && (v2 = `#000 ${(e2 * 100).toFixed(0)}%`), R2 === b0 && (v2 = `#fff ${(e2 * 100).toFixed(0)}%`), `color-mix(in ${k}, ${H}, ${v2})`; + } + return R2(H, e2); + } + if (vM(N, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), N.mode === "light") { + z2(N.Alert, "errorColor", g2(v0, b ? _("palette-error-light") : N.error.light, 0.6)), z2(N.Alert, "infoColor", g2(v0, b ? _("palette-info-light") : N.info.light, 0.6)), z2(N.Alert, "successColor", g2(v0, b ? _("palette-success-light") : N.success.light, 0.6)), z2(N.Alert, "warningColor", g2(v0, b ? _("palette-warning-light") : N.warning.light, 0.6)), z2(N.Alert, "errorFilledBg", o2("palette-error-main")), z2(N.Alert, "infoFilledBg", o2("palette-info-main")), z2(N.Alert, "successFilledBg", o2("palette-success-main")), z2(N.Alert, "warningFilledBg", o2("palette-warning-main")), z2(N.Alert, "errorFilledColor", _a(() => N.getContrastText(N.error.main))), z2(N.Alert, "infoFilledColor", _a(() => N.getContrastText(N.info.main))), z2(N.Alert, "successFilledColor", _a(() => N.getContrastText(N.success.main))), z2(N.Alert, "warningFilledColor", _a(() => N.getContrastText(N.warning.main))), z2(N.Alert, "errorStandardBg", g2(b0, b ? _("palette-error-light") : N.error.light, 0.9)), z2(N.Alert, "infoStandardBg", g2(b0, b ? _("palette-info-light") : N.info.light, 0.9)), z2(N.Alert, "successStandardBg", g2(b0, b ? _("palette-success-light") : N.success.light, 0.9)), z2(N.Alert, "warningStandardBg", g2(b0, b ? _("palette-warning-light") : N.warning.light, 0.9)), z2(N.Alert, "errorIconColor", o2("palette-error-main")), z2(N.Alert, "infoIconColor", o2("palette-info-main")), z2(N.Alert, "successIconColor", o2("palette-success-main")), z2(N.Alert, "warningIconColor", o2("palette-warning-main")), z2(N.AppBar, "defaultBg", o2("palette-grey-100")), z2(N.Avatar, "defaultBg", o2("palette-grey-400")), z2(N.Button, "inheritContainedBg", o2("palette-grey-300")), z2(N.Button, "inheritContainedHoverBg", o2("palette-grey-A100")), z2(N.Chip, "defaultBorder", o2("palette-grey-400")), z2(N.Chip, "defaultAvatarColor", o2("palette-grey-700")), z2(N.Chip, "defaultIconColor", o2("palette-grey-700")), z2(N.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), z2(N.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), z2(N.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), z2(N.LinearProgress, "primaryBg", g2(b0, b ? _("palette-primary-main") : N.primary.main, 0.62)), z2(N.LinearProgress, "secondaryBg", g2(b0, b ? _("palette-secondary-main") : N.secondary.main, 0.62)), z2(N.LinearProgress, "errorBg", g2(b0, b ? _("palette-error-main") : N.error.main, 0.62)), z2(N.LinearProgress, "infoBg", g2(b0, b ? _("palette-info-main") : N.info.main, 0.62)), z2(N.LinearProgress, "successBg", g2(b0, b ? _("palette-success-main") : N.success.main, 0.62)), z2(N.LinearProgress, "warningBg", g2(b0, b ? _("palette-warning-light") : N.warning.main, 0.62)), z2(N.Skeleton, "bg", k ? g2(Ai, b ? _("palette-text-primary") : N.text.primary, 0.11) : `rgba(${o2("palette-text-primaryChannel")} / 0.11)`), z2(N.Slider, "primaryTrack", g2(b0, b ? _("palette-primary-main") : N.primary.main, 0.62)), z2(N.Slider, "secondaryTrack", g2(b0, b ? _("palette-secondary-main") : N.secondary.main, 0.62)), z2(N.Slider, "errorTrack", g2(b0, b ? _("palette-error-main") : N.error.main, 0.62)), z2(N.Slider, "infoTrack", g2(b0, b ? _("palette-info-main") : N.info.main, 0.62)), z2(N.Slider, "successTrack", g2(b0, b ? _("palette-success-main") : N.success.main, 0.62)), z2(N.Slider, "warningTrack", g2(b0, b ? _("palette-warning-main") : N.warning.main, 0.62)); + const R2 = k ? g2(v0, b ? _("palette-background-default") : N.background.default, 0.6825) : Gd(N.background.default, 0.8); + z2(N.SnackbarContent, "bg", R2), z2(N.SnackbarContent, "color", _a(() => k ? Wm.text.primary : N.getContrastText(R2))), z2(N.SpeedDialAction, "fabHoverBg", Gd(N.background.paper, 0.15)), z2(N.StepConnector, "border", o2("palette-grey-400")), z2(N.StepContent, "border", o2("palette-grey-400")), z2(N.Switch, "defaultColor", o2("palette-common-white")), z2(N.Switch, "defaultDisabledColor", o2("palette-grey-100")), z2(N.Switch, "primaryDisabledColor", g2(b0, b ? _("palette-primary-main") : N.primary.main, 0.62)), z2(N.Switch, "secondaryDisabledColor", g2(b0, b ? _("palette-secondary-main") : N.secondary.main, 0.62)), z2(N.Switch, "errorDisabledColor", g2(b0, b ? _("palette-error-main") : N.error.main, 0.62)), z2(N.Switch, "infoDisabledColor", g2(b0, b ? _("palette-info-main") : N.info.main, 0.62)), z2(N.Switch, "successDisabledColor", g2(b0, b ? _("palette-success-main") : N.success.main, 0.62)), z2(N.Switch, "warningDisabledColor", g2(b0, b ? _("palette-warning-main") : N.warning.main, 0.62)), z2(N.TableCell, "border", g2(b0, Ai(b ? _("palette-divider") : N.divider, 1), 0.88)), z2(N.Tooltip, "bg", g2(Ai, b ? _("palette-grey-700") : N.grey[700], 0.92)); + } + if (N.mode === "dark") { + z2(N.Alert, "errorColor", g2(b0, b ? _("palette-error-light") : N.error.light, 0.6)), z2(N.Alert, "infoColor", g2(b0, b ? _("palette-info-light") : N.info.light, 0.6)), z2(N.Alert, "successColor", g2(b0, b ? _("palette-success-light") : N.success.light, 0.6)), z2(N.Alert, "warningColor", g2(b0, b ? _("palette-warning-light") : N.warning.light, 0.6)), z2(N.Alert, "errorFilledBg", o2("palette-error-dark")), z2(N.Alert, "infoFilledBg", o2("palette-info-dark")), z2(N.Alert, "successFilledBg", o2("palette-success-dark")), z2(N.Alert, "warningFilledBg", o2("palette-warning-dark")), z2(N.Alert, "errorFilledColor", _a(() => N.getContrastText(N.error.dark))), z2(N.Alert, "infoFilledColor", _a(() => N.getContrastText(N.info.dark))), z2(N.Alert, "successFilledColor", _a(() => N.getContrastText(N.success.dark))), z2(N.Alert, "warningFilledColor", _a(() => N.getContrastText(N.warning.dark))), z2(N.Alert, "errorStandardBg", g2(v0, b ? _("palette-error-light") : N.error.light, 0.9)), z2(N.Alert, "infoStandardBg", g2(v0, b ? _("palette-info-light") : N.info.light, 0.9)), z2(N.Alert, "successStandardBg", g2(v0, b ? _("palette-success-light") : N.success.light, 0.9)), z2(N.Alert, "warningStandardBg", g2(v0, b ? _("palette-warning-light") : N.warning.light, 0.9)), z2(N.Alert, "errorIconColor", o2("palette-error-main")), z2(N.Alert, "infoIconColor", o2("palette-info-main")), z2(N.Alert, "successIconColor", o2("palette-success-main")), z2(N.Alert, "warningIconColor", o2("palette-warning-main")), z2(N.AppBar, "defaultBg", o2("palette-grey-900")), z2(N.AppBar, "darkBg", o2("palette-background-paper")), z2(N.AppBar, "darkColor", o2("palette-text-primary")), z2(N.Avatar, "defaultBg", o2("palette-grey-600")), z2(N.Button, "inheritContainedBg", o2("palette-grey-800")), z2(N.Button, "inheritContainedHoverBg", o2("palette-grey-700")), z2(N.Chip, "defaultBorder", o2("palette-grey-700")), z2(N.Chip, "defaultAvatarColor", o2("palette-grey-300")), z2(N.Chip, "defaultIconColor", o2("palette-grey-300")), z2(N.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), z2(N.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), z2(N.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), z2(N.LinearProgress, "primaryBg", g2(v0, b ? _("palette-primary-main") : N.primary.main, 0.5)), z2(N.LinearProgress, "secondaryBg", g2(v0, b ? _("palette-secondary-main") : N.secondary.main, 0.5)), z2(N.LinearProgress, "errorBg", g2(v0, b ? _("palette-error-main") : N.error.main, 0.5)), z2(N.LinearProgress, "infoBg", g2(v0, b ? _("palette-info-main") : N.info.main, 0.5)), z2(N.LinearProgress, "successBg", g2(v0, b ? _("palette-success-main") : N.success.main, 0.5)), z2(N.LinearProgress, "warningBg", g2(v0, b ? _("palette-warning-main") : N.warning.main, 0.5)), z2(N.Skeleton, "bg", k ? g2(Ai, b ? _("palette-text-primary") : N.text.primary, 0.13) : `rgba(${o2("palette-text-primaryChannel")} / 0.13)`), z2(N.Slider, "primaryTrack", g2(v0, b ? _("palette-primary-main") : N.primary.main, 0.5)), z2(N.Slider, "secondaryTrack", g2(v0, b ? _("palette-secondary-main") : N.secondary.main, 0.5)), z2(N.Slider, "errorTrack", g2(v0, b ? _("palette-error-main") : N.error.main, 0.5)), z2(N.Slider, "infoTrack", g2(v0, b ? _("palette-info-main") : N.info.main, 0.5)), z2(N.Slider, "successTrack", g2(v0, b ? _("palette-success-main") : N.success.main, 0.5)), z2(N.Slider, "warningTrack", g2(v0, b ? _("palette-warning-light") : N.warning.main, 0.5)); + const R2 = k ? g2(b0, b ? _("palette-background-default") : N.background.default, 0.985) : Gd(N.background.default, 0.98); + z2(N.SnackbarContent, "bg", R2), z2(N.SnackbarContent, "color", _a(() => k ? VS.text.primary : N.getContrastText(R2))), z2(N.SpeedDialAction, "fabHoverBg", Gd(N.background.paper, 0.15)), z2(N.StepConnector, "border", o2("palette-grey-600")), z2(N.StepContent, "border", o2("palette-grey-600")), z2(N.Switch, "defaultColor", o2("palette-grey-300")), z2(N.Switch, "defaultDisabledColor", o2("palette-grey-600")), z2(N.Switch, "primaryDisabledColor", g2(v0, b ? _("palette-primary-main") : N.primary.main, 0.55)), z2(N.Switch, "secondaryDisabledColor", g2(v0, b ? _("palette-secondary-main") : N.secondary.main, 0.55)), z2(N.Switch, "errorDisabledColor", g2(v0, b ? _("palette-error-main") : N.error.main, 0.55)), z2(N.Switch, "infoDisabledColor", g2(v0, b ? _("palette-info-main") : N.info.main, 0.55)), z2(N.Switch, "successDisabledColor", g2(v0, b ? _("palette-success-main") : N.success.main, 0.55)), z2(N.Switch, "warningDisabledColor", g2(v0, b ? _("palette-warning-light") : N.warning.main, 0.55)), z2(N.TableCell, "border", g2(v0, Ai(b ? _("palette-divider") : N.divider, 1), 0.68)), z2(N.Tooltip, "bg", g2(Ai, b ? _("palette-grey-700") : N.grey[700], 0.92)); + } + b || (J1(N.background, "default"), J1(N.background, "paper"), J1(N.common, "background"), J1(N.common, "onBackground"), J1(N, "divider")), Object.keys(N).forEach((R2) => { + const H = N[R2]; + R2 !== "tonalOffset" && !b && H && typeof H == "object" && (H.main && z2(N[R2], "mainChannel", H9($9(H.main))), H.light && z2(N[R2], "lightChannel", H9($9(H.light))), H.dark && z2(N[R2], "darkChannel", H9($9(H.dark))), H.contrastText && z2(N[R2], "contrastTextChannel", H9($9(H.contrastText))), R2 === "text" && (J1(N[R2], "primary"), J1(N[R2], "secondary")), R2 === "action" && (H.active && J1(N[R2], "active"), H.selected && J1(N[R2], "selected"))); + }); + }), K = u.reduce((S2, N) => f3(S2, N), K); + const a2 = { + prefix: y, + disableCssColorScheme: m, + shouldSkipGeneratingVar: S, + getSelector: gM(K), + enableContrastVars: b + }, { + vars: u2, + generateThemeVars: d2, + generateStyleSheets: r2 + } = UA(K, a2); + return K.vars = u2, Object.entries(K.colorSchemes[K.defaultColorScheme]).forEach(([S2, N]) => { + K[S2] = N; + }), K.generateThemeVars = d2, K.generateStyleSheets = r2, K.generateSpacing = function() { + return OS(M.spacing, Mp(this)); + }, K.getColorSchemeSelector = BA(T), K.spacing = K.generateSpacing(), K.shouldSkipGeneratingVar = S, K.unstable_sxConfig = { + ...r7, + ...M?.unstable_sxConfig + }, K.unstable_sx = function(N) { + return jo({ + sx: N, + theme: this + }); + }, K.toRuntimeSource = qS, K; +} +function cb(o, u, s) { + o.colorSchemes && s && (o.colorSchemes[u] = { + ...s !== !0 && s, + palette: UC({ + ...s === !0 ? {} : s.palette, + mode: u + }) + // cast type to skip module augmentation test + }); +} +function Zp(o = {}, ...u) { + const { + palette: s, + cssVariables: d = !1, + colorSchemes: m = s ? void 0 : { + light: !0 + }, + defaultColorScheme: y = s?.mode, + ...b + } = o, S = y || "light", T = m?.[S], x = { + ...m, + ...s ? { + [S]: { + ...typeof T != "boolean" && T, + palette: s + } + } : void 0 + }; + if (d === !1) { + if (!("colorSchemes" in o)) + return eC(o, ...u); + let M = s; + "palette" in o || x[S] && (x[S] !== !0 ? M = x[S].palette : S === "dark" && (M = { + mode: "dark" + })); + const A = eC({ + ...o, + palette: M + }, ...u); + return A.defaultColorScheme = S, A.colorSchemes = x, A.palette.mode === "light" && (A.colorSchemes.light = { + ...x.light !== !0 && x.light, + palette: A.palette + }, cb(A, "dark", x.dark)), A.palette.mode === "dark" && (A.colorSchemes.dark = { + ...x.dark !== !0 && x.dark, + palette: A.palette + }, cb(A, "light", x.light)), A; + } + return !s && !("light" in x) && S === "light" && (x.light = !0), EM({ + ...b, + colorSchemes: x, + defaultColorScheme: S, + ...typeof d != "boolean" && d + }, ...u); +} +const BC = Zp(), Ba = "$$material"; +function w5() { + const o = Hp(BC); + return process.env.NODE_ENV !== "production" && V.useDebugValue(o), o[Ba] || o; +} +function Gp(o) { + return /* @__PURE__ */ Y.jsx(wC, { + ...o, + defaultTheme: BC, + themeId: Ba + }); +} +process.env.NODE_ENV !== "production" && (Gp.propTypes = { + // ┌────────────────────────────── Warning ──────────────────────────────┐ + // │ These PropTypes are generated from the TypeScript type definitions. │ + // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ + // └─────────────────────────────────────────────────────────────────────┘ + /** + * The styles you want to apply globally. + */ + styles: h.oneOfType([h.array, h.func, h.number, h.object, h.string, h.bool]) +}); +function TM(o) { + return o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as"; +} +const s7 = (o) => TM(o) && o !== "classes", pe = DS({ + themeId: Ba, + defaultTheme: BC, + rootShouldForwardProp: s7 +}); +function XS(o) { + return function(s) { + return ( + // Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value. + /* @__PURE__ */ Y.jsx(Gp, { + styles: typeof o == "function" ? (d) => o({ + theme: d, + ...s + }) : o + }) + ); + }; +} +function xM() { + return gC; +} +process.env.NODE_ENV !== "production" && (h.node, h.object.isRequired); +function U0(o) { + return bA(o); +} +const nC = typeof XS({}) == "function", OM = (o, u) => ({ + WebkitFontSmoothing: "antialiased", + // Antialiasing. + MozOsxFontSmoothing: "grayscale", + // Antialiasing. + // Change from `box-sizing: content-box` so that `width` + // is not affected by `padding` or `border`. + boxSizing: "border-box", + // Fix font resize problem in iOS + WebkitTextSizeAdjust: "100%", + // When used under CssVarsProvider, colorScheme should not be applied dynamically because it will generate the stylesheet twice for server-rendered applications. + ...u && !o.vars && { + colorScheme: o.palette.mode + } +}), RM = (o) => ({ + color: (o.vars || o).palette.text.primary, + ...o.typography.body1, + backgroundColor: (o.vars || o).palette.background.default, + "@media print": { + // Save printer ink. + backgroundColor: (o.vars || o).palette.common.white + } +}), PS = (o, u = !1) => { + const s = {}; + u && o.colorSchemes && typeof o.getColorSchemeSelector == "function" && Object.entries(o.colorSchemes).forEach(([y, b]) => { + const S = o.getColorSchemeSelector(y); + S.startsWith("@") ? s[S] = { + ":root": { + colorScheme: b.palette?.mode + } + } : s[S.replace(/\s*&/, "")] = { + colorScheme: b.palette?.mode + }; + }); + let d = { + html: OM(o, u), + "*, *::before, *::after": { + boxSizing: "inherit" + }, + "strong, b": { + fontWeight: o.typography.fontWeightBold + }, + body: { + margin: 0, + // Remove the margin in all browsers. + ...RM(o), + // Add support for document.body.requestFullScreen(). + // Other elements, if background transparent, are not supported. + "&::backdrop": { + backgroundColor: (o.vars || o).palette.background.default + } + }, + ...s + }; + const m = o.components?.MuiCssBaseline?.styleOverrides; + return m && (d = [d, m]), d; +}, up = "mui-ecs", AM = (o) => { + const u = PS(o, !1), s = Array.isArray(u) ? u[0] : u; + return !o.vars && s && (s.html[`:root:has(${up})`] = { + colorScheme: o.palette.mode + }), o.colorSchemes && Object.entries(o.colorSchemes).forEach(([d, m]) => { + const y = o.getColorSchemeSelector(d); + y.startsWith("@") ? s[y] = { + [`:root:not(:has(.${up}))`]: { + colorScheme: m.palette?.mode + } + } : s[y.replace(/\s*&/, "")] = { + [`&:not(:has(.${up}))`]: { + colorScheme: m.palette?.mode + } + }; + }), u; +}, MM = XS(nC ? ({ + theme: o, + enableColorScheme: u +}) => PS(o, u) : ({ + theme: o +}) => AM(o)); +function QS(o) { + const u = U0({ + props: o, + name: "MuiCssBaseline" + }), { + children: s, + enableColorScheme: d = !1 + } = u; + return /* @__PURE__ */ Y.jsxs(V.Fragment, { + children: [nC && /* @__PURE__ */ Y.jsx(MM, { + enableColorScheme: d + }), !nC && !d && /* @__PURE__ */ Y.jsx("span", { + className: up, + style: { + display: "none" + } + }), s] + }); +} +process.env.NODE_ENV !== "production" && (QS.propTypes = { + // ┌────────────────────────────── Warning ──────────────────────────────┐ + // │ These PropTypes are generated from the TypeScript type definitions. │ + // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ + // └─────────────────────────────────────────────────────────────────────┘ + /** + * You can wrap a node. + */ + children: h.node, + /** + * Enable `color-scheme` CSS property to use `theme.palette.mode`. + * For more details, check out https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/color-scheme + * For browser support, check out https://caniuse.com/?search=color-scheme + * @default false + */ + enableColorScheme: h.bool +}); +function wM({ + theme: o, + ...u +}) { + const s = Ba in o ? o[Ba] : void 0; + return /* @__PURE__ */ Y.jsx(F9, { + ...u, + themeId: s ? Ba : void 0, + theme: s || o + }); +} +const Xd = { + colorSchemeStorageKey: "mui-color-scheme", + defaultLightColorScheme: "light", + defaultDarkColorScheme: "dark", + modeStorageKey: "mui-mode" +}; +process.env.NODE_ENV !== "production" && (h.string, h.string, h.string, h.string, h.string, h.oneOf(["dark", "light", "system"]), h.string, h.string); +const { + CssVarsProvider: _M +} = zA({ + themeId: Ba, + // @ts-ignore ignore module augmentation tests + theme: () => Zp({ + cssVariables: !0 + }), + colorSchemeStorageKey: Xd.colorSchemeStorageKey, + modeStorageKey: Xd.modeStorageKey, + defaultColorScheme: { + light: Xd.defaultLightColorScheme, + dark: Xd.defaultDarkColorScheme + }, + resolveTheme: (o) => { + const u = { + ...o, + typography: YS(o.palette, o.typography) + }; + return u.unstable_sx = function(d) { + return jo({ + sx: d, + theme: this + }); + }, u; + } +}), DM = _M; +function zM({ + theme: o, + ...u +}) { + const s = V.useMemo(() => { + if (typeof o == "function") + return o; + const d = Ba in o ? o[Ba] : o; + return "colorSchemes" in d ? null : "vars" in d ? o : { + ...o, + vars: null + }; + }, [o]); + return s ? /* @__PURE__ */ Y.jsx(wM, { + theme: s, + ...u + }) : /* @__PURE__ */ Y.jsx(DM, { + theme: o, + ...u + }); +} +const LM = Z0("MuiBox", ["root"]), NM = Zp(), Ye = FR({ + themeId: Ba, + defaultTheme: NM, + defaultClassName: LM.root, + generateClassName: RS.generate +}); +process.env.NODE_ENV !== "production" && (Ye.propTypes = { + // ┌────────────────────────────── Warning ──────────────────────────────┐ + // │ These PropTypes are generated from the TypeScript type definitions. │ + // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ + // └─────────────────────────────────────────────────────────────────────┘ + /** + * @ignore + */ + children: h.node, + /** + * The component used for the root node. + * Either a string to use a HTML element or a component. + */ + component: h.elementType, + /** + * The system prop that allows defining system overrides as well as additional CSS styles. + */ + sx: h.oneOfType([h.arrayOf(h.oneOfType([h.func, h.object, h.bool])), h.func, h.object]) +}); +const _0 = ZA({ + createStyledComponent: pe("div", { + name: "MuiStack", + slot: "Root" + }), + useThemeProps: (o) => U0({ + props: o, + name: "MuiStack" + }) +}); +process.env.NODE_ENV !== "production" && (_0.propTypes = { + // ┌────────────────────────────── Warning ──────────────────────────────┐ + // │ These PropTypes are generated from the TypeScript type definitions. │ + // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ + // └─────────────────────────────────────────────────────────────────────┘ + /** + * The content of the component. + */ + children: h.node, + /** + * The component used for the root node. + * Either a string to use a HTML element or a component. + */ + component: h.elementType, + /** + * Defines the `flex-direction` style property. + * It is applied for all screen sizes. + * @default 'column' + */ + direction: h.oneOfType([h.oneOf(["column-reverse", "column", "row-reverse", "row"]), h.arrayOf(h.oneOf(["column-reverse", "column", "row-reverse", "row"])), h.object]), + /** + * Add an element between each child. + */ + divider: h.node, + /** + * Defines the space between immediate children. + * @default 0 + */ + spacing: h.oneOfType([h.arrayOf(h.oneOfType([h.number, h.string])), h.number, h.object, h.string]), + /** + * The system prop, which allows defining system overrides as well as additional CSS styles. + */ + sx: h.oneOfType([h.arrayOf(h.oneOfType([h.func, h.object, h.bool])), h.func, h.object]), + /** + * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children. + * + * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations), + * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag. + * + * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration. + * @default false + */ + useFlexGap: h.bool +}); +const sb = "https://pollen-robotics-reachy-mini-central.hf.space"; +function e7() { + if (typeof window > "u") return sb; + try { + const s = new URLSearchParams(window.location.search).get( + "signaling_url" + ); + if (s && /^https?:\/\//.test(s)) + return s; + } catch { + } + const u = (window.huggingface?.variables ?? void 0)?.SIGNALING_URL; + return u && /^https?:\/\//.test(u) ? u : sb; +} +const jM = "reachy_mini_oauth_client_id", aC = "reachy_mini_oauth_pending", HC = "reachy_mini_signed_out", IS = "hf_token", KS = "hf_username", JS = "hf_token_expires", UM = 900 * 1e3; +function BM(o) { + if (o) return { clientId: o, source: "caller" }; + const u = window.huggingface?.variables?.OAUTH_CLIENT_ID; + if (u) return { clientId: u, source: "space" }; + try { + const s = window.localStorage.getItem(jM); + if (s) return { clientId: s, source: "localStorage" }; + } catch { + } + return { clientId: void 0, source: "none" }; +} +let Cp = null; +function FS(o) { + Cp = o; + try { + window.sessionStorage.setItem(IS, o.token), window.sessionStorage.setItem(KS, o.userName), window.sessionStorage.setItem( + JS, + new Date(Date.now() + UM).toISOString() + ); + } catch { + } +} +function WS() { + return Cp !== null; +} +function HM() { + return Cp ? (FS(Cp), !0) : !1; +} +function $M() { + try { + window.localStorage.setItem(aC, "1"); + } catch { + } +} +function eE() { + try { + const o = window.localStorage.getItem(aC); + return o && window.localStorage.removeItem(aC), o === "1"; + } catch { + return !1; + } +} +function VM() { + try { + window.localStorage.setItem(HC, "1"); + } catch { + } +} +function tE() { + try { + window.localStorage.removeItem(HC); + } catch { + } +} +function kM() { + try { + return window.localStorage.getItem(HC) === "1"; + } catch { + return !1; + } +} +function YM() { + try { + window.sessionStorage.removeItem(IS), window.sessionStorage.removeItem(KS), window.sessionStorage.removeItem(JS); + } catch { + } +} +function qM() { + if (typeof window > "u") return null; + try { + const o = new URLSearchParams(window.location.search).get("config"); + if (!o) return null; + const u = atob(o); + return JSON.parse(u); + } catch { + return null; + } +} +const lC = "https://huggingface.co", ZM = 8e3, Pd = /* @__PURE__ */ new Map(); +function GM(o) { + return o ? o.startsWith("http://") || o.startsWith("https://") ? o : o.startsWith("//") ? `https:${o}` : o.startsWith("/") ? `${lC}${o}` : `${lC}/${o}` : null; +} +async function XM(o) { + const u = new AbortController(), s = setTimeout(() => u.abort(), ZM); + try { + const d = await fetch(`${lC}/api/whoami-v2`, { + method: "GET", + headers: { + Authorization: `Bearer ${o}`, + Accept: "application/json" + }, + signal: u.signal + }); + if (!d.ok) + throw new Error(`HF whoami HTTP ${d.status}`); + const m = await d.json(); + return { + username: m.name ?? m.fullname ?? null, + avatarUrl: GM(m.avatarUrl) + }; + } finally { + clearTimeout(s); + } +} +const fb = { username: null, avatarUrl: null }; +function PM(o) { + const [u, s] = V.useState( + () => o && Pd.has(o) ? Pd.get(o) : fb + ); + return V.useEffect(() => { + if (!o) { + s(fb); + return; + } + const d = Pd.get(o); + if (d) { + s(d); + return; + } + let m = !1; + return XM(o).then((y) => { + m || (Pd.set(o, y), s(y)); + }).catch(() => { + }), () => { + m = !0; + }; + }, [o]), u; +} +let Um = null; +function QM() { + return Um === null && (Um = eE()), Um; +} +function IM(o) { + const [u, s] = V.useState( + () => !!o?.isAuthenticated + ), [d, m] = V.useState( + () => o?.username ?? null + ), [y, b] = V.useState( + () => QM() + ); + V.useEffect(() => { + if (!o || kM()) return; + let x = !0; + return (async () => { + try { + const M = await o.authenticate(); + if (!x) return; + s(M), m(o.username), M && b(!1); + } catch (M) { + console.warn("[@reachy-mini/host] authenticate() threw", M); + } + })(), () => { + x = !1; + }; + }, [o]), V.useEffect(() => { + if (!o) return; + const x = () => { + s(o.isAuthenticated), m(o.username), o.isAuthenticated && b(!1); + }; + return o.addEventListener("connected", x), o.addEventListener("disconnected", x), () => { + o.removeEventListener("connected", x), o.removeEventListener("disconnected", x); + }; + }, [o]); + const S = V.useCallback(async () => { + if (o) { + if (tE(), WS()) { + HM(); + try { + const x = await o.authenticate(); + s(x), m(o.username), x && b(!0); + } catch (x) { + throw console.error("[@reachy-mini/host] dev-token authenticate() threw", x), x; + } + return; + } + $M(); + try { + await o.login(); + } catch (x) { + throw console.error("[@reachy-mini/host] sdk.login() threw", x), eE(), x; + } + } + }, [o]), T = V.useCallback(() => { + if (o) { + try { + o.logout(); + } catch (x) { + console.warn("[@reachy-mini/host] sdk.logout() threw", x); + } + VM(), s(!1), m(null), b(!1); + } + }, [o]); + return { + isAuthenticated: u, + userName: d, + isPostOauthReturn: y, + signIn: S, + signOut: T + }; +} +const KM = 8e3; +function JM(o) { + if (!o) return null; + const u = o.id ?? o.peerId ?? o.peer_id; + return typeof u == "string" && u.length > 0 ? u : null; +} +function FM(o) { + const u = JM(o); + if (!u) return null; + const s = o.meta?.name ?? o.name, d = typeof o.meta?.transport == "string" && o.meta.transport.length > 0 ? o.meta.transport : null, m = typeof o.meta?.hardware_id == "string" && o.meta.hardware_id.length > 0 ? o.meta.hardware_id : null; + return { + id: u, + meta: s ? { name: s } : void 0, + busy: o.busy === !0, + activeApp: typeof o.activeApp == "string" && o.activeApp.trim().length > 0 ? o.activeApp : null, + transport: d, + hardwareId: m + }; +} +async function WM(o) { + const { signalingUrl: u, hfToken: s } = o; + if (!s) return { ok: !1, robots: [], reason: "No HF token" }; + if (!u) + return { ok: !1, robots: [], reason: "No signaling URL" }; + const d = `${u.replace(/\/$/, "")}/api/robot-status`, m = new AbortController(), y = setTimeout(() => m.abort(), KM), b = o.signal ? ew([m.signal, o.signal]) : m.signal; + try { + const S = await fetch(d, { + method: "GET", + headers: { + Authorization: `Bearer ${s}`, + Accept: "application/json" + }, + signal: b + }); + if (S.status === 401 || S.status === 403) + return { ok: !1, robots: [], reason: "Token rejected by Hugging Face" }; + if (!S.ok) + return { + ok: !1, + robots: [], + reason: `Central returned HTTP ${S.status}` + }; + const T = await S.json(); + return { ok: !0, robots: (Array.isArray(T.robots) ? T.robots : []).map(FM).filter((A) => A != null) }; + } catch (S) { + if (S instanceof DOMException && S.name === "AbortError") + return { ok: !1, robots: [], reason: "Central request timed out" }; + const T = S instanceof Error ? S.message : String(S); + return { ok: !1, robots: [], reason: `Network error: ${T}` }; + } finally { + clearTimeout(y); + } +} +function ew(o) { + const u = new AbortController(); + for (const s of o) { + if (s.aborted) + return u.abort(), u.signal; + s.addEventListener("abort", () => u.abort(), { once: !0 }); + } + return u.signal; +} +const db = 1e3, pb = 3e4, tw = "Reachy Mini Host (picker)"; +function nw(o) { + const { signalingUrl: u, token: s } = o; + let d = !1, m = null, y = null, b = db; + const S = () => { + d || (d = !0, y !== null && (clearTimeout(y), y = null), m !== null && (m.abort(), m = null)); + }, T = (R) => { + if (d) return; + o.onDisconnect?.(R); + const _ = b * (Math.random() - 0.5) * 0.5, B = Math.min(pb, Math.round(b + _)); + y = setTimeout(() => { + y = null, b = Math.min(pb, b * 2), A(); + }, B); + }, x = async () => { + try { + const R = await fetch(`${u}/send`, { + method: "POST", + headers: { + "Content-Type": "application/json", + Authorization: `Bearer ${s}` + }, + body: JSON.stringify({ + type: "setPeerStatus", + roles: ["listener"], + meta: { name: tw } + }), + signal: m?.signal + }); + R.ok || o.onError?.( + new Error(`setPeerStatus(listener) returned HTTP ${R.status}`) + ); + } catch (R) { + if (R instanceof DOMException && R.name === "AbortError") return; + o.onError?.(R instanceof Error ? R : new Error(String(R))); + } + }, M = (R) => { + switch (R.type) { + case "welcome": + b = db, x(), o.onConnect?.(); + return; + case "list": + o.onList?.({ + producers: Array.isArray(R.producers) ? R.producers : [] + }); + return; + case "peerStatusChanged": + o.onPeerStatusChanged?.({ + peerId: typeof R.peerId == "string" ? R.peerId : "", + roles: Array.isArray(R.roles) ? R.roles : [], + meta: R.meta && typeof R.meta == "object" ? R.meta : void 0 + }); + return; + case "sessionStateChanged": + o.onSessionStateChanged?.({ + peerId: typeof R.peerId == "string" ? R.peerId : "", + busy: R.busy === !0, + activeApp: typeof R.activeApp == "string" ? R.activeApp : null, + meta: R.meta && typeof R.meta == "object" ? R.meta : void 0 + }); + return; + // Other types (`peer`, `startSession`, `endSession`, `ping`) + // only fire when this peer becomes consumer / producer. As + // a pure listener we ignore them. + default: + return; + } + }, A = async () => { + if (d) return; + m = new AbortController(); + const R = m.signal; + let _; + try { + _ = await fetch(`${u}/events`, { + method: "GET", + headers: { Authorization: `Bearer ${s}` }, + signal: R + }); + } catch (Z) { + if (d) return; + const F = Z instanceof Error ? Z.message : String(Z); + T(`fetch failed: ${F}`); + return; + } + if (_.status === 401 || _.status === 403) { + o.onError?.( + new Error( + `Hugging Face central rejected the token (HTTP ${_.status})` + ) + ), S(), o.onDisconnect?.("auth_rejected"); + return; + } + if (!_.ok || _.body === null) { + T(`HTTP ${_.status}`); + return; + } + const B = _.body.getReader(), z = new TextDecoder(); + let q = ""; + try { + for (; ; ) { + const { done: Z, value: F } = await B.read(); + if (Z) break; + q += z.decode(F, { stream: !0 }); + const G = q.split(` +`); + q = G.pop() ?? ""; + for (const k of G) { + if (!k.startsWith("data:")) continue; + const $ = k.slice(5).trim(); + if ($.length !== 0) + try { + M(JSON.parse($)); + } catch (K) { + o.onError?.( + K instanceof Error ? K : new Error(String(K)) + ); + } + } + } + if (d) return; + T("stream ended"); + } catch (Z) { + if (R.aborted || d) return; + const F = Z instanceof Error ? Z.message : String(Z); + T(`read failed: ${F}`); + } + }; + return A(), { close: S }; +} +const aw = 6e4; +function lw(o) { + const { hfToken: u, enabled: s } = o, [d, m] = V.useState([]), [y, b] = V.useState(!1), [S, T] = V.useState(!1), [x, M] = V.useState(null), A = V.useRef(!1), R = V.useRef(null), _ = V.useRef(null), B = V.useCallback(() => { + R.current && (R.current.abort(), R.current = null); + }, []), z = V.useCallback(async () => { + if (!u) return; + B(); + const F = new AbortController(); + R.current = F, A.current || b(!0), T(!0); + try { + const G = await WM({ + signalingUrl: e7(), + hfToken: u, + signal: F.signal + }); + if (F.signal.aborted) return; + G.ok ? (m(G.robots), M(null)) : M(G.reason ?? "Unknown error"), A.current = !0; + } finally { + R.current === F && (R.current = null), b(!1), T(!1); + } + }, [B, u]); + V.useEffect(() => { + if (!s || !u) { + A.current = !1, m([]), M(null); + return; + } + return z(), _.current = window.setInterval(() => { + z(); + }, aw), () => { + _.current != null && (window.clearInterval(_.current), _.current = null), B(); + }; + }, [B, z, s, u]); + const q = V.useRef(null); + V.useEffect(() => { + if (!s || !u) return; + const F = e7(), G = nw({ + token: u, + signalingUrl: F, + onConnect: () => { + q.current !== null && (q.current = null, z()); + }, + onDisconnect: () => { + q.current = Date.now(); + }, + onList: (k) => { + m(k.producers.map(ow)), M(null), A.current = !0; + }, + onPeerStatusChanged: (k) => { + k.roles.length === 0 ? m(($) => $.filter((K) => K.id !== k.peerId)) : z(); + }, + onSessionStateChanged: (k) => { + m( + ($) => $.map( + (K) => K.id === k.peerId ? { ...K, busy: k.busy, activeApp: k.activeApp } : K + ) + ); + }, + onError: (k) => { + console.warn( + "[@reachy-mini/host] central listener error:", + k.message + ); + } + }); + return () => G.close(); + }, [z, s, u]); + const Z = V.useCallback(() => { + !s || !u || z(); + }, [z, s, u]); + return { robots: d, isLoading: y, isRefreshing: S, error: x, refresh: Z }; +} +function ow(o) { + const u = o.meta ?? {}, s = typeof u.transport == "string" && u.transport.length > 0 ? u.transport : null, d = typeof u.hardware_id == "string" && u.hardware_id.length > 0 ? u.hardware_id : null; + return { + id: o.id, + meta: u.name ? { name: u.name } : void 0, + busy: o.busy === !0, + activeApp: typeof o.activeApp == "string" && o.activeApp.trim().length > 0 ? o.activeApp : null, + transport: s, + hardwareId: d + }; +} +function rw(o) { + const u = V.useRef(o); + u.current = o, V.useEffect(() => { + const b = window.location.origin, S = (T) => { + if (T.origin !== b || !Lx(T.data)) return; + const x = T.data; + switch (x.type) { + case "embed:ready": + u.current.onEmbedReady(); + return; + case "embed:app-state": + u.current.onAppState({ + phase: x.phase, + connectingStep: x.connectingStep ?? null, + message: x.message ?? null + }); + return; + case "embed:request-leave": + u.current.onRequestLeave(); + return; + case "embed:error": + u.current.onError({ + message: x.message, + fatal: x.fatal, + detail: x.detail + }); + return; + default: { + const M = x; + if (M?.type === "embed:debug") { + let A = ""; + try { + A = JSON.stringify(M.payload ?? {}); + } catch { + A = ""; + } + console.info(`[host-debug] embed:${M.tag ?? "?"} ${A}`); + } + return; + } + } + }; + return window.addEventListener("message", S), () => window.removeEventListener("message", S); + }, []); + const s = V.useCallback( + (b, S) => { + Qd(b, { + ...S, + source: Bd, + type: "host:init", + version: Ud + }); + }, + [] + ), d = V.useCallback( + (b, S) => { + Qd(b, { + source: Bd, + type: "host:theme-changed", + version: Ud, + theme: S + }); + }, + [] + ), m = V.useCallback( + (b, S) => { + Qd(b, { + source: Bd, + type: "host:config-changed", + version: Ud, + config: S + }); + }, + [] + ), y = V.useCallback( + (b, S, T) => { + Qd(b, { + source: Bd, + type: "host:leaving", + version: Ud, + reason: S, + timeoutMs: T + }); + }, + [] + ); + return { sendInit: s, sendThemeChanged: d, sendConfigChanged: m, sendLeaving: y }; +} +function Qd(o, u) { + if (o.contentWindow) + try { + o.contentWindow.postMessage(u, window.location.origin); + } catch (s) { + console.warn("[@reachy-mini/host] postMessage to embed failed", s); + } +} +function hb(...o) { + return o.reduce((u, s) => s == null ? u : function(...m) { + u.apply(this, m), s.apply(this, m); + }, () => { + }); +} +const st = xA; +function iw(o) { + return j0("MuiSvgIcon", o); +} +Z0("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]); +const uw = (o) => { + const { + color: u, + fontSize: s, + classes: d + } = o, m = { + root: ["root", u !== "inherit" && `color${I2(u)}`, `fontSize${I2(s)}`] + }; + return I0(m, iw, d); +}, cw = pe("svg", { + name: "MuiSvgIcon", + slot: "Root", + overridesResolver: (o, u) => { + const { + ownerState: s + } = o; + return [u.root, s.color !== "inherit" && u[`color${I2(s.color)}`], u[`fontSize${I2(s.fontSize)}`]]; + } +})(st(({ + theme: o +}) => ({ + userSelect: "none", + width: "1em", + height: "1em", + display: "inline-block", + flexShrink: 0, + transition: o.transitions?.create?.("fill", { + duration: (o.vars ?? o).transitions?.duration?.shorter + }), + variants: [ + { + props: (u) => !u.hasSvgAsChild, + style: { + // the will define the property that has `currentColor` + // for example heroicons uses fill="none" and stroke="currentColor" + fill: "currentColor" + } + }, + { + props: { + fontSize: "inherit" + }, + style: { + fontSize: "inherit" + } + }, + { + props: { + fontSize: "small" + }, + style: { + fontSize: o.typography?.pxToRem?.(20) || "1.25rem" + } + }, + { + props: { + fontSize: "medium" + }, + style: { + fontSize: o.typography?.pxToRem?.(24) || "1.5rem" + } + }, + { + props: { + fontSize: "large" + }, + style: { + fontSize: o.typography?.pxToRem?.(35) || "2.1875rem" + } + }, + // TODO v5 deprecate color prop, v6 remove for sx + ...Object.entries((o.vars ?? o).palette).filter(([, u]) => u && u.main).map(([u]) => ({ + props: { + color: u + }, + style: { + color: (o.vars ?? o).palette?.[u]?.main + } + })), + { + props: { + color: "action" + }, + style: { + color: (o.vars ?? o).palette?.action?.active + } + }, + { + props: { + color: "disabled" + }, + style: { + color: (o.vars ?? o).palette?.action?.disabled + } + }, + { + props: { + color: "inherit" + }, + style: { + color: void 0 + } + } + ] +}))), yp = /* @__PURE__ */ V.forwardRef(function(u, s) { + const d = U0({ + props: u, + name: "MuiSvgIcon" + }), { + children: m, + className: y, + color: b = "inherit", + component: S = "svg", + fontSize: T = "medium", + htmlColor: x, + inheritViewBox: M = !1, + titleAccess: A, + viewBox: R = "0 0 24 24", + ..._ + } = d, B = /* @__PURE__ */ V.isValidElement(m) && m.type === "svg", z = { + ...d, + color: b, + component: S, + fontSize: T, + instanceFontSize: u.fontSize, + inheritViewBox: M, + viewBox: R, + hasSvgAsChild: B + }, q = {}; + M || (q.viewBox = R); + const Z = uw(z); + return /* @__PURE__ */ Y.jsxs(cw, { + as: S, + className: Ce(Z.root, y), + focusable: "false", + color: x, + "aria-hidden": A ? void 0 : !0, + role: A ? "img" : void 0, + ref: s, + ...q, + ..._, + ...B && m.props, + ownerState: z, + children: [B ? m.props.children : m, A ? /* @__PURE__ */ Y.jsx("title", { + children: A + }) : null] + }); +}); +process.env.NODE_ENV !== "production" && (yp.propTypes = { + // ┌────────────────────────────── Warning ──────────────────────────────┐ + // │ These PropTypes are generated from the TypeScript type definitions. │ + // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ + // └─────────────────────────────────────────────────────────────────────┘ + /** + * Node passed into the SVG element. + */ + children: h.node, + /** + * Override or extend the styles applied to the component. + */ + classes: h.object, + /** + * @ignore + */ + className: h.string, + /** + * The color of the component. + * It supports both default and custom theme colors, which can be added as shown in the + * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors). + * You can use the `htmlColor` prop to apply a color attribute to the SVG element. + * @default 'inherit' + */ + color: h.oneOfType([h.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), h.string]), + /** + * The component used for the root node. + * Either a string to use a HTML element or a component. + */ + component: h.elementType, + /** + * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size. + * @default 'medium' + */ + fontSize: h.oneOfType([h.oneOf(["inherit", "large", "medium", "small"]), h.string]), + /** + * Applies a color attribute to the SVG element. + */ + htmlColor: h.string, + /** + * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox` + * prop will be ignored. + * Useful when you want to reference a custom `component` and have `SvgIcon` pass that + * `component`'s viewBox to the root node. + * @default false + */ + inheritViewBox: h.bool, + /** + * The shape-rendering attribute. The behavior of the different options is described on the + * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering). + * If you are having issues with blurry icons you should investigate this prop. + */ + shapeRendering: h.string, + /** + * The system prop that allows defining system overrides as well as additional CSS styles. + */ + sx: h.oneOfType([h.arrayOf(h.oneOfType([h.func, h.object, h.bool])), h.func, h.object]), + /** + * Provides a human-readable title for the element that contains it. + * https://www.w3.org/TR/SVG-access/#Equivalent + */ + titleAccess: h.string, + /** + * Allows you to redefine what the coordinates without units mean inside an SVG element. + * For example, if the SVG element is 500 (width) by 200 (height), + * and you pass viewBox="0 0 50 20", + * this means that the coordinates inside the SVG will go from the top left corner (0,0) + * to bottom right (50,20) and each unit will be worth 10px. + * @default '0 0 24 24' + */ + viewBox: h.string +}); +yp.muiName = "SvgIcon"; +function $4(o, u) { + function s(d, m) { + return /* @__PURE__ */ Y.jsx(yp, { + "data-testid": process.env.NODE_ENV !== "production" ? `${u}Icon` : void 0, + ref: m, + ...d, + children: o + }); + } + return process.env.NODE_ENV !== "production" && (s.displayName = `${u}Icon`), s.muiName = yp.muiName, /* @__PURE__ */ V.memo(/* @__PURE__ */ V.forwardRef(s)); +} +function sw(o, u = 166) { + let s; + function d(...m) { + const y = () => { + o.apply(this, m); + }; + clearTimeout(s), s = setTimeout(y, u); + } + return d.clear = () => { + clearTimeout(s); + }, d; +} +function c8(o) { + return o && o.ownerDocument || document; +} +function Bi(o) { + return c8(o).defaultView || window; +} +function mb(o, u) { + typeof o == "function" ? o(u) : o && (o.current = u); +} +function fw(o, u, s, d, m) { + if (process.env.NODE_ENV === "production") + return null; + const y = m || u; + return typeof o[u] < "u" ? new Error(`The prop \`${y}\` is not supported. Please remove it.`) : null; +} +function dw(o) { + const { + controlled: u, + default: s, + name: d, + state: m = "value" + } = o, { + current: y + } = V.useRef(u !== void 0), [b, S] = V.useState(s), T = y ? u : b; + if (process.env.NODE_ENV !== "production") { + V.useEffect(() => { + y !== (u !== void 0) && console.error([`MUI: A component is changing the ${y ? "" : "un"}controlled ${m} state of ${d} to be ${y ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${d} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(` +`)); + }, [m, d, u]); + const { + current: M + } = V.useRef(s); + V.useEffect(() => { + !y && JSON.stringify(s) !== JSON.stringify(M) && console.error([`MUI: A component is changing the default ${m} state of an uncontrolled ${d} after being initialized. To suppress this warning opt to use a controlled ${d}.`].join(` +`)); + }, [JSON.stringify(s)]); + } + const x = V.useCallback((M) => { + y || S(M); + }, []); + return [T, x]; +} +function No(o) { + const u = V.useRef(o); + return $a(() => { + u.current = o; + }), V.useRef((...s) => ( + // @ts-expect-error hide `this` + (0, u.current)(...s) + )).current; +} +function H4(...o) { + const u = V.useRef(void 0), s = V.useCallback((d) => { + const m = o.map((y) => { + if (y == null) + return null; + if (typeof y == "function") { + const b = y, S = b(d); + return typeof S == "function" ? S : () => { + b(null); + }; + } + return y.current = d, () => { + y.current = null; + }; + }); + return () => { + m.forEach((y) => y?.()); + }; + }, o); + return V.useMemo(() => o.every((d) => d == null) ? null : (d) => { + u.current && (u.current(), u.current = void 0), d != null && (u.current = s(d)); + }, o); +} +function pw(o, u) { + const s = o.charCodeAt(2); + return o[0] === "o" && o[1] === "n" && s >= 65 && s <= 90 && typeof u == "function"; +} +function hw(o, u) { + if (!o) + return u; + function s(b, S) { + const T = {}; + return Object.keys(S).forEach((x) => { + pw(x, S[x]) && typeof b[x] == "function" && (T[x] = (...M) => { + b[x](...M), S[x](...M); + }); + }), T; + } + if (typeof o == "function" || typeof u == "function") + return (b) => { + const S = typeof u == "function" ? u(b) : u, T = typeof o == "function" ? o({ + ...b, + ...S + }) : o, x = Ce(b?.className, S?.className, T?.className), M = s(T, S); + return { + ...S, + ...T, + ...M, + ...!!x && { + className: x + }, + ...S?.style && T?.style && { + style: { + ...S.style, + ...T.style + } + }, + ...S?.sx && T?.sx && { + sx: [...Array.isArray(S.sx) ? S.sx : [S.sx], ...Array.isArray(T.sx) ? T.sx : [T.sx]] + } + }; + }; + const d = u, m = s(o, d), y = Ce(d?.className, o?.className); + return { + ...u, + ...o, + ...m, + ...!!y && { + className: y + }, + ...d?.style && o?.style && { + style: { + ...d.style, + ...o.style + } + }, + ...d?.sx && o?.sx && { + sx: [...Array.isArray(d.sx) ? d.sx : [d.sx], ...Array.isArray(o.sx) ? o.sx : [o.sx]] + } + }; +} +function Vo(o, u) { + return process.env.NODE_ENV === "production" ? () => null : function(...d) { + return o(...d) || u(...d); + }; +} +function nE(o, u) { + if (o == null) return {}; + var s = {}; + for (var d in o) if ({}.hasOwnProperty.call(o, d)) { + if (u.indexOf(d) !== -1) continue; + s[d] = o[d]; + } + return s; +} +function oC(o, u) { + return oC = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(s, d) { + return s.__proto__ = d, s; + }, oC(o, u); +} +function aE(o, u) { + o.prototype = Object.create(u.prototype), o.prototype.constructor = o, oC(o, u); +} +var Id = { exports: {} }, j4 = {}; +var Cb; +function mw() { + if (Cb) return j4; + Cb = 1; + var o = A5(); + function u(T) { + var x = "https://react.dev/errors/" + T; + if (1 < arguments.length) { + x += "?args[]=" + encodeURIComponent(arguments[1]); + for (var M = 2; M < arguments.length; M++) + x += "&args[]=" + encodeURIComponent(arguments[M]); + } + return "Minified React error #" + T + "; visit " + x + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; + } + function s() { + } + var d = { + d: { + f: s, + r: function() { + throw Error(u(522)); + }, + D: s, + C: s, + L: s, + m: s, + X: s, + S: s, + M: s + }, + p: 0, + findDOMNode: null + }, m = /* @__PURE__ */ Symbol.for("react.portal"); + function y(T, x, M) { + var A = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; + return { + $$typeof: m, + key: A == null ? null : "" + A, + children: T, + containerInfo: x, + implementation: M + }; + } + var b = o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; + function S(T, x) { + if (T === "font") return ""; + if (typeof x == "string") + return x === "use-credentials" ? x : ""; + } + return j4.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = d, j4.createPortal = function(T, x) { + var M = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; + if (!x || x.nodeType !== 1 && x.nodeType !== 9 && x.nodeType !== 11) + throw Error(u(299)); + return y(T, x, null, M); + }, j4.flushSync = function(T) { + var x = b.T, M = d.p; + try { + if (b.T = null, d.p = 2, T) return T(); + } finally { + b.T = x, d.p = M, d.d.f(); + } + }, j4.preconnect = function(T, x) { + typeof T == "string" && (x ? (x = x.crossOrigin, x = typeof x == "string" ? x === "use-credentials" ? x : "" : void 0) : x = null, d.d.C(T, x)); + }, j4.prefetchDNS = function(T) { + typeof T == "string" && d.d.D(T); + }, j4.preinit = function(T, x) { + if (typeof T == "string" && x && typeof x.as == "string") { + var M = x.as, A = S(M, x.crossOrigin), R = typeof x.integrity == "string" ? x.integrity : void 0, _ = typeof x.fetchPriority == "string" ? x.fetchPriority : void 0; + M === "style" ? d.d.S( + T, + typeof x.precedence == "string" ? x.precedence : void 0, + { + crossOrigin: A, + integrity: R, + fetchPriority: _ + } + ) : M === "script" && d.d.X(T, { + crossOrigin: A, + integrity: R, + fetchPriority: _, + nonce: typeof x.nonce == "string" ? x.nonce : void 0 + }); + } + }, j4.preinitModule = function(T, x) { + if (typeof T == "string") + if (typeof x == "object" && x !== null) { + if (x.as == null || x.as === "script") { + var M = S( + x.as, + x.crossOrigin + ); + d.d.M(T, { + crossOrigin: M, + integrity: typeof x.integrity == "string" ? x.integrity : void 0, + nonce: typeof x.nonce == "string" ? x.nonce : void 0 + }); + } + } else x == null && d.d.M(T); + }, j4.preload = function(T, x) { + if (typeof T == "string" && typeof x == "object" && x !== null && typeof x.as == "string") { + var M = x.as, A = S(M, x.crossOrigin); + d.d.L(T, M, { + crossOrigin: A, + integrity: typeof x.integrity == "string" ? x.integrity : void 0, + nonce: typeof x.nonce == "string" ? x.nonce : void 0, + type: typeof x.type == "string" ? x.type : void 0, + fetchPriority: typeof x.fetchPriority == "string" ? x.fetchPriority : void 0, + referrerPolicy: typeof x.referrerPolicy == "string" ? x.referrerPolicy : void 0, + imageSrcSet: typeof x.imageSrcSet == "string" ? x.imageSrcSet : void 0, + imageSizes: typeof x.imageSizes == "string" ? x.imageSizes : void 0, + media: typeof x.media == "string" ? x.media : void 0 + }); + } + }, j4.preloadModule = function(T, x) { + if (typeof T == "string") + if (x) { + var M = S(x.as, x.crossOrigin); + d.d.m(T, { + as: typeof x.as == "string" && x.as !== "script" ? x.as : void 0, + crossOrigin: M, + integrity: typeof x.integrity == "string" ? x.integrity : void 0 + }); + } else d.d.m(T); + }, j4.requestFormReset = function(T) { + d.d.r(T); + }, j4.unstable_batchedUpdates = function(T, x) { + return T(x); + }, j4.useFormState = function(T, x, M) { + return b.H.useFormState(T, x, M); + }, j4.useFormStatus = function() { + return b.H.useHostTransitionStatus(); + }, j4.version = "19.2.6", j4; +} +var U4 = {}; +var yb; +function Cw() { + return yb || (yb = 1, process.env.NODE_ENV !== "production" && (function() { + function o() { + } + function u(A) { + return "" + A; + } + function s(A, R, _) { + var B = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null; + try { + u(B); + var z = !1; + } catch { + z = !0; + } + return z && (console.error( + "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", + typeof Symbol == "function" && Symbol.toStringTag && B[Symbol.toStringTag] || B.constructor.name || "Object" + ), u(B)), { + $$typeof: x, + key: B == null ? null : "" + B, + children: A, + containerInfo: R, + implementation: _ + }; + } + function d(A, R) { + if (A === "font") return ""; + if (typeof R == "string") + return R === "use-credentials" ? R : ""; + } + function m(A) { + return A === null ? "`null`" : A === void 0 ? "`undefined`" : A === "" ? "an empty string" : 'something with type "' + typeof A + '"'; + } + function y(A) { + return A === null ? "`null`" : A === void 0 ? "`undefined`" : A === "" ? "an empty string" : typeof A == "string" ? JSON.stringify(A) : typeof A == "number" ? "`" + A + "`" : 'something with type "' + typeof A + '"'; + } + function b() { + var A = M.H; + return A === null && console.error( + `Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: +1. You might have mismatching versions of React and the renderer (such as React DOM) +2. You might be breaking the Rules of Hooks +3. You might have more than one copy of React in the same app +See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.` + ), A; + } + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); + var S = A5(), T = { + d: { + f: o, + r: function() { + throw Error( + "Invalid form element. requestFormReset must be passed a form that was rendered by React." + ); + }, + D: o, + C: o, + L: o, + m: o, + X: o, + S: o, + M: o + }, + p: 0, + findDOMNode: null + }, x = /* @__PURE__ */ Symbol.for("react.portal"), M = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; + typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error( + "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills" + ), U4.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = T, U4.createPortal = function(A, R) { + var _ = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null; + if (!R || R.nodeType !== 1 && R.nodeType !== 9 && R.nodeType !== 11) + throw Error("Target container is not a DOM element."); + return s(A, R, null, _); + }, U4.flushSync = function(A) { + var R = M.T, _ = T.p; + try { + if (M.T = null, T.p = 2, A) + return A(); + } finally { + M.T = R, T.p = _, T.d.f() && console.error( + "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task." + ); + } + }, U4.preconnect = function(A, R) { + typeof A == "string" && A ? R != null && typeof R != "object" ? console.error( + "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.", + y(R) + ) : R != null && typeof R.crossOrigin != "string" && console.error( + "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.", + m(R.crossOrigin) + ) : console.error( + "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", + m(A) + ), typeof A == "string" && (R ? (R = R.crossOrigin, R = typeof R == "string" ? R === "use-credentials" ? R : "" : void 0) : R = null, T.d.C(A, R)); + }, U4.prefetchDNS = function(A) { + if (typeof A != "string" || !A) + console.error( + "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", + m(A) + ); + else if (1 < arguments.length) { + var R = arguments[1]; + typeof R == "object" && R.hasOwnProperty("crossOrigin") ? console.error( + "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.", + y(R) + ) : console.error( + "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.", + y(R) + ); + } + typeof A == "string" && T.d.D(A); + }, U4.preinit = function(A, R) { + if (typeof A == "string" && A ? R == null || typeof R != "object" ? console.error( + "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.", + y(R) + ) : R.as !== "style" && R.as !== "script" && console.error( + 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".', + y(R.as) + ) : console.error( + "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.", + m(A) + ), typeof A == "string" && R && typeof R.as == "string") { + var _ = R.as, B = d(_, R.crossOrigin), z = typeof R.integrity == "string" ? R.integrity : void 0, q = typeof R.fetchPriority == "string" ? R.fetchPriority : void 0; + _ === "style" ? T.d.S( + A, + typeof R.precedence == "string" ? R.precedence : void 0, + { + crossOrigin: B, + integrity: z, + fetchPriority: q + } + ) : _ === "script" && T.d.X(A, { + crossOrigin: B, + integrity: z, + fetchPriority: q, + nonce: typeof R.nonce == "string" ? R.nonce : void 0 + }); + } + }, U4.preinitModule = function(A, R) { + var _ = ""; + typeof A == "string" && A || (_ += " The `href` argument encountered was " + m(A) + "."), R !== void 0 && typeof R != "object" ? _ += " The `options` argument encountered was " + m(R) + "." : R && "as" in R && R.as !== "script" && (_ += " The `as` option encountered was " + y(R.as) + "."), _ ? console.error( + "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s", + _ + ) : (_ = R && typeof R.as == "string" ? R.as : "script", _) === "script" || (_ = y(_), console.error( + 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)', + _, + A + )), typeof A == "string" && (typeof R == "object" && R !== null ? (R.as == null || R.as === "script") && (_ = d( + R.as, + R.crossOrigin + ), T.d.M(A, { + crossOrigin: _, + integrity: typeof R.integrity == "string" ? R.integrity : void 0, + nonce: typeof R.nonce == "string" ? R.nonce : void 0 + })) : R == null && T.d.M(A)); + }, U4.preload = function(A, R) { + var _ = ""; + if (typeof A == "string" && A || (_ += " The `href` argument encountered was " + m(A) + "."), R == null || typeof R != "object" ? _ += " The `options` argument encountered was " + m(R) + "." : typeof R.as == "string" && R.as || (_ += " The `as` option encountered was " + m(R.as) + "."), _ && console.error( + 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `` tag.%s', + _ + ), typeof A == "string" && typeof R == "object" && R !== null && typeof R.as == "string") { + _ = R.as; + var B = d( + _, + R.crossOrigin + ); + T.d.L(A, _, { + crossOrigin: B, + integrity: typeof R.integrity == "string" ? R.integrity : void 0, + nonce: typeof R.nonce == "string" ? R.nonce : void 0, + type: typeof R.type == "string" ? R.type : void 0, + fetchPriority: typeof R.fetchPriority == "string" ? R.fetchPriority : void 0, + referrerPolicy: typeof R.referrerPolicy == "string" ? R.referrerPolicy : void 0, + imageSrcSet: typeof R.imageSrcSet == "string" ? R.imageSrcSet : void 0, + imageSizes: typeof R.imageSizes == "string" ? R.imageSizes : void 0, + media: typeof R.media == "string" ? R.media : void 0 + }); + } + }, U4.preloadModule = function(A, R) { + var _ = ""; + typeof A == "string" && A || (_ += " The `href` argument encountered was " + m(A) + "."), R !== void 0 && typeof R != "object" ? _ += " The `options` argument encountered was " + m(R) + "." : R && "as" in R && typeof R.as != "string" && (_ += " The `as` option encountered was " + m(R.as) + "."), _ && console.error( + 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `` tag.%s', + _ + ), typeof A == "string" && (R ? (_ = d( + R.as, + R.crossOrigin + ), T.d.m(A, { + as: typeof R.as == "string" && R.as !== "script" ? R.as : void 0, + crossOrigin: _, + integrity: typeof R.integrity == "string" ? R.integrity : void 0 + })) : T.d.m(A)); + }, U4.requestFormReset = function(A) { + T.d.r(A); + }, U4.unstable_batchedUpdates = function(A, R) { + return A(R); + }, U4.useFormState = function(A, R, _) { + return b().useFormState(A, R, _); + }, U4.useFormStatus = function() { + return b().useHostTransitionStatus(); + }, U4.version = "19.2.6", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error()); + })()), U4; +} +var gb; +function $C() { + if (gb) return Id.exports; + gb = 1; + function o() { + if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) { + if (process.env.NODE_ENV !== "production") + throw new Error("^_^"); + try { + __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o); + } catch (u) { + console.error(u); + } + } + } + return process.env.NODE_ENV === "production" ? (o(), Id.exports = mw()) : Id.exports = Cw(), Id.exports; +} +var lE = $C(); +const Kd = /* @__PURE__ */ mC(lE), vb = { + disabled: !1 +}; +var yw = process.env.NODE_ENV !== "production" ? h.oneOfType([h.number, h.shape({ + enter: h.number, + exit: h.number, + appear: h.number +}).isRequired]) : null; +process.env.NODE_ENV !== "production" && h.oneOfType([h.string, h.shape({ + enter: h.string, + exit: h.string, + active: h.string +}), h.shape({ + enter: h.string, + enterDone: h.string, + enterActive: h.string, + exit: h.string, + exitDone: h.string, + exitActive: h.string +})]); +const gp = ja.createContext(null); +var gw = function(u) { + return u.scrollTop; +}, V9 = "unmounted", _i = "exited", Di = "entering", d5 = "entered", rC = "exiting", Ya = /* @__PURE__ */ (function(o) { + aE(u, o); + function u(d, m) { + var y; + y = o.call(this, d, m) || this; + var b = m, S = b && !b.isMounting ? d.enter : d.appear, T; + return y.appearStatus = null, d.in ? S ? (T = _i, y.appearStatus = Di) : T = d5 : d.unmountOnExit || d.mountOnEnter ? T = V9 : T = _i, y.state = { + status: T + }, y.nextCallback = null, y; + } + u.getDerivedStateFromProps = function(m, y) { + var b = m.in; + return b && y.status === V9 ? { + status: _i + } : null; + }; + var s = u.prototype; + return s.componentDidMount = function() { + this.updateStatus(!0, this.appearStatus); + }, s.componentDidUpdate = function(m) { + var y = null; + if (m !== this.props) { + var b = this.state.status; + this.props.in ? b !== Di && b !== d5 && (y = Di) : (b === Di || b === d5) && (y = rC); + } + this.updateStatus(!1, y); + }, s.componentWillUnmount = function() { + this.cancelNextCallback(); + }, s.getTimeouts = function() { + var m = this.props.timeout, y, b, S; + return y = b = S = m, m != null && typeof m != "number" && (y = m.exit, b = m.enter, S = m.appear !== void 0 ? m.appear : b), { + exit: y, + enter: b, + appear: S + }; + }, s.updateStatus = function(m, y) { + if (m === void 0 && (m = !1), y !== null) + if (this.cancelNextCallback(), y === Di) { + if (this.props.unmountOnExit || this.props.mountOnEnter) { + var b = this.props.nodeRef ? this.props.nodeRef.current : Kd.findDOMNode(this); + b && gw(b); + } + this.performEnter(m); + } else + this.performExit(); + else this.props.unmountOnExit && this.state.status === _i && this.setState({ + status: V9 + }); + }, s.performEnter = function(m) { + var y = this, b = this.props.enter, S = this.context ? this.context.isMounting : m, T = this.props.nodeRef ? [S] : [Kd.findDOMNode(this), S], x = T[0], M = T[1], A = this.getTimeouts(), R = S ? A.appear : A.enter; + if (!m && !b || vb.disabled) { + this.safeSetState({ + status: d5 + }, function() { + y.props.onEntered(x); + }); + return; + } + this.props.onEnter(x, M), this.safeSetState({ + status: Di + }, function() { + y.props.onEntering(x, M), y.onTransitionEnd(R, function() { + y.safeSetState({ + status: d5 + }, function() { + y.props.onEntered(x, M); + }); + }); + }); + }, s.performExit = function() { + var m = this, y = this.props.exit, b = this.getTimeouts(), S = this.props.nodeRef ? void 0 : Kd.findDOMNode(this); + if (!y || vb.disabled) { + this.safeSetState({ + status: _i + }, function() { + m.props.onExited(S); + }); + return; + } + this.props.onExit(S), this.safeSetState({ + status: rC + }, function() { + m.props.onExiting(S), m.onTransitionEnd(b.exit, function() { + m.safeSetState({ + status: _i + }, function() { + m.props.onExited(S); + }); + }); + }); + }, s.cancelNextCallback = function() { + this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null); + }, s.safeSetState = function(m, y) { + y = this.setNextCallback(y), this.setState(m, y); + }, s.setNextCallback = function(m) { + var y = this, b = !0; + return this.nextCallback = function(S) { + b && (b = !1, y.nextCallback = null, m(S)); + }, this.nextCallback.cancel = function() { + b = !1; + }, this.nextCallback; + }, s.onTransitionEnd = function(m, y) { + this.setNextCallback(y); + var b = this.props.nodeRef ? this.props.nodeRef.current : Kd.findDOMNode(this), S = m == null && !this.props.addEndListener; + if (!b || S) { + setTimeout(this.nextCallback, 0); + return; + } + if (this.props.addEndListener) { + var T = this.props.nodeRef ? [this.nextCallback] : [b, this.nextCallback], x = T[0], M = T[1]; + this.props.addEndListener(x, M); + } + m != null && setTimeout(this.nextCallback, m); + }, s.render = function() { + var m = this.state.status; + if (m === V9) + return null; + var y = this.props, b = y.children; + y.in, y.mountOnEnter, y.unmountOnExit, y.appear, y.enter, y.exit, y.timeout, y.addEndListener, y.onEnter, y.onEntering, y.onEntered, y.onExit, y.onExiting, y.onExited, y.nodeRef; + var S = nE(y, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]); + return ( + // allows for nested Transitions + /* @__PURE__ */ ja.createElement(gp.Provider, { + value: null + }, typeof b == "function" ? b(m, S) : ja.cloneElement(ja.Children.only(b), S)) + ); + }, u; +})(ja.Component); +Ya.contextType = gp; +Ya.propTypes = process.env.NODE_ENV !== "production" ? { + /** + * A React reference to DOM element that need to transition: + * https://stackoverflow.com/a/51127130/4671932 + * + * - When `nodeRef` prop is used, `node` is not passed to callback functions + * (e.g. `onEnter`) because user already has direct access to the node. + * - When changing `key` prop of `Transition` in a `TransitionGroup` a new + * `nodeRef` need to be provided to `Transition` with changed `key` prop + * (see + * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)). + */ + nodeRef: h.shape({ + current: typeof Element > "u" ? h.any : function(o, u, s, d, m, y) { + var b = o[u]; + return h.instanceOf(b && "ownerDocument" in b ? b.ownerDocument.defaultView.Element : Element)(o, u, s, d, m, y); + } + }), + /** + * A `function` child can be used instead of a React element. This function is + * called with the current transition status (`'entering'`, `'entered'`, + * `'exiting'`, `'exited'`), which can be used to apply context + * specific props to a component. + * + * ```jsx + * + * {state => ( + * + * )} + * + * ``` + */ + children: h.oneOfType([h.func.isRequired, h.element.isRequired]).isRequired, + /** + * Show the component; triggers the enter or exit states + */ + in: h.bool, + /** + * By default the child component is mounted immediately along with + * the parent `Transition` component. If you want to "lazy mount" the component on the + * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay + * mounted, even on "exited", unless you also specify `unmountOnExit`. + */ + mountOnEnter: h.bool, + /** + * By default the child component stays mounted after it reaches the `'exited'` state. + * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting. + */ + unmountOnExit: h.bool, + /** + * By default the child component does not perform the enter transition when + * it first mounts, regardless of the value of `in`. If you want this + * behavior, set both `appear` and `in` to `true`. + * + * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop + * > only adds an additional enter transition. However, in the + * > `` component that first enter transition does result in + * > additional `.appear-*` classes, that way you can choose to style it + * > differently. + */ + appear: h.bool, + /** + * Enable or disable enter transitions. + */ + enter: h.bool, + /** + * Enable or disable exit transitions. + */ + exit: h.bool, + /** + * The duration of the transition, in milliseconds. + * Required unless `addEndListener` is provided. + * + * You may specify a single timeout for all transitions: + * + * ```jsx + * timeout={500} + * ``` + * + * or individually: + * + * ```jsx + * timeout={{ + * appear: 500, + * enter: 300, + * exit: 500, + * }} + * ``` + * + * - `appear` defaults to the value of `enter` + * - `enter` defaults to `0` + * - `exit` defaults to `0` + * + * @type {number | { enter?: number, exit?: number, appear?: number }} + */ + timeout: function(u) { + var s = yw; + u.addEndListener || (s = s.isRequired); + for (var d = arguments.length, m = new Array(d > 1 ? d - 1 : 0), y = 1; y < d; y++) + m[y - 1] = arguments[y]; + return s.apply(void 0, [u].concat(m)); + }, + /** + * Add a custom transition end trigger. Called with the transitioning + * DOM node and a `done` callback. Allows for more fine grained transition end + * logic. Timeouts are still used as a fallback if provided. + * + * **Note**: when `nodeRef` prop is passed, `node` is not passed. + * + * ```jsx + * addEndListener={(node, done) => { + * // use the css transitionend event to mark the finish of a transition + * node.addEventListener('transitionend', done, false); + * }} + * ``` + */ + addEndListener: h.func, + /** + * Callback fired before the "entering" status is applied. An extra parameter + * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount + * + * **Note**: when `nodeRef` prop is passed, `node` is not passed. + * + * @type Function(node: HtmlElement, isAppearing: bool) -> void + */ + onEnter: h.func, + /** + * Callback fired after the "entering" status is applied. An extra parameter + * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount + * + * **Note**: when `nodeRef` prop is passed, `node` is not passed. + * + * @type Function(node: HtmlElement, isAppearing: bool) + */ + onEntering: h.func, + /** + * Callback fired after the "entered" status is applied. An extra parameter + * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount + * + * **Note**: when `nodeRef` prop is passed, `node` is not passed. + * + * @type Function(node: HtmlElement, isAppearing: bool) -> void + */ + onEntered: h.func, + /** + * Callback fired before the "exiting" status is applied. + * + * **Note**: when `nodeRef` prop is passed, `node` is not passed. + * + * @type Function(node: HtmlElement) -> void + */ + onExit: h.func, + /** + * Callback fired after the "exiting" status is applied. + * + * **Note**: when `nodeRef` prop is passed, `node` is not passed. + * + * @type Function(node: HtmlElement) -> void + */ + onExiting: h.func, + /** + * Callback fired after the "exited" status is applied. + * + * **Note**: when `nodeRef` prop is passed, `node` is not passed + * + * @type Function(node: HtmlElement) -> void + */ + onExited: h.func +} : {}; +function s5() { +} +Ya.defaultProps = { + in: !1, + mountOnEnter: !1, + unmountOnExit: !1, + appear: !1, + enter: !0, + exit: !0, + onEnter: s5, + onEntering: s5, + onEntered: s5, + onExit: s5, + onExiting: s5, + onExited: s5 +}; +Ya.UNMOUNTED = V9; +Ya.EXITED = _i; +Ya.ENTERING = Di; +Ya.ENTERED = d5; +Ya.EXITING = rC; +function vw(o) { + if (o === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + return o; +} +function VC(o, u) { + var s = function(y) { + return u && V.isValidElement(y) ? u(y) : y; + }, d = /* @__PURE__ */ Object.create(null); + return o && V.Children.map(o, function(m) { + return m; + }).forEach(function(m) { + d[m.key] = s(m); + }), d; +} +function bw(o, u) { + o = o || {}, u = u || {}; + function s(M) { + return M in u ? u[M] : o[M]; + } + var d = /* @__PURE__ */ Object.create(null), m = []; + for (var y in o) + y in u ? m.length && (d[y] = m, m = []) : m.push(y); + var b, S = {}; + for (var T in u) { + if (d[T]) + for (b = 0; b < d[T].length; b++) { + var x = d[T][b]; + S[d[T][b]] = s(x); + } + S[T] = s(T); + } + for (b = 0; b < m.length; b++) + S[m[b]] = s(m[b]); + return S; +} +function Li(o, u, s) { + return s[u] != null ? s[u] : o.props[u]; +} +function Sw(o, u) { + return VC(o.children, function(s) { + return V.cloneElement(s, { + onExited: u.bind(null, s), + in: !0, + appear: Li(s, "appear", o), + enter: Li(s, "enter", o), + exit: Li(s, "exit", o) + }); + }); +} +function Ew(o, u, s) { + var d = VC(o.children), m = bw(u, d); + return Object.keys(m).forEach(function(y) { + var b = m[y]; + if (V.isValidElement(b)) { + var S = y in u, T = y in d, x = u[y], M = V.isValidElement(x) && !x.props.in; + T && (!S || M) ? m[y] = V.cloneElement(b, { + onExited: s.bind(null, b), + in: !0, + exit: Li(b, "exit", o), + enter: Li(b, "enter", o) + }) : !T && S && !M ? m[y] = V.cloneElement(b, { + in: !1 + }) : T && S && V.isValidElement(x) && (m[y] = V.cloneElement(b, { + onExited: s.bind(null, b), + in: x.props.in, + exit: Li(b, "exit", o), + enter: Li(b, "enter", o) + })); + } + }), m; +} +var Tw = Object.values || function(o) { + return Object.keys(o).map(function(u) { + return o[u]; + }); +}, xw = { + component: "div", + childFactory: function(u) { + return u; + } +}, kC = /* @__PURE__ */ (function(o) { + aE(u, o); + function u(d, m) { + var y; + y = o.call(this, d, m) || this; + var b = y.handleExited.bind(vw(y)); + return y.state = { + contextValue: { + isMounting: !0 + }, + handleExited: b, + firstRender: !0 + }, y; + } + var s = u.prototype; + return s.componentDidMount = function() { + this.mounted = !0, this.setState({ + contextValue: { + isMounting: !1 + } + }); + }, s.componentWillUnmount = function() { + this.mounted = !1; + }, u.getDerivedStateFromProps = function(m, y) { + var b = y.children, S = y.handleExited, T = y.firstRender; + return { + children: T ? Sw(m, S) : Ew(m, b, S), + firstRender: !1 + }; + }, s.handleExited = function(m, y) { + var b = VC(this.props.children); + m.key in b || (m.props.onExited && m.props.onExited(y), this.mounted && this.setState(function(S) { + var T = pp({}, S.children); + return delete T[m.key], { + children: T + }; + })); + }, s.render = function() { + var m = this.props, y = m.component, b = m.childFactory, S = nE(m, ["component", "childFactory"]), T = this.state.contextValue, x = Tw(this.state.children).map(b); + return delete S.appear, delete S.enter, delete S.exit, y === null ? /* @__PURE__ */ ja.createElement(gp.Provider, { + value: T + }, x) : /* @__PURE__ */ ja.createElement(gp.Provider, { + value: T + }, /* @__PURE__ */ ja.createElement(y, S, x)); + }, u; +})(ja.Component); +kC.propTypes = process.env.NODE_ENV !== "production" ? { + /** + * `` renders a `
` by default. You can change this + * behavior by providing a `component` prop. + * If you use React v16+ and would like to avoid a wrapping `
` element + * you can pass in `component={null}`. This is useful if the wrapping div + * borks your css styles. + */ + component: h.any, + /** + * A set of `` components, that are toggled `in` and out as they + * leave. the `` will inject specific transition props, so + * remember to spread them through if you are wrapping the `` as + * with our `` example. + * + * While this component is meant for multiple `Transition` or `CSSTransition` + * children, sometimes you may want to have a single transition child with + * content that you want to be transitioned out and in when you change it + * (e.g. routes, images etc.) In that case you can change the `key` prop of + * the transition child as you change its content, this will cause + * `TransitionGroup` to transition the child out and back in. + */ + children: h.node, + /** + * A convenience prop that enables or disables appear animations + * for all children. Note that specifying this will override any defaults set + * on individual children Transitions. + */ + appear: h.bool, + /** + * A convenience prop that enables or disables enter animations + * for all children. Note that specifying this will override any defaults set + * on individual children Transitions. + */ + enter: h.bool, + /** + * A convenience prop that enables or disables exit animations + * for all children. Note that specifying this will override any defaults set + * on individual children Transitions. + */ + exit: h.bool, + /** + * You may need to apply reactive updates to a child as it is exiting. + * This is generally done by using `cloneElement` however in the case of an exiting + * child the element has already been removed and not accessible to the consumer. + * + * If you do need to update a child as it leaves you can provide a `childFactory` + * to wrap every child, even the ones that are leaving. + * + * @type Function(child: ReactElement) -> ReactElement + */ + childFactory: h.func +} : {}; +kC.defaultProps = xw; +const bb = {}; +function oE(o, u) { + const s = V.useRef(bb); + return s.current === bb && (s.current = o(u)), s; +} +const Ow = []; +function Rw(o) { + V.useEffect(o, Ow); +} +class Xp { + static create() { + return new Xp(); + } + currentId = null; + /** + * Executes `fn` after `delay`, clearing any previously scheduled call. + */ + start(u, s) { + this.clear(), this.currentId = setTimeout(() => { + this.currentId = null, s(); + }, u); + } + clear = () => { + this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null); + }; + disposeEffect = () => this.clear; +} +function p5() { + const o = oE(Xp.create).current; + return Rw(o.disposeEffect), o; +} +function Aw(o) { + const { + prototype: u = {} + } = o; + return !!u.isReactComponent; +} +function Mw(o, u, s, d, m) { + const y = o[u], b = m || u; + if (y == null || // When server-side rendering React doesn't warn either. + // This is not an accurate check for SSR. + // This is only in place for emotion compat. + // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved. + typeof window > "u") + return null; + let S; + return typeof y == "function" && !Aw(y) && (S = "Did you accidentally provide a plain function component instead?"), y === V.Fragment && (S = "Did you accidentally provide a React.Fragment instead?"), S !== void 0 ? new Error(`Invalid ${d} \`${b}\` supplied to \`${s}\`. Expected an element type that can hold a ref. ${S} For more information see https://v7.mui.com/r/caveat-with-refs-guide`) : null; +} +const YC = Vo(h.elementType, Mw), rE = (o) => o.scrollTop; +function i8(o, u) { + return (s) => { + if (u) { + const d = o.current; + s === void 0 ? u(d) : u(d, s); + } + }; +} +function iE(o, u, s, d, m, y) { + const b = o === "exited" && !u ? d : s[o] || s.exited; + return m || y ? { + ...b, + ...m, + ...y + } : b; +} +function vp(o, u) { + const { + timeout: s, + easing: d, + style: m = {} + } = o; + return { + duration: m.transitionDuration ?? (typeof s == "number" ? s : s[u.mode] || 0), + easing: m.transitionTimingFunction ?? (typeof d == "object" ? d[u.mode] : d), + delay: m.transitionDelay + }; +} +function uE(o) { + return typeof o == "string"; +} +function cE(o, u, s) { + return o === void 0 || uE(o) ? u : { + ...u, + ownerState: { + ...u.ownerState, + ...s + } + }; +} +function sE(o, u, s) { + return typeof o == "function" ? o(u, s) : o; +} +function fE(o, u = []) { + if (o === void 0) + return {}; + const s = {}; + return Object.keys(o).filter((d) => d.match(/^on[A-Z]/) && typeof o[d] == "function" && !u.includes(d)).forEach((d) => { + s[d] = o[d]; + }), s; +} +function Sb(o) { + if (o === void 0) + return {}; + const u = {}; + return Object.keys(o).filter((s) => !(s.match(/^on[A-Z]/) && typeof o[s] == "function")).forEach((s) => { + u[s] = o[s]; + }), u; +} +function dE(o) { + const { + getSlotProps: u, + additionalProps: s, + externalSlotProps: d, + externalForwardedProps: m, + className: y + } = o; + if (!u) { + const _ = Ce(s?.className, y, m?.className, d?.className), B = { + ...s?.style, + ...m?.style, + ...d?.style + }, z = { + ...s, + ...m, + ...d + }; + return _.length > 0 && (z.className = _), Object.keys(B).length > 0 && (z.style = B), { + props: z, + internalRef: void 0 + }; + } + const b = fE({ + ...m, + ...d + }), S = Sb(d), T = Sb(m), x = u(b), M = Ce(x?.className, s?.className, y, m?.className, d?.className), A = { + ...x?.style, + ...s?.style, + ...m?.style, + ...d?.style + }, R = { + ...x, + ...s, + ...T, + ...S + }; + return M.length > 0 && (R.className = M), Object.keys(A).length > 0 && (R.style = A), { + props: R, + internalRef: x.ref + }; +} +function N0(o, u) { + const { + className: s, + elementType: d, + ownerState: m, + externalForwardedProps: y, + internalForwardedProps: b, + shouldForwardComponentProp: S = !1, + ...T + } = u, { + component: x, + slots: M = { + [o]: void 0 + }, + slotProps: A = { + [o]: void 0 + }, + ...R + } = y, _ = M[o] || d, B = sE(A[o], m), { + props: { + component: z, + ...q + }, + internalRef: Z + } = dE({ + className: s, + ...T, + externalForwardedProps: o === "root" ? R : void 0, + externalSlotProps: B + }), F = H4(Z, B?.ref, u.ref), G = o === "root" ? z || x : z, k = cE(_, { + ...o === "root" && !x && !M[o] && b, + ...o !== "root" && !M[o] && b, + ...q, + ...G && !S && { + as: G + }, + ...G && S && { + component: G + }, + ref: F + }, m); + return [_, k]; +} +function ww(o) { + const u = typeof o; + switch (u) { + case "number": + return Number.isNaN(o) ? "NaN" : Number.isFinite(o) ? o !== Math.floor(o) ? "float" : "number" : "Infinity"; + case "object": + return o === null ? "null" : o.constructor.name; + default: + return u; + } +} +function pE(o, u, s, d) { + const m = o[u]; + if (m == null || !Number.isInteger(m)) { + const y = ww(m); + return new RangeError(`Invalid ${d} \`${u}\` of type \`${y}\` supplied to \`${s}\`, expected \`integer\`.`); + } + return null; +} +function hE(o, u, s, d) { + return o[u] === void 0 ? null : pE(o, u, s, d); +} +function iC() { + return null; +} +hE.isRequired = pE; +iC.isRequired = iC; +const mE = process.env.NODE_ENV === "production" ? iC : hE; +function _w(o) { + return j0("MuiPaper", o); +} +Z0("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]); +const Dw = (o) => { + const { + square: u, + elevation: s, + variant: d, + classes: m + } = o, y = { + root: ["root", d, !u && "rounded", d === "elevation" && `elevation${s}`] + }; + return I0(y, _w, m); +}, zw = pe("div", { + name: "MuiPaper", + slot: "Root", + overridesResolver: (o, u) => { + const { + ownerState: s + } = o; + return [u.root, u[s.variant], !s.square && u.rounded, s.variant === "elevation" && u[`elevation${s.elevation}`]]; + } +})(st(({ + theme: o +}) => ({ + backgroundColor: (o.vars || o).palette.background.paper, + color: (o.vars || o).palette.text.primary, + transition: o.transitions.create("box-shadow"), + variants: [{ + props: ({ + ownerState: u + }) => !u.square, + style: { + borderRadius: o.shape.borderRadius + } + }, { + props: { + variant: "outlined" + }, + style: { + border: `1px solid ${(o.vars || o).palette.divider}` + } + }, { + props: { + variant: "elevation" + }, + style: { + boxShadow: "var(--Paper-shadow)", + backgroundImage: "var(--Paper-overlay)" + } + }] +}))), qC = /* @__PURE__ */ V.forwardRef(function(u, s) { + const d = U0({ + props: u, + name: "MuiPaper" + }), m = w5(), { + className: y, + component: b = "div", + elevation: S = 1, + square: T = !1, + variant: x = "elevation", + ...M + } = d, A = { + ...d, + component: b, + elevation: S, + square: T, + variant: x + }, R = Dw(A); + return process.env.NODE_ENV !== "production" && m.shadows[S] === void 0 && console.error([`MUI: The elevation provided is not available in the theme.`, `Please make sure that \`theme.shadows[${S}]\` is defined.`].join(` +`)), /* @__PURE__ */ Y.jsx(zw, { + as: b, + ownerState: A, + className: Ce(R.root, y), + ref: s, + ...M, + style: { + ...x === "elevation" && { + "--Paper-shadow": (m.vars || m).shadows[S], + ...m.vars && { + "--Paper-overlay": m.vars.overlays?.[S] + }, + ...!m.vars && m.palette.mode === "dark" && { + "--Paper-overlay": `linear-gradient(${b5("#fff", tC(S))}, ${b5("#fff", tC(S))})` + } + }, + ...M.style + } + }); +}); +process.env.NODE_ENV !== "production" && (qC.propTypes = { + // ┌────────────────────────────── Warning ──────────────────────────────┐ + // │ These PropTypes are generated from the TypeScript type definitions. │ + // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ + // └─────────────────────────────────────────────────────────────────────┘ + /** + * The content of the component. + */ + children: h.node, + /** + * Override or extend the styles applied to the component. + */ + classes: h.object, + /** + * @ignore + */ + className: h.string, + /** + * The component used for the root node. + * Either a string to use a HTML element or a component. + */ + component: h.elementType, + /** + * Shadow depth, corresponds to `dp` in the spec. + * It accepts values between 0 and 24 inclusive. + * @default 1 + */ + elevation: Vo(mE, (o) => { + const { + elevation: u, + variant: s + } = o; + return u > 0 && s === "outlined" ? new Error(`MUI: Combining \`elevation={${u}}\` with \`variant="${s}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`) : null; + }), + /** + * If `true`, rounded corners are disabled. + * @default false + */ + square: h.bool, + /** + * @ignore + */ + style: h.object, + /** + * The system prop that allows defining system overrides as well as additional CSS styles. + */ + sx: h.oneOfType([h.arrayOf(h.oneOfType([h.func, h.object, h.bool])), h.func, h.object]), + /** + * The variant to use. + * @default 'elevation' + */ + variant: h.oneOfType([h.oneOf(["elevation", "outlined"]), h.string]) +}); +const Pp = h.oneOfType([h.func, h.object]); +function S5(o) { + try { + return o.matches(":focus-visible"); + } catch { + process.env.NODE_ENV !== "production" && !window.navigator.userAgent.includes("jsdom") && console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.", "Some components rely on this feature to work properly."].join(` +`)); + } + return !1; +} +class bp { + /** React ref to the ripple instance */ + /** If the ripple component should be mounted */ + /** Promise that resolves when the ripple component is mounted */ + /** If the ripple component has been mounted */ + /** React state hook setter */ + static create() { + return new bp(); + } + static use() { + const u = oE(bp.create).current, [s, d] = V.useState(!1); + return u.shouldMount = s, u.setShouldMount = d, V.useEffect(u.mountEffect, [s]), u; + } + constructor() { + this.ref = { + current: null + }, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null; + } + mount() { + return this.mounted || (this.mounted = Nw(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted; + } + mountEffect = () => { + this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve()); + }; + /* Ripple API */ + start(...u) { + this.mount().then(() => this.ref.current?.start(...u)); + } + stop(...u) { + this.mount().then(() => this.ref.current?.stop(...u)); + } + pulsate(...u) { + this.mount().then(() => this.ref.current?.pulsate(...u)); + } +} +function Lw() { + return bp.use(); +} +function Nw() { + let o, u; + const s = new Promise((d, m) => { + o = d, u = m; + }); + return s.resolve = o, s.reject = u, s; +} +function CE(o) { + const { + className: u, + classes: s, + pulsate: d = !1, + rippleX: m, + rippleY: y, + rippleSize: b, + in: S, + onExited: T, + timeout: x + } = o, [M, A] = V.useState(!1), R = Ce(u, s.ripple, s.rippleVisible, d && s.ripplePulsate), _ = { + width: b, + height: b, + top: -(b / 2) + y, + left: -(b / 2) + m + }, B = Ce(s.child, M && s.childLeaving, d && s.childPulsate); + return !S && !M && A(!0), V.useEffect(() => { + if (!S && T != null) { + const z = setTimeout(T, x); + return () => { + clearTimeout(z); + }; + } + }, [T, S, x]), /* @__PURE__ */ Y.jsx("span", { + className: R, + style: _, + children: /* @__PURE__ */ Y.jsx("span", { + className: B + }) + }); +} +process.env.NODE_ENV !== "production" && (CE.propTypes = { + /** + * Override or extend the styles applied to the component. + */ + classes: h.object.isRequired, + className: h.string, + /** + * @ignore - injected from TransitionGroup + */ + in: h.bool, + /** + * @ignore - injected from TransitionGroup + */ + onExited: h.func, + /** + * If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element. + */ + pulsate: h.bool, + /** + * Diameter of the ripple. + */ + rippleSize: h.number, + /** + * Horizontal position of the ripple center. + */ + rippleX: h.number, + /** + * Vertical position of the ripple center. + */ + rippleY: h.number, + /** + * exit delay + */ + timeout: h.number.isRequired +}); +const o8 = Z0("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), uC = 550, jw = 80, Uw = ka` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`, Bw = ka` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`, Hw = ka` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`, $w = pe("span", { + name: "MuiTouchRipple", + slot: "Root" +})({ + overflow: "hidden", + pointerEvents: "none", + position: "absolute", + zIndex: 0, + top: 0, + right: 0, + bottom: 0, + left: 0, + borderRadius: "inherit" +}), Vw = pe(CE, { + name: "MuiTouchRipple", + slot: "Ripple" +})` + opacity: 0; + position: absolute; + + &.${o8.rippleVisible} { + opacity: 0.3; + transform: scale(1); + animation-name: ${Uw}; + animation-duration: ${uC}ms; + animation-timing-function: ${({ + theme: o +}) => o.transitions.easing.easeInOut}; + } + + &.${o8.ripplePulsate} { + animation-duration: ${({ + theme: o +}) => o.transitions.duration.shorter}ms; + } + + & .${o8.child} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${o8.childLeaving} { + opacity: 0; + animation-name: ${Bw}; + animation-duration: ${uC}ms; + animation-timing-function: ${({ + theme: o +}) => o.transitions.easing.easeInOut}; + } + + & .${o8.childPulsate} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${Hw}; + animation-duration: 2500ms; + animation-timing-function: ${({ + theme: o +}) => o.transitions.easing.easeInOut}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`, yE = /* @__PURE__ */ V.forwardRef(function(u, s) { + const d = U0({ + props: u, + name: "MuiTouchRipple" + }), { + center: m = !1, + classes: y = {}, + className: b, + ...S + } = d, [T, x] = V.useState([]), M = V.useRef(0), A = V.useRef(null); + V.useEffect(() => { + A.current && (A.current(), A.current = null); + }, [T]); + const R = V.useRef(!1), _ = p5(), B = V.useRef(null), z = V.useRef(null), q = V.useCallback((k) => { + const { + pulsate: $, + rippleX: K, + rippleY: a2, + rippleSize: u2, + cb: d2 + } = k; + x((r2) => [...r2, /* @__PURE__ */ Y.jsx(Vw, { + classes: { + ripple: Ce(y.ripple, o8.ripple), + rippleVisible: Ce(y.rippleVisible, o8.rippleVisible), + ripplePulsate: Ce(y.ripplePulsate, o8.ripplePulsate), + child: Ce(y.child, o8.child), + childLeaving: Ce(y.childLeaving, o8.childLeaving), + childPulsate: Ce(y.childPulsate, o8.childPulsate) + }, + timeout: uC, + pulsate: $, + rippleX: K, + rippleY: a2, + rippleSize: u2 + }, M.current)]), M.current += 1, A.current = d2; + }, [y]), Z = V.useCallback((k = {}, $ = {}, K = () => { + }) => { + const { + pulsate: a2 = !1, + center: u2 = m || $.pulsate, + fakeElement: d2 = !1 + // For test purposes + } = $; + if (k?.type === "mousedown" && R.current) { + R.current = !1; + return; + } + k?.type === "touchstart" && (R.current = !0); + const r2 = d2 ? null : z.current, S2 = r2 ? r2.getBoundingClientRect() : { + width: 0, + height: 0, + left: 0, + top: 0 + }; + let N, o2, g2; + if (u2 || k === void 0 || k.clientX === 0 && k.clientY === 0 || !k.clientX && !k.touches) + N = Math.round(S2.width / 2), o2 = Math.round(S2.height / 2); + else { + const { + clientX: R2, + clientY: H + } = k.touches && k.touches.length > 0 ? k.touches[0] : k; + N = Math.round(R2 - S2.left), o2 = Math.round(H - S2.top); + } + if (u2) + g2 = Math.sqrt((2 * S2.width ** 2 + S2.height ** 2) / 3), g2 % 2 === 0 && (g2 += 1); + else { + const R2 = Math.max(Math.abs((r2 ? r2.clientWidth : 0) - N), N) * 2 + 2, H = Math.max(Math.abs((r2 ? r2.clientHeight : 0) - o2), o2) * 2 + 2; + g2 = Math.sqrt(R2 ** 2 + H ** 2); + } + k?.touches ? B.current === null && (B.current = () => { + q({ + pulsate: a2, + rippleX: N, + rippleY: o2, + rippleSize: g2, + cb: K + }); + }, _.start(jw, () => { + B.current && (B.current(), B.current = null); + })) : q({ + pulsate: a2, + rippleX: N, + rippleY: o2, + rippleSize: g2, + cb: K + }); + }, [m, q, _]), F = V.useCallback(() => { + Z({}, { + pulsate: !0 + }); + }, [Z]), G = V.useCallback((k, $) => { + if (_.clear(), k?.type === "touchend" && B.current) { + B.current(), B.current = null, _.start(0, () => { + G(k, $); + }); + return; + } + B.current = null, x((K) => K.length > 0 ? K.slice(1) : K), A.current = $; + }, [_]); + return V.useImperativeHandle(s, () => ({ + pulsate: F, + start: Z, + stop: G + }), [F, Z, G]), /* @__PURE__ */ Y.jsx($w, { + className: Ce(o8.root, y.root, b), + ref: z, + ...S, + children: /* @__PURE__ */ Y.jsx(kC, { + component: null, + exit: !0, + children: T + }) + }); +}); +process.env.NODE_ENV !== "production" && (yE.propTypes = { + /** + * If `true`, the ripple starts at the center of the component + * rather than at the point of interaction. + */ + center: h.bool, + /** + * Override or extend the styles applied to the component. + */ + classes: h.object, + /** + * @ignore + */ + className: h.string +}); +function kw(o) { + return j0("MuiButtonBase", o); +} +const Yw = Z0("MuiButtonBase", ["root", "disabled", "focusVisible"]), qw = (o) => { + const { + disabled: u, + focusVisible: s, + focusVisibleClassName: d, + classes: m + } = o, b = I0({ + root: ["root", u && "disabled", s && "focusVisible"] + }, kw, m); + return s && d && (b.root += ` ${d}`), b; +}, Zw = pe("button", { + name: "MuiButtonBase", + slot: "Root" +})({ + display: "inline-flex", + alignItems: "center", + justifyContent: "center", + position: "relative", + boxSizing: "border-box", + WebkitTapHighlightColor: "transparent", + backgroundColor: "transparent", + // Reset default value + // We disable the focus ring for mouse, touch and keyboard users. + outline: 0, + border: 0, + margin: 0, + // Remove the margin in Safari + borderRadius: 0, + padding: 0, + // Remove the padding in Firefox + cursor: "pointer", + userSelect: "none", + verticalAlign: "middle", + MozAppearance: "none", + // Reset + WebkitAppearance: "none", + // Reset + textDecoration: "none", + // So we take precedent over the style of a native element. + color: "inherit", + "&::-moz-focus-inner": { + borderStyle: "none" + // Remove Firefox dotted outline. + }, + [`&.${Yw.disabled}`]: { + pointerEvents: "none", + // Disable link interactions + cursor: "default" + }, + "@media print": { + colorAdjust: "exact" + } +}), Bo = /* @__PURE__ */ V.forwardRef(function(u, s) { + const d = U0({ + props: u, + name: "MuiButtonBase" + }), { + action: m, + centerRipple: y = !1, + children: b, + className: S, + component: T = "button", + disabled: x = !1, + disableRipple: M = !1, + disableTouchRipple: A = !1, + focusRipple: R = !1, + focusVisibleClassName: _, + LinkComponent: B = "a", + onBlur: z, + onClick: q, + onContextMenu: Z, + onDragLeave: F, + onFocus: G, + onFocusVisible: k, + onKeyDown: $, + onKeyUp: K, + onMouseDown: a2, + onMouseLeave: u2, + onMouseUp: d2, + onTouchEnd: r2, + onTouchMove: S2, + onTouchStart: N, + tabIndex: o2 = 0, + TouchRippleProps: g2, + touchRippleRef: R2, + type: H, + ...e2 + } = d, v2 = V.useRef(null), E2 = Lw(), i2 = H4(E2.ref, R2), [D, X] = V.useState(!1); + x && D && X(!1), V.useImperativeHandle(m, () => ({ + focusVisible: () => { + X(!0), v2.current.focus(); + } + }), []); + const p2 = E2.shouldMount && !M && !x; + V.useEffect(() => { + D && R && !M && E2.pulsate(); + }, [M, R, D, E2]); + const s2 = F1(E2, "start", a2, A), L2 = F1(E2, "stop", Z, A), D2 = F1(E2, "stop", F, A), A2 = F1(E2, "stop", d2, A), B2 = F1(E2, "stop", (P2) => { + D && P2.preventDefault(), u2 && u2(P2); + }, A), k2 = F1(E2, "start", N, A), $2 = F1(E2, "stop", r2, A), M2 = F1(E2, "stop", S2, A), h2 = F1(E2, "stop", (P2) => { + S5(P2.target) || X(!1), z && z(P2); + }, !1), ge = No((P2) => { + v2.current || (v2.current = P2.currentTarget), S5(P2.target) && (X(!0), k && k(P2)), G && G(P2); + }), he = () => { + const P2 = v2.current; + return P2 ? P2.tagName === "BUTTON" ? !1 : !(P2.tagName === "A" && P2.href) : T && T !== "button"; + }, je = No((P2) => { + R && !P2.repeat && D && P2.key === " " && E2.stop(P2, () => { + E2.start(P2); + }), P2.target === P2.currentTarget && he() && P2.key === " " && P2.preventDefault(), $ && $(P2), P2.target === P2.currentTarget && he() && P2.key === "Enter" && !x && (P2.preventDefault(), q && q(P2)); + }), me = No((P2) => { + R && P2.key === " " && D && !P2.defaultPrevented && E2.stop(P2, () => { + E2.pulsate(P2); + }), K && K(P2), q && P2.target === P2.currentTarget && he() && P2.key === " " && !P2.defaultPrevented && !x && q(P2); + }); + let Ue = T; + Ue === "button" && (e2.href || e2.to) && (Ue = B); + const y0 = {}; + if (Ue === "button") { + const P2 = !!e2.formAction; + y0.type = H === void 0 && !P2 ? "button" : H, y0.disabled = x; + } else + !e2.href && !e2.to && (y0.role = "button"), x && (y0["aria-disabled"] = x); + const Qe = H4(s, v2), Y2 = { + ...d, + centerRipple: y, + component: T, + disabled: x, + disableRipple: M, + disableTouchRipple: A, + focusRipple: R, + tabIndex: o2, + focusVisible: D + }, Be = qw(Y2); + return /* @__PURE__ */ Y.jsxs(Zw, { + as: Ue, + className: Ce(Be.root, S), + ownerState: Y2, + onBlur: h2, + onClick: q, + onContextMenu: L2, + onFocus: ge, + onKeyDown: je, + onKeyUp: me, + onMouseDown: s2, + onMouseLeave: B2, + onMouseUp: A2, + onDragLeave: D2, + onTouchEnd: $2, + onTouchMove: M2, + onTouchStart: k2, + ref: Qe, + tabIndex: x ? -1 : o2, + type: H, + ...y0, + ...e2, + children: [b, p2 ? /* @__PURE__ */ Y.jsx(yE, { + ref: i2, + center: y, + ...g2 + }) : null] + }); +}); +function F1(o, u, s, d = !1) { + return No((m) => (s && s(m), d || o[u](m), !0)); +} +process.env.NODE_ENV !== "production" && (Bo.propTypes = { + // ┌────────────────────────────── Warning ──────────────────────────────┐ + // │ These PropTypes are generated from the TypeScript type definitions. │ + // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ + // └─────────────────────────────────────────────────────────────────────┘ + /** + * A ref for imperative actions. + * It currently only supports `focusVisible()` action. + */ + action: Pp, + /** + * If `true`, the ripples are centered. + * They won't start at the cursor interaction position. + * @default false + */ + centerRipple: h.bool, + /** + * The content of the component. + */ + children: h.node, + /** + * Override or extend the styles applied to the component. + */ + classes: h.object, + /** + * @ignore + */ + className: h.string, + /** + * The component used for the root node. + * Either a string to use a HTML element or a component. + */ + component: YC, + /** + * If `true`, the component is disabled. + * @default false + */ + disabled: h.bool, + /** + * If `true`, the ripple effect is disabled. + * + * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure + * to highlight the element by applying separate styles with the `.Mui-focusVisible` class. + * @default false + */ + disableRipple: h.bool, + /** + * If `true`, the touch ripple effect is disabled. + * @default false + */ + disableTouchRipple: h.bool, + /** + * If `true`, the base button will have a keyboard focus ripple. + * @default false + */ + focusRipple: h.bool, + /** + * This prop can help identify which element has keyboard focus. + * The class name will be applied when the element gains the focus through keyboard interaction. + * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo). + * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md). + * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components + * if needed. + */ + focusVisibleClassName: h.string, + /** + * @ignore + */ + formAction: h.oneOfType([h.func, h.string]), + /** + * @ignore + */ + href: h.any, + /** + * The component used to render a link when the `href` prop is provided. + * @default 'a' + */ + LinkComponent: h.elementType, + /** + * @ignore + */ + onBlur: h.func, + /** + * @ignore + */ + onClick: h.func, + /** + * @ignore + */ + onContextMenu: h.func, + /** + * @ignore + */ + onDragLeave: h.func, + /** + * @ignore + */ + onFocus: h.func, + /** + * Callback fired when the component is focused with a keyboard. + * We trigger a `onFocus` callback too. + */ + onFocusVisible: h.func, + /** + * @ignore + */ + onKeyDown: h.func, + /** + * @ignore + */ + onKeyUp: h.func, + /** + * @ignore + */ + onMouseDown: h.func, + /** + * @ignore + */ + onMouseLeave: h.func, + /** + * @ignore + */ + onMouseUp: h.func, + /** + * @ignore + */ + onTouchEnd: h.func, + /** + * @ignore + */ + onTouchMove: h.func, + /** + * @ignore + */ + onTouchStart: h.func, + /** + * The system prop that allows defining system overrides as well as additional CSS styles. + */ + sx: h.oneOfType([h.arrayOf(h.oneOfType([h.func, h.object, h.bool])), h.func, h.object]), + /** + * @default 0 + */ + tabIndex: h.number, + /** + * Props applied to the `TouchRipple` element. + */ + TouchRippleProps: h.object, + /** + * A ref that points to the `TouchRipple` element. + */ + touchRippleRef: h.oneOfType([h.func, h.shape({ + current: h.shape({ + pulsate: h.func.isRequired, + start: h.func.isRequired, + stop: h.func.isRequired + }) + })]), + /** + * @ignore + */ + type: h.oneOfType([h.oneOf(["button", "reset", "submit"]), h.string]) +}); +function Gw(o) { + return typeof o.main == "string"; +} +function Xw(o, u = []) { + if (!Gw(o)) + return !1; + for (const s of u) + if (!o.hasOwnProperty(s) || typeof o[s] != "string") + return !1; + return !0; +} +function fn(o = []) { + return ([, u]) => u && Xw(u, o); +} +function Pw(o) { + return j0("MuiAlert", o); +} +const Eb = Z0("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSuccess", "colorInfo", "colorWarning", "colorError", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]); +function Qw(o) { + return j0("MuiCircularProgress", o); +} +Z0("MuiCircularProgress", ["root", "determinate", "indeterminate", "colorPrimary", "colorSecondary", "svg", "track", "circle", "circleDeterminate", "circleIndeterminate", "circleDisableShrink"]); +const Y8 = 44, cC = ka` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`, sC = ka` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: -126px; + } +`, Iw = typeof cC != "string" ? RC` + animation: ${cC} 1.4s linear infinite; + ` : null, Kw = typeof sC != "string" ? RC` + animation: ${sC} 1.4s ease-in-out infinite; + ` : null, Jw = (o) => { + const { + classes: u, + variant: s, + color: d, + disableShrink: m + } = o, y = { + root: ["root", s, `color${I2(d)}`], + svg: ["svg"], + track: ["track"], + circle: ["circle", `circle${I2(s)}`, m && "circleDisableShrink"] + }; + return I0(y, Qw, u); +}, Fw = pe("span", { + name: "MuiCircularProgress", + slot: "Root", + overridesResolver: (o, u) => { + const { + ownerState: s + } = o; + return [u.root, u[s.variant], u[`color${I2(s.color)}`]]; + } +})(st(({ + theme: o +}) => ({ + display: "inline-block", + variants: [{ + props: { + variant: "determinate" + }, + style: { + transition: o.transitions.create("transform") + } + }, { + props: { + variant: "indeterminate" + }, + style: Iw || { + animation: `${cC} 1.4s linear infinite` + } + }, ...Object.entries(o.palette).filter(fn()).map(([u]) => ({ + props: { + color: u + }, + style: { + color: (o.vars || o).palette[u].main + } + }))] +}))), Ww = pe("svg", { + name: "MuiCircularProgress", + slot: "Svg" +})({ + display: "block" + // Keeps the progress centered +}), e_ = pe("circle", { + name: "MuiCircularProgress", + slot: "Circle", + overridesResolver: (o, u) => { + const { + ownerState: s + } = o; + return [u.circle, u[`circle${I2(s.variant)}`], s.disableShrink && u.circleDisableShrink]; + } +})(st(({ + theme: o +}) => ({ + stroke: "currentColor", + variants: [{ + props: { + variant: "determinate" + }, + style: { + transition: o.transitions.create("stroke-dashoffset") + } + }, { + props: { + variant: "indeterminate" + }, + style: { + // Some default value that looks fine waiting for the animation to kicks in. + strokeDasharray: "80px, 200px", + strokeDashoffset: 0 + // Add the unit to fix a Edge 16 and below bug. + } + }, { + props: ({ + ownerState: u + }) => u.variant === "indeterminate" && !u.disableShrink, + style: Kw || { + // At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used. + animation: `${sC} 1.4s ease-in-out infinite` + } + }] +}))), t_ = pe("circle", { + name: "MuiCircularProgress", + slot: "Track" +})(st(({ + theme: o +}) => ({ + stroke: "currentColor", + opacity: (o.vars || o).palette.action.activatedOpacity +}))), $i = /* @__PURE__ */ V.forwardRef(function(u, s) { + const d = U0({ + props: u, + name: "MuiCircularProgress" + }), { + className: m, + color: y = "primary", + disableShrink: b = !1, + enableTrackSlot: S = !1, + size: T = 40, + style: x, + thickness: M = 3.6, + value: A = 0, + variant: R = "indeterminate", + ..._ + } = d, B = { + ...d, + color: y, + disableShrink: b, + size: T, + thickness: M, + value: A, + variant: R, + enableTrackSlot: S + }, z = Jw(B), q = {}, Z = {}, F = {}; + if (R === "determinate") { + const G = 2 * Math.PI * ((Y8 - M) / 2); + q.strokeDasharray = G.toFixed(3), F["aria-valuenow"] = Math.round(A), q.strokeDashoffset = `${((100 - A) / 100 * G).toFixed(3)}px`, Z.transform = "rotate(-90deg)"; + } + return /* @__PURE__ */ Y.jsx(Fw, { + className: Ce(z.root, m), + style: { + width: T, + height: T, + ...Z, + ...x + }, + ownerState: B, + ref: s, + role: "progressbar", + ...F, + ..._, + children: /* @__PURE__ */ Y.jsxs(Ww, { + className: z.svg, + ownerState: B, + viewBox: `${Y8 / 2} ${Y8 / 2} ${Y8} ${Y8}`, + children: [S ? /* @__PURE__ */ Y.jsx(t_, { + className: z.track, + ownerState: B, + cx: Y8, + cy: Y8, + r: (Y8 - M) / 2, + fill: "none", + strokeWidth: M, + "aria-hidden": "true" + }) : null, /* @__PURE__ */ Y.jsx(e_, { + className: z.circle, + style: q, + ownerState: B, + cx: Y8, + cy: Y8, + r: (Y8 - M) / 2, + fill: "none", + strokeWidth: M + })] + }) + }); +}); +process.env.NODE_ENV !== "production" && ($i.propTypes = { + // ┌────────────────────────────── Warning ──────────────────────────────┐ + // │ These PropTypes are generated from the TypeScript type definitions. │ + // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ + // └─────────────────────────────────────────────────────────────────────┘ + /** + * Override or extend the styles applied to the component. + */ + classes: h.object, + /** + * @ignore + */ + className: h.string, + /** + * The color of the component. + * It supports both default and custom theme colors, which can be added as shown in the + * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors). + * @default 'primary' + */ + color: h.oneOfType([h.oneOf(["inherit", "primary", "secondary", "error", "info", "success", "warning"]), h.string]), + /** + * If `true`, the shrink animation is disabled. + * This only works if variant is `indeterminate`. + * @default false + */ + disableShrink: Vo(h.bool, (o) => o.disableShrink && o.variant && o.variant !== "indeterminate" ? new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect.") : null), + /** + * If `true`, a track circle slot is mounted to show a subtle background for the progress. + * The `size` and `thickness` apply to the track slot to be consistent with the progress circle. + * @default false + */ + enableTrackSlot: h.bool, + /** + * The size of the component. + * If using a number, the pixel unit is assumed. + * If using a string, you need to provide the CSS unit, for example '3rem'. + * @default 40 + */ + size: h.oneOfType([h.number, h.string]), + /** + * @ignore + */ + style: h.object, + /** + * The system prop that allows defining system overrides as well as additional CSS styles. + */ + sx: h.oneOfType([h.arrayOf(h.oneOfType([h.func, h.object, h.bool])), h.func, h.object]), + /** + * The thickness of the circle. + * @default 3.6 + */ + thickness: h.number, + /** + * The value of the progress indicator for the determinate variant. + * Value between 0 and 100. + * @default 0 + */ + value: h.number, + /** + * The variant to use. + * Use indeterminate when there is no progress value. + * @default 'indeterminate' + */ + variant: h.oneOf(["determinate", "indeterminate"]) +}); +function n_(o) { + return j0("MuiIconButton", o); +} +const Tb = Z0("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge", "loading", "loadingIndicator", "loadingWrapper"]), a_ = (o) => { + const { + classes: u, + disabled: s, + color: d, + edge: m, + size: y, + loading: b + } = o, S = { + root: ["root", b && "loading", s && "disabled", d !== "default" && `color${I2(d)}`, m && `edge${I2(m)}`, `size${I2(y)}`], + loadingIndicator: ["loadingIndicator"], + loadingWrapper: ["loadingWrapper"] + }; + return I0(S, n_, u); +}, l_ = pe(Bo, { + name: "MuiIconButton", + slot: "Root", + overridesResolver: (o, u) => { + const { + ownerState: s + } = o; + return [u.root, s.loading && u.loading, s.color !== "default" && u[`color${I2(s.color)}`], s.edge && u[`edge${I2(s.edge)}`], u[`size${I2(s.size)}`]]; + } +})(st(({ + theme: o +}) => ({ + textAlign: "center", + flex: "0 0 auto", + fontSize: o.typography.pxToRem(24), + padding: 8, + borderRadius: "50%", + color: (o.vars || o).palette.action.active, + transition: o.transitions.create("background-color", { + duration: o.transitions.duration.shortest + }), + variants: [{ + props: (u) => !u.disableRipple, + style: { + "--IconButton-hoverBg": o.alpha((o.vars || o).palette.action.active, (o.vars || o).palette.action.hoverOpacity), + "&:hover": { + backgroundColor: "var(--IconButton-hoverBg)", + // Reset on touch devices, it doesn't add specificity + "@media (hover: none)": { + backgroundColor: "transparent" + } + } + } + }, { + props: { + edge: "start" + }, + style: { + marginLeft: -12 + } + }, { + props: { + edge: "start", + size: "small" + }, + style: { + marginLeft: -3 + } + }, { + props: { + edge: "end" + }, + style: { + marginRight: -12 + } + }, { + props: { + edge: "end", + size: "small" + }, + style: { + marginRight: -3 + } + }] +})), st(({ + theme: o +}) => ({ + variants: [{ + props: { + color: "inherit" + }, + style: { + color: "inherit" + } + }, ...Object.entries(o.palette).filter(fn()).map(([u]) => ({ + props: { + color: u + }, + style: { + color: (o.vars || o).palette[u].main + } + })), ...Object.entries(o.palette).filter(fn()).map(([u]) => ({ + props: { + color: u + }, + style: { + "--IconButton-hoverBg": o.alpha((o.vars || o).palette[u].main, (o.vars || o).palette.action.hoverOpacity) + } + })), { + props: { + size: "small" + }, + style: { + padding: 5, + fontSize: o.typography.pxToRem(18) + } + }, { + props: { + size: "large" + }, + style: { + padding: 12, + fontSize: o.typography.pxToRem(28) + } + }], + [`&.${Tb.disabled}`]: { + backgroundColor: "transparent", + color: (o.vars || o).palette.action.disabled + }, + [`&.${Tb.loading}`]: { + color: "transparent" + } +}))), o_ = pe("span", { + name: "MuiIconButton", + slot: "LoadingIndicator" +})(({ + theme: o +}) => ({ + display: "none", + position: "absolute", + visibility: "visible", + top: "50%", + left: "50%", + transform: "translate(-50%, -50%)", + color: (o.vars || o).palette.action.disabled, + variants: [{ + props: { + loading: !0 + }, + style: { + display: "flex" + } + }] +})), gE = /* @__PURE__ */ V.forwardRef(function(u, s) { + const d = U0({ + props: u, + name: "MuiIconButton" + }), { + edge: m = !1, + children: y, + className: b, + color: S = "default", + disabled: T = !1, + disableFocusRipple: x = !1, + size: M = "medium", + id: A, + loading: R = null, + loadingIndicator: _, + ...B + } = d, z = qp(A), q = _ ?? /* @__PURE__ */ Y.jsx($i, { + "aria-labelledby": z, + color: "inherit", + size: 16 + }), Z = { + ...d, + edge: m, + color: S, + disabled: T, + disableFocusRipple: x, + loading: R, + loadingIndicator: q, + size: M + }, F = a_(Z); + return /* @__PURE__ */ Y.jsxs(l_, { + id: R ? z : A, + className: Ce(F.root, b), + centerRipple: !0, + focusRipple: !x, + disabled: T || R, + ref: s, + ...B, + ownerState: Z, + children: [typeof R == "boolean" && // use plain HTML span to minimize the runtime overhead + /* @__PURE__ */ Y.jsx("span", { + className: F.loadingWrapper, + style: { + display: "contents" + }, + children: /* @__PURE__ */ Y.jsx(o_, { + className: F.loadingIndicator, + ownerState: Z, + children: R && q + }) + }), y] + }); +}); +process.env.NODE_ENV !== "production" && (gE.propTypes = { + // ┌────────────────────────────── Warning ──────────────────────────────┐ + // │ These PropTypes are generated from the TypeScript type definitions. │ + // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ + // └─────────────────────────────────────────────────────────────────────┘ + /** + * The icon to display. + */ + children: Vo(h.node, (o) => V.Children.toArray(o.children).some((s) => /* @__PURE__ */ V.isValidElement(s) && s.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole