1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[892],{30338:(e,t,o)=>{o.d(t,{Ay:()=>_});let i=e=>"string"==typeof e,n=()=>{let e,t,o=new Promise((o,i)=>{e=o,t=i});return o.resolve=e,o.reject=t,o},s=e=>null==e?"":""+e,r=/###/g,a=e=>e&&e.indexOf("###")>-1?e.replace(r,"."):e,l=e=>!e||i(e),c=(e,t,o)=>{let n=i(t)?t.split("."):t,s=0;for(;s<n.length-1;){if(l(e))return{};let t=a(n[s]);!e[t]&&o&&(e[t]=new o),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++s}return l(e)?{}:{obj:e,k:a(n[s])}},u=(e,t,o)=>{let{obj:i,k:n}=c(e,t,Object);if(void 0!==i||1===t.length){i[n]=o;return}let s=t[t.length-1],r=t.slice(0,t.length-1),a=c(e,r,Object);for(;void 0===a.obj&&r.length;)s="".concat(r[r.length-1],".").concat(s),(null==(a=c(e,r=r.slice(0,r.length-1),Object))?void 0:a.obj)&&void 0!==a.obj["".concat(a.k,".").concat(s)]&&(a.obj=void 0);a.obj["".concat(a.k,".").concat(s)]=o},h=(e,t)=>{let{obj:o,k:i}=c(e,t);if(o&&Object.prototype.hasOwnProperty.call(o,i))return o[i]},d=(e,t,o)=>{for(let n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?i(e[n])||e[n]instanceof String||i(t[n])||t[n]instanceof String?o&&(e[n]=t[n]):d(e[n],t[n],o):e[n]=t[n]);return e},p=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var g={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};let f=e=>i(e)?e.replace(/[&<>"'\/]/g,e=>g[e]):e;class m{getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let o=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,o),this.regExpQueue.push(e),o}constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}}let v=[" ",",","?","!",";"],y=new m(20),b=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let i=t.split(o),n=e;for(let e=0;e<i.length;){let t;if(!n||"object"!=typeof n)return;let s="";for(let r=e;r<i.length;++r)if(r!==e&&(s+=o),s+=i[r],void 0!==(t=n[s])){if(["string","number","boolean"].indexOf(typeof t)>-1&&r<i.length-1)continue;e+=r-e+1;break}n=t}return n},x=e=>null==e?void 0:e.replace("_","-"),S={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var o,i,n;null==(n=console)||null==(i=n[e])||null==(o=i.apply)||o.call(i,console,t)}};class w{init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||S,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,o,n){return n&&!this.debug?null:(i(e[0])&&(e[0]="".concat(o).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}create(e){return new w(this.logger,{...{prefix:"".concat(this.prefix,":").concat(e,":")},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new w(this.logger,e)}constructor(e,t={}){this.init(e,t)}}var O=new w;class k{on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let o=this.observers[e].get(t)||0;this.observers[e].set(t,o+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,o=Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[t,i]=e;for(let e=0;e<i;e++)t(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[i,n]=t;for(let t=0;t<n;t++)i.apply(i,[e,...o])})}constructor(){this.observers={}}}class L extends k{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,o){var n,s;let r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,c=void 0!==a.ignoreJSONStructure?a.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?r=e.split("."):(r=[e,t],o&&(Array.isArray(o)?r.push(...o):i(o)&&l?r.push(...o.split(l)):r.push(o)));let u=h(this.data,r);return(!u&&!t&&!o&&e.indexOf(".")>
1-1&&(e=r[0],t=r[1],o=r.slice(2).join(".")),!u&&c&&i(o))?b(null==(s=this.data)||null==(n=s[e])?void 0:n[t],o,l):u}addResource(e,t,o,i){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,r=[e,t];o&&(r=r.concat(s?o.split(s):o)),e.indexOf(".")>-1&&(r=e.split("."),i=t,t=r[1]),this.addNamespaces(t),u(this.data,r,i),n.silent||this.emit("added",e,t,o,i)}addResources(e,t,o){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let n in o)(i(o[n])||Array.isArray(o[n]))&&this.addResource(e,t,n,o[n],{silent:!0});n.silent||this.emit("added",e,t,o)}addResourceBundle(e,t,o,i,n){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},r=[e,t];e.indexOf(".")>-1&&(r=e.split("."),i=o,o=t,t=r[1]),this.addNamespaces(t);let a=h(this.data,r)||{};s.skipCopy||(o=JSON.parse(JSON.stringify(o))),i?d(a,o,n):a={...a,...o},u(this.data,r,a),s.silent||this.emit("added",e,t,o)}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}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)}}var P={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,o,i,n){return e.forEach(e=>{var s,r;t=null!=(r=null==(s=this.processors[e])?void 0:s.process(t,o,i,n))?r:t}),t}};let j={},R=e=>!i(e)&&"boolean"!=typeof e&&"number"!=typeof e;class C extends k{changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},o={...t};if(null==e)return!1;let i=this.resolve(e,o);return(null==i?void 0:i.res)!==void 0}extractFromKey(e,t){let o=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===o&&(o=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=t.ns||this.options.defaultNS||[],r=o&&e.indexOf(o)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,o)=>{t=t||"",o=o||"";let i=v.filter(e=>0>t.indexOf(e)&&0>o.indexOf(e));if(0===i.length)return!0;let n=y.getRegExp("(".concat(i.map(e=>"?"===e?"\\?":e).join("|"),")")),s=!n.test(e);if(!s){let t=e.indexOf(o);t>0&&!n.test(e.substring(0,t))&&(s=!0)}return s})(e,o,n);if(r&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i(s)?[s]:s};let r=e.split(o);(o!==n||o===n&&this.options.ns.indexOf(r[0])>-1)&&(s=r.shift()),e=r.join(n)}return{key:e,namespaces:i(s)?[s]:s}}translate(e,t,o){let n="object"==typeof t?{...t}:t;if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof options&&(n={...n}),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let s=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(e[e.length-1],n),c=l[l.length-1],u=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");let h=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((null==h?void 0:h.toLowerCase())==="cimode")return d?s?{res:"".concat(c).concat(u).concat(a),usedKey:a,exactUsedKey:a,usedLng:h,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:"".concat(c).concat(u).concat(a):s?{res:a,usedKey:a,exactUsedKey:a,usedLng:h,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:a;let p=this.resolve(e,n),g=null==p?void 0:p.res,f=(null==p?void 0:p.usedKey)||a,m=(null==p?void 0:p.exactUsedKey)||a,v=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==n.count&&!i(n.count),x=C.hasDefaultValue(n),S=b?this.pluralResolver.getSuffix(h,n.count,n):"",w=n.ordinal&&b?this.pluralResolver.getSuffix(h,n.count,{ordinal:!1}):"",O=b&&!n.ordinal&&0===n.count,k=O&&n["defaultValue".concat(this.options.pluralSeparator,"zero")]||n["defaultValue".concat(S)]||n["defaultValue".concat(w)]||n.defaultValue,L=g;y&&!g&&x&&(L=k);let P=R(L),j=Object.prototype.toString.apply(L);if(y&&L&&P&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(j)&&!(i(v)&&Array.isArray(L))
1){if(!n.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,L,{...n,ns:l}):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");return s?(p.res=e,p.usedParams=this.getUsedParamsDetails(n),p):e}if(r){let e=Array.isArray(L),t=e?[]:{},o=e?m:f;for(let e in L)if(Object.prototype.hasOwnProperty.call(L,e)){let i="".concat(o).concat(r).concat(e);x&&!g?t[e]=this.translate(i,{...n,defaultValue:R(k)?k[e]:void 0,...{joinArrays:!1,ns:l}}):t[e]=this.translate(i,{...n,joinArrays:!1,ns:l}),t[e]===i&&(t[e]=L[e])}g=t}}else if(y&&i(v)&&Array.isArray(g))(g=g.join(v))&&(g=this.extendTranslation(g,e,n,o));else{let t=!1,i=!1;!this.isValidLookup(g)&&x&&(t=!0,g=k),this.isValidLookup(g)||(i=!0,g=a);let s=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:g,l=x&&k!==g&&this.options.updateMissing;if(i||t||l){if(this.logger.log(l?"updateKey":"missingKey",h,c,a,l?k:g),r){let e=this.resolve(a,{...n,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,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let o=0;o<t.length;o++)e.push(t[o]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);let o=(e,t,o)=>{var i;let r=x&&o!==g?o:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,r,l,n):(null==(i=this.backendConnector)?void 0:i.saveMissing)&&this.backendConnector.saveMissing(e,c,t,r,l,n),this.emit("missingKey",e,c,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);O&&n["defaultValue".concat(this.options.pluralSeparator,"zero")]&&0>t.indexOf("".concat(this.options.pluralSeparator,"zero"))&&t.push("".concat(this.options.pluralSeparator,"zero")),t.forEach(t=>{o([e],a+t,n["defaultValue".concat(t)]||k)})}):o(e,a,k))}g=this.extendTranslation(g,e,n,p,o),i&&g===a&&this.options.appendNamespaceToMissingKey&&(g="".concat(c).concat(u).concat(a)),(i||t)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(c).concat(u).concat(a):a,t?g:void 0,n))}return s?(p.res=g,p.usedParams=this.getUsedParamsDetails(n),p):g}extendTranslation(e,t,o,n,s){var r;if(null==(r=this.i18nFormat)?void 0:r.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!o.skipInterpolation){let r;var a,l=this;o.interpolation&&this.interpolator.init({...o,...{interpolation:{...this.options.interpolation,...o.interpolation}}});let c=i(e)&&((null==o||null==(a=o.interpolation)?void 0:a.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(c){let t=e.match(this.interpolator.nestingRegexp);r=t&&t.length}let u=o.replace&&!i(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),e=this.interpolator.interpolate(e,u,o.lng||this.language||n.usedLng,o),c){let t=e.match(this.interpolator.nestingRegexp);r<(t&&t.length)&&(o.nest=!1)}!o.lng&&n&&n.res&&(o.lng=this.language||n.usedLng),!1!==o.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];return(null==s?void 0:s[0])!==i[0]||o.context?l.translate(...i,t):(l.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(t[0])),null)},o)),o.interpolation&&this.interpolator.reset()}let c=o.postProcess||this.options.postProcess,u=i(c)?[c]:c;return null!=e&&(null==u?void 0:u.length)&&!1!==o.applyPostProcessor&&(e=P.handle(u,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),e}resolve(e){let t,o,n,s,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
1return i(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,a),c=l.key;o=c;let u=l.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let h=void 0!==a.count&&!i(a.count),d=h&&!a.ordinal&&0===a.count,p=void 0!==a.context&&(i(a.context)||"number"==typeof a.context)&&""!==a.context,g=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach(e=>{var i,l;this.isValidLookup(t)||(r=e,j["".concat(g[0],"-").concat(e)]||null==(i=this.utils)||!i.hasLoadedNamespace||(null==(l=this.utils)?void 0:l.hasLoadedNamespace(r))||(j["".concat(g[0],"-").concat(e)]=!0,this.logger.warn('key "'.concat(o,'" for languages "').concat(g.join(", "),'" won\'t get resolved as namespace "').concat(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!!!")),g.forEach(o=>{var i;let r;if(this.isValidLookup(t))return;s=o;let l=[c];if(null==(i=this.i18nFormat)?void 0:i.addLookupKeys)this.i18nFormat.addLookupKeys(l,c,o,e,a);else{let e;h&&(e=this.pluralResolver.getSuffix(o,a.count,a));let t="".concat(this.options.pluralSeparator,"zero"),i="".concat(this.options.pluralSeparator,"ordinal").concat(this.options.pluralSeparator);if(h&&(l.push(c+e),a.ordinal&&0===e.indexOf(i)&&l.push(c+e.replace(i,this.options.pluralSeparator)),d&&l.push(c+t)),p){let o="".concat(c).concat(this.options.contextSeparator).concat(a.context);l.push(o),h&&(l.push(o+e),a.ordinal&&0===e.indexOf(i)&&l.push(o+e.replace(i,this.options.pluralSeparator)),d&&l.push(o+t))}}for(;r=l.pop();)this.isValidLookup(t)||(n=r,t=this.getResource(o,e,r,a))}))})}),{res:t,usedKey:o,exactUsedKey:n,usedLng:s,usedNS:r}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,o){var i;let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(null==(i=this.i18nFormat)?void 0:i.getResource)?this.i18nFormat.getResource(e,t,o,n):this.resourceStore.getResource(e,t,o,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&!i(e.replace),o=t?e.replace:e;if(t&&void 0!==e.count&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!t)for(let e of(o={...o},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete o[e];return o}static hasDefaultValue(e){let t="defaultValue";for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t===o.substring(0,t.length)&&void 0!==e[o])return!0;return!1}constructor(e,t={}){super(),((e,t,o)=>{e.forEach(e=>{t[e]&&(o[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=O.create("translator")}}class N{getScriptPartFromCode(e){if(!(e=x(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=x(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(i(e)&&e.indexOf("-")>-1){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.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let o=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(o))&&(t=o)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let o=this.getScriptPartFromCode(e);if(this.isSupportedCode(o))return t=o;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)),i(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let o=e[t];return o||(o=e[this.getScriptPartFromCode(t)]),o||(o=e[this.formatLanguageCode(t)]),o||(o=e[this.getLanguagePartFromCode(t)]),o||(o=e.default),o||[]}toResolveHierarchy(e,t){let o=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),n=[],s=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return i(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(e))):i(e)&&s(this.formatLanguageCode(e)),o.forEach(e=>{0>n.indexOf(e)&&s(this.formatLanguageCode(e))}),n}constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=O.create("languageUtils")}}let E={zero:0,one:1,two:2,few:3,many:4,other:5},D={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class A{addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=x("dev"===e?"en":e),n=o.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:i,type:n});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];try{t=new Intl.PluralRules(i,{type:n})}catch(n){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),D;if(!e.match(/-|_/))return D;let i=this.languageUtils.getLanguagePartFromCode(e);t=this.getRule(i,o)}return this.pluralRulesCache[s]=t,t}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,t);return o||(o=this.getRule("dev",t)),(null==o?void 0:o.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,o).map(e=>"".concat(t).concat(e))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,t);return(o||(o=this.getRule("dev",t)),o)?o.resolvedOptions().pluralCategories.sort((e,t)=>E[e]-E[t]).map(e=>"".concat(this.options.prepend).concat(t.ordinal?"ordinal".concat(this.options.prepend):"").concat(e)):[]}getSuffix(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,o);return i?"".concat(this.options.prepend).concat(o.ordinal?"ordinal".concat(this.options.prepend):"").concat(i.select(t)):(this.logger.warn("no plural rule found for: ".concat(e)),this.get
1Suffix("dev",t,o))}constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=O.create("pluralResolver"),this.pluralRulesCache={}}}let T=function(e,t,o){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",s=!(arguments.length>4)||void 0===arguments[4]||arguments[4],r=((e,t,o)=>{let i=h(e,o);return void 0!==i?i:h(t,o)})(e,t,o);return!r&&s&&i(o)&&void 0===(r=b(e,o,n))&&(r=b(t,o,n)),r},F=e=>e.replace(/\$/g,"$$$$");class I{init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:o,useRawValueToEscape:i,prefix:n,prefixEscaped:s,suffix:r,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:h,nestingPrefixEscaped:d,nestingSuffix:g,nestingSuffixEscaped:m,nestingOptionsSeparator:v,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:f,this.escapeValue=void 0===o||o,this.useRawValueToEscape=void 0!==i&&i,this.prefix=n?p(n):s||"{{",this.suffix=r?p(r):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=h?p(h):d||p("$t("),this.nestingSuffix=g?p(g):m||p(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>(null==e?void 0:e.source)===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}interpolate(e,t,o,n){var r;let a,l,c,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=e=>{if(0>e.indexOf(this.formatSeparator)){let i=T(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,o,{...n,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),s=i.shift().trim(),r=i.join(this.formatSeparator).trim();return this.format(T(t,u,s,this.options.keySeparator,this.options.ignoreJSONStructure),r,o,{...n,...t,interpolationkey:s})};this.resetRegExp();let d=(null==n?void 0:n.missingInterpolationHandler)||this.options.missingInterpolationHandler,p=(null==n||null==(r=n.interpolation)?void 0:r.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>F(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?F(this.escape(e)):F(e)}].forEach(t=>{for(c=0;a=t.regex.exec(e);){let o=a[1].trim();if(void 0===(l=h(o)))if("function"==typeof d){let t=d(e,a,n);l=i(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,o))l="";else if(p){l=a[0];continue}else this.logger.warn("missed to pass in variable ".concat(o," for interpolating ").concat(e)),l="";else i(l)||this.useRawValueToEscape||(l=s(l));let r=t.safeValue(l);if(e=e.replace(a[0],r),p?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,++c>=this.maxReplaces)break}}),e}nest(e,t){let o,n,r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(e,t)=>{var o;let i=this.nestingOptionsSeparator;if(0>e.indexOf(i))return e;let n=e.split(new RegExp("".concat(i,"[ ]*{"))),s="{".concat(n[1]);e=n[0];let a=(s=this.interpolate(s,r)).match(/'/g),l=s.match(/"/g);((null!=(o=null==a?void 0:a.length)?o:0)%2!=0||l)&&l.length%2==0||(s=s.replace(/'/g,'"'));try{r=JSON.parse(s),t&&(r={...t,...r})}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(i).concat(s)}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,e};for(;o=this.nestingRegexp.exec(e);){let c=[];(r=(r={...a}).replace&&!i(r.replace)?r.replace:r).applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(-1!==o[0].indexOf(this.formatSeparator)&&!/{.*}
1/.test(o[1])){let e=o[1].split(this.formatSeparator).map(e=>e.trim());o[1]=e.shift(),c=e,u=!0}if((n=t(l.call(this,o[1].trim(),r),r))&&o[0]===e&&!i(n))return n;i(n)||(n=s(n)),n||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(e)),n=""),u&&(n=c.reduce((e,t)=>this.format(e,t,a.lng,{...a,interpolationkey:o[1].trim()}),n.trim())),e=e.replace(o[0],n),this.regexp.lastIndex=0}return e}constructor(e={}){var t;this.logger=O.create("interpolator"),this.options=e,this.format=(null==e||null==(t=e.interpolation)?void 0:t.format)||(e=>e),this.init(e)}}let M=e=>{let t={};return(o,i,n)=>{let s=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(s={...s,[n.interpolationkey]:void 0});let r=i+JSON.stringify(s),a=t[r];return a||(a=e(x(i),n),t[r]=a),a(o)}},U=e=>(t,o,i)=>e(x(o),i)(t);class V{init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||",";let o=t.cacheInBuiltFormats?M:U;this.formats={number:o((e,t)=>{let o=new Intl.NumberFormat(e,{...t});return e=>o.format(e)}),currency:o((e,t)=>{let o=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>o.format(e)}),datetime:o((e,t)=>{let o=new Intl.DateTimeFormat(e,{...t});return e=>o.format(e)}),relativetime:o((e,t)=>{let o=new Intl.RelativeTimeFormat(e,{...t});return e=>o.format(e,t.range||"day")}),list:o((e,t)=>{let o=new Intl.ListFormat(e,{...t});return e=>o.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=M(t)}format(e,t,o){let i=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:s}=(e=>{let t=e.toLowerCase().trim(),o={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let n=i[1].substring(0,i[1].length-1);"currency"===t&&0>n.indexOf(":")?o.currency||(o.currency=n.trim()):"relativetime"===t&&0>n.indexOf(":")?o.range||(o.range=n.trim()):n.split(";").forEach(e=>{if(e){let[t,...i]=e.split(":"),n=i.join(":").trim().replace(/^'+|'+$/g,""),s=t.trim();o[s]||(o[s]=n),"false"===n&&(o[s]=!1),"true"===n&&(o[s]=!0),isNaN(n)||(o[s]=parseInt(n,10))}})}return{formatName:t,formatOptions:o}})(t);if(this.formats[n]){let t=e;try{var r;let a=(null==i||null==(r=i.formatParams)?void 0:r[i.interpolationkey])||{},l=a.locale||a.lng||i.locale||i.lng||o;t=this.formats[n](e,l,{...s,...i,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn("there was no format function for ".concat(n)),e},e)}constructor(e={}){this.logger=O.create("formatter"),this.options=e,this.init(e)}}class H extends k{queueLoad(e,t,o,i){let n={},s={},r={},a={};return e.forEach(e=>{let i=!0;t.forEach(t=>{let r="".concat(e,"|").concat(t);!o.reload&&this.store.hasResourceBundle(e,t)?this.state[r]=2:this.state[r]<0||(1===this.state[r]?void 0===s[r]&&(s[r]=!0):(this.state[r]=1,i=!1,void 0===s[r]&&(s[r]=!0),void 0===n[r]&&(n[r]=!0),void 0===a[t]&&(a[t]=!0)))}),i||(r[e]=!0)}),(Object.keys(n).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(n),pending:Object.keys(s),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(a)}}loaded(e,t,o){let i=e.split("|"),n=i[0],s=i[1];t&&this.emit("failedLoading",n,s,t),!t&&o&&this.store.addResourceBundle(n,s,o,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&o&&(this.state[e]=0);let r={};this.queue.forEach(o=>{((e,t,o,i)=>{let{obj:n,k:s}=c(e,t,Object);n[s]=n[s]||[],n[s].push(o)})(o.loaded,[n],s),void 0!==o.pending[e]&&(delete o.pending[e],o.pendingCount--),t&&o.errors.push(t),0!==o.pendingCount||o.done||(Object.keys(o.loaded).forEach(e=>{r[e]||(r[e]={});let t=o.loaded[e];t.length&&t.forEach(t=>{void 0===r[e][t]&&(r[e][t]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}
1),this.emit("loaded",r),this.queue=this.queue.filter(e=>!e.done)}read(e,t,o){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:o,tried:i,wait:n,callback:s});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&&i<this.maxRetries)return void setTimeout(()=>{this.read.call(this,e,t,o,i+1,2*n,s)},n);s(r,a)},a=this.backend[o].bind(this.backend);if(2===a.length){try{let o=a(e,t);o&&"function"==typeof o.then?o.then(e=>r(null,e)).catch(r):r(null,o)}catch(e){r(e)}return}return a(e,t,r)}prepareLoading(e,t){let o=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();i(e)&&(e=this.languageUtils.toResolveHierarchy(e)),i(t)&&(t=[t]);let s=this.queueLoad(e,t,o,n);if(!s.toLoad.length)return s.pending.length||n(),null;s.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,o){this.prepareLoading(e,t,{},o)}reload(e,t,o){this.prepareLoading(e,t,{reload:!0},o)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),i=o[0],n=o[1];this.read(i,n,"read",void 0,void 0,(o,s)=>{o&&this.logger.warn("".concat(t,"loading namespace ").concat(n," for language ").concat(i," failed"),o),!o&&s&&this.logger.log("".concat(t,"loaded namespace ").concat(n," for language ").concat(i),s),this.loaded(e,o,s)})}saveMissing(e,t,o,i,n){var s,r,a,l,c;let u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},h=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if((null==(r=this.services)||null==(s=r.utils)?void 0:s.hasLoadedNamespace)&&!(null==(l=this.services)||null==(a=l.utils)?void 0:a.hasLoadedNamespace(t)))return void this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=o&&""!==o){if(null==(c=this.backend)?void 0:c.create){let s={...u,isUpdate:n},r=this.backend.create.bind(this.backend);if(r.length<6)try{let n;(n=5===r.length?r(e,t,o,i,s):r(e,t,o,i))&&"function"==typeof n.then?n.then(e=>h(null,e)).catch(h):h(null,n)}catch(e){h(e)}else r(e,t,o,i,h,s)}e&&e[0]&&this.store.addResource(e[0],t,o,i)}}constructor(e,t,o,i={}){var n,s;super(),this.backend=e,this.store=t,this.services=o,this.languageUtils=o.languageUtils,this.options=i,this.logger=O.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],null==(s=this.backend)||null==(n=s.init)||n.call(s,o,i.backend,i)}}let q=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),i(e[1])&&(t.defaultValue=e[1]),i(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let o=e[3]||e[2];Object.keys(o).forEach(e=>{t[e]=o[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),K=e=>{var t,o;return i(e.ns)&&(e.ns=[e.ns]),i(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),i(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),(null==(o=e.supportedLngs)||null==(t=o.indexOf)?void 0:t.call(o,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e},z=()=>{};
1class B extends k{init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(i(e.ns)?e.defaultNS=e.ns:0>e.ns.indexOf("translation")&&(e.defaultNS=e.ns[0]));let o=q();this.options={...o,...this.options,...K(e)},this.options.interpolation={...o.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);let s=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;var r=this;this.modules.logger?O.init(s(this.modules.logger),this.options):O.init(null,this.options),e=this.modules.formatter?this.modules.formatter:V;let t=new N(this.options);this.store=new L(this.options.resources,this.options);let i=this.services;i.logger=O,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new A(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),e&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(i.formatter=s(e),i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new I(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new H(s(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];r.emit(e,...o)}),this.modules.languageDetector&&(i.languageDetector=s(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=s(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on("*",function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];r.emit(e,...o)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=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(e=>{var t=this;this[e]=function(){for(var o=arguments.length,i=Array(o),n=0;n<o;n++)i[n]=arguments[n];return t.store[e](...i)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{var t=this;this[e]=function(){for(var o=arguments.length,i=Array(o),n=0;n<o;n++)i[n]=arguments[n];return t.store[e](...i),t}});let a=n(),l=()=>{let e=(e,o)=>{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(o),t(e,o)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,o=t,n=i(e)?e:this.language;if("function"==typeof e&&(o=e),!this.options.resources||this.options.partialBundledLanguages){var s,r;if((null==n?void 0:n.toLowerCase())==="cimode"&&(!this.options.preload||0===this.options.preload.length))return o();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)),null==(r=this.options.preload)||null==(s=r.forEach)||s.call(r,e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),o(e)})}else o(null)}reloadResources(e,t,o){let i=n();return"function"==typeof e&&(o=e,e=void 0),"function"==typeof t&&(o=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),o||(o=z),this.services.backendConnector.reload(e,t,e=>{i.resolve(),o(e)}),i}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&P.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}}!this.resolvedLanguage&&0>this.languages.indexOf(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let o=n();
1this.emit("languageChanging",e);let s=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},r=(i,n)=>{var r=this;n?this.isLanguageChangingTo===e&&(s(n),this.translator.changeLanguage(n),this.isLanguageChangingTo=void 0,this.emit("languageChanged",n),this.logger.log("languageChanged",n)):this.isLanguageChangingTo=void 0,o.resolve(function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return r.t(...t)}),t&&t(i,function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return r.t(...t)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);let o=i(t)?t:t&&t[0],n=this.store.hasLanguageSomeTranslations(o)?o:this.services.languageUtils.getBestMatchFromCodes(i(t)?[t]:t);if(n){var a,l;this.language||s(n),this.translator.language||this.translator.changeLanguage(n),null==(l=this.services.languageDetector)||null==(a=l.cacheUserLanguage)||a.call(l,n)}this.loadResources(n,e=>{r(e,n)})};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(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),o}getFixedT(e,t,o){var n=this;let s=function(e,t){let i,r;for(var a=arguments.length,l=Array(a>2?a-2:0),c=2;c<a;c++)l[c-2]=arguments[c];(i="object"!=typeof t?n.options.overloadTranslationOptionHandler([e,t].concat(l)):{...t}).lng=i.lng||s.lng,i.lngs=i.lngs||s.lngs,i.ns=i.ns||s.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||o||s.keyPrefix);let u=n.options.keySeparator||".";return r=i.keyPrefix&&Array.isArray(e)?e.map(e=>"".concat(i.keyPrefix).concat(u).concat(e)):i.keyPrefix?"".concat(i.keyPrefix).concat(u).concat(e):e,n.t(r,i)};return i(e)?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=o,s}t(){for(var e,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=this.translator)?void 0:e.translate(...o)}exists(){for(var e,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=this.translator)?void 0:e.exists(...o)}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 o=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,n=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;let s=(e,t)=>{let o=this.services.backendConnector.state["".concat(e,"|").concat(t)];return -1===o||0===o||2===o};if(t.precheck){let e=t.precheck(this,s);if(void 0!==e)return e}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(o,e)&&(!i||s(n,e)))}loadNamespaces(e,t){let o=n();return this.options.ns?(i(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}loadLanguages(e,t){let o=n();i(e)&&(e=[e]);let s=this.options.preload||[],r=e.filter(e=>0>s.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return r.length?(this.options.preload=s.concat(r),this.loadResources(e=>{o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}dir(e){var t,o;return(e||(e=this.resolvedLanguage||((null==(t=this.languages)?void 0:t.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(((null==(o=this.services)?void 0:o.languageUtils)||new N(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 B(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,o=e.forkResourceStore;o&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},n=new B(i);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)},o&&(n.store=new L(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((o,i)=>(o[i]={...e[t][i]},o),e[t]),e),{}),i),n.services.resourceStore=n.store),n.translator=new C(n.services,i),n.translator.on("*",function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];n.emit(e,...o)}),n.init(i,t),n.translator.options=i,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}}constructor(e={},t){if(super(),this.options=K(e),this.services={},this.logger=O,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}}let _=B.createInstance();_.createInstance=B.createInstance,_.createInstance,_.dir,_.init,_.loadResources,_.reloadResources,_.use,_.changeLanguage,_.getFixedT,_.t,_.exists,_.setDefaultNamespace,_.hasLoadedNamespace,_.loadNamespaces,_.loadLanguages},82372:(e,t,o)=>{function i(e){return(i="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)}o.d(t,{A:()=>k});var n,s,r=[];function a(){return"function"==typeof XMLHttpRequest||("undefined"==typeof XMLHttpRequest?"undefined":i(XMLHttpRequest))==="object"}function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,i)}return o}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?l(Object(o),!0).forEach(function(t){var i,n,s;i=e,n=t,s=o[t],(n=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t||"default");if("object"!=u(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}(n))in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function u(e){return(u="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)}r.forEach,r.slice;var h="function"==typeof fetch?fetch:void 0;if("undefined"!=typeof global&&global.fetch?h=global.fetch:"undefined"!=typeof window&&window.fetch&&(h=window.fetch),a()&&("undefined"!=typeof global&&global.XMLHttpRequest?n=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(n=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?s=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(s=window.ActiveXObject)),"function"!=typeof h&&(h=void 0),!h&&!n&&!s)try{o.e(2749).then(o.t.bind(o,52749,19)).then(function(e){h=e.default}).catch(function(){})}catch(e){}var d=function(e,t){if(t&&"object"===u(t)){var o="";for(var i in t)o+="&"+encodeURIComponent(i)+"="+encodeURIComponent(t[i]);if(!o)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+o.slice(1)}return e},p=function(e,t,o,i){var n=function(e){if(!e.ok)return o(e.statusText||"Error",{status:e.status});e.text().then(function(t){o(null,{status:e.status,data:t})}).catch(o)};if(i){var s=i(e,t);if(s instanceof Promise)return void s.then(n).catch(o)}"function"==typeof fetch?fetch(e,t).then(n).catch(o):h(e,t).then(n).catch(o)},g=!1,f=function(e,t,o,i){e.queryStringParams&&(t=d(t,e.queryStringParams));var n=c({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);"undefined"==typeof window&&"undefined"!=typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(n["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),o&&(n["Content-Type"]="application/json");var s="function"==typeof e.requestOptions?e.requestOptions(o):e.requestOptions,r=c({method:o?"POST":"GET",body:o?e.stringify(o):void 0,headers:n},g?{}:s),a="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{p(t,r,i,a)}catch(e){if(!s||0===Object.keys(s).length||!e.message||0>e.message.indexOf("not implemented"))return i(e);try{Object.keys(s).forEach(function(e){delete r[e]}),p(t,r,i,a),g=!0}catch(e){i(e)}}},m=function(e,t,o,i){o&&"object"===u(o)&&(o=d("",o).slice(1)),e.queryStringParams&&(t=d(t,e.queryStringParams));try{var r=n?new n:new s("MSXML2.XMLHTTP.3.0");r.open(o?"POST":"GET",t,1),e.crossDomain||r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.withCredentials=!!e.withCredentials,o&&r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.overrideMimeType&&r.overrideMimeType("application/json");var a=e.customHeaders;if(a="function"==typeof a?a():a)for(var l in a)r.setRequestHeader(l,a[l]);r.onreadystatechange=function(){r.readyState>3&&i(r.status>=400?r.statusText:null,{status:r.status,data:r.responseText})},r.send(o)}catch(e){console&&console.log(e)}};let v=function(e,t,o,i){return("function"==typeof o&&(i=o,o=void 0),i=i||function(){},h&&0!==t.indexOf("file:"))?f(e,t,o,i):a()||"function"==typeof ActiveXObject?m(e,t,o,i):void i(Error("No fetch and no xhr implementation found!"))};function y(e){return(y="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)}function b(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,i)}return o}function x(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};
1t%2?b(Object(o),!0).forEach(function(t){S(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):b(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function S(e,t,o){return(t=w(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function w(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t||"default");if("object"!=y(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}var O=function(){var e,t;return e=function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.services=t,this.options=o,this.allOptions=i,this.type="backend",this.init(t,o,i)},t=[{key:"init",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.services=e,this.options=x(x(x({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,o){return S({},t,o||"")},parseLoadPayload:function(e,t){},request:v,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),o),this.allOptions=i,this.services&&this.options.reloadInterval){var n=setInterval(function(){return t.reload()},this.options.reloadInterval);"object"===y(n)&&"function"==typeof n.unref&&n.unref()}}},{key:"readMulti",value:function(e,t,o){this._readAny(e,e,t,t,o)}},{key:"read",value:function(e,t,o){this._readAny([e],e,[t],t,o)}},{key:"_readAny",value:function(e,t,o,i,n){var s,r,a=this,l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(e,o)),(l=(r=s=l)&&"function"==typeof r.then?s:Promise.resolve(s)).then(function(s){if(!s)return n(null,{});var r=a.services.interpolator.interpolate(s,{lng:e.join("+"),ns:o.join("+")});a.loadUrl(r,n,t,i)})}},{key:"loadUrl",value:function(e,t,o,i){var n=this,s=this.options.parseLoadPayload("string"==typeof o?[o]:o,"string"==typeof i?[i]:i);this.options.request(this.options,e,s,function(s,r){if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+e+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+e+"; status code: "+r.status,!1);if(!r&&s&&s.message){var a,l,c=s.message.toLowerCase();if(["failed","fetch","network","load"].find(function(e){return c.indexOf(e)>-1}))return t("failed loading "+e+": "+s.message,!0)}if(s)return t(s,!1);try{a="string"==typeof r.data?n.options.parse(r.data,o,i):r.data}catch(t){l="failed parsing "+e+" to json"}if(l)return t(l,!1);t(null,a)})}},{key:"create",value:function(e,t,o,i,n){var s=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var r=this.options.parsePayload(t,o,i),a=0,l=[],c=[];e.forEach(function(o){var i=s.options.addPath;"function"==typeof s.options.addPath&&(i=s.options.addPath(o,t));var u=s.services.interpolator.interpolate(i,{lng:o,ns:t});s.options.request(s.options,u,r,function(t,o){a+=1,l.push(t),c.push(o),a===e.length&&"function"==typeof n&&n(l,c)})})}}},{key:"reload",value:function(){var e=this,t=this.services,o=t.backendConnector,i=t.languageUtils,n=t.logger,s=o.language;if(!s||"cimode"!==s.toLowerCase()){var r=[],a=function(e){i.toResolveHierarchy(e).forEach(function(e){0>r.indexOf(e)&&r.push(e)})};a(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return a(e)}),r.forEach(function(t){e.allOptions.ns.forEach(function(e){o.read(t,e,"read",null,null,function(i,s){i&&n.warn("loading namespace ".concat(e," for language ").concat(t," failed"),i),!i&&s&&n.log("loaded namespace ".concat(e," for language ").concat(t),s),o.loaded("".concat(t,"|").concat(e),i,s)})})})}}}],function(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,w(i.key),i)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}();O.type="backend";let k=O},83011:(e,t,o)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return n}});let i=o(12115);function n(e,t){let o=(0,i.useRef)(null),n=(0,i.useRef)(null);return(0,i.useCallback)(i=>{if(null===i){let e=o.current;e&&(o.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(o.current=s(e,i)),t&&(n.current=s(t,i))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let o=e(t);return"function"==typeof o?o:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91708:(e,t,o)=>{o.d(t,{A:()=>w});let{slice:i,forEach:n}=[],s=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,r=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"},i=encodeURIComponent(t),n=`${e}=${i}`;if(o.maxAge>0){let e=o.maxAge-0;if(Number.isNaN(e))throw Error("maxAge should be a Number");n+=`; Max-Age=${Math.floor(e)}`}if(o.domain){if(!s.test(o.domain))throw TypeError("option domain is invalid");n+=`; Domain=${o.domain}`}if(o.path){if(!s.test(o.path))throw TypeError("option path is invalid");n+=`; Path=${o.path}`}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw TypeError("option expires is invali
1d");n+=`; Expires=${o.expires.toUTCString()}`}if(o.httpOnly&&(n+="; HttpOnly"),o.secure&&(n+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":n+="; SameSite=Strict";break;case"lax":n+="; SameSite=Lax";break;case"none":n+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return o.partitioned&&(n+="; Partitioned"),n},a={create(e,t,o,i){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};o&&(n.expires=new Date,n.expires.setTime(n.expires.getTime()+60*o*1e3)),i&&(n.domain=i),document.cookie=r(e,encodeURIComponent(t),n)},read(e){let t=`${e}=`,o=document.cookie.split(";");for(let e=0;e<o.length;e++){let i=o[e];for(;" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},remove(e){this.create(e,"",-1)}};var l={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&"undefined"!=typeof document)return a.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:o,cookieMinutes:i,cookieDomain:n,cookieOptions:s}=t;o&&"undefined"!=typeof document&&a.create(o,e,i,n,s)}},c={name:"querystring",lookup(e){let t,{lookupQuerystring:o}=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 i=e.substring(1).split("&");for(let e=0;e<i.length;e++){let n=i[e].indexOf("=");n>0&&i[e].substring(0,n)===o&&(t=i[e].substring(n+1))}}return t}};let u=null,h=()=>{if(null!==u)return u;try{if(!(u="undefined"!=typeof window&&null!==window.localStorage))return!1;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){u=!1}return u};var d={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&h())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:o}=t;o&&h()&&window.localStorage.setItem(o,e)}};let p=null,g=()=>{if(null!==p)return p;try{if(!(p="undefined"!=typeof window&&null!==window.sessionStorage))return!1;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){p=!1}return p};var f={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&g())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:o}=t;o&&g()&&window.sessionStorage.setItem(o,e)}},m={name:"navigator",lookup(e){let t=[];if("undefined"!=typeof navigator){let{languages:e,userLanguage:o,language:i}=navigator;if(e)for(let o=0;o<e.length;o++)t.push(e[o]);o&&t.push(o),i&&t.push(i)}return t.length>0?t:void 0}},v={name:"htmlTag",lookup(e){let t,{htmlTag:o}=e,i=o||("undefined"!=typeof document?document.documentElement:null);return i&&"function"==typeof i.getAttribute&&(t=i.getAttribute("lang")),t}},y={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("undefined"==typeof window)return;let o=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(o))return o["number"==typeof t?t:0]?.replace("/","")}},b={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,o="undefined"!=typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(o)return o["number"==typeof t?t+1:1]}};let x=!1;try{document.cookie,x=!0}catch(e){}let S=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];x||S.splice(1,1);class w{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]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return n.call(i.call(arguments,1),t=>{if(t)for(let o in t)void 0===e[o]&&(e[o]=t[o])}),e}(t,this.options||{},{order:S,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),"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=o,this.addDetector(l),this.addDetector(c),this.addDetector(d),this.addDetector(f),this.addDetector(m),this.addDetector(v),this.addDetector(y),this.addDetector(b)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>
10&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return(e.forEach(e=>{if(this.detectors[e]){let o=this.detectors[e].lookup(this.options);o&&"string"==typeof o&&(o=[o]),o&&(t=t.concat(o))}}),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)}))}}w.type="languageDetector"}}]);
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.