import { n as e } from "./dist-DPzBZL6F.js";
//#region node_modules/@capacitor/browser/dist/esm/web.js
var t = class extends e {
	constructor() {
		super(), this._lastWindow = null;
	}
	async open(e) {
		this._lastWindow = window.open(e.url, e.windowName || "_blank");
	}
	async close() {
		return new Promise((e, t) => {
			this._lastWindow == null ? t("No active window to close!") : (this._lastWindow.close(), this._lastWindow = null, e());
		});
	}
};
new t();
//#endregion
export { t as BrowserWeb };
