1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[850],{762:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},4850:(e,t,s)=>{"use strict";let i;s.d(t,{x6:()=>Y,r9:()=>q,Bd:()=>en});var r=s(2115),a=s(7985),n=s(762),o=s.n(n),l=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function u(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},s=e.match(/<\/?([^\s]+?)[/\s>]/);if(s&&(t.name=s[1],(o()[s[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var i=e.indexOf("--\x3e");return{type:"comment",comment:-1!==i?e.slice(4,i):""}}for(var r=new RegExp(l),a=null;null!==(a=r.exec(e));)if(a[0].trim())if(a[1]){var n=a[1].trim(),u=[n,""];n.indexOf("=")>-1&&(u=n.split("=")),t.attrs[u[0]]=u[1],r.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var p=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,c=/^\s*$/,h=Object.create(null);let d={parse:function(e,t){t||(t={}),t.components||(t.components=h);var s,i=[],r=[],a=-1,n=!1;if(0!==e.indexOf("<")){var o=e.indexOf("<");i.push({type:"text",content:-1===o?e:e.substring(0,o)})}return e.replace(p,function(o,l){if(n){if(o!=="</"+s.name+">")return;n=!1}var p,h="/"!==o.charAt(1),d=o.startsWith("\x3c!--"),g=l+o.length,f=e.charAt(g);if(d){var m=u(o);return a<0?i.push(m):(p=r[a]).children.push(m),i}if(h&&(a++,"tag"===(s=u(o)).type&&t.components[s.name]&&(s.type="component",n=!0),s.voidElement||n||!f||"<"===f||s.children.push({type:"text",content:e.slice(g,e.indexOf("<",g))}),0===a&&i.push(s),(p=r[a-1])&&p.children.push(s),r[a]=s),(!h||s.voidElement)&&(a>-1&&(s.voidElement||s.name===o.slice(2,-1))&&(s=-1==--a?i:r[a]),!n&&"<"!==f&&f)){p=-1===a?i:r[a].children;var y=e.indexOf("<",g),v=e.slice(g,-1===y?void 0:y);c.test(v)&&(v=" "),(y>-1&&a+p.length>=0||" "!==v)&&p.push({type:"text",content:v})}}),i}},g=(e,t,s,i)=>{let r=[s,{code:t,...i||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);k(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...r):console?.warn&&console.warn(...r)},f={},m=(e,t,s,i)=>{k(s)&&f[s]||(k(s)&&(f[s]=new Date),g(e,t,s,i))},y=(e,t)=>()=>{if(e.isInitialized)t();else{let s=()=>{setTimeout(()=>{e.off("initialized",s)},0),t()};e.on("initialized",s)}},v=(e,t,s)=>{e.loadNamespaces(t,y(e,s))},b=(e,t,s,i)=>{if(k(s)&&(s=[s]),e.options.preload&&e.options.preload.indexOf(t)>-1)return v(e,s,i);s.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,y(e,i))},x=(e,t,s={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:s.lng,precheck:(t,i)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e))return!1}}):(m(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0),k=e=>"string"==typeof e,S=e=>"object"==typeof e&&null!==e,O=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,L={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"â¦","…":"â¦","/":"/","/":"/"},$=e=>L[e],w=e=>e.replace(O,$),N={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:w,transDefaultProps:void 0},E=(e={})=>{N={...N,...e}},R=()=>N,C=e=>{i=e},j=()=>i,P=(e,t)=>{if(!e)return!1;let s=e.props?.children??e.children;return t?s.length>0:!!s},A=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?I(t):t},T=e=>Array.isArray(e)&&e.every(r.isValidElement),I=e=>Array.isArray(e)?e:[e],F=(e,t)=>{let s={...t};return s.props={...t.props,...e.props},s},V=e=>{let t={};if(!e)return t;let s=e=>{I(e).forEach(e=>{k(e)||(P(e)?s(A(e)):S(e)&&!(0,r.isValidElement)(e)&&Object.assign(t,e))})};return s(e),t},D=(e,t,s,i)=>{if(!e)return"";let a="",n=I(e),o=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];
1return n.forEach((e,n)=>{if(k(e)){a+=`${e}`;return}if((0,r.isValidElement)(e)){let{props:r,type:l}=e,u=Object.keys(r).length,p=o.indexOf(l)>-1,c=r.children;if(!c&&p&&!u){a+=`<${l}/>`;return}if(!c&&(!p||u)||r.i18nIsDynamicList){a+=`<${n}></${n}>`;return}if(p&&u<=1){let e=k(c)?c:D(c,t,s,i);a+=`<${l}>${e}</${l}>`;return}let h=D(c,t,s,i);a+=`<${n}>${h}</${n}>`;return}if(null===e)return void g(s,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:i});if(S(e)){let{format:t,...r}=e,n=Object.keys(r);if(1===n.length){let e=t?`${n[0]}, ${t}`:n[0];a+=`{{${e}}}`;return}g(s,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:i,child:e});return}g(s,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:i,child:e})}),a},U=(e,t=[],s={})=>{if(!e)return e;let i=[...t,...Object.keys(s)],r="",a=0;for(;a<e.length;)if("<"===e[a]){let t=!1,s=e.slice(a).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(s){let e=s[1];(/^\d+$/.test(e)||i.includes(e))&&(t=!0,r+=s[0],a+=s[0].length)}if(!t){let s=e.slice(a).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(s){let e=s[1];(/^\d+$/.test(e)||i.includes(e))&&(t=!0,r+=s[0],a+=s[0].length)}}t||(r+="<",a+=1)}else r+=e[a],a+=1;return r},_=(e,t,s,i,a,n,o)=>{if(""===s)return[];let l=a.transKeepBasicHtmlNodesFor||[],u=s&&new RegExp(l.map(e=>`<${e}`).join("|")).test(s);if(!e&&!t&&!u&&!o)return[s];let p=t??{},c=e=>{I(e).forEach(e=>{k(e)||(P(e)?c(A(e)):S(e)&&!(0,r.isValidElement)(e)&&Object.assign(p,e))})};c(e);let h=U(s,l,p),g=d.parse(`<0>${h}</0>`),f={...p,...n},m=(e,t,s)=>{let i=A(e),r=v(i,t.children,s);return T(i)&&0===r.length||e.props?.i18nIsDynamicList?i:r},y=(e,t,s,i,a)=>{e.dummy?(e.children=t,s.push((0,r.cloneElement)(e,{key:i},a?void 0:t))):s.push(...r.Children.map([e],e=>{let s="data-i18n-is-dynamic-list",n={key:i,[s]:void 0};return e&&e.props&&Object.keys(e.props).forEach(t=>{"ref"!==t&&"children"!==t&&"i18nIsDynamicList"!==t&&t!==s&&(n[t]=e.props[t])}),(0,r.cloneElement)(e,n,a?null:t)}))},v=(e,s,n)=>{let p=I(e);return I(s).reduce((e,s,c)=>{let h=s.children?.[0]?.content&&i.services.interpolator.interpolate(s.children[0].content,f,i.language);if("tag"===s.type){let d=p[parseInt(s.name,10)];!d&&t&&(d=t[s.name]),1!==n.length||d||(d=n[0][s.name]),d||(d={});let g={...s.attrs};o&&Object.keys(g).forEach(e=>{let t=g[e];k(t)&&(g[e]=w(t))});let b=0!==Object.keys(g).length?F({props:g},d):d,x=(0,r.isValidElement)(b),O=x&&P(s,!0)&&!s.voidElement,L=u&&S(b)&&b.dummy&&!x,$=S(t)&&Object.hasOwnProperty.call(t,s.name);if(k(b)){let t=i.services.interpolator.interpolate(b,f,i.language);e.push(t)}else if(P(b)||O){let t=m(b,s,n);y(b,t,e,c)}else if(L)y(b,v(p,s.children,n),e,c);else if(Number.isNaN(parseFloat(s.name)))if($){let t=m(b,s,n);y(b,t,e,c,s.voidElement)}else if(a.transSupportBasicHtmlNodes&&l.indexOf(s.name)>-1)if(s.voidElement)e.push((0,r.createElement)(s.name,{key:`${s.name}-${c}`}));else{let t=v(p,s.children,n);e.push((0,r.createElement)(s.name,{key:`${s.name}-${c}`},t))}else if(s.voidElement)e.push(`<${s.name} />`);else{let t=v(p,s.children,n);e.push(`<${s.name}>${t}</${s.name}>`)}else if(S(b)&&!x){let t=s.children[0]?h:null;t&&e.push(t)}else y(b,h,e,c,1!==s.children.length||!h)}else if("text"===s.type){let t=a.transWrapTextNodes,n="function"==typeof a.unescape?a.unescape:R().unescape,l=o?n(i.services.interpolator.interpolate(s.content,f,i.language)):i.services.interpolator.interpolate(s.content,f,i.language);t?e.push((0,r.createElement)(t,{key:`${s.name}-${c}`},l)):e.push(l)}return e},[])};return A(v([{dummy:!0,children:e||[]}],g,I(e||[]))[0])},M=(e,t,s)=>{let i=e.key||t,a=(0,r.cloneElement)(e,{key:i});return!a.props||!a.props.children||0>s.indexOf(`${t}/>`)&&0>s.indexOf(`${t} />`)?a:(0,r.createElement)(function(){return(0,r.createElement)(r.Fragment,null,a)},{key:i})},K=(e,t)=>e.map((e,s)=>M(e,s,t)),H=(e,t)=>{let s={};return Object.keys(e).forEach(i=>{Object.assign(s,{[i]:M(e[i],i,t)})}),s},z=(e,t,s,i)=>e?Array.isArray(e)?K(e,t):S(e)?H(e,t):(m(s,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:i}),null):null,B=e=>!(!S(e)||Array.isArray(e))&&Object.keys(e).reduce((e,t)=>
1e&&Number.isNaN(Number.parseFloat(t)),!0),q={type:"3rdParty",init(e){E(e.options.react),C(e)}},J=(0,r.createContext)();class W{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function Y({children:e,count:t,parent:s,i18nKey:i,context:n,tOptions:o={},values:l,defaults:u,components:p,ns:c,i18n:h,t:d,shouldUnescape:g,...f}){let{i18n:y,defaultNS:v}=(0,r.useContext)(J)||{},b=h||y||j(),x=d||b?.t.bind(b);return function({children:e,count:t,parent:s,i18nKey:i,context:n,tOptions:o={},values:l,defaults:u,components:p,ns:c,i18n:h,t:d,shouldUnescape:g,...f}){let y=h||j();if(!y)return m(y,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:i}),e;let v=d||y.t.bind(y)||(e=>e),b={...R(),...y.options?.react},x=c||v.ns||y.options?.defaultNS;x=k(x)?[x]:x||["translation"];let{transDefaultProps:S}=b,O=S?.tOptions?{...S.tOptions,...o}:o,L=g??S?.shouldUnescape,$=S?.values?{...S.values,...l}:l,w=S?.components?{...S.components,...p}:p,N=D(e,b,y,i),E=u||O?.defaultValue||N||b.transEmptyNodeValue||("function"==typeof i?(0,a.Rm)(i):i),{hashTransKey:C}=b,P=i||(C?C(N||E):N||E);l=y.options?.interpolation?.defaultVariables?$&&Object.keys($).length>0?{...$,...y.options.interpolation.defaultVariables}:{...y.options.interpolation.defaultVariables}:$;let A=V(e);A&&"number"==typeof A.count&&void 0===t&&(t=A.count);let T=!l&&(void 0===t||y.options?.interpolation?.alwaysFormat)&&e?{interpolation:{...O.interpolation,prefix:"#$?",suffix:"?$#"}}:O.interpolation,I={...O,context:n||O.context,count:t,...l,...T,defaultValue:E,ns:x},F=P?v(P,I):E;F===P&&E&&(F=E);let U=z(w,F,y,i),M=U||e,K=null;B(U)&&(K=U,M=e);let H=_(M,K,F,y,b,I,L),q=s??b.defaultTransParent;return q?(0,r.createElement)(q,f,H):H}({children:e,count:t,parent:s,i18nKey:i,context:n,tOptions:o,values:l,defaults:u,components:p,ns:c||x?.ns||v||b?.options?.defaultNS,i18n:b,t:d,shouldUnescape:g,...f})}class G extends Error{constructor(e,t,s){super(e),this.name="TranslationParserError",this.position=t,this.translationString=s,Error.captureStackTrace&&Error.captureStackTrace(this,G)}}let Z={" ":"\xa0","&":"&","<":"<",">":">",""":'"',"'":"'","©":"\xa9","®":"\xae","™":"â¢","…":"â¦","–":"â","—":"â","‘":"â","’":"â","‚":"â","“":"â","”":"â","„":"â","†":"â ","‡":"â¡","•":"â¢","′":"â²","″":"â³","‹":"â¹","›":"âº","§":"\xa7","¶":"\xb6","·":"\xb7"," ":"â"," ":"â"," ":"â","€":"â¬","£":"\xa3","¥":"\xa5","¢":"\xa2","¤":"\xa4","×":"\xd7","÷":"\xf7","−":"â","±":"\xb1","≠":"â ","≤":"â¤","≥":"â¥","≈":"â","≡":"â¡","∞":"â","∫":"â«","∑":"â","∏":"â","√":"â","∂":"â","‰":"â°","°":"\xb0","µ":"\xb5","←":"â","↑":"â","→":"â","↓":"â","↔":"â","↵":"âµ","⇐":"â","⇑":"â","⇒":"â","⇓":"â","⇔":"â","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"Ï","ρ":"Ï","σ":"Ï","τ":"Ï","υ":"Ï
","φ":"Ï","χ":"Ï","ψ":"Ï","ω":"Ï","Α":"Î","Β":"Î","Γ":"Î","Δ":"Î","Ε":"Î","Ζ
1":"Î","Η":"Î","Θ":"Î","Ι":"Î","Κ":"Î","Λ":"Î","Μ":"Î","Ν":"Î","Ξ":"Î","Ο":"Î","Π":"Î ","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Î¥","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","À":"\xc0","Á":"\xc1","Â":"\xc2","Ã":"\xc3","Ä":"\xc4","Å":"\xc5","Æ":"\xc6","Ç":"\xc7","È":"\xc8","É":"\xc9","Ê":"\xca","Ë":"\xcb","Ì":"\xcc","Í":"\xcd","Î":"\xce","Ï":"\xcf","Ð":"\xd0","Ñ":"\xd1","Ò":"\xd2","Ó":"\xd3","Ô":"\xd4","Õ":"\xd5","Ö":"\xd6","Ø":"\xd8","Ù":"\xd9","Ú":"\xda","Û":"\xdb","Ü":"\xdc","Ý":"\xdd","Þ":"\xde","ß":"\xdf","à":"\xe0","á":"\xe1","â":"\xe2","ã":"\xe3","ä":"\xe4","å":"\xe5","æ":"\xe6","ç":"\xe7","è":"\xe8","é":"\xe9","ê":"\xea","ë":"\xeb","ì":"\xec","í":"\xed","î":"\xee","ï":"\xef","ð":"\xf0","ñ":"\xf1","ò":"\xf2","ó":"\xf3","ô":"\xf4","õ":"\xf5","ö":"\xf6","ø":"\xf8","ù":"\xf9","ú":"\xfa","û":"\xfb","ü":"\xfc","ý":"\xfd","þ":"\xfe","ÿ":"\xff","¡":"\xa1","¿":"\xbf","ƒ":"Æ","ˆ":"Ë","˜":"Ë","Œ":"Å","œ":"Å","Š":"Å ","š":"Å¡","Ÿ":"Ÿ","ª":"\xaa","º":"\xba","¯":"\xaf","´":"\xb4","¸":"\xb8","¹":"\xb9","²":"\xb2","³":"\xb3","¼":"\xbc","½":"\xbd","¾":"\xbe","♠":"â ","♣":"â£","♥":"â¥","♦":"â¦","◊":"â","‾":"â¾","⁄":"â","℘":"â","ℑ":"â","ℜ":"â","ℵ":"âµ"},Q=RegExp(Object.keys(Z).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),X=e=>e.replace(Q,e=>Z[e]).replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(parseInt(t,10))).replace(/&#x([0-9a-fA-F]+);/g,(e,t)=>String.fromCharCode(parseInt(t,16))),ee=e=>{let t=[],s=0,i="",r=()=>{i&&(t.push({type:"Text",value:i,position:s-i.length}),i="")};for(;s<e.length;){let a=e[s];if("<"===a){let n=e.slice(s).match(/^<(\d+)>/);if(n)r(),t.push({type:"TagOpen",value:n[0],position:s,tagNumber:parseInt(n[1],10)}),s+=n[0].length;else{let n=e.slice(s).match(/^<\/(\d+)>/);n?(r(),t.push({type:"TagClose",value:n[0],position:s,tagNumber:parseInt(n[1],10)}),s+=n[0].length):(i+=a,s+=1)}}else i+=a,s+=1}return r(),t},et=(e,t,s)=>{let{type:i,props:a={}}=e;if(a.children&&Array.isArray(a.children)&&s){let{children:e,...s}=a;return r.createElement(i,s,...t)}return 0===t.length?r.createElement(i,a):1===t.length?r.createElement(i,a,t[0]):r.createElement(i,a,...t)},es=(e,t=[])=>{if(!e)return[];let s=ee(e),i=[],r=[],a=new Set,n=()=>{if(0===r.length)return t;let e=r[r.length-1];return e.declaration.props?.children&&Array.isArray(e.declaration.props.children)?e.declaration.props.children:e.declarations};if(s.forEach(t=>{switch(t.type){case"Text":{let e=X(t.value);(r.length>0?r[r.length-1].children:i).push(e)}break;case"TagOpen":{let{tagNumber:e}=t,s=n(),o=s[e];if(!o){a.add(e);let t=`<${e}>`;(r.length>0?r[r.length-1].children:i).push(t);break}r.push({tagNumber:e,children:[],position:t.position,declaration:o,declarations:s})}break;case"TagClose":{let{tagNumber:s}=t;if(a.has(s)){let e=`</${s}>`;(r.length>0?r[r.length-1].children:i).push(e),a.delete(s);break}if(0===r.length)throw new G(`Unexpected closing tag </${s}> at position ${t.position}`,t.position,e);let n=r.pop();if(n.tagNumber!==s)throw new G(`Mismatched tags: expected </${n.tagNumber}> but got </${s}> at position ${t.position}`,t.position,e);let o=et(n.declaration,n.children,n.declarations);(r.length>0?r[r.length-1].children:i).push(o)}}}),r.length>0){let t=r[r.length-1];throw new G(`Unclosed tag <${t.tagNumber}> at position ${t.position}`,t.position,e)}return i};var ei=s(6090);let er={t:(e,t)=>{if(k(t))return t;if(S(t)&&k(t.defaultValue))return t.defaultValue;if("function"==typeof e)return"";if(Array.isArray(e)){let t=e[e.length-1];return"function"==typeof t?"":t}return e},ready:!1},ea=()=>()=>{},en=(e,t={})=>{let{i18n:s}=t,{i18n:i,defaultNS:a}=(0,r.useContext)(J)||{},n=s||i||j();n&&!n.reportNamespaces&&(n.reportNamespaces=new W),n||m(n,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let o=(0,r.useMemo)(()=>({...R(),...n?.options?.react,...t}),[n,t]),{useSuspense:l,keyPrefix:u}=o,p=e||a||n?.options?.defaultNS,c=k(p)?[p]:p||["translation"],h=(0,r.useMemo)(()=>c,c);n?.reportNamespaces?.addUsedNamespaces?.(h);let d=(0,r.useRef)(0),g=(0,r.useCallback)(e=>{if(!n)return ea;let{bindI18n:t,bindI18nStore:s}=o,i=()=>
1{d.current+=1,e()};return t&&n.on(t,i),s&&n.store.on(s,i),()=>{t&&t.split(" ").forEach(e=>n.off(e,i)),s&&s.split(" ").forEach(e=>n.store.off(e,i))}},[n,o]),f=(0,r.useRef)(),y=(0,r.useCallback)(()=>{if(!n)return er;let e=!!(n.isInitialized||n.initializedStoreOnce)&&h.every(e=>x(e,n,o)),s=t.lng||n.language,i=d.current,r=f.current;if(r&&r.ready===e&&r.lng===s&&r.keyPrefix===u&&r.revision===i)return r;let a={t:n.getFixedT(s,"fallback"===o.nsMode?h:h[0],u),ready:e,lng:s,keyPrefix:u,revision:i};return f.current=a,a},[n,h,u,o,t.lng]),[S,O]=(0,r.useState)(0),{t:L,ready:$}=(0,ei.useSyncExternalStore)(g,y,y);(0,r.useEffect)(()=>{if(n&&!$&&!l){let e=()=>O(e=>e+1);t.lng?b(n,t.lng,h,e):v(n,h,e)}},[n,t.lng,h,$,l,S]);let w=n||{},N=(0,r.useRef)(null),E=(0,r.useRef)(),C=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let s=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(s,"__original"))try{Object.defineProperty(s,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return s},P=(0,r.useMemo)(()=>{let e=w?.language,t=w;w&&(N.current&&N.current.__original===w?E.current!==e?(N.current=t=C(w),E.current=e):t=N.current:(N.current=t=C(w),E.current=e));let s=$||l?L:(...e)=>(m(n,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),L(...e)),i=[s,t,$];return i.t=s,i.i18n=t,i.ready=$,i},[L,w,$,w.resolvedLanguage,w.language,w.languages]);if(n&&l&&!$)throw new Promise(e=>{let s=()=>e();t.lng?b(n,t.lng,h,s):v(n,h,s)});return P}},6090:(e,t,s)=>{"use strict";e.exports=s(7249)},7249:(e,t,s)=>{"use strict";var i=s(2115),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useState,n=i.useEffect,o=i.useLayoutEffect,l=i.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!r(e,s)}catch(e){return!0}}var p="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),i=a({inst:{value:s,getSnapshot:t}}),r=i[0].inst,p=i[1];return o(function(){r.value=s,r.getSnapshot=t,u(r)&&p({inst:r})},[e,s,t]),n(function(){return u(r)&&p({inst:r}),e(function(){u(r)&&p({inst:r})})},[e]),l(s),s};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:p},7985:(e,t,s)=>{"use strict";s.d(t,{Ay:()=>X,Rm:()=>P});let i=e=>"string"==typeof e,r=()=>{let e,t,s=new Promise((s,i)=>{e=s,t=i});return s.resolve=e,s.reject=t,s},a=e=>null==e?"":String(e),n=(e,t,s)=>{e.forEach(e=>{t[e]&&(s[e]=t[e])})},o=/###/g,l=e=>e&&e.includes("###")?e.replace(o,"."):e,u=e=>!e||i(e),p=(e,t,s)=>{let r=i(t)?t.split("."):t,a=0;for(;a<r.length-1;){if(u(e))return{};let t=l(r[a]);!e[t]&&s&&(e[t]=new s),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return u(e)?{}:{obj:e,k:l(r[a])}},c=(e,t,s)=>{let{obj:i,k:r}=p(e,t,Object);if(void 0!==i||1===t.length){i[r]=s;return}let a=t[t.length-1],n=t.slice(0,t.length-1),o=p(e,n,Object);for(;void 0===o.obj&&n.length;)a=`${n[n.length-1]}.${a}`,o=p(e,n=n.slice(0,n.length-1),Object),o?.obj&&void 0!==o.obj[`${o.k}.${a}`]&&(o.obj=void 0);o.obj[`${o.k}.${a}`]=s},h=(e,t,s,i)=>{let{obj:r,k:a}=p(e,t,Object);r[a]=r[a]||[],r[a].push(s)},d=(e,t)=>{let{obj:s,k:i}=p(e,t);if(s&&Object.prototype.hasOwnProperty.call(s,i))return s[i]},g=(e,t,s)=>{let i=d(e,s);return void 0!==i?i:d(t,s)},f=(e,t,s)=>{for(let r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?i(e[r])||e[r]instanceof String||i(t[r])||t[r]instanceof String?s&&(e[r]=t[r]):f(e[r],t[r],s):e[r]=t[r]);return e},m=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),y={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},v=e=>i(e)?e.replace(/[&<>"'\/]/g,e=>y[e]):e;class b{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}let x=[" ",",","?","!",";"],k=new b(20),S=(e,t,s)=>{t=t||"",s=s||"";let i=x.filter(e=>!t.includes(e)&&!s.includes(e));if(0===i.length)return!0;let r=k.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`),a=!r.test(e);
1if(!a){let t=e.indexOf(s);t>0&&!r.test(e.substring(0,t))&&(a=!0)}return a},O=(e,t,s=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let i=t.split(s),r=e;for(let e=0;e<i.length;){let t;if(!r||"object"!=typeof r)return;let a="";for(let n=e;n<i.length;++n)if(n!==e&&(a+=s),a+=i[n],void 0!==(t=r[a])){if(["string","number","boolean"].includes(typeof t)&&n<i.length-1)continue;e+=n-e+1;break}r=t}return r},L=e=>e?.replace(/_/g,"-"),$={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class w{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||$,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,s,r){return r&&!this.debug?null:(i(e[0])&&(e[0]=`${s}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new w(this.logger,{...{prefix:`${this.prefix}:${e}:`},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new w(this.logger,e)}}var N=new w;class E{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let s=this.observers[e].get(t)||0;this.observers[e].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}once(e,t){let s=(...i)=>{t(...i),this.off(e,s)};return this.on(e,s),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,s])=>{for(let i=0;i<s;i++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,i])=>{for(let r=0;r<i;r++)s(e,...t)})}}class R extends E{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s,r={}){let a,n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?a=e.split("."):(a=[e,t],s&&(Array.isArray(s)?a.push(...s):i(s)&&n?a.push(...s.split(n)):a.push(s)));let l=d(this.data,a);return(!l&&!t&&!s&&e.includes(".")&&(e=a[0],t=a[1],s=a.slice(2).join(".")),!l&&o&&i(s))?O(this.data?.[e]?.[t],s,n):l}addResource(e,t,s,i,r={silent:!1}){let a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=[e,t];s&&(n=n.concat(a?s.split(a):s)),e.includes(".")&&(n=e.split("."),i=t,t=n[1]),this.addNamespaces(t),c(this.data,n,i),r.silent||this.emit("added",e,t,s,i)}addResources(e,t,s,r={silent:!1}){for(let r in s)(i(s[r])||Array.isArray(s[r]))&&this.addResource(e,t,r,s[r],{silent:!0});r.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,i,r,a={silent:!1,skipCopy:!1}){let n=[e,t];e.includes(".")&&(n=e.split("."),i=s,s=t,t=n[1]),this.addNamespaces(t);let o=d(this.data,n)||{};a.skipCopy||(s=JSON.parse(JSON.stringify(s))),i?f(o,s,r):o={...o,...s},c(this.data,n,o),a.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var C={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,s,i,r){return e.forEach(e=>{t=this.processors[e]?.process(t,s,i,r)??t}),t}};let j=Symbol("i18next/PATH_KEY");function P(e,t){let{[j]:s}=e(function(){let e,t=[],s=Object.create(null);return s.get=(i,r)=>(e?.revoke?.(),r===j)?t:(t.push(r),(e=Proxy.revocable(i,s)).proxy),Proxy.revocable(Object.create(null),s).proxy}()),i=t?.keySeparator??".",r=t?.nsSeparator??":";if(s.length>1&&r){let e=t?.ns,a=Array.isArray(e)?e:null;if(a&&a.length>1&&a.slice(1).includes(s[0]))return`${s[0]}${r}${s.slice(1).join(i)}`}return s.join(i)}let A=e=>!i(e)&&"boolean"!=typeof e&&"number"!=typeof e;
1class T extends E{constructor(e,t={}){super(),n(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=N.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let s={...t};if(null==e)return!1;let i=this.resolve(e,s);if(i?.res===void 0)return!1;let r=A(i.res);return!1!==s.returnObjects||!r}extractFromKey(e,t){let s=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===s&&(s=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS||[],n=s&&e.includes(s),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!S(e,s,r);if(n&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i(a)?[a]:a};let n=e.split(s);(s!==r||s===r&&this.options.ns.includes(n[0]))&&(a=n.shift()),e=n.join(r)}return{key:e,namespaces:i(a)?[a]:a}}translate(e,t,s){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=P(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?P(e,{...this.options,...r}):String(e));let a=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],r),u=l[l.length-1],p=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===p&&(p=":");let c=r.lng||this.language,h=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c?.toLowerCase()==="cimode")return h?a?{res:`${u}${p}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:`${u}${p}${o}`:a?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:o;let d=this.resolve(e,r),g=d?.res,f=d?.usedKey||o,m=d?.exactUsedKey||o,y=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==r.count&&!i(r.count),x=T.hasDefaultValue(r),k=b?this.pluralResolver.getSuffix(c,r.count,r):"",S=r.ordinal&&b?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",O=b&&!r.ordinal&&0===r.count,L=O&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${k}`]||r[`defaultValue${S}`]||r.defaultValue,$=g;v&&!g&&x&&($=L);let w=A($),N=Object.prototype.toString.apply($);if(v&&$&&w&&!["[object Number]","[object Function]","[object RegExp]"].includes(N)&&!(i(y)&&Array.isArray($))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,$,{...r,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return a?(d.res=e,d.usedParams=this.getUsedParamsDetails(r),d):e}if(n){let e=Array.isArray($),t=e?[]:{},s=e?m:f;for(let e in $)if(Object.prototype.hasOwnProperty.call($,e)){let i=`${s}${n}${e}`;x&&!g?t[e]=this.translate(i,{...r,defaultValue:A(L)?L[e]:void 0,...{joinArrays:!1,ns:l}}):t[e]=this.translate(i,{...r,joinArrays:!1,ns:l}),t[e]===i&&(t[e]=$[e])}g=t}}else if(v&&i(y)&&Array.isArray(g))(g=g.join(y))&&(g=this.extendTranslation(g,e,r,s));else{let t=!1,i=!1;!this.isValidLookup(g)&&x&&(t=!0,g=L),this.isValidLookup(g)||(i=!0,g=o);let a=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:g,l=x&&L!==g&&this.options.updateMissing;if(i||t||l){if(this.logger.log(l?"updateKey":"missingKey",c,u,o,l?L:g),n){let e=this.resolve(o,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let s=0;s<t.length;s++)e.push(t[s]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);let s=(e,t,s)=>{let i=x&&s!==g?s:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,t,i,l,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,u,t,i,l,r),this.emit
1("missingKey",e,u,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,r);O&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{s([e],o+t,r[`defaultValue${t}`]||L)})}):s(e,o,L))}g=this.extendTranslation(g,e,r,d,s),i&&g===o&&this.options.appendNamespaceToMissingKey&&(g=`${u}${p}${o}`),(i||t)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${p}${o}`:o,t?g:void 0,r))}return a?(d.res=g,d.usedParams=this.getUsedParamsDetails(r),d):g}extendTranslation(e,t,s,r,a){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!s.skipInterpolation){let n;s.interpolation&&this.interpolator.init({...s,...{interpolation:{...this.options.interpolation,...s.interpolation}}});let o=i(e)&&(s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(o){let t=e.match(this.interpolator.nestingRegexp);n=t&&t.length}let l=s.replace&&!i(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,s.lng||this.language||r.usedLng,s),o){let t=e.match(this.interpolator.nestingRegexp);n<(t&&t.length)&&(s.nest=!1)}!s.lng&&r&&r.res&&(s.lng=this.language||r.usedLng),!1!==s.nest&&(e=this.interpolator.nest(e,(...e)=>a?.[0]!==e[0]||s.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),s)),s.interpolation&&this.interpolator.reset()}let n=s.postProcess||this.options.postProcess,o=i(n)?[n]:n;return null!=e&&o?.length&&!1!==s.applyPostProcessor&&(e=C.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),e}resolve(e,t={}){let s,r,a,n,o;return i(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?P(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(s))return;let l=this.extractFromKey(e,t),u=l.key;r=u;let p=l.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));let c=void 0!==t.count&&!i(t.count),h=c&&!t.ordinal&&0===t.count,d=void 0!==t.context&&(i(t.context)||"number"==typeof t.context)&&""!==t.context,g=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);p.forEach(e=>{this.isValidLookup(s)||(o=e,!this.checkedLoadedFor[`${g[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${g[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(i=>{let r;if(this.isValidLookup(s))return;n=i;let o=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,u,i,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(i,t.count,t));let s=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&e.startsWith(r)&&o.push(u+e.replace(r,this.options.pluralSeparator)),o.push(u+e),h&&o.push(u+s)),d){let i=`${u}${this.options.contextSeparator||"_"}${t.context}`;o.push(i),c&&(t.ordinal&&e.startsWith(r)&&o.push(i+e.replace(r,this.options.pluralSeparator)),o.push(i+e),h&&o.push(i+s))}}for(;r=o.pop();)this.isValidLookup(s)||(a=r,s=this.getResource(i,e,r,t))}))})}),{res:s,usedKey:r,exactUsedKey:a,usedLng:n,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,s,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,s,i):this.resourceStore.getResource(e,t,s,i)}
1getUsedParamsDetails(e={}){let t=e.replace&&!i(e.replace),s=t?e.replace:e;if(t&&void 0!==e.count&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!t)for(let e of(s={...s},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete s[e];return s}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class I{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=N.create("languageUtils")}getScriptPartFromCode(e){if(!(e=L(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=L(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(i(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let s=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let s=this.getScriptPartFromCode(e);if(this.isSupportedCode(s))return t=s;let i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>e===i||(!!e.includes("-")||!!i.includes("-"))&&!!(e.includes("-")&&!i.includes("-")&&e.slice(0,e.indexOf("-"))===i||e.startsWith(i)&&i.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),i(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){let s=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],a=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return i(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):i(e)&&a(this.formatLanguageCode(e)),s.forEac
1h(e=>{r.includes(e)||a(this.formatLanguageCode(e))}),r}}let F={zero:0,one:1,two:2,few:3,many:4,other:5},V={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class D{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=N.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let s,i=L("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];try{s=new Intl.PluralRules(i,{type:r})}catch(r){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),V;if(!e.match(/-|_/))return V;let i=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(i,t)}return this.pluralRulesCache[a]=s,s}needsPlural(e,t={}){let s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,s={}){return this.getSuffixes(e,s).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let s=this.getRule(e,t);return(s||(s=this.getRule("dev",t)),s)?s.resolvedOptions().pluralCategories.sort((e,t)=>F[e]-F[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,s={}){let i=this.getRule(e,s);return i?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}let U=(e,t,s,r=".",a=!0)=>{let n=g(e,t,s);return!n&&a&&i(s)&&void 0===(n=O(e,s,r))&&(n=O(t,s,r)),n},_=e=>e.replace(/\$/g,"$$$$");class M{constructor(e={}){this.logger=N.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:s,useRawValueToEscape:i,prefix:r,prefixEscaped:a,suffix:n,suffixEscaped:o,formatSeparator:l,unescapeSuffix:u,unescapePrefix:p,nestingPrefix:c,nestingPrefixEscaped:h,nestingSuffix:d,nestingSuffixEscaped:g,nestingOptionsSeparator:f,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:v,this.escapeValue=void 0===s||s,this.useRawValueToEscape=void 0!==i&&i,this.prefix=r?m(r):a||"{{",this.suffix=n?m(n):o||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=c?m(c):h||m("$t("),this.nestingSuffix=d?m(d):g||m(")"),this.nestingOptionsSeparator=f||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,s,r){let n,o,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=e=>{if(!e.includes(this.formatSeparator)){let i=U(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,s,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),n=i.join(this.formatSeparator).trim();return this.format(U(t,u,a,this.options.keySeparator,this.options.ignoreJSONStructure),n,s,{...r,...t,interpolationkey:a})};this.resetRegExp();let c=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,h=r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>_(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?_(this.escape(e)):_(e)}].forEach(t=>{for(l=0;n=t.regex.exec(e);){let s=n[1].trim();if(void 0===(o=p(s)))if("function"==typeof c){let t=c(e,n,r);o=i(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,s))o="";else if(h){o=n[0];continue}else this.logger.warn(`missed to pass in variable ${s} for interpolating ${e}`),o="";else i(o)||this.useRawValueToEscape||(o=a(o));let u=t.safeValue(o);if(e=e.replace(n[0],u),h?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=n[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t,s={}){let r,n,o,l=(e,t)=>
1{let s=this.nestingOptionsSeparator;if(!e.includes(s))return e;let i=e.split(RegExp(`${m(s)}[ ]*{`)),r=`{${i[1]}`;e=i[0];let a=(r=this.interpolate(r,o)).match(/'/g),n=r.match(/"/g);((a?.length??0)%2!=0||n)&&(n?.length??0)%2==0||(r=r.replace(/'/g,'"'));try{o=JSON.parse(r),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${s}${r}`}return o.defaultValue&&o.defaultValue.includes(this.prefix)&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let u=[];(o=(o={...s}).replace&&!i(o.replace)?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let p=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==p&&(u=r[1].slice(p).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),(n=t(l.call(this,r[1].trim(),o),o))&&r[0]===e&&!i(n))return n;i(n)||(n=a(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),u.length&&(n=u.reduce((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}let K=e=>{let t=e.toLowerCase().trim(),s={};if(e.includes("(")){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].slice(0,-1);"currency"!==t||r.includes(":")?"relativetime"!==t||r.includes(":")?r.split(";").forEach(e=>{if(e){let[t,...i]=e.split(":"),r=i.join(":").trim().replace(/^'+|'+$/g,""),a=t.trim();
1s[a]||(s[a]=r),"false"===r&&(s[a]=!1),"true"===r&&(s[a]=!0),isNaN(r)||(s[a]=parseInt(r,10))}}):s.range||(s.range=r.trim()):s.currency||(s.currency=r.trim())}return{formatName:t,formatOptions:s}},H=e=>{let t={};return(s,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let n=i+JSON.stringify(a),o=t[n];return o||(o=e(L(i),r),t[n]=o),o(s)}},z=e=>(t,s,i)=>e(L(s),i)(t);class B{constructor(e={}){this.logger=N.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let s=t.cacheInBuiltFormats?H:z;this.formats={number:s((e,t)=>{let s=new Intl.NumberFormat(e,{...t});return e=>s.format(e)}),currency:s((e,t)=>{let s=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>s.format(e)}),datetime:s((e,t)=>{let s=new Intl.DateTimeFormat(e,{...t});return e=>s.format(e)}),relativetime:s((e,t)=>{let s=new Intl.RelativeTimeFormat(e,{...t});return e=>s.format(e,t.range||"day")}),list:s((e,t)=>{let s=new Intl.ListFormat(e,{...t});return e=>s.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=H(t)}format(e,t,s,i={}){if(!t||null==e)return e;let r=t.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&!r[0].includes(")")&&r.find(e=>e.includes(")"))){let e=r.findIndex(e=>e.includes(")"));r[0]=[r[0],...r.splice(1,e)].join(this.formatSeparator)}return r.reduce((e,t)=>{let{formatName:r,formatOptions:a}=K(t);if(this.formats[r]){let t=e;try{let n=i?.formatParams?.[i.interpolationkey]||{},o=n.locale||n.lng||i.locale||i.lng||s;t=this.formats[r](e,o,{...a,...i,...n})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}}let q=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)};class J extends E{constructor(e,t,s,i={}){super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=N.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(s,i.backend,i)}queueLoad(e,t,s,i){let r={},a={},n={},o={};return e.forEach(e=>{let i=!0;t.forEach(t=>{let n=`${e}|${t}`;!s.reload&&this.store.hasResourceBundle(e,t)?this.state[n]=2:this.state[n]<0||(1===this.state[n]?void 0===a[n]&&(a[n]=!0):(this.state[n]=1,i=!1,void 0===a[n]&&(a[n]=!0),void 0===r[n]&&(r[n]=!0),void 0===o[t]&&(o[t]=!0)))}),i||(n[e]=!0)}),(Object.keys(r).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(a),toLoadLanguages:Object.keys(n),toLoadNamespaces:Object.keys(o)}}loaded(e,t,s){let i=e.split("|"),r=i[0],a=i[1];t&&this.emit("failedLoading",r,a,t),!t&&s&&this.store.addResourceBundle(r,a,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);let n={};this.queue.forEach(s=>{h(s.loaded,[r],a),q(s,e),t&&s.errors.push(t),0!==s.pendingCount||s.done||(Object.keys(s.loaded).forEach(e=>{n[e]||(n[e]={});let t=s.loaded[e];t.length&&t.forEach(t=>{void 0===n[e][t]&&(n[e][t]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",n),this.queue=this.queue.filter(e=>!e.done)}read(e,t,s,i=0,r=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:s,tried:i,wait:r,callback:a});this.readingCalls++;let n=(n,o)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(n&&o&&i<this.maxRetries)return void setTimeout(()=>{this.read(e,t,s,i+1,2*r,a)},r);a(n,o)},o=this.backend[s].bind(this.backend);if(2===o.length){try{let s=o(e,t);s&&"function"==typeof s.then?s.then(e=>n(null,e)).catch(n):n(null,s)}catch(e){n(e)}return}return o(e,t,n)}prepareLoading(e,t,s={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();i(e)&&(e=this.languageUtils.toResolveHierarchy(e)),i(t)&&(t=[t]);let a=this.queueLoad(e,t,s,r);if(!a.toLoad.length)return a.pending.length||r(),null;
1a.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e,t=""){let s=e.split("|"),i=s[0],r=s[1];this.read(i,r,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${t}loading namespace ${r} for language ${i} failed`,s),!s&&a&&this.logger.log(`${t}loaded namespace ${r} for language ${i}`,a),this.loaded(e,s,a)})}saveMissing(e,t,s,i,r,a={},n=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=s&&""!==s){if(this.backend?.create){let o={...a,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;(r=5===l.length?l(e,t,s,i,o):l(e,t,s,i))&&"function"==typeof r.then?r.then(e=>n(null,e)).catch(n):n(null,r)}catch(e){n(e)}else l(e,t,s,i,n,o)}e&&e[0]&&this.store.addResource(e[0],t,s,i)}}}let W=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),i(e[1])&&(t.defaultValue=e[1]),i(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let s=e[3]||e[2];Object.keys(s).forEach(e=>{t[e]=s[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Y=e=>(i(e.ns)&&(e.ns=[e.ns]),i(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),i(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),G=()=>{},Z=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})};class Q extends E{constructor(e={},t){if(super(),this.options=Y(e),this.services={},this.logger=N,this.modules={external:[]},Z(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(i(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let s=W();this.options={...s,...this.options,...Y(e)},this.options.interpolation={...s.interpolation,...this.options.interpolation}
1,void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=s.overloadTranslationOptionHandler);let a=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?N.init(a(this.modules.logger),this.options):N.init(null,this.options),e=this.modules.formatter?this.modules.formatter:B;let t=new I(this.options);this.store=new R(this.options.resources,this.options);let s=this.services;s.logger=N,s.resourceStore=this.store,s.languageUtils=t,s.pluralResolver=new D(t,{prepend:this.options.pluralSeparator}),e&&(s.formatter=a(e),s.formatter.init&&s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new M(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new J(a(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(s.languageDetector=a(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=a(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new T(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=G),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let n=r(),o=()=>{let e=(e,s)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),n.resolve(s),t(e,s)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?o():setTimeout(o,0),n}loadResources(e,t=G){let s=t,r=i(e)?e:this.language;if("function"==typeof e&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return s();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),s(e)})}else s(null)}reloadResources(e,t,s){let i=r();return"function"==typeof e&&(s=e,e=void 0),"function"==typeof t&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=G),this.services.backendConnector.reload(e,t,e=>{i.resolve(),s(e)}),i}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&C.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let s=r();
1this.emit("languageChanging",e);let a=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},n=(i,r)=>{r?this.isLanguageChangingTo===e&&(a(r),this.translator.changeLanguage(r),this.isLanguageChangingTo=void 0,this.emit("languageChanged",r),this.logger.log("languageChanged",r)):this.isLanguageChangingTo=void 0,s.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},o=t=>{e||t||!this.services.languageDetector||(t=[]);let s=i(t)?t:t&&t[0],r=this.store.hasLanguageSomeTranslations(s)?s:this.services.languageUtils.getBestMatchFromCodes(i(t)?[t]:t);r&&(this.language||a(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector?.cacheUserLanguage?.(r)),this.loadResources(r,e=>{n(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),s}getFixedT(e,t,s){let r=(e,t,...i)=>{let a,n;(a="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t}).lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||s||r.keyPrefix);let o={...this.options,...a};"function"==typeof a.keyPrefix&&(a.keyPrefix=P(a.keyPrefix,o));let l=this.options.keySeparator||".";return a.keyPrefix&&Array.isArray(e)?n=e.map(e=>("function"==typeof e&&(e=P(e,o)),`${a.keyPrefix}${l}${e}`)):("function"==typeof e&&(e=P(e,o)),n=a.keyPrefix?`${a.keyPrefix}${l}${e}`:e),this.t(n,a)};return i(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=s,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let s=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===s.toLowerCase())return!0;let a=(e,t)=>{let s=this.services.backendConnector.state[`${e}|${t}`];return -1===s||0===s||2===s};if(t.precheck){let e=t.precheck(this,a);if(void 0!==e)return e}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(s,e)&&(!i||a(r,e)))}loadNamespaces(e,t){let s=r();return this.options.ns?(i(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{s.resolve(),t&&t(e)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){let s=r();i(e)&&(e=[e]);let a=this.options.preload||[],n=e.filter(e=>!a.includes(e)&&this.services.languageUtils.isSupportedCode(e));return n.length?(this.options.preload=a.concat(n),this.loadResources(e=>{s.resolve(),t&&t(e)}),s):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new I(W());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let s=new Q(e,t);return s.createInstance=Q.createInstance,s}cloneInstance(e={},t=G){let s=e.forkResourceStore;s&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},r=new Q(i);if((void 0!==e.debug||void 0!==e.prefix)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(e=>{r[e]=this[e]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},s&&(r.store=new R(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((s,i)=>(s[i]={...e[t][i]},s),e[t]),e),{}),i),r.services.resourceStore=r.store),e.interpolation){let t={...W().interpolation,...this.options.interpolation,...e.interpolation},s={...i,interpolation:t};r.services.interpolator=new M(s)}return r.translator=new T(r.services,i),r.translator.on("*",(e,...t)=>{r.emit(e,...t)}),r.init(i,t),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let X=Q.createInstance();X.createInstance,X.dir,X.init,X.loadResources,X.reloadResources,X.use,X.changeLanguage,X.getFixedT,X.t,X.exists,X.setDefaultNamespace,X.hasLoadedNamespace,X.loadNamespaces,X.loadLanguages}}]);
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.