var e=class extends Error{detail;constructor(e){super(e),this.name=`CommandBlockedByRuntimeLink`,this.detail=e}};function t(e){switch(e){case`live`:return null;case`booting`:return`Runtime session is still starting. Try again in a moment.`;case`reconnecting`:return`Miravo is reconnecting. Wait until the link is live, then try again.`;case`resyncing`:return`Miravo is re-syncing. Wait until the link is live, then try again.`;case`unauthenticated`:return`Session is no longer valid on the server. Sign in again if prompted.`;case`fatal`:return`Cannot reach Miravo. Recover from the error screen, then try again.`;default:return e}}function n(n){let r=t(n);if(r)throw new e(r)}export{n,t as r,e as t};