<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]="8c235124-d9b5-5212-8d1b-f5b589d825f3")}catch(e){}}();
import{r as g}from"./index-CnhpwU98.js";import{I as k,g as A,R as F,a as M}from"./context-D-2EtPe0.js";function O(){if(console&amp;&amp;console.warn){for(var n=arguments.length,e=new Array(n),t=0;t&lt;n;t++)e[t]=arguments[t];m(e[0])&amp;&amp;(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const y={};function I(){for(var n=arguments.length,e=new Array(n),t=0;t&lt;n;t++)e[t]=arguments[t];m(e[0])&amp;&amp;y[e[0]]||(m(e[0])&amp;&amp;(y[e[0]]=new Date),O(...e))}const z=(n,e)=&gt;()=&gt;{if(n.isInitialized)e();else{const t=()=&gt;{setTimeout(()=&gt;{n.off("initialized",t)},0),e()};n.on("initialized",t)}},R=(n,e,t)=&gt;{n.loadNamespaces(e,z(n,t))},v=(n,e,t,a)=&gt;{m(t)&amp;&amp;(t=[t]),t.forEach(i=&gt;{n.options.ns.indexOf(i)&lt;0&amp;&amp;n.options.ns.push(i)}),n.loadLanguages(e,z(n,a))},P=function(n,e){let t=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0?arguments[2]:{};const a=e.languages[0],i=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const u=(C,h)=&gt;{const o=e.services.backendConnector.state[`${C}|${h}`];return o===-1||o===2};return t.bindI18n&amp;&amp;t.bindI18n.indexOf("languageChanging")&gt;-1&amp;&amp;e.services.backendConnector.backend&amp;&amp;e.isLanguageChangingTo&amp;&amp;!u(e.isLanguageChangingTo,n)?!1:!!(e.hasResourceBundle(a,n)||!e.services.backendConnector.backend||e.options.resources&amp;&amp;!e.options.partialBundledLanguages||u(a,n)&amp;&amp;(!i||u(s,n)))},j=function(n,e){let t=arguments.length&gt;2&amp;&amp;arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(I("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(n,{lng:t.lng,precheck:(i,s)=&gt;{if(t.bindI18n&amp;&amp;t.bindI18n.indexOf("languageChanging")&gt;-1&amp;&amp;i.services.backendConnector.backend&amp;&amp;i.isLanguageChangingTo&amp;&amp;!s(i.isLanguageChangingTo,n))return!1}}):P(n,e,t)},m=n=&gt;typeof n=="string",B=n=&gt;typeof n=="object"&amp;&amp;n!==null,J=(n,e)=&gt;{const t=g.useRef();return g.useEffect(()=&gt;{t.current=n},[n,e]),t.current},E=(n,e,t,a)=&gt;n.getFixedT(e,t,a),U=(n,e,t,a)=&gt;g.useCallback(E(n,e,t,a),[n,e,t,a]),W=function(n){let e=arguments.length&gt;1&amp;&amp;arguments[1]!==void 0?arguments[1]:{};const{i18n:t}=e,{i18n:a,defaultNS:i}=g.useContext(k)||{},s=t||a||A();if(s&amp;&amp;!s.reportNamespaces&amp;&amp;(s.reportNamespaces=new F),!s){I("You will need to pass in an i18next instance by using initReactI18next");const r=(f,l)=&gt;m(l)?l:B(l)&amp;&amp;m(l.defaultValue)?l.defaultValue:Array.isArray(f)?f[f.length-1]:f,c=[r,{},!1];return c.t=r,c.i18n={},c.ready=!1,c}s.options.react&amp;&amp;s.options.react.wait!==void 0&amp;&amp;I("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const u={...M(),...s.options.react,...e},{useSuspense:C,keyPrefix:h}=u;let o=n||i||s.options&amp;&amp;s.options.defaultNS;o=m(o)?[o]:o||["translation"],s.reportNamespaces.addUsedNamespaces&amp;&amp;s.reportNamespaces.addUsedNamespaces(o);const d=(s.isInitialized||s.initializedStoreOnce)&amp;&amp;o.every(r=&gt;j(r,s,u)),$=U(s,e.lng||null,u.nsMode==="fallback"?o:o[0],h),L=()=&gt;$,x=()=&gt;E(s,e.lng||null,u.nsMode==="fallback"?o:o[0],h),[S,N]=g.useState(L);let b=o.join();e.lng&amp;&amp;(b=`${e.lng}${b}`);const T=J(b),p=g.useRef(!0);g.useEffect(()=&gt;{const{bindI18n:r,bindI18nStore:c}=u;p.current=!0,!d&amp;&amp;!C&amp;&amp;(e.lng?v(s,e.lng,o,()=&gt;{p.current&amp;&amp;N(x)}):R(s,o,()=&gt;{p.current&amp;&amp;N(x)})),d&amp;&amp;T&amp;&amp;T!==b&amp;&amp;p.current&amp;&amp;N(x);const f=()=&gt;{p.current&amp;&amp;N(x)};return r&amp;&amp;s&amp;&amp;s.on(r,f),c&amp;&amp;s&amp;&amp;s.store.on(c,f),()=&gt;{p.current=!1,r&amp;&amp;s&amp;&amp;r.split(" ").forEach(l=&gt;s.off(l,f)),c&amp;&amp;s&amp;&amp;c.split(" ").forEach(l=&gt;s.store.off(l,f))}},[s,b]),g.useEffect(()=&gt;{p.current&amp;&amp;d&amp;&amp;N(L)},[s,h,d]);const w=[S,s,d];if(w.t=S,w.i18n=s,w.ready=d,d||!d&amp;&amp;!C)return w;throw new Promise(r=&gt;{e.lng?v(s,e.lng,o,()=&gt;r()):R(s,o,()=&gt;r())})};export{W as u};
//# sourceMappingURL=useTranslation-CMWGipsT.js.map

//# debugId=8c235124-d9b5-5212-8d1b-f5b589d825f3
</pre></body></html>