"use client";
//#region packages/@mantine/core/src/core/utils/memoize/memoize.ts
function memoize(func) {
	const cache = /* @__PURE__ */ new Map();
	return (...args) => {
		const key = JSON.stringify(args);
		if (cache.has(key)) return cache.get(key);
		const result = func(...args);
		cache.set(key, result);
		return result;
	};
}
//#endregion
exports.memoize = memoize;

//# sourceMappingURL=memoize.cjs.map