PageSourceSearch

https://www.luminus.be/_next/static/chunks/797-8e0a44fced08b94f.js

js luminus.be collected 2026-09-24 20:52:00 UTC 72,489 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[797],{99376:function(e,t,i){var s=i(35475);i.o(s,"useParams")&&i.d(t,{useParams:function(){return s.useParams}}),i.o(s,"usePathname")&&i.d(t,{usePathname:function(){return s.usePathname}}),i.o(s,"useRouter")&&i.d(t,{useRouter:function(){return s.useRouter}}),i.o(s,"useSearchParams")&&i.d(t,{useSearchParams:function(){return s.useSearchParams}}),i.o(s,"useServerInsertedHTML")&&i.d(t,{useServerInsertedHTML:function(){return s.useServerInsertedHTML}})},24369:function(e,t,i){var s=i(2265),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=s.useState,a=s.useEffect,o=s.useLayoutEffect,l=s.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!r(e,i)}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 i=t(),s=n({inst:{value:i,getSnapshot:t}}),r=s[0].inst,c=s[1];return o(function(){r.value=i,r.getSnapshot=t,u(r)&&c({inst:r})},[e,i,t]),a(function(){return u(r)&&c({inst:r}),e(function(){u(r)&&c({inst:r})})},[e]),l(i),i};t.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:c},82558:function(e,t,i){e.exports=i(24369)},43226:function(e,t,i){i.d(t,{a:function(){return n}});var s=i(14598),r=i(81595),n=({fill:e="currentColor",title:t,...i})=>(0,r.BX)(s.b,{width:"25",height:"24",viewBox:"0 0 25 24","aria-labelledby":t?"arrow-right-icon":void 0,"aria-hidden":!t,fill:"none",...i,children:[t&&(0,r.tZ)("title",{id:"arrow-right-icon",children:t}),(0,r.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 12C5 11.5858 5.33579 11.25 5.75 11.25L16.3879 11.25L12.2302 7.29062C11.9316 7.00353 11.9223 6.52875 12.2094 6.23017C12.4965 5.93159 12.9713 5.92228 13.2698 6.20937L18.7698 11.4594C18.9169 11.6008 19 11.796 19 12C19 12.204 18.9169 12.3992 18.7698 12.5406L13.2698 17.7906C12.9713 18.0777 12.4965 18.0684 12.2094 17.7698C11.9223 17.4713 11.9316 16.9965 12.2302 16.7094L16.3879 12.75L5.75 12.75C5.33579 12.75 5 12.4142 5 12Z",stroke:"none",fill:e})]})},69427:function(e,t,i){i.d(t,{Z:function(){return L}});let{slice:s,forEach:r}=[],n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,a=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"},s=encodeURIComponent(t),r=`${e}=${s}`;if(i.maxAge>0){let e=i.maxAge-0;if(Number.isNaN(e))throw Error("maxAge should be a Number");r+=`; Max-Age=${Math.floor(e)}`}if(i.domain){if(!n.test(i.domain))throw TypeError("option domain is invalid");r+=`; Domain=${i.domain}`}if(i.path){if(!n.test(i.path))throw TypeError("option path is invalid");r+=`; Path=${i.path}`}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw TypeError("option expires is invali
1d");r+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(r+="; HttpOnly"),i.secure&&(r+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"none":r+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return i.partitioned&&(r+="; Partitioned"),r},o={create(e,t,i,s){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};i&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+6e4*i)),s&&(r.domain=s),document.cookie=a(e,t,r)},read(e){let t=`${e}=`,i=document.cookie.split(";");for(let e=0;e<i.length;e++){let s=i[e];for(;" "===s.charAt(0);)s=s.substring(1,s.length);if(0===s.indexOf(t))return s.substring(t.length,s.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var l={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&"undefined"!=typeof document)return o.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:i,cookieMinutes:s,cookieDomain:r,cookieOptions:n}=t;i&&"undefined"!=typeof document&&o.create(i,e,s,r,n)}},u={name:"querystring",lookup(e){let t,{lookupQuerystring:i}=e;if("undefined"!=typeof window){let{search:e}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));let s=e.substring(1).split("&");for(let e=0;e<s.length;e++){let r=s[e].indexOf("=");r>0&&s[e].substring(0,r)===i&&(t=s[e].substring(r+1))}}return t}},c={name:"hash",lookup(e){let t,{lookupHash:i,lookupFromHashIndex:s}=e;if("undefined"!=typeof window){let{hash:e}=window.location;if(e&&e.length>2){let r=e.substring(1);if(i){let e=r.split("&");for(let s=0;s<e.length;s++){let r=e[s].indexOf("=");r>0&&e[s].substring(0,r)===i&&(t=e[s].substring(r+1))}}if(t)return t;if(!t&&s>-1){let t=e.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(t))return;return t["number"==typeof s?s:0]?.replace("/","")}}}return t}};let h=null,p=()=>{if(null!==h)return h;try{if(!(h="undefined"!=typeof window&&null!==window.localStorage))return!1;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){h=!1}return h};var d={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&p())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:i}=t;i&&p()&&window.localStorage.setItem(i,e)}};let g=null,f=()=>{if(null!==g)return g;try{if(!(g="undefined"!=typeof window&&null!==window.sessionStorage))return!1;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){g=!1}return g};var m={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&f())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:i}=t;i&&f()&&window.sessionStorage.setItem(i,e)}},y={name:"navigator",lookup(e){let t=[];if("undefined"!=typeof navigator){let{languages:e,userLanguage:i,language:s}=navigator;if(e)for(let i=0;i<e.length;i++)t.push(e[i]);i&&t.push(i),s&&t.push(s)}return t.length>0?t:void 0}},v={name:"htmlTag",lookup(e){let t,{htmlTag:i}=e,s=i||("undefined"!=typeof document?document.documentElement:null);return s&&"function"==typeof s.getAttribute&&(t=s.getAttribute("lang")),t}},b={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("undefined"==typeof window)return;let i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(i))return i["number"==typeof t?t:0]?.replace("/","")}},x={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,i="undefined"!=typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i["number"==typeof t?t+1:1]}};let S=!1;try{document.cookie,S=!0}catch(e){}let k=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];S||k.splice(1,1);let w=()=>({order:k,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class L{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return r.call(s.call(arguments,1
1),t=>{if(t)for(let i in t)void 0===e[i]&&(e[i]=t[i])}),e}(t,this.options||{},w()),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(l),this.addDetector(u),this.addDetector(d),this.addDetector(m),this.addDetector(y),this.addDetector(v),this.addDetector(b),this.addDetector(x),this.addDetector(c)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return(e.forEach(e=>{if(this.detectors[e]){let i=this.detectors[e].lookup(this.options);i&&"string"==typeof i&&(i=[i]),i&&(t=t.concat(i))}}),t=t.filter(e=>null!=e&&!("string"==typeof e&&[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(t=>t.test(e)))).map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes)?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}}L.type="languageDetector"},740:function(e,t,i){i.d(t,{Z:function(){return n}});var s=["__proto__","constructor","prototype"],r=function(e,t){return!("string"!=typeof e||e.length>128||s.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||!t&&e.indexOf("/")>-1||/[\x00-\x1F\x7F]/.test(e))},n=function(e){return{type:"backend",init:function(e,t,i){},read:function(t,i,s){if(!r(t,!1)||!r(i,!0))return s(Error("i18next-resources-to-backend: unsafe language/namespace value"),!1);if("function"==typeof e){if(e.length<3){try{var n=e(t,i);n&&"function"==typeof n.then?n.then(function(e){return s(null,e&&e.default||e)}).catch(s):s(null,n)}catch(e){s(e)}return}e(t,i,s);return}s(null,e&&e[t]&&e[t][i])}}}},46550:function(e,t,i){i.d(t,{TZ:function(){return j},ZP:function(){return X},t:function(){return ee}});let s=e=>"string"==typeof e,r=()=>{let e,t;let i=new Promise((i,s)=>{e=i,t=s});return i.resolve=e,i.reject=t,i},n=e=>null==e?"":String(e),a=(e,t,i)=>{e.forEach(e=>{t[e]&&(i[e]=t[e])})},o=/###/g,l=e=>e&&e.includes("###")?e.replace(o,"."):e,u=e=>!e||s(e),c=(e,t,i)=>{let r=s(t)?t.split("."):t,n=0;for(;n<r.length-1;){if(u(e))return{};let t=l(r[n]);!e[t]&&i&&(e[t]=new i),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++n}return u(e)?{}:{obj:e,k:l(r[n])}},h=(e,t,i)=>{let{obj:s,k:r}=c(e,t,Object);if(void 0!==s||1===t.length){s[r]=i;return}let n=t[t.length-1],a=t.slice(0,t.length-1),o=c(e,a,Object);for(;void 0===o.obj&&a.length;)n=`${a[a.length-1]}.${n}`,o=c(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}`]=i},p=(e,t,i,s)=>{let{obj:r,k:n}=c(e,t,Object);r[n]=r[n]||[],r[n].push(i)},d=(e,t)=>{let{obj:i,k:s}=c(e,t);if(i&&Object.prototype.hasOwnProperty.call(i,s))return i[s]},g=(e,t,i)=>{let s=d(e,i);return void 0!==s?s:d(t,i)},f=(e,t,i)=>{for(let r in t)"__proto__"!==r&&"constructor"!==r&&(Object.prototype.hasOwnProperty.call(e,r)?s(e[r])||e[r]instanceof String||s(t[r])||t[r]instanceof String?i&&(e[r]=t[r]):f(e[r],t[r],i):e[r]=t[r]);return e},m=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},v=e=>s(e)?e.replace(/[&<>"'\/]/g,e=>y[e]):e;class b{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}let x=[" ",",","?","!",";"],S=new b(20),k=(e,t,i)=>{t=t||"",i=i||"";let s=x.filter(e=>!t.includes(e)&&!i.includes(e));if(0===s.length)return!0;let r=S.getRegExp(`(${s.map(e=>"?"===e?"\\?":e).join("|")})`),n=!r.test(e);
1if(!n){let t=e.indexOf(i);t>0&&!r.test(e.substring(0,t))&&(n=!0)}return n},w=(e,t,i=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let s=t.split(i),r=e;for(let e=0;e<s.length;){let t;if(!r||"object"!=typeof r)return;let n="";for(let a=e;a<s.length;++a)if(a!==e&&(n+=i),n+=s[a],void 0!==(t=r[n])){if(["string","number","boolean"].includes(typeof t)&&a<s.length-1)continue;e+=a-e+1;break}r=t}return r},L=e=>e?.replace(/_/g,"-"),O={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 ${constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||O,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,i,r){return r&&!this.debug?null:(e=e.map(e=>s(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),s(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new $(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new $(this.logger,e)}}var E=new $;class N{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let i=this.observers[e].get(t)||0;this.observers[e].set(t,i+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let i=(...s)=>{t(...s),this.off(e,i)};return this.on(e,i),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,i])=>{for(let s=0;s<i;s++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,s])=>{for(let r=0;r<s;r++)i(e,...t)})}}class C extends N{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,i,r={}){let n;let 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],i&&(Array.isArray(i)?n.push(...i):s(i)&&a?n.push(...i.split(a)):n.push(i)));let l=d(this.data,n);return(!l&&!t&&!i&&e.includes(".")&&(e=n[0],t=n[1],i=n.slice(2).join(".")),!l&&o&&s(i))?w(this.data?.[e]?.[t],i,a):l}addResource(e,t,i,s,r={silent:!1}){let n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=[e,t];i&&(a=a.concat(n?i.split(n):i)),e.includes(".")&&(a=e.split("."),s=t,t=a[1]),this.addNamespaces(t),h(this.data,a,s),r.silent||this.emit("added",e,t,i,s)}addResources(e,t,i,r={silent:!1}){for(let r in i)(s(i[r])||Array.isArray(i[r]))&&this.addResource(e,t,r,i[r],{silent:!0});r.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,i,s,r,n={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(a=e.split("."),s=i,i=t,t=a[1]),this.addNamespaces(t);let o=d(this.data,a)||{};n.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?f(o,i,r):o={...o,...i},h(this.data,a,o),n.silent||this.emit("added",e,t,i)}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 R={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,s,r){return e.forEach(e=>{t=this.processors[e]?.process(t,i,s,r)??t}),t}};let P=Symbol("i18next/PATH_KEY");function j(e,t){let{[P]:i}=e(function(){let e;let t=[],i=Object.create(null);return i.get=(s,r)=>(e?.revoke?.(),r===P)?t:(t.push(r),(e=Proxy.revocable(s,i)).proxy),Proxy.revocable(Object.create(null),i).proxy}()),s=t?.keySeparator??".",r=t?.nsSeparator??":",n=t?.enableSelector==="strict";if(i.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(i[0]))return`${i[0]}${r}${i.slice(1).join(s)}`}return i.join(s)}let A=e=>!s(e)&&"boolean"!=typeof e&&"number"!=typeof e;class I extends N{constructor(e,t={}){super(),a(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=E.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let i={...t};if(null==e)return!1;let s=this.resolve(e,i);if(s?.res===void 0)return!1;let r=A(s.res);return!1!==i.returnObjects||!r}extractFromKey(e,t){let i=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===i&&(i=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS||[],a=i&&e.includes(i),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!k(e,i,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:s(n)?[n]:n};let a=e.split(i);(i!==r||i===r&&this.options.ns.includes(a[0]))&&(n=a.shift()),e=a.join(r)}return{key:e,namespaces:s(n)?[n]:n}}translate(e,t,i){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=j(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?j(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 h=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h?.toLowerCase()==="cimode")return p?n?{res:`${u}${c}${o}`,usedKey:o,exactUsedKey:o,usedLng:h,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:`${u}${c}${o}`:n?{res:o,usedKey:o,exactUsedKey:o,usedLng:h,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:o;let d=this.resolve(e,r),g=d?.res,f=d?.usedKey||o,m=d?.exactUsedKey||o,y=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==r.count&&!s(r.count),x=I.hasDefaultValue(r),S=b?this.pluralResolver.getSuffix(h,r.count,r):"",k=r.ordinal&&b?this.pluralResolver.getSuffix(h,r.count,{ordinal:!1}):"",w=b&&!r.ordinal&&0===r.count,L=w&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${S}`]||r[`defaultValue${k}`]||r.defaultValue,O=g;v&&!g&&x&&(O=L);let $=A(O),E=Object.prototype.toString.apply(O);if(v&&O&&$&&!["[object Number]","[object Function]","[object RegExp]"].includes(E)&&!(s(y)&&Array.isArray(O))){if
1(!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,O,{...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(O),t=e?[]:{},i=e?m:f;for(let e in O)if(Object.prototype.hasOwnProperty.call(O,e)){let s=`${i}${a}${e}`;x&&!g?t[e]=this.translate(s,{...r,defaultValue:A(L)?L[e]:void 0,joinArrays:!1,ns:l}):t[e]=this.translate(s,{...r,joinArrays:!1,ns:l}),t[e]===s&&(t[e]=O[e])}g=t}}else if(v&&s(y)&&Array.isArray(g))(g=g.join(y))&&(g=this.extendTranslation(g,e,r,i));else{let t=!1,s=!1;!this.isValidLookup(g)&&x&&(t=!0,g=L),this.isValidLookup(g)||(s=!0,g=o);let n=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:g,l=x&&L!==g&&this.options.updateMissing;if(s||t||l){if(this.logger.log(l?"updateKey":"missingKey",h,u,b&&!l?`${o}${this.pluralResolver.getSuffix(h,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 i=0;i<t.length;i++)e.push(t[i]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);let i=(e,t,i)=>{let s=x&&i!==g?i:n;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,t,s,l,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,u,t,s,l,r),this.emit("missingKey",e,u,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,r);w&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{i([e],o+t,r[`defaultValue${t}`]||L)})}):i(e,o,L))}g=this.extendTranslation(g,e,r,d,i),s&&g===o&&this.options.appendNamespaceToMissingKey&&(g=`${u}${c}${o}`),(s||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,i,r,n){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){let a;i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let o=s(e)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(o){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let l=i.replace&&!s(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,i.lng||this.language||r.usedLng,i),o){let t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(i.nest=!1)}!i.lng&&r&&r.res&&(i.lng=this.language||r.usedLng),!1!==i.nest&&(e=this.interpolator.nest(e,(...e)=>n?.[0]!==e[0]||i.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),i)),i.interpolation&&this.interpolator.reset()}let a=i.postProcess||this.options.postProcess,o=s(a)?[a]:a;return null!=e&&o?.length&&!1!==i.applyPostProcessor&&(e=R.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e,t={}){let i,r,n,a,o;return s(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?j(e,{...this.options,...t}
1):e)),e.forEach(e=>{if(this.isValidLookup(i))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 h=void 0!==t.count&&!s(t.count),p=h&&!t.ordinal&&0===t.count,d=void 0!==t.context&&(s(t.context)||"number"==typeof t.context)&&""!==t.context,g=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(i)||(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(s=>{let r;if(this.isValidLookup(i))return;a=s;let o=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,u,s,e,t);else{let e;h&&(e=this.pluralResolver.getSuffix(s,t.count,t));let i=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(t.ordinal&&e.startsWith(r)&&o.push(u+e.replace(r,this.options.pluralSeparator)),o.push(u+e),p&&o.push(u+i)),d){let s=`${u}${this.options.contextSeparator||"_"}${t.context}`;o.push(s),h&&(t.ordinal&&e.startsWith(r)&&o.push(s+e.replace(r,this.options.pluralSeparator)),o.push(s+e),p&&o.push(s+i))}}for(;r=o.pop();)this.isValidLookup(i)||(n=r,i=this.getResource(s,e,r,t))}))})}),{res:i,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,i,s={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,i,s):this.resourceStore.getResource(e,t,i,s)}getUsedParamsDetails(e={}){let t=e.replace&&!s(e.replace),i=t?e.replace:e;if(t&&void 0!==e.count&&(i={...i,count:e.count}),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!t)for(let e of(i={...i},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete i[e];return i}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 T{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=E.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(!(e=L(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=L(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(s(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 i=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let i=this.getScriptPartFromCode(e);if(this.isSupportedCode(i))return t=i;let s=this.getLanguagePartFromCode(e);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(e=>e===s||!!(e.includes("-")||s.includes("-"))&&!!(e.includes("-")&&!s.includes("-")&&e.slice(0,e.indexOf("-"))===s||e.startsWith(s)&&s.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)),s(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let i=e[t];
1return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}toResolveHierarchy(e,t){let i=this.options.fallbackLng,r=Array.isArray(i)?i.join("|"):i;r!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=r);let n=void 0===t||!1===t||s(t),a=void 0===t&&"function"==typeof this.options.fallbackLng,o=s(e)&&n&&!a,l=null;if(o){let i;i=void 0===t?"undefined":!1===t?"boolean:false":`string:${t}`,l=`${e.length}:${e}|${i}`}if(null!==l){let e=this.resolveHierarchyCache[l];if(void 0!==e)return e.slice()}let u=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),c=[],h=e=>{e&&(this.isSupportedCode(e)?c.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return(s(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&h(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&h(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&h(this.getLanguagePartFromCode(e))):s(e)&&h(this.formatLanguageCode(e)),u.forEach(e=>{c.includes(e)||h(this.formatLanguageCode(e))}),null!==l)?(this.resolveHierarchyCache[l]=c,c.slice()):c}}let D={zero:0,one:1,two:2,few:3,many:4,other:5},F={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class V{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=E.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let i;let s=L("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:s,type:r});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];try{i=new Intl.PluralRules(s,{type:r})}catch(r){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),F;if(!e.match(/-|_/))return F;let s=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(s,t)}return this.pluralRulesCache[n]=i,i}needsPlural(e,t={}){let i=this.getRule(e,t);return i||(i=this.getRule("dev",t)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,i={}){return this.getSuffixes(e,i).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let i=this.getRule(e,t);return(i||(i=this.getRule("dev",t)),i)?i.resolvedOptions().pluralCategories.sort((e,t)=>D[e]-D[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,i={}){let s=this.getRule(e,i);return s?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,i))}}let U=(e,t,i,r=".",n=!0)=>{let a=g(e,t,i);return!a&&n&&s(i)&&void 0===(a=w(e,i,r))&&(a=w(t,i,r)),a},_=e=>e.replace(/\$/g,"$$$$");class H{constructor(e={}){this.logger=E.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:i,useRawValueToEscape:s,prefix:r,prefixEscaped:n,suffix:a,suffixEscaped:o,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:h,nestingPrefixEscaped:p,nestingSuffix:d,nestingSuffixEscaped:g,nestingOptionsSeparator:f,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:v,this.escapeValue=void 0===i||i,this.useRawValueToEscape=void 0!==s&&s,this.prefix=r?m(r):n||"{{",this.suffix=a?m(a):o||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c?m(c):"-",this.unescapeSuffix=this.unescapePrefix?"":u?m(u):"",this.nestingPrefix=h?m(h):p||m("$t("),this.nestingSuffix=d?m(d):g||m(")"),this.nestingOptionsSeparator=f||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,i,r){let a,o,l;let u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let s=U(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(s,void 0,i,{...r,...t,interpolationkey:e}):s}let s=e.split(this.formatSeparator),n=s.shift().trim(),a=s.join(this.formatSeparator).trim();return this.format(U(t,u,n,this.options.keySeparator,this.options.ignoreJSONStructure),a,i,{...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 h=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,p=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 i=a[1].trim();if(void 0===(o=c(i))){if("function"==typeof h){let t=h(e,a,r);o=s(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,i))o="";else if(p){o=a[0];continue}else this.logger.warn(`missed to pass in variable ${i} for interpolating ${e}`),o=""}else s(o)||this.useRawValueToEscape||(o=n(o));let u=t.safeValue(o);if(e=e.replace(a[0],_(u)),p?(t.regex.lastIndex+=u.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t,i={}){let r,a,o;let l=(e,t)=>{let i=this.nestingOptionsSeparator;if(!e.includes(i))return e;let s=e.split(RegExp(`${m(i)}[ ]*{`)),r=`{${s[1]}`;e=s[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}${i}${r}`}return o.defaultValue&&o.defaultValue.includes(this.prefix)&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let u=[];(o=(o={...i}).replace&&!s(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&&!s(a))return a;s(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,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),e=e.replace(r[0],_(n(a))),this.regexp.lastIndex=0}return e}}let M=e=>{let t=e.toLowerCase().trim(),i={};if(e.includes("(")){let s=e.split("(");t=s[0].toLowerCase().trim();let r=s[1].slice(0,-1);"currency"!==t||r.includes(":")?"relativetime"!==t||r.includes(":")?r.split(";").forEach(e=>{if(e){let[t,...s]=e.split(":"),r=s.join(":").trim().replace(/^'+|'+$/g,""),n=t.trim();i[n]||(i[n]=r),"false"===r&&(i[n]=!1),"true"===r&&(i[n]=!0),isNaN(r)||(i[n]=parseInt(r,10))}}):i.range||(i.range=r.trim()):i.currency||(i.currency=r.trim())}return{formatName:t,formatOptions:i}},K=e=>{let t={};return(i,s,r)=>{let n=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(n={...n,[r.interpolationkey]:void 0});let a=s+JSON.stringify(n),o=t[a];return o||(o=e(L(s),r),t[a]=o),o(i)}},z=e=>(t,i,s)=>e(L(i),s)(t);class B{constructor(e={}){this.logger=E.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let i=t.cacheInBuiltFormats?K:z;this.formats={number:i((e,t)=>{let i=new Intl.NumberFormat(e,{...t});return e=>i.format(e)}),currency:i((e,t)=>{let i=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>i.format(e)}),datetime:i((e,t)=>{let i=new Intl.DateTimeFormat(e,{...t});return e=>i.format(e)}),relativetime:i((e,t)=>{let i=new Intl.RelativeTimeFormat(e,{...t});return e=>i.format(e,t.range||"day")}),list:i((e,t)=>{let i=new Intl.ListFormat(e,{...t});return e=>i.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=K(t)}format(e,t,i,s={}){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}=M(t);if(this.formats[r]){let t=e;try{let a=s?.formatParams?.[s.interpolationkey]||{},o=a.locale||a.lng||s.locale||s.lng||i;t=this.formats[r](e,o,{...n,...s,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}}let q=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)};class W extends N{constructor(e,t,i,s={}){super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=E.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=[],this.backend?.init?.(i,s.backend,s)}queueLoad(e,t,i,s){let r={},n={},a={},o={};
1return e.forEach(e=>{let s=!0;t.forEach(t=>{let a=`${e}|${t}`;!i.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,s=!1,void 0===n[a]&&(n[a]=!0),void 0===r[a]&&(r[a]=!0),void 0===o[t]&&(o[t]=!0)))}),s||(a[e]=!0)}),(Object.keys(r).length||Object.keys(n).length)&&this.queue.push({pending:n,pendingCount:Object.keys(n).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(r),pending:Object.keys(n),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(o)}}loaded(e,t,i){let s=e.split("|"),r=s[0],n=s[1];t&&this.emit("failedLoading",r,n,t),!t&&i&&this.store.addResourceBundle(r,n,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&i&&(this.state[e]=0);let a={};this.queue.forEach(i=>{p(i.loaded,[r],n),q(i,e),t&&i.errors.push(t),0!==i.pendingCount||i.done||(Object.keys(i.loaded).forEach(e=>{a[e]||(a[e]={});let t=i.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,i,s=0,r=this.retryTimeout,n){if(!e.length)return n(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:s,wait:r,callback:n});return}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&&s<this.maxRetries){setTimeout(()=>{this.read(e,t,i,s+1,2*r,n)},r);return}n(a,o)},o=this.backend[i].bind(this.backend);if(2===o.length){try{let i=o(e,t);i&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}return}return o(e,t,a)}prepareLoading(e,t,i={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();s(e)&&(e=this.languageUtils.toResolveHierarchy(e)),s(t)&&(t=[t]);let n=this.queueLoad(e,t,i,r);if(!n.toLoad.length)return n.pending.length||r(),null;n.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e,t=""){let i=e.split("|"),s=i[0],r=i[1];this.read(s,r,"read",void 0,void 0,(i,n)=>{i&&this.logger.warn(`${t}loading namespace ${r} for language ${s} failed`,i),!i&&n&&this.logger.log(`${t}loaded namespace ${r} for language ${s}`,n),this.loaded(e,i,n)})}saveMissing(e,t,i,s,r,n={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" 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(null!=i&&""!==i){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,i,s,o):l(e,t,i,s))&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}else l(e,t,i,s,a,o)}e&&e[0]&&this.store.addResource(e[0],t,i,s)}}}let J=()=>({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]),s(e[1])&&(t.defaultValue=e[1]),s(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let i=e[3]||e[2];
1Object.keys(i).forEach(e=>{t[e]=i[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Z=e=>(s(e.ns)&&(e.ns=[e.ns]),s(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),s(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Y=()=>{},G=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})};class Q extends N{constructor(e={},t){if(super(),this.options=Z(e),this.services={},this.logger=E,this.modules={external:[]},G(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&&(s(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let i=J();this.options={...i,...this.options,...Z(e)},this.options.interpolation={...i.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=i.overloadTranslationOptionHandler);let n=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?E.init(n(this.modules.logger),this.options):E.init(null,this.options),e=this.modules.formatter?this.modules.formatter:B;let t=new T(this.options);this.store=new C(this.options.resources,this.options);let i=this.services;i.logger=E,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new V(t,{prepend:this.options.pluralSeparator}),e&&(i.formatter=n(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new H(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new W(n(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=n(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=n(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new I(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=Y),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,i)=>{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(i),t(e,i)};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=Y){let i=t,r=s(e)?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return i();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),i(e)})}else i(null)}reloadResources(e,t,i){let s=r();return"function"==typeof e&&(i=e,e=void 0),"function"==typeof t&&(i=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),i||(i=Y),this.services.backendConnector.reload(e,t,e=>{s.resolve(),i(e)}),s}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&&R.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 i=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=(s,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,i.resolve((...e)=>this.t(...e)),t&&t(s,(...e)=>this.t(...e))},o=t=>{e||t||!this.services.languageDetector||(t=[]);let i=s(t)?t:t&&t[0],r=this.store.hasLanguageSomeTranslations(i)?i:this.services.languageUtils.getBestMatchFromCodes(s(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()),i}getFixedT(e,t,i,r){let n=r?.scopeNs,a=(e,t,...s)=>{let r,o;(r="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(s)):{...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||i||a.keyPrefix);let u={...this.options,...r};Array.isArray(n)&&!l&&(u.ns=n),"function"==typeof r.keyPrefix&&(r.keyPrefix=j(r.keyPrefix,u));let c=this.options.keySeparator||".";return r.keyPrefix&&Array.isArray(e)?o=e.map(e=>("function"==typeof e&&(e=j(e,u)),`${r.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=j(e,u)),o=r.keyPrefix?`${r.keyPrefix}${c}${e}`:e),this.t(o,r)};return s(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=i,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 i=t.lng||this.resolvedLanguage||this.languages[0],s=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;let n=(e,t)=>{let i=this.services.backendConnector.state[`${e}|${t}`];return -1===i||0===i||2===i};if(t.precheck){let e=t.precheck(this,n);if(void 0!==e)return e}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||n(i,e)&&(!s||n(r,e)))}loadNamespaces(e,t){let i=r();return this.options.ns?(s(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){let i=r();s(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=>{i.resolve(),t&&t(e)}),i):(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 T(J());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 i=new Q(e,t);return i.createInstance=Q.createInstance,i}cloneInstance(e={},t=Y){let i=e.forkResourceStore;i&&delete e.forkResourceStore;let s={...this.options,...e,isClone:!0},r=new Q(s);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)},i){let e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((i,s)=>(i[s]={...e[t][s]},i),e[t]),e),{});r.store=new C(e,s),r.services.resourceStore=r.store}if(e.interpolation){let t={...J().interpolation,...this.options.interpolation,...e.interpolation},i={...s,interpolation:t};r.services.interpolator=new H(i)}return r.translator=new I(r.services,s),r.translator.on("*",(e,...t)=>{r.emit(e,...t)}),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}}}let X=Q.createInstance();X.createInstance,X.dir,X.init,X.loadResources,X.reloadResources,X.use,X.changeLanguage,X.getFixedT;let ee=X.t;X.exists,X.setDefaultNamespace,X.hasLoadedNamespace,X.loadNamespaces,X.loadLanguages},94939:function(e,t,i){let s;i.d(t,{cC:function(){return Z},Db:function(){return q},$G:function(){return en}});var r=i(2265),n=i(46550);let a={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},o=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function l(e){let t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},i=e.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(t.name=i[1],(a[i[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){let t=e.indexOf("-->");return{type:"comment",comment:-1!==t?e.slice(4,t):""}}let s=new RegExp(o),r=null;for(;null!==(r=s.exec(e));)if(r[0].trim()){if(r[1]){let e=r[1].trim(),i=[e,null],n=e.indexOf("=");n>-1&&(i=[e.slice(0,n),e.slice(n+1)]),t.attrs[i[0]]=i[1],s.lastIndex--}else r[2]&&(t.attrs[r[2]]=r[3].trim().substring(1,r[3].length-1))}return t}let u=/<!--[\s\S]*?-->|<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,c=/<\/?([^\s]+?)[/\s>]/,h=/^\s*$/,p=/^(script|style)$/i,d=Object.create(null);var g={parse:function(e,t){let i,s,r;let n=t&&t.components||d,a=t&&t.allowedTags,o=!1;if(a){let t;let i="function"==typeof a?a:function(e){return a.indexOf(e)>-1},s="",r=0;for(u.lastIndex=0;t=u.exec(e);){let n=t[0];s+=e.slice(r,t.index);let a=n.match(c);n.startsWith("<!--")||a&&i(a[1])?(s+=n,r=t.index+n.length):(o=!0,s+="\0",r=t.index+1,u.lastIndex=r)}e=s+e.slice(r)}let g=[],f=[],m=-1,y=!1,v=0;if(0!==e.indexOf("<")){let t=e.indexOf("<");g.push({type:"text",content:-1===t?e:e.substring(0,t)})}let b=[];for(;r=u.exec(e);)b.push(r);return b.forEach(function(e,t){let i=e[0];if(!i||i.startsWith("<!--"))return;let s=0,r=0,n=-1,a=null;for(let e=0;e<i.length;e++){let t=i.charAt(e);a?t===a&&(a=null):'"'===t||"'"===t?a=t:"<"===t?2==++s&&(n=e):">"===t&&r++}let o=n>-1&&/[a-zA-Z0-9\-!/]/.test(i.charAt(n+1));if(s>r&&o){let e=i.substring(0,n),s=i.substring(e.length);b[t][0]=s,b[t].index+=e.length}}),b.forEach(function(t,r){let a,o;let u=t[0];if(!u)return;let c=t.index;if(c<v)return;if(y){if(u!=="</"+i.name+">")return;y=!1}let d="/"!==u.charAt(1),x=u.startsWith("<!--"),S=c+u.length,k=e.charAt(S),w=b[r+1];if("<"===k&&w){let t=e.substring(S,w.index);a=t.split("<").length>t.split(">").length}if(x){let t=l(u);if(m<0)return g.push(t),g;(o=f[m]).children.push(t);let i=e.slice(S,w?w.index:void 0);return i.length>0&&o.children.push({type:"text",content:i}),g}if(d){m++,"tag"===(i=l(u)).type&&n[i.name]&&(i.type="component",y=!0);let t=!1;if(!y&&!i.voidElement&&p.test(i.name)){t=!0,s||(s=e.toLowerCase());let r=s.indexOf("</"+i.name.toLowerCase()+">",S),n=-1===r?e.length:r,a=e.slice(S,n);a&&i.children.push({type:"text",content:a}),v=n}i.voidElement||y||t||!k||"<"===k||i.children.push({type:"text",content:e.slice(S,w?w.index:void 0)}),0===m&&g.push(i),(o=f[m-1])&&o.children.push(i),f[m]=i}if((!d||i.voidElement)&&(m>-1&&(i.voidElement||i.name===u.slice(2,-1))&&(i=-1==--m?g:f[m]),!y&&("<"!==k||a)&&k)){o=-1===m?g:f[m].children;let t=w?w.index:-1,i=e.slice(S,-1===t?void 0:t);h.test(i)&&(i=" "),(t>-1&&m+o.length>=0||" "!==i)&&o.push({type:"text",content:i})}}),o&&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 i=t.attrs[e];"string"==typeof i&&i.indexOf("\0")>-1&&(t.attrs[e]=i.split("\0").join("<"))}t.children.length&&e(t.children)})}(g),g}};let f=(e,t,i,s)=>{let r=[i,{code:t,...s||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);k(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...r):console?.warn&&console.warn(...r)},m={},y=(e,t,i,s)=>{k(i)&&m[i]||(k(i)&&(m[i]=new Date),f(e,t,i,s))},v=(e,t)=>
1()=>{if(e.isInitialized)t();else{let i=()=>{setTimeout(()=>{e.off("initialized",i)},0),t()};e.on("initialized",i)}},b=(e,t,i)=>{e.loadNamespaces(t,v(e,i))},x=(e,t,i,s)=>{if(k(i)&&(i=[i]),e.options.preload&&e.options.preload.indexOf(t)>-1)return b(e,i,s);i.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,v(e,s))},S=(e,t,i={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:i.lng,precheck:(t,s)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e))return!1}}):(y(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0),k=e=>"string"==typeof e,w=e=>"object"==typeof e&&null!==e,L=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,O={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},$=e=>O[e],E=e=>e.replace(L,$),N={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:E,transDefaultProps:void 0},C=(e={})=>{N={...N,...e}},R=()=>N,P=e=>{s=e},j=()=>s,A=(e,t)=>{if(!e)return!1;let i=e.props?.children??e.children;return t?i.length>0:!!i},I=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?D(t):t},T=e=>Array.isArray(e)&&e.every(r.isValidElement),D=e=>Array.isArray(e)?e:[e],F=(e,t)=>{let i={...t};return i.props={...t.props,...e.props},i},V=e=>{let t={};if(!e)return t;let i=e=>{D(e).forEach(e=>{k(e)||(A(e)?i(I(e)):w(e)&&!(0,r.isValidElement)(e)&&Object.assign(t,e))})};return i(e),t},U=(e,t,i,s)=>{if(!e)return"";let n="",a=D(e),o=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return a.forEach((e,a)=>{if(k(e)){n+=`${e}`;return}if((0,r.isValidElement)(e)){let{props:r,type:l}=e,u=Object.keys(r).length,c=o.indexOf(l)>-1,h=r.children;if(!h&&c&&!u){n+=`<${l}/>`;return}if(!h&&(!c||u)||r.i18nIsDynamicList){n+=`<${a}></${a}>`;return}if(c&&u<=1){let e=k(h)?h:U(h,t,i,s);n+=`<${l}>${e}</${l}>`;return}let p=U(h,t,i,s);n+=`<${a}>${p}</${a}>`;return}if(null===e){f(i,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:s});return}if(w(e)){let{format:t,...r}=e,a=Object.keys(r);if(1===a.length){let e=t?`${a[0]}, ${t}`:a[0];n+=`{{${e}}}`;return}f(i,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:s,child:e});return}f(i,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:s,child:e})}),n},_=(e,t,i,s,n,a,o)=>{if(""===i)return[];let l=n.transKeepBasicHtmlNodesFor||[],u=i&&new RegExp(l.map(e=>`<${e}`).join("|")).test(i);if(!e&&!t&&!u&&!o)return[i];let c=t??{},h=e=>{D(e).forEach(e=>{k(e)||(A(e)?h(I(e)):w(e)&&!(0,r.isValidElement)(e)&&Object.assign(c,e))})};h(e);let p=Object.keys(c),d=g.parse(`<0>${i}</0>`,{allowedTags:e=>/^\d+$/.test(e)||l.indexOf(e)>-1||p.indexOf(e)>-1}),f={...c,...a},m=(e,t,i)=>{let s=I(e),r=v(s,t.children,i);return T(s)&&0===r.length||e.props?.i18nIsDynamicList?s:r},y=(e,t,i,s,n)=>{e.dummy?(e.children=t,i.push((0,r.cloneElement)(e,{key:s},n?void 0:t))):i.push(...r.Children.map([e],e=>{if(e.type===r.Fragment||e.props?.i18nIsDynamicList!==void 0){let i={key:s};return e&&e.props&&Object.keys(e.props).forEach(t=>{"children"!==t&&"i18nIsDynamicList"!==t&&(i[t]=e.props[t])}),(0,r.createElement)(e.type,i,n?null:t)}let i={key:s};return e&&e.props&&Object.keys(e.props).forEach(t=>{"ref"!==t&&"children"!==t&&(i[t]=e.props[t])}),(0,r.cloneElement)(e,i,n?null:t)}))},v=(e,i,a)=>{let c=D(e),h=D(i),p={};return h.reduce((e,i,h)=>{let d=i.children?.[0]?.content&&s.services.interpolator.interpolate(i.children[0].content,f,s.language);if("tag"===i.type){let g=c[parseInt(i.name,10)];!g&&t&&(g=t[i.name]),1!==a.length||g||(g=a[0][i.name]),g||(g={});let b={...i.attrs};
1o&&Object.keys(b).forEach(e=>{let t=b[e];k(t)&&(b[e]=E(t))});let x=0!==Object.keys(b).length?F({props:b},g):g,S=(0,r.isValidElement)(x),L=S&&A(i,!0)&&!i.voidElement,O=u&&w(x)&&x.dummy&&!S,$=w(t)&&Object.hasOwnProperty.call(t,i.name);if(k(x)){let t=s.services.interpolator.interpolate(x,f,s.language);e.push(t)}else if(A(x)||L){let t=m(x,i,a);y(x,t,e,h)}else if(O)y(x,v(c,i.children,a),e,h);else if(Number.isNaN(parseFloat(i.name))){if($){let t=m(x,i,a);y(x,t,e,h,i.voidElement)}else if(n.transSupportBasicHtmlNodes&&l.indexOf(i.name)>-1){if(i.voidElement)e.push((0,r.createElement)(i.name,{key:`${i.name}-${h}`}));else{let t;let s=p[i.name]||0;p[i.name]=s+1;let n=0;for(let e=0;e<c.length;e+=1){let a=c[e];if((0,r.isValidElement)(a)&&a.type===i.name){if(n===s){t=a;break}n+=1}}let o=v(t?D(I(t)):c,i.children,a);e.push((0,r.createElement)(i.name,{key:`${i.name}-${h}`},o))}}else if(i.voidElement)e.push(`<${i.name} />`);else{let t=v(c,i.children,a);e.push(`<${i.name}>${t}</${i.name}>`)}}else if(w(x)&&!S){let t=i.children[0]?d:null;t&&e.push(t)}else y(x,d,e,h,1!==i.children.length||!d)}else if("text"===i.type){let t=n.transWrapTextNodes,a="function"==typeof n.unescape?n.unescape:R().unescape,l=o?a(s.services.interpolator.interpolate(i.content,f,s.language)):s.services.interpolator.interpolate(i.content,f,s.language);t?e.push((0,r.createElement)(t,{key:`${i.name}-${h}`},l)):e.push(l)}return e},[])};return I(v([{dummy:!0,children:e||[]}],d,D(e||[]))[0])},H=(e,t,i)=>{let s=e.key||t,n=(0,r.cloneElement)(e,{key:s});return!n.props||!n.props.children||0>i.indexOf(`${t}/>`)&&0>i.indexOf(`${t} />`)?n:(0,r.createElement)(function(){return(0,r.createElement)(r.Fragment,null,n)},{key:s})},M=(e,t)=>e.map((e,i)=>H(e,i,t)),K=(e,t)=>{let i={};return Object.keys(e).forEach(s=>{Object.assign(i,{[s]:H(e[s],s,t)})}),i},z=(e,t,i,s)=>e?Array.isArray(e)?M(e,t):w(e)?K(e,t):(y(i,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:s}),null):null,B=e=>!(!w(e)||Array.isArray(e))&&Object.keys(e).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0),q={type:"3rdParty",init(e){C(e.options.react),P(e)}},W=(0,r.createContext)();class J{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function Z({children:e,count:t,parent:i,i18nKey:s,context:a,tOptions:o={},values:l,defaults:u,components:c,ns:h,i18n:p,t:d,shouldUnescape:g,...f}){let{i18n:m,defaultNS:v}=(0,r.useContext)(W)||{},b=p||m||j(),x=d||b?.t.bind(b);return function({children:e,count:t,parent:i,i18nKey:s,context:a,tOptions:o={},values:l,defaults:u,components:c,ns:h,i18n:p,t:d,shouldUnescape:g,...f}){let m=p||j();if(!m)return y(m,"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:s}),e;let v=d||m.t.bind(m)||(e=>e),b={...R(),...m.options?.react},x=h||v.ns||m.options?.defaultNS;x=k(x)?[x]:x||["translation"];let{transDefaultProps:S}=b,w=S?.tOptions?{...S.tOptions,...o}:o,L=g??S?.shouldUnescape,O=S?.values?{...S.values,...l}:l,$=S?.components?{...S.components,...c}:c,E=U(e,b,m,s),N=u||w?.defaultValue||E||b.transEmptyNodeValue||("function"==typeof s?(0,n.TZ)(s):s),{hashTransKey:C}=b,P=s||(C?C(E||N):E||N);l=m.options?.interpolation?.defaultVariables?O&&Object.keys(O).length>0?{...O,...m.options.interpolation.defaultVariables}:{...m.options.interpolation.defaultVariables}:O;let A=V(e);A&&"number"==typeof A.count&&void 0===t&&(t=A.count);let I=!l&&(void 0===t||m.options?.interpolation?.alwaysFormat)&&e?{interpolation:{...w.interpolation,prefix:"#$?",suffix:"?$#"}}:w.interpolation,T={...w,context:a||w.context,count:t,...l,...I,defaultValue:N,ns:x},D=P?v(P,T):N;D===P&&N&&(D=N);let F=z($,D,m,s),H=F||e,M=null;B(F)&&(M=F,H=e);let K=_(H,M,D,m,b,T,L),q=i??b.defaultTransParent;return q?(0,r.createElement)(q,f,K):K}({children:e,count:t,parent:i,i18nKey:s,context:a,tOptions:o,values:l,defaults:u,components:c,ns:h||x?.ns||v||b?.options?.defaultNS,i18n:b,t:d,shouldUne
1scape:g,...f})}class Y extends Error{constructor(e,t,i){super(e),this.name="TranslationParserError",this.position=t,this.translationString=i,Error.captureStackTrace&&Error.captureStackTrace(this,Y)}}let G={"&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;":"ℵ"},Q=RegExp(Object.keys(G).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),X=e=>e.replace(Q,e=>G[e]).replace(/&#(\d+);/g,(e,t)=>String.fromCharCode(parseInt(t,10))).replace(/&#x([0-9a-fA-F]+);/g,(e,t)=>String.fromCharCode(parseInt(t,16))),ee=e=>{let t=[],i=0,s="",r=()=>{s&&(t.push({type:"Text",value:s,position:i-s.length}),s="")};for(;i<e.length;){let n=e[i];if("<"===n){let a=e.slice(i).match(/^<(\d+)>/);if(a)r(),t.push({type:"TagOpen",value:a[0],position:i,tagNumber:parseInt(a[1],10)}),i+=a[0].length;else{let a=e.slice(i).match(/^<\/(\d+)>/);a?(r(),t.push({type:"TagClose",value:a[0],position:i,tagNumber:parseInt(a[1],10)}),i+=a[0].length):(s+=n,i+=1)}}else s+=n,i+=1}return r(),t},et=(e,t,i)=>{let{type:s,props:n={}}=e;if(n.children&&Array.isArray(n.children)&&i){let{children:e,...i}=n;return r.createElement(s,i,...t)}return 0===t.length?r.createElement(s,n):1===t.length?r.createElement(s,n,t[0]):r.createElement(s,n,...t)};var ei=i(82558);let es={t:(e,t)=>{if(k(t))return t;if(w(t)&&k(t.defaultValue))return t.defaultValue;if("function"==typeof e)return"";if(Array.isArray(e)){let t=e[e.length-1];return"function"==typeof t?"":t}return e},ready:!1},er=()=>()=>{},en=(e,t={})=>{let{i18n:i}=t,{i18n:s,defaultNS:n}=(0,r.useContext)(W)||{},a=i||s||j();a&&!a.reportNamespaces&&(a.reportNamespaces=new J),a||y(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,r.useMemo)(()=>({...R(),...a?.options?.react,...t}),[a,t]),{useSuspense:l,keyPrefix:u}=o,c=e||n||a?.options?.defaultNS,h=k(c)?[c]:c||["translation"],p=(0,r.useMemo)(()=>h,h);a?.reportNamespaces?.addUsedNamespaces?.(p);let d=(0,r.useRef)(0),g=(0,r.useCallback)(e=>{if(!a)return er;let{bindI18n:t,bindI18nStore:i}=o,s=()=>{d.current+=1,e()};return t&&a.on(t,s),i&&a.store.on(i,s),()=>{t&&t.split(" ").forEach(e=>a.off(e,s)),i&&i.split(" ").forEach(e=>a.store.off(e,s))}},[a,o]),f=(0,r.useRef)(),m=(0,r.useCallback)(()=>{if(!a)return es;let e=!!(a.isInitialized||a.initializedStoreOnce)&&p.every(e=>S(e,a,o)),i=t.lng||a.language,s=d.current,r=f.current;if(r&&r.ready===e&&r.lng===i&&r.keyPrefix===u&&r.revision===s)return r;let n={t:a.getFixedT(i,"fallback"===o.nsMode?p:p[0],u,{scopeNs:p}),ready:e,lng:i,keyPrefix:u,revision:s};return f.current=n,n},[a,p,u,o,t.lng]),[v,w]=(0,r.useState)(0),{t:L,ready:O}=(0,ei.useSyncExternalStore)(g,m,m);(0,r.useEffect)(()=>
1{if(a&&!O&&!l){let e=()=>w(e=>e+1);t.lng?x(a,t.lng,p,e):b(a,p,e)}},[a,t.lng,p,O,l,v]);let $=a||{},E=(0,r.useRef)(null),N=(0,r.useRef)(),C=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let i=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(i,"__original"))try{Object.defineProperty(i,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return i},P=(0,r.useMemo)(()=>{let e=$?.language,t=$;$&&(E.current&&E.current.__original===$?N.current!==e?(t=C($),E.current=t,N.current=e):t=E.current:(t=C($),E.current=t,N.current=e));let i=O||l?L:(...e)=>(y(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."),L(...e)),s=[i,t,O];return s.t=i,s.i18n=t,s.ready=O,s},[L,$,O,$.resolvedLanguage,$.language,$.languages]);if(a&&l&&!O){let e=!1;try{e=!1}catch(e){}throw e&&y(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 i=()=>e();t.lng?x(a,t.lng,p,i):b(a,p,i)})}return P}}}]);

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.