PageSourceSearch

https://web.momeditation.app/_next/static/chunks/28vid0elovvjp.js

js momeditation.app collected 2026-10-01 11:43:28 UTC 48,102 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="e9277ed0-b50e-c170-4504-4e26f9648aa9")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,645141,e=>{"use strict";try{var t="u">typeof window?window:e.g;t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[(new t.Error).stack]=Object.assign({},t._sentryModuleMetadata[(new t.Error).stack],{"_sentryBundlerPluginAppKey:mo-web":!0})}catch(e){}let s=e=>"string"==typeof e,i=()=>{let e,t,s=new Promise((s,i)=>{e=s,t=i});return s.resolve=e,s.reject=t,s},r=e=>null==e?"":String(e),o=/###/g,a=e=>e&&e.includes("###")?e.replace(o,"."):e,n=e=>!e||s(e),l=(e,t,i)=>{let r=s(t)?t.split("."):t,o=0;for(;o<r.length-1;){if(n(e))return{};let t=a(r[o]);!e[t]&&i&&(e[t]=new i),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return n(e)?{}:{obj:e,k:a(r[o])}},u=(e,t,s)=>{let{obj:i,k:r}=l(e,t,Object);if(void 0!==i||1===t.length){i[r]=s;return}let o=t[t.length-1],a=t.slice(0,t.length-1),n=l(e,a,Object);for(;void 0===n.obj&&a.length;)o=`${a[a.length-1]}.${o}`,(null==(n=l(e,a=a.slice(0,a.length-1),Object))?void 0:n.obj)&&void 0!==n.obj[`${n.k}.${o}`]&&(n.obj=void 0);n.obj[`${n.k}.${o}`]=s},h=(e,t)=>{let{obj:s,k:i}=l(e,t);if(s&&Object.prototype.hasOwnProperty.call(s,i))return s[i]},g=(e,t,i)=>{for(let r in t)"__proto__"!==r&&"constructor"!==r&&(Object.prototype.hasOwnProperty.call(e,r)?s(e[r])||e[r]instanceof String||s(t[r])||t[r]instanceof String?i&&(e[r]=t[r]):g(e[r],t[r],i):e[r]=t[r]);return e},p={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},d=e=>s(e)?e.replace(/[&<>"'\/]/g,e=>p[e]):e,c=[" ",",","?","!",";"],f=new class{getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}}(20),v=function(e,t){let s=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(s),r=e;for(let e=0;e<i.length;){let t;if(!r||"object"!=typeof r)return;let o="";for(let a=e;a<i.length;++a)if(a!==e&&(o+=s),o+=i[a],void 0!==(t=r[o])){if(["string","number","boolean"].includes(typeof t)&&a<i.length-1)continue;e+=a-e+1;break}r=t}return r},m=e=>null==e?void 0:e.replace(/_/g,"-"),y={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var s,i,r;null==(r=console)||null==(i=r[e])||null==(s=i.apply)||s.call(i,console,t)}};class b{init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||y,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,i,r){return r&&!this.debug?null:(e=e.map(e=>s(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),s(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new b(this.logger,{...{prefix:`${this.prefix}:${e}:`},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new b(this.logger,e)}constructor(e,t={}){this.init(e,t)}}var x=new b;class k{on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let s=this.observers[e].get(t)||0;this.observers[e].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}once(e,t){var s=this;let i=function(){for(var r=arguments.length,o=Array(r),a=0;a<r;a++)o[a]=arguments[a];t(...o),s.off(e,i)};return this.on(e,i),this}emit(e){for(var t=arguments.length,s=Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];this.observers[e]&&Array.from(this.observers[e].entries()).forEac
2h(e=>{let[t,i]=e;for(let e=0;e<i;e++)t(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(t=>{let[i,r]=t;for(let t=0;t<r;t++)i(e,...s)})}constructor(){this.observers={}}}class S extends k{addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,i){var r,o;let a,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,u=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?a=e.split("."):(a=[e,t],i&&(Array.isArray(i)?a.push(...i):s(i)&&l?a.push(...i.split(l)):a.push(i)));let g=h(this.data,a);return(!g&&!t&&!i&&e.includes(".")&&(e=a[0],t=a[1],i=a.slice(2).join(".")),!g&&u&&s(i))?v(null==(o=this.data)||null==(r=o[e])?void 0:r[t],i,l):g}addResource(e,t,s,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=[e,t];s&&(a=a.concat(o?s.split(o):s)),e.includes(".")&&(a=e.split("."),i=t,t=a[1]),this.addNamespaces(t),u(this.data,a,i),r.silent||this.emit("added",e,t,s,i)}addResources(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let r in i)(s(i[r])||Array.isArray(i[r]))&&this.addResource(e,t,r,i[r],{silent:!0});r.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,s,i,r){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.includes(".")&&(a=e.split("."),i=s,s=t,t=a[1]),this.addNamespaces(t);let n=h(this.data,a)||{};o.skipCopy||(s=JSON.parse(JSON.stringify(s))),i?g(n,s,r):n={...n,...s},u(this.data,a,n),o.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}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 $={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,s,i,r){return e.forEach(e=>{var o;t=(null==(o=this.processors[e])?void 0:o.process(t,s,i,r))??t}),t}};let L=Symbol("i18next/PATH_KEY");function w(e,t){let s,i,r,{[L]:o}=e((i=[],(r=Object.create(null)).get=(e,t)=>{var o;return(null==s||null==(o=s.revoke)||o.call(s),t===L)?i:(i.push(t),(s=Proxy.revocable(e,r)).proxy)},Proxy.revocable(Object.create(null),r).proxy)),a=(null==t?void 0:t.keySeparator)??".",n=(null==t?void 0:t.nsSeparator)??":",l=(null==t?void 0:t.enableSelector)==="strict";if(o.length>1&&n){let e=null==t?void 0:t.ns,s=l?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(s&&(l?s:s.length>1?s.slice(1):[]).includes(o[0]))return`${o[0]}${n}${o.slice(1).join(a)}`}return o.join(a)}let R=e=>!s(e)&&"boolean"!=typeof e&&"number"!=typeof e;class O extends k{changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},s={...t};if(null==e)return!1;let i=this.resolve(e,s);if((null==i?void 0:i.res)===void 0)return!1;let r=R(i.res);return!1!==s.returnObjects||!r}extractFromKey(e,t){let i=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===i&&(i=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],a=i&&e.includes(i),n=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,s)=>{t=t||"",s=s||"";let i=c.filter(e=>!t.includes(e)&&!s.includes(e));if(0===i.length)return!0;let r=f.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`),o=!r.test(e);
2if(!o){let t=e.indexOf(s);t>0&&!r.test(e.substring(0,t))&&(o=!0)}return o})(e,i,r);if(a&&!n){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:s(o)?[o]:o};let a=e.split(i);(i!==r||i===r&&this.options.ns.includes(a[0]))&&(o=a.shift()),e=a.join(r)}return{key:e,namespaces:s(o)?[o]:o}}translate(e,t,i){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=w(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?w(e,{...this.options,...r}):String(e));let o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:n,namespaces:l}=this.extractFromKey(e[e.length-1],r),u=l[l.length-1],h=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===h&&(h=":");let g=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((null==g?void 0:g.toLowerCase())==="cimode")return p?o?{res:`${u}${h}${n}`,usedKey:n,exactUsedKey:n,usedLng:g,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:`${u}${h}${n}`:o?{res:n,usedKey:n,exactUsedKey:n,usedLng:g,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:n;let d=this.resolve(e,r),c=null==d?void 0:d.res,f=(null==d?void 0:d.usedKey)||n,v=(null==d?void 0:d.exactUsedKey)||n,m=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==r.count&&!s(r.count),x=O.hasDefaultValue(r),k=b?this.pluralResolver.getSuffix(g,r.count,r):"",S=r.ordinal&&b?this.pluralResolver.getSuffix(g,r.count,{ordinal:!1}):"",$=b&&!r.ordinal&&0===r.count,L=$&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${k}`]||r[`defaultValue${S}`]||r.defaultValue,C=c;y&&!c&&x&&(C=L);let P=R(C),j=Object.prototype.toString.apply(C);if(y&&C&&P&&!["[object Number]","[object Function]","[object RegExp]"].includes(j)&&!(s(m)&&Array.isArray(C))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,C,{...r,ns:l}):`key '${n} (${this.language})' returned an object instead of string.`;return o?(d.res=e,d.usedParams=this.getUsedParamsDetails(r),d):e}if(a){let e=Array.isArray(C),t=e?[]:{},s=e?v:f;for(let e in C)if(Object.prototype.hasOwnProperty.call(C,e)){let i=`${s}${a}${e}`;x&&!c?t[e]=this.translate(i,{...r,defaultValue:R(L)?L[e]:void 0,...{joinArrays:!1,ns:l}}):t[e]=this.translate(i,{...r,joinArrays:!1,ns:l}),t[e]===i&&(t[e]=C[e])}c=t}}else if(y&&s(m)&&Array.isArray(c))(c=c.join(m))&&(c=this.extendTranslation(c,e,r,i));else{let t=!1,s=!1;!this.isValidLookup(c)&&x&&(t=!0,c=L),this.isValidLookup(c)||(s=!0,c=n);let o=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:c,l=x&&L!==c&&this.options.updateMissing;if(s||t||l){if(this.logger.log(l?"updateKey":"missingKey",g,u,b&&!l?`${n}${this.pluralResolver.getSuffix(g,r.count,r)}`:n,l?L:c),a){let e=this.resolve(n,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let s=0;s<t.length;s++)e.push(t[s]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);let s=(e,t,s)=>{var i;let a=x&&s!==c?s:o;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,t,a,l,r):(null==(i=this.backendConnector)?void 0:i.saveMissing)&&this.backendConnector.saveMissing(e,u,t,a,l,r),this.emit("missingKey",e,u,t,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e
2=>{let t=this.pluralResolver.getSuffixes(e,r);$&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{s([e],n+t,r[`defaultValue${t}`]||L)})}):s(e,n,L))}c=this.extendTranslation(c,e,r,d,i),s&&c===n&&this.options.appendNamespaceToMissingKey&&(c=`${u}${h}${n}`),(s||t)&&this.options.parseMissingKeyHandler&&(c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${h}${n}`:n,t?c:void 0,r))}return o?(d.res=c,d.usedParams=this.getUsedParamsDetails(r),d):c}extendTranslation(e,t,i,r,o){var a;if(null==(a=this.i18nFormat)?void 0:a.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){let a;var n,l=this;i.interpolation&&this.interpolator.init({...i,...{interpolation:{...this.options.interpolation,...i.interpolation}}});let u=s(e)&&((null==i||null==(n=i.interpolation)?void 0:n.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(u){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let h=i.replace&&!s(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,i.lng||this.language||r.usedLng,i),u){let t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(i.nest=!1)}!i.lng&&r&&r.res&&(i.lng=this.language||r.usedLng),!1!==i.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,s=Array(e),r=0;r<e;r++)s[r]=arguments[r];return(null==o?void 0:o[0])!==s[0]||i.context?l.translate(...s,t):(l.logger.warn(`It seems you are nesting recursively key: ${s[0]} in key: ${t[0]}`),null)},i)),i.interpolation&&this.interpolator.reset()}let u=i.postProcess||this.options.postProcess,h=s(u)?[u]:u;return null!=e&&(null==h?void 0:h.length)&&!1!==i.applyPostProcessor&&(e=$.handle(h,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e){let t,i,r,o,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?w(e,{...this.options,...n}):e)),e.forEach(e=>{if(this.isValidLookup(t))return;let l=this.extractFromKey(e,n),u=l.key;i=u;let h=l.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));let g=void 0!==n.count&&!s(n.count),p=g&&!n.ordinal&&0===n.count,d=void 0!==n.context&&(s(n.context)||"number"==typeof n.context)&&""!==n.context,c=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(e=>{var s,l;this.isValidLookup(t)||(a=e,this.checkedLoadedFor[`${c[0]}-${e}`]||null==(s=this.utils)||!s.hasLoadedNamespace||(null==(l=this.utils)?void 0:l.hasLoadedNamespace(a))||(this.checkedLoadedFor[`${c[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${c.join(", ")}" won't get resolved as namespace "${a}" 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!!!")),c.forEach(s=>{var i;let a;if(this.isValidLookup(t))return;o=s;let l=[u];if(null==(i=this.i18nFormat)?void 0:i.addLookupKeys)this.i18nFormat.addLookupKeys(l,u,s,e,n);else{let e;g&&(e=this.pluralResolver.getSuffix(s,n.count,n));let t=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(n.ordinal&&e.startsWith(i)&&l.push(u+e.replace(i,this.options.pluralSeparator)),l.push(u+e),p&&l.push(u+t)),d){let s=`${u}${this.options.contextSeparator||"_"}${n.context}`;l.push(s),g&&(n.ordinal&&e.startsWith(i)&&l.push(s+e.replace(i,this.options.pluralSeparator)),l.push(s+e),p&&l.push(s+t))}}for(;a=l.pop();)this.isValidLookup(t)||(r=a,t=this.getResource(s,e,a,n))}))})}),{res:t,usedKey:i,exactUsedKey:r,usedLng:o,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,s){var i;let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(null==(i=this.i18nFormat)?void 0:i.getResource)?this.i18nFormat.getResource(e,t,s,r):this.resourceStore.getResource(e,t,s,r)}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){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}constructor(e,t={}){super(),((e,t,s)=>
2{e.forEach(e=>{t[e]&&(s[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=x.create("translator"),this.checkedLoadedFor={}}}class C{getScriptPartFromCode(e){if(!(e=m(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=m(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(s(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let s=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let s=this.getScriptPartFromCode(e);if(this.isSupportedCode(s))return t=s;let i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>e===i||(!!e.includes("-")||!!i.includes("-"))&&!!(e.includes("-")&&!i.includes("-")&&e.slice(0,e.indexOf("-"))===i||e.startsWith(i)&&i.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),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((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return s(e)&&(e.includes("-")||e.includes("_"))?("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=>{r.includes(e)||o(this.formatLanguageCode(e))}),r}constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=x.create("languageUtils")}}let P={zero:0,one:1,two:2,few:3,many:4,other:5},j={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class N{clearCache(){this.pluralRulesCache={}}getRule(e){let t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=m("dev"===e?"en":e),r=s.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:i,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];try{t=new Intl.PluralRules(i,{type:r})}catch(r){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),j;if(!e.match(/-|_/))return j;let i=this.languageUtils.getLanguagePartFromCode(e);t=this.getRule(i,s)}return this.pluralRulesCache[o]=t,t}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),(null==s?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,s).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this.getRule(e,t);return(s||(s=this.getRule("dev",t)),s)?s.resolvedOptions().pluralCategories.sort((e,t)=>P[e]-P[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,s);return i?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}
2`),this.getSuffix("dev",t,s))}constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=x.create("pluralResolver"),this.pluralRulesCache={}}}let E=function(e,t,i){let r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",a=!(arguments.length>4)||void 0===arguments[4]||arguments[4],n=void 0!==(r=h(e,i))?r:h(t,i);return!n&&a&&s(i)&&void 0===(n=v(e,i,o))&&(n=v(t,i,o)),n};class A{init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:s,useRawValueToEscape:i,prefix:r,prefixEscaped:o,suffix:a,suffixEscaped:n,formatSeparator:l,unescapeSuffix:u,unescapePrefix:h,nestingPrefix:g,nestingPrefixEscaped:p,nestingSuffix:c,nestingSuffixEscaped:f,nestingOptionsSeparator:v,maxReplaces:m,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:d,this.escapeValue=void 0===s||s,this.useRawValueToEscape=void 0!==i&&i,this.prefix=r?r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):o||"{{",this.suffix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):n||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":h?h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":u?u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=g?g.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):p||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):f||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=v||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==y&&y,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,`${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,o){var a;let n,l,u,h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},g=e=>{if(!e.includes(this.formatSeparator)){let s=E(t,h,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(s,void 0,i,{...o,...t,interpolationkey:e}):s}let s=e.split(this.formatSeparator),r=s.shift().trim(),a=s.join(this.formatSeparator).trim();return this.format(E(t,h,r,this.options.keySeparator,this.options.ignoreJSONStructure),a,i,{...o,...t,interpolationkey:r})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let p=(null==o?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=(null==o||null==(a=o.interpolation)?void 0:a.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e.replace(/\$/g,"$$$$")},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e).replace(/\$/g,"$$$$"):e.replace(/\$/g,"$$$$")}].forEach(t=>{for(u=0;n=t.regex.exec(e);){let i=n[1].trim();if(void 0===(l=g(i)))if("function"==typeof p){let t=p(e,n,o);l=s(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,i))l="";else if(d){l=n[0];continue}else this.logger.warn(`missed to pass in variable ${i} for interpolating ${e}`),l="";else s(l)||this.useRawValueToEscape||(l=r(l));let a=t.safeValue(l);if(e=e.replace(n[0],a),d?(t.regex.lastIndex+=l.length,t.regex.lastIndex-=n[0].length):t.regex.lastIndex=0,++u>=this.maxReplaces)break}}),e}nest(e,t){let i,o,a,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(e,t)=>
2{let s=this.nestingOptionsSeparator;if(!e.includes(s))return e;let i=e.split(RegExp(`${s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),r=`{${i[1]}`;e=i[0];let o=(r=this.interpolate(r,a)).match(/'/g),n=r.match(/"/g);(((null==o?void 0:o.length)??0)%2!=0||n)&&((null==n?void 0:n.length)??0)%2==0||(r=r.replace(/'/g,'"'));try{a=JSON.parse(r),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${s}${r}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let u=[];(a=(a={...n}).replace&&!s(a.replace)?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;let h=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==h&&(u=i[1].slice(h).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,h)),(o=t(l.call(this,i[1].trim(),a),a))&&i[0]===e&&!s(o))return o;s(o)||(o=r(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),o=""),u.length&&(o=u.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:i[1].trim()}),o.trim())),e=e.replace(i[0],o),this.regexp.lastIndex=0}return e}constructor(e={}){var t;this.logger=x.create("interpolator"),this.options=e,this.format=(null==e||null==(t=e.interpolation)?void 0:t.format)||(e=>e),this.init(e)}}let F=e=>{let t={};return(s,i,r)=>{let o=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(o={...o,[r.interpolationkey]:void 0});let a=i+JSON.stringify(o),n=t[a];return n||(n=e(m(i),r),t[a]=n),n(s)}},T=e=>(t,s,i)=>e(m(s),i)(t);class V{init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||",";let s=t.cacheInBuiltFormats?F:T;this.formats={number:s((e,t)=>{let s=new Intl.NumberFormat(e,{...t});return e=>s.format(e)}),currency:s((e,t)=>{let s=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>s.format(e)}),datetime:s((e,t)=>{let s=new Intl.DateTimeFormat(e,{...t});return e=>s.format(e)}),relativetime:s((e,t)=>{let s=new Intl.RelativeTimeFormat(e,{...t});return e=>s.format(e,t.range||"day")}),list:s((e,t)=>{let s=new Intl.ListFormat(e,{...t});return e=>s.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=F(t)}format(e,t,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!t||null==e)return e;let r=t.split(this.formatSeparator),o=[];for(let e=0;e<r.length;e++){let t=r[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<r.length;)t=`${t}${this.formatSeparator}${r[++e]}`;o.push(t)}return o.reduce((e,t)=>{let{formatName:r,formatOptions:o}=(e=>{let t=e.toLowerCase().trim(),s={};if(e.includes("(")){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].slice(0,-1);"currency"!==t||r.includes(":")?"relativetime"!==t||r.includes(":")?r.split(";").forEach(e=>{if(e){let[t,...i]=e.split(":"),r=i.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();s[o]||(s[o]=r),"false"===r&&(s[o]=!1),"true"===r&&(s[o]=!0),isNaN(r)||(s[o]=parseInt(r,10))}}):s.range||(s.range=r.trim()):s.currency||(s.currency=r.trim())}return{formatName:t,formatOptions:s}})(t);if(this.formats[r]){let t=e;try{var a;let n=(null==i||null==(a=i.formatParams)?void 0:a[i.interpolationkey])||{},l=n.locale||n.lng||i.locale||i.lng||s;t=this.formats[r](e,l,{...o,...i,...n})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}constructor(e={}){this.logger=x.create("formatter"),this.options=e,this.init(e)}}class I extends k{queueLoad(e,t,s,i){let r={},o={},a={},n={};return e.forEach(e=>{let i=!0;t.forEach(t=>{let a=`${e}|${t}`;!s.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,i=!1,void 0===o[a]&&(o[a]=!0),void 0===r[a]&&(r[a]=!0),void 0===n[t]&&(n[t]=!0)))}),i||(a[e]=!0)}),(Object.keys(r).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(n)}}loaded(e,t,s){let i=e.split("|"),r=i[0],o=i[1];
2t&&this.emit("failedLoading",r,o,t),!t&&s&&this.store.addResourceBundle(r,o,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);let a={};this.queue.forEach(s=>{((e,t,s,i)=>{let{obj:r,k:o}=l(e,t,Object);r[o]=r[o]||[],r[o].push(s)})(s.loaded,[r],o),void 0!==s.pending[e]&&(delete s.pending[e],s.pendingCount--),t&&s.errors.push(t),0!==s.pendingCount||s.done||(Object.keys(s.loaded).forEach(e=>{a[e]||(a[e]={});let t=s.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,s){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=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)return void this.waitingReads.push({lng:e,ns:t,fcName:s,tried:i,wait:r,callback:o});this.readingCalls++;let a=(a,n)=>{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)}a&&n&&i<this.maxRetries?setTimeout(()=>{this.read(e,t,s,i+1,2*r,o)},r):o(a,n)},n=this.backend[s].bind(this.backend);if(2===n.length){try{let s=n(e,t);s&&"function"==typeof s.then?s.then(e=>a(null,e)).catch(a):a(null,s)}catch(e){a(e)}return}return n(e,t,a)}prepareLoading(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=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."),r&&r();s(e)&&(e=this.languageUtils.toResolveHierarchy(e)),s(t)&&(t=[t]);let o=this.queueLoad(e,t,i,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=e.split("|"),i=s[0],r=s[1];this.read(i,r,"read",void 0,void 0,(s,o)=>{s&&this.logger.warn(`${t}loading namespace ${r} for language ${i} failed`,s),!s&&o&&this.logger.log(`${t}loaded namespace ${r} for language ${i}`,o),this.loaded(e,s,o)})}saveMissing(e,t,s,i,r){var o,a,n,l,u;let h=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},g=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if((null==(a=this.services)||null==(o=a.utils)?void 0:o.hasLoadedNamespace)&&!(null==(l=this.services)||null==(n=l.utils)?void 0:n.hasLoadedNamespace(t)))return void this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=s&&""!==s){if(null==(u=this.backend)?void 0:u.create){let o={...h,isUpdate:r},a=this.backend.create.bind(this.backend);if(a.length<6)try{let r;(r=5===a.length?a(e,t,s,i,o):a(e,t,s,i))&&"function"==typeof r.then?r.then(e=>g(null,e)).catch(g):g(null,r)}catch(e){g(e)}else a(e,t,s,i,g,o)}e&&e[0]&&this.store.addResource(e[0],t,s,i)}}constructor(e,t,s,i={}){var r,o;super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=x.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==(o=this.backend)||null==(r=o.init)||r.call(o,s,i.backend,i)}}let D=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),s(e[1])&&(t.defaultValue=e[1]),s(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let s=e[3]||e[2];
2Object.keys(s).forEach(e=>{t[e]=s[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),M=e=>(s(e.ns)&&(e.ns=[e.ns]),s(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),s(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),K=()=>{};class U 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&&(s(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let r=D();this.options={...r,...this.options,...M(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);let o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;var a=this;this.modules.logger?x.init(o(this.modules.logger),this.options):x.init(null,this.options),e=this.modules.formatter?this.modules.formatter:V;let t=new C(this.options);this.store=new S(this.options.resources,this.options);let s=this.services;s.logger=x,s.resourceStore=this.store,s.languageUtils=t,s.pluralResolver=new N(t,{prepend:this.options.pluralSeparator}),e&&(s.formatter=o(e),s.formatter.init&&s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new A(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new I(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(e){for(var t=arguments.length,s=Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];a.emit(e,...s)}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new O(this.services,this.options),this.translator.on("*",function(e){for(var t=arguments.length,s=Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];a.emit(e,...s)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=K),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 s=arguments.length,i=Array(s),r=0;r<s;r++)i[r]=arguments[r];return t.store[e](...i)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{var t=this;this[e]=function(){for(var s=arguments.length,i=Array(s),r=0;r<s;r++)i[r]=arguments[r];return t.store[e](...i),t}});let n=i(),l=()=>{let e=(e,s)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),n.resolve(s),t(e,s)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),n}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K,i=t,r=s(e)?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){var o,a;if((null==r?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||0===this.options.preload.length))return i();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e
2=>t(e)),null==(a=this.options.preload)||null==(o=a.forEach)||o.call(a,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,s){let r=i();return"function"==typeof e&&(s=e,e=void 0),"function"==typeof t&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=K),this.services.backendConnector.reload(e,t,e=>{r.resolve(),s(e)}),r}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&$.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let r=i();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(s,i)=>{var a=this;i?this.isLanguageChangingTo===e&&(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve(function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return a.t(...t)}),t&&t(s,function(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return a.t(...t)})},n=t=>{e||t||!this.services.languageDetector||(t=[]);let i=s(t)?t:t&&t[0],r=this.store.hasLanguageSomeTranslations(i)?i:this.services.languageUtils.getBestMatchFromCodes(s(t)?[t]:t);if(r){var n,l;this.language||o(r),this.translator.language||this.translator.changeLanguage(r),null==(l=this.services.languageDetector)||null==(n=l.cacheUserLanguage)||n.call(l,r)}this.loadResources(r,e=>{a(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(n):this.services.languageDetector.detect(n):n(e):n(this.services.languageDetector.detect()),r}getFixedT(e,t,i,r){var o=this;let a=null==r?void 0:r.scopeNs,n=function(e,t){let s,r;for(var l=arguments.length,u=Array(l>2?l-2:0),h=2;h<l;h++)u[h-2]=arguments[h];(s="object"!=typeof t?o.options.overloadTranslationOptionHandler([e,t].concat(u)):{...t}).lng=s.lng||n.lng,s.lngs=s.lngs||n.lngs;let g=void 0!==s.ns&&null!==s.ns;s.ns=s.ns||n.ns,""!==s.keyPrefix&&(s.keyPrefix=s.keyPrefix||i||n.keyPrefix);let p={...o.options,...s};Array.isArray(a)&&!g&&(p.ns=a),"function"==typeof s.keyPrefix&&(s.keyPrefix=w(s.keyPrefix,p));let d=o.options.keySeparator||".";return s.keyPrefix&&Array.isArray(e)?r=e.map(e=>("function"==typeof e&&(e=w(e,p)),`${s.keyPrefix}${d}${e}`)):("function"==typeof e&&(e=w(e,p)),r=s.keyPrefix?`${s.keyPrefix}${d}${e}`:e),o.t(r,s)};return s(e)?n.lng=e:n.lngs=e,n.ns=t,n.keyPrefix=i,n}t(){for(var e,t=arguments.length,s=Array(t),i=0;i<t;i++)s[i]=arguments[i];return null==(e=this.translator)?void 0:e.translate(...s)}exists(){for(var e,t=arguments.length,s=Array(t),i=0;i<t;i++)s[i]=arguments[i];return null==(e=this.translator)?void 0:e.exists(...s)}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;
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let s=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===s.toLowerCase())return!0;let o=(e,t)=>{let s=this.services.backendConnector.state[`${e}|${t}`];return -1===s||0===s||2===s};if(t.precheck){let e=t.precheck(this,o);if(void 0!==e)return e}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(s,e)&&(!i||o(r,e)))}loadNamespaces(e,t){let r=i();return this.options.ns?(s(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=i();s(e)&&(e=[e]);let o=this.options.preload||[],a=e.filter(e=>!o.includes(e)&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=o.concat(a),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){var t,s;if(e||(e=this.resolvedLanguage||((null==(t=this.languages)?void 0:t.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let i=(null==(s=this.services)?void 0:s.languageUtils)||new C(D());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(i.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,s=new U(e,t);return s.createInstance=U.createInstance,s}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K,s=e.forkResourceStore;s&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},r=new U(i);if((void 0!==e.debug||void 0!==e.prefix)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(e=>{r[e]=this[e]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},s&&(r.store=new S(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((s,i)=>(s[i]={...e[t][i]},s),e[t]),e),{}),i),r.services.resourceStore=r.store),e.interpolation){let t={...D().interpolation,...this.options.interpolation,...e.interpolation},s={...i,interpolation:t};r.services.interpolator=new A(s)}return r.translator=new O(r.services,i),r.translator.on("*",function(e){for(var t=arguments.length,s=Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];r.emit(e,...s)}),r.init(i,t),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}constructor(e={},t){if(super(),this.options=M(e),this.services={},this.logger=x,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 H=U.createInstance(),B=H.createInstance;H.dir,H.init,H.loadResources,H.reloadResources,H.use,H.changeLanguage,H.getFixedT,H.t,H.exists,H.setDefaultNamespace,H.hasLoadedNamespace,H.loadNamespaces,H.loadLanguages,e.s(["createInstance",0,B,"keyFromSelector",0,w])}]);
3
4//# debugId=e9277ed0-b50e-c170-4504-4e26f9648aa9

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.