diff --git a/CHANGELOG.md b/CHANGELOG.md index b24f54f51..6e350002a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ All notable changes to Bambuddy will be documented in this file. - **New AMS RFID rolls auto-named to the wrong colour when the hex is shared across material variants** ([#1227](https://github.com/maziggy/bambuddy/issues/1227)) — Inserting an Ivory White (PLA Matte) roll always created a spool named "Jade White" because the colour-catalog lookup in `create_spool_from_tray` filtered by manufacturer + hex only, with no `ORDER BY`. Three Bambu Lab catalog rows share `#FFFFFF` — Jade White (PLA Basic), Ivory White (PLA Matte), White (PLA Silk) — and SQLite returned them in rowid order, so the first-inserted entry (Jade White) won every time regardless of the actual material the AMS reported. Same class of bug bites any other shared-hex pair across PLA Basic / Matte / Silk; the whites were just the most visible. **Fix:** `spool_tag_matcher.py::create_spool_from_tray` now filters the catalog by `tray_sub_brands` too — the printer-reported material variant ("PLA Matte" / "PLA Basic" / "PLA Silk") matches the catalog's `material` column directly. The query also gets an explicit `ORDER BY id` so the fallback path (when `tray_sub_brands` is empty — third-party spools / OpenTag tags) is deterministic across SQLite + PostgreSQL instead of DB-implementation-defined. The catalog lookup uses the *raw* `tray_sub_brands` value (before the gradient/dual/tri-color subtype upgrade at lines 73-87) because the catalog stores `"PLA Basic"` for gradient rolls too — the upgraded subtype lives on the spool, not the catalog row. **Note for affected users:** spools already in the database under the wrong colour name (e.g. four Ivory White rolls labelled "Jade White") don't auto-correct on next AMS read — the matcher only fires when *creating* a new spool from RFID. Existing rows need a manual rename in Inventory after upgrading. **Tests:** 4 new in `test_spool_tag_matcher.py` — `test_ivory_white_pla_matte_resolves_to_ivory_not_jade` (the #1227 regression pin), `test_pla_silk_white_resolves_to_white_not_jade` (the third collision), `test_jade_white_pla_basic_still_resolves_correctly` (happy-path guard with all three #FFFFFF entries seeded), and `test_unknown_material_falls_back_to_hex_only_lookup` (third-party / empty `tray_sub_brands` path stays deterministic via ORDER BY). - **Backups to Gitea / Forgejo failed with "Failed to create tree" on empty repos and "list indices must be integers or slices, not str" on populated repos** ([#1224](https://github.com/maziggy/bambuddy/issues/1224), [#1225](https://github.com/maziggy/bambuddy/issues/1225)) — Two interacting bugs in the Gitea/Forgejo backend, both inherited from `GitHubBackend` because PR #1160's class docstring assumed Gitea's Git Data API was fully GitHub-compatible. (1) **List-shaped ref response:** `GET /api/v1/repos/{owner}/{repo}/git/refs/heads/{branch}` returns a *list* of matching refs on Gitea/Forgejo even when only one matches (`[{"ref": ..., "object": {"sha": ...}}]`), whereas GitHub returns a single object. The inherited `push_files` and `_create_branch_and_push` did `ref_response.json()["object"]["sha"]` and crashed with `list indices must be integers or slices, not str` — surfacing as the failure at the top of any push against a populated Gitea repo (#1225's symptom, and #1224's symptom once the user committed any file before the first backup). (2) **Empty-repo writes refused:** GitHub's Git Data API accepts `POST /git/blobs` against a brand-new empty repo and creates the initial commit + branch implicitly. Gitea refuses every blob/tree/commit POST with 404 until the underlying git repo has at least one commit — so the inherited `_create_initial_commit` (which posts blobs → tree → commit → ref in that order) silently failed: every blob POST returned 404, `tree_items` ended up empty, and the next tree POST also returned 404 ("Failed to create tree" — #1224's symptom on a freshly-created empty Gitea repo). **Fix:** `GiteaBackend` now overrides `push_files`, `_create_branch_and_push`, and `_create_initial_commit` directly instead of inheriting them. The Git Data API path uses a `_ref_sha()` helper that accepts both list and dict shapes; the empty-repo bootstrap route uses Gitea's Contents API (`POST /api/v1/repos/{owner}/{repo}/contents` with a `files` array, `branch=`, `new_branch=`) which seeds the initial commit + branch in a single transaction — Contents API is documented to work on empty repos because it goes through Gitea's higher-level repo-init path. `GitHubBackend` is **untouched** — the GitHub backup path is proven working, the fix is fully isolated to the Gitea side. `ForgejoBackend(GiteaBackend)` inherits both fixes automatically; tests pin that. **Tests:** 10 new tests in `test_git_providers.py` — `TestGiteaBackendListShapeRefResponse` (4 tests: `_ref_sha` accepts list/dict/empty-list, plus full `push_files` happy paths against list-shaped branch ref and list-shaped default-branch ref), `TestGiteaBackendEmptyRepoInitialCommit` (4 tests: empty repo routes through Contents API exclusively with no blob/tree/commit/ref Git Data API calls, payload shape verified field-by-field against Gitea's documented schema, error truncation works, empty file dict returns `skipped` without firing a useless API call), and `TestForgejoInheritsGiteaFixes` (2 tests: list-shape and empty-repo paths both work via inheritance). Existing 6 `TestGiteaBackendPushFiles` tests still pass since `_ref_sha` accepts dict-shaped responses too. Total: 78 tests pass across the backup unit + integration suites; ruff clean. **Follow-up fix (still under #1224):** subsequent backups against Gitea 1.24+ then failed with the opaque "Backup failed: 'tree'" because Gitea's `GET /repos/{owner}/{repo}/git/commits/{sha}` returns the wrapped `Commit` schema (tree at `commit.tree.sha`), whereas GitHub's same-named Git Database endpoint returns the unwrapped `GitCommit` schema (tree at top level). The bare `commit_response.json()["tree"]["sha"]` lookup at `gitea.py:109` raised `KeyError: 'tree'` and the broad `except` surfaced it as the opaque message. **Fix:** `_commit_tree_sha()` helper that tries the flat shape first (GitHub-compatible / older Gitea) and falls back to the wrapped shape (Gitea 1.24+, Forgejo) — keeps the existing-files diff working on both shapes so subsequent backups don't re-upload every blob. **Tests:** new `TestGiteaBackendWrappedCommitResponse` (4 tests: helper accepts flat / wrapped / missing shapes, full `push_files` succeeds against a wrapped commit response, failure path surfaces a clear error message instead of `KeyError` when the tree SHA can't be extracted). - **Docker data-volume ownership normalised at startup via gosu entrypoint** ([#1211](https://github.com/maziggy/bambuddy/issues/1211)) — Two long-standing failure modes have been biting Docker users repeatedly: (1) Docker named volumes are created by the daemon as `root:root`, and the previous `chmod 777 /app/data` Dockerfile workaround only covered the named-volume root — so subdirs Bambuddy creates at runtime (`virtual_printer/uploads`, `virtual_printer/certs`, etc.) inherited wrong ownership when the container ran as `1000:1000`. (2) The shipped `docker-compose.yml` ships `./virtual_printer:/app/data/virtual_printer` uncommented, and dockerd creates a missing bind-mount source on the host as root before the container starts — leaving the host directory unwritable by uid 1000 inside the container even though the named volume above it had the chmod-777 workaround. Symptom either way: `[Errno 13] Permission denied: '/app/data/virtual_printer/uploads'`, no virtual printer ever starts, "VP doesn't work" support reports follow. **Replaces the chmod-777 hack with a proper entrypoint:** `deploy/docker-entrypoint.sh` runs as root, chowns `/app/data` and `/app/logs` (and `/app/data/virtual_printer` when bind-mounted) to `PUID:PGID`, then drops to that uid via `gosu` before `exec`'ing the app. The chown is gated behind a top-level ownership check so subsequent restarts skip the recursive traversal — no multi-second startup penalty on multi-GB archive directories. A sentinel `.bambuddy` file in each data path prevents Docker from re-syncing image directory metadata on every mount (otherwise empty volumes have their ownership reverted from the image on each restart, defeating the idempotency). When the container is started with an explicit `user:` directive or `--user` flag the entrypoint detects it isn't root and falls through to direct `exec` — preserving compatibility for users who pin a specific uid. **Compose template changes:** removes `user: "${PUID:-1000}:${PGID:-1000}"` (the entrypoint owns privilege drop now), adds `PUID` / `PGID` env vars with the same defaults, and comments out the `./virtual_printer:/app/data/virtual_printer` bind mount by default with explicit "only needed if you also run a native install of Bambuddy on the same host and want both to share the VP CA cert" guidance. The entrypoint chowns the host-side dir through the bind mount the first time it sees wrong ownership, so existing uncommented installs continue to work and #1211 specifically gets fixed. -- **Label picker modal clipped the 4th template option and Cancel button on short viewports** ([#1230](https://github.com/maziggy/bambuddy/issues/1230), reported by @elit3ge) — Clicking "Print labels" from Inventory opened the picker with only 3 of the 4 templates visible (Avery 5160 was half-cut at the bottom) and no Cancel button reachable, with no way to scroll to them. Surfaced reliably on Windows 11 + Brave at 1080p with browser chrome / DPI scaling shrinking the effective viewport, but the layout bug hits anywhere the modal's `max-h-[90vh]` lands below ~770 px. **Cause:** `LabelTemplatePickerModal.tsx` uses a flex column with `overflow-hidden` on the outer modal, the spool list as the `flex-1` shrinkable child, and the templates section + footer as fixed siblings below it. The spool list had `min-h-[160px]`, which combined with the default `min-height: auto` for flex items meant the spool list couldn't yield space when the modal was tight — the templates and footer overflowed the modal's bottom edge and got clipped. **Fix:** `min-h-[160px]` → `min-h-0` on the spool list scroller, which both removes the fixed floor and overrides the implicit `min-height: auto` so flex shrinking actually works; the spool list now yields height to keep all four templates and the Cancel button visible on constrained viewports. On larger viewports the behaviour is identical (`flex-1` still grows to fill). Pre-existing on `dev` since 0.2.4b2 (commit `864e5c99`, the original PR #809 that introduced the modal); not a regression from the spoolman-inventory rebase. **Test:** new regression test in `LabelTemplatePickerModal.test.tsx` asserts all four template names + the Cancel button render in the DOM, and pins the structural fix by checking the spool list scroller has `min-h-0` and no `min-h-[…]` literal — so a future refactor that re-introduces a fixed floor on that element fails CI. +- **Label picker modal clipped the 4th template option and Cancel button on short viewports** ([#1230](https://github.com/maziggy/bambuddy/issues/1230), reported by @elit3ge) — Clicking "Print labels" from Inventory opened the picker with only 3 of the 4 templates visible (Avery 5160 was half-cut at the bottom) and no Cancel button reachable, with no way to scroll to them. Surfaced reliably on Windows 11 + Brave at 1080p with browser chrome / DPI scaling shrinking the effective viewport, but the layout bug hits anywhere the modal's `max-h-[90vh]` lands below ~770 px. **Cause:** `LabelTemplatePickerModal.tsx` uses a flex column with `overflow-hidden` on the outer modal, the spool list as the `flex-1` shrinkable child, and the templates section + footer as fixed siblings below it. The spool list had `min-h-[160px]`, which combined with the default `min-height: auto` for flex items meant the spool list couldn't yield space when the modal was tight — the templates and footer overflowed the modal's bottom edge and got clipped. **First fix (insufficient):** `min-h-[160px]` → `min-h-0` on the spool list scroller, which both removes the fixed floor and overrides the implicit `min-height: auto`. That made the spool list shrink, but on the user's 838 px viewport with browser chrome eating into 90 vh the four stacked templates (~310 px) plus footer still didn't fit, leaving Avery 5160 half-cut and the Cancel button below the modal's clipped bottom edge — `elit3ge` confirmed the dev build was still broken after that fix. **Second fix:** the templates section now renders as a responsive grid (`grid-cols-1 sm:grid-cols-2 gap-2`) so the four buttons pack into a 2×2 grid above the `sm` breakpoint, trimming ~150 px of vertical inside the modal. Each cell tightens its label/hint to `text-sm` + `truncate` (with the full strings reachable via the new `title=label — hint` on the button so the truncation never hides information), padding shrinks to `p-2.5`, and the footer's `py-3` is dropped to `py-2` for a few extra pixels. The earlier `min-h-0` on the spool list is kept as a belt-and-braces shrink for any viewport tighter still. Pre-existing on `dev` since 0.2.4b2 (commit `864e5c99`, the original PR #809 that introduced the modal); not a regression from the spoolman-inventory rebase. **Test:** the regression test in `LabelTemplatePickerModal.test.tsx` is upgraded to pin the new structural shape — the templates container has `grid` + `grid-cols-1` + `sm:grid-cols-2` and exactly 4 child buttons, plus the existing assertions that all 4 template names + the Cancel button render and the spool list scroller still has `min-h-0` with no fixed `min-h-[…]` literal. So a future refactor that drops the grid and reintroduces stacked rows fails CI. ## [0.2.4b2] - 2026-05-05 diff --git a/frontend/src/__tests__/components/LabelTemplatePickerModal.test.tsx b/frontend/src/__tests__/components/LabelTemplatePickerModal.test.tsx index 34b4c24d8..aa3844c49 100644 --- a/frontend/src/__tests__/components/LabelTemplatePickerModal.test.tsx +++ b/frontend/src/__tests__/components/LabelTemplatePickerModal.test.tsx @@ -275,13 +275,15 @@ describe('LabelTemplatePickerModal', () => { expect(screen.getByText(/No spools match/i)).toBeInTheDocument(); }); - it('lets the spool list shrink (min-h-0) so all 4 templates and Cancel stay visible on short viewports (#1230)', () => { - // Regression for #1230: on viewports where 90vh is tight (Windows 11 - // browser-chrome or DPI scaling), an explicit min-h on the spool list - // pinned it taller than the modal could give back to templates + footer, - // and `overflow-hidden` on the outer modal clipped the 4th template - // (Avery 5160) and the Cancel button. The fix is `min-h-0` so the - // flex-1 spool list can yield space when needed. + it('packs templates into a 2x2 grid so all 4 plus Cancel fit on short viewports (#1230)', () => { + // Regression for #1230: with 4 templates stacked vertically (~310px) plus + // header/search/action bar/footer, the modal blew past max-h-[90vh] on + // Windows-11 + Brave-style viewports where browser chrome eats into 90vh. + // overflow-hidden on the modal then clipped Avery 5160 and the Cancel + // footer with no scroll path. The fix uses sm:grid-cols-2 so the 4 + // templates render as a 2x2 grid (~155px), trimming ~150px of vertical + // and leaving room for the footer. The earlier min-h-0 on the spool list + // is kept so it still yields any remaining slack. const { container } = render( { expect(screen.getByText(/Avery 5160/i)).toBeInTheDocument(); expect(screen.getByRole('button', { name: /Cancel/i })).toBeInTheDocument(); - // Structural guard against the regression: the scrollable spool list - // must have `min-h-0` so flex shrinking actually works, and must NOT - // pin a fixed minimum height that prevents it. + // Templates section must be a responsive grid (single column on mobile, + // two columns from sm: up) — a future refactor that drops the grid and + // reintroduces stacked rows fails CI. + const templatesSection = container.querySelector('div.grid.sm\\:grid-cols-2'); + expect(templatesSection).not.toBeNull(); + expect(templatesSection!.className).toContain('grid-cols-1'); + expect(templatesSection!.querySelectorAll('button').length).toBe(4); + + // Spool list still uses min-h-0 so it can yield further on very tight viewports. const spoolListScroller = container.querySelector('div.flex-1.overflow-y-auto'); expect(spoolListScroller).not.toBeNull(); expect(spoolListScroller!.className).toContain('min-h-0'); diff --git a/frontend/src/components/LabelTemplatePickerModal.tsx b/frontend/src/components/LabelTemplatePickerModal.tsx index d63862005..92c737254 100644 --- a/frontend/src/components/LabelTemplatePickerModal.tsx +++ b/frontend/src/components/LabelTemplatePickerModal.tsx @@ -351,32 +351,33 @@ export function LabelTemplatePickerModal({ )} - {/* Templates */} -
+ {/* Templates — 2x2 grid on >= sm so all 4 plus the Cancel footer fit + inside max-h-[90vh] even when browser chrome eats into the viewport + (#1230). Stacked single column on mobile widths. */} +
{TEMPLATE_OPTIONS.map((opt) => { const isPending = pending === opt.value; + const label = t(`inventory.labels.templates.${opt.i18nKey}.label`, opt.fallbackLabel); + const hint = t(`inventory.labels.templates.${opt.i18nKey}.hint`, opt.fallbackHint); return ( ); })}
-
+
diff --git a/frontend/src/pages/PrintersPage.tsx b/frontend/src/pages/PrintersPage.tsx index 4a4b187aa..d48f959a1 100644 --- a/frontend/src/pages/PrintersPage.tsx +++ b/frontend/src/pages/PrintersPage.tsx @@ -6743,6 +6743,7 @@ export function PrintersPage() { setCompactToolbar(prev => (prev === shouldCompact ? prev : shouldCompact)); }, []); + const smartPlugCount = Object.keys(smartPlugByPrinter).length; useLayoutEffect(() => { measureToolbar(); @@ -6767,7 +6768,7 @@ export function PrintersPage() { printers?.length, availableLocations.length, hideDisconnected, - Object.keys(smartPlugByPrinter).length, + smartPlugCount, ]); const renderFilterControls = (inMenu = false) => ( diff --git a/static/assets/index-DVU9Hr5-.js b/static/assets/index-BofTUuqf.js similarity index 93% rename from static/assets/index-DVU9Hr5-.js rename to static/assets/index-BofTUuqf.js index 4bfb53630..87235c5a6 100644 --- a/static/assets/index-DVU9Hr5-.js +++ b/static/assets/index-BofTUuqf.js @@ -1,12 +1,12 @@ -function wue(t,e){for(var n=0;na[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))a(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var ck=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var OM={exports:{}},Iv={};var lH;function Sue(){if(lH)return Iv;lH=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(a,i,s){var o=null;if(s!==void 0&&(o=""+s),i.key!==void 0&&(o=""+i.key),"key"in i){s={};for(var l in i)l!=="key"&&(s[l]=i[l])}else s=i;return i=s.ref,{$$typeof:t,type:a,key:o,ref:i!==void 0?i:null,props:s}}return Iv.Fragment=e,Iv.jsx=n,Iv.jsxs=n,Iv}var cH;function _ue(){return cH||(cH=1,OM.exports=Sue()),OM.exports}var r=_ue(),zM={exports:{}},Gn={};var dH;function kue(){if(dH)return Gn;dH=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),h=Symbol.iterator;function f(V){return V===null||typeof V!="object"?null:(V=h&&V[h]||V["@@iterator"],typeof V=="function"?V:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function b(V,ie,me){this.props=V,this.context=ie,this.refs=g,this.updater=me||x}b.prototype.isReactComponent={},b.prototype.setState=function(V,ie){if(typeof V!="object"&&typeof V!="function"&&V!=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,V,ie,"setState")},b.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function S(){}S.prototype=b.prototype;function N(V,ie,me){this.props=V,this.context=ie,this.refs=g,this.updater=me||x}var P=N.prototype=new S;P.constructor=N,v(P,b.prototype),P.isPureReactComponent=!0;var C=Array.isArray;function T(){}var A={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function k(V,ie,me){var be=me.ref;return{$$typeof:t,type:V,key:ie,ref:be!==void 0?be:null,props:me}}function j(V,ie){return k(V.type,ie,V.props)}function B(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function O(V){var ie={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(me){return ie[me]})}var W=/\/+/g;function L(V,ie){return typeof V=="object"&&V!==null&&V.key!=null?O(""+V.key):ie.toString(36)}function ee(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status=="string"?V.then(T,T):(V.status="pending",V.then(function(ie){V.status==="pending"&&(V.status="fulfilled",V.value=ie)},function(ie){V.status==="pending"&&(V.status="rejected",V.reason=ie)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function ne(V,ie,me,be,fe){var H=typeof V;(H==="undefined"||H==="boolean")&&(V=null);var Q=!1;if(V===null)Q=!0;else switch(H){case"bigint":case"string":case"number":Q=!0;break;case"object":switch(V.$$typeof){case t:case e:Q=!0;break;case u:return Q=V._init,ne(Q(V._payload),ie,me,be,fe)}}if(Q)return fe=fe(V),Q=be===""?"."+L(V,0):be,C(fe)?(me="",Q!=null&&(me=Q.replace(W,"$&/")+"/"),ne(fe,ie,me,"",function(U){return U})):fe!=null&&(B(fe)&&(fe=j(fe,me+(fe.key==null||V&&V.key===fe.key?"":(""+fe.key).replace(W,"$&/")+"/")+Q)),ie.push(fe)),1;Q=0;var F=be===""?".":be+":";if(C(V))for(var D=0;D>>1,oe=ne[ae];if(0>>1;aei(me,ce))bei(fe,me)?(ne[ae]=fe,ne[be]=ce,ae=be):(ne[ae]=me,ne[ie]=ce,ae=ie);else if(bei(fe,ce))ne[ae]=fe,ne[be]=ce,ae=be;else break e}}return J}function i(ne,J){var ce=ne.sortIndex-J.sortIndex;return ce!==0?ce:ne.id-J.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],d=[],u=1,m=null,h=3,f=!1,x=!1,v=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function P(ne){for(var J=n(d);J!==null;){if(J.callback===null)a(d);else if(J.startTime<=ne)a(d),J.sortIndex=J.expirationTime,e(c,J);else break;J=n(d)}}function C(ne){if(v=!1,P(ne),!x)if(n(c)!==null)x=!0,T||(T=!0,O());else{var J=n(d);J!==null&&ee(C,J.startTime-ne)}}var T=!1,A=-1,E=5,k=-1;function j(){return g?!0:!(t.unstable_now()-kne&&j());){var ae=m.callback;if(typeof ae=="function"){m.callback=null,h=m.priorityLevel;var oe=ae(m.expirationTime<=ne);if(ne=t.unstable_now(),typeof oe=="function"){m.callback=oe,P(ne),J=!0;break t}m===n(c)&&a(c),P(ne)}else a(c);m=n(c)}if(m!==null)J=!0;else{var V=n(d);V!==null&&ee(C,V.startTime-ne),J=!1}}break e}finally{m=null,h=ce,f=!1}J=void 0}}finally{J?O():T=!1}}}var O;if(typeof N=="function")O=function(){N(B)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,L=W.port2;W.port1.onmessage=B,O=function(){L.postMessage(null)}}else O=function(){b(B,0)};function ee(ne,J){A=b(function(){ne(t.unstable_now())},J)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(ne){ne.callback=null},t.unstable_forceFrameRate=function(ne){0>ne||125ae?(ne.sortIndex=ce,e(d,ne),n(c)===null&&ne===n(d)&&(v?(S(A),A=-1):v=!0,ee(C,ce-ae))):(ne.sortIndex=oe,e(c,ne),x||f||(x=!0,T||(T=!0,O()))),ne},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(ne){var J=h;return function(){var ce=h;h=J;try{return ne.apply(this,arguments)}finally{h=ce}}}})(HM)),HM}var hH;function Pue(){return hH||(hH=1,BM.exports=Cue()),BM.exports}var qM={exports:{}},Fs={};var pH;function Tue(){if(pH)return Fs;pH=1;var t=Vg();function e(c){var d="https://react.dev/errors/"+c;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),qM.exports=Tue(),qM.exports}var gH;function Aue(){if(gH)return Ov;gH=1;var t=Pue(),e=Vg(),n=PY();function a(p){var y="https://react.dev/errors/"+p;if(1oe||(p.current=ae[oe],ae[oe]=null,oe--)}function me(p,y){oe++,ae[oe]=p.current,p.current=y}var be=V(null),fe=V(null),H=V(null),Q=V(null);function F(p,y){switch(me(H,y),me(fe,p),me(be,null),y.nodeType){case 9:case 11:p=(p=y.documentElement)&&(p=p.namespaceURI)?M8(p):0;break;default:if(p=y.tagName,y=y.namespaceURI)y=M8(y),p=E8(y,p);else switch(p){case"svg":p=1;break;case"math":p=2;break;default:p=0}}ie(be),me(be,p)}function D(){ie(be),ie(fe),ie(H)}function U(p){p.memoizedState!==null&&me(Q,p);var y=be.current,_=E8(y,p.type);y!==_&&(me(fe,p),me(be,_))}function Y(p){fe.current===p&&(ie(be),ie(fe)),Q.current===p&&(ie(Q),Dv._currentValue=ce)}var I,de;function z(p){if(I===void 0)try{throw Error()}catch(_){var y=_.stack.trim().match(/\n( *(at )?)/);I=y&&y[1]||"",de=-1<_.stack.indexOf(` +function wue(t,e){for(var n=0;na[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))a(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var ck=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var OM={exports:{}},Iv={};var lH;function Sue(){if(lH)return Iv;lH=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(a,i,s){var o=null;if(s!==void 0&&(o=""+s),i.key!==void 0&&(o=""+i.key),"key"in i){s={};for(var l in i)l!=="key"&&(s[l]=i[l])}else s=i;return i=s.ref,{$$typeof:t,type:a,key:o,ref:i!==void 0?i:null,props:s}}return Iv.Fragment=e,Iv.jsx=n,Iv.jsxs=n,Iv}var cH;function _ue(){return cH||(cH=1,OM.exports=Sue()),OM.exports}var r=_ue(),zM={exports:{}},Gn={};var dH;function kue(){if(dH)return Gn;dH=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),h=Symbol.iterator;function f(V){return V===null||typeof V!="object"?null:(V=h&&V[h]||V["@@iterator"],typeof V=="function"?V:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function b(V,ie,me){this.props=V,this.context=ie,this.refs=g,this.updater=me||x}b.prototype.isReactComponent={},b.prototype.setState=function(V,ie){if(typeof V!="object"&&typeof V!="function"&&V!=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,V,ie,"setState")},b.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function S(){}S.prototype=b.prototype;function N(V,ie,me){this.props=V,this.context=ie,this.refs=g,this.updater=me||x}var P=N.prototype=new S;P.constructor=N,v(P,b.prototype),P.isPureReactComponent=!0;var C=Array.isArray;function T(){}var A={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function k(V,ie,me){var be=me.ref;return{$$typeof:t,type:V,key:ie,ref:be!==void 0?be:null,props:me}}function j(V,ie){return k(V.type,ie,V.props)}function B(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function O(V){var ie={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(me){return ie[me]})}var W=/\/+/g;function L(V,ie){return typeof V=="object"&&V!==null&&V.key!=null?O(""+V.key):ie.toString(36)}function ee(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status=="string"?V.then(T,T):(V.status="pending",V.then(function(ie){V.status==="pending"&&(V.status="fulfilled",V.value=ie)},function(ie){V.status==="pending"&&(V.status="rejected",V.reason=ie)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function ne(V,ie,me,be,fe){var H=typeof V;(H==="undefined"||H==="boolean")&&(V=null);var Q=!1;if(V===null)Q=!0;else switch(H){case"bigint":case"string":case"number":Q=!0;break;case"object":switch(V.$$typeof){case t:case e:Q=!0;break;case u:return Q=V._init,ne(Q(V._payload),ie,me,be,fe)}}if(Q)return fe=fe(V),Q=be===""?"."+L(V,0):be,C(fe)?(me="",Q!=null&&(me=Q.replace(W,"$&/")+"/"),ne(fe,ie,me,"",function(U){return U})):fe!=null&&(B(fe)&&(fe=j(fe,me+(fe.key==null||V&&V.key===fe.key?"":(""+fe.key).replace(W,"$&/")+"/")+Q)),ie.push(fe)),1;Q=0;var F=be===""?".":be+":";if(C(V))for(var D=0;D>>1,oe=ne[ae];if(0>>1;aei(me,ce))bei(fe,me)?(ne[ae]=fe,ne[be]=ce,ae=be):(ne[ae]=me,ne[ie]=ce,ae=ie);else if(bei(fe,ce))ne[ae]=fe,ne[be]=ce,ae=be;else break e}}return J}function i(ne,J){var ce=ne.sortIndex-J.sortIndex;return ce!==0?ce:ne.id-J.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],d=[],u=1,m=null,h=3,f=!1,x=!1,v=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function P(ne){for(var J=n(d);J!==null;){if(J.callback===null)a(d);else if(J.startTime<=ne)a(d),J.sortIndex=J.expirationTime,e(c,J);else break;J=n(d)}}function C(ne){if(v=!1,P(ne),!x)if(n(c)!==null)x=!0,T||(T=!0,O());else{var J=n(d);J!==null&&ee(C,J.startTime-ne)}}var T=!1,A=-1,E=5,k=-1;function j(){return g?!0:!(t.unstable_now()-kne&&j());){var ae=m.callback;if(typeof ae=="function"){m.callback=null,h=m.priorityLevel;var oe=ae(m.expirationTime<=ne);if(ne=t.unstable_now(),typeof oe=="function"){m.callback=oe,P(ne),J=!0;break t}m===n(c)&&a(c),P(ne)}else a(c);m=n(c)}if(m!==null)J=!0;else{var V=n(d);V!==null&&ee(C,V.startTime-ne),J=!1}}break e}finally{m=null,h=ce,f=!1}J=void 0}}finally{J?O():T=!1}}}var O;if(typeof N=="function")O=function(){N(B)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,L=W.port2;W.port1.onmessage=B,O=function(){L.postMessage(null)}}else O=function(){b(B,0)};function ee(ne,J){A=b(function(){ne(t.unstable_now())},J)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(ne){ne.callback=null},t.unstable_forceFrameRate=function(ne){0>ne||125ae?(ne.sortIndex=ce,e(d,ne),n(c)===null&&ne===n(d)&&(v?(S(A),A=-1):v=!0,ee(C,ce-ae))):(ne.sortIndex=oe,e(c,ne),x||f||(x=!0,T||(T=!0,O()))),ne},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(ne){var J=h;return function(){var ce=h;h=J;try{return ne.apply(this,arguments)}finally{h=ce}}}})(HM)),HM}var hH;function Pue(){return hH||(hH=1,BM.exports=Cue()),BM.exports}var qM={exports:{}},Fs={};var pH;function Tue(){if(pH)return Fs;pH=1;var t=Vg();function e(c){var d="https://react.dev/errors/"+c;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),qM.exports=Tue(),qM.exports}var gH;function Aue(){if(gH)return Ov;gH=1;var t=Pue(),e=Vg(),n=PY();function a(p){var y="https://react.dev/errors/"+p;if(1oe||(p.current=ae[oe],ae[oe]=null,oe--)}function me(p,y){oe++,ae[oe]=p.current,p.current=y}var be=V(null),fe=V(null),H=V(null),Q=V(null);function F(p,y){switch(me(H,y),me(fe,p),me(be,null),y.nodeType){case 9:case 11:p=(p=y.documentElement)&&(p=p.namespaceURI)?M8(p):0;break;default:if(p=y.tagName,y=y.namespaceURI)y=M8(y),p=E8(y,p);else switch(p){case"svg":p=1;break;case"math":p=2;break;default:p=0}}ie(be),me(be,p)}function D(){ie(be),ie(fe),ie(H)}function U(p){p.memoizedState!==null&&me(Q,p);var y=be.current,_=E8(y,p.type);y!==_&&(me(fe,p),me(be,_))}function Y(p){fe.current===p&&(ie(be),ie(fe)),Q.current===p&&(ie(Q),Dv._currentValue=ce)}var I,de;function z(p){if(I===void 0)try{throw Error()}catch(_){var y=_.stack.trim().match(/\n( *(at )?)/);I=y&&y[1]||"",de=-1<_.stack.indexOf(` at`)?" ()":-1<_.stack.indexOf("@")?"@unknown:0:0":""}return` -`+I+p+de}var X=!1;function $(p,y){if(!p||X)return"";X=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var M={DetermineComponentFrameRoot:function(){try{if(y){var Vt=function(){throw Error()};if(Object.defineProperty(Vt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Vt,[])}catch(Lt){var Mt=Lt}Reflect.construct(p,[],Vt)}else{try{Vt.call()}catch(Lt){Mt=Lt}p.call(Vt.prototype)}}else{try{throw Error()}catch(Lt){Mt=Lt}(Vt=p())&&typeof Vt.catch=="function"&&Vt.catch(function(){})}}catch(Lt){if(Lt&&Mt&&typeof Lt.stack=="string")return[Lt.stack,Mt.stack]}return[null,null]}};M.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var G=Object.getOwnPropertyDescriptor(M.DetermineComponentFrameRoot,"name");G&&G.configurable&&Object.defineProperty(M.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var Z=M.DetermineComponentFrameRoot(),ke=Z[0],He=Z[1];if(ke&&He){var dt=ke.split(` -`),At=He.split(` -`);for(G=M=0;MG||dt[M]!==At[G]){var Ut=` -`+dt[M].replace(" at new "," at ");return p.displayName&&Ut.includes("")&&(Ut=Ut.replace("",p.displayName)),Ut}while(1<=M&&0<=G);break}}}finally{X=!1,Error.prepareStackTrace=_}return(_=p?p.displayName||p.name:"")?z(_):""}function K(p,y){switch(p.tag){case 26:case 27:case 5:return z(p.type);case 16:return z("Lazy");case 13:return p.child!==y&&y!==null?z("Suspense Fallback"):z("Suspense");case 19:return z("SuspenseList");case 0:case 15:return $(p.type,!1);case 11:return $(p.type.render,!1);case 1:return $(p.type,!0);case 31:return z("Activity");default:return""}}function te(p){try{var y="",_=null;do y+=K(p,_),_=p,p=p.return;while(p);return y}catch(M){return` +`+I+p+de}var X=!1;function $(p,y){if(!p||X)return"";X=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var M={DetermineComponentFrameRoot:function(){try{if(y){var Vt=function(){throw Error()};if(Object.defineProperty(Vt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Vt,[])}catch(Rt){var jt=Rt}Reflect.construct(p,[],Vt)}else{try{Vt.call()}catch(Rt){jt=Rt}p.call(Vt.prototype)}}else{try{throw Error()}catch(Rt){jt=Rt}(Vt=p())&&typeof Vt.catch=="function"&&Vt.catch(function(){})}}catch(Rt){if(Rt&&jt&&typeof Rt.stack=="string")return[Rt.stack,jt.stack]}return[null,null]}};M.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var G=Object.getOwnPropertyDescriptor(M.DetermineComponentFrameRoot,"name");G&&G.configurable&&Object.defineProperty(M.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var Z=M.DetermineComponentFrameRoot(),ke=Z[0],qe=Z[1];if(ke&&qe){var ct=ke.split(` +`),Tt=qe.split(` +`);for(G=M=0;MG||ct[M]!==Tt[G]){var Ut=` +`+ct[M].replace(" at new "," at ");return p.displayName&&Ut.includes("")&&(Ut=Ut.replace("",p.displayName)),Ut}while(1<=M&&0<=G);break}}}finally{X=!1,Error.prepareStackTrace=_}return(_=p?p.displayName||p.name:"")?z(_):""}function K(p,y){switch(p.tag){case 26:case 27:case 5:return z(p.type);case 16:return z("Lazy");case 13:return p.child!==y&&y!==null?z("Suspense Fallback"):z("Suspense");case 19:return z("SuspenseList");case 0:case 15:return $(p.type,!1);case 11:return $(p.type.render,!1);case 1:return $(p.type,!0);case 31:return z("Activity");default:return""}}function te(p){try{var y="",_=null;do y+=K(p,_),_=p,p=p.return;while(p);return y}catch(M){return` Error generating stack: `+M.message+` -`+M.stack}}var re=Object.prototype.hasOwnProperty,xe=t.unstable_scheduleCallback,he=t.unstable_cancelCallback,ue=t.unstable_shouldYield,q=t.unstable_requestPaint,R=t.unstable_now,se=t.unstable_getCurrentPriorityLevel,we=t.unstable_ImmediatePriority,Se=t.unstable_UserBlockingPriority,Pe=t.unstable_NormalPriority,ye=t.unstable_LowPriority,ge=t.unstable_IdlePriority,Me=t.log,Re=t.unstable_setDisableYieldValue,_e=null,ze=null;function Te(p){if(typeof Me=="function"&&Re(p),ze&&typeof ze.setStrictMode=="function")try{ze.setStrictMode(_e,p)}catch{}}var Ue=Math.clz32?Math.clz32:Fe,Ge=Math.log,rt=Math.LN2;function Fe(p){return p>>>=0,p===0?32:31-(Ge(p)/rt|0)|0}var nt=256,Ne=262144,Xe=4194304;function Oe(p){var y=p&42;if(y!==0)return y;switch(p&-p){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return p&261888;case 262144:case 524288:case 1048576:case 2097152:return p&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return p&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return p}}function pe(p,y,_){var M=p.pendingLanes;if(M===0)return 0;var G=0,Z=p.suspendedLanes,ke=p.pingedLanes;p=p.warmLanes;var He=M&134217727;return He!==0?(M=He&~Z,M!==0?G=Oe(M):(ke&=He,ke!==0?G=Oe(ke):_||(_=He&~p,_!==0&&(G=Oe(_))))):(He=M&~Z,He!==0?G=Oe(He):ke!==0?G=Oe(ke):_||(_=M&~p,_!==0&&(G=Oe(_)))),G===0?0:y!==0&&y!==G&&(y&Z)===0&&(Z=G&-G,_=y&-y,Z>=_||Z===32&&(_&4194048)!==0)?y:G}function Ae(p,y){return(p.pendingLanes&~(p.suspendedLanes&~p.pingedLanes)&y)===0}function Ve(p,y){switch(p){case 1:case 2:case 4:case 8:case 64:return y+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return y+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ot(){var p=Xe;return Xe<<=1,(Xe&62914560)===0&&(Xe=4194304),p}function bt(p){for(var y=[],_=0;31>_;_++)y.push(p);return y}function Rt(p,y){p.pendingLanes|=y,y!==268435456&&(p.suspendedLanes=0,p.pingedLanes=0,p.warmLanes=0)}function Nt(p,y,_,M,G,Z){var ke=p.pendingLanes;p.pendingLanes=_,p.suspendedLanes=0,p.pingedLanes=0,p.warmLanes=0,p.expiredLanes&=_,p.entangledLanes&=_,p.errorRecoveryDisabledLanes&=_,p.shellSuspendCounter=0;var He=p.entanglements,dt=p.expirationTimes,At=p.hiddenUpdates;for(_=ke&~_;0<_;){var Ut=31-Ue(_),Vt=1<"u")return null;try{return p.activeElement||p.body}catch{return p.body}}var Pr=/[\n"\\]/g;function zn(p){return p.replace(Pr,function(y){return"\\"+y.charCodeAt(0).toString(16)+" "})}function Ra(p,y,_,M,G,Z,ke,He){p.name="",ke!=null&&typeof ke!="function"&&typeof ke!="symbol"&&typeof ke!="boolean"?p.type=ke:p.removeAttribute("type"),y!=null?ke==="number"?(y===0&&p.value===""||p.value!=y)&&(p.value=""+ln(y)):p.value!==""+ln(y)&&(p.value=""+ln(y)):ke!=="submit"&&ke!=="reset"||p.removeAttribute("value"),y!=null?Or(p,ke,ln(y)):_!=null?Or(p,ke,ln(_)):M!=null&&p.removeAttribute("value"),G==null&&Z!=null&&(p.defaultChecked=!!Z),G!=null&&(p.checked=G&&typeof G!="function"&&typeof G!="symbol"),He!=null&&typeof He!="function"&&typeof He!="symbol"&&typeof He!="boolean"?p.name=""+ln(He):p.removeAttribute("name")}function qn(p,y,_,M,G,Z,ke,He){if(Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"&&(p.type=Z),y!=null||_!=null){if(!(Z!=="submit"&&Z!=="reset"||y!=null)){Pn(p);return}_=_!=null?""+ln(_):"",y=y!=null?""+ln(y):_,He||y===p.value||(p.value=y),p.defaultValue=y}M=M??G,M=typeof M!="function"&&typeof M!="symbol"&&!!M,p.checked=He?p.checked:!!M,p.defaultChecked=!!M,ke!=null&&typeof ke!="function"&&typeof ke!="symbol"&&typeof ke!="boolean"&&(p.name=ke),Pn(p)}function Or(p,y,_){y==="number"&&gr(p.ownerDocument)===p||p.defaultValue===""+_||(p.defaultValue=""+_)}function Wr(p,y,_,M){if(p=p.options,y){y={};for(var G=0;G<_.length;G++)y["$"+_[G]]=!0;for(_=0;_"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oi=!1;if($o)try{var wl={};Object.defineProperty(wl,"passive",{get:function(){Oi=!0}}),window.addEventListener("test",wl,wl),window.removeEventListener("test",wl,wl)}catch{Oi=!1}var yo=null,ha=null,yc=null;function Xm(){if(yc)return yc;var p,y=ha,_=y.length,M,G="value"in yo?yo.value:yo.textContent,Z=G.length;for(p=0;p<_&&y[p]===G[p];p++);var ke=_-p;for(M=1;M<=ke&&y[_-M]===G[Z-M];M++);return yc=G.slice(p,1=fu),yt=" ",zt=!1;function lt(p,y){switch(p){case"keyup":return th.indexOf(y.keyCode)!==-1;case"keydown":return y.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cn(p){return p=p.detail,typeof p=="object"&&"data"in p?p.data:null}var Dn=!1;function gn(p,y){switch(p){case"compositionend":return cn(y);case"keypress":return y.which!==32?null:(zt=!0,yt);case"textInput":return p=y.data,p===yt&&zt?null:p;default:return null}}function Rr(p,y){if(Dn)return p==="compositionend"||!pu&<(p,y)?(p=Xm(),yc=ha=yo=null,Dn=!1,p):null;switch(p){case"paste":return null;case"keypress":if(!(y.ctrlKey||y.altKey||y.metaKey)||y.ctrlKey&&y.altKey){if(y.char&&1=y)return{node:_,offset:y-p};p=M}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=GA(_)}}function af(p,y){return p&&y?p===y?!0:p&&p.nodeType===3?!1:y&&y.nodeType===3?af(p,y.parentNode):"contains"in p?p.contains(y):p.compareDocumentPosition?!!(p.compareDocumentPosition(y)&16):!1:!1}function rv(p){p=p!=null&&p.ownerDocument!=null&&p.ownerDocument.defaultView!=null?p.ownerDocument.defaultView:window;for(var y=gr(p.document);y instanceof p.HTMLIFrameElement;){try{var _=typeof y.contentWindow.location.href=="string"}catch{_=!1}if(_)p=y.contentWindow;else break;y=gr(p.document)}return y}function ab(p){var y=p&&p.nodeName&&p.nodeName.toLowerCase();return y&&(y==="input"&&(p.type==="text"||p.type==="search"||p.type==="tel"||p.type==="url"||p.type==="password")||y==="textarea"||p.contentEditable==="true")}var WA=$o&&"documentMode"in document&&11>=document.documentMode,ib=null,KA=null,av=null,XA=!1;function Z5(p,y,_){var M=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;XA||ib==null||ib!==gr(M)||(M=ib,"selectionStart"in M&&ab(M)?M={start:M.selectionStart,end:M.selectionEnd}:(M=(M.ownerDocument&&M.ownerDocument.defaultView||window).getSelection(),M={anchorNode:M.anchorNode,anchorOffset:M.anchorOffset,focusNode:M.focusNode,focusOffset:M.focusOffset}),av&&kn(av,M)||(av=M,M=K_(KA,"onSelect"),0>=ke,G-=ke,md=1<<32-Ue(y)+G|_<Qn?(xr=Nn,Nn=null):xr=Nn.sibling;var jr=Mt(xt,Nn,Pt[Qn],Ht);if(jr===null){Nn===null&&(Nn=xr);break}p&&Nn&&jr.alternate===null&&y(xt,Nn),ft=Z(jr,ft,Qn),Ar===null?Mn=jr:Ar.sibling=jr,Ar=jr,Nn=xr}if(Qn===Pt.length)return _(xt,Nn),wr&&xu(xt,Qn),Mn;if(Nn===null){for(;QnQn?(xr=Nn,Nn=null):xr=Nn.sibling;var _h=Mt(xt,Nn,jr.value,Ht);if(_h===null){Nn===null&&(Nn=xr);break}p&&Nn&&_h.alternate===null&&y(xt,Nn),ft=Z(_h,ft,Qn),Ar===null?Mn=_h:Ar.sibling=_h,Ar=_h,Nn=xr}if(jr.done)return _(xt,Nn),wr&&xu(xt,Qn),Mn;if(Nn===null){for(;!jr.done;Qn++,jr=Pt.next())jr=Vt(xt,jr.value,Ht),jr!==null&&(ft=Z(jr,ft,Qn),Ar===null?Mn=jr:Ar.sibling=jr,Ar=jr);return wr&&xu(xt,Qn),Mn}for(Nn=M(Nn);!jr.done;Qn++,jr=Pt.next())jr=Lt(Nn,xt,Qn,jr.value,Ht),jr!==null&&(p&&jr.alternate!==null&&Nn.delete(jr.key===null?Qn:jr.key),ft=Z(jr,ft,Qn),Ar===null?Mn=jr:Ar.sibling=jr,Ar=jr);return p&&Nn.forEach(function(vue){return y(xt,vue)}),wr&&xu(xt,Qn),Mn}function Qr(xt,ft,Pt,Ht){if(typeof Pt=="object"&&Pt!==null&&Pt.type===v&&Pt.key===null&&(Pt=Pt.props.children),typeof Pt=="object"&&Pt!==null){switch(Pt.$$typeof){case f:e:{for(var Mn=Pt.key;ft!==null;){if(ft.key===Mn){if(Mn=Pt.type,Mn===v){if(ft.tag===7){_(xt,ft.sibling),Ht=G(ft,Pt.props.children),Ht.return=xt,xt=Ht;break e}}else if(ft.elementType===Mn||typeof Mn=="object"&&Mn!==null&&Mn.$$typeof===E&&pf(Mn)===ft.type){_(xt,ft.sibling),Ht=G(ft,Pt.props),dv(Ht,Pt),Ht.return=xt,xt=Ht;break e}_(xt,ft);break}else y(xt,ft);ft=ft.sibling}Pt.type===v?(Ht=cf(Pt.props.children,xt.mode,Ht,Pt.key),Ht.return=xt,xt=Ht):(Ht=u_(Pt.type,Pt.key,Pt.props,null,xt.mode,Ht),dv(Ht,Pt),Ht.return=xt,xt=Ht)}return ke(xt);case x:e:{for(Mn=Pt.key;ft!==null;){if(ft.key===Mn)if(ft.tag===4&&ft.stateNode.containerInfo===Pt.containerInfo&&ft.stateNode.implementation===Pt.implementation){_(xt,ft.sibling),Ht=G(ft,Pt.children||[]),Ht.return=xt,xt=Ht;break e}else{_(xt,ft);break}else y(xt,ft);ft=ft.sibling}Ht=nj(Pt,xt.mode,Ht),Ht.return=xt,xt=Ht}return ke(xt);case E:return Pt=pf(Pt),Qr(xt,ft,Pt,Ht)}if(ee(Pt))return bn(xt,ft,Pt,Ht);if(O(Pt)){if(Mn=O(Pt),typeof Mn!="function")throw Error(a(150));return Pt=Mn.call(Pt),On(xt,ft,Pt,Ht)}if(typeof Pt.then=="function")return Qr(xt,ft,x_(Pt),Ht);if(Pt.$$typeof===N)return Qr(xt,ft,p_(xt,Pt),Ht);y_(xt,Pt)}return typeof Pt=="string"&&Pt!==""||typeof Pt=="number"||typeof Pt=="bigint"?(Pt=""+Pt,ft!==null&&ft.tag===6?(_(xt,ft.sibling),Ht=G(ft,Pt),Ht.return=xt,xt=Ht):(_(xt,ft),Ht=tj(Pt,xt.mode,Ht),Ht.return=xt,xt=Ht),ke(xt)):_(xt,ft)}return function(xt,ft,Pt,Ht){try{cv=0;var Mn=Qr(xt,ft,Pt,Ht);return gb=null,Mn}catch(Nn){if(Nn===fb||Nn===g_)throw Nn;var Ar=Ko(29,Nn,null,xt.mode);return Ar.lanes=Ht,Ar.return=xt,Ar}}}var gf=SU(!0),_U=SU(!1),sh=!1;function pj(p){p.updateQueue={baseState:p.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fj(p,y){p=p.updateQueue,y.updateQueue===p&&(y.updateQueue={baseState:p.baseState,firstBaseUpdate:p.firstBaseUpdate,lastBaseUpdate:p.lastBaseUpdate,shared:p.shared,callbacks:null})}function oh(p){return{lane:p,tag:0,payload:null,callback:null,next:null}}function lh(p,y,_){var M=p.updateQueue;if(M===null)return null;if(M=M.shared,(Fr&2)!==0){var G=M.pending;return G===null?y.next=y:(y.next=G.next,G.next=y),M.pending=y,y=d_(p),sU(p,null,_),y}return c_(p,M,y,_),d_(p)}function uv(p,y,_){if(y=y.updateQueue,y!==null&&(y=y.shared,(_&4194048)!==0)){var M=y.lanes;M&=p.pendingLanes,_|=M,y.lanes=_,tt(p,_)}}function gj(p,y){var _=p.updateQueue,M=p.alternate;if(M!==null&&(M=M.updateQueue,_===M)){var G=null,Z=null;if(_=_.firstBaseUpdate,_!==null){do{var ke={lane:_.lane,tag:_.tag,payload:_.payload,callback:null,next:null};Z===null?G=Z=ke:Z=Z.next=ke,_=_.next}while(_!==null);Z===null?G=Z=y:Z=Z.next=y}else G=Z=y;_={baseState:M.baseState,firstBaseUpdate:G,lastBaseUpdate:Z,shared:M.shared,callbacks:M.callbacks},p.updateQueue=_;return}p=_.lastBaseUpdate,p===null?_.firstBaseUpdate=y:p.next=y,_.lastBaseUpdate=y}var bj=!1;function mv(){if(bj){var p=pb;if(p!==null)throw p}}function hv(p,y,_,M){bj=!1;var G=p.updateQueue;sh=!1;var Z=G.firstBaseUpdate,ke=G.lastBaseUpdate,He=G.shared.pending;if(He!==null){G.shared.pending=null;var dt=He,At=dt.next;dt.next=null,ke===null?Z=At:ke.next=At,ke=dt;var Ut=p.alternate;Ut!==null&&(Ut=Ut.updateQueue,He=Ut.lastBaseUpdate,He!==ke&&(He===null?Ut.firstBaseUpdate=At:He.next=At,Ut.lastBaseUpdate=dt))}if(Z!==null){var Vt=G.baseState;ke=0,Ut=At=dt=null,He=Z;do{var Mt=He.lane&-536870913,Lt=Mt!==He.lane;if(Lt?(br&Mt)===Mt:(M&Mt)===Mt){Mt!==0&&Mt===hb&&(bj=!0),Ut!==null&&(Ut=Ut.next={lane:0,tag:He.tag,payload:He.payload,callback:null,next:null});e:{var bn=p,On=He;Mt=y;var Qr=_;switch(On.tag){case 1:if(bn=On.payload,typeof bn=="function"){Vt=bn.call(Qr,Vt,Mt);break e}Vt=bn;break e;case 3:bn.flags=bn.flags&-65537|128;case 0:if(bn=On.payload,Mt=typeof bn=="function"?bn.call(Qr,Vt,Mt):bn,Mt==null)break e;Vt=m({},Vt,Mt);break e;case 2:sh=!0}}Mt=He.callback,Mt!==null&&(p.flags|=64,Lt&&(p.flags|=8192),Lt=G.callbacks,Lt===null?G.callbacks=[Mt]:Lt.push(Mt))}else Lt={lane:Mt,tag:He.tag,payload:He.payload,callback:He.callback,next:null},Ut===null?(At=Ut=Lt,dt=Vt):Ut=Ut.next=Lt,ke|=Mt;if(He=He.next,He===null){if(He=G.shared.pending,He===null)break;Lt=He,He=Lt.next,Lt.next=null,G.lastBaseUpdate=Lt,G.shared.pending=null}}while(!0);Ut===null&&(dt=Vt),G.baseState=dt,G.firstBaseUpdate=At,G.lastBaseUpdate=Ut,Z===null&&(G.shared.lanes=0),hh|=ke,p.lanes=ke,p.memoizedState=Vt}}function kU(p,y){if(typeof p!="function")throw Error(a(191,p));p.call(y)}function NU(p,y){var _=p.callbacks;if(_!==null)for(p.callbacks=null,p=0;p<_.length;p++)kU(_[p],y)}var bb=V(null),v_=V(0);function CU(p,y){p=Au,me(v_,p),me(bb,y),Au=p|y.baseLanes}function xj(){me(v_,Au),me(bb,bb.current)}function yj(){Au=v_.current,ie(bb),ie(v_)}var Xo=V(null),Ml=null;function ch(p){var y=p.alternate;me(ti,ti.current&1),me(Xo,p),Ml===null&&(y===null||bb.current!==null||y.memoizedState!==null)&&(Ml=p)}function vj(p){me(ti,ti.current),me(Xo,p),Ml===null&&(Ml=p)}function PU(p){p.tag===22?(me(ti,ti.current),me(Xo,p),Ml===null&&(Ml=p)):dh()}function dh(){me(ti,ti.current),me(Xo,Xo.current)}function Qo(p){ie(Xo),Ml===p&&(Ml=null),ie(ti)}var ti=V(0);function w_(p){for(var y=p;y!==null;){if(y.tag===13){var _=y.memoizedState;if(_!==null&&(_=_.dehydrated,_===null||CM(_)||PM(_)))return y}else if(y.tag===19&&(y.memoizedProps.revealOrder==="forwards"||y.memoizedProps.revealOrder==="backwards"||y.memoizedProps.revealOrder==="unstable_legacy-backwards"||y.memoizedProps.revealOrder==="together")){if((y.flags&128)!==0)return y}else if(y.child!==null){y.child.return=y,y=y.child;continue}if(y===p)break;for(;y.sibling===null;){if(y.return===null||y.return===p)return null;y=y.return}y.sibling.return=y.return,y=y.sibling}return null}var wu=0,Kn=null,Kr=null,li=null,S_=!1,xb=!1,bf=!1,__=0,pv=0,yb=null,dde=0;function qa(){throw Error(a(321))}function wj(p,y){if(y===null)return!1;for(var _=0;_Z?Z:8;var ke=ne.T,He={};ne.T=He,Lj(p,!1,y,_);try{var dt=G(),At=ne.S;if(At!==null&&At(He,dt),dt!==null&&typeof dt=="object"&&typeof dt.then=="function"){var Ut=cde(dt,M);gv(p,y,Ut,Zo(p))}else gv(p,y,M,Zo(p))}catch(Vt){gv(p,y,{then:function(){},status:"rejected",reason:Vt},Zo())}finally{J.p=Z,ke!==null&&He.types!==null&&(ke.types=He.types),ne.T=ke}}function fde(){}function Fj(p,y,_,M){if(p.tag!==5)throw Error(a(476));var G=rB(p).queue;nB(p,G,y,ce,_===null?fde:function(){return aB(p),_(M)})}function rB(p){var y=p.memoizedState;if(y!==null)return y;y={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Su,lastRenderedState:ce},next:null};var _={};return y.next={memoizedState:_,baseState:_,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Su,lastRenderedState:_},next:null},p.memoizedState=y,p=p.alternate,p!==null&&(p.memoizedState=y),y}function aB(p){var y=rB(p);y.next===null&&(y=p.alternate.memoizedState),gv(p,y.next.queue,{},Zo())}function Rj(){return ms(Dv)}function iB(){return ni().memoizedState}function sB(){return ni().memoizedState}function gde(p){for(var y=p.return;y!==null;){switch(y.tag){case 24:case 3:var _=Zo();p=oh(_);var M=lh(y,p,_);M!==null&&(Po(M,y,_),uv(M,y,_)),y={cache:dj()},p.payload=y;return}y=y.return}}function bde(p,y,_){var M=Zo();_={lane:M,revertLane:0,gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null},A_(p)?lB(y,_):(_=ZA(p,y,_,M),_!==null&&(Po(_,p,M),cB(_,y,M)))}function oB(p,y,_){var M=Zo();gv(p,y,_,M)}function gv(p,y,_,M){var G={lane:M,revertLane:0,gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null};if(A_(p))lB(y,G);else{var Z=p.alternate;if(p.lanes===0&&(Z===null||Z.lanes===0)&&(Z=y.lastRenderedReducer,Z!==null))try{var ke=y.lastRenderedState,He=Z(ke,_);if(G.hasEagerState=!0,G.eagerState=He,_i(He,ke))return c_(p,y,G,0),oa===null&&l_(),!1}catch{}if(_=ZA(p,y,G,M),_!==null)return Po(_,p,M),cB(_,y,M),!0}return!1}function Lj(p,y,_,M){if(M={lane:2,revertLane:pM(),gesture:null,action:M,hasEagerState:!1,eagerState:null,next:null},A_(p)){if(y)throw Error(a(479))}else y=ZA(p,_,M,2),y!==null&&Po(y,p,2)}function A_(p){var y=p.alternate;return p===Kn||y!==null&&y===Kn}function lB(p,y){xb=S_=!0;var _=p.pending;_===null?y.next=y:(y.next=_.next,_.next=y),p.pending=y}function cB(p,y,_){if((_&4194048)!==0){var M=y.lanes;M&=p.pendingLanes,_|=M,y.lanes=_,tt(p,_)}}var bv={readContext:ms,use:N_,useCallback:qa,useContext:qa,useEffect:qa,useImperativeHandle:qa,useLayoutEffect:qa,useInsertionEffect:qa,useMemo:qa,useReducer:qa,useRef:qa,useState:qa,useDebugValue:qa,useDeferredValue:qa,useTransition:qa,useSyncExternalStore:qa,useId:qa,useHostTransitionStatus:qa,useFormState:qa,useActionState:qa,useOptimistic:qa,useMemoCache:qa,useCacheRefresh:qa};bv.useEffectEvent=qa;var dB={readContext:ms,use:N_,useCallback:function(p,y){return Js().memoizedState=[p,y===void 0?null:y],p},useContext:ms,useEffect:WU,useImperativeHandle:function(p,y,_){_=_!=null?_.concat([p]):null,P_(4194308,4,YU.bind(null,y,p),_)},useLayoutEffect:function(p,y){return P_(4194308,4,p,y)},useInsertionEffect:function(p,y){P_(4,2,p,y)},useMemo:function(p,y){var _=Js();y=y===void 0?null:y;var M=p();if(bf){Te(!0);try{p()}finally{Te(!1)}}return _.memoizedState=[M,y],M},useReducer:function(p,y,_){var M=Js();if(_!==void 0){var G=_(y);if(bf){Te(!0);try{_(y)}finally{Te(!1)}}}else G=y;return M.memoizedState=M.baseState=G,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:G},M.queue=p,p=p.dispatch=bde.bind(null,Kn,p),[M.memoizedState,p]},useRef:function(p){var y=Js();return p={current:p},y.memoizedState=p},useState:function(p){p=Aj(p);var y=p.queue,_=oB.bind(null,Kn,y);return y.dispatch=_,[p.memoizedState,_]},useDebugValue:Ej,useDeferredValue:function(p,y){var _=Js();return Dj(_,p,y)},useTransition:function(){var p=Aj(!1);return p=nB.bind(null,Kn,p.queue,!0,!1),Js().memoizedState=p,[!1,p]},useSyncExternalStore:function(p,y,_){var M=Kn,G=Js();if(wr){if(_===void 0)throw Error(a(407));_=_()}else{if(_=y(),oa===null)throw Error(a(349));(br&127)!==0||MU(M,y,_)}G.memoizedState=_;var Z={value:_,getSnapshot:y};return G.queue=Z,WU(DU.bind(null,M,Z,p),[p]),M.flags|=2048,vb(9,{destroy:void 0},EU.bind(null,M,Z,_,y),null),_},useId:function(){var p=Js(),y=oa.identifierPrefix;if(wr){var _=hd,M=md;_=(M&~(1<<32-Ue(M)-1)).toString(32)+_,y="_"+y+"R_"+_,_=__++,0<_&&(y+="H"+_.toString(32)),y+="_"}else _=dde++,y="_"+y+"r_"+_.toString(32)+"_";return p.memoizedState=y},useHostTransitionStatus:Rj,useFormState:HU,useActionState:HU,useOptimistic:function(p){var y=Js();y.memoizedState=y.baseState=p;var _={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return y.queue=_,y=Lj.bind(null,Kn,!0,_),_.dispatch=y,[p,y]},useMemoCache:Cj,useCacheRefresh:function(){return Js().memoizedState=gde.bind(null,Kn)},useEffectEvent:function(p){var y=Js(),_={impl:p};return y.memoizedState=_,function(){if((Fr&2)!==0)throw Error(a(440));return _.impl.apply(void 0,arguments)}}},Ij={readContext:ms,use:N_,useCallback:ZU,useContext:ms,useEffect:Mj,useImperativeHandle:JU,useInsertionEffect:XU,useLayoutEffect:QU,useMemo:eB,useReducer:C_,useRef:GU,useState:function(){return C_(Su)},useDebugValue:Ej,useDeferredValue:function(p,y){var _=ni();return tB(_,Kr.memoizedState,p,y)},useTransition:function(){var p=C_(Su)[0],y=ni().memoizedState;return[typeof p=="boolean"?p:fv(p),y]},useSyncExternalStore:jU,useId:iB,useHostTransitionStatus:Rj,useFormState:qU,useActionState:qU,useOptimistic:function(p,y){var _=ni();return LU(_,Kr,p,y)},useMemoCache:Cj,useCacheRefresh:sB};Ij.useEffectEvent=KU;var uB={readContext:ms,use:N_,useCallback:ZU,useContext:ms,useEffect:Mj,useImperativeHandle:JU,useInsertionEffect:XU,useLayoutEffect:QU,useMemo:eB,useReducer:Tj,useRef:GU,useState:function(){return Tj(Su)},useDebugValue:Ej,useDeferredValue:function(p,y){var _=ni();return Kr===null?Dj(_,p,y):tB(_,Kr.memoizedState,p,y)},useTransition:function(){var p=Tj(Su)[0],y=ni().memoizedState;return[typeof p=="boolean"?p:fv(p),y]},useSyncExternalStore:jU,useId:iB,useHostTransitionStatus:Rj,useFormState:VU,useActionState:VU,useOptimistic:function(p,y){var _=ni();return Kr!==null?LU(_,Kr,p,y):(_.baseState=p,[p,_.queue.dispatch])},useMemoCache:Cj,useCacheRefresh:sB};uB.useEffectEvent=KU;function Oj(p,y,_,M){y=p.memoizedState,_=_(M,y),_=_==null?y:m({},y,_),p.memoizedState=_,p.lanes===0&&(p.updateQueue.baseState=_)}var zj={enqueueSetState:function(p,y,_){p=p._reactInternals;var M=Zo(),G=oh(M);G.payload=y,_!=null&&(G.callback=_),y=lh(p,G,M),y!==null&&(Po(y,p,M),uv(y,p,M))},enqueueReplaceState:function(p,y,_){p=p._reactInternals;var M=Zo(),G=oh(M);G.tag=1,G.payload=y,_!=null&&(G.callback=_),y=lh(p,G,M),y!==null&&(Po(y,p,M),uv(y,p,M))},enqueueForceUpdate:function(p,y){p=p._reactInternals;var _=Zo(),M=oh(_);M.tag=2,y!=null&&(M.callback=y),y=lh(p,M,_),y!==null&&(Po(y,p,_),uv(y,p,_))}};function mB(p,y,_,M,G,Z,ke){return p=p.stateNode,typeof p.shouldComponentUpdate=="function"?p.shouldComponentUpdate(M,Z,ke):y.prototype&&y.prototype.isPureReactComponent?!kn(_,M)||!kn(G,Z):!0}function hB(p,y,_,M){p=y.state,typeof y.componentWillReceiveProps=="function"&&y.componentWillReceiveProps(_,M),typeof y.UNSAFE_componentWillReceiveProps=="function"&&y.UNSAFE_componentWillReceiveProps(_,M),y.state!==p&&zj.enqueueReplaceState(y,y.state,null)}function xf(p,y){var _=y;if("ref"in y){_={};for(var M in y)M!=="ref"&&(_[M]=y[M])}if(p=p.defaultProps){_===y&&(_=m({},_));for(var G in p)_[G]===void 0&&(_[G]=p[G])}return _}function pB(p){o_(p)}function fB(p){console.error(p)}function gB(p){o_(p)}function j_(p,y){try{var _=p.onUncaughtError;_(y.value,{componentStack:y.stack})}catch(M){setTimeout(function(){throw M})}}function bB(p,y,_){try{var M=p.onCaughtError;M(_.value,{componentStack:_.stack,errorBoundary:y.tag===1?y.stateNode:null})}catch(G){setTimeout(function(){throw G})}}function Uj(p,y,_){return _=oh(_),_.tag=3,_.payload={element:null},_.callback=function(){j_(p,y)},_}function xB(p){return p=oh(p),p.tag=3,p}function yB(p,y,_,M){var G=_.type.getDerivedStateFromError;if(typeof G=="function"){var Z=M.value;p.payload=function(){return G(Z)},p.callback=function(){bB(y,_,M)}}var ke=_.stateNode;ke!==null&&typeof ke.componentDidCatch=="function"&&(p.callback=function(){bB(y,_,M),typeof G!="function"&&(ph===null?ph=new Set([this]):ph.add(this));var He=M.stack;this.componentDidCatch(M.value,{componentStack:He!==null?He:""})})}function xde(p,y,_,M,G){if(_.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){if(y=_.alternate,y!==null&&mb(y,_,G,!0),_=Xo.current,_!==null){switch(_.tag){case 31:case 13:return Ml===null?H_():_.alternate===null&&$a===0&&($a=3),_.flags&=-257,_.flags|=65536,_.lanes=G,M===b_?_.flags|=16384:(y=_.updateQueue,y===null?_.updateQueue=new Set([M]):y.add(M),uM(p,M,G)),!1;case 22:return _.flags|=65536,M===b_?_.flags|=16384:(y=_.updateQueue,y===null?(y={transitions:null,markerInstances:null,retryQueue:new Set([M])},_.updateQueue=y):(_=y.retryQueue,_===null?y.retryQueue=new Set([M]):_.add(M)),uM(p,M,G)),!1}throw Error(a(435,_.tag))}return uM(p,M,G),H_(),!1}if(wr)return y=Xo.current,y!==null?((y.flags&65536)===0&&(y.flags|=256),y.flags|=65536,y.lanes=G,M!==ij&&(p=Error(a(422),{cause:M}),sv(Pl(p,_)))):(M!==ij&&(y=Error(a(423),{cause:M}),sv(Pl(y,_))),p=p.current.alternate,p.flags|=65536,G&=-G,p.lanes|=G,M=Pl(M,_),G=Uj(p.stateNode,M,G),gj(p,G),$a!==4&&($a=2)),!1;var Z=Error(a(520),{cause:M});if(Z=Pl(Z,_),Nv===null?Nv=[Z]:Nv.push(Z),$a!==4&&($a=2),y===null)return!0;M=Pl(M,_),_=y;do{switch(_.tag){case 3:return _.flags|=65536,p=G&-G,_.lanes|=p,p=Uj(_.stateNode,M,p),gj(_,p),!1;case 1:if(y=_.type,Z=_.stateNode,(_.flags&128)===0&&(typeof y.getDerivedStateFromError=="function"||Z!==null&&typeof Z.componentDidCatch=="function"&&(ph===null||!ph.has(Z))))return _.flags|=65536,G&=-G,_.lanes|=G,G=xB(G),yB(G,p,_,M),gj(_,G),!1}_=_.return}while(_!==null);return!1}var Bj=Error(a(461)),ci=!1;function hs(p,y,_,M){y.child=p===null?_U(y,null,_,M):gf(y,p.child,_,M)}function vB(p,y,_,M,G){_=_.render;var Z=y.ref;if("ref"in M){var ke={};for(var He in M)He!=="ref"&&(ke[He]=M[He])}else ke=M;return mf(y),M=Sj(p,y,_,ke,Z,G),He=_j(),p!==null&&!ci?(kj(p,y,G),_u(p,y,G)):(wr&&He&&rj(y),y.flags|=1,hs(p,y,M,G),y.child)}function wB(p,y,_,M,G){if(p===null){var Z=_.type;return typeof Z=="function"&&!ej(Z)&&Z.defaultProps===void 0&&_.compare===null?(y.tag=15,y.type=Z,SB(p,y,Z,M,G)):(p=u_(_.type,null,M,y,y.mode,G),p.ref=y.ref,p.return=y,y.child=p)}if(Z=p.child,!Xj(p,G)){var ke=Z.memoizedProps;if(_=_.compare,_=_!==null?_:kn,_(ke,M)&&p.ref===y.ref)return _u(p,y,G)}return y.flags|=1,p=bu(Z,M),p.ref=y.ref,p.return=y,y.child=p}function SB(p,y,_,M,G){if(p!==null){var Z=p.memoizedProps;if(kn(Z,M)&&p.ref===y.ref)if(ci=!1,y.pendingProps=M=Z,Xj(p,G))(p.flags&131072)!==0&&(ci=!0);else return y.lanes=p.lanes,_u(p,y,G)}return Hj(p,y,_,M,G)}function _B(p,y,_,M){var G=M.children,Z=p!==null?p.memoizedState:null;if(p===null&&y.stateNode===null&&(y.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),M.mode==="hidden"){if((y.flags&128)!==0){if(Z=Z!==null?Z.baseLanes|_:_,p!==null){for(M=y.child=p.child,G=0;M!==null;)G=G|M.lanes|M.childLanes,M=M.sibling;M=G&~Z}else M=0,y.child=null;return kB(p,y,Z,_,M)}if((_&536870912)!==0)y.memoizedState={baseLanes:0,cachePool:null},p!==null&&f_(y,Z!==null?Z.cachePool:null),Z!==null?CU(y,Z):xj(),PU(y);else return M=y.lanes=536870912,kB(p,y,Z!==null?Z.baseLanes|_:_,_,M)}else Z!==null?(f_(y,Z.cachePool),CU(y,Z),dh(),y.memoizedState=null):(p!==null&&f_(y,null),xj(),dh());return hs(p,y,G,_),y.child}function xv(p,y){return p!==null&&p.tag===22||y.stateNode!==null||(y.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),y.sibling}function kB(p,y,_,M,G){var Z=mj();return Z=Z===null?null:{parent:oi._currentValue,pool:Z},y.memoizedState={baseLanes:_,cachePool:Z},p!==null&&f_(y,null),xj(),PU(y),p!==null&&mb(p,y,M,!0),y.childLanes=G,null}function M_(p,y){return y=D_({mode:y.mode,children:y.children},p.mode),y.ref=p.ref,p.child=y,y.return=p,y}function NB(p,y,_){return gf(y,p.child,null,_),p=M_(y,y.pendingProps),p.flags|=2,Qo(y),y.memoizedState=null,p}function yde(p,y,_){var M=y.pendingProps,G=(y.flags&128)!==0;if(y.flags&=-129,p===null){if(wr){if(M.mode==="hidden")return p=M_(y,M),y.lanes=536870912,xv(null,p);if(vj(y),(p=xa)?(p=I8(p,jl),p=p!==null&&p.data==="&"?p:null,p!==null&&(y.memoizedState={dehydrated:p,treeContext:nh!==null?{id:md,overflow:hd}:null,retryLane:536870912,hydrationErrors:null},_=lU(p),_.return=y,y.child=_,us=y,xa=null)):p=null,p===null)throw ah(y);return y.lanes=536870912,null}return M_(y,M)}var Z=p.memoizedState;if(Z!==null){var ke=Z.dehydrated;if(vj(y),G)if(y.flags&256)y.flags&=-257,y=NB(p,y,_);else if(y.memoizedState!==null)y.child=p.child,y.flags|=128,y=null;else throw Error(a(558));else if(ci||mb(p,y,_,!1),G=(_&p.childLanes)!==0,ci||G){if(M=oa,M!==null&&(ke=qe(M,_),ke!==0&&ke!==Z.retryLane))throw Z.retryLane=ke,lf(p,ke),Po(M,p,ke),Bj;H_(),y=NB(p,y,_)}else p=Z.treeContext,xa=El(ke.nextSibling),us=y,wr=!0,rh=null,jl=!1,p!==null&&uU(y,p),y=M_(y,M),y.flags|=4096;return y}return p=bu(p.child,{mode:M.mode,children:M.children}),p.ref=y.ref,y.child=p,p.return=y,p}function E_(p,y){var _=y.ref;if(_===null)p!==null&&p.ref!==null&&(y.flags|=4194816);else{if(typeof _!="function"&&typeof _!="object")throw Error(a(284));(p===null||p.ref!==_)&&(y.flags|=4194816)}}function Hj(p,y,_,M,G){return mf(y),_=Sj(p,y,_,M,void 0,G),M=_j(),p!==null&&!ci?(kj(p,y,G),_u(p,y,G)):(wr&&M&&rj(y),y.flags|=1,hs(p,y,_,G),y.child)}function CB(p,y,_,M,G,Z){return mf(y),y.updateQueue=null,_=AU(y,M,_,G),TU(p),M=_j(),p!==null&&!ci?(kj(p,y,Z),_u(p,y,Z)):(wr&&M&&rj(y),y.flags|=1,hs(p,y,_,Z),y.child)}function PB(p,y,_,M,G){if(mf(y),y.stateNode===null){var Z=lb,ke=_.contextType;typeof ke=="object"&&ke!==null&&(Z=ms(ke)),Z=new _(M,Z),y.memoizedState=Z.state!==null&&Z.state!==void 0?Z.state:null,Z.updater=zj,y.stateNode=Z,Z._reactInternals=y,Z=y.stateNode,Z.props=M,Z.state=y.memoizedState,Z.refs={},pj(y),ke=_.contextType,Z.context=typeof ke=="object"&&ke!==null?ms(ke):lb,Z.state=y.memoizedState,ke=_.getDerivedStateFromProps,typeof ke=="function"&&(Oj(y,_,ke,M),Z.state=y.memoizedState),typeof _.getDerivedStateFromProps=="function"||typeof Z.getSnapshotBeforeUpdate=="function"||typeof Z.UNSAFE_componentWillMount!="function"&&typeof Z.componentWillMount!="function"||(ke=Z.state,typeof Z.componentWillMount=="function"&&Z.componentWillMount(),typeof Z.UNSAFE_componentWillMount=="function"&&Z.UNSAFE_componentWillMount(),ke!==Z.state&&zj.enqueueReplaceState(Z,Z.state,null),hv(y,M,Z,G),mv(),Z.state=y.memoizedState),typeof Z.componentDidMount=="function"&&(y.flags|=4194308),M=!0}else if(p===null){Z=y.stateNode;var He=y.memoizedProps,dt=xf(_,He);Z.props=dt;var At=Z.context,Ut=_.contextType;ke=lb,typeof Ut=="object"&&Ut!==null&&(ke=ms(Ut));var Vt=_.getDerivedStateFromProps;Ut=typeof Vt=="function"||typeof Z.getSnapshotBeforeUpdate=="function",He=y.pendingProps!==He,Ut||typeof Z.UNSAFE_componentWillReceiveProps!="function"&&typeof Z.componentWillReceiveProps!="function"||(He||At!==ke)&&hB(y,Z,M,ke),sh=!1;var Mt=y.memoizedState;Z.state=Mt,hv(y,M,Z,G),mv(),At=y.memoizedState,He||Mt!==At||sh?(typeof Vt=="function"&&(Oj(y,_,Vt,M),At=y.memoizedState),(dt=sh||mB(y,_,dt,M,Mt,At,ke))?(Ut||typeof Z.UNSAFE_componentWillMount!="function"&&typeof Z.componentWillMount!="function"||(typeof Z.componentWillMount=="function"&&Z.componentWillMount(),typeof Z.UNSAFE_componentWillMount=="function"&&Z.UNSAFE_componentWillMount()),typeof Z.componentDidMount=="function"&&(y.flags|=4194308)):(typeof Z.componentDidMount=="function"&&(y.flags|=4194308),y.memoizedProps=M,y.memoizedState=At),Z.props=M,Z.state=At,Z.context=ke,M=dt):(typeof Z.componentDidMount=="function"&&(y.flags|=4194308),M=!1)}else{Z=y.stateNode,fj(p,y),ke=y.memoizedProps,Ut=xf(_,ke),Z.props=Ut,Vt=y.pendingProps,Mt=Z.context,At=_.contextType,dt=lb,typeof At=="object"&&At!==null&&(dt=ms(At)),He=_.getDerivedStateFromProps,(At=typeof He=="function"||typeof Z.getSnapshotBeforeUpdate=="function")||typeof Z.UNSAFE_componentWillReceiveProps!="function"&&typeof Z.componentWillReceiveProps!="function"||(ke!==Vt||Mt!==dt)&&hB(y,Z,M,dt),sh=!1,Mt=y.memoizedState,Z.state=Mt,hv(y,M,Z,G),mv();var Lt=y.memoizedState;ke!==Vt||Mt!==Lt||sh||p!==null&&p.dependencies!==null&&h_(p.dependencies)?(typeof He=="function"&&(Oj(y,_,He,M),Lt=y.memoizedState),(Ut=sh||mB(y,_,Ut,M,Mt,Lt,dt)||p!==null&&p.dependencies!==null&&h_(p.dependencies))?(At||typeof Z.UNSAFE_componentWillUpdate!="function"&&typeof Z.componentWillUpdate!="function"||(typeof Z.componentWillUpdate=="function"&&Z.componentWillUpdate(M,Lt,dt),typeof Z.UNSAFE_componentWillUpdate=="function"&&Z.UNSAFE_componentWillUpdate(M,Lt,dt)),typeof Z.componentDidUpdate=="function"&&(y.flags|=4),typeof Z.getSnapshotBeforeUpdate=="function"&&(y.flags|=1024)):(typeof Z.componentDidUpdate!="function"||ke===p.memoizedProps&&Mt===p.memoizedState||(y.flags|=4),typeof Z.getSnapshotBeforeUpdate!="function"||ke===p.memoizedProps&&Mt===p.memoizedState||(y.flags|=1024),y.memoizedProps=M,y.memoizedState=Lt),Z.props=M,Z.state=Lt,Z.context=dt,M=Ut):(typeof Z.componentDidUpdate!="function"||ke===p.memoizedProps&&Mt===p.memoizedState||(y.flags|=4),typeof Z.getSnapshotBeforeUpdate!="function"||ke===p.memoizedProps&&Mt===p.memoizedState||(y.flags|=1024),M=!1)}return Z=M,E_(p,y),M=(y.flags&128)!==0,Z||M?(Z=y.stateNode,_=M&&typeof _.getDerivedStateFromError!="function"?null:Z.render(),y.flags|=1,p!==null&&M?(y.child=gf(y,p.child,null,G),y.child=gf(y,null,_,G)):hs(p,y,_,G),y.memoizedState=Z.state,p=y.child):p=_u(p,y,G),p}function TB(p,y,_,M){return df(),y.flags|=256,hs(p,y,_,M),y.child}var qj={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $j(p){return{baseLanes:p,cachePool:bU()}}function Vj(p,y,_){return p=p!==null?p.childLanes&~_:0,y&&(p|=Jo),p}function AB(p,y,_){var M=y.pendingProps,G=!1,Z=(y.flags&128)!==0,ke;if((ke=Z)||(ke=p!==null&&p.memoizedState===null?!1:(ti.current&2)!==0),ke&&(G=!0,y.flags&=-129),ke=(y.flags&32)!==0,y.flags&=-33,p===null){if(wr){if(G?ch(y):dh(),(p=xa)?(p=I8(p,jl),p=p!==null&&p.data!=="&"?p:null,p!==null&&(y.memoizedState={dehydrated:p,treeContext:nh!==null?{id:md,overflow:hd}:null,retryLane:536870912,hydrationErrors:null},_=lU(p),_.return=y,y.child=_,us=y,xa=null)):p=null,p===null)throw ah(y);return PM(p)?y.lanes=32:y.lanes=536870912,null}var He=M.children;return M=M.fallback,G?(dh(),G=y.mode,He=D_({mode:"hidden",children:He},G),M=cf(M,G,_,null),He.return=y,M.return=y,He.sibling=M,y.child=He,M=y.child,M.memoizedState=$j(_),M.childLanes=Vj(p,ke,_),y.memoizedState=qj,xv(null,M)):(ch(y),Gj(y,He))}var dt=p.memoizedState;if(dt!==null&&(He=dt.dehydrated,He!==null)){if(Z)y.flags&256?(ch(y),y.flags&=-257,y=Wj(p,y,_)):y.memoizedState!==null?(dh(),y.child=p.child,y.flags|=128,y=null):(dh(),He=M.fallback,G=y.mode,M=D_({mode:"visible",children:M.children},G),He=cf(He,G,_,null),He.flags|=2,M.return=y,He.return=y,M.sibling=He,y.child=M,gf(y,p.child,null,_),M=y.child,M.memoizedState=$j(_),M.childLanes=Vj(p,ke,_),y.memoizedState=qj,y=xv(null,M));else if(ch(y),PM(He)){if(ke=He.nextSibling&&He.nextSibling.dataset,ke)var At=ke.dgst;ke=At,M=Error(a(419)),M.stack="",M.digest=ke,sv({value:M,source:null,stack:null}),y=Wj(p,y,_)}else if(ci||mb(p,y,_,!1),ke=(_&p.childLanes)!==0,ci||ke){if(ke=oa,ke!==null&&(M=qe(ke,_),M!==0&&M!==dt.retryLane))throw dt.retryLane=M,lf(p,M),Po(ke,p,M),Bj;CM(He)||H_(),y=Wj(p,y,_)}else CM(He)?(y.flags|=192,y.child=p.child,y=null):(p=dt.treeContext,xa=El(He.nextSibling),us=y,wr=!0,rh=null,jl=!1,p!==null&&uU(y,p),y=Gj(y,M.children),y.flags|=4096);return y}return G?(dh(),He=M.fallback,G=y.mode,dt=p.child,At=dt.sibling,M=bu(dt,{mode:"hidden",children:M.children}),M.subtreeFlags=dt.subtreeFlags&65011712,At!==null?He=bu(At,He):(He=cf(He,G,_,null),He.flags|=2),He.return=y,M.return=y,M.sibling=He,y.child=M,xv(null,M),M=y.child,He=p.child.memoizedState,He===null?He=$j(_):(G=He.cachePool,G!==null?(dt=oi._currentValue,G=G.parent!==dt?{parent:dt,pool:dt}:G):G=bU(),He={baseLanes:He.baseLanes|_,cachePool:G}),M.memoizedState=He,M.childLanes=Vj(p,ke,_),y.memoizedState=qj,xv(p.child,M)):(ch(y),_=p.child,p=_.sibling,_=bu(_,{mode:"visible",children:M.children}),_.return=y,_.sibling=null,p!==null&&(ke=y.deletions,ke===null?(y.deletions=[p],y.flags|=16):ke.push(p)),y.child=_,y.memoizedState=null,_)}function Gj(p,y){return y=D_({mode:"visible",children:y},p.mode),y.return=p,p.child=y}function D_(p,y){return p=Ko(22,p,null,y),p.lanes=0,p}function Wj(p,y,_){return gf(y,p.child,null,_),p=Gj(y,y.pendingProps.children),p.flags|=2,y.memoizedState=null,p}function jB(p,y,_){p.lanes|=y;var M=p.alternate;M!==null&&(M.lanes|=y),lj(p.return,y,_)}function Kj(p,y,_,M,G,Z){var ke=p.memoizedState;ke===null?p.memoizedState={isBackwards:y,rendering:null,renderingStartTime:0,last:M,tail:_,tailMode:G,treeForkCount:Z}:(ke.isBackwards=y,ke.rendering=null,ke.renderingStartTime=0,ke.last=M,ke.tail=_,ke.tailMode=G,ke.treeForkCount=Z)}function MB(p,y,_){var M=y.pendingProps,G=M.revealOrder,Z=M.tail;M=M.children;var ke=ti.current,He=(ke&2)!==0;if(He?(ke=ke&1|2,y.flags|=128):ke&=1,me(ti,ke),hs(p,y,M,_),M=wr?iv:0,!He&&p!==null&&(p.flags&128)!==0)e:for(p=y.child;p!==null;){if(p.tag===13)p.memoizedState!==null&&jB(p,_,y);else if(p.tag===19)jB(p,_,y);else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===y)break e;for(;p.sibling===null;){if(p.return===null||p.return===y)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}switch(G){case"forwards":for(_=y.child,G=null;_!==null;)p=_.alternate,p!==null&&w_(p)===null&&(G=_),_=_.sibling;_=G,_===null?(G=y.child,y.child=null):(G=_.sibling,_.sibling=null),Kj(y,!1,G,_,Z,M);break;case"backwards":case"unstable_legacy-backwards":for(_=null,G=y.child,y.child=null;G!==null;){if(p=G.alternate,p!==null&&w_(p)===null){y.child=G;break}p=G.sibling,G.sibling=_,_=G,G=p}Kj(y,!0,_,null,Z,M);break;case"together":Kj(y,!1,null,null,void 0,M);break;default:y.memoizedState=null}return y.child}function _u(p,y,_){if(p!==null&&(y.dependencies=p.dependencies),hh|=y.lanes,(_&y.childLanes)===0)if(p!==null){if(mb(p,y,_,!1),(_&y.childLanes)===0)return null}else return null;if(p!==null&&y.child!==p.child)throw Error(a(153));if(y.child!==null){for(p=y.child,_=bu(p,p.pendingProps),y.child=_,_.return=y;p.sibling!==null;)p=p.sibling,_=_.sibling=bu(p,p.pendingProps),_.return=y;_.sibling=null}return y.child}function Xj(p,y){return(p.lanes&y)!==0?!0:(p=p.dependencies,!!(p!==null&&h_(p)))}function vde(p,y,_){switch(y.tag){case 3:F(y,y.stateNode.containerInfo),ih(y,oi,p.memoizedState.cache),df();break;case 27:case 5:U(y);break;case 4:F(y,y.stateNode.containerInfo);break;case 10:ih(y,y.type,y.memoizedProps.value);break;case 31:if(y.memoizedState!==null)return y.flags|=128,vj(y),null;break;case 13:var M=y.memoizedState;if(M!==null)return M.dehydrated!==null?(ch(y),y.flags|=128,null):(_&y.child.childLanes)!==0?AB(p,y,_):(ch(y),p=_u(p,y,_),p!==null?p.sibling:null);ch(y);break;case 19:var G=(p.flags&128)!==0;if(M=(_&y.childLanes)!==0,M||(mb(p,y,_,!1),M=(_&y.childLanes)!==0),G){if(M)return MB(p,y,_);y.flags|=128}if(G=y.memoizedState,G!==null&&(G.rendering=null,G.tail=null,G.lastEffect=null),me(ti,ti.current),M)break;return null;case 22:return y.lanes=0,_B(p,y,_,y.pendingProps);case 24:ih(y,oi,p.memoizedState.cache)}return _u(p,y,_)}function EB(p,y,_){if(p!==null)if(p.memoizedProps!==y.pendingProps)ci=!0;else{if(!Xj(p,_)&&(y.flags&128)===0)return ci=!1,vde(p,y,_);ci=(p.flags&131072)!==0}else ci=!1,wr&&(y.flags&1048576)!==0&&dU(y,iv,y.index);switch(y.lanes=0,y.tag){case 16:e:{var M=y.pendingProps;if(p=pf(y.elementType),y.type=p,typeof p=="function")ej(p)?(M=xf(p,M),y.tag=1,y=PB(null,y,p,M,_)):(y.tag=0,y=Hj(null,y,p,M,_));else{if(p!=null){var G=p.$$typeof;if(G===P){y.tag=11,y=vB(null,y,p,M,_);break e}else if(G===A){y.tag=14,y=wB(null,y,p,M,_);break e}}throw y=L(p)||p,Error(a(306,y,""))}}return y;case 0:return Hj(p,y,y.type,y.pendingProps,_);case 1:return M=y.type,G=xf(M,y.pendingProps),PB(p,y,M,G,_);case 3:e:{if(F(y,y.stateNode.containerInfo),p===null)throw Error(a(387));M=y.pendingProps;var Z=y.memoizedState;G=Z.element,fj(p,y),hv(y,M,null,_);var ke=y.memoizedState;if(M=ke.cache,ih(y,oi,M),M!==Z.cache&&cj(y,[oi],_,!0),mv(),M=ke.element,Z.isDehydrated)if(Z={element:M,isDehydrated:!1,cache:ke.cache},y.updateQueue.baseState=Z,y.memoizedState=Z,y.flags&256){y=TB(p,y,M,_);break e}else if(M!==G){G=Pl(Error(a(424)),y),sv(G),y=TB(p,y,M,_);break e}else for(p=y.stateNode.containerInfo,p.nodeType===9?p=p.body:p=p.nodeName==="HTML"?p.ownerDocument.body:p,xa=El(p.firstChild),us=y,wr=!0,rh=null,jl=!0,_=_U(y,null,M,_),y.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling;else{if(df(),M===G){y=_u(p,y,_);break e}hs(p,y,M,_)}y=y.child}return y;case 26:return E_(p,y),p===null?(_=q8(y.type,null,y.pendingProps,null))?y.memoizedState=_:wr||(_=y.type,p=y.pendingProps,M=X_(H.current).createElement(_),M[vt]=y,M[Kt]=p,ps(M,_,p),it(M),y.stateNode=M):y.memoizedState=q8(y.type,p.memoizedProps,y.pendingProps,p.memoizedState),null;case 27:return U(y),p===null&&wr&&(M=y.stateNode=U8(y.type,y.pendingProps,H.current),us=y,jl=!0,G=xa,xh(y.type)?(TM=G,xa=El(M.firstChild)):xa=G),hs(p,y,y.pendingProps.children,_),E_(p,y),p===null&&(y.flags|=4194304),y.child;case 5:return p===null&&wr&&((G=M=xa)&&(M=Qde(M,y.type,y.pendingProps,jl),M!==null?(y.stateNode=M,us=y,xa=El(M.firstChild),jl=!1,G=!0):G=!1),G||ah(y)),U(y),G=y.type,Z=y.pendingProps,ke=p!==null?p.memoizedProps:null,M=Z.children,_M(G,Z)?M=null:ke!==null&&_M(G,ke)&&(y.flags|=32),y.memoizedState!==null&&(G=Sj(p,y,ude,null,null,_),Dv._currentValue=G),E_(p,y),hs(p,y,M,_),y.child;case 6:return p===null&&wr&&((p=_=xa)&&(_=Yde(_,y.pendingProps,jl),_!==null?(y.stateNode=_,us=y,xa=null,p=!0):p=!1),p||ah(y)),null;case 13:return AB(p,y,_);case 4:return F(y,y.stateNode.containerInfo),M=y.pendingProps,p===null?y.child=gf(y,null,M,_):hs(p,y,M,_),y.child;case 11:return vB(p,y,y.type,y.pendingProps,_);case 7:return hs(p,y,y.pendingProps,_),y.child;case 8:return hs(p,y,y.pendingProps.children,_),y.child;case 12:return hs(p,y,y.pendingProps.children,_),y.child;case 10:return M=y.pendingProps,ih(y,y.type,M.value),hs(p,y,M.children,_),y.child;case 9:return G=y.type._context,M=y.pendingProps.children,mf(y),G=ms(G),M=M(G),y.flags|=1,hs(p,y,M,_),y.child;case 14:return wB(p,y,y.type,y.pendingProps,_);case 15:return SB(p,y,y.type,y.pendingProps,_);case 19:return MB(p,y,_);case 31:return yde(p,y,_);case 22:return _B(p,y,_,y.pendingProps);case 24:return mf(y),M=ms(oi),p===null?(G=mj(),G===null&&(G=oa,Z=dj(),G.pooledCache=Z,Z.refCount++,Z!==null&&(G.pooledCacheLanes|=_),G=Z),y.memoizedState={parent:M,cache:G},pj(y),ih(y,oi,G)):((p.lanes&_)!==0&&(fj(p,y),hv(y,null,null,_),mv()),G=p.memoizedState,Z=y.memoizedState,G.parent!==M?(G={parent:M,cache:M},y.memoizedState=G,y.lanes===0&&(y.memoizedState=y.updateQueue.baseState=G),ih(y,oi,M)):(M=Z.cache,ih(y,oi,M),M!==G.cache&&cj(y,[oi],_,!0))),hs(p,y,y.pendingProps.children,_),y.child;case 29:throw y.pendingProps}throw Error(a(156,y.tag))}function ku(p){p.flags|=4}function Qj(p,y,_,M,G){if((y=(p.mode&32)!==0)&&(y=!1),y){if(p.flags|=16777216,(G&335544128)===G)if(p.stateNode.complete)p.flags|=8192;else if(i8())p.flags|=8192;else throw ff=b_,hj}else p.flags&=-16777217}function DB(p,y){if(y.type!=="stylesheet"||(y.state.loading&4)!==0)p.flags&=-16777217;else if(p.flags|=16777216,!K8(y))if(i8())p.flags|=8192;else throw ff=b_,hj}function F_(p,y){y!==null&&(p.flags|=4),p.flags&16384&&(y=p.tag!==22?ot():536870912,p.lanes|=y,kb|=y)}function yv(p,y){if(!wr)switch(p.tailMode){case"hidden":y=p.tail;for(var _=null;y!==null;)y.alternate!==null&&(_=y),y=y.sibling;_===null?p.tail=null:_.sibling=null;break;case"collapsed":_=p.tail;for(var M=null;_!==null;)_.alternate!==null&&(M=_),_=_.sibling;M===null?y||p.tail===null?p.tail=null:p.tail.sibling=null:M.sibling=null}}function ya(p){var y=p.alternate!==null&&p.alternate.child===p.child,_=0,M=0;if(y)for(var G=p.child;G!==null;)_|=G.lanes|G.childLanes,M|=G.subtreeFlags&65011712,M|=G.flags&65011712,G.return=p,G=G.sibling;else for(G=p.child;G!==null;)_|=G.lanes|G.childLanes,M|=G.subtreeFlags,M|=G.flags,G.return=p,G=G.sibling;return p.subtreeFlags|=M,p.childLanes=_,y}function wde(p,y,_){var M=y.pendingProps;switch(aj(y),y.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ya(y),null;case 1:return ya(y),null;case 3:return _=y.stateNode,M=null,p!==null&&(M=p.memoizedState.cache),y.memoizedState.cache!==M&&(y.flags|=2048),vu(oi),D(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(p===null||p.child===null)&&(ub(y)?ku(y):p===null||p.memoizedState.isDehydrated&&(y.flags&256)===0||(y.flags|=1024,sj())),ya(y),null;case 26:var G=y.type,Z=y.memoizedState;return p===null?(ku(y),Z!==null?(ya(y),DB(y,Z)):(ya(y),Qj(y,G,null,M,_))):Z?Z!==p.memoizedState?(ku(y),ya(y),DB(y,Z)):(ya(y),y.flags&=-16777217):(p=p.memoizedProps,p!==M&&ku(y),ya(y),Qj(y,G,p,M,_)),null;case 27:if(Y(y),_=H.current,G=y.type,p!==null&&y.stateNode!=null)p.memoizedProps!==M&&ku(y);else{if(!M){if(y.stateNode===null)throw Error(a(166));return ya(y),null}p=be.current,ub(y)?mU(y):(p=U8(G,M,_),y.stateNode=p,ku(y))}return ya(y),null;case 5:if(Y(y),G=y.type,p!==null&&y.stateNode!=null)p.memoizedProps!==M&&ku(y);else{if(!M){if(y.stateNode===null)throw Error(a(166));return ya(y),null}if(Z=be.current,ub(y))mU(y);else{var ke=X_(H.current);switch(Z){case 1:Z=ke.createElementNS("http://www.w3.org/2000/svg",G);break;case 2:Z=ke.createElementNS("http://www.w3.org/1998/Math/MathML",G);break;default:switch(G){case"svg":Z=ke.createElementNS("http://www.w3.org/2000/svg",G);break;case"math":Z=ke.createElementNS("http://www.w3.org/1998/Math/MathML",G);break;case"script":Z=ke.createElement("div"),Z.innerHTML=" - + +