函数与变量使用阅读名称;不展示原名对照。未确认的绑定使用中性名称。
1// 阅读用语义别名;非作者原名,导出协议名保持不变。请勿当作完整重建项目运行。2import { m as e, p as t } from "./CYbi0xxB.mjs";3import { n } from "./CjxnTdcP.mjs";4function buildSeoMetadata(n) {5 let r = {6 ...n,7 robots: n?.robots ?? void 0,8 canonical: n?.canonical ?? void 0,9 sanitizedJsonLd: ``,10 openGraph: {11 title: n?.title ?? void 0,12 description: n?.description ?? void 0,13 images: n?.thumbnail?.asset?.url14 ? [15 {16 url: `${n?.thumbnail?.asset?.url}`,17 alt: `${n?.thumbnailAlt || n?.title} thumbnail`,18 },19 ]20 : [],21 },22 };23 if (r?.jsonLd) {24 let n;25 try {26 ((n = t(r.jsonLd)), (r.sanitizedJsonLd = renderEscapedJsonLdScript(e(n))));27 } catch (e) {28 console.error(e);29 }30 }31 return r;32}33var hasSessionCookie = () => typeof window < `u` && !!n(`session`);34function renderEscapedJsonLdScript(e) {35 return `<script type="application/ld+json">${String(e).replace(/</g, `\\u003c`)}<\/script>`;36}37export { buildSeoMetadata as n, renderEscapedJsonLdScript as r, hasSessionCookie as t };已确认说明
- JSON-LD输出对小于号转义
- JSON-LD输出对小于号转义