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