1import{r as d}from"./index-DB1uCt0m.js";const P=(e,t,s,a)=>{const r=[s,{code:t,...a||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);p(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...r):console?.warn&&console.warn(...r)},R={},b=(e,t,s,a)=>{p(s)&&R[s]||(p(s)&&(R[s]=new Date),P(e,t,s,a))},z=(e,t)=>()=>{if(e.isInitialized)t();else{const s=()=>{setTimeout(()=>{e.off("initialized",s)},0),t()};e.on("initialized",s)}},x=(e,t,s)=>{e.loadNamespaces(t,z(e,s))},v=(e,t,s,a)=>{if(p(s)&&(s=[s]),e.options.preload&&e.options.preload.indexOf(t)>-1)return x(e,s,a);s.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,z(e,a))},j=(e,t,s={})=>!t.languages||!t.languages.length?(b(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:s.lng,precheck:(a,r)=>{if(s.bindI18n?.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!r(a.isLanguageChangingTo,e))return!1}}),p=e=>typeof e=="string",k=e=>typeof e=="object"&&e!==null,H=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,M={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},U=e=>M[e],_=e=>e.replace(H,U);let E={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:_};const K=(e={})=>{E={...E,...e}},G=()=>E;let F;const X=e=>{F=e},$=()=>F,q=d.createContext();class B{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const W=(e,t)=>{const s=d.useRef();return d.useEffect(()=>{s.current=e},[e,t]),s.current},L=(e,t,s,a)=>e.getFixedT(t,s,a),D=(e,t,s,a)=>d.useCallback(L(e,t,s,a),[e,t,s,a]),Y=(e,t={})=>{const{i18n:s}=t,{i18n:a,defaultNS:r}=d.useContext(q)||{},n=s||a||$();if(n&&!n.reportNamespaces&&(n.reportNamespaces=new B),!n){b(n,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const i=(u,l)=>p(l)?l:k(l)&&p(l.defaultValue)?l.defaultValue:Array.isArray(u)?u[u.length-1]:u,c=[i,{},!1];return c.t=i,c.i18n={},c.ready=!1,c}n.options.react?.wait&&b(n,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const m={...G(),...n.options.react,...t},{useSuspense:S,keyPrefix:T}=m;let o=e||r||n.options?.defaultNS;o=p(o)?[o]:o||["translation"],n.reportNamespaces.addUsedNamespaces?.(o);const f=(n.isInitialized||n.initializedStoreOnce)&&o.every(i=>j(i,n,m)),A=D(n,t.lng||null,m.nsMode==="fallback"?o:o[0],T),I=()=>A,w=()=>L(n,t.lng||null,m.nsMode==="fallback"?o:o[0],T),[C,N]=d.useState(I);let h=o.join();t.lng&&(h=`${t.lng}${h}`);const O=W(h),g=d.useRef(!0);d.useEffect(()=>{const{bindI18n:i,bindI18nStore:c}=m;g.current=!0,!f&&!S&&(t.lng?v(n,t.lng,o,()=>{g.current&&N(w)}):x(n,o,()=>{g.current&&N(w)})),f&&O&&O!==h&&g.current&&N(w);const u=()=>{g.current&&N(w)};return i&&n?.on(i,u),c&&n?.store.on(c,u),()=>{g.current=!1,n&&i?.split(" ").forEach(l=>n.off(l,u)),c&&n&&c.split(" ").forEach(l=>n.store.off(l,u))}},[n,h]),d.useEffect(()=>{g.current&&f&&N(I)},[n,T,f]);const y=[C,n,f];if(y.t=C,y.i18n=n,y.ready=f,f||!f&&!S)return y;throw new Promise(i=>{t.lng?v(n,t.lng,o,()=>i()):x(n,o,()=>i())})};export{q as I,G as a,P as b,k as c,X as d,$ as g,p as i,K as s,Y as u,b as w};
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.