;
  }

  async open() {
    await this.panelWin.Application.bootstrap({
      toolbox: this.toolbox,
      panel: this,
    });

    this.emit("ready");
    this.isReady = true;
    return this;
  }

  destroy() {
    this.panelWin.Application.destroy();
    this.panelWin = null;
    this.toolbox = null;
    this.emit("destroyed");
  }
}

exports.ApplicationPanel = ApplicationPanel;
PK