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