(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6685,e=>{"use strict";var l=e.i(43476),t=e.i(22016);e.s(["BackBar",0,function({title:e}){return(0,l.jsxs)("div",{className:"mb-6",children:[(0,l.jsx)(t.default,{href:"/",className:"text-sm transition-colors",style:{color:"var(--muted)"},children:"← 返回首页"}),e&&(0,l.jsx)("h1",{className:"text-2xl font-bold mt-2",style:{color:"var(--text)"},children:e})]})}])},64426,e=>{"use strict";var l=e.i(43476),t=e.i(71645),s=e.i(22016),a=e.i(98118),i=e.i(62368),r=e.i(6685),o=e.i(81091);e.s(["DomainView",0,function({slug:e}){let d=(0,a.useWikiData)(),c=(0,o.slugToDomain)(e),n=d.domainMap[c],m=(0,t.useMemo)(()=>{let e=c.startsWith("#")?c.slice(1):c,l=e.split("/").length,t=[];for(let s of Object.keys(d.domainMap)){let a=s.startsWith("#")?s.slice(1):s;a.startsWith(e+"/")&&a.split("/").length===l+1&&t.push({label:a.split("/").pop(),fullPath:s,count:d.domainMap[s].length})}return t.sort((e,l)=>e.label.localeCompare(l.label))},[d.domainMap,c]);if(!n)return(0,l.jsxs)("div",{className:"text-[13px]",style:{color:"var(--muted)"},children:["未找到领域: ",e]});let u=n.filter(e=>e.domains.includes(c)),h=n.filter(e=>!e.domains.includes(c));return(0,l.jsxs)("div",{children:[(0,l.jsx)(r.BackBar,{title:c}),(0,l.jsxs)("p",{className:"mb-4",style:{color:"var(--muted)"},children:[n.length," 个节点"]}),m.length>0&&(0,l.jsx)("div",{className:"flex flex-wrap gap-2 mb-6",children:m.map(e=>(0,l.jsxs)(s.default,{href:`/domain/${(0,o.domainToSlug)(e.fullPath)}`,className:"px-3 py-1.5 rounded-full text-[13px] transition-colors",style:{background:"var(--tag-bg)",color:"var(--text)",borderBottom:"none"},children:[e.label," ",(0,l.jsx)("span",{style:{color:"var(--muted)"},children:e.count})]},e.fullPath))}),u.length>0&&(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:u.map(e=>(0,l.jsx)(i.NodeCard,{...e},e.id))}),h.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"text-[11px] uppercase tracking-widest mt-6 mb-3",style:{color:"var(--muted)"},children:"来自子领域"}),(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:h.map(e=>(0,l.jsx)(i.NodeCard,{...e},e.id))})]})]})}])}]);