import { clsx as e } from "clsx";
import { twMerge as t } from "tailwind-merge";
//#region src/lib/utils.ts
function n(...n) {
	return t(e(n));
}
async function r(e) {
	if (navigator.clipboard && window.isSecureContext) {
		await navigator.clipboard.writeText(e);
		return;
	}
	let t = document.createElement("textarea");
	t.value = e, t.setAttribute("readonly", ""), t.style.position = "fixed", t.style.left = "-9999px", t.style.top = "-9999px", t.style.opacity = "0", document.body.appendChild(t), t.focus(), t.select();
	try {
		document.execCommand("copy");
	} finally {
		document.body.removeChild(t);
	}
}
var i = /<\/?(script|iframe|object|embed|form|input|textarea|select|button|applet|meta|link|base|svg)\b[^>]*>/gi, a = /\s+on\w+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi, o = /\s*(?:href|src|action|formaction|data)\s*=\s*(?:"javascript:[^"]*"|'javascript:[^']*')/gi;
function s(e) {
	return e.replace(i, "").replace(a, "").replace(o, "");
}
//#endregion
export { r as n, s as r, n as t };
