"use strict";(self.webpackChunkgitprotect_io=self.webpackChunkgitprotect_io||[]).push([[3409,5357,5510,7076,2374,3675,1802,5688,448,3790,4831,1714,2861,280,3082,3362,5491,7060,370,6404,6124,1609,8612,7856,2847,5896,9607,3021,3088,9566,2887,6713,9914,7349,51,7172,8982,8895,2204,2498,2715,789,3612,9814,5737,4030,2080,3914,1006,9033,7290,3948,3805,175,6736,8022,8236,4032,8213,305,5589,4503],{837:(e,t,n)=>{let r;n.d(t,{A:()=>c});const c=()=>{(e=>{r&&r.disconnect(),r=new IntersectionObserver((e=>{e.forEach((e=>{e.target.classList.toggle("element-animated--visible",e.isIntersecting)}))}),{threshold:[1,0]}),e.forEach((e=>{r.observe(e)}))})(document.querySelectorAll(".element-animated"))}},9141:(e,t,n)=>{var r=n(837);window.addEventListener("load",(()=>{const e=document.querySelector(".features-aside"),t=e.querySelector(".cat-menu__current"),n=e.querySelector(".subcat-menu__current"),o=n.querySelector("span");c(window.location.href,document.querySelector("#article-content")),t.addEventListener("click",(()=>{e.classList.toggle("open-cats")})),n.addEventListener("click",(()=>{e.classList.toggle("open-subcats")})),e.querySelectorAll(".subcat-menu__item > a").forEach((t=>{window.location.href===t.href&&(t.parentElement.classList.add("active"),o.textContent=t.textContent),t.addEventListener("click",(async n=>{if(n.target.href.includes(window.location.href))return;if(n.target.classList.contains("external-link"))return;n.preventDefault();const a=document.querySelector("#article-content");a.classList.add("loading");let s=t.pathname!==window.location.pathname;try{if(s){const e=await fetch(n.target.href);if(!e.ok)throw new Error("Failed to fetch article - response not OK");const c=await e.text(),o=document.createElement("template");o.innerHTML=c.trim();const s=o.content.querySelector("#article-content"),i=o.content.querySelector("title").text;a.replaceWith(s),document.title=i,document.querySelector(".top h1").innerHTML=t.getAttribute("data-category-name"),(0,r.A)()}window.history.pushState(null,"",n.target.href),e.querySelector(".subcat-menu__item.active").classList.remove("active"),n.target.parentElement.classList.add("active"),o.textContent=n.target.textContent,e.classList.remove("open-subcats"),c(t.href,a),a.classList.remove("loading")}catch(n){console.error("Failed to fetch article"),a.classList.remove("loading")}}))})),(0,r.A)()}));const c=(e,t)=>{let n=t;e.includes("#")&&(n=document.querySelector(`#${e.split("#")[1]}`),n||(n=t)),n?.scrollIntoView()}}},e=>{var t;t=9141,e(e.s=t)}]);