PageSourceSearch

https://ns.com/_next/static/chunks/71229-3fcc101a7699944c.js?dpl=dpl_A2U8huRzNx8u8wiWUaMiGooTUTPW

js ns.com collected 2026-10-02 04:47:36 UTC 65,093 bytes, 2 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="debbeb92-6cf4-4937-8514-cfecd936b13e",e._sentryDebugIdIdentifier="sentry-dbid-debbeb92-6cf4-4937-8514-cfecd936b13e")}()}catch(e){}!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];if(null!=s)for(var i in s)s.hasOwnProperty(i)&&(e[i]=s[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:ns-web":!0})}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[71229],{2291:(e,t,s)=>{e.exports=s(69534)},27111:(e,t,s)=>{let i;s.d(t,{T:()=>n,V:()=>r});let r=e=>{i=e},n=()=>i},46044:(e,t,s)=>{s.d(t,{r:()=>n});var i=s(99378),r=s(27111);let n={type:"3rdParty",init(e){(0,i.P)(e.options.react),(0,r.V)(e)}}},46424:(e,t,s)=>{s.d(t,{Q_:()=>W,Rm:()=>N});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},n=e=>null==e?"":String(e),a=/###/g,o=e=>e&&e.includes("###")?e.replace(a,"."):e,l=e=>!e||i(e),u=(e,t,s)=>{let r=i(t)?t.split("."):t,n=0;for(;n<r.length-1;){if(l(e))return{};let t=o(r[n]);!e[t]&&s&&(e[t]=new s),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++n}return l(e)?{}:{obj:e,k:o(r[n])}},c=(e,t,s)=>{let{obj:i,k:r}=u(e,t,Object);if(void 0!==i||1===t.length){i[r]=s;return}let n=t[t.length-1],a=t.slice(0,t.length-1),o=u(e,a,Object);for(;void 0===o.obj&&a.length;)n=`${a[a.length-1]}.${n}`,o=u(e,a=a.slice(0,a.length-1),Object),o?.obj&&void 0!==o.obj[`${o.k}.${n}`]&&(o.obj=void 0);o.obj[`${o.k}.${n}`]=s},p=(e,t)=>{let{obj:s,k:i}=u(e,t);if(s&&Object.prototype.hasOwnProperty.call(s,i))return s[i]},h=(e,t,s)=>{for(let r in t)"__proto__"!==r&&"constructor"!==r&&(Object.prototype.hasOwnProperty.call(e,r)?i(e[r])||e[r]instanceof String||i(t[r])||t[r]instanceof String?s&&(e[r]=t[r]):h(e[r],t[r],s):e[r]=t[r]);return e},d=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),g={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},f=e=>i(e)?e.replace(/[&<>"'\/]/g,e=>g[e]):e;class m{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 y=[" ",",","?","!",";"],b=new m(20),v=(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 n="";for(let a=e;a<i.length;++a)if(a!==e&&(n+=s),n+=i[a],void 0!==(t=r[n])){if(["string","number","boolean"].includes(typeof t)&&a<i.length-1)continue;e+=a-e+1;break}r=t}return r},x=e=>e?.replace(/_/g,"-"),k={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 S{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||k,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:(e=e.map(e=>i(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),i(e[0])&&(e[0]=`${s}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new S(this.logger,{...{prefix:`${this.prefix}:${e}:`},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new S(this.logger,e)}}var O=new S;class L{constructor(){this.observers={}}
1on(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 w extends L{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 n,a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?n=e.split("."):(n=[e,t],s&&(Array.isArray(s)?n.push(...s):i(s)&&a?n.push(...s.split(a)):n.push(s)));let l=p(this.data,n);return(!l&&!t&&!s&&e.includes(".")&&(e=n[0],t=n[1],s=n.slice(2).join(".")),!l&&o&&i(s))?v(this.data?.[e]?.[t],s,a):l}addResource(e,t,s,i,r={silent:!1}){let n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=[e,t];s&&(a=a.concat(n?s.split(n):s)),e.includes(".")&&(a=e.split("."),i=t,t=a[1]),this.addNamespaces(t),c(this.data,a,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,n={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(a=e.split("."),i=s,s=t,t=a[1]),this.addNamespaces(t);let o=p(this.data,a)||{};n.skipCopy||(s=JSON.parse(JSON.stringify(s))),i?h(o,s,r):o={...o,...s},c(this.data,a,o),n.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 $={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 E=Symbol("i18next/PATH_KEY");function N(e,t){let{[E]:s}=e(function(){let e,t=[],s=Object.create(null);return s.get=(i,r)=>(e?.revoke?.(),r===E)?t:(t.push(r),(e=Proxy.revocable(i,s)).proxy),Proxy.revocable(Object.create(null),s).proxy}()),i=t?.keySeparator??".",r=t?.nsSeparator??":",n=t?.enableSelector==="strict";if(s.length>1&&r){let e=t?.ns,a=n?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(a&&(n?a:a.length>1?a.slice(1):[]).includes(s[0]))return`${s[0]}${r}${s.slice(1).join(i)}`}return s.join(i)}let j=e=>!i(e)&&"boolean"!=typeof e&&"number"!=typeof e;class R extends L{constructor(e,t={}){super(),((e,t,s)=>{e.forEach(e=>{t[e]&&(s[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=O.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=j(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,n=t.ns||this.options.defaultNS||[],a=s&&e.includes(s),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,s)=>{t=t||"",s=s||"";let i=y.filter(e=>!t.includes(e)&&!s.includes(e));if(0===i.length)return!0;let r=b.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`),n=!r.test(e);if(!n){let t=e.indexOf(s);t>0&&!r.test(e.substring(0,t))&&(n=!0)}return n})(e,s,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i(n)?[n]:n};let a=e.split(s);(s!==r||s===r&&this.options.ns.includes(a[0]))&&(n=a.shift()),e=a.join(r)}return{key:e,namespaces:i(n)?[n]:n}}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=N(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?N(e,{...this.options,...r}):String(e));let n=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,a=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],c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let p=r.lng||this.language,h=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p?.toLowerCase()==="cimode")return h?n?{res:`${u}${c}${o}`,usedKey:o,exactUsedKey:o,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:`${u}${c}${o}`:n?{res:o,usedKey:o,exactUsedKey:o,usedLng:p,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,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==r.count&&!i(r.count),x=R.hasDefaultValue(r),k=v?this.pluralResolver.getSuffix(p,r.count,r):"",S=r.ordinal&&v?this.pluralResolver.getSuffix(p,r.count,{ordinal:!1}):"",O=v&&!r.ordinal&&0===r.count,L=O&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${k}`]||r[`defaultValue${S}`]||r.defaultValue,w=g;b&&!g&&x&&(w=L);let $=j(w),E=Object.prototype.toString.apply(w);if(b&&w&&$&&!["[object Number]","[object Function]","[object RegExp]"].includes(E)&&!(i(y)&&Array.isArray(w))){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,w,{...r,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return n?(d.res=e,d.usedParams=this.getUsedParamsDetails(r),d):e}if(a){let e=Array.isArray(w),t=e?[]:{},s=e?m:f;for(let e in w)if(Object.prototype.hasOwnProperty.call(w,e)){let i=`${s}${a}${e}`;x&&!g?t[e]=this.translate(i,{...r,defaultValue:j(L)?L[e]:void 0,...{joinArrays:!1,ns:l}}):t[e]=this.translate(i,{...r,joinArrays:!1,ns:l}),t[e]===i&&(t[e]=w[e])}g=t}}else if(b&&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 n=(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",p,u,v&&!l?`${o}${this.pluralResolver.getSuffix(p,r.count,r)}`:o,l?L:g),a){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:n;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&&v?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}${c}${o}`),(i||t)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${o}`:o,t?g:void 0,r))}return n?(d.res=g,d.usedParams=this.getUsedParamsDetails(r),d):g}extendTranslation(e,t,s,r,n){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 a;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);a=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);a<(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)=>n?.[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 a=s.postProcess||this.options.postProcess,o=i(a)?[a]:a;return null!=e&&o?.length&&!1!==s.applyPostProcessor&&(e=$.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,n,a,o;return i(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?N(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 c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let p=void 0!==t.count&&!i(t.count),h=p&&!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);
1c.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;a=i;let o=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,u,i,e,t);else{let e;p&&(e=this.pluralResolver.getSuffix(i,t.count,t));let s=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(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),p&&(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)||(n=r,s=this.getResource(i,e,r,t))}))})}),{res:s,usedKey:r,exactUsedKey:n,usedLng:a,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)}getUsedParamsDetails(e={}){let t=e.replace&&!i(e.replace),s=t?e.replace:e;if(t&&void 0!==e.count&&(s={...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 C{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=O.create("languageUtils")}getScriptPartFromCode(e){if(!(e=x(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=x(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=[],n=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&&n(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(e))):i(e)&&n(this.formatLanguageCode(e)),s.forEac
1h(e=>{r.includes(e)||n(this.formatLanguageCode(e))}),r}}let P={zero:0,one:1,two:2,few:3,many:4,other:5},I={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class A{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=O.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let s,i=x("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:i,type:r});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];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!"),I;if(!e.match(/-|_/))return I;let i=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(i,t)}return this.pluralRulesCache[n]=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)=>P[e]-P[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 T=(e,t,s,r=".",n=!0)=>{let a=((e,t,s)=>{let i=p(e,s);return void 0!==i?i:p(t,s)})(e,t,s);return!a&&n&&i(s)&&void 0===(a=v(e,s,r))&&(a=v(t,s,r)),a},F=e=>e.replace(/\$/g,"$$$$");class V{constructor(e={}){this.logger=O.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:n,suffix:a,suffixEscaped:o,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:p,nestingPrefixEscaped:h,nestingSuffix:g,nestingSuffixEscaped:m,nestingOptionsSeparator:y,maxReplaces:b,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:f,this.escapeValue=void 0===s||s,this.useRawValueToEscape=void 0!==i&&i,this.prefix=r?d(r):n||"{{",this.suffix=a?d(a):o||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c?d(c):"-",this.unescapeSuffix=this.unescapePrefix?"":u?d(u):"",this.nestingPrefix=p?d(p):h||d("$t("),this.nestingSuffix=g?d(g):m||d(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=b||1e3,this.alwaysFormat=void 0!==v&&v,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 a,o,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=T(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),n=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(T(t,u,n,this.options.keySeparator,this.options.ignoreJSONStructure),a,s,{...r,...t,interpolationkey:n})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let p=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,h=r?.interpolation?.ski
1pOnVariables!==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;a=t.regex.exec(e);){let s=a[1].trim();if(void 0===(o=c(s)))if("function"==typeof p){let t=p(e,a,r);o=i(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,s))o="";else if(h){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${s} for interpolating ${e}`),o="";else i(o)||this.useRawValueToEscape||(o=n(o));let u=t.safeValue(o);if(e=e.replace(a[0],F(u)),h?(t.regex.lastIndex+=u.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t,s={}){let r,a,o,l=(e,t)=>{let s=this.nestingOptionsSeparator;if(!e.includes(s))return e;let i=e.split(RegExp(`${d(s)}[ ]*{`)),r=`{${i[1]}`;e=i[0];let n=(r=this.interpolate(r,o)).match(/'/g),a=r.match(/"/g);((n?.length??0)%2!=0||a)&&(a?.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 c=/{.*}/s.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==c&&(u=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),(a=t(l.call(this,r[1].trim(),o),o))&&r[0]===e&&!i(a))return a;i(a)||(a=n(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),a=""),u.length&&(a=u.reduce((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:r[1].trim()}),a.trim())),e=e.replace(r[0],a),this.regexp.lastIndex=0}return e}}let D=e=>{let t={};return(s,i,r)=>{let n=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(n={...n,[r.interpolationkey]:void 0});let a=i+JSON.stringify(n),o=t[a];return o||(o=e(x(i),r),t[a]=o),o(s)}},_=e=>(t,s,i)=>e(x(s),i)(t);class M{constructor(e={}){this.logger=O.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let s=t.cacheInBuiltFormats?D:_;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()]=D(t)}format(e,t,s,i={}){if(!t||null==e)return e;let r=t.split(this.formatSeparator),n=[];for(let e=0;e<r.length;e++){let t=r[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<r.length;)t=`${t}${this.formatSeparator}${r[++e]}`;n.push(t)}return n.reduce((e,t)=>{let{formatName:r,formatOptions:n}=(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,""),n=t.trim();s[n]||(s[n]=r),"false"===r&&(s[n]=!1),"true"===r&&(s[n]=!0),isNaN(r)||(s[n]=parseInt(r,10))}}):s.range||(s.range=r.trim()):s.currency||(s.currency=r.trim())}return{formatName:t,formatOptions:s}})(t);if(this.formats[r]){let t=e;try{let a=i?.formatParams?.[i.interpolationkey]||{},o=a.locale||a.lng||i.locale||i.lng||s;t=this.formats[r](e,o,{...n,...i,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}}class U extends L{constructor(e,t,s,i={}){super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=O.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={},n={},a={},o={};
1return e.forEach(e=>{let i=!0;t.forEach(t=>{let a=`${e}|${t}`;!s.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===n[a]&&(n[a]=!0):(this.state[a]=1,i=!1,void 0===n[a]&&(n[a]=!0),void 0===r[a]&&(r[a]=!0),void 0===o[t]&&(o[t]=!0)))}),i||(a[e]=!0)}),(Object.keys(r).length||Object.keys(n).length)&&this.queue.push({pending:n,pendingCount:Object.keys(n).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(n),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(o)}}loaded(e,t,s){let i=e.split("|"),r=i[0],n=i[1];t&&this.emit("failedLoading",r,n,t),!t&&s&&this.store.addResourceBundle(r,n,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);let a={};this.queue.forEach(s=>{((e,t,s,i)=>{let{obj:r,k:n}=u(e,t,Object);r[n]=r[n]||[],r[n].push(s)})(s.loaded,[r],n),void 0!==s.pending[e]&&(delete s.pending[e],s.pendingCount--),t&&s.errors.push(t),0!==s.pendingCount||s.done||(Object.keys(s.loaded).forEach(e=>{a[e]||(a[e]={});let t=s.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,s,i=0,r=this.retryTimeout,n){if(!e.length)return n(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:s,tried:i,wait:r,callback:n});this.readingCalls++;let a=(a,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(a&&o&&i<this.maxRetries)return void setTimeout(()=>{this.read(e,t,s,i+1,2*r,n)},r);n(a,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=>a(null,e)).catch(a):a(null,s)}catch(e){a(e)}return}return o(e,t,a)}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 n=this.queueLoad(e,t,s,r);if(!n.toLoad.length)return n.pending.length||r(),null;n.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,n)=>{s&&this.logger.warn(`${t}loading namespace ${r} for language ${i} failed`,s),!s&&n&&this.logger.log(`${t}loaded namespace ${r} for language ${i}`,n),this.loaded(e,s,n)})}saveMissing(e,t,s,i,r,n={},a=()=>{}){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={...n,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=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}else l(e,t,s,i,a,o)}e&&e[0]&&this.store.addResource(e[0],t,s,i)}}}let K=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,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];
1Object.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}),B=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),H=()=>{};class z extends L{constructor(e={},t){if(super(),this.options=B(e),this.services={},this.logger=O,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(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=K();this.options={...s,...this.options,...B(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 n=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?O.init(n(this.modules.logger),this.options):O.init(null,this.options),e=this.modules.formatter?this.modules.formatter:M;let t=new C(this.options);this.store=new w(this.options.resources,this.options);let s=this.services;s.logger=O,s.resourceStore=this.store,s.languageUtils=t,s.pluralResolver=new A(t,{prepend:this.options.pluralSeparator}),e&&(s.formatter=n(e),s.formatter.init&&s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new V(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(n(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(s.languageDetector=n(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=n(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new R(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=H),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 a=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),a.resolve(s),t(e,s)};if((this.languages||this.isLanguageChangingTo)&&!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),a}loadResources(e,t=H){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=H),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&&$.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 n=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(i,r)=>{r?this.isLanguageChangingTo===e&&(n(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||n(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector?.cacheUserLanguage?.(r)),this.loadResources(r,e=>{a(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,r){let n=r?.scopeNs,a=(e,t,...i)=>{let r,o;(r="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t}).lng=r.lng||a.lng,r.lngs=r.lngs||a.lngs;let l=void 0!==r.ns&&null!==r.ns;r.ns=r.ns||a.ns,""!==r.keyPrefix&&(r.keyPrefix=r.keyPrefix||s||a.keyPrefix);let u={...this.options,...r};Array.isArray(n)&&!l&&(u.ns=n),"function"==typeof r.keyPrefix&&(r.keyPrefix=N(r.keyPrefix,u));let c=this.options.keySeparator||".";return r.keyPrefix&&Array.isArray(e)?o=e.map(e=>("function"==typeof e&&(e=N(e,u)),`${r.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=N(e,u)),o=r.keyPrefix?`${r.keyPrefix}${c}${e}`:e),this.t(o,r)};return i(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=s,a}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 n=(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,n);if(void 0!==e)return e}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||n(s,e)&&(!i||n(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 n=this.options.preload||[],a=e.filter(e=>!n.includes(e)&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=n.concat(a),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 C(K());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 z(e,t);return s.createInstance=z.createInstance,s}cloneInstance(e={},t=H){let s=e.forkResourceStore;s&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},r=new z(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 w(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={...K().interpolation,...this.options.interpolation,...e.interpolation},s={...i,interpolation:t};r.services.interpolator=new V(s)}return r.translator=new R(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 q=z.createInstance(),W=q.createInstance;q.dir,q.init,q.loadResources,q.reloadResources,q.use,q.changeLanguage,q.getFixedT,q.t,q.exists,q.setDefaultNamespace,q.hasLoadedNamespace,q.loadNamespaces,q.loadLanguages},69534:(e,t,s)=>{var i=s(13356),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=i.useState,a=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 c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),i=n({inst:{value:s,getSnapshot:t}}),r=i[0].inst,c=i[1];return o(function(){r.value=s,r.getSnapshot=t,u(r)&&c({inst:r})},[e,s,t]),a(function(){return u(r)&&c({inst:r}),e(function(){u(r)&&c({inst:r})})},[e]),l(s),s};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:c},71229:(e,t,s)=>{s.d(t,{CY:()=>h,kj:()=>d});var i=s(81463),r=s(13356),n=s(46424),a=s(91190),o=s(46044),l=["__proto__","constructor","prototype"],u=function(e,t){return!("string"!=typeof e||e.length>128||l.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||!t&&e.indexOf("/")>-1||/[\x00-\x1F\x7F]/.test(e))},c=s(18453),p=s(29152);function h(e){var{children:t,language:s,resources:l,supportedLngs:c,defaultNS:h="common",fallbackLng:d,localePath:g="/locales",localeStructure:f="{{lng}}/{{ns}}",localeExtension:m="json",use:y=[],i18nextOptions:b={}}=e,[v]=(0,r.useState)(()=>{var e,t=(0,n.Q_)();t.use(o.r);var r=y.some(e=>"backend"===e.type),a=l?new Set(Object.values(l).flatMap(e=>Object.keys(e))):new Set,p=a.size>0?[...a]:[h];r||t.use((e=(e,t)=>a.has(t)?{}:fetch("".concat(g,"/").concat(f.replace("{{lng}}",e).replace("{{ns}}",t),".").concat(m)).then(e=>e.ok?e.json():{}),{type:"backend",init:function(e,t,s){},read:function(t,s,i){if(!u(t,!1)||!u(s,!0))return i(Error("i18next-resources-to-backend: unsafe language/namespace value"),!1);!0;
1if(e.length<3){try{var r=e(t,s);r&&"function"==typeof r.then?r.then(function(e){return i(null,e&&e.default||e)}).catch(i):i(null,r)}catch(e){i(e)}return}e(t,s,i)}})),y.forEach(e=>t.use(e));var v=r||!l;return t.init((0,i._)({lng:s,resources:l,ns:p,partialBundledLanguages:v,defaultNS:h,fallbackLng:null!=d?d:s,supportedLngs:null!=c?c:l?Object.keys(l):[s],fallbackNS:h,interpolation:{escapeValue:!1},react:{useSuspense:!1}},b)),t});return(0,r.useEffect)(()=>{v.language!==s&&v.changeLanguage(s)},[v,s]),(0,p.jsx)(a.xC,{i18n:v,children:t})}function d(e,t){var s=(0,c.useParams)(),i="string"==typeof(null==s?void 0:s.lng)?s.lng:"string"==typeof(null==s?void 0:s.locale)?s.locale:void 0,n=(0,a.Bd)(e,t);return(0,r.useEffect)(()=>{i&&n.i18n.resolvedLanguage!==i&&n.i18n.changeLanguage(i)},[i,n.i18n]),n}},85068:(e,t,s)=>{s.d(t,{x:()=>a});let i=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,r={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},n=e=>r[e],a=e=>e.replace(i,n)},91190:(e,t,s)=>{s.d(t,{xC:()=>_,x6:()=>P,Bd:()=>D});var i=s(13356),r=s(46424);let n={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,"!doctype":!0,"!DOCTYPE":!0},a=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function o(e){let t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},s=e.match(/<\/?([^\s]+?)[/\s>]/);if(s&&(t.name=s[1],(n[s[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){let t=e.indexOf("--\x3e");return{type:"comment",comment:-1!==t?e.slice(4,t):""}}let i=new RegExp(a),r=null;for(;null!==(r=i.exec(e));)if(r[0].trim())if(r[1]){let e=r[1].trim(),s=[e,null],n=e.indexOf("=");n>-1&&(s=[e.slice(0,n),e.slice(n+1)]),t.attrs[s[0]]=s[1],i.lastIndex--}else r[2]&&(t.attrs[r[2]]=r[3].trim().substring(1,r[3].length-1));return t}let l=/<!--[\s\S]*?-->|<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,u=/<\/?([^\s]+?)[/\s>]/,c=/^\s*$/,p=/^(script|style)$/i,h=Object.create(null);var d={parse:function(e,t){let s,i,r,n=t&&t.components||h,a=t&&t.allowedTags,d=!1;if(a){let t,s="function"==typeof a?a:function(e){return a.indexOf(e)>-1},i="",r=0;for(l.lastIndex=0;t=l.exec(e);){let n=t[0];i+=e.slice(r,t.index);let a=n.match(u);n.startsWith("\x3c!--")||a&&s(a[1])?(i+=n,r=t.index+n.length):(d=!0,i+="\0",l.lastIndex=r=t.index+1)}e=i+e.slice(r)}let g=[],f=[],m=-1,y=!1,b=0;if(0!==e.indexOf("<")){let t=e.indexOf("<");g.push({type:"text",content:-1===t?e:e.substring(0,t)})}let v=[];for(;r=l.exec(e);)v.push(r);return v.forEach(function(e,t){let s=e[0];if(!s||s.startsWith("\x3c!--"))return;let i=0,r=0,n=-1,a=null;for(let e=0;e<s.length;e++){let t=s.charAt(e);a?t===a&&(a=null):'"'===t||"'"===t?a=t:"<"===t?2==++i&&(n=e):">"===t&&r++}let o=n>-1&&/[a-zA-Z0-9\-!/]/.test(s.charAt(n+1));if(i>r&&o){let e=s.substring(0,n),i=s.substring(e.length);v[t][0]=i,v[t].index+=e.length}}),v.forEach(function(t,r){let a,l,u=t[0];if(!u)return;let h=t.index;if(h<b)return;if(y)if(u!=="</"+s.name+">")return;else y=!1;let d="/"!==u.charAt(1),x=u.startsWith("\x3c!--"),k=h+u.length,S=e.charAt(k),O=v[r+1];if("<"===S&&O){let t=e.substring(k,O.index);a=t.split("<").length>t.split(">").length}if(x){let t=o(u);if(m<0)return g.push(t),g;(l=f[m]).children.push(t);let s=e.slice(k,O?O.index:void 0);return s.length>0&&l.children.push({type:"text",content:s}),g}if(d){m++,"tag"===(s=o(u)).type&&n[s.name]&&(s.type="component",y=!0);let t=!1;if(!y&&!s.voidElement&&p.test(s.name)){t=!0,i||(i=e.toLowerCase());let r=i.indexOf("</"+s.name.toLowerCase()+">",k),n=-1===r?e.length:r,a=e.slice(k,n);a&&s.children.push({type:"text",content:a}),b=n}s.voidElement||y||t||!S||"<"===S||s.children.push({type:"text",content:e.slice(k,O?O.index:void 0)}),0===m&&g.push(s),(l=f[m-1])&&l.children.push(s),f[m]=s}if((!d||s.voidElement)&&(m>-1&&(s.voidElement||s.name===u.slice(2,-1))&&(s=-1==--m?g:f[m]),!y&&("<"!==S||a)&&S)){l=-1===m?g:f[m].children;let t=O?O.index:-1,s=e.slice(k,-1===t?void 0:t);c.test(s)&&(s=" "),(t>-1&&m+l.length>=0||" "!==s)&&l.push({type:"text",content:s})}}),d&&function e(t){t.forEach(function(t){if("text"===t.type){t.content=t.content.split("\0").join("<");return}if("comment"===t.type){t.comment=t.comment.split("\0").join("<");return}for(let e in t.attrs){let s=t.attrs[e];"string"==typeof s&&s.indexOf("\0")>-1&&(t.attrs[e]=s.split("\0").join("<"))}t.children.length&&e(t.children)})}(g),g}};let 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);x(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)=>{x(s)&&f[s]||(x(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)}},b=(e,t,s)=>{e.loadNamespaces(t,y(e,s))},v=(e,t,s,i)=>{if(x(s)&&(s=[s]),e.options.preload&&e.options.preload.indexOf(t)>-1)return b(e,s,i);
1s.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,y(e,i))},x=e=>"string"==typeof e,k=e=>"object"==typeof e&&null!==e;var S=s(99378),O=s(27111),L=s(85068);let w=(e,t)=>{if(!e)return!1;let s=e.props?.children??e.children;return t?s.length>0:!!s},$=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?E(t):t},E=e=>Array.isArray(e)?e:[e],N=(e,t,s,r)=>{if(!e)return"";let n="",a=E(e),o=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return a.forEach((e,a)=>{if(x(e)){n+=`${e}`;return}if((0,i.isValidElement)(e)){let{props:i,type:l}=e,u=Object.keys(i).length,c=o.indexOf(l)>-1,p=i.children;if(!p&&c&&!u){n+=`<${l}/>`;return}if(!p&&(!c||u)||i.i18nIsDynamicList){n+=`<${a}></${a}>`;return}if(c&&u<=1){let e=x(p)?p:N(p,t,s,r);n+=`<${l}>${e}</${l}>`;return}let h=N(p,t,s,r);n+=`<${a}>${h}</${a}>`;return}if(null===e)return void g(s,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:r});if(k(e)){let{format:t,...i}=e,a=Object.keys(i);if(1===a.length){let e=t?`${a[0]}, ${t}`:a[0];n+=`{{${e}}}`;return}g(s,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:r,child:e});return}g(s,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:r,child:e})}),n},j=(e,t,s)=>{let r=e.key||t,n=(0,i.cloneElement)(e,{key:r});return!n.props||!n.props.children||0>s.indexOf(`${t}/>`)&&0>s.indexOf(`${t} />`)?n:(0,i.createElement)(function(){return(0,i.createElement)(i.Fragment,null,n)},{key:r})};s(46044);let R=(0,i.createContext)();class C{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function P({children:e,count:t,parent:s,i18nKey:n,context:a,tOptions:o={},values:l,defaults:u,components:c,ns:p,i18n:h,t:g,shouldUnescape:f,...y}){let{i18n:b,defaultNS:v}=(0,i.useContext)(R)||{},C=h||b||(0,O.T)(),P=g||C?.t.bind(C);return function({children:e,count:t,parent:s,i18nKey:n,context:a,tOptions:o={},values:l,defaults:u,components:c,ns:p,i18n:h,t:g,shouldUnescape:f,...y}){let b=h||(0,O.T)();if(!b)return m(b,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.",{i18nKey:n}),e;let v=g||b.t.bind(b)||(e=>e),R={...(0,S.r)(),...b.options?.react},C=p||v.ns||b.options?.defaultNS;C=x(C)?[C]:C||["translation"];let{transDefaultProps:P}=R,I=P?.tOptions?{...P.tOptions,...o}:o,A=f??P?.shouldUnescape,T=P?.values?{...P.values,...l}:l,F=P?.components?{...P.components,...c}:c,V=N(e,R,b,n),D=u||I?.defaultValue||V||R.transEmptyNodeValue||("function"==typeof n?(0,r.Rm)(n):n),{hashTransKey:_}=R,M=n||(_?_(V||D):V||D);l=b.options?.interpolation?.defaultVariables?T&&Object.keys(T).length>0?{...T,...b.options.interpolation.defaultVariables}:{...b.options.interpolation.defaultVariables}:T;let U=(e=>{let t={};if(!e)return t;let s=e=>{E(e).forEach(e=>{x(e)||(w(e)?s($(e)):k(e)&&!(0,i.isValidElement)(e)&&Object.assign(t,e))})};return s(e),t})(e);U&&"number"==typeof U.count&&void 0===t&&(t=U.count);let K=!l&&(void 0===t||b.options?.interpolation?.alwaysFormat)&&e?{interpolation:{...I.interpolation,prefix:"#$?",suffix:"?$#"}}:I.interpolation,B={...I,context:a||I.context,count:t,...l,...K,defaultValue:D,ns:C},H=M?v(M,B):D;H===M&&D&&(H=D);let z=((e,t,s,i)=>{if(!e)return null;if(Array.isArray(e))return e.map((e,s)=>j(e,s,t));return k(e)?((e,t)=>{let s={};return Object.keys(e).forEach(i=>{Object.assign(s,{[i]:j(e[i],i,t)})}),s})(e,t):(m(s,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:i}),null)})(F,H,b,n),q=z||e,W=null;!(!k(z)||Array.isArray(z))&&Object.keys(z).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0)&&(W=z,q=e);let J=((e,t,s,r,n,a,o)=>{if(""===s)return[];let l=n.transKeepBasicHtmlNodesFor||[],u=s&&new RegExp(l.map(e=>`<${e}`).join("|")).test(s);if(!e&&!t&&!u&&!o)return[s];let c=t??{},p=e=>
1{E(e).forEach(e=>{x(e)||(w(e)?p($(e)):k(e)&&!(0,i.isValidElement)(e)&&Object.assign(c,e))})};p(e);let h=Object.keys(c),g=d.parse(`<0>${s}</0>`,{allowedTags:e=>/^\d+$/.test(e)||l.indexOf(e)>-1||h.indexOf(e)>-1}),f={...c,...a},m=(e,t,s)=>{let r,n=$(e),a=b(n,t.children,s);return Array.isArray(r=n)&&r.every(i.isValidElement)&&0===a.length||e.props?.i18nIsDynamicList?n:a},y=(e,t,s,r,n)=>{e.dummy?(e.children=t,s.push((0,i.cloneElement)(e,{key:r},n?void 0:t))):s.push(...i.Children.map([e],e=>{if(e.type===i.Fragment||e.props?.i18nIsDynamicList!==void 0){let s={key:r};return e&&e.props&&Object.keys(e.props).forEach(t=>{"children"!==t&&"i18nIsDynamicList"!==t&&(s[t]=e.props[t])}),(0,i.createElement)(e.type,s,n?null:t)}let s={key:r};return e&&e.props&&Object.keys(e.props).forEach(t=>{"ref"!==t&&"children"!==t&&(s[t]=e.props[t])}),(0,i.cloneElement)(e,s,n?null:t)}))},b=(e,s,a)=>{let c=E(e),p=E(s),h={};return p.reduce((e,s,p)=>{let d=s.children?.[0]?.content&&r.services.interpolator.interpolate(s.children[0].content,f,r.language);if("tag"===s.type){let g=c[parseInt(s.name,10)];!g&&t&&(g=t[s.name]),1!==a.length||g||(g=a[0][s.name]),g||(g={});let v={...s.attrs};o&&Object.keys(v).forEach(e=>{let t=v[e];x(t)&&(v[e]=(0,L.x)(t))});let S=0!==Object.keys(v).length?((e,t)=>{let s={...t};return s.props={...t.props,...e.props},s})({props:v},g):g,O=(0,i.isValidElement)(S),N=O&&w(s,!0)&&!s.voidElement,j=u&&k(S)&&S.dummy&&!O,R=k(t)&&Object.hasOwnProperty.call(t,s.name);if(x(S)){let t=r.services.interpolator.interpolate(S,f,r.language);e.push(t)}else if(w(S)||N){let t=m(S,s,a);y(S,t,e,p)}else if(j)y(S,b(c,s.children,a),e,p);else if(Number.isNaN(parseFloat(s.name)))if(R){let t=m(S,s,a);y(S,t,e,p,s.voidElement)}else if(n.transSupportBasicHtmlNodes&&l.indexOf(s.name)>-1)if(s.voidElement)e.push((0,i.createElement)(s.name,{key:`${s.name}-${p}`}));else{let t,r=h[s.name]||0;h[s.name]=r+1;let n=0;for(let e=0;e<c.length;e+=1){let a=c[e];if((0,i.isValidElement)(a)&&a.type===s.name){if(n===r){t=a;break}n+=1}}let o=b(t?E($(t)):c,s.children,a);e.push((0,i.createElement)(s.name,{key:`${s.name}-${p}`},o))}else if(s.voidElement)e.push(`<${s.name} />`);else{let t=b(c,s.children,a);e.push(`<${s.name}>${t}</${s.name}>`)}else if(k(S)&&!O){let t=s.children[0]?d:null;t&&e.push(t)}else y(S,d,e,p,1!==s.children.length||!d)}else if("text"===s.type){let t=n.transWrapTextNodes,a="function"==typeof n.unescape?n.unescape:(0,S.r)().unescape,l=o?a(r.services.interpolator.interpolate(s.content,f,r.language)):r.services.interpolator.interpolate(s.content,f,r.language);t?e.push((0,i.createElement)(t,{key:`${s.name}-${p}`},l)):e.push(l)}return e},[])};return $(b([{dummy:!0,children:e||[]}],g,E(e||[]))[0])})(q,W,H,b,R,B,A),Y=s??R.defaultTransParent;return Y?(0,i.createElement)(Y,y,J):J}({children:e,count:t,parent:s,i18nKey:n,context:a,tOptions:o,values:l,defaults:u,components:c,ns:p||P?.ns||v||C?.options?.defaultNS,i18n:C,t:g,shouldUnescape:f,...y})}let I={"&nbsp;":"\xa0","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"\xa9","&reg;":"\xae","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"\xa7","&para;":"\xb6","&middot;":"\xb7","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"\xa3","&yen;":"\xa5","&cent;":"\xa2","&curren;":"\xa4","&times;":"\xd7","&divide;":"\xf7","&minus;":"−","&plusmn;":"\xb1","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"\xb0","&micro;":"\xb5","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;
1":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"\xc0","&Aacute;":"\xc1","&Acirc;":"\xc2","&Atilde;":"\xc3","&Auml;":"\xc4","&Aring;":"\xc5","&AElig;":"\xc6","&Ccedil;":"\xc7","&Egrave;":"\xc8","&Eacute;":"\xc9","&Ecirc;":"\xca","&Euml;":"\xcb","&Igrave;":"\xcc","&Iacute;":"\xcd","&Icirc;":"\xce","&Iuml;":"\xcf","&ETH;":"\xd0","&Ntilde;":"\xd1","&Ograve;":"\xd2","&Oacute;":"\xd3","&Ocirc;":"\xd4","&Otilde;":"\xd5","&Ouml;":"\xd6","&Oslash;":"\xd8","&Ugrave;":"\xd9","&Uacute;":"\xda","&Ucirc;":"\xdb","&Uuml;":"\xdc","&Yacute;":"\xdd","&THORN;":"\xde","&szlig;":"\xdf","&agrave;":"\xe0","&aacute;":"\xe1","&acirc;":"\xe2","&atilde;":"\xe3","&auml;":"\xe4","&aring;":"\xe5","&aelig;":"\xe6","&ccedil;":"\xe7","&egrave;":"\xe8","&eacute;":"\xe9","&ecirc;":"\xea","&euml;":"\xeb","&igrave;":"\xec","&iacute;":"\xed","&icirc;":"\xee","&iuml;":"\xef","&eth;":"\xf0","&ntilde;":"\xf1","&ograve;":"\xf2","&oacute;":"\xf3","&ocirc;":"\xf4","&otilde;":"\xf5","&ouml;":"\xf6","&oslash;":"\xf8","&ugrave;":"\xf9","&uacute;":"\xfa","&ucirc;":"\xfb","&uuml;":"\xfc","&yacute;":"\xfd","&thorn;":"\xfe","&yuml;":"\xff","&iexcl;":"\xa1","&iquest;":"\xbf","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"\xaa","&ordm;":"\xba","&macr;":"\xaf","&acute;":"\xb4","&cedil;":"\xb8","&sup1;":"\xb9","&sup2;":"\xb2","&sup3;":"\xb3","&frac14;":"\xbc","&frac12;":"\xbd","&frac34;":"\xbe","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"},A=RegExp(Object.keys(I).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var T=s(2291);let F={t:(e,t)=>{if(x(t))return t;if(k(t)&&x(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},V=()=>()=>{},D=(e,t={})=>{let{i18n:s}=t,{i18n:r,defaultNS:n}=(0,i.useContext)(R)||{},a=s||r||(0,O.T)();a&&!a.reportNamespaces&&(a.reportNamespaces=new C),a||m(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");let o=(0,i.useMemo)(()=>({...(0,S.r)(),...a?.options?.react,...t}),[a,t]),{useSuspense:l,keyPrefix:u}=o,c=e||n||a?.options?.defaultNS,p=x(c)?[c]:c||["translation"],h=(0,i.useMemo)(()=>p,p);a?.reportNamespaces?.addUsedNamespaces?.(h);let d=(0,i.useRef)(0),g=(0,i.useCallback)(e=>{if(!a)return V;let{bindI18n:t,bindI18nStore:s}=o,i=()=>{d.current+=1,e()};return t&&a.on(t,i),s&&a.store.on(s,i),()=>{t&&t.split(" ").forEach(e=>a.off(e,i)),s&&s.split(" ").forEach(e=>a.store.off(e,i))}},[a,o]),f=(0,i.useRef)(),y=(0,i.useCallback)(()=>{if(!a)return F;let e=!!(a.isInitialized||a.initializedStoreOnce)&&h.every(e=>((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))(e,a,o)),s=t.lng||a.language,i=d.current,r=f.current;if(r&&r.ready===e&&r.lng===s&&r.keyPrefix===u&&r.revision===i)return r;let n={t:a.getFixedT(s,"fallback"===o.nsMode?h:h[0],u,{scopeNs:h}),ready:e,lng:s,keyPrefix:u,revision:i};return f.current=n,n},[a,h,u,o,t.lng]),[k,L]=(0,i.useState)(0),{t:w,ready:$}=(0,T.useSyncExternalStore)(g,y,y);(0,i.useEffect)(()=>{if(a&&!$&&!l){let e=()=>L(e=>e+1);t.lng?v(a,t.lng,h,e):b(a,h,e)}},[a,t.lng,h,$,l,k]);let E=a||{},N=(0,i.useRef)(null),j=(0,i.useRef)(),P=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,
1configurable:!1})}catch(e){}return s},I=(0,i.useMemo)(()=>{let e=E?.language,t=E;E&&(N.current&&N.current.__original===E?j.current!==e?(N.current=t=P(E),j.current=e):t=N.current:(N.current=t=P(E),j.current=e));let s=$||l?w:(...e)=>(m(a,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),w(...e)),i=[s,t,$];return i.t=s,i.i18n=t,i.ready=$,i},[w,E,$,E.resolvedLanguage,E.language,E.languages]);if(a&&l&&!$){let e=!1;try{e=!1}catch(e){}throw e&&m(a,"SUSPENDED_WHILE_LOADING","useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"),new Promise(e=>{let s=()=>e();t.lng?v(a,t.lng,h,s):b(a,h,s)})}return I};function _({i18n:e,defaultNS:t,children:s}){let r=(0,i.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,i.createElement)(R.Provider,{value:r},s)}},99378:(e,t,s)=>{s.d(t,{P:()=>r,r:()=>n});let i={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:s(85068).x,transDefaultProps:void 0},r=(e={})=>{i={...i,...e}},n=()=>i}}]);
2//# sourceMappingURL=71229-3fcc101a7699944c.js.map

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.