\n `:`\n
\n No preview available\n
\n `}\n \n \n \n `,t.appendChild(n),i.appendChild(t)}))}async function f(){if(l||g>=1)return;l=!0,r&&(r.textContent="Loading...",r.disabled=!0);const t=a.length,n=Math.min(20,o.length-t),s=o.slice(t,t+n);if(console.log("TAG PAGE - Client-side loading:",{alreadyLoaded:t,nextBatchSize:n,attemptingToLoad:s.length,totalAvailableForTag:o.length}),s.length>0){const t=new Map;a.forEach((e=>t.set(e.id,!0)));const n=s.filter((e=>!t.has(e.id)));n.length!==s.length&&console.warn(`Found ${s.length-n.length} duplicate sites that were filtered out`),n.length>0?(m(n),a.push(...n),g=a.length,console.log(`Added ${n.length} sites (now showing ${g}/1)`),d&&(d.textContent=g.toString()),r&&(g>=1?(r.style.display="none",console.log("Reached end of content for this tag")):(r.textContent=`Load more (${g} / 1)`,r.disabled=!1)),c&&e.length{n>=e.length&&t.remove()}))}a=[...e],g=a.length,d&&(d.textContent=g.toString()),r&&(r.textContent=`Load more (${g} / 1)`,g<1?(r.style.display="block",r.disabled=!1):r.style.display="none"),c&&(c.style.display="none"),window.scrollTo({top:0,behavior:"smooth"}),p()}function u(){!function(){try{const t=localStorage.getItem(`cssline-tag-state-${n}`);if(t){const{siteCount:n,scrollY:o}=JSON.parse(t);n>e.length&&(s=o,c&&(c.style.display="block"))}}catch(e){console.error("Error restoring state:",e)}}(),r&&r.addEventListener("click",f),c&&c.addEventListener("click",h),s>0&&(window.scrollTo(0,s),s=0),document.querySelectorAll('a[href^="/go/"]').forEach((e=>{e.addEventListener("click",p)})),function(){try{const e=sessionStorage.getItem("previousSiteForTagOrColorPage");if(e){const t=JSON.parse(e),n=document.querySelector('nav a[href="/"][data-astro-prefetch]'),o=document.getElementById("back-to-previous-site-link");if(o){const e=o.parentElement;if(e){const t=document.getElementById("tag-page-back-link-separator");t&&t.parentElement===e&&e.removeChild(t),e.removeChild(o)}}if(n&&t.title&&t.slug){const e=n.parentElement;if(e){const o=document.createElement("a");o.id="back-to-previous-site-link",o.href=`/go/${t.slug}`,o.setAttribute("data-astro-prefetch",""),o.className="text-sm sm:text-base",o.setAttribute("aria-label",`Go back to ${t.title}`);const a=document.createElement("span");a.setAttribute("aria-hidden","true"),a.textContent=" 👉";const l=document.createElement("span");l.className="underline hover:decoration-wavy hover:text-cssline",l.textContent=`Back to ${t.title}`,o.appendChild(l),o.appendChild(a);const s=document.createElement("span");s.id="tag-page-back-link-separator",s.className="mx-2 text-gray-400",s.textContent="|",s.setAttribute("aria-hidden","true"),n.nextSibling?(e.insertBefore(s,n.nextSibling),e.insertBefore(o,s.nextSibling)):(e.appendChild(s),e.appendChild(o)),e.style.display="flex",e.style.alignItems="center",e.style.gap="0.5rem",sessionStorage.removeItem("previousSiteForTagOrColorPage")}}}}catch(e){console.error("Error creating back link for tag page:",e)}}()}d&&(d.textContent=g.toString()),r&&g>=1&&(r.style.display="none"),"complete"===document.readyState||"interactive"===document.readyState?u():document.addEventListener("DOMContentLoaded",u),document.addEventListener("astro:page-load",(()=>{const e=[...t];if(a=e.slice(0,20),g=a.length,i&&(i.innerHTML="",m(a)),d&&(d.textContent=g.toString()),r&&(g>=1?r.style.display="none":(r.style.display="block",r.textContent=`Load more (${g} / 1)`,r.disabled=!1),r.removeEventListener("click",f),r.addEventListener("click",f)),c){JSON.parse(localStorage.getItem(`cssline-tag-state-${n}`)||"{}").siteCount>a.length?c.style.display="block":c.style.display="none",c.removeEventListener("click",h),c.addEventListener("click",h)}document.querySelectorAll('a[href^="/go/"]').forEach((e=>{e.removeEventListener("click",p),e.addEventListener("click",p)})),u()})),window.addEventListener("beforeunload",p)}()