PageSourceSearch

https://www.homofaber.com/assets/i18n-vendor-CgdUv56d.js

js homofaber.com collected 2026-09-24 08:38:28 UTC 58,044 bytes, 9 lines download raw bytes

1function Me(i,e){for(var t=0;t<e.length;t++){const n=e[t];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in i)){const r=Object.getOwnPropertyDescriptor(n,s);r&&Object.defineProperty(i,s,r.get?r:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var Ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _e(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}const b=i=>typeof i=="string",X=()=>{let i,e;const t=new Promise((n,s)=>{i=n,e=s});return t.resolve=i,t.reject=e,t},pe=i=>i==null?"":""+i,Ue=(i,e,t)=>{i.forEach(n=>{e[n]&&(t[n]=e[n])})},Ke=/###/g,me=i=>i&&i.indexOf("###")>-1?i.replace(Ke,"."):i,ye=i=>!i||b(i),ee=(i,e,t)=>{const n=b(e)?e.split("."):e;let s=0;for(;s<n.length-1;){if(ye(i))return{};const r=me(n[s]);!i[r]&&t&&(i[r]=new t),Object.prototype.hasOwnProperty.call(i,r)?i=i[r]:i={},++s}return ye(i)?{}:{obj:i,k:me(n[s])}},xe=(i,e,t)=>{const{obj:n,k:s}=ee(i,e,Object);if(n!==void 0||e.length===1){n[s]=t;return}let r=e[e.length-1],o=e.slice(0,e.length-1),l=ee(i,o,Object);for(;l.obj===void 0&&o.length;)r=`${o[o.length-1]}.${r}`,o=o.slice(0,o.length-1),l=ee(i,o,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${r}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${r}`]=t},Ve=(i,e,t,n)=>{const{obj:s,k:r}=ee(i,e,Object);s[r]=s[r]||[],s[r].push(t)},re=(i,e)=>{const{obj:t,k:n}=ee(i,e);if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n]},ze=(i,e,t)=>{const n=re(i,t);return n!==void 0?n:re(e,t)},je=(i,e,t)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in i?b(i[n])||i[n]instanceof String||b(e[n])||e[n]instanceof String?t&&(i[n]=e[n]):je(i[n],e[n],t):i[n]=e[n]);return i},q=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Be={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Ye=i=>b(i)?i.replace(/[&<>"'\/]/g,e=>Be[e]):i;class Je{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const We=[" ",",","?","!",";"],Ge=new Je(20),qe=(i,e,t)=>{e=e||"",t=t||"";const n=We.filter(o=>e.indexOf(o)<0&&t.indexOf(o)<0);if(n.length===0)return!0;const s=Ge.getRegExp(`(${n.map(o=>o==="?"?"\\?":o).join("|")})`);let r=!s.test(i);if(!r){const o=i.indexOf(t);o>0&&!s.test(i.substring(0,o))&&(r=!0)}return r},ce=function(i,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!i)return;if(i[e])return Object.prototype.hasOwnProperty.call(i,e)?i[e]:void 0;const n=e.split(t);let s=i;for(let r=0;r<n.length;){if(!s||typeof s!="object")return;let o,l="";for(let u=r;u<n.length;++u)if(u!==r&&(l+=t),l+=n[u],o=s[l],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&u<n.length-1)continue;r+=u-r+1;break}s=o}return s},ie=i=>i==null?void 0:i.replace("_","-"),Qe={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,e){var t,n;(n=(t=console==null?void 0:console[i])==null?void 0:t.apply)==null||n.call(t,console,e)}};class ae{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Qe,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,s){return s&&!this.debug?null:(b(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new ae(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new ae(this.logger,e)}}var Y=new ae;class ue{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const s=this.observers[n].get(t)||0;this.observers[n].set(t,s+1)}),this}
1off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(o=>{let[l,u]=o;for(let f=0;f<u;f++)l(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[l,u]=o;for(let f=0;f<u;f++)l.apply(l,[e,...n])})}}class Se extends ue{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){var f,c;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):b(n)&&r?l.push(...n.split(r)):l.push(n)));const u=re(this.data,l);return!u&&!t&&!n&&e.indexOf(".")>-1&&(e=l[0],t=l[1],n=l.slice(2).join(".")),u||!o||!b(n)?u:ce((c=(f=this.data)==null?void 0:f[e])==null?void 0:c[t],n,r)}addResource(e,t,n,s){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let l=[e,t];
1n&&(l=l.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(l=e.split("."),s=t,t=l[1]),this.addNamespaces(t),xe(this.data,l,s),r.silent||this.emit("added",e,t,n,s)}addResources(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const r in n)(b(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});s.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,s,r){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[e,t];e.indexOf(".")>-1&&(l=e.split("."),s=n,n=t,t=l[1]),this.addNamespaces(t);let u=re(this.data,l)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),s?je(u,n,r):u={...u,...n},xe(this.data,l,u),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}}var Ae={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,e,t,n,s){return i.forEach(r=>{var o;e=((o=this.processors[r])==null?void 0:o.process(e,t,n,s))??e}),e}};const be={},ve=i=>!b(i)&&typeof i!="boolean"&&typeof i!="number";class oe extends ue{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ue(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Y.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,t);return(n==null?void 0:n.res)!==void 0}extractFromKey(e,t){let n=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let r=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,l=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!qe(e,n,s);if(o&&!l){const u=e.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:e,namespaces:b(r)?[r]:r};const f=e.split(n);(n!==s||n===s&&this.options.ns.indexOf(f[0])>-1)&&(r=f.shift()),e=f.join(s)}return{key:e,namespaces:b(r)?[r]:r}}translate(e,t,n){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const s=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,r=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],t),u=l[l.length-1],f=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((f==null?void 0:f.toLowerCase())==="cimode"){if(c){const E=t.nsSeparator||this.options.nsSeparator;return s?{res:`${u}${E}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:`${u}${E}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:o}const h=this.resolve(e,t);let d=h==null?void 0:h.res;const y=(h==null?void 0:h.usedKey)||o,p=(h==null?void 0:h.exactUsedKey)||o,m=["[object Number]","[object Function]","[object RegExp]"],w=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,$=!this.i18nFormat||this.i18nFormat.handleAsObject,P=t.count!==void 0&&!b(t.count),T=oe.hasDefaultValue(t),A=P?this.pluralResolver.getSuffix(f,t.count,t):"",V=t.ordinal&&P?this.pluralResolver.getSuffix(f,t.count,{ordinal:!1}):"",U=P&&!t.ordinal&&t.count===0,x=U&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${A}`]||t[`defaultValue${V}`]||t.defaultValue;let R=d;$&&!d&&T&&(R=x);const j=ve(R),k=Object.prototype.toString.apply(R);if($&&R&&j&&m.indexOf(k)<0&&!(b(w)&&Array.isArray(R))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,R,{...t,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(h.res=E,h.usedParams=this.getUsedParamsDetails(t),h):E}if(r){const E=Array.isArray(R),M=E?[]:{},Z=E?p:y;for(const D in R)if(Object.prototype.hasOwnProperty.call(R,D)){const z=`${Z}${r}${D}`;T&&!d?M[D]=this.translate(z,{...t,defaultValue:ve(x)?x[D]:void 0,joinArrays:!1,ns:l}):M[D]=this.translate(z,{...t,joinArrays:!1,ns:l}),M[D]===z&&(M[D]=R[D])}d=M}}else if($&&b(w)&&Array.isArray(d))d=d.join(w),d&&(d=this.extendTranslation(d,e,t,n));else{let E=!1,M=!1;!this.isValidLookup(d)&&T&&(E=!0,d=x),this.isValidLookup(d)||(M=!0,d=o);const D=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&M?void 0:d,z=T&&x!==d&&this.options.updateMissing;if(M||E||z){if(this.logger.log(z?"updateKey":"missingKey",f,u,o,z?x:d),r){const I=this.resolve(o,{...t,keySeparator:!1});I&&I.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 K=[];const J=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&J&&J[0])for(let I=0;I<J.length;I++)K.push(J[I]);else this.options.saveMissingTo==="all"?K=this.languageUtils.toResolveHierarchy(t.lng||this.language):K.push(t.lng||this.language);const ne=(I,W,a)=>{var S;const g=T&&a!==d?a:D;this.options.missingKeyHandler?this.options.missingKeyHandler(I,u,W,g,z,t):(S=this.backendConnector)!=null&&S.saveMissing&&this.backendConnector.saveMissing(I,u,W,g,z,t),this.emit
1("missingKey",I,u,W,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?K.forEach(I=>{const W=this.pluralResolver.getSuffixes(I,t);U&&t[`defaultValue${this.options.pluralSeparator}zero`]&&W.indexOf(`${this.options.pluralSeparator}zero`)<0&&W.push(`${this.options.pluralSeparator}zero`),W.forEach(a=>{ne([I],o+a,t[`defaultValue${a}`]||x)})}):ne(K,o,x))}d=this.extendTranslation(d,e,t,h,n),M&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${u}:${o}`),(M||E)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${o}`:o,E?d:void 0))}return s?(h.res=d,h.usedParams=this.getUsedParamsDetails(t),h):d}extendTranslation(e,t,n,s,r){var f,c;var o=this;if((f=this.i18nFormat)!=null&&f.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const h=b(e)&&(((c=n==null?void 0:n.interpolation)==null?void 0:c.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(h){const p=e.match(this.interpolator.nestingRegexp);d=p&&p.length}let y=n.replace&&!b(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(y={...this.options.interpolation.defaultVariables,...y}),e=this.interpolator.interpolate(e,y,n.lng||this.language||s.usedLng,n),h){const p=e.match(this.interpolator.nestingRegexp),m=p&&p.length;d<m&&(n.nest=!1)}!n.lng&&s&&s.res&&(n.lng=this.language||s.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var p=arguments.length,m=new Array(p),w=0;w<p;w++)m[w]=arguments[w];return(r==null?void 0:r[0])===m[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${t[0]}`),null):o.translate(...m,t)},n)),n.interpolation&&this.interpolator.reset()}const l=n.postProcess||this.options.postProcess,u=b(l)?[l]:l;return e!=null&&(u!=null&&u.length)&&n.applyPostProcessor!==!1&&(e=Ae.handle(u,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,s,r,o,l;return b(e)&&(e=[e]),e.forEach(u=>{if(this.isValidLookup(n))return;const f=this.extractFromKey(u,t),c=f.key;s=c;let h=f.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const d=t.count!==void 0&&!b(t.count),y=d&&!t.ordinal&&t.count===0,p=t.context!==void 0&&(b(t.context)||typeof t.context=="number")&&t.context!=="",m=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);h.forEach(w=>{var $,P;this.isValidLookup(n)||(l=w,!be[`${m[0]}-${w}`]&&(($=this.utils)!=null&&$.hasLoadedNamespace)&&!((P=this.utils)!=null&&P.hasLoadedNamespace(l))&&(be[`${m[0]}-${w}`]=!0,this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${l}" 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!!!")),m.forEach(T=>{var U;if(this.isValidLookup(n))return;o=T;const A=[c];if((U=this.i18nFormat)!=null&&U.addLookupKeys)this.i18nFormat.addLookupKeys(A,c,T,w,t);else{let x;d&&(x=this.pluralResolver.getSuffix(T,t.count,t));const R=`${this.options.pluralSeparator}zero`,j=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(A.push(c+x),t.ordinal&&x.indexOf(j)===0&&A.push(c+x.replace(j,this.options.pluralSeparator)),y&&A.push(c+R)),p){const k=`${c}${this.options.contextSeparator}${t.context}`;A.push(k),d&&(A.push(k+x),t.ordinal&&x.indexOf(j)===0&&A.push(k+x.replace(j,this.options.pluralSeparator)),y&&A.push(k+R))}}let V;for(;V=A.pop();)this.isValidLookup(n)||(r=V,n=this.getResource(T,w,V,t))}))})}),{res:n,usedKey:s,exactUsedKey:r,usedLng:o,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,n){var r;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(r=this.i18nFormat)!=null&&r.getResource?this.i18nFormat.getResource(e,t,n,s):this.resourceStore.getResource(e,t,n,s)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!b(e.replace);let s=n?e.replace:e;if(n&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!n){s={...s};for(const r of t)delete s[r]}return s}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}class Oe{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Y.create("languageUtils")}getScriptPartFromCode(e){if(e=ie(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=ie(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(b(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(n=>{if(t)return;const s=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(n=>{if(t)return;const s=this.getLanguagePartFromCode(n);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(r=>{if(r===s)return r;if(!(r.indexOf("-")<0&&s.indexOf("-")<0)&&(r.indexOf("-")>0&&s.indexOf("-")<0&&r.substring(0,r.indexOf("-"))===s||r.indexOf(s)===0&&s.length>1))return r})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),b(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];
1return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),s=[],r=o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return b(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(e))):b(e)&&r(this.formatLanguageCode(e)),n.forEach(o=>{s.indexOf(o)<0&&r(this.formatLanguageCode(o))}),s}}const we={zero:0,one:1,two:2,few:3,many:4,other:5},Re={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ze{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Y.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=ie(e==="dev"?"en":e),s=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:n,type:s});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let o;try{o=new Intl.PluralRules(n,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Re;if(!e.match(/-|_/))return Re;const u=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(u,t)}return this.pluralRulesCache[r]=o,o}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(s=>`${t}${s}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((s,r)=>we[s]-we[r]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(e,n);return s?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const Ce=function(i,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,r=ze(i,e,t);return!r&&s&&b(t)&&(r=ce(i,t,n),r===void 0&&(r=ce(e,t,n))),r},le=i=>i.replace(/\$/g,"$$$$");class Xe{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Y.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:s,prefix:r,prefixEscaped:o,suffix:l,suffixEscaped:u,formatSeparator:f,unescapeSuffix:c,unescapePrefix:h,nestingPrefix:d,nestingPrefixEscaped:y,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:w,maxReplaces:$,alwaysFormat:P}=e.interpolation;this.escape=t!==void 0?t:Ye,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=r?q(r):o||"{{",this.suffix=l?q(l):u||"}}",this.formatSeparator=f||",",this.unescapePrefix=c?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?q(d):y||q("$t("),this.nestingSuffix=p?q(p):m||q(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=$||1e3,this.alwaysFormat=P!==void 0?P:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,n)=>(t==null?void 0:t.source)===n?(t.lastIndex=0,t):new RegExp(n,"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,n,s){var y;let r,o,l;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=p=>
1{if(p.indexOf(this.formatSeparator)<0){const P=Ce(t,u,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(P,void 0,n,{...s,...t,interpolationkey:p}):P}const m=p.split(this.formatSeparator),w=m.shift().trim(),$=m.join(this.formatSeparator).trim();return this.format(Ce(t,u,w,this.options.keySeparator,this.options.ignoreJSONStructure),$,n,{...s,...t,interpolationkey:w})};this.resetRegExp();const c=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,h=((y=s==null?void 0:s.interpolation)==null?void 0:y.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>le(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?le(this.escape(p)):le(p)}].forEach(p=>{for(l=0;r=p.regex.exec(e);){const m=r[1].trim();if(o=f(m),o===void 0)if(typeof c=="function"){const $=c(e,r,s);o=b($)?$:""}else if(s&&Object.prototype.hasOwnProperty.call(s,m))o="";else if(h){o=r[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),o="";else!b(o)&&!this.useRawValueToEscape&&(o=pe(o));const w=p.safeValue(o);if(e=e.replace(r[0],w),h?(p.regex.lastIndex+=o.length,p.regex.lastIndex-=r[0].length):p.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,r,o;const l=(u,f)=>{const c=this.nestingOptionsSeparator;if(u.indexOf(c)<0)return u;const h=u.split(new RegExp(`${c}[ ]*{`));let d=`{${h[1]}`;u=h[0],d=this.interpolate(d,o);const y=d.match(/'/g),p=d.match(/"/g);(((y==null?void 0:y.length)??0)%2===0&&!p||p.length%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),f&&(o={...f,...o})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,m),`${u}${c}${d}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,u};for(;s=this.nestingRegexp.exec(e);){let u=[];o={...n},o=o.replace&&!b(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let f=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const c=s[1].split(this.formatSeparator).map(h=>h.trim());s[1]=c.shift(),u=c,f=!0}if(r=t(l.call(this,s[1].trim(),o),o),r&&s[0]===e&&!b(r))return r;b(r)||(r=pe(r)),r||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),r=""),f&&(r=u.reduce((c,h)=>this.format(c,h,n.lng,{...n,interpolationkey:s[1].trim()}),r.trim())),e=e.replace(s[0],r),this.regexp.lastIndex=0}return e}}const et=i=>{let e=i.toLowerCase().trim();const t={};if(i.indexOf("(")>-1){const n=i.split("(");e=n[0].toLowerCase().trim();const s=n[1].substring(0,n[1].length-1);e==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(o=>{if(o){const[l,...u]=o.split(":"),f=u.join(":").trim().replace(/^'+|'+$/g,""),c=l.trim();t[c]||(t[c]=f),f==="false"&&(t[c]=!1),f==="true"&&(t[c]=!0),isNaN(f)||(t[c]=parseInt(f,10))}})}return{formatName:e,formatOptions:t}},Q=i=>{const e={};return(t,n,s)=>{let r=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(r={...r,[s.interpolationkey]:void 0});const o=n+JSON.stringify(r);let l=e[o];return l||(l=i(ie(n),s),e[o]=l),l(t)}};class tt{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Y.create("formatter"),this.options=e,this.formats={number:Q((t,n)=>{const s=new Intl.NumberFormat(t,{...n});return r=>s.format(r)}),currency:Q((t,n)=>{const s=new Intl.NumberFormat(t,{...n,style:"currency"});return r=>s.format(r)}),datetime:Q((t,n)=>{const s=new Intl.DateTimeFormat(t,{...n});return r=>s.format(r)}),relativetime:Q((t,n)=>{const s=new Intl.RelativeTimeFormat(t,{...n});return r=>s.format(r,n.range||"day")}),list:Q((t,n)=>{const s=new Intl.ListFormat(t,{...n});return r=>s.format(r)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Q(t)}format(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=t.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find(l=>l.indexOf(")")>-1)){const l=r.findIndex(u=>u.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,l)].join(this.formatSeparator)}return r.reduce((l,u)=>{var h;const{formatName:f,formatOptions:c}=et(u);
1if(this.formats[f]){let d=l;try{const y=((h=s==null?void 0:s.formatParams)==null?void 0:h[s.interpolationkey])||{},p=y.locale||y.lng||s.locale||s.lng||n;d=this.formats[f](l,p,{...c,...s,...y})}catch(y){this.logger.warn(y)}return d}else this.logger.warn(`there was no format function for ${f}`);return l},e)}}const nt=(i,e)=>{i.pending[e]!==void 0&&(delete i.pending[e],i.pendingCount--)};class st extends ue{constructor(e,t,n){var r,o;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=s,this.logger=Y.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(o=(r=this.backend)==null?void 0:r.init)==null||o.call(r,n,s.backend,s)}queueLoad(e,t,n,s){const r={},o={},l={},u={};return e.forEach(f=>{let c=!0;t.forEach(h=>{const d=`${f}|${h}`;!n.reload&&this.store.hasResourceBundle(f,h)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?o[d]===void 0&&(o[d]=!0):(this.state[d]=1,c=!1,o[d]===void 0&&(o[d]=!0),r[d]===void 0&&(r[d]=!0),u[h]===void 0&&(u[h]=!0)))}),c||(l[f]=!0)}),(Object.keys(r).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(r),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(e,t,n){const s=e.split("|"),r=s[0],o=s[1];t&&this.emit("failedLoading",r,o,t),!t&&n&&this.store.addResourceBundle(r,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const l={};this.queue.forEach(u=>{Ve(u.loaded,[r],o),nt(u,e),t&&u.errors.push(t),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(f=>{l[f]||(l[f]={});const c=u.loaded[f];c.length&&c.forEach(h=>{l[f][h]===void 0&&(l[f][h]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:s,wait:r,callback:o});return}this.readingCalls++;const l=(f,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(f&&c&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,s+1,r*2,o)},r);return}o(f,c)},u=this.backend[n].bind(this.backend);if(u.length===2){try{const f=u(e,t);f&&typeof f.then=="function"?f.then(c=>l(null,c)).catch(l):l(null,f)}catch(f){l(f)}return}return u(e,t,l)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();b(e)&&(e=this.languageUtils.toResolveHierarchy(e)),b(t)&&(t=[t]);const r=this.queueLoad(e,t,n,s);if(!r.toLoad.length)return r.pending.length||s(),null;r.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),s=n[0],r=n[1];this.read(s,r,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${t}loading namespace ${r} for language ${s} failed`,o),!o&&l&&this.logger.log(`${t}loaded namespace ${r} for language ${s}`,l),this.loaded(e,o,l)})}saveMissing(e,t,n,s,r){var u,f,c,h,d;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((f=(u=this.services)==null?void 0:u.utils)!=null&&f.hasLoadedNamespace&&!((h=(c=this.services)==null?void 0:c.utils)!=null&&h.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${n}" 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!!!");return}if(!(n==null||n==="")){if((d=this.backend)!=null&&d.create){const y={...o,isUpdate:r},p=this.backend.create.bind(this.backend);if(p.length<6)try{let m;p.length===5?m=p(e,t,n,s,y):m=p(e,t,n,s),m&&typeof m.then=="function"?m.then(w=>l(null,w)).catch(l):l(null,m)}catch(m){l(m)}else p(e,t,n,s,l,y)}!e||!e[0]||this.store.addResource(e[0],t,n,s)}}}const Le=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,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:i=>{let e={};if(typeof i[1]=="object"&&(e=i[1]),b(i[1])&&(e.defaultValue=i[1]),b(i[2])&&(e.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const t=i[3]||i[2];Object.keys(t).forEach(n=>{e[n]=t[n]})}return e},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Ee=i=>{var e,t;return b(i.ns)&&(i.ns=[i.ns]),b(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),b(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((t=(e=i.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},se=()=>{},rt=i=>
1{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(t=>{typeof i[t]=="function"&&(i[t]=i[t].bind(i))})};class te extends ue{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Ee(e),this.services={},this.logger=Y,this.modules={external:[]},rt(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(b(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=Le();this.options={...s,...this.options,...Ee(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const r=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Y.init(r(this.modules.logger),this.options):Y.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=tt;const h=new Oe(this.options);this.store=new Se(this.options.resources,this.options);const d=this.services;d.logger=Y,d.resourceStore=this.store,d.languageUtils=h,d.pluralResolver=new Ze(h,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(d.formatter=r(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Xe(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new st(r(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(y){for(var p=arguments.length,m=new Array(p>1?p-1:0),w=1;w<p;w++)m[w-1]=arguments[w];e.emit(y,...m)}),this.modules.languageDetector&&(d.languageDetector=r(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=r(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new oe(this.services,this.options),this.translator.on("*",function(y){for(var p=arguments.length,m=new Array(p>1?p-1:0),w=1;w<p;w++)m[w-1]=arguments[w];e.emit(y,...m)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,n||(n=se),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const u=X(),f=()=>{const c=(h,d)=>{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),u.resolve(d),n(h,d)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),u}loadResources(e){var r,o;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se;const s=b(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const l=[],u=f=>
1{if(!f||f==="cimode")return;this.services.languageUtils.toResolveHierarchy(f).forEach(h=>{h!=="cimode"&&l.indexOf(h)<0&&l.push(h)})};s?u(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>u(c)),(o=(r=this.options.preload)==null?void 0:r.forEach)==null||o.call(r,f=>u(f)),this.services.backendConnector.load(l,this.options.ns,f=>{!f&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(f)})}else n(null)}reloadResources(e,t,n){const s=X();return typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=se),this.services.backendConnector.reload(e,t,r=>{s.resolve(),n(r)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Ae.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const s=X();this.emit("languageChanging",e);const r=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},o=(u,f)=>{f?(r(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,s.resolve(function(){return n.t(...arguments)}),t&&t(u,function(){return n.t(...arguments)})},l=u=>{var c,h;!e&&!u&&this.services.languageDetector&&(u=[]);const f=b(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);f&&(this.language||r(f),this.translator.language||this.translator.changeLanguage(f),(h=(c=this.services.languageDetector)==null?void 0:c.cacheUserLanguage)==null||h.call(c,f)),this.loadResources(f,d=>{o(d,f)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),s}getFixedT(e,t,n){var s=this;const r=function(o,l){let u;if(typeof l!="object"){for(var f=arguments.length,c=new Array(f>2?f-2:0),h=2;h<f;h++)c[h-2]=arguments[h];u=s.options.overloadTranslationOptionHandler([o,l].concat(c))}else u={...l};u.lng=u.lng||r.lng,u.lngs=u.lngs||r.lngs,u.ns=u.ns||r.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||n||r.keyPrefix);const d=s.options.keySeparator||".";let y;return u.keyPrefix&&Array.isArray(o)?y=o.map(p=>`${u.keyPrefix}${d}${p}`):y=u.keyPrefix?`${u.keyPrefix}${d}${o}`:o,s.t(y,u)};return b(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(){var s;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(s=this.translator)==null?void 0:s.translate(...t)}exists(){var s;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(s=this.translator)==null?void 0:s.exists(...t)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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;const n=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const o=(l,u)=>{const f=this.services.backendConnector.state[`${l}|${u}`];return f===-1||f===0||f===2};if(t.precheck){const l=t.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,e)&&(!s||o(r,e)))}loadNamespaces(e,t){const n=X();return this.options.ns?(b(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{n.resolve(),t&&t(s)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=X();b(e)&&(e=[e]);const s=this.options.preload||[],r=e.filter(o=>s.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return r.length?(this.options.preload=s.concat(r),this.loadResources(o=>{n.resolve(),t&&t(o)}),n):(t&&t(),Promise.resolve())}dir(e){var s,r;if(e||(e=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["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"],n=((r=this.services)==null?void 0:r.languageUtils)||new Oe(Le());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new te(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},r=new te(s);if((e.debug!==void 0||e.prefix!==void 0)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(l=>{r[l]=this[l]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n){const l=Object.keys(this.store.data).reduce((u,f)=>(u[f]={...this.store.data[f]},Object.keys(u[f]).reduce((c,h)=>(c[h]={...u[f][h]},c),{})),{});r.store=new Se(l,s),r.services.resourceStore=r.store}return r.translator=new oe(r.services,s),r.translator.on("*",function(l){for(var u=arguments.length,f=new Array(u>1?u-1:0),c=1;c<u;c++)f[c-1]=arguments[c];r.emit(l,...f)}),r.init(s,t),r.translator.options=s,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}}}const F=te.createInstance();F.createInstance=te.createInstance;F.createInstance;F.dir;F.init;F.loadResources;F.reloadResources;F.use;F.changeLanguage;F.getFixedT;F.t;F.exists;F.setDefaultNamespace;F.hasLoadedNamespace;F.loadNamespaces;F.loadLanguages;var fe={exports:{}},v={};/**
2 * @license React
3 * react.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Ne;function it(){if(Ne)return v;Ne=1;var i=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),d=Symbol.iterator;function y(a){return a===null||typeof a!="object"?null:(a=d&&a[d]||a["@@iterator"],typeof a=="function"?a:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,w={};function $(a,g,S){this.props=a,this.context=g,this.refs=w,this.updater=S||p}$.prototype.isReactComponent={},$.prototype.setState=function(a,g){if(typeof a!="object"&&typeof a!="function"&&a!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,g,"setState")},$.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function P(){}P.prototype=$.prototype;function T(a,g,S){this.props=a,this.context=g,this.refs=w,this.updater=S||p}var A=T.prototype=new P;A.constructor=T,m(A,$.prototype),A.isPureReactComponent=!0;var V=Array.isArray;function U(){}var x={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function j(a,g,S){var O=S.ref;return{$$typeof:i,type:a,key:g,ref:O!==void 0?O:null,props:S}}function k(a,g){return j(a.type,g,a.props)}function E(a){return typeof a=="object"&&a!==null&&a.$$typeof===i}function M(a){var g={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(S){return g[S]})}var Z=/\/+/g;function D(a,g){return typeof a=="object"&&a!==null&&a.key!=null?M(""+a.key):g.toString(36)}function z(a){switch(a.status){case"fulfilled":return a.value;case"rejected":throw a.reason;default:switch(typeof a.status=="string"?a.then(U,U):(a.status="pending",a.then(function(g){a.status==="pending"&&(a.status="fulfilled",a.value=g)},function(g){a.status==="pending"&&(a.status="rejected",a.reason=g)})),a.status){case"fulfilled":return a.value;case"rejected":throw a.reason}}throw a}function K(a,g,S,O,C){var L=typeof a;(L==="undefined"||L==="boolean")&&(a=null);var N=!1;if(a===null)N=!0;else switch(L){case"bigint":case"string":case"number":N=!0;break;case"object":switch(a.$$typeof){case i:case e:N=!0;break;case c:return N=a._init,K(N(a._payload),g,S,O,C)}}
vendor: 4,951 bytes, line 9
9if(N)return C=C(a),N=O===""?"."+D(a,0):O,V(C)?(S="",N!=null&&(S=N.replace(Z,"$&/")+"/"),K(C,g,S,"",function(He){return He})):C!=null&&(E(C)&&(C=k(C,S+(C.key==null||a&&a.key===C.key?"":(""+C.key).replace(Z,"$&/")+"/")+N)),g.push(C)),1;N=0;var B=O===""?".":O+":";if(V(a))for(var H=0;H<a.length;H++)O=a[H],L=B+D(O,H),N+=K(O,g,S,L,C);else if(H=y(a),typeof H=="function")for(a=H.call(a),H=0;!(O=a.next()).done;)O=O.value,L=B+D(O,H++),N+=K(O,g,S,L,C);else if(L==="object"){if(typeof a.then=="function")return K(z(a),g,S,O,C);throw g=String(a),Error("Objects are not valid as a React child (found: "+(g==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":g)+"). If you meant to render a collection of children, use an array instead.")}return N}function J(a,g,S){if(a==null)return a;var O=[],C=0;return K(a,O,"","",function(L){return g.call(S,L,C++)}),O}function ne(a){if(a._status===-1){var g=a._result;g=g(),g.then(function(S){(a._status===0||a._status===-1)&&(a._status=1,a._result=S)},function(S){(a._status===0||a._status===-1)&&(a._status=2,a._result=S)}),a._status===-1&&(a._status=0,a._result=g)}if(a._status===1)return a._result.default;throw a._result}var I=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var g=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(g))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},W={map:J,forEach:function(a,g,S){J(a,function(){g.apply(this,arguments)},S)},count:function(a){var g=0;return J(a,function(){g++}),g},toArray:function(a){return J(a,function(g){return g})||[]},only:function(a){if(!E(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};return v.Activity=h,v.Children=W,v.Component=$,v.Fragment=t,v.Profiler=s,v.PureComponent=T,v.StrictMode=n,v.Suspense=u,v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,v.__COMPILER_RUNTIME={__proto__:null,c:function(a){return x.H.useMemoCache(a)}},v.cache=function(a){return function(){return a.apply(null,arguments)}},v.cacheSignal=function(){return null},v.cloneElement=function(a,g,S){if(a==null)throw Error("The argument must be a React element, but you passed "+a+".");var O=m({},a.props),C=a.key;if(g!=null)for(L in g.key!==void 0&&(C=""+g.key),g)!R.call(g,L)||L==="key"||L==="__self"||L==="__source"||L==="ref"&&g.ref===void 0||(O[L]=g[L]);var L=arguments.length-2;if(L===1)O.children=S;else if(1<L){for(var N=Array(L),B=0;B<L;B++)N[B]=arguments[B+2];O.children=N}return j(a.type,C,O)},v.createContext=function(a){return a={$$typeof:o,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null},a.Provider=a,a.Consumer={$$typeof:r,_context:a},a},v.createElement=function(a,g,S){var O,C={},L=null;if(g!=null)for(O in g.key!==void 0&&(L=""+g.key),g)R.call(g,O)&&O!=="key"&&O!=="__self"&&O!=="__source"&&(C[O]=g[O]);var N=arguments.length-2;if(N===1)C.children=S;else if(1<N){for(var B=Array(N),H=0;H<N;H++)B[H]=arguments[H+2];C.children=B}if(a&&a.defaultProps)for(O in N=a.defaultProps,N)C[O]===void 0&&(C[O]=N[O]);return j(a,L,C)},v.createRef=function(){return{current:null}},v.forwardRef=function(a){return{$$typeof:l,render:a}},v.isValidElement=E,v.lazy=function(a){return{$$typeof:c,_payload:{_status:-1,_result:a},_init:ne}},v.memo=function(a,g){return{$$typeof:f,type:a,compare:g===void 0?null:g}},v.startTransition=function(a){var g=x.T,S={};x.T=S;try{var O=a(),C=x.S;C!==null&&C(S,O),typeof O=="object"&&O!==null&&typeof O.then=="function"&&O.then(U,I)}catch(L){I(L)}finally{g!==null&&S.types!==null&&(g.types=S.types),x.T=g}},v.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},v.use=function(a){return x.H.use(a)},v.useActionState=function(a,g,S){return x.H.useActionState(a,g,S)},v.useCallback=function(a,g){return x.H.useCallback(a,g)},v.useContext=function(a){return x.H.useContext(a)},v.useDebugValue=function(){},v.useDeferredValue=function(a,g){return x.H.useDeferredValue(a,g)},v.useEffect=function(a,g){return x.H.useEffect(a,g)},v.useEffectEvent=function(a){return x.H.useEffectEvent(a)},v.useId=function(){return x.H.useId()},v.useImperativeHandle=function(a,g,S){return x.H.useImperativeHandle(a,g,S)},v.useInsertionEffect=function(a,g){return x.H.useInsertionEffect(a,g)},v.useLayoutEffect=function(a,g){return x.H.useLayoutEffect(a,g)},v.useMemo=function(a,g){return x.H.useMemo(a,g)},v.useOptimistic=function(a,g){return x.H.useOptimistic(a,g)},v.useReducer=function(a,g,S){return x.H.useReducer(a,g,S)},v.useRef=function(a){return x.H.useRef(a)},v.useState=function(a){return x.H.useState(a)},v.useSyncExternalStore=function(a,g,S){return x.H.useSyncExternalStore(a,g,S)},v.useTransition=function(){return x.H.useTransition()}
9,v.version="19.2.5",v}var Pe;function at(){return Pe||(Pe=1,fe.exports=it()),fe.exports}var _=at();const ot=_e(_),wt=Me({__proto__:null,default:ot},[_]),ut=(i,e,t,n)=>{var r,o,l,u;const s=[t,{code:e,...n||{}}];if((o=(r=i==null?void 0:i.services)==null?void 0:r.logger)!=null&&o.forward)return i.services.logger.forward(s,"warn","react-i18next::",!0);G(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),(u=(l=i==null?void 0:i.services)==null?void 0:l.logger)!=null&&u.warn?i.services.logger.warn(...s):console!=null&&console.warn&&console.warn(...s)},$e={},de=(i,e,t,n)=>{G(t)&&$e[t]||(G(t)&&($e[t]=new Date),ut(i,e,t,n))},ke=(i,e)=>()=>{if(i.isInitialized)e();else{const t=()=>{setTimeout(()=>{i.off("initialized",t)},0),e()};i.on("initialized",t)}},ge=(i,e,t)=>{i.loadNamespaces(e,ke(i,t))},Te=(i,e,t,n)=>{if(G(t)&&(t=[t]),i.options.preload&&i.options.preload.indexOf(e)>-1)return ge(i,t,n);t.forEach(s=>{i.options.ns.indexOf(s)<0&&i.options.ns.push(s)}),i.loadLanguages(e,ke(i,n))},lt=(i,e,t={})=>!e.languages||!e.languages.length?(de(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(i,{lng:t.lng,precheck:(n,s)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!s(n.isLanguageChangingTo,i))return!1}}),G=i=>typeof i=="string",ft=i=>typeof i=="object"&&i!==null,ct=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,dt={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},gt=i=>dt[i],ht=i=>i.replace(ct,gt);let he={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ht};const pt=(i={})=>{he={...he,...i}},mt=()=>he;let Ie;const yt=i=>{Ie=i},xt=()=>Ie,Rt={type:"3rdParty",init(i){pt(i.options.react),yt(i)}},Fe=_.createContext();class St{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const bt=(i,e)=>{const t=_.useRef();return _.useEffect(()=>{t.current=i},[i,e]),t.current},De=(i,e,t,n)=>i.getFixedT(e,t,n),vt=(i,e,t,n)=>_.useCallback(De(i,e,t,n),[i,e,t,n]),Ct=(i,e={})=>{var A,V,U,x;const{i18n:t}=e,{i18n:n,defaultNS:s}=_.useContext(Fe)||{},r=t||n||xt();if(r&&!r.reportNamespaces&&(r.reportNamespaces=new St),!r){de(r,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const R=(k,E)=>G(E)?E:ft(E)&&G(E.defaultValue)?E.defaultValue:Array.isArray(k)?k[k.length-1]:k,j=[R,{},!1];return j.t=R,j.i18n={},j.ready=!1,j}(A=r.options.react)!=null&&A.wait&&de(r,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...mt(),...r.options.react,...e},{useSuspense:l,keyPrefix:u}=o;let f=i||s||((V=r.options)==null?void 0:V.defaultNS);f=G(f)?[f]:f||["translation"],(x=(U=r.reportNamespaces).addUsedNamespaces)==null||x.call(U,f);const c=(r.isInitialized||r.initializedStoreOnce)&&f.every(R=>lt(R,r,o)),h=vt(r,e.lng||null,o.nsMode==="fallback"?f:f[0],u),d=()=>h,y=()=>De(r,e.lng||null,o.nsMode==="fallback"?f:f[0],u),[p,m]=_.useState(d);let w=f.join();e.lng&&(w=`${e.lng}${w}`);const $=bt(w),P=_.useRef(!0);_.useEffect(()=>{const{bindI18n:R,bindI18nStore:j}=o;P.current=!0,!c&&!l&&(e.lng?Te(r,e.lng,f,()=>{P.current&&m(y)}):ge(r,f,()=>{P.current&&m(y)})),c&&$&&$!==w&&P.current&&m(y);const k=()=>{P.current&&m(y)};return R&&(r==null||r.on(R,k)),j&&(r==null||r.store.on(j,k)),()=>{P.current=!1,r&&R&&(R==null||R.split(" ").forEach(E=>r.off(E,k))),j&&r&&j.split(" ").forEach(E=>r.store.off(E,k))}},[r,w]),_.useEffect(()=>{P.current&&c&&m(d)},[r,u,c]);const T=[p,r,c];if(T.t=p,T.i18n=r,T.ready=c,c||!c&&!l)return T;throw new Promise(R=>{e.lng?Te(r,e.lng,f,()=>R()):ge(r,f,()=>R())})};function Lt({i18n:i,defaultNS:e,children:t}){const n=_.useMemo(()=>({i18n:i,defaultNS:e}),[i,e]);return _.createElement(Fe.Provider,{value:n},t)}export{Lt as I,wt as R,ot as a,at as b,Rt as c,Ot as d,_e as g,F as i,_ as r,Ct 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.