@airporting/integrations-app 0.4.123 → 0.4.124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mf/7286.js CHANGED
@@ -7,4 +7,4 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var React=__webpack_require__(7060);function is(x,y){return x===y&&(0!==x||1/x===1/y)||x!==x&&y!==y}var objectIs="function"==typeof Object.is?Object.is:is,useState=React.useState,useEffect=React.useEffect,useLayoutEffect=React.useLayoutEffect,useDebugValue=React.useDebugValue;function useSyncExternalStore$2(subscribe,getSnapshot){var value=getSnapshot(),_useState=useState({inst:{value:value,getSnapshot:getSnapshot}}),inst=_useState[0].inst,forceUpdate=_useState[1];useLayoutEffect(function(){inst.value=value;inst.getSnapshot=getSnapshot;checkIfSnapshotChanged(inst)&&forceUpdate({inst:inst})},[subscribe,value,getSnapshot]);useEffect(function(){checkIfSnapshotChanged(inst)&&forceUpdate({inst:inst});return subscribe(function(){checkIfSnapshotChanged(inst)&&forceUpdate({inst:inst})})},[subscribe]);useDebugValue(value);return value}function checkIfSnapshotChanged(inst){var latestGetSnapshot=inst.getSnapshot;inst=inst.value;try{var nextValue=latestGetSnapshot();return!objectIs(inst,nextValue)}catch(error){return!0}}function useSyncExternalStore$1(subscribe,getSnapshot){return getSnapshot()}var shim="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?useSyncExternalStore$1:useSyncExternalStore$2;exports.useSyncExternalStore=void 0!==React.useSyncExternalStore?React.useSyncExternalStore:shim},9888:function(module,__unused_webpack_exports,__webpack_require__){"use strict";module.exports=__webpack_require__(8493)},4915:function(module){module.exports={area:true,base:true,br:true,col:true,embed:true,hr:true,img:true,input:true,link:true,meta:true,param:true,source:true,track:true,wbr:true}},8917:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{useSSR:()=>useSSR,withSSR:()=>withSSR,I18nextProvider:()=>I18nextProvider,selectOrdinal:()=>selectOrdinal,getI18n:()=>getI18n,date:()=>date,initReactI18next:()=>initReactI18next,useTranslation:()=>useTranslation,Translation:()=>Translation,select:()=>es_select,setI18n:()=>setI18n,withTranslation:()=>withTranslation,TransWithoutContext:()=>Trans,setDefaults:()=>setDefaults,IcuTrans:()=>IcuTrans,getDefaults:()=>getDefaults,time:()=>time,I18nContext:()=>I18nContext,number:()=>number,plural:()=>plural,getInitialProps:()=>getInitialProps,Trans:()=>Trans_Trans,IcuTransWithoutContext:()=>IcuTransWithoutContext,composeInitialProps:()=>composeInitialProps});var index_js_=__webpack_require__(7060);var i18next_js_=__webpack_require__(75);var void_elements=__webpack_require__(4915);var void_elements_default=/*#__PURE__*/__webpack_require__.n(void_elements);var html_parse_stringify_module_t=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function html_parse_stringify_module_n(n){var r={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},i=n.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(r.name=i[1],(void_elements_default()[i[1]]||"/"===n.charAt(n.length-2))&&(r.voidElement=!0),r.name.startsWith("!--"))){var s=n.indexOf("--\x3e");return{type:"comment",comment:-1!==s?n.slice(4,s):""}}for(var a=new RegExp(html_parse_stringify_module_t),c=null;null!==(c=a.exec(n));)if(c[0].trim())if(c[1]){var o=c[1].trim(),l=[o,""];o.indexOf("=")>-1&&(l=o.split("=")),r.attrs[l[0]]=l[1],a.lastIndex--}else c[2]&&(r.attrs[c[2]]=c[3].trim().substring(1,c[3].length-1));return r}var html_parse_stringify_module_r=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,html_parse_stringify_module_i=/^\s*$/,html_parse_stringify_module_s=Object.create(null);function html_parse_stringify_module_a(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(html_parse_stringify_module_a,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var html_parse_stringify_module_c={parse:function(e,t){t||(t={}),t.components||(t.components=html_parse_stringify_module_s);var a,c=[],o=[],l=-1,m=!1;if(0!==e.indexOf("<")){var u=e.indexOf("<");c.push({type:"text",content:-1===u?e:e.substring(0,u)})}return e.replace(html_parse_stringify_module_r,function(r,s){if(m){if(r!=="</"+a.name+">")return;m=!1}var u,f="/"!==r.charAt(1),h=r.startsWith("\x3c!--"),p=s+r.length,d=e.charAt(p);if(h){var v=html_parse_stringify_module_n(r);return l<0?(c.push(v),c):((u=o[l]).children.push(v),c)}if(f&&(l++,"tag"===(a=html_parse_stringify_module_n(r)).type&&t.components[a.name]&&(a.type="component",m=!0),a.voidElement||m||!d||"<"===d||a.children.push({type:"text",content:e.slice(p,e.indexOf("<",p))}),0===l&&c.push(a),(u=o[l-1])&&u.children.push(a),o[l]=a),(!f||a.voidElement)&&(l>-1&&(a.voidElement||a.name===r.slice(2,-1))&&(l--,a=-1===l?c:o[l]),!m&&"<"!==d&&d)){u=-1===l?c:o[l].children;var x=e.indexOf("<",p),g=e.slice(p,-1===x?void 0:x);html_parse_stringify_module_i.test(g)&&(g=" "),(x>-1&&l+u.length>=0||" "!==g)&&u.push({type:"text",content:g})}}),c},stringify:function(e){return e.reduce(function(e,t){return e+html_parse_stringify_module_a("",t)},"")}};const html_parse_stringify_module=html_parse_stringify_module_c;const warn=(i18n,code,msg,rest)=>{const args=[msg,{code,...rest||{}}];if(i18n?.services?.logger?.forward)return i18n.services.logger.forward(args,"warn","react-i18next::",true);if(isString(args[0]))args[0]=`react-i18next:: ${args[0]}`;if(i18n?.services?.logger?.warn)i18n.services.logger.warn(...args);else if(console?.warn)console.warn(...args)};const alreadyWarned={};const warnOnce=(i18n,code,msg,rest)=>{if(isString(msg)&&alreadyWarned[msg])return;if(isString(msg))alreadyWarned[msg]=new Date;warn(i18n,code,msg,rest)};const loadedClb=(i18n,cb)=>()=>{if(i18n.isInitialized)cb();else{const initialized=()=>{setTimeout(()=>{i18n.off("initialized",initialized)},0);cb()};i18n.on("initialized",initialized)}};const loadNamespaces=(i18n,ns,cb)=>{i18n.loadNamespaces(ns,loadedClb(i18n,cb))};const loadLanguages=(i18n,lng,ns,cb)=>{if(isString(ns))ns=[ns];if(i18n.options.preload&&i18n.options.preload.indexOf(lng)>-1)return loadNamespaces(i18n,ns,cb);ns.forEach(n=>{if(i18n.options.ns.indexOf(n)<0)i18n.options.ns.push(n)});i18n.loadLanguages(lng,loadedClb(i18n,cb))};const hasLoadedNamespace=(ns,i18n,options={})=>{if(!i18n.languages||!i18n.languages.length){warnOnce(i18n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i18n.languages});return true}return i18n.hasLoadedNamespace(ns,{lng:options.lng,precheck:(i18nInstance,loadNotPending)=>{if(options.bindI18n&&options.bindI18n.indexOf("languageChanging")>-1&&i18nInstance.services.backendConnector.backend&&i18nInstance.isLanguageChangingTo&&!loadNotPending(i18nInstance.isLanguageChangingTo,ns))return false}})};const getDisplayName=Component=>Component.displayName||Component.name||(isString(Component)&&Component.length>0?Component:"Unknown");const isString=obj=>"string"==typeof obj;const isObject=obj=>"object"==typeof obj&&null!==obj;const matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;const htmlEntities={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"};const unescapeHtmlEntity=m=>htmlEntities[m];const unescape_unescape=text=>text.replace(matchHtmlEntity,unescapeHtmlEntity);let defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:true,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:true,unescape:unescape_unescape};const setDefaults=(options={})=>{defaultOptions={...defaultOptions,...options}};const getDefaults=()=>defaultOptions;let i18nInstance_i18nInstance;const setI18n=instance=>{i18nInstance_i18nInstance=instance};const getI18n=()=>i18nInstance_i18nInstance;const hasChildren=(node,checkLength)=>{if(!node)return false;const base=node.props?.children??node.children;if(checkLength)return base.length>0;return!!base};const getChildren=node=>{if(!node)return[];const children=node.props?.children??node.children;return node.props?.i18nIsDynamicList?getAsArray(children):children};const hasValidReactChildren=children=>Array.isArray(children)&&children.every(index_js_.isValidElement);const getAsArray=data=>Array.isArray(data)?data:[data];const mergeProps=(source,target)=>{const newTarget={...target};newTarget.props=Object.assign(source.props,target.props);return newTarget};const nodesToString=(children,i18nOptions,i18n,i18nKey)=>{if(!children)return"";let stringNode="";const childrenArray=getAsArray(children);const keepArray=i18nOptions?.transSupportBasicHtmlNodes?i18nOptions.transKeepBasicHtmlNodesFor??[]:[];childrenArray.forEach((child,childIndex)=>{if(isString(child)){stringNode+=`${child}`;return}if((0,index_js_.isValidElement)(child)){const{props,type}=child;const childPropsCount=Object.keys(props).length;const shouldKeepChild=keepArray.indexOf(type)>-1;const childChildren=props.children;if(!childChildren&&shouldKeepChild&&!childPropsCount){stringNode+=`<${type}/>`;return}if(!childChildren&&(!shouldKeepChild||childPropsCount)||props.i18nIsDynamicList){stringNode+=`<${childIndex}></${childIndex}>`;return}if(shouldKeepChild&&1===childPropsCount&&isString(childChildren)){stringNode+=`<${type}>${childChildren}</${type}>`;return}const content=nodesToString(childChildren,i18nOptions,i18n,i18nKey);stringNode+=`<${childIndex}>${content}</${childIndex}>`;return}if(null===child)return void warn(i18n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey});if(isObject(child)){const{format,...clone}=child;const keys=Object.keys(clone);if(1===keys.length){const value=format?`${keys[0]}, ${format}`:keys[0];stringNode+=`{{${value}}}`;return}warn(i18n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey,child});return}warn(i18n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey,child})});return stringNode};const renderNodes=(children,knownComponentsMap,targetString,i18n,i18nOptions,combinedTOpts,shouldUnescape)=>{if(""===targetString)return[];const keepArray=i18nOptions.transKeepBasicHtmlNodesFor||[];const emptyChildrenButNeedsHandling=targetString&&new RegExp(keepArray.map(keep=>`<${keep}`).join("|")).test(targetString);if(!children&&!knownComponentsMap&&!emptyChildrenButNeedsHandling&&!shouldUnescape)return[targetString];const data=knownComponentsMap??{};const getData=childs=>{const childrenArray=getAsArray(childs);childrenArray.forEach(child=>{if(isString(child))return;if(hasChildren(child))getData(getChildren(child));else if(isObject(child)&&!(0,index_js_.isValidElement)(child))Object.assign(data,child)})};getData(children);const ast=html_parse_stringify_module.parse(`<0>${targetString}</0>`);const opts={...data,...combinedTOpts};const renderInner=(child,node,rootReactNode)=>{const childs=getChildren(child);const mappedChildren=mapAST(childs,node.children,rootReactNode);return hasValidReactChildren(childs)&&0===mappedChildren.length||child.props?.i18nIsDynamicList?childs:mappedChildren};const pushTranslatedJSX=(child,inner,mem,i,isVoid)=>{if(child.dummy){child.children=inner;mem.push((0,index_js_.cloneElement)(child,{key:i},isVoid?void 0:inner))}else mem.push(...index_js_.Children.map([child],c=>{const props={...c.props};delete props.i18nIsDynamicList;return(0,index_js_.createElement)(c.type,{...props,key:i,ref:c.props.ref??c.ref},isVoid?null:inner)}))};const mapAST=(reactNode,astNode,rootReactNode)=>{const reactNodes=getAsArray(reactNode);const astNodes=getAsArray(astNode);return astNodes.reduce((mem,node,i)=>{const translationContent=node.children?.[0]?.content&&i18n.services.interpolator.interpolate(node.children[0].content,opts,i18n.language);if("tag"===node.type){let tmp=reactNodes[parseInt(node.name,10)];if(!tmp&&knownComponentsMap)tmp=knownComponentsMap[node.name];if(1===rootReactNode.length&&!tmp)tmp=rootReactNode[0][node.name];if(!tmp)tmp={};const child=0!==Object.keys(node.attrs).length?mergeProps({props:node.attrs},tmp):tmp;const isElement=(0,index_js_.isValidElement)(child);const isValidTranslationWithChildren=isElement&&hasChildren(node,true)&&!node.voidElement;const isEmptyTransWithHTML=emptyChildrenButNeedsHandling&&isObject(child)&&child.dummy&&!isElement;const isKnownComponent=isObject(knownComponentsMap)&&Object.hasOwnProperty.call(knownComponentsMap,node.name);if(isString(child)){const value=i18n.services.interpolator.interpolate(child,opts,i18n.language);mem.push(value)}else if(hasChildren(child)||isValidTranslationWithChildren){const inner=renderInner(child,node,rootReactNode);pushTranslatedJSX(child,inner,mem,i)}else if(isEmptyTransWithHTML){const inner=mapAST(reactNodes,node.children,rootReactNode);pushTranslatedJSX(child,inner,mem,i)}else if(Number.isNaN(parseFloat(node.name)))if(isKnownComponent){const inner=renderInner(child,node,rootReactNode);pushTranslatedJSX(child,inner,mem,i,node.voidElement)}else if(i18nOptions.transSupportBasicHtmlNodes&&keepArray.indexOf(node.name)>-1)if(node.voidElement)mem.push((0,index_js_.createElement)(node.name,{key:`${node.name}-${i}`}));else{const inner=mapAST(reactNodes,node.children,rootReactNode);mem.push((0,index_js_.createElement)(node.name,{key:`${node.name}-${i}`},inner))}else if(node.voidElement)mem.push(`<${node.name} />`);else{const inner=mapAST(reactNodes,node.children,rootReactNode);mem.push(`<${node.name}>${inner}</${node.name}>`)}else if(isObject(child)&&!isElement){const content=node.children[0]?translationContent:null;if(content)mem.push(content)}else pushTranslatedJSX(child,translationContent,mem,i,1!==node.children.length||!translationContent)}else if("text"===node.type){const wrapTextNodes=i18nOptions.transWrapTextNodes;const content=shouldUnescape?i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content,opts,i18n.language)):i18n.services.interpolator.interpolate(node.content,opts,i18n.language);if(wrapTextNodes)mem.push((0,index_js_.createElement)(wrapTextNodes,{key:`${node.name}-${i}`},content));else mem.push(content)}return mem},[])};const result=mapAST([{dummy:true,children:children||[]}],ast,getAsArray(children||[]));return getChildren(result[0])};const fixComponentProps=(component,index,translation)=>{const componentKey=component.key||index;const comp=(0,index_js_.cloneElement)(component,{key:componentKey});if(!comp.props||!comp.props.children||translation.indexOf(`${index}/>`)<0&&translation.indexOf(`${index} />`)<0)return comp;function Componentized(){return(0,index_js_.createElement)(index_js_.Fragment,null,comp)}return(0,index_js_.createElement)(Componentized,{key:componentKey})};const generateArrayComponents=(components,translation)=>components.map((c,index)=>fixComponentProps(c,index,translation));const generateObjectComponents=(components,translation)=>{const componentMap={};Object.keys(components).forEach(c=>{Object.assign(componentMap,{[c]:fixComponentProps(components[c],c,translation)})});return componentMap};const generateComponents=(components,translation,i18n,i18nKey)=>{if(!components)return null;if(Array.isArray(components))return generateArrayComponents(components,translation);if(isObject(components))return generateObjectComponents(components,translation);warnOnce(i18n,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey});return null};const isComponentsMap=object=>{if(!isObject(object))return false;if(Array.isArray(object))return false;return Object.keys(object).reduce((acc,key)=>acc&&Number.isNaN(Number.parseFloat(key)),true)};function Trans({children,count,parent,i18nKey,context,tOptions={},values,defaults,components,ns,i18n:i18nFromProps,t:tFromProps,shouldUnescape,...additionalProps}){const i18n=i18nFromProps||getI18n();if(!i18n){warnOnce(i18n,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey});return children}const t=tFromProps||i18n.t.bind(i18n)||(k=>k);const reactI18nextOptions={...getDefaults(),...i18n.options?.react};let namespaces=ns||t.ns||i18n.options?.defaultNS;namespaces=isString(namespaces)?[namespaces]:namespaces||["translation"];const nodeAsString=nodesToString(children,reactI18nextOptions,i18n,i18nKey);const defaultValue=defaults||tOptions?.defaultValue||nodeAsString||reactI18nextOptions.transEmptyNodeValue||("function"==typeof i18nKey?(0,i18next_js_.keyFromSelector)(i18nKey):i18nKey);const{hashTransKey}=reactI18nextOptions;const key=i18nKey||(hashTransKey?hashTransKey(nodeAsString||defaultValue):nodeAsString||defaultValue);if(i18n.options?.interpolation?.defaultVariables)values=values&&Object.keys(values).length>0?{...values,...i18n.options.interpolation.defaultVariables}:{...i18n.options.interpolation.defaultVariables};const interpolationOverride=!values&&(void 0===count||i18n.options?.interpolation?.alwaysFormat)&&children?{interpolation:{...tOptions.interpolation,prefix:"#$?",suffix:"?$#"}}:tOptions.interpolation;const combinedTOpts={...tOptions,context:context||tOptions.context,count,...values,...interpolationOverride,defaultValue:defaults||tOptions?.defaultValue,ns:namespaces};const translation=key?t(key,combinedTOpts):defaultValue;const generatedComponents=generateComponents(components,translation,i18n,i18nKey);let indexedChildren=generatedComponents||children;let componentsMap=null;if(isComponentsMap(generatedComponents)){componentsMap=generatedComponents;indexedChildren=children}const content=renderNodes(indexedChildren,componentsMap,translation,i18n,reactI18nextOptions,combinedTOpts,shouldUnescape);const useAsParent=parent??reactI18nextOptions.defaultTransParent;return useAsParent?(0,index_js_.createElement)(useAsParent,additionalProps,content):content}const initReactI18next={type:"3rdParty",init(instance){setDefaults(instance.options.react);setI18n(instance)}};const I18nContext=(0,index_js_.createContext)();class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(namespaces){namespaces.forEach(ns=>{if(!this.usedNamespaces[ns])this.usedNamespaces[ns]=true})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const composeInitialProps=ForComponent=>async ctx=>{const componentsInitialProps=await ForComponent.getInitialProps?.(ctx)??{};const i18nInitialProps=getInitialProps();return{...componentsInitialProps,...i18nInitialProps}};const getInitialProps=()=>{const i18n=getI18n();const namespaces=i18n.reportNamespaces?.getUsedNamespaces()??[];const ret={};const initialI18nStore={};i18n.languages.forEach(l=>{initialI18nStore[l]={};namespaces.forEach(ns=>{initialI18nStore[l][ns]=i18n.getResourceBundle(l,ns)||{}})});ret.initialI18nStore=initialI18nStore;ret.initialLanguage=i18n.language;return ret};function Trans_Trans({children,count,parent,i18nKey,context,tOptions={},values,defaults,components,ns,i18n:i18nFromProps,t:tFromProps,shouldUnescape,...additionalProps}){const{i18n:i18nFromContext,defaultNS:defaultNSFromContext}=(0,index_js_.useContext)(I18nContext)||{};const i18n=i18nFromProps||i18nFromContext||getI18n();const t=tFromProps||i18n?.t.bind(i18n);return Trans({children,count,parent,i18nKey,context,tOptions,values,defaults,components,ns:ns||t?.ns||defaultNSFromContext||i18n?.options?.defaultNS,i18n,t:tFromProps,shouldUnescape,...additionalProps})}class TranslationParserError extends Error{constructor(message,position,translationString){super(message);this.name="TranslationParserError";this.position=position;this.translationString=translationString;if(Error.captureStackTrace)Error.captureStackTrace(this,TranslationParserError)}}const commonEntities={"&nbsp;":"\xa0","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"\xa9","&reg;":"\xae","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"\xa7","&para;":"\xb6","&middot;":"\xb7","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"\xa3","&yen;":"\xa5","&cent;":"\xa2","&curren;":"\xa4","&times;":"\xd7","&divide;":"\xf7","&minus;":"−","&plusmn;":"\xb1","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"\xb0","&micro;":"\xb5","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"\xc0","&Aacute;":"\xc1","&Acirc;":"\xc2","&Atilde;":"\xc3","&Auml;":"\xc4","&Aring;":"\xc5","&AElig;":"\xc6","&Ccedil;":"\xc7","&Egrave;":"\xc8","&Eacute;":"\xc9","&Ecirc;":"\xca","&Euml;":"\xcb","&Igrave;":"\xcc","&Iacute;":"\xcd","&Icirc;":"\xce","&Iuml;":"\xcf","&ETH;":"\xd0","&Ntilde;":"\xd1","&Ograve;":"\xd2","&Oacute;":"\xd3","&Ocirc;":"\xd4","&Otilde;":"\xd5","&Ouml;":"\xd6","&Oslash;":"\xd8","&Ugrave;":"\xd9","&Uacute;":"\xda","&Ucirc;":"\xdb","&Uuml;":"\xdc","&Yacute;":"\xdd","&THORN;":"\xde","&szlig;":"\xdf","&agrave;":"\xe0","&aacute;":"\xe1","&acirc;":"\xe2","&atilde;":"\xe3","&auml;":"\xe4","&aring;":"\xe5","&aelig;":"\xe6","&ccedil;":"\xe7","&egrave;":"\xe8","&eacute;":"\xe9","&ecirc;":"\xea","&euml;":"\xeb","&igrave;":"\xec","&iacute;":"\xed","&icirc;":"\xee","&iuml;":"\xef","&eth;":"\xf0","&ntilde;":"\xf1","&ograve;":"\xf2","&oacute;":"\xf3","&ocirc;":"\xf4","&otilde;":"\xf5","&ouml;":"\xf6","&oslash;":"\xf8","&ugrave;":"\xf9","&uacute;":"\xfa","&ucirc;":"\xfb","&uuml;":"\xfc","&yacute;":"\xfd","&thorn;":"\xfe","&yuml;":"\xff","&iexcl;":"\xa1","&iquest;":"\xbf","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"\xaa","&ordm;":"\xba","&macr;":"\xaf","&acute;":"\xb4","&cedil;":"\xb8","&sup1;":"\xb9","&sup2;":"\xb2","&sup3;":"\xb3","&frac14;":"\xbc","&frac12;":"\xbd","&frac34;":"\xbe","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"};const entityPattern=new RegExp(Object.keys(commonEntities).map(entity=>entity.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");const decodeHtmlEntities=text=>text.replace(entityPattern,match=>commonEntities[match]).replace(/&#(\d+);/g,(_,num)=>String.fromCharCode(parseInt(num,10))).replace(/&#x([0-9a-fA-F]+);/g,(_,hex)=>String.fromCharCode(parseInt(hex,16)));const tokenize=translation=>{const tokens=[];let position=0;let currentText="";const flushText=()=>{if(currentText){tokens.push({type:"Text",value:currentText,position:position-currentText.length});currentText=""}};while(position<translation.length){const char=translation[position];if("<"===char){const tagMatch=translation.slice(position).match(/^<(\d+)>/);if(tagMatch){flushText();tokens.push({type:"TagOpen",value:tagMatch[0],position,tagNumber:parseInt(tagMatch[1],10)});position+=tagMatch[0].length}else{const closeTagMatch=translation.slice(position).match(/^<\/(\d+)>/);if(closeTagMatch){flushText();tokens.push({type:"TagClose",value:closeTagMatch[0],position,tagNumber:parseInt(closeTagMatch[1],10)});position+=closeTagMatch[0].length}else{currentText+=char;position+=1}}}else{currentText+=char;position+=1}}flushText();return tokens};const renderDeclarationNode=(declaration,children,childDeclarations)=>{const{type,props={}}=declaration;if(props.children&&Array.isArray(props.children)&&childDeclarations){const{children:_childrenToRemove,...propsWithoutChildren}=props;return index_js_.createElement(type,propsWithoutChildren,...children)}if(0===children.length)return index_js_.createElement(type,props);if(1===children.length)return index_js_.createElement(type,props,children[0]);return index_js_.createElement(type,props,...children)};const renderTranslation=(translation,declarations=[])=>{if(!translation)return[];const tokens=tokenize(translation);const result=[];const stack=[];const literalTagNumbers=new Set;const getCurrentDeclarations=()=>{if(0===stack.length)return declarations;const parentFrame=stack[stack.length-1];if(parentFrame.declaration.props?.children&&Array.isArray(parentFrame.declaration.props.children))return parentFrame.declaration.props.children;return parentFrame.declarations};tokens.forEach(token=>{switch(token.type){case"Text":{const decoded=decodeHtmlEntities(token.value);const targetArray=stack.length>0?stack[stack.length-1].children:result;targetArray.push(decoded)}break;case"TagOpen":{const{tagNumber}=token;const currentDeclarations=getCurrentDeclarations();const declaration=currentDeclarations[tagNumber];if(!declaration){literalTagNumbers.add(tagNumber);const literalText=`<${tagNumber}>`;const targetArray=stack.length>0?stack[stack.length-1].children:result;targetArray.push(literalText);break}stack.push({tagNumber,children:[],position:token.position,declaration,declarations:currentDeclarations})}break;case"TagClose":{const{tagNumber}=token;if(literalTagNumbers.has(tagNumber)){const literalText=`</${tagNumber}>`;const literalTargetArray=stack.length>0?stack[stack.length-1].children:result;literalTargetArray.push(literalText);literalTagNumbers.delete(tagNumber);break}if(0===stack.length)throw new TranslationParserError(`Unexpected closing tag </${tagNumber}> at position ${token.position}`,token.position,translation);const frame=stack.pop();if(frame.tagNumber!==tagNumber)throw new TranslationParserError(`Mismatched tags: expected </${frame.tagNumber}> but got </${tagNumber}> at position ${token.position}`,token.position,translation);const element=renderDeclarationNode(frame.declaration,frame.children,frame.declarations);const elementTargetArray=stack.length>0?stack[stack.length-1].children:result;elementTargetArray.push(element)}break}});if(stack.length>0){const unclosed=stack[stack.length-1];throw new TranslationParserError(`Unclosed tag <${unclosed.tagNumber}> at position ${unclosed.position}`,unclosed.position,translation)}return result};function IcuTransWithoutContext({i18nKey,defaultTranslation,content,ns,values={},i18n:i18nFromProps,t:tFromProps}){const i18n=i18nFromProps||getI18n();if(!i18n){warnOnce(i18n,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey});return index_js_.createElement(index_js_.Fragment,{},defaultTranslation)}const t=tFromProps||i18n.t?.bind(i18n)||(k=>k);let namespaces=ns||t.ns||i18n.options?.defaultNS;namespaces=isString(namespaces)?[namespaces]:namespaces||["translation"];let mergedValues=values;if(i18n.options?.interpolation?.defaultVariables)mergedValues=values&&Object.keys(values).length>0?{...values,...i18n.options.interpolation.defaultVariables}:{...i18n.options.interpolation.defaultVariables};const translation=t(i18nKey,{defaultValue:defaultTranslation,...mergedValues,ns:namespaces});try{const rendered=renderTranslation(translation,content);return index_js_.createElement(index_js_.Fragment,{},...rendered)}catch(error){warn(i18n,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${i18nKey}": ${error.message}`,{i18nKey,error});return index_js_.createElement(index_js_.Fragment,{},translation)}}IcuTransWithoutContext.displayName="IcuTransWithoutContext";function IcuTrans({i18nKey,defaultTranslation,content,ns,values={},i18n:i18nFromProps,t:tFromProps}){const{i18n:i18nFromContext,defaultNS:defaultNSFromContext}=(0,index_js_.useContext)(I18nContext)||{};const i18n=i18nFromProps||i18nFromContext||getI18n();const t=tFromProps||i18n?.t.bind(i18n);return IcuTransWithoutContext({i18nKey,defaultTranslation,content,ns:ns||t?.ns||defaultNSFromContext||i18n?.options?.defaultNS,values,i18n,t:tFromProps})}IcuTrans.displayName="IcuTrans";var shim=__webpack_require__(9888);const notReadyT=(k,optsOrDefaultValue)=>{if(isString(optsOrDefaultValue))return optsOrDefaultValue;if(isObject(optsOrDefaultValue)&&isString(optsOrDefaultValue.defaultValue))return optsOrDefaultValue.defaultValue;return Array.isArray(k)?k[k.length-1]:k};const notReadySnapshot={t:notReadyT,ready:false};const dummySubscribe=()=>()=>{};const useTranslation=(ns,props={})=>{const{i18n:i18nFromProps}=props;const{i18n:i18nFromContext,defaultNS:defaultNSFromContext}=(0,index_js_.useContext)(I18nContext)||{};const i18n=i18nFromProps||i18nFromContext||getI18n();if(i18n&&!i18n.reportNamespaces)i18n.reportNamespaces=new ReportNamespaces;if(!i18n)warnOnce(i18n,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const i18nOptions=(0,index_js_.useMemo)(()=>({...getDefaults(),...i18n?.options?.react,...props}),[i18n,props]);const{useSuspense,keyPrefix}=i18nOptions;const namespaces=(0,index_js_.useMemo)(()=>{const nsOrContext=ns||defaultNSFromContext||i18n?.options?.defaultNS;return isString(nsOrContext)?[nsOrContext]:nsOrContext||["translation"]},[ns,defaultNSFromContext,i18n]);i18n?.reportNamespaces?.addUsedNamespaces?.(namespaces);const subscribe=(0,index_js_.useCallback)(callback=>{if(!i18n)return dummySubscribe;const{bindI18n,bindI18nStore}=i18nOptions;if(bindI18n)i18n.on(bindI18n,callback);if(bindI18nStore)i18n.store.on(bindI18nStore,callback);return()=>{if(bindI18n)bindI18n.split(" ").forEach(e=>i18n.off(e,callback));if(bindI18nStore)bindI18nStore.split(" ").forEach(e=>i18n.store.off(e,callback))}},[i18n,i18nOptions]);const snapshotRef=(0,index_js_.useRef)();const getSnapshot=(0,index_js_.useCallback)(()=>{if(!i18n)return notReadySnapshot;const calculatedReady=!!(i18n.isInitialized||i18n.initializedStoreOnce)&&namespaces.every(n=>hasLoadedNamespace(n,i18n,i18nOptions));const calculatedT=i18n.getFixedT(props.lng||i18n.language,"fallback"===i18nOptions.nsMode?namespaces:namespaces[0],keyPrefix);const lastSnapshot=snapshotRef.current;if(lastSnapshot&&lastSnapshot.ready===calculatedReady&&lastSnapshot.lng===(props.lng||i18n.language)&&lastSnapshot.keyPrefix===keyPrefix)return lastSnapshot;const newSnapshot={t:calculatedT,ready:calculatedReady,lng:props.lng||i18n.language,keyPrefix};snapshotRef.current=newSnapshot;return newSnapshot},[i18n,namespaces,keyPrefix,i18nOptions,props.lng]);const[loadCount,setLoadCount]=(0,index_js_.useState)(0);const{t,ready}=(0,shim.useSyncExternalStore)(subscribe,getSnapshot,getSnapshot);(0,index_js_.useEffect)(()=>{if(i18n&&!ready&&!useSuspense){const onLoaded=()=>setLoadCount(c=>c+1);if(props.lng)loadLanguages(i18n,props.lng,namespaces,onLoaded);else loadNamespaces(i18n,namespaces,onLoaded)}},[i18n,props.lng,namespaces,ready,useSuspense,loadCount]);const finalI18n=i18n||{};const ret=(0,index_js_.useMemo)(()=>{const arr=[t,finalI18n,ready];arr.t=t;arr.i18n=finalI18n;arr.ready=ready;return arr},[t,finalI18n,ready]);if(i18n&&useSuspense&&!ready)throw new Promise(resolve=>{const onLoaded=()=>resolve();if(props.lng)loadLanguages(i18n,props.lng,namespaces,onLoaded);else loadNamespaces(i18n,namespaces,onLoaded)});return ret};const withTranslation=(ns,options={})=>function(WrappedComponent){function I18nextWithTranslation({forwardedRef,...rest}){const[t,i18n,ready]=useTranslation(ns,{...rest,keyPrefix:options.keyPrefix});const passDownProps={...rest,t,i18n,tReady:ready};if(options.withRef&&forwardedRef)passDownProps.ref=forwardedRef;else if(!options.withRef&&forwardedRef)passDownProps.forwardedRef=forwardedRef;return(0,index_js_.createElement)(WrappedComponent,passDownProps)}I18nextWithTranslation.displayName=`withI18nextTranslation(${getDisplayName(WrappedComponent)})`;I18nextWithTranslation.WrappedComponent=WrappedComponent;const forwardRef=(props,ref)=>(0,index_js_.createElement)(I18nextWithTranslation,Object.assign({},props,{forwardedRef:ref}));return options.withRef?(0,index_js_.forwardRef)(forwardRef):I18nextWithTranslation};const Translation=({ns,children,...options})=>{const[t,i18n,ready]=useTranslation(ns,options);return children(t,{i18n,lng:i18n.language},ready)};function I18nextProvider({i18n,defaultNS,children}){const value=(0,index_js_.useMemo)(()=>({i18n,defaultNS}),[i18n,defaultNS]);return(0,index_js_.createElement)(I18nContext.Provider,{value},children)}const useSSR=(initialI18nStore,initialLanguage,props={})=>{const{i18n:i18nFromProps}=props;const{i18n:i18nFromContext}=(0,index_js_.useContext)(I18nContext)||{};const i18n=i18nFromProps||i18nFromContext||getI18n();if(i18n.options?.isClone)return;if(initialI18nStore&&!i18n.initializedStoreOnce){i18n.services.resourceStore.data=initialI18nStore;i18n.options.ns=Object.values(initialI18nStore).reduce((mem,lngResources)=>{Object.keys(lngResources).forEach(ns=>{if(mem.indexOf(ns)<0)mem.push(ns)});return mem},i18n.options.ns);i18n.initializedStoreOnce=true;i18n.isInitialized=true}if(initialLanguage&&!i18n.initializedLanguageOnce){i18n.changeLanguage(initialLanguage);i18n.initializedLanguageOnce=true}};const withSSR=()=>function(WrappedComponent){function I18nextWithSSR({initialI18nStore,initialLanguage,...rest}){useSSR(initialI18nStore,initialLanguage);return(0,index_js_.createElement)(WrappedComponent,{...rest})}I18nextWithSSR.getInitialProps=composeInitialProps(WrappedComponent);I18nextWithSSR.displayName=`withI18nextSSR(${getDisplayName(WrappedComponent)})`;I18nextWithSSR.WrappedComponent=WrappedComponent;return I18nextWithSSR};const date=()=>"";const time=()=>"";const number=()=>"";const es_select=()=>"";const plural=()=>"";const selectOrdinal=()=>""}}]);
10
+ */var React=__webpack_require__(8556);function is(x,y){return x===y&&(0!==x||1/x===1/y)||x!==x&&y!==y}var objectIs="function"==typeof Object.is?Object.is:is,useState=React.useState,useEffect=React.useEffect,useLayoutEffect=React.useLayoutEffect,useDebugValue=React.useDebugValue;function useSyncExternalStore$2(subscribe,getSnapshot){var value=getSnapshot(),_useState=useState({inst:{value:value,getSnapshot:getSnapshot}}),inst=_useState[0].inst,forceUpdate=_useState[1];useLayoutEffect(function(){inst.value=value;inst.getSnapshot=getSnapshot;checkIfSnapshotChanged(inst)&&forceUpdate({inst:inst})},[subscribe,value,getSnapshot]);useEffect(function(){checkIfSnapshotChanged(inst)&&forceUpdate({inst:inst});return subscribe(function(){checkIfSnapshotChanged(inst)&&forceUpdate({inst:inst})})},[subscribe]);useDebugValue(value);return value}function checkIfSnapshotChanged(inst){var latestGetSnapshot=inst.getSnapshot;inst=inst.value;try{var nextValue=latestGetSnapshot();return!objectIs(inst,nextValue)}catch(error){return!0}}function useSyncExternalStore$1(subscribe,getSnapshot){return getSnapshot()}var shim="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?useSyncExternalStore$1:useSyncExternalStore$2;exports.useSyncExternalStore=void 0!==React.useSyncExternalStore?React.useSyncExternalStore:shim},9888:function(module,__unused_webpack_exports,__webpack_require__){"use strict";module.exports=__webpack_require__(8493)},4915:function(module){module.exports={area:true,base:true,br:true,col:true,embed:true,hr:true,img:true,input:true,link:true,meta:true,param:true,source:true,track:true,wbr:true}},8917:function(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{useSSR:()=>useSSR,withSSR:()=>withSSR,I18nextProvider:()=>I18nextProvider,selectOrdinal:()=>selectOrdinal,getI18n:()=>getI18n,date:()=>date,initReactI18next:()=>initReactI18next,useTranslation:()=>useTranslation,Translation:()=>Translation,select:()=>es_select,setI18n:()=>setI18n,withTranslation:()=>withTranslation,TransWithoutContext:()=>Trans,setDefaults:()=>setDefaults,IcuTrans:()=>IcuTrans,getDefaults:()=>getDefaults,time:()=>time,I18nContext:()=>I18nContext,number:()=>number,plural:()=>plural,getInitialProps:()=>getInitialProps,Trans:()=>Trans_Trans,IcuTransWithoutContext:()=>IcuTransWithoutContext,composeInitialProps:()=>composeInitialProps});var index_js_=__webpack_require__(8556);var i18next_js_=__webpack_require__(7601);var void_elements=__webpack_require__(4915);var void_elements_default=/*#__PURE__*/__webpack_require__.n(void_elements);var html_parse_stringify_module_t=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function html_parse_stringify_module_n(n){var r={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},i=n.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(r.name=i[1],(void_elements_default()[i[1]]||"/"===n.charAt(n.length-2))&&(r.voidElement=!0),r.name.startsWith("!--"))){var s=n.indexOf("--\x3e");return{type:"comment",comment:-1!==s?n.slice(4,s):""}}for(var a=new RegExp(html_parse_stringify_module_t),c=null;null!==(c=a.exec(n));)if(c[0].trim())if(c[1]){var o=c[1].trim(),l=[o,""];o.indexOf("=")>-1&&(l=o.split("=")),r.attrs[l[0]]=l[1],a.lastIndex--}else c[2]&&(r.attrs[c[2]]=c[3].trim().substring(1,c[3].length-1));return r}var html_parse_stringify_module_r=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,html_parse_stringify_module_i=/^\s*$/,html_parse_stringify_module_s=Object.create(null);function html_parse_stringify_module_a(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(html_parse_stringify_module_a,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var html_parse_stringify_module_c={parse:function(e,t){t||(t={}),t.components||(t.components=html_parse_stringify_module_s);var a,c=[],o=[],l=-1,m=!1;if(0!==e.indexOf("<")){var u=e.indexOf("<");c.push({type:"text",content:-1===u?e:e.substring(0,u)})}return e.replace(html_parse_stringify_module_r,function(r,s){if(m){if(r!=="</"+a.name+">")return;m=!1}var u,f="/"!==r.charAt(1),h=r.startsWith("\x3c!--"),p=s+r.length,d=e.charAt(p);if(h){var v=html_parse_stringify_module_n(r);return l<0?(c.push(v),c):((u=o[l]).children.push(v),c)}if(f&&(l++,"tag"===(a=html_parse_stringify_module_n(r)).type&&t.components[a.name]&&(a.type="component",m=!0),a.voidElement||m||!d||"<"===d||a.children.push({type:"text",content:e.slice(p,e.indexOf("<",p))}),0===l&&c.push(a),(u=o[l-1])&&u.children.push(a),o[l]=a),(!f||a.voidElement)&&(l>-1&&(a.voidElement||a.name===r.slice(2,-1))&&(l--,a=-1===l?c:o[l]),!m&&"<"!==d&&d)){u=-1===l?c:o[l].children;var x=e.indexOf("<",p),g=e.slice(p,-1===x?void 0:x);html_parse_stringify_module_i.test(g)&&(g=" "),(x>-1&&l+u.length>=0||" "!==g)&&u.push({type:"text",content:g})}}),c},stringify:function(e){return e.reduce(function(e,t){return e+html_parse_stringify_module_a("",t)},"")}};const html_parse_stringify_module=html_parse_stringify_module_c;const warn=(i18n,code,msg,rest)=>{const args=[msg,{code,...rest||{}}];if(i18n?.services?.logger?.forward)return i18n.services.logger.forward(args,"warn","react-i18next::",true);if(isString(args[0]))args[0]=`react-i18next:: ${args[0]}`;if(i18n?.services?.logger?.warn)i18n.services.logger.warn(...args);else if(console?.warn)console.warn(...args)};const alreadyWarned={};const warnOnce=(i18n,code,msg,rest)=>{if(isString(msg)&&alreadyWarned[msg])return;if(isString(msg))alreadyWarned[msg]=new Date;warn(i18n,code,msg,rest)};const loadedClb=(i18n,cb)=>()=>{if(i18n.isInitialized)cb();else{const initialized=()=>{setTimeout(()=>{i18n.off("initialized",initialized)},0);cb()};i18n.on("initialized",initialized)}};const loadNamespaces=(i18n,ns,cb)=>{i18n.loadNamespaces(ns,loadedClb(i18n,cb))};const loadLanguages=(i18n,lng,ns,cb)=>{if(isString(ns))ns=[ns];if(i18n.options.preload&&i18n.options.preload.indexOf(lng)>-1)return loadNamespaces(i18n,ns,cb);ns.forEach(n=>{if(i18n.options.ns.indexOf(n)<0)i18n.options.ns.push(n)});i18n.loadLanguages(lng,loadedClb(i18n,cb))};const hasLoadedNamespace=(ns,i18n,options={})=>{if(!i18n.languages||!i18n.languages.length){warnOnce(i18n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i18n.languages});return true}return i18n.hasLoadedNamespace(ns,{lng:options.lng,precheck:(i18nInstance,loadNotPending)=>{if(options.bindI18n&&options.bindI18n.indexOf("languageChanging")>-1&&i18nInstance.services.backendConnector.backend&&i18nInstance.isLanguageChangingTo&&!loadNotPending(i18nInstance.isLanguageChangingTo,ns))return false}})};const getDisplayName=Component=>Component.displayName||Component.name||(isString(Component)&&Component.length>0?Component:"Unknown");const isString=obj=>"string"==typeof obj;const isObject=obj=>"object"==typeof obj&&null!==obj;const matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;const htmlEntities={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xa9","&#169;":"\xa9","&reg;":"\xae","&#174;":"\xae","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"};const unescapeHtmlEntity=m=>htmlEntities[m];const unescape_unescape=text=>text.replace(matchHtmlEntity,unescapeHtmlEntity);let defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:true,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:true,unescape:unescape_unescape};const setDefaults=(options={})=>{defaultOptions={...defaultOptions,...options}};const getDefaults=()=>defaultOptions;let i18nInstance_i18nInstance;const setI18n=instance=>{i18nInstance_i18nInstance=instance};const getI18n=()=>i18nInstance_i18nInstance;const hasChildren=(node,checkLength)=>{if(!node)return false;const base=node.props?.children??node.children;if(checkLength)return base.length>0;return!!base};const getChildren=node=>{if(!node)return[];const children=node.props?.children??node.children;return node.props?.i18nIsDynamicList?getAsArray(children):children};const hasValidReactChildren=children=>Array.isArray(children)&&children.every(index_js_.isValidElement);const getAsArray=data=>Array.isArray(data)?data:[data];const mergeProps=(source,target)=>{const newTarget={...target};newTarget.props=Object.assign(source.props,target.props);return newTarget};const nodesToString=(children,i18nOptions,i18n,i18nKey)=>{if(!children)return"";let stringNode="";const childrenArray=getAsArray(children);const keepArray=i18nOptions?.transSupportBasicHtmlNodes?i18nOptions.transKeepBasicHtmlNodesFor??[]:[];childrenArray.forEach((child,childIndex)=>{if(isString(child)){stringNode+=`${child}`;return}if((0,index_js_.isValidElement)(child)){const{props,type}=child;const childPropsCount=Object.keys(props).length;const shouldKeepChild=keepArray.indexOf(type)>-1;const childChildren=props.children;if(!childChildren&&shouldKeepChild&&!childPropsCount){stringNode+=`<${type}/>`;return}if(!childChildren&&(!shouldKeepChild||childPropsCount)||props.i18nIsDynamicList){stringNode+=`<${childIndex}></${childIndex}>`;return}if(shouldKeepChild&&1===childPropsCount&&isString(childChildren)){stringNode+=`<${type}>${childChildren}</${type}>`;return}const content=nodesToString(childChildren,i18nOptions,i18n,i18nKey);stringNode+=`<${childIndex}>${content}</${childIndex}>`;return}if(null===child)return void warn(i18n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey});if(isObject(child)){const{format,...clone}=child;const keys=Object.keys(clone);if(1===keys.length){const value=format?`${keys[0]}, ${format}`:keys[0];stringNode+=`{{${value}}}`;return}warn(i18n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey,child});return}warn(i18n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey,child})});return stringNode};const renderNodes=(children,knownComponentsMap,targetString,i18n,i18nOptions,combinedTOpts,shouldUnescape)=>{if(""===targetString)return[];const keepArray=i18nOptions.transKeepBasicHtmlNodesFor||[];const emptyChildrenButNeedsHandling=targetString&&new RegExp(keepArray.map(keep=>`<${keep}`).join("|")).test(targetString);if(!children&&!knownComponentsMap&&!emptyChildrenButNeedsHandling&&!shouldUnescape)return[targetString];const data=knownComponentsMap??{};const getData=childs=>{const childrenArray=getAsArray(childs);childrenArray.forEach(child=>{if(isString(child))return;if(hasChildren(child))getData(getChildren(child));else if(isObject(child)&&!(0,index_js_.isValidElement)(child))Object.assign(data,child)})};getData(children);const ast=html_parse_stringify_module.parse(`<0>${targetString}</0>`);const opts={...data,...combinedTOpts};const renderInner=(child,node,rootReactNode)=>{const childs=getChildren(child);const mappedChildren=mapAST(childs,node.children,rootReactNode);return hasValidReactChildren(childs)&&0===mappedChildren.length||child.props?.i18nIsDynamicList?childs:mappedChildren};const pushTranslatedJSX=(child,inner,mem,i,isVoid)=>{if(child.dummy){child.children=inner;mem.push((0,index_js_.cloneElement)(child,{key:i},isVoid?void 0:inner))}else mem.push(...index_js_.Children.map([child],c=>{const props={...c.props};delete props.i18nIsDynamicList;return(0,index_js_.createElement)(c.type,{...props,key:i,ref:c.props.ref??c.ref},isVoid?null:inner)}))};const mapAST=(reactNode,astNode,rootReactNode)=>{const reactNodes=getAsArray(reactNode);const astNodes=getAsArray(astNode);return astNodes.reduce((mem,node,i)=>{const translationContent=node.children?.[0]?.content&&i18n.services.interpolator.interpolate(node.children[0].content,opts,i18n.language);if("tag"===node.type){let tmp=reactNodes[parseInt(node.name,10)];if(!tmp&&knownComponentsMap)tmp=knownComponentsMap[node.name];if(1===rootReactNode.length&&!tmp)tmp=rootReactNode[0][node.name];if(!tmp)tmp={};const child=0!==Object.keys(node.attrs).length?mergeProps({props:node.attrs},tmp):tmp;const isElement=(0,index_js_.isValidElement)(child);const isValidTranslationWithChildren=isElement&&hasChildren(node,true)&&!node.voidElement;const isEmptyTransWithHTML=emptyChildrenButNeedsHandling&&isObject(child)&&child.dummy&&!isElement;const isKnownComponent=isObject(knownComponentsMap)&&Object.hasOwnProperty.call(knownComponentsMap,node.name);if(isString(child)){const value=i18n.services.interpolator.interpolate(child,opts,i18n.language);mem.push(value)}else if(hasChildren(child)||isValidTranslationWithChildren){const inner=renderInner(child,node,rootReactNode);pushTranslatedJSX(child,inner,mem,i)}else if(isEmptyTransWithHTML){const inner=mapAST(reactNodes,node.children,rootReactNode);pushTranslatedJSX(child,inner,mem,i)}else if(Number.isNaN(parseFloat(node.name)))if(isKnownComponent){const inner=renderInner(child,node,rootReactNode);pushTranslatedJSX(child,inner,mem,i,node.voidElement)}else if(i18nOptions.transSupportBasicHtmlNodes&&keepArray.indexOf(node.name)>-1)if(node.voidElement)mem.push((0,index_js_.createElement)(node.name,{key:`${node.name}-${i}`}));else{const inner=mapAST(reactNodes,node.children,rootReactNode);mem.push((0,index_js_.createElement)(node.name,{key:`${node.name}-${i}`},inner))}else if(node.voidElement)mem.push(`<${node.name} />`);else{const inner=mapAST(reactNodes,node.children,rootReactNode);mem.push(`<${node.name}>${inner}</${node.name}>`)}else if(isObject(child)&&!isElement){const content=node.children[0]?translationContent:null;if(content)mem.push(content)}else pushTranslatedJSX(child,translationContent,mem,i,1!==node.children.length||!translationContent)}else if("text"===node.type){const wrapTextNodes=i18nOptions.transWrapTextNodes;const content=shouldUnescape?i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content,opts,i18n.language)):i18n.services.interpolator.interpolate(node.content,opts,i18n.language);if(wrapTextNodes)mem.push((0,index_js_.createElement)(wrapTextNodes,{key:`${node.name}-${i}`},content));else mem.push(content)}return mem},[])};const result=mapAST([{dummy:true,children:children||[]}],ast,getAsArray(children||[]));return getChildren(result[0])};const fixComponentProps=(component,index,translation)=>{const componentKey=component.key||index;const comp=(0,index_js_.cloneElement)(component,{key:componentKey});if(!comp.props||!comp.props.children||translation.indexOf(`${index}/>`)<0&&translation.indexOf(`${index} />`)<0)return comp;function Componentized(){return(0,index_js_.createElement)(index_js_.Fragment,null,comp)}return(0,index_js_.createElement)(Componentized,{key:componentKey})};const generateArrayComponents=(components,translation)=>components.map((c,index)=>fixComponentProps(c,index,translation));const generateObjectComponents=(components,translation)=>{const componentMap={};Object.keys(components).forEach(c=>{Object.assign(componentMap,{[c]:fixComponentProps(components[c],c,translation)})});return componentMap};const generateComponents=(components,translation,i18n,i18nKey)=>{if(!components)return null;if(Array.isArray(components))return generateArrayComponents(components,translation);if(isObject(components))return generateObjectComponents(components,translation);warnOnce(i18n,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey});return null};const isComponentsMap=object=>{if(!isObject(object))return false;if(Array.isArray(object))return false;return Object.keys(object).reduce((acc,key)=>acc&&Number.isNaN(Number.parseFloat(key)),true)};function Trans({children,count,parent,i18nKey,context,tOptions={},values,defaults,components,ns,i18n:i18nFromProps,t:tFromProps,shouldUnescape,...additionalProps}){const i18n=i18nFromProps||getI18n();if(!i18n){warnOnce(i18n,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey});return children}const t=tFromProps||i18n.t.bind(i18n)||(k=>k);const reactI18nextOptions={...getDefaults(),...i18n.options?.react};let namespaces=ns||t.ns||i18n.options?.defaultNS;namespaces=isString(namespaces)?[namespaces]:namespaces||["translation"];const nodeAsString=nodesToString(children,reactI18nextOptions,i18n,i18nKey);const defaultValue=defaults||tOptions?.defaultValue||nodeAsString||reactI18nextOptions.transEmptyNodeValue||("function"==typeof i18nKey?(0,i18next_js_.keyFromSelector)(i18nKey):i18nKey);const{hashTransKey}=reactI18nextOptions;const key=i18nKey||(hashTransKey?hashTransKey(nodeAsString||defaultValue):nodeAsString||defaultValue);if(i18n.options?.interpolation?.defaultVariables)values=values&&Object.keys(values).length>0?{...values,...i18n.options.interpolation.defaultVariables}:{...i18n.options.interpolation.defaultVariables};const interpolationOverride=!values&&(void 0===count||i18n.options?.interpolation?.alwaysFormat)&&children?{interpolation:{...tOptions.interpolation,prefix:"#$?",suffix:"?$#"}}:tOptions.interpolation;const combinedTOpts={...tOptions,context:context||tOptions.context,count,...values,...interpolationOverride,defaultValue:defaults||tOptions?.defaultValue,ns:namespaces};const translation=key?t(key,combinedTOpts):defaultValue;const generatedComponents=generateComponents(components,translation,i18n,i18nKey);let indexedChildren=generatedComponents||children;let componentsMap=null;if(isComponentsMap(generatedComponents)){componentsMap=generatedComponents;indexedChildren=children}const content=renderNodes(indexedChildren,componentsMap,translation,i18n,reactI18nextOptions,combinedTOpts,shouldUnescape);const useAsParent=parent??reactI18nextOptions.defaultTransParent;return useAsParent?(0,index_js_.createElement)(useAsParent,additionalProps,content):content}const initReactI18next={type:"3rdParty",init(instance){setDefaults(instance.options.react);setI18n(instance)}};const I18nContext=(0,index_js_.createContext)();class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(namespaces){namespaces.forEach(ns=>{if(!this.usedNamespaces[ns])this.usedNamespaces[ns]=true})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const composeInitialProps=ForComponent=>async ctx=>{const componentsInitialProps=await ForComponent.getInitialProps?.(ctx)??{};const i18nInitialProps=getInitialProps();return{...componentsInitialProps,...i18nInitialProps}};const getInitialProps=()=>{const i18n=getI18n();const namespaces=i18n.reportNamespaces?.getUsedNamespaces()??[];const ret={};const initialI18nStore={};i18n.languages.forEach(l=>{initialI18nStore[l]={};namespaces.forEach(ns=>{initialI18nStore[l][ns]=i18n.getResourceBundle(l,ns)||{}})});ret.initialI18nStore=initialI18nStore;ret.initialLanguage=i18n.language;return ret};function Trans_Trans({children,count,parent,i18nKey,context,tOptions={},values,defaults,components,ns,i18n:i18nFromProps,t:tFromProps,shouldUnescape,...additionalProps}){const{i18n:i18nFromContext,defaultNS:defaultNSFromContext}=(0,index_js_.useContext)(I18nContext)||{};const i18n=i18nFromProps||i18nFromContext||getI18n();const t=tFromProps||i18n?.t.bind(i18n);return Trans({children,count,parent,i18nKey,context,tOptions,values,defaults,components,ns:ns||t?.ns||defaultNSFromContext||i18n?.options?.defaultNS,i18n,t:tFromProps,shouldUnescape,...additionalProps})}class TranslationParserError extends Error{constructor(message,position,translationString){super(message);this.name="TranslationParserError";this.position=position;this.translationString=translationString;if(Error.captureStackTrace)Error.captureStackTrace(this,TranslationParserError)}}const commonEntities={"&nbsp;":"\xa0","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"\xa9","&reg;":"\xae","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"\xa7","&para;":"\xb6","&middot;":"\xb7","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"\xa3","&yen;":"\xa5","&cent;":"\xa2","&curren;":"\xa4","&times;":"\xd7","&divide;":"\xf7","&minus;":"−","&plusmn;":"\xb1","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"\xb0","&micro;":"\xb5","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"\xc0","&Aacute;":"\xc1","&Acirc;":"\xc2","&Atilde;":"\xc3","&Auml;":"\xc4","&Aring;":"\xc5","&AElig;":"\xc6","&Ccedil;":"\xc7","&Egrave;":"\xc8","&Eacute;":"\xc9","&Ecirc;":"\xca","&Euml;":"\xcb","&Igrave;":"\xcc","&Iacute;":"\xcd","&Icirc;":"\xce","&Iuml;":"\xcf","&ETH;":"\xd0","&Ntilde;":"\xd1","&Ograve;":"\xd2","&Oacute;":"\xd3","&Ocirc;":"\xd4","&Otilde;":"\xd5","&Ouml;":"\xd6","&Oslash;":"\xd8","&Ugrave;":"\xd9","&Uacute;":"\xda","&Ucirc;":"\xdb","&Uuml;":"\xdc","&Yacute;":"\xdd","&THORN;":"\xde","&szlig;":"\xdf","&agrave;":"\xe0","&aacute;":"\xe1","&acirc;":"\xe2","&atilde;":"\xe3","&auml;":"\xe4","&aring;":"\xe5","&aelig;":"\xe6","&ccedil;":"\xe7","&egrave;":"\xe8","&eacute;":"\xe9","&ecirc;":"\xea","&euml;":"\xeb","&igrave;":"\xec","&iacute;":"\xed","&icirc;":"\xee","&iuml;":"\xef","&eth;":"\xf0","&ntilde;":"\xf1","&ograve;":"\xf2","&oacute;":"\xf3","&ocirc;":"\xf4","&otilde;":"\xf5","&ouml;":"\xf6","&oslash;":"\xf8","&ugrave;":"\xf9","&uacute;":"\xfa","&ucirc;":"\xfb","&uuml;":"\xfc","&yacute;":"\xfd","&thorn;":"\xfe","&yuml;":"\xff","&iexcl;":"\xa1","&iquest;":"\xbf","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"\xaa","&ordm;":"\xba","&macr;":"\xaf","&acute;":"\xb4","&cedil;":"\xb8","&sup1;":"\xb9","&sup2;":"\xb2","&sup3;":"\xb3","&frac14;":"\xbc","&frac12;":"\xbd","&frac34;":"\xbe","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"};const entityPattern=new RegExp(Object.keys(commonEntities).map(entity=>entity.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");const decodeHtmlEntities=text=>text.replace(entityPattern,match=>commonEntities[match]).replace(/&#(\d+);/g,(_,num)=>String.fromCharCode(parseInt(num,10))).replace(/&#x([0-9a-fA-F]+);/g,(_,hex)=>String.fromCharCode(parseInt(hex,16)));const tokenize=translation=>{const tokens=[];let position=0;let currentText="";const flushText=()=>{if(currentText){tokens.push({type:"Text",value:currentText,position:position-currentText.length});currentText=""}};while(position<translation.length){const char=translation[position];if("<"===char){const tagMatch=translation.slice(position).match(/^<(\d+)>/);if(tagMatch){flushText();tokens.push({type:"TagOpen",value:tagMatch[0],position,tagNumber:parseInt(tagMatch[1],10)});position+=tagMatch[0].length}else{const closeTagMatch=translation.slice(position).match(/^<\/(\d+)>/);if(closeTagMatch){flushText();tokens.push({type:"TagClose",value:closeTagMatch[0],position,tagNumber:parseInt(closeTagMatch[1],10)});position+=closeTagMatch[0].length}else{currentText+=char;position+=1}}}else{currentText+=char;position+=1}}flushText();return tokens};const renderDeclarationNode=(declaration,children,childDeclarations)=>{const{type,props={}}=declaration;if(props.children&&Array.isArray(props.children)&&childDeclarations){const{children:_childrenToRemove,...propsWithoutChildren}=props;return index_js_.createElement(type,propsWithoutChildren,...children)}if(0===children.length)return index_js_.createElement(type,props);if(1===children.length)return index_js_.createElement(type,props,children[0]);return index_js_.createElement(type,props,...children)};const renderTranslation=(translation,declarations=[])=>{if(!translation)return[];const tokens=tokenize(translation);const result=[];const stack=[];const literalTagNumbers=new Set;const getCurrentDeclarations=()=>{if(0===stack.length)return declarations;const parentFrame=stack[stack.length-1];if(parentFrame.declaration.props?.children&&Array.isArray(parentFrame.declaration.props.children))return parentFrame.declaration.props.children;return parentFrame.declarations};tokens.forEach(token=>{switch(token.type){case"Text":{const decoded=decodeHtmlEntities(token.value);const targetArray=stack.length>0?stack[stack.length-1].children:result;targetArray.push(decoded)}break;case"TagOpen":{const{tagNumber}=token;const currentDeclarations=getCurrentDeclarations();const declaration=currentDeclarations[tagNumber];if(!declaration){literalTagNumbers.add(tagNumber);const literalText=`<${tagNumber}>`;const targetArray=stack.length>0?stack[stack.length-1].children:result;targetArray.push(literalText);break}stack.push({tagNumber,children:[],position:token.position,declaration,declarations:currentDeclarations})}break;case"TagClose":{const{tagNumber}=token;if(literalTagNumbers.has(tagNumber)){const literalText=`</${tagNumber}>`;const literalTargetArray=stack.length>0?stack[stack.length-1].children:result;literalTargetArray.push(literalText);literalTagNumbers.delete(tagNumber);break}if(0===stack.length)throw new TranslationParserError(`Unexpected closing tag </${tagNumber}> at position ${token.position}`,token.position,translation);const frame=stack.pop();if(frame.tagNumber!==tagNumber)throw new TranslationParserError(`Mismatched tags: expected </${frame.tagNumber}> but got </${tagNumber}> at position ${token.position}`,token.position,translation);const element=renderDeclarationNode(frame.declaration,frame.children,frame.declarations);const elementTargetArray=stack.length>0?stack[stack.length-1].children:result;elementTargetArray.push(element)}break}});if(stack.length>0){const unclosed=stack[stack.length-1];throw new TranslationParserError(`Unclosed tag <${unclosed.tagNumber}> at position ${unclosed.position}`,unclosed.position,translation)}return result};function IcuTransWithoutContext({i18nKey,defaultTranslation,content,ns,values={},i18n:i18nFromProps,t:tFromProps}){const i18n=i18nFromProps||getI18n();if(!i18n){warnOnce(i18n,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey});return index_js_.createElement(index_js_.Fragment,{},defaultTranslation)}const t=tFromProps||i18n.t?.bind(i18n)||(k=>k);let namespaces=ns||t.ns||i18n.options?.defaultNS;namespaces=isString(namespaces)?[namespaces]:namespaces||["translation"];let mergedValues=values;if(i18n.options?.interpolation?.defaultVariables)mergedValues=values&&Object.keys(values).length>0?{...values,...i18n.options.interpolation.defaultVariables}:{...i18n.options.interpolation.defaultVariables};const translation=t(i18nKey,{defaultValue:defaultTranslation,...mergedValues,ns:namespaces});try{const rendered=renderTranslation(translation,content);return index_js_.createElement(index_js_.Fragment,{},...rendered)}catch(error){warn(i18n,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${i18nKey}": ${error.message}`,{i18nKey,error});return index_js_.createElement(index_js_.Fragment,{},translation)}}IcuTransWithoutContext.displayName="IcuTransWithoutContext";function IcuTrans({i18nKey,defaultTranslation,content,ns,values={},i18n:i18nFromProps,t:tFromProps}){const{i18n:i18nFromContext,defaultNS:defaultNSFromContext}=(0,index_js_.useContext)(I18nContext)||{};const i18n=i18nFromProps||i18nFromContext||getI18n();const t=tFromProps||i18n?.t.bind(i18n);return IcuTransWithoutContext({i18nKey,defaultTranslation,content,ns:ns||t?.ns||defaultNSFromContext||i18n?.options?.defaultNS,values,i18n,t:tFromProps})}IcuTrans.displayName="IcuTrans";var shim=__webpack_require__(9888);const notReadyT=(k,optsOrDefaultValue)=>{if(isString(optsOrDefaultValue))return optsOrDefaultValue;if(isObject(optsOrDefaultValue)&&isString(optsOrDefaultValue.defaultValue))return optsOrDefaultValue.defaultValue;return Array.isArray(k)?k[k.length-1]:k};const notReadySnapshot={t:notReadyT,ready:false};const dummySubscribe=()=>()=>{};const useTranslation=(ns,props={})=>{const{i18n:i18nFromProps}=props;const{i18n:i18nFromContext,defaultNS:defaultNSFromContext}=(0,index_js_.useContext)(I18nContext)||{};const i18n=i18nFromProps||i18nFromContext||getI18n();if(i18n&&!i18n.reportNamespaces)i18n.reportNamespaces=new ReportNamespaces;if(!i18n)warnOnce(i18n,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const i18nOptions=(0,index_js_.useMemo)(()=>({...getDefaults(),...i18n?.options?.react,...props}),[i18n,props]);const{useSuspense,keyPrefix}=i18nOptions;const namespaces=(0,index_js_.useMemo)(()=>{const nsOrContext=ns||defaultNSFromContext||i18n?.options?.defaultNS;return isString(nsOrContext)?[nsOrContext]:nsOrContext||["translation"]},[ns,defaultNSFromContext,i18n]);i18n?.reportNamespaces?.addUsedNamespaces?.(namespaces);const subscribe=(0,index_js_.useCallback)(callback=>{if(!i18n)return dummySubscribe;const{bindI18n,bindI18nStore}=i18nOptions;if(bindI18n)i18n.on(bindI18n,callback);if(bindI18nStore)i18n.store.on(bindI18nStore,callback);return()=>{if(bindI18n)bindI18n.split(" ").forEach(e=>i18n.off(e,callback));if(bindI18nStore)bindI18nStore.split(" ").forEach(e=>i18n.store.off(e,callback))}},[i18n,i18nOptions]);const snapshotRef=(0,index_js_.useRef)();const getSnapshot=(0,index_js_.useCallback)(()=>{if(!i18n)return notReadySnapshot;const calculatedReady=!!(i18n.isInitialized||i18n.initializedStoreOnce)&&namespaces.every(n=>hasLoadedNamespace(n,i18n,i18nOptions));const calculatedT=i18n.getFixedT(props.lng||i18n.language,"fallback"===i18nOptions.nsMode?namespaces:namespaces[0],keyPrefix);const lastSnapshot=snapshotRef.current;if(lastSnapshot&&lastSnapshot.ready===calculatedReady&&lastSnapshot.lng===(props.lng||i18n.language)&&lastSnapshot.keyPrefix===keyPrefix)return lastSnapshot;const newSnapshot={t:calculatedT,ready:calculatedReady,lng:props.lng||i18n.language,keyPrefix};snapshotRef.current=newSnapshot;return newSnapshot},[i18n,namespaces,keyPrefix,i18nOptions,props.lng]);const[loadCount,setLoadCount]=(0,index_js_.useState)(0);const{t,ready}=(0,shim.useSyncExternalStore)(subscribe,getSnapshot,getSnapshot);(0,index_js_.useEffect)(()=>{if(i18n&&!ready&&!useSuspense){const onLoaded=()=>setLoadCount(c=>c+1);if(props.lng)loadLanguages(i18n,props.lng,namespaces,onLoaded);else loadNamespaces(i18n,namespaces,onLoaded)}},[i18n,props.lng,namespaces,ready,useSuspense,loadCount]);const finalI18n=i18n||{};const ret=(0,index_js_.useMemo)(()=>{const arr=[t,finalI18n,ready];arr.t=t;arr.i18n=finalI18n;arr.ready=ready;return arr},[t,finalI18n,ready]);if(i18n&&useSuspense&&!ready)throw new Promise(resolve=>{const onLoaded=()=>resolve();if(props.lng)loadLanguages(i18n,props.lng,namespaces,onLoaded);else loadNamespaces(i18n,namespaces,onLoaded)});return ret};const withTranslation=(ns,options={})=>function(WrappedComponent){function I18nextWithTranslation({forwardedRef,...rest}){const[t,i18n,ready]=useTranslation(ns,{...rest,keyPrefix:options.keyPrefix});const passDownProps={...rest,t,i18n,tReady:ready};if(options.withRef&&forwardedRef)passDownProps.ref=forwardedRef;else if(!options.withRef&&forwardedRef)passDownProps.forwardedRef=forwardedRef;return(0,index_js_.createElement)(WrappedComponent,passDownProps)}I18nextWithTranslation.displayName=`withI18nextTranslation(${getDisplayName(WrappedComponent)})`;I18nextWithTranslation.WrappedComponent=WrappedComponent;const forwardRef=(props,ref)=>(0,index_js_.createElement)(I18nextWithTranslation,Object.assign({},props,{forwardedRef:ref}));return options.withRef?(0,index_js_.forwardRef)(forwardRef):I18nextWithTranslation};const Translation=({ns,children,...options})=>{const[t,i18n,ready]=useTranslation(ns,options);return children(t,{i18n,lng:i18n.language},ready)};function I18nextProvider({i18n,defaultNS,children}){const value=(0,index_js_.useMemo)(()=>({i18n,defaultNS}),[i18n,defaultNS]);return(0,index_js_.createElement)(I18nContext.Provider,{value},children)}const useSSR=(initialI18nStore,initialLanguage,props={})=>{const{i18n:i18nFromProps}=props;const{i18n:i18nFromContext}=(0,index_js_.useContext)(I18nContext)||{};const i18n=i18nFromProps||i18nFromContext||getI18n();if(i18n.options?.isClone)return;if(initialI18nStore&&!i18n.initializedStoreOnce){i18n.services.resourceStore.data=initialI18nStore;i18n.options.ns=Object.values(initialI18nStore).reduce((mem,lngResources)=>{Object.keys(lngResources).forEach(ns=>{if(mem.indexOf(ns)<0)mem.push(ns)});return mem},i18n.options.ns);i18n.initializedStoreOnce=true;i18n.isInitialized=true}if(initialLanguage&&!i18n.initializedLanguageOnce){i18n.changeLanguage(initialLanguage);i18n.initializedLanguageOnce=true}};const withSSR=()=>function(WrappedComponent){function I18nextWithSSR({initialI18nStore,initialLanguage,...rest}){useSSR(initialI18nStore,initialLanguage);return(0,index_js_.createElement)(WrappedComponent,{...rest})}I18nextWithSSR.getInitialProps=composeInitialProps(WrappedComponent);I18nextWithSSR.displayName=`withI18nextSSR(${getDisplayName(WrappedComponent)})`;I18nextWithSSR.WrappedComponent=WrappedComponent;return I18nextWithSSR};const date=()=>"";const time=()=>"";const number=()=>"";const es_select=()=>"";const plural=()=>"";const selectOrdinal=()=>""}}]);