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