class ServiceCollection {
  constructor(...entries) {
    this._entries = /* @__PURE__ */ new Map();
    for (let [id, service] of entries) {
      this.set(id, service);
    }
  }
  set(id, instanceOrDescriptor) {
    const result = this._entries.get(id);
    this._entries.set(id, instanceOrDescriptor);
    return result;
  }
  get(id) {
    return this._entries.get(id);
  }
}
export {
  ServiceCollection
};
