"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Root=void 0;class Root{constructor(t){if(!t)throw new Error("must have a service for constructor");this.instantiationService=t}static get instance(){return this._instance||(this._instance=new this),this._instance}static set instance(t){this._instance=t}static get iis(){return this.instance.instantiationService}static initIisWithServices(t){return this._instance||(this._instance=new this(t)),this._instance}static getService(t){return new Promise(i=>{Root.iis.invokeFunction(e=>{i(e.get(t))})})}}exports.Root=Root;