PageSourceSearch

https://loft-space.co.uk/assets/vendor-i18n-eTj0Pfmx.js

js loft-space.co.uk collected 2026-10-06 17:03:52 UTC 76,154 bytes, 8 lines download raw bytes

vendor: 7,228 bytes, line 1
1import{g as pt,r as N}from"./vendor-react-TOOSQ9Q-.js";import{_ as mt}from"./vendor-puck-lPnaRYA0.js";const w=r=>typeof r=="string",Y=()=>{let r,e;const t=new Promise((n,s)=>{r=n,e=s});return t.resolve=r,t.reject=e,t},Oe=r=>r==null?"":""+r,yt=(r,e,t)=>{r.forEach(n=>{e[n]&&(t[n]=e[n])})},bt=/###/g,Le=r=>r&&r.indexOf("###")>-1?r.replace(bt,"."):r,Pe=r=>!r||w(r),Q=(r,e,t)=>{const n=w(e)?e.split("."):e;let s=0;for(;s<n.length-1;){if(Pe(r))return{};const i=Le(n[s]);!r[i]&&t&&(r[i]=new t),Object.prototype.hasOwnProperty.call(r,i)?r=r[i]:r={},++s}return Pe(r)?{}:{obj:r,k:Le(n[s])}},Ce=(r,e,t)=>{const{obj:n,k:s}=Q(r,e,Object);if(n!==void 0||e.length===1){n[s]=t;return}let i=e[e.length-1],a=e.slice(0,e.length-1),o=Q(r,a,Object);for(;o.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),o=Q(r,a,Object),o?.obj&&typeof o.obj[`${o.k}.${i}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${i}`]=t},vt=(r,e,t,n)=>{const{obj:s,k:i}=Q(r,e,Object);s[i]=s[i]||[],s[i].push(t)},ie=(r,e)=>{const{obj:t,k:n}=Q(r,e);if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n]},xt=(r,e,t)=>{const n=ie(r,t);return n!==void 0?n:ie(e,t)},Ye=(r,e,t)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in r?w(r[n])||r[n]instanceof String||w(e[n])||e[n]instanceof String?t&&(r[n]=e[n]):Ye(r[n],e[n],t):r[n]=e[n]);return r},q=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var St={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const wt=r=>w(r)?r.replace(/[&<>"'\/]/g,e=>St[e]):r;class Ot{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const Lt=[" ",",","?","!",";"],Pt=new Ot(20),Ct=(r,e,t)=>{e=e||"",t=t||"";const n=Lt.filter(a=>e.indexOf(a)<0&&t.indexOf(a)<0);if(n.length===0)return!0;const s=Pt.getRegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!s.test(r);if(!i){const a=r.indexOf(t);a>0&&!s.test(r.substring(0,a))&&(i=!0)}return i},pe=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[e])return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0;const n=e.split(t);let s=r;for(let i=0;i<n.length;){if(!s||typeof s!="object")return;let a,o="";for(let u=i;u<n.length;++u)if(u!==i&&(o+=t),o+=n[u],a=s[o],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&u<n.length-1)continue;i+=u-i+1;break}s=a}return s},ae=r=>r?.replace("_","-"),Nt={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,e){console?.[r]?.apply?.(console,e)}};class oe{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Nt,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,s){return s&&!this.debug?null:(w(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new oe(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new oe(this.logger,e)}}var D=new oe;class fe{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const s=this.observers[n].get(t)||0;this.observers[n].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(a=>{let[o,u]=a;for(let l=0;l<u;l++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[o,u]=a;for(let l=0;l<u;l++)o.apply(o,[e,...n])})}}class Ne extends fe{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,a=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):w(n)&&i?o.push(...n.split(i)):o.push(n)));const u=ie(this.data,o);return!u&&!t&&!n&&e.indexOf(".")>-1&&(e=o[0],t=o[1],n=o.slice(2).join(".")),u||!a||!w(n)?u:pe(this.data?.[e]?.[t],n,i)}addResource(e,t,n,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(o=e.split("."),s=t,t=o[1]),this.addNamespaces(t),Ce(this.data,o,s),i.silent||this.emit("added",e,t,n,s)}addResources(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in n)(w(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});s.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,s,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),s=n,n=t,t=o[1]),this.addNamespaces(t);let u=ie(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),s?Ye(u,n,i):u={...u,...n},Ce(this.data,o,u),a.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}}var Qe={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,e,t,n,s){return r.forEach(i=>{e=this.processors[i]?.process(e,t,n,s)??e}),e}};const $e={},Ee=r=>!w(r)&&typeof r!="boolean"&&typeof r!="number";class ue extends fe{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),yt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=D.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return e==null?!1:this.resolve(e,t)?.res!==void 0}extractFromKey(e,t){let n=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Ct(e,n,s);if(a&&!o){const u=e.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:e,namespaces:w(i)?[i]:i};const l=e.split(n);(n!==s||n===s&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(s)}return{key:e,namespaces:w(i)?[i]:i}}translate(e,t,n){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const s=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:a,namespaces:o}=this.extractFromKey(e[e.length-1],t),u=o[o.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l?.toLowerCase()==="cimode"){if(c){const L=t.nsSeparator||this.options.nsSeparator;return s?{res:`${u}${L}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:`${u}${L}${a}`}return s?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:a}const d=this.resolve(e,t);let f=d?.res;const h=d?.usedKey||a,g=d?.exactUsedKey||a,y=["[object Number]","[object Function]","[object RegExp]"],m=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,b=t.count!==void 0&&!w(t.count),S=ue.hasDefaultValue(t),v=b?this.pluralResolver.getSuffix(l,t.count,t):"",P=t.ordinal&&b?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",O=b&&!t.ordinal&&t.count===0,p=O&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${v}`]||t[`defaultValue${P}`]||t.defaultValue;let C=f;x&&!f&&S&&(C=p);const j=Ee(C),k=Object.prototype.toString.apply(C);if(x&&C&&j&&y.indexOf(k)<0&&!(w(m)&&Array.isArray(C))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,C,{...t,ns:o}):`key '${a} (${this.language})' returned an object instead of string.`;return s?(d.res=L,d.usedParams=this.getUsedParamsDetails(t),d):L}if(i){const L=Array.isArray(C),E=L?[]:{},H=L?g:h;for(const A in C)if(Object.prototype.hasOwnProperty.call(C,A)){const I=`${H}${i}${A}`;S&&!f?E[A]=this.translate(I,{...t,defaultValue:Ee(p)?p[A]:void 0,joinArrays:!1,ns:o}):E[A]=this.translate(I,{...t,joinArrays:!1,ns:o}),E[A]===I&&(E[A]=C[A])}f=E}}else if(x&&w(m)&&Array.isArray(f))f=f.join(m),f&&(f=this.extendTranslation(f,e,t,n));else{let L=!1,E=!1;!this.isValidLookup(f)&&S&&(L=!0,f=p),this.isValidLookup(f)||(E=!0,f=a);const A=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:f,I=S&&p!==f&&this.options.updateMissing;if(E||L||I){if(this.logger.log(I?"updateKey":"missingKey",l,u,a,I?p:f),i){const T=this.resolve(a,{...t,keySeparator:!1});T&&T.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 $=[];const te=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&te&&te[0])for(let T=0;T<te.length;T++)$.push(te[T]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(t.lng||this.language):$.push(t.lng||this.language);const Se=(T,M,_)=>{const we=S&&_!==f?_:A;this.options.missingKeyHandler?this.options.missingKeyHandler(T,u,M,we,I,t):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(T,u,M,we,I,t),this.emit
vendor: 6,653 bytes, line 1
1("missingKey",T,u,M,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?$.forEach(T=>{const M=this.pluralResolver.getSuffixes(T,t);O&&t[`defaultValue${this.options.pluralSeparator}zero`]&&M.indexOf(`${this.options.pluralSeparator}zero`)<0&&M.push(`${this.options.pluralSeparator}zero`),M.forEach(_=>{Se([T],a+_,t[`defaultValue${_}`]||p)})}):Se($,a,p))}f=this.extendTranslation(f,e,t,d,n),E&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${u}:${a}`),(E||L)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${a}`:a,L?f:void 0))}return s?(d.res=f,d.usedParams=this.getUsedParamsDetails(t),d):f}extendTranslation(e,t,n,s,i){var a=this;if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const l=w(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(l){const f=e.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=n.replace&&!w(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,n.lng||this.language||s.usedLng,n),l){const f=e.match(this.interpolator.nestingRegexp),h=f&&f.length;c<h&&(n.nest=!1)}!n.lng&&s&&s.res&&(n.lng=this.language||s.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var f=arguments.length,h=new Array(f),g=0;g<f;g++)h[g]=arguments[g];return i?.[0]===h[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`),null):a.translate(...h,t)},n)),n.interpolation&&this.interpolator.reset()}const o=n.postProcess||this.options.postProcess,u=w(o)?[o]:o;return e!=null&&u?.length&&n.applyPostProcessor!==!1&&(e=Qe.handle(u,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,s,i,a,o;return w(e)&&(e=[e]),e.forEach(u=>{if(this.isValidLookup(n))return;const l=this.extractFromKey(u,t),c=l.key;s=c;let d=l.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=t.count!==void 0&&!w(t.count),h=f&&!t.ordinal&&t.count===0,g=t.context!==void 0&&(w(t.context)||typeof t.context=="number")&&t.context!=="",y=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);d.forEach(m=>{this.isValidLookup(n)||(o=m,!$e[`${y[0]}-${m}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&($e[`${y[0]}-${m}`]=!0,this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(x=>{if(this.isValidLookup(n))return;a=x;const b=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(b,c,x,m,t);else{let v;f&&(v=this.pluralResolver.getSuffix(x,t.count,t));const P=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(b.push(c+v),t.ordinal&&v.indexOf(O)===0&&b.push(c+v.replace(O,this.options.pluralSeparator)),h&&b.push(c+P)),g){const p=`${c}${this.options.contextSeparator}${t.context}`;b.push(p),f&&(b.push(p+v),t.ordinal&&v.indexOf(O)===0&&b.push(p+v.replace(O,this.options.pluralSeparator)),h&&b.push(p+P))}}let S;for(;S=b.pop();)this.isValidLookup(n)||(i=S,n=this.getResource(x,m,S,t))}))})}),{res:n,usedKey:s,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,s):this.resourceStore.getResource(e,t,n,s)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!w(e.replace);let s=n?e.replace:e;if(n&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!n){s={...s};for(const i of t)delete s[i]}return s}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}class ke{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=D.create("languageUtils")}getScriptPartFromCode(e){if(e=ae(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=ae(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(w(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(n=>{if(t)return;const s=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(n=>{if(t)return;const s=this.getLanguagePartFromCode(n);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&(i.indexOf("-")>0&&s.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===s||i.indexOf(s)===0&&s.length>1))return i})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),w(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];
vendor: 4,970 bytes, line 1
1return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),s=[],i=a=>{a&&(this.isSupportedCode(a)?s.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return w(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):w(e)&&i(this.formatLanguageCode(e)),n.forEach(a=>{s.indexOf(a)<0&&i(this.formatLanguageCode(a))}),s}}const Re={zero:0,one:1,two:2,few:3,many:4,other:5},je={select:r=>r===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class $t{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=D.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=ae(e==="dev"?"en":e),s=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:s});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),je;if(!e.match(/-|_/))return je;const u=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(u,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(s=>`${t}${s}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((s,i)=>Re[s]-Re[i]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(e,n);return s?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const Ae=function(r,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=xt(r,e,t);return!i&&s&&w(t)&&(i=pe(r,t,n),i===void 0&&(i=pe(e,t,n))),i},ce=r=>r.replace(/\$/g,"$$$$");class Et{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=D.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(t=>t),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:s,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:u,formatSeparator:l,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:h,nestingSuffix:g,nestingSuffixEscaped:y,nestingOptionsSeparator:m,maxReplaces:x,alwaysFormat:b}=e.interpolation;this.escape=t!==void 0?t:wt,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=i?q(i):a||"{{",this.suffix=o?q(o):u||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?q(f):h||q("$t("),this.nestingSuffix=g?q(g):y||q(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=x||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,n)=>t?.source===n?(t.lastIndex=0,t):new RegExp(n,"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,n,s){let i,a,o;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=h=>{if(h.indexOf(this.formatSeparator)<0){const x=Ae(t,u,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,n,{...s,...t,interpolationkey:h}):x}const g=h.split(this.formatSeparator),y=g.shift().trim(),m=g.join(this.formatSeparator).trim();return this.format(Ae(t,u,y,this.options.keySeparator,this.options.ignoreJSONStructure),m,n,{...s,...t,interpolationkey:y})};this.resetRegExp();const c=s?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=s?.interpolation?.ski
vendor: 17,889 bytes, line 1
1pOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>ce(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?ce(this.escape(h)):ce(h)}].forEach(h=>{for(o=0;i=h.regex.exec(e);){const g=i[1].trim();if(a=l(g),a===void 0)if(typeof c=="function"){const m=c(e,i,s);a=w(m)?m:""}else if(s&&Object.prototype.hasOwnProperty.call(s,g))a="";else if(d){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),a="";else!w(a)&&!this.useRawValueToEscape&&(a=Oe(a));const y=h.safeValue(a);if(e=e.replace(i[0],y),d?(h.regex.lastIndex+=a.length,h.regex.lastIndex-=i[0].length):h.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,a;const o=(u,l)=>{const c=this.nestingOptionsSeparator;if(u.indexOf(c)<0)return u;const d=u.split(new RegExp(`${c}[ ]*{`));let f=`{${d[1]}`;u=d[0],f=this.interpolate(f,a);const h=f.match(/'/g),g=f.match(/"/g);((h?.length??0)%2===0&&!g||g.length%2!==0)&&(f=f.replace(/'/g,'"'));try{a=JSON.parse(f),l&&(a={...l,...a})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,y),`${u}${c}${f}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,u};for(;s=this.nestingRegexp.exec(e);){let u=[];a={...n},a=a.replace&&!w(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let l=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const c=s[1].split(this.formatSeparator).map(d=>d.trim());s[1]=c.shift(),u=c,l=!0}if(i=t(o.call(this,s[1].trim(),a),a),i&&s[0]===e&&!w(i))return i;w(i)||(i=Oe(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),i=""),l&&(i=u.reduce((c,d)=>this.format(c,d,n.lng,{...n,interpolationkey:s[1].trim()}),i.trim())),e=e.replace(s[0],i),this.regexp.lastIndex=0}return e}}const kt=r=>{let e=r.toLowerCase().trim();const t={};if(r.indexOf("(")>-1){const n=r.split("(");e=n[0].toLowerCase().trim();const s=n[1].substring(0,n[1].length-1);e==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(a=>{if(a){const[o,...u]=a.split(":"),l=u.join(":").trim().replace(/^'+|'+$/g,""),c=o.trim();t[c]||(t[c]=l),l==="false"&&(t[c]=!1),l==="true"&&(t[c]=!0),isNaN(l)||(t[c]=parseInt(l,10))}})}return{formatName:e,formatOptions:t}},z=r=>{const e={};return(t,n,s)=>{let i=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(i={...i,[s.interpolationkey]:void 0});const a=n+JSON.stringify(i);let o=e[a];return o||(o=r(ae(n),s),e[a]=o),o(t)}};class Rt{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=D.create("formatter"),this.options=e,this.formats={number:z((t,n)=>{const s=new Intl.NumberFormat(t,{...n});return i=>s.format(i)}),currency:z((t,n)=>{const s=new Intl.NumberFormat(t,{...n,style:"currency"});return i=>s.format(i)}),datetime:z((t,n)=>{const s=new Intl.DateTimeFormat(t,{...n});return i=>s.format(i)}),relativetime:z((t,n)=>{const s=new Intl.RelativeTimeFormat(t,{...n});return i=>s.format(i,n.range||"day")}),list:z((t,n)=>{const s=new Intl.ListFormat(t,{...n});return i=>s.format(i)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=z(t)}format(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(o=>o.indexOf(")")>-1)){const o=i.findIndex(u=>u.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,o)].join(this.formatSeparator)}return i.reduce((o,u)=>{const{formatName:l,formatOptions:c}=kt(u);if(this.formats[l]){let d=o;try{const f=s?.formatParams?.[s.interpolationkey]||{},h=f.locale||f.lng||s.locale||s.lng||n;d=this.formats[l](o,h,{...c,...s,...f})}catch(f){this.logger.warn(f)}return d}else this.logger.warn(`there was no format function for ${l}`);return o},e)}}const jt=(r,e)=>{r.pending[e]!==void 0&&(delete r.pending[e],r.pendingCount--)};class At extends fe{constructor(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=s,this.logger=D.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,s.backend,s)}queueLoad(e,t,n,s){const i={},a={},o={},u={};return e.forEach(l=>{let c=!0;t.forEach(d=>{const f=`${l}|${d}`;!n.reload&&this.store.hasResourceBundle(l,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?a[f]===void 0&&(a[f]=!0):(this.state[f]=1,c=!1,a[f]===void 0&&(a[f]=!0),i[f]===void 0&&(i[f]=!0),u[d]===void 0&&(u[d]=!0)))}),c||(o[l]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(u)}}loaded(e,t,n){const s=e.split("|"),i=s[0],a=s[1];t&&this.emit("failedLoading",i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const o={};this.queue.forEach(u=>{vt(u.loaded,[i],a),jt(u,e),t&&u.errors.push(t),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(l=>{o[l]||(o[l]={});const c=u.loaded[l];c.length&&c.forEach(d=>{o[l][d]===void 0&&(o[l][d]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(u=>!u.done)}read(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:s,wait:i,callback:a});return}this.readingCalls++;const o=(l,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(l&&c&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,s+1,i*2,a)},i);return}a(l,c)},u=this.backend[n].bind(this.backend);if(u.length===2){try{const l=u(e,t);l&&typeof l.then=="function"?l.then(c=>o(null,c)).catch(o):o(null,l)}catch(l){o(l)}return}return u(e,t,o)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=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."),s&&s();w(e)&&(e=this.languageUtils.toResolveHierarchy(e)),w(t)&&(t=[t]);const i=this.queueLoad(e,t,n,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),s=n[0],i=n[1];this.read(s,i,"read",void 0,void 0,(a,o)=>{a&&this.logger.warn(`${t}loading namespace ${i} for language ${s} failed`,a),!a&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${s}`,o),this.loaded(e,a,o)})}saveMissing(e,t,n,s,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend?.create){const u={...a,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let c;l.length===5?c=l(e,t,n,s,u):c=l(e,t,n,s),c&&typeof c.then=="function"?c.then(d=>o(null,d)).catch(o):o(null,c)}catch(c){o(c)}else l(e,t,n,s,o,u)}!e||!e[0]||this.store.addResource(e[0],t,n,s)}}}const Te=()=>({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:r=>{let e={};if(typeof r[1]=="object"&&(e=r[1]),w(r[1])&&(e.defaultValue=r[1]),w(r[2])&&(e.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){const t=r[3]||r[2];Object.keys(t).forEach(n=>{e[n]=t[n]})}return e},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Fe=r=>(w(r.ns)&&(r.ns=[r.ns]),w(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),w(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),r.supportedLngs?.indexOf?.("cimode")<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r),ne=()=>{},Tt=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(t=>{typeof r[t]=="function"&&(r[t]=r[t].bind(r))})};class G extends fe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Fe(e),this.services={},this.logger=D,this.modules={external:[]},Tt(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(w(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=Te();this.options={...s,...this.options,...Fe(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?D.init(i(this.modules.logger),this.options):D.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=Rt;const d=new ke(this.options);this.store=new Ne(this.options.resources,this.options);const f=this.services;f.logger=D,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new $t(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=i(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Et(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new At(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(h){for(var g=arguments.length,y=new Array(g>1?g-1:0),m=1;m<g;m++)y[m-1]=arguments[m];e.emit(h,...y)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new ue(this.services,this.options),this.translator.on("*",function(h){for(var g=arguments.length,y=new Array(g>1?g-1:0),m=1;m<g;m++)y[m-1]=arguments[m];e.emit(h,...y)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=ne),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const u=Y(),l=()=>{const c=(d,f)=>{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),u.resolve(f),n(d,f)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),u}loadResources(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne;const s=w(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(s?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const i=[],a=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(l=>{l!=="cimode"&&i.indexOf(l)<0&&i.push(l)})};s?a(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>a(u)),this.options.preload?.forEach?.(o=>a(o)),this.services.backendConnector.load(i,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(o)})}else n(null)}reloadResources(e,t,n){const s=Y();return typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=ne),this.services.backendConnector.reload(e,t,i=>{s.resolve(),n(i)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Qe.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const s=Y();this.emit("languageChanging",e);const i=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},a=(u,l)=>{l?(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,s.resolve(function(){return n.t(...arguments)}),t&&t(u,function(){return n.t(...arguments)})},o=u=>{!e&&!u&&this.services.languageDetector&&(u=[]);const l=w(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);l&&(this.language||i(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector?.cacheUserLanguage?.(l)),this.loadResources(l,c=>{a(c,l)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),s}getFixedT(e,t,n){var s=this;const i=function(a,o){let u;if(typeof o!="object"){for(var l=arguments.length,c=new Array(l>2?l-2:0),d=2;d<l;d++)c[d-2]=arguments[d];u=s.options.overloadTranslationOptionHandler([a,o].concat(c))}else u={...o};u.lng=u.lng||i.lng,u.lngs=u.lngs||i.lngs,u.ns=u.ns||i.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||n||i.keyPrefix);const f=s.options.keySeparator||".";let h;return u.keyPrefix&&Array.isArray(a)?h=a.map(g=>`${u.keyPrefix}${f}${g}`):h=u.keyPrefix?`${u.keyPrefix}${f}${a}`:a,s.t(h,u)};return w(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.translator?.translate(...t)}exists(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.translator?.exists(...t)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
vendor: 4,442 bytes, line 1
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const a=(o,u)=>{const l=this.services.backendConnector.state[`${o}|${u}`];return l===-1||l===0||l===2};if(t.precheck){const o=t.precheck(this,a);if(o!==void 0)return o}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!s||a(i,e)))}loadNamespaces(e,t){const n=Y();return this.options.ns?(w(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{n.resolve(),t&&t(s)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=Y();w(e)&&(e=[e]);const s=this.options.preload||[],i=e.filter(a=>s.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=s.concat(i),this.loadResources(a=>{n.resolve(),t&&t(a)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=["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"],n=this.services?.languageUtils||new ke(Te());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new G(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},i=new G(s);if((e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(o=>{i[o]=this[o]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){const o=Object.keys(this.store.data).reduce((u,l)=>(u[l]={...this.store.data[l]},Object.keys(u[l]).reduce((c,d)=>(c[d]={...u[l][d]},c),{})),{});i.store=new Ne(o,s),i.services.resourceStore=i.store}return i.translator=new ue(i.services,s),i.translator.on("*",function(o){for(var u=arguments.length,l=new Array(u>1?u-1:0),c=1;c<u;c++)l[c-1]=arguments[c];i.emit(o,...l)}),i.init(s,t),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const R=G.createInstance();R.createInstance=G.createInstance;R.createInstance;R.dir;R.init;R.loadResources;R.reloadResources;R.use;R.changeLanguage;R.getFixedT;const zn=R.t;R.exists;R.setDefaultNamespace;R.hasLoadedNamespace;R.loadNamespaces;R.loadLanguages;var Ft={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const It=pt(Ft);var Dt=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function Ie(r){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=r.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(e.name=t[1],(It[t[1]]||r.charAt(r.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var n=r.indexOf("-->");return{type:"comment",comment:n!==-1?r.slice(4,n):""}}for(var s=new RegExp(Dt),i=null;(i=s.exec(r))!==null;)if(i[0].trim())if(i[1]){var a=i[1].trim(),o=[a,""];a.indexOf("=")>-1&&(o=a.split("=")),e.attrs[o[0]]=o[1],s.lastIndex--}else i[2]&&(e.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return e}var Ut=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Vt=/^\s*$/,Ht=Object.create(null);function Ge(r,e){switch(e.type){case"text":return r+e.content;case"tag":return r+="<"+e.name+(e.attrs?function(t){var n=[];for(var s in t)n.push(s+'="'+t[s]+'"');return n.length?" "+n.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?r:r+e.children.reduce(Ge,"")+"</"+e.name+">";
1case"comment":return r+"<!--"+e.comment+"-->"}}var Mt={parse:function(r,e){e||(e={}),e.components||(e.components=Ht);var t,n=[],s=[],i=-1,a=!1;if(r.indexOf("<")!==0){var o=r.indexOf("<");n.push({type:"text",content:o===-1?r:r.substring(0,o)})}for(var u,l=[];u=Ut.exec(r);)l.push(u);return l.forEach(function(c,d){var f=c[0];if(f&&!f.startsWith("<!--")){for(var h=0,g=0,y=-1,m=null,x=0;x<f.length;x++){var b=f.charAt(x);m?b===m&&(m=null):b==='"'||b==="'"?m=b:b==="<"?++h==2&&(y=x):b===">"&&g++}var S=y>-1&&/[a-zA-Z0-9\-!/]/.test(f.charAt(y+1));if(h>g&&S){var v=f.substring(0,y),P=f.substring(v.length);l[d][0]=P,l[d].index+=v.length}}}),l.forEach(function(c,d){var f=c[0];if(f){var h=c.index;if(a){if(f!=="</"+t.name+">")return;a=!1}var g,y,m=f.charAt(1)!=="/",x=f.startsWith("<!--"),b=h+f.length,S=r.charAt(b),v=l[d+1];if(S==="<"&&v){var P=r.substring(b,v.index);g=P.split("<").length>P.split(">").length}if(x){var O=Ie(f);if(i<0)return n.push(O),n;(y=s[i]).children.push(O);var p=r.slice(b,v?v.index:void 0);return p.length>0&&y.children.push({type:"text",content:p}),n}if(m&&(i++,(t=Ie(f)).type==="tag"&&e.components[t.name]&&(t.type="component",a=!0),t.voidElement||a||!S||S==="<"||t.children.push({type:"text",content:r.slice(b,v?v.index:void 0)}),i===0&&n.push(t),(y=s[i-1])&&y.children.push(t),s[i]=t),(!m||t.voidElement)&&(i>-1&&(t.voidElement||t.name===f.slice(2,-1))&&(i--,t=i===-1?n:s[i]),!a&&(S!=="<"||g)&&S)){y=i===-1?n:s[i].children;var C=v?v.index:-1,j=r.slice(b,C===-1?void 0:C);Vt.test(j)&&(j=" "),(C>-1&&i+y.length>=0||j!==" ")&&y.push({type:"text",content:j})}}}),n},stringify:function(r){return r.reduce(function(e,t){return e+Ge("",t)},"")}};const se=(r,e,t,n)=>{const s=[t,{code:e,...n||{}}];if(r?.services?.logger?.forward)return r.services.logger.forward(s,"warn","react-i18next::",!0);F(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),r?.services?.logger?.warn?r.services.logger.warn(...s):console?.warn&&console.warn(...s)},De={},Z=(r,e,t,n)=>{F(t)&&De[t]||(F(t)&&(De[t]=new Date),se(r,e,t,n))},Ze=(r,e)=>()=>{if(r.isInitialized)e();else{const t=()=>{setTimeout(()=>{r.off("initialized",t)},0),e()};r.on("initialized",t)}},me=(r,e,t)=>{r.loadNamespaces(e,Ze(r,t))},Ue=(r,e,t,n)=>{if(F(t)&&(t=[t]),r.options.preload&&r.options.preload.indexOf(e)>-1)return me(r,t,n);t.forEach(s=>{r.options.ns.indexOf(s)<0&&r.options.ns.push(s)}),r.loadLanguages(e,Ze(r,n))},Kt=(r,e,t={})=>!e.languages||!e.languages.length?(Z(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(r,{lng:t.lng,precheck:(n,s)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!s(n.isLanguageChangingTo,r))return!1}}),F=r=>typeof r=="string",U=r=>typeof r=="object"&&r!==null,qt=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,zt={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Bt=r=>zt[r],Xt=r=>r.replace(qt,Bt);let ye={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Xt};const Jt=(r={})=>{ye={...ye,...r}},et=()=>ye;let tt;const Wt=r=>{tt=r},xe=()=>tt,de=(r,e)=>{if(!r)return!1;const t=r.props?.children??r.children;return e?t.length>0:!!t},he=r=>{if(!r)return[];const e=r.props?.children??r.children;return r.props?.i18nIsDynamicList?J(e):e},_t=r=>Array.isArray(r)&&r.every(N.isValidElement),J=r=>Array.isArray(r)?r:[r],Yt=(r,e)=>{const t={...e};return t.props=Object.assign(r.props,e.props),t},nt=(r,e,t,n)=>{if(!r)return"";let s="";const i=J(r),a=e?.transSupportBasicHtmlNodes?e.transKeepBasicHtmlNodesFor??[]:[];return i.forEach((o,u)=>{if(F(o)){s+=`${o}`;return}if(N.isValidElement(o)){const{props:l,type:c}=o,d=Object.keys(l).length,f=a.indexOf(c)>-1,h=l.children;if(!h&&f&&!d){s+=`<${c}/>`;return}if(!h&&(!f||d)||l.i18nIsDynamicList){s+=`<${u}></${u}>`;return}if(f&&d===1&&F(h)){s+=`<${c}>${h}</${c}>`;return}const g=nt(h,e,t,n);s+=`<${u}>${g}</${u}>`;return}if(o===null){se(t,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:n});return}if(U(o)){const{format:l,...c}=o,d=Object.keys(c);if(d.length===1){const f=l?`${d[0]}, ${l}`:d[0];s+=`{{${f}}}`;return}se(t,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:n,child:o});return}se(t,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:n,child:o})}),s},Qt=(r,e,t,n,s,i,a)=>
1{if(t==="")return[];const o=s.transKeepBasicHtmlNodesFor||[],u=t&&new RegExp(o.map(x=>`<${x}`).join("|")).test(t);if(!r&&!e&&!u&&!a)return[t];const l=e??{},c=x=>{J(x).forEach(S=>{F(S)||(de(S)?c(he(S)):U(S)&&!N.isValidElement(S)&&Object.assign(l,S))})};c(r);const d=Mt.parse(`<0>${t}</0>`),f={...l,...i},h=(x,b,S)=>{const v=he(x),P=y(v,b.children,S);return _t(v)&&P.length===0||x.props?.i18nIsDynamicList?v:P},g=(x,b,S,v,P)=>{x.dummy?(x.children=b,S.push(N.cloneElement(x,{key:v},P?void 0:b))):S.push(...N.Children.map([x],O=>{const p={...O.props};return delete p.i18nIsDynamicList,N.createElement(O.type,{...p,key:v,ref:O.props.ref??O.ref},P?null:b)}))},y=(x,b,S)=>{const v=J(x);return J(b).reduce((O,p,C)=>{const j=p.children?.[0]?.content&&n.services.interpolator.interpolate(p.children[0].content,f,n.language);if(p.type==="tag"){let k=v[parseInt(p.name,10)];!k&&e&&(k=e[p.name]),S.length===1&&!k&&(k=S[0][p.name]),k||(k={});const L=Object.keys(p.attrs).length!==0?Yt({props:p.attrs},k):k,E=N.isValidElement(L),H=E&&de(p,!0)&&!p.voidElement,A=u&&U(L)&&L.dummy&&!E,I=U(e)&&Object.hasOwnProperty.call(e,p.name);if(F(L)){const $=n.services.interpolator.interpolate(L,f,n.language);O.push($)}else if(de(L)||H){const $=h(L,p,S);g(L,$,O,C)}else if(A){const $=y(v,p.children,S);g(L,$,O,C)}else if(Number.isNaN(parseFloat(p.name)))if(I){const $=h(L,p,S);g(L,$,O,C,p.voidElement)}else if(s.transSupportBasicHtmlNodes&&o.indexOf(p.name)>-1)if(p.voidElement)O.push(N.createElement(p.name,{key:`${p.name}-${C}`}));else{const $=y(v,p.children,S);O.push(N.createElement(p.name,{key:`${p.name}-${C}`},$))}else if(p.voidElement)O.push(`<${p.name} />`);else{const $=y(v,p.children,S);O.push(`<${p.name}>${$}</${p.name}>`)}else if(U(L)&&!E){const $=p.children[0]?j:null;$&&O.push($)}else g(L,j,O,C,p.children.length!==1||!j)}else if(p.type==="text"){const k=s.transWrapTextNodes,L=a?s.unescape(n.services.interpolator.interpolate(p.content,f,n.language)):n.services.interpolator.interpolate(p.content,f,n.language);k?O.push(N.createElement(k,{key:`${p.name}-${C}`},L)):O.push(L)}return O},[])},m=y([{dummy:!0,children:r||[]}],d,J(r||[]));return he(m[0])},rt=(r,e,t)=>{const n=r.key||e,s=N.cloneElement(r,{key:n});if(!s.props||!s.props.children||t.indexOf(`${e}/>`)<0&&t.indexOf(`${e} />`)<0)return s;function i(){return N.createElement(N.Fragment,null,s)}return N.createElement(i,{key:n})},Gt=(r,e)=>r.map((t,n)=>rt(t,n,e)),Zt=(r,e)=>{const t={};return Object.keys(r).forEach(n=>{Object.assign(t,{[n]:rt(r[n],n,e)})}),t},en=(r,e,t,n)=>r?Array.isArray(r)?Gt(r,e):U(r)?Zt(r,e):(Z(t,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:n}),null):null,tn=r=>!U(r)||Array.isArray(r)?!1:Object.keys(r).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0);function nn({children:r,count:e,parent:t,i18nKey:n,context:s,tOptions:i={},values:a,defaults:o,components:u,ns:l,i18n:c,t:d,shouldUnescape:f,...h}){const g=c||xe();if(!g)return Z(g,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:n}),r;const y=d||g.t.bind(g)||(A=>A),m={...et(),...g.options?.react};let x=l||y.ns||g.options?.defaultNS;x=F(x)?[x]:x||["translation"];const b=nt(r,m,g,n),S=o||b||m.transEmptyNodeValue||n,{hashTransKey:v}=m,P=n||(v?v(b||S):b||S);g.options?.interpolation?.defaultVariables&&(a=a&&Object.keys(a).length>0?{...a,...g.options.interpolation.defaultVariables}:{...g.options.interpolation.defaultVariables});const O=a||e!==void 0&&!g.options?.interpolation?.alwaysFormat||!r?i.interpolation:{interpolation:{...i.interpolation,prefix:"#$?",suffix:"?$#"}},p={...i,context:s||i.context,count:e,...a,...O,defaultValue:S,ns:x},C=P?y(P,p):S,j=en(u,C,g,n);let k=j||r,L=null;tn(j)&&(L=j,k=r);const E=Qt(k,L,C,g,m,p,f),H=t??m.defaultTransParent;return H?N.createElement(H,h,E):E}const Bn={type:"3rdParty",init(r){Jt(r.options.react),Wt(r)}},st=N.createContext();class rn{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function Xn({children:r,count:e,parent:t,i18nKey:n,context:s,tOptions:i={}
1,values:a,defaults:o,components:u,ns:l,i18n:c,t:d,shouldUnescape:f,...h}){const{i18n:g,defaultNS:y}=N.useContext(st)||{},m=c||g||xe(),x=d||m?.t.bind(m);return nn({children:r,count:e,parent:t,i18nKey:n,context:s,tOptions:i,values:a,defaults:o,components:u,ns:l||x?.ns||y||m?.options?.defaultNS,i18n:m,t:d,shouldUnescape:f,...h})}const sn=(r,e)=>{const t=N.useRef();return N.useEffect(()=>{t.current=e?t.current:r},[r,e]),t.current},it=(r,e,t,n)=>r.getFixedT(e,t,n),an=(r,e,t,n)=>N.useCallback(it(r,e,t,n),[r,e,t,n]),Jn=(r,e={})=>{const{i18n:t}=e,{i18n:n,defaultNS:s}=N.useContext(st)||{},i=t||n||xe();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new rn),!i){Z(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const v=(O,p)=>F(p)?p:U(p)&&F(p.defaultValue)?p.defaultValue:Array.isArray(O)?O[O.length-1]:O,P=[v,{},!1];return P.t=v,P.i18n={},P.ready=!1,P}i.options.react?.wait&&Z(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...et(),...i.options.react,...e},{useSuspense:o,keyPrefix:u}=a;let l=r||s||i.options?.defaultNS;l=F(l)?[l]:l||["translation"],i.reportNamespaces.addUsedNamespaces?.(l);const c=(i.isInitialized||i.initializedStoreOnce)&&l.every(v=>Kt(v,i,a)),d=an(i,e.lng||null,a.nsMode==="fallback"?l:l[0],u),f=()=>d,h=()=>it(i,e.lng||null,a.nsMode==="fallback"?l:l[0],u),[g,y]=N.useState(f);let m=l.join();e.lng&&(m=`${e.lng}${m}`);const x=sn(m),b=N.useRef(!0);N.useEffect(()=>{const{bindI18n:v,bindI18nStore:P}=a;b.current=!0,!c&&!o&&(e.lng?Ue(i,e.lng,l,()=>{b.current&&y(h)}):me(i,l,()=>{b.current&&y(h)})),c&&x&&x!==m&&b.current&&y(h);const O=()=>{b.current&&y(h)};return v&&i?.on(v,O),P&&i?.store.on(P,O),()=>{b.current=!1,i&&v&&v?.split(" ").forEach(p=>i.off(p,O)),P&&i&&P.split(" ").forEach(p=>i.store.off(p,O))}},[i,m]),N.useEffect(()=>{b.current&&c&&y(f)},[i,u,c]);const S=[g,i,c];if(S.t=g,S.i18n=i,S.ready=c,c||!c&&!o)return S;throw new Promise(v=>{e.lng?Ue(i,e.lng,l,()=>v()):me(i,l,()=>v())})};function on(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=un(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var n=0,s=function(){};return{s,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(l){throw l},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,o=!1;return{s:function(){t=t.call(r)},n:function(){var l=t.next();return a=l.done,l},e:function(l){o=!0,i=l},f:function(){try{a||t.return==null||t.return()}finally{if(o)throw i}}}}function un(r,e){if(r){if(typeof r=="string")return Ve(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ve(r,e):void 0}}function Ve(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t<e;t++)n[t]=r[t];return n}function be(r){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},be(r)}var at=["__proto__","constructor","prototype"];function ot(r){return!(typeof r!="string"||r.length===0||r.length>128||at.indexOf(r)>-1||r.indexOf("..")>-1||r.indexOf("\\")>-1||/[?#%\s@]/.test(r)||/[\x00-\x1F\x7F]/.test(r))}function ut(r){return!(!ot(r)||r.indexOf("/")>-1)}function ln(r){return ot(r)}var fn={lng:ut,ns:ln};function re(r){return typeof r!="string"?r:r.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function cn(r){if(typeof r!="string"||r.length===0)return r;try{var e=new URL(r);return e.username||e.password?(e.username="",e.password="",e.toString()):r}catch{return r.replace(/(\/\/)[^/@\s]+@/g,"$1")}}function lt(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":be(XMLHttpRequest))==="object"}function dn(r){return!!r&&typeof r.then=="function"}function hn(r){return dn(r)?r:Promise.resolve(r)}var gn=/\{\{(.+?)\}\}/g;function He(r,e){var t=!1,n=r.replace(gn,function(s,i){var a=i.trim();if(at.indexOf(a)>-1)return s;var o=e[a];if(o==null)return s;var u=fn[a]||ut,l=String(o).split("+"),c=on(l),d;try{for(c.s();!(d=c.n()).done;){var f=d.value;if(!u(f))return t=!0,s}}catch(h){c.e(h)}finally{c.f()}return l.join("+")});return t?null:n}function Me(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,n)}return t}function Ke(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};
vendor: 9,104 bytes, line 2
2e%2?Me(Object(t),!0).forEach(function(n){pn(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Me(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function pn(r,e,t){return(e=mn(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function mn(r){var e=yn(r,"string");return K(e)=="symbol"?e:e+""}function yn(r,e){if(K(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(K(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function K(r){"@babel/helpers - typeof";return K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(r)}var V=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?V=global.fetch:typeof window<"u"&&window.fetch&&(V=window.fetch);var ee;lt()&&(typeof global<"u"&&global.XMLHttpRequest?ee=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(ee=window.XMLHttpRequest));var le;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?le=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(le=window.ActiveXObject));typeof V!="function"&&(V=void 0);if(!V&&!ee&&!le)try{mt(()=>import("./browser-ponyfill-eycIKcbL.js").then(r=>r.b),__vite__mapDeps([0,1])).then(function(r){V=r.default}).catch(function(){})}catch{}var ft=["__proto__","constructor","prototype"],ve=function(e,t){if(t&&K(t)==="object"){for(var n="",s=0,i=Object.keys(t);s<i.length;s++){var a=i[s];ft.indexOf(a)>-1||(n+="&"+encodeURIComponent(a)+"="+encodeURIComponent(t[a]))}if(!n)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+n.slice(1)}return e},qe=function(e,t,n,s){var i=function(u){if(!u.ok)return n(u.statusText||"Error",{status:u.status});u.text().then(function(l){n(null,{status:u.status,data:l})}).catch(n)};if(s){var a=s(e,t);if(a instanceof Promise){a.then(i).catch(n);return}}typeof fetch=="function"?fetch(e,t).then(i).catch(n):V(e,t).then(i).catch(n)},bn=function(e,t,n,s){e.queryStringParams&&(t=ve(t,e.queryStringParams));var i=Ke({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(i["Content-Type"]="application/json");var a=typeof e.requestOptions=="function"?e.requestOptions(n):e.requestOptions,o=Ke({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:i},e._omitFetchOptions?{}:a),u=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{qe(t,o,s,u)}catch(l){if(!a||Object.keys(a).length===0||!l.message||l.message.indexOf("not implemented")<0)return s(l);try{Object.keys(a).forEach(function(c){delete o[c]}),qe(t,o,s,u),e._omitFetchOptions=!0}catch(c){s(c)}}},vn=function(e,t,n,s){n&&K(n)==="object"&&(n=ve("",n).slice(1)),e.queryStringParams&&(t=ve(t,e.queryStringParams));try{var i=ee?new ee:new le("MSXML2.XMLHTTP.3.0");i.open(n?"POST":"GET",t,1),e.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!e.withCredentials,n&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var a=e.customHeaders;if(a=typeof a=="function"?a():a,a)for(var o=0,u=Object.keys(a);o<u.length;o++){var l=u[o];ft.indexOf(l)>-1||i.setRequestHeader(l,a[l])}i.onreadystatechange=function(){i.readyState>3&&s(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(n)}catch(c){console&&console.log(c)}},xn=function(e,t,n,s){if(typeof n=="function"&&(s=n,n=void 0),s=s||function(){},V&&t.indexOf("file:")!==0)return bn(e,t,n,s);if(lt()||typeof ActiveXObject=="function")return vn(e,t,n,s);s(new Error("No fetch and no xhr implementation found!"))};function W(r){"@babel/helpers - typeof";return W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(r)}function ze(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,n)}return t}function ge(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ze(Object(t),!0).forEach(function(n){ct(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ze(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Sn(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Be(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,dt(n.key),n)}}function wn(r,e,t){return e&&Be(r.prototype,e),t&&Be(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function ct(r,e,t){return(e=dt(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function dt(r){var e=On(r,"string");return W(e)=="symbol"?e:e+""}function On(r,e){if(W(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(W(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Ln=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,n,s){return ct({},n,s||"")},parseLoadPayload:function(t,n){},request:xn,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Pn=function(){function r(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Sn(this,r),this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}return wn(r,[{key:"init",value:function(t){var n=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=t,this.options=ge(ge(ge({},Ln()),this.options||{}),s),this.allOptions=i,this.services&&this.options.reloadInterval){var a=setInterval(function(){return n.reload()},this.options.reloadInterval);W(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(t,n,s){this._readAny(t,t,n,n,s)}},{key:"read",value:function(t,n,s){this._readAny([t],t,[n],n,s)}},{key:"_readAny",value:function(t,n,s,i,a){var o=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(t,s)),u=hn(u),u.then(function(l){if(!l)return a(null,{});var c=He(l,{lng:t.join("+"),ns:s.join("+")});if(c==null){var d=t.map(re).join(", "),f=s.map(re).join(", ");return a(new Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+d+"] namespaces=["+f+"]"),!1)}o.loadUrl(c,a,n,i)})}},{key:"loadUrl",value:function(t,n,s,i){var a=this,o=typeof s=="string"?[s]:s,u=typeof i=="string"?[i]:i,l=this.options.parseLoadPayload(o,u),c=re(cn(t));this.options.request(this.options,t,l,function(d,f){if(f&&(f.status>=500&&f.status<600||!f.status))return n("failed loading "+c+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return n("failed loading "+c+"; status code: "+f.status,!1);if(!f&&d&&d.message){var h=d.message.toLowerCase(),g=["failed","fetch","network","load"].find(function(x){return h.indexOf(x)>-1});if(g)return n("failed loading "+c+": "+re(d.message),!0)}if(d)return n(d,!1);var y,m;try{typeof f.data=="string"?y=a.options.parse(f.data,s,i):y=f.data}catch{m="failed parsing "+c+" to json"}if(m)return n(m,!1);n(null,y)})}},{key:"create",value:function(t,n,s,i,a){var o=this;if(this.options.addPath){typeof t=="string"&&(t=[t]);var u=this.options.parsePayload(n,s,i),l=0,c=[],d=[];t.forEach(function(f){var h=o.options.addPath;typeof o.options.addPath=="function"&&(h=o.options.addPath(f,n));var g=He(h,{lng:f,ns:n});if(g==null){l+=1,a&&l===t.length&&a(c,d);return}o.options.request(o.options,g,u,function(y,m){l+=1,c.push(y),d.push(m),l===t.length&&typeof a=="function"&&a(c,d)})})}}},{key:"reload",value:function(){var t=this,n=this.services,s=n.backendConnector,i=n.languageUtils,a=n.logger,o=s.language;if(!(o&&o.toLowerCase()==="cimode")){var u=[],l=function(d){var f=i.toResolveHierarchy(d);f.forEach(function(h){u.indexOf(h)<0&&u.push(h)})};
2l(o),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return l(c)}),u.forEach(function(c){t.allOptions.ns.forEach(function(d){s.read(c,d,"read",null,null,function(f,h){f&&a.warn("loading namespace ".concat(d," for language ").concat(c," failed"),f),!f&&h&&a.log("loaded namespace ".concat(d," for language ").concat(c),h),s.loaded("".concat(c,"|").concat(d),f,h)})})})}}}])}();Pn.type="backend";const{slice:Cn,forEach:Nn}=[];function $n(r){return Nn.call(Cn.call(arguments,1),e=>{if(e)for(const t in e)r[t]===void 0&&(r[t]=e[t])}),r}function En(r){return typeof r!="string"?!1:[/<\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(r))}const Xe=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,kn=function(r,e){const n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},s=encodeURIComponent(e);let i=`${r}=${s}`;if(n.maxAge>0){const a=n.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(a)}`}if(n.domain){if(!Xe.test(n.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${n.domain}`}if(n.path){if(!Xe.test(n.path))throw new TypeError("option path is invalid");i+=`; Path=${n.path}`}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invali
2d");i+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(i+="; Partitioned"),i},Je={create(r,e,t,n){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};t&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+t*60*1e3)),n&&(s.domain=n),document.cookie=kn(r,e,s)},read(r){const e=`${r}=`,t=document.cookie.split(";");for(let n=0;n<t.length;n++){let s=t[n];for(;s.charAt(0)===" ";)s=s.substring(1,s.length);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return null},remove(r,e){this.create(r,"",-1,e)}};var Rn={name:"cookie",lookup(r){let{lookupCookie:e}=r;if(e&&typeof document<"u")return Je.read(e)||void 0},cacheUserLanguage(r,e){let{lookupCookie:t,cookieMinutes:n,cookieDomain:s,cookieOptions:i}=e;t&&typeof document<"u"&&Je.create(t,r,n,s,i)}},jn={name:"querystring",lookup(r){let{lookupQuerystring:e}=r,t;if(typeof window<"u"){let{search:n}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));const i=n.substring(1).split("&");for(let a=0;a<i.length;a++){const o=i[a].indexOf("=");o>0&&i[a].substring(0,o)===e&&(t=i[a].substring(o+1))}}return t}},An={name:"hash",lookup(r){let{lookupHash:e,lookupFromHashIndex:t}=r,n;if(typeof window<"u"){const{hash:s}=window.location;if(s&&s.length>2){const i=s.substring(1);if(e){const a=i.split("&");for(let o=0;o<a.length;o++){const u=a[o].indexOf("=");u>0&&a[o].substring(0,u)===e&&(n=a[o].substring(u+1))}}if(n)return n;if(!n&&t>-1){const a=s.match(/\/([a-zA-Z-]*)/g);return Array.isArray(a)?a[typeof t=="number"?t:0]?.replace("/",""):void 0}}}return n}};let B=null;const We=()=>{if(B!==null)return B;try{if(B=typeof window<"u"&&window.localStorage!==null,!B)return!1;const r="i18next.translate.boo";window.localStorage.setItem(r,"foo"),window.localStorage.removeItem(r)}catch{B=!1}return B};var Tn={name:"localStorage",lookup(r){let{lookupLocalStorage:e}=r;if(e&&We())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(r,e){let{lookupLocalStorage:t}=e;t&&We()&&window.localStorage.setItem(t,r)}};let X=null;const _e=()=>{if(X!==null)return X;try{if(X=typeof window<"u"&&window.sessionStorage!==null,!X)return!1;const r="i18next.translate.boo";window.sessionStorage.setItem(r,"foo"),window.sessionStorage.removeItem(r)}catch{X=!1}return X};var Fn={name:"sessionStorage",lookup(r){let{lookupSessionStorage:e}=r;if(e&&_e())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(r,e){let{lookupSessionStorage:t}=e;t&&_e()&&window.sessionStorage.setItem(t,r)}},In={name:"navigator",lookup(r){const e=[];if(typeof navigator<"u"){const{languages:t,userLanguage:n,language:s}=navigator;if(t)for(let i=0;i<t.length;i++)e.push(t[i]);n&&e.push(n),s&&e.push(s)}return e.length>0?e:void 0}},Dn={name:"htmlTag",lookup(r){let{htmlTag:e}=r,t;const n=e||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(t=n.getAttribute("lang")),t}},Un={name:"path",lookup(r){let{lookupFromPathIndex:e}=r;if(typeof window>"u")return;const t=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(t)?t[typeof e=="number"?e:0]?.replace("/",""):void 0}},Vn={name:"subdomain",lookup(r){let{lookupFromSubdomainIndex:e}=r;const t=typeof e=="number"?e+1:1,n=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[t]}};let ht=!1;try{document.cookie,ht=!0}catch{}const gt=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];ht||gt.splice(1,1);const Hn=()=>({order:gt,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:r=>r});class Mn{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=$n(t,this.options||{},Hn()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=s=>s.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(Rn),this.addDetector(jn),this.addDetector(Tn),this.addDetector(Fn),this.addDetector(In),this.addDetector(Dn),this.addDetector(Un),this.addDetector(Vn),this.addDetector(An)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>
vendor: 1,010 bytes, lines 2-8
20&&arguments[0]!==void 0?arguments[0]:this.options.order,t=[];return e.forEach(n=>{if(this.detectors[n]){let s=this.detectors[n].lookup(this.options);s&&typeof s=="string"&&(s=[s]),s&&(t=t.concat(s))}}),t=t.filter(n=>n!=null&&!En(n)).map(n=>this.options.convertDetectedLanguage(n)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(n=>{this.detectors[n]&&this.detectors[n].cacheUserLanguage(e,this.options)}))}}Mn.type="languageDetector";export{Pn as B,Xn as T,Mn as a,Bn as b,R as i,zn as t,Jn as u};
3function __vite__mapDeps(indexes) {
4  if (!__vite__mapDeps.viteFileDeps) {
5    __vite__mapDeps.viteFileDeps = ["assets/browser-ponyfill-eycIKcbL.js","assets/vendor-react-TOOSQ9Q-.js"]
6  }
7  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
8}

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.