diff --git a/docs/public/editor/assets/index-ujPtjeWw.js b/docs/public/editor/assets/index-Y13mpmrx.js similarity index 68% rename from docs/public/editor/assets/index-ujPtjeWw.js rename to docs/public/editor/assets/index-Y13mpmrx.js index e88b16173..003d08164 100644 --- a/docs/public/editor/assets/index-ujPtjeWw.js +++ b/docs/public/editor/assets/index-Y13mpmrx.js @@ -1,4 +1,4 @@ -function fA(e,t){for(var n=0;no[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();var cx={};const pA=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function hA(e){!("serviceWorker"in navigator)||new URL(cx.PUBLIC_URL,window.location.href).origin!==window.location.origin||window.addEventListener("load",()=>{const n=`${cx.PUBLIC_URL}/service-worker.js`;pA?(mA(n,e),navigator.serviceWorker.ready.then(()=>{})):PC(n,e)})}function mA(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const o=n.headers.get("content-type");n.status===404||o!=null&&o.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(r=>r.unregister().then(()=>window.location.reload())):PC(e,t)}).catch(()=>console.log("No internet connection found. App is running in offline mode."))}function PC(e,t){navigator.serviceWorker.register(e).then(n=>{n.onupdatefound=()=>{const o=n.installing;o!=null&&(o.onstatechange=()=>{o.state==="installed"&&(navigator.serviceWorker.controller?(console.log("Update is available; restart the app to install."),t&&t.onUpdate&&t.onUpdate(n)):t&&t.onSuccess&&t.onSuccess(n))})}}).catch(n=>console.error("Error during service worker registration: ",n))}const gA="modulepreload",yA=function(e){return"/editor/"+e},ux={},Qb=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link");r=Promise.all(n.map(s=>{if(s=yA(s),s in ux)return;ux[s]=!0;const a=s.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!o)for(let d=i.length-1;d>=0;d--){const m=i[d];if(m.href===s&&(!a||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":gA,a||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),a)return new Promise((d,m)=>{u.addEventListener("load",d),u.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${s}`)))})}))}return r.then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})};async function ew(e){return e==null?await Promise.resolve().then(function(){return GC}):await Qb(()=>import(`${e}/dotnet.js`),__vite__mapDeps([]))}async function BC(e){return e==null?await Promise.resolve().then(function(){return BA}):await Qb(()=>import(`${e}/dotnet.native.js`),__vite__mapDeps([]))}async function $C(e){return e==null?await Promise.resolve().then(function(){return HA}):await Qb(()=>import(`${e}/dotnet.runtime.js`),__vite__mapDeps([]))}var vA={wasm:{name:"dotnet.native.wasm",content:void 0},assemblies:[{name:"Bootsharp.Common.wasm",content:void 0},{name:"Bootsharp.FileSystem.wasm",content:void 0},{name:"Bootsharp.Inject.wasm",content:void 0},{name:"Humanizer.wasm",content:void 0},{name:"Microsoft.Extensions.DependencyInjection.Abstractions.wasm",content:void 0},{name:"Microsoft.Extensions.DependencyInjection.wasm",content:void 0},{name:"Naninovel.Common.Bindings.wasm",content:void 0},{name:"Naninovel.Common.Modern.wasm",content:void 0},{name:"Naninovel.Common.wasm",content:void 0},{name:"Naninovel.Editor.wasm",content:void 0},{name:"Naninovel.Editor.WASM.wasm",content:void 0},{name:"System.Collections.Concurrent.wasm",content:void 0},{name:"System.Collections.wasm",content:void 0},{name:"System.ComponentModel.wasm",content:void 0},{name:"System.Linq.wasm",content:void 0},{name:"System.Memory.wasm",content:void 0},{name:"System.Net.Http.wasm",content:void 0},{name:"System.Net.WebSockets.Client.wasm",content:void 0},{name:"System.Net.WebSockets.wasm",content:void 0},{name:"System.Private.CoreLib.wasm",content:void 0},{name:"System.Private.Uri.wasm",content:void 0},{name:"System.Runtime.InteropServices.JavaScript.wasm",content:void 0},{name:"System.Text.Encodings.Web.wasm",content:void 0},{name:"System.Text.Json.wasm",content:void 0},{name:"System.Text.RegularExpressions.wasm",content:void 0}],entryAssemblyName:"Naninovel.Editor.WASM.dll"};const FC=vA,Ai=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,62,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,0,0,0,63,0,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]);function bA(e){if(typeof window=="object")return Uint8Array.from(window.atob(e),l=>l.charCodeAt(0));if(typeof Buffer=="function")return Buffer.from(e,"base64");const t=e.length,n=e[t-2]==="="?2:e[t-1]==="="?1:0,o=t-n&4294967292;let r,i=0,s=0;const a=[];for(;i>16&255,a[s++]=r>>8&255,a[s++]=r&255;return n===1&&(r=Ai[e.charCodeAt(i)]<<10|Ai[e.charCodeAt(i+1)]<<4|Ai[e.charCodeAt(i+2)]>>2,a[s++]=r>>8&255,a[s++]=r&255),n===2&&(r=Ai[e.charCodeAt(i)]<<2|Ai[e.charCodeAt(i+1)]>>4,a[s++]=r&255),new Uint8Array(a)}async function HC(e,t){const n=t==null,o=n?await ew():void 0,r=n?await BC():void 0,i=n?await $C():void 0,s=!n&&(await Promise.resolve().then(function(){return GC})).mt;return{mainAssemblyName:e.entryAssemblyName,assets:[a({name:"dotnet.js"},"js-module-dotnet",o,!1),a({name:"dotnet.native.js"},"js-module-native",r,!1),a({name:"dotnet.runtime.js"},"js-module-runtime",i,!1),a({name:"dotnet.native.worker.js"},"js-module-threads",void 0,!0),a(e.wasm,"dotnetwasm",void 0,!1),...e.assemblies.map(l=>a(l,"assembly"))]};function a(l,c,u,d){const m=`${t}/${l.name}`;return{name:!s||l.content||c==="assembly"?l.name:m,resolvedUrl:l.content||!t?void 0:m,buffer:typeof l.content=="string"?bA(l.content):l.content,moduleExports:u,isOptional:d,behavior:c}}}let Nh;async function wA(e,t){Nh=(await e.getAssemblyExports(t)).Bootsharp?.Generated.Interop}let Ge=class{handlers=new Map;warn;lastArgs;constructor(t){this.warn=t?.warn??console.warn}broadcast(...t){this.lastArgs=t;for(const n of this.handlers.values())n(...this.lastArgs)}subscribe(t){const n=this.getOrDefineId(t);return this.subscribeById(n,t),n}unsubscribe(t){if(t==null)return;const n=this.getOrDefineId(t);this.unsubscribeById(n)}subscribeById(t,n){this.handlers.has(t)?this.warn(`Failed to subscribe event handler with ID '${t}': handler is already subscribed.`):this.handlers.set(t,n)}unsubscribeById(t){this.handlers.has(t)?this.handlers.delete(t):this.warn(`Failed to unsubscribe event handler with ID '${t}': handler is not subscribed.`)}get last(){return this.lastArgs}getOrDefineId(t){const n="bootsharpEventHandlerId";if(t.hasOwnProperty(n))return t[n];const o=crypto.randomUUID();return Object.defineProperty(t,n,{value:o,enumerable:!1,writable:!1}),o}};const _A=new FinalizationRegistry(EA),tw=new Map,Dv=new Array;let xA=-2147483648;function SA(e){const t=Dv.length>0?Dv.shift():xA++;return tw.set(t,e),t}function Ca(e){return tw.get(e)}function TA(e){tw.delete(e),Dv.push(e)}function VC(e,t){_A.register(e,t)}function EA(e){Nh.DisposeExportedInstance(e)}function re(){if(Nh==null)throw Error("Boot the runtime before invoking C# APIs.");return Nh}function xt(e){return JSON.stringify(e)}function Mt(e){const t=JSON.parse(e);if(t!==null)return t}class CA{constructor(t){this._id=t,VC(this,t)}handleFileChanges(t){return jC.handleFileChanges(this._id,t)}}const Fl={onChanged:new Ge,onChangedSerialized:e=>Fl.onChanged.broadcast(Mt(e)),openFolder:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_AssetBrowser_JSAssetBrowser_OpenFolder(e),closeFolder:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_AssetBrowser_JSAssetBrowser_CloseFolder(e),openFile:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_AssetBrowser_JSAssetBrowser_OpenFile(e)},kA={connectToServerInLoop:e=>re().Naninovel_Bindings_Bridging_Bridging_ConnectToServerInLoop(e),breakConnectionLoop:()=>re().Naninovel_Bindings_Bridging_Bridging_BreakConnectionLoop(),requestGoto:(e,t)=>re().Naninovel_Bindings_Bridging_Bridging_RequestGoto(e,t),get onMetadataUpdated(){return this.onMetadataUpdatedHandler},set onMetadataUpdated(e){this.onMetadataUpdatedHandler=e,this.onMetadataUpdatedSerializedHandler=t=>this.onMetadataUpdatedHandler(Mt(t))},get onMetadataUpdatedSerialized(){if(typeof this.onMetadataUpdatedHandler!="function")throw Error("Failed to invoke 'Bridging.onMetadataUpdated' from C#. Make sure to assign function in JavaScript.");return this.onMetadataUpdatedSerializedHandler},get onPlaybackStatusUpdated(){return this.onPlaybackStatusUpdatedHandler},set onPlaybackStatusUpdated(e){this.onPlaybackStatusUpdatedHandler=e,this.onPlaybackStatusUpdatedSerializedHandler=t=>this.onPlaybackStatusUpdatedHandler(Mt(t))},get onPlaybackStatusUpdatedSerialized(){if(typeof this.onPlaybackStatusUpdatedHandler!="function")throw Error("Failed to invoke 'Bridging.onPlaybackStatusUpdated' from C#. Make sure to assign function in JavaScript.");return this.onPlaybackStatusUpdatedSerializedHandler}},Ne={onProjectTitleChanged:new Ge,onProjectTitleChangedSerialized:e=>Ne.onProjectTitleChanged.broadcast(e),onRecentProjectsChanged:new Ge,onRecentProjectsChangedSerialized:e=>Ne.onRecentProjectsChanged.broadcast(Mt(e)),onUserChanged:new Ge,onUserChangedSerialized:e=>Ne.onUserChanged.broadcast(e),onUndoChanged:new Ge,onUndoChangedSerialized:()=>Ne.onUndoChanged.broadcast(),onDirtyChanged:new Ge,onDirtyChangedSerialized:e=>Ne.onDirtyChanged.broadcast(Mt(e)),onBridgingChanged:new Ge,onBridgingChangedSerialized:e=>Ne.onBridgingChanged.broadcast(e),onMetadataChanged:new Ge,onMetadataChangedSerialized:e=>Ne.onMetadataChanged.broadcast(e),openProject:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_OpenProject(),openRecentProject:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_OpenRecentProject(e),renameProject:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_RenameProject(e),canUndo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_CanUndo(),canRedo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_CanRedo(),undo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Undo(),redo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Redo(),undoAt:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_UndoAt(e),redoAt:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_RedoAt(e),getUndoLength:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_GetUndoLength(),viewUndo:e=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_ViewUndo(e)),saveDirty:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_SaveDirty(e),saveAllDirty:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_SaveAllDirty(),findServers:async()=>Mt(await re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_FindServers()),connect:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Connect(e),disconnect:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Disconnect(),applyDefaultMetadata:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_ApplyDefaultMetadata(),hasCachedMetadata:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_HasCachedMetadata(),deleteCachedMetadata:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_DeleteCachedMetadata()},wr={setDefaultMetadata:e=>re().Naninovel_Editor_WASM_Editor_SetDefaultMetadata(xt(e)),notifyWindowBlurred:()=>re().Naninovel_Editor_WASM_Editor_NotifyWindowBlurred(),hasUnsavedAssets:()=>re().Naninovel_Editor_WASM_Editor_HasUnsavedAssets(),UndoContext:{0:"Modify",1:"Add",2:"Delete",Modify:0,Add:1,Delete:2},ConfigurationScope:{0:"User",1:"Project",User:0,Project:1}},UC={get pickRoot(){return this.pickRootHandler},set pickRoot(e){this.pickRootHandler=e,this.pickRootSerializedHandler=async t=>await this.pickRootHandler(Mt(t))},get pickRootSerialized(){if(typeof this.pickRootHandler!="function")throw Error("Failed to invoke 'FileMounter.pickRoot' from C#. Make sure to assign function in JavaScript.");return this.pickRootSerializedHandler},get mount(){return this.mountHandler},set mount(e){this.mountHandler=e,this.mountSerializedHandler=async(t,n,o)=>SA(await this.mountHandler(t,new CA(n),Mt(o)))},get mountSerialized(){if(typeof this.mountHandler!="function")throw Error("Failed to invoke 'FileMounter.mount' from C#. Make sure to assign function in JavaScript.");return this.mountSerializedHandler},get unmount(){return this.unmountHandler},set unmount(e){this.unmountHandler=e,this.unmountSerializedHandler=t=>this.unmountHandler(t)},get unmountSerialized(){if(typeof this.unmountHandler!="function")throw Error("Failed to invoke 'FileMounter.unmount' from C#. Make sure to assign function in JavaScript.");return this.unmountSerializedHandler}},LA={createDirectorySerialized:(e,t)=>Ca(e).createDirectory(t),removeDirectorySerialized:(e,t)=>Ca(e).removeDirectory(t),writeFileSerialized:(e,t,n)=>Ca(e).writeFile(t,n),deleteFileSerialized:(e,t)=>Ca(e).deleteFile(t),openFileSerialized:(e,t)=>Ca(e).openFile(t),getOpenFileContentSerialized:(e,t)=>Ca(e).getOpenFileContent(t),getFileInfoSerialized:async(e,t)=>xt(await Ca(e).getFileInfo(t)),PermissionMode:{0:"Read",1:"ReadWrite",Read:0,ReadWrite:1},FileChangeType:{0:"FileAdded",1:"FileRemoved",2:"FileModified",3:"DirectoryAdded",4:"DirectoryRemoved",FileAdded:0,FileRemoved:1,FileModified:2,DirectoryAdded:3,DirectoryRemoved:4}},jC={handleFileChanges:async(e,t)=>await re().Bootsharp_Generated_Exports_Bootsharp_FileSystem_JSFileWatcher_HandleFileChanges(e,xt(t))},WC={get logInfo(){return this.logInfoHandler},set logInfo(e){this.logInfoHandler=e,this.logInfoSerializedHandler=t=>this.logInfoHandler(t)},get logInfoSerialized(){if(typeof this.logInfoHandler!="function")throw Error("Failed to invoke 'JSLogger.logInfo' from C#. Make sure to assign function in JavaScript.");return this.logInfoSerializedHandler},get logWarning(){return this.logWarningHandler},set logWarning(e){this.logWarningHandler=e,this.logWarningSerializedHandler=t=>this.logWarningHandler(t)},get logWarningSerialized(){if(typeof this.logWarningHandler!="function")throw Error("Failed to invoke 'JSLogger.logWarning' from C#. Make sure to assign function in JavaScript.");return this.logWarningSerializedHandler},get logError(){return this.logErrorHandler},set logError(e){this.logErrorHandler=e,this.logErrorSerializedHandler=t=>this.logErrorHandler(t)},get logErrorSerialized(){if(typeof this.logErrorHandler!="function")throw Error("Failed to invoke 'JSLogger.logError' from C#. Make sure to assign function in JavaScript.");return this.logErrorSerializedHandler}},Hs={onUserAuthorized:new Ge,onUserAuthorizedSerialized:e=>Hs.onUserAuthorized.broadcast(e),getLastUser:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_GetLastUser(),authorizeUser:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_AuthorizeUser(),authorizeLastUser:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_AuthorizeLastUser(),logout:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_Logout()},Bi={ValueContainerType:{0:"Single",1:"List",2:"Named",3:"NamedList",Single:0,List:1,Named:2,NamedList:3},ValueType:{0:"String",1:"Integer",2:"Decimal",3:"Boolean",String:0,Integer:1,Decimal:2,Boolean:3},ValueContextType:{0:"Expression",1:"Constant",2:"Resource",3:"Actor",4:"Appearance",5:"Color",6:"Vector",Expression:0,Constant:1,Resource:2,Actor:3,Appearance:4,Color:5,Vector:6}},qC={get mergeMetadata(){return this.mergeMetadataHandler},set mergeMetadata(e){this.mergeMetadataHandler=e,this.mergeMetadataSerializedHandler=t=>xt(this.mergeMetadataHandler(Mt(t)))},get mergeMetadataSerialized(){if(typeof this.mergeMetadataHandler!="function")throw Error("Failed to invoke 'MetadataMerger.mergeMetadata' from C#. Make sure to assign function in JavaScript.");return this.mergeMetadataSerializedHandler}},Ga={LineType:{0:"Comment",1:"Label",2:"Command",3:"Generic",Comment:0,Label:1,Command:2,Generic:3}},tl={onProgressChanged:new Ge,onProgressChangedSerialized:e=>tl.onProgressChanged.broadcast(Mt(e)),onProgressCleared:new Ge,onProgressClearedSerialized:e=>tl.onProgressCleared.broadcast(e)},ze={onScriptChanged:new Ge,onScriptChangedSerialized:e=>ze.onScriptChanged.broadcast(e),onLineFocused:new Ge,onLineFocusedSerialized:(e,t)=>ze.onLineFocused.broadcast(e,t),onCommandOptionsChanged:new Ge,onCommandOptionsChangedSerialized:e=>ze.onCommandOptionsChanged.broadcast(Mt(e)),isScriptTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_IsScriptTab(e),getScriptIdFromTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_GetScriptIdFromTab(e),buildTabIdFromScript:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_BuildTabIdFromScript(e),goto:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_Goto(e,t),isScriptLoaded:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_IsScriptLoaded(e),loadScript:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_LoadScript(e),viewScript:e=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewScript(e)),getLineType:(e,t)=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_GetLineType(e,t)),previewLine:(e,t)=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_PreviewLine(e,t)),viewComment:(e,t)=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewComment(e,t)),viewLabel:(e,t)=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewLabel(e,t)),viewCommand:(e,t)=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewCommand(e,t)),viewGeneric:(e,t)=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewGeneric(e,t)),insertLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_InsertLine(e,xt(t)),duplicateLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_DuplicateLine(e,xt(t)),removeLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_RemoveLine(e,xt(t)),moveLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_MoveLine(e,xt(t)),moveContent:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_MoveContent(e,xt(t)),changeLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ChangeLine(e,xt(t)),editComment:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditComment(e,xt(t)),editLabel:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditLabel(e,xt(t)),editParameter:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditParameter(e,xt(t)),inlineCommand:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_InlineCommand(e,xt(t)),removeInlined:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_RemoveInlined(e,xt(t)),editText:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditText(e,xt(t)),editAuthor:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditAuthor(e,xt(t)),editAppearance:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditAppearance(e,xt(t)),saveEdits:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_SaveEdits(e)},qp={get read(){return this.readHandler},set read(e){this.readHandler=e,this.readSerializedHandler=t=>this.readHandler(t)},get readSerialized(){if(typeof this.readHandler!="function")throw Error("Failed to invoke 'SessionStorage.read' from C#. Make sure to assign function in JavaScript.");return this.readSerializedHandler},get write(){return this.writeHandler},set write(e){this.writeHandler=e,this.writeSerializedHandler=(t,n)=>this.writeHandler(t,n)},get writeSerialized(){if(typeof this.writeHandler!="function")throw Error("Failed to invoke 'SessionStorage.write' from C#. Make sure to assign function in JavaScript.");return this.writeSerializedHandler},get remove(){return this.removeHandler},set remove(e){this.removeHandler=e,this.removeSerializedHandler=t=>this.removeHandler(t)},get removeSerialized(){if(typeof this.removeHandler!="function")throw Error("Failed to invoke 'SessionStorage.remove' from C#. Make sure to assign function in JavaScript.");return this.removeSerializedHandler}},ie={onChanged:new Ge,onChangedSerialized:e=>ie.onChanged.broadcast(e),openEditor:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_OpenEditor(),viewCategories:()=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_ViewCategories()),viewProperty:e=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_ViewProperty(xt(e))),getValueJson:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_GetValueJson(xt(e)),edit:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_Edit(xt(e),t),reset:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_Reset(xt(e)),saveModified:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_SaveModified(),registerExternal:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_RegisterExternal(xt(e)),ValueType:{0:"String",1:"Integer",2:"Decimal",3:"Boolean",4:"Other",String:0,Integer:1,Decimal:2,Boolean:3,Other:4},ContainerType:{0:"Single",1:"Array",Single:0,Array:1}},ct={onTabAdded:new Ge,onTabAddedSerialized:(e,t)=>ct.onTabAdded.broadcast(Mt(e),t),onTabSelected:new Ge,onTabSelectedSerialized:e=>ct.onTabSelected.broadcast(e),onTabRenamed:new Ge,onTabRenamedSerialized:(e,t,n)=>ct.onTabRenamed.broadcast(e,t,n),onTabRemoved:new Ge,onTabRemovedSerialized:e=>ct.onTabRemoved.broadcast(e),get getDefaultLayouts(){return this.getDefaultLayoutsHandler},set getDefaultLayouts(e){this.getDefaultLayoutsHandler=e,this.getDefaultLayoutsSerializedHandler=()=>xt(this.getDefaultLayoutsHandler())},get getDefaultLayoutsSerialized(){if(typeof this.getDefaultLayoutsHandler!="function")throw Error("Failed to invoke 'Workspace.getDefaultLayouts' from C#. Make sure to assign function in JavaScript.");return this.getDefaultLayoutsSerializedHandler},get getDefaultSetForTab(){return this.getDefaultSetForTabHandler},set getDefaultSetForTab(e){this.getDefaultSetForTabHandler=e,this.getDefaultSetForTabSerializedHandler=t=>this.getDefaultSetForTabHandler(t)},get getDefaultSetForTabSerialized(){if(typeof this.getDefaultSetForTabHandler!="function")throw Error("Failed to invoke 'Workspace.getDefaultSetForTab' from C#. Make sure to assign function in JavaScript.");return this.getDefaultSetForTabSerializedHandler},get getCurrentScheme(){return this.getCurrentSchemeHandler},set getCurrentScheme(e){this.getCurrentSchemeHandler=e,this.getCurrentSchemeSerializedHandler=()=>this.getCurrentSchemeHandler()},get getCurrentSchemeSerialized(){if(typeof this.getCurrentSchemeHandler!="function")throw Error("Failed to invoke 'Workspace.getCurrentScheme' from C#. Make sure to assign function in JavaScript.");return this.getCurrentSchemeSerializedHandler},onAvailableLayoutsChanged:new Ge,onAvailableLayoutsChangedSerialized:e=>ct.onAvailableLayoutsChanged.broadcast(Mt(e)),onSelectedLayoutChanged:new Ge,onSelectedLayoutChangedSerialized:e=>ct.onSelectedLayoutChanged.broadcast(e),onSchemeChanged:new Ge,onSchemeChangedSerialized:e=>ct.onSchemeChanged.broadcast(e),onLayoutCleared:new Ge,onLayoutClearedSerialized:()=>ct.onLayoutCleared.broadcast(),openTab:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_OpenTab(xt(e),xt(t)),editTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_EditTab(xt(e)),moveTab:(e,t,n)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_MoveTab(e,t,n),focusTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_FocusTab(e),closeTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_CloseTab(e),isTabOpen:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_IsTabOpen(e),getOpenTabs:()=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_GetOpenTabs()),saveCurrentLayout:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_SaveCurrentLayout(e),applyLayout:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_ApplyLayout(e),deleteLayout:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_DeleteLayout(e),TabContext:{0:"User",1:"Project",User:0,Project:1}};var IA=Object.freeze({__proto__:null,AssetBrowser:Fl,Bridging:kA,ControlPanel:Ne,Editor:wr,FileMounter:UC,FileSystem:LA,FileWatcher:jC,JSLogger:WC,LoginScreen:Hs,Metadata:Bi,MetadataMerger:qC,Parsing:Ga,ProgressObserver:tl,ScenarioEditor:ze,SessionStorage:qp,Settings:ie,Workspace:ct});function RA(e){e.setModuleImports("Bootsharp",{...IA,disposeInstance:TA,disposeOnFinalize:VC})}var vi;(function(e){e[e.Standby=0]="Standby",e[e.Booting=1]="Booting",e[e.Booted=2]="Booted"})(vi||(vi={}));let za=vi.Standby,zv;function NA(){return za}async function OA(e){if(za===vi.Booted)throw Error("Failed to boot .NET runtime: already booted.");if(za===vi.Booting)throw Error("Failed to boot .NET runtime: already booting.");za=vi.Booting,zv=await ew(e?.root);const t=e?.config??await HC(e?.resources??FC,e?.root),n=await e?.create?.(t)||await zv.dotnet.withConfig(t).create();return n.Module.runtimeKeepalivePush(),await e?.import?.(n)||RA(n),await e?.run?.(n)||await n.runMain(t.mainAssemblyName,[]),await e?.export?.(n)||await wA(n,t.mainAssemblyName),za=vi.Booted,n}async function AA(e,t){if(za!==vi.Booted)throw Error("Failed to exit .NET runtime: not booted.");zv.exit(e??0,t),za=vi.Standby}var nl={boot:OA,exit:AA,getStatus:NA,BootStatus:vi,resources:FC,dotnet:{getMain:ew,getNative:BC,getRuntime:$C,buildConfig:HC}};const MA=!1,DA=!1;var GC=Object.freeze({__proto__:null,embedded:MA,mt:DA});const zA=!1,PA=!1;var BA=Object.freeze({__proto__:null,embedded:zA,mt:PA});const $A=!1,FA=!1;var HA=Object.freeze({__proto__:null,embedded:$A,mt:FA}),VA=Object.getOwnPropertyNames,UA=(e,t)=>function(){return t||(0,e[VA(e)[0]])((t={exports:{}}).exports,t),t.exports},jA=UA({"assets/default-metadata.json"(e,t){t.exports={actors:[],commands:[{id:"AnimateActor",alias:"animate",localizable:!1,summary:"Animate properties of the actors with the specified IDs via key frames. Key frames for the animated parameters are delimited with commas.",remarks:"It's not recommended to use this command for complex animations. Naniscript is a scenario scripting DSL and not suited for complex automation or specification such as animation. Consider using dedicated animation tools instead, such as Unity's [Animator](https://docs.unity3d.com/Manual/AnimationSection.html).

Be aware, that this command searches for actors with the provided IDs over all the actor managers, and in case multiple actors with the same ID exist (eg, a character and a text printer), this will affect only the first found one.

When running the animate commands in parallel (`wait` is set to false) the affected actors state can mutate unpredictably. This could cause unexpected results when rolling back or performing other commands that affect state of the actor. Make sure to reset affected properties of the animated actors (position, tint, appearance, etc) after the command finishes or use `@animate CharacterId` (without any args) to stop the animation prematurely.",examples:`; Animate \`Kohaku\` actor over three animation steps (key frames), +function dA(e,t){for(var n=0;no[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();const fA=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function pA(e){"serviceWorker"in navigator&&window.addEventListener("load",()=>{const t="/editor/service-worker.js";fA?(hA(t,e),navigator.serviceWorker.ready.then(()=>{})):zC(t,e)})}function hA(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const o=n.headers.get("content-type");n.status===404||o!=null&&o.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(r=>r.unregister().then(()=>window.location.reload())):zC(e,t)}).catch(()=>console.log("No internet connection found. App is running in offline mode."))}function zC(e,t){navigator.serviceWorker.register(e).then(n=>{n.onupdatefound=()=>{const o=n.installing;o!=null&&(o.onstatechange=()=>{o.state==="installed"&&(navigator.serviceWorker.controller?(console.log("Update is available; restart the app to install."),t&&t.onUpdate&&t.onUpdate(n)):t&&t.onSuccess&&t.onSuccess(n))})}}).catch(n=>console.error("Error during service worker registration: ",n))}const mA="modulepreload",gA=function(e){return"/editor/"+e},cx={},Qb=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link");r=Promise.all(n.map(s=>{if(s=gA(s),s in cx)return;cx[s]=!0;const a=s.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!o)for(let d=i.length-1;d>=0;d--){const m=i[d];if(m.href===s&&(!a||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":mA,a||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),a)return new Promise((d,m)=>{u.addEventListener("load",d),u.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${s}`)))})}))}return r.then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})};async function ew(e){return e==null?await Promise.resolve().then(function(){return qC}):await Qb(()=>import(`${e}/dotnet.js`),__vite__mapDeps([]))}async function PC(e){return e==null?await Promise.resolve().then(function(){return PA}):await Qb(()=>import(`${e}/dotnet.native.js`),__vite__mapDeps([]))}async function BC(e){return e==null?await Promise.resolve().then(function(){return FA}):await Qb(()=>import(`${e}/dotnet.runtime.js`),__vite__mapDeps([]))}var yA={wasm:{name:"dotnet.native.wasm",content:void 0},assemblies:[{name:"Bootsharp.Common.wasm",content:void 0},{name:"Bootsharp.FileSystem.wasm",content:void 0},{name:"Bootsharp.Inject.wasm",content:void 0},{name:"Humanizer.wasm",content:void 0},{name:"Microsoft.Extensions.DependencyInjection.Abstractions.wasm",content:void 0},{name:"Microsoft.Extensions.DependencyInjection.wasm",content:void 0},{name:"Naninovel.Common.Bindings.wasm",content:void 0},{name:"Naninovel.Common.Modern.wasm",content:void 0},{name:"Naninovel.Common.wasm",content:void 0},{name:"Naninovel.Editor.wasm",content:void 0},{name:"Naninovel.Editor.WASM.wasm",content:void 0},{name:"System.Collections.Concurrent.wasm",content:void 0},{name:"System.Collections.wasm",content:void 0},{name:"System.ComponentModel.wasm",content:void 0},{name:"System.Linq.wasm",content:void 0},{name:"System.Memory.wasm",content:void 0},{name:"System.Net.Http.wasm",content:void 0},{name:"System.Net.WebSockets.Client.wasm",content:void 0},{name:"System.Net.WebSockets.wasm",content:void 0},{name:"System.Private.CoreLib.wasm",content:void 0},{name:"System.Private.Uri.wasm",content:void 0},{name:"System.Runtime.InteropServices.JavaScript.wasm",content:void 0},{name:"System.Text.Encodings.Web.wasm",content:void 0},{name:"System.Text.Json.wasm",content:void 0},{name:"System.Text.RegularExpressions.wasm",content:void 0}],entryAssemblyName:"Naninovel.Editor.WASM.dll"};const $C=yA,Ai=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,62,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,0,0,0,63,0,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]);function vA(e){if(typeof window=="object")return Uint8Array.from(window.atob(e),l=>l.charCodeAt(0));if(typeof Buffer=="function")return Buffer.from(e,"base64");const t=e.length,n=e[t-2]==="="?2:e[t-1]==="="?1:0,o=t-n&4294967292;let r,i=0,s=0;const a=[];for(;i>16&255,a[s++]=r>>8&255,a[s++]=r&255;return n===1&&(r=Ai[e.charCodeAt(i)]<<10|Ai[e.charCodeAt(i+1)]<<4|Ai[e.charCodeAt(i+2)]>>2,a[s++]=r>>8&255,a[s++]=r&255),n===2&&(r=Ai[e.charCodeAt(i)]<<2|Ai[e.charCodeAt(i+1)]>>4,a[s++]=r&255),new Uint8Array(a)}async function FC(e,t){const n=t==null,o=n?await ew():void 0,r=n?await PC():void 0,i=n?await BC():void 0,s=!n&&(await Promise.resolve().then(function(){return qC})).mt;return{mainAssemblyName:e.entryAssemblyName,assets:[a({name:"dotnet.js"},"js-module-dotnet",o,!1),a({name:"dotnet.native.js"},"js-module-native",r,!1),a({name:"dotnet.runtime.js"},"js-module-runtime",i,!1),a({name:"dotnet.native.worker.js"},"js-module-threads",void 0,!0),a(e.wasm,"dotnetwasm",void 0,!1),...e.assemblies.map(l=>a(l,"assembly"))]};function a(l,c,u,d){const m=`${t}/${l.name}`;return{name:!s||l.content||c==="assembly"?l.name:m,resolvedUrl:l.content||!t?void 0:m,buffer:typeof l.content=="string"?vA(l.content):l.content,moduleExports:u,isOptional:d,behavior:c}}}let Nh;async function bA(e,t){Nh=(await e.getAssemblyExports(t)).Bootsharp?.Generated.Interop}let Ge=class{handlers=new Map;warn;lastArgs;constructor(t){this.warn=t?.warn??console.warn}broadcast(...t){this.lastArgs=t;for(const n of this.handlers.values())n(...this.lastArgs)}subscribe(t){const n=this.getOrDefineId(t);return this.subscribeById(n,t),n}unsubscribe(t){if(t==null)return;const n=this.getOrDefineId(t);this.unsubscribeById(n)}subscribeById(t,n){this.handlers.has(t)?this.warn(`Failed to subscribe event handler with ID '${t}': handler is already subscribed.`):this.handlers.set(t,n)}unsubscribeById(t){this.handlers.has(t)?this.handlers.delete(t):this.warn(`Failed to unsubscribe event handler with ID '${t}': handler is not subscribed.`)}get last(){return this.lastArgs}getOrDefineId(t){const n="bootsharpEventHandlerId";if(t.hasOwnProperty(n))return t[n];const o=crypto.randomUUID();return Object.defineProperty(t,n,{value:o,enumerable:!1,writable:!1}),o}};const wA=new FinalizationRegistry(TA),tw=new Map,Dv=new Array;let _A=-2147483648;function xA(e){const t=Dv.length>0?Dv.shift():_A++;return tw.set(t,e),t}function Ca(e){return tw.get(e)}function SA(e){tw.delete(e),Dv.push(e)}function HC(e,t){wA.register(e,t)}function TA(e){Nh.DisposeExportedInstance(e)}function re(){if(Nh==null)throw Error("Boot the runtime before invoking C# APIs.");return Nh}function xt(e){return JSON.stringify(e)}function Mt(e){const t=JSON.parse(e);if(t!==null)return t}class EA{constructor(t){this._id=t,HC(this,t)}handleFileChanges(t){return UC.handleFileChanges(this._id,t)}}const Fl={onChanged:new Ge,onChangedSerialized:e=>Fl.onChanged.broadcast(Mt(e)),openFolder:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_AssetBrowser_JSAssetBrowser_OpenFolder(e),closeFolder:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_AssetBrowser_JSAssetBrowser_CloseFolder(e),openFile:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_AssetBrowser_JSAssetBrowser_OpenFile(e)},CA={connectToServerInLoop:e=>re().Naninovel_Bindings_Bridging_Bridging_ConnectToServerInLoop(e),breakConnectionLoop:()=>re().Naninovel_Bindings_Bridging_Bridging_BreakConnectionLoop(),requestGoto:(e,t)=>re().Naninovel_Bindings_Bridging_Bridging_RequestGoto(e,t),get onMetadataUpdated(){return this.onMetadataUpdatedHandler},set onMetadataUpdated(e){this.onMetadataUpdatedHandler=e,this.onMetadataUpdatedSerializedHandler=t=>this.onMetadataUpdatedHandler(Mt(t))},get onMetadataUpdatedSerialized(){if(typeof this.onMetadataUpdatedHandler!="function")throw Error("Failed to invoke 'Bridging.onMetadataUpdated' from C#. Make sure to assign function in JavaScript.");return this.onMetadataUpdatedSerializedHandler},get onPlaybackStatusUpdated(){return this.onPlaybackStatusUpdatedHandler},set onPlaybackStatusUpdated(e){this.onPlaybackStatusUpdatedHandler=e,this.onPlaybackStatusUpdatedSerializedHandler=t=>this.onPlaybackStatusUpdatedHandler(Mt(t))},get onPlaybackStatusUpdatedSerialized(){if(typeof this.onPlaybackStatusUpdatedHandler!="function")throw Error("Failed to invoke 'Bridging.onPlaybackStatusUpdated' from C#. Make sure to assign function in JavaScript.");return this.onPlaybackStatusUpdatedSerializedHandler}},Ne={onProjectTitleChanged:new Ge,onProjectTitleChangedSerialized:e=>Ne.onProjectTitleChanged.broadcast(e),onRecentProjectsChanged:new Ge,onRecentProjectsChangedSerialized:e=>Ne.onRecentProjectsChanged.broadcast(Mt(e)),onUserChanged:new Ge,onUserChangedSerialized:e=>Ne.onUserChanged.broadcast(e),onUndoChanged:new Ge,onUndoChangedSerialized:()=>Ne.onUndoChanged.broadcast(),onDirtyChanged:new Ge,onDirtyChangedSerialized:e=>Ne.onDirtyChanged.broadcast(Mt(e)),onBridgingChanged:new Ge,onBridgingChangedSerialized:e=>Ne.onBridgingChanged.broadcast(e),onMetadataChanged:new Ge,onMetadataChangedSerialized:e=>Ne.onMetadataChanged.broadcast(e),openProject:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_OpenProject(),openRecentProject:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_OpenRecentProject(e),renameProject:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_RenameProject(e),canUndo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_CanUndo(),canRedo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_CanRedo(),undo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Undo(),redo:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Redo(),undoAt:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_UndoAt(e),redoAt:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_RedoAt(e),getUndoLength:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_GetUndoLength(),viewUndo:e=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_ViewUndo(e)),saveDirty:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_SaveDirty(e),saveAllDirty:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_SaveAllDirty(),findServers:async()=>Mt(await re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_FindServers()),connect:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Connect(e),disconnect:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_Disconnect(),applyDefaultMetadata:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_ApplyDefaultMetadata(),hasCachedMetadata:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_HasCachedMetadata(),deleteCachedMetadata:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ControlPanel_JSControlPanel_DeleteCachedMetadata()},wr={setDefaultMetadata:e=>re().Naninovel_Editor_WASM_Editor_SetDefaultMetadata(xt(e)),notifyWindowBlurred:()=>re().Naninovel_Editor_WASM_Editor_NotifyWindowBlurred(),hasUnsavedAssets:()=>re().Naninovel_Editor_WASM_Editor_HasUnsavedAssets(),UndoContext:{0:"Modify",1:"Add",2:"Delete",Modify:0,Add:1,Delete:2},ConfigurationScope:{0:"User",1:"Project",User:0,Project:1}},VC={get pickRoot(){return this.pickRootHandler},set pickRoot(e){this.pickRootHandler=e,this.pickRootSerializedHandler=async t=>await this.pickRootHandler(Mt(t))},get pickRootSerialized(){if(typeof this.pickRootHandler!="function")throw Error("Failed to invoke 'FileMounter.pickRoot' from C#. Make sure to assign function in JavaScript.");return this.pickRootSerializedHandler},get mount(){return this.mountHandler},set mount(e){this.mountHandler=e,this.mountSerializedHandler=async(t,n,o)=>xA(await this.mountHandler(t,new EA(n),Mt(o)))},get mountSerialized(){if(typeof this.mountHandler!="function")throw Error("Failed to invoke 'FileMounter.mount' from C#. Make sure to assign function in JavaScript.");return this.mountSerializedHandler},get unmount(){return this.unmountHandler},set unmount(e){this.unmountHandler=e,this.unmountSerializedHandler=t=>this.unmountHandler(t)},get unmountSerialized(){if(typeof this.unmountHandler!="function")throw Error("Failed to invoke 'FileMounter.unmount' from C#. Make sure to assign function in JavaScript.");return this.unmountSerializedHandler}},kA={createDirectorySerialized:(e,t)=>Ca(e).createDirectory(t),removeDirectorySerialized:(e,t)=>Ca(e).removeDirectory(t),writeFileSerialized:(e,t,n)=>Ca(e).writeFile(t,n),deleteFileSerialized:(e,t)=>Ca(e).deleteFile(t),openFileSerialized:(e,t)=>Ca(e).openFile(t),getOpenFileContentSerialized:(e,t)=>Ca(e).getOpenFileContent(t),getFileInfoSerialized:async(e,t)=>xt(await Ca(e).getFileInfo(t)),PermissionMode:{0:"Read",1:"ReadWrite",Read:0,ReadWrite:1},FileChangeType:{0:"FileAdded",1:"FileRemoved",2:"FileModified",3:"DirectoryAdded",4:"DirectoryRemoved",FileAdded:0,FileRemoved:1,FileModified:2,DirectoryAdded:3,DirectoryRemoved:4}},UC={handleFileChanges:async(e,t)=>await re().Bootsharp_Generated_Exports_Bootsharp_FileSystem_JSFileWatcher_HandleFileChanges(e,xt(t))},jC={get logInfo(){return this.logInfoHandler},set logInfo(e){this.logInfoHandler=e,this.logInfoSerializedHandler=t=>this.logInfoHandler(t)},get logInfoSerialized(){if(typeof this.logInfoHandler!="function")throw Error("Failed to invoke 'JSLogger.logInfo' from C#. Make sure to assign function in JavaScript.");return this.logInfoSerializedHandler},get logWarning(){return this.logWarningHandler},set logWarning(e){this.logWarningHandler=e,this.logWarningSerializedHandler=t=>this.logWarningHandler(t)},get logWarningSerialized(){if(typeof this.logWarningHandler!="function")throw Error("Failed to invoke 'JSLogger.logWarning' from C#. Make sure to assign function in JavaScript.");return this.logWarningSerializedHandler},get logError(){return this.logErrorHandler},set logError(e){this.logErrorHandler=e,this.logErrorSerializedHandler=t=>this.logErrorHandler(t)},get logErrorSerialized(){if(typeof this.logErrorHandler!="function")throw Error("Failed to invoke 'JSLogger.logError' from C#. Make sure to assign function in JavaScript.");return this.logErrorSerializedHandler}},Hs={onUserAuthorized:new Ge,onUserAuthorizedSerialized:e=>Hs.onUserAuthorized.broadcast(e),getLastUser:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_GetLastUser(),authorizeUser:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_AuthorizeUser(),authorizeLastUser:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_AuthorizeLastUser(),logout:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_LoginScreen_JSLoginScreen_Logout()},Bi={ValueContainerType:{0:"Single",1:"List",2:"Named",3:"NamedList",Single:0,List:1,Named:2,NamedList:3},ValueType:{0:"String",1:"Integer",2:"Decimal",3:"Boolean",String:0,Integer:1,Decimal:2,Boolean:3},ValueContextType:{0:"Expression",1:"Constant",2:"Resource",3:"Actor",4:"Appearance",5:"Color",6:"Vector",Expression:0,Constant:1,Resource:2,Actor:3,Appearance:4,Color:5,Vector:6}},WC={get mergeMetadata(){return this.mergeMetadataHandler},set mergeMetadata(e){this.mergeMetadataHandler=e,this.mergeMetadataSerializedHandler=t=>xt(this.mergeMetadataHandler(Mt(t)))},get mergeMetadataSerialized(){if(typeof this.mergeMetadataHandler!="function")throw Error("Failed to invoke 'MetadataMerger.mergeMetadata' from C#. Make sure to assign function in JavaScript.");return this.mergeMetadataSerializedHandler}},Ga={LineType:{0:"Comment",1:"Label",2:"Command",3:"Generic",Comment:0,Label:1,Command:2,Generic:3}},tl={onProgressChanged:new Ge,onProgressChangedSerialized:e=>tl.onProgressChanged.broadcast(Mt(e)),onProgressCleared:new Ge,onProgressClearedSerialized:e=>tl.onProgressCleared.broadcast(e)},ze={onScriptChanged:new Ge,onScriptChangedSerialized:e=>ze.onScriptChanged.broadcast(e),onLineFocused:new Ge,onLineFocusedSerialized:(e,t)=>ze.onLineFocused.broadcast(e,t),onCommandOptionsChanged:new Ge,onCommandOptionsChangedSerialized:e=>ze.onCommandOptionsChanged.broadcast(Mt(e)),isScriptTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_IsScriptTab(e),getScriptIdFromTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_GetScriptIdFromTab(e),buildTabIdFromScript:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_BuildTabIdFromScript(e),goto:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_Goto(e,t),isScriptLoaded:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_IsScriptLoaded(e),loadScript:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_LoadScript(e),viewScript:e=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewScript(e)),getLineType:(e,t)=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_GetLineType(e,t)),previewLine:(e,t)=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_PreviewLine(e,t)),viewComment:(e,t)=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewComment(e,t)),viewLabel:(e,t)=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewLabel(e,t)),viewCommand:(e,t)=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewCommand(e,t)),viewGeneric:(e,t)=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ViewGeneric(e,t)),insertLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_InsertLine(e,xt(t)),duplicateLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_DuplicateLine(e,xt(t)),removeLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_RemoveLine(e,xt(t)),moveLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_MoveLine(e,xt(t)),moveContent:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_MoveContent(e,xt(t)),changeLine:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_ChangeLine(e,xt(t)),editComment:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditComment(e,xt(t)),editLabel:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditLabel(e,xt(t)),editParameter:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditParameter(e,xt(t)),inlineCommand:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_InlineCommand(e,xt(t)),removeInlined:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_RemoveInlined(e,xt(t)),editText:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditText(e,xt(t)),editAuthor:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditAuthor(e,xt(t)),editAppearance:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_EditAppearance(e,xt(t)),saveEdits:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_ScenarioEditor_JSScenarioEditor_SaveEdits(e)},qp={get read(){return this.readHandler},set read(e){this.readHandler=e,this.readSerializedHandler=t=>this.readHandler(t)},get readSerialized(){if(typeof this.readHandler!="function")throw Error("Failed to invoke 'SessionStorage.read' from C#. Make sure to assign function in JavaScript.");return this.readSerializedHandler},get write(){return this.writeHandler},set write(e){this.writeHandler=e,this.writeSerializedHandler=(t,n)=>this.writeHandler(t,n)},get writeSerialized(){if(typeof this.writeHandler!="function")throw Error("Failed to invoke 'SessionStorage.write' from C#. Make sure to assign function in JavaScript.");return this.writeSerializedHandler},get remove(){return this.removeHandler},set remove(e){this.removeHandler=e,this.removeSerializedHandler=t=>this.removeHandler(t)},get removeSerialized(){if(typeof this.removeHandler!="function")throw Error("Failed to invoke 'SessionStorage.remove' from C#. Make sure to assign function in JavaScript.");return this.removeSerializedHandler}},ie={onChanged:new Ge,onChangedSerialized:e=>ie.onChanged.broadcast(e),openEditor:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_OpenEditor(),viewCategories:()=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_ViewCategories()),viewProperty:e=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_ViewProperty(xt(e))),getValueJson:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_GetValueJson(xt(e)),edit:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_Edit(xt(e),t),reset:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_Reset(xt(e)),saveModified:()=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_SaveModified(),registerExternal:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Settings_JSSettings_RegisterExternal(xt(e)),ValueType:{0:"String",1:"Integer",2:"Decimal",3:"Boolean",4:"Other",String:0,Integer:1,Decimal:2,Boolean:3,Other:4},ContainerType:{0:"Single",1:"Array",Single:0,Array:1}},ct={onTabAdded:new Ge,onTabAddedSerialized:(e,t)=>ct.onTabAdded.broadcast(Mt(e),t),onTabSelected:new Ge,onTabSelectedSerialized:e=>ct.onTabSelected.broadcast(e),onTabRenamed:new Ge,onTabRenamedSerialized:(e,t,n)=>ct.onTabRenamed.broadcast(e,t,n),onTabRemoved:new Ge,onTabRemovedSerialized:e=>ct.onTabRemoved.broadcast(e),get getDefaultLayouts(){return this.getDefaultLayoutsHandler},set getDefaultLayouts(e){this.getDefaultLayoutsHandler=e,this.getDefaultLayoutsSerializedHandler=()=>xt(this.getDefaultLayoutsHandler())},get getDefaultLayoutsSerialized(){if(typeof this.getDefaultLayoutsHandler!="function")throw Error("Failed to invoke 'Workspace.getDefaultLayouts' from C#. Make sure to assign function in JavaScript.");return this.getDefaultLayoutsSerializedHandler},get getDefaultSetForTab(){return this.getDefaultSetForTabHandler},set getDefaultSetForTab(e){this.getDefaultSetForTabHandler=e,this.getDefaultSetForTabSerializedHandler=t=>this.getDefaultSetForTabHandler(t)},get getDefaultSetForTabSerialized(){if(typeof this.getDefaultSetForTabHandler!="function")throw Error("Failed to invoke 'Workspace.getDefaultSetForTab' from C#. Make sure to assign function in JavaScript.");return this.getDefaultSetForTabSerializedHandler},get getCurrentScheme(){return this.getCurrentSchemeHandler},set getCurrentScheme(e){this.getCurrentSchemeHandler=e,this.getCurrentSchemeSerializedHandler=()=>this.getCurrentSchemeHandler()},get getCurrentSchemeSerialized(){if(typeof this.getCurrentSchemeHandler!="function")throw Error("Failed to invoke 'Workspace.getCurrentScheme' from C#. Make sure to assign function in JavaScript.");return this.getCurrentSchemeSerializedHandler},onAvailableLayoutsChanged:new Ge,onAvailableLayoutsChangedSerialized:e=>ct.onAvailableLayoutsChanged.broadcast(Mt(e)),onSelectedLayoutChanged:new Ge,onSelectedLayoutChangedSerialized:e=>ct.onSelectedLayoutChanged.broadcast(e),onSchemeChanged:new Ge,onSchemeChangedSerialized:e=>ct.onSchemeChanged.broadcast(e),onLayoutCleared:new Ge,onLayoutClearedSerialized:()=>ct.onLayoutCleared.broadcast(),openTab:(e,t)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_OpenTab(xt(e),xt(t)),editTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_EditTab(xt(e)),moveTab:(e,t,n)=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_MoveTab(e,t,n),focusTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_FocusTab(e),closeTab:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_CloseTab(e),isTabOpen:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_IsTabOpen(e),getOpenTabs:()=>Mt(re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_GetOpenTabs()),saveCurrentLayout:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_SaveCurrentLayout(e),applyLayout:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_ApplyLayout(e),deleteLayout:e=>re().Bootsharp_Generated_Exports_Naninovel_Editor_Workspace_JSWorkspace_DeleteLayout(e),TabContext:{0:"User",1:"Project",User:0,Project:1}};var LA=Object.freeze({__proto__:null,AssetBrowser:Fl,Bridging:CA,ControlPanel:Ne,Editor:wr,FileMounter:VC,FileSystem:kA,FileWatcher:UC,JSLogger:jC,LoginScreen:Hs,Metadata:Bi,MetadataMerger:WC,Parsing:Ga,ProgressObserver:tl,ScenarioEditor:ze,SessionStorage:qp,Settings:ie,Workspace:ct});function IA(e){e.setModuleImports("Bootsharp",{...LA,disposeInstance:SA,disposeOnFinalize:HC})}var vi;(function(e){e[e.Standby=0]="Standby",e[e.Booting=1]="Booting",e[e.Booted=2]="Booted"})(vi||(vi={}));let za=vi.Standby,zv;function RA(){return za}async function NA(e){if(za===vi.Booted)throw Error("Failed to boot .NET runtime: already booted.");if(za===vi.Booting)throw Error("Failed to boot .NET runtime: already booting.");za=vi.Booting,zv=await ew(e?.root);const t=e?.config??await FC(e?.resources??$C,e?.root),n=await e?.create?.(t)||await zv.dotnet.withConfig(t).create();return n.Module.runtimeKeepalivePush(),await e?.import?.(n)||IA(n),await e?.run?.(n)||await n.runMain(t.mainAssemblyName,[]),await e?.export?.(n)||await bA(n,t.mainAssemblyName),za=vi.Booted,n}async function OA(e,t){if(za!==vi.Booted)throw Error("Failed to exit .NET runtime: not booted.");zv.exit(e??0,t),za=vi.Standby}var nl={boot:NA,exit:OA,getStatus:RA,BootStatus:vi,resources:$C,dotnet:{getMain:ew,getNative:PC,getRuntime:BC,buildConfig:FC}};const AA=!1,MA=!1;var qC=Object.freeze({__proto__:null,embedded:AA,mt:MA});const DA=!1,zA=!1;var PA=Object.freeze({__proto__:null,embedded:DA,mt:zA});const BA=!1,$A=!1;var FA=Object.freeze({__proto__:null,embedded:BA,mt:$A}),HA=Object.getOwnPropertyNames,VA=(e,t)=>function(){return t||(0,e[HA(e)[0]])((t={exports:{}}).exports,t),t.exports},UA=VA({"assets/default-metadata.json"(e,t){t.exports={actors:[],commands:[{id:"AnimateActor",alias:"animate",localizable:!1,summary:"Animate properties of the actors with the specified IDs via key frames. Key frames for the animated parameters are delimited with commas.",remarks:"It's not recommended to use this command for complex animations. Naniscript is a scenario scripting DSL and not suited for complex automation or specification such as animation. Consider using dedicated animation tools instead, such as Unity's [Animator](https://docs.unity3d.com/Manual/AnimationSection.html).

Be aware, that this command searches for actors with the provided IDs over all the actor managers, and in case multiple actors with the same ID exist (eg, a character and a text printer), this will affect only the first found one.

When running the animate commands in parallel (`wait` is set to false) the affected actors state can mutate unpredictably. This could cause unexpected results when rolling back or performing other commands that affect state of the actor. Make sure to reset affected properties of the animated actors (position, tint, appearance, etc) after the command finishes or use `@animate CharacterId` (without any args) to stop the animation prematurely.",examples:`; Animate \`Kohaku\` actor over three animation steps (key frames), ; changing positions: first step will take 1, second — 0.5 and third — 3 seconds. @animate Kohaku posX:50,0,85 time:1,0.5,3 @@ -444,21 +444,21 @@ Jeez, what a disgusting noise. Shut it down![wait i5][skipInput] ; The text is printed without delay, as the \`wait\` command is not awaited. ; The thunder effects are played after a random delay of 3 to 8 seconds. @wait {Random(3,8)} do:"@sfx Thunder, @shake Camera" wait:false -The thunder might go off any second...`,parameters:[{id:"WaitMode",alias:"",nameless:!0,required:!0,localizable:!1,valueContainerType:0,valueType:0,summary:"Wait conditions:
- `i` user press continue or skip input key;
- `0.0` timer (seconds);
- `i0.0` timer, that is skip-able by continue or skip input keys.",label:"waitMode",typeLabel:"string"},{id:"OnFinished",alias:"do",nameless:!1,required:!1,localizable:!1,valueContainerType:1,valueType:0,summary:"Script commands to execute when the wait is over. Escape commas inside list values to prevent them being treated as delimiters.",label:"do",typeLabel:"string list"},{id:"Wait",nameless:!1,required:!1,localizable:!1,valueContainerType:0,valueType:3,summary:"Whether the script player should wait for the async command execution before playing next command.",label:"wait",typeLabel:"boolean"},{id:"ConditionalExpression",alias:"if",nameless:!1,required:!1,localizable:!1,valueContainerType:0,valueType:0,valueContext:[{type:0},{type:0}],summary:"A boolean [script expression](https://naninovel.com/guide/script-expressions), controlling whether this command should execute.",label:"if",typeLabel:"string"}],label:"wait"}],resources:[],constants:[{name:"TransitionType",values:["Crossfade","BandedSwirl","Blinds","CircleReveal","CircleStretch","CloudReveal","Crumble","Dissolve","DropFade","LineReveal","Pixelate","RadialBlur","RadialWiggle","RandomCircleReveal","Ripple","RotateCrumble","Saturate","Shrink","SlideIn","SwirlGrid","Swirl","Water","Waterfall","Wave","Custom"]},{name:"EasingType",values:["Linear","SmoothStep","Spring","EaseInQuad","EaseOutQuad","EaseInOutQuad","EaseInCubic","EaseOutCubic","EaseInOutCubic","EaseInQuart","EaseOutQuart","EaseInOutQuart","EaseInQuint","EaseOutQuint","EaseInOutQuint","EaseInSine","EaseOutSine","EaseInOutSine","EaseInExpo","EaseOutExpo","EaseInOutExpo","EaseInCirc","EaseOutCirc","EaseInOutCirc","EaseInBounce","EaseOutBounce","EaseInOutBounce","EaseInBack","EaseOutBack","EaseInOutBack","EaseInElastic","EaseOutElastic","EaseInOutElastic"]},{name:"CharacterLookDirection",values:["Center","Left","Right"]}],variables:[],functions:["Random","CalculateProgress","IsUnlocked","HasPlayed","GetName"]}}});function WA(e,t,n,o){e.logInfo=t,e.logWarning=n??t,e.logError=o??t}function qA(){const e=jA();return typeof e=="string"?JSON.parse(e):e}function GA(...e){const t={};for(const n of e)YC(YA(n),t);return t}function YA(e){return JSON.parse(JSON.stringify(e))}function YC(e,t){for(const n in e)e.hasOwnProperty(n)&&XA(n,e[n],t)}function XA(e,t,n){n.hasOwnProperty(e)?Array.isArray(t)?e==="commands"?n[e]=ZA(t,n[e]):n[e]=n[e].concat(t):typeof t=="object"&&YC(t,n[e]):n[e]=t}function ZA(e,t){const n=[];for(const o of t){const r=e.find(i=>i.alias!=null&&i.alias===o.alias);r==null?n.push(o):n.push(JA(r,o))}return n.concat(e.filter(o=>!n.includes(o)))}function JA(e,t){return e.summary??=t.summary,e.remarks??=t.remarks,e.examples??=t.examples,e.parameters=KA(e.parameters,t.parameters),e}function KA(e,t){const n=e.length-t.length;for(let o=n;o{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function h8(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const o=nw(n);return(r,i)=>o.then(s=>i(s.transaction(t,r).objectStore(t)))}let q0;function QC(){return q0||(q0=h8("keyval-store","keyval")),q0}function m8(e,t=QC()){return t("readonly",n=>nw(n.get(e)))}function g8(e,t,n=QC()){return n("readwrite",o=>(o.put(t,e),nw(o.transaction)))}const dx="file-system",e4="naninovel-file-system-roots",Oh=new Map;async function y8(){p8(UC),W0.onSetHandle(x8),W0.onGetHandle(e=>Promise.resolve(_8(e))),W0.onMountProgress(v8),await w8()}function v8(e,t){if(e===0)return tl.onProgressCleared.broadcast(dx);const n="Opening Project",o=b8(t);return tl.onProgressChanged.broadcast({id:dx,title:n,info:o,progress:e})}function b8(e){return e.length-40<=0?e:"…"+e.slice(e.length-40,e.length)}async function w8(){const e=await m8(e4);if(e!=null)for(const[t,n]of e)Oh.set(t,n)}function _8(e){return Oh.get(e)}async function x8(e,t){Oh.set(e,t),await g8(e4,Oh)}async function S8(){qp.read=e=>localStorage.getItem(e)??null,qp.write=(e,t)=>localStorage.setItem(e,t),qp.remove=e=>localStorage.removeItem(e)}const pf=new Ge;async function T8(){WA(WC,console.log,console.warn,console.error),await y8(),await S8(),await nl.boot({root:"/editor/bin"}),qC.mergeMetadata=e=>GA(...e),wr.setDefaultMetadata(qA()),document.onvisibilitychange=()=>{document.visibilityState==="hidden"&&wr.notifyWindowBlurred()},addEventListener("beforeunload",e=>{if(wr.hasUnsavedAssets())return e.preventDefault(),e.returnValue=!0}),pf.broadcast(!0)}var Yf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ow(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t4={exports:{}},je={};var hf=Symbol.for("react.element"),E8=Symbol.for("react.portal"),C8=Symbol.for("react.fragment"),k8=Symbol.for("react.strict_mode"),L8=Symbol.for("react.profiler"),I8=Symbol.for("react.provider"),R8=Symbol.for("react.context"),N8=Symbol.for("react.forward_ref"),O8=Symbol.for("react.suspense"),A8=Symbol.for("react.memo"),M8=Symbol.for("react.lazy"),fx=Symbol.iterator;function D8(e){return e===null||typeof e!="object"?null:(e=fx&&e[fx]||e["@@iterator"],typeof e=="function"?e:null)}var n4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},o4=Object.assign,r4={};function jc(e,t,n){this.props=e,this.context=t,this.refs=r4,this.updater=n||n4}jc.prototype.isReactComponent={};jc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};jc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function i4(){}i4.prototype=jc.prototype;function rw(e,t,n){this.props=e,this.context=t,this.refs=r4,this.updater=n||n4}var iw=rw.prototype=new i4;iw.constructor=rw;o4(iw,jc.prototype);iw.isPureReactComponent=!0;var px=Array.isArray,s4=Object.prototype.hasOwnProperty,sw={current:null},a4={key:!0,ref:!0,__self:!0,__source:!0};function l4(e,t,n){var o,r={},i=null,s=null;if(t!=null)for(o in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)s4.call(t,o)&&!a4.hasOwnProperty(o)&&(r[o]=t[o]);var a=arguments.length-2;if(a===1)r.children=n;else if(1>>1,U=A[F];if(0>>1;Fr(J,P))Hr(V,J)?(A[F]=V,A[H]=P,F=H):(A[F]=J,A[q]=P,F=q);else if(Hr(V,P))A[F]=V,A[H]=P,F=H;else break e}}return L}function r(A,L){var P=A.sortIndex-L.sortIndex;return P!==0?P:A.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,m=3,p=!1,f=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(A){for(var L=n(c);L!==null;){if(L.callback===null)o(c);else if(L.startTime<=A)o(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function _(A){if(g=!1,w(A),!f)if(n(l)!==null)f=!0,D(S);else{var L=n(c);L!==null&&$(_,L.startTime-A)}}function S(A,L){f=!1,g&&(g=!1,y(E),E=-1),p=!0;var P=m;try{for(w(L),d=n(l);d!==null&&(!(d.expirationTime>L)||A&&!O());){var F=d.callback;if(typeof F=="function"){d.callback=null,m=d.priorityLevel;var U=F(d.expirationTime<=L);L=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&o(l),w(L)}else o(l);d=n(l)}if(d!==null)var Y=!0;else{var q=n(c);q!==null&&$(_,q.startTime-L),Y=!1}return Y}finally{d=null,m=P,p=!1}}var x=!1,T=null,E=-1,N=5,I=-1;function O(){return!(e.unstable_now()-IA||125F?(A.sortIndex=P,t(c,A),n(l)===null&&A===n(c)&&(g?(y(E),E=-1):g=!0,$(_,P-F))):(A.sortIndex=U,t(l,A),f||p||(f=!0,D(S))),A},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(A){var L=m;return function(){var P=m;m=L;try{return A.apply(this,arguments)}finally{m=P}}}})(d4);u4.exports=d4;var F8=u4.exports;var f4=h,tr=F8;function te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$v=Object.prototype.hasOwnProperty,H8=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,gx={},yx={};function V8(e){return $v.call(yx,e)?!0:$v.call(gx,e)?!1:H8.test(e)?yx[e]=!0:(gx[e]=!0,!1)}function U8(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function j8(e,t,n,o){if(t===null||typeof t>"u"||U8(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lo(e,t,n,o,r,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var An={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){An[e]=new lo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];An[t]=new lo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){An[e]=new lo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){An[e]=new lo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){An[e]=new lo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){An[e]=new lo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){An[e]=new lo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){An[e]=new lo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){An[e]=new lo(e,5,!1,e.toLowerCase(),null,!1,!1)});var lw=/[\-:]([a-z])/g;function cw(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(lw,cw);An[t]=new lo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(lw,cw);An[t]=new lo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(lw,cw);An[t]=new lo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){An[e]=new lo(e,1,!1,e.toLowerCase(),null,!1,!1)});An.xlinkHref=new lo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){An[e]=new lo(e,1,!1,e.toLowerCase(),null,!0,!0)});function uw(e,t,n,o){var r=An.hasOwnProperty(t)?An[t]:null;(r!==null?r.type!==0:o||!(2 - `i` user press continue or skip input key;
- `0.0` timer (seconds);
- `i0.0` timer, that is skip-able by continue or skip input keys.",label:"waitMode",typeLabel:"string"},{id:"OnFinished",alias:"do",nameless:!1,required:!1,localizable:!1,valueContainerType:1,valueType:0,summary:"Script commands to execute when the wait is over. Escape commas inside list values to prevent them being treated as delimiters.",label:"do",typeLabel:"string list"},{id:"Wait",nameless:!1,required:!1,localizable:!1,valueContainerType:0,valueType:3,summary:"Whether the script player should wait for the async command execution before playing next command.",label:"wait",typeLabel:"boolean"},{id:"ConditionalExpression",alias:"if",nameless:!1,required:!1,localizable:!1,valueContainerType:0,valueType:0,valueContext:[{type:0},{type:0}],summary:"A boolean [script expression](https://naninovel.com/guide/script-expressions), controlling whether this command should execute.",label:"if",typeLabel:"string"}],label:"wait"}],resources:[],constants:[{name:"TransitionType",values:["Crossfade","BandedSwirl","Blinds","CircleReveal","CircleStretch","CloudReveal","Crumble","Dissolve","DropFade","LineReveal","Pixelate","RadialBlur","RadialWiggle","RandomCircleReveal","Ripple","RotateCrumble","Saturate","Shrink","SlideIn","SwirlGrid","Swirl","Water","Waterfall","Wave","Custom"]},{name:"EasingType",values:["Linear","SmoothStep","Spring","EaseInQuad","EaseOutQuad","EaseInOutQuad","EaseInCubic","EaseOutCubic","EaseInOutCubic","EaseInQuart","EaseOutQuart","EaseInOutQuart","EaseInQuint","EaseOutQuint","EaseInOutQuint","EaseInSine","EaseOutSine","EaseInOutSine","EaseInExpo","EaseOutExpo","EaseInOutExpo","EaseInCirc","EaseOutCirc","EaseInOutCirc","EaseInBounce","EaseOutBounce","EaseInOutBounce","EaseInBack","EaseOutBack","EaseInOutBack","EaseInElastic","EaseOutElastic","EaseInOutElastic"]},{name:"CharacterLookDirection",values:["Center","Left","Right"]}],variables:[],functions:["Random","CalculateProgress","IsUnlocked","HasPlayed","GetName"]}}});function jA(e,t,n,o){e.logInfo=t,e.logWarning=n??t,e.logError=o??t}function WA(){const e=UA();return typeof e=="string"?JSON.parse(e):e}function qA(...e){const t={};for(const n of e)GC(GA(n),t);return t}function GA(e){return JSON.parse(JSON.stringify(e))}function GC(e,t){for(const n in e)e.hasOwnProperty(n)&&YA(n,e[n],t)}function YA(e,t,n){n.hasOwnProperty(e)?Array.isArray(t)?e==="commands"?n[e]=XA(t,n[e]):n[e]=n[e].concat(t):typeof t=="object"&&GC(t,n[e]):n[e]=t}function XA(e,t){const n=[];for(const o of t){const r=e.find(i=>i.alias!=null&&i.alias===o.alias);r==null?n.push(o):n.push(ZA(r,o))}return n.concat(e.filter(o=>!n.includes(o)))}function ZA(e,t){return e.summary??=t.summary,e.remarks??=t.remarks,e.examples??=t.examples,e.parameters=JA(e.parameters,t.parameters),e}function JA(e,t){const n=e.length-t.length;for(let o=n;o{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function p8(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const o=nw(n);return(r,i)=>o.then(s=>i(s.transaction(t,r).objectStore(t)))}let q0;function KC(){return q0||(q0=p8("keyval-store","keyval")),q0}function h8(e,t=KC()){return t("readonly",n=>nw(n.get(e)))}function m8(e,t,n=KC()){return n("readwrite",o=>(o.put(t,e),nw(o.transaction)))}const ux="file-system",QC="naninovel-file-system-roots",Oh=new Map;async function g8(){f8(VC),W0.onSetHandle(_8),W0.onGetHandle(e=>Promise.resolve(w8(e))),W0.onMountProgress(y8),await b8()}function y8(e,t){if(e===0)return tl.onProgressCleared.broadcast(ux);const n="Opening Project",o=v8(t);return tl.onProgressChanged.broadcast({id:ux,title:n,info:o,progress:e})}function v8(e){return e.length-40<=0?e:"…"+e.slice(e.length-40,e.length)}async function b8(){const e=await h8(QC);if(e!=null)for(const[t,n]of e)Oh.set(t,n)}function w8(e){return Oh.get(e)}async function _8(e,t){Oh.set(e,t),await m8(QC,Oh)}async function x8(){qp.read=e=>localStorage.getItem(e)??null,qp.write=(e,t)=>localStorage.setItem(e,t),qp.remove=e=>localStorage.removeItem(e)}const pf=new Ge;async function S8(){jA(jC,console.log,console.warn,console.error),await g8(),await x8(),await nl.boot({root:"/editor/bin"}),WC.mergeMetadata=e=>qA(...e),wr.setDefaultMetadata(WA()),document.onvisibilitychange=()=>{document.visibilityState==="hidden"&&wr.notifyWindowBlurred()},addEventListener("beforeunload",e=>{if(wr.hasUnsavedAssets())return e.preventDefault(),e.returnValue=!0}),pf.broadcast(!0)}var Yf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ow(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var e4={exports:{}},je={};var hf=Symbol.for("react.element"),T8=Symbol.for("react.portal"),E8=Symbol.for("react.fragment"),C8=Symbol.for("react.strict_mode"),k8=Symbol.for("react.profiler"),L8=Symbol.for("react.provider"),I8=Symbol.for("react.context"),R8=Symbol.for("react.forward_ref"),N8=Symbol.for("react.suspense"),O8=Symbol.for("react.memo"),A8=Symbol.for("react.lazy"),dx=Symbol.iterator;function M8(e){return e===null||typeof e!="object"?null:(e=dx&&e[dx]||e["@@iterator"],typeof e=="function"?e:null)}var t4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},n4=Object.assign,o4={};function jc(e,t,n){this.props=e,this.context=t,this.refs=o4,this.updater=n||t4}jc.prototype.isReactComponent={};jc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};jc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function r4(){}r4.prototype=jc.prototype;function rw(e,t,n){this.props=e,this.context=t,this.refs=o4,this.updater=n||t4}var iw=rw.prototype=new r4;iw.constructor=rw;n4(iw,jc.prototype);iw.isPureReactComponent=!0;var fx=Array.isArray,i4=Object.prototype.hasOwnProperty,sw={current:null},s4={key:!0,ref:!0,__self:!0,__source:!0};function a4(e,t,n){var o,r={},i=null,s=null;if(t!=null)for(o in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)i4.call(t,o)&&!s4.hasOwnProperty(o)&&(r[o]=t[o]);var a=arguments.length-2;if(a===1)r.children=n;else if(1>>1,U=A[F];if(0>>1;Fr(J,P))Hr(V,J)?(A[F]=V,A[H]=P,F=H):(A[F]=J,A[q]=P,F=q);else if(Hr(V,P))A[F]=V,A[H]=P,F=H;else break e}}return L}function r(A,L){var P=A.sortIndex-L.sortIndex;return P!==0?P:A.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,m=3,p=!1,f=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(A){for(var L=n(c);L!==null;){if(L.callback===null)o(c);else if(L.startTime<=A)o(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function _(A){if(g=!1,w(A),!f)if(n(l)!==null)f=!0,D(S);else{var L=n(c);L!==null&&$(_,L.startTime-A)}}function S(A,L){f=!1,g&&(g=!1,y(E),E=-1),p=!0;var P=m;try{for(w(L),d=n(l);d!==null&&(!(d.expirationTime>L)||A&&!O());){var F=d.callback;if(typeof F=="function"){d.callback=null,m=d.priorityLevel;var U=F(d.expirationTime<=L);L=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&o(l),w(L)}else o(l);d=n(l)}if(d!==null)var Y=!0;else{var q=n(c);q!==null&&$(_,q.startTime-L),Y=!1}return Y}finally{d=null,m=P,p=!1}}var x=!1,T=null,E=-1,N=5,I=-1;function O(){return!(e.unstable_now()-IA||125F?(A.sortIndex=P,t(c,A),n(l)===null&&A===n(c)&&(g?(y(E),E=-1):g=!0,$(_,P-F))):(A.sortIndex=U,t(l,A),f||p||(f=!0,D(S))),A},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(A){var L=m;return function(){var P=m;m=L;try{return A.apply(this,arguments)}finally{m=P}}}})(u4);c4.exports=u4;var $8=c4.exports;var d4=h,tr=$8;function te(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$v=Object.prototype.hasOwnProperty,F8=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,mx={},gx={};function H8(e){return $v.call(gx,e)?!0:$v.call(mx,e)?!1:F8.test(e)?gx[e]=!0:(mx[e]=!0,!1)}function V8(e,t,n,o){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function U8(e,t,n,o){if(t===null||typeof t>"u"||V8(e,t,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function lo(e,t,n,o,r,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var An={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){An[e]=new lo(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];An[t]=new lo(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){An[e]=new lo(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){An[e]=new lo(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){An[e]=new lo(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){An[e]=new lo(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){An[e]=new lo(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){An[e]=new lo(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){An[e]=new lo(e,5,!1,e.toLowerCase(),null,!1,!1)});var lw=/[\-:]([a-z])/g;function cw(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(lw,cw);An[t]=new lo(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(lw,cw);An[t]=new lo(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(lw,cw);An[t]=new lo(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){An[e]=new lo(e,1,!1,e.toLowerCase(),null,!1,!1)});An.xlinkHref=new lo("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){An[e]=new lo(e,1,!1,e.toLowerCase(),null,!0,!0)});function uw(e,t,n,o){var r=An.hasOwnProperty(t)?An[t]:null;(r!==null?r.type!==0:o||!(2a||r[s]!==i[a]){var l=` -`+r[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{X0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zu(e):""}function W8(e){switch(e.tag){case 5:return zu(e.type);case 16:return zu("Lazy");case 13:return zu("Suspense");case 19:return zu("SuspenseList");case 0:case 2:case 15:return e=Z0(e.type,!1),e;case 11:return e=Z0(e.type.render,!1),e;case 1:return e=Z0(e.type,!0),e;default:return""}}function Uv(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vl:return"Fragment";case Hl:return"Portal";case Fv:return"Profiler";case dw:return"StrictMode";case Hv:return"Suspense";case Vv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case m4:return(e.displayName||"Context")+".Consumer";case h4:return(e._context.displayName||"Context")+".Provider";case fw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pw:return t=e.displayName||null,t!==null?t:Uv(e.type)||"Memo";case Ms:t=e._payload,e=e._init;try{return Uv(e(t))}catch{}}return null}function q8(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Uv(t);case 8:return t===dw?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function aa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function y4(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function G8(e){var t=y4(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){o=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(s){o=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jf(e){e._valueTracker||(e._valueTracker=G8(e))}function v4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=y4(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Ah(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jv(e,t){var n=t.checked;return Ut({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bx(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=aa(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function b4(e,t){t=t.checked,t!=null&&uw(e,"checked",t,!1)}function Wv(e,t){b4(e,t);var n=aa(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?qv(e,t.type,n):t.hasOwnProperty("defaultValue")&&qv(e,t.type,aa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wx(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function qv(e,t,n){(t!=="number"||Ah(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pu=Array.isArray;function nc(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=Kf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Y8=["Webkit","ms","Moz","O"];Object.keys(Zu).forEach(function(e){Y8.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zu[t]=Zu[e]})});function S4(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zu.hasOwnProperty(e)&&Zu[e]?(""+t).trim():t+"px"}function T4(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=S4(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}var X8=Ut({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xv(e,t){if(t){if(X8[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(te(62))}}function Zv(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jv=null;function hw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kv=null,oc=null,rc=null;function Sx(e){if(e=yf(e)){if(typeof Kv!="function")throw Error(te(280));var t=e.stateNode;t&&(t=ig(t),Kv(e.stateNode,e.type,t))}}function E4(e){oc?rc?rc.push(e):rc=[e]:oc=e}function C4(){if(oc){var e=oc,t=rc;if(rc=oc=null,Sx(e),t)for(e=0;e>>=0,e===0?32:31-(sM(e)/aM|0)|0}var Qf=64,ep=4194304;function Bu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ph(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,r=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~r;a!==0?o=Bu(a):(i&=s,i!==0&&(o=Bu(i)))}else s=n&~r,s!==0?o=Bu(s):i!==0&&(o=Bu(i));if(o===0)return 0;if(t!==0&&t!==o&&!(t&r)&&(r=o&-o,i=t&-t,r>=i||r===16&&(i&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function mf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xr(t),e[t]=n}function dM(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0=Ku),Ox=" ",Ax=!1;function q4(e,t){switch(e){case"keyup":return $M.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function G4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ul=!1;function HM(e,t){switch(e){case"compositionend":return G4(t);case"keypress":return t.which!==32?null:(Ax=!0,Ox);case"textInput":return e=t.data,e===Ox&&Ax?null:e;default:return null}}function VM(e,t){if(Ul)return e==="compositionend"||!xw&&q4(e,t)?(e=j4(),Jp=bw=Ws=null,Ul=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Px(n)}}function J4(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?J4(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function K4(){for(var e=window,t=Ah();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ah(e.document)}return t}function Sw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function JM(e){var t=K4(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&J4(n.ownerDocument.documentElement,n)){if(o!==null&&Sw(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(o.start,r);o=o.end===void 0?i:Math.min(o.end,r),!e.extend&&i>o&&(r=o,o=i,i=r),r=Bx(n,i);var s=Bx(n,o);r&&s&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,jl=null,r1=null,ed=null,i1=!1;function $x(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;i1||jl==null||jl!==Ah(o)||(o=jl,"selectionStart"in o&&Sw(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ed&&Cd(ed,o)||(ed=o,o=Fh(r1,"onSelect"),0Gl||(e.current=d1[Gl],d1[Gl]=null,Gl--)}function Lt(e,t){Gl++,d1[Gl]=e.current,e.current=t}var la={},Yn=va(la),ko=va(!1),ol=la;function xc(e,t){var n=e.type.contextTypes;if(!n)return la;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in n)r[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Lo(e){return e=e.childContextTypes,e!=null}function Vh(){At(ko),At(Yn)}function qx(e,t,n){if(Yn.current!==la)throw Error(te(168));Lt(Yn,t),Lt(ko,n)}function ak(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var r in o)if(!(r in t))throw Error(te(108,q8(e)||"Unknown",r));return Ut({},n,o)}function Uh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||la,ol=Yn.current,Lt(Yn,e),Lt(ko,ko.current),!0}function Gx(e,t,n){var o=e.stateNode;if(!o)throw Error(te(169));n?(e=ak(e,t,ol),o.__reactInternalMemoizedMergedChildContext=e,At(ko),At(Yn),Lt(Yn,e)):At(ko),Lt(ko,n)}var Vi=null,sg=!1,uy=!1;function lk(e){Vi===null?Vi=[e]:Vi.push(e)}function cD(e){sg=!0,lk(e)}function ba(){if(!uy&&Vi!==null){uy=!0;var e=0,t=ft;try{var n=Vi;for(ft=1;e>=s,r-=s,ji=1<<32-Xr(t)+r|n<E?(N=T,T=null):N=T.sibling;var I=m(y,T,w[E],_);if(I===null){T===null&&(T=N);break}e&&T&&I.alternate===null&&t(y,T),v=i(I,v,E),x===null?S=I:x.sibling=I,x=I,T=N}if(E===w.length)return n(y,T),Dt&&Ia(y,E),S;if(T===null){for(;EE?(N=T,T=null):N=T.sibling;var O=m(y,T,I.value,_);if(O===null){T===null&&(T=N);break}e&&T&&O.alternate===null&&t(y,T),v=i(O,v,E),x===null?S=O:x.sibling=O,x=O,T=N}if(I.done)return n(y,T),Dt&&Ia(y,E),S;if(T===null){for(;!I.done;E++,I=w.next())I=d(y,I.value,_),I!==null&&(v=i(I,v,E),x===null?S=I:x.sibling=I,x=I);return Dt&&Ia(y,E),S}for(T=o(y,T);!I.done;E++,I=w.next())I=p(T,y,E,I.value,_),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?E:I.key),v=i(I,v,E),x===null?S=I:x.sibling=I,x=I);return e&&T.forEach(function(R){return t(y,R)}),Dt&&Ia(y,E),S}function b(y,v,w,_){if(typeof w=="object"&&w!==null&&w.type===Vl&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Zf:e:{for(var S=w.key,x=v;x!==null;){if(x.key===S){if(S=w.type,S===Vl){if(x.tag===7){n(y,x.sibling),v=r(x,w.props.children),v.return=y,y=v;break e}}else if(x.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ms&&eS(S)===x.type){n(y,x.sibling),v=r(x,w.props),v.ref=hu(y,x,w),v.return=y,y=v;break e}n(y,x);break}else t(y,x);x=x.sibling}w.type===Vl?(v=Xa(w.props.children,y.mode,_,w.key),v.return=y,y=v):(_=ih(w.type,w.key,w.props,null,y.mode,_),_.ref=hu(y,v,w),_.return=y,y=_)}return s(y);case Hl:e:{for(x=w.key;v!==null;){if(v.key===x)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(y,v.sibling),v=r(v,w.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=vy(w,y.mode,_),v.return=y,y=v}return s(y);case Ms:return x=w._init,b(y,v,x(w._payload),_)}if(Pu(w))return f(y,v,w,_);if(cu(w))return g(y,v,w,_);ap(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(y,v.sibling),v=r(v,w),v.return=y,y=v):(n(y,v),v=yy(w,y.mode,_),v.return=y,y=v),s(y)):n(y,v)}return b}var Tc=gk(!0),yk=gk(!1),vf={},Ti=va(vf),Rd=va(vf),Nd=va(vf);function $a(e){if(e===vf)throw Error(te(174));return e}function Ow(e,t){switch(Lt(Nd,t),Lt(Rd,e),Lt(Ti,vf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yv(t,e)}At(Ti),Lt(Ti,t)}function Ec(){At(Ti),At(Rd),At(Nd)}function vk(e){$a(Nd.current);var t=$a(Ti.current),n=Yv(t,e.type);t!==n&&(Lt(Rd,e),Lt(Ti,n))}function Aw(e){Rd.current===e&&(At(Ti),At(Rd))}var Ht=va(0);function Xh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var dy=[];function Mw(){for(var e=0;en?n:4,e(!0);var o=fy.transition;fy.transition={};try{e(!1),t()}finally{ft=n,fy.transition=o}}function Mk(){return Er().memoizedState}function pD(e,t,n){var o=oa(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},Dk(e))zk(t,n);else if(n=fk(e,t,n,o),n!==null){var r=io();Zr(n,e,o,r),Pk(n,t,o)}}function hD(e,t,n){var o=oa(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(Dk(e))zk(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(r.hasEagerState=!0,r.eagerState=a,Kr(a,s)){var l=t.interleaved;l===null?(r.next=r,Rw(t)):(r.next=l.next,l.next=r),t.interleaved=r;return}}catch{}finally{}n=fk(e,t,r,o),n!==null&&(r=io(),Zr(n,e,o,r),Pk(n,t,o))}}function Dk(e){var t=e.alternate;return e===Vt||t!==null&&t===Vt}function zk(e,t){td=Zh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Pk(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,gw(e,n)}}var Jh={readContext:Tr,useCallback:Bn,useContext:Bn,useEffect:Bn,useImperativeHandle:Bn,useInsertionEffect:Bn,useLayoutEffect:Bn,useMemo:Bn,useReducer:Bn,useRef:Bn,useState:Bn,useDebugValue:Bn,useDeferredValue:Bn,useTransition:Bn,useMutableSource:Bn,useSyncExternalStore:Bn,useId:Bn,unstable_isNewReconciler:!1},mD={readContext:Tr,useCallback:function(e,t){return pi().memoizedState=[e,t===void 0?null:t],e},useContext:Tr,useEffect:nS,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,th(4194308,4,Ik.bind(null,t,e),n)},useLayoutEffect:function(e,t){return th(4194308,4,e,t)},useInsertionEffect:function(e,t){return th(4,2,e,t)},useMemo:function(e,t){var n=pi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=pi();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=pD.bind(null,Vt,e),[o.memoizedState,e]},useRef:function(e){var t=pi();return e={current:e},t.memoizedState=e},useState:tS,useDebugValue:$w,useDeferredValue:function(e){return pi().memoizedState=e},useTransition:function(){var e=tS(!1),t=e[0];return e=fD.bind(null,e[1]),pi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Vt,r=pi();if(Dt){if(n===void 0)throw Error(te(407));n=n()}else{if(n=t(),wn===null)throw Error(te(349));il&30||_k(o,t,n)}r.memoizedState=n;var i={value:n,getSnapshot:t};return r.queue=i,nS(Sk.bind(null,o,i,e),[e]),o.flags|=2048,Md(9,xk.bind(null,o,i,n,t),void 0,null),n},useId:function(){var e=pi(),t=wn.identifierPrefix;if(Dt){var n=Wi,o=ji;n=(o&~(1<<32-Xr(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Od++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{X0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zu(e):""}function j8(e){switch(e.tag){case 5:return zu(e.type);case 16:return zu("Lazy");case 13:return zu("Suspense");case 19:return zu("SuspenseList");case 0:case 2:case 15:return e=Z0(e.type,!1),e;case 11:return e=Z0(e.type.render,!1),e;case 1:return e=Z0(e.type,!0),e;default:return""}}function Uv(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vl:return"Fragment";case Hl:return"Portal";case Fv:return"Profiler";case dw:return"StrictMode";case Hv:return"Suspense";case Vv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h4:return(e.displayName||"Context")+".Consumer";case p4:return(e._context.displayName||"Context")+".Provider";case fw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pw:return t=e.displayName||null,t!==null?t:Uv(e.type)||"Memo";case Ms:t=e._payload,e=e._init;try{return Uv(e(t))}catch{}}return null}function W8(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Uv(t);case 8:return t===dw?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function aa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function g4(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q8(e){var t=g4(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(s){o=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(s){o=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jf(e){e._valueTracker||(e._valueTracker=q8(e))}function y4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=g4(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function Ah(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jv(e,t){var n=t.checked;return Ut({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function vx(e,t){var n=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;n=aa(t.value!=null?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function v4(e,t){t=t.checked,t!=null&&uw(e,"checked",t,!1)}function Wv(e,t){v4(e,t);var n=aa(t.value),o=t.type;if(n!=null)o==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?qv(e,t.type,n):t.hasOwnProperty("defaultValue")&&qv(e,t.type,aa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function bx(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function qv(e,t,n){(t!=="number"||Ah(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pu=Array.isArray;function nc(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r"+t.valueOf().toString()+"",t=Kf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wd(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Zu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},G8=["Webkit","ms","Moz","O"];Object.keys(Zu).forEach(function(e){G8.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zu[t]=Zu[e]})});function x4(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Zu.hasOwnProperty(e)&&Zu[e]?(""+t).trim():t+"px"}function S4(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=x4(n,t[n],o);n==="float"&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}var Y8=Ut({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Xv(e,t){if(t){if(Y8[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(te(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(te(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(te(61))}if(t.style!=null&&typeof t.style!="object")throw Error(te(62))}}function Zv(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jv=null;function hw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kv=null,oc=null,rc=null;function xx(e){if(e=yf(e)){if(typeof Kv!="function")throw Error(te(280));var t=e.stateNode;t&&(t=ig(t),Kv(e.stateNode,e.type,t))}}function T4(e){oc?rc?rc.push(e):rc=[e]:oc=e}function E4(){if(oc){var e=oc,t=rc;if(rc=oc=null,xx(e),t)for(e=0;e>>=0,e===0?32:31-(iM(e)/sM|0)|0}var Qf=64,ep=4194304;function Bu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ph(e,t){var n=e.pendingLanes;if(n===0)return 0;var o=0,r=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~r;a!==0?o=Bu(a):(i&=s,i!==0&&(o=Bu(i)))}else s=n&~r,s!==0?o=Bu(s):i!==0&&(o=Bu(i));if(o===0)return 0;if(t!==0&&t!==o&&!(t&r)&&(r=o&-o,i=t&-t,r>=i||r===16&&(i&4194240)!==0))return t;if(o&4&&(o|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0n;n++)t.push(e);return t}function mf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Xr(t),e[t]=n}function uM(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0=Ku),Nx=" ",Ox=!1;function W4(e,t){switch(e){case"keyup":return BM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function q4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ul=!1;function FM(e,t){switch(e){case"compositionend":return q4(t);case"keypress":return t.which!==32?null:(Ox=!0,Nx);case"textInput":return e=t.data,e===Nx&&Ox?null:e;default:return null}}function HM(e,t){if(Ul)return e==="compositionend"||!xw&&W4(e,t)?(e=U4(),Jp=bw=Ws=null,Ul=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zx(n)}}function Z4(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Z4(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function J4(){for(var e=window,t=Ah();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ah(e.document)}return t}function Sw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ZM(e){var t=J4(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Z4(n.ownerDocument.documentElement,n)){if(o!==null&&Sw(n)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(o.start,r);o=o.end===void 0?i:Math.min(o.end,r),!e.extend&&i>o&&(r=o,o=i,i=r),r=Px(n,i);var s=Px(n,o);r&&s&&(e.rangeCount!==1||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(r.node,r.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,jl=null,r1=null,ed=null,i1=!1;function Bx(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;i1||jl==null||jl!==Ah(o)||(o=jl,"selectionStart"in o&&Sw(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ed&&Cd(ed,o)||(ed=o,o=Fh(r1,"onSelect"),0Gl||(e.current=d1[Gl],d1[Gl]=null,Gl--)}function Lt(e,t){Gl++,d1[Gl]=e.current,e.current=t}var la={},Yn=va(la),ko=va(!1),ol=la;function xc(e,t){var n=e.type.contextTypes;if(!n)return la;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in n)r[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=r),r}function Lo(e){return e=e.childContextTypes,e!=null}function Vh(){At(ko),At(Yn)}function Wx(e,t,n){if(Yn.current!==la)throw Error(te(168));Lt(Yn,t),Lt(ko,n)}function sk(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var r in o)if(!(r in t))throw Error(te(108,W8(e)||"Unknown",r));return Ut({},n,o)}function Uh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||la,ol=Yn.current,Lt(Yn,e),Lt(ko,ko.current),!0}function qx(e,t,n){var o=e.stateNode;if(!o)throw Error(te(169));n?(e=sk(e,t,ol),o.__reactInternalMemoizedMergedChildContext=e,At(ko),At(Yn),Lt(Yn,e)):At(ko),Lt(ko,n)}var Vi=null,sg=!1,uy=!1;function ak(e){Vi===null?Vi=[e]:Vi.push(e)}function lD(e){sg=!0,ak(e)}function ba(){if(!uy&&Vi!==null){uy=!0;var e=0,t=ft;try{var n=Vi;for(ft=1;e>=s,r-=s,ji=1<<32-Xr(t)+r|n<E?(N=T,T=null):N=T.sibling;var I=m(y,T,w[E],_);if(I===null){T===null&&(T=N);break}e&&T&&I.alternate===null&&t(y,T),v=i(I,v,E),x===null?S=I:x.sibling=I,x=I,T=N}if(E===w.length)return n(y,T),Dt&&Ia(y,E),S;if(T===null){for(;EE?(N=T,T=null):N=T.sibling;var O=m(y,T,I.value,_);if(O===null){T===null&&(T=N);break}e&&T&&O.alternate===null&&t(y,T),v=i(O,v,E),x===null?S=O:x.sibling=O,x=O,T=N}if(I.done)return n(y,T),Dt&&Ia(y,E),S;if(T===null){for(;!I.done;E++,I=w.next())I=d(y,I.value,_),I!==null&&(v=i(I,v,E),x===null?S=I:x.sibling=I,x=I);return Dt&&Ia(y,E),S}for(T=o(y,T);!I.done;E++,I=w.next())I=p(T,y,E,I.value,_),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?E:I.key),v=i(I,v,E),x===null?S=I:x.sibling=I,x=I);return e&&T.forEach(function(R){return t(y,R)}),Dt&&Ia(y,E),S}function b(y,v,w,_){if(typeof w=="object"&&w!==null&&w.type===Vl&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Zf:e:{for(var S=w.key,x=v;x!==null;){if(x.key===S){if(S=w.type,S===Vl){if(x.tag===7){n(y,x.sibling),v=r(x,w.props.children),v.return=y,y=v;break e}}else if(x.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ms&&Qx(S)===x.type){n(y,x.sibling),v=r(x,w.props),v.ref=hu(y,x,w),v.return=y,y=v;break e}n(y,x);break}else t(y,x);x=x.sibling}w.type===Vl?(v=Xa(w.props.children,y.mode,_,w.key),v.return=y,y=v):(_=ih(w.type,w.key,w.props,null,y.mode,_),_.ref=hu(y,v,w),_.return=y,y=_)}return s(y);case Hl:e:{for(x=w.key;v!==null;){if(v.key===x)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(y,v.sibling),v=r(v,w.children||[]),v.return=y,y=v;break e}else{n(y,v);break}else t(y,v);v=v.sibling}v=vy(w,y.mode,_),v.return=y,y=v}return s(y);case Ms:return x=w._init,b(y,v,x(w._payload),_)}if(Pu(w))return f(y,v,w,_);if(cu(w))return g(y,v,w,_);ap(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(y,v.sibling),v=r(v,w),v.return=y,y=v):(n(y,v),v=yy(w,y.mode,_),v.return=y,y=v),s(y)):n(y,v)}return b}var Tc=mk(!0),gk=mk(!1),vf={},Ti=va(vf),Rd=va(vf),Nd=va(vf);function $a(e){if(e===vf)throw Error(te(174));return e}function Ow(e,t){switch(Lt(Nd,t),Lt(Rd,e),Lt(Ti,vf),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yv(t,e)}At(Ti),Lt(Ti,t)}function Ec(){At(Ti),At(Rd),At(Nd)}function yk(e){$a(Nd.current);var t=$a(Ti.current),n=Yv(t,e.type);t!==n&&(Lt(Rd,e),Lt(Ti,n))}function Aw(e){Rd.current===e&&(At(Ti),At(Rd))}var Ht=va(0);function Xh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var dy=[];function Mw(){for(var e=0;en?n:4,e(!0);var o=fy.transition;fy.transition={};try{e(!1),t()}finally{ft=n,fy.transition=o}}function Ak(){return Er().memoizedState}function fD(e,t,n){var o=oa(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},Mk(e))Dk(t,n);else if(n=dk(e,t,n,o),n!==null){var r=io();Zr(n,e,o,r),zk(n,t,o)}}function pD(e,t,n){var o=oa(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mk(e))Dk(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(r.hasEagerState=!0,r.eagerState=a,Kr(a,s)){var l=t.interleaved;l===null?(r.next=r,Rw(t)):(r.next=l.next,l.next=r),t.interleaved=r;return}}catch{}finally{}n=dk(e,t,r,o),n!==null&&(r=io(),Zr(n,e,o,r),zk(n,t,o))}}function Mk(e){var t=e.alternate;return e===Vt||t!==null&&t===Vt}function Dk(e,t){td=Zh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zk(e,t,n){if(n&4194240){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,gw(e,n)}}var Jh={readContext:Tr,useCallback:Bn,useContext:Bn,useEffect:Bn,useImperativeHandle:Bn,useInsertionEffect:Bn,useLayoutEffect:Bn,useMemo:Bn,useReducer:Bn,useRef:Bn,useState:Bn,useDebugValue:Bn,useDeferredValue:Bn,useTransition:Bn,useMutableSource:Bn,useSyncExternalStore:Bn,useId:Bn,unstable_isNewReconciler:!1},hD={readContext:Tr,useCallback:function(e,t){return pi().memoizedState=[e,t===void 0?null:t],e},useContext:Tr,useEffect:tS,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,th(4194308,4,Lk.bind(null,t,e),n)},useLayoutEffect:function(e,t){return th(4194308,4,e,t)},useInsertionEffect:function(e,t){return th(4,2,e,t)},useMemo:function(e,t){var n=pi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=pi();return t=n!==void 0?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=fD.bind(null,Vt,e),[o.memoizedState,e]},useRef:function(e){var t=pi();return e={current:e},t.memoizedState=e},useState:eS,useDebugValue:$w,useDeferredValue:function(e){return pi().memoizedState=e},useTransition:function(){var e=eS(!1),t=e[0];return e=dD.bind(null,e[1]),pi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=Vt,r=pi();if(Dt){if(n===void 0)throw Error(te(407));n=n()}else{if(n=t(),wn===null)throw Error(te(349));il&30||wk(o,t,n)}r.memoizedState=n;var i={value:n,getSnapshot:t};return r.queue=i,tS(xk.bind(null,o,i,e),[e]),o.flags|=2048,Md(9,_k.bind(null,o,i,n,t),void 0,null),n},useId:function(){var e=pi(),t=wn.identifierPrefix;if(Dt){var n=Wi,o=ji;n=(o&~(1<<32-Xr(o)-1)).toString(32)+n,t=":"+t+"R"+n,n=Od++,0<\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=s.createElement(n,{is:o.is}):(e=s.createElement(n),n==="select"&&(s=e,o.multiple?s.multiple=!0:o.size&&(s.size=o.size))):e=s.createElementNS(e,n),e[yi]=t,e[Id]=o,qk(e,t,!1,!1),t.stateNode=e;e:{switch(s=Zv(n,o),n){case"dialog":Nt("cancel",e),Nt("close",e),r=o;break;case"iframe":case"object":case"embed":Nt("load",e),r=o;break;case"video":case"audio":for(r=0;r<$u.length;r++)Nt($u[r],e);r=o;break;case"source":Nt("error",e),r=o;break;case"img":case"image":case"link":Nt("error",e),Nt("load",e),r=o;break;case"details":Nt("toggle",e),r=o;break;case"input":bx(e,o),r=jv(e,o),Nt("invalid",e);break;case"option":r=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=Ut({},o,{value:void 0}),Nt("invalid",e);break;case"textarea":_x(e,o),r=Gv(e,o),Nt("invalid",e);break;default:r=o}Xv(n,r),a=r;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?T4(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&x4(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&wd(e,l):typeof l=="number"&&wd(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(bd.hasOwnProperty(i)?l!=null&&i==="onScroll"&&Nt("scroll",e):l!=null&&uw(e,i,l,s))}switch(n){case"input":Jf(e),wx(e,o,!1);break;case"textarea":Jf(e),xx(e);break;case"option":o.value!=null&&e.setAttribute("value",""+aa(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?nc(e,!!o.multiple,i,!1):o.defaultValue!=null&&nc(e,!!o.multiple,o.defaultValue,!0);break;default:typeof r.onClick=="function"&&(e.onclick=Hh)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return $n(t),null;case 6:if(e&&t.stateNode!=null)Yk(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(te(166));if(n=$a(Nd.current),$a(Ti.current),sp(t)){if(o=t.stateNode,n=t.memoizedProps,o[yi]=t,(i=o.nodeValue!==n)&&(e=Xo,e!==null))switch(e.tag){case 3:ip(o.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ip(o.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[yi]=t,t.stateNode=o}return $n(t),null;case 13:if(At(Ht),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Dt&&Go!==null&&t.mode&1&&!(t.flags&128))dk(),Sc(),t.flags|=98560,i=!1;else if(i=sp(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(te(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(te(317));i[yi]=t}else Sc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;$n(t),i=!1}else Hr!==null&&(R1(Hr),Hr=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,t.mode&1&&(e===null||Ht.current&1?ln===0&&(ln=3):qw())),t.updateQueue!==null&&(t.flags|=4),$n(t),null);case 4:return Ec(),x1(e,t),e===null&&kd(t.stateNode.containerInfo),$n(t),null;case 10:return Iw(t.type._context),$n(t),null;case 17:return Lo(t.type)&&Vh(),$n(t),null;case 19:if(At(Ht),i=t.memoizedState,i===null)return $n(t),null;if(o=(t.flags&128)!==0,s=i.rendering,s===null)if(o)mu(i,!1);else{if(ln!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Xh(e),s!==null){for(t.flags|=128,mu(i,!1),o=s.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;n!==null;)i=n,e=o,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Lt(Ht,Ht.current&1|2),t.child}e=e.sibling}i.tail!==null&&Zt()>kc&&(t.flags|=128,o=!0,mu(i,!1),t.lanes=4194304)}else{if(!o)if(e=Xh(s),e!==null){if(t.flags|=128,o=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!Dt)return $n(t),null}else 2*Zt()-i.renderingStartTime>kc&&n!==1073741824&&(t.flags|=128,o=!0,mu(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Zt(),t.sibling=null,n=Ht.current,Lt(Ht,o?n&1|2:n&1),t):($n(t),null);case 22:case 23:return Ww(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&t.mode&1?$o&1073741824&&($n(t),t.subtreeFlags&6&&(t.flags|=8192)):$n(t),null;case 24:return null;case 25:return null}throw Error(te(156,t.tag))}function SD(e,t){switch(Ew(t),t.tag){case 1:return Lo(t.type)&&Vh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ec(),At(ko),At(Yn),Mw(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Aw(t),null;case 13:if(At(Ht),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(te(340));Sc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return At(Ht),null;case 4:return Ec(),null;case 10:return Iw(t.type._context),null;case 22:case 23:return Ww(),null;case 24:return null;default:return null}}var cp=!1,Wn=!1,TD=typeof WeakSet=="function"?WeakSet:Set,le=null;function Jl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(o){qt(e,t,o)}else n.current=null}function S1(e,t,n){try{n()}catch(o){qt(e,t,o)}}var dS=!1;function ED(e,t){if(s1=Bh,e=K4(),Sw(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var r=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,d=e,m=null;t:for(;;){for(var p;d!==n||r!==0&&d.nodeType!==3||(a=s+r),d!==i||o!==0&&d.nodeType!==3||(l=s+o),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)m=d,d=p;for(;;){if(d===e)break t;if(m===n&&++c===r&&(a=s),m===i&&++u===o&&(l=s),(p=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(a1={focusedElem:e,selectionRange:n},Bh=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var f=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var g=f.memoizedProps,b=f.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:Br(t.type,g),b);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(te(163))}}catch(_){qt(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return f=dS,dS=!1,f}function nd(e,t,n){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var r=o=o.next;do{if((r.tag&e)===e){var i=r.destroy;r.destroy=void 0,i!==void 0&&S1(t,n,i)}r=r.next}while(r!==o)}}function cg(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function T1(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Xk(e){var t=e.alternate;t!==null&&(e.alternate=null,Xk(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[yi],delete t[Id],delete t[u1],delete t[aD],delete t[lD])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zk(e){return e.tag===5||e.tag===3||e.tag===4}function fS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zk(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function E1(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Hh));else if(o!==4&&(e=e.child,e!==null))for(E1(e,t,n),e=e.sibling;e!==null;)E1(e,t,n),e=e.sibling}function C1(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(C1(e,t,n),e=e.sibling;e!==null;)C1(e,t,n),e=e.sibling}var En=null,$r=!1;function xs(e,t,n){for(n=n.child;n!==null;)Jk(e,t,n),n=n.sibling}function Jk(e,t,n){if(Si&&typeof Si.onCommitFiberUnmount=="function")try{Si.onCommitFiberUnmount(tg,n)}catch{}switch(n.tag){case 5:Wn||Jl(n,t);case 6:var o=En,r=$r;En=null,xs(e,t,n),En=o,$r=r,En!==null&&($r?(e=En,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):En.removeChild(n.stateNode));break;case 18:En!==null&&($r?(e=En,n=n.stateNode,e.nodeType===8?cy(e.parentNode,n):e.nodeType===1&&cy(e,n),Td(e)):cy(En,n.stateNode));break;case 4:o=En,r=$r,En=n.stateNode.containerInfo,$r=!0,xs(e,t,n),En=o,$r=r;break;case 0:case 11:case 14:case 15:if(!Wn&&(o=n.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){r=o=o.next;do{var i=r,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&S1(n,t,s),r=r.next}while(r!==o)}xs(e,t,n);break;case 1:if(!Wn&&(Jl(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(a){qt(n,t,a)}xs(e,t,n);break;case 21:xs(e,t,n);break;case 22:n.mode&1?(Wn=(o=Wn)||n.memoizedState!==null,xs(e,t,n),Wn=o):xs(e,t,n);break;default:xs(e,t,n)}}function pS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new TD),t.forEach(function(o){var r=MD.bind(null,e,o);n.has(o)||(n.add(o),o.then(r,r))})}}function Ar(e,t){var n=t.deletions;if(n!==null)for(var o=0;or&&(r=s),o&=~i}if(o=r,o=Zt()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*kD(o/1960))-o,10e?16:e,qs===null)var o=!1;else{if(e=qs,qs=null,em=0,Je&6)throw Error(te(331));var r=Je;for(Je|=4,le=e.current;le!==null;){var i=le,s=i.child;if(le.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lZt()-Uw?Ya(e,0):Vw|=n),Io(e,t)}function i6(e,t){t===0&&(e.mode&1?(t=ep,ep<<=1,!(ep&130023424)&&(ep=4194304)):t=1);var n=io();e=ts(e,t),e!==null&&(mf(e,t,n),Io(e,n))}function AD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),i6(e,n)}function MD(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(te(314))}o!==null&&o.delete(t),i6(e,n)}var s6;s6=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ko.current)Eo=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Eo=!1,_D(e,t,n);Eo=!!(e.flags&131072)}else Eo=!1,Dt&&t.flags&1048576&&ck(t,Wh,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;nh(e,t),e=t.pendingProps;var r=xc(t,Yn.current);sc(t,n),r=zw(null,t,o,e,r,n);var i=Pw();return t.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Lo(o)?(i=!0,Uh(t)):i=!1,t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Nw(t),r.updater=ag,t.stateNode=r,r._reactInternals=t,g1(t,o,e,n),t=b1(null,t,o,!0,i,n)):(t.tag=0,Dt&&i&&Tw(t),eo(null,t,r,n),t=t.child),t;case 16:o=t.elementType;e:{switch(nh(e,t),e=t.pendingProps,r=o._init,o=r(o._payload),t.type=o,r=t.tag=zD(o),e=Br(o,e),r){case 0:t=v1(null,t,o,e,n);break e;case 1:t=lS(null,t,o,e,n);break e;case 11:t=sS(null,t,o,e,n);break e;case 14:t=aS(null,t,o,Br(o.type,e),n);break e}throw Error(te(306,o,""))}return t;case 0:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Br(o,r),v1(e,t,o,r,n);case 1:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Br(o,r),lS(e,t,o,r,n);case 3:e:{if(Uk(t),e===null)throw Error(te(387));o=t.pendingProps,i=t.memoizedState,r=i.element,pk(e,t),Yh(t,o,null,n);var s=t.memoizedState;if(o=s.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){r=Cc(Error(te(423)),t),t=cS(e,t,o,n,r);break e}else if(o!==r){r=Cc(Error(te(424)),t),t=cS(e,t,o,n,r);break e}else for(Go=ea(t.stateNode.containerInfo.firstChild),Xo=t,Dt=!0,Hr=null,n=yk(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sc(),o===r){t=ns(e,t,n);break e}eo(e,t,o,n)}t=t.child}return t;case 5:return vk(t),e===null&&p1(t),o=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,s=r.children,l1(o,r)?s=null:i!==null&&l1(o,i)&&(t.flags|=32),Vk(e,t),eo(e,t,s,n),t.child;case 6:return e===null&&p1(t),null;case 13:return jk(e,t,n);case 4:return Ow(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Tc(t,null,o,n):eo(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Br(o,r),sS(e,t,o,r,n);case 7:return eo(e,t,t.pendingProps,n),t.child;case 8:return eo(e,t,t.pendingProps.children,n),t.child;case 12:return eo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,i=t.memoizedProps,s=r.value,Lt(qh,o._currentValue),o._currentValue=s,i!==null)if(Kr(i.value,s)){if(i.children===r.children&&!ko.current){t=ns(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===o){if(i.tag===1){l=Xi(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),h1(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(te(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),h1(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}eo(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=t.pendingProps.children,sc(t,n),r=Tr(r),o=o(r),t.flags|=1,eo(e,t,o,n),t.child;case 14:return o=t.type,r=Br(o,t.pendingProps),r=Br(o.type,r),aS(e,t,o,r,n);case 15:return Fk(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:Br(o,r),nh(e,t),t.tag=1,Lo(o)?(e=!0,Uh(t)):e=!1,sc(t,n),mk(t,o,r),g1(t,o,r,n),b1(null,t,o,!0,e,n);case 19:return Wk(e,t,n);case 22:return Hk(e,t,n)}throw Error(te(156,t.tag))};function a6(e,t){return A4(e,t)}function DD(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yr(e,t,n,o){return new DD(e,t,n,o)}function Gw(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zD(e){if(typeof e=="function")return Gw(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fw)return 11;if(e===pw)return 14}return 2}function ra(e,t){var n=e.alternate;return n===null?(n=yr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ih(e,t,n,o,r,i){var s=2;if(o=e,typeof e=="function")Gw(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Vl:return Xa(n.children,r,i,t);case dw:s=8,r|=8;break;case Fv:return e=yr(12,n,t,r|2),e.elementType=Fv,e.lanes=i,e;case Hv:return e=yr(13,n,t,r),e.elementType=Hv,e.lanes=i,e;case Vv:return e=yr(19,n,t,r),e.elementType=Vv,e.lanes=i,e;case g4:return dg(n,r,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case h4:s=10;break e;case m4:s=9;break e;case fw:s=11;break e;case pw:s=14;break e;case Ms:s=16,o=null;break e}throw Error(te(130,e==null?e:typeof e,""))}return t=yr(s,n,t,r),t.elementType=e,t.type=o,t.lanes=i,t}function Xa(e,t,n,o){return e=yr(7,e,o,t),e.lanes=n,e}function dg(e,t,n,o){return e=yr(22,e,o,t),e.elementType=g4,e.lanes=n,e.stateNode={isHidden:!1},e}function yy(e,t,n){return e=yr(6,e,null,t),e.lanes=n,e}function vy(e,t,n){return t=yr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function PD(e,t,n,o,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=K0(0),this.expirationTimes=K0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=K0(0),this.identifierPrefix=o,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Yw(e,t,n,o,r,i,s,a,l){return e=new PD(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=yr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nw(i),e}function BD(e,t,n){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d6)}catch(e){console.error(e)}}d6(),c4.exports=or;var Ln=c4.exports;const UD=ow(Ln);var f6,_S=Ln;f6=_S.createRoot,_S.hydrateRoot;var p6={exports:{}},gg={};var jD=h,WD=Symbol.for("react.element"),qD=Symbol.for("react.fragment"),GD=Object.prototype.hasOwnProperty,YD=jD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,XD={key:!0,ref:!0,__self:!0,__source:!0};function h6(e,t,n){var o,r={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(o in t)GD.call(t,o)&&!XD.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)r[o]===void 0&&(r[o]=t[o]);return{$$typeof:WD,type:e,key:i,ref:s,props:r,_owner:YD.current}}gg.Fragment=qD;gg.jsx=h6;gg.jsxs=h6;p6.exports=gg;var C=p6.exports;const om=Math.min,Za=Math.max,rm=Math.round,fp=Math.floor,ca=e=>({x:e,y:e}),ZD={left:"right",right:"left",bottom:"top",top:"bottom"},JD={start:"end",end:"start"};function xS(e,t,n){return Za(e,om(t,n))}function Kw(e,t){return typeof e=="function"?e(t):e}function Lc(e){return e.split("-")[0]}function Qw(e){return e.split("-")[1]}function m6(e){return e==="x"?"y":"x"}function g6(e){return e==="y"?"height":"width"}function e_(e){return["top","bottom"].includes(Lc(e))?"y":"x"}function y6(e){return m6(e_(e))}function KD(e,t,n){n===void 0&&(n=!1);const o=Qw(e),r=y6(e),i=g6(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=im(s)),[s,im(s)]}function QD(e){const t=im(e);return[N1(e),t,N1(t)]}function N1(e){return e.replace(/start|end/g,t=>JD[t])}function ez(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:s;default:return[]}}function tz(e,t,n,o){const r=Qw(e);let i=ez(Lc(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(N1)))),i}function im(e){return e.replace(/left|right|bottom|top/g,t=>ZD[t])}function nz(e){return{top:0,right:0,bottom:0,left:0,...e}}function oz(e){return typeof e!="number"?nz(e):{top:e,right:e,bottom:e,left:e}}function sm(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function SS(e,t,n){let{reference:o,floating:r}=e;const i=e_(t),s=y6(t),a=g6(s),l=Lc(t),c=i==="y",u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,m=o[a]/2-r[a]/2;let p;switch(l){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(Qw(t)){case"start":p[s]-=m*(n&&c?-1:1);break;case"end":p[s]+=m*(n&&c?-1:1);break}return p}const rz=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=SS(c,o,l),m=o,p={},f=0;for(let g=0;gR<=0)){var N,I;const R=(((N=i.flip)==null?void 0:N.index)||0)+1,z=S[R];if(z)return{data:{index:R,overflows:E},reset:{placement:z}};let k=(I=E.filter(M=>M.overflows[0]<=0).sort((M,D)=>M.overflows[1]-D.overflows[1])[0])==null?void 0:I.placement;if(!k)switch(p){case"bestFit":{var O;const M=(O=E.map(D=>[D.placement,D.overflows.filter($=>$>0).reduce(($,A)=>$+A,0)]).sort((D,$)=>D[1]-$[1])[0])==null?void 0:O[0];M&&(k=M);break}case"initialPlacement":k=a;break}if(r!==k)return{reset:{placement:k}}}return{}}}},sz=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...l}=Kw(e,t),c={x:n,y:o},u=await v6(t,l),d=e_(Lc(r)),m=m6(d);let p=c[m],f=c[d];if(i){const b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",v=p+u[b],w=p-u[y];p=xS(v,p,w)}if(s){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=f+u[b],w=f-u[y];f=xS(v,f,w)}const g=a.fn({...t,[m]:p,[d]:f});return{...g,data:{x:g.x-n,y:g.y-o}}}}};function ua(e){return b6(e)?(e.nodeName||"").toLowerCase():"#document"}function Zo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fs(e){var t;return(t=(b6(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function b6(e){return e instanceof Node||e instanceof Zo(e).Node}function os(e){return e instanceof Element||e instanceof Zo(e).Element}function Li(e){return e instanceof HTMLElement||e instanceof Zo(e).HTMLElement}function TS(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Zo(e).ShadowRoot}function bf(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Cr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function az(e){return["table","td","th"].includes(ua(e))}function t_(e){const t=n_(),n=Cr(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function w6(e){let t=Ic(e);for(;Li(t)&&!yg(t);){if(t_(t))return t;t=Ic(t)}return null}function n_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function yg(e){return["html","body","#document"].includes(ua(e))}function Cr(e){return Zo(e).getComputedStyle(e)}function vg(e){return os(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ic(e){if(ua(e)==="html")return e;const t=e.assignedSlot||e.parentNode||TS(e)&&e.host||fs(e);return TS(t)?t.host:t}function _6(e){const t=Ic(e);return yg(t)?e.ownerDocument?e.ownerDocument.body:e.body:Li(t)&&bf(t)?t:_6(t)}function zd(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=_6(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=Zo(r);return i?t.concat(s,s.visualViewport||[],bf(r)?r:[],s.frameElement&&n?zd(s.frameElement):[]):t.concat(r,zd(r,[],n))}function x6(e){const t=Cr(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Li(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=rm(n)!==i||rm(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function o_(e){return os(e)?e:e.contextElement}function lc(e){const t=o_(e);if(!Li(t))return ca(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=x6(t);let s=(i?rm(n.width):n.width)/o,a=(i?rm(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const lz=ca(0);function S6(e){const t=Zo(e);return!n_()||!t.visualViewport?lz:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cz(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Zo(e)?!1:t}function ll(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=o_(e);let s=ca(1);t&&(o?os(o)&&(s=lc(o)):s=lc(e));const a=cz(i,n,o)?S6(i):ca(0);let l=(r.left+a.x)/s.x,c=(r.top+a.y)/s.y,u=r.width/s.x,d=r.height/s.y;if(i){const m=Zo(i),p=o&&os(o)?Zo(o):o;let f=m.frameElement;for(;f&&o&&p!==m;){const g=lc(f),b=f.getBoundingClientRect(),y=Cr(f),v=b.left+(f.clientLeft+parseFloat(y.paddingLeft))*g.x,w=b.top+(f.clientTop+parseFloat(y.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=v,c+=w,f=Zo(f).frameElement}}return sm({width:u,height:d,x:l,y:c})}const uz=[":popover-open",":modal"];function T6(e){let t=!1,n=0,o=0;function r(i){try{t=t||e.matches(i)}catch{}}if(uz.forEach(i=>{r(i)}),t){const i=w6(e);if(i){const s=i.getBoundingClientRect();n=s.x,o=s.y}}return[t,n,o]}function dz(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=fs(o),[s]=t?T6(t.floating):[!1];if(o===i||s)return n;let a={scrollLeft:0,scrollTop:0},l=ca(1);const c=ca(0),u=Li(o);if((u||!u&&r!=="fixed")&&((ua(o)!=="body"||bf(i))&&(a=vg(o)),Li(o))){const d=ll(o);l=lc(o),c.x=d.x+o.clientLeft,c.y=d.y+o.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+c.x,y:n.y*l.y-a.scrollTop*l.y+c.y}}function fz(e){return Array.from(e.getClientRects())}function E6(e){return ll(fs(e)).left+vg(e).scrollLeft}function pz(e){const t=fs(e),n=vg(e),o=e.ownerDocument.body,r=Za(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=Za(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+E6(e);const a=-n.scrollTop;return Cr(o).direction==="rtl"&&(s+=Za(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:a}}function hz(e,t){const n=Zo(e),o=fs(e),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;const c=n_();(!c||c&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a,y:l}}function mz(e,t){const n=ll(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Li(e)?lc(e):ca(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,c=o*i.y;return{width:s,height:a,x:l,y:c}}function ES(e,t,n){let o;if(t==="viewport")o=hz(e,n);else if(t==="document")o=pz(fs(e));else if(os(t))o=mz(t,n);else{const r=S6(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return sm(o)}function C6(e,t){const n=Ic(e);return n===t||!os(n)||yg(n)?!1:Cr(n).position==="fixed"||C6(n,t)}function gz(e,t){const n=t.get(e);if(n)return n;let o=zd(e,[],!1).filter(a=>os(a)&&ua(a)!=="body"),r=null;const i=Cr(e).position==="fixed";let s=i?Ic(e):e;for(;os(s)&&!yg(s);){const a=Cr(s),l=t_(s);!l&&a.position==="fixed"&&(r=null),(i?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||bf(s)&&!l&&C6(e,s))?o=o.filter(u=>u!==s):r=a,s=Ic(s)}return t.set(e,o),o}function yz(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?gz(t,this._c):[].concat(n),o],a=s[0],l=s.reduce((c,u)=>{const d=ES(t,u,r);return c.top=Za(d.top,c.top),c.right=om(d.right,c.right),c.bottom=om(d.bottom,c.bottom),c.left=Za(d.left,c.left),c},ES(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function vz(e){const{width:t,height:n}=x6(e);return{width:t,height:n}}function bz(e,t,n,o){const r=Li(t),i=fs(t),s=n==="fixed",a=ll(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const c=ca(0);if(r||!r&&!s)if((ua(t)!=="body"||bf(i))&&(l=vg(t)),r){const g=ll(t,!0,s,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else i&&(c.x=E6(i));let u=a.left+l.scrollLeft-c.x,d=a.top+l.scrollTop-c.y;const[m,p,f]=T6(o);return m&&(u+=p,d+=f,r&&(u+=t.clientLeft,d+=t.clientTop)),{x:u,y:d,width:a.width,height:a.height}}function CS(e,t){return!Li(e)||Cr(e).position==="fixed"?null:t?t(e):e.offsetParent}function k6(e,t){const n=Zo(e);if(!Li(e))return n;let o=CS(e,t);for(;o&&az(o)&&Cr(o).position==="static";)o=CS(o,t);return o&&(ua(o)==="html"||ua(o)==="body"&&Cr(o).position==="static"&&!t_(o))?n:o||w6(e)||n}const wz=async function(e){const t=this.getOffsetParent||k6,n=this.getDimensions;return{reference:bz(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function _z(e){return Cr(e).direction==="rtl"}const xz={convertOffsetParentRelativeRectToViewportRelativeRect:dz,getDocumentElement:fs,getClippingRect:yz,getOffsetParent:k6,getElementRects:wz,getClientRects:fz,getDimensions:vz,getScale:lc,isElement:os,isRTL:_z};function Sz(e,t){let n=null,o;const r=fs(e);function i(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:m}=e.getBoundingClientRect();if(a||t(),!d||!m)return;const p=fp(u),f=fp(r.clientWidth-(c+d)),g=fp(r.clientHeight-(u+m)),b=fp(c),v={rootMargin:-p+"px "+-f+"px "+-g+"px "+-b+"px",threshold:Za(0,om(1,l))||1};let w=!0;function _(S){const x=S[0].intersectionRatio;if(x!==l){if(!w)return s();x?s(!1,x):o=setTimeout(()=>{s(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(_,{...v,root:r.ownerDocument})}catch{n=new IntersectionObserver(_,v)}n.observe(e)}return s(!0),i}function L6(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=o_(e),u=r||i?[...c?zd(c):[],...zd(t)]:[];u.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=c&&a?Sz(c,n):null;let m=-1,p=null;s&&(p=new ResizeObserver(y=>{let[v]=y;v&&v.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=p)==null||w.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let f,g=l?ll(e):null;l&&b();function b(){const y=ll(e);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&n(),g=y,f=requestAnimationFrame(b)}return n(),()=>{var y;u.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),d?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const Tz=sz,Ez=iz,Cz=(e,t,n)=>{const o=new Map,r={platform:xz,...n},i={...r.platform,_c:o};return rz(e,t,{...r,platform:i})};function I6(){const[e,t]=h.useReducer(n=>n+1,0);return t}function kz(){return so(pf)}function kr(e,t,n,o){h.useEffect(()=>(e.subscribe(t),()=>{e.unsubscribe(t),o?.()}),[e,t,o,...n??[]])}function so(e,t){const n=e.last===void 0?t:i(e.last),[o,r]=h.useState(n);return kr(e,(...s)=>r(i(s)),[]),o;function i(s){return s[0]===null?void 0:s[0]}}function Lz(e,t){const n=h.useRef(t??null);return h.useEffect(()=>{e&&(typeof e=="function"?e(n.current):e.current=n.current)},[e]),n}function Iz(){for(var e=arguments.length,t=new Array(e),n=0;no=>{t.forEach(r=>r(o))},t)}const bg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gc(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function r_(e){return"nodeType"in e}function co(e){var t,n;return e?Gc(e)?e:r_(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function i_(e){const{Document:t}=co(e);return e instanceof t}function wf(e){return Gc(e)?!1:e instanceof co(e).HTMLElement}function R6(e){return e instanceof co(e).SVGElement}function Yc(e){return e?Gc(e)?e.document:r_(e)?i_(e)?e:wf(e)||R6(e)?e.ownerDocument:document:document:document}const Lr=bg?h.useLayoutEffect:h.useEffect;function wg(e){const t=h.useRef(e);return Lr(()=>{t.current=e}),h.useCallback(function(){for(var n=arguments.length,o=new Array(n),r=0;r{e.current=setInterval(o,r)},[]),n=h.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Pd(e,t){t===void 0&&(t=[e]);const n=h.useRef(e);return Lr(()=>{n.current!==e&&(n.current=e)},t),n}function _f(e,t){const n=h.useRef();return h.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function am(e){const t=wg(e),n=h.useRef(null),o=h.useCallback(r=>{r!==n.current&&t?.(r,n.current),n.current=r},[]);return[n,o]}function lm(e){const t=h.useRef();return h.useEffect(()=>{t.current=e},[e]),t.current}let by={};function xf(e,t){return h.useMemo(()=>{if(t)return t;const n=by[e]==null?0:by[e]+1;return by[e]=n,e+"-"+n},[e,t])}function N6(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r{const a=Object.entries(s);for(const[l,c]of a){const u=i[l];u!=null&&(i[l]=u+e*c)}return i},{...t})}}const cc=N6(1),cm=N6(-1);function Nz(e){return"clientX"in e&&"clientY"in e}function _g(e){if(!e)return!1;const{KeyboardEvent:t}=co(e.target);return t&&e instanceof t}function Oz(e){if(!e)return!1;const{TouchEvent:t}=co(e.target);return t&&e instanceof t}function um(e){if(Oz(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Nz(e)?{x:e.clientX,y:e.clientY}:null}const rs=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[rs.Translate.toString(e),rs.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),kS="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Az(e){return e.matches(kS)?e:e.querySelector(kS)}const Mz={display:"none"};function Dz(e){let{id:t,value:n}=e;return B.createElement("div",{id:t,style:Mz},n)}function zz(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;const r={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return B.createElement("div",{id:t,style:r,role:"status","aria-live":o,"aria-atomic":!0},n)}function Pz(){const[e,t]=h.useState("");return{announce:h.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const O6=h.createContext(null);function Bz(e){const t=h.useContext(O6);h.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function $z(){const[e]=h.useState(()=>new Set),t=h.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[h.useCallback(o=>{let{type:r,event:i}=o;e.forEach(s=>{var a;return(a=s[r])==null?void 0:a.call(s,i)})},[e]),t]}const Fz={draggable:` +`+i.stack}return{value:e,source:t,stack:r,digest:null}}function my(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function y1(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var yD=typeof WeakMap=="function"?WeakMap:Map;function Pk(e,t,n){n=Xi(-1,n),n.tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Qh||(Qh=!0,k1=o),y1(e,t)},n}function Bk(e,t,n){n=Xi(-1,n),n.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var r=t.value;n.payload=function(){return o(r)},n.callback=function(){y1(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){y1(e,t),typeof o!="function"&&(na===null?na=new Set([this]):na.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function nS(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new yD;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(n)||(r.add(n),e=ND.bind(null,e,t,n),t.then(e,e))}function oS(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function rS(e,t,n,o,r){return e.mode&1?(e.flags|=65536,e.lanes=r,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Xi(-1,1),t.tag=2,ta(n,t,1))),n.lanes|=1),e)}var vD=ds.ReactCurrentOwner,Eo=!1;function eo(e,t,n,o){t.child=e===null?gk(t,null,n,o):Tc(t,e.child,n,o)}function iS(e,t,n,o,r){n=n.render;var i=t.ref;return sc(t,r),o=zw(e,t,n,o,i,r),n=Pw(),e!==null&&!Eo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,ns(e,t,r)):(Dt&&n&&Tw(t),t.flags|=1,eo(e,t,o,r),t.child)}function sS(e,t,n,o,r){if(e===null){var i=n.type;return typeof i=="function"&&!Gw(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,$k(e,t,i,o,r)):(e=ih(n.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&r)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Cd,n(s,o)&&e.ref===t.ref)return ns(e,t,r)}return t.flags|=1,e=ra(i,o),e.ref=t.ref,e.return=t,t.child=e}function $k(e,t,n,o,r){if(e!==null){var i=e.memoizedProps;if(Cd(i,o)&&e.ref===t.ref)if(Eo=!1,t.pendingProps=o=i,(e.lanes&r)!==0)e.flags&131072&&(Eo=!0);else return t.lanes=e.lanes,ns(e,t,r)}return v1(e,t,n,o,r)}function Fk(e,t,n){var o=t.pendingProps,r=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lt(Kl,$o),$o|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Lt(Kl,$o),$o|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:n,Lt(Kl,$o),$o|=o}else i!==null?(o=i.baseLanes|n,t.memoizedState=null):o=n,Lt(Kl,$o),$o|=o;return eo(e,t,r,n),t.child}function Hk(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function v1(e,t,n,o,r){var i=Lo(n)?ol:Yn.current;return i=xc(t,i),sc(t,r),n=zw(e,t,n,o,i,r),o=Pw(),e!==null&&!Eo?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,ns(e,t,r)):(Dt&&o&&Tw(t),t.flags|=1,eo(e,t,n,r),t.child)}function aS(e,t,n,o,r){if(Lo(n)){var i=!0;Uh(t)}else i=!1;if(sc(t,r),t.stateNode===null)nh(e,t),hk(t,n,o),g1(t,n,o,r),o=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=Tr(c):(c=Lo(n)?ol:Yn.current,c=xc(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==o||l!==c)&&Kx(t,s,o,c),Ds=!1;var m=t.memoizedState;s.state=m,Yh(t,o,s,r),l=t.memoizedState,a!==o||m!==l||ko.current||Ds?(typeof u=="function"&&(m1(t,n,u,o),l=t.memoizedState),(a=Ds||Jx(t,n,a,o,m,l,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=l),s.props=o,s.state=l,s.context=c,o=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{s=t.stateNode,fk(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Br(t.type,a),s.props=c,d=t.pendingProps,m=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Tr(l):(l=Lo(n)?ol:Yn.current,l=xc(t,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||m!==l)&&Kx(t,s,o,l),Ds=!1,m=t.memoizedState,s.state=m,Yh(t,o,s,r);var f=t.memoizedState;a!==d||m!==f||ko.current||Ds?(typeof p=="function"&&(m1(t,n,p,o),f=t.memoizedState),(c=Ds||Jx(t,n,c,o,m,f,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(o,f,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(o,f,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),s.props=o,s.state=f,s.context=l,o=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),o=!1)}return b1(e,t,n,o,i,r)}function b1(e,t,n,o,r,i){Hk(e,t);var s=(t.flags&128)!==0;if(!o&&!s)return r&&qx(t,n,!1),ns(e,t,i);o=t.stateNode,vD.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&s?(t.child=Tc(t,e.child,null,i),t.child=Tc(t,null,a,i)):eo(e,t,a,i),t.memoizedState=o.state,r&&qx(t,n,!0),t.child}function Vk(e){var t=e.stateNode;t.pendingContext?Wx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Wx(e,t.context,!1),Ow(e,t.containerInfo)}function lS(e,t,n,o,r){return Sc(),Cw(r),t.flags|=256,eo(e,t,n,o),t.child}var w1={dehydrated:null,treeContext:null,retryLane:0};function _1(e){return{baseLanes:e,cachePool:null,transitions:null}}function Uk(e,t,n){var o=t.pendingProps,r=Ht.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(r&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r|=1),Lt(Ht,r&1),e===null)return p1(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,i?(o=t.mode,i=t.child,s={mode:"hidden",children:s},!(o&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=dg(s,o,0,null),e=Xa(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=_1(n),t.memoizedState=w1,e):Fw(t,s));if(r=e.memoizedState,r!==null&&(a=r.dehydrated,a!==null))return bD(e,t,s,o,a,r,n);if(i){i=o.fallback,s=t.mode,r=e.child,a=r.sibling;var l={mode:"hidden",children:o.children};return!(s&1)&&t.child!==r?(o=t.child,o.childLanes=0,o.pendingProps=l,t.deletions=null):(o=ra(r,l),o.subtreeFlags=r.subtreeFlags&14680064),a!==null?i=ra(a,i):(i=Xa(i,s,n,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,s=e.child.memoizedState,s=s===null?_1(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=w1,o}return i=e.child,e=i.sibling,o=ra(i,{mode:"visible",children:o.children}),!(t.mode&1)&&(o.lanes=n),o.return=t,o.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Fw(e,t){return t=dg({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function lp(e,t,n,o){return o!==null&&Cw(o),Tc(t,e.child,null,n),e=Fw(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bD(e,t,n,o,r,i,s){if(n)return t.flags&256?(t.flags&=-257,o=my(Error(te(422))),lp(e,t,s,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,r=t.mode,o=dg({mode:"visible",children:o.children},r,0,null),i=Xa(i,r,s,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,t.mode&1&&Tc(t,e.child,null,s),t.child.memoizedState=_1(s),t.memoizedState=w1,i);if(!(t.mode&1))return lp(e,t,s,null);if(r.data==="$!"){if(o=r.nextSibling&&r.nextSibling.dataset,o)var a=o.dgst;return o=a,i=Error(te(419)),o=my(i,o,void 0),lp(e,t,s,o)}if(a=(s&e.childLanes)!==0,Eo||a){if(o=wn,o!==null){switch(s&-s){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}r=r&(o.suspendedLanes|s)?0:r,r!==0&&r!==i.retryLane&&(i.retryLane=r,ts(e,r),Zr(o,e,r,-1))}return qw(),o=my(Error(te(421))),lp(e,t,s,o)}return r.data==="$?"?(t.flags|=128,t.child=e.child,t=OD.bind(null,e),r._reactRetry=t,null):(e=i.treeContext,Go=ea(r.nextSibling),Xo=t,Dt=!0,Hr=null,e!==null&&(fr[pr++]=ji,fr[pr++]=Wi,fr[pr++]=rl,ji=e.id,Wi=e.overflow,rl=t),t=Fw(t,o.children),t.flags|=4096,t)}function cS(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),h1(e.return,t,n)}function gy(e,t,n,o,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=n,i.tailMode=r)}function jk(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(eo(e,t,o.children,n),o=Ht.current,o&2)o=o&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cS(e,n,t);else if(e.tag===19)cS(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Lt(Ht,o),!(t.mode&1))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Xh(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),gy(t,!1,r,n,i);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Xh(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}gy(t,!0,n,null,i);break;case"together":gy(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function nh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ns(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sl|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(te(153));if(t.child!==null){for(e=t.child,n=ra(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ra(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wD(e,t,n){switch(t.tag){case 3:Vk(t),Sc();break;case 5:yk(t);break;case 1:Lo(t.type)&&Uh(t);break;case 4:Ow(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,r=t.memoizedProps.value;Lt(qh,o._currentValue),o._currentValue=r;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(Lt(Ht,Ht.current&1),t.flags|=128,null):n&t.child.childLanes?Uk(e,t,n):(Lt(Ht,Ht.current&1),e=ns(e,t,n),e!==null?e.sibling:null);Lt(Ht,Ht.current&1);break;case 19:if(o=(n&t.childLanes)!==0,e.flags&128){if(o)return jk(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Lt(Ht,Ht.current),o)break;return null;case 22:case 23:return t.lanes=0,Fk(e,t,n)}return ns(e,t,n)}var Wk,x1,qk,Gk;Wk=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};x1=function(){};qk=function(e,t,n,o){var r=e.memoizedProps;if(r!==o){e=t.stateNode,$a(Ti.current);var i=null;switch(n){case"input":r=jv(e,r),o=jv(e,o),i=[];break;case"select":r=Ut({},r,{value:void 0}),o=Ut({},o,{value:void 0}),i=[];break;case"textarea":r=Gv(e,r),o=Gv(e,o),i=[];break;default:typeof r.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Hh)}Xv(n,o);var s;n=null;for(c in r)if(!o.hasOwnProperty(c)&&r.hasOwnProperty(c)&&r[c]!=null)if(c==="style"){var a=r[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(bd.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var l=o[c];if(a=r?.[c],o.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(bd.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Nt("scroll",e),i||a===l||(i=[])):(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Gk=function(e,t,n,o){n!==o&&(t.flags|=4)};function mu(e,t){if(!Dt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function $n(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags&14680064,o|=r.flags&14680064,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function _D(e,t,n){var o=t.pendingProps;switch(Ew(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $n(t),null;case 1:return Lo(t.type)&&Vh(),$n(t),null;case 3:return o=t.stateNode,Ec(),At(ko),At(Yn),Mw(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(sp(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Hr!==null&&(R1(Hr),Hr=null))),x1(e,t),$n(t),null;case 5:Aw(t);var r=$a(Nd.current);if(n=t.type,e!==null&&t.stateNode!=null)qk(e,t,n,o,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(te(166));return $n(t),null}if(e=$a(Ti.current),sp(t)){o=t.stateNode,n=t.type;var i=t.memoizedProps;switch(o[yi]=t,o[Id]=i,e=(t.mode&1)!==0,n){case"dialog":Nt("cancel",o),Nt("close",o);break;case"iframe":case"object":case"embed":Nt("load",o);break;case"video":case"audio":for(r=0;r<$u.length;r++)Nt($u[r],o);break;case"source":Nt("error",o);break;case"img":case"image":case"link":Nt("error",o),Nt("load",o);break;case"details":Nt("toggle",o);break;case"input":vx(o,i),Nt("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},Nt("invalid",o);break;case"textarea":wx(o,i),Nt("invalid",o)}Xv(n,i),r=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?o.textContent!==a&&(i.suppressHydrationWarning!==!0&&ip(o.textContent,a,e),r=["children",a]):typeof a=="number"&&o.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&ip(o.textContent,a,e),r=["children",""+a]):bd.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&Nt("scroll",o)}switch(n){case"input":Jf(o),bx(o,i,!0);break;case"textarea":Jf(o),_x(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=Hh)}o=r,t.updateQueue=o,o!==null&&(t.flags|=4)}else{s=r.nodeType===9?r:r.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=w4(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML=" +