import { openBlock as v, createElementBlock as y } from "vue"; import { n as _ } from "./index2.js"; const g = (o = "") => String(o).replace(/&/g, "&").replace(//g, ">"), w = (o = "") => String(o).replace(/[^\w\u4e00-\u9fa5-]/g, ""), d = (o = "") => { const n = [], i = []; let e = String(o); return e = e.replace(/`([^`]+)`/g, (t, s) => (n.push(`${g(s)}`), `\0C${n.length - 1}\0`)), e = e.replace(/<\/?span[^>]*>/g, (t) => (i.push(t), `\0S${i.length - 1}\0`)), e = g(e), e = e.replace(/\[([^\]]+)\]\(([^)]+)\)/g, '$1'), e = e.replace(/\*\*([^*]+)\*\*/g, "$1"), e = e.replace(/\u0000C(\d+)\u0000/g, (t, s) => n[+s]), e = e.replace(/\u0000S(\d+)\u0000/g, (t, s) => i[+s]), e; }, m = (o = "") => o.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((n) => n.trim()), E = (o = "") => /^\s*\|?[\s:|-]+\|?\s*$/.test(o) && o.includes("-"), f = (o = "") => { const n = String(o).replace(/\r\n/g, ` `).split(` `), i = n.length; let e = 0, t = "", s = null; const r = () => { s && (t += ` `, s = null); }; for (; e < i; ) { const a = n[e], h = a.match(/^```(\w*)\s*$/); if (h) { r(); const l = h[1]; e++; const c = []; for (; e < i && !/^```\s*$/.test(n[e]); ) c.push(n[e]), e++; e++, t += `
${g(c.join(`
`))}
`; continue; } if (/^\s*$/.test(a)) { r(), e++; continue; } if (/^-{3,}\s*$/.test(a)) { r(), t += `
`, e++; continue; } const p = a.match(/^(#{1,6})\s+(.*)$/); if (p) { r(); const l = p[1].length, c = p[2].trim(); t += `${d(c)} `, e++; continue; } if (/^>\s?/.test(a)) { r(); const l = []; for (; e < i && /^>\s?/.test(n[e]); ) l.push(n[e].replace(/^>\s?/, "")), e++; t += `
${f(l.join(` `))}
`; continue; } if (/^\s*\|/.test(a) && e + 1 < i && E(n[e + 1])) { r(); const l = m(a); e += 2; const c = []; for (; e < i && /^\s*\|/.test(n[e]); ) c.push(m(n[e])), e++; t += "" + l.map((u) => ``).join("") + "" + c.map((u) => "" + u.map((b) => ``).join("") + "").join("") + `
${d(u)}
${d(b)}
`; continue; } if (/^\s*[-*]\s+/.test(a)) { s !== "ul" && (r(), t += `