class DebugStore {
    messages = $state(['debug panel ready']);
    add(message) {
        this.messages.push(message);
        if (this.messages.length > 8) {
            this.messages = this.messages.slice(-8);
        }
    }
    clear() {
        this.messages = [];
    }
}
export const xrDebug = new DebugStore();
