let c=1,m;const f=()=>{var e=new Date(performance.timing.domLoading).getTime(),o=Date.now(),r=5*1e3,t=e+r;o>t&&location.reload()},l=e=>{const o=document.getElementsByTagName("head")[0];for(const r of e){for(const n of o.children)n instanceof HTMLScriptElement&&n.src.includes(r)&&o.removeChild(n);const t=document.createElement("script");t.src=r,o.appendChild(t)}},u=(e,o,r,t,n=!1)=>(o.viewMode==="docs"&&(n&&f(),window.clearTimeout(m),c<r?c+=1:(m=setTimeout(()=>{l(t)},1e3),c=1)),o.viewMode==="story"&&l(t),e()),v=()=>{const e=document.querySelector("header");e&&e.remove()},h=()=>{const e=document.querySelector("footer");e&&e.remove()},T=()=>{const e=document.querySelector("head");if(e){const o=Array.from(e.childNodes);let r=-1,t=-1;o.forEach((n,a)=>{var d,i;if(n.nodeType===Node.COMMENT_NODE){const s=n;((d=s.textContent)==null?void 0:d.trim())==="SB-START"?r=a:((i=s.textContent)==null?void 0:i.trim())==="SB-END"&&(t=a)}}),r!==-1&&t!==-1&&o.slice(r,t+1).forEach(n=>n.remove())}};export{h as a,u as b,T as c,v as r};
