1import{r as a,U as p}from"./main-43ZfK9y9.js";import{u as o,a as H,b as S}from"./store-z93pnp1M.js";function l(s){const[u,e]=a.useState(!1);return a.useEffect(()=>{if(!s?.persist){e(!0);return}const t=s.persist.onFinishHydration(()=>e(!0));return e(s.persist.hasHydrated()),t},[s]),u}function m(){const[s,u]=a.useState(!1);a.useEffect(()=>{u(!0)},[]);const e=o(r=>r.learnLanguage),t=o(r=>r.setLearnLanguage),{user:g,isAuthenticated:c}=p(),n=H(),d=l(o);a.useEffect(()=>{d&&!e&&n[0]&&t(n[0])},[d,e,n,t]);const f=!s||c&&!g&&!e,i=e??n[0]??"en",L=S(i);return{language:i,setLanguage:t,availableCodes:L,isLoading:f}}export{m as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.