From e0e53cb680866566de04d4e298bf753efaa65d0e Mon Sep 17 00:00:00 2001 From: maziggy Date: Sat, 24 Jan 2026 08:28:03 +0100 Subject: [PATCH] Add multi-file selection and bulk download to printer file browser - Add checkbox selection for individual files - Add Select All / Deselect All buttons - Download single file directly, multiple files as ZIP archive - Add POST /printers/{id}/files/download-zip endpoint - Clear selection after successful download - Support bulk delete for multiple files - Update docs (changelog, wiki, website) Closes #144 --- CHANGELOG.md | 5 + backend/app/api/routes/printers.py | 44 + frontend/src/api/client.ts | 12 + frontend/src/components/FileManagerModal.tsx | 180 +++- .../{index-C0ILfTrK.js => index-BwLAOG3i.js} | 802 +++++++++--------- static/index.html | 2 +- 6 files changed, 610 insertions(+), 435 deletions(-) rename static/assets/{index-C0ILfTrK.js => index-BwLAOG3i.js} (79%) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe03437db..7baf44509 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ All notable changes to Bambuddy will be documented in this file. ### New Features - **Recalculate Costs Button** - New button on Dashboard to recalculate all archive costs using current filament prices (Issue #120) - **Create Folder from ZIP** - New option in File Manager upload to automatically create a folder named after the ZIP file (Issue #121) +- **Multi-File Selection in Printer Files** - Printer card file browser now supports multiple file selection (Issue #144): + - Checkbox selection for individual files + - Select All / Deselect All buttons + - Bulk download as ZIP when multiple files selected + - Bulk delete for multiple files at once ### Fixes - **Reprint Cost Tracking** - Reprinting an archive now adds the cost to the existing total, so statistics accurately reflect total filament expenditure across all prints diff --git a/backend/app/api/routes/printers.py b/backend/app/api/routes/printers.py index 2f5a86a58..0237580b4 100644 --- a/backend/app/api/routes/printers.py +++ b/backend/app/api/routes/printers.py @@ -707,6 +707,50 @@ async def download_printer_file( ) +@router.post("/{printer_id}/files/download-zip") +async def download_printer_files_as_zip( + printer_id: int, + request: dict, + db: AsyncSession = Depends(get_db), +): + """Download multiple files from the printer as a ZIP archive.""" + import io + + paths = request.get("paths", []) + if not paths: + raise HTTPException(400, "No files specified") + + result = await db.execute(select(Printer).where(Printer.id == printer_id)) + printer = result.scalar_one_or_none() + if not printer: + raise HTTPException(404, "Printer not found") + + # Create ZIP in memory + zip_buffer = io.BytesIO() + with zipfile.ZipFile(zip_buffer, "w", zipfile.ZIP_DEFLATED) as zf: + for path in paths: + try: + data = await download_file_bytes_async(printer.ip_address, printer.access_code, path) + if data: + filename = path.split("/")[-1] + zf.writestr(filename, data) + except Exception as e: + logging.warning(f"Failed to add {path} to ZIP: {e}") + continue + + zip_buffer.seek(0) + zip_data = zip_buffer.read() + + if len(zip_data) == 0: + raise HTTPException(404, "No files could be downloaded") + + return Response( + content=zip_data, + media_type="application/zip", + headers={"Content-Disposition": 'attachment; filename="printer-files.zip"'}, + ) + + @router.delete("/{printer_id}/files") async def delete_printer_file( printer_id: int, diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts index 232146626..f2e8361da 100644 --- a/frontend/src/api/client.ts +++ b/frontend/src/api/client.ts @@ -1625,6 +1625,18 @@ export const api = { }>(`/printers/${printerId}/files?path=${encodeURIComponent(path)}`), getPrinterFileDownloadUrl: (printerId: number, path: string) => `${API_BASE}/printers/${printerId}/files/download?path=${encodeURIComponent(path)}`, + downloadPrinterFilesAsZip: async (printerId: number, paths: string[]): Promise => { + const response = await fetch(`${API_BASE}/printers/${printerId}/files/download-zip`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify({ paths }), + }); + if (!response.ok) { + const error = await response.json().catch(() => ({})); + throw new Error(error.detail || `HTTP ${response.status}`); + } + return response.blob(); + }, deletePrinterFile: (printerId: number, path: string) => request<{ status: string; path: string }>(`/printers/${printerId}/files?path=${encodeURIComponent(path)}`, { method: 'DELETE', diff --git a/frontend/src/components/FileManagerModal.tsx b/frontend/src/components/FileManagerModal.tsx index 6cab88997..2cf9a118a 100644 --- a/frontend/src/components/FileManagerModal.tsx +++ b/frontend/src/components/FileManagerModal.tsx @@ -16,6 +16,9 @@ import { Image, Search, ArrowUpDown, + CheckSquare, + Square, + MinusSquare, } from 'lucide-react'; import { api } from '../api/client'; import { Button } from './Button'; @@ -82,10 +85,11 @@ export function FileManagerModal({ printerId, printerName, onClose }: FileManage const { showToast } = useToast(); const queryClient = useQueryClient(); const [currentPath, setCurrentPath] = useState('/'); - const [selectedFile, setSelectedFile] = useState(null); + const [selectedFiles, setSelectedFiles] = useState>(new Set()); const [searchQuery, setSearchQuery] = useState(''); - const [fileToDelete, setFileToDelete] = useState(null); + const [filesToDelete, setFilesToDelete] = useState([]); const [sortBy, setSortBy] = useState('name-asc'); + const [downloadProgress, setDownloadProgress] = useState<{ current: number; total: number } | null>(null); // Close on Escape key useEffect(() => { @@ -108,11 +112,17 @@ export function FileManagerModal({ printerId, printerName, onClose }: FileManage }); const deleteMutation = useMutation({ - mutationFn: (path: string) => api.deletePrinterFile(printerId, path), - onSuccess: (_, path) => { - showToast(`Deleted: ${path.split('/').pop()}`); + mutationFn: async (paths: string[]) => { + // Delete files one by one + for (const path of paths) { + await api.deletePrinterFile(printerId, path); + } + }, + onSuccess: () => { + showToast(`Deleted ${filesToDelete.length} file${filesToDelete.length > 1 ? 's' : ''}`); queryClient.invalidateQueries({ queryKey: ['printerFiles', printerId] }); - setSelectedFile(null); + setSelectedFiles(new Set()); + setFilesToDelete([]); }, onError: (error: Error) => { showToast(`Delete failed: ${error.message}`, 'error'); @@ -121,7 +131,7 @@ export function FileManagerModal({ printerId, printerName, onClose }: FileManage const navigateToFolder = (path: string) => { setCurrentPath(path); - setSelectedFile(null); + setSelectedFiles(new Set()); }; const navigateUp = () => { @@ -129,15 +139,70 @@ export function FileManagerModal({ printerId, printerName, onClose }: FileManage const parts = currentPath.split('/').filter(Boolean); parts.pop(); setCurrentPath(parts.length ? '/' + parts.join('/') : '/'); - setSelectedFile(null); + setSelectedFiles(new Set()); }; - const handleDownload = (path: string) => { - window.open(api.getPrinterFileDownloadUrl(printerId, path), '_blank'); + const toggleFileSelection = (path: string, e: React.MouseEvent) => { + e.stopPropagation(); + setSelectedFiles(prev => { + const next = new Set(prev); + if (next.has(path)) { + next.delete(path); + } else { + next.add(path); + } + return next; + }); }; - const handleDelete = (path: string) => { - setFileToDelete(path); + const selectAllFiles = () => { + if (!data?.files) return; + const filePaths = data.files + .filter(f => !f.is_directory && (!searchQuery || f.name.toLowerCase().includes(searchQuery.toLowerCase()))) + .map(f => f.path); + setSelectedFiles(new Set(filePaths)); + }; + + const deselectAllFiles = () => { + setSelectedFiles(new Set()); + }; + + const handleDownload = async () => { + if (selectedFiles.size === 0) return; + + const paths = Array.from(selectedFiles); + + if (paths.length === 1) { + // Single file - direct download + window.open(api.getPrinterFileDownloadUrl(printerId, paths[0]), '_blank'); + setSelectedFiles(new Set()); + return; + } + + // Multiple files - download as ZIP + setDownloadProgress({ current: 0, total: paths.length }); + try { + const blob = await api.downloadPrinterFilesAsZip(printerId, paths); + const url = URL.createObjectURL(blob); + const a = document.createElement('a'); + a.href = url; + a.download = `${printerName.replace(/[^a-zA-Z0-9]/g, '_')}-files.zip`; + document.body.appendChild(a); + a.click(); + document.body.removeChild(a); + URL.revokeObjectURL(url); + showToast(`Downloaded ${paths.length} files as ZIP`); + setSelectedFiles(new Set()); + } catch (error) { + showToast(`Download failed: ${error instanceof Error ? error.message : 'Unknown error'}`, 'error'); + } finally { + setDownloadProgress(null); + } + }; + + const handleDelete = () => { + if (selectedFiles.size === 0) return; + setFilesToDelete(Array.from(selectedFiles)); }; // Quick navigation buttons for common directories @@ -303,7 +368,7 @@ export function FileManagerModal({ printerId, printerName, onClose }: FileManage }) .map((file) => { const FileIcon = getFileIcon(file.name, file.is_directory); - const isSelected = selectedFile === file.path; + const isSelected = selectedFiles.has(file.path); return (
{ if (file.is_directory) { navigateToFolder(file.path); - } else { - setSelectedFile(isSelected ? null : file.path); } }} > + {/* Checkbox for files only */} + {!file.is_directory ? ( + + ) : null} -
- {searchQuery - ? `${data?.files?.filter(f => f.name.toLowerCase().includes(searchQuery.toLowerCase())).length || 0} of ${data?.files?.length || 0} items` - : `${data?.files?.length || 0} items` - } +
+
+ {selectedFiles.size > 0 + ? `${selectedFiles.size} selected` + : searchQuery + ? `${data?.files?.filter(f => f.name.toLowerCase().includes(searchQuery.toLowerCase())).length || 0} of ${data?.files?.length || 0} items` + : `${data?.files?.length || 0} items` + } +
+ {/* Select All / Deselect All */} + {data?.files?.some(f => !f.is_directory) && ( +
+ {selectedFiles.size > 0 ? ( + + ) : ( + + )} +
+ )}
{/* Delete Confirmation Modal */} - {fileToDelete && ( + {filesToDelete.length > 0 && ( 1 ? `Delete ${filesToDelete.length} Files` : 'Delete File'} + message={ + filesToDelete.length > 1 + ? `Delete ${filesToDelete.length} selected files? This cannot be undone.` + : `Delete "${filesToDelete[0].split('/').pop()}"? This cannot be undone.` + } confirmText="Delete" variant="danger" onConfirm={() => { - deleteMutation.mutate(fileToDelete); - setFileToDelete(null); + deleteMutation.mutate(filesToDelete); }} - onCancel={() => setFileToDelete(null)} + onCancel={() => setFilesToDelete([])} /> )} diff --git a/static/assets/index-C0ILfTrK.js b/static/assets/index-BwLAOG3i.js similarity index 79% rename from static/assets/index-C0ILfTrK.js rename to static/assets/index-BwLAOG3i.js index 75d3595aa..13c20e889 100644 --- a/static/assets/index-C0ILfTrK.js +++ b/static/assets/index-BwLAOG3i.js @@ -1,20 +1,20 @@ -function wae(t,e){for(var n=0;nr[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"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Gv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Co(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gA={exports:{}},zx={};var mU;function Sae(){if(mU)return zx;mU=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var l in i)l!=="key"&&(a[l]=i[l])}else a=i;return i=a.ref,{$$typeof:t,type:r,key:o,ref:i!==void 0?i:null,props:a}}return zx.Fragment=e,zx.jsx=n,zx.jsxs=n,zx}var pU;function Mae(){return pU||(pU=1,gA.exports=Sae()),gA.exports}var s=Mae(),xA={exports:{}},hn={};var gU;function Nae(){if(gU)return hn;gU=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),m=Symbol.iterator;function g(U){return U===null||typeof U!="object"?null:(U=m&&U[m]||U["@@iterator"],typeof U=="function"?U:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function v(U,G,ee){this.props=U,this.context=G,this.refs=b,this.updater=ee||x}v.prototype.isReactComponent={},v.prototype.setState=function(U,G){if(typeof U!="object"&&typeof U!="function"&&U!=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,U,G,"setState")},v.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function M(){}M.prototype=v.prototype;function S(U,G,ee){this.props=U,this.context=G,this.refs=b,this.updater=ee||x}var A=S.prototype=new M;A.constructor=S,y(A,v.prototype),A.isPureReactComponent=!0;var E=Array.isArray;function k(){}var C={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function T(U,G,ee){var re=ee.ref;return{$$typeof:t,type:U,key:G,ref:re!==void 0?re:null,props:ee}}function j(U,G){return T(U.type,G,U.props)}function F(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function L(U){var G={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(ee){return G[ee]})}var K=/\/+/g;function D(U,G){return typeof U=="object"&&U!==null&&U.key!=null?L(""+U.key):G.toString(36)}function X(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(k,k):(U.status="pending",U.then(function(G){U.status==="pending"&&(U.status="fulfilled",U.value=G)},function(G){U.status==="pending"&&(U.status="rejected",U.reason=G)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function Y(U,G,ee,re,le){var he=typeof U;(he==="undefined"||he==="boolean")&&(U=null);var fe=!1;if(U===null)fe=!0;else switch(he){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(U.$$typeof){case t:case e:fe=!0;break;case d:return fe=U._init,Y(fe(U._payload),G,ee,re,le)}}if(fe)return le=le(U),fe=re===""?"."+D(U,0):re,E(le)?(ee="",fe!=null&&(ee=fe.replace(K,"$&/")+"/"),Y(le,G,ee,"",function(we){return we})):le!=null&&(F(le)&&(le=j(le,ee+(le.key==null||U&&U.key===le.key?"":(""+le.key).replace(K,"$&/")+"/")+fe)),G.push(le)),1;fe=0;var Ae=re===""?".":re+":";if(E(U))for(var pe=0;pe>>1,ae=Y[ie];if(0>>1;iei(ee,Z))rei(le,ee)?(Y[ie]=le,Y[re]=Z,ie=re):(Y[ie]=ee,Y[G]=Z,ie=G);else if(rei(le,Z))Y[ie]=le,Y[re]=Z,ie=re;else break e}}return W}function i(Y,W){var Z=Y.sortIndex-W.sortIndex;return Z!==0?Z:Y.id-W.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,f=null,m=3,g=!1,x=!1,y=!1,b=!1,v=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function A(Y){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=Y)r(u),W.sortIndex=W.expirationTime,e(c,W);else break;W=n(u)}}function E(Y){if(y=!1,A(Y),!x)if(n(c)!==null)x=!0,k||(k=!0,L());else{var W=n(u);W!==null&&X(E,W.startTime-Y)}}var k=!1,C=-1,R=5,T=-1;function j(){return b?!0:!(t.unstable_now()-TY&&j());){var ie=f.callback;if(typeof ie=="function"){f.callback=null,m=f.priorityLevel;var ae=ie(f.expirationTime<=Y);if(Y=t.unstable_now(),typeof ae=="function"){f.callback=ae,A(Y),W=!0;break t}f===n(c)&&r(c),A(Y)}else r(c);f=n(c)}if(f!==null)W=!0;else{var U=n(u);U!==null&&X(E,U.startTime-Y),W=!1}}break e}finally{f=null,m=Z,g=!1}W=void 0}}finally{W?L():k=!1}}}var L;if(typeof S=="function")L=function(){S(F)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,D=K.port2;K.port1.onmessage=F,L=function(){D.postMessage(null)}}else L=function(){v(F,0)};function X(Y,W){C=v(function(){Y(t.unstable_now())},W)}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(Y){Y.callback=null},t.unstable_forceFrameRate=function(Y){0>Y||125ie?(Y.sortIndex=Z,e(u,Y),n(c)===null&&Y===n(u)&&(y?(M(C),C=-1):y=!0,X(E,Z-ie))):(Y.sortIndex=ae,e(c,Y),x||g||(x=!0,k||(k=!0,L()))),Y},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(Y){var W=m;return function(){var Z=m;m=W;try{return Y.apply(this,arguments)}finally{m=Z}}}})(vA)),vA}var yU;function Tae(){return yU||(yU=1,yA.exports=Aae()),yA.exports}var _A={exports:{}},va={};var vU;function Cae(){if(vU)return va;vU=1;var t=Ag();function e(c){var u="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(),_A.exports=Cae(),_A.exports}var wU;function kae(){if(wU)return Bx;wU=1;var t=Tae(),e=Ag(),n=QG();function r(h){var p="https://react.dev/errors/"+h;if(1ae||(h.current=ie[ae],ie[ae]=null,ae--)}function ee(h,p){ae++,ie[ae]=h.current,h.current=p}var re=U(null),le=U(null),he=U(null),fe=U(null);function Ae(h,p){switch(ee(he,p),ee(le,h),ee(re,null),p.nodeType){case 9:case 11:h=(h=p.documentElement)&&(h=h.namespaceURI)?IF(h):0;break;default:if(h=p.tagName,p=p.namespaceURI)p=IF(p),h=FF(p,h);else switch(h){case"svg":h=1;break;case"math":h=2;break;default:h=0}}G(re),ee(re,h)}function pe(){G(re),G(le),G(he)}function we(h){h.memoizedState!==null&&ee(fe,h);var p=re.current,_=FF(p,h.type);p!==_&&(ee(le,h),ee(re,_))}function je(h){le.current===h&&(G(re),G(le)),fe.current===h&&(G(fe),Lx._currentValue=Z)}var ne,Ye;function B(h){if(ne===void 0)try{throw Error()}catch(_){var p=_.stack.trim().match(/\n( *(at )?)/);ne=p&&p[1]||"",Ye=-1<_.stack.indexOf(` +function wae(t,e){for(var n=0;nr[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"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Gv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Co(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gA={exports:{}},zx={};var mU;function Sae(){if(mU)return zx;mU=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var l in i)l!=="key"&&(a[l]=i[l])}else a=i;return i=a.ref,{$$typeof:t,type:r,key:o,ref:i!==void 0?i:null,props:a}}return zx.Fragment=e,zx.jsx=n,zx.jsxs=n,zx}var pU;function Mae(){return pU||(pU=1,gA.exports=Sae()),gA.exports}var s=Mae(),xA={exports:{}},hn={};var gU;function Nae(){if(gU)return hn;gU=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),m=Symbol.iterator;function g(U){return U===null||typeof U!="object"?null:(U=m&&U[m]||U["@@iterator"],typeof U=="function"?U:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function v(U,G,ee){this.props=U,this.context=G,this.refs=b,this.updater=ee||x}v.prototype.isReactComponent={},v.prototype.setState=function(U,G){if(typeof U!="object"&&typeof U!="function"&&U!=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,U,G,"setState")},v.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function M(){}M.prototype=v.prototype;function S(U,G,ee){this.props=U,this.context=G,this.refs=b,this.updater=ee||x}var A=S.prototype=new M;A.constructor=S,y(A,v.prototype),A.isPureReactComponent=!0;var E=Array.isArray;function k(){}var T={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function C(U,G,ee){var re=ee.ref;return{$$typeof:t,type:U,key:G,ref:re!==void 0?re:null,props:ee}}function P(U,G){return C(U.type,G,U.props)}function F(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function L(U){var G={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(ee){return G[ee]})}var X=/\/+/g;function R(U,G){return typeof U=="object"&&U!==null&&U.key!=null?L(""+U.key):G.toString(36)}function q(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(k,k):(U.status="pending",U.then(function(G){U.status==="pending"&&(U.status="fulfilled",U.value=G)},function(G){U.status==="pending"&&(U.status="rejected",U.reason=G)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function Y(U,G,ee,re,le){var he=typeof U;(he==="undefined"||he==="boolean")&&(U=null);var fe=!1;if(U===null)fe=!0;else switch(he){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(U.$$typeof){case t:case e:fe=!0;break;case d:return fe=U._init,Y(fe(U._payload),G,ee,re,le)}}if(fe)return le=le(U),fe=re===""?"."+R(U,0):re,E(le)?(ee="",fe!=null&&(ee=fe.replace(X,"$&/")+"/"),Y(le,G,ee,"",function(we){return we})):le!=null&&(F(le)&&(le=P(le,ee+(le.key==null||U&&U.key===le.key?"":(""+le.key).replace(X,"$&/")+"/")+fe)),G.push(le)),1;fe=0;var Ae=re===""?".":re+":";if(E(U))for(var pe=0;pe>>1,ae=Y[ie];if(0>>1;iei(ee,Z))rei(le,ee)?(Y[ie]=le,Y[re]=Z,ie=re):(Y[ie]=ee,Y[G]=Z,ie=G);else if(rei(le,Z))Y[ie]=le,Y[re]=Z,ie=re;else break e}}return W}function i(Y,W){var Z=Y.sortIndex-W.sortIndex;return Z!==0?Z:Y.id-W.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,f=null,m=3,g=!1,x=!1,y=!1,b=!1,v=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function A(Y){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=Y)r(u),W.sortIndex=W.expirationTime,e(c,W);else break;W=n(u)}}function E(Y){if(y=!1,A(Y),!x)if(n(c)!==null)x=!0,k||(k=!0,L());else{var W=n(u);W!==null&&q(E,W.startTime-Y)}}var k=!1,T=-1,D=5,C=-1;function P(){return b?!0:!(t.unstable_now()-CY&&P());){var ie=f.callback;if(typeof ie=="function"){f.callback=null,m=f.priorityLevel;var ae=ie(f.expirationTime<=Y);if(Y=t.unstable_now(),typeof ae=="function"){f.callback=ae,A(Y),W=!0;break t}f===n(c)&&r(c),A(Y)}else r(c);f=n(c)}if(f!==null)W=!0;else{var U=n(u);U!==null&&q(E,U.startTime-Y),W=!1}}break e}finally{f=null,m=Z,g=!1}W=void 0}}finally{W?L():k=!1}}}var L;if(typeof S=="function")L=function(){S(F)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,R=X.port2;X.port1.onmessage=F,L=function(){R.postMessage(null)}}else L=function(){v(F,0)};function q(Y,W){T=v(function(){Y(t.unstable_now())},W)}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(Y){Y.callback=null},t.unstable_forceFrameRate=function(Y){0>Y||125ie?(Y.sortIndex=Z,e(u,Y),n(c)===null&&Y===n(u)&&(y?(M(T),T=-1):y=!0,q(E,Z-ie))):(Y.sortIndex=ae,e(c,Y),x||g||(x=!0,k||(k=!0,L()))),Y},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(Y){var W=m;return function(){var Z=m;m=W;try{return Y.apply(this,arguments)}finally{m=Z}}}})(vA)),vA}var yU;function Tae(){return yU||(yU=1,yA.exports=Aae()),yA.exports}var _A={exports:{}},va={};var vU;function Cae(){if(vU)return va;vU=1;var t=Ag();function e(c){var u="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(),_A.exports=Cae(),_A.exports}var wU;function kae(){if(wU)return Bx;wU=1;var t=Tae(),e=Ag(),n=QG();function r(h){var p="https://react.dev/errors/"+h;if(1ae||(h.current=ie[ae],ie[ae]=null,ae--)}function ee(h,p){ae++,ie[ae]=h.current,h.current=p}var re=U(null),le=U(null),he=U(null),fe=U(null);function Ae(h,p){switch(ee(he,p),ee(le,h),ee(re,null),p.nodeType){case 9:case 11:h=(h=p.documentElement)&&(h=h.namespaceURI)?IF(h):0;break;default:if(h=p.tagName,p=p.namespaceURI)p=IF(p),h=FF(p,h);else switch(h){case"svg":h=1;break;case"math":h=2;break;default:h=0}}G(re),ee(re,h)}function pe(){G(re),G(le),G(he)}function we(h){h.memoizedState!==null&&ee(fe,h);var p=re.current,_=FF(p,h.type);p!==_&&(ee(le,h),ee(re,_))}function je(h){le.current===h&&(G(re),G(le)),fe.current===h&&(G(fe),Lx._currentValue=Z)}var ne,Ye;function B(h){if(ne===void 0)try{throw Error()}catch(_){var p=_.stack.trim().match(/\n( *(at )?)/);ne=p&&p[1]||"",Ye=-1<_.stack.indexOf(` at`)?" ()":-1<_.stack.indexOf("@")?"@unknown:0:0":""}return` -`+ne+h+Ye}var H=!1;function q(h,p){if(!h||H)return"";H=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var N={DetermineComponentFrameRoot:function(){try{if(p){var bt=function(){throw Error()};if(Object.defineProperty(bt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(bt,[])}catch(lt){var at=lt}Reflect.construct(h,[],bt)}else{try{bt.call()}catch(lt){at=lt}h.call(bt.prototype)}}else{try{throw Error()}catch(lt){at=lt}(bt=h())&&typeof bt.catch=="function"&&bt.catch(function(){})}}catch(lt){if(lt&&at&&typeof lt.stack=="string")return[lt.stack,at.stack]}return[null,null]}};N.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var P=Object.getOwnPropertyDescriptor(N.DetermineComponentFrameRoot,"name");P&&P.configurable&&Object.defineProperty(N.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var O=N.DetermineComponentFrameRoot(),te=O[0],me=O[1];if(te&&me){var Pe=te.split(` +`+ne+h+Ye}var H=!1;function K(h,p){if(!h||H)return"";H=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var N={DetermineComponentFrameRoot:function(){try{if(p){var bt=function(){throw Error()};if(Object.defineProperty(bt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(bt,[])}catch(lt){var at=lt}Reflect.construct(h,[],bt)}else{try{bt.call()}catch(lt){at=lt}h.call(bt.prototype)}}else{try{throw Error()}catch(lt){at=lt}(bt=h())&&typeof bt.catch=="function"&&bt.catch(function(){})}}catch(lt){if(lt&&at&&typeof lt.stack=="string")return[lt.stack,at.stack]}return[null,null]}};N.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var j=Object.getOwnPropertyDescriptor(N.DetermineComponentFrameRoot,"name");j&&j.configurable&&Object.defineProperty(N.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var O=N.DetermineComponentFrameRoot(),te=O[0],me=O[1];if(te&&me){var Pe=te.split(` `),rt=me.split(` -`);for(P=N=0;NP||Pe[N]!==rt[P]){var gt=` -`+Pe[N].replace(" at new "," at ");return h.displayName&>.includes("")&&(gt=gt.replace("",h.displayName)),gt}while(1<=N&&0<=P);break}}}finally{H=!1,Error.prepareStackTrace=_}return(_=h?h.displayName||h.name:"")?B(_):""}function z(h,p){switch(h.tag){case 26:case 27:case 5:return B(h.type);case 16:return B("Lazy");case 13:return h.child!==p&&p!==null?B("Suspense Fallback"):B("Suspense");case 19:return B("SuspenseList");case 0:case 15:return q(h.type,!1);case 11:return q(h.type.render,!1);case 1:return q(h.type,!0);case 31:return B("Activity");default:return""}}function V(h){try{var p="",_=null;do p+=z(h,_),_=h,h=h.return;while(h);return p}catch(N){return` +`);for(j=N=0;Nj||Pe[N]!==rt[j]){var gt=` +`+Pe[N].replace(" at new "," at ");return h.displayName&>.includes("")&&(gt=gt.replace("",h.displayName)),gt}while(1<=N&&0<=j);break}}}finally{H=!1,Error.prepareStackTrace=_}return(_=h?h.displayName||h.name:"")?B(_):""}function z(h,p){switch(h.tag){case 26:case 27:case 5:return B(h.type);case 16:return B("Lazy");case 13:return h.child!==p&&p!==null?B("Suspense Fallback"):B("Suspense");case 19:return B("SuspenseList");case 0:case 15:return K(h.type,!1);case 11:return K(h.type.render,!1);case 1:return K(h.type,!0);case 31:return B("Activity");default:return""}}function V(h){try{var p="",_=null;do p+=z(h,_),_=h,h=h.return;while(h);return p}catch(N){return` Error generating stack: `+N.message+` -`+N.stack}}var Q=Object.prototype.hasOwnProperty,Ee=t.unstable_scheduleCallback,ke=t.unstable_cancelCallback,Ne=t.unstable_shouldYield,$=t.unstable_requestPaint,I=t.unstable_now,J=t.unstable_getCurrentPriorityLevel,xe=t.unstable_ImmediatePriority,ve=t.unstable_UserBlockingPriority,oe=t.unstable_NormalPriority,Te=t.unstable_LowPriority,De=t.unstable_IdlePriority,Ze=t.log,ht=t.unstable_setDisableYieldValue,Xe=null,ce=null;function Ve(h){if(typeof Ze=="function"&&ht(h),ce&&typeof ce.setStrictMode=="function")try{ce.setStrictMode(Xe,h)}catch{}}var $e=Math.clz32?Math.clz32:se,Ge=Math.log,it=Math.LN2;function se(h){return h>>>=0,h===0?32:31-(Ge(h)/it|0)|0}var He=256,ye=262144,Fe=4194304;function Oe(h){var p=h&42;if(p!==0)return p;switch(h&-h){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 h&261888;case 262144:case 524288:case 1048576:case 2097152:return h&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return h&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return h}}function _e(h,p,_){var N=h.pendingLanes;if(N===0)return 0;var P=0,O=h.suspendedLanes,te=h.pingedLanes;h=h.warmLanes;var me=N&134217727;return me!==0?(N=me&~O,N!==0?P=Oe(N):(te&=me,te!==0?P=Oe(te):_||(_=me&~h,_!==0&&(P=Oe(_))))):(me=N&~O,me!==0?P=Oe(me):te!==0?P=Oe(te):_||(_=N&~h,_!==0&&(P=Oe(_)))),P===0?0:p!==0&&p!==P&&(p&O)===0&&(O=P&-P,_=p&-p,O>=_||O===32&&(_&4194048)!==0)?p:P}function qe(h,p){return(h.pendingLanes&~(h.suspendedLanes&~h.pingedLanes)&p)===0}function dt(h,p){switch(h){case 1:case 2:case 4:case 8:case 64:return p+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 p+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 kt(){var h=Fe;return Fe<<=1,(Fe&62914560)===0&&(Fe=4194304),h}function jt(h){for(var p=[],_=0;31>_;_++)p.push(h);return p}function Zt(h,p){h.pendingLanes|=p,p!==268435456&&(h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0)}function Rt(h,p,_,N,P,O){var te=h.pendingLanes;h.pendingLanes=_,h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0,h.expiredLanes&=_,h.entangledLanes&=_,h.errorRecoveryDisabledLanes&=_,h.shellSuspendCounter=0;var me=h.entanglements,Pe=h.expirationTimes,rt=h.hiddenUpdates;for(_=te&~_;0<_;){var gt=31-$e(_),bt=1<"u")return null;try{return h.activeElement||h.body}catch{return h.body}}var ti=/[\n"\\]/g;function Wn(h){return h.replace(ti,function(p){return"\\"+p.charCodeAt(0).toString(16)+" "})}function Po(h,p,_,N,P,O,te,me){h.name="",te!=null&&typeof te!="function"&&typeof te!="symbol"&&typeof te!="boolean"?h.type=te:h.removeAttribute("type"),p!=null?te==="number"?(p===0&&h.value===""||h.value!=p)&&(h.value=""+un(p)):h.value!==""+un(p)&&(h.value=""+un(p)):te!=="submit"&&te!=="reset"||h.removeAttribute("value"),p!=null?Ii(h,te,un(p)):_!=null?Ii(h,te,un(_)):N!=null&&h.removeAttribute("value"),P==null&&O!=null&&(h.defaultChecked=!!O),P!=null&&(h.checked=P&&typeof P!="function"&&typeof P!="symbol"),me!=null&&typeof me!="function"&&typeof me!="symbol"&&typeof me!="boolean"?h.name=""+un(me):h.removeAttribute("name")}function Xn(h,p,_,N,P,O,te,me){if(O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(h.type=O),p!=null||_!=null){if(!(O!=="submit"&&O!=="reset"||p!=null)){dn(h);return}_=_!=null?""+un(_):"",p=p!=null?""+un(p):_,me||p===h.value||(h.value=p),h.defaultValue=p}N=N??P,N=typeof N!="function"&&typeof N!="symbol"&&!!N,h.checked=me?h.checked:!!N,h.defaultChecked=!!N,te!=null&&typeof te!="function"&&typeof te!="symbol"&&typeof te!="boolean"&&(h.name=te),dn(h)}function Ii(h,p,_){p==="number"&&Hr(h.ownerDocument)===h||h.defaultValue===""+_||(h.defaultValue=""+_)}function wi(h,p,_,N){if(h=h.options,p){p={};for(var P=0;P<_.length;P++)p["$"+_[P]]=!0;for(_=0;_"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gN=!1;if(Zl)try{var ex={};Object.defineProperty(ex,"passive",{get:function(){gN=!0}}),window.addEventListener("test",ex,ex),window.removeEventListener("test",ex,ex)}catch{gN=!1}var gu=null,xN=null,Iy=null;function FL(){if(Iy)return Iy;var h,p=xN,_=p.length,N,P="value"in gu?gu.value:gu.textContent,O=P.length;for(h=0;h<_&&p[h]===P[h];h++);var te=_-h;for(N=1;N<=te&&p[_-N]===P[O-N];N++);return Iy=P.slice(h,1=rx),VL=" ",GL=!1;function WL(h,p){switch(h){case"keyup":return Vre.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qL(h){return h=h.detail,typeof h=="object"&&"data"in h?h.data:null}var Jf=!1;function Wre(h,p){switch(h){case"compositionend":return qL(p);case"keypress":return p.which!==32?null:(GL=!0,VL);case"textInput":return h=p.data,h===VL&&GL?null:h;default:return null}}function qre(h,p){if(Jf)return h==="compositionend"||!wN&&WL(h,p)?(h=FL(),Iy=xN=gu=null,Jf=!1,h):null;switch(h){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1=p)return{node:_,offset:p-h};h=N}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=tI(_)}}function rI(h,p){return h&&p?h===p?!0:h&&h.nodeType===3?!1:p&&p.nodeType===3?rI(h,p.parentNode):"contains"in h?h.contains(p):h.compareDocumentPosition?!!(h.compareDocumentPosition(p)&16):!1:!1}function iI(h){h=h!=null&&h.ownerDocument!=null&&h.ownerDocument.defaultView!=null?h.ownerDocument.defaultView:window;for(var p=Hr(h.document);p instanceof h.HTMLIFrameElement;){try{var _=typeof p.contentWindow.location.href=="string"}catch{_=!1}if(_)h=p.contentWindow;else break;p=Hr(h.document)}return p}function NN(h){var p=h&&h.nodeName&&h.nodeName.toLowerCase();return p&&(p==="input"&&(h.type==="text"||h.type==="search"||h.type==="tel"||h.type==="url"||h.type==="password")||p==="textarea"||h.contentEditable==="true")}var tie=Zl&&"documentMode"in document&&11>=document.documentMode,em=null,EN=null,ox=null,AN=!1;function aI(h,p,_){var N=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;AN||em==null||em!==Hr(N)||(N=em,"selectionStart"in N&&NN(N)?N={start:N.selectionStart,end:N.selectionEnd}:(N=(N.ownerDocument&&N.ownerDocument.defaultView||window).getSelection(),N={anchorNode:N.anchorNode,anchorOffset:N.anchorOffset,focusNode:N.focusNode,focusOffset:N.focusOffset}),ox&&sx(ox,N)||(ox=N,N=kv(EN,"onSelect"),0>=te,P-=te,dl=1<<32-$e(p)+P|_<pn?(Pn=Vt,Vt=null):Pn=Vt.sibling;var Un=at(Ke,Vt,nt[pn],xt);if(Un===null){Vt===null&&(Vt=Pn);break}h&&Vt&&Un.alternate===null&&p(Ke,Vt),Ue=O(Un,Ue,pn),Fn===null?Kt=Un:Fn.sibling=Un,Fn=Un,Vt=Pn}if(pn===nt.length)return _(Ke,Vt),Rn&&ec(Ke,pn),Kt;if(Vt===null){for(;pnpn?(Pn=Vt,Vt=null):Pn=Vt.sibling;var Fu=at(Ke,Vt,Un.value,xt);if(Fu===null){Vt===null&&(Vt=Pn);break}h&&Vt&&Fu.alternate===null&&p(Ke,Vt),Ue=O(Fu,Ue,pn),Fn===null?Kt=Fu:Fn.sibling=Fu,Fn=Fu,Vt=Pn}if(Un.done)return _(Ke,Vt),Rn&&ec(Ke,pn),Kt;if(Vt===null){for(;!Un.done;pn++,Un=nt.next())Un=bt(Ke,Un.value,xt),Un!==null&&(Ue=O(Un,Ue,pn),Fn===null?Kt=Un:Fn.sibling=Un,Fn=Un);return Rn&&ec(Ke,pn),Kt}for(Vt=N(Vt);!Un.done;pn++,Un=nt.next())Un=lt(Vt,Ke,pn,Un.value,xt),Un!==null&&(h&&Un.alternate!==null&&Vt.delete(Un.key===null?pn:Un.key),Ue=O(Un,Ue,pn),Fn===null?Kt=Un:Fn.sibling=Un,Fn=Un);return h&&Vt.forEach(function(_ae){return p(Ke,_ae)}),Rn&&ec(Ke,pn),Kt}function ir(Ke,Ue,nt,xt){if(typeof nt=="object"&&nt!==null&&nt.type===y&&nt.key===null&&(nt=nt.props.children),typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case g:e:{for(var Kt=nt.key;Ue!==null;){if(Ue.key===Kt){if(Kt=nt.type,Kt===y){if(Ue.tag===7){_(Ke,Ue.sibling),xt=P(Ue,nt.props.children),xt.return=Ke,Ke=xt;break e}}else if(Ue.elementType===Kt||typeof Kt=="object"&&Kt!==null&&Kt.$$typeof===R&&fh(Kt)===Ue.type){_(Ke,Ue.sibling),xt=P(Ue,nt.props),fx(xt,nt),xt.return=Ke,Ke=xt;break e}_(Ke,Ue);break}else p(Ke,Ue);Ue=Ue.sibling}nt.type===y?(xt=lh(nt.props.children,Ke.mode,xt,nt.key),xt.return=Ke,Ke=xt):(xt=qy(nt.type,nt.key,nt.props,null,Ke.mode,xt),fx(xt,nt),xt.return=Ke,Ke=xt)}return te(Ke);case x:e:{for(Kt=nt.key;Ue!==null;){if(Ue.key===Kt)if(Ue.tag===4&&Ue.stateNode.containerInfo===nt.containerInfo&&Ue.stateNode.implementation===nt.implementation){_(Ke,Ue.sibling),xt=P(Ue,nt.children||[]),xt.return=Ke,Ke=xt;break e}else{_(Ke,Ue);break}else p(Ke,Ue);Ue=Ue.sibling}xt=DN(nt,Ke.mode,xt),xt.return=Ke,Ke=xt}return te(Ke);case R:return nt=fh(nt),ir(Ke,Ue,nt,xt)}if(X(nt))return Bt(Ke,Ue,nt,xt);if(L(nt)){if(Kt=L(nt),typeof Kt!="function")throw Error(r(150));return nt=Kt.call(nt),Jt(Ke,Ue,nt,xt)}if(typeof nt.then=="function")return ir(Ke,Ue,ev(nt),xt);if(nt.$$typeof===S)return ir(Ke,Ue,Yy(Ke,nt),xt);tv(Ke,nt)}return typeof nt=="string"&&nt!==""||typeof nt=="number"||typeof nt=="bigint"?(nt=""+nt,Ue!==null&&Ue.tag===6?(_(Ke,Ue.sibling),xt=P(Ue,nt),xt.return=Ke,Ke=xt):(_(Ke,Ue),xt=RN(nt,Ke.mode,xt),xt.return=Ke,Ke=xt),te(Ke)):_(Ke,Ue)}return function(Ke,Ue,nt,xt){try{hx=0;var Kt=ir(Ke,Ue,nt,xt);return dm=null,Kt}catch(Vt){if(Vt===um||Vt===Zy)throw Vt;var Fn=Ss(29,Vt,null,Ke.mode);return Fn.lanes=xt,Fn.return=Ke,Fn}finally{}}}var ph=TI(!0),CI=TI(!1),_u=!1;function WN(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qN(h,p){h=h.updateQueue,p.updateQueue===h&&(p.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,callbacks:null})}function wu(h){return{lane:h,tag:0,payload:null,callback:null,next:null}}function Su(h,p,_){var N=h.updateQueue;if(N===null)return null;if(N=N.shared,(Hn&2)!==0){var P=N.pending;return P===null?p.next=p:(p.next=P.next,P.next=p),N.pending=p,p=Wy(h),hI(h,null,_),p}return Gy(h,N,p,_),Wy(h)}function mx(h,p,_){if(p=p.updateQueue,p!==null&&(p=p.shared,(_&4194048)!==0)){var N=p.lanes;N&=h.pendingLanes,_|=N,p.lanes=_,pt(h,_)}}function KN(h,p){var _=h.updateQueue,N=h.alternate;if(N!==null&&(N=N.updateQueue,_===N)){var P=null,O=null;if(_=_.firstBaseUpdate,_!==null){do{var te={lane:_.lane,tag:_.tag,payload:_.payload,callback:null,next:null};O===null?P=O=te:O=O.next=te,_=_.next}while(_!==null);O===null?P=O=p:O=O.next=p}else P=O=p;_={baseState:N.baseState,firstBaseUpdate:P,lastBaseUpdate:O,shared:N.shared,callbacks:N.callbacks},h.updateQueue=_;return}h=_.lastBaseUpdate,h===null?_.firstBaseUpdate=p:h.next=p,_.lastBaseUpdate=p}var XN=!1;function px(){if(XN){var h=cm;if(h!==null)throw h}}function gx(h,p,_,N){XN=!1;var P=h.updateQueue;_u=!1;var O=P.firstBaseUpdate,te=P.lastBaseUpdate,me=P.shared.pending;if(me!==null){P.shared.pending=null;var Pe=me,rt=Pe.next;Pe.next=null,te===null?O=rt:te.next=rt,te=Pe;var gt=h.alternate;gt!==null&&(gt=gt.updateQueue,me=gt.lastBaseUpdate,me!==te&&(me===null?gt.firstBaseUpdate=rt:me.next=rt,gt.lastBaseUpdate=Pe))}if(O!==null){var bt=P.baseState;te=0,gt=rt=Pe=null,me=O;do{var at=me.lane&-536870913,lt=at!==me.lane;if(lt?(jn&at)===at:(N&at)===at){at!==0&&at===lm&&(XN=!0),gt!==null&&(gt=gt.next={lane:0,tag:me.tag,payload:me.payload,callback:null,next:null});e:{var Bt=h,Jt=me;at=p;var ir=_;switch(Jt.tag){case 1:if(Bt=Jt.payload,typeof Bt=="function"){bt=Bt.call(ir,bt,at);break e}bt=Bt;break e;case 3:Bt.flags=Bt.flags&-65537|128;case 0:if(Bt=Jt.payload,at=typeof Bt=="function"?Bt.call(ir,bt,at):Bt,at==null)break e;bt=f({},bt,at);break e;case 2:_u=!0}}at=me.callback,at!==null&&(h.flags|=64,lt&&(h.flags|=8192),lt=P.callbacks,lt===null?P.callbacks=[at]:lt.push(at))}else lt={lane:at,tag:me.tag,payload:me.payload,callback:me.callback,next:null},gt===null?(rt=gt=lt,Pe=bt):gt=gt.next=lt,te|=at;if(me=me.next,me===null){if(me=P.shared.pending,me===null)break;lt=me,me=lt.next,lt.next=null,P.lastBaseUpdate=lt,P.shared.pending=null}}while(!0);gt===null&&(Pe=bt),P.baseState=Pe,P.firstBaseUpdate=rt,P.lastBaseUpdate=gt,O===null&&(P.shared.lanes=0),Tu|=te,h.lanes=te,h.memoizedState=bt}}function kI(h,p){if(typeof h!="function")throw Error(r(191,h));h.call(p)}function jI(h,p){var _=h.callbacks;if(_!==null)for(h.callbacks=null,h=0;h<_.length;h++)kI(_[h],p)}var hm=U(null),nv=U(0);function PI(h,p){h=dc,ee(nv,h),ee(hm,p),dc=h|p.baseLanes}function YN(){ee(nv,dc),ee(hm,hm.current)}function QN(){dc=nv.current,G(hm),G(nv)}var Ms=U(null),Js=null;function Mu(h){var p=h.alternate;ee(ni,ni.current&1),ee(Ms,h),Js===null&&(p===null||hm.current!==null||p.memoizedState!==null)&&(Js=h)}function ZN(h){ee(ni,ni.current),ee(Ms,h),Js===null&&(Js=h)}function RI(h){h.tag===22?(ee(ni,ni.current),ee(Ms,h),Js===null&&(Js=h)):Nu()}function Nu(){ee(ni,ni.current),ee(Ms,Ms.current)}function Ns(h){G(Ms),Js===h&&(Js=null),G(ni)}var ni=U(0);function rv(h){for(var p=h;p!==null;){if(p.tag===13){var _=p.memoizedState;if(_!==null&&(_=_.dehydrated,_===null||iA(_)||aA(_)))return p}else if(p.tag===19&&(p.memoizedProps.revealOrder==="forwards"||p.memoizedProps.revealOrder==="backwards"||p.memoizedProps.revealOrder==="unstable_legacy-backwards"||p.memoizedProps.revealOrder==="together")){if((p.flags&128)!==0)return p}else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===h)break;for(;p.sibling===null;){if(p.return===null||p.return===h)return null;p=p.return}p.sibling.return=p.return,p=p.sibling}return null}var rc=0,mn=null,nr=null,li=null,iv=!1,fm=!1,gh=!1,av=0,xx=0,mm=null,die=0;function Vr(){throw Error(r(321))}function JN(h,p){if(p===null)return!1;for(var _=0;_O?O:8;var te=Y.T,me={};Y.T=me,mE(h,!1,p,_);try{var Pe=P(),rt=Y.S;if(rt!==null&&rt(me,Pe),Pe!==null&&typeof Pe=="object"&&typeof Pe.then=="function"){var gt=uie(Pe,N);yx(h,p,gt,Ts(h))}else yx(h,p,N,Ts(h))}catch(bt){yx(h,p,{then:function(){},status:"rejected",reason:bt},Ts())}finally{W.p=O,te!==null&&me.types!==null&&(te.types=me.types),Y.T=te}}function gie(){}function hE(h,p,_,N){if(h.tag!==5)throw Error(r(476));var P=c5(h).queue;l5(h,P,p,Z,_===null?gie:function(){return u5(h),_(N)})}function c5(h){var p=h.memoizedState;if(p!==null)return p;p={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ic,lastRenderedState:Z},next:null};var _={};return p.next={memoizedState:_,baseState:_,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ic,lastRenderedState:_},next:null},h.memoizedState=p,h=h.alternate,h!==null&&(h.memoizedState=p),p}function u5(h){var p=c5(h);p.next===null&&(p=h.alternate.memoizedState),yx(h,p.next.queue,{},Ts())}function fE(){return ia(Lx)}function d5(){return ri().memoizedState}function h5(){return ri().memoizedState}function xie(h){for(var p=h.return;p!==null;){switch(p.tag){case 24:case 3:var _=Ts();h=wu(_);var N=Su(p,h,_);N!==null&&(rs(N,p,_),mx(N,p,_)),p={cache:$N()},h.payload=p;return}p=p.return}}function bie(h,p,_){var N=Ts();_={lane:N,revertLane:0,gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null},dv(h)?m5(p,_):(_=jN(h,p,_,N),_!==null&&(rs(_,h,N),p5(_,p,N)))}function f5(h,p,_){var N=Ts();yx(h,p,_,N)}function yx(h,p,_,N){var P={lane:N,revertLane:0,gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null};if(dv(h))m5(p,P);else{var O=h.alternate;if(h.lanes===0&&(O===null||O.lanes===0)&&(O=p.lastRenderedReducer,O!==null))try{var te=p.lastRenderedState,me=O(te,_);if(P.hasEagerState=!0,P.eagerState=me,ws(me,te))return Gy(h,p,P,0),fr===null&&Vy(),!1}catch{}finally{}if(_=jN(h,p,P,N),_!==null)return rs(_,h,N),p5(_,p,N),!0}return!1}function mE(h,p,_,N){if(N={lane:2,revertLane:WE(),gesture:null,action:N,hasEagerState:!1,eagerState:null,next:null},dv(h)){if(p)throw Error(r(479))}else p=jN(h,_,N,2),p!==null&&rs(p,h,2)}function dv(h){var p=h.alternate;return h===mn||p!==null&&p===mn}function m5(h,p){fm=iv=!0;var _=h.pending;_===null?p.next=p:(p.next=_.next,_.next=p),h.pending=p}function p5(h,p,_){if((_&4194048)!==0){var N=p.lanes;N&=h.pendingLanes,_|=N,p.lanes=_,pt(h,_)}}var vx={readContext:ia,use:ov,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useLayoutEffect:Vr,useInsertionEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useSyncExternalStore:Vr,useId:Vr,useHostTransitionStatus:Vr,useFormState:Vr,useActionState:Vr,useOptimistic:Vr,useMemoCache:Vr,useCacheRefresh:Vr};vx.useEffectEvent=Vr;var g5={readContext:ia,use:ov,useCallback:function(h,p){return Oa().memoizedState=[h,p===void 0?null:p],h},useContext:ia,useEffect:JI,useImperativeHandle:function(h,p,_){_=_!=null?_.concat([h]):null,cv(4194308,4,r5.bind(null,p,h),_)},useLayoutEffect:function(h,p){return cv(4194308,4,h,p)},useInsertionEffect:function(h,p){cv(4,2,h,p)},useMemo:function(h,p){var _=Oa();p=p===void 0?null:p;var N=h();if(gh){Ve(!0);try{h()}finally{Ve(!1)}}return _.memoizedState=[N,p],N},useReducer:function(h,p,_){var N=Oa();if(_!==void 0){var P=_(p);if(gh){Ve(!0);try{_(p)}finally{Ve(!1)}}}else P=p;return N.memoizedState=N.baseState=P,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:P},N.queue=h,h=h.dispatch=bie.bind(null,mn,h),[N.memoizedState,h]},useRef:function(h){var p=Oa();return h={current:h},p.memoizedState=h},useState:function(h){h=oE(h);var p=h.queue,_=f5.bind(null,mn,p);return p.dispatch=_,[h.memoizedState,_]},useDebugValue:uE,useDeferredValue:function(h,p){var _=Oa();return dE(_,h,p)},useTransition:function(){var h=oE(!1);return h=l5.bind(null,mn,h.queue,!0,!1),Oa().memoizedState=h,[!1,h]},useSyncExternalStore:function(h,p,_){var N=mn,P=Oa();if(Rn){if(_===void 0)throw Error(r(407));_=_()}else{if(_=p(),fr===null)throw Error(r(349));(jn&127)!==0||II(N,p,_)}P.memoizedState=_;var O={value:_,getSnapshot:p};return P.queue=O,JI(UI.bind(null,N,O,h),[h]),N.flags|=2048,pm(9,{destroy:void 0},FI.bind(null,N,O,_,p),null),_},useId:function(){var h=Oa(),p=fr.identifierPrefix;if(Rn){var _=hl,N=dl;_=(N&~(1<<32-$e(N)-1)).toString(32)+_,p="_"+p+"R_"+_,_=av++,0<_&&(p+="H"+_.toString(32)),p+="_"}else _=die++,p="_"+p+"r_"+_.toString(32)+"_";return h.memoizedState=p},useHostTransitionStatus:fE,useFormState:KI,useActionState:KI,useOptimistic:function(h){var p=Oa();p.memoizedState=p.baseState=h;var _={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return p.queue=_,p=mE.bind(null,mn,!0,_),_.dispatch=p,[h,p]},useMemoCache:iE,useCacheRefresh:function(){return Oa().memoizedState=xie.bind(null,mn)},useEffectEvent:function(h){var p=Oa(),_={impl:h};return p.memoizedState=_,function(){if((Hn&2)!==0)throw Error(r(440));return _.impl.apply(void 0,arguments)}}},pE={readContext:ia,use:ov,useCallback:a5,useContext:ia,useEffect:cE,useImperativeHandle:i5,useInsertionEffect:t5,useLayoutEffect:n5,useMemo:s5,useReducer:lv,useRef:ZI,useState:function(){return lv(ic)},useDebugValue:uE,useDeferredValue:function(h,p){var _=ri();return o5(_,nr.memoizedState,h,p)},useTransition:function(){var h=lv(ic)[0],p=ri().memoizedState;return[typeof h=="boolean"?h:bx(h),p]},useSyncExternalStore:LI,useId:d5,useHostTransitionStatus:fE,useFormState:XI,useActionState:XI,useOptimistic:function(h,p){var _=ri();return $I(_,nr,h,p)},useMemoCache:iE,useCacheRefresh:h5};pE.useEffectEvent=e5;var x5={readContext:ia,use:ov,useCallback:a5,useContext:ia,useEffect:cE,useImperativeHandle:i5,useInsertionEffect:t5,useLayoutEffect:n5,useMemo:s5,useReducer:sE,useRef:ZI,useState:function(){return sE(ic)},useDebugValue:uE,useDeferredValue:function(h,p){var _=ri();return nr===null?dE(_,h,p):o5(_,nr.memoizedState,h,p)},useTransition:function(){var h=sE(ic)[0],p=ri().memoizedState;return[typeof h=="boolean"?h:bx(h),p]},useSyncExternalStore:LI,useId:d5,useHostTransitionStatus:fE,useFormState:QI,useActionState:QI,useOptimistic:function(h,p){var _=ri();return nr!==null?$I(_,nr,h,p):(_.baseState=h,[h,_.queue.dispatch])},useMemoCache:iE,useCacheRefresh:h5};x5.useEffectEvent=e5;function gE(h,p,_,N){p=h.memoizedState,_=_(N,p),_=_==null?p:f({},p,_),h.memoizedState=_,h.lanes===0&&(h.updateQueue.baseState=_)}var xE={enqueueSetState:function(h,p,_){h=h._reactInternals;var N=Ts(),P=wu(N);P.payload=p,_!=null&&(P.callback=_),p=Su(h,P,N),p!==null&&(rs(p,h,N),mx(p,h,N))},enqueueReplaceState:function(h,p,_){h=h._reactInternals;var N=Ts(),P=wu(N);P.tag=1,P.payload=p,_!=null&&(P.callback=_),p=Su(h,P,N),p!==null&&(rs(p,h,N),mx(p,h,N))},enqueueForceUpdate:function(h,p){h=h._reactInternals;var _=Ts(),N=wu(_);N.tag=2,p!=null&&(N.callback=p),p=Su(h,N,_),p!==null&&(rs(p,h,_),mx(p,h,_))}};function b5(h,p,_,N,P,O,te){return h=h.stateNode,typeof h.shouldComponentUpdate=="function"?h.shouldComponentUpdate(N,O,te):p.prototype&&p.prototype.isPureReactComponent?!sx(_,N)||!sx(P,O):!0}function y5(h,p,_,N){h=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(_,N),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(_,N),p.state!==h&&xE.enqueueReplaceState(p,p.state,null)}function xh(h,p){var _=p;if("ref"in p){_={};for(var N in p)N!=="ref"&&(_[N]=p[N])}if(h=h.defaultProps){_===p&&(_=f({},_));for(var P in h)_[P]===void 0&&(_[P]=h[P])}return _}function v5(h){Hy(h)}function _5(h){console.error(h)}function w5(h){Hy(h)}function hv(h,p){try{var _=h.onUncaughtError;_(p.value,{componentStack:p.stack})}catch(N){setTimeout(function(){throw N})}}function S5(h,p,_){try{var N=h.onCaughtError;N(_.value,{componentStack:_.stack,errorBoundary:p.tag===1?p.stateNode:null})}catch(P){setTimeout(function(){throw P})}}function bE(h,p,_){return _=wu(_),_.tag=3,_.payload={element:null},_.callback=function(){hv(h,p)},_}function M5(h){return h=wu(h),h.tag=3,h}function N5(h,p,_,N){var P=_.type.getDerivedStateFromError;if(typeof P=="function"){var O=N.value;h.payload=function(){return P(O)},h.callback=function(){S5(p,_,N)}}var te=_.stateNode;te!==null&&typeof te.componentDidCatch=="function"&&(h.callback=function(){S5(p,_,N),typeof P!="function"&&(Cu===null?Cu=new Set([this]):Cu.add(this));var me=N.stack;this.componentDidCatch(N.value,{componentStack:me!==null?me:""})})}function yie(h,p,_,N,P){if(_.flags|=32768,N!==null&&typeof N=="object"&&typeof N.then=="function"){if(p=_.alternate,p!==null&&om(p,_,P,!0),_=Ms.current,_!==null){switch(_.tag){case 31:case 13:return Js===null?Mv():_.alternate===null&&Gr===0&&(Gr=3),_.flags&=-257,_.flags|=65536,_.lanes=P,N===Jy?_.flags|=16384:(p=_.updateQueue,p===null?_.updateQueue=new Set([N]):p.add(N),HE(h,N,P)),!1;case 22:return _.flags|=65536,N===Jy?_.flags|=16384:(p=_.updateQueue,p===null?(p={transitions:null,markerInstances:null,retryQueue:new Set([N])},_.updateQueue=p):(_=p.retryQueue,_===null?p.retryQueue=new Set([N]):_.add(N)),HE(h,N,P)),!1}throw Error(r(435,_.tag))}return HE(h,N,P),Mv(),!1}if(Rn)return p=Ms.current,p!==null?((p.flags&65536)===0&&(p.flags|=256),p.flags|=65536,p.lanes=P,N!==IN&&(h=Error(r(422),{cause:N}),cx(Xs(h,_)))):(N!==IN&&(p=Error(r(423),{cause:N}),cx(Xs(p,_))),h=h.current.alternate,h.flags|=65536,P&=-P,h.lanes|=P,N=Xs(N,_),P=bE(h.stateNode,N,P),KN(h,P),Gr!==4&&(Gr=2)),!1;var O=Error(r(520),{cause:N});if(O=Xs(O,_),Tx===null?Tx=[O]:Tx.push(O),Gr!==4&&(Gr=2),p===null)return!0;N=Xs(N,_),_=p;do{switch(_.tag){case 3:return _.flags|=65536,h=P&-P,_.lanes|=h,h=bE(_.stateNode,N,h),KN(_,h),!1;case 1:if(p=_.type,O=_.stateNode,(_.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(Cu===null||!Cu.has(O))))return _.flags|=65536,P&=-P,_.lanes|=P,P=M5(P),N5(P,h,_,N),KN(_,P),!1}_=_.return}while(_!==null);return!1}var yE=Error(r(461)),ci=!1;function aa(h,p,_,N){p.child=h===null?CI(p,null,_,N):ph(p,h.child,_,N)}function E5(h,p,_,N,P){_=_.render;var O=p.ref;if("ref"in N){var te={};for(var me in N)me!=="ref"&&(te[me]=N[me])}else te=N;return dh(p),N=eE(h,p,_,te,O,P),me=tE(),h!==null&&!ci?(nE(h,p,P),ac(h,p,P)):(Rn&&me&&ON(p),p.flags|=1,aa(h,p,N,P),p.child)}function A5(h,p,_,N,P){if(h===null){var O=_.type;return typeof O=="function"&&!PN(O)&&O.defaultProps===void 0&&_.compare===null?(p.tag=15,p.type=O,T5(h,p,O,N,P)):(h=qy(_.type,null,N,p,p.mode,P),h.ref=p.ref,h.return=p,p.child=h)}if(O=h.child,!AE(h,P)){var te=O.memoizedProps;if(_=_.compare,_=_!==null?_:sx,_(te,N)&&h.ref===p.ref)return ac(h,p,P)}return p.flags|=1,h=Jl(O,N),h.ref=p.ref,h.return=p,p.child=h}function T5(h,p,_,N,P){if(h!==null){var O=h.memoizedProps;if(sx(O,N)&&h.ref===p.ref)if(ci=!1,p.pendingProps=N=O,AE(h,P))(h.flags&131072)!==0&&(ci=!0);else return p.lanes=h.lanes,ac(h,p,P)}return vE(h,p,_,N,P)}function C5(h,p,_,N){var P=N.children,O=h!==null?h.memoizedState:null;if(h===null&&p.stateNode===null&&(p.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),N.mode==="hidden"){if((p.flags&128)!==0){if(O=O!==null?O.baseLanes|_:_,h!==null){for(N=p.child=h.child,P=0;N!==null;)P=P|N.lanes|N.childLanes,N=N.sibling;N=P&~O}else N=0,p.child=null;return k5(h,p,O,_,N)}if((_&536870912)!==0)p.memoizedState={baseLanes:0,cachePool:null},h!==null&&Qy(p,O!==null?O.cachePool:null),O!==null?PI(p,O):YN(),RI(p);else return N=p.lanes=536870912,k5(h,p,O!==null?O.baseLanes|_:_,_,N)}else O!==null?(Qy(p,O.cachePool),PI(p,O),Nu(),p.memoizedState=null):(h!==null&&Qy(p,null),YN(),Nu());return aa(h,p,P,_),p.child}function _x(h,p){return h!==null&&h.tag===22||p.stateNode!==null||(p.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.sibling}function k5(h,p,_,N,P){var O=VN();return O=O===null?null:{parent:oi._currentValue,pool:O},p.memoizedState={baseLanes:_,cachePool:O},h!==null&&Qy(p,null),YN(),RI(p),h!==null&&om(h,p,N,!0),p.childLanes=P,null}function fv(h,p){return p=pv({mode:p.mode,children:p.children},h.mode),p.ref=h.ref,h.child=p,p.return=h,p}function j5(h,p,_){return ph(p,h.child,null,_),h=fv(p,p.pendingProps),h.flags|=2,Ns(p),p.memoizedState=null,h}function vie(h,p,_){var N=p.pendingProps,P=(p.flags&128)!==0;if(p.flags&=-129,h===null){if(Rn){if(N.mode==="hidden")return h=fv(p,N),p.lanes=536870912,_x(null,h);if(ZN(p),(h=wr)?(h=HF(h,Zs),h=h!==null&&h.data==="&"?h:null,h!==null&&(p.memoizedState={dehydrated:h,treeContext:xu!==null?{id:dl,overflow:hl}:null,retryLane:536870912,hydrationErrors:null},_=mI(h),_.return=p,p.child=_,ra=p,wr=null)):h=null,h===null)throw yu(p);return p.lanes=536870912,null}return fv(p,N)}var O=h.memoizedState;if(O!==null){var te=O.dehydrated;if(ZN(p),P)if(p.flags&256)p.flags&=-257,p=j5(h,p,_);else if(p.memoizedState!==null)p.child=h.child,p.flags|=128,p=null;else throw Error(r(558));else if(ci||om(h,p,_,!1),P=(_&h.childLanes)!==0,ci||P){if(N=fr,N!==null&&(te=$t(N,_),te!==0&&te!==O.retryLane))throw O.retryLane=te,oh(h,te),rs(N,h,te),yE;Mv(),p=j5(h,p,_)}else h=O.treeContext,wr=eo(te.nextSibling),ra=p,Rn=!0,bu=null,Zs=!1,h!==null&&xI(p,h),p=fv(p,N),p.flags|=4096;return p}return h=Jl(h.child,{mode:N.mode,children:N.children}),h.ref=p.ref,p.child=h,h.return=p,h}function mv(h,p){var _=p.ref;if(_===null)h!==null&&h.ref!==null&&(p.flags|=4194816);else{if(typeof _!="function"&&typeof _!="object")throw Error(r(284));(h===null||h.ref!==_)&&(p.flags|=4194816)}}function vE(h,p,_,N,P){return dh(p),_=eE(h,p,_,N,void 0,P),N=tE(),h!==null&&!ci?(nE(h,p,P),ac(h,p,P)):(Rn&&N&&ON(p),p.flags|=1,aa(h,p,_,P),p.child)}function P5(h,p,_,N,P,O){return dh(p),p.updateQueue=null,_=OI(p,N,_,P),DI(h),N=tE(),h!==null&&!ci?(nE(h,p,O),ac(h,p,O)):(Rn&&N&&ON(p),p.flags|=1,aa(h,p,_,O),p.child)}function R5(h,p,_,N,P){if(dh(p),p.stateNode===null){var O=rm,te=_.contextType;typeof te=="object"&&te!==null&&(O=ia(te)),O=new _(N,O),p.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,O.updater=xE,p.stateNode=O,O._reactInternals=p,O=p.stateNode,O.props=N,O.state=p.memoizedState,O.refs={},WN(p),te=_.contextType,O.context=typeof te=="object"&&te!==null?ia(te):rm,O.state=p.memoizedState,te=_.getDerivedStateFromProps,typeof te=="function"&&(gE(p,_,te,N),O.state=p.memoizedState),typeof _.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(te=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),te!==O.state&&xE.enqueueReplaceState(O,O.state,null),gx(p,N,O,P),px(),O.state=p.memoizedState),typeof O.componentDidMount=="function"&&(p.flags|=4194308),N=!0}else if(h===null){O=p.stateNode;var me=p.memoizedProps,Pe=xh(_,me);O.props=Pe;var rt=O.context,gt=_.contextType;te=rm,typeof gt=="object"&>!==null&&(te=ia(gt));var bt=_.getDerivedStateFromProps;gt=typeof bt=="function"||typeof O.getSnapshotBeforeUpdate=="function",me=p.pendingProps!==me,gt||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(me||rt!==te)&&y5(p,O,N,te),_u=!1;var at=p.memoizedState;O.state=at,gx(p,N,O,P),px(),rt=p.memoizedState,me||at!==rt||_u?(typeof bt=="function"&&(gE(p,_,bt,N),rt=p.memoizedState),(Pe=_u||b5(p,_,Pe,N,at,rt,te))?(gt||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount()),typeof O.componentDidMount=="function"&&(p.flags|=4194308)):(typeof O.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=N,p.memoizedState=rt),O.props=N,O.state=rt,O.context=te,N=Pe):(typeof O.componentDidMount=="function"&&(p.flags|=4194308),N=!1)}else{O=p.stateNode,qN(h,p),te=p.memoizedProps,gt=xh(_,te),O.props=gt,bt=p.pendingProps,at=O.context,rt=_.contextType,Pe=rm,typeof rt=="object"&&rt!==null&&(Pe=ia(rt)),me=_.getDerivedStateFromProps,(rt=typeof me=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(te!==bt||at!==Pe)&&y5(p,O,N,Pe),_u=!1,at=p.memoizedState,O.state=at,gx(p,N,O,P),px();var lt=p.memoizedState;te!==bt||at!==lt||_u||h!==null&&h.dependencies!==null&&Xy(h.dependencies)?(typeof me=="function"&&(gE(p,_,me,N),lt=p.memoizedState),(gt=_u||b5(p,_,gt,N,at,lt,Pe)||h!==null&&h.dependencies!==null&&Xy(h.dependencies))?(rt||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(N,lt,Pe),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(N,lt,Pe)),typeof O.componentDidUpdate=="function"&&(p.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof O.componentDidUpdate!="function"||te===h.memoizedProps&&at===h.memoizedState||(p.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||te===h.memoizedProps&&at===h.memoizedState||(p.flags|=1024),p.memoizedProps=N,p.memoizedState=lt),O.props=N,O.state=lt,O.context=Pe,N=gt):(typeof O.componentDidUpdate!="function"||te===h.memoizedProps&&at===h.memoizedState||(p.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||te===h.memoizedProps&&at===h.memoizedState||(p.flags|=1024),N=!1)}return O=N,mv(h,p),N=(p.flags&128)!==0,O||N?(O=p.stateNode,_=N&&typeof _.getDerivedStateFromError!="function"?null:O.render(),p.flags|=1,h!==null&&N?(p.child=ph(p,h.child,null,P),p.child=ph(p,null,_,P)):aa(h,p,_,P),p.memoizedState=O.state,h=p.child):h=ac(h,p,P),h}function D5(h,p,_,N){return ch(),p.flags|=256,aa(h,p,_,N),p.child}var _E={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wE(h){return{baseLanes:h,cachePool:SI()}}function SE(h,p,_){return h=h!==null?h.childLanes&~_:0,p&&(h|=As),h}function O5(h,p,_){var N=p.pendingProps,P=!1,O=(p.flags&128)!==0,te;if((te=O)||(te=h!==null&&h.memoizedState===null?!1:(ni.current&2)!==0),te&&(P=!0,p.flags&=-129),te=(p.flags&32)!==0,p.flags&=-33,h===null){if(Rn){if(P?Mu(p):Nu(),(h=wr)?(h=HF(h,Zs),h=h!==null&&h.data!=="&"?h:null,h!==null&&(p.memoizedState={dehydrated:h,treeContext:xu!==null?{id:dl,overflow:hl}:null,retryLane:536870912,hydrationErrors:null},_=mI(h),_.return=p,p.child=_,ra=p,wr=null)):h=null,h===null)throw yu(p);return aA(h)?p.lanes=32:p.lanes=536870912,null}var me=N.children;return N=N.fallback,P?(Nu(),P=p.mode,me=pv({mode:"hidden",children:me},P),N=lh(N,P,_,null),me.return=p,N.return=p,me.sibling=N,p.child=me,N=p.child,N.memoizedState=wE(_),N.childLanes=SE(h,te,_),p.memoizedState=_E,_x(null,N)):(Mu(p),ME(p,me))}var Pe=h.memoizedState;if(Pe!==null&&(me=Pe.dehydrated,me!==null)){if(O)p.flags&256?(Mu(p),p.flags&=-257,p=NE(h,p,_)):p.memoizedState!==null?(Nu(),p.child=h.child,p.flags|=128,p=null):(Nu(),me=N.fallback,P=p.mode,N=pv({mode:"visible",children:N.children},P),me=lh(me,P,_,null),me.flags|=2,N.return=p,me.return=p,N.sibling=me,p.child=N,ph(p,h.child,null,_),N=p.child,N.memoizedState=wE(_),N.childLanes=SE(h,te,_),p.memoizedState=_E,p=_x(null,N));else if(Mu(p),aA(me)){if(te=me.nextSibling&&me.nextSibling.dataset,te)var rt=te.dgst;te=rt,N=Error(r(419)),N.stack="",N.digest=te,cx({value:N,source:null,stack:null}),p=NE(h,p,_)}else if(ci||om(h,p,_,!1),te=(_&h.childLanes)!==0,ci||te){if(te=fr,te!==null&&(N=$t(te,_),N!==0&&N!==Pe.retryLane))throw Pe.retryLane=N,oh(h,N),rs(te,h,N),yE;iA(me)||Mv(),p=NE(h,p,_)}else iA(me)?(p.flags|=192,p.child=h.child,p=null):(h=Pe.treeContext,wr=eo(me.nextSibling),ra=p,Rn=!0,bu=null,Zs=!1,h!==null&&xI(p,h),p=ME(p,N.children),p.flags|=4096);return p}return P?(Nu(),me=N.fallback,P=p.mode,Pe=h.child,rt=Pe.sibling,N=Jl(Pe,{mode:"hidden",children:N.children}),N.subtreeFlags=Pe.subtreeFlags&65011712,rt!==null?me=Jl(rt,me):(me=lh(me,P,_,null),me.flags|=2),me.return=p,N.return=p,N.sibling=me,p.child=N,_x(null,N),N=p.child,me=h.child.memoizedState,me===null?me=wE(_):(P=me.cachePool,P!==null?(Pe=oi._currentValue,P=P.parent!==Pe?{parent:Pe,pool:Pe}:P):P=SI(),me={baseLanes:me.baseLanes|_,cachePool:P}),N.memoizedState=me,N.childLanes=SE(h,te,_),p.memoizedState=_E,_x(h.child,N)):(Mu(p),_=h.child,h=_.sibling,_=Jl(_,{mode:"visible",children:N.children}),_.return=p,_.sibling=null,h!==null&&(te=p.deletions,te===null?(p.deletions=[h],p.flags|=16):te.push(h)),p.child=_,p.memoizedState=null,_)}function ME(h,p){return p=pv({mode:"visible",children:p},h.mode),p.return=h,h.child=p}function pv(h,p){return h=Ss(22,h,null,p),h.lanes=0,h}function NE(h,p,_){return ph(p,h.child,null,_),h=ME(p,p.pendingProps.children),h.flags|=2,p.memoizedState=null,h}function L5(h,p,_){h.lanes|=p;var N=h.alternate;N!==null&&(N.lanes|=p),zN(h.return,p,_)}function EE(h,p,_,N,P,O){var te=h.memoizedState;te===null?h.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:N,tail:_,tailMode:P,treeForkCount:O}:(te.isBackwards=p,te.rendering=null,te.renderingStartTime=0,te.last=N,te.tail=_,te.tailMode=P,te.treeForkCount=O)}function I5(h,p,_){var N=p.pendingProps,P=N.revealOrder,O=N.tail;N=N.children;var te=ni.current,me=(te&2)!==0;if(me?(te=te&1|2,p.flags|=128):te&=1,ee(ni,te),aa(h,p,N,_),N=Rn?lx:0,!me&&h!==null&&(h.flags&128)!==0)e:for(h=p.child;h!==null;){if(h.tag===13)h.memoizedState!==null&&L5(h,_,p);else if(h.tag===19)L5(h,_,p);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===p)break e;for(;h.sibling===null;){if(h.return===null||h.return===p)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}switch(P){case"forwards":for(_=p.child,P=null;_!==null;)h=_.alternate,h!==null&&rv(h)===null&&(P=_),_=_.sibling;_=P,_===null?(P=p.child,p.child=null):(P=_.sibling,_.sibling=null),EE(p,!1,P,_,O,N);break;case"backwards":case"unstable_legacy-backwards":for(_=null,P=p.child,p.child=null;P!==null;){if(h=P.alternate,h!==null&&rv(h)===null){p.child=P;break}h=P.sibling,P.sibling=_,_=P,P=h}EE(p,!0,_,null,O,N);break;case"together":EE(p,!1,null,null,void 0,N);break;default:p.memoizedState=null}return p.child}function ac(h,p,_){if(h!==null&&(p.dependencies=h.dependencies),Tu|=p.lanes,(_&p.childLanes)===0)if(h!==null){if(om(h,p,_,!1),(_&p.childLanes)===0)return null}else return null;if(h!==null&&p.child!==h.child)throw Error(r(153));if(p.child!==null){for(h=p.child,_=Jl(h,h.pendingProps),p.child=_,_.return=p;h.sibling!==null;)h=h.sibling,_=_.sibling=Jl(h,h.pendingProps),_.return=p;_.sibling=null}return p.child}function AE(h,p){return(h.lanes&p)!==0?!0:(h=h.dependencies,!!(h!==null&&Xy(h)))}function _ie(h,p,_){switch(p.tag){case 3:Ae(p,p.stateNode.containerInfo),vu(p,oi,h.memoizedState.cache),ch();break;case 27:case 5:we(p);break;case 4:Ae(p,p.stateNode.containerInfo);break;case 10:vu(p,p.type,p.memoizedProps.value);break;case 31:if(p.memoizedState!==null)return p.flags|=128,ZN(p),null;break;case 13:var N=p.memoizedState;if(N!==null)return N.dehydrated!==null?(Mu(p),p.flags|=128,null):(_&p.child.childLanes)!==0?O5(h,p,_):(Mu(p),h=ac(h,p,_),h!==null?h.sibling:null);Mu(p);break;case 19:var P=(h.flags&128)!==0;if(N=(_&p.childLanes)!==0,N||(om(h,p,_,!1),N=(_&p.childLanes)!==0),P){if(N)return I5(h,p,_);p.flags|=128}if(P=p.memoizedState,P!==null&&(P.rendering=null,P.tail=null,P.lastEffect=null),ee(ni,ni.current),N)break;return null;case 22:return p.lanes=0,C5(h,p,_,p.pendingProps);case 24:vu(p,oi,h.memoizedState.cache)}return ac(h,p,_)}function F5(h,p,_){if(h!==null)if(h.memoizedProps!==p.pendingProps)ci=!0;else{if(!AE(h,_)&&(p.flags&128)===0)return ci=!1,_ie(h,p,_);ci=(h.flags&131072)!==0}else ci=!1,Rn&&(p.flags&1048576)!==0&&gI(p,lx,p.index);switch(p.lanes=0,p.tag){case 16:e:{var N=p.pendingProps;if(h=fh(p.elementType),p.type=h,typeof h=="function")PN(h)?(N=xh(h,N),p.tag=1,p=R5(null,p,h,N,_)):(p.tag=0,p=vE(null,p,h,N,_));else{if(h!=null){var P=h.$$typeof;if(P===A){p.tag=11,p=E5(null,p,h,N,_);break e}else if(P===C){p.tag=14,p=A5(null,p,h,N,_);break e}}throw p=D(h)||h,Error(r(306,p,""))}}return p;case 0:return vE(h,p,p.type,p.pendingProps,_);case 1:return N=p.type,P=xh(N,p.pendingProps),R5(h,p,N,P,_);case 3:e:{if(Ae(p,p.stateNode.containerInfo),h===null)throw Error(r(387));N=p.pendingProps;var O=p.memoizedState;P=O.element,qN(h,p),gx(p,N,null,_);var te=p.memoizedState;if(N=te.cache,vu(p,oi,N),N!==O.cache&&BN(p,[oi],_,!0),px(),N=te.element,O.isDehydrated)if(O={element:N,isDehydrated:!1,cache:te.cache},p.updateQueue.baseState=O,p.memoizedState=O,p.flags&256){p=D5(h,p,N,_);break e}else if(N!==P){P=Xs(Error(r(424)),p),cx(P),p=D5(h,p,N,_);break e}else{switch(h=p.stateNode.containerInfo,h.nodeType){case 9:h=h.body;break;default:h=h.nodeName==="HTML"?h.ownerDocument.body:h}for(wr=eo(h.firstChild),ra=p,Rn=!0,bu=null,Zs=!0,_=CI(p,null,N,_),p.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling}else{if(ch(),N===P){p=ac(h,p,_);break e}aa(h,p,N,_)}p=p.child}return p;case 26:return mv(h,p),h===null?(_=XF(p.type,null,p.pendingProps,null))?p.memoizedState=_:Rn||(_=p.type,h=p.pendingProps,N=jv(he.current).createElement(_),N[hr]=p,N[yt]=h,sa(N,_,h),Le(N),p.stateNode=N):p.memoizedState=XF(p.type,h.memoizedProps,p.pendingProps,h.memoizedState),null;case 27:return we(p),h===null&&Rn&&(N=p.stateNode=WF(p.type,p.pendingProps,he.current),ra=p,Zs=!0,P=wr,Ru(p.type)?(sA=P,wr=eo(N.firstChild)):wr=P),aa(h,p,p.pendingProps.children,_),mv(h,p),h===null&&(p.flags|=4194304),p.child;case 5:return h===null&&Rn&&((P=N=wr)&&(N=Qie(N,p.type,p.pendingProps,Zs),N!==null?(p.stateNode=N,ra=p,wr=eo(N.firstChild),Zs=!1,P=!0):P=!1),P||yu(p)),we(p),P=p.type,O=p.pendingProps,te=h!==null?h.memoizedProps:null,N=O.children,tA(P,O)?N=null:te!==null&&tA(P,te)&&(p.flags|=32),p.memoizedState!==null&&(P=eE(h,p,hie,null,null,_),Lx._currentValue=P),mv(h,p),aa(h,p,N,_),p.child;case 6:return h===null&&Rn&&((h=_=wr)&&(_=Zie(_,p.pendingProps,Zs),_!==null?(p.stateNode=_,ra=p,wr=null,h=!0):h=!1),h||yu(p)),null;case 13:return O5(h,p,_);case 4:return Ae(p,p.stateNode.containerInfo),N=p.pendingProps,h===null?p.child=ph(p,null,N,_):aa(h,p,N,_),p.child;case 11:return E5(h,p,p.type,p.pendingProps,_);case 7:return aa(h,p,p.pendingProps,_),p.child;case 8:return aa(h,p,p.pendingProps.children,_),p.child;case 12:return aa(h,p,p.pendingProps.children,_),p.child;case 10:return N=p.pendingProps,vu(p,p.type,N.value),aa(h,p,N.children,_),p.child;case 9:return P=p.type._context,N=p.pendingProps.children,dh(p),P=ia(P),N=N(P),p.flags|=1,aa(h,p,N,_),p.child;case 14:return A5(h,p,p.type,p.pendingProps,_);case 15:return T5(h,p,p.type,p.pendingProps,_);case 19:return I5(h,p,_);case 31:return vie(h,p,_);case 22:return C5(h,p,_,p.pendingProps);case 24:return dh(p),N=ia(oi),h===null?(P=VN(),P===null&&(P=fr,O=$N(),P.pooledCache=O,O.refCount++,O!==null&&(P.pooledCacheLanes|=_),P=O),p.memoizedState={parent:N,cache:P},WN(p),vu(p,oi,P)):((h.lanes&_)!==0&&(qN(h,p),gx(p,null,null,_),px()),P=h.memoizedState,O=p.memoizedState,P.parent!==N?(P={parent:N,cache:N},p.memoizedState=P,p.lanes===0&&(p.memoizedState=p.updateQueue.baseState=P),vu(p,oi,N)):(N=O.cache,vu(p,oi,N),N!==P.cache&&BN(p,[oi],_,!0))),aa(h,p,p.pendingProps.children,_),p.child;case 29:throw p.pendingProps}throw Error(r(156,p.tag))}function sc(h){h.flags|=4}function TE(h,p,_,N,P){if((p=(h.mode&32)!==0)&&(p=!1),p){if(h.flags|=16777216,(P&335544128)===P)if(h.stateNode.complete)h.flags|=8192;else if(dF())h.flags|=8192;else throw mh=Jy,GN}else h.flags&=-16777217}function U5(h,p){if(p.type!=="stylesheet"||(p.state.loading&4)!==0)h.flags&=-16777217;else if(h.flags|=16777216,!eU(p))if(dF())h.flags|=8192;else throw mh=Jy,GN}function gv(h,p){p!==null&&(h.flags|=4),h.flags&16384&&(p=h.tag!==22?kt():536870912,h.lanes|=p,ym|=p)}function wx(h,p){if(!Rn)switch(h.tailMode){case"hidden":p=h.tail;for(var _=null;p!==null;)p.alternate!==null&&(_=p),p=p.sibling;_===null?h.tail=null:_.sibling=null;break;case"collapsed":_=h.tail;for(var N=null;_!==null;)_.alternate!==null&&(N=_),_=_.sibling;N===null?p||h.tail===null?h.tail=null:h.tail.sibling=null:N.sibling=null}}function Sr(h){var p=h.alternate!==null&&h.alternate.child===h.child,_=0,N=0;if(p)for(var P=h.child;P!==null;)_|=P.lanes|P.childLanes,N|=P.subtreeFlags&65011712,N|=P.flags&65011712,P.return=h,P=P.sibling;else for(P=h.child;P!==null;)_|=P.lanes|P.childLanes,N|=P.subtreeFlags,N|=P.flags,P.return=h,P=P.sibling;return h.subtreeFlags|=N,h.childLanes=_,p}function wie(h,p,_){var N=p.pendingProps;switch(LN(p),p.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Sr(p),null;case 1:return Sr(p),null;case 3:return _=p.stateNode,N=null,h!==null&&(N=h.memoizedState.cache),p.memoizedState.cache!==N&&(p.flags|=2048),nc(oi),pe(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(h===null||h.child===null)&&(sm(p)?sc(p):h===null||h.memoizedState.isDehydrated&&(p.flags&256)===0||(p.flags|=1024,FN())),Sr(p),null;case 26:var P=p.type,O=p.memoizedState;return h===null?(sc(p),O!==null?(Sr(p),U5(p,O)):(Sr(p),TE(p,P,null,N,_))):O?O!==h.memoizedState?(sc(p),Sr(p),U5(p,O)):(Sr(p),p.flags&=-16777217):(h=h.memoizedProps,h!==N&&sc(p),Sr(p),TE(p,P,h,N,_)),null;case 27:if(je(p),_=he.current,P=p.type,h!==null&&p.stateNode!=null)h.memoizedProps!==N&&sc(p);else{if(!N){if(p.stateNode===null)throw Error(r(166));return Sr(p),null}h=re.current,sm(p)?bI(p):(h=WF(P,N,_),p.stateNode=h,sc(p))}return Sr(p),null;case 5:if(je(p),P=p.type,h!==null&&p.stateNode!=null)h.memoizedProps!==N&&sc(p);else{if(!N){if(p.stateNode===null)throw Error(r(166));return Sr(p),null}if(O=re.current,sm(p))bI(p);else{var te=jv(he.current);switch(O){case 1:O=te.createElementNS("http://www.w3.org/2000/svg",P);break;case 2:O=te.createElementNS("http://www.w3.org/1998/Math/MathML",P);break;default:switch(P){case"svg":O=te.createElementNS("http://www.w3.org/2000/svg",P);break;case"math":O=te.createElementNS("http://www.w3.org/1998/Math/MathML",P);break;case"script":O=te.createElement("div"),O.innerHTML=" +