(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function a(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(l){if(l.ep)return;l.ep=!0;const u=a(l);fetch(l.href,u)}})();function Gw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var If={exports:{}},vr={};var A0;function qw(){if(A0)return vr;A0=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(r,l,u){var f=null;if(u!==void 0&&(f=""+u),l.key!==void 0&&(f=""+l.key),"key"in l){u={};for(var d in l)d!=="key"&&(u[d]=l[d])}else u=l;return l=u.ref,{$$typeof:e,type:r,key:f,ref:l!==void 0?l:null,props:u}}return vr.Fragment=n,vr.jsx=a,vr.jsxs=a,vr}var C0;function Yw(){return C0||(C0=1,If.exports=qw()),If.exports}var H=Yw(),Pf={exports:{}},ct={};var R0;function Kw(){if(R0)return ct;R0=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function x(w){return w===null||typeof w!="object"?null:(w=S&&w[S]||w["@@iterator"],typeof w=="function"?w:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,M={};function _(w,U,F){this.props=w,this.context=U,this.refs=M,this.updater=F||E}_.prototype.isReactComponent={},_.prototype.setState=function(w,U){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,U,"setState")},_.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function O(){}O.prototype=_.prototype;function L(w,U,F){this.props=w,this.context=U,this.refs=M,this.updater=F||E}var q=L.prototype=new O;q.constructor=L,R(q,_.prototype),q.isPureReactComponent=!0;var I=Array.isArray;function K(){}var P={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function J(w,U,F){var Z=F.ref;return{$$typeof:e,type:w,key:U,ref:Z!==void 0?Z:null,props:F}}function it(w,U){return J(w.type,U,w.props)}function dt(w){return typeof w=="object"&&w!==null&&w.$$typeof===e}function gt(w){var U={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(F){return U[F]})}var zt=/\/+/g;function Dt(w,U){return typeof w=="object"&&w!==null&&w.key!=null?gt(""+w.key):U.toString(36)}function Kt(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(K,K):(w.status="pending",w.then(function(U){w.status==="pending"&&(w.status="fulfilled",w.value=U)},function(U){w.status==="pending"&&(w.status="rejected",w.reason=U)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function V(w,U,F,Z,ot){var ut=typeof w;(ut==="undefined"||ut==="boolean")&&(w=null);var xt=!1;if(w===null)xt=!0;else switch(ut){case"bigint":case"string":case"number":xt=!0;break;case"object":switch(w.$$typeof){case e:case n:xt=!0;break;case g:return xt=w._init,V(xt(w._payload),U,F,Z,ot)}}if(xt)return ot=ot(w),xt=Z===""?"."+Dt(w,0):Z,I(ot)?(F="",xt!=null&&(F=xt.replace(zt,"$&/")+"/"),V(ot,U,F,"",function(En){return En})):ot!=null&&(dt(ot)&&(ot=it(ot,F+(ot.key==null||w&&w.key===ot.key?"":(""+ot.key).replace(zt,"$&/")+"/")+xt)),U.push(ot)),1;xt=0;var Ft=Z===""?".":Z+":";if(I(w))for(var At=0;At>>1,ft=V[st];if(0>>1;stl(F,Q))Zl(ot,F)?(V[st]=ot,V[Z]=Q,st=Z):(V[st]=F,V[U]=Q,st=U);else if(Zl(ot,Q))V[st]=ot,V[Z]=Q,st=Z;else break t}}return Y}function l(V,Y){var Q=V.sortIndex-Y.sortIndex;return Q!==0?Q:V.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,d=f.now();e.unstable_now=function(){return f.now()-d}}var p=[],m=[],g=1,y=null,S=3,x=!1,E=!1,R=!1,M=!1,_=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function q(V){for(var Y=a(m);Y!==null;){if(Y.callback===null)r(m);else if(Y.startTime<=V)r(m),Y.sortIndex=Y.expirationTime,n(p,Y);else break;Y=a(m)}}function I(V){if(R=!1,q(V),!E)if(a(p)!==null)E=!0,K||(K=!0,gt());else{var Y=a(m);Y!==null&&Kt(I,Y.startTime-V)}}var K=!1,P=-1,X=5,J=-1;function it(){return M?!0:!(e.unstable_now()-JV&&it());){var st=y.callback;if(typeof st=="function"){y.callback=null,S=y.priorityLevel;var ft=st(y.expirationTime<=V);if(V=e.unstable_now(),typeof ft=="function"){y.callback=ft,q(V),Y=!0;break e}y===a(p)&&r(p),q(V)}else r(p);y=a(p)}if(y!==null)Y=!0;else{var w=a(m);w!==null&&Kt(I,w.startTime-V),Y=!1}}break t}finally{y=null,S=Q,x=!1}Y=void 0}}finally{Y?gt():K=!1}}}var gt;if(typeof L=="function")gt=function(){L(dt)};else if(typeof MessageChannel<"u"){var zt=new MessageChannel,Dt=zt.port2;zt.port1.onmessage=dt,gt=function(){Dt.postMessage(null)}}else gt=function(){_(dt,0)};function Kt(V,Y){P=_(function(){V(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125st?(V.sortIndex=Q,n(m,V),a(p)===null&&V===a(m)&&(R?(O(P),P=-1):R=!0,Kt(I,Q-st))):(V.sortIndex=ft,n(p,V),E||x||(E=!0,K||(K=!0,gt()))),V},e.unstable_shouldYield=it,e.unstable_wrapCallback=function(V){var Y=S;return function(){var Q=S;S=Y;try{return V.apply(this,arguments)}finally{S=Q}}}})(Yf)),Yf}var M0;function Xw(){return M0||(M0=1,qf.exports=Fw()),qf.exports}var Kf={exports:{}},ye={};var _0;function Qw(){if(_0)return ye;_0=1;var e=Kr();function n(p){var m="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Kf.exports=Qw(),Kf.exports}var N0;function Jw(){if(N0)return br;N0=1;var e=Xw(),n=Kr(),a=Zw();function r(t){var i="https://react.dev/errors/"+t;if(1ft||(t.current=st[ft],st[ft]=null,ft--)}function F(t,i){ft++,st[ft]=t.current,t.current=i}var Z=w(null),ot=w(null),ut=w(null),xt=w(null);function Ft(t,i){switch(F(ut,i),F(ot,t),F(Z,null),i.nodeType){case 9:case 11:t=(t=i.documentElement)&&(t=t.namespaceURI)?Fy(t):0;break;default:if(t=i.tagName,i=i.namespaceURI)i=Fy(i),t=Xy(i,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(Z),F(Z,t)}function At(){U(Z),U(ot),U(ut)}function En(t){t.memoizedState!==null&&F(xt,t);var i=Z.current,s=Xy(i,t.type);i!==s&&(F(ot,t),F(Z,s))}function wn(t){ot.current===t&&(U(Z),U(ot)),xt.current===t&&(U(xt),pr._currentValue=Q)}var mn,wp;function ji(t){if(mn===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);mn=i&&i[1]||"",wp=-1)":-1c||T[o]!==z[c]){var $=` `+T[o].replace(" at new "," at ");return t.displayName&&$.includes("")&&($=$.replace("",t.displayName)),$}while(1<=o&&0<=c);break}}}finally{wu=!1,Error.prepareStackTrace=s}return(s=t?t.displayName||t.name:"")?ji(s):""}function xT(t,i){switch(t.tag){case 26:case 27:case 5:return ji(t.type);case 16:return ji("Lazy");case 13:return t.child!==i&&i!==null?ji("Suspense Fallback"):ji("Suspense");case 19:return ji("SuspenseList");case 0:case 15:return Au(t.type,!1);case 11:return Au(t.type.render,!1);case 1:return Au(t.type,!0);case 31:return ji("Activity");default:return""}}function Ap(t){try{var i="",s=null;do i+=xT(t,s),s=t,t=t.return;while(t);return i}catch(o){return` Error generating stack: `+o.message+` `+o.stack}}var Cu=Object.prototype.hasOwnProperty,Ru=e.unstable_scheduleCallback,Du=e.unstable_cancelCallback,TT=e.unstable_shouldYield,ET=e.unstable_requestPaint,_e=e.unstable_now,wT=e.unstable_getCurrentPriorityLevel,Cp=e.unstable_ImmediatePriority,Rp=e.unstable_UserBlockingPriority,to=e.unstable_NormalPriority,AT=e.unstable_LowPriority,Dp=e.unstable_IdlePriority,CT=e.log,RT=e.unstable_setDisableYieldValue,Cs=null,Le=null;function Qn(t){if(typeof CT=="function"&&RT(t),Le&&typeof Le.setStrictMode=="function")try{Le.setStrictMode(Cs,t)}catch{}}var Ne=Math.clz32?Math.clz32:MT,DT=Math.log,OT=Math.LN2;function MT(t){return t>>>=0,t===0?32:31-(DT(t)/OT|0)|0}var eo=256,no=262144,io=4194304;function Bi(t){var i=t&42;if(i!==0)return i;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ao(t,i,s){var o=t.pendingLanes;if(o===0)return 0;var c=0,h=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var b=o&134217727;return b!==0?(o=b&~h,o!==0?c=Bi(o):(v&=b,v!==0?c=Bi(v):s||(s=b&~t,s!==0&&(c=Bi(s))))):(b=o&~h,b!==0?c=Bi(b):v!==0?c=Bi(v):s||(s=o&~t,s!==0&&(c=Bi(s)))),c===0?0:i!==0&&i!==c&&(i&h)===0&&(h=c&-c,s=i&-i,h>=s||h===32&&(s&4194048)!==0)?i:c}function Rs(t,i){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&i)===0}function _T(t,i){switch(t){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Op(){var t=io;return io<<=1,(io&62914560)===0&&(io=4194304),t}function Ou(t){for(var i=[],s=0;31>s;s++)i.push(t);return i}function Ds(t,i){t.pendingLanes|=i,i!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function LT(t,i,s,o,c,h){var v=t.pendingLanes;t.pendingLanes=s,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=s,t.entangledLanes&=s,t.errorRecoveryDisabledLanes&=s,t.shellSuspendCounter=0;var b=t.entanglements,T=t.expirationTimes,z=t.hiddenUpdates;for(s=v&~s;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var UT=/[\n"\\]/g;function qe(t){return t.replace(UT,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function ju(t,i,s,o,c,h,v,b){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),i!=null?v==="number"?(i===0&&t.value===""||t.value!=i)&&(t.value=""+Ge(i)):t.value!==""+Ge(i)&&(t.value=""+Ge(i)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),i!=null?Bu(t,v,Ge(i)):s!=null?Bu(t,v,Ge(s)):o!=null&&t.removeAttribute("value"),c==null&&h!=null&&(t.defaultChecked=!!h),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.name=""+Ge(b):t.removeAttribute("name")}function Ip(t,i,s,o,c,h,v,b){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.type=h),i!=null||s!=null){if(!(h!=="submit"&&h!=="reset"||i!=null)){zu(t);return}s=s!=null?""+Ge(s):"",i=i!=null?""+Ge(i):s,b||i===t.value||(t.value=i),t.defaultValue=i}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=b?t.checked:!!o,t.defaultChecked=!!o,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v),zu(t)}function Bu(t,i,s){i==="number"&&oo(t.ownerDocument)===t||t.defaultValue===""+s||(t.defaultValue=""+s)}function xa(t,i,s,o){if(t=t.options,i){i={};for(var c=0;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ku=!1;if(Rn)try{var Ls={};Object.defineProperty(Ls,"passive",{get:function(){ku=!0}}),window.addEventListener("test",Ls,Ls),window.removeEventListener("test",Ls,Ls)}catch{ku=!1}var Jn=null,Iu=null,uo=null;function Xp(){if(uo)return uo;var t,i=Iu,s=i.length,o,c="value"in Jn?Jn.value:Jn.textContent,h=c.length;for(t=0;t=js),em=" ",nm=!1;function im(t,i){switch(t){case"keyup":return hE.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function am(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Aa=!1;function pE(t,i){switch(t){case"compositionend":return am(i);case"keypress":return i.which!==32?null:(nm=!0,em);case"textInput":return t=i.data,t===em&&nm?null:t;default:return null}}function mE(t,i){if(Aa)return t==="compositionend"||!Ku&&im(t,i)?(t=Xp(),uo=Iu=Jn=null,Aa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:s,offset:i-t};t=o}t:{for(;s;){if(s.nextSibling){s=s.nextSibling;break t}s=s.parentNode}s=void 0}s=hm(s)}}function pm(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?pm(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function mm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var i=oo(t.document);i instanceof t.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)t=i.contentWindow;else break;i=oo(t.document)}return i}function Qu(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}var EE=Rn&&"documentMode"in document&&11>=document.documentMode,Ca=null,Zu=null,$s=null,Ju=!1;function gm(t,i,s){var o=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Ju||Ca==null||Ca!==oo(o)||(o=Ca,"selectionStart"in o&&Qu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),$s&&Us($s,o)||($s=o,o=il(Zu,"onSelect"),0>=v,c-=v,gn=1<<32-Ne(i)+c|s<pt?(St=nt,nt=null):St=nt.sibling;var wt=j(D,nt,N[pt],k);if(wt===null){nt===null&&(nt=St);break}t&&nt&&wt.alternate===null&&i(D,nt),A=h(wt,A,pt),Et===null?at=wt:Et.sibling=wt,Et=wt,nt=St}if(pt===N.length)return s(D,nt),Tt&&On(D,pt),at;if(nt===null){for(;ptpt?(St=nt,nt=null):St=nt.sibling;var Si=j(D,nt,wt.value,k);if(Si===null){nt===null&&(nt=St);break}t&&nt&&Si.alternate===null&&i(D,nt),A=h(Si,A,pt),Et===null?at=Si:Et.sibling=Si,Et=Si,nt=St}if(wt.done)return s(D,nt),Tt&&On(D,pt),at;if(nt===null){for(;!wt.done;pt++,wt=N.next())wt=G(D,wt.value,k),wt!==null&&(A=h(wt,A,pt),Et===null?at=wt:Et.sibling=wt,Et=wt);return Tt&&On(D,pt),at}for(nt=o(nt);!wt.done;pt++,wt=N.next())wt=B(nt,D,pt,wt.value,k),wt!==null&&(t&&wt.alternate!==null&&nt.delete(wt.key===null?pt:wt.key),A=h(wt,A,pt),Et===null?at=wt:Et.sibling=wt,Et=wt);return t&&nt.forEach(function(Pw){return i(D,Pw)}),Tt&&On(D,pt),at}function Nt(D,A,N,k){if(typeof N=="object"&&N!==null&&N.type===R&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case x:t:{for(var at=N.key;A!==null;){if(A.key===at){if(at=N.type,at===R){if(A.tag===7){s(D,A.sibling),k=c(A,N.props.children),k.return=D,D=k;break t}}else if(A.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===X&&Ki(at)===A.type){s(D,A.sibling),k=c(A,N.props),qs(k,N),k.return=D,D=k;break t}s(D,A);break}else i(D,A);A=A.sibling}N.type===R?(k=Ii(N.props.children,D.mode,k,N.key),k.return=D,D=k):(k=So(N.type,N.key,N.props,null,D.mode,k),qs(k,N),k.return=D,D=k)}return v(D);case E:t:{for(at=N.key;A!==null;){if(A.key===at)if(A.tag===4&&A.stateNode.containerInfo===N.containerInfo&&A.stateNode.implementation===N.implementation){s(D,A.sibling),k=c(A,N.children||[]),k.return=D,D=k;break t}else{s(D,A);break}else i(D,A);A=A.sibling}k=sc(N,D.mode,k),k.return=D,D=k}return v(D);case X:return N=Ki(N),Nt(D,A,N,k)}if(Kt(N))return tt(D,A,N,k);if(gt(N)){if(at=gt(N),typeof at!="function")throw Error(r(150));return N=at.call(N),rt(D,A,N,k)}if(typeof N.then=="function")return Nt(D,A,Ro(N),k);if(N.$$typeof===L)return Nt(D,A,Eo(D,N),k);Do(D,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,A!==null&&A.tag===6?(s(D,A.sibling),k=c(A,N),k.return=D,D=k):(s(D,A),k=ac(N,D.mode,k),k.return=D,D=k),v(D)):s(D,A)}return function(D,A,N,k){try{Gs=0;var at=Nt(D,A,N,k);return Va=null,at}catch(nt){if(nt===Ba||nt===Ao)throw nt;var Et=je(29,nt,null,D.mode);return Et.lanes=k,Et.return=D,Et}}}var Xi=$m(!0),Hm=$m(!1),ii=!1;function yc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vc(t,i){t=t.updateQueue,i.updateQueue===t&&(i.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ai(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function si(t,i,s){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(Ct&2)!==0){var c=o.pending;return c===null?i.next=i:(i.next=c.next,c.next=i),o.pending=i,i=bo(t),Em(t,null,s),i}return vo(t,o,i,s),bo(t)}function Ys(t,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194048)!==0)){var o=i.lanes;o&=t.pendingLanes,s|=o,i.lanes=s,_p(t,s)}}function bc(t,i){var s=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,s===o)){var c=null,h=null;if(s=s.firstBaseUpdate,s!==null){do{var v={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};h===null?c=h=v:h=h.next=v,s=s.next}while(s!==null);h===null?c=h=i:h=h.next=i}else c=h=i;s={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:h,shared:o.shared,callbacks:o.callbacks},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=i:t.next=i,s.lastBaseUpdate=i}var Sc=!1;function Ks(){if(Sc){var t=ja;if(t!==null)throw t}}function Fs(t,i,s,o){Sc=!1;var c=t.updateQueue;ii=!1;var h=c.firstBaseUpdate,v=c.lastBaseUpdate,b=c.shared.pending;if(b!==null){c.shared.pending=null;var T=b,z=T.next;T.next=null,v===null?h=z:v.next=z,v=T;var $=t.alternate;$!==null&&($=$.updateQueue,b=$.lastBaseUpdate,b!==v&&(b===null?$.firstBaseUpdate=z:b.next=z,$.lastBaseUpdate=T))}if(h!==null){var G=c.baseState;v=0,$=z=T=null,b=h;do{var j=b.lane&-536870913,B=j!==b.lane;if(B?(bt&j)===j:(o&j)===j){j!==0&&j===za&&(Sc=!0),$!==null&&($=$.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});t:{var tt=t,rt=b;j=i;var Nt=s;switch(rt.tag){case 1:if(tt=rt.payload,typeof tt=="function"){G=tt.call(Nt,G,j);break t}G=tt;break t;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=rt.payload,j=typeof tt=="function"?tt.call(Nt,G,j):tt,j==null)break t;G=y({},G,j);break t;case 2:ii=!0}}j=b.callback,j!==null&&(t.flags|=64,B&&(t.flags|=8192),B=c.callbacks,B===null?c.callbacks=[j]:B.push(j))}else B={lane:j,tag:b.tag,payload:b.payload,callback:b.callback,next:null},$===null?(z=$=B,T=G):$=$.next=B,v|=j;if(b=b.next,b===null){if(b=c.shared.pending,b===null)break;B=b,b=B.next,B.next=null,c.lastBaseUpdate=B,c.shared.pending=null}}while(!0);$===null&&(T=G),c.baseState=T,c.firstBaseUpdate=z,c.lastBaseUpdate=$,h===null&&(c.shared.lanes=0),ci|=v,t.lanes=v,t.memoizedState=G}}function km(t,i){if(typeof t!="function")throw Error(r(191,t));t.call(i)}function Im(t,i){var s=t.callbacks;if(s!==null)for(t.callbacks=null,t=0;th?h:8;var v=V.T,b={};V.T=b,$c(t,!1,i,s);try{var T=c(),z=V.S;if(z!==null&&z(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var $=LE(T,o);Zs(t,i,$,He(t))}else Zs(t,i,o,He(t))}catch(G){Zs(t,i,{then:function(){},status:"rejected",reason:G},He())}finally{Y.p=h,v!==null&&b.types!==null&&(v.types=b.types),V.T=v}}function UE(){}function Vc(t,i,s,o){if(t.tag!==5)throw Error(r(476));var c=Sg(t).queue;bg(t,c,i,Q,s===null?UE:function(){return xg(t),s(o)})}function Sg(t){var i=t.memoizedState;if(i!==null)return i;i={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:Q},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:s},next:null},t.memoizedState=i,t=t.alternate,t!==null&&(t.memoizedState=i),i}function xg(t){var i=Sg(t);i.next===null&&(i=t.alternate.memoizedState),Zs(t,i.next.queue,{},He())}function Uc(){return he(pr)}function Tg(){return Qt().memoizedState}function Eg(){return Qt().memoizedState}function $E(t){for(var i=t.return;i!==null;){switch(i.tag){case 24:case 3:var s=He();t=ai(s);var o=si(i,t,s);o!==null&&(Me(o,i,s),Ys(o,i,s)),i={cache:dc()},t.payload=i;return}i=i.return}}function HE(t,i,s){var o=He();s={lane:o,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Uo(t)?Ag(i,s):(s=nc(t,i,s,o),s!==null&&(Me(s,t,o),Cg(s,i,o)))}function wg(t,i,s){var o=He();Zs(t,i,s,o)}function Zs(t,i,s,o){var c={lane:o,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Uo(t))Ag(i,c);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=i.lastRenderedReducer,h!==null))try{var v=i.lastRenderedState,b=h(v,s);if(c.hasEagerState=!0,c.eagerState=b,ze(b,v))return vo(t,i,c,0),jt===null&&yo(),!1}catch{}if(s=nc(t,i,c,o),s!==null)return Me(s,t,o),Cg(s,i,o),!0}return!1}function $c(t,i,s,o){if(o={lane:2,revertLane:vf(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Uo(t)){if(i)throw Error(r(479))}else i=nc(t,s,o,2),i!==null&&Me(i,t,2)}function Uo(t){var i=t.alternate;return t===ht||i!==null&&i===ht}function Ag(t,i){$a=_o=!0;var s=t.pending;s===null?i.next=i:(i.next=s.next,s.next=i),t.pending=i}function Cg(t,i,s){if((s&4194048)!==0){var o=i.lanes;o&=t.pendingLanes,s|=o,i.lanes=s,_p(t,s)}}var Js={readContext:he,use:zo,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt};Js.useEffectEvent=Gt;var Rg={readContext:he,use:zo,useCallback:function(t,i){return be().memoizedState=[t,i===void 0?null:i],t},useContext:he,useEffect:cg,useImperativeHandle:function(t,i,s){s=s!=null?s.concat([t]):null,Bo(4194308,4,pg.bind(null,i,t),s)},useLayoutEffect:function(t,i){return Bo(4194308,4,t,i)},useInsertionEffect:function(t,i){Bo(4,2,t,i)},useMemo:function(t,i){var s=be();i=i===void 0?null:i;var o=t();if(Qi){Qn(!0);try{t()}finally{Qn(!1)}}return s.memoizedState=[o,i],o},useReducer:function(t,i,s){var o=be();if(s!==void 0){var c=s(i);if(Qi){Qn(!0);try{s(i)}finally{Qn(!1)}}}else c=i;return o.memoizedState=o.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},o.queue=t,t=t.dispatch=HE.bind(null,ht,t),[o.memoizedState,t]},useRef:function(t){var i=be();return t={current:t},i.memoizedState=t},useState:function(t){t=Lc(t);var i=t.queue,s=wg.bind(null,ht,i);return i.dispatch=s,[t.memoizedState,s]},useDebugValue:jc,useDeferredValue:function(t,i){var s=be();return Bc(s,t,i)},useTransition:function(){var t=Lc(!1);return t=bg.bind(null,ht,t.queue,!0,!1),be().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,i,s){var o=ht,c=be();if(Tt){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),jt===null)throw Error(r(349));(bt&127)!==0||Fm(o,i,s)}c.memoizedState=s;var h={value:s,getSnapshot:i};return c.queue=h,cg(Qm.bind(null,o,h,t),[t]),o.flags|=2048,ka(9,{destroy:void 0},Xm.bind(null,o,h,s,i),null),s},useId:function(){var t=be(),i=jt.identifierPrefix;if(Tt){var s=yn,o=gn;s=(o&~(1<<32-Ne(o)-1)).toString(32)+s,i="_"+i+"R_"+s,s=Lo++,0<\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof o.is=="string"?v.createElement("select",{is:o.is}):v.createElement("select"),o.multiple?h.multiple=!0:o.size&&(h.size=o.size);break;default:h=typeof o.is=="string"?v.createElement(c,{is:o.is}):v.createElement(c)}}h[ce]=i,h[we]=o;t:for(v=i.child;v!==null;){if(v.tag===5||v.tag===6)h.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===i)break t;for(;v.sibling===null;){if(v.return===null||v.return===i)break t;v=v.return}v.sibling.return=v.return,v=v.sibling}i.stateNode=h;t:switch(pe(h,c,o),c){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break t;case"img":o=!0;break t;default:o=!1}o&&jn(i)}}return Vt(i),Wc(i,i.type,t===null?null:t.memoizedProps,i.pendingProps,s),null;case 6:if(t&&i.stateNode!=null)t.memoizedProps!==o&&jn(i);else{if(typeof o!="string"&&i.stateNode===null)throw Error(r(166));if(t=ut.current,La(i)){if(t=i.stateNode,s=i.memoizedProps,o=null,c=fe,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}t[ce]=i,t=!!(t.nodeValue===s||o!==null&&o.suppressHydrationWarning===!0||Yy(t.nodeValue,s)),t||ei(i,!0)}else t=al(t).createTextNode(o),t[ce]=i,i.stateNode=t}return Vt(i),null;case 31:if(s=i.memoizedState,t===null||t.memoizedState!==null){if(o=La(i),s!==null){if(t===null){if(!o)throw Error(r(318));if(t=i.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[ce]=i}else Pi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Vt(i),t=!1}else s=uc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),t=!0;if(!t)return i.flags&256?(Ve(i),i):(Ve(i),null);if((i.flags&128)!==0)throw Error(r(558))}return Vt(i),null;case 13:if(o=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=La(i),o!==null&&o.dehydrated!==null){if(t===null){if(!c)throw Error(r(318));if(c=i.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[ce]=i}else Pi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Vt(i),c=!1}else c=uc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=c),c=!0;if(!c)return i.flags&256?(Ve(i),i):(Ve(i),null)}return Ve(i),(i.flags&128)!==0?(i.lanes=s,i):(s=o!==null,t=t!==null&&t.memoizedState!==null,s&&(o=i.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==c&&(o.flags|=2048)),s!==t&&s&&(i.child.flags|=8192),Po(i,i.updateQueue),Vt(i),null);case 4:return At(),t===null&&Tf(i.stateNode.containerInfo),Vt(i),null;case 10:return _n(i.type),Vt(i),null;case 19:if(U(Xt),o=i.memoizedState,o===null)return Vt(i),null;if(c=(i.flags&128)!==0,h=o.rendering,h===null)if(c)tr(o,!1);else{if(qt!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(h=Mo(t),h!==null){for(i.flags|=128,tr(o,!1),t=h.updateQueue,i.updateQueue=t,Po(i,t),i.subtreeFlags=0,t=s,s=i.child;s!==null;)wm(s,t),s=s.sibling;return F(Xt,Xt.current&1|2),Tt&&On(i,o.treeForkCount),i.child}t=t.sibling}o.tail!==null&&_e()>Fo&&(i.flags|=128,c=!0,tr(o,!1),i.lanes=4194304)}else{if(!c)if(t=Mo(h),t!==null){if(i.flags|=128,c=!0,t=t.updateQueue,i.updateQueue=t,Po(i,t),tr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!h.alternate&&!Tt)return Vt(i),null}else 2*_e()-o.renderingStartTime>Fo&&s!==536870912&&(i.flags|=128,c=!0,tr(o,!1),i.lanes=4194304);o.isBackwards?(h.sibling=i.child,i.child=h):(t=o.last,t!==null?t.sibling=h:i.child=h,o.last=h)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=_e(),t.sibling=null,s=Xt.current,F(Xt,c?s&1|2:s&1),Tt&&On(i,o.treeForkCount),t):(Vt(i),null);case 22:case 23:return Ve(i),Tc(),o=i.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(i.flags|=8192):o&&(i.flags|=8192),o?(s&536870912)!==0&&(i.flags&128)===0&&(Vt(i),i.subtreeFlags&6&&(i.flags|=8192)):Vt(i),s=i.updateQueue,s!==null&&Po(i,s.retryQueue),s=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==s&&(i.flags|=2048),t!==null&&U(Yi),null;case 24:return s=null,t!==null&&(s=t.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),_n(Zt),Vt(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function qE(t,i){switch(oc(i),i.tag){case 1:return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return _n(Zt),At(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 26:case 27:case 5:return wn(i),null;case 31:if(i.memoizedState!==null){if(Ve(i),i.alternate===null)throw Error(r(340));Pi()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 13:if(Ve(i),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Pi()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return U(Xt),null;case 4:return At(),null;case 10:return _n(i.type),null;case 22:case 23:return Ve(i),Tc(),t!==null&&U(Yi),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 24:return _n(Zt),null;case 25:return null;default:return null}}function Zg(t,i){switch(oc(i),i.tag){case 3:_n(Zt),At();break;case 26:case 27:case 5:wn(i);break;case 4:At();break;case 31:i.memoizedState!==null&&Ve(i);break;case 13:Ve(i);break;case 19:U(Xt);break;case 10:_n(i.type);break;case 22:case 23:Ve(i),Tc(),t!==null&&U(Yi);break;case 24:_n(Zt)}}function er(t,i){try{var s=i.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var c=o.next;s=c;do{if((s.tag&t)===t){o=void 0;var h=s.create,v=s.inst;o=h(),v.destroy=o}s=s.next}while(s!==c)}}catch(b){Mt(i,i.return,b)}}function li(t,i,s){try{var o=i.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var h=c.next;o=h;do{if((o.tag&t)===t){var v=o.inst,b=v.destroy;if(b!==void 0){v.destroy=void 0,c=i;var T=s,z=b;try{z()}catch($){Mt(c,T,$)}}}o=o.next}while(o!==h)}}catch($){Mt(i,i.return,$)}}function Jg(t){var i=t.updateQueue;if(i!==null){var s=t.stateNode;try{Im(i,s)}catch(o){Mt(t,t.return,o)}}}function Wg(t,i,s){s.props=Zi(t.type,t.memoizedProps),s.state=t.memoizedState;try{s.componentWillUnmount()}catch(o){Mt(t,i,o)}}function nr(t,i){try{var s=t.ref;if(s!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof s=="function"?t.refCleanup=s(o):s.current=o}}catch(c){Mt(t,i,c)}}function vn(t,i){var s=t.ref,o=t.refCleanup;if(s!==null)if(typeof o=="function")try{o()}catch(c){Mt(t,i,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(c){Mt(t,i,c)}else s.current=null}function ty(t){var i=t.type,s=t.memoizedProps,o=t.stateNode;try{t:switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&o.focus();break t;case"img":s.src?o.src=s.src:s.srcSet&&(o.srcset=s.srcSet)}}catch(c){Mt(t,t.return,c)}}function tf(t,i,s){try{var o=t.stateNode;dw(o,t.type,s,i),o[we]=i}catch(c){Mt(t,t.return,c)}}function ey(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&mi(t.type)||t.tag===4}function ef(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||ey(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&mi(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function nf(t,i,s){var o=t.tag;if(o===5||o===6)t=t.stateNode,i?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(t,i):(i=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,i.appendChild(t),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Cn));else if(o!==4&&(o===27&&mi(t.type)&&(s=t.stateNode,i=null),t=t.child,t!==null))for(nf(t,i,s),t=t.sibling;t!==null;)nf(t,i,s),t=t.sibling}function Go(t,i,s){var o=t.tag;if(o===5||o===6)t=t.stateNode,i?s.insertBefore(t,i):s.appendChild(t);else if(o!==4&&(o===27&&mi(t.type)&&(s=t.stateNode),t=t.child,t!==null))for(Go(t,i,s),t=t.sibling;t!==null;)Go(t,i,s),t=t.sibling}function ny(t){var i=t.stateNode,s=t.memoizedProps;try{for(var o=t.type,c=i.attributes;c.length;)i.removeAttributeNode(c[0]);pe(i,o,s),i[ce]=t,i[we]=s}catch(h){Mt(t,t.return,h)}}var Bn=!1,te=!1,af=!1,iy=typeof WeakSet=="function"?WeakSet:Set,le=null;function YE(t,i){if(t=t.containerInfo,Af=fl,t=mm(t),Qu(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else t:{s=(s=t.ownerDocument)&&s.defaultView||window;var o=s.getSelection&&s.getSelection();if(o&&o.rangeCount!==0){s=o.anchorNode;var c=o.anchorOffset,h=o.focusNode;o=o.focusOffset;try{s.nodeType,h.nodeType}catch{s=null;break t}var v=0,b=-1,T=-1,z=0,$=0,G=t,j=null;e:for(;;){for(var B;G!==s||c!==0&&G.nodeType!==3||(b=v+c),G!==h||o!==0&&G.nodeType!==3||(T=v+o),G.nodeType===3&&(v+=G.nodeValue.length),(B=G.firstChild)!==null;)j=G,G=B;for(;;){if(G===t)break e;if(j===s&&++z===c&&(b=v),j===h&&++$===o&&(T=v),(B=G.nextSibling)!==null)break;G=j,j=G.parentNode}G=B}s=b===-1||T===-1?null:{start:b,end:T}}else s=null}s=s||{start:0,end:0}}else s=null;for(Cf={focusedElem:t,selectionRange:s},fl=!1,le=i;le!==null;)if(i=le,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,le=t;else for(;le!==null;){switch(i=le,h=i.alternate,t=i.flags,i.tag){case 0:if((t&4)!==0&&(t=i.updateQueue,t=t!==null?t.events:null,t!==null))for(s=0;s title"))),pe(h,o,s),h[ce]=t,oe(h),o=h;break t;case"link":var v=u0("link","href",c).get(o+(s.href||""));if(v){for(var b=0;bNt&&(v=Nt,Nt=rt,rt=v);var D=dm(b,rt),A=dm(b,Nt);if(D&&A&&(B.rangeCount!==1||B.anchorNode!==D.node||B.anchorOffset!==D.offset||B.focusNode!==A.node||B.focusOffset!==A.offset)){var N=G.createRange();N.setStart(D.node,D.offset),B.removeAllRanges(),rt>Nt?(B.addRange(N),B.extend(A.node,A.offset)):(N.setEnd(A.node,A.offset),B.addRange(N))}}}}for(G=[],B=b;B=B.parentNode;)B.nodeType===1&&G.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;bs?32:s,V.T=null,s=ff,ff=null;var h=hi,v=kn;if(ae=0,Ya=hi=null,kn=0,(Ct&6)!==0)throw Error(r(331));var b=Ct;if(Ct|=4,py(h.current),fy(h,h.current,v,s),Ct=b,lr(0,!1),Le&&typeof Le.onPostCommitFiberRoot=="function")try{Le.onPostCommitFiberRoot(Cs,h)}catch{}return!0}finally{Y.p=c,V.T=o,Ly(t,i)}}function zy(t,i,s){i=Ke(s,i),i=Pc(t.stateNode,i,2),t=si(t,i,2),t!==null&&(Ds(t,2),bn(t))}function Mt(t,i,s){if(t.tag===3)zy(t,t,s);else for(;i!==null;){if(i.tag===3){zy(i,t,s);break}else if(i.tag===1){var o=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(fi===null||!fi.has(o))){t=Ke(s,t),s=jg(2),o=si(i,s,2),o!==null&&(Bg(s,o,i,t),Ds(o,2),bn(o));break}}i=i.return}}function mf(t,i,s){var o=t.pingCache;if(o===null){o=t.pingCache=new XE;var c=new Set;o.set(i,c)}else c=o.get(i),c===void 0&&(c=new Set,o.set(i,c));c.has(s)||(of=!0,c.add(s),t=tw.bind(null,t,i,s),i.then(t,t))}function tw(t,i,s){var o=t.pingCache;o!==null&&o.delete(i),t.pingedLanes|=t.suspendedLanes&s,t.warmLanes&=~s,jt===t&&(bt&s)===s&&(qt===4||qt===3&&(bt&62914560)===bt&&300>_e()-Ko?(Ct&2)===0&&Ka(t,0):lf|=s,qa===bt&&(qa=0)),bn(t)}function jy(t,i){i===0&&(i=Op()),t=ki(t,i),t!==null&&(Ds(t,i),bn(t))}function ew(t){var i=t.memoizedState,s=0;i!==null&&(s=i.retryLane),jy(t,s)}function nw(t,i){var s=0;switch(t.tag){case 31:case 13:var o=t.stateNode,c=t.memoizedState;c!==null&&(s=c.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(r(314))}o!==null&&o.delete(i),jy(t,s)}function iw(t,i){return Ru(t,i)}var tl=null,Xa=null,gf=!1,el=!1,yf=!1,pi=0;function bn(t){t!==Xa&&t.next===null&&(Xa===null?tl=Xa=t:Xa=Xa.next=t),el=!0,gf||(gf=!0,sw())}function lr(t,i){if(!yf&&el){yf=!0;do for(var s=!1,o=tl;o!==null;){if(t!==0){var c=o.pendingLanes;if(c===0)var h=0;else{var v=o.suspendedLanes,b=o.pingedLanes;h=(1<<31-Ne(42|t)+1)-1,h&=c&~(v&~b),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(s=!0,$y(o,h))}else h=bt,h=ao(o,o===jt?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(h&3)===0||Rs(o,h)||(s=!0,$y(o,h));o=o.next}while(s);yf=!1}}function aw(){By()}function By(){el=gf=!1;var t=0;pi!==0&&mw()&&(t=pi);for(var i=_e(),s=null,o=tl;o!==null;){var c=o.next,h=Vy(o,i);h===0?(o.next=null,s===null?tl=c:s.next=c,c===null&&(Xa=s)):(s=o,(t!==0||(h&3)!==0)&&(el=!0)),o=c}ae!==0&&ae!==5||lr(t),pi!==0&&(pi=0)}function Vy(t,i){for(var s=t.suspendedLanes,o=t.pingedLanes,c=t.expirationTimes,h=t.pendingLanes&-62914561;0b)break;var $=T.transferSize,G=T.initiatorType;$&&Ky(G)&&(T=T.responseEnd,v+=$*(T"u"?null:document;function s0(t,i,s){var o=Qa;if(o&&typeof i=="string"&&i){var c=qe(i);c='link[rel="'+t+'"][href="'+c+'"]',typeof s=="string"&&(c+='[crossorigin="'+s+'"]'),a0.has(c)||(a0.add(c),t={rel:t,crossOrigin:s,href:i},o.querySelector(c)===null&&(i=o.createElement("link"),pe(i,"link",t),oe(i),o.head.appendChild(i)))}}function ww(t){In.D(t),s0("dns-prefetch",t,null)}function Aw(t,i){In.C(t,i),s0("preconnect",t,i)}function Cw(t,i,s){In.L(t,i,s);var o=Qa;if(o&&t&&i){var c='link[rel="preload"][as="'+qe(i)+'"]';i==="image"&&s&&s.imageSrcSet?(c+='[imagesrcset="'+qe(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(c+='[imagesizes="'+qe(s.imageSizes)+'"]')):c+='[href="'+qe(t)+'"]';var h=c;switch(i){case"style":h=Za(t);break;case"script":h=Ja(t)}We.has(h)||(t=y({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:t,as:i},s),We.set(h,t),o.querySelector(c)!==null||i==="style"&&o.querySelector(hr(h))||i==="script"&&o.querySelector(dr(h))||(i=o.createElement("link"),pe(i,"link",t),oe(i),o.head.appendChild(i)))}}function Rw(t,i){In.m(t,i);var s=Qa;if(s&&t){var o=i&&typeof i.as=="string"?i.as:"script",c='link[rel="modulepreload"][as="'+qe(o)+'"][href="'+qe(t)+'"]',h=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ja(t)}if(!We.has(h)&&(t=y({rel:"modulepreload",href:t},i),We.set(h,t),s.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(dr(h)))return}o=s.createElement("link"),pe(o,"link",t),oe(o),s.head.appendChild(o)}}}function Dw(t,i,s){In.S(t,i,s);var o=Qa;if(o&&t){var c=ba(o).hoistableStyles,h=Za(t);i=i||"default";var v=c.get(h);if(!v){var b={loading:0,preload:null};if(v=o.querySelector(hr(h)))b.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":i},s),(s=We.get(h))&&Nf(t,s);var T=v=o.createElement("link");oe(T),pe(T,"link",t),T._p=new Promise(function(z,$){T.onload=z,T.onerror=$}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,rl(v,i,o)}v={type:"stylesheet",instance:v,count:1,state:b},c.set(h,v)}}}function Ow(t,i){In.X(t,i);var s=Qa;if(s&&t){var o=ba(s).hoistableScripts,c=Ja(t),h=o.get(c);h||(h=s.querySelector(dr(c)),h||(t=y({src:t,async:!0},i),(i=We.get(c))&&zf(t,i),h=s.createElement("script"),oe(h),pe(h,"link",t),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(c,h))}}function Mw(t,i){In.M(t,i);var s=Qa;if(s&&t){var o=ba(s).hoistableScripts,c=Ja(t),h=o.get(c);h||(h=s.querySelector(dr(c)),h||(t=y({src:t,async:!0,type:"module"},i),(i=We.get(c))&&zf(t,i),h=s.createElement("script"),oe(h),pe(h,"link",t),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(c,h))}}function r0(t,i,s,o){var c=(c=ut.current)?sl(c):null;if(!c)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=Za(s.href),s=ba(c).hoistableStyles,o=s.get(i),o||(o={type:"style",instance:null,count:0,state:null},s.set(i,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){t=Za(s.href);var h=ba(c).hoistableStyles,v=h.get(t);if(v||(c=c.ownerDocument||c,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(t,v),(h=c.querySelector(hr(t)))&&!h._p&&(v.instance=h,v.state.loading=5),We.has(t)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},We.set(t,s),h||_w(c,t,s,v.state))),i&&o===null)throw Error(r(528,""));return v}if(i&&o!==null)throw Error(r(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Ja(s),s=ba(c).hoistableScripts,o=s.get(i),o||(o={type:"script",instance:null,count:0,state:null},s.set(i,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Za(t){return'href="'+qe(t)+'"'}function hr(t){return'link[rel="stylesheet"]['+t+"]"}function o0(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function _w(t,i,s,o){t.querySelector('link[rel="preload"][as="style"]['+i+"]")?o.loading=1:(i=t.createElement("link"),o.preload=i,i.addEventListener("load",function(){return o.loading|=1}),i.addEventListener("error",function(){return o.loading|=2}),pe(i,"link",s),oe(i),t.head.appendChild(i))}function Ja(t){return'[src="'+qe(t)+'"]'}function dr(t){return"script[async]"+t}function l0(t,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var o=t.querySelector('style[data-href~="'+qe(s.href)+'"]');if(o)return i.instance=o,oe(o),o;var c=y({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),oe(o),pe(o,"style",c),rl(o,s.precedence,t),i.instance=o;case"stylesheet":c=Za(s.href);var h=t.querySelector(hr(c));if(h)return i.state.loading|=4,i.instance=h,oe(h),h;o=o0(s),(c=We.get(c))&&Nf(o,c),h=(t.ownerDocument||t).createElement("link"),oe(h);var v=h;return v._p=new Promise(function(b,T){v.onload=b,v.onerror=T}),pe(h,"link",o),i.state.loading|=4,rl(h,s.precedence,t),i.instance=h;case"script":return h=Ja(s.src),(c=t.querySelector(dr(h)))?(i.instance=c,oe(c),c):(o=s,(c=We.get(h))&&(o=y({},s),zf(o,c)),t=t.ownerDocument||t,c=t.createElement("script"),oe(c),pe(c,"link",o),t.head.appendChild(c),i.instance=c);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(o=i.instance,i.state.loading|=4,rl(o,s.precedence,t));return i.instance}function rl(t,i,s){for(var o=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,h=c,v=0;v title"):null)}function Lw(t,i,s){if(s===1||i.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(t=i.disabled,typeof i.precedence=="string"&&t==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function f0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Nw(t,i,s,o){if(s.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var c=Za(o.href),h=i.querySelector(hr(c));if(h){i=h._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(t.count++,t=ll.bind(t),i.then(t,t)),s.state.loading|=4,s.instance=h,oe(h);return}h=i.ownerDocument||i,o=o0(o),(c=We.get(c))&&Nf(o,c),h=h.createElement("link"),oe(h);var v=h;v._p=new Promise(function(b,T){v.onload=b,v.onerror=T}),pe(h,"link",o),s.instance=h}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(t.count++,s=ll.bind(t),i.addEventListener("load",s),i.addEventListener("error",s))}}var jf=0;function zw(t,i){return t.stylesheets&&t.count===0&&cl(t,t.stylesheets),0jf?50:800)+i);return t.unsuspend=s,function(){t.unsuspend=null,clearTimeout(o),clearTimeout(c)}}:null}function ll(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cl(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ul=null;function cl(t,i){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ul=new Map,i.forEach(jw,t),ul=null,ll.call(t))}function jw(t,i){if(!(i.state.loading&4)){var s=ul.get(t);if(s)var o=s.get(null);else{s=new Map,ul.set(t,s);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Gf.exports=Jw(),Gf.exports}var tA=Ww(),Ff={exports:{}},Xf={};var j0;function eA(){if(j0)return Xf;j0=1;var e=Kr();function n(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var a=typeof Object.is=="function"?Object.is:n,r=e.useSyncExternalStore,l=e.useRef,u=e.useEffect,f=e.useMemo,d=e.useDebugValue;return Xf.useSyncExternalStoreWithSelector=function(p,m,g,y,S){var x=l(null);if(x.current===null){var E={hasValue:!1,value:null};x.current=E}else E=x.current;x=f(function(){function M(I){if(!_){if(_=!0,O=I,I=y(I),S!==void 0&&E.hasValue){var K=E.value;if(S(K,I))return L=K}return L=I}if(K=L,a(O,I))return K;var P=y(I);return S!==void 0&&S(K,P)?(O=I,K):(O=I,L=P)}var _=!1,O,L,q=g===void 0?null:g;return[function(){return M(m())},q===null?void 0:function(){return M(q())}]},[m,g,y,S]);var R=r(p,x[0],x[1]);return u(function(){E.hasValue=!0,E.value=R},[R]),d(R),R},Xf}var B0;function nA(){return B0||(B0=1,Ff.exports=eA()),Ff.exports}nA();function iA(e){e()}function aA(){let e=null,n=null;return{clear(){e=null,n=null},notify(){iA(()=>{let a=e;for(;a;)a.callback(),a=a.next})},get(){const a=[];let r=e;for(;r;)a.push(r),r=r.next;return a},subscribe(a){let r=!0;const l=n={callback:a,next:null,prev:n};return l.prev?l.prev.next=l:e=l,function(){!r||e===null||(r=!1,l.next?l.next.prev=l.prev:n=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var V0={notify(){},get:()=>[]};function sA(e,n){let a,r=V0,l=0,u=!1;function f(R){g();const M=r.subscribe(R);let _=!1;return()=>{_||(_=!0,M(),y())}}function d(){r.notify()}function p(){E.onStateChange&&E.onStateChange()}function m(){return u}function g(){l++,a||(a=e.subscribe(p),r=aA())}function y(){l--,a&&l===0&&(a(),a=void 0,r.clear(),r=V0)}function S(){u||(u=!0,g())}function x(){u&&(u=!1,y())}const E={addNestedSub:f,notifyNestedSubs:d,handleChangeWrapper:p,isSubscribed:m,trySubscribe:S,tryUnsubscribe:x,getListeners:()=>r};return E}var rA=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",oA=rA(),lA=()=>typeof navigator<"u"&&navigator.product==="ReactNative",uA=lA(),cA=()=>oA||uA?C.useLayoutEffect:C.useEffect,fA=cA(),hA=Symbol.for("react-redux-context"),dA=typeof globalThis<"u"?globalThis:{};function pA(){if(!C.createContext)return{};const e=dA[hA]??=new Map;let n=e.get(C.createContext);return n||(n=C.createContext(null),e.set(C.createContext,n)),n}var mA=pA();function gA(e){const{children:n,context:a,serverState:r,store:l}=e,u=C.useMemo(()=>{const p=sA(l);return{store:l,subscription:p,getServerState:r?()=>r:void 0}},[l,r]),f=C.useMemo(()=>l.getState(),[l]);fA(()=>{const{subscription:p}=u;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),f!==l.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[u,f]);const d=a||mA;return C.createElement(d.Provider,{value:u},n)}var yA=gA;function me(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var vA=typeof Symbol=="function"&&Symbol.observable||"@@observable",U0=vA,Qf=()=>Math.random().toString(36).substring(7).split("").join("."),bA={INIT:`@@redux/INIT${Qf()}`,REPLACE:`@@redux/REPLACE${Qf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Qf()}`},kl=bA;function s1(e){if(typeof e!="object"||e===null)return!1;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n||Object.getPrototypeOf(e)===null}function r1(e,n,a){if(typeof e!="function")throw new Error(me(2));if(typeof n=="function"&&typeof a=="function"||typeof a=="function"&&typeof arguments[3]=="function")throw new Error(me(0));if(typeof n=="function"&&typeof a>"u"&&(a=n,n=void 0),typeof a<"u"){if(typeof a!="function")throw new Error(me(1));return a(r1)(e,n)}let r=e,l=n,u=new Map,f=u,d=0,p=!1;function m(){f===u&&(f=new Map,u.forEach((M,_)=>{f.set(_,M)}))}function g(){if(p)throw new Error(me(3));return l}function y(M){if(typeof M!="function")throw new Error(me(4));if(p)throw new Error(me(5));let _=!0;m();const O=d++;return f.set(O,M),function(){if(_){if(p)throw new Error(me(6));_=!1,m(),f.delete(O),u=null}}}function S(M){if(!s1(M))throw new Error(me(7));if(typeof M.type>"u")throw new Error(me(8));if(typeof M.type!="string")throw new Error(me(17));if(p)throw new Error(me(9));try{p=!0,l=r(l,M)}finally{p=!1}return(u=f).forEach(O=>{O()}),M}function x(M){if(typeof M!="function")throw new Error(me(10));r=M,S({type:kl.REPLACE})}function E(){const M=y;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(me(11));function O(){const q=_;q.next&&q.next(g())}return O(),{unsubscribe:M(O)}},[U0](){return this}}}return S({type:kl.INIT}),{dispatch:S,subscribe:y,getState:g,replaceReducer:x,[U0]:E}}function SA(e){Object.keys(e).forEach(n=>{const a=e[n];if(typeof a(void 0,{type:kl.INIT})>"u")throw new Error(me(12));if(typeof a(void 0,{type:kl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(me(13))})}function xA(e){const n=Object.keys(e),a={};for(let u=0;u"u")throw d&&d.type,new Error(me(14));m[y]=E,p=p||E!==x}return p=p||r.length!==Object.keys(f).length,p?m:f}}function Il(...e){return e.length===0?n=>n:e.length===1?e[0]:e.reduce((n,a)=>(...r)=>n(a(...r)))}function TA(...e){return n=>(a,r)=>{const l=n(a,r);let u=()=>{throw new Error(me(15))};const f={getState:l.getState,dispatch:(p,...m)=>u(p,...m)},d=e.map(p=>p(f));return u=Il(...d)(l.dispatch),{...l,dispatch:u}}}function o1(e){return({dispatch:a,getState:r})=>l=>u=>typeof u=="function"?u(a,r,e):l(u)}var EA=o1(),wA=o1,AA=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Il:Il.apply(null,arguments)},l1=class Er extends Array{constructor(...n){super(...n),Object.setPrototypeOf(this,Er.prototype)}static get[Symbol.species](){return Er}concat(...n){return super.concat.apply(this,n)}prepend(...n){return n.length===1&&Array.isArray(n[0])?new Er(...n[0].concat(this)):new Er(...n.concat(this))}};function CA(e){return typeof e=="boolean"}var RA=()=>function(n){const{thunk:a=!0,immutableCheck:r=!0,serializableCheck:l=!0,actionCreatorCheck:u=!0}=n??{};let f=new l1;return a&&(CA(a)?f.push(EA):f.push(wA(a.extraArgument))),f},DA="RTK_autoBatch",$0=e=>n=>{setTimeout(n,e)},OA=(e={type:"raf"})=>n=>(...a)=>{const r=n(...a);let l=!0,u=!1,f=!1;const d=new Set,p=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:$0(10):e.type==="callback"?e.queueNotification:$0(e.timeout),m=()=>{f=!1,u&&(u=!1,d.forEach(g=>g()))};return Object.assign({},r,{subscribe(g){const y=()=>l&&g(),S=r.subscribe(y);return d.add(g),()=>{S(),d.delete(g)}},dispatch(g){try{return l=!g?.meta?.[DA],u=!l,u&&(f||(f=!0,p(m))),r.dispatch(g)}finally{l=!0}}})},MA=e=>function(a){const{autoBatch:r=!0}=a??{};let l=new l1(e);return r&&l.push(OA(typeof r=="object"?r:void 0)),l};function _A(e){const n=RA(),{reducer:a=void 0,middleware:r,devTools:l=!0,preloadedState:u=void 0,enhancers:f=void 0}=e||{};let d;if(typeof a=="function")d=a;else if(s1(a))d=xA(a);else throw new Error(LA(1));let p;typeof r=="function"?p=r(n):p=n();let m=Il;l&&(m=AA({trace:!1,...typeof l=="object"&&l}));const g=TA(...p),y=MA(g);let S=typeof f=="function"?f(y):y();const x=m(...S);return r1(d,u,x)}function LA(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const NA=_A({reducer:{}}),lt=e=>typeof e=="string",Sr=()=>{let e,n;const a=new Promise((r,l)=>{e=r,n=l});return a.resolve=e,a.reject=n,a},H0=e=>e==null?"":""+e,zA=(e,n,a)=>{e.forEach(r=>{n[r]&&(a[r]=n[r])})},jA=/###/g,k0=e=>e&&e.indexOf("###")>-1?e.replace(jA,"."):e,I0=e=>!e||lt(e),Rr=(e,n,a)=>{const r=lt(n)?n.split("."):n;let l=0;for(;l{const{obj:r,k:l}=Rr(e,n,Object);if(r!==void 0||n.length===1){r[l]=a;return}let u=n[n.length-1],f=n.slice(0,n.length-1),d=Rr(e,f,Object);for(;d.obj===void 0&&f.length;)u=`${f[f.length-1]}.${u}`,f=f.slice(0,f.length-1),d=Rr(e,f,Object),d?.obj&&typeof d.obj[`${d.k}.${u}`]<"u"&&(d.obj=void 0);d.obj[`${d.k}.${u}`]=a},BA=(e,n,a,r)=>{const{obj:l,k:u}=Rr(e,n,Object);l[u]=l[u]||[],l[u].push(a)},Pl=(e,n)=>{const{obj:a,k:r}=Rr(e,n);if(a&&Object.prototype.hasOwnProperty.call(a,r))return a[r]},VA=(e,n,a)=>{const r=Pl(e,a);return r!==void 0?r:Pl(n,a)},u1=(e,n,a)=>{for(const r in n)r!=="__proto__"&&r!=="constructor"&&(r in e?lt(e[r])||e[r]instanceof String||lt(n[r])||n[r]instanceof String?a&&(e[r]=n[r]):u1(e[r],n[r],a):e[r]=n[r]);return e},ts=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var UA={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const $A=e=>lt(e)?e.replace(/[&<>"'\/]/g,n=>UA[n]):e;class HA{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const a=this.regExpMap.get(n);if(a!==void 0)return a;const r=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,r),this.regExpQueue.push(n),r}}const kA=[" ",",","?","!",";"],IA=new HA(20),PA=(e,n,a)=>{n=n||"",a=a||"";const r=kA.filter(f=>n.indexOf(f)<0&&a.indexOf(f)<0);if(r.length===0)return!0;const l=IA.getRegExp(`(${r.map(f=>f==="?"?"\\?":f).join("|")})`);let u=!l.test(e);if(!u){const f=e.indexOf(a);f>0&&!l.test(e.substring(0,f))&&(u=!0)}return u},zh=(e,n,a=".")=>{if(!e)return;if(e[n])return Object.prototype.hasOwnProperty.call(e,n)?e[n]:void 0;const r=n.split(a);let l=e;for(let u=0;u-1&&pe?.replace("_","-"),GA={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,n){console?.[e]?.apply?.(console,n)}};let qA=class jh{constructor(n,a={}){this.init(n,a)}init(n,a={}){this.prefix=a.prefix||"i18next:",this.logger=n||GA,this.options=a,this.debug=a.debug}log(...n){return this.forward(n,"log","",!0)}warn(...n){return this.forward(n,"warn","",!0)}error(...n){return this.forward(n,"error","")}deprecate(...n){return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(n,a,r,l){return l&&!this.debug?null:(lt(n[0])&&(n[0]=`${r}${this.prefix} ${n[0]}`),this.logger[a](n))}create(n){return new jh(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new jh(this.logger,n)}};var Sn=new qA;class ru{constructor(){this.observers={}}on(n,a){return n.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const l=this.observers[r].get(a)||0;this.observers[r].set(a,l+1)}),this}off(n,a){if(this.observers[n]){if(!a){delete this.observers[n];return}this.observers[n].delete(a)}}emit(n,...a){this.observers[n]&&Array.from(this.observers[n].entries()).forEach(([l,u])=>{for(let f=0;f{for(let f=0;f-1&&this.options.ns.splice(a,1)}getResource(n,a,r,l={}){const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,f=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure;let d;n.indexOf(".")>-1?d=n.split("."):(d=[n,a],r&&(Array.isArray(r)?d.push(...r):lt(r)&&u?d.push(...r.split(u)):d.push(r)));const p=Pl(this.data,d);return!p&&!a&&!r&&n.indexOf(".")>-1&&(n=d[0],a=d[1],r=d.slice(2).join(".")),p||!f||!lt(r)?p:zh(this.data?.[n]?.[a],r,u)}addResource(n,a,r,l,u={silent:!1}){const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator;let d=[n,a];r&&(d=d.concat(f?r.split(f):r)),n.indexOf(".")>-1&&(d=n.split("."),l=a,a=d[1]),this.addNamespaces(a),P0(this.data,d,l),u.silent||this.emit("added",n,a,r,l)}addResources(n,a,r,l={silent:!1}){for(const u in r)(lt(r[u])||Array.isArray(r[u]))&&this.addResource(n,a,u,r[u],{silent:!0});l.silent||this.emit("added",n,a,r)}addResourceBundle(n,a,r,l,u,f={silent:!1,skipCopy:!1}){let d=[n,a];n.indexOf(".")>-1&&(d=n.split("."),l=r,r=a,a=d[1]),this.addNamespaces(a);let p=Pl(this.data,d)||{};f.skipCopy||(r=JSON.parse(JSON.stringify(r))),l?u1(p,r,u):p={...p,...r},P0(this.data,d,p),f.silent||this.emit("added",n,a,r)}removeResourceBundle(n,a){this.hasResourceBundle(n,a)&&delete this.data[n][a],this.removeNamespaces(a),this.emit("removed",n,a)}hasResourceBundle(n,a){return this.getResource(n,a)!==void 0}getResourceBundle(n,a){return a||(a=this.options.defaultNS),this.getResource(n,a)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const a=this.getDataByLanguage(n);return!!(a&&Object.keys(a)||[]).find(l=>a[l]&&Object.keys(a[l]).length>0)}toJSON(){return this.data}}var c1={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,n,a,r,l){return e.forEach(u=>{n=this.processors[u]?.process(n,a,r,l)??n}),n}};const f1=Symbol("i18next/PATH_KEY");function YA(){const e=[],n=Object.create(null);let a;return n.get=(r,l)=>(a?.revoke?.(),l===f1?e:(e.push(l),a=Proxy.revocable(r,n),a.proxy)),Proxy.revocable(Object.create(null),n).proxy}function Bh(e,n){const{[f1]:a}=e(YA());return a.join(n?.keySeparator??".")}const q0={},Zf=e=>!lt(e)&&typeof e!="boolean"&&typeof e!="number";class Gl extends ru{constructor(n,a={}){super(),zA(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Sn.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n,a={interpolation:{}}){const r={...a};if(n==null)return!1;const l=this.resolve(n,r);if(l?.res===void 0)return!1;const u=Zf(l.res);return!(r.returnObjects===!1&&u)}extractFromKey(n,a){let r=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let u=a.ns||this.options.defaultNS||[];const f=r&&n.indexOf(r)>-1,d=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!PA(n,r,l);if(f&&!d){const p=n.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:n,namespaces:lt(u)?[u]:u};const m=n.split(r);(r!==l||r===l&&this.options.ns.indexOf(m[0])>-1)&&(u=m.shift()),n=m.join(l)}return{key:n,namespaces:lt(u)?[u]:u}}translate(n,a,r){let l=typeof a=="object"?{...a}:a;if(typeof l!="object"&&this.options.overloadTranslationOptionHandler&&(l=this.options.overloadTranslationOptionHandler(arguments)),typeof l=="object"&&(l={...l}),l||(l={}),n==null)return"";typeof n=="function"&&(n=Bh(n,{...this.options,...l})),Array.isArray(n)||(n=[String(n)]);const u=l.returnDetails!==void 0?l.returnDetails:this.options.returnDetails,f=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,{key:d,namespaces:p}=this.extractFromKey(n[n.length-1],l),m=p[p.length-1];let g=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");const y=l.lng||this.language,S=l.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(y?.toLowerCase()==="cimode")return S?u?{res:`${m}${g}${d}`,usedKey:d,exactUsedKey:d,usedLng:y,usedNS:m,usedParams:this.getUsedParamsDetails(l)}:`${m}${g}${d}`:u?{res:d,usedKey:d,exactUsedKey:d,usedLng:y,usedNS:m,usedParams:this.getUsedParamsDetails(l)}:d;const x=this.resolve(n,l);let E=x?.res;const R=x?.usedKey||d,M=x?.exactUsedKey||d,_=["[object Number]","[object Function]","[object RegExp]"],O=l.joinArrays!==void 0?l.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject,q=l.count!==void 0&&!lt(l.count),I=Gl.hasDefaultValue(l),K=q?this.pluralResolver.getSuffix(y,l.count,l):"",P=l.ordinal&&q?this.pluralResolver.getSuffix(y,l.count,{ordinal:!1}):"",X=q&&!l.ordinal&&l.count===0,J=X&&l[`defaultValue${this.options.pluralSeparator}zero`]||l[`defaultValue${K}`]||l[`defaultValue${P}`]||l.defaultValue;let it=E;L&&!E&&I&&(it=J);const dt=Zf(it),gt=Object.prototype.toString.apply(it);if(L&&it&&dt&&_.indexOf(gt)<0&&!(lt(O)&&Array.isArray(it))){if(!l.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const zt=this.options.returnedObjectHandler?this.options.returnedObjectHandler(R,it,{...l,ns:p}):`key '${d} (${this.language})' returned an object instead of string.`;return u?(x.res=zt,x.usedParams=this.getUsedParamsDetails(l),x):zt}if(f){const zt=Array.isArray(it),Dt=zt?[]:{},Kt=zt?M:R;for(const V in it)if(Object.prototype.hasOwnProperty.call(it,V)){const Y=`${Kt}${f}${V}`;I&&!E?Dt[V]=this.translate(Y,{...l,defaultValue:Zf(J)?J[V]:void 0,joinArrays:!1,ns:p}):Dt[V]=this.translate(Y,{...l,joinArrays:!1,ns:p}),Dt[V]===Y&&(Dt[V]=it[V])}E=Dt}}else if(L&<(O)&&Array.isArray(E))E=E.join(O),E&&(E=this.extendTranslation(E,n,l,r));else{let zt=!1,Dt=!1;!this.isValidLookup(E)&&I&&(zt=!0,E=J),this.isValidLookup(E)||(Dt=!0,E=d);const V=(l.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Dt?void 0:E,Y=I&&J!==E&&this.options.updateMissing;if(Dt||zt||Y){if(this.logger.log(Y?"updateKey":"missingKey",y,m,d,Y?J:E),f){const w=this.resolve(d,{...l,keySeparator:!1});w&&w.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 Q=[];const st=this.languageUtils.getFallbackCodes(this.options.fallbackLng,l.lng||this.language);if(this.options.saveMissingTo==="fallback"&&st&&st[0])for(let w=0;w{const Z=I&&F!==E?F:V;this.options.missingKeyHandler?this.options.missingKeyHandler(w,m,U,Z,Y,l):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(w,m,U,Z,Y,l),this.emit("missingKey",w,m,U,E)};this.options.saveMissing&&(this.options.saveMissingPlurals&&q?Q.forEach(w=>{const U=this.pluralResolver.getSuffixes(w,l);X&&l[`defaultValue${this.options.pluralSeparator}zero`]&&U.indexOf(`${this.options.pluralSeparator}zero`)<0&&U.push(`${this.options.pluralSeparator}zero`),U.forEach(F=>{ft([w],d+F,l[`defaultValue${F}`]||J)})}):ft(Q,d,J))}E=this.extendTranslation(E,n,l,x,r),Dt&&E===d&&this.options.appendNamespaceToMissingKey&&(E=`${m}${g}${d}`),(Dt||zt)&&this.options.parseMissingKeyHandler&&(E=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${g}${d}`:d,zt?E:void 0,l))}return u?(x.res=E,x.usedParams=this.getUsedParamsDetails(l),x):E}extendTranslation(n,a,r,l,u){if(this.i18nFormat?.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const p=lt(n)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(p){const y=n.match(this.interpolator.nestingRegexp);m=y&&y.length}let g=r.replace&&!lt(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),n=this.interpolator.interpolate(n,g,r.lng||this.language||l.usedLng,r),p){const y=n.match(this.interpolator.nestingRegexp),S=y&&y.length;mu?.[0]===y[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${a[0]}`),null):this.translate(...y,a),r)),r.interpolation&&this.interpolator.reset()}const f=r.postProcess||this.options.postProcess,d=lt(f)?[f]:f;return n!=null&&d?.length&&r.applyPostProcessor!==!1&&(n=c1.handle(d,n,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...l,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),n}resolve(n,a={}){let r,l,u,f,d;return lt(n)&&(n=[n]),n.forEach(p=>{if(this.isValidLookup(r))return;const m=this.extractFromKey(p,a),g=m.key;l=g;let y=m.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const S=a.count!==void 0&&!lt(a.count),x=S&&!a.ordinal&&a.count===0,E=a.context!==void 0&&(lt(a.context)||typeof a.context=="number")&&a.context!=="",R=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);y.forEach(M=>{this.isValidLookup(r)||(d=M,!q0[`${R[0]}-${M}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(d)&&(q0[`${R[0]}-${M}`]=!0,this.logger.warn(`key "${l}" for languages "${R.join(", ")}" won't get resolved as namespace "${d}" 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!!!")),R.forEach(_=>{if(this.isValidLookup(r))return;f=_;const O=[g];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(O,g,_,M,a);else{let q;S&&(q=this.pluralResolver.getSuffix(_,a.count,a));const I=`${this.options.pluralSeparator}zero`,K=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(S&&(a.ordinal&&q.indexOf(K)===0&&O.push(g+q.replace(K,this.options.pluralSeparator)),O.push(g+q),x&&O.push(g+I)),E){const P=`${g}${this.options.contextSeparator||"_"}${a.context}`;O.push(P),S&&(a.ordinal&&q.indexOf(K)===0&&O.push(P+q.replace(K,this.options.pluralSeparator)),O.push(P+q),x&&O.push(P+I))}}let L;for(;L=O.pop();)this.isValidLookup(r)||(u=L,r=this.getResource(_,M,L,a))}))})}),{res:r,usedKey:l,exactUsedKey:u,usedLng:f,usedNS:d}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,a,r,l={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(n,a,r,l):this.resourceStore.getResource(n,a,r,l)}getUsedParamsDetails(n={}){const a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=n.replace&&!lt(n.replace);let l=r?n.replace:n;if(r&&typeof n.count<"u"&&(l.count=n.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!r){l={...l};for(const u of a)delete l[u]}return l}static hasDefaultValue(n){const a="defaultValue";for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&a===r.substring(0,a.length)&&n[r]!==void 0)return!0;return!1}}class Y0{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Sn.create("languageUtils")}getScriptPartFromCode(n){if(n=zr(n),!n||n.indexOf("-")<0)return null;const a=n.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(n){if(n=zr(n),!n||n.indexOf("-")<0)return n;const a=n.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(n){if(lt(n)&&n.indexOf("-")>-1){let a;try{a=Intl.getCanonicalLocales(n)[0]}catch{}return a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a||(this.options.lowerCaseLng?n.toLowerCase():n)}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let a;return n.forEach(r=>{if(a)return;const l=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(l))&&(a=l)}),!a&&this.options.supportedLngs&&n.forEach(r=>{if(a)return;const l=this.getScriptPartFromCode(r);if(this.isSupportedCode(l))return a=l;const u=this.getLanguagePartFromCode(r);if(this.isSupportedCode(u))return a=u;a=this.options.supportedLngs.find(f=>{if(f===u)return f;if(!(f.indexOf("-")<0&&u.indexOf("-")<0)&&(f.indexOf("-")>0&&u.indexOf("-")<0&&f.substring(0,f.indexOf("-"))===u||f.indexOf(u)===0&&u.length>1))return f})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(n,a){if(!n)return[];if(typeof n=="function"&&(n=n(a)),lt(n)&&(n=[n]),Array.isArray(n))return n;if(!a)return n.default||[];let r=n[a];return r||(r=n[this.getScriptPartFromCode(a)]),r||(r=n[this.formatLanguageCode(a)]),r||(r=n[this.getLanguagePartFromCode(a)]),r||(r=n.default),r||[]}toResolveHierarchy(n,a){const r=this.getFallbackCodes((a===!1?[]:a)||this.options.fallbackLng||[],n),l=[],u=f=>{f&&(this.isSupportedCode(f)?l.push(f):this.logger.warn(`rejecting language code not found in supportedLngs: ${f}`))};return lt(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&u(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&u(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&u(this.getLanguagePartFromCode(n))):lt(n)&&u(this.formatLanguageCode(n)),r.forEach(f=>{l.indexOf(f)<0&&u(this.formatLanguageCode(f))}),l}}const K0={zero:0,one:1,two:2,few:3,many:4,other:5},F0={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class KA{constructor(n,a={}){this.languageUtils=n,this.options=a,this.logger=Sn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(n,a={}){const r=zr(n==="dev"?"en":n),l=a.ordinal?"ordinal":"cardinal",u=JSON.stringify({cleanedCode:r,type:l});if(u in this.pluralRulesCache)return this.pluralRulesCache[u];let f;try{f=new Intl.PluralRules(r,{type:l})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),F0;if(!n.match(/-|_/))return F0;const p=this.languageUtils.getLanguagePartFromCode(n);f=this.getRule(p,a)}return this.pluralRulesCache[u]=f,f}needsPlural(n,a={}){let r=this.getRule(n,a);return r||(r=this.getRule("dev",a)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(n,a,r={}){return this.getSuffixes(n,r).map(l=>`${a}${l}`)}getSuffixes(n,a={}){let r=this.getRule(n,a);return r||(r=this.getRule("dev",a)),r?r.resolvedOptions().pluralCategories.sort((l,u)=>K0[l]-K0[u]).map(l=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${l}`):[]}getSuffix(n,a,r={}){const l=this.getRule(n,r);return l?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${l.select(a)}`:(this.logger.warn(`no plural rule found for: ${n}`),this.getSuffix("dev",a,r))}}const X0=(e,n,a,r=".",l=!0)=>{let u=VA(e,n,a);return!u&&l&<(a)&&(u=zh(e,a,r),u===void 0&&(u=zh(n,a,r))),u},Jf=e=>e.replace(/\$/g,"$$$$");class Q0{constructor(n={}){this.logger=Sn.create("interpolator"),this.options=n,this.format=n?.interpolation?.format||(a=>a),this.init(n)}init(n={}){n.interpolation||(n.interpolation={escapeValue:!0});const{escape:a,escapeValue:r,useRawValueToEscape:l,prefix:u,prefixEscaped:f,suffix:d,suffixEscaped:p,formatSeparator:m,unescapeSuffix:g,unescapePrefix:y,nestingPrefix:S,nestingPrefixEscaped:x,nestingSuffix:E,nestingSuffixEscaped:R,nestingOptionsSeparator:M,maxReplaces:_,alwaysFormat:O}=n.interpolation;this.escape=a!==void 0?a:$A,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=l!==void 0?l:!1,this.prefix=u?ts(u):f||"{{",this.suffix=d?ts(d):p||"}}",this.formatSeparator=m||",",this.unescapePrefix=g?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=S?ts(S):x||ts("$t("),this.nestingSuffix=E?ts(E):R||ts(")"),this.nestingOptionsSeparator=M||",",this.maxReplaces=_||1e3,this.alwaysFormat=O!==void 0?O:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(a,r)=>a?.source===r?(a.lastIndex=0,a):new RegExp(r,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(n,a,r,l){let u,f,d;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=x=>{if(x.indexOf(this.formatSeparator)<0){const _=X0(a,p,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(_,void 0,r,{...l,...a,interpolationkey:x}):_}const E=x.split(this.formatSeparator),R=E.shift().trim(),M=E.join(this.formatSeparator).trim();return this.format(X0(a,p,R,this.options.keySeparator,this.options.ignoreJSONStructure),M,r,{...l,...a,interpolationkey:R})};this.resetRegExp();const g=l?.missingInterpolationHandler||this.options.missingInterpolationHandler,y=l?.interpolation?.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:x=>Jf(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?Jf(this.escape(x)):Jf(x)}].forEach(x=>{for(d=0;u=x.regex.exec(n);){const E=u[1].trim();if(f=m(E),f===void 0)if(typeof g=="function"){const M=g(n,u,l);f=lt(M)?M:""}else if(l&&Object.prototype.hasOwnProperty.call(l,E))f="";else if(y){f=u[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${n}`),f="";else!lt(f)&&!this.useRawValueToEscape&&(f=H0(f));const R=x.safeValue(f);if(n=n.replace(u[0],R),y?(x.regex.lastIndex+=f.length,x.regex.lastIndex-=u[0].length):x.regex.lastIndex=0,d++,d>=this.maxReplaces)break}}),n}nest(n,a,r={}){let l,u,f;const d=(p,m)=>{const g=this.nestingOptionsSeparator;if(p.indexOf(g)<0)return p;const y=p.split(new RegExp(`${g}[ ]*{`));let S=`{${y[1]}`;p=y[0],S=this.interpolate(S,f);const x=S.match(/'/g),E=S.match(/"/g);((x?.length??0)%2===0&&!E||E.length%2!==0)&&(S=S.replace(/'/g,'"'));try{f=JSON.parse(S),m&&(f={...m,...f})}catch(R){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,R),`${p}${g}${S}`}return f.defaultValue&&f.defaultValue.indexOf(this.prefix)>-1&&delete f.defaultValue,p};for(;l=this.nestingRegexp.exec(n);){let p=[];f={...r},f=f.replace&&!lt(f.replace)?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;const m=/{.*}/.test(l[1])?l[1].lastIndexOf("}")+1:l[1].indexOf(this.formatSeparator);if(m!==-1&&(p=l[1].slice(m).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),l[1]=l[1].slice(0,m)),u=a(d.call(this,l[1].trim(),f),f),u&&l[0]===n&&!lt(u))return u;lt(u)||(u=H0(u)),u||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${n}`),u=""),p.length&&(u=p.reduce((g,y)=>this.format(g,y,r.lng,{...r,interpolationkey:l[1].trim()}),u.trim())),n=n.replace(l[0],u),this.regexp.lastIndex=0}return n}}const FA=e=>{let n=e.toLowerCase().trim();const a={};if(e.indexOf("(")>-1){const r=e.split("(");n=r[0].toLowerCase().trim();const l=r[1].substring(0,r[1].length-1);n==="currency"&&l.indexOf(":")<0?a.currency||(a.currency=l.trim()):n==="relativetime"&&l.indexOf(":")<0?a.range||(a.range=l.trim()):l.split(";").forEach(f=>{if(f){const[d,...p]=f.split(":"),m=p.join(":").trim().replace(/^'+|'+$/g,""),g=d.trim();a[g]||(a[g]=m),m==="false"&&(a[g]=!1),m==="true"&&(a[g]=!0),isNaN(m)||(a[g]=parseInt(m,10))}})}return{formatName:n,formatOptions:a}},Z0=e=>{const n={};return(a,r,l)=>{let u=l;l&&l.interpolationkey&&l.formatParams&&l.formatParams[l.interpolationkey]&&l[l.interpolationkey]&&(u={...u,[l.interpolationkey]:void 0});const f=r+JSON.stringify(u);let d=n[f];return d||(d=e(zr(r),l),n[f]=d),d(a)}},XA=e=>(n,a,r)=>e(zr(a),r)(n);class QA{constructor(n={}){this.logger=Sn.create("formatter"),this.options=n,this.init(n)}init(n,a={interpolation:{}}){this.formatSeparator=a.interpolation.formatSeparator||",";const r=a.cacheInBuiltFormats?Z0:XA;this.formats={number:r((l,u)=>{const f=new Intl.NumberFormat(l,{...u});return d=>f.format(d)}),currency:r((l,u)=>{const f=new Intl.NumberFormat(l,{...u,style:"currency"});return d=>f.format(d)}),datetime:r((l,u)=>{const f=new Intl.DateTimeFormat(l,{...u});return d=>f.format(d)}),relativetime:r((l,u)=>{const f=new Intl.RelativeTimeFormat(l,{...u});return d=>f.format(d,u.range||"day")}),list:r((l,u)=>{const f=new Intl.ListFormat(l,{...u});return d=>f.format(d)})}}add(n,a){this.formats[n.toLowerCase().trim()]=a}addCached(n,a){this.formats[n.toLowerCase().trim()]=Z0(a)}format(n,a,r,l={}){const u=a.split(this.formatSeparator);if(u.length>1&&u[0].indexOf("(")>1&&u[0].indexOf(")")<0&&u.find(d=>d.indexOf(")")>-1)){const d=u.findIndex(p=>p.indexOf(")")>-1);u[0]=[u[0],...u.splice(1,d)].join(this.formatSeparator)}return u.reduce((d,p)=>{const{formatName:m,formatOptions:g}=FA(p);if(this.formats[m]){let y=d;try{const S=l?.formatParams?.[l.interpolationkey]||{},x=S.locale||S.lng||l.locale||l.lng||r;y=this.formats[m](d,x,{...g,...l,...S})}catch(S){this.logger.warn(S)}return y}else this.logger.warn(`there was no format function for ${m}`);return d},n)}}const ZA=(e,n)=>{e.pending[n]!==void 0&&(delete e.pending[n],e.pendingCount--)};class JA extends ru{constructor(n,a,r,l={}){super(),this.backend=n,this.store=a,this.services=r,this.languageUtils=r.languageUtils,this.options=l,this.logger=Sn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,l.backend,l)}queueLoad(n,a,r,l){const u={},f={},d={},p={};return n.forEach(m=>{let g=!0;a.forEach(y=>{const S=`${m}|${y}`;!r.reload&&this.store.hasResourceBundle(m,y)?this.state[S]=2:this.state[S]<0||(this.state[S]===1?f[S]===void 0&&(f[S]=!0):(this.state[S]=1,g=!1,f[S]===void 0&&(f[S]=!0),u[S]===void 0&&(u[S]=!0),p[y]===void 0&&(p[y]=!0)))}),g||(d[m]=!0)}),(Object.keys(u).length||Object.keys(f).length)&&this.queue.push({pending:f,pendingCount:Object.keys(f).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(u),pending:Object.keys(f),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(p)}}loaded(n,a,r){const l=n.split("|"),u=l[0],f=l[1];a&&this.emit("failedLoading",u,f,a),!a&&r&&this.store.addResourceBundle(u,f,r,void 0,void 0,{skipCopy:!0}),this.state[n]=a?-1:2,a&&r&&(this.state[n]=0);const d={};this.queue.forEach(p=>{BA(p.loaded,[u],f),ZA(p,n),a&&p.errors.push(a),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(m=>{d[m]||(d[m]={});const g=p.loaded[m];g.length&&g.forEach(y=>{d[m][y]===void 0&&(d[m][y]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(p=>!p.done)}read(n,a,r,l=0,u=this.retryTimeout,f){if(!n.length)return f(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:a,fcName:r,tried:l,wait:u,callback:f});return}this.readingCalls++;const d=(m,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(m&&g&&l{this.read.call(this,n,a,r,l+1,u*2,f)},u);return}f(m,g)},p=this.backend[r].bind(this.backend);if(p.length===2){try{const m=p(n,a);m&&typeof m.then=="function"?m.then(g=>d(null,g)).catch(d):d(null,m)}catch(m){d(m)}return}return p(n,a,d)}prepareLoading(n,a,r={},l){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();lt(n)&&(n=this.languageUtils.toResolveHierarchy(n)),lt(a)&&(a=[a]);const u=this.queueLoad(n,a,r,l);if(!u.toLoad.length)return u.pending.length||l(),null;u.toLoad.forEach(f=>{this.loadOne(f)})}load(n,a,r){this.prepareLoading(n,a,{},r)}reload(n,a,r){this.prepareLoading(n,a,{reload:!0},r)}loadOne(n,a=""){const r=n.split("|"),l=r[0],u=r[1];this.read(l,u,"read",void 0,void 0,(f,d)=>{f&&this.logger.warn(`${a}loading namespace ${u} for language ${l} failed`,f),!f&&d&&this.logger.log(`${a}loaded namespace ${u} for language ${l}`,d),this.loaded(n,f,d)})}saveMissing(n,a,r,l,u,f={},d=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${r}" as the namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const p={...f,isUpdate:u},m=this.backend.create.bind(this.backend);if(m.length<6)try{let g;m.length===5?g=m(n,a,r,l,p):g=m(n,a,r,l),g&&typeof g.then=="function"?g.then(y=>d(null,y)).catch(d):d(null,g)}catch(g){d(g)}else m(n,a,r,l,d,p)}!n||!n[0]||this.store.addResource(n[0],a,r,l)}}}const Wf=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let n={};if(typeof e[1]=="object"&&(n=e[1]),lt(e[1])&&(n.defaultValue=e[1]),lt(e[2])&&(n.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const a=e[3]||e[2];Object.keys(a).forEach(r=>{n[r]=a[r]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),J0=e=>(lt(e.ns)&&(e.ns=[e.ns]),lt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),lt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),vl=()=>{},WA=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(a=>{typeof e[a]=="function"&&(e[a]=e[a].bind(e))})};class Dr extends ru{constructor(n={},a){if(super(),this.options=J0(n),this.services={},this.logger=Sn,this.modules={external:[]},WA(this),a&&!this.isInitialized&&!n.isClone){if(!this.options.initAsync)return this.init(n,a),this;setTimeout(()=>{this.init(n,a)},0)}}init(n={},a){this.isInitializing=!0,typeof n=="function"&&(a=n,n={}),n.defaultNS==null&&n.ns&&(lt(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=Wf();this.options={...r,...this.options,...J0(n)},this.options.interpolation={...r.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const l=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Sn.init(l(this.modules.logger),this.options):Sn.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=QA;const g=new Y0(this.options);this.store=new G0(this.options.resources,this.options);const y=this.services;y.logger=Sn,y.resourceStore=this.store,y.languageUtils=g,y.pluralResolver=new KA(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(y.formatter=l(m),y.formatter.init&&y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new Q0(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new JA(l(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",(x,...E)=>{this.emit(x,...E)}),this.modules.languageDetector&&(y.languageDetector=l(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=l(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new Gl(this.services,this.options),this.translator.on("*",(x,...E)=>{this.emit(x,...E)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,a||(a=vl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[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(m=>{this[m]=(...g)=>this.store[m](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...g)=>(this.store[m](...g),this)});const d=Sr(),p=()=>{const m=(g,y)=>{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),d.resolve(y),a(g,y)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?p():setTimeout(p,0),d}loadResources(n,a=vl){let r=a;const l=lt(n)?n:this.language;if(typeof n=="function"&&(r=n),!this.options.resources||this.options.partialBundledLanguages){if(l?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const u=[],f=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(m=>{m!=="cimode"&&u.indexOf(m)<0&&u.push(m)})};l?f(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>f(p)),this.options.preload?.forEach?.(d=>f(d)),this.services.backendConnector.load(u,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(d)})}else r(null)}reloadResources(n,a,r){const l=Sr();return typeof n=="function"&&(r=n,n=void 0),typeof a=="function"&&(r=a,a=void 0),n||(n=this.languages),a||(a=this.options.ns),r||(r=vl),this.services.backendConnector.reload(n,a,u=>{l.resolve(),r(u)}),l}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&c1.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1)){for(let a=0;a-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(n)<0&&this.store.hasLanguageSomeTranslations(n)&&(this.resolvedLanguage=n,this.languages.unshift(n))}}changeLanguage(n,a){this.isLanguageChangingTo=n;const r=Sr();this.emit("languageChanging",n);const l=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},u=(d,p)=>{p?this.isLanguageChangingTo===n&&(l(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve((...m)=>this.t(...m)),a&&a(d,(...m)=>this.t(...m))},f=d=>{!n&&!d&&this.services.languageDetector&&(d=[]);const p=lt(d)?d:d&&d[0],m=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(lt(d)?[d]:d);m&&(this.language||l(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector?.cacheUserLanguage?.(m)),this.loadResources(m,g=>{u(g,m)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?f(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(f):this.services.languageDetector.detect(f):f(n),r}getFixedT(n,a,r){const l=(u,f,...d)=>{let p;typeof f!="object"?p=this.options.overloadTranslationOptionHandler([u,f].concat(d)):p={...f},p.lng=p.lng||l.lng,p.lngs=p.lngs||l.lngs,p.ns=p.ns||l.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||r||l.keyPrefix);const m=this.options.keySeparator||".";let g;return p.keyPrefix&&Array.isArray(u)?g=u.map(y=>(typeof y=="function"&&(y=Bh(y,{...this.options,...f})),`${p.keyPrefix}${m}${y}`)):(typeof u=="function"&&(u=Bh(u,{...this.options,...f})),g=p.keyPrefix?`${p.keyPrefix}${m}${u}`:u),this.t(g,p)};return lt(n)?l.lng=n:l.lngs=n,l.ns=a,l.keyPrefix=r,l}t(...n){return this.translator?.translate(...n)}exists(...n){return this.translator?.exists(...n)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n,a={}){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=a.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const f=(d,p)=>{const m=this.services.backendConnector.state[`${d}|${p}`];return m===-1||m===0||m===2};if(a.precheck){const d=a.precheck(this,f);if(d!==void 0)return d}return!!(this.hasResourceBundle(r,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||f(r,n)&&(!l||f(u,n)))}loadNamespaces(n,a){const r=Sr();return this.options.ns?(lt(n)&&(n=[n]),n.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{r.resolve(),a&&a(l)}),r):(a&&a(),Promise.resolve())}loadLanguages(n,a){const r=Sr();lt(n)&&(n=[n]);const l=this.options.preload||[],u=n.filter(f=>l.indexOf(f)<0&&this.services.languageUtils.isSupportedCode(f));return u.length?(this.options.preload=l.concat(u),this.loadResources(f=>{r.resolve(),a&&a(f)}),r):(a&&a(),Promise.resolve())}dir(n){if(n||(n=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!n)return"rtl";try{const l=new Intl.Locale(n);if(l&&l.getTextInfo){const u=l.getTextInfo();if(u&&u.direction)return u.direction}}catch{}const a=["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?.languageUtils||new Y0(Wf());return n.toLowerCase().indexOf("-latn")>1?"ltr":a.indexOf(r.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(n={},a){const r=new Dr(n,a);return r.createInstance=Dr.createInstance,r}cloneInstance(n={},a=vl){const r=n.forkResourceStore;r&&delete n.forkResourceStore;const l={...this.options,...n,isClone:!0},u=new Dr(l);if((n.debug!==void 0||n.prefix!==void 0)&&(u.logger=u.logger.clone(n)),["store","services","language"].forEach(d=>{u[d]=this[d]}),u.services={...this.services},u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},r){const d=Object.keys(this.store.data).reduce((p,m)=>(p[m]={...this.store.data[m]},p[m]=Object.keys(p[m]).reduce((g,y)=>(g[y]={...p[m][y]},g),p[m]),p),{});u.store=new G0(d,l),u.services.resourceStore=u.store}if(n.interpolation){const p={...Wf().interpolation,...this.options.interpolation,...n.interpolation},m={...l,interpolation:p};u.services.interpolator=new Q0(m)}return u.translator=new Gl(u.services,l),u.translator.on("*",(d,...p)=>{u.emit(d,...p)}),u.init(l,a),u.translator.options=l,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ee=Dr.createInstance();Ee.createInstance;Ee.dir;Ee.init;Ee.loadResources;Ee.reloadResources;Ee.use;Ee.changeLanguage;Ee.getFixedT;Ee.t;Ee.exists;Ee.setDefaultNamespace;Ee.hasLoadedNamespace;Ee.loadNamespaces;Ee.loadLanguages;const tC=(e,n,a,r)=>{const l=[a,{code:n,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(l,"warn","react-i18next::",!0);la(l[0])&&(l[0]=`react-i18next:: ${l[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...l):console?.warn&&console.warn(...l)},W0={},h1=(e,n,a,r)=>{la(a)&&W0[a]||(la(a)&&(W0[a]=new Date),tC(e,n,a,r))},d1=(e,n)=>()=>{if(e.isInitialized)n();else{const a=()=>{setTimeout(()=>{e.off("initialized",a)},0),n()};e.on("initialized",a)}},Vh=(e,n,a)=>{e.loadNamespaces(n,d1(e,a))},tv=(e,n,a,r)=>{if(la(a)&&(a=[a]),e.options.preload&&e.options.preload.indexOf(n)>-1)return Vh(e,a,r);a.forEach(l=>{e.options.ns.indexOf(l)<0&&e.options.ns.push(l)}),e.loadLanguages(n,d1(e,r))},eC=(e,n,a={})=>!n.languages||!n.languages.length?(h1(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(e,{lng:a.lng,precheck:(r,l)=>{if(a.bindI18n&&a.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!l(r.isLanguageChangingTo,e))return!1}}),la=e=>typeof e=="string",nC=e=>typeof e=="object"&&e!==null,iC=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,aC={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"ยฉ","©":"ยฉ","®":"ยฎ","®":"ยฎ","…":"โ€ฆ","…":"โ€ฆ","/":"/","/":"/"},sC=e=>aC[e],rC=e=>e.replace(iC,sC);let Uh={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:rC,transDefaultProps:void 0};const oC=(e={})=>{Uh={...Uh,...e}},lC=()=>Uh;let p1;const uC=e=>{p1=e},cC=()=>p1,fC={type:"3rdParty",init(e){oC(e.options.react),uC(e)}},hC=C.createContext();class dC{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(a=>{this.usedNamespaces[a]||(this.usedNamespaces[a]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var th={exports:{}},eh={};var ev;function pC(){if(ev)return eh;ev=1;var e=Kr();function n(y,S){return y===S&&(y!==0||1/y===1/S)||y!==y&&S!==S}var a=typeof Object.is=="function"?Object.is:n,r=e.useState,l=e.useEffect,u=e.useLayoutEffect,f=e.useDebugValue;function d(y,S){var x=S(),E=r({inst:{value:x,getSnapshot:S}}),R=E[0].inst,M=E[1];return u(function(){R.value=x,R.getSnapshot=S,p(R)&&M({inst:R})},[y,x,S]),l(function(){return p(R)&&M({inst:R}),y(function(){p(R)&&M({inst:R})})},[y]),f(x),x}function p(y){var S=y.getSnapshot;y=y.value;try{var x=S();return!a(y,x)}catch{return!0}}function m(y,S){return S()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:d;return eh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,eh}var nv;function mC(){return nv||(nv=1,th.exports=pC()),th.exports}var gC=mC();const yC=(e,n)=>la(n)?n:nC(n)&&la(n.defaultValue)?n.defaultValue:Array.isArray(e)?e[e.length-1]:e,vC={t:yC,ready:!1},bC=()=>()=>{},Xn=(e,n={})=>{const{i18n:a}=n,{i18n:r,defaultNS:l}=C.useContext(hC)||{},u=a||r||cC();u&&!u.reportNamespaces&&(u.reportNamespaces=new dC),u||h1(u,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const f=C.useMemo(()=>({...lC(),...u?.options?.react,...n}),[u,n]),{useSuspense:d,keyPrefix:p}=f,m=l||u?.options?.defaultNS,g=la(m)?[m]:m||["translation"],y=C.useMemo(()=>g,g);u?.reportNamespaces?.addUsedNamespaces?.(y);const S=C.useRef(0),x=C.useCallback(J=>{if(!u)return bC;const{bindI18n:it,bindI18nStore:dt}=f,gt=()=>{S.current+=1,J()};return it&&u.on(it,gt),dt&&u.store.on(dt,gt),()=>{it&&it.split(" ").forEach(zt=>u.off(zt,gt)),dt&&dt.split(" ").forEach(zt=>u.store.off(zt,gt))}},[u,f]),E=C.useRef(),R=C.useCallback(()=>{if(!u)return vC;const J=!!(u.isInitialized||u.initializedStoreOnce)&&y.every(Kt=>eC(Kt,u,f)),it=n.lng||u.language,dt=S.current,gt=E.current;if(gt&>.ready===J&>.lng===it&>.keyPrefix===p&>.revision===dt)return gt;const Dt={t:u.getFixedT(it,f.nsMode==="fallback"?y:y[0],p),ready:J,lng:it,keyPrefix:p,revision:dt};return E.current=Dt,Dt},[u,y,p,f,n.lng]),[M,_]=C.useState(0),{t:O,ready:L}=gC.useSyncExternalStore(x,R,R);C.useEffect(()=>{if(u&&!L&&!d){const J=()=>_(it=>it+1);n.lng?tv(u,n.lng,y,J):Vh(u,y,J)}},[u,n.lng,y,L,d,M]);const q=u||{},I=C.useRef(null),K=C.useRef(),P=J=>{const it=Object.getOwnPropertyDescriptors(J);it.__original&&delete it.__original;const dt=Object.create(Object.getPrototypeOf(J),it);if(!Object.prototype.hasOwnProperty.call(dt,"__original"))try{Object.defineProperty(dt,"__original",{value:J,writable:!1,enumerable:!1,configurable:!1})}catch{}return dt},X=C.useMemo(()=>{const J=q,it=J?.language;let dt=J;J&&(I.current&&I.current.__original===J?K.current!==it?(dt=P(J),I.current=dt,K.current=it):dt=I.current:(dt=P(J),I.current=dt,K.current=it));const gt=[O,dt,L];return gt.t=O,gt.i18n=dt,gt.ready=L,gt},[O,q,L,q.resolvedLanguage,q.language,q.languages]);if(u&&d&&!L)throw new Promise(J=>{const it=()=>J();n.lng?tv(u,n.lng,y,it):Vh(u,y,it)});return X},{slice:SC,forEach:xC}=[];function TC(e){return xC.call(SC.call(arguments,1),n=>{if(n)for(const a in n)e[a]===void 0&&(e[a]=n[a])}),e}function EC(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(a=>a.test(e))}const iv=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,wC=function(e,n){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},l=encodeURIComponent(n);let u=`${e}=${l}`;if(r.maxAge>0){const f=r.maxAge-0;if(Number.isNaN(f))throw new Error("maxAge should be a Number");u+=`; Max-Age=${Math.floor(f)}`}if(r.domain){if(!iv.test(r.domain))throw new TypeError("option domain is invalid");u+=`; Domain=${r.domain}`}if(r.path){if(!iv.test(r.path))throw new TypeError("option path is invalid");u+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");u+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(u+="; HttpOnly"),r.secure&&(u+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(u+="; Partitioned"),u},av={create(e,n,a,r){let l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};a&&(l.expires=new Date,l.expires.setTime(l.expires.getTime()+a*60*1e3)),r&&(l.domain=r),document.cookie=wC(e,n,l)},read(e){const n=`${e}=`,a=document.cookie.split(";");for(let r=0;r-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const u=r.substring(1).split("&");for(let f=0;f0&&u[f].substring(0,d)===n&&(a=u[f].substring(d+1))}}return a}},RC={name:"hash",lookup(e){let{lookupHash:n,lookupFromHashIndex:a}=e,r;if(typeof window<"u"){const{hash:l}=window.location;if(l&&l.length>2){const u=l.substring(1);if(n){const f=u.split("&");for(let d=0;d0&&f[d].substring(0,p)===n&&(r=f[d].substring(p+1))}}if(r)return r;if(!r&&a>-1){const f=l.match(/\/([a-zA-Z-]*)/g);return Array.isArray(f)?f[typeof a=="number"?a:0]?.replace("/",""):void 0}}}return r}};let es=null;const sv=()=>{if(es!==null)return es;try{if(es=typeof window<"u"&&window.localStorage!==null,!es)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{es=!1}return es};var DC={name:"localStorage",lookup(e){let{lookupLocalStorage:n}=e;if(n&&sv())return window.localStorage.getItem(n)||void 0},cacheUserLanguage(e,n){let{lookupLocalStorage:a}=n;a&&sv()&&window.localStorage.setItem(a,e)}};let ns=null;const rv=()=>{if(ns!==null)return ns;try{if(ns=typeof window<"u"&&window.sessionStorage!==null,!ns)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{ns=!1}return ns};var OC={name:"sessionStorage",lookup(e){let{lookupSessionStorage:n}=e;if(n&&rv())return window.sessionStorage.getItem(n)||void 0},cacheUserLanguage(e,n){let{lookupSessionStorage:a}=n;a&&rv()&&window.sessionStorage.setItem(a,e)}},MC={name:"navigator",lookup(e){const n=[];if(typeof navigator<"u"){const{languages:a,userLanguage:r,language:l}=navigator;if(a)for(let u=0;u0?n:void 0}},_C={name:"htmlTag",lookup(e){let{htmlTag:n}=e,a;const r=n||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(a=r.getAttribute("lang")),a}},LC={name:"path",lookup(e){let{lookupFromPathIndex:n}=e;if(typeof window>"u")return;const a=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(a)?a[typeof n=="number"?n:0]?.replace("/",""):void 0}},NC={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:n}=e;const a=typeof n=="number"?n+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[a]}};let m1=!1;try{document.cookie,m1=!0}catch{}const g1=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];m1||g1.splice(1,1);const zC=()=>({order:g1,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class y1{constructor(n){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(n,a)}init(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=TC(a,this.options||{},zC()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=l=>l.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(AC),this.addDetector(CC),this.addDetector(DC),this.addDetector(OC),this.addDetector(MC),this.addDetector(_C),this.addDetector(LC),this.addDetector(NC),this.addDetector(RC)}addDetector(n){return this.detectors[n.name]=n,this}detect(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,a=[];return n.forEach(r=>{if(this.detectors[r]){let l=this.detectors[r].lookup(this.options);l&&typeof l=="string"&&(l=[l]),l&&(a=a.concat(l))}}),a=a.filter(r=>r!=null&&!EC(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?a:a.length>0?a[0]:null}cacheUserLanguage(n){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;a&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||a.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(n,this.options)}))}}y1.type="languageDetector";const jC={home:"Home",blog:"Blog"},BC={title:"Mobile Architect & AI Engineer",tagline:"Building mobile products and AI pipelines in the digital void",scroll:"scroll"},VC={title:"About",p1:"10+ years in mobile development. I lead a team of 8 engineers, architecting cross-platform solutions for fintech products.",p2:"Core stack: Kotlin Multiplatform, Compose Multiplatform, SwiftUI. I focus on clean architecture, performance optimization, and building systems that scale.",p3:"Most of my work lives inside company codebases โ€” production apps serving real users. I contribute to open source when I can and constantly explore emerging tech.",p4:"I also design and run AI-powered automation for engineering teams โ€” from bug investigation to code review."},UC={title:"Tech Stack",also:"Also working with"},$C={title:"Blog",comingSoon:"Coming Soon...",placeholder:"Technical articles are on the way"},HC={title:"Contact",subtitle:"Get in touch"},kC={nav:jC,hero:BC,about:VC,tech:UC,blog:$C,contact:HC},IC={home:"Accueil",blog:"Blog"},PC={title:"Mobile Architect & AI Engineer",tagline:"Produits mobiles et pipelines IA dans l'univers numรฉrique",scroll:"scroll"},GC={title:"ร€ propos",p1:"Plus de 10 ans dans le dรฉveloppement mobile. Je dirige une รฉquipe de 8 ingรฉnieurs et conรงois des solutions cross-platform pour des produits fintech.",p2:"Stack principal : Kotlin Multiplatform, Compose Multiplatform, SwiftUI. Je me concentre sur l'architecture propre, l'optimisation des performances et les systรจmes qui passent ร  l'รฉchelle.",p3:"L'essentiel de mon travail vit dans des codebases d'entreprise โ€” des apps en production pour de vrais utilisateurs. Je contribue ร  l'open source et explore constamment les nouvelles technos.",p4:"En parallรจle, je mets en place des automatisations basรฉes sur l'IA pour les รฉquipes de dev โ€” analyse de bugs, revue de code."},qC={title:"Stack Technique",also:"Je travaille aussi avec"},YC={title:"Blog",comingSoon:"Bientรดt...",placeholder:"Des articles techniques arrivent"},KC={title:"Contact",subtitle:"Me contacter"},FC={nav:IC,hero:PC,about:GC,tech:qC,blog:YC,contact:KC},XC={home:"Start",blog:"Blog"},QC={title:"Mobile Architect & AI Engineer",tagline:"Produkty mobilne i pipeline'y AI w cyfrowej przestrzeni",scroll:"scroll"},ZC={title:"O mnie",p1:"10+ lat w tworzeniu aplikacji mobilnych. Kierujฤ™ zespoล‚em 8 inลผynierรณw, projektujฤ™ rozwiฤ…zania cross-platform dla produktรณw fintech.",p2:"Gล‚รณwny stack: Kotlin Multiplatform, Compose Multiplatform, SwiftUI. Skupiam siฤ™ na czystej architekturze, optymalizacji wydajnoล›ci i skalowalnych systemach.",p3:"Wiฤ™kszoล›ฤ‡ mojej pracy ลผyje w firmowych repozytoriach โ€” produkcyjne aplikacje dla prawdziwych uลผytkownikรณw. Uczestniczฤ™ w projektach open source i ล›ledzฤ™ nowe technologie.",p4:"Rรณwnolegle budujฤ™ automatyzacje oparte na AI dla zespoล‚รณw developerskich โ€” analiza bugรณw, code review."},JC={title:"Technologie",also:"Rรณwnieลผ pracujฤ™ z"},WC={title:"Blog",comingSoon:"Wkrรณtce...",placeholder:"Artykuล‚y techniczne juลผ w przygotowaniu"},t2={title:"Kontakt",subtitle:"Napisz do mnie"},e2={nav:XC,hero:QC,about:ZC,tech:JC,blog:WC,contact:t2},n2={home:"ะ“ะปะฐะฒะฝะฐั",blog:"ะ‘ะปะพะณ"},i2={title:"Mobile Architect & AI Engineer",tagline:"ะœะพะฑะธะปัŒะฝั‹ะต ะฟั€ะพะดัƒะบั‚ั‹ ะธ AI-ะฟะฐะนะฟะปะฐะนะฝั‹ ะฒ ั†ะธั„ั€ะพะฒะพะผ ะฟั€ะพัั‚ั€ะฐะฝัั‚ะฒะต",scroll:"scroll"},a2={title:"ะžะฑะพ ะผะฝะต",p1:"10+ ะปะตั‚ ะฒ ะผะพะฑะธะปัŒะฝะพะน ั€ะฐะทั€ะฐะฑะพั‚ะบะต. ะ ัƒะบะพะฒะพะถัƒ ะบะพะผะฐะฝะดะพะน ะธะท 8 ะธะฝะถะตะฝะตั€ะพะฒ, ะฟั€ะพะตะบั‚ะธั€ัƒัŽ ะบั€ะพัั-ะฟะปะฐั‚ั„ะพั€ะผะตะฝะฝั‹ะต ั€ะตัˆะตะฝะธั ะดะปั fintech-ะฟั€ะพะดัƒะบั‚ะพะฒ.",p2:"ะžัะฝะพะฒะฝะพะน ัั‚ะตะบ: Kotlin Multiplatform, Compose Multiplatform, SwiftUI. ะคะพะบัƒัะธั€ัƒัŽััŒ ะฝะฐ ั‡ะธัั‚ะพะน ะฐั€ั…ะธั‚ะตะบั‚ัƒั€ะต, ะพะฟั‚ะธะผะธะทะฐั†ะธะธ ะฟั€ะพะธะทะฒะพะดะธั‚ะตะปัŒะฝะพัั‚ะธ ะธ ะผะฐััˆั‚ะฐะฑะธั€ัƒะตะผั‹ั… ัะธัั‚ะตะผะฐั….",p3:"ะ‘ะพะปัŒัˆะฐั ั‡ะฐัั‚ัŒ ะผะพะตะน ั€ะฐะฑะพั‚ั‹ ะถะธะฒั‘ั‚ ะฒ ะบะพั€ะฟะพั€ะฐั‚ะธะฒะฝั‹ั… ะบะพะดะพะฒั‹ั… ะฑะฐะทะฐั… โ€” ะฟั€ะพะดะฐะบัˆะตะฝ-ะฟั€ะธะปะพะถะตะฝะธั ะดะปั ั€ะตะฐะปัŒะฝั‹ั… ะฟะพะปัŒะทะพะฒะฐั‚ะตะปะตะน. ะฃั‡ะฐัั‚ะฒัƒัŽ ะฒ open source ะธ ะฟะพัั‚ะพัะฝะฝะพ ะธะทัƒั‡ะฐัŽ ะฝะพะฒั‹ะต ั‚ะตั…ะฝะพะปะพะณะธะธ.",p4:"ะžั‚ะดะตะปัŒะฝะพะต ะฝะฐะฟั€ะฐะฒะปะตะฝะธะต โ€” ะฐะฒั‚ะพะผะฐั‚ะธะทะฐั†ะธั ะธะฝะถะตะฝะตั€ะฝั‹ั… ะฟั€ะพั†ะตััะพะฒ ั ะฟะพะผะพั‰ัŒัŽ AI: ะพั‚ ั€ะฐะทะฑะพั€ะฐ ะฑะฐะณะพะฒ ะดะพ ะบะพะด-ั€ะตะฒัŒัŽ."},s2={title:"ะขะตั…ะฝะพะปะพะณะธะธ",also:"ะขะฐะบะถะต ั€ะฐะฑะพั‚ะฐัŽ ั"},r2={title:"ะ‘ะปะพะณ",comingSoon:"ะกะบะพั€ะพ...",placeholder:"ะขะตั…ะฝะธั‡ะตัะบะธะต ัั‚ะฐั‚ัŒะธ ัƒะถะต ะฒ ั€ะฐะฑะพั‚ะต"},o2={title:"ะšะพะฝั‚ะฐะบั‚ั‹",subtitle:"ะะฐะฟะธัะฐั‚ัŒ ะผะฝะต"},l2={nav:n2,hero:i2,about:a2,tech:s2,blog:r2,contact:o2},u2={home:"ะ“ะฐะปะพัžะฝะฐั",blog:"ะ‘ะปะพะณ"},c2={title:"Mobile Architect & AI Engineer",tagline:"ะœะฐะฑั–ะปัŒะฝั‹ั ะฟั€ะฐะดัƒะบั‚ั‹ ั– AI-ะฟะฐะนะฟะปะฐะนะฝั‹ ัž ะปั–ั‡ะฑะฐะฒะฐะน ะฟั€ะฐัั‚ะพั€ั‹",scroll:"scroll"},f2={title:"ะŸั€ะฐ ะผัะฝะต",p1:"10+ ะณะฐะดะพัž ัƒ ะผะฐะฑั–ะปัŒะฝะฐะน ั€ะฐัะฟั€ะฐั†ะพัžั†ั‹. ะšั–ั€ัƒัŽ ะบะฐะผะฐะฝะดะฐะน ะท 8 ั–ะฝะถั‹ะฝะตั€ะฐัž, ะฟั€ะฐะตะบั‚ัƒัŽ ะบั€ะพั-ะฟะปะฐั‚ั„ะพั€ะผะฐะฒั‹ั ั€ะฐัˆัะฝะฝั– ะดะปั fintech-ะฟั€ะฐะดัƒะบั‚ะฐัž.",p2:"ะัะฝะพัžะฝั‹ ัั‚ัะบ: Kotlin Multiplatform, Compose Multiplatform, SwiftUI. ะคะพะบัƒััƒัŽัั ะฝะฐ ั‡ั‹ัั‚ะฐะน ะฐั€ั…ั–ั‚ัะบั‚ัƒั€ั‹, ะฐะฟั‚ั‹ะผั–ะทะฐั†ั‹ั– ะฟั€ะฐะดัƒะบั†ั‹ะนะฝะฐัั†ั– ั– ะผะฐัˆั‚ะฐะฑัƒะตะผั‹ั… ัั–ัั‚ัะผะฐั….",p3:"ะ‘ะพะปัŒัˆะฐั ั‡ะฐัั‚ะบะฐ ะผะฐั‘ะน ะฟั€ะฐั†ั‹ ะถั‹ะฒะต ัž ะบะฐั€ะฟะฐั€ะฐั‚ั‹ัžะฝั‹ั… ั€ัะฟะฐะทั–ั‚ะพั€ั‹ัั… โ€” ะฟั€ะฐะดะฐะบัˆัะฝ-ะฟั€ั‹ะบะปะฐะดะฐะฝะฝั– ะดะปั ั€ัะฐะปัŒะฝั‹ั… ะบะฐั€ั‹ัั‚ะฐะปัŒะฝั–ะบะฐัž. ะฃะดะทะตะปัŒะฝั–ั‡ะฐัŽ ัž open source ั– ะฟะฐัั‚ะฐัะฝะฝะฐ ะฒั‹ะฒัƒั‡ะฐัŽ ะฝะพะฒั‹ั ั‚ัั…ะฝะฐะปะพะณั–ั–.",p4:"ะัะพะฑะฝั‹ ะฝะฐะฟั€ะฐะผะฐะบ โ€” ะฐัžั‚ะฐะผะฐั‚ั‹ะทะฐั†ั‹ั ั–ะฝะถั‹ะฝะตั€ะฝั‹ั… ะฟั€ะฐั†ััะฐัž ะท ะดะฐะฟะฐะผะพะณะฐะน AI: ะฐะด ั€ะฐะทะฑะพั€ัƒ ะฑะฐะณะฐัž ะดะฐ ะบะพะด-ั€ััžัŽ."},h2={title:"ะขัั…ะฝะฐะปะพะณั–ั–",also:"ะขะฐะบัะฐะผะฐ ะฟั€ะฐั†ัƒัŽ ะท"},d2={title:"ะ‘ะปะพะณ",comingSoon:"ะฅัƒั‚ะบะฐ...",placeholder:"ะขัั…ะฝั–ั‡ะฝั‹ั ะฐั€ั‚ั‹ะบัƒะปั‹ ัžะถะพ ัž ะฟั€ะฐั†ั‹"},p2={title:"ะšะฐะฝั‚ะฐะบั‚ั‹",subtitle:"ะะฐะฟั–ัะฐั†ัŒ ะผะฝะต"},m2={nav:u2,hero:c2,about:f2,tech:h2,blog:d2,contact:p2},g2={en:{translation:kC},fr:{translation:FC},pl:{translation:e2},ru:{translation:l2},by:{translation:m2}};Ee.use(y1).use(fC).init({resources:g2,fallbackLng:"en",supportedLngs:["en","fr","pl","ru","by"],detection:{order:["path","localStorage","navigator"],lookupFromPathIndex:0,caches:["localStorage"]},interpolation:{escapeValue:!1}});const y2=()=>{};var ov={};const v1=function(e){const n=[];let a=0;for(let r=0;r>6|192,n[a++]=l&63|128):(l&64512)===55296&&r+1>18|240,n[a++]=l>>12&63|128,n[a++]=l>>6&63|128,n[a++]=l&63|128):(n[a++]=l>>12|224,n[a++]=l>>6&63|128,n[a++]=l&63|128)}return n},v2=function(e){const n=[];let a=0,r=0;for(;a191&&l<224){const u=e[a++];n[r++]=String.fromCharCode((l&31)<<6|u&63)}else if(l>239&&l<365){const u=e[a++],f=e[a++],d=e[a++],p=((l&7)<<18|(u&63)<<12|(f&63)<<6|d&63)-65536;n[r++]=String.fromCharCode(55296+(p>>10)),n[r++]=String.fromCharCode(56320+(p&1023))}else{const u=e[a++],f=e[a++];n[r++]=String.fromCharCode((l&15)<<12|(u&63)<<6|f&63)}}return n.join("")},b1={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,n){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const a=n?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let l=0;l>2,y=(u&3)<<4|d>>4;let S=(d&15)<<2|m>>6,x=m&63;p||(x=64,f||(S=64)),r.push(a[g],a[y],a[S],a[x])}return r.join("")},encodeString(e,n){return this.HAS_NATIVE_SUPPORT&&!n?btoa(e):this.encodeByteArray(v1(e),n)},decodeString(e,n){return this.HAS_NATIVE_SUPPORT&&!n?atob(e):v2(this.decodeStringToByteArray(e,n))},decodeStringToByteArray(e,n){this.init_();const a=n?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let l=0;l>4;if(r.push(S),m!==64){const x=d<<4&240|m>>2;if(r.push(x),y!==64){const E=m<<6&192|y;r.push(E)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class b2 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const S2=function(e){const n=v1(e);return b1.encodeByteArray(n,!0)},S1=function(e){return S2(e).replace(/\./g,"")},x2=function(e){try{return b1.decodeString(e,!0)}catch(n){console.error("base64Decode failed: ",n)}return null};function T2(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}const E2=()=>T2().__FIREBASE_DEFAULTS__,w2=()=>{if(typeof process>"u"||typeof ov>"u")return;const e=ov.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},A2=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const n=e&&x2(e[1]);return n&&JSON.parse(n)},C2=()=>{try{return y2()||E2()||w2()||A2()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},x1=()=>C2()?.config;class R2{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((n,a)=>{this.resolve=n,this.reject=a})}wrapCallback(n){return(a,r)=>{a?this.reject(a):this.resolve(r),typeof n=="function"&&(this.promise.catch(()=>{}),n.length===1?n(a):n(a,r))}}}function T1(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function Td(){try{return typeof indexedDB=="object"}catch{return!1}}function Ed(){return new Promise((e,n)=>{try{let a=!0;const r="validate-browser-context-for-indexeddb-analytics-module",l=self.indexedDB.open(r);l.onsuccess=()=>{l.result.close(),a||self.indexedDB.deleteDatabase(r),e(!0)},l.onupgradeneeded=()=>{a=!1},l.onerror=()=>{n(l.error?.message||"")}}catch(a){n(a)}})}function E1(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}const D2="FirebaseError";class ma extends Error{constructor(n,a,r){super(a),this.code=n,this.customData=r,this.name=D2,Object.setPrototypeOf(this,ma.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ou.prototype.create)}}class ou{constructor(n,a,r){this.service=n,this.serviceName=a,this.errors=r}create(n,...a){const r=a[0]||{},l=`${this.service}/${n}`,u=this.errors[n],f=u?O2(u,r):"Error",d=`${this.serviceName}: ${f} (${l}).`;return new ma(l,d,r)}}function O2(e,n){return e.replace(M2,(a,r)=>{const l=n[r];return l!=null?String(l):`<${r}?>`})}const M2=/\{\$([^}]+)}/g;function ql(e,n){if(e===n)return!0;const a=Object.keys(e),r=Object.keys(n);for(const l of a){if(!r.includes(l))return!1;const u=e[l],f=n[l];if(lv(u)&&lv(f)){if(!ql(u,f))return!1}else if(u!==f)return!1}for(const l of r)if(!a.includes(l))return!1;return!0}function lv(e){return e!==null&&typeof e=="object"}const _2=1e3,L2=2,N2=14400*1e3,z2=.5;function uv(e,n=_2,a=L2){const r=n*Math.pow(a,e),l=Math.round(z2*r*(Math.random()-.5)*2);return Math.min(N2,r+l)}function wd(e){return e&&e._delegate?e._delegate:e}class Oi{constructor(n,a,r){this.name=n,this.instanceFactory=a,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(n){return this.instantiationMode=n,this}setMultipleInstances(n){return this.multipleInstances=n,this}setServiceProps(n){return this.serviceProps=n,this}setInstanceCreatedCallback(n){return this.onInstanceCreated=n,this}}const ea="[DEFAULT]";class j2{constructor(n,a){this.name=n,this.container=a,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(n){const a=this.normalizeInstanceIdentifier(n);if(!this.instancesDeferred.has(a)){const r=new R2;if(this.instancesDeferred.set(a,r),this.isInitialized(a)||this.shouldAutoInitialize())try{const l=this.getOrInitializeService({instanceIdentifier:a});l&&r.resolve(l)}catch{}}return this.instancesDeferred.get(a).promise}getImmediate(n){const a=this.normalizeInstanceIdentifier(n?.identifier),r=n?.optional??!1;if(this.isInitialized(a)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:a})}catch(l){if(r)return null;throw l}else{if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(n){if(n.name!==this.name)throw Error(`Mismatching Component ${n.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=n,!!this.shouldAutoInitialize()){if(V2(n))try{this.getOrInitializeService({instanceIdentifier:ea})}catch{}for(const[a,r]of this.instancesDeferred.entries()){const l=this.normalizeInstanceIdentifier(a);try{const u=this.getOrInitializeService({instanceIdentifier:l});r.resolve(u)}catch{}}}}clearInstance(n=ea){this.instancesDeferred.delete(n),this.instancesOptions.delete(n),this.instances.delete(n)}async delete(){const n=Array.from(this.instances.values());await Promise.all([...n.filter(a=>"INTERNAL"in a).map(a=>a.INTERNAL.delete()),...n.filter(a=>"_delete"in a).map(a=>a._delete())])}isComponentSet(){return this.component!=null}isInitialized(n=ea){return this.instances.has(n)}getOptions(n=ea){return this.instancesOptions.get(n)||{}}initialize(n={}){const{options:a={}}=n,r=this.normalizeInstanceIdentifier(n.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const l=this.getOrInitializeService({instanceIdentifier:r,options:a});for(const[u,f]of this.instancesDeferred.entries()){const d=this.normalizeInstanceIdentifier(u);r===d&&f.resolve(l)}return l}onInit(n,a){const r=this.normalizeInstanceIdentifier(a),l=this.onInitCallbacks.get(r)??new Set;l.add(n),this.onInitCallbacks.set(r,l);const u=this.instances.get(r);return u&&n(u,r),()=>{l.delete(n)}}invokeOnInitCallbacks(n,a){const r=this.onInitCallbacks.get(a);if(r)for(const l of r)try{l(n,a)}catch{}}getOrInitializeService({instanceIdentifier:n,options:a={}}){let r=this.instances.get(n);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:B2(n),options:a}),this.instances.set(n,r),this.instancesOptions.set(n,a),this.invokeOnInitCallbacks(r,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,r)}catch{}return r||null}normalizeInstanceIdentifier(n=ea){return this.component?this.component.multipleInstances?n:ea:n}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function B2(e){return e===ea?void 0:e}function V2(e){return e.instantiationMode==="EAGER"}class U2{constructor(n){this.name=n,this.providers=new Map}addComponent(n){const a=this.getProvider(n.name);if(a.isComponentSet())throw new Error(`Component ${n.name} has already been registered with ${this.name}`);a.setComponent(n)}addOrOverwriteComponent(n){this.getProvider(n.name).isComponentSet()&&this.providers.delete(n.name),this.addComponent(n)}getProvider(n){if(this.providers.has(n))return this.providers.get(n);const a=new j2(n,this);return this.providers.set(n,a),a}getProviders(){return Array.from(this.providers.values())}}var $t;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})($t||($t={}));const $2={debug:$t.DEBUG,verbose:$t.VERBOSE,info:$t.INFO,warn:$t.WARN,error:$t.ERROR,silent:$t.SILENT},H2=$t.INFO,k2={[$t.DEBUG]:"log",[$t.VERBOSE]:"log",[$t.INFO]:"info",[$t.WARN]:"warn",[$t.ERROR]:"error"},I2=(e,n,...a)=>{if(nn.some(a=>e instanceof a);let cv,fv;function G2(){return cv||(cv=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function q2(){return fv||(fv=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const A1=new WeakMap,$h=new WeakMap,C1=new WeakMap,nh=new WeakMap,Ad=new WeakMap;function Y2(e){const n=new Promise((a,r)=>{const l=()=>{e.removeEventListener("success",u),e.removeEventListener("error",f)},u=()=>{a(Ai(e.result)),l()},f=()=>{r(e.error),l()};e.addEventListener("success",u),e.addEventListener("error",f)});return n.then(a=>{a instanceof IDBCursor&&A1.set(a,e)}).catch(()=>{}),Ad.set(n,e),n}function K2(e){if($h.has(e))return;const n=new Promise((a,r)=>{const l=()=>{e.removeEventListener("complete",u),e.removeEventListener("error",f),e.removeEventListener("abort",f)},u=()=>{a(),l()},f=()=>{r(e.error||new DOMException("AbortError","AbortError")),l()};e.addEventListener("complete",u),e.addEventListener("error",f),e.addEventListener("abort",f)});$h.set(e,n)}let Hh={get(e,n,a){if(e instanceof IDBTransaction){if(n==="done")return $h.get(e);if(n==="objectStoreNames")return e.objectStoreNames||C1.get(e);if(n==="store")return a.objectStoreNames[1]?void 0:a.objectStore(a.objectStoreNames[0])}return Ai(e[n])},set(e,n,a){return e[n]=a,!0},has(e,n){return e instanceof IDBTransaction&&(n==="done"||n==="store")?!0:n in e}};function F2(e){Hh=e(Hh)}function X2(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(n,...a){const r=e.call(ih(this),n,...a);return C1.set(r,n.sort?n.sort():[n]),Ai(r)}:q2().includes(e)?function(...n){return e.apply(ih(this),n),Ai(A1.get(this))}:function(...n){return Ai(e.apply(ih(this),n))}}function Q2(e){return typeof e=="function"?X2(e):(e instanceof IDBTransaction&&K2(e),P2(e,G2())?new Proxy(e,Hh):e)}function Ai(e){if(e instanceof IDBRequest)return Y2(e);if(nh.has(e))return nh.get(e);const n=Q2(e);return n!==e&&(nh.set(e,n),Ad.set(n,e)),n}const ih=e=>Ad.get(e);function R1(e,n,{blocked:a,upgrade:r,blocking:l,terminated:u}={}){const f=indexedDB.open(e,n),d=Ai(f);return r&&f.addEventListener("upgradeneeded",p=>{r(Ai(f.result),p.oldVersion,p.newVersion,Ai(f.transaction),p)}),a&&f.addEventListener("blocked",p=>a(p.oldVersion,p.newVersion,p)),d.then(p=>{u&&p.addEventListener("close",()=>u()),l&&p.addEventListener("versionchange",m=>l(m.oldVersion,m.newVersion,m))}).catch(()=>{}),d}const Z2=["get","getKey","getAll","getAllKeys","count"],J2=["put","add","delete","clear"],ah=new Map;function hv(e,n){if(!(e instanceof IDBDatabase&&!(n in e)&&typeof n=="string"))return;if(ah.get(n))return ah.get(n);const a=n.replace(/FromIndex$/,""),r=n!==a,l=J2.includes(a);if(!(a in(r?IDBIndex:IDBObjectStore).prototype)||!(l||Z2.includes(a)))return;const u=async function(f,...d){const p=this.transaction(f,l?"readwrite":"readonly");let m=p.store;return r&&(m=m.index(d.shift())),(await Promise.all([m[a](...d),l&&p.done]))[0]};return ah.set(n,u),u}F2(e=>({...e,get:(n,a,r)=>hv(n,a)||e.get(n,a,r),has:(n,a)=>!!hv(n,a)||e.has(n,a)}));class W2{constructor(n){this.container=n}getPlatformInfoString(){return this.container.getProviders().map(a=>{if(tR(a)){const r=a.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(a=>a).join(" ")}}function tR(e){return e.getComponent()?.type==="VERSION"}const kh="@firebase/app",dv="0.14.6";const Yn=new w1("@firebase/app"),eR="@firebase/app-compat",nR="@firebase/analytics-compat",iR="@firebase/analytics",aR="@firebase/app-check-compat",sR="@firebase/app-check",rR="@firebase/auth",oR="@firebase/auth-compat",lR="@firebase/database",uR="@firebase/data-connect",cR="@firebase/database-compat",fR="@firebase/functions",hR="@firebase/functions-compat",dR="@firebase/installations",pR="@firebase/installations-compat",mR="@firebase/messaging",gR="@firebase/messaging-compat",yR="@firebase/performance",vR="@firebase/performance-compat",bR="@firebase/remote-config",SR="@firebase/remote-config-compat",xR="@firebase/storage",TR="@firebase/storage-compat",ER="@firebase/firestore",wR="@firebase/ai",AR="@firebase/firestore-compat",CR="firebase";const Ih="[DEFAULT]",RR={[kh]:"fire-core",[eR]:"fire-core-compat",[iR]:"fire-analytics",[nR]:"fire-analytics-compat",[sR]:"fire-app-check",[aR]:"fire-app-check-compat",[rR]:"fire-auth",[oR]:"fire-auth-compat",[lR]:"fire-rtdb",[uR]:"fire-data-connect",[cR]:"fire-rtdb-compat",[fR]:"fire-fn",[hR]:"fire-fn-compat",[dR]:"fire-iid",[pR]:"fire-iid-compat",[mR]:"fire-fcm",[gR]:"fire-fcm-compat",[yR]:"fire-perf",[vR]:"fire-perf-compat",[bR]:"fire-rc",[SR]:"fire-rc-compat",[xR]:"fire-gcs",[TR]:"fire-gcs-compat",[ER]:"fire-fst",[AR]:"fire-fst-compat",[wR]:"fire-vertex","fire-js":"fire-js",[CR]:"fire-js-all"};const jr=new Map,DR=new Map,Ph=new Map;function pv(e,n){try{e.container.addComponent(n)}catch(a){Yn.debug(`Component ${n.name} failed to register with FirebaseApp ${e.name}`,a)}}function ua(e){const n=e.name;if(Ph.has(n))return Yn.debug(`There were multiple attempts to register component ${n}.`),!1;Ph.set(n,e);for(const a of jr.values())pv(a,e);for(const a of DR.values())pv(a,e);return!0}function lu(e,n){const a=e.container.getProvider("heartbeat").getImmediate({optional:!0});return a&&a.triggerHeartbeat(),e.container.getProvider(n)}const OR={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},Ci=new ou("app","Firebase",OR);class MR{constructor(n,a,r){this._isDeleted=!1,this._options={...n},this._config={...a},this._name=a.name,this._automaticDataCollectionEnabled=a.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Oi("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(n){this.checkDestroyed(),this._automaticDataCollectionEnabled=n}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(n){this._isDeleted=n}checkDestroyed(){if(this.isDeleted)throw Ci.create("app-deleted",{appName:this._name})}}function D1(e,n={}){let a=e;typeof n!="object"&&(n={name:n});const r={name:Ih,automaticDataCollectionEnabled:!0,...n},l=r.name;if(typeof l!="string"||!l)throw Ci.create("bad-app-name",{appName:String(l)});if(a||(a=x1()),!a)throw Ci.create("no-options");const u=jr.get(l);if(u){if(ql(a,u.options)&&ql(r,u.config))return u;throw Ci.create("duplicate-app",{appName:l})}const f=new U2(l);for(const p of Ph.values())f.addComponent(p);const d=new MR(a,r,f);return jr.set(l,d),d}function _R(e=Ih){const n=jr.get(e);if(!n&&e===Ih&&x1())return D1();if(!n)throw Ci.create("no-app",{appName:e});return n}function mv(){return Array.from(jr.values())}function Ri(e,n,a){let r=RR[e]??e;a&&(r+=`-${a}`);const l=r.match(/\s|\//),u=n.match(/\s|\//);if(l||u){const f=[`Unable to register library "${r}" with version "${n}":`];l&&f.push(`library name "${r}" contains illegal characters (whitespace or "/")`),l&&u&&f.push("and"),u&&f.push(`version name "${n}" contains illegal characters (whitespace or "/")`),Yn.warn(f.join(" "));return}ua(new Oi(`${r}-version`,()=>({library:r,version:n}),"VERSION"))}const LR="firebase-heartbeat-database",NR=1,Br="firebase-heartbeat-store";let sh=null;function O1(){return sh||(sh=R1(LR,NR,{upgrade:(e,n)=>{switch(n){case 0:try{e.createObjectStore(Br)}catch(a){console.warn(a)}}}}).catch(e=>{throw Ci.create("idb-open",{originalErrorMessage:e.message})})),sh}async function zR(e){try{const a=(await O1()).transaction(Br),r=await a.objectStore(Br).get(M1(e));return await a.done,r}catch(n){if(n instanceof ma)Yn.warn(n.message);else{const a=Ci.create("idb-get",{originalErrorMessage:n?.message});Yn.warn(a.message)}}}async function gv(e,n){try{const r=(await O1()).transaction(Br,"readwrite");await r.objectStore(Br).put(n,M1(e)),await r.done}catch(a){if(a instanceof ma)Yn.warn(a.message);else{const r=Ci.create("idb-set",{originalErrorMessage:a?.message});Yn.warn(r.message)}}}function M1(e){return`${e.name}!${e.options.appId}`}const jR=1024,BR=30;class VR{constructor(n){this.container=n,this._heartbeatsCache=null;const a=this.container.getProvider("app").getImmediate();this._storage=new $R(a),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){try{const a=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=yv();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some(l=>l.date===r))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:a}),this._heartbeatsCache.heartbeats.length>BR){const l=HR(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(l,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(n){Yn.warn(n)}}async getHeartbeatsHeader(){try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=yv(),{heartbeatsToSend:a,unsentEntries:r}=UR(this._heartbeatsCache.heartbeats),l=S1(JSON.stringify({version:2,heartbeats:a}));return this._heartbeatsCache.lastSentHeartbeatDate=n,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),l}catch(n){return Yn.warn(n),""}}}function yv(){return new Date().toISOString().substring(0,10)}function UR(e,n=jR){const a=[];let r=e.slice();for(const l of e){const u=a.find(f=>f.agent===l.agent);if(u){if(u.dates.push(l.date),vv(a)>n){u.dates.pop();break}}else if(a.push({agent:l.agent,dates:[l.date]}),vv(a)>n){a.pop();break}r=r.slice(1)}return{heartbeatsToSend:a,unsentEntries:r}}class $R{constructor(n){this.app=n,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return Td()?Ed().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const a=await zR(this.app);return a?.heartbeats?a:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(n){if(await this._canUseIndexedDBPromise){const r=await this.read();return gv(this.app,{lastSentHeartbeatDate:n.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:n.heartbeats})}else return}async add(n){if(await this._canUseIndexedDBPromise){const r=await this.read();return gv(this.app,{lastSentHeartbeatDate:n.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...n.heartbeats]})}else return}}function vv(e){return S1(JSON.stringify({version:2,heartbeats:e})).length}function HR(e){if(e.length===0)return-1;let n=0,a=e[0].date;for(let r=1;rnew W2(n),"PRIVATE")),ua(new Oi("heartbeat",n=>new VR(n),"PRIVATE")),Ri(kh,dv,e),Ri(kh,dv,"esm2020"),Ri("fire-js","")}kR("");var IR="firebase",PR="12.7.0";Ri(IR,PR,"app");const _1="@firebase/installations",Cd="0.6.19";const L1=1e4,N1=`w:${Cd}`,z1="FIS_v2",GR="https://firebaseinstallations.googleapis.com/v1",qR=3600*1e3,YR="installations",KR="Installations";const FR={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},ca=new ou(YR,KR,FR);function j1(e){return e instanceof ma&&e.code.includes("request-failed")}function B1({projectId:e}){return`${GR}/projects/${e}/installations`}function V1(e){return{token:e.token,requestStatus:2,expiresIn:QR(e.expiresIn),creationTime:Date.now()}}async function U1(e,n){const r=(await n.json()).error;return ca.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function $1({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function XR(e,{refreshToken:n}){const a=$1(e);return a.append("Authorization",ZR(n)),a}async function H1(e){const n=await e();return n.status>=500&&n.status<600?e():n}function QR(e){return Number(e.replace("s","000"))}function ZR(e){return`${z1} ${e}`}async function JR({appConfig:e,heartbeatServiceProvider:n},{fid:a}){const r=B1(e),l=$1(e),u=n.getImmediate({optional:!0});if(u){const m=await u.getHeartbeatsHeader();m&&l.append("x-firebase-client",m)}const f={fid:a,authVersion:z1,appId:e.appId,sdkVersion:N1},d={method:"POST",headers:l,body:JSON.stringify(f)},p=await H1(()=>fetch(r,d));if(p.ok){const m=await p.json();return{fid:m.fid||a,registrationStatus:2,refreshToken:m.refreshToken,authToken:V1(m.authToken)}}else throw await U1("Create Installation",p)}function k1(e){return new Promise(n=>{setTimeout(n,e)})}function WR(e){return btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_")}const tD=/^[cdef][\w-]{21}$/,Gh="";function eD(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const a=nD(e);return tD.test(a)?a:Gh}catch{return Gh}}function nD(e){return WR(e).substr(0,22)}function uu(e){return`${e.appName}!${e.appId}`}const I1=new Map;function P1(e,n){const a=uu(e);G1(a,n),iD(a,n)}function G1(e,n){const a=I1.get(e);if(a)for(const r of a)r(n)}function iD(e,n){const a=aD();a&&a.postMessage({key:e,fid:n}),sD()}let ia=null;function aD(){return!ia&&"BroadcastChannel"in self&&(ia=new BroadcastChannel("[Firebase] FID Change"),ia.onmessage=e=>{G1(e.data.key,e.data.fid)}),ia}function sD(){I1.size===0&&ia&&(ia.close(),ia=null)}const rD="firebase-installations-database",oD=1,fa="firebase-installations-store";let rh=null;function Rd(){return rh||(rh=R1(rD,oD,{upgrade:(e,n)=>{n===0&&e.createObjectStore(fa)}})),rh}async function Yl(e,n){const a=uu(e),l=(await Rd()).transaction(fa,"readwrite"),u=l.objectStore(fa),f=await u.get(a);return await u.put(n,a),await l.done,(!f||f.fid!==n.fid)&&P1(e,n.fid),n}async function q1(e){const n=uu(e),r=(await Rd()).transaction(fa,"readwrite");await r.objectStore(fa).delete(n),await r.done}async function cu(e,n){const a=uu(e),l=(await Rd()).transaction(fa,"readwrite"),u=l.objectStore(fa),f=await u.get(a),d=n(f);return d===void 0?await u.delete(a):await u.put(d,a),await l.done,d&&(!f||f.fid!==d.fid)&&P1(e,d.fid),d}async function Dd(e){let n;const a=await cu(e.appConfig,r=>{const l=lD(r),u=uD(e,l);return n=u.registrationPromise,u.installationEntry});return a.fid===Gh?{installationEntry:await n}:{installationEntry:a,registrationPromise:n}}function lD(e){const n=e||{fid:eD(),registrationStatus:0};return Y1(n)}function uD(e,n){if(n.registrationStatus===0){if(!navigator.onLine){const l=Promise.reject(ca.create("app-offline"));return{installationEntry:n,registrationPromise:l}}const a={fid:n.fid,registrationStatus:1,registrationTime:Date.now()},r=cD(e,a);return{installationEntry:a,registrationPromise:r}}else return n.registrationStatus===1?{installationEntry:n,registrationPromise:fD(e)}:{installationEntry:n}}async function cD(e,n){try{const a=await JR(e,n);return Yl(e.appConfig,a)}catch(a){throw j1(a)&&a.customData.serverCode===409?await q1(e.appConfig):await Yl(e.appConfig,{fid:n.fid,registrationStatus:0}),a}}async function fD(e){let n=await bv(e.appConfig);for(;n.registrationStatus===1;)await k1(100),n=await bv(e.appConfig);if(n.registrationStatus===0){const{installationEntry:a,registrationPromise:r}=await Dd(e);return r||a}return n}function bv(e){return cu(e,n=>{if(!n)throw ca.create("installation-not-found");return Y1(n)})}function Y1(e){return hD(e)?{fid:e.fid,registrationStatus:0}:e}function hD(e){return e.registrationStatus===1&&e.registrationTime+L1fetch(r,d));if(p.ok){const m=await p.json();return V1(m)}else throw await U1("Generate Auth Token",p)}function pD(e,{fid:n}){return`${B1(e)}/${n}/authTokens:generate`}async function Od(e,n=!1){let a;const r=await cu(e.appConfig,u=>{if(!K1(u))throw ca.create("not-registered");const f=u.authToken;if(!n&&yD(f))return u;if(f.requestStatus===1)return a=mD(e,n),u;{if(!navigator.onLine)throw ca.create("app-offline");const d=bD(u);return a=gD(e,d),d}});return a?await a:r.authToken}async function mD(e,n){let a=await Sv(e.appConfig);for(;a.authToken.requestStatus===1;)await k1(100),a=await Sv(e.appConfig);const r=a.authToken;return r.requestStatus===0?Od(e,n):r}function Sv(e){return cu(e,n=>{if(!K1(n))throw ca.create("not-registered");const a=n.authToken;return SD(a)?{...n,authToken:{requestStatus:0}}:n})}async function gD(e,n){try{const a=await dD(e,n),r={...n,authToken:a};return await Yl(e.appConfig,r),a}catch(a){if(j1(a)&&(a.customData.serverCode===401||a.customData.serverCode===404))await q1(e.appConfig);else{const r={...n,authToken:{requestStatus:0}};await Yl(e.appConfig,r)}throw a}}function K1(e){return e!==void 0&&e.registrationStatus===2}function yD(e){return e.requestStatus===2&&!vD(e)}function vD(e){const n=Date.now();return n{const n=e.getProvider("app").getImmediate(),a=wD(n),r=lu(n,"heartbeat");return{app:n,appConfig:a,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},RD=e=>{const n=e.getProvider("app").getImmediate(),a=lu(n,F1).getImmediate();return{getId:()=>xD(a),getToken:l=>TD(a,l)}};function DD(){ua(new Oi(F1,CD,"PUBLIC")),ua(new Oi(AD,RD,"PRIVATE"))}DD();Ri(_1,Cd);Ri(_1,Cd,"esm2020");const Kl="analytics",OD="firebase_id",MD="origin",_D=60*1e3,LD="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig",Md="https://www.googletagmanager.com/gtag/js";const Te=new w1("@firebase/analytics");const ND={"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-initialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."},Ie=new ou("analytics","Analytics",ND);function zD(e){if(!e.startsWith(Md)){const n=Ie.create("invalid-gtag-resource",{gtagURL:e});return Te.warn(n.message),""}return e}function X1(e){return Promise.all(e.map(n=>n.catch(a=>a)))}function jD(e,n){let a;return window.trustedTypes&&(a=window.trustedTypes.createPolicy(e,n)),a}function BD(e,n){const a=jD("firebase-js-sdk-policy",{createScriptURL:zD}),r=document.createElement("script"),l=`${Md}?l=${e}&id=${n}`;r.src=a?a?.createScriptURL(l):l,r.async=!0,document.head.appendChild(r)}function VD(e){let n=[];return Array.isArray(window[e])?n=window[e]:window[e]=n,n}async function UD(e,n,a,r,l,u){const f=r[l];try{if(f)await n[f];else{const p=(await X1(a)).find(m=>m.measurementId===l);p&&await n[p.appId]}}catch(d){Te.error(d)}e("config",l,u)}async function $D(e,n,a,r,l){try{let u=[];if(l&&l.send_to){let f=l.send_to;Array.isArray(f)||(f=[f]);const d=await X1(a);for(const p of f){const m=d.find(y=>y.measurementId===p),g=m&&n[m.appId];if(g)u.push(g);else{u=[];break}}}u.length===0&&(u=Object.values(n)),await Promise.all(u),e("event",r,l||{})}catch(u){Te.error(u)}}function HD(e,n,a,r){async function l(u,...f){try{if(u==="event"){const[d,p]=f;await $D(e,n,a,d,p)}else if(u==="config"){const[d,p]=f;await UD(e,n,a,r,d,p)}else if(u==="consent"){const[d,p]=f;e("consent",d,p)}else if(u==="get"){const[d,p,m]=f;e("get",d,p,m)}else if(u==="set"){const[d]=f;e("set",d)}else e(u,...f)}catch(d){Te.error(d)}}return l}function kD(e,n,a,r,l){let u=function(...f){window[r].push(arguments)};return window[l]&&typeof window[l]=="function"&&(u=window[l]),window[l]=HD(u,e,n,a),{gtagCore:u,wrappedGtag:window[l]}}function ID(e){const n=window.document.getElementsByTagName("script");for(const a of Object.values(n))if(a.src&&a.src.includes(Md)&&a.src.includes(e))return a;return null}const PD=30,GD=1e3;class qD{constructor(n={},a=GD){this.throttleMetadata=n,this.intervalMillis=a}getThrottleMetadata(n){return this.throttleMetadata[n]}setThrottleMetadata(n,a){this.throttleMetadata[n]=a}deleteThrottleMetadata(n){delete this.throttleMetadata[n]}}const Q1=new qD;function YD(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}async function KD(e){const{appId:n,apiKey:a}=e,r={method:"GET",headers:YD(a)},l=LD.replace("{app-id}",n),u=await fetch(l,r);if(u.status!==200&&u.status!==304){let f="";try{const d=await u.json();d.error?.message&&(f=d.error.message)}catch{}throw Ie.create("config-fetch-failed",{httpStatus:u.status,responseMessage:f})}return u.json()}async function FD(e,n=Q1,a){const{appId:r,apiKey:l,measurementId:u}=e.options;if(!r)throw Ie.create("no-app-id");if(!l){if(u)return{measurementId:u,appId:r};throw Ie.create("no-api-key")}const f=n.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},d=new ZD;return setTimeout(async()=>{d.abort()},_D),Z1({appId:r,apiKey:l,measurementId:u},f,d,n)}async function Z1(e,{throttleEndTimeMillis:n,backoffCount:a},r,l=Q1){const{appId:u,measurementId:f}=e;try{await XD(r,n)}catch(d){if(f)return Te.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${f} provided in the "measurementId" field in the local Firebase config. [${d?.message}]`),{appId:u,measurementId:f};throw d}try{const d=await KD(e);return l.deleteThrottleMetadata(u),d}catch(d){const p=d;if(!QD(p)){if(l.deleteThrottleMetadata(u),f)return Te.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${f} provided in the "measurementId" field in the local Firebase config. [${p?.message}]`),{appId:u,measurementId:f};throw d}const m=Number(p?.customData?.httpStatus)===503?uv(a,l.intervalMillis,PD):uv(a,l.intervalMillis),g={throttleEndTimeMillis:Date.now()+m,backoffCount:a+1};return l.setThrottleMetadata(u,g),Te.debug(`Calling attemptFetch again in ${m} millis`),Z1(e,g,r,l)}}function XD(e,n){return new Promise((a,r)=>{const l=Math.max(n-Date.now(),0),u=setTimeout(a,l);e.addEventListener(()=>{clearTimeout(u),r(Ie.create("fetch-throttle",{throttleEndTimeMillis:n}))})})}function QD(e){if(!(e instanceof ma)||!e.customData)return!1;const n=Number(e.customData.httpStatus);return n===429||n===500||n===503||n===504}class ZD{constructor(){this.listeners=[]}addEventListener(n){this.listeners.push(n)}abort(){this.listeners.forEach(n=>n())}}async function JD(e,n,a,r,l){if(l&&l.global){e("event",a,r);return}else{const u=await n,f={...r,send_to:u};e("event",a,f)}}async function WD(e,n,a,r){if(r&&r.global){const l={};for(const u of Object.keys(a))l[`user_properties.${u}`]=a[u];return e("set",l),Promise.resolve()}else{const l=await n;e("config",l,{update:!0,user_properties:a})}}async function tO(){if(Td())try{await Ed()}catch(e){return Te.warn(Ie.create("indexeddb-unavailable",{errorInfo:e?.toString()}).message),!1}else return Te.warn(Ie.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;return!0}async function eO(e,n,a,r,l,u,f){const d=FD(e);d.then(S=>{a[S.measurementId]=S.appId,e.options.measurementId&&S.measurementId!==e.options.measurementId&&Te.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${S.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)}).catch(S=>Te.error(S)),n.push(d);const p=tO().then(S=>{if(S)return r.getId()}),[m,g]=await Promise.all([d,p]);ID(u)||BD(u,m.measurementId),l("js",new Date);const y=f?.config??{};return y[MD]="firebase",y.update=!0,g!=null&&(y[OD]=g),l("config",m.measurementId,y),m.measurementId}class nO{constructor(n){this.app=n}_delete(){return delete us[this.app.options.appId],Promise.resolve()}}let us={},xv=[];const Tv={};let lh="dataLayer",iO="gtag",Ev,_d,wv=!1;function aO(){const e=[];if(T1()&&e.push("This is a browser extension environment."),E1()||e.push("Cookies are not available."),e.length>0){const n=e.map((r,l)=>`(${l+1}) ${r}`).join(" "),a=Ie.create("invalid-analytics-context",{errorInfo:n});Te.warn(a.message)}}function sO(e,n,a){aO();const r=e.options.appId;if(!r)throw Ie.create("no-app-id");if(!e.options.apiKey)if(e.options.measurementId)Te.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`);else throw Ie.create("no-api-key");if(us[r]!=null)throw Ie.create("already-exists",{id:r});if(!wv){VD(lh);const{wrappedGtag:u,gtagCore:f}=kD(us,xv,Tv,lh,iO);_d=u,Ev=f,wv=!0}return us[r]=eO(e,xv,Tv,n,Ev,lh,a),new nO(e)}function rO(e=_R()){e=wd(e);const n=lu(e,Kl);return n.isInitialized()?n.getImmediate():oO(e)}function oO(e,n={}){const a=lu(e,Kl);if(a.isInitialized()){const l=a.getImmediate();if(ql(n,a.getOptions()))return l;throw Ie.create("already-initialized")}return a.initialize({options:n})}async function lO(){if(T1()||!E1()||!Td())return!1;try{return await Ed()}catch{return!1}}function uO(e,n,a){e=wd(e),WD(_d,us[e.app.options.appId],n,a).catch(r=>Te.error(r))}function cO(e,n,a,r){e=wd(e),JD(_d,us[e.app.options.appId],n,a,r).catch(l=>Te.error(l))}const Av="@firebase/analytics",Cv="0.10.19";function fO(){ua(new Oi(Kl,(n,{options:a})=>{const r=n.getProvider("app").getImmediate(),l=n.getProvider("installations-internal").getImmediate();return sO(r,l,a)},"PUBLIC")),ua(new Oi("analytics-internal",e,"PRIVATE")),Ri(Av,Cv),Ri(Av,Cv,"esm2020");function e(n){try{const a=n.getProvider(Kl).getImmediate();return{logEvent:(r,l,u)=>cO(a,r,l,u),setUserProperties:(r,l)=>uO(a,r,l)}}catch(a){throw Ie.create("interop-component-reg-failed",{reason:a})}}}fO();const hO={apiKey:"AIzaSyC-_tssQteuzL2ITtM8CHrdCLpGI8QIoFA",authDomain:"onexeor-dev.firebaseapp.com",projectId:"onexeor-dev",storageBucket:"onexeor-dev.firebasestorage.app",messagingSenderId:"1058393846608",appId:"1:1058393846608:web:248d30ba644c0bd6b8b255",measurementId:"G-Y2Y5STZLNH"},dO=mv().length===0?D1(hO):mv()[0];let bl=null;const pO=async()=>bl||(await lO()&&(bl=rO(dO)),bl);var Rv="popstate";function mO(e={}){function n(r,l){let{pathname:u,search:f,hash:d}=r.location;return qh("",{pathname:u,search:f,hash:d},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function a(r,l){return typeof l=="string"?l:Vr(l)}return yO(n,a,null,e)}function It(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function an(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function gO(){return Math.random().toString(36).substring(2,10)}function Dv(e,n){return{usr:e.state,key:e.key,idx:n}}function qh(e,n,a=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?vs(n):n,state:a,key:n&&n.key||r||gO()}}function Vr({pathname:e="/",search:n="",hash:a=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function vs(e){let n={};if(e){let a=e.indexOf("#");a>=0&&(n.hash=e.substring(a),e=e.substring(0,a));let r=e.indexOf("?");r>=0&&(n.search=e.substring(r),e=e.substring(0,r)),e&&(n.pathname=e)}return n}function yO(e,n,a,r={}){let{window:l=document.defaultView,v5Compat:u=!1}=r,f=l.history,d="POP",p=null,m=g();m==null&&(m=0,f.replaceState({...f.state,idx:m},""));function g(){return(f.state||{idx:null}).idx}function y(){d="POP";let M=g(),_=M==null?null:M-m;m=M,p&&p({action:d,location:R.location,delta:_})}function S(M,_){d="PUSH";let O=qh(R.location,M,_);m=g()+1;let L=Dv(O,m),q=R.createHref(O);try{f.pushState(L,"",q)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;l.location.assign(q)}u&&p&&p({action:d,location:R.location,delta:1})}function x(M,_){d="REPLACE";let O=qh(R.location,M,_);m=g();let L=Dv(O,m),q=R.createHref(O);f.replaceState(L,"",q),u&&p&&p({action:d,location:R.location,delta:0})}function E(M){return vO(M)}let R={get action(){return d},get location(){return e(l,f)},listen(M){if(p)throw new Error("A history only accepts one active listener");return l.addEventListener(Rv,y),p=M,()=>{l.removeEventListener(Rv,y),p=null}},createHref(M){return n(l,M)},createURL:E,encodeLocation(M){let _=E(M);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:S,replace:x,go(M){return f.go(M)}};return R}function vO(e,n=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),It(a,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Vr(e);return r=r.replace(/ $/,"%20"),!n&&r.startsWith("//")&&(r=a+r),new URL(r,a)}function J1(e,n,a="/"){return bO(e,n,a,!1)}function bO(e,n,a,r){let l=typeof n=="string"?vs(n):n,u=Kn(l.pathname||"/",a);if(u==null)return null;let f=W1(e);SO(f);let d=null;for(let p=0;d==null&&p{let g={relativePath:m===void 0?f.path||"":m,caseSensitive:f.caseSensitive===!0,childrenIndex:d,route:f};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(r)&&p)return;It(g.relativePath.startsWith(r),`Absolute route path "${g.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(r.length)}let y=Gn([r,g.relativePath]),S=a.concat(g);f.children&&f.children.length>0&&(It(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),W1(f.children,n,S,y,p)),!(f.path==null&&!f.index)&&n.push({path:y,score:RO(y,f.index),routesMeta:S})};return e.forEach((f,d)=>{if(f.path===""||!f.path?.includes("?"))u(f,d);else for(let p of tS(f.path))u(f,d,!0,p)}),n}function tS(e){let n=e.split("/");if(n.length===0)return[];let[a,...r]=n,l=a.endsWith("?"),u=a.replace(/\?$/,"");if(r.length===0)return l?[u,""]:[u];let f=tS(r.join("/")),d=[];return d.push(...f.map(p=>p===""?u:[u,p].join("/"))),l&&d.push(...f),d.map(p=>e.startsWith("/")&&p===""?"/":p)}function SO(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:DO(n.routesMeta.map(r=>r.childrenIndex),a.routesMeta.map(r=>r.childrenIndex)))}var xO=/^:[\w-]+$/,TO=3,EO=2,wO=1,AO=10,CO=-2,Ov=e=>e==="*";function RO(e,n){let a=e.split("/"),r=a.length;return a.some(Ov)&&(r+=CO),n&&(r+=EO),a.filter(l=>!Ov(l)).reduce((l,u)=>l+(xO.test(u)?TO:u===""?wO:AO),r)}function DO(e,n){return e.length===n.length&&e.slice(0,-1).every((r,l)=>r===n[l])?e[e.length-1]-n[n.length-1]:0}function OO(e,n,a=!1){let{routesMeta:r}=e,l={},u="/",f=[];for(let d=0;d{if(g==="*"){let E=d[S]||"";f=u.slice(0,u.length-E.length).replace(/(.)\/+$/,"$1")}const x=d[S];return y&&!x?m[g]=void 0:m[g]=(x||"").replace(/%2F/g,"/"),m},{}),pathname:u,pathnameBase:f,pattern:e}}function MO(e,n=!1,a=!0){an(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,d,p)=>(r.push({paramName:d,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,n?void 0:"i"),r]}function _O(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return an(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function Kn(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,r=e.charAt(a);return r&&r!=="/"?null:e.slice(a)||"/"}var eS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,LO=e=>eS.test(e);function NO(e,n="/"){let{pathname:a,search:r="",hash:l=""}=typeof e=="string"?vs(e):e,u;if(a)if(LO(a))u=a;else{if(a.includes("//")){let f=a;a=a.replace(/\/\/+/g,"/"),an(!1,`Pathnames cannot have embedded double slashes - normalizing ${f} -> ${a}`)}a.startsWith("/")?u=Mv(a.substring(1),"/"):u=Mv(a,n)}else u=n;return{pathname:u,search:BO(r),hash:VO(l)}}function Mv(e,n){let a=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?a.length>1&&a.pop():l!=="."&&a.push(l)}),a.length>1?a.join("/"):"/"}function uh(e,n,a,r){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function zO(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function Ld(e){let n=zO(e);return n.map((a,r)=>r===n.length-1?a.pathname:a.pathnameBase)}function Nd(e,n,a,r=!1){let l;typeof e=="string"?l=vs(e):(l={...e},It(!l.pathname||!l.pathname.includes("?"),uh("?","pathname","search",l)),It(!l.pathname||!l.pathname.includes("#"),uh("#","pathname","hash",l)),It(!l.search||!l.search.includes("#"),uh("#","search","hash",l)));let u=e===""||l.pathname==="",f=u?"/":l.pathname,d;if(f==null)d=a;else{let y=n.length-1;if(!r&&f.startsWith("..")){let S=f.split("/");for(;S[0]==="..";)S.shift(),y-=1;l.pathname=S.join("/")}d=y>=0?n[y]:"/"}let p=NO(l,d),m=f&&f!=="/"&&f.endsWith("/"),g=(u||f===".")&&a.endsWith("/");return!p.pathname.endsWith("/")&&(m||g)&&(p.pathname+="/"),p}var Gn=e=>e.join("/").replace(/\/\/+/g,"/"),jO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),BO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,VO=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,UO=class{constructor(e,n,a,r=!1){this.status=e,this.statusText=n||"",this.internal=r,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function $O(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function HO(e){return e.map(n=>n.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var nS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function iS(e,n){let a=e;if(typeof a!="string"||!eS.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let r=a,l=!1;if(nS)try{let u=new URL(window.location.href),f=a.startsWith("//")?new URL(u.protocol+a):new URL(a),d=Kn(f.pathname,n);f.origin===u.origin&&d!=null?a=d+f.search+f.hash:l=!0}catch{an(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:l,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var aS=["POST","PUT","PATCH","DELETE"];new Set(aS);var kO=["GET",...aS];new Set(kO);var bs=C.createContext(null);bs.displayName="DataRouter";var fu=C.createContext(null);fu.displayName="DataRouterState";var IO=C.createContext(!1),sS=C.createContext({isTransitioning:!1});sS.displayName="ViewTransition";var PO=C.createContext(new Map);PO.displayName="Fetchers";var GO=C.createContext(null);GO.displayName="Await";var Pe=C.createContext(null);Pe.displayName="Navigation";var Fr=C.createContext(null);Fr.displayName="Location";var pn=C.createContext({outlet:null,matches:[],isDataRoute:!1});pn.displayName="Route";var zd=C.createContext(null);zd.displayName="RouteError";var rS="REACT_ROUTER_ERROR",qO="REDIRECT",YO="ROUTE_ERROR_RESPONSE";function KO(e){if(e.startsWith(`${rS}:${qO}:{`))try{let n=JSON.parse(e.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function FO(e){if(e.startsWith(`${rS}:${YO}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new UO(n.status,n.statusText,n.data)}catch{}}function XO(e,{relative:n}={}){It(Ss(),"useHref() may be used only in the context of a component.");let{basename:a,navigator:r}=C.useContext(Pe),{hash:l,pathname:u,search:f}=Xr(e,{relative:n}),d=u;return a!=="/"&&(d=u==="/"?a:Gn([a,u])),r.createHref({pathname:d,search:f,hash:l})}function Ss(){return C.useContext(Fr)!=null}function Li(){return It(Ss(),"useLocation() may be used only in the context of a component."),C.useContext(Fr).location}var oS="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lS(e){C.useContext(Pe).static||C.useLayoutEffect(e)}function jd(){let{isDataRoute:e}=C.useContext(pn);return e?lM():QO()}function QO(){It(Ss(),"useNavigate() may be used only in the context of a component.");let e=C.useContext(bs),{basename:n,navigator:a}=C.useContext(Pe),{matches:r}=C.useContext(pn),{pathname:l}=Li(),u=JSON.stringify(Ld(r)),f=C.useRef(!1);return lS(()=>{f.current=!0}),C.useCallback((p,m={})=>{if(an(f.current,oS),!f.current)return;if(typeof p=="number"){a.go(p);return}let g=Nd(p,JSON.parse(u),l,m.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:Gn([n,g.pathname])),(m.replace?a.replace:a.push)(g,m.state,m)},[n,a,u,l,e])}C.createContext(null);function Bd(){let{matches:e}=C.useContext(pn),n=e[e.length-1];return n?n.params:{}}function Xr(e,{relative:n}={}){let{matches:a}=C.useContext(pn),{pathname:r}=Li(),l=JSON.stringify(Ld(a));return C.useMemo(()=>Nd(e,JSON.parse(l),r,n==="path"),[e,l,r,n])}function ZO(e,n){return uS(e,n)}function uS(e,n,a,r,l){It(Ss(),"useRoutes() may be used only in the context of a component.");let{navigator:u}=C.useContext(Pe),{matches:f}=C.useContext(pn),d=f[f.length-1],p=d?d.params:{},m=d?d.pathname:"/",g=d?d.pathnameBase:"/",y=d&&d.route;{let O=y&&y.path||"";fS(m,!y||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${m}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let S=Li(),x;if(n){let O=typeof n=="string"?vs(n):n;It(g==="/"||O.pathname?.startsWith(g),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${O.pathname}" was given in the \`location\` prop.`),x=O}else x=S;let E=x.pathname||"/",R=E;if(g!=="/"){let O=g.replace(/^\//,"").split("/");R="/"+E.replace(/^\//,"").split("/").slice(O.length).join("/")}let M=J1(e,{pathname:R});an(y||M!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),an(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let _=nM(M&&M.map(O=>Object.assign({},O,{params:Object.assign({},p,O.params),pathname:Gn([g,u.encodeLocation?u.encodeLocation(O.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?g:Gn([g,u.encodeLocation?u.encodeLocation(O.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),f,a,r,l);return n&&_?C.createElement(Fr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},_):_}function JO(){let e=oM(),n=$O(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:r},u={padding:"2px 4px",backgroundColor:r},f=null;return console.error("Error handled by React Router default ErrorBoundary:",e),f=C.createElement(C.Fragment,null,C.createElement("p",null,"๐Ÿ’ฟ Hey developer ๐Ÿ‘‹"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:u},"ErrorBoundary")," or"," ",C.createElement("code",{style:u},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},n),a?C.createElement("pre",{style:l},a):null,f)}var WO=C.createElement(JO,null),cS=class extends C.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.onError?this.props.onError(e,n):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const a=FO(e.digest);a&&(e=a)}let n=e!==void 0?C.createElement(pn.Provider,{value:this.props.routeContext},C.createElement(zd.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?C.createElement(tM,{error:e},n):n}};cS.contextType=IO;var ch=new WeakMap;function tM({children:e,error:n}){let{basename:a}=C.useContext(Pe);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let r=KO(n.digest);if(r){let l=ch.get(n);if(l)throw l;let u=iS(r.location,a);if(nS&&!ch.get(n))if(u.isExternal||r.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:r.replace}));throw ch.set(n,f),f}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return e}function eM({routeContext:e,match:n,children:a}){let r=C.useContext(bs);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(pn.Provider,{value:e},a)}function nM(e,n=[],a=null,r=null,l=null){if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(n.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let u=e,f=a?.errors;if(f!=null){let g=u.findIndex(y=>y.route.id&&f?.[y.route.id]!==void 0);It(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,g+1))}let d=!1,p=-1;if(a)for(let g=0;g=0?u=u.slice(0,p+1):u=[u[0]];break}}}let m=a&&r?(g,y)=>{r(g,{location:a.location,params:a.matches?.[0]?.params??{},unstable_pattern:HO(a.matches),errorInfo:y})}:void 0;return u.reduceRight((g,y,S)=>{let x,E=!1,R=null,M=null;a&&(x=f&&y.route.id?f[y.route.id]:void 0,R=y.route.errorElement||WO,d&&(p<0&&S===0?(fS("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,M=null):p===S&&(E=!0,M=y.route.hydrateFallbackElement||null)));let _=n.concat(u.slice(0,S+1)),O=()=>{let L;return x?L=R:E?L=M:y.route.Component?L=C.createElement(y.route.Component,null):y.route.element?L=y.route.element:L=g,C.createElement(eM,{match:y,routeContext:{outlet:g,matches:_,isDataRoute:a!=null},children:L})};return a&&(y.route.ErrorBoundary||y.route.errorElement||S===0)?C.createElement(cS,{location:a.location,revalidation:a.revalidation,component:R,error:x,children:O(),routeContext:{outlet:null,matches:_,isDataRoute:!0},onError:m}):O()},null)}function Vd(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function iM(e){let n=C.useContext(bs);return It(n,Vd(e)),n}function aM(e){let n=C.useContext(fu);return It(n,Vd(e)),n}function sM(e){let n=C.useContext(pn);return It(n,Vd(e)),n}function Ud(e){let n=sM(e),a=n.matches[n.matches.length-1];return It(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function rM(){return Ud("useRouteId")}function oM(){let e=C.useContext(zd),n=aM("useRouteError"),a=Ud("useRouteError");return e!==void 0?e:n.errors?.[a]}function lM(){let{router:e}=iM("useNavigate"),n=Ud("useNavigate"),a=C.useRef(!1);return lS(()=>{a.current=!0}),C.useCallback(async(l,u={})=>{an(a.current,oS),a.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:n,...u}))},[e,n])}var _v={};function fS(e,n,a){!n&&!_v[e]&&(_v[e]=!0,an(!1,a))}C.memo(uM);function uM({routes:e,future:n,state:a,onError:r}){return uS(e,void 0,a,r,n)}function cM({to:e,replace:n,state:a,relative:r}){It(Ss()," may be used only in the context of a component.");let{static:l}=C.useContext(Pe);an(!l," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:u}=C.useContext(pn),{pathname:f}=Li(),d=jd(),p=Nd(e,Ld(u),f,r==="path"),m=JSON.stringify(p);return C.useEffect(()=>{d(JSON.parse(m),{replace:n,state:a,relative:r})},[d,m,r,n,a]),null}function Ur(e){It(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function fM({basename:e="/",children:n=null,location:a,navigationType:r="POP",navigator:l,static:u=!1,unstable_useTransitions:f}){It(!Ss(),"You cannot render a inside another . You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),p=C.useMemo(()=>({basename:d,navigator:l,static:u,unstable_useTransitions:f,future:{}}),[d,l,u,f]);typeof a=="string"&&(a=vs(a));let{pathname:m="/",search:g="",hash:y="",state:S=null,key:x="default"}=a,E=C.useMemo(()=>{let R=Kn(m,d);return R==null?null:{location:{pathname:R,search:g,hash:y,state:S,key:x},navigationType:r}},[d,m,g,y,S,x,r]);return an(E!=null,` is not able to match the URL "${m}${g}${y}" because it does not start with the basename, so the won't render anything.`),E==null?null:C.createElement(Pe.Provider,{value:p},C.createElement(Fr.Provider,{children:n,value:E}))}function hS({children:e,location:n}){return ZO(Yh(e),n)}function Yh(e,n=[]){let a=[];return C.Children.forEach(e,(r,l)=>{if(!C.isValidElement(r))return;let u=[...n,l];if(r.type===C.Fragment){a.push.apply(a,Yh(r.props.children,u));return}It(r.type===Ur,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),It(!r.props.index||!r.props.children,"An index route cannot have child routes.");let f={id:r.props.id||u.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(f.children=Yh(r.props.children,u)),a.push(f)}),a}var Ml="get",_l="application/x-www-form-urlencoded";function hu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function hM(e){return hu(e)&&e.tagName.toLowerCase()==="button"}function dM(e){return hu(e)&&e.tagName.toLowerCase()==="form"}function pM(e){return hu(e)&&e.tagName.toLowerCase()==="input"}function mM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gM(e,n){return e.button===0&&(!n||n==="_self")&&!mM(e)}var Sl=null;function yM(){if(Sl===null)try{new FormData(document.createElement("form"),0),Sl=!1}catch{Sl=!0}return Sl}var vM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function fh(e){return e!=null&&!vM.has(e)?(an(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${_l}"`),null):e}function bM(e,n){let a,r,l,u,f;if(dM(e)){let d=e.getAttribute("action");r=d?Kn(d,n):null,a=e.getAttribute("method")||Ml,l=fh(e.getAttribute("enctype"))||_l,u=new FormData(e)}else if(hM(e)||pM(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a