1try{let 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]="2dddaccc-14d4-456b-98ab-a28859aeb018",e._sentryDebugIdIdentifier="sentry-dbid-2dddaccc-14d4-456b-98ab-a28859aeb018")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3215],{64142:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},86181:(e,t,i)=>{"use strict";function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i.d(t,{A:()=>s})},83881:(e,t,i)=>{"use strict";i.d(t,{A:()=>O});var s=i(86181),n=[],o=n.forEach,r=n.slice,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,l=function(e,t,i){var s=i||{};s.path=s.path||"/";var n=encodeURIComponent(t),o="".concat(e,"=").concat(n);if(s.maxAge>0){var r=s.maxAge-0;if(Number.isNaN(r))throw Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(r))}if(s.domain){if(!a.test(s.domain))throw TypeError("option domain is invalid");o+="; Domain=".concat(s.domain)}if(s.path){if(!a.test(s.path))throw TypeError("option path is invalid");o+="; Path=".concat(s.path)}if(s.expires){if("function"!=typeof s.expires.toUTCString)throw TypeError("option expires is invali
1d");o+="; Expires=".concat(s.expires.toUTCString())}if(s.httpOnly&&(o+="; HttpOnly"),s.secure&&(o+="; Secure"),s.sameSite)switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:case"strict":o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"none":o+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return o},u={create:function(e,t,i,s){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};i&&(n.expires=new Date,n.expires.setTime(n.expires.getTime()+6e4*i)),s&&(n.domain=s),document.cookie=l(e,encodeURIComponent(t),n)},read:function(e){for(var t="".concat(e,"="),i=document.cookie.split(";"),s=0;s<i.length;s++){for(var n=i[s];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},remove:function(e){this.create(e,"",-1)}},h={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var i=u.read(e.lookupCookie);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&u.create(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},p={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var i=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));for(var s=i.substring(1).split("&"),n=0;n<s.length;n++){var o=s[n].indexOf("=");o>0&&s[n].substring(0,o)===e.lookupQuerystring&&(t=s[n].substring(o+1))}}return t}},c=null,g=function(){if(null!==c)return c;try{c="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){c=!1}return c},d={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&g()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&g()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},f=null,m=function(){if(null!==f)return f;try{f="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){f=!1}return f},v={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&m()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&m()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},y={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var i=0;i<navigator.languages.length;i++)t.push(navigator.languages[i]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},b={name:"htmlTag",lookup:function(e){var t,i=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return i&&"function"==typeof i.getAttribute&&(t=i.getAttribute("lang")),t}},x={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(i instanceof Array){if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof i[e.lookupFromPathIndex])return;t=i[e.lookupFromPathIndex].replace("/","")}else t=i[0].replace("/","")}}return t}},k={name:"subdomain",lookup:function(e){var t="number"==typeof e.lookupFromSubdomainIndex?e.lookupFromSubdomainIndex+1:1,i="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[t]}},S=!1;try{document.cookie,S=!0}catch(e){}var w=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];S||w.splice(1,1);var O=function(){var e,t;return e=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,e),this.type="languageDetector",this.detectors={},this.init(t,i)},t=[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e||{languageUtils:{}}
1,this.options=function(e){return o.call(r.call(arguments,1),function(t){if(t)for(var i in t)void 0===e[i]&&(e[i]=t[i])}),e}(t,this.options||{},{order:w,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(e){return e.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(h),this.addDetector(p),this.addDetector(d),this.addDetector(v),this.addDetector(y),this.addDetector(b),this.addDetector(x),this.addDetector(k)}},{key:"addDetector",value:function(e){return this.detectors[e.name]=e,this}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var i=[];return(e.forEach(function(e){if(t.detectors[e]){var s=t.detectors[e].lookup(t.options);s&&"string"==typeof s&&(s=[s]),s&&(i=i.concat(s))}}),i=i.map(function(e){return t.options.convertDetectedLanguage(e)}),this.services.languageUtils.getBestMatchFromCodes)?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var i=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(function(t){i.detectors[t]&&i.detectors[t].cacheUserLanguage(e,i.options)}))}}],function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=(0,s.A)(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=(0,s.A)(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,s.A)(t)?t:t+""}(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}();O.type="languageDetector"},84359:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var s=function(e){return{type:"backend",init:function(e,t,i){},read:function(t,i,s){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])}}}},24842:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>et});let s=e=>"string"==typeof e,n=()=>{let e,t;let i=new Promise((i,s)=>{e=i,t=s});return i.resolve=e,i.reject=t,i},o=e=>null==e?"":""+e,r=(e,t,i)=>{e.forEach(e=>{t[e]&&(i[e]=t[e])})},a=/###/g,l=e=>e&&e.indexOf("###")>-1?e.replace(a,"."):e,u=e=>!e||s(e),h=(e,t,i)=>{let n=s(t)?t.split("."):t,o=0;for(;o<n.length-1;){if(u(e))return{};let t=l(n[o]);!e[t]&&i&&(e[t]=new i),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return u(e)?{}:{obj:e,k:l(n[o])}},p=(e,t,i)=>{let{obj:s,k:n}=h(e,t,Object);if(void 0!==s||1===t.length){s[n]=i;return}let o=t[t.length-1],r=t.slice(0,t.length-1),a=h(e,r,Object);for(;void 0===a.obj&&r.length;)o=`${r[r.length-1]}.${o}`,(a=h(e,r=r.slice(0,r.length-1),Object))&&a.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=i},c=(e,t,i,s)=>{let{obj:n,k:o}=h(e,t,Object);n[o]=n[o]||[],n[o].push(i)},g=(e,t)=>{let{obj:i,k:s}=h(e,t);if(i)return i[s]},d=(e,t,i)=>{let s=g(e,i);return void 0!==s?s:g(t,i)},f=(e,t,i)=>{for(let n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?s(e[n])||e[n]instanceof String||s(t[n])||t[n]instanceof String?i&&(e[n]=t[n]):f(e[n],t[n],i):e[n]=t[n]);return e},m=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var v={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};let y=e=>s(e)?e.replace(/[&<>"'\/]/g,e=>v[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=[" ",",","?","!",";"],k=new b(20),S=(e,t,i)=>{t=t||"",i=i||"";let s=x.filter(e=>0>t.indexOf(e)&&0>i.indexOf(e));if(0===s.length)return!0;let n=k.getRegExp(`(${s.map(e=>"?"===e?"\\?":e).join("|")})`),o=!n.test(e);
1if(!o){let t=e.indexOf(i);t>0&&!n.test(e.substring(0,t))&&(o=!0)}return o},w=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let s=t.split(i),n=e;for(let e=0;e<s.length;){let t;if(!n||"object"!=typeof n)return;let o="";for(let r=e;r<s.length;++r)if(r!==e&&(o+=i),o+=s[r],void 0!==(t=n[o])){if(["string","number","boolean"].indexOf(typeof t)>-1&&r<s.length-1)continue;e+=r-e+1;break}n=t}return n},O=e=>e&&e.replace("_","-"),L={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class N{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||L,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,i,n){return n&&!this.debug?null:(s(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new N(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new N(this.logger,e)}}var $=new N;class C{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)}}emit(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,s]=e;for(let e=0;e<s;e++)t(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[s,n]=t;for(let t=0;t<n;t++)s.apply(s,[e,...i])})}}class R extends C{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{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){0>this.options.ns.indexOf(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){let n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?n=e.split("."):(n=[e,t],i&&(Array.isArray(i)?n.push(...i):s(i)&&r?n.push(...i.split(r)):n.push(i)));let l=g(this.data,n);return(!l&&!t&&!i&&e.indexOf(".")>-1&&(e=n[0],t=n[1],i=n.slice(2).join(".")),!l&&a&&s(i))?w(this.data&&this.data[e]&&this.data[e][t],i,r):l}addResource(e,t,i,s){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,r=[e,t];i&&(r=r.concat(o?i.split(o):i)),e.indexOf(".")>-1&&(r=e.split("."),s=t,t=r[1]),this.addNamespaces(t),p(this.data,r,s),n.silent||this.emit("added",e,t,i,s)}addResources(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in i)(s(i[n])||Array.isArray(i[n]))&&this.addResource(e,t,n,i[n],{silent:!0});n.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,i,s,n){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},r=[e,t];e.indexOf(".")>-1&&(r=e.split("."),s=i,i=t,t=r[1]),this.addNamespaces(t);let a=g(this.data,r)||{};o.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?f(a,i,n):a={...a,...i}
1,p(this.data,r,a),o.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),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}: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 E={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,s,n){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,i,s,n))}),t}};let P={};class I extends C{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),r(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=$.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let i=this.resolve(e,t);return i&&void 0!==i.res}extractFromKey(e,t){let i=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===i&&(i=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],r=i&&e.indexOf(i)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!S(e,i,n);if(r&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:s(o)?[o]:o};let r=e.split(i);(i!==n||i===n&&this.options.ns.indexOf(r[0])>-1)&&(o=r.shift()),e=r.join(n)}return{key:e,namespaces:s(o)?[o]:o}}translate(e,t,i){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:r,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],u=t.lng||this.language,h=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(h){let e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${l}${e}${r}`,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${r}`}return n?{res:r,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:r}let p=this.resolve(e,t),c=p&&p.res,g=p&&p.usedKey||r,d=p&&p.exactUsedKey||r,f=Object.prototype.toString.apply(c),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!s(c)&&"boolean"!=typeof c&&"number"!=typeof c;if(v&&c&&y&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(f)&&!(s(m)&&Array.isArray(c))){if(!t.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(g,c,{...t,ns:a}):`key '${r} (${this.language})' returned an object instead of string.`;return n?(p.res=e,p.usedParams=this.getUsedParamsDetails(t),p):e}if(o){let e=Array.isArray(c),i=e?[]:{},s=e?d:g;for(let e in c)if(Object.prototype.hasOwnProperty.call(c,e)){let n=`${s}${o}${e}`;i[e]=this.translate(n,{...t,joinArrays:!1,ns:a}),i[e]===n&&(i[e]=c[e])}c=i}}else if(v&&s(m)&&Array.isArray(c))(c=c.join(m))&&(c=this.extendTranslation(c,e,t,i));else{let n=!1,a=!1,h=void 0!==t.count&&!s(t.count),g=I.hasDefaultValue(t),d=h?this.pluralResolver.getSuffix(u,t.count,t):"",f=t.ordinal&&h?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",m=h&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),v=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${d}`]||t[`defaultValue${f}`]||t.defaultValue;!this.isValidLookup(c)&&g&&(n=!0,c=v),this.isValidLookup(c)||(a=!0,c=r);let y=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:c,b=g&&v!==c&&this.options.updateMissing;if(a||n||b){if(this.logger.log(b?"updateKey":"missingKey",u,l,r,b?v:c),o){let e=this.resolve(r,{...t,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=[],i=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&i&&i[0])for(let t=0;t<i.length;t++)e.push(i[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);let s=(e,i,s)=>{let n=g&&s!==c?s:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,i,n,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,i,n,b,t),this.emit
1("missingKey",e,l,i,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&h?e.forEach(e=>{let i=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>i.indexOf(`${this.options.pluralSeparator}zero`)&&i.push(`${this.options.pluralSeparator}zero`),i.forEach(i=>{s([e],r+i,t[`defaultValue${i}`]||v)})}):s(e,r,v))}c=this.extendTranslation(c,e,t,p,i),a&&c===r&&this.options.appendNamespaceToMissingKey&&(c=`${l}:${r}`),(a||n)&&this.options.parseMissingKeyHandler&&(c="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${r}`:r,n?c:void 0):this.options.parseMissingKeyHandler(c))}return n?(p.res=c,p.usedParams=this.getUsedParamsDetails(t),p):c}extendTranslation(e,t,i,n,o){var r=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!i.skipInterpolation){let a;i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let l=s(e)&&(i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(l){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let u=i.replace&&!s(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,i.lng||this.language||n.usedLng,i),l){let t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(i.nest=!1)}!i.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(i.lng=this.language||n.usedLng),!1!==i.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,s=Array(e),n=0;n<e;n++)s[n]=arguments[n];return o&&o[0]===s[0]&&!i.context?(r.logger.warn(`It seems you are nesting recursively key: ${s[0]} in key: ${t[0]}`),null):r.translate(...s,t)},i)),i.interpolation&&this.interpolator.reset()}let a=i.postProcess||this.options.postProcess,l=s(a)?[a]:a;return null!=e&&l&&l.length&&!1!==i.applyPostProcessor&&(e=E.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e){let t,i,n,o,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,a),u=l.key;i=u;let h=l.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));let p=void 0!==a.count&&!s(a.count),c=p&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),g=void 0!==a.context&&(s(a.context)||"number"==typeof a.context)&&""!==a.context,d=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);h.forEach(e=>{this.isValidLookup(t)||(r=e,!P[`${d[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(r)&&(P[`${d[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${d.join(", ")}" won't get resolved as namespace "${r}" 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!!!")),d.forEach(i=>{let s;if(this.isValidLookup(t))return;o=i;let r=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(r,u,i,e,a);else{let e;p&&(e=this.pluralResolver.getSuffix(i,a.count,a));let t=`${this.options.pluralSeparator}zero`,s=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(r.push(u+e),a.ordinal&&0===e.indexOf(s)&&r.push(u+e.replace(s,this.options.pluralSeparator)),c&&r.push(u+t)),g){let i=`${u}${this.options.contextSeparator}${a.context}`;r.push(i),p&&(r.push(i+e),a.ordinal&&0===e.indexOf(s)&&r.push(i+e.replace(s,this.options.pluralSeparator)),c&&r.push(i+t))}}for(;s=r.pop();)this.isValidLookup(t)||(n=s,t=this.getResource(i,e,s,a))}))})}),{res:t,usedKey:i,exactUsedKey:n,usedLng:o,usedNS:r}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,i,s):this.resourceStore.getResource(e,t,i,s)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&!s(e.replace),i=t?e.replace:e;if(t&&void 0!==e.count&&(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){let t="defaultValue";for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&void 0!==e[i])return!0;return!1}}let j=e=>e.charAt(0).toUpperCase()+e.slice(1);class A{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$.create("languageUtils")}getScriptPartFromCode(e){if(!(e=O(e))||0>e.indexOf("-"))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=O(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(s(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}let t=["hans","hant","latn","cyrl","cans","mong","arab"],i=e.split("-");return this.options.lowerCaseLng?i=i.map(e=>e.toLowerCase()):2===i.length?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=j(i[1].toLowerCase()))):3===i.length&&(i[0]=i[0].toLowerCase(),2===i[1].length&&(i[1]=i[1].toUpperCase()),"sgn"!==i[0]&&2===i[2].length&&(i[2]=i[2].toUpperCase()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=j(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=j(i[2].toLowerCase()))),i.join("-")}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.indexOf(e)>-1}getBestMatchFromCodes(e){let t;
1return 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.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>{if(e===i||!(0>e.indexOf("-")&&0>i.indexOf("-"))&&(e.indexOf("-")>0&&0>i.indexOf("-")&&e.substring(0,e.indexOf("-"))===i||0===e.indexOf(i)&&i.length>1))return e})}),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];return 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.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return s(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):s(e)&&o(this.formatLanguageCode(e)),i.forEach(e=>{0>n.indexOf(e)&&o(this.formatLanguageCode(e))}),n}}let F=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],D={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)},T=["v1","v2","v3"],U=["v4"],V={zero:0,one:1,two:2,few:3,many:4,other:5},M=()=>{let e={};return F.forEach(t=>{t.lngs.forEach(i=>{e[i]={numbers:t.nr,plurals:D[t.fc]}})}),e};class K{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=$.create("pluralResolver"),(!this.options.compatibilityJSON||U.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=M(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){let i;let s=O("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:s,type:n});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];try{i=new Intl.PluralRules(s,{type:n})}catch(n){if(!e.match(/-|_/))return;let s=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(s,t)}return this.pluralRulesCache[o]=i,i}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,t);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};
1return this.getSuffixes(e,i).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((e,t)=>V[e]-V[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):i.numbers.map(i=>this.getSuffix(e,i,t)):[]}getSuffix(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=this.getRule(e,i);return s?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:this.getSuffixRetroCompatible(s,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),s=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===s?s="plural":1===s&&(s=""));let n=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return"v1"===this.options.compatibilityJSON?1===s?"":"number"==typeof s?`_plural_${s.toString()}`:n():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?n():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}
1shouldUseIntlApi(){return!T.includes(this.options.compatibilityJSON)}}let z=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4)||void 0===arguments[4]||arguments[4],r=d(e,t,i);return!r&&o&&s(i)&&void 0===(r=w(e,i,n))&&(r=w(t,i,n)),r},B=e=>e.replace(/\$/g,"$$$$");class H{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=$.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:i,useRawValueToEscape:s,prefix:n,prefixEscaped:o,suffix:r,suffixEscaped:a,formatSeparator:l,unescapeSuffix:u,unescapePrefix:h,nestingPrefix:p,nestingPrefixEscaped:c,nestingSuffix:g,nestingSuffixEscaped:d,nestingOptionsSeparator:f,maxReplaces:v,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:y,this.escapeValue=void 0===i||i,this.useRawValueToEscape=void 0!==s&&s,this.prefix=n?m(n):o||"{{",this.suffix=r?m(r):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?m(p):c||m("$t("),this.nestingSuffix=g?m(g):d||m(")"),this.nestingOptionsSeparator=f||",",this.maxReplaces=v||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&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,n){let r,a,l;let u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=e=>{if(0>e.indexOf(this.formatSeparator)){let s=z(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(s,void 0,i,{...n,...t,interpolationkey:e}):s}let s=e.split(this.formatSeparator),o=s.shift().trim(),r=s.join(this.formatSeparator).trim();return this.format(z(t,u,o,this.options.keySeparator,this.options.ignoreJSONStructure),r,i,{...n,...t,interpolationkey:o})};this.resetRegExp();let p=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,c=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>B(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?B(this.escape(e)):B(e)}].forEach(t=>{for(l=0;r=t.regex.exec(e);){let i=r[1].trim();if(void 0===(a=h(i))){if("function"==typeof p){let t=p(e,r,n);a=s(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,i))a="";else if(c){a=r[0];continue}else this.logger.warn(`missed to pass in variable ${i} for interpolating ${e}`),a=""}else s(a)||this.useRawValueToEscape||(a=o(a));let u=t.safeValue(a);if(e=e.replace(r[0],u),c?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t){let i,n,r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(e,t)=>{let i=this.nestingOptionsSeparator;if(0>e.indexOf(i))return e;let s=e.split(RegExp(`${i}[ ]*{`)),n=`{${s[1]}`;e=s[0];let o=(n=this.interpolate(n,r)).match(/'/g),a=n.match(/"/g);(o&&o.length%2==0&&!a||a.length%2!=0)&&(n=n.replace(/'/g,'"'));try{r=JSON.parse(n),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${i}${n}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let u=[];(r=(r={...a}).replace&&!s(r.replace)?r.replace:r).applyPostProcessor=!1,delete r.defaultValue;let h=!1;if(-1!==i[0].indexOf(this.formatSeparator)&&!/{.*}/.test(i[1])){let e=i[1].split(this.formatSeparator).map(e=>e.trim());i[1]=e.shift(),u=e,h=!0}if((n=t(l.call(this,i[1].trim(),r),r))&&i[0]===e&&!s(n))return n;s(n)||(n=o(n)),n||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),n=""),h&&(n=u.reduce((e,t)=>
1this.format(e,t,a.lng,{...a,interpolationkey:i[1].trim()}),n.trim())),e=e.replace(i[0],n),this.regexp.lastIndex=0}return e}}let J=e=>{let t=e.toLowerCase().trim(),i={};if(e.indexOf("(")>-1){let s=e.split("(");t=s[0].toLowerCase().trim();let n=s[1].substring(0,s[1].length-1);"currency"===t&&0>n.indexOf(":")?i.currency||(i.currency=n.trim()):"relativetime"===t&&0>n.indexOf(":")?i.range||(i.range=n.trim()):n.split(";").forEach(e=>{if(e){let[t,...s]=e.split(":"),n=s.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();i[o]||(i[o]=n),"false"===n&&(i[o]=!1),"true"===n&&(i[o]=!0),isNaN(n)||(i[o]=parseInt(n,10))}})}return{formatName:t,formatOptions:i}},_=e=>{let t={};return(i,s,n)=>{let o=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(o={...o,[n.interpolationkey]:void 0});let r=s+JSON.stringify(o),a=t[r];return a||(a=e(O(s),n),t[r]=a),a(i)}};class q{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=$.create("formatter"),this.options=e,this.formats={number:_((e,t)=>{let i=new Intl.NumberFormat(e,{...t});return e=>i.format(e)}),currency:_((e,t)=>{let i=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>i.format(e)}),datetime:_((e,t)=>{let i=new Intl.DateTimeFormat(e,{...t});return e=>i.format(e)}),relativetime:_((e,t)=>{let i=new Intl.RelativeTimeFormat(e,{...t});return e=>i.format(e,t.range||"day")}),list:_((e,t)=>{let i=new Intl.ListFormat(e,{...t});return e=>i.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=_(t)}format(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=t.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&0>n[0].indexOf(")")&&n.find(e=>e.indexOf(")")>-1)){let e=n.findIndex(e=>e.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,e)].join(this.formatSeparator)}return n.reduce((e,t)=>{let{formatName:n,formatOptions:o}=J(t);if(this.formats[n]){let t=e;try{let r=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},a=r.locale||r.lng||s.locale||s.lng||i;t=this.formats[n](e,a,{...o,...s,...r})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${n}`),e},e)}}let W=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)};class Y extends C{constructor(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=$.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&&this.backend.init&&this.backend.init(i,s.backend,s)}queueLoad(e,t,i,s){let n={},o={},r={},a={};return e.forEach(e=>{let s=!0;t.forEach(t=>{let r=`${e}|${t}`;!i.reload&&this.store.hasResourceBundle(e,t)?this.state[r]=2:this.state[r]<0||(1===this.state[r]?void 0===o[r]&&(o[r]=!0):(this.state[r]=1,s=!1,void 0===o[r]&&(o[r]=!0),void 0===n[r]&&(n[r]=!0),void 0===a[t]&&(a[t]=!0)))}),s||(r[e]=!0)}),(Object.keys(n).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(n),pending:Object.keys(o),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(a)}}loaded(e,t,i){let s=e.split("|"),n=s[0],o=s[1];t&&this.emit("failedLoading",n,o,t),!t&&i&&this.store.addResourceBundle(n,o,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&i&&(this.state[e]=0);let r={};this.queue.forEach(i=>{c(i.loaded,[n],o),W(i,e),t&&i.errors.push(t),0!==i.pendingCount||i.done||(Object.keys(i.loaded).forEach(e=>{r[e]||(r[e]={});let t=i.loaded[e];t.length&&t.forEach(t=>{void 0===r[e][t]&&(r[e][t]=!0)})}),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())}
1),this.emit("loaded",r),this.queue=this.queue.filter(e=>!e.done)}read(e,t,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:s,wait:n,callback:o});return}this.readingCalls++;let r=(r,a)=>{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(r&&a&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,i,s+1,2*n,o)},n);return}o(r,a)},a=this.backend[i].bind(this.backend);if(2===a.length){try{let i=a(e,t);i&&"function"==typeof i.then?i.then(e=>r(null,e)).catch(r):r(null,i)}catch(e){r(e)}return}return a(e,t,r)}prepareLoading(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();s(e)&&(e=this.languageUtils.toResolveHierarchy(e)),s(t)&&(t=[t]);let o=this.queueLoad(e,t,i,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),s=i[0],n=i[1];this.read(s,n,"read",void 0,void 0,(i,o)=>{i&&this.logger.warn(`${t}loading namespace ${n} for language ${s} failed`,i),!i&&o&&this.logger.log(`${t}loaded namespace ${n} for language ${s}`,o),this.loaded(e,i,o)})}saveMissing(e,t,i,s,n){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&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&&this.backend.create){let a={...o,isUpdate:n},l=this.backend.create.bind(this.backend);if(l.length<6)try{let n;(n=5===l.length?l(e,t,i,s,a):l(e,t,i,s))&&"function"==typeof n.then?n.then(e=>r(null,e)).catch(r):r(null,n)}catch(e){r(e)}else l(e,t,i,s,r,a)}e&&e[0]&&this.store.addResource(e[0],t,i,s)}}}let Q=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler: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,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),G=e=>(s(e.ns)&&(e.ns=[e.ns]),s(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),s(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Z=()=>{},X=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})};class ee extends C{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=G(e),this.services={},this.logger=$,this.modules={external:[]},X(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(i=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(s(t.ns)?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let o=Q();this.options={...o,...this.options,...G(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);let r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?$.init(r(this.modules.logger),this.options):$.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=q);let i=new A(this.options);this.store=new R(this.options.resources,this.options);let s=this.services;s.logger=$,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new K(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(s.formatter=r(t),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new H(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Y(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var i=arguments.length,s=Array(i>1?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];e.emit(t,...s)}),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new I(this.services,this.options),this.translator.on("*",function(t){for(var i=arguments.length,s=Array(i>1?i-1:0),n=1;n<i;n++)s[n-1]=arguments[n];e.emit(t,...s)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,i||(i=Z),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(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=n(),l=()=>{let e=(e,t)=>{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
1("initialized",this.options),a.resolve(t),i(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z,i=t,n=s(e)?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!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&&0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload&&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=n();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=Z),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&&E.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"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var i=this;this.isLanguageChangingTo=e;let o=n();this.emit("languageChanging",e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,s)=>{s?(r(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,o.resolve(function(){return i.t(...arguments)}),t&&t(e,function(){return i.t(...arguments)})},l=t=>{e||t||!this.services.languageDetector||(t=[]);let i=s(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(i)),this.loadResources(i,e=>{a(e,i)})};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(l):this.services.languageDetector.detect(l):l(e):l(this.services.languageDetector.detect()),o}getFixedT(e,t,i){var n=this;let o=function(e,t){let s,r;if("object"!=typeof t){for(var a=arguments.length,l=Array(a>2?a-2:0),u=2;u<a;u++)l[u-2]=arguments[u];s=n.options.overloadTranslationOptionHandler([e,t].concat(l))}else s={...t};s.lng=s.lng||o.lng,s.lngs=s.lngs||o.lngs,s.ns=s.ns||o.ns,""!==s.keyPrefix&&(s.keyPrefix=s.keyPrefix||i||o.keyPrefix);let h=n.options.keySeparator||".";return r=s.keyPrefix&&Array.isArray(e)?e.map(e=>`${s.keyPrefix}${h}${e}`):s.keyPrefix?`${s.keyPrefix}${h}${e}`:e,n.t(r,s)};return s(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=i,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=t.lng||this.resolvedLanguage||this.languages[0],s=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;let o=(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,o);if(void 0!==e)return e}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(i,e)&&(!s||o(n,e)))}loadNamespaces(e,t){let i=n();return this.options.ns?(s(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){let i=n();s(e)&&(e=[e]);let o=this.options.preload||[],r=e.filter(e=>0>o.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return r.length?(this.options.preload=o.concat(r),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["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"].indexOf((this.services&&this.services.languageUtils||new A(Q())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ee(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z,i=e.forkResourceStore;i&&delete e.forkResourceStore;let s={...this.options,...e,isClone:!0},n=new ee(s);return(void 0!==e.debug||void 0!==e.prefix)&&(n.logger=n.logger.clone(e)),["store","services","language"].forEach(e=>{n[e]=this[e]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},i&&(n.store=new R(this.store.data,s),n.services.resourceStore=n.store),n.translator=new I(n.services,s),n.translator.on("*",function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];n.emit(e,...i)}),n.init(s,t),n.translator.options=s,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let et=ee.createInstance();et.createInstance=ee.createInstance,et.createInstance,et.dir,et.init,et.loadResources,et.reloadResources,et.use,et.changeLanguage,et.getFixedT,et.t,et.exists,et.setDefaultNamespace,et.hasLoadedNamespace,et.loadNamespaces,et.loadLanguages},9772:(e,t,i)=>{"use strict";let s;i.d(t,{x6:()=>K,r9:()=>U,Bd:()=>J});var n=i(50058),o=i(64142),r=i.n(o),a=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function l(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},i=e.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(t.name=i[1],(r()[i[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var s=e.indexOf("--\x3e");return{type:"comment",comment:-1!==s?e.slice(4,s):""}}for(var n=new RegExp(a),o=null;null!==(o=n.exec(e));)if(o[0].trim()){if(o[1]){var l=o[1].trim(),u=[l,""];l.indexOf("=")>-1&&(u=l.split("=")),t.attrs[u[0]]=u[1],n.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1))}return t}var u=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,h=/^\s*$/,p=Object.create(null);let c={parse:function(e,t){t||(t={}),t.components||(t.components=p);var i,s=[],n=[],o=-1,r=!1;if(0!==e.indexOf("<")){var a=e.indexOf("<");s.push({type:"text",content:-1===a?e:e.substring(0,a)})}return e.replace(u,function(a,u){if(r){if(a!=="</"+i.name+">")return;r=!1}var p,c="/"!==a.charAt(1),g=a.startsWith("\x3c!--"),d=u+a.length,f=e.charAt(d);if(g){var m=l(a);return o<0?s.push(m):(p=n[o]).children.push(m),s}if(c&&(o++,"tag"===(i=l(a)).type&&t.components[i.name]&&(i.type="component",r=!0),i.voidElement||r||!f||"<"===f||i.children.push({type:"text",content:e.slice(d,e.indexOf("<",d))}),0===o&&s.push(i),(p=n[o-1])&&p.children.push(i),n[o]=i),(!c||i.voidElement)&&(o>-1&&(i.voidElement||i.name===a.slice(2,-1))&&(i=-1==--o?s:n[o]),!r&&"<"!==f&&f)){p=-1===o?s:n[o].children;var v=e.indexOf("<",d),y=e.slice(d,-1===v?void 0:v);h.test(y)&&(y=" "),(v>-1&&o+p.length>=0||" "!==y)&&p.push({type:"text",content:y})}}),s}};function g(){if(console&&console.warn){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];k(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}let d={};function f(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];k(t[0])&&d[t[0]]||(k(t[0])&&(d[t[0]]=new Date),g(...t))}let m=(e,t)=>
1()=>{if(e.isInitialized)t();else{let i=()=>{setTimeout(()=>{e.off("initialized",i)},0),t()};e.on("initialized",i)}},v=(e,t,i)=>{e.loadNamespaces(t,m(e,i))},y=(e,t,i,s)=>{k(i)&&(i=[i]),i.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,m(e,s))},b=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=t.languages[0],n=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===s.toLowerCase())return!0;let r=(e,i)=>{let s=t.services.backendConnector.state[`${e}|${i}`];return -1===s||2===s};return(!(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1)||!t.services.backendConnector.backend||!t.isLanguageChangingTo||!!r(t.isLanguageChangingTo,e))&&!!(t.hasResourceBundle(s,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||r(s,e)&&(!n||r(o,e)))},x=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?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}}):b(e,t,i):(f("i18n.languages were undefined or empty",t.languages),!0)},k=e=>"string"==typeof e,S=e=>"object"==typeof e&&null!==e,w=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,O={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"â¦","…":"â¦","/":"/","/":"/"},L=e=>O[e],N={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(w,L)},$=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};N={...N,...e}},C=()=>N,R=e=>{s=e},E=()=>s,P=(e,t)=>{if(!e)return!1;let i=e.props?e.props.children:e.children;return t?i.length>0:!!i},I=e=>{if(!e)return[];let t=e.props?e.props.children:e.children;return e.props&&e.props.i18nIsDynamicList?A(t):t},j=e=>Array.isArray(e)&&e.every(n.isValidElement),A=e=>Array.isArray(e)?e:[e],F=(e,t)=>{let i={...t};return i.props=Object.assign(e.props,t.props),i},D=(e,t)=>{if(!e)return"";let i="",s=A(e),o=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return s.forEach((e,s)=>{if(k(e))i+=`${e}`;else if((0,n.isValidElement)(e)){let{props:n,type:r}=e,a=Object.keys(n).length,l=o.indexOf(r)>-1,u=n.children;if(u||!l||a){if(!u&&(!l||a)||n.i18nIsDynamicList)i+=`<${s}></${s}>`;else if(l&&1===a&&k(u))i+=`<${r}>${u}</${r}>`;else{let e=D(u,t);i+=`<${s}>${e}</${s}>`}}else i+=`<${r}/>`}else if(null===e)g("Trans: the passed in value is invalid - seems you passed in a null child.");else if(S(e)){let{format:t,...s}=e,n=Object.keys(s);if(1===n.length){let e=t?`${n[0]}, ${t}`:n[0];i+=`{{${e}}}`}else g("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else g("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)}),i},T=(e,t,i,s,o,r)=>{if(""===t)return[];let a=s.transKeepBasicHtmlNodesFor||[],l=t&&new RegExp(a.map(e=>`<${e}`).join("|")).test(t);if(!e&&!l&&!r)return[t];let u={},h=e=>{A(e).forEach(e=>{k(e)||(P(e)?h(I(e)):S(e)&&!(0,n.isValidElement)(e)&&Object.assign(u,e))})};h(e);let p=c.parse(`<0>${t}</0>`),g={...u,...o},d=(e,t,i)=>{let s=I(e),n=m(s,t.children,i);return j(s)&&0===n.length||e.props&&e.props.i18nIsDynamicList?s:n},f=(e,t,i,s,o)=>{e.dummy?(e.children=t,i.push((0,n.cloneElement)(e,{key:s},o?void 0:t))):i.push(...n.Children.map([e],e=>{let i={...e.props};return delete i.i18nIsDynamicList,(0,n.createElement)(e.type,{...i,key:s,ref:e.ref},o?null:t)}))},m=(t,o,u)=>{let h=A(t);return A(o).reduce((t,o,p)=>{let c=o.children&&o.children[0]&&o.children[0].content&&i.services.interpolator.interpolate(o.children[0].content,g,i.language);if("tag"===o.type){let r=h[parseInt(o.name,10)];1!==u.length||r||(r=u[0][o.name]),r||(r={});let v=0!==Object.keys(o.attrs).length?F({props:o.attrs},r):r,y=(0,n.isValidElement)(v),b=y&&P(o,!0)&&!o.voidElement,x=l&&S(v)&&v.dummy&&!y,w=S(e)&&Object.hasOwnProperty.call(e,o.name);if(k(v)){let e=i.services.interpolator.interpolate(v,g,i.language);t.push(e)}else if(P(v)||b){let e=d(v,o,u);f(v,e,t,p)}else if(x)f(v,m(h,o.children,u),t,p);
1else if(Number.isNaN(parseFloat(o.name))){if(w){let e=d(v,o,u);f(v,e,t,p,o.voidElement)}else if(s.transSupportBasicHtmlNodes&&a.indexOf(o.name)>-1){if(o.voidElement)t.push((0,n.createElement)(o.name,{key:`${o.name}-${p}`}));else{let e=m(h,o.children,u);t.push((0,n.createElement)(o.name,{key:`${o.name}-${p}`},e))}}else if(o.voidElement)t.push(`<${o.name} />`);else{let e=m(h,o.children,u);t.push(`<${o.name}>${e}</${o.name}>`)}}else if(S(v)&&!y){let e=o.children[0]?c:null;e&&t.push(e)}else f(v,c,t,p,1!==o.children.length||!c)}else if("text"===o.type){let e=s.transWrapTextNodes,a=r?s.unescape(i.services.interpolator.interpolate(o.content,g,i.language)):i.services.interpolator.interpolate(o.content,g,i.language);e?t.push((0,n.createElement)(e,{key:`${o.name}-${p}`},a)):t.push(a)}return t},[])};return I(m([{dummy:!0,children:e||[]}],p,A(e||[]))[0])},U={type:"3rdParty",init(e){$(e.options.react),R(e)}},V=(0,n.createContext)();class M{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces=()=>Object.keys(this.usedNamespaces)}function K(e){let{children:t,count:i,parent:s,i18nKey:o,context:r,tOptions:a={},values:l,defaults:u,components:h,ns:p,i18n:c,t:g,shouldUnescape:d,...m}=e,{i18n:v,defaultNS:y}=(0,n.useContext)(V)||{},b=c||v||E(),x=g||b&&b.t.bind(b);return function(e){let{children:t,count:i,parent:s,i18nKey:o,context:r,tOptions:a={},values:l,defaults:u,components:h,ns:p,i18n:c,t:g,shouldUnescape:d,...m}=e,v=c||E();if(!v)return f("You will need to pass in an i18next instance by using i18nextReactModule"),t;let y=g||v.t.bind(v)||(e=>e),b={...C(),...v.options&&v.options.react},x=p||y.ns||v.options&&v.options.defaultNS;x=k(x)?[x]:x||["translation"];let S=D(t,b),w=u||S||b.transEmptyNodeValue||o,{hashTransKey:O}=b,L=o||(O?O(S||w):S||w);v.options&&v.options.interpolation&&v.options.interpolation.defaultVariables&&(l=l&&Object.keys(l).length>0?{...l,...v.options.interpolation.defaultVariables}:{...v.options.interpolation.defaultVariables});let N=l||void 0!==i||!t?a.interpolation:{interpolation:{...a.interpolation,prefix:"#$?",suffix:"?$#"}},$={...a,context:r||a.context,count:i,...l,...N,defaultValue:w,ns:x},R=L?y(L,$):w;h&&Object.keys(h).forEach(e=>{let t=h[e];"function"==typeof t.type||!t.props||!t.props.children||0>R.indexOf(`${e}/>`)&&0>R.indexOf(`${e} />`)||(h[e]=(0,n.createElement)(function(){return(0,n.createElement)(n.Fragment,null,t)}))});let P=T(h||t,R,v,b,$,d),I=void 0!==s?s:b.defaultTransParent;return I?(0,n.createElement)(I,m,P):P}({children:t,count:i,parent:s,i18nKey:o,context:r,tOptions:a,values:l,defaults:u,components:h,ns:p||x&&x.ns||y||b&&b.options&&b.options.defaultNS,i18n:b,t:g,shouldUnescape:d,...m})}let z=(e,t)=>{let i=(0,n.useRef)();return(0,n.useEffect)(()=>{i.current=t?i.current:e},[e,t]),i.current},B=(e,t,i,s)=>e.getFixedT(t,i,s),H=(e,t,i,s)=>(0,n.useCallback)(B(e,t,i,s),[e,t,i,s]),J=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{i18n:i}=t,{i18n:s,defaultNS:o}=(0,n.useContext)(V)||{},r=i||s||E();if(r&&!r.reportNamespaces&&(r.reportNamespaces=new M),!r){f("You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>k(t)?t:S(t)&&k(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}r.options.react&&void 0!==r.options.react.wait&&f("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let a={...C(),...r.options.react,...t},{useSuspense:l,keyPrefix:u}=a,h=e||o||r.options&&r.options.defaultNS;h=k(h)?[h]:h||["translation"],r.reportNamespaces.addUsedNamespaces&&r.reportNamespaces.addUsedNamespaces(h);let p=(r.isInitialized||r.initializedStoreOnce)&&h.every(e=>x(e,r,a)),c=H(r,t.lng||null,"fallback"===a.nsMode?h:h[0],u),g=()=>c,d=()=>B(r,t.lng||null,"fallback"===a.nsMode?h:h[0],u),[m,b]=(0,n.useState)(g),w=h.join();t.lng&&(w=`${t.lng}${w}`);let O=z(w),L=(0,n.useRef)(!0);(0,n.useEffect)(()=>{let{bindI18n:e,bindI18nStore:i}=a;L.current=!0,p||l||(t.lng?y(r,t.lng,h,()=>{L.current&&b(d)}):v(r,h,()=>{L.current&&b(d)})),p&&O&&O!==w&&L.current&&b(d);let s=()=>{L.current&&b(d)};return e&&r&&r.on(e,s),i&&r&&r.store.on(i,s),()=>
1{L.current=!1,e&&r&&e.split(" ").forEach(e=>r.off(e,s)),i&&r&&i.split(" ").forEach(e=>r.store.off(e,s))}},[r,w]),(0,n.useEffect)(()=>{L.current&&p&&b(g)},[r,u,p]);let N=[m,r,p];if(N.t=m,N.i18n=r,N.ready=p,p||!p&&!l)return N;throw new Promise(e=>{t.lng?y(r,t.lng,h,()=>e()):v(r,h,()=>e())})}}}]);
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.