import{InvalidOperationError as o}from"../InvalidOperationError.js";import{CollectionProxy as e}from"./CollectionProxy.js";const r="This collection is read-only.";export class ReadOnlyCollection extends e{add(e,t){throw new o(r)}removeAt(e){throw new o(r)}removeAll(){throw new o(r)}reorder(e,t){throw new o(r)}reverse(){throw new o(r)}sort(e){throw new o(r)}splice(e,t,...n){throw new o(r)}}