function Bte(t,e){for(var n=0;ni[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();var wy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ks(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var hA={exports:{}},_g={};var I4;function Hte(){if(I4)return _g;I4=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,r,a){var s=null;if(a!==void 0&&(s=""+a),r.key!==void 0&&(s=""+r.key),"key"in r){a={};for(var o in r)o!=="key"&&(a[o]=r[o])}else a=r;return r=a.ref,{$$typeof:t,type:i,key:s,ref:r!==void 0?r:null,props:a}}return _g.Fragment=e,_g.jsx=n,_g.jsxs=n,_g}var U4;function Vte(){return U4||(U4=1,hA.exports=Hte()),hA.exports}var g=Vte(),pA={exports:{}},Xt={};var j4;function $te(){if(j4)return Xt;j4=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),p=Symbol.iterator;function m(V){return V===null||typeof V!="object"?null:(V=p&&V[p]||V["@@iterator"],typeof V=="function"?V:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function x(V,X,ae){this.props=V,this.context=X,this.refs=v,this.updater=ae||y}x.prototype.isReactComponent={},x.prototype.setState=function(V,X){if(typeof V!="object"&&typeof V!="function"&&V!=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,V,X,"setState")},x.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function M(){}M.prototype=x.prototype;function w(V,X,ae){this.props=V,this.context=X,this.refs=v,this.updater=ae||y}var T=w.prototype=new M;T.constructor=w,_(T,x.prototype),T.isPureReactComponent=!0;var N=Array.isArray;function A(){}var R={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function C(V,X,ae){var ue=ae.ref;return{$$typeof:t,type:V,key:X,ref:ue!==void 0?ue:null,props:ae}}function D(V,X){return C(V.type,X,V.props)}function F(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function I(V){var X={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(ae){return X[ae]})}var H=/\/+/g;function O(V,X){return typeof V=="object"&&V!==null&&V.key!=null?I(""+V.key):X.toString(36)}function B(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status=="string"?V.then(A,A):(V.status="pending",V.then(function(X){V.status==="pending"&&(V.status="fulfilled",V.value=X)},function(X){V.status==="pending"&&(V.status="rejected",V.reason=X)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function $(V,X,ae,ue,me){var ie=typeof V;(ie==="undefined"||ie==="boolean")&&(V=null);var ve=!1;if(V===null)ve=!0;else switch(ie){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(V.$$typeof){case t:case e:ve=!0;break;case d:return ve=V._init,$(ve(V._payload),X,ae,ue,me)}}if(ve)return me=me(V),ve=ue===""?"."+O(V,0):ue,N(me)?(ae="",ve!=null&&(ae=ve.replace(H,"$&/")+"/"),$(me,X,ae,"",function(we){return we})):me!=null&&(F(me)&&(me=D(me,ae+(me.key==null||V&&V.key===me.key?"":(""+me.key).replace(H,"$&/")+"/")+ve)),X.push(me)),1;ve=0;var Pe=ue===""?".":ue+":";if(N(V))for(var he=0;he>>1,se=$[Y];if(0>>1;Yr(ae,K))uer(me,ae)?($[Y]=me,$[ue]=K,Y=ue):($[Y]=ae,$[X]=K,Y=X);else if(uer(me,K))$[Y]=me,$[ue]=K,Y=ue;else break e}}return G}function r($,G){var K=$.sortIndex-G.sortIndex;return K!==0?K:$.id-G.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();t.unstable_now=function(){return s.now()-o}}var l=[],c=[],d=1,f=null,p=3,m=!1,y=!1,_=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function T($){for(var G=n(c);G!==null;){if(G.callback===null)i(c);else if(G.startTime<=$)i(c),G.sortIndex=G.expirationTime,e(l,G);else break;G=n(c)}}function N($){if(_=!1,T($),!y)if(n(l)!==null)y=!0,A||(A=!0,I());else{var G=n(c);G!==null&&B(N,G.startTime-$)}}var A=!1,R=-1,U=5,C=-1;function D(){return v?!0:!(t.unstable_now()-C$&&D());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,p=f.priorityLevel;var se=Y(f.expirationTime<=$);if($=t.unstable_now(),typeof se=="function"){f.callback=se,T($),G=!0;break t}f===n(l)&&i(l),T($)}else i(l);f=n(l)}if(f!==null)G=!0;else{var V=n(c);V!==null&&B(N,V.startTime-$),G=!1}}break e}finally{f=null,p=K,m=!1}G=void 0}}finally{G?I():A=!1}}}var I;if(typeof w=="function")I=function(){w(F)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,O=H.port2;H.port1.onmessage=F,I=function(){O.postMessage(null)}}else I=function(){x(F,0)};function B($,G){R=x(function(){$(t.unstable_now())},G)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function($){$.callback=null},t.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<$?Math.floor(1e3/$):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function($){switch(p){case 1:case 2:case 3:var G=3;break;default:G=p}var K=p;p=G;try{return $()}finally{p=K}},t.unstable_requestPaint=function(){v=!0},t.unstable_runWithPriority=function($,G){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var K=p;p=$;try{return G()}finally{p=K}},t.unstable_scheduleCallback=function($,G,K){var Y=t.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0Y?($.sortIndex=K,e(c,$),n(l)===null&&$===n(c)&&(_?(M(R),R=-1):_=!0,B(N,K-Y))):($.sortIndex=se,e(l,$),y||m||(y=!0,A||(A=!0,I()))),$},t.unstable_shouldYield=D,t.unstable_wrapCallback=function($){var G=p;return function(){var K=p;p=G;try{return $.apply(this,arguments)}finally{p=K}}}})(xA)),xA}var B4;function qte(){return B4||(B4=1,gA.exports=Wte()),gA.exports}var vA={exports:{}},Wr={};var H4;function Xte(){if(H4)return Wr;H4=1;var t=lm();function e(l){var c="https://react.dev/errors/"+l;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),vA.exports=Xte(),vA.exports}var $4;function Kte(){if($4)return Sg;$4=1;var t=qte(),e=lm(),n=J$();function i(u){var h="https://react.dev/errors/"+u;if(1se||(u.current=Y[se],Y[se]=null,se--)}function ae(u,h){se++,Y[se]=u.current,u.current=h}var ue=V(null),me=V(null),ie=V(null),ve=V(null);function Pe(u,h){switch(ae(ie,h),ae(me,u),ae(ue,null),h.nodeType){case 9:case 11:u=(u=h.documentElement)&&(u=u.namespaceURI)?a4(u):0;break;default:if(u=h.tagName,h=h.namespaceURI)h=a4(h),u=s4(h,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}X(ue),ae(ue,u)}function he(){X(ue),X(me),X(ie)}function we(u){u.memoizedState!==null&&ae(ve,u);var h=ue.current,b=s4(h,u.type);h!==b&&(ae(me,u),ae(ue,b))}function je(u){me.current===u&&(X(ue),X(me)),ve.current===u&&(X(ve),xg._currentValue=K)}var le,ut;function z(u){if(le===void 0)try{throw Error()}catch(b){var h=b.stack.trim().match(/\n( *(at )?)/);le=h&&h[1]||"",ut=-1)":-1P||_e[S]!==ze[P]){var Je=` `+_e[S].replace(" at new "," at ");return u.displayName&&Je.includes("")&&(Je=Je.replace("",u.displayName)),Je}while(1<=S&&0<=P);break}}}finally{q=!1,Error.prepareStackTrace=b}return(b=u?u.displayName||u.name:"")?z(b):""}function J(u,h){switch(u.tag){case 26:case 27:case 5:return z(u.type);case 16:return z("Lazy");case 13:return u.child!==h&&h!==null?z("Suspense Fallback"):z("Suspense");case 19:return z("SuspenseList");case 0:case 15:return re(u.type,!1);case 11:return re(u.type.render,!1);case 1:return re(u.type,!0);case 31:return z("Activity");default:return""}}function ee(u){try{var h="",b=null;do h+=J(u,b),b=u,u=u.return;while(u);return h}catch(S){return` Error generating stack: `+S.message+` `+S.stack}}var oe=Object.prototype.hasOwnProperty,De=t.unstable_scheduleCallback,Ne=t.unstable_cancelCallback,te=t.unstable_shouldYield,j=t.unstable_requestPaint,L=t.unstable_now,Z=t.unstable_getCurrentPriorityLevel,ge=t.unstable_ImmediatePriority,ye=t.unstable_UserBlockingPriority,pe=t.unstable_NormalPriority,Ye=t.unstable_LowPriority,Le=t.unstable_IdlePriority,qe=t.log,at=t.unstable_setDisableYieldValue,Ie=null,Re=null;function pt(u){if(typeof qe=="function"&&at(u),Re&&typeof Re.setStrictMode=="function")try{Re.setStrictMode(Ie,u)}catch{}}var nt=Math.clz32?Math.clz32:de,et=Math.log,ct=Math.LN2;function de(u){return u>>>=0,u===0?32:31-(et(u)/ct|0)|0}var it=256,fe=262144,Oe=4194304;function Me(u){var h=u&42;if(h!==0)return h;switch(u&-u){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 u&261888;case 262144:case 524288:case 1048576:case 2097152:return u&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function xe(u,h,b){var S=u.pendingLanes;if(S===0)return 0;var P=0,k=u.suspendedLanes,W=u.pingedLanes;u=u.warmLanes;var ne=S&134217727;return ne!==0?(S=ne&~k,S!==0?P=Me(S):(W&=ne,W!==0?P=Me(W):b||(b=ne&~u,b!==0&&(P=Me(b))))):(ne=S&~k,ne!==0?P=Me(ne):W!==0?P=Me(W):b||(b=S&~u,b!==0&&(P=Me(b)))),P===0?0:h!==0&&h!==P&&(h&k)===0&&(k=P&-P,b=h&-h,k>=b||k===32&&(b&4194048)!==0)?h:P}function Be(u,h){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&h)===0}function lt(u,h){switch(u){case 1:case 2:case 4:case 8:case 64:return h+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 h+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 bt(){var u=Oe;return Oe<<=1,(Oe&62914560)===0&&(Oe=4194304),u}function Nt(u){for(var h=[],b=0;31>b;b++)h.push(u);return h}function on(u,h){u.pendingLanes|=h,h!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function Dt(u,h,b,S,P,k){var W=u.pendingLanes;u.pendingLanes=b,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=b,u.entangledLanes&=b,u.errorRecoveryDisabledLanes&=b,u.shellSuspendCounter=0;var ne=u.entanglements,_e=u.expirationTimes,ze=u.hiddenUpdates;for(b=W&~b;0"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var Ti=/[\n"\\]/g;function Nn(u){return u.replace(Ti,function(h){return"\\"+h.charCodeAt(0).toString(16)+" "})}function Qs(u,h,b,S,P,k,W,ne){u.name="",W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"?u.type=W:u.removeAttribute("type"),h!=null?W==="number"?(h===0&&u.value===""||u.value!=h)&&(u.value=""+cn(h)):u.value!==""+cn(h)&&(u.value=""+cn(h)):W!=="submit"&&W!=="reset"||u.removeAttribute("value"),h!=null?mr(u,W,cn(h)):b!=null?mr(u,W,cn(b)):S!=null&&u.removeAttribute("value"),P==null&&k!=null&&(u.defaultChecked=!!k),P!=null&&(u.checked=P&&typeof P!="function"&&typeof P!="symbol"),ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"?u.name=""+cn(ne):u.removeAttribute("name")}function Pn(u,h,b,S,P,k,W,ne){if(k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(u.type=k),h!=null||b!=null){if(!(k!=="submit"&&k!=="reset"||h!=null)){qt(u);return}b=b!=null?""+cn(b):"",h=h!=null?""+cn(h):b,ne||h===u.value||(u.value=h),u.defaultValue=h}S=S??P,S=typeof S!="function"&&typeof S!="symbol"&&!!S,u.checked=ne?u.checked:!!S,u.defaultChecked=!!S,W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"&&(u.name=W),qt(u)}function mr(u,h,b){h==="number"&&yi(u.ownerDocument)===u||u.defaultValue===""+b||(u.defaultValue=""+b)}function Qi(u,h,b,S){if(u=u.options,h){h={};for(var P=0;P"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hM=!1;if(cl)try{var Lm={};Object.defineProperty(Lm,"passive",{get:function(){hM=!0}}),window.addEventListener("test",Lm,Lm),window.removeEventListener("test",Lm,Lm)}catch{hM=!1}var Dc=null,pM=null,mv=null;function sL(){if(mv)return mv;var u,h=pM,b=h.length,S,P="value"in Dc?Dc.value:Dc.textContent,k=P.length;for(u=0;u=jm),fL=" ",hL=!1;function pL(u,h){switch(u){case"keyup":return cee.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mL(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Xf=!1;function dee(u,h){switch(u){case"compositionend":return mL(h);case"keypress":return h.which!==32?null:(hL=!0,fL);case"textInput":return u=h.data,u===fL&&hL?null:u;default:return null}}function fee(u,h){if(Xf)return u==="compositionend"||!yM&&pL(u,h)?(u=sL(),mv=pM=Dc=null,Xf=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1=h)return{node:b,offset:h-u};u=S}e:{for(;b;){if(b.nextSibling){b=b.nextSibling;break e}b=b.parentNode}b=void 0}b=wL(b)}}function EL(u,h){return u&&h?u===h?!0:u&&u.nodeType===3?!1:h&&h.nodeType===3?EL(u,h.parentNode):"contains"in u?u.contains(h):u.compareDocumentPosition?!!(u.compareDocumentPosition(h)&16):!1:!1}function AL(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var h=yi(u.document);h instanceof u.HTMLIFrameElement;){try{var b=typeof h.contentWindow.location.href=="string"}catch{b=!1}if(b)u=h.contentWindow;else break;h=yi(u.document)}return h}function SM(u){var h=u&&u.nodeName&&u.nodeName.toLowerCase();return h&&(h==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||h==="textarea"||u.contentEditable==="true")}var bee=cl&&"documentMode"in document&&11>=document.documentMode,Kf=null,wM=null,Hm=null,MM=!1;function TL(u,h,b){var S=b.window===b?b.document:b.nodeType===9?b:b.ownerDocument;MM||Kf==null||Kf!==yi(S)||(S=Kf,"selectionStart"in S&&SM(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),Hm&&Bm(Hm,S)||(Hm=S,S=ly(wM,"onSelect"),0>=W,P-=W,Co=1<<32-nt(h)+P|b<Jt?(xn=Pt,Pt=null):xn=Pt.sibling;var wn=Ve(ke,Pt,Fe[Jt],rt);if(wn===null){Pt===null&&(Pt=xn);break}u&&Pt&&wn.alternate===null&&h(ke,Pt),Ee=k(wn,Ee,Jt),Sn===null?It=wn:Sn.sibling=wn,Sn=wn,Pt=xn}if(Jt===Fe.length)return b(ke,Pt),yn&&dl(ke,Jt),It;if(Pt===null){for(;JtJt?(xn=Pt,Pt=null):xn=Pt.sibling;var eu=Ve(ke,Pt,wn.value,rt);if(eu===null){Pt===null&&(Pt=xn);break}u&&Pt&&eu.alternate===null&&h(ke,Pt),Ee=k(eu,Ee,Jt),Sn===null?It=eu:Sn.sibling=eu,Sn=eu,Pt=xn}if(wn.done)return b(ke,Pt),yn&&dl(ke,Jt),It;if(Pt===null){for(;!wn.done;Jt++,wn=Fe.next())wn=ot(ke,wn.value,rt),wn!==null&&(Ee=k(wn,Ee,Jt),Sn===null?It=wn:Sn.sibling=wn,Sn=wn);return yn&&dl(ke,Jt),It}for(Pt=S(Pt);!wn.done;Jt++,wn=Fe.next())wn=Ke(Pt,ke,Jt,wn.value,rt),wn!==null&&(u&&wn.alternate!==null&&Pt.delete(wn.key===null?Jt:wn.key),Ee=k(wn,Ee,Jt),Sn===null?It=wn:Sn.sibling=wn,Sn=wn);return u&&Pt.forEach(function(zte){return h(ke,zte)}),yn&&dl(ke,Jt),It}function jn(ke,Ee,Fe,rt){if(typeof Fe=="object"&&Fe!==null&&Fe.type===_&&Fe.key===null&&(Fe=Fe.props.children),typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case m:e:{for(var It=Fe.key;Ee!==null;){if(Ee.key===It){if(It=Fe.type,It===_){if(Ee.tag===7){b(ke,Ee.sibling),rt=P(Ee,Fe.props.children),rt.return=ke,ke=rt;break e}}else if(Ee.elementType===It||typeof It=="object"&&It!==null&&It.$$typeof===U&&bd(It)===Ee.type){b(ke,Ee.sibling),rt=P(Ee,Fe.props),Xm(rt,Fe),rt.return=ke,ke=rt;break e}b(ke,Ee);break}else h(ke,Ee);Ee=Ee.sibling}Fe.type===_?(rt=md(Fe.props.children,ke.mode,rt,Fe.key),rt.return=ke,ke=rt):(rt=Ev(Fe.type,Fe.key,Fe.props,null,ke.mode,rt),Xm(rt,Fe),rt.return=ke,ke=rt)}return W(ke);case y:e:{for(It=Fe.key;Ee!==null;){if(Ee.key===It)if(Ee.tag===4&&Ee.stateNode.containerInfo===Fe.containerInfo&&Ee.stateNode.implementation===Fe.implementation){b(ke,Ee.sibling),rt=P(Ee,Fe.children||[]),rt.return=ke,ke=rt;break e}else{b(ke,Ee);break}else h(ke,Ee);Ee=Ee.sibling}rt=PM(Fe,ke.mode,rt),rt.return=ke,ke=rt}return W(ke);case U:return Fe=bd(Fe),jn(ke,Ee,Fe,rt)}if(B(Fe))return Ct(ke,Ee,Fe,rt);if(I(Fe)){if(It=I(Fe),typeof It!="function")throw Error(i(150));return Fe=It.call(Fe),Bt(ke,Ee,Fe,rt)}if(typeof Fe.then=="function")return jn(ke,Ee,Dv(Fe),rt);if(Fe.$$typeof===w)return jn(ke,Ee,Cv(ke,Fe),rt);kv(ke,Fe)}return typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint"?(Fe=""+Fe,Ee!==null&&Ee.tag===6?(b(ke,Ee.sibling),rt=P(Ee,Fe),rt.return=ke,ke=rt):(b(ke,Ee),rt=RM(Fe,ke.mode,rt),rt.return=ke,ke=rt),W(ke)):b(ke,Ee)}return function(ke,Ee,Fe,rt){try{qm=0;var It=jn(ke,Ee,Fe,rt);return sh=null,It}catch(Pt){if(Pt===ah||Pt===Rv)throw Pt;var Sn=Wa(29,Pt,null,ke.mode);return Sn.lanes=rt,Sn.return=ke,Sn}finally{}}}var Sd=YL(!0),ZL=YL(!1),Uc=!1;function VM(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $M(u,h){u=u.updateQueue,h.updateQueue===u&&(h.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function jc(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function Fc(u,h,b){var S=u.updateQueue;if(S===null)return null;if(S=S.shared,(Tn&2)!==0){var P=S.pending;return P===null?h.next=h:(h.next=P.next,P.next=h),S.pending=h,h=Mv(u),OL(u,null,b),h}return wv(u,S,h,b),Mv(u)}function Km(u,h,b){if(h=h.updateQueue,h!==null&&(h=h.shared,(b&4194048)!==0)){var S=h.lanes;S&=u.pendingLanes,b|=S,h.lanes=b,Wn(u,b)}}function GM(u,h){var b=u.updateQueue,S=u.alternate;if(S!==null&&(S=S.updateQueue,b===S)){var P=null,k=null;if(b=b.firstBaseUpdate,b!==null){do{var W={lane:b.lane,tag:b.tag,payload:b.payload,callback:null,next:null};k===null?P=k=W:k=k.next=W,b=b.next}while(b!==null);k===null?P=k=h:k=k.next=h}else P=k=h;b={baseState:S.baseState,firstBaseUpdate:P,lastBaseUpdate:k,shared:S.shared,callbacks:S.callbacks},u.updateQueue=b;return}u=b.lastBaseUpdate,u===null?b.firstBaseUpdate=h:u.next=h,b.lastBaseUpdate=h}var WM=!1;function Ym(){if(WM){var u=rh;if(u!==null)throw u}}function Zm(u,h,b,S){WM=!1;var P=u.updateQueue;Uc=!1;var k=P.firstBaseUpdate,W=P.lastBaseUpdate,ne=P.shared.pending;if(ne!==null){P.shared.pending=null;var _e=ne,ze=_e.next;_e.next=null,W===null?k=ze:W.next=ze,W=_e;var Je=u.alternate;Je!==null&&(Je=Je.updateQueue,ne=Je.lastBaseUpdate,ne!==W&&(ne===null?Je.firstBaseUpdate=ze:ne.next=ze,Je.lastBaseUpdate=_e))}if(k!==null){var ot=P.baseState;W=0,Je=ze=_e=null,ne=k;do{var Ve=ne.lane&-536870913,Ke=Ve!==ne.lane;if(Ke?(gn&Ve)===Ve:(S&Ve)===Ve){Ve!==0&&Ve===ih&&(WM=!0),Je!==null&&(Je=Je.next={lane:0,tag:ne.tag,payload:ne.payload,callback:null,next:null});e:{var Ct=u,Bt=ne;Ve=h;var jn=b;switch(Bt.tag){case 1:if(Ct=Bt.payload,typeof Ct=="function"){ot=Ct.call(jn,ot,Ve);break e}ot=Ct;break e;case 3:Ct.flags=Ct.flags&-65537|128;case 0:if(Ct=Bt.payload,Ve=typeof Ct=="function"?Ct.call(jn,ot,Ve):Ct,Ve==null)break e;ot=f({},ot,Ve);break e;case 2:Uc=!0}}Ve=ne.callback,Ve!==null&&(u.flags|=64,Ke&&(u.flags|=8192),Ke=P.callbacks,Ke===null?P.callbacks=[Ve]:Ke.push(Ve))}else Ke={lane:Ve,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},Je===null?(ze=Je=Ke,_e=ot):Je=Je.next=Ke,W|=Ve;if(ne=ne.next,ne===null){if(ne=P.shared.pending,ne===null)break;Ke=ne,ne=Ke.next,Ke.next=null,P.lastBaseUpdate=Ke,P.shared.pending=null}}while(!0);Je===null&&(_e=ot),P.baseState=_e,P.firstBaseUpdate=ze,P.lastBaseUpdate=Je,k===null&&(P.shared.lanes=0),$c|=W,u.lanes=W,u.memoizedState=ot}}function QL(u,h){if(typeof u!="function")throw Error(i(191,u));u.call(h)}function JL(u,h){var b=u.callbacks;if(b!==null)for(u.callbacks=null,u=0;uk?k:8;var W=$.T,ne={};$.T=ne,dE(u,!1,h,b);try{var _e=P(),ze=$.S;if(ze!==null&&ze(ne,_e),_e!==null&&typeof _e=="object"&&typeof _e.then=="function"){var Je=Nee(_e,S);eg(u,h,Je,Za(u))}else eg(u,h,S,Za(u))}catch(ot){eg(u,h,{then:function(){},status:"rejected",reason:ot},Za())}finally{G.p=k,W!==null&&ne.types!==null&&(W.types=ne.types),$.T=W}}function Lee(){}function cE(u,h,b,S){if(u.tag!==5)throw Error(i(476));var P=PI(u).queue;RI(u,P,h,K,b===null?Lee:function(){return DI(u),b(S)})}function PI(u){var h=u.memoizedState;if(h!==null)return h;h={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ml,lastRenderedState:K},next:null};var b={};return h.next={memoizedState:b,baseState:b,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ml,lastRenderedState:b},next:null},u.memoizedState=h,u=u.alternate,u!==null&&(u.memoizedState=h),h}function DI(u){var h=PI(u);h.next===null&&(h=u.alternate.memoizedState),eg(u,h.next.queue,{},Za())}function uE(){return Dr(xg)}function kI(){return Ni().memoizedState}function OI(){return Ni().memoizedState}function Iee(u){for(var h=u.return;h!==null;){switch(h.tag){case 24:case 3:var b=Za();u=jc(b);var S=Fc(h,u,b);S!==null&&(Na(S,h,b),Km(S,h,b)),h={cache:FM()},u.payload=h;return}h=h.return}}function Uee(u,h,b){var S=Za();b={lane:S,revertLane:0,gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null},Vv(u)?II(h,b):(b=CM(u,h,b,S),b!==null&&(Na(b,u,S),UI(b,h,S)))}function LI(u,h,b){var S=Za();eg(u,h,b,S)}function eg(u,h,b,S){var P={lane:S,revertLane:0,gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null};if(Vv(u))II(h,P);else{var k=u.alternate;if(u.lanes===0&&(k===null||k.lanes===0)&&(k=h.lastRenderedReducer,k!==null))try{var W=h.lastRenderedState,ne=k(W,b);if(P.hasEagerState=!0,P.eagerState=ne,Ga(ne,W))return wv(u,h,P,0),qn===null&&Sv(),!1}catch{}finally{}if(b=CM(u,h,P,S),b!==null)return Na(b,u,S),UI(b,h,S),!0}return!1}function dE(u,h,b,S){if(S={lane:2,revertLane:VE(),gesture:null,action:S,hasEagerState:!1,eagerState:null,next:null},Vv(u)){if(h)throw Error(i(479))}else h=CM(u,b,S,2),h!==null&&Na(h,u,2)}function Vv(u){var h=u.alternate;return u===Zt||h!==null&&h===Zt}function II(u,h){lh=Iv=!0;var b=u.pending;b===null?h.next=h:(h.next=b.next,b.next=h),u.pending=h}function UI(u,h,b){if((b&4194048)!==0){var S=h.lanes;S&=u.pendingLanes,b|=S,h.lanes=b,Wn(u,b)}}var tg={readContext:Dr,use:Fv,useCallback:bi,useContext:bi,useEffect:bi,useImperativeHandle:bi,useLayoutEffect:bi,useInsertionEffect:bi,useMemo:bi,useReducer:bi,useRef:bi,useState:bi,useDebugValue:bi,useDeferredValue:bi,useTransition:bi,useSyncExternalStore:bi,useId:bi,useHostTransitionStatus:bi,useFormState:bi,useActionState:bi,useOptimistic:bi,useMemoCache:bi,useCacheRefresh:bi};tg.useEffectEvent=bi;var jI={readContext:Dr,use:Fv,useCallback:function(u,h){return oa().memoizedState=[u,h===void 0?null:h],u},useContext:Dr,useEffect:_I,useImperativeHandle:function(u,h,b){b=b!=null?b.concat([u]):null,Bv(4194308,4,EI.bind(null,h,u),b)},useLayoutEffect:function(u,h){return Bv(4194308,4,u,h)},useInsertionEffect:function(u,h){Bv(4,2,u,h)},useMemo:function(u,h){var b=oa();h=h===void 0?null:h;var S=u();if(wd){pt(!0);try{u()}finally{pt(!1)}}return b.memoizedState=[S,h],S},useReducer:function(u,h,b){var S=oa();if(b!==void 0){var P=b(h);if(wd){pt(!0);try{b(h)}finally{pt(!1)}}}else P=h;return S.memoizedState=S.baseState=P,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:P},S.queue=u,u=u.dispatch=Uee.bind(null,Zt,u),[S.memoizedState,u]},useRef:function(u){var h=oa();return u={current:u},h.memoizedState=u},useState:function(u){u=rE(u);var h=u.queue,b=LI.bind(null,Zt,h);return h.dispatch=b,[u.memoizedState,b]},useDebugValue:oE,useDeferredValue:function(u,h){var b=oa();return lE(b,u,h)},useTransition:function(){var u=rE(!1);return u=RI.bind(null,Zt,u.queue,!0,!1),oa().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,h,b){var S=Zt,P=oa();if(yn){if(b===void 0)throw Error(i(407));b=b()}else{if(b=h(),qn===null)throw Error(i(349));(gn&127)!==0||aI(S,h,b)}P.memoizedState=b;var k={value:b,getSnapshot:h};return P.queue=k,_I(oI.bind(null,S,k,u),[u]),S.flags|=2048,uh(9,{destroy:void 0},sI.bind(null,S,k,b,h),null),b},useId:function(){var u=oa(),h=qn.identifierPrefix;if(yn){var b=No,S=Co;b=(S&~(1<<32-nt(S)-1)).toString(32)+b,h="_"+h+"R_"+b,b=Uv++,0<\/script>",k=k.removeChild(k.firstChild);break;case"select":k=typeof S.is=="string"?W.createElement("select",{is:S.is}):W.createElement("select"),S.multiple?k.multiple=!0:S.size&&(k.size=S.size);break;default:k=typeof S.is=="string"?W.createElement(P,{is:S.is}):W.createElement(P)}}k[hi]=h,k[Ai]=S;e:for(W=h.child;W!==null;){if(W.tag===5||W.tag===6)k.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===h)break e;for(;W.sibling===null;){if(W.return===null||W.return===h)break e;W=W.return}W.sibling.return=W.return,W=W.sibling}h.stateNode=k;e:switch(Or(k,P,S),P){case"button":case"input":case"select":case"textarea":S=!!S.autoFocus;break e;case"img":S=!0;break e;default:S=!1}S&&xl(h)}}return ni(h),EE(h,h.type,u===null?null:u.memoizedProps,h.pendingProps,b),null;case 6:if(u&&h.stateNode!=null)u.memoizedProps!==S&&xl(h);else{if(typeof S!="string"&&h.stateNode===null)throw Error(i(166));if(u=ie.current,th(h)){if(u=h.stateNode,b=h.memoizedProps,S=null,P=Pr,P!==null)switch(P.tag){case 27:case 5:S=P.memoizedProps}u[hi]=h,u=!!(u.nodeValue===b||S!==null&&S.suppressHydrationWarning===!0||i4(u.nodeValue,b)),u||Lc(h,!0)}else u=cy(u).createTextNode(S),u[hi]=h,h.stateNode=u}return ni(h),null;case 31:if(b=h.memoizedState,u===null||u.memoizedState!==null){if(S=th(h),b!==null){if(u===null){if(!S)throw Error(i(318));if(u=h.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(557));u[hi]=h}else gd(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;ni(h),u=!1}else b=LM(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=b),u=!0;if(!u)return h.flags&256?(Xa(h),h):(Xa(h),null);if((h.flags&128)!==0)throw Error(i(558))}return ni(h),null;case 13:if(S=h.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(P=th(h),S!==null&&S.dehydrated!==null){if(u===null){if(!P)throw Error(i(318));if(P=h.memoizedState,P=P!==null?P.dehydrated:null,!P)throw Error(i(317));P[hi]=h}else gd(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;ni(h),P=!1}else P=LM(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=P),P=!0;if(!P)return h.flags&256?(Xa(h),h):(Xa(h),null)}return Xa(h),(h.flags&128)!==0?(h.lanes=b,h):(b=S!==null,u=u!==null&&u.memoizedState!==null,b&&(S=h.child,P=null,S.alternate!==null&&S.alternate.memoizedState!==null&&S.alternate.memoizedState.cachePool!==null&&(P=S.alternate.memoizedState.cachePool.pool),k=null,S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(k=S.memoizedState.cachePool.pool),k!==P&&(S.flags|=2048)),b!==u&&b&&(h.child.flags|=8192),Xv(h,h.updateQueue),ni(h),null);case 4:return he(),u===null&&qE(h.stateNode.containerInfo),ni(h),null;case 10:return hl(h.type),ni(h),null;case 19:if(X(Ci),S=h.memoizedState,S===null)return ni(h),null;if(P=(h.flags&128)!==0,k=S.rendering,k===null)if(P)ig(S,!1);else{if(_i!==0||u!==null&&(u.flags&128)!==0)for(u=h.child;u!==null;){if(k=Lv(u),k!==null){for(h.flags|=128,ig(S,!1),u=k.updateQueue,h.updateQueue=u,Xv(h,u),h.subtreeFlags=0,u=b,b=h.child;b!==null;)LL(b,u),b=b.sibling;return ae(Ci,Ci.current&1|2),yn&&dl(h,S.treeForkCount),h.child}u=u.sibling}S.tail!==null&&L()>Jv&&(h.flags|=128,P=!0,ig(S,!1),h.lanes=4194304)}else{if(!P)if(u=Lv(k),u!==null){if(h.flags|=128,P=!0,u=u.updateQueue,h.updateQueue=u,Xv(h,u),ig(S,!0),S.tail===null&&S.tailMode==="hidden"&&!k.alternate&&!yn)return ni(h),null}else 2*L()-S.renderingStartTime>Jv&&b!==536870912&&(h.flags|=128,P=!0,ig(S,!1),h.lanes=4194304);S.isBackwards?(k.sibling=h.child,h.child=k):(u=S.last,u!==null?u.sibling=k:h.child=k,S.last=k)}return S.tail!==null?(u=S.tail,S.rendering=u,S.tail=u.sibling,S.renderingStartTime=L(),u.sibling=null,b=Ci.current,ae(Ci,P?b&1|2:b&1),yn&&dl(h,S.treeForkCount),u):(ni(h),null);case 22:case 23:return Xa(h),XM(),S=h.memoizedState!==null,u!==null?u.memoizedState!==null!==S&&(h.flags|=8192):S&&(h.flags|=8192),S?(b&536870912)!==0&&(h.flags&128)===0&&(ni(h),h.subtreeFlags&6&&(h.flags|=8192)):ni(h),b=h.updateQueue,b!==null&&Xv(h,b.retryQueue),b=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(b=u.memoizedState.cachePool.pool),S=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(S=h.memoizedState.cachePool.pool),S!==b&&(h.flags|=2048),u!==null&&X(yd),null;case 24:return b=null,u!==null&&(b=u.memoizedState.cache),h.memoizedState.cache!==b&&(h.flags|=2048),hl(Ii),ni(h),null;case 25:return null;case 30:return null}throw Error(i(156,h.tag))}function Hee(u,h){switch(kM(h),h.tag){case 1:return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 3:return hl(Ii),he(),u=h.flags,(u&65536)!==0&&(u&128)===0?(h.flags=u&-65537|128,h):null;case 26:case 27:case 5:return je(h),null;case 31:if(h.memoizedState!==null){if(Xa(h),h.alternate===null)throw Error(i(340));gd()}return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 13:if(Xa(h),u=h.memoizedState,u!==null&&u.dehydrated!==null){if(h.alternate===null)throw Error(i(340));gd()}return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 19:return X(Ci),null;case 4:return he(),null;case 10:return hl(h.type),null;case 22:case 23:return Xa(h),XM(),u!==null&&X(yd),u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 24:return hl(Ii),null;case 25:return null;default:return null}}function lU(u,h){switch(kM(h),h.tag){case 3:hl(Ii),he();break;case 26:case 27:case 5:je(h);break;case 4:he();break;case 31:h.memoizedState!==null&&Xa(h);break;case 13:Xa(h);break;case 19:X(Ci);break;case 10:hl(h.type);break;case 22:case 23:Xa(h),XM(),u!==null&&X(yd);break;case 24:hl(Ii)}}function rg(u,h){try{var b=h.updateQueue,S=b!==null?b.lastEffect:null;if(S!==null){var P=S.next;b=P;do{if((b.tag&u)===u){S=void 0;var k=b.create,W=b.inst;S=k(),W.destroy=S}b=b.next}while(b!==P)}}catch(ne){kn(h,h.return,ne)}}function Hc(u,h,b){try{var S=h.updateQueue,P=S!==null?S.lastEffect:null;if(P!==null){var k=P.next;S=k;do{if((S.tag&u)===u){var W=S.inst,ne=W.destroy;if(ne!==void 0){W.destroy=void 0,P=h;var _e=b,ze=ne;try{ze()}catch(Je){kn(P,_e,Je)}}}S=S.next}while(S!==k)}}catch(Je){kn(h,h.return,Je)}}function cU(u){var h=u.updateQueue;if(h!==null){var b=u.stateNode;try{JL(h,b)}catch(S){kn(u,u.return,S)}}}function uU(u,h,b){b.props=Md(u.type,u.memoizedProps),b.state=u.memoizedState;try{b.componentWillUnmount()}catch(S){kn(u,h,S)}}function ag(u,h){try{var b=u.ref;if(b!==null){switch(u.tag){case 26:case 27:case 5:var S=u.stateNode;break;case 30:S=u.stateNode;break;default:S=u.stateNode}typeof b=="function"?u.refCleanup=b(S):b.current=S}}catch(P){kn(u,h,P)}}function Ro(u,h){var b=u.ref,S=u.refCleanup;if(b!==null)if(typeof S=="function")try{S()}catch(P){kn(u,h,P)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof b=="function")try{b(null)}catch(P){kn(u,h,P)}else b.current=null}function dU(u){var h=u.type,b=u.memoizedProps,S=u.stateNode;try{e:switch(h){case"button":case"input":case"select":case"textarea":b.autoFocus&&S.focus();break e;case"img":b.src?S.src=b.src:b.srcSet&&(S.srcset=b.srcSet)}}catch(P){kn(u,u.return,P)}}function AE(u,h,b){try{var S=u.stateNode;ute(S,u.type,b,h),S[Ai]=h}catch(P){kn(u,u.return,P)}}function fU(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27&&Kc(u.type)||u.tag===4}function TE(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||fU(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.tag===27&&Kc(u.type)||u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function CE(u,h,b){var S=u.tag;if(S===5||S===6)u=u.stateNode,h?(b.nodeType===9?b.body:b.nodeName==="HTML"?b.ownerDocument.body:b).insertBefore(u,h):(h=b.nodeType===9?b.body:b.nodeName==="HTML"?b.ownerDocument.body:b,h.appendChild(u),b=b._reactRootContainer,b!=null||h.onclick!==null||(h.onclick=ll));else if(S!==4&&(S===27&&Kc(u.type)&&(b=u.stateNode,h=null),u=u.child,u!==null))for(CE(u,h,b),u=u.sibling;u!==null;)CE(u,h,b),u=u.sibling}function Kv(u,h,b){var S=u.tag;if(S===5||S===6)u=u.stateNode,h?b.insertBefore(u,h):b.appendChild(u);else if(S!==4&&(S===27&&Kc(u.type)&&(b=u.stateNode),u=u.child,u!==null))for(Kv(u,h,b),u=u.sibling;u!==null;)Kv(u,h,b),u=u.sibling}function hU(u){var h=u.stateNode,b=u.memoizedProps;try{for(var S=u.type,P=h.attributes;P.length;)h.removeAttributeNode(P[0]);Or(h,S,b),h[hi]=u,h[Ai]=b}catch(k){kn(u,u.return,k)}}var vl=!1,Fi=!1,NE=!1,pU=typeof WeakSet=="function"?WeakSet:Set,xr=null;function Vee(u,h){if(u=u.containerInfo,YE=gy,u=AL(u),SM(u)){if("selectionStart"in u)var b={start:u.selectionStart,end:u.selectionEnd};else e:{b=(b=u.ownerDocument)&&b.defaultView||window;var S=b.getSelection&&b.getSelection();if(S&&S.rangeCount!==0){b=S.anchorNode;var P=S.anchorOffset,k=S.focusNode;S=S.focusOffset;try{b.nodeType,k.nodeType}catch{b=null;break e}var W=0,ne=-1,_e=-1,ze=0,Je=0,ot=u,Ve=null;t:for(;;){for(var Ke;ot!==b||P!==0&&ot.nodeType!==3||(ne=W+P),ot!==k||S!==0&&ot.nodeType!==3||(_e=W+S),ot.nodeType===3&&(W+=ot.nodeValue.length),(Ke=ot.firstChild)!==null;)Ve=ot,ot=Ke;for(;;){if(ot===u)break t;if(Ve===b&&++ze===P&&(ne=W),Ve===k&&++Je===S&&(_e=W),(Ke=ot.nextSibling)!==null)break;ot=Ve,Ve=ot.parentNode}ot=Ke}b=ne===-1||_e===-1?null:{start:ne,end:_e}}else b=null}b=b||{start:0,end:0}}else b=null;for(ZE={focusedElem:u,selectionRange:b},gy=!1,xr=h;xr!==null;)if(h=xr,u=h.child,(h.subtreeFlags&1028)!==0&&u!==null)u.return=h,xr=u;else for(;xr!==null;){switch(h=xr,k=h.alternate,u=h.flags,h.tag){case 0:if((u&4)!==0&&(u=h.updateQueue,u=u!==null?u.events:null,u!==null))for(b=0;b title"))),Or(k,S,b),k[hi]=u,Te(k),S=k;break e;case"link":var W=b4("link","href",P).get(S+(b.href||""));if(W){for(var ne=0;nejn&&(W=jn,jn=Bt,Bt=W);var ke=ML(ne,Bt),Ee=ML(ne,jn);if(ke&&Ee&&(Ke.rangeCount!==1||Ke.anchorNode!==ke.node||Ke.anchorOffset!==ke.offset||Ke.focusNode!==Ee.node||Ke.focusOffset!==Ee.offset)){var Fe=ot.createRange();Fe.setStart(ke.node,ke.offset),Ke.removeAllRanges(),Bt>jn?(Ke.addRange(Fe),Ke.extend(Ee.node,Ee.offset)):(Fe.setEnd(Ee.node,Ee.offset),Ke.addRange(Fe))}}}}for(ot=[],Ke=ne;Ke=Ke.parentNode;)Ke.nodeType===1&&ot.push({element:Ke,left:Ke.scrollLeft,top:Ke.scrollTop});for(typeof ne.focus=="function"&&ne.focus(),ne=0;neb?32:b,$.T=null,b=IE,IE=null;var k=Wc,W=wl;if(Ji=0,mh=Wc=null,wl=0,(Tn&6)!==0)throw Error(i(331));var ne=Tn;if(Tn|=4,EU(k.current),SU(k,k.current,W,b),Tn=ne,dg(0,!1),Re&&typeof Re.onPostCommitFiberRoot=="function")try{Re.onPostCommitFiberRoot(Ie,k)}catch{}return!0}finally{G.p=P,$.T=S,VU(u,h)}}function GU(u,h,b){h=gs(b,h),h=mE(u.stateNode,h,2),u=Fc(u,h,2),u!==null&&(on(u,2),Po(u))}function kn(u,h,b){if(u.tag===3)GU(u,u,b);else for(;h!==null;){if(h.tag===3){GU(h,u,b);break}else if(h.tag===1){var S=h.stateNode;if(typeof h.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(Gc===null||!Gc.has(S))){u=gs(b,u),b=WI(2),S=Fc(h,b,2),S!==null&&(qI(b,S,h,u),on(S,2),Po(S));break}}h=h.return}}function zE(u,h,b){var S=u.pingCache;if(S===null){S=u.pingCache=new Wee;var P=new Set;S.set(h,P)}else P=S.get(h),P===void 0&&(P=new Set,S.set(h,P));P.has(b)||(DE=!0,P.add(b),u=Zee.bind(null,u,h,b),h.then(u,u))}function Zee(u,h,b){var S=u.pingCache;S!==null&&S.delete(h),u.pingedLanes|=u.suspendedLanes&b,u.warmLanes&=~b,qn===u&&(gn&b)===b&&(_i===4||_i===3&&(gn&62914560)===gn&&300>L()-Qv?(Tn&2)===0&&gh(u,0):kE|=b,ph===gn&&(ph=0)),Po(u)}function WU(u,h){h===0&&(h=bt()),u=pd(u,h),u!==null&&(on(u,h),Po(u))}function Qee(u){var h=u.memoizedState,b=0;h!==null&&(b=h.retryLane),WU(u,b)}function Jee(u,h){var b=0;switch(u.tag){case 31:case 13:var S=u.stateNode,P=u.memoizedState;P!==null&&(b=P.retryLane);break;case 19:S=u.stateNode;break;case 22:S=u.stateNode._retryCache;break;default:throw Error(i(314))}S!==null&&S.delete(h),WU(u,b)}function ete(u,h){return De(u,h)}var ay=null,vh=null,BE=!1,sy=!1,HE=!1,Xc=0;function Po(u){u!==vh&&u.next===null&&(vh===null?ay=vh=u:vh=vh.next=u),sy=!0,BE||(BE=!0,nte())}function dg(u,h){if(!HE&&sy){HE=!0;do for(var b=!1,S=ay;S!==null;){if(u!==0){var P=S.pendingLanes;if(P===0)var k=0;else{var W=S.suspendedLanes,ne=S.pingedLanes;k=(1<<31-nt(42|u)+1)-1,k&=P&~(W&~ne),k=k&201326741?k&201326741|1:k?k|2:0}k!==0&&(b=!0,YU(S,k))}else k=gn,k=xe(S,S===qn?k:0,S.cancelPendingCommit!==null||S.timeoutHandle!==-1),(k&3)===0||Be(S,k)||(b=!0,YU(S,k));S=S.next}while(b);HE=!1}}function tte(){qU()}function qU(){sy=BE=!1;var u=0;Xc!==0&&fte()&&(u=Xc);for(var h=L(),b=null,S=ay;S!==null;){var P=S.next,k=XU(S,h);k===0?(S.next=null,b===null?ay=P:b.next=P,P===null&&(vh=b)):(b=S,(u!==0||(k&3)!==0)&&(sy=!0)),S=P}Ji!==0&&Ji!==5||dg(u),Xc!==0&&(Xc=0)}function XU(u,h){for(var b=u.suspendedLanes,S=u.pingedLanes,P=u.expirationTimes,k=u.pendingLanes&-62914561;0ne)break;var Je=_e.transferSize,ot=_e.initiatorType;Je&&r4(ot)&&(_e=_e.responseEnd,W+=Je*(_e"u"?null:document;function g4(u,h,b){var S=yh;if(S&&typeof h=="string"&&h){var P=Nn(h);P='link[rel="'+u+'"][href="'+P+'"]',typeof b=="string"&&(P+='[crossorigin="'+b+'"]'),m4.has(P)||(m4.add(P),u={rel:u,crossOrigin:b,href:h},S.querySelector(P)===null&&(h=S.createElement("link"),Or(h,"link",u),Te(h),S.head.appendChild(h)))}}function _te(u){Ml.D(u),g4("dns-prefetch",u,null)}function Ste(u,h){Ml.C(u,h),g4("preconnect",u,h)}function wte(u,h,b){Ml.L(u,h,b);var S=yh;if(S&&u&&h){var P='link[rel="preload"][as="'+Nn(h)+'"]';h==="image"&&b&&b.imageSrcSet?(P+='[imagesrcset="'+Nn(b.imageSrcSet)+'"]',typeof b.imageSizes=="string"&&(P+='[imagesizes="'+Nn(b.imageSizes)+'"]')):P+='[href="'+Nn(u)+'"]';var k=P;switch(h){case"style":k=bh(u);break;case"script":k=_h(u)}Ss.has(k)||(u=f({rel:"preload",href:h==="image"&&b&&b.imageSrcSet?void 0:u,as:h},b),Ss.set(k,u),S.querySelector(P)!==null||h==="style"&&S.querySelector(mg(k))||h==="script"&&S.querySelector(gg(k))||(h=S.createElement("link"),Or(h,"link",u),Te(h),S.head.appendChild(h)))}}function Mte(u,h){Ml.m(u,h);var b=yh;if(b&&u){var S=h&&typeof h.as=="string"?h.as:"script",P='link[rel="modulepreload"][as="'+Nn(S)+'"][href="'+Nn(u)+'"]',k=P;switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":k=_h(u)}if(!Ss.has(k)&&(u=f({rel:"modulepreload",href:u},h),Ss.set(k,u),b.querySelector(P)===null)){switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(b.querySelector(gg(k)))return}S=b.createElement("link"),Or(S,"link",u),Te(S),b.head.appendChild(S)}}}function Ete(u,h,b){Ml.S(u,h,b);var S=yh;if(S&&u){var P=Ce(S).hoistableStyles,k=bh(u);h=h||"default";var W=P.get(k);if(!W){var ne={loading:0,preload:null};if(W=S.querySelector(mg(k)))ne.loading=5;else{u=f({rel:"stylesheet",href:u,"data-precedence":h},b),(b=Ss.get(k))&&rA(u,b);var _e=W=S.createElement("link");Te(_e),Or(_e,"link",u),_e._p=new Promise(function(ze,Je){_e.onload=ze,_e.onerror=Je}),_e.addEventListener("load",function(){ne.loading|=1}),_e.addEventListener("error",function(){ne.loading|=2}),ne.loading|=4,dy(W,h,S)}W={type:"stylesheet",instance:W,count:1,state:ne},P.set(k,W)}}}function Ate(u,h){Ml.X(u,h);var b=yh;if(b&&u){var S=Ce(b).hoistableScripts,P=_h(u),k=S.get(P);k||(k=b.querySelector(gg(P)),k||(u=f({src:u,async:!0},h),(h=Ss.get(P))&&aA(u,h),k=b.createElement("script"),Te(k),Or(k,"link",u),b.head.appendChild(k)),k={type:"script",instance:k,count:1,state:null},S.set(P,k))}}function Tte(u,h){Ml.M(u,h);var b=yh;if(b&&u){var S=Ce(b).hoistableScripts,P=_h(u),k=S.get(P);k||(k=b.querySelector(gg(P)),k||(u=f({src:u,async:!0,type:"module"},h),(h=Ss.get(P))&&aA(u,h),k=b.createElement("script"),Te(k),Or(k,"link",u),b.head.appendChild(k)),k={type:"script",instance:k,count:1,state:null},S.set(P,k))}}function x4(u,h,b,S){var P=(P=ie.current)?uy(P):null;if(!P)throw Error(i(446));switch(u){case"meta":case"title":return null;case"style":return typeof b.precedence=="string"&&typeof b.href=="string"?(h=bh(b.href),b=Ce(P).hoistableStyles,S=b.get(h),S||(S={type:"style",instance:null,count:0,state:null},b.set(h,S)),S):{type:"void",instance:null,count:0,state:null};case"link":if(b.rel==="stylesheet"&&typeof b.href=="string"&&typeof b.precedence=="string"){u=bh(b.href);var k=Ce(P).hoistableStyles,W=k.get(u);if(W||(P=P.ownerDocument||P,W={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},k.set(u,W),(k=P.querySelector(mg(u)))&&!k._p&&(W.instance=k,W.state.loading=5),Ss.has(u)||(b={rel:"preload",as:"style",href:b.href,crossOrigin:b.crossOrigin,integrity:b.integrity,media:b.media,hrefLang:b.hrefLang,referrerPolicy:b.referrerPolicy},Ss.set(u,b),k||Cte(P,u,b,W.state))),h&&S===null)throw Error(i(528,""));return W}if(h&&S!==null)throw Error(i(529,""));return null;case"script":return h=b.async,b=b.src,typeof b=="string"&&h&&typeof h!="function"&&typeof h!="symbol"?(h=_h(b),b=Ce(P).hoistableScripts,S=b.get(h),S||(S={type:"script",instance:null,count:0,state:null},b.set(h,S)),S):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,u))}}function bh(u){return'href="'+Nn(u)+'"'}function mg(u){return'link[rel="stylesheet"]['+u+"]"}function v4(u){return f({},u,{"data-precedence":u.precedence,precedence:null})}function Cte(u,h,b,S){u.querySelector('link[rel="preload"][as="style"]['+h+"]")?S.loading=1:(h=u.createElement("link"),S.preload=h,h.addEventListener("load",function(){return S.loading|=1}),h.addEventListener("error",function(){return S.loading|=2}),Or(h,"link",b),Te(h),u.head.appendChild(h))}function _h(u){return'[src="'+Nn(u)+'"]'}function gg(u){return"script[async]"+u}function y4(u,h,b){if(h.count++,h.instance===null)switch(h.type){case"style":var S=u.querySelector('style[data-href~="'+Nn(b.href)+'"]');if(S)return h.instance=S,Te(S),S;var P=f({},b,{"data-href":b.href,"data-precedence":b.precedence,href:null,precedence:null});return S=(u.ownerDocument||u).createElement("style"),Te(S),Or(S,"style",P),dy(S,b.precedence,u),h.instance=S;case"stylesheet":P=bh(b.href);var k=u.querySelector(mg(P));if(k)return h.state.loading|=4,h.instance=k,Te(k),k;S=v4(b),(P=Ss.get(P))&&rA(S,P),k=(u.ownerDocument||u).createElement("link"),Te(k);var W=k;return W._p=new Promise(function(ne,_e){W.onload=ne,W.onerror=_e}),Or(k,"link",S),h.state.loading|=4,dy(k,b.precedence,u),h.instance=k;case"script":return k=_h(b.src),(P=u.querySelector(gg(k)))?(h.instance=P,Te(P),P):(S=b,(P=Ss.get(k))&&(S=f({},b),aA(S,P)),u=u.ownerDocument||u,P=u.createElement("script"),Te(P),Or(P,"link",S),u.head.appendChild(P),h.instance=P);case"void":return null;default:throw Error(i(443,h.type))}else h.type==="stylesheet"&&(h.state.loading&4)===0&&(S=h.instance,h.state.loading|=4,dy(S,b.precedence,u));return h.instance}function dy(u,h,b){for(var S=b.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),P=S.length?S[S.length-1]:null,k=P,W=0;W title"):null)}function Nte(u,h,b){if(b===1||h.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof h.precedence!="string"||typeof h.href!="string"||h.href==="")break;return!0;case"link":if(typeof h.rel!="string"||typeof h.href!="string"||h.href===""||h.onLoad||h.onError)break;switch(h.rel){case"stylesheet":return u=h.disabled,typeof h.precedence=="string"&&u==null;default:return!0}case"script":if(h.async&&typeof h.async!="function"&&typeof h.async!="symbol"&&!h.onLoad&&!h.onError&&h.src&&typeof h.src=="string")return!0}return!1}function S4(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}function Rte(u,h,b,S){if(b.type==="stylesheet"&&(typeof S.media!="string"||matchMedia(S.media).matches!==!1)&&(b.state.loading&4)===0){if(b.instance===null){var P=bh(S.href),k=h.querySelector(mg(P));if(k){h=k._p,h!==null&&typeof h=="object"&&typeof h.then=="function"&&(u.count++,u=hy.bind(u),h.then(u,u)),b.state.loading|=4,b.instance=k,Te(k);return}k=h.ownerDocument||h,S=v4(S),(P=Ss.get(P))&&rA(S,P),k=k.createElement("link"),Te(k);var W=k;W._p=new Promise(function(ne,_e){W.onload=ne,W.onerror=_e}),Or(k,"link",S),b.instance=k}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(b,h),(h=b.state.preload)&&(b.state.loading&3)===0&&(u.count++,b=hy.bind(u),h.addEventListener("load",b),h.addEventListener("error",b))}}var sA=0;function Pte(u,h){return u.stylesheets&&u.count===0&&my(u,u.stylesheets),0sA?50:800)+h);return u.unsuspend=b,function(){u.unsuspend=null,clearTimeout(S),clearTimeout(P)}}:null}function hy(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)my(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var py=null;function my(u,h){u.stylesheets=null,u.unsuspend!==null&&(u.count++,py=new Map,h.forEach(Dte,u),py=null,hy.call(u))}function Dte(u,h){if(!(h.state.loading&4)){var b=py.get(u);if(b)var S=b.get(null);else{b=new Map,py.set(u,b);for(var P=u.querySelectorAll("link[data-precedence],style[data-precedence]"),k=0;k"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),mA.exports=Kte(),mA.exports}var Zte=Yte();const Ht=t=>typeof t=="string",wg=()=>{let t,e;const n=new Promise((i,r)=>{t=i,e=r});return n.resolve=t,n.reject=e,n},W4=t=>t==null?"":""+t,Qte=(t,e,n)=>{t.forEach(i=>{e[i]&&(n[i]=e[i])})},Jte=/###/g,q4=t=>t&&t.indexOf("###")>-1?t.replace(Jte,"."):t,X4=t=>!t||Ht(t),o0=(t,e,n)=>{const i=Ht(e)?e.split("."):e;let r=0;for(;r{const{obj:i,k:r}=o0(t,e,Object);if(i!==void 0||e.length===1){i[r]=n;return}let a=e[e.length-1],s=e.slice(0,e.length-1),o=o0(t,s,Object);for(;o.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),o=o0(t,s,Object),o?.obj&&typeof o.obj[`${o.k}.${a}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${a}`]=n},ene=(t,e,n,i)=>{const{obj:r,k:a}=o0(t,e,Object);r[a]=r[a]||[],r[a].push(n)},T_=(t,e)=>{const{obj:n,k:i}=o0(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},tne=(t,e,n)=>{const i=T_(t,n);return i!==void 0?i:T_(e,n)},eG=(t,e,n)=>{for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in t?Ht(t[i])||t[i]instanceof String||Ht(e[i])||e[i]instanceof String?n&&(t[i]=e[i]):eG(t[i],e[i],n):t[i]=e[i]);return t},wh=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var nne={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ine=t=>Ht(t)?t.replace(/[&<>"'\/]/g,e=>nne[e]):t;class rne{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const ane=[" ",",","?","!",";"],sne=new rne(20),one=(t,e,n)=>{e=e||"",n=n||"";const i=ane.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;const r=sne.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`);let a=!r.test(t);if(!a){const s=t.indexOf(n);s>0&&!r.test(t.substring(0,s))&&(a=!0)}return a},rN=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const i=e.split(n);let r=t;for(let a=0;a-1&&lt?.replace("_","-"),lne={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class C_{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||lne,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,i,r){return r&&!this.debug?null:(Ht(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new C_(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new C_(this.logger,e)}}var Ho=new C_;let US=class{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([r,a])=>{for(let s=0;s{for(let s=0;s-1&&this.options.ns.splice(n,1)}getResource(e,n,i,r={}){const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,n],i&&(Array.isArray(i)?o.push(...i):Ht(i)&&a?o.push(...i.split(a)):o.push(i)));const l=T_(this.data,o);return!l&&!n&&!i&&e.indexOf(".")>-1&&(e=o[0],n=o[1],i=o.slice(2).join(".")),l||!s||!Ht(i)?l:rN(this.data?.[e]?.[n],i,a)}addResource(e,n,i,r,a={silent:!1}){const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let o=[e,n];i&&(o=o.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(o=e.split("."),r=n,n=o[1]),this.addNamespaces(n),K4(this.data,o,r),a.silent||this.emit("added",e,n,i,r)}addResources(e,n,i,r={silent:!1}){for(const a in i)(Ht(i[a])||Array.isArray(i[a]))&&this.addResource(e,n,a,i[a],{silent:!0});r.silent||this.emit("added",e,n,i)}addResourceBundle(e,n,i,r,a,s={silent:!1,skipCopy:!1}){let o=[e,n];e.indexOf(".")>-1&&(o=e.split("."),r=i,i=n,n=o[1]),this.addNamespaces(n);let l=T_(this.data,o)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?eG(l,i,a):l={...l,...i},K4(this.data,o,l),s.silent||this.emit("added",e,n,i)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var tG={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,r){return t.forEach(a=>{e=this.processors[a]?.process(e,n,i,r)??e}),e}};const nG=Symbol("i18next/PATH_KEY");function cne(){const t=[],e=Object.create(null);let n;return e.get=(i,r)=>(n?.revoke?.(),r===nG?t:(t.push(r),n=Proxy.revocable(i,e),n.proxy)),Proxy.revocable(Object.create(null),e).proxy}function aN(t,e){const{[nG]:n}=t(cne());return n.join(e?.keySeparator??".")}const Z4={},yA=t=>!Ht(t)&&typeof t!="boolean"&&typeof t!="number";class N_ extends US{constructor(e,n={}){super(),Qte(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ho.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const i={...n};if(e==null)return!1;const r=this.resolve(e,i);if(r?.res===void 0)return!1;const a=yA(r.res);return!(i.returnObjects===!1&&a)}extractFromKey(e,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let a=n.ns||this.options.defaultNS||[];const s=i&&e.indexOf(i)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!one(e,i,r);if(s&&!o){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:Ht(a)?[a]:a};const c=e.split(i);(i!==r||i===r&&this.options.ns.indexOf(c[0])>-1)&&(a=c.shift()),e=c.join(r)}return{key:e,namespaces:Ht(a)?[a]:a}}translate(e,n,i){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),e==null)return"";typeof e=="function"&&(e=aN(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],r),c=l[l.length-1];let d=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");const f=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode")return p?a?{res:`${c}${d}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:`${c}${d}${o}`:a?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(r)}:o;const m=this.resolve(e,r);let y=m?.res;const _=m?.usedKey||o,v=m?.exactUsedKey||o,x=["[object Number]","[object Function]","[object RegExp]"],M=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,T=r.count!==void 0&&!Ht(r.count),N=N_.hasDefaultValue(r),A=T?this.pluralResolver.getSuffix(f,r.count,r):"",R=r.ordinal&&T?this.pluralResolver.getSuffix(f,r.count,{ordinal:!1}):"",U=T&&!r.ordinal&&r.count===0,C=U&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${A}`]||r[`defaultValue${R}`]||r.defaultValue;let D=y;w&&!y&&N&&(D=C);const F=yA(D),I=Object.prototype.toString.apply(D);if(w&&D&&F&&x.indexOf(I)<0&&!(Ht(M)&&Array.isArray(D))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const H=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,D,{...r,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return a?(m.res=H,m.usedParams=this.getUsedParamsDetails(r),m):H}if(s){const H=Array.isArray(D),O=H?[]:{},B=H?v:_;for(const $ in D)if(Object.prototype.hasOwnProperty.call(D,$)){const G=`${B}${s}${$}`;N&&!y?O[$]=this.translate(G,{...r,defaultValue:yA(C)?C[$]:void 0,joinArrays:!1,ns:l}):O[$]=this.translate(G,{...r,joinArrays:!1,ns:l}),O[$]===G&&(O[$]=D[$])}y=O}}else if(w&&Ht(M)&&Array.isArray(y))y=y.join(M),y&&(y=this.extendTranslation(y,e,r,i));else{let H=!1,O=!1;!this.isValidLookup(y)&&N&&(H=!0,y=C),this.isValidLookup(y)||(O=!0,y=o);const $=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:y,G=N&&C!==y&&this.options.updateMissing;if(O||H||G){if(this.logger.log(G?"updateKey":"missingKey",f,c,o,G?C:y),s){const V=this.resolve(o,{...r,keySeparator:!1});V&&V.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 K=[];const Y=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Y&&Y[0])for(let V=0;V{const ue=N&&ae!==y?ae:$;this.options.missingKeyHandler?this.options.missingKeyHandler(V,c,X,ue,G,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(V,c,X,ue,G,r),this.emit("missingKey",V,c,X,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?K.forEach(V=>{const X=this.pluralResolver.getSuffixes(V,r);U&&r[`defaultValue${this.options.pluralSeparator}zero`]&&X.indexOf(`${this.options.pluralSeparator}zero`)<0&&X.push(`${this.options.pluralSeparator}zero`),X.forEach(ae=>{se([V],o+ae,r[`defaultValue${ae}`]||C)})}):se(K,o,C))}y=this.extendTranslation(y,e,r,m,i),O&&y===o&&this.options.appendNamespaceToMissingKey&&(y=`${c}${d}${o}`),(O||H)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${d}${o}`:o,H?y:void 0,r))}return a?(m.res=y,m.usedParams=this.getUsedParamsDetails(r),m):y}extendTranslation(e,n,i,r,a){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const l=Ht(e)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(l){const f=e.match(this.interpolator.nestingRegexp);c=f&&f.length}let d=i.replace&&!Ht(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,i.lng||this.language||r.usedLng,i),l){const f=e.match(this.interpolator.nestingRegexp),p=f&&f.length;ca?.[0]===f[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):this.translate(...f,n),i)),i.interpolation&&this.interpolator.reset()}const s=i.postProcess||this.options.postProcess,o=Ht(s)?[s]:s;return e!=null&&o?.length&&i.applyPostProcessor!==!1&&(e=tG.handle(o,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e,n={}){let i,r,a,s,o;return Ht(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(i))return;const c=this.extractFromKey(l,n),d=c.key;r=d;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&!Ht(n.count),m=p&&!n.ordinal&&n.count===0,y=n.context!==void 0&&(Ht(n.context)||typeof n.context=="number")&&n.context!=="",_=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(v=>{this.isValidLookup(i)||(o=v,!Z4[`${_[0]}-${v}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(Z4[`${_[0]}-${v}`]=!0,this.logger.warn(`key "${r}" for languages "${_.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),_.forEach(x=>{if(this.isValidLookup(i))return;s=x;const M=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(M,d,x,v,n);else{let T;p&&(T=this.pluralResolver.getSuffix(x,n.count,n));const N=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(n.ordinal&&T.indexOf(A)===0&&M.push(d+T.replace(A,this.options.pluralSeparator)),M.push(d+T),m&&M.push(d+N)),y){const R=`${d}${this.options.contextSeparator||"_"}${n.context}`;M.push(R),p&&(n.ordinal&&T.indexOf(A)===0&&M.push(R+T.replace(A,this.options.pluralSeparator)),M.push(R+T),m&&M.push(R+N))}}let w;for(;w=M.pop();)this.isValidLookup(i)||(a=w,i=this.getResource(x,v,w,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,i,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,i,r):this.resourceStore.getResource(e,n,i,r)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&!Ht(e.replace);let r=i?e.replace:e;if(i&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(const a of n)delete r[a]}return r}static hasDefaultValue(e){const n="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n===i.substring(0,n.length)&&e[i]!==void 0)return!0;return!1}}class Q4{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ho.create("languageUtils")}getScriptPartFromCode(e){if(e=R0(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=R0(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Ht(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(i=>{if(n)return;const r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&e.forEach(i=>{if(n)return;const r=this.getScriptPartFromCode(i);if(this.isSupportedCode(r))return n=r;const a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),Ht(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let i=e[n];return i||(i=e[this.getScriptPartFromCode(n)]),i||(i=e[this.formatLanguageCode(n)]),i||(i=e[this.getLanguagePartFromCode(n)]),i||(i=e.default),i||[]}toResolveHierarchy(e,n){const i=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),r=[],a=s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return Ht(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):Ht(e)&&a(this.formatLanguageCode(e)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}}const J4={zero:0,one:1,two:2,few:3,many:4,other:5},ej={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class une{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=Ho.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const i=R0(e==="dev"?"en":e),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ej;if(!e.match(/-|_/))return ej;const l=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(l,n)}return this.pluralRulesCache[a]=s,s}needsPlural(e,n={}){let i=this.getRule(e,n);return i||(i=this.getRule("dev",n)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,i={}){return this.getSuffixes(e,i).map(r=>`${n}${r}`)}getSuffixes(e,n={}){let i=this.getRule(e,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((r,a)=>J4[r]-J4[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(e,n,i={}){const r=this.getRule(e,i);return r?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,i))}}const tj=(t,e,n,i=".",r=!0)=>{let a=tne(t,e,n);return!a&&r&&Ht(n)&&(a=rN(t,n,i),a===void 0&&(a=rN(e,n,i))),a},bA=t=>t.replace(/\$/g,"$$$$");class dne{constructor(e={}){this.logger=Ho.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:o,suffixEscaped:l,formatSeparator:c,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:p,nestingPrefixEscaped:m,nestingSuffix:y,nestingSuffixEscaped:_,nestingOptionsSeparator:v,maxReplaces:x,alwaysFormat:M}=e.interpolation;this.escape=n!==void 0?n:ine,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?wh(a):s||"{{",this.suffix=o?wh(o):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?wh(p):m||wh("$t("),this.nestingSuffix=y?wh(y):_||wh(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=x||1e3,this.alwaysFormat=M!==void 0?M:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,i)=>n?.source===i?(n.lastIndex=0,n):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,i,r){let a,s,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=m=>{if(m.indexOf(this.formatSeparator)<0){const x=tj(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(x,void 0,i,{...r,...n,interpolationkey:m}):x}const y=m.split(this.formatSeparator),_=y.shift().trim(),v=y.join(this.formatSeparator).trim();return this.format(tj(n,l,_,this.options.keySeparator,this.options.ignoreJSONStructure),v,i,{...r,...n,interpolationkey:_})};this.resetRegExp();const d=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>bA(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?bA(this.escape(m)):bA(m)}].forEach(m=>{for(o=0;a=m.regex.exec(e);){const y=a[1].trim();if(s=c(y),s===void 0)if(typeof d=="function"){const v=d(e,a,r);s=Ht(v)?v:""}else if(r&&Object.prototype.hasOwnProperty.call(r,y))s="";else if(f){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`),s="";else!Ht(s)&&!this.useRawValueToEscape&&(s=W4(s));const _=m.safeValue(s);if(e=e.replace(a[0],_),f?(m.regex.lastIndex+=s.length,m.regex.lastIndex-=a[0].length):m.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,n,i={}){let r,a,s;const o=(l,c)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const f=l.split(new RegExp(`${d}[ ]*{`));let p=`{${f[1]}`;l=f[0],p=this.interpolate(p,s);const m=p.match(/'/g),y=p.match(/"/g);((m?.length??0)%2===0&&!y||y.length%2!==0)&&(p=p.replace(/'/g,'"'));try{s=JSON.parse(p),c&&(s={...c,...s})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,_),`${l}${d}${p}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;r=this.nestingRegexp.exec(e);){let l=[];s={...i},s=s.replace&&!Ht(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const c=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(l=r[1].slice(c).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),a=n(o.call(this,r[1].trim(),s),s),a&&r[0]===e&&!Ht(a))return a;Ht(a)||(a=W4(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),a=""),l.length&&(a=l.reduce((d,f)=>this.format(d,f,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),e=e.replace(r[0],a),this.regexp.lastIndex=0}return e}}const fne=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){const[o,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),d=o.trim();n[d]||(n[d]=c),c==="false"&&(n[d]=!1),c==="true"&&(n[d]=!0),isNaN(c)||(n[d]=parseInt(c,10))}})}return{formatName:e,formatOptions:n}},nj=t=>{const e={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});const s=i+JSON.stringify(a);let o=e[s];return o||(o=t(R0(i),r),e[s]=o),o(n)}},hne=t=>(e,n,i)=>t(R0(n),i)(e);class pne{constructor(e={}){this.logger=Ho.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const i=n.cacheInBuiltFormats?nj:hne;this.formats={number:i((r,a)=>{const s=new Intl.NumberFormat(r,{...a});return o=>s.format(o)}),currency:i((r,a)=>{const s=new Intl.NumberFormat(r,{...a,style:"currency"});return o=>s.format(o)}),datetime:i((r,a)=>{const s=new Intl.DateTimeFormat(r,{...a});return o=>s.format(o)}),relativetime:i((r,a)=>{const s=new Intl.RelativeTimeFormat(r,{...a});return o=>s.format(o,a.range||"day")}),list:i((r,a)=>{const s=new Intl.ListFormat(r,{...a});return o=>s.format(o)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=nj(n)}format(e,n,i,r={}){const a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(o=>o.indexOf(")")>-1)){const o=a.findIndex(l=>l.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,o)].join(this.formatSeparator)}return a.reduce((o,l)=>{const{formatName:c,formatOptions:d}=fne(l);if(this.formats[c]){let f=o;try{const p=r?.formatParams?.[r.interpolationkey]||{},m=p.locale||p.lng||r.locale||r.lng||i;f=this.formats[c](o,m,{...d,...r,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${c}`);return o},e)}}const mne=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class gne extends US{constructor(e,n,i,r={}){super(),this.backend=e,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Ho.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,r.backend,r)}queueLoad(e,n,i,r){const a={},s={},o={},l={};return e.forEach(c=>{let d=!0;n.forEach(f=>{const p=`${c}|${f}`;!i.reload&&this.store.hasResourceBundle(c,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?s[p]===void 0&&(s[p]=!0):(this.state[p]=1,d=!1,s[p]===void 0&&(s[p]=!0),a[p]===void 0&&(a[p]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(o[c]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,n,i){const r=e.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&i&&(this.state[e]=0);const o={};this.queue.forEach(l=>{ene(l.loaded,[a],s),mne(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{o[c]||(o[c]={});const d=l.loaded[c];d.length&&d.forEach(f=>{o[c][f]===void 0&&(o[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(e,n,i,r=0,a=this.retryTimeout,s){if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;const o=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&d&&r{this.read.call(this,e,n,i,r+1,a*2,s)},a);return}s(c,d)},l=this.backend[i].bind(this.backend);if(l.length===2){try{const c=l(e,n);c&&typeof c.then=="function"?c.then(d=>o(null,d)).catch(o):o(null,c)}catch(c){o(c)}return}return l(e,n,o)}prepareLoading(e,n,i={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Ht(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Ht(n)&&(n=[n]);const a=this.queueLoad(e,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(e,n,i){this.prepareLoading(e,n,{},i)}reload(e,n,i){this.prepareLoading(e,n,{reload:!0},i)}loadOne(e,n=""){const i=e.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,o)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&o&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,o),this.loaded(e,s,o)})}saveMissing(e,n,i,r,a,s={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend?.create){const l={...s,isUpdate:a},c=this.backend.create.bind(this.backend);if(c.length<6)try{let d;c.length===5?d=c(e,n,i,r,l):d=c(e,n,i,r),d&&typeof d.then=="function"?d.then(f=>o(null,f)).catch(o):o(null,d)}catch(d){o(d)}else c(e,n,i,r,o,l)}!e||!e[0]||this.store.addResource(e[0],n,i,r)}}}const ij=()=>({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:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Ht(t[1])&&(e.defaultValue=t[1]),Ht(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(i=>{e[i]=n[i]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),rj=t=>(Ht(t.ns)&&(t.ns=[t.ns]),Ht(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Ht(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),My=()=>{},xne=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class l0 extends US{constructor(e={},n){if(super(),this.options=rj(e),this.services={},this.logger=Ho,this.modules={external:[]},xne(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(Ht(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=ij();this.options={...i,...this.options,...rj(e)},this.options.interpolation={...i.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator);const r=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Ho.init(r(this.modules.logger),this.options):Ho.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=pne;const d=new Q4(this.options);this.store=new Y4(this.options.resources,this.options);const f=this.services;f.logger=Ho,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new une(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.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"),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(f.formatter=r(c),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new dne(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new gne(r(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(m,...y)=>{this.emit(m,...y)}),this.modules.languageDetector&&(f.languageDetector=r(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=r(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new N_(this.services,this.options),this.translator.on("*",(m,...y)=>{this.emit(m,...y)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,n||(n=My),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...d)=>this.store[c](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...d)=>(this.store[c](...d),this)});const o=wg(),l=()=>{const c=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(f),n(d,f)};if(this.languages&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),o}loadResources(e,n=My){let i=n;const r=Ht(e)?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const a=[],s=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(c=>{c!=="cimode"&&a.indexOf(c)<0&&a.push(c)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload?.forEach?.(o=>s(o)),this.services.backendConnector.load(a,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(o)})}else i(null)}reloadResources(e,n,i){const r=wg();return typeof e=="function"&&(i=e,e=void 0),typeof n=="function"&&(i=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),i||(i=My),this.services.backendConnector.reload(e,n,a=>{r.resolve(),i(a)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&tG.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const i=wg();this.emit("languageChanging",e);const r=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},a=(o,l)=>{l?this.isLanguageChangingTo===e&&(r(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,i.resolve((...c)=>this.t(...c)),n&&n(o,(...c)=>this.t(...c))},s=o=>{!e&&!o&&this.services.languageDetector&&(o=[]);const l=Ht(o)?o:o&&o[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(Ht(o)?[o]:o);c&&(this.language||r(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,d=>{a(d,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e),i}getFixedT(e,n,i){const r=(a,s,...o)=>{let l;typeof s!="object"?l=this.options.overloadTranslationOptionHandler([a,s].concat(o)):l={...s},l.lng=l.lng||r.lng,l.lngs=l.lngs||r.lngs,l.ns=l.ns||r.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||i||r.keyPrefix);const c=this.options.keySeparator||".";let d;return l.keyPrefix&&Array.isArray(a)?d=a.map(f=>(typeof f=="function"&&(f=aN(f,{...this.options,...s})),`${l.keyPrefix}${c}${f}`)):(typeof a=="function"&&(a=aN(a,{...this.options,...s})),d=l.keyPrefix?`${l.keyPrefix}${c}${a}`:a),this.t(d,l)};return Ht(e)?r.lng=e:r.lngs=e,r.ns=n,r.keyPrefix=i,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){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 i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const s=(o,l)=>{const c=this.services.backendConnector.state[`${o}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const o=n.precheck(this,s);if(o!==void 0)return o}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,e)&&(!r||s(a,e)))}loadNamespaces(e,n){const i=wg();return this.options.ns?(Ht(e)&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(e,n){const i=wg();Ht(e)&&(e=[e]);const r=this.options.preload||[],a=e.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const r=new Intl.Locale(e);if(r&&r.getTextInfo){const a=r.getTextInfo();if(a&&a.direction)return a.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services?.languageUtils||new Q4(ij());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const i=new l0(e,n);return i.createInstance=l0.createInstance,i}cloneInstance(e={},n=My){const i=e.forkResourceStore;i&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},a=new l0(r);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(o=>{a[o]=this[o]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i){const o=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((d,f)=>(d[f]={...l[c][f]},d),l[c]),l),{});a.store=new Y4(o,r),a.services.resourceStore=a.store}return a.translator=new N_(a.services,r),a.translator.on("*",(o,...l)=>{a.emit(o,...l)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const wa=l0.createInstance();wa.createInstance;wa.dir;wa.init;wa.loadResources;wa.reloadResources;wa.use;wa.changeLanguage;wa.getFixedT;wa.t;wa.exists;wa.setDefaultNamespace;wa.hasLoadedNamespace;wa.loadNamespaces;wa.loadLanguages;const vne=(t,e,n,i)=>{const r=[n,{code:e,...i||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(r,"warn","react-i18next::",!0);vf(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...r):console?.warn&&console.warn(...r)},aj={},iG=(t,e,n,i)=>{vf(n)&&aj[n]||(vf(n)&&(aj[n]=new Date),vne(t,e,n,i))},rG=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},sN=(t,e,n)=>{t.loadNamespaces(e,rG(t,n))},sj=(t,e,n,i)=>{if(vf(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return sN(t,n,i);n.forEach(r=>{t.options.ns.indexOf(r)<0&&t.options.ns.push(r)}),t.loadLanguages(e,rG(t,i))},yne=(t,e,n={})=>!e.languages||!e.languages.length?(iG(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(i,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!r(i.isLanguageChangingTo,t))return!1}}),vf=t=>typeof t=="string",bne=t=>typeof t=="object"&&t!==null,_ne=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Sne={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},wne=t=>Sne[t],Mne=t=>t.replace(_ne,wne);let oN={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Mne};const Ene=(t={})=>{oN={...oN,...t}},Ane=()=>oN;let aG;const Tne=t=>{aG=t},Cne=()=>aG,Nne={type:"3rdParty",init(t){Ene(t.options.react),Tne(t)}},Rne=E.createContext();class Pne{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var _A={exports:{}},SA={};var oj;function Dne(){if(oj)return SA;oj=1;var t=lm();function e(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:e,i=t.useState,r=t.useEffect,a=t.useLayoutEffect,s=t.useDebugValue;function o(f,p){var m=p(),y=i({inst:{value:m,getSnapshot:p}}),_=y[0].inst,v=y[1];return a(function(){_.value=m,_.getSnapshot=p,l(_)&&v({inst:_})},[f,m,p]),r(function(){return l(_)&&v({inst:_}),f(function(){l(_)&&v({inst:_})})},[f]),s(m),m}function l(f){var p=f.getSnapshot;f=f.value;try{var m=p();return!n(f,m)}catch{return!0}}function c(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:o;return SA.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,SA}var lj;function sG(){return lj||(lj=1,_A.exports=Dne()),_A.exports}var pP=sG();const kne=(t,e)=>vf(e)?e:bne(e)&&vf(e.defaultValue)?e.defaultValue:Array.isArray(t)?t[t.length-1]:t,One={t:kne,ready:!1},Lne=()=>()=>{},mP=(t,e={})=>{const{i18n:n}=e,{i18n:i,defaultNS:r}=E.useContext(Rne)||{},a=n||i||Cne();a&&!a.reportNamespaces&&(a.reportNamespaces=new Pne),a||iG(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const s=E.useMemo(()=>({...Ane(),...a?.options?.react,...e}),[a,e]),{useSuspense:o,keyPrefix:l}=s,c=r||a?.options?.defaultNS,d=vf(c)?[c]:c||["translation"],f=E.useMemo(()=>d,d);a?.reportNamespaces?.addUsedNamespaces?.(f);const p=E.useRef(0),m=E.useCallback(C=>{if(!a)return Lne;const{bindI18n:D,bindI18nStore:F}=s,I=()=>{p.current+=1,C()};return D&&a.on(D,I),F&&a.store.on(F,I),()=>{D&&D.split(" ").forEach(H=>a.off(H,I)),F&&F.split(" ").forEach(H=>a.store.off(H,I))}},[a,s]),y=E.useRef(),_=E.useCallback(()=>{if(!a)return One;const C=!!(a.isInitialized||a.initializedStoreOnce)&&f.every(B=>yne(B,a,s)),D=e.lng||a.language,F=p.current,I=y.current;if(I&&I.ready===C&&I.lng===D&&I.keyPrefix===l&&I.revision===F)return I;const O={t:a.getFixedT(D,s.nsMode==="fallback"?f:f[0],l),ready:C,lng:D,keyPrefix:l,revision:F};return y.current=O,O},[a,f,l,s,e.lng]),[v,x]=E.useState(0),{t:M,ready:w}=pP.useSyncExternalStore(m,_,_);E.useEffect(()=>{if(a&&!w&&!o){const C=()=>x(D=>D+1);e.lng?sj(a,e.lng,f,C):sN(a,f,C)}},[a,e.lng,f,w,o,v]);const T=a||{},N=E.useRef(null),A=E.useRef(),R=C=>{const D=Object.getOwnPropertyDescriptors(C);D.__original&&delete D.__original;const F=Object.create(Object.getPrototypeOf(C),D);if(!Object.prototype.hasOwnProperty.call(F,"__original"))try{Object.defineProperty(F,"__original",{value:C,writable:!1,enumerable:!1,configurable:!1})}catch{}return F},U=E.useMemo(()=>{const C=T,D=C?.language;let F=C;C&&(N.current&&N.current.__original===C?A.current!==D?(F=R(C),N.current=F,A.current=D):F=N.current:(F=R(C),N.current=F,A.current=D));const I=[M,F,w];return I.t=M,I.i18n=F,I.ready=w,I},[M,T,w,T.resolvedLanguage,T.language,T.languages]);if(a&&o&&!w)throw new Promise(C=>{const D=()=>C();e.lng?sj(a,e.lng,f,D):sN(a,f,D)});return U},{slice:Ine,forEach:Une}=[];function jne(t){return Une.call(Ine.call(arguments,1),e=>{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}function Fne(t){return typeof t!="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(n=>n.test(t))}const cj=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,zne=function(t,e){const i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},r=encodeURIComponent(e);let a=`${t}=${r}`;if(i.maxAge>0){const s=i.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(s)}`}if(i.domain){if(!cj.test(i.domain))throw new TypeError("option domain is invalid");a+=`; Domain=${i.domain}`}if(i.path){if(!cj.test(i.path))throw new TypeError("option path is invalid");a+=`; Path=${i.path}`}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i.partitioned&&(a+="; Partitioned"),a},uj={create(t,e,n,i){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+n*60*1e3)),i&&(r.domain=i),document.cookie=zne(t,e,r)},read(t){const e=`${t}=`,n=document.cookie.split(";");for(let i=0;i-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const a=i.substring(1).split("&");for(let s=0;s0&&a[s].substring(0,o)===e&&(n=a[s].substring(o+1))}}return n}},Vne={name:"hash",lookup(t){let{lookupHash:e,lookupFromHashIndex:n}=t,i;if(typeof window<"u"){const{hash:r}=window.location;if(r&&r.length>2){const a=r.substring(1);if(e){const s=a.split("&");for(let o=0;o0&&s[o].substring(0,l)===e&&(i=s[o].substring(l+1))}}if(i)return i;if(!i&&n>-1){const s=r.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return i}};let Mh=null;const dj=()=>{if(Mh!==null)return Mh;try{if(Mh=typeof window<"u"&&window.localStorage!==null,!Mh)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Mh=!1}return Mh};var $ne={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&dj())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&dj()&&window.localStorage.setItem(n,t)}};let Eh=null;const fj=()=>{if(Eh!==null)return Eh;try{if(Eh=typeof window<"u"&&window.sessionStorage!==null,!Eh)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Eh=!1}return Eh};var Gne={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&fj())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&fj()&&window.sessionStorage.setItem(n,t)}},Wne={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:i,language:r}=navigator;if(n)for(let a=0;a0?e:void 0}},qne={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const i=e||(typeof document<"u"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(n=i.getAttribute("lang")),n}},Xne={name:"path",lookup(t){let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof e=="number"?e:0]?.replace("/",""):void 0}},Kne={name:"subdomain",lookup(t){let{lookupFromSubdomainIndex:e}=t;const n=typeof e=="number"?e+1:1,i=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[n]}};let oG=!1;try{document.cookie,oG=!0}catch{}const lG=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];oG||lG.splice(1,1);const Yne=()=>({order:lG,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t});class cG{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=jne(n,this.options||{},Yne()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=r=>r.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Bne),this.addDetector(Hne),this.addDetector($ne),this.addDetector(Gne),this.addDetector(Wne),this.addDetector(qne),this.addDetector(Xne),this.addDetector(Kne),this.addDetector(Vne)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return e.forEach(i=>{if(this.detectors[i]){let r=this.detectors[i].lookup(this.options);r&&typeof r=="string"&&(r=[r]),r&&(n=n.concat(r))}}),n=n.filter(i=>i!=null&&!Fne(i)).map(i=>this.options.convertDetectedLanguage(i)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(i=>{this.detectors[i]&&this.detectors[i].cacheUserLanguage(e,this.options)}))}}cG.type="languageDetector";const Zne={nav:{printers:"Printers",archives:"Archives",queue:"Queue",stats:"Statistics",profiles:"Profiles",maintenance:"Maintenance",settings:"Settings",collapseSidebar:"Collapse sidebar",expandSidebar:"Expand sidebar",update:"Update",updateAvailable:"Update available: v{{version}}",viewOnGithub:"View on GitHub",keyboardShortcuts:"Keyboard shortcuts (?)",switchToLight:"Switch to light mode",switchToDark:"Switch to dark mode"},common:{save:"Save",cancel:"Cancel",delete:"Delete",edit:"Edit",add:"Add",close:"Close",confirm:"Confirm",loading:"Loading...",error:"Error",success:"Success",warning:"Warning",enabled:"Enabled",disabled:"Disabled",yes:"Yes",no:"No",on:"On",off:"Off",all:"All",none:"None",search:"Search",filter:"Filter",sort:"Sort",refresh:"Refresh",download:"Download",upload:"Upload",actions:"Actions",status:"Status",name:"Name",description:"Description",date:"Date",time:"Time",hours:"hours",minutes:"minutes",seconds:"seconds",noPrinters:"No printers configured",noData:"No data available",required:"Required",optional:"Optional"},printers:{title:"Printers",addPrinter:"Add Printer",editPrinter:"Edit Printer",deletePrinter:"Delete Printer",printerName:"Printer Name",serialNumber:"Serial Number",ipAddress:"IP Address",accessCode:"Access Code",model:"Model",nozzleCount:"Nozzle Count",autoArchive:"Auto Archive",status:{idle:"Idle",printing:"Printing",paused:"Paused",offline:"Offline",error:"Error",finished:"Finished",unknown:"Unknown"},temperatures:{nozzle:"Nozzle",bed:"Bed",chamber:"Chamber"},progress:"{{percent}}% complete",timeRemaining:"{{time}} remaining",deleteConfirm:'Are you sure you want to delete "{{name}}"?',maintenanceOk:"Maintenance OK",maintenanceWarning:"{{count}} warning",maintenanceWarning_plural:"{{count}} warnings",maintenanceDue:"{{count}} due",maintenanceDue_plural:"{{count}} due"},archives:{title:"Print Archives",searchPlaceholder:"Search archives...",filterByPrinter:"Filter by printer",filterByStatus:"Filter by status",sortBy:"Sort by",sortNewest:"Newest first",sortOldest:"Oldest first",sortName:"Name",sortDuration:"Duration",noArchives:"No archives found",printTime:"Print Time",filamentUsed:"Filament Used",cost:"Cost",reprint:"Reprint",preview:"Preview",deleteArchive:"Delete Archive",deleteConfirm:"Are you sure you want to delete this archive?",favorite:"Favorite",unfavorite:"Remove from favorites",viewDetails:"View Details",status:{completed:"Completed",failed:"Failed",stopped:"Stopped"}},queue:{title:"Print Queue",addToQueue:"Add to Queue",clearQueue:"Clear Queue",emptyQueue:"Queue is empty",position:"Position",scheduledTime:"Scheduled Time",moveUp:"Move Up",moveDown:"Move Down",remove:"Remove",startNow:"Start Now",status:{pending:"Pending",printing:"Printing",completed:"Completed",failed:"Failed",cancelled:"Cancelled"}},stats:{title:"Statistics",overview:"Overview",totalPrints:"Total Prints",successRate:"Success Rate",totalPrintTime:"Total Print Time",totalFilament:"Total Filament Used",totalCost:"Total Cost",averagePrintTime:"Average Print Time",printsPerDay:"Prints per Day",byPrinter:"By Printer",byMaterial:"By Material",byMonth:"By Month",last7Days:"Last 7 Days",last30Days:"Last 30 Days",last90Days:"Last 90 Days",allTime:"All Time"},profiles:{title:"Filament Profiles",addProfile:"Add Profile",editProfile:"Edit Profile",deleteProfile:"Delete Profile",material:"Material",brand:"Brand",color:"Color",diameter:"Diameter",density:"Density",costPerKg:"Cost per kg",spoolWeight:"Spool Weight",noProfiles:"No profiles configured",deleteConfirm:"Are you sure you want to delete this profile?"},maintenance:{title:"Maintenance",overview:"Overview",allOk:"All maintenance up to date",dueCount:"{{count}} item due",dueCount_plural:"{{count}} items due",warningCount:"{{count}} warning",warningCount_plural:"{{count}} warnings",totalPrintTime:"Total Print Time",nextMaintenance:"Next Maintenance",nothingDue:"Nothing due",tasks:"Tasks",lastPerformed:"Last performed",interval:"Interval",hoursRemaining:"{{hours}}h remaining",hoursOverdue:"{{hours}}h overdue",markDone:"Mark as Done",performMaintenance:"Perform Maintenance",history:"History",noHistory:"No maintenance history",editPrintHours:"Edit Print Hours",currentHours:"Current Hours",types:{lubricateRails:"Lubricate Linear Rails",cleanNozzle:"Clean Nozzle/Hotend",checkBelts:"Check Belt Tension",cleanBuildPlate:"Clean Build Plate",checkExtruder:"Check Extruder Gears",checkCooling:"Check Cooling Fans",generalInspection:"General Inspection"}},settings:{title:"Settings",general:"General",appearance:"Appearance",notifications:"Notifications",smartPlugs:"Smart Plugs",spoolman:"Spoolman",updates:"Updates",language:"Language",languageDescription:"Select your preferred language",theme:"Theme",themeLight:"Light",themeDark:"Dark",themeSystem:"System",defaultView:"Default View",defaultViewDescription:"Page to show when opening the app",checkForUpdates:"Check for Updates",autoUpdate:"Auto Update",currentVersion:"Current Version",latestVersion:"Latest Version",upToDate:"You are up to date",updateAvailable:"Update available",notificationLanguage:"Notification Language",notificationLanguageDescription:"Language for push notifications",notificationProviders:"Notification Providers",addProvider:"Add Provider",editProvider:"Edit Provider",providerType:"Provider Type",testNotification:"Test Notification",testSuccess:"Test notification sent successfully",testFailed:"Failed to send test notification",quietHours:"Quiet Hours",quietHoursDescription:"Do not disturb during these hours",quietHoursStart:"Start",quietHoursEnd:"End",events:{title:"Notification Events",printStart:"Print Started",printComplete:"Print Completed",printFailed:"Print Failed",printStopped:"Print Stopped",printProgress:"Progress Milestones",printProgressDescription:"Notify at 25%, 50%, 75%",printerOffline:"Printer Offline",printerError:"Printer Error",filamentLow:"Low Filament",maintenanceDue:"Maintenance Due",maintenanceDueDescription:"Notify when maintenance is needed"},smartPlug:{title:"Smart Plugs",add:"Add Smart Plug",edit:"Edit Smart Plug",name:"Name",ipAddress:"IP Address",linkedPrinter:"Linked Printer",autoOn:"Auto Power On",autoOnDescription:"Turn on when print starts",autoOff:"Auto Power Off",autoOffDescription:"Turn off after print completes",offDelay:"Off Delay",offDelayMinutes:"Minutes after print",offDelayTemp:"When nozzle below temperature",currentState:"Current State",turnOn:"Turn On",turnOff:"Turn Off"},spoolmanEnabled:"Enable Spoolman Integration",spoolmanUrl:"Spoolman URL",spoolmanConnected:"Connected",spoolmanDisconnected:"Disconnected"},notification:{printStarted:{title:"Print Started",body:"{{printer}}: {{filename}} has started printing"},printCompleted:{title:"Print Completed",body:"{{printer}}: {{filename}} completed successfully"},printFailed:{title:"Print Failed",body:"{{printer}}: {{filename}} has failed"},printStopped:{title:"Print Stopped",body:"{{printer}}: {{filename}} was stopped"},printProgress:{title:"Print Progress",body:"{{printer}}: {{filename}} is {{percent}}% complete"},printerOffline:{title:"Printer Offline",body:"{{printer}} is offline"},printerError:{title:"Printer Error",body:"{{printer}}: {{error}}"},filamentLow:{title:"Low Filament",body:"{{printer}}: Filament is running low"},maintenanceDue:{title:"Maintenance Due",body:"{{printer}}: {{items}} need attention"}},errors:{generic:"Something went wrong",networkError:"Network error. Please check your connection.",notFound:"Not found",unauthorized:"Unauthorized",serverError:"Server error",validationError:"Please check your input",printerConnectionFailed:"Failed to connect to printer",saveFailed:"Failed to save changes",deleteFailed:"Failed to delete",loadFailed:"Failed to load data"},confirm:{delete:"Are you sure you want to delete this?",unsavedChanges:"You have unsaved changes. Are you sure you want to leave?",clearQueue:"Are you sure you want to clear the queue?"}},Qne={nav:{printers:"Drucker",archives:"Archiv",queue:"Warteschlange",stats:"Statistiken",profiles:"Profile",maintenance:"Wartung",settings:"Einstellungen",collapseSidebar:"Seitenleiste einklappen",expandSidebar:"Seitenleiste ausklappen",update:"Update",updateAvailable:"Update verfügbar: v{{version}}",viewOnGithub:"Auf GitHub ansehen",keyboardShortcuts:"Tastaturkürzel (?)",switchToLight:"Zum hellen Modus wechseln",switchToDark:"Zum dunklen Modus wechseln"},common:{save:"Speichern",cancel:"Abbrechen",delete:"Löschen",edit:"Bearbeiten",add:"Hinzufügen",close:"Schließen",confirm:"Bestätigen",loading:"Lädt...",error:"Fehler",success:"Erfolg",warning:"Warnung",enabled:"Aktiviert",disabled:"Deaktiviert",yes:"Ja",no:"Nein",on:"An",off:"Aus",all:"Alle",none:"Keine",search:"Suchen",filter:"Filtern",sort:"Sortieren",refresh:"Aktualisieren",download:"Herunterladen",upload:"Hochladen",actions:"Aktionen",status:"Status",name:"Name",description:"Beschreibung",date:"Datum",time:"Zeit",hours:"Stunden",minutes:"Minuten",seconds:"Sekunden",noPrinters:"Keine Drucker konfiguriert",noData:"Keine Daten verfügbar",required:"Erforderlich",optional:"Optional"},printers:{title:"Drucker",addPrinter:"Drucker hinzufügen",editPrinter:"Drucker bearbeiten",deletePrinter:"Drucker löschen",printerName:"Druckername",serialNumber:"Seriennummer",ipAddress:"IP-Adresse",accessCode:"Zugangscode",model:"Modell",nozzleCount:"Düsenanzahl",autoArchive:"Automatische Archivierung",status:{idle:"Bereit",printing:"Druckt",paused:"Pausiert",offline:"Offline",error:"Fehler",finished:"Fertig",unknown:"Unbekannt"},temperatures:{nozzle:"Düse",bed:"Druckbett",chamber:"Kammer"},progress:"{{percent}}% abgeschlossen",timeRemaining:"Noch {{time}}",deleteConfirm:'Möchten Sie "{{name}}" wirklich löschen?',maintenanceOk:"Wartung OK",maintenanceWarning:"{{count}} Warnung",maintenanceWarning_plural:"{{count}} Warnungen",maintenanceDue:"{{count}} fällig",maintenanceDue_plural:"{{count}} fällig"},archives:{title:"Druckarchiv",searchPlaceholder:"Archiv durchsuchen...",filterByPrinter:"Nach Drucker filtern",filterByStatus:"Nach Status filtern",sortBy:"Sortieren nach",sortNewest:"Neueste zuerst",sortOldest:"Älteste zuerst",sortName:"Name",sortDuration:"Dauer",noArchives:"Keine Archive gefunden",printTime:"Druckzeit",filamentUsed:"Verbrauchtes Filament",cost:"Kosten",reprint:"Erneut drucken",preview:"Vorschau",deleteArchive:"Archiv löschen",deleteConfirm:"Möchten Sie dieses Archiv wirklich löschen?",favorite:"Favorit",unfavorite:"Aus Favoriten entfernen",viewDetails:"Details anzeigen",status:{completed:"Abgeschlossen",failed:"Fehlgeschlagen",stopped:"Gestoppt"}},queue:{title:"Druckwarteschlange",addToQueue:"Zur Warteschlange hinzufügen",clearQueue:"Warteschlange leeren",emptyQueue:"Warteschlange ist leer",position:"Position",scheduledTime:"Geplante Zeit",moveUp:"Nach oben",moveDown:"Nach unten",remove:"Entfernen",startNow:"Jetzt starten",status:{pending:"Ausstehend",printing:"Druckt",completed:"Abgeschlossen",failed:"Fehlgeschlagen",cancelled:"Abgebrochen"}},stats:{title:"Statistiken",overview:"Übersicht",totalPrints:"Gesamtdrucke",successRate:"Erfolgsrate",totalPrintTime:"Gesamtdruckzeit",totalFilament:"Gesamtverbrauch Filament",totalCost:"Gesamtkosten",averagePrintTime:"Durchschnittliche Druckzeit",printsPerDay:"Drucke pro Tag",byPrinter:"Nach Drucker",byMaterial:"Nach Material",byMonth:"Nach Monat",last7Days:"Letzte 7 Tage",last30Days:"Letzte 30 Tage",last90Days:"Letzte 90 Tage",allTime:"Gesamt"},profiles:{title:"Filament-Profile",addProfile:"Profil hinzufügen",editProfile:"Profil bearbeiten",deleteProfile:"Profil löschen",material:"Material",brand:"Marke",color:"Farbe",diameter:"Durchmesser",density:"Dichte",costPerKg:"Kosten pro kg",spoolWeight:"Spulengewicht",noProfiles:"Keine Profile konfiguriert",deleteConfirm:"Möchten Sie dieses Profil wirklich löschen?"},maintenance:{title:"Wartung",overview:"Übersicht",allOk:"Alle Wartungen aktuell",dueCount:"{{count}} Aufgabe fällig",dueCount_plural:"{{count}} Aufgaben fällig",warningCount:"{{count}} Warnung",warningCount_plural:"{{count}} Warnungen",totalPrintTime:"Gesamtdruckzeit",nextMaintenance:"Nächste Wartung",nothingDue:"Nichts fällig",tasks:"Aufgaben",lastPerformed:"Zuletzt durchgeführt",interval:"Intervall",hoursRemaining:"{{hours}}h verbleibend",hoursOverdue:"{{hours}}h überfällig",markDone:"Als erledigt markieren",performMaintenance:"Wartung durchführen",history:"Verlauf",noHistory:"Kein Wartungsverlauf",editPrintHours:"Druckstunden bearbeiten",currentHours:"Aktuelle Stunden",types:{lubricateRails:"Linearschienen schmieren",cleanNozzle:"Düse/Hotend reinigen",checkBelts:"Riemenspannung prüfen",cleanBuildPlate:"Druckbett reinigen",checkExtruder:"Extruderzahnräder prüfen",checkCooling:"Kühlungslüfter prüfen",generalInspection:"Allgemeine Inspektion"}},settings:{title:"Einstellungen",general:"Allgemein",appearance:"Erscheinungsbild",notifications:"Benachrichtigungen",smartPlugs:"Smart Plugs",spoolman:"Spoolman",updates:"Updates",language:"Sprache",languageDescription:"Wählen Sie Ihre bevorzugte Sprache",theme:"Design",themeLight:"Hell",themeDark:"Dunkel",themeSystem:"System",defaultView:"Standardansicht",defaultViewDescription:"Seite, die beim Öffnen der App angezeigt wird",checkForUpdates:"Nach Updates suchen",autoUpdate:"Automatische Updates",currentVersion:"Aktuelle Version",latestVersion:"Neueste Version",upToDate:"Sie sind auf dem neuesten Stand",updateAvailable:"Update verfügbar",notificationLanguage:"Benachrichtigungssprache",notificationLanguageDescription:"Sprache für Push-Benachrichtigungen",notificationProviders:"Benachrichtigungsanbieter",addProvider:"Anbieter hinzufügen",editProvider:"Anbieter bearbeiten",providerType:"Anbietertyp",testNotification:"Testbenachrichtigung",testSuccess:"Testbenachrichtigung erfolgreich gesendet",testFailed:"Testbenachrichtigung konnte nicht gesendet werden",quietHours:"Ruhezeiten",quietHoursDescription:"Keine Störungen während dieser Zeiten",quietHoursStart:"Beginn",quietHoursEnd:"Ende",events:{title:"Benachrichtigungsereignisse",printStart:"Druck gestartet",printComplete:"Druck abgeschlossen",printFailed:"Druck fehlgeschlagen",printStopped:"Druck gestoppt",printProgress:"Fortschrittsmeldungen",printProgressDescription:"Bei 25%, 50%, 75% benachrichtigen",printerOffline:"Drucker offline",printerError:"Druckerfehler",filamentLow:"Filament niedrig",maintenanceDue:"Wartung fällig",maintenanceDueDescription:"Benachrichtigen, wenn Wartung erforderlich"},smartPlug:{title:"Smart Plugs",add:"Smart Plug hinzufügen",edit:"Smart Plug bearbeiten",name:"Name",ipAddress:"IP-Adresse",linkedPrinter:"Verknüpfter Drucker",autoOn:"Automatisch einschalten",autoOnDescription:"Einschalten beim Druckstart",autoOff:"Automatisch ausschalten",autoOffDescription:"Ausschalten nach Druckende",offDelay:"Ausschaltverzögerung",offDelayMinutes:"Minuten nach Druck",offDelayTemp:"Wenn Düse unter Temperatur",currentState:"Aktueller Status",turnOn:"Einschalten",turnOff:"Ausschalten"},spoolmanEnabled:"Spoolman-Integration aktivieren",spoolmanUrl:"Spoolman URL",spoolmanConnected:"Verbunden",spoolmanDisconnected:"Nicht verbunden"},notification:{printStarted:{title:"Druck gestartet",body:"{{printer}}: {{filename}} wird gedruckt"},printCompleted:{title:"Druck abgeschlossen",body:"{{printer}}: {{filename}} erfolgreich abgeschlossen"},printFailed:{title:"Druck fehlgeschlagen",body:"{{printer}}: {{filename}} ist fehlgeschlagen"},printStopped:{title:"Druck gestoppt",body:"{{printer}}: {{filename}} wurde gestoppt"},printProgress:{title:"Druckfortschritt",body:"{{printer}}: {{filename}} ist zu {{percent}}% abgeschlossen"},printerOffline:{title:"Drucker offline",body:"{{printer}} ist offline"},printerError:{title:"Druckerfehler",body:"{{printer}}: {{error}}"},filamentLow:{title:"Filament niedrig",body:"{{printer}}: Filament geht zur Neige"},maintenanceDue:{title:"Wartung fällig",body:"{{printer}}: {{items}} benötigen Aufmerksamkeit"}},errors:{generic:"Etwas ist schiefgelaufen",networkError:"Netzwerkfehler. Bitte überprüfen Sie Ihre Verbindung.",notFound:"Nicht gefunden",unauthorized:"Nicht autorisiert",serverError:"Serverfehler",validationError:"Bitte überprüfen Sie Ihre Eingabe",printerConnectionFailed:"Verbindung zum Drucker fehlgeschlagen",saveFailed:"Speichern fehlgeschlagen",deleteFailed:"Löschen fehlgeschlagen",loadFailed:"Laden der Daten fehlgeschlagen"},confirm:{delete:"Möchten Sie dies wirklich löschen?",unsavedChanges:"Sie haben ungespeicherte Änderungen. Möchten Sie wirklich verlassen?",clearQueue:"Möchten Sie die Warteschlange wirklich leeren?"}},Jne={en:{translation:Zne},de:{translation:Qne}};wa.use(cG).use(Nne).init({resources:Jne,fallbackLng:"en",supportedLngs:["en","de"],detection:{order:["localStorage","navigator","htmlTag"],lookupLocalStorage:"bambutrack_language",caches:["localStorage"]},interpolation:{escapeValue:!1},react:{useSuspense:!1}});const hj=[{code:"en",name:"English",nativeName:"English"},{code:"de",name:"German",nativeName:"Deutsch"}];var pj="popstate";function eie(t={}){function e(i,r){let{pathname:a,search:s,hash:o}=i.location;return lN("",{pathname:a,search:s,hash:o},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(i,r){return typeof r=="string"?r:P0(r)}return nie(e,n,null,t)}function mi(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function bo(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function tie(){return Math.random().toString(36).substring(2,10)}function mj(t,e){return{usr:t.state,key:t.key,idx:e}}function lN(t,e,n=null,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?cm(e):e,state:n,key:e&&e.key||i||tie()}}function P0({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function cm(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substring(i),t=t.substring(0,i)),t&&(e.pathname=t)}return e}function nie(t,e,n,i={}){let{window:r=document.defaultView,v5Compat:a=!1}=i,s=r.history,o="POP",l=null,c=d();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function d(){return(s.state||{idx:null}).idx}function f(){o="POP";let v=d(),x=v==null?null:v-c;c=v,l&&l({action:o,location:_.location,delta:x})}function p(v,x){o="PUSH";let M=lN(_.location,v,x);c=d()+1;let w=mj(M,c),T=_.createHref(M);try{s.pushState(w,"",T)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;r.location.assign(T)}a&&l&&l({action:o,location:_.location,delta:1})}function m(v,x){o="REPLACE";let M=lN(_.location,v,x);c=d();let w=mj(M,c),T=_.createHref(M);s.replaceState(w,"",T),a&&l&&l({action:o,location:_.location,delta:0})}function y(v){return iie(v)}let _={get action(){return o},get location(){return t(r,s)},listen(v){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(pj,f),l=v,()=>{r.removeEventListener(pj,f),l=null}},createHref(v){return e(r,v)},createURL:y,encodeLocation(v){let x=y(v);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:m,go(v){return s.go(v)}};return _}function iie(t,e=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),mi(n,"No window.location.(origin|href) available to create URL");let i=typeof t=="string"?t:P0(t);return i=i.replace(/ $/,"%20"),!e&&i.startsWith("//")&&(i=n+i),new URL(i,n)}function uG(t,e,n="/"){return rie(t,e,n,!1)}function rie(t,e,n,i){let r=typeof e=="string"?cm(e):e,a=cc(r.pathname||"/",n);if(a==null)return null;let s=dG(t);aie(s);let o=null;for(let l=0;o==null&&l{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(i)&&l)return;mi(d.relativePath.startsWith(i),`Absolute route path "${d.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(i.length)}let f=tc([i,d.relativePath]),p=n.concat(d);s.children&&s.children.length>0&&(mi(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),dG(s.children,e,p,f,l)),!(s.path==null&&!s.index)&&e.push({path:f,score:fie(f,s.index),routesMeta:p})};return t.forEach((s,o)=>{if(s.path===""||!s.path?.includes("?"))a(s,o);else for(let l of fG(s.path))a(s,o,!0,l)}),e}function fG(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,r=n.endsWith("?"),a=n.replace(/\?$/,"");if(i.length===0)return r?[a,""]:[a];let s=fG(i.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),r&&o.push(...s),o.map(l=>t.startsWith("/")&&l===""?"/":l)}function aie(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:hie(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var sie=/^:[\w-]+$/,oie=3,lie=2,cie=1,uie=10,die=-2,gj=t=>t==="*";function fie(t,e){let n=t.split("/"),i=n.length;return n.some(gj)&&(i+=die),e&&(i+=lie),n.filter(r=>!gj(r)).reduce((r,a)=>r+(sie.test(a)?oie:a===""?cie:uie),i)}function hie(t,e){return t.length===e.length&&t.slice(0,-1).every((i,r)=>i===e[r])?t[t.length-1]-e[e.length-1]:0}function pie(t,e,n=!1){let{routesMeta:i}=t,r={},a="/",s=[];for(let o=0;o{if(d==="*"){let y=o[p]||"";s=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const m=o[p];return f&&!m?c[d]=void 0:c[d]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:s,pattern:t}}function mie(t,e=!1,n=!0){bo(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let i=[],r="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(i.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(i.push({paramName:"*"}),r+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":t!==""&&t!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),i]}function gie(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return bo(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function cc(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}var xie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vie=t=>xie.test(t);function yie(t,e="/"){let{pathname:n,search:i="",hash:r=""}=typeof t=="string"?cm(t):t,a;if(n)if(vie(n))a=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),bo(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${n}`)}n.startsWith("/")?a=xj(n.substring(1),"/"):a=xj(n,e)}else a=e;return{pathname:a,search:Sie(i),hash:wie(r)}}function xj(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function wA(t,e,n,i){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function bie(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function hG(t){let e=bie(t);return e.map((n,i)=>i===e.length-1?n.pathname:n.pathnameBase)}function pG(t,e,n,i=!1){let r;typeof t=="string"?r=cm(t):(r={...t},mi(!r.pathname||!r.pathname.includes("?"),wA("?","pathname","search",r)),mi(!r.pathname||!r.pathname.includes("#"),wA("#","pathname","hash",r)),mi(!r.search||!r.search.includes("#"),wA("#","search","hash",r)));let a=t===""||r.pathname==="",s=a?"/":r.pathname,o;if(s==null)o=n;else{let f=e.length-1;if(!i&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;r.pathname=p.join("/")}o=f>=0?e[f]:"/"}let l=yie(r,o),c=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}var tc=t=>t.join("/").replace(/\/\/+/g,"/"),_ie=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Sie=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,wie=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Mie(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var mG=["POST","PUT","PATCH","DELETE"];new Set(mG);var Eie=["GET",...mG];new Set(Eie);var um=E.createContext(null);um.displayName="DataRouter";var jS=E.createContext(null);jS.displayName="DataRouterState";E.createContext(!1);var gG=E.createContext({isTransitioning:!1});gG.displayName="ViewTransition";var Aie=E.createContext(new Map);Aie.displayName="Fetchers";var Tie=E.createContext(null);Tie.displayName="Await";var al=E.createContext(null);al.displayName="Navigation";var Ex=E.createContext(null);Ex.displayName="Location";var wo=E.createContext({outlet:null,matches:[],isDataRoute:!1});wo.displayName="Route";var gP=E.createContext(null);gP.displayName="RouteError";function Cie(t,{relative:e}={}){mi(Ax(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:i}=E.useContext(al),{hash:r,pathname:a,search:s}=Tx(t,{relative:e}),o=a;return n!=="/"&&(o=a==="/"?n:tc([n,a])),i.createHref({pathname:o,search:s,hash:r})}function Ax(){return E.useContext(Ex)!=null}function nd(){return mi(Ax(),"useLocation() may be used only in the context of a component."),E.useContext(Ex).location}var xG="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function vG(t){E.useContext(al).static||E.useLayoutEffect(t)}function xP(){let{isDataRoute:t}=E.useContext(wo);return t?$ie():Nie()}function Nie(){mi(Ax(),"useNavigate() may be used only in the context of a component.");let t=E.useContext(um),{basename:e,navigator:n}=E.useContext(al),{matches:i}=E.useContext(wo),{pathname:r}=nd(),a=JSON.stringify(hG(i)),s=E.useRef(!1);return vG(()=>{s.current=!0}),E.useCallback((l,c={})=>{if(bo(s.current,xG),!s.current)return;if(typeof l=="number"){n.go(l);return}let d=pG(l,JSON.parse(a),r,c.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:tc([e,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[e,n,a,r,t])}var Rie=E.createContext(null);function Pie(t){let e=E.useContext(wo).outlet;return E.useMemo(()=>e&&E.createElement(Rie.Provider,{value:t},e),[e,t])}function Die(){let{matches:t}=E.useContext(wo),e=t[t.length-1];return e?e.params:{}}function Tx(t,{relative:e}={}){let{matches:n}=E.useContext(wo),{pathname:i}=nd(),r=JSON.stringify(hG(n));return E.useMemo(()=>pG(t,JSON.parse(r),i,e==="path"),[t,r,i,e])}function kie(t,e){return yG(t,e)}function yG(t,e,n,i,r){mi(Ax(),"useRoutes() may be used only in the context of a component.");let{navigator:a}=E.useContext(al),{matches:s}=E.useContext(wo),o=s[s.length-1],l=o?o.params:{},c=o?o.pathname:"/",d=o?o.pathnameBase:"/",f=o&&o.route;{let M=f&&f.path||"";bG(c,!f||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${c}" (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 p=nd(),m;if(e){let M=typeof e=="string"?cm(e):e;mi(d==="/"||M.pathname?.startsWith(d),`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 "${d}" but pathname "${M.pathname}" was given in the \`location\` prop.`),m=M}else m=p;let y=m.pathname||"/",_=y;if(d!=="/"){let M=d.replace(/^\//,"").split("/");_="/"+y.replace(/^\//,"").split("/").slice(M.length).join("/")}let v=uG(t,{pathname:_});bo(f||v!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),bo(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.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 x=jie(v&&v.map(M=>Object.assign({},M,{params:Object.assign({},l,M.params),pathname:tc([d,a.encodeLocation?a.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?d:tc([d,a.encodeLocation?a.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),s,n,i,r);return e&&x?E.createElement(Ex.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},x):x}function Oie(){let t=Vie(),e=Mie(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:i},a={padding:"2px 4px",backgroundColor:i},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:a},"ErrorBoundary")," or"," ",E.createElement("code",{style:a},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},e),n?E.createElement("pre",{style:r},n):null,s)}var Lie=E.createElement(Oie,null),Iie=class extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){return this.state.error!==void 0?E.createElement(wo.Provider,{value:this.props.routeContext},E.createElement(gP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Uie({routeContext:t,match:e,children:n}){let i=E.useContext(um);return i&&i.static&&i.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=e.route.id),E.createElement(wo.Provider,{value:t},n)}function jie(t,e=[],n=null,i=null,r=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let a=t,s=n?.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&s?.[f.route.id]!==void 0);mi(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let o=!1,l=-1;if(n)for(let d=0;d=0?a=a.slice(0,l+1):a=[a[0]];break}}}let c=n&&i?(d,f)=>{i(d,{location:n.location,params:n.matches?.[0]?.params??{},errorInfo:f})}:void 0;return a.reduceRight((d,f,p)=>{let m,y=!1,_=null,v=null;n&&(m=s&&f.route.id?s[f.route.id]:void 0,_=f.route.errorElement||Lie,o&&(l<0&&p===0?(bG("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,v=null):l===p&&(y=!0,v=f.route.hydrateFallbackElement||null)));let x=e.concat(a.slice(0,p+1)),M=()=>{let w;return m?w=_:y?w=v:f.route.Component?w=E.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,E.createElement(Uie,{match:f,routeContext:{outlet:d,matches:x,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?E.createElement(Iie,{location:n.location,revalidation:n.revalidation,component:_,error:m,children:M(),routeContext:{outlet:null,matches:x,isDataRoute:!0},onError:c}):M()},null)}function vP(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fie(t){let e=E.useContext(um);return mi(e,vP(t)),e}function zie(t){let e=E.useContext(jS);return mi(e,vP(t)),e}function Bie(t){let e=E.useContext(wo);return mi(e,vP(t)),e}function yP(t){let e=Bie(t),n=e.matches[e.matches.length-1];return mi(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function Hie(){return yP("useRouteId")}function Vie(){let t=E.useContext(gP),e=zie("useRouteError"),n=yP("useRouteError");return t!==void 0?t:e.errors?.[n]}function $ie(){let{router:t}=Fie("useNavigate"),e=yP("useNavigate"),n=E.useRef(!1);return vG(()=>{n.current=!0}),E.useCallback(async(r,a={})=>{bo(n.current,xG),n.current&&(typeof r=="number"?t.navigate(r):await t.navigate(r,{fromRouteId:e,...a}))},[t,e])}var vj={};function bG(t,e,n){!e&&!vj[t]&&(vj[t]=!0,bo(!1,n))}E.memo(Gie);function Gie({routes:t,future:e,state:n,unstable_onError:i}){return yG(t,void 0,n,i,e)}function Wie(t){return Pie(t.context)}function Lo(t){mi(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function qie({basename:t="/",children:e=null,location:n,navigationType:i="POP",navigator:r,static:a=!1}){mi(!Ax(),"You cannot render a inside another . You should never have more than one in your app.");let s=t.replace(/^\/*/,"/"),o=E.useMemo(()=>({basename:s,navigator:r,static:a,future:{}}),[s,r,a]);typeof n=="string"&&(n=cm(n));let{pathname:l="/",search:c="",hash:d="",state:f=null,key:p="default"}=n,m=E.useMemo(()=>{let y=cc(l,s);return y==null?null:{location:{pathname:y,search:c,hash:d,state:f,key:p},navigationType:i}},[s,l,c,d,f,p,i]);return bo(m!=null,` is not able to match the URL "${l}${c}${d}" because it does not start with the basename, so the won't render anything.`),m==null?null:E.createElement(al.Provider,{value:o},E.createElement(Ex.Provider,{children:e,value:m}))}function Xie({children:t,location:e}){return kie(cN(t),e)}function cN(t,e=[]){let n=[];return E.Children.forEach(t,(i,r)=>{if(!E.isValidElement(i))return;let a=[...e,r];if(i.type===E.Fragment){n.push.apply(n,cN(i.props.children,a));return}mi(i.type===Lo,`[${typeof i.type=="string"?i.type:i.type.name}] is not a component. All component children of must be a or `),mi(!i.props.index||!i.props.children,"An index route cannot have child routes.");let s={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(s.children=cN(i.props.children,a)),n.push(s)}),n}var i_="get",r_="application/x-www-form-urlencoded";function FS(t){return t!=null&&typeof t.tagName=="string"}function Kie(t){return FS(t)&&t.tagName.toLowerCase()==="button"}function Yie(t){return FS(t)&&t.tagName.toLowerCase()==="form"}function Zie(t){return FS(t)&&t.tagName.toLowerCase()==="input"}function Qie(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Jie(t,e){return t.button===0&&(!e||e==="_self")&&!Qie(t)}var Ey=null;function ere(){if(Ey===null)try{new FormData(document.createElement("form"),0),Ey=!1}catch{Ey=!0}return Ey}var tre=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function MA(t){return t!=null&&!tre.has(t)?(bo(!1,`"${t}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${r_}"`),null):t}function nre(t,e){let n,i,r,a,s;if(Yie(t)){let o=t.getAttribute("action");i=o?cc(o,e):null,n=t.getAttribute("method")||i_,r=MA(t.getAttribute("enctype"))||r_,a=new FormData(t)}else if(Kie(t)||Zie(t)&&(t.type==="submit"||t.type==="image")){let o=t.form;if(o==null)throw new Error('Cannot submit a