<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&amp;&amp;(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="94fc46f9-165d-5d8a-ab29-efbd14816fbe")}catch(e){}}();
import{r as t,u as f}from"./index-CnhpwU98.js";import{u as l}from"./components-MUvJN_Vi.js";const p=a=&gt;{const[e,r]=l(),[s,i]=t.useState(e.get("q")||""),[n,c]=t.useState(!1),h=f();function o(){location.pathname.includes("/archive")?r(e):h(`archive?q=${s}`)}return t.useEffect(()=&gt;{const u=e.get("q")||"";s!==u&amp;&amp;(e.delete("page"),e.set("q",s),r(e));const m=setTimeout(()=&gt;{s?(e.set("q",s),o()):e.has("q")&amp;&amp;!s&amp;&amp;(e.delete("q"),o()),c(!1)},a);return()=&gt;{clearTimeout(m)}},[s,a,e]),{searchTerm:s,setSearchTerm:i,isSearching:n,setIsSearching:c}};export{p as u};
//# sourceMappingURL=useDebounce-C9BMXqrQ.js.map

//# debugId=94fc46f9-165d-5d8a-ab29-efbd14816fbe
</pre></body></html>