From daae449fb05e74bc7b1b933bce11b08fc4b14d7f Mon Sep 17 00:00:00 2001 From: Suellen Castro Date: Wed, 26 Jun 2024 15:00:27 -0300 Subject: [PATCH] Updates --- assets/{index-CcSRBp82.js => index-DGE1KThj.js} | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{index-CcSRBp82.js => index-DGE1KThj.js} (99%) diff --git a/assets/index-CcSRBp82.js b/assets/index-DGE1KThj.js similarity index 99% rename from assets/index-CcSRBp82.js rename to assets/index-DGE1KThj.js index c992c3e..b862402 100644 --- a/assets/index-CcSRBp82.js +++ b/assets/index-DGE1KThj.js @@ -38,4 +38,4 @@ function Pf(e,t){for(var n=0;non||(e.current=el[on],el[on]=null,on--)}function V(e,t){on++,el[on]=e.current,e.current=t}var Lt={},pe=Nt(Lt),Se=Nt(!1),$t=Lt;function vn(e,t){var n=e.type.contextTypes;if(!n)return Lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function xe(e){return e=e.childContextTypes,e!=null}function di(){B(Se),B(pe)}function eu(e,t,n){if(pe.current!==Lt)throw Error(C(168));V(pe,t),V(Se,n)}function sc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(C(108,td(e)||"Unknown",i));return X({},n,r)}function pi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lt,$t=pe.current,V(pe,e),V(Se,Se.current),!0}function tu(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=sc(e,t,$t),r.__reactInternalMemoizedMergedChildContext=e,B(Se),B(pe),V(pe,e)):B(Se),V(Se,n)}var be=null,$i=!1,go=!1;function uc(e){be===null?be=[e]:be.push(e)}function vp(e){$i=!0,uc(e)}function Ot(){if(!go&&be!==null){go=!0;var e=0,t=U;try{var n=be;for(U=1;e>=l,i-=l,et=1<<32-He(t)+i|n<R?($=P,P=null):$=P.sibling;var I=c(h,P,g[R],w);if(I===null){P===null&&(P=$);break}e&&P&&I.alternate===null&&t(h,P),d=o(I,d,R),N===null?L=I:N.sibling=I,N=I,P=$}if(R===g.length)return n(h,P),W&&Tt(h,R),L;if(P===null){for(;RR?($=P,P=null):$=P.sibling;var b=c(h,P,I.value,w);if(b===null){P===null&&(P=$);break}e&&P&&b.alternate===null&&t(h,P),d=o(b,d,R),N===null?L=b:N.sibling=b,N=b,P=$}if(I.done)return n(h,P),W&&Tt(h,R),L;if(P===null){for(;!I.done;R++,I=g.next())I=p(h,I.value,w),I!==null&&(d=o(I,d,R),N===null?L=I:N.sibling=I,N=I);return W&&Tt(h,R),L}for(P=r(h,P);!I.done;R++,I=g.next())I=y(P,h,R,I.value,w),I!==null&&(e&&I.alternate!==null&&P.delete(I.key===null?R:I.key),d=o(I,d,R),N===null?L=I:N.sibling=I,N=I);return e&&P.forEach(function(ne){return t(h,ne)}),W&&Tt(h,R),L}function T(h,d,g,w){if(typeof g=="object"&&g!==null&&g.type===bt&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Pr:e:{for(var L=g.key,N=d;N!==null;){if(N.key===L){if(L=g.type,L===bt){if(N.tag===7){n(h,N.sibling),d=i(N,g.props.children),d.return=h,h=d;break e}}else if(N.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===ct&&iu(L)===N.type){n(h,N.sibling),d=i(N,g.props),d.ref=Fn(h,N,g),d.return=h,h=d;break e}n(h,N);break}else t(h,N);N=N.sibling}g.type===bt?(d=Mt(g.props.children,h.mode,w,g.key),d.return=h,h=d):(w=ni(g.type,g.key,g.props,null,h.mode,w),w.ref=Fn(h,d,g),w.return=h,h=w)}return l(h);case Zt:e:{for(N=g.key;d!==null;){if(d.key===N)if(d.tag===4&&d.stateNode.containerInfo===g.containerInfo&&d.stateNode.implementation===g.implementation){n(h,d.sibling),d=i(d,g.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=Eo(g,h.mode,w),d.return=h,h=d}return l(h);case ct:return N=g._init,T(h,d,N(g._payload),w)}if(Un(g))return v(h,d,g,w);if(_n(g))return k(h,d,g,w);Mr(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,d!==null&&d.tag===6?(n(h,d.sibling),d=i(d,g),d.return=h,h=d):(n(h,d),d=xo(g,h.mode,w),d.return=h,h=d),l(h)):n(h,d)}return T}var kn=dc(!0),pc=dc(!1),mi=Nt(null),yi=null,un=null,Jl=null;function Gl(){Jl=un=yi=null}function ql(e){var t=mi.current;B(mi),e._currentValue=t}function rl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function gn(e,t){yi=e,Jl=un=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ke=!0),e.firstContext=null)}function De(e){var t=e._currentValue;if(Jl!==e)if(e={context:e,memoizedValue:t,next:null},un===null){if(yi===null)throw Error(C(308));un=e,yi.dependencies={lanes:0,firstContext:e}}else un=un.next=e;return t}var Ft=null;function Zl(e){Ft===null?Ft=[e]:Ft.push(e)}function hc(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Zl(t)):(n.next=i.next,i.next=n),t.interleaved=n,lt(e,r)}function lt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ft=!1;function bl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function nt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,M&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,lt(e,n)}return i=r.interleaved,i===null?(t.next=t,Zl(r)):(t.next=i.next,i.next=t),r.interleaved=t,lt(e,n)}function Gr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$l(e,n)}}function ou(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vi(e,t,n,r){var i=e.updateQueue;ft=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,a=u.next;u.next=null,l===null?o=a:l.next=a,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==l&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(o!==null){var p=i.baseState;l=0,f=a=u=null,s=o;do{var c=s.lane,y=s.eventTime;if((r&c)===c){f!==null&&(f=f.next={eventTime:y,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,k=s;switch(c=t,y=n,k.tag){case 1:if(v=k.payload,typeof v=="function"){p=v.call(y,p,c);break e}p=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=k.payload,c=typeof v=="function"?v.call(y,p,c):v,c==null)break e;p=X({},p,c);break e;case 2:ft=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,c=i.effects,c===null?i.effects=[s]:c.push(s))}else y={eventTime:y,lane:c,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=y,u=p):f=f.next=y,l|=c;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;c=s,s=c.next,c.next=null,i.lastBaseUpdate=c,i.shared.pending=null}}while(!0);if(f===null&&(u=p),i.baseState=u,i.firstBaseUpdate=a,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Vt|=l,e.lanes=l,e.memoizedState=p}}function lu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=yo.transition;yo.transition={};try{e(!1),t()}finally{U=n,yo.transition=r}}function Rc(){return Me().memoizedState}function xp(e,t,n){var r=xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},zc(e))Fc(t,n);else if(n=hc(e,t,n,r),n!==null){var i=me();Be(n,e,r,i),Ic(n,t,r)}}function Ep(e,t,n){var r=xt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(zc(e))Fc(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,n);if(i.hasEagerState=!0,i.eagerState=s,We(s,l)){var u=t.interleaved;u===null?(i.next=i,Zl(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=hc(e,t,i,r),n!==null&&(i=me(),Be(n,e,r,i),Ic(n,t,r))}}function zc(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function Fc(e,t){Jn=ki=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ic(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$l(e,n)}}var Si={readContext:De,useCallback:ce,useContext:ce,useEffect:ce,useImperativeHandle:ce,useInsertionEffect:ce,useLayoutEffect:ce,useMemo:ce,useReducer:ce,useRef:ce,useState:ce,useDebugValue:ce,useDeferredValue:ce,useTransition:ce,useMutableSource:ce,useSyncExternalStore:ce,useId:ce,unstable_isNewReconciler:!1},Cp={readContext:De,useCallback:function(e,t){return Qe().memoizedState=[e,t===void 0?null:t],e},useContext:De,useEffect:uu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zr(4194308,4,Nc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zr(4,2,e,t)},useMemo:function(e,t){var n=Qe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qe();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=xp.bind(null,Q,e),[r.memoizedState,e]},useRef:function(e){var t=Qe();return e={current:e},t.memoizedState=e},useState:su,useDebugValue:ss,useDeferredValue:function(e){return Qe().memoizedState=e},useTransition:function(){var e=su(!1),t=e[0];return e=Sp.bind(null,e[1]),Qe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Q,i=Qe();if(W){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ie===null)throw Error(C(349));Ut&30||wc(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,uu(Sc.bind(null,r,o,e),[e]),r.flags|=2048,gr(9,kc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Qe(),t=ie.identifierPrefix;if(W){var n=tt,r=et;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=pr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Xe]=t,e[cr]=r,Kc(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ao(n,r),n){case"dialog":H("cancel",e),H("close",e),i=r;break;case"iframe":case"object":case"embed":H("load",e),i=r;break;case"video":case"audio":for(i=0;iEn&&(t.flags|=128,r=!0,In(o,!1),t.lanes=4194304)}else{if(!r)if(e=wi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),In(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!W)return fe(t),null}else 2*J()-o.renderingStartTime>En&&n!==1073741824&&(t.flags|=128,r=!0,In(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=J(),t.sibling=null,n=K.current,V(K,r?n&1|2:n&1),t):(fe(t),null);case 22:case 23:return ps(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ce&1073741824&&(fe(t),t.subtreeFlags&6&&(t.flags|=8192)):fe(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function Rp(e,t){switch(Xl(t),t.tag){case 1:return xe(t.type)&&di(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sn(),B(Se),B(pe),ns(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ts(t),null;case 13:if(B(K),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(K),null;case 4:return Sn(),null;case 10:return ql(t.type._context),null;case 22:case 23:return ps(),null;case 24:return null;default:return null}}var Ar=!1,de=!1,zp=typeof WeakSet=="function"?WeakSet:Set,j=null;function an(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function dl(e,t,n){try{n()}catch(r){Y(e,t,r)}}var wu=!1;function Fp(e,t){if(Jo=ui,e=Za(),Kl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,s=-1,u=-1,a=0,f=0,p=e,c=null;t:for(;;){for(var y;p!==n||i!==0&&p.nodeType!==3||(s=l+i),p!==o||r!==0&&p.nodeType!==3||(u=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(y=p.firstChild)!==null;)c=p,p=y;for(;;){if(p===e)break t;if(c===n&&++a===i&&(s=l),c===o&&++f===r&&(u=l),(y=p.nextSibling)!==null)break;p=c,c=p.parentNode}p=y}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Go={focusedElem:e,selectionRange:n},ui=!1,j=t;j!==null;)if(t=j,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,j=e;else for(;j!==null;){t=j;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var k=v.memoizedProps,T=v.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?k:Ae(t.type,k),T);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(w){Y(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,j=e;break}j=t.return}return v=wu,wu=!1,v}function Gn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&dl(t,n,o)}i=i.next}while(i!==r)}}function Vi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function pl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Yc(e){var t=e.alternate;t!==null&&(e.alternate=null,Yc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xe],delete t[cr],delete t[bo],delete t[mp],delete t[yp])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Jc(e){return e.tag===5||e.tag===3||e.tag===4}function ku(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fi));else if(r!==4&&(e=e.child,e!==null))for(hl(e,t,n),e=e.sibling;e!==null;)hl(e,t,n),e=e.sibling}function gl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(gl(e,t,n),e=e.sibling;e!==null;)gl(e,t,n),e=e.sibling}var se=null,Ue=!1;function at(e,t,n){for(n=n.child;n!==null;)Gc(e,t,n),n=n.sibling}function Gc(e,t,n){if(Je&&typeof Je.onCommitFiberUnmount=="function")try{Je.onCommitFiberUnmount(zi,n)}catch{}switch(n.tag){case 5:de||an(n,t);case 6:var r=se,i=Ue;se=null,at(e,t,n),se=r,Ue=i,se!==null&&(Ue?(e=se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):se.removeChild(n.stateNode));break;case 18:se!==null&&(Ue?(e=se,n=n.stateNode,e.nodeType===8?ho(e.parentNode,n):e.nodeType===1&&ho(e,n),or(e)):ho(se,n.stateNode));break;case 4:r=se,i=Ue,se=n.stateNode.containerInfo,Ue=!0,at(e,t,n),se=r,Ue=i;break;case 0:case 11:case 14:case 15:if(!de&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&dl(n,t,l),i=i.next}while(i!==r)}at(e,t,n);break;case 1:if(!de&&(an(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Y(n,t,s)}at(e,t,n);break;case 21:at(e,t,n);break;case 22:n.mode&1?(de=(r=de)||n.memoizedState!==null,at(e,t,n),de=r):at(e,t,n);break;default:at(e,t,n)}}function Su(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zp),t.forEach(function(r){var i=Bp.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function $e(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~o}if(r=i,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Dp(r/1960))-r,10e?16:e,gt===null)var r=!1;else{if(e=gt,gt=null,Ci=0,M&6)throw Error(C(331));var i=M;for(M|=4,j=e.current;j!==null;){var o=j,l=o.child;if(j.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uJ()-fs?Dt(e,0):cs|=n),Ee(e,t)}function of(e,t){t===0&&(e.mode&1?(t=jr,jr<<=1,!(jr&130023424)&&(jr=4194304)):t=1);var n=me();e=lt(e,t),e!==null&&(kr(e,t,n),Ee(e,n))}function Hp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),of(e,n)}function Bp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),of(e,n)}var lf;lf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Se.current)ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ke=!1,jp(e,t,n);ke=!!(e.flags&131072)}else ke=!1,W&&t.flags&1048576&&ac(t,gi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;br(e,t),e=t.pendingProps;var i=vn(t,pe.current);gn(t,n),i=is(null,t,r,e,i,n);var o=os();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xe(r)?(o=!0,pi(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,bl(t),i.updater=Ui,t.stateNode=i,i._reactInternals=t,ol(t,r,e,n),t=ul(null,t,r,!0,o,n)):(t.tag=0,W&&o&&Ql(t),ge(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(br(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Kp(r),e=Ae(r,e),i){case 0:t=sl(null,t,r,e,n);break e;case 1:t=mu(null,t,r,e,n);break e;case 11:t=hu(null,t,r,e,n);break e;case 14:t=gu(null,t,r,Ae(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),sl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),mu(e,t,r,i,n);case 3:e:{if(Hc(t),e===null)throw Error(C(387));r=t.pendingProps,o=t.memoizedState,i=o.element,gc(e,t),vi(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=xn(Error(C(423)),t),t=yu(e,t,r,n,i);break e}else if(r!==i){i=xn(Error(C(424)),t),t=yu(e,t,r,n,i);break e}else for(Le=wt(t.stateNode.containerInfo.firstChild),Pe=t,W=!0,Ve=null,n=pc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wn(),r===i){t=st(e,t,n);break e}ge(e,t,r,n)}t=t.child}return t;case 5:return mc(t),e===null&&nl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,qo(r,i)?l=null:o!==null&&qo(r,o)&&(t.flags|=32),Vc(e,t),ge(e,t,l,n),t.child;case 6:return e===null&&nl(t),null;case 13:return Bc(e,t,n);case 4:return es(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=kn(t,null,r,n):ge(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),hu(e,t,r,i,n);case 7:return ge(e,t,t.pendingProps,n),t.child;case 8:return ge(e,t,t.pendingProps.children,n),t.child;case 12:return ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,V(mi,r._currentValue),r._currentValue=l,o!==null)if(We(o.value,l)){if(o.children===i.children&&!Se.current){t=st(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){l=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=nt(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),rl(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(C(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),rl(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}ge(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,gn(t,n),i=De(i),r=r(i),t.flags|=1,ge(e,t,r,n),t.child;case 14:return r=t.type,i=Ae(r,t.pendingProps),i=Ae(r.type,i),gu(e,t,r,i,n);case 15:return Ac(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ae(r,i),br(e,t),t.tag=1,xe(r)?(e=!0,pi(t)):e=!1,gn(t,n),Dc(t,r,i),ol(t,r,i,n),ul(null,t,r,!0,e,n);case 19:return Wc(e,t,n);case 22:return Uc(e,t,n)}throw Error(C(156,t.tag))};function sf(e,t){return za(e,t)}function Wp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fe(e,t,n,r){return new Wp(e,t,n,r)}function gs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kp(e){if(typeof e=="function")return gs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fl)return 11;if(e===Il)return 14}return 2}function Et(e,t){var n=e.alternate;return n===null?(n=Fe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ni(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")gs(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case bt:return Mt(n.children,i,o,t);case zl:l=8,i|=8;break;case _o:return e=Fe(12,n,t,i|2),e.elementType=_o,e.lanes=o,e;case jo:return e=Fe(13,n,t,i),e.elementType=jo,e.lanes=o,e;case To:return e=Fe(19,n,t,i),e.elementType=To,e.lanes=o,e;case ma:return Bi(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ha:l=10;break e;case ga:l=9;break e;case Fl:l=11;break e;case Il:l=14;break e;case ct:l=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Fe(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Mt(e,t,n,r){return e=Fe(7,e,r,t),e.lanes=n,e}function Bi(e,t,n,r){return e=Fe(22,e,r,t),e.elementType=ma,e.lanes=n,e.stateNode={isHidden:!1},e}function xo(e,t,n){return e=Fe(6,e,null,t),e.lanes=n,e}function Eo(e,t,n){return t=Fe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Qp(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=no(0),this.expirationTimes=no(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=no(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ms(e,t,n,r,i,o,l,s,u){return e=new Qp(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Fe(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bl(o),e}function Xp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ff)}catch(e){console.error(e)}}ff(),ca.exports=Oe;var Zp=ca.exports,_u=Zp;No.createRoot=_u.createRoot,No.hydrateRoot=_u.hydrateRoot;function bp(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Tu(e,t,n){e.loadNamespaces(t,df(e,n))}function Ru(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,df(e,r))}function eh(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(s,u)=>{const a=t.services.backendConnector.state[`${s}|${u}`];return a===-1||a===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!l(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||l(r,e)&&(!i||l(o,e)))}function th(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(kl("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,e))return!1}}):eh(e,t,n)}const nh=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,rh={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},ih=e=>rh[e],oh=e=>e.replace(nh,ih);let Sl={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:oh};function lh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Sl={...Sl,...e}}function sh(){return Sl}let pf;function uh(e){pf=e}function ah(){return pf}const ch={type:"3rdParty",init(e){lh(e.options.react),uh(e)}},fh=q.createContext();class dh{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const ph=(e,t)=>{const n=q.useRef();return q.useEffect(()=>{n.current=e},[e,t]),n.current};function hf(e,t,n,r){return e.getFixedT(t,n,r)}function hh(e,t,n,r){return q.useCallback(hf(e,t,n,r),[e,t,n,r])}function On(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=q.useContext(fh)||{},o=n||r||ah();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new dh),!o){kl("You will need to pass in an i18next instance by using initReactI18next");const w=(N,P)=>typeof P=="string"?P:P&&typeof P=="object"&&typeof P.defaultValue=="string"?P.defaultValue:Array.isArray(N)?N[N.length-1]:N,L=[w,{},!1];return L.t=w,L.i18n={},L.ready=!1,L}o.options.react&&o.options.react.wait!==void 0&&kl("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...sh(),...o.options.react,...t},{useSuspense:s,keyPrefix:u}=l;let a=i||o.options&&o.options.defaultNS;a=typeof a=="string"?[a]:a||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(a);const f=(o.isInitialized||o.initializedStoreOnce)&&a.every(w=>th(w,o,l)),p=hh(o,t.lng||null,l.nsMode==="fallback"?a:a[0],u),c=()=>p,y=()=>hf(o,t.lng||null,l.nsMode==="fallback"?a:a[0],u),[v,k]=q.useState(c);let T=a.join();t.lng&&(T=`${t.lng}${T}`);const h=ph(T),d=q.useRef(!0);q.useEffect(()=>{const{bindI18n:w,bindI18nStore:L}=l;d.current=!0,!f&&!s&&(t.lng?Ru(o,t.lng,a,()=>{d.current&&k(y)}):Tu(o,a,()=>{d.current&&k(y)})),f&&h&&h!==T&&d.current&&k(y);function N(){d.current&&k(y)}return w&&o&&o.on(w,N),L&&o&&o.store.on(L,N),()=>{d.current=!1,w&&o&&w.split(" ").forEach(P=>o.off(P,N)),L&&o&&L.split(" ").forEach(P=>o.store.off(P,N))}},[o,T]),q.useEffect(()=>{d.current&&f&&k(c)},[o,u,f]);const g=[v,o,f];if(g.t=v,g.i18n=o,g.ready=f,f||!f&&!s)return g;throw new Promise(w=>{t.lng?Ru(o,t.lng,a,()=>w()):Tu(o,a,()=>w())})}var gh=q.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),ks=function(t,n,r){var i=r.get(t);return i?i(n):(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),null)};function zu(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}var Yi=q.forwardRef(function(e,t){var n=e.alt,r=e.color,i=e.size,o=e.weight,l=e.mirrored,s=e.children,u=e.renderPath,a=zu(e,["alt","color","size","weight","mirrored","children","renderPath"]),f=q.useContext(gh),p=f.color,c=p===void 0?"currentColor":p,y=f.size,v=f.weight,k=v===void 0?"regular":v,T=f.mirrored,h=T===void 0?!1:T,d=zu(f,["color","size","weight","mirrored"]);return E.createElement("svg",Object.assign({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i??y,height:i??y,fill:r??c,viewBox:"0 0 256 256",transform:l||h?"scale(-1, 1)":void 0},d,a),!!n&&E.createElement("title",null,n),s,E.createElement("rect",{width:"256",height:"256",fill:"none"}),u(o??k,r??c))});Yi.displayName="IconBase";var Qt=new Map;Qt.set("bold",function(e){return E.createElement(E.Fragment,null,E.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))});Qt.set("duotone",function(e){return E.createElement(E.Fragment,null,E.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))});Qt.set("fill",function(){return E.createElement(E.Fragment,null,E.createElement("path",{d:"M104,192a8.5,8.5,0,0,1-5.7-2.3l-56-56a8.1,8.1,0,0,1,11.4-11.4L104,172.7,210.3,66.3a8.1,8.1,0,0,1,11.4,11.4l-112,112A8.5,8.5,0,0,1,104,192Z"}))});Qt.set("light",function(e){return E.createElement(E.Fragment,null,E.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))});Qt.set("thin",function(e){return E.createElement(E.Fragment,null,E.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))});Qt.set("regular",function(e){return E.createElement(E.Fragment,null,E.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))});var mh=function(t,n){return ks(t,n,Qt)},gf=q.forwardRef(function(e,t){return E.createElement(Yi,Object.assign({ref:t},e,{renderPath:mh}))});gf.displayName="Check";var Xt=new Map;Xt.set("bold",function(e){return E.createElement(E.Fragment,null,E.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),E.createElement("line",{x1:"88",y1:"128",x2:"168",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),E.createElement("line",{x1:"128",y1:"88",x2:"128",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))});Xt.set("duotone",function(e){return E.createElement(E.Fragment,null,E.createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),E.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeMiterlimit:"10",strokeWidth:"16"}),E.createElement("line",{x1:"88",y1:"128",x2:"168",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),E.createElement("line",{x1:"128",y1:"88",x2:"128",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))});Xt.set("fill",function(){return E.createElement(E.Fragment,null,E.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.2,104.2,0,0,0,128,24Zm40,112H136v32a8,8,0,0,1-16,0V136H88a8,8,0,0,1,0-16h32V88a8,8,0,0,1,16,0v32h32a8,8,0,0,1,0,16Z"}))});Xt.set("light",function(e){return E.createElement(E.Fragment,null,E.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),E.createElement("line",{x1:"88",y1:"128",x2:"168",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),E.createElement("line",{x1:"128",y1:"88",x2:"128",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))});Xt.set("thin",function(e){return E.createElement(E.Fragment,null,E.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),E.createElement("line",{x1:"88",y1:"128",x2:"168",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),E.createElement("line",{x1:"128",y1:"88",x2:"128",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))});Xt.set("regular",function(e){return E.createElement(E.Fragment,null,E.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeMiterlimit:"10",strokeWidth:"16"}),E.createElement("line",{x1:"88",y1:"128",x2:"168",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),E.createElement("line",{x1:"128",y1:"88",x2:"128",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))});var yh=function(t,n){return ks(t,n,Xt)},mf=q.forwardRef(function(e,t){return E.createElement(Yi,Object.assign({ref:t},e,{renderPath:yh}))});mf.displayName="PlusCircle";var Yt=new Map;Yt.set("bold",function(e){return E.createElement(E.Fragment,null,E.createElement("line",{x1:"216",y1:"60",x2:"40",y2:"60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),E.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),E.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),E.createElement("path",{d:"M200,60V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),E.createElement("path",{d:"M168,60V36a16,16,0,0,0-16-16H104A16,16,0,0,0,88,36V60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))});Yt.set("duotone",function(e){return E.createElement(E.Fragment,null,E.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),E.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),E.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),E.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),E.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),E.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))});Yt.set("fill",function(){return E.createElement(E.Fragment,null,E.createElement("path",{d:"M216,48H176V40a24.1,24.1,0,0,0-24-24H104A24.1,24.1,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))});Yt.set("light",function(e){return E.createElement(E.Fragment,null,E.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),E.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),E.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),E.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),E.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))});Yt.set("thin",function(e){return E.createElement(E.Fragment,null,E.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),E.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),E.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),E.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),E.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))});Yt.set("regular",function(e){return E.createElement(E.Fragment,null,E.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),E.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),E.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),E.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),E.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))});var vh=function(t,n){return ks(t,n,Yt)},yf=q.forwardRef(function(e,t){return E.createElement(Yi,Object.assign({ref:t},e,{renderPath:vh}))});yf.displayName="Trash";var le=[];for(var Co=0;Co<256;++Co)le.push((Co+256).toString(16).slice(1));function wh(e,t=0){return(le[e[t+0]]+le[e[t+1]]+le[e[t+2]]+le[e[t+3]]+"-"+le[e[t+4]]+le[e[t+5]]+"-"+le[e[t+6]]+le[e[t+7]]+"-"+le[e[t+8]]+le[e[t+9]]+"-"+le[e[t+10]]+le[e[t+11]]+le[e[t+12]]+le[e[t+13]]+le[e[t+14]]+le[e[t+15]]).toLowerCase()}var Hr,kh=new Uint8Array(16);function Sh(){if(!Hr&&(Hr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Hr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Hr(kh)}var xh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Fu={randomUUID:xh};function Eh(e,t,n){if(Fu.randomUUID&&!t&&!e)return Fu.randomUUID();e=e||{};var r=e.random||(e.rng||Sh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,wh(r)}function Ch(){const[e,t]=q.useState([]),[n,r]=q.useState(""),i=e.length,o=e.filter(c=>c.isCompleted).length,l=i===0;function s(c){t(y=>y.map(v=>v.id===c?{...v,isCompleted:!v.isCompleted}:v))}function u(c){t(y=>y.filter(v=>v.id!==c))}function a(c){c.preventDefault();const y={id:Eh(),description:n,isCompleted:!1};t(v=>[...v,y]),r("")}function f(c){c.target.setCustomValidity(""),r(c.target.value)}function p(c){c.target.setCustomValidity("Task name can't be empty")}return{tasks:e,newTaskName:n,tasksLength:i,tasksCompleted:o,isEmptyList:l,onToggleCheckTask:s,onDeleteTask:u,handleCreateNewTask:a,handleChangeNewTaskName:f,handleNewTaskNameInvalid:p}}const Lh="_header_16cmy_1",Ph="_title_16cmy_23",Iu={header:Lh,title:Ph};function Nh(e){return z.jsxs("svg",{width:"22",height:"36",viewBox:"0 0 22 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[z.jsxs("g",{clipPath:"url(#clip0_4130_511)",children:[z.jsx("path",{d:"M11.0215 2.93302C14.1472 6.9011 15.8158 11.7944 15.7553 16.8155V18.0141L16.7865 18.6416C18.119 19.4482 19.1127 20.6993 19.5866 22.1669C19.1705 21.8605 18.7352 21.5803 18.2833 21.3278L15.5333 19.7838L15.0391 22.9001C14.9963 23.1755 14.9389 23.4485 14.8672 23.718H7.16151C7.04692 23.3655 6.95382 23.0129 6.86789 22.6463L6.24484 19.8261L3.70968 21.2362C3.28615 21.473 2.87723 21.7344 2.48507 22.0188C2.96824 20.5682 3.94123 19.3242 5.24224 18.4935L6.22336 17.866V16.7521C6.24106 11.7513 7.92967 6.89523 11.0287 2.93302H11.0215ZM11.0287 0C10.868 0.000390307 10.7128 0.0579856 10.5918 0.162162L10.5274 0.218566C6.39778 4.76564 4.10466 10.6454 4.08208 16.745C2.32967 17.8643 1.03251 19.5543 0.417263 21.5197C-0.197979 23.485 -0.0921719 25.6007 0.716194 27.4971C1.56776 25.6455 2.99131 24.1058 4.7839 23.0975C4.96368 23.8642 5.2031 24.6161 5.50005 25.3467C5.53771 25.4871 5.62118 25.6114 5.73763 25.7006C5.85408 25.7898 5.99706 25.8388 6.14458 25.8402H16.0847C16.2852 25.8402 16.4857 25.6498 16.586 25.3537C16.8758 24.6592 17.0778 23.9322 17.1875 23.1892C18.9836 24.1932 20.4083 25.7342 21.2553 27.5887C22.1124 25.7017 22.2451 23.5727 21.6287 21.5967C21.0124 19.6206 19.6888 17.9319 17.9037 16.8437C17.9745 10.7082 15.6935 4.77179 11.5157 0.218566C11.4535 0.150085 11.3773 0.0952397 11.2922 0.0575871C11.2071 0.0199344 11.1149 0.000314749 11.0215 0L11.0287 0Z",fill:"#4EA8DE"}),z.jsx("path",{d:"M11.0216 16.1598C10.4715 16.1598 9.93376 15.9995 9.47611 15.699C9.01846 15.3986 8.6614 14.9715 8.44993 14.4716C8.23847 13.9716 8.18206 13.4213 8.28782 12.8898C8.39358 12.3584 8.65678 11.8697 9.04423 11.4853C9.43169 11.1009 9.92606 10.838 10.465 10.7298C11.004 10.6216 11.5634 10.6729 12.0728 10.8773C12.5822 11.0816 13.0188 11.4298 13.3275 11.8781C13.6361 12.3263 13.8031 12.8545 13.8074 13.396C13.8159 13.7469 13.7542 14.0961 13.6256 14.4235C13.4971 14.751 13.3043 15.0503 13.0582 15.3043C12.8121 15.5583 12.5176 15.7622 12.1915 15.9041C11.8654 16.0461 11.5141 16.1234 11.1576 16.1316C11.1126 16.1387 11.0666 16.1387 11.0216 16.1316V16.1598Z",fill:"#4EA8DE"}),z.jsx("path",{d:"M14.8959 27.5958C14.7167 27.5901 14.5382 27.6198 14.3708 27.683C14.2034 27.7462 14.0505 27.8416 13.9211 27.9638C13.7917 28.086 13.6884 28.2323 13.6172 28.3943C13.546 28.5563 13.5084 28.7307 13.5066 28.9072V33.067C13.5066 33.4297 13.653 33.7776 13.9135 34.0342C14.1741 34.2907 14.5274 34.4348 14.8959 34.4348C15.2644 34.4348 15.6178 34.2907 15.8783 34.0342C16.1389 33.7776 16.2852 33.4297 16.2852 33.067V28.9636C16.291 28.7877 16.2611 28.6126 16.1973 28.4482C16.1336 28.2839 16.0372 28.1337 15.9139 28.0064C15.7906 27.879 15.6428 27.7772 15.4791 27.7067C15.3154 27.6362 15.139 27.5985 14.9604 27.5958H14.8959Z",fill:"#5E60CE"}),z.jsx("path",{d:"M7.16154 27.5957C6.97931 27.5863 6.797 27.6129 6.62546 27.6742C6.45392 27.7355 6.29665 27.8302 6.16302 27.9525C6.02939 28.0749 5.92213 28.2224 5.84761 28.3864C5.77309 28.5504 5.73284 28.7275 5.72925 28.9071V33.067C5.72925 33.4297 5.87562 33.7776 6.13617 34.0341C6.39672 34.2906 6.7501 34.4348 7.11857 34.4348C7.48704 34.4348 7.84042 34.2906 8.10097 34.0341C8.36152 33.7776 8.50789 33.4297 8.50789 33.067V28.9635C8.51362 28.7877 8.48373 28.6125 8.41998 28.4482C8.35623 28.2838 8.25989 28.1336 8.13658 28.0063C8.01326 27.879 7.86544 27.7771 7.70173 27.7067C7.53802 27.6362 7.36169 27.5985 7.18302 27.5957H7.16154Z",fill:"#5E60CE"}),z.jsx("path",{d:"M10.9213 27.5958C10.7426 27.592 10.5649 27.623 10.3984 27.6869C10.2318 27.7507 10.0797 27.8463 9.95068 27.9681C9.82167 28.0899 9.71828 28.2355 9.64644 28.3966C9.5746 28.5577 9.5357 28.7312 9.53198 28.9072V34.6392C9.53198 35.002 9.67836 35.3499 9.93891 35.6064C10.1995 35.8629 10.5528 36.007 10.9213 36.007C11.2898 36.007 11.6432 35.8629 11.9037 35.6064C12.1643 35.3499 12.3106 35.002 12.3106 34.6392V28.9988C12.3164 28.823 12.2865 28.6478 12.2227 28.4835C12.159 28.3191 12.0626 28.1689 11.9393 28.0416C11.816 27.9143 11.6682 27.8124 11.5045 27.7419C11.3408 27.6714 11.1644 27.6337 10.9858 27.631L10.9213 27.5958Z",fill:"#5E60CE"})]}),z.jsx("defs",{children:z.jsx("clipPath",{id:"clip0_4130_511",children:z.jsx("rect",{width:"22",height:"36",fill:"white"})})})]})}const Oh="_container_y38gt_1",_h={container:Oh};function jh(){const{i18n:e,t}=On();return z.jsxs("div",{className:_h.container,children:[z.jsx("button",{type:"button",title:t("languageSwitch.titleEn"),"aria-label":t("languageSwitch.ariaLabelEn"),onClick:()=>e.changeLanguage("en"),children:z.jsx("img",{src:"./usa-flag.png",alt:t("languageSwitch.altEn")})}),z.jsx("button",{type:"button",title:t("languageSwitch.titlePt"),"aria-label":t("languageSwitch.ariaLabelPt"),onClick:()=>e.changeLanguage("pt"),children:z.jsx("img",{src:"./brazil-flag.png",alt:t("languageSwitch.altPt")})})]})}function Th(){const{t:e}=On();return z.jsxs("header",{className:Iu.header,"aria-label":e("header.ariaLabel"),children:[z.jsx(jh,{}),z.jsx(Nh,{width:"1.375rem",height:"2.25rem"}),z.jsxs("h1",{className:Iu.title,children:[z.jsx("span",{children:e("header.title.part1")}),z.jsx("span",{children:e("header.title.part2")})]})]})}const Rh="_input_13yl5_1",zh={input:Rh};function Fh({...e}){return z.jsx("input",{className:zh.input,...e})}const Ih="_container_r38fj_1",Dh={container:Ih};function Mh({tasksLength:e,tasksCompleted:t}){const{t:n}=On();return z.jsxs("section",{className:Dh.container,"aria-live":"polite",children:[z.jsxs("p",{children:[n("listHeader.createdTasks")," ",z.jsx("span",{children:e})]}),z.jsxs("p",{children:[n("listHeader.done")," ",z.jsx("span",{children:t>0?`${t} ${n("listHeader.of")} ${e}`:t})]})]})}const $h="_container_1fw0x_1",Ah={container:$h};function Uh(){const{t:e}=On();return z.jsxs("section",{className:Ah.container,children:[z.jsx("img",{src:"./clipboard.png",alt:e("emptyList.clipboardAlt")}),z.jsxs("p",{children:[z.jsx("strong",{children:e("emptyList.title")}),z.jsx("br",{}),z.jsx("span",{children:e("emptyList.description")})]})]})}const Vh="_container_4a8b5_1",Hh="_checkbox_4a8b5_29",Bh="_checkboxUnchecked_4a8b5_43",Wh="_checkboxChecked_4a8b5_63",Kh="_description_4a8b5_83",Qh="_descriptionChecked_4a8b5_95",Xh="_trashButton_4a8b5_105",jt={container:Vh,checkbox:Hh,checkboxUnchecked:Bh,checkboxChecked:Wh,description:Kh,descriptionChecked:Qh,trashButton:Xh};function Yh({task:e,toggleCheckTask:t,deleteTask:n}){const{t:r}=On(),i=`${jt.checkbox} ${e.isCompleted?jt.checkboxChecked:jt.checkboxUnchecked}`,o=`${jt.description} ${e.isCompleted?jt.descriptionChecked:""}`;function l(){t(e.id)}function s(){n(e.id)}return z.jsxs("li",{className:jt.container,role:"listitem",children:[z.jsx("button",{className:i,type:"button",title:e.isCompleted?r("task.uncheckTask"):r("task.checkTask"),"aria-label":e.isCompleted?r("task.uncheckTask"):r("task.checkTask"),onClick:l,children:e.isCompleted?z.jsx(gf,{size:12,weight:"bold"}):null}),z.jsx("p",{className:o,children:e.description}),z.jsx("button",{className:jt.trashButton,type:"button",title:r("task.deleteTask"),"aria-label":r("task.deleteTask"),onClick:s,children:z.jsx(yf,{size:16,weight:"bold"})})]})}const Jh="_container_1rwm9_1",Gh="_content_1rwm9_57",qh="_formWrapper_1rwm9_81",Zh="_createButton_1rwm9_97",bh="_taskListWrapper_1rwm9_143",Mn={container:Jh,content:Gh,formWrapper:qh,createButton:Zh,taskListWrapper:bh};function eg(){const{t:e}=On(),{tasks:t,newTaskName:n,tasksLength:r,tasksCompleted:i,isEmptyList:o,onToggleCheckTask:l,onDeleteTask:s,handleCreateNewTask:u,handleChangeNewTaskName:a,handleNewTaskNameInvalid:f}=Ch();return z.jsxs("div",{className:Mn.container,children:[z.jsx(Th,{}),z.jsxs("main",{className:Mn.content,children:[z.jsxs("form",{className:Mn.formWrapper,onSubmit:u,children:[z.jsx(Fh,{placeholder:e("form.taskNameInput.placeholder"),"aria-label":e("form.taskNameInput.ariaLabel"),value:n,required:!0,onChange:a,onInvalid:f}),z.jsxs("button",{className:Mn.createButton,type:"submit",title:e("form.createButton.title"),"aria-label":e("form.createButton.ariaLabel"),children:[e("form.createButton.text")," ",z.jsx(mf,{size:18})]})]}),z.jsxs("section",{children:[z.jsx(Mh,{tasksLength:r,tasksCompleted:i}),o?z.jsx(Uh,{}):z.jsx("ul",{className:Mn.taskListWrapper,children:t.map(p=>z.jsx(Yh,{task:p,toggleCheckTask:l,deleteTask:s},p.id))})]})]})]})}const tg={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Ni{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||tg,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[s,u]=l;for(let a=0;a{let[s,u]=l;for(let a=0;a{e=r,t=i});return n.resolve=e,n.reject=t,n}function Du(e){return e==null?"":""+e}function ng(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const rg=/###/g;function bn(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(rg,"."):s}function i(){return!e||typeof e=="string"}const o=typeof t!="string"?t:t.split(".");let l=0;for(;l":">",'"':""","'":"'","/":"/"};function sg(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>lg[t]):e}class ug{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const ag=[" ",",","?","!",";"],cg=new ug(20);function fg(e,t,n){t=t||"",n=n||"";const r=ag.filter(l=>t.indexOf(l)<0&&n.indexOf(l)<0);if(r.length===0)return!0;const i=cg.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let o=!i.test(e);if(!o){const l=e.indexOf(n);l>0&&!i.test(e.substring(0,l))&&(o=!0)}return o}function xl(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o-1&&u0?e.replace("_","-"):e}class $u extends Ji{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,n],r&&(Array.isArray(r)?s.push(...r):typeof r=="string"&&o?s.push(...r.split(o)):s.push(r)));const u=Oi(this.data,s);return!u&&!n&&!r&&t.indexOf(".")>-1&&(t=s[0],n=s[1],r=s.slice(2).join(".")),u||!l||typeof r!="string"?u:xl(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(l?r.split(l):r)),t.indexOf(".")>-1&&(s=t.split("."),i=n,n=s[1]),this.addNamespaces(n),Mu(this.data,s,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let u=Oi(this.data,s)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?vf(u,r,o):u={...u,...r},Mu(this.data,s,u),l.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var wf={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const Au={};class ji extends Ji{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),ng(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ye.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const l=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!fg(t,r,i);if(l&&!s){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:o};const a=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),t=a.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:l,namespaces:s}=this.extractFromKey(t[t.length-1],n),u=s[s.length-1],a=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(a&&a.toLowerCase()==="cimode"){if(f){const w=n.nsSeparator||this.options.nsSeparator;return i?{res:`${u}${w}${l}`,usedKey:l,exactUsedKey:l,usedLng:a,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${w}${l}`}return i?{res:l,usedKey:l,exactUsedKey:l,usedLng:a,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:l}const p=this.resolve(t,n);let c=p&&p.res;const y=p&&p.usedKey||l,v=p&&p.exactUsedKey||l,k=Object.prototype.toString.apply(c),T=["[object Number]","[object Function]","[object RegExp]"],h=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,d=!this.i18nFormat||this.i18nFormat.handleAsObject;if(d&&c&&(typeof c!="string"&&typeof c!="boolean"&&typeof c!="number")&&T.indexOf(k)<0&&!(typeof h=="string"&&Array.isArray(c))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,c,{...n,ns:s}):`key '${l} (${this.language})' returned an object instead of string.`;return i?(p.res=w,p.usedParams=this.getUsedParamsDetails(n),p):w}if(o){const w=Array.isArray(c),L=w?[]:{},N=w?v:y;for(const P in c)if(Object.prototype.hasOwnProperty.call(c,P)){const R=`${N}${o}${P}`;L[P]=this.translate(R,{...n,joinArrays:!1,ns:s}),L[P]===R&&(L[P]=c[P])}c=L}}else if(d&&typeof h=="string"&&Array.isArray(c))c=c.join(h),c&&(c=this.extendTranslation(c,t,n,r));else{let w=!1,L=!1;const N=n.count!==void 0&&typeof n.count!="string",P=ji.hasDefaultValue(n),R=N?this.pluralResolver.getSuffix(a,n.count,n):"",$=n.ordinal&&N?this.pluralResolver.getSuffix(a,n.count,{ordinal:!1}):"",I=N&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=I&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${$}`]||n.defaultValue;!this.isValidLookup(c)&&P&&(w=!0,c=b),this.isValidLookup(c)||(L=!0,c=l);const qe=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&L?void 0:c,je=P&&b!==c&&this.options.updateMissing;if(L||w||je){if(this.logger.log(je?"updateKey":"missingKey",a,u,l,je?b:c),o){const S=this.resolve(l,{...n,keySeparator:!1});S&&S.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 m=[];const x=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&x&&x[0])for(let S=0;S{const A=P&&O!==c?O:qe;this.options.missingKeyHandler?this.options.missingKeyHandler(S,u,_,A,je,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(S,u,_,A,je,n),this.emit("missingKey",S,u,_,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?m.forEach(S=>{const _=this.pluralResolver.getSuffixes(S,n);I&&n[`defaultValue${this.options.pluralSeparator}zero`]&&_.indexOf(`${this.options.pluralSeparator}zero`)<0&&_.push(`${this.options.pluralSeparator}zero`),_.forEach(O=>{F([S],l+O,n[`defaultValue${O}`]||b)})}):F(m,l,b))}c=this.extendTranslation(c,t,n,p,r),L&&c===l&&this.options.appendNamespaceToMissingKey&&(c=`${u}:${l}`),(L||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${l}`:l,w?c:void 0):c=this.options.parseMissingKeyHandler(c))}return i?(p.res=c,p.usedParams=this.getUsedParamsDetails(n),p):c}extendTranslation(t,n,r,i,o){var l=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const a=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(a){const c=t.match(this.interpolator.nestingRegexp);f=c&&c.length}let p=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),t=this.interpolator.interpolate(t,p,r.lng||this.language,r),a){const c=t.match(this.interpolator.nestingRegexp),y=c&&c.length;f1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,l,s;return typeof t=="string"&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(r))return;const a=this.extractFromKey(u,n),f=a.key;i=f;let p=a.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));const c=n.count!==void 0&&typeof n.count!="string",y=c&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",k=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);p.forEach(T=>{this.isValidLookup(r)||(s=T,!Au[`${k[0]}-${T}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(Au[`${k[0]}-${T}`]=!0,this.logger.warn(`key "${i}" for languages "${k.join(", ")}" won't get resolved as namespace "${s}" 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!!!")),k.forEach(h=>{if(this.isValidLookup(r))return;l=h;const d=[f];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(d,f,h,T,n);else{let w;c&&(w=this.pluralResolver.getSuffix(h,n.count,n));const L=`${this.options.pluralSeparator}zero`,N=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(d.push(f+w),n.ordinal&&w.indexOf(N)===0&&d.push(f+w.replace(N,this.options.pluralSeparator)),y&&d.push(f+L)),v){const P=`${f}${this.options.contextSeparator}${n.context}`;d.push(P),c&&(d.push(P+w),n.ordinal&&w.indexOf(N)===0&&d.push(P+w.replace(N,this.options.pluralSeparator)),y&&d.push(P+L))}}let g;for(;g=d.pop();)this.isValidLookup(r)||(o=g,r=this.getResource(h,T,g,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:l,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function Lo(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Uu{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ye.create("languageUtils")}getScriptPartFromCode(t){if(t=_i(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=_i(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Lo(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Lo(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Lo(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=l=>{l&&(this.isSupportedCode(l)?i.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(l=>{i.indexOf(l)<0&&o(this.formatLanguageCode(l))}),i}}let dg=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],pg={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const hg=["v1","v2","v3"],gg=["v4"],Vu={zero:0,one:1,two:2,few:3,many:4,other:5};function mg(){const e={};return dg.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:pg[t.fc]}})}),e}class yg{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ye.create("pluralResolver"),(!this.options.compatibilityJSON||gg.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=mg()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(_i(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>Vu[i]-Vu[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!hg.includes(this.options.compatibilityJSON)}}function Hu(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=og(e,t,n);return!o&&i&&typeof n=="string"&&(o=xl(e,n,r),o===void 0&&(o=xl(t,n,r))),o}class vg{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ye.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:l,suffix:s,suffixEscaped:u,formatSeparator:a,unescapeSuffix:f,unescapePrefix:p,nestingPrefix:c,nestingPrefixEscaped:y,nestingSuffix:v,nestingSuffixEscaped:k,nestingOptionsSeparator:T,maxReplaces:h,alwaysFormat:d}=t.interpolation;this.escape=n!==void 0?n:sg,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?Gt(o):l||"{{",this.suffix=s?Gt(s):u||"}}",this.formatSeparator=a||",",this.unescapePrefix=f?"":p||"-",this.unescapeSuffix=this.unescapePrefix?"":f||"",this.nestingPrefix=c?Gt(c):y||Gt("$t("),this.nestingSuffix=v?Gt(v):k||Gt(")"),this.nestingOptionsSeparator=T||",",this.maxReplaces=h||1e3,this.alwaysFormat=d!==void 0?d:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,l,s;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function a(v){return v.replace(/\$/g,"$$$$")}const f=v=>{if(v.indexOf(this.formatSeparator)<0){const d=Hu(n,u,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(d,void 0,r,{...i,...n,interpolationkey:v}):d}const k=v.split(this.formatSeparator),T=k.shift().trim(),h=k.join(this.formatSeparator).trim();return this.format(Hu(n,u,T,this.options.keySeparator,this.options.ignoreJSONStructure),h,r,{...i,...n,interpolationkey:T})};this.resetRegExp();const p=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,c=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>a(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?a(this.escape(v)):a(v)}].forEach(v=>{for(s=0;o=v.regex.exec(t);){const k=o[1].trim();if(l=f(k),l===void 0)if(typeof p=="function"){const h=p(t,o,i);l=typeof h=="string"?h:""}else if(i&&Object.prototype.hasOwnProperty.call(i,k))l="";else if(c){l=o[0];continue}else this.logger.warn(`missed to pass in variable ${k} for interpolating ${t}`),l="";else typeof l!="string"&&!this.useRawValueToEscape&&(l=Du(l));const T=v.safeValue(l);if(t=t.replace(o[0],T),c?(v.regex.lastIndex+=l.length,v.regex.lastIndex-=o[0].length):v.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,l;function s(u,a){const f=this.nestingOptionsSeparator;if(u.indexOf(f)<0)return u;const p=u.split(new RegExp(`${f}[ ]*{`));let c=`{${p[1]}`;u=p[0],c=this.interpolate(c,l);const y=c.match(/'/g),v=c.match(/"/g);(y&&y.length%2===0&&!v||v.length%2!==0)&&(c=c.replace(/'/g,'"'));try{l=JSON.parse(c),a&&(l={...a,...l})}catch(k){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,k),`${u}${f}${c}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,u}for(;i=this.nestingRegexp.exec(t);){let u=[];l={...r},l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;let a=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const f=i[1].split(this.formatSeparator).map(p=>p.trim());i[1]=f.shift(),u=f,a=!0}if(o=n(s.call(this,i[1].trim(),l),l),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=Du(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),a&&(o=u.reduce((f,p)=>this.format(f,p,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}function wg(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(l=>{if(l){const[s,...u]=l.split(":"),a=u.join(":").trim().replace(/^'+|'+$/g,""),f=s.trim();n[f]||(n[f]=a),a==="false"&&(n[f]=!1),a==="true"&&(n[f]=!0),isNaN(a)||(n[f]=parseInt(a,10))}})}return{formatName:t,formatOptions:n}}function qt(e){const t={};return function(r,i,o){const l=i+JSON.stringify(o);let s=t[l];return s||(s=e(_i(i),o),t[l]=s),s(r)}}class kg{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ye.create("formatter"),this.options=t,this.formats={number:qt((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:qt((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:qt((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:qt((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:qt((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=qt(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((s,u)=>{const{formatName:a,formatOptions:f}=wg(u);if(this.formats[a]){let p=s;try{const c=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},y=c.locale||c.lng||i.locale||i.lng||r;p=this.formats[a](s,y,{...f,...i,...c})}catch(c){this.logger.warn(c)}return p}else this.logger.warn(`there was no format function for ${a}`);return s},t)}}function Sg(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class xg extends Ji{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Ye.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},l={},s={},u={};return t.forEach(a=>{let f=!0;n.forEach(p=>{const c=`${a}|${p}`;!r.reload&&this.store.hasResourceBundle(a,p)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?l[c]===void 0&&(l[c]=!0):(this.state[c]=1,f=!1,l[c]===void 0&&(l[c]=!0),o[c]===void 0&&(o[c]=!0),u[p]===void 0&&(u[p]=!0)))}),f||(s[a]=!0)}),(Object.keys(o).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(l),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const i=t.split("|"),o=i[0],l=i[1];n&&this.emit("failedLoading",o,l,n),r&&this.store.addResourceBundle(o,l,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const s={};this.queue.forEach(u=>{ig(u.loaded,[o],l),Sg(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(a=>{s[a]||(s[a]={});const f=u.loaded[a];f.length&&f.forEach(p=>{s[a][p]===void 0&&(s[a][p]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:l});return}this.readingCalls++;const s=(a,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const p=this.waitingReads.shift();this.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(a&&f&&i{this.read.call(this,t,n,r,i+1,o*2,l)},o);return}l(a,f)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const a=u(t,n);a&&typeof a.then=="function"?a.then(f=>s(null,f)).catch(s):s(null,a)}catch(a){s(a)}return}return u(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=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."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(l=>{this.loadOne(l)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(l,s)=>{l&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,l),!l&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,s),this.loaded(t,l,s)})}saveMissing(t,n,r,i,o){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){if(this.backend&&this.backend.create){const u={...l,isUpdate:o},a=this.backend.create.bind(this.backend);if(a.length<6)try{let f;a.length===5?f=a(t,n,r,i,u):f=a(t,n,r,i),f&&typeof f.then=="function"?f.then(p=>s(null,p)).catch(s):s(null,f)}catch(f){s(f)}else a(t,n,r,i,s,u)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function Bu(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Wu(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Br(){}function Eg(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class yr extends Ji{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Wu(t),this.services={},this.logger=Ye,this.modules={external:[]},Eg(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=Bu();this.options={...i,...this.options,...Wu(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(f){return f?typeof f=="function"?new f:f:null}if(!this.options.isClone){this.modules.logger?Ye.init(o(this.modules.logger),this.options):Ye.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:typeof Intl<"u"&&(f=kg);const p=new Uu(this.options);this.store=new $u(this.options.resources,this.options);const c=this.services;c.logger=Ye,c.resourceStore=this.store,c.languageUtils=p,c.pluralResolver=new yg(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(c.formatter=o(f),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new vg(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new xg(o(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(y){for(var v=arguments.length,k=new Array(v>1?v-1:0),T=1;T1?v-1:0),T=1;T{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Br),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[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(f=>{this[f]=function(){return t.store[f](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=function(){return t.store[f](...arguments),t}});const u=$n(),a=()=>{const f=(p,c)=>{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(c),r(p,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),u}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Br;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],l=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(a=>{a!=="cimode"&&o.indexOf(a)<0&&o.push(a)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>l(u)),this.options.preload&&this.options.preload.forEach(s=>l(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(t,n,r){const i=$n();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Br),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&wf.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=$n();this.emit("languageChanging",t);const o=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},l=(u,a)=>{a?(o(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit("languageChanged",a),this.logger.log("languageChanged",a)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(u,function(){return r.t(...arguments)})},s=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const a=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);a&&(this.language||o(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(a)),this.loadResources(a,f=>{l(f,a)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,r){var i=this;const o=function(l,s){let u;if(typeof s!="object"){for(var a=arguments.length,f=new Array(a>2?a-2:0),p=2;p`${u.keyPrefix}${c}${v}`):y=u.keyPrefix?`${u.keyPrefix}${c}${l}`:l,i.t(y,u)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(s,u)=>{const a=this.services.backendConnector.state[`${s}|${u}`];return a===-1||a===2};if(n.precheck){const s=n.precheck(this,l);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,t)&&(!i||l(o,t)))}loadNamespaces(t,n){const r=$n();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=$n();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(l=>i.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return o.length?(this.options.preload=i.concat(o),this.loadResources(l=>{r.resolve(),n&&n(l)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["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"],r=this.services&&this.services.languageUtils||new Uu(Bu());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new yr(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Br;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new yr(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new $u(this.store.data,i),o.services.resourceStore=o.store),o.translator=new ji(o.services,i),o.translator.on("*",function(s){for(var u=arguments.length,a=new Array(u>1?u-1:0),f=1;f"u"?"undefined":El(XMLHttpRequest))==="object"}function Cg(e){return!!e&&typeof e.then=="function"}function Lg(e){return Cg(e)?e:Promise.resolve(e)}function Pg(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Cl={exports:{}},Wr={exports:{}},Ku;function Ng(){return Ku||(Ku=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Bn<"u"&&Bn,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(l){var s=typeof o<"u"&&o||typeof self<"u"&&self||typeof s<"u"&&s,u={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function a(m){return m&&DataView.prototype.isPrototypeOf(m)}if(u.arrayBuffer)var f=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(m){return m&&f.indexOf(Object.prototype.toString.call(m))>-1};function c(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(m)||m==="")throw new TypeError('Invalid character in header field name: "'+m+'"');return m.toLowerCase()}function y(m){return typeof m!="string"&&(m=String(m)),m}function v(m){var x={next:function(){var F=m.shift();return{done:F===void 0,value:F}}};return u.iterable&&(x[Symbol.iterator]=function(){return x}),x}function k(m){this.map={},m instanceof k?m.forEach(function(x,F){this.append(F,x)},this):Array.isArray(m)?m.forEach(function(x){this.append(x[0],x[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(x){this.append(x,m[x])},this)}k.prototype.append=function(m,x){m=c(m),x=y(x);var F=this.map[m];this.map[m]=F?F+", "+x:x},k.prototype.delete=function(m){delete this.map[c(m)]},k.prototype.get=function(m){return m=c(m),this.has(m)?this.map[m]:null},k.prototype.has=function(m){return this.map.hasOwnProperty(c(m))},k.prototype.set=function(m,x){this.map[c(m)]=y(x)},k.prototype.forEach=function(m,x){for(var F in this.map)this.map.hasOwnProperty(F)&&m.call(x,this.map[F],F,this)},k.prototype.keys=function(){var m=[];return this.forEach(function(x,F){m.push(F)}),v(m)},k.prototype.values=function(){var m=[];return this.forEach(function(x){m.push(x)}),v(m)},k.prototype.entries=function(){var m=[];return this.forEach(function(x,F){m.push([F,x])}),v(m)},u.iterable&&(k.prototype[Symbol.iterator]=k.prototype.entries);function T(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function h(m){return new Promise(function(x,F){m.onload=function(){x(m.result)},m.onerror=function(){F(m.error)}})}function d(m){var x=new FileReader,F=h(x);return x.readAsArrayBuffer(m),F}function g(m){var x=new FileReader,F=h(x);return x.readAsText(m),F}function w(m){for(var x=new Uint8Array(m),F=new Array(x.length),S=0;S-1?x:m}function $(m,x){if(!(this instanceof $))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var F=x.body;if(m instanceof $){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,x.headers||(this.headers=new k(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!F&&m._bodyInit!=null&&(F=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new k(x.headers)),this.method=R(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&F)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(F),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var S=/([?&])_=[^&]*/;if(S.test(this.url))this.url=this.url.replace(S,"$1_="+new Date().getTime());else{var _=/\?/;this.url+=(_.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}$.prototype.clone=function(){return new $(this,{body:this._bodyInit})};function I(m){var x=new FormData;return m.trim().split("&").forEach(function(F){if(F){var S=F.split("="),_=S.shift().replace(/\+/g," "),O=S.join("=").replace(/\+/g," ");x.append(decodeURIComponent(_),decodeURIComponent(O))}}),x}function b(m){var x=new k,F=m.replace(/\r?\n[\t ]+/g," ");return F.split("\r").map(function(S){return S.indexOf(` -`)===0?S.substr(1,S.length):S}).forEach(function(S){var _=S.split(":"),O=_.shift().trim();if(O){var A=_.join(":").trim();x.append(O,A)}}),x}N.call($.prototype);function ne(m,x){if(!(this instanceof ne))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.ok=this.status>=200&&this.status<300,this.statusText=x.statusText===void 0?"":""+x.statusText,this.headers=new k(x.headers),this.url=x.url||"",this._initBody(m)}N.call(ne.prototype),ne.prototype.clone=function(){return new ne(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new k(this.headers),url:this.url})},ne.error=function(){var m=new ne(null,{status:0,statusText:""});return m.type="error",m};var qe=[301,302,303,307,308];ne.redirect=function(m,x){if(qe.indexOf(x)===-1)throw new RangeError("Invalid status code");return new ne(null,{status:x,headers:{location:m}})},l.DOMException=s.DOMException;try{new l.DOMException}catch{l.DOMException=function(x,F){this.message=x,this.name=F;var S=Error(x);this.stack=S.stack},l.DOMException.prototype=Object.create(Error.prototype),l.DOMException.prototype.constructor=l.DOMException}function je(m,x){return new Promise(function(F,S){var _=new $(m,x);if(_.signal&&_.signal.aborted)return S(new l.DOMException("Aborted","AbortError"));var O=new XMLHttpRequest;function A(){O.abort()}O.onload=function(){var oe={status:O.status,statusText:O.statusText,headers:b(O.getAllResponseHeaders()||"")};oe.url="responseURL"in O?O.responseURL:oe.headers.get("X-Request-URL");var Te="response"in O?O.response:O.responseText;setTimeout(function(){F(new ne(Te,oe))},0)},O.onerror=function(){setTimeout(function(){S(new TypeError("Network request failed"))},0)},O.ontimeout=function(){setTimeout(function(){S(new TypeError("Network request failed"))},0)},O.onabort=function(){setTimeout(function(){S(new l.DOMException("Aborted","AbortError"))},0)};function G(oe){try{return oe===""&&s.location.href?s.location.href:oe}catch{return oe}}O.open(_.method,G(_.url),!0),_.credentials==="include"?O.withCredentials=!0:_.credentials==="omit"&&(O.withCredentials=!1),"responseType"in O&&(u.blob?O.responseType="blob":u.arrayBuffer&&_.headers.get("Content-Type")&&_.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(O.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof k)?Object.getOwnPropertyNames(x.headers).forEach(function(oe){O.setRequestHeader(oe,y(x.headers[oe]))}):_.headers.forEach(function(oe,Te){O.setRequestHeader(Te,oe)}),_.signal&&(_.signal.addEventListener("abort",A),O.onreadystatechange=function(){O.readyState===4&&_.signal.removeEventListener("abort",A)}),O.send(typeof _._bodyInit>"u"?null:_._bodyInit)})}return je.polyfill=!0,s.fetch||(s.fetch=je,s.Headers=k,s.Request=$,s.Response=ne),l.Headers=k,l.Request=$,l.Response=ne,l.fetch=je,l})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Wr,Wr.exports)),Wr.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Bn<"u"&&Bn.fetch?n=Bn.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof Pg<"u"&&typeof window>"u"){var r=n||Ng();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Cl,Cl.exports);var Sf=Cl.exports;const xf=Zu(Sf),Qu=Pf({__proto__:null,default:xf},[Sf]);function Xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yu(e){for(var t=1;t"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var l=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,s=Yu({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},Gu?{}:l),u=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{Ju(n,s,i,u)}catch(a){if(!l||Object.keys(l).length===0||!a.message||a.message.indexOf("not implemented")<0)return i(a);try{Object.keys(l).forEach(function(f){delete s[f]}),Ju(n,s,i,u),Gu=!0}catch(f){i(f)}}},Rg=function(t,n,r,i){r&&Bt(r)==="object"&&(r=Ll("",r).slice(1)),t.queryStringParams&&(n=Ll(n,t.queryStringParams));try{var o;vr?o=new vr:o=new Ti("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var l=t.customHeaders;if(l=typeof l=="function"?l():l,l)for(var s in l)o.setRequestHeader(s,l[s]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(u){console&&console.log(u)}},zg=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},rt&&n.indexOf("file:")!==0)return Tg(t,n,r,i);if(kf()||typeof ActiveXObject=="function")return Rg(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Cn(e){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cn(e)}function qu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Po(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Fg(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return Dg(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Po(Po(Po({},$g()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var l=setInterval(function(){return r.reload()},this.options.reloadInterval);Cn(l)==="object"&&typeof l.unref=="function"&&l.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,l){var s=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(n,i)),u=Lg(u),u.then(function(a){if(!a)return l(null,{});var f=s.services.interpolator.interpolate(a,{lng:n.join("+"),ns:i.join("+")});s.loadUrl(f,l,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var l=this,s=typeof i=="string"?[i]:i,u=typeof o=="string"?[o]:o,a=this.options.parseLoadPayload(s,u);this.options.request(this.options,n,a,function(f,p){if(p&&(p.status>=500&&p.status<600||!p.status))return r("failed loading "+n+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return r("failed loading "+n+"; status code: "+p.status,!1);if(!p&&f&&f.message&&f.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+f.message,!0);if(f)return r(f,!1);var c,y;try{typeof p.data=="string"?c=l.options.parse(p.data,i,o):c=p.data}catch{y="failed parsing "+n+" to json"}if(y)return r(y,!1);r(null,c)})}},{key:"create",value:function(n,r,i,o,l){var s=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var u=this.options.parsePayload(r,i,o),a=0,f=[],p=[];n.forEach(function(c){var y=s.options.addPath;typeof s.options.addPath=="function"&&(y=s.options.addPath(c,r));var v=s.services.interpolator.interpolate(y,{lng:c,ns:r});s.options.request(s.options,v,u,function(k,T){a+=1,f.push(k),p.push(T),a===n.length&&typeof l=="function"&&l(f,p)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,l=r.logger,s=i.language;if(!(s&&s.toLowerCase()==="cimode")){var u=[],a=function(p){var c=o.toResolveHierarchy(p);c.forEach(function(y){u.indexOf(y)<0&&u.push(y)})};a(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(f){return a(f)}),u.forEach(function(f){n.allOptions.ns.forEach(function(p){i.read(f,p,"read",null,null,function(c,y){c&&l.warn("loading namespace ".concat(p," for language ").concat(f," failed"),c),!c&&y&&l.log("loaded namespace ".concat(p," for language ").concat(f),y),i.loaded("".concat(f,"|").concat(p),c,y)})})})}}}])}();Lf.type="backend";he.use(Lf).use(ch).init({fallbackLng:"en",lng:"en",debug:!0,interpolation:{escapeValue:!1},backend:{loadPath:"/locales/{{lng}}/translation.json"}});No.createRoot(document.getElementById("root")).render(z.jsx(E.StrictMode,{children:z.jsx(eg,{})})); +`)===0?S.substr(1,S.length):S}).forEach(function(S){var _=S.split(":"),O=_.shift().trim();if(O){var A=_.join(":").trim();x.append(O,A)}}),x}N.call($.prototype);function ne(m,x){if(!(this instanceof ne))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.ok=this.status>=200&&this.status<300,this.statusText=x.statusText===void 0?"":""+x.statusText,this.headers=new k(x.headers),this.url=x.url||"",this._initBody(m)}N.call(ne.prototype),ne.prototype.clone=function(){return new ne(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new k(this.headers),url:this.url})},ne.error=function(){var m=new ne(null,{status:0,statusText:""});return m.type="error",m};var qe=[301,302,303,307,308];ne.redirect=function(m,x){if(qe.indexOf(x)===-1)throw new RangeError("Invalid status code");return new ne(null,{status:x,headers:{location:m}})},l.DOMException=s.DOMException;try{new l.DOMException}catch{l.DOMException=function(x,F){this.message=x,this.name=F;var S=Error(x);this.stack=S.stack},l.DOMException.prototype=Object.create(Error.prototype),l.DOMException.prototype.constructor=l.DOMException}function je(m,x){return new Promise(function(F,S){var _=new $(m,x);if(_.signal&&_.signal.aborted)return S(new l.DOMException("Aborted","AbortError"));var O=new XMLHttpRequest;function A(){O.abort()}O.onload=function(){var oe={status:O.status,statusText:O.statusText,headers:b(O.getAllResponseHeaders()||"")};oe.url="responseURL"in O?O.responseURL:oe.headers.get("X-Request-URL");var Te="response"in O?O.response:O.responseText;setTimeout(function(){F(new ne(Te,oe))},0)},O.onerror=function(){setTimeout(function(){S(new TypeError("Network request failed"))},0)},O.ontimeout=function(){setTimeout(function(){S(new TypeError("Network request failed"))},0)},O.onabort=function(){setTimeout(function(){S(new l.DOMException("Aborted","AbortError"))},0)};function G(oe){try{return oe===""&&s.location.href?s.location.href:oe}catch{return oe}}O.open(_.method,G(_.url),!0),_.credentials==="include"?O.withCredentials=!0:_.credentials==="omit"&&(O.withCredentials=!1),"responseType"in O&&(u.blob?O.responseType="blob":u.arrayBuffer&&_.headers.get("Content-Type")&&_.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(O.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof k)?Object.getOwnPropertyNames(x.headers).forEach(function(oe){O.setRequestHeader(oe,y(x.headers[oe]))}):_.headers.forEach(function(oe,Te){O.setRequestHeader(Te,oe)}),_.signal&&(_.signal.addEventListener("abort",A),O.onreadystatechange=function(){O.readyState===4&&_.signal.removeEventListener("abort",A)}),O.send(typeof _._bodyInit>"u"?null:_._bodyInit)})}return je.polyfill=!0,s.fetch||(s.fetch=je,s.Headers=k,s.Request=$,s.Response=ne),l.Headers=k,l.Request=$,l.Response=ne,l.fetch=je,l})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Wr,Wr.exports)),Wr.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof Bn<"u"&&Bn.fetch?n=Bn.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof Pg<"u"&&typeof window>"u"){var r=n||Ng();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Cl,Cl.exports);var Sf=Cl.exports;const xf=Zu(Sf),Qu=Pf({__proto__:null,default:xf},[Sf]);function Xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yu(e){for(var t=1;t"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var l=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,s=Yu({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:o},Gu?{}:l),u=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{Ju(n,s,i,u)}catch(a){if(!l||Object.keys(l).length===0||!a.message||a.message.indexOf("not implemented")<0)return i(a);try{Object.keys(l).forEach(function(f){delete s[f]}),Ju(n,s,i,u),Gu=!0}catch(f){i(f)}}},Rg=function(t,n,r,i){r&&Bt(r)==="object"&&(r=Ll("",r).slice(1)),t.queryStringParams&&(n=Ll(n,t.queryStringParams));try{var o;vr?o=new vr:o=new Ti("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var l=t.customHeaders;if(l=typeof l=="function"?l():l,l)for(var s in l)o.setRequestHeader(s,l[s]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(u){console&&console.log(u)}},zg=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},rt&&n.indexOf("file:")!==0)return Tg(t,n,r,i);if(kf()||typeof ActiveXObject=="function")return Rg(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Cn(e){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cn(e)}function qu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Po(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Fg(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return Dg(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=Po(Po(Po({},$g()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var l=setInterval(function(){return r.reload()},this.options.reloadInterval);Cn(l)==="object"&&typeof l.unref=="function"&&l.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,l){var s=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(n,i)),u=Lg(u),u.then(function(a){if(!a)return l(null,{});var f=s.services.interpolator.interpolate(a,{lng:n.join("+"),ns:i.join("+")});s.loadUrl(f,l,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var l=this,s=typeof i=="string"?[i]:i,u=typeof o=="string"?[o]:o,a=this.options.parseLoadPayload(s,u);this.options.request(this.options,n,a,function(f,p){if(p&&(p.status>=500&&p.status<600||!p.status))return r("failed loading "+n+"; status code: "+p.status,!0);if(p&&p.status>=400&&p.status<500)return r("failed loading "+n+"; status code: "+p.status,!1);if(!p&&f&&f.message&&f.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+f.message,!0);if(f)return r(f,!1);var c,y;try{typeof p.data=="string"?c=l.options.parse(p.data,i,o):c=p.data}catch{y="failed parsing "+n+" to json"}if(y)return r(y,!1);r(null,c)})}},{key:"create",value:function(n,r,i,o,l){var s=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var u=this.options.parsePayload(r,i,o),a=0,f=[],p=[];n.forEach(function(c){var y=s.options.addPath;typeof s.options.addPath=="function"&&(y=s.options.addPath(c,r));var v=s.services.interpolator.interpolate(y,{lng:c,ns:r});s.options.request(s.options,v,u,function(k,T){a+=1,f.push(k),p.push(T),a===n.length&&typeof l=="function"&&l(f,p)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,l=r.logger,s=i.language;if(!(s&&s.toLowerCase()==="cimode")){var u=[],a=function(p){var c=o.toResolveHierarchy(p);c.forEach(function(y){u.indexOf(y)<0&&u.push(y)})};a(s),this.allOptions.preload&&this.allOptions.preload.forEach(function(f){return a(f)}),u.forEach(function(f){n.allOptions.ns.forEach(function(p){i.read(f,p,"read",null,null,function(c,y){c&&l.warn("loading namespace ".concat(p," for language ").concat(f," failed"),c),!c&&y&&l.log("loaded namespace ".concat(p," for language ").concat(f),y),i.loaded("".concat(f,"|").concat(p),c,y)})})})}}}])}();Lf.type="backend";const Ag="/ignite-to-do-list-reactjs/";he.use(Lf).use(ch).init({fallbackLng:"en",lng:"en",debug:!0,interpolation:{escapeValue:!1},backend:{loadPath:`${Ag}locales/{{lng}}/translation.json`}});No.createRoot(document.getElementById("root")).render(z.jsx(E.StrictMode,{children:z.jsx(eg,{})})); diff --git a/index.html b/index.html index e8baf22..b39fcf3 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@ /> Ignite TO-DO List - +