//#region src/utils/images.ts
const loadImagePromises = /* @__PURE__ */ new Map();
/** Attempts to load the image and returns a boolean indicating success or not. */
function loadImageUrl(url) {
	let promise = loadImagePromises.get(url);
	if (promise) return promise;
	promise = new Promise((resolve) => {
		const img = new Image();
		img.onload = () => {
			resolve(true);
		};
		img.onerror = () => {
			resolve(false);
		};
		img.src = url;
	});
	loadImagePromises.set(url, promise);
	return promise;
}

//#endregion
export { loadImageUrl };
globalThis.__vuiVersion__ = "4.0.0"
//# sourceMappingURL=images.js.map