/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Boot } from "#util/Boot.js";
import { DiagnosticPresentation } from "./DiagnosticPresentation.js";
let sources = /* @__PURE__ */ new Set();
const DiagnosticSource = {
  add(source) {
    sources.add(source);
  },
  delete(source) {
    sources.delete(source);
  },
  get [DiagnosticPresentation.presentation]() {
    return DiagnosticPresentation.List;
  },
  get [DiagnosticPresentation.value]() {
    const diagnostic = [];
    for (const source of sources) {
      diagnostic.push("", source);
    }
    return diagnostic;
  }
};
Boot.init(() => {
  sources = /* @__PURE__ */ new Set();
}, "state");
export {
  DiagnosticSource
};
//# sourceMappingURL=DiagnosticSource.js.map
