import{i as e}from"./useAnalytics-D7ict_xi.js";import{t}from"./gamestate-B11sJlid.js";var n=e(`gameState`,{state:()=>({status:t.OutOfGame,previousStatus:null,lastGameEndAt:null}),getters:{getStatus:e=>e.status,gameJustEnded:e=>e.status===t.OutOfGame&&(e.previousStatus===t.Running||e.previousStatus===t.Paused)},actions:{setGameStatus(e){e!==this.status&&(this.previousStatus=this.status,this.status=e,this.gameJustEnded&&(this.lastGameEndAt=Date.now()))}}});export{n as t};