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