(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function s(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(d){if(d.ep)return;d.ep=!0;const f=s(d);fetch(d.href,f)}})();function Kv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Qo={exports:{}},Es={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ap;function Xv(){if(Ap)return Es;Ap=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,d,f){var h=null;if(f!==void 0&&(h=""+f),d.key!==void 0&&(h=""+d.key),"key"in d){f={};for(var _ in d)_!=="key"&&(f[_]=d[_])}else f=d;return d=f.ref,{$$typeof:n,type:r,key:h,ref:d!==void 0?d:null,props:f}}return Es.Fragment=i,Es.jsx=s,Es.jsxs=s,Es}var Cp;function Zv(){return Cp||(Cp=1,Qo.exports=Xv()),Qo.exports}var u=Zv(),Ko={exports:{}},ge={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Np;function Vv(){if(Np)return ge;Np=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),w=Symbol.iterator;function O(k){return k===null||typeof k!="object"?null:(k=w&&k[w]||k["@@iterator"],typeof k=="function"?k:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,M={};function L(k,H,J){this.props=k,this.context=H,this.refs=M,this.updater=J||T}L.prototype.isReactComponent={},L.prototype.setState=function(k,H){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,H,"setState")},L.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function F(){}F.prototype=L.prototype;function V(k,H,J){this.props=k,this.context=H,this.refs=M,this.updater=J||T}var ee=V.prototype=new F;ee.constructor=V,R(ee,L.prototype),ee.isPureReactComponent=!0;var ne=Array.isArray;function he(){}var X={H:null,A:null,T:null,S:null},ie=Object.prototype.hasOwnProperty;function ae(k,H,J){var W=J.ref;return{$$typeof:n,type:k,key:H,ref:W!==void 0?W:null,props:J}}function be(k,H){return ae(k.type,H,k.props)}function Be(k){return typeof k=="object"&&k!==null&&k.$$typeof===n}function ze(k){var H={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(J){return H[J]})}var K=/\/+/g;function re(k,H){return typeof k=="object"&&k!==null&&k.key!=null?ze(""+k.key):H.toString(36)}function U(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(he,he):(k.status="pending",k.then(function(H){k.status==="pending"&&(k.status="fulfilled",k.value=H)},function(H){k.status==="pending"&&(k.status="rejected",k.reason=H)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function C(k,H,J,W,de){var _e=typeof k;(_e==="undefined"||_e==="boolean")&&(k=null);var Z=!1;if(k===null)Z=!0;else switch(_e){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(k.$$typeof){case n:case i:Z=!0;break;case x:return Z=k._init,C(Z(k._payload),H,J,W,de)}}if(Z)return de=de(k),Z=W===""?"."+re(k,0):W,ne(de)?(J="",Z!=null&&(J=Z.replace(K,"$&/")+"/"),C(de,H,J,"",function(Oe){return Oe})):de!=null&&(Be(de)&&(de=be(de,J+(de.key==null||k&&k.key===de.key?"":(""+de.key).replace(K,"$&/")+"/")+Z)),H.push(de)),1;Z=0;var P=W===""?".":W+":";if(ne(k))for(var Me=0;Me>>1,Se=C[me];if(0>>1;med(J,le))Wd(de,J)?(C[me]=de,C[W]=le,me=W):(C[me]=J,C[H]=le,me=H);else if(Wd(de,le))C[me]=de,C[W]=le,me=W;else break e}}return Q}function d(C,Q){var le=C.sortIndex-Q.sortIndex;return le!==0?le:C.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,_=h.now();n.unstable_now=function(){return h.now()-_}}var p=[],g=[],x=1,S=null,w=3,O=!1,T=!1,R=!1,M=!1,L=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function ee(C){for(var Q=s(g);Q!==null;){if(Q.callback===null)r(g);else if(Q.startTime<=C)r(g),Q.sortIndex=Q.expirationTime,i(p,Q);else break;Q=s(g)}}function ne(C){if(R=!1,ee(C),!T)if(s(p)!==null)T=!0,he||(he=!0,ze());else{var Q=s(g);Q!==null&&U(ne,Q.startTime-C)}}var he=!1,X=-1,ie=5,ae=-1;function be(){return M?!0:!(n.unstable_now()-aeC&&be());){var me=S.callback;if(typeof me=="function"){S.callback=null,w=S.priorityLevel;var Se=me(S.expirationTime<=C);if(C=n.unstable_now(),typeof Se=="function"){S.callback=Se,ee(C),Q=!0;break t}S===s(p)&&r(p),ee(C)}else r(p);S=s(p)}if(S!==null)Q=!0;else{var k=s(g);k!==null&&U(ne,k.startTime-C),Q=!1}}break e}finally{S=null,w=le,O=!1}Q=void 0}}finally{Q?ze():he=!1}}}var ze;if(typeof V=="function")ze=function(){V(Be)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,re=K.port2;K.port1.onmessage=Be,ze=function(){re.postMessage(null)}}else ze=function(){L(Be,0)};function U(C,Q){X=L(function(){C(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(C){C.callback=null},n.unstable_forceFrameRate=function(C){0>C||125me?(C.sortIndex=le,i(g,C),s(p)===null&&C===s(g)&&(R?(F(X),X=-1):R=!0,U(ne,le-me))):(C.sortIndex=Se,i(p,C),T||O||(T=!0,he||(he=!0,ze()))),C},n.unstable_shouldYield=be,n.unstable_wrapCallback=function(C){var Q=w;return function(){var le=w;w=Q;try{return C.apply(this,arguments)}finally{w=le}}}})(Vo)),Vo}var zp;function Fv(){return zp||(zp=1,Zo.exports=Iv()),Zo.exports}var Jo={exports:{}},Et={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Mp;function Wv(){if(Mp)return Et;Mp=1;var n=Ad();function i(p){var g="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Jo.exports=Wv(),Jo.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var $p;function eb(){if($p)return Ts;$p=1;var n=Fv(),i=Ad(),s=Pv();function r(e){var t="https://react.dev/errors/"+e;if(1Se||(e.current=me[Se],me[Se]=null,Se--)}function J(e,t){Se++,me[Se]=e.current,e.current=t}var W=k(null),de=k(null),_e=k(null),Z=k(null);function P(e,t){switch(J(_e,t),J(de,e),J(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fh(t),e=Wh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(W),J(W,e)}function Me(){H(W),H(de),H(_e)}function Oe(e){e.memoizedState!==null&&J(Z,e);var t=W.current,a=Wh(t,e.type);t!==a&&(J(de,e),J(W,a))}function xe(e){de.current===e&&(H(W),H(de)),Z.current===e&&(H(Z),xs._currentValue=le)}var At,_t;function Ae(e){if(At===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);At=t&&t[1]||"",_t=-1)":-1c||j[l]!==D[c]){var B=` `+j[l].replace(" at new "," at ");return e.displayName&&B.includes("")&&(B=B.replace("",e.displayName)),B}while(1<=l&&0<=c);break}}}finally{nt=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ae(a):""}function ji(e,t){switch(e.tag){case 26:case 27:case 5:return Ae(e.type);case 16:return Ae("Lazy");case 13:return e.child!==t&&t!==null?Ae("Suspense Fallback"):Ae("Suspense");case 19:return Ae("SuspenseList");case 0:case 15:return Yn(e.type,!1);case 11:return Yn(e.type.render,!1);case 1:return Yn(e.type,!0);case 31:return Ae("Activity");default:return""}}function Tl(e){try{var t="",a=null;do t+=ji(e,a),a=e,e=e.return;while(e);return t}catch(l){return` Error generating stack: `+l.message+` `+l.stack}}var wi=Object.prototype.hasOwnProperty,ki=n.unstable_scheduleCallback,bt=n.unstable_cancelCallback,Ks=n.unstable_shouldYield,ke=n.unstable_requestPaint,pt=n.unstable_now,Pt=n.unstable_getCurrentPriorityLevel,en=n.unstable_ImmediatePriority,Ia=n.unstable_UserBlockingPriority,Dt=n.unstable_NormalPriority,Ct=n.unstable_LowPriority,Fa=n.unstable_IdlePriority,Qn=n.log,Wa=n.unstable_setDisableYieldValue,Kn=null,Xe=null;function Tn(e){if(typeof Qn=="function"&&Wa(e),Xe&&typeof Xe.setStrictMode=="function")try{Xe.setStrictMode(Kn,e)}catch{}}var kt=Math.clz32?Math.clz32:Ei,ma=Math.log,Hc=Math.LN2;function Ei(e){return e>>>=0,e===0?32:31-(ma(e)/Hc|0)|0}var Al=256,Cl=262144,Nl=4194304;function Xn(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Rt(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var c=0,o=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var y=l&134217727;return y!==0?(l=y&~o,l!==0?c=Xn(l):(m&=y,m!==0?c=Xn(m):a||(a=y&~e,a!==0&&(c=Xn(a))))):(y=l&~o,y!==0?c=Xn(y):m!==0?c=Xn(m):a||(a=l&~e,a!==0&&(c=Xn(a)))),c===0?0:t!==0&&t!==c&&(t&o)===0&&(o=c&-c,a=t&-t,o>=a||o===32&&(a&4194048)!==0)?t:c}function Le(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ce(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Dl(){var e=Nl;return Nl<<=1,(Nl&62914560)===0&&(Nl=4194304),e}function Xs(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function tn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Fd(e,t,a,l,c,o){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,j=e.expirationTimes,D=e.hiddenUpdates;for(a=m&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Fs=/[\n"\\]/g;function Mt(e){return e.replace(Fs,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mi(e,t,a,l,c,o,m,y){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+zt(t)):e.value!==""+zt(t)&&(e.value=""+zt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Oi(e,m,zt(t)):a!=null?Oi(e,m,zt(a)):l!=null&&e.removeAttribute("value"),c==null&&o!=null&&(e.defaultChecked=!!o),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+zt(y):e.removeAttribute("name")}function Ws(e,t,a,l,c,o,m,y){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||a!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Ri(e);return}a=a!=null?""+zt(a):"",t=t!=null?""+zt(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=y?e.checked:!!l,e.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Ri(e)}function Oi(e,t,a){t==="number"&&Pa(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function va(e,t,a,l){if(e=e.options,t){t={};for(var c=0;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ll=!1;if(nn)try{var wa={};Object.defineProperty(wa,"passive",{get:function(){Ll=!0}}),window.addEventListener("test",wa,wa),window.removeEventListener("test",wa,wa)}catch{Ll=!1}var v=null,I=null,ue=null;function Re(){if(ue)return ue;var e,t=I,a=t.length,l,c="value"in v?v.value:v.textContent,o=c.length;for(e=0;e=Yi),af=" ",lf=!1;function sf(e,t){switch(e){case"keyup":return m_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ul=!1;function p_(e,t){switch(e){case"compositionend":return rf(t);case"keypress":return t.which!==32?null:(lf=!0,af);case"textInput":return e=t.data,e===af&&lf?null:e;default:return null}}function g_(e,t){if(Ul)return e==="compositionend"||!Jc&&sf(e,t)?(e=Re(),ue=I=v=null,Ul=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=pf(a)}}function yf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _f(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Pa(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Pa(e.document)}return t}function Wc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var w_=nn&&"documentMode"in document&&11>=document.documentMode,Bl=null,Pc=null,Zi=null,eu=!1;function vf(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;eu||Bl==null||Bl!==Pa(l)||(l=Bl,"selectionStart"in l&&Wc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Zi&&Xi(Zi,l)||(Zi=l,l=Xr(Pc,"onSelect"),0>=m,c-=m,On=1<<32-kt(t)+c|a<ve?(Te=se,se=null):Te=se.sibling;var qe=z(A,se,N[ve],G);if(qe===null){se===null&&(se=Te);break}e&&se&&qe.alternate===null&&t(A,se),E=o(qe,E,ve),$e===null?ce=qe:$e.sibling=qe,$e=qe,se=Te}if(ve===N.length)return a(A,se),Ne&&Jn(A,ve),ce;if(se===null){for(;veve?(Te=se,se=null):Te=se.sibling;var Xa=z(A,se,qe.value,G);if(Xa===null){se===null&&(se=Te);break}e&&se&&Xa.alternate===null&&t(A,se),E=o(Xa,E,ve),$e===null?ce=Xa:$e.sibling=Xa,$e=Xa,se=Te}if(qe.done)return a(A,se),Ne&&Jn(A,ve),ce;if(se===null){for(;!qe.done;ve++,qe=N.next())qe=Y(A,qe.value,G),qe!==null&&(E=o(qe,E,ve),$e===null?ce=qe:$e.sibling=qe,$e=qe);return Ne&&Jn(A,ve),ce}for(se=l(se);!qe.done;ve++,qe=N.next())qe=$(se,A,ve,qe.value,G),qe!==null&&(e&&qe.alternate!==null&&se.delete(qe.key===null?ve:qe.key),E=o(qe,E,ve),$e===null?ce=qe:$e.sibling=qe,$e=qe);return e&&se.forEach(function(Qv){return t(A,Qv)}),Ne&&Jn(A,ve),ce}function Ke(A,E,N,G){if(typeof N=="object"&&N!==null&&N.type===R&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case O:e:{for(var ce=N.key;E!==null;){if(E.key===ce){if(ce=N.type,ce===R){if(E.tag===7){a(A,E.sibling),G=c(E,N.props.children),G.return=A,A=G;break e}}else if(E.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===ie&&ul(ce)===E.type){a(A,E.sibling),G=c(E,N.props),Pi(G,N),G.return=A,A=G;break e}a(A,E);break}else t(A,E);E=E.sibling}N.type===R?(G=ll(N.props.children,A.mode,G,N.key),G.return=A,A=G):(G=ur(N.type,N.key,N.props,null,A.mode,G),Pi(G,N),G.return=A,A=G)}return m(A);case T:e:{for(ce=N.key;E!==null;){if(E.key===ce)if(E.tag===4&&E.stateNode.containerInfo===N.containerInfo&&E.stateNode.implementation===N.implementation){a(A,E.sibling),G=c(E,N.children||[]),G.return=A,A=G;break e}else{a(A,E);break}else t(A,E);E=E.sibling}G=ru(N,A.mode,G),G.return=A,A=G}return m(A);case ie:return N=ul(N),Ke(A,E,N,G)}if(U(N))return te(A,E,N,G);if(ze(N)){if(ce=ze(N),typeof ce!="function")throw Error(r(150));return N=ce.call(N),fe(A,E,N,G)}if(typeof N.then=="function")return Ke(A,E,gr(N),G);if(N.$$typeof===V)return Ke(A,E,fr(A,N),G);yr(A,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,E!==null&&E.tag===6?(a(A,E.sibling),G=c(E,N),G.return=A,A=G):(a(A,E),G=su(N,A.mode,G),G.return=A,A=G),m(A)):a(A,E)}return function(A,E,N,G){try{Wi=0;var ce=Ke(A,E,N,G);return Fl=null,ce}catch(se){if(se===Il||se===hr)throw se;var $e=Xt(29,se,null,A.mode);return $e.lanes=G,$e.return=A,$e}finally{}}}var dl=Gf(!0),Yf=Gf(!1),Ca=!1;function vu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Da(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ue&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=cr(e),Ef(e,null,a),t}return rr(e,l,t,a),cr(e)}function es(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,pe(e,a)}}function Su(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var c=null,o=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};o===null?c=o=m:o=o.next=m,a=a.next}while(a!==null);o===null?c=o=t:o=o.next=t}else c=o=t;a={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var xu=!1;function ts(){if(xu){var e=Jl;if(e!==null)throw e}}function ns(e,t,a,l){xu=!1;var c=e.updateQueue;Ca=!1;var o=c.firstBaseUpdate,m=c.lastBaseUpdate,y=c.shared.pending;if(y!==null){c.shared.pending=null;var j=y,D=j.next;j.next=null,m===null?o=D:m.next=D,m=j;var B=e.alternate;B!==null&&(B=B.updateQueue,y=B.lastBaseUpdate,y!==m&&(y===null?B.firstBaseUpdate=D:y.next=D,B.lastBaseUpdate=j))}if(o!==null){var Y=c.baseState;m=0,B=D=j=null,y=o;do{var z=y.lane&-536870913,$=z!==y.lane;if($?(Ee&z)===z:(l&z)===z){z!==0&&z===Vl&&(xu=!0),B!==null&&(B=B.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var te=e,fe=y;z=t;var Ke=a;switch(fe.tag){case 1:if(te=fe.payload,typeof te=="function"){Y=te.call(Ke,Y,z);break e}Y=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=fe.payload,z=typeof te=="function"?te.call(Ke,Y,z):te,z==null)break e;Y=S({},Y,z);break e;case 2:Ca=!0}}z=y.callback,z!==null&&(e.flags|=64,$&&(e.flags|=8192),$=c.callbacks,$===null?c.callbacks=[z]:$.push(z))}else $={lane:z,tag:y.tag,payload:y.payload,callback:y.callback,next:null},B===null?(D=B=$,j=Y):B=B.next=$,m|=z;if(y=y.next,y===null){if(y=c.shared.pending,y===null)break;$=y,y=$.next,$.next=null,c.lastBaseUpdate=$,c.shared.pending=null}}while(!0);B===null&&(j=Y),c.baseState=j,c.firstBaseUpdate=D,c.lastBaseUpdate=B,o===null&&(c.shared.lanes=0),$a|=m,e.lanes=m,e.memoizedState=Y}}function Qf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Kf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;eo?o:8;var m=C.T,y={};C.T=y,Hu(e,!1,t,a);try{var j=c(),D=C.S;if(D!==null&&D(y,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var B=z_(j,l);is(e,t,B,Ft(e))}else is(e,t,l,Ft(e))}catch(Y){is(e,t,{then:function(){},status:"rejected",reason:Y},Ft())}finally{Q.p=o,m!==null&&y.types!==null&&(m.types=y.types),C.T=m}}function U_(){}function Uu(e,t,a,l){if(e.tag!==5)throw Error(r(476));var c=jm(e).queue;xm(e,c,t,le,a===null?U_:function(){return wm(e),a(l)})}function jm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:le},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wm(e){var t=jm(e);t.next===null&&(t=e.alternate.memoizedState),is(e,t.next.queue,{},Ft())}function Bu(){return xt(xs)}function km(){return ct().memoizedState}function Em(){return ct().memoizedState}function B_(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ft();e=Na(a);var l=Da(t,e,a);l!==null&&(Ut(l,t,a),es(l,t,a)),t={cache:pu()},e.payload=t;return}t=t.return}}function H_(e,t,a){var l=Ft();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Tr(e)?Am(t,a):(a=lu(e,t,a,l),a!==null&&(Ut(a,e,l),Cm(a,t,l)))}function Tm(e,t,a){var l=Ft();is(e,t,a,l)}function is(e,t,a,l){var c={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Tr(e))Am(t,c);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var m=t.lastRenderedState,y=o(m,a);if(c.hasEagerState=!0,c.eagerState=y,Kt(y,m))return rr(e,t,c,0),Ve===null&&sr(),!1}catch{}finally{}if(a=lu(e,t,c,l),a!==null)return Ut(a,e,l),Cm(a,t,l),!0}return!1}function Hu(e,t,a,l){if(l={lane:2,revertLane:bo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Tr(e)){if(t)throw Error(r(479))}else t=lu(e,a,l,2),t!==null&&Ut(t,e,2)}function Tr(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Am(e,t){Pl=br=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Cm(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,pe(e,a)}}var ss={readContext:xt,use:jr,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at};ss.useEffectEvent=at;var Nm={readContext:xt,use:jr,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:mm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,kr(4194308,4,ym.bind(null,t,e),a)},useLayoutEffect:function(e,t){return kr(4194308,4,e,t)},useInsertionEffect:function(e,t){kr(4,2,e,t)},useMemo:function(e,t){var a=Nt();t=t===void 0?null:t;var l=e();if(fl){Tn(!0);try{e()}finally{Tn(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Nt();if(a!==void 0){var c=a(t);if(fl){Tn(!0);try{a(t)}finally{Tn(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=H_.bind(null,ye,e),[l.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=Mu(e);var t=e.queue,a=Tm.bind(null,ye,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:qu,useDeferredValue:function(e,t){var a=Nt();return Lu(a,e,t)},useTransition:function(){var e=Mu(!1);return e=xm.bind(null,ye,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ye,c=Nt();if(Ne){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Ve===null)throw Error(r(349));(Ee&127)!==0||Ff(l,t,a)}c.memoizedState=a;var o={value:a,getSnapshot:t};return c.queue=o,mm(Pf.bind(null,l,o,e),[e]),l.flags|=2048,ti(9,{destroy:void 0},Wf.bind(null,l,o,a,t),null),a},useId:function(){var e=Nt(),t=Ve.identifierPrefix;if(Ne){var a=$n,l=On;a=(l&~(1<<32-kt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Sr++,0<\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?m.createElement(c,{is:l.is}):m.createElement(c)}}o[gt]=t,o[Ze]=l;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)o.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=o;e:switch(wt(o,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ta(t)}}return Ie(t),to(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ta(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=_e.current,Xl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,c=St,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[gt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Jh(e.nodeValue,a)),e||Ta(t,!0)}else e=Zr(e).createTextNode(l),e[gt]=t,t.stateNode=e}return Ie(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Xl(t),a!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[gt]=t}else il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ie(t),e=!1}else a=du(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Vt(t),t):(Vt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ie(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Xl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[gt]=t}else il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ie(t),c=!1}else c=du(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Vt(t),t):(Vt(t),null)}return Vt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==c&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Rr(t,t.updateQueue),Ie(t),null);case 4:return Me(),e===null&&wo(t.stateNode.containerInfo),Ie(t),null;case 10:return Fn(t.type),Ie(t),null;case 19:if(H(rt),l=t.memoizedState,l===null)return Ie(t),null;if(c=(t.flags&128)!==0,o=l.rendering,o===null)if(c)cs(l,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=vr(e),o!==null){for(t.flags|=128,cs(l,!1),e=o.updateQueue,t.updateQueue=e,Rr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Tf(a,e),a=a.sibling;return J(rt,rt.current&1|2),Ne&&Jn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&pt()>qr&&(t.flags|=128,c=!0,cs(l,!1),t.lanes=4194304)}else{if(!c)if(e=vr(o),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Rr(t,e),cs(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!Ne)return Ie(t),null}else 2*pt()-l.renderingStartTime>qr&&a!==536870912&&(t.flags|=128,c=!0,cs(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(e=l.last,e!==null?e.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=pt(),e.sibling=null,a=rt.current,J(rt,c?a&1|2:a&1),Ne&&Jn(t,l.treeForkCount),e):(Ie(t),null);case 22:case 23:return Vt(t),wu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ie(t),t.subtreeFlags&6&&(t.flags|=8192)):Ie(t),a=t.updateQueue,a!==null&&Rr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&H(cl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Fn(ot),Ie(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function X_(e,t){switch(uu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fn(ot),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(Vt(t),t.alternate===null)throw Error(r(340));il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(rt),null;case 4:return Me(),null;case 10:return Fn(t.type),null;case 22:case 23:return Vt(t),wu(),e!==null&&H(cl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Fn(ot),null;case 25:return null;default:return null}}function eh(e,t){switch(uu(t),t.tag){case 3:Fn(ot),Me();break;case 26:case 27:case 5:xe(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&Vt(t);break;case 13:Vt(t);break;case 19:H(rt);break;case 10:Fn(t.type);break;case 22:case 23:Vt(t),wu(),e!==null&&H(cl);break;case 24:Fn(ot)}}function us(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var c=l.next;a=c;do{if((a.tag&e)===e){l=void 0;var o=a.create,m=a.inst;l=o(),m.destroy=l}a=a.next}while(a!==c)}}catch(y){Ge(t,t.return,y)}}function Ma(e,t,a){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var o=c.next;l=o;do{if((l.tag&e)===e){var m=l.inst,y=m.destroy;if(y!==void 0){m.destroy=void 0,c=t;var j=a,D=y;try{D()}catch(B){Ge(c,j,B)}}}l=l.next}while(l!==o)}}catch(B){Ge(t,t.return,B)}}function th(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Kf(t,a)}catch(l){Ge(e,e.return,l)}}}function nh(e,t,a){a.props=ml(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ge(e,t,l)}}function os(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(c){Ge(e,t,c)}}function qn(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(c){Ge(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(c){Ge(e,t,c)}else a.current=null}function ah(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(c){Ge(e,e.return,c)}}function no(e,t,a){try{var l=e.stateNode;hv(l,e.type,a,t),l[Ze]=t}catch(c){Ge(e,e.return,c)}}function lh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ha(e.type)||e.tag===4}function ao(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ha(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lo(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Gt));else if(l!==4&&(l===27&&Ha(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(lo(e,t,a),e=e.sibling;e!==null;)lo(e,t,a),e=e.sibling}function zr(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ha(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(zr(e,t,a),e=e.sibling;e!==null;)zr(e,t,a),e=e.sibling}function ih(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);wt(t,l,a),t[gt]=e,t[Ze]=a}catch(o){Ge(e,e.return,o)}}var na=!1,mt=!1,io=!1,sh=typeof WeakSet=="function"?WeakSet:Set,vt=null;function Z_(e,t){if(e=e.containerInfo,To=ec,e=_f(e),Wc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var c=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var m=0,y=-1,j=-1,D=0,B=0,Y=e,z=null;t:for(;;){for(var $;Y!==a||c!==0&&Y.nodeType!==3||(y=m+c),Y!==o||l!==0&&Y.nodeType!==3||(j=m+l),Y.nodeType===3&&(m+=Y.nodeValue.length),($=Y.firstChild)!==null;)z=Y,Y=$;for(;;){if(Y===e)break t;if(z===a&&++D===c&&(y=m),z===o&&++B===l&&(j=m),($=Y.nextSibling)!==null)break;Y=z,z=Y.parentNode}Y=$}a=y===-1||j===-1?null:{start:y,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ao={focusedElem:e,selectionRange:a},ec=!1,vt=t;vt!==null;)if(t=vt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,vt=e;else for(;vt!==null;){switch(t=vt,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a title"))),wt(o,l,a),o[gt]=e,it(o),l=o;break e;case"link":var m=fp("link","href",c).get(l+(a.href||""));if(m){for(var y=0;yKe&&(m=Ke,Ke=fe,fe=m);var A=gf(y,fe),E=gf(y,Ke);if(A&&E&&($.rangeCount!==1||$.anchorNode!==A.node||$.anchorOffset!==A.offset||$.focusNode!==E.node||$.focusOffset!==E.offset)){var N=Y.createRange();N.setStart(A.node,A.offset),$.removeAllRanges(),fe>Ke?($.addRange(N),$.extend(E.node,E.offset)):(N.setEnd(E.node,E.offset),$.addRange(N))}}}}for(Y=[],$=y;$=$.parentNode;)$.nodeType===1&&Y.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;ya?32:a,C.T=null,a=mo,mo=null;var o=La,m=ra;if(yt=0,si=La=null,ra=0,(Ue&6)!==0)throw Error(r(331));var y=Ue;if(Ue|=4,yh(o.current),hh(o,o.current,m,a),Ue=y,gs(0,!1),Xe&&typeof Xe.onPostCommitFiberRoot=="function")try{Xe.onPostCommitFiberRoot(Kn,o)}catch{}return!0}finally{Q.p=c,C.T=l,Oh(e,t)}}function qh(e,t,a){t=ln(a,t),t=Ku(e.stateNode,t,2),e=Da(e,t,2),e!==null&&(tn(e,2),Ln(e))}function Ge(e,t,a){if(e.tag===3)qh(e,e,a);else for(;t!==null;){if(t.tag===3){qh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(qa===null||!qa.has(l))){e=ln(a,e),a=Lm(2),l=Da(t,a,2),l!==null&&(Um(a,l,t,e),tn(l,2),Ln(l));break}}t=t.return}}function yo(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new I_;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(a)||(co=!0,c.add(a),e=tv.bind(null,e,t,a),t.then(e,e))}function tv(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ve===e&&(Ee&a)===a&&(lt===4||lt===3&&(Ee&62914560)===Ee&&300>pt()-$r?(Ue&2)===0&&ri(e,0):uo|=a,ii===Ee&&(ii=0)),Ln(e)}function Lh(e,t){t===0&&(t=Dl()),e=al(e,t),e!==null&&(tn(e,t),Ln(e))}function nv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Lh(e,a)}function av(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(a=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Lh(e,a)}function lv(e,t){return ki(e,t)}var Yr=null,ui=null,_o=!1,Qr=!1,vo=!1,Ba=0;function Ln(e){e!==ui&&e.next===null&&(ui===null?Yr=ui=e:ui=ui.next=e),Qr=!0,_o||(_o=!0,sv())}function gs(e,t){if(!vo&&Qr){vo=!0;do for(var a=!1,l=Yr;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var o=0;else{var m=l.suspendedLanes,y=l.pingedLanes;o=(1<<31-kt(42|e)+1)-1,o&=c&~(m&~y),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(a=!0,Gh(l,o))}else o=Ee,o=Rt(l,l===Ve?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||Le(l,o)||(a=!0,Gh(l,o));l=l.next}while(a);vo=!1}}function iv(){Uh()}function Uh(){Qr=_o=!1;var e=0;Ba!==0&&gv()&&(e=Ba);for(var t=pt(),a=null,l=Yr;l!==null;){var c=l.next,o=Bh(l,t);o===0?(l.next=null,a===null?Yr=c:a.next=c,c===null&&(ui=a)):(a=l,(e!==0||(o&3)!==0)&&(Qr=!0)),l=c}yt!==0&&yt!==5||gs(e),Ba!==0&&(Ba=0)}function Bh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,o=e.pendingLanes&-62914561;0y)break;var B=j.transferSize,Y=j.initiatorType;B&&Ih(Y)&&(j=j.responseEnd,m+=B*(j"u"?null:document;function cp(e,t,a){var l=oi;if(l&&typeof t=="string"&&t){var c=Mt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),rp.has(c)||(rp.add(c),e={rel:e,crossOrigin:a,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),wt(t,"link",e),it(t),l.head.appendChild(t)))}}function kv(e){ca.D(e),cp("dns-prefetch",e,null)}function Ev(e,t){ca.C(e,t),cp("preconnect",e,t)}function Tv(e,t,a){ca.L(e,t,a);var l=oi;if(l&&e&&t){var c='link[rel="preload"][as="'+Mt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+Mt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+Mt(a.imageSizes)+'"]')):c+='[href="'+Mt(e)+'"]';var o=c;switch(t){case"style":o=di(e);break;case"script":o=fi(e)}dn.has(o)||(e=S({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),dn.set(o,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(bs(o))||t==="script"&&l.querySelector(Ss(o))||(t=l.createElement("link"),wt(t,"link",e),it(t),l.head.appendChild(t)))}}function Av(e,t){ca.m(e,t);var a=oi;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Mt(l)+'"][href="'+Mt(e)+'"]',o=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=fi(e)}if(!dn.has(o)&&(e=S({rel:"modulepreload",href:e},t),dn.set(o,e),a.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ss(o)))return}l=a.createElement("link"),wt(l,"link",e),it(l),a.head.appendChild(l)}}}function Cv(e,t,a){ca.S(e,t,a);var l=oi;if(l&&e){var c=Dn(l).hoistableStyles,o=di(e);t=t||"default";var m=c.get(o);if(!m){var y={loading:0,preload:null};if(m=l.querySelector(bs(o)))y.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},a),(a=dn.get(o))&&Oo(e,a);var j=m=l.createElement("link");it(j),wt(j,"link",e),j._p=new Promise(function(D,B){j.onload=D,j.onerror=B}),j.addEventListener("load",function(){y.loading|=1}),j.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Jr(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:y},c.set(o,m)}}}function Nv(e,t){ca.X(e,t);var a=oi;if(a&&e){var l=Dn(a).hoistableScripts,c=fi(e),o=l.get(c);o||(o=a.querySelector(Ss(c)),o||(e=S({src:e,async:!0},t),(t=dn.get(c))&&$o(e,t),o=a.createElement("script"),it(o),wt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(c,o))}}function Dv(e,t){ca.M(e,t);var a=oi;if(a&&e){var l=Dn(a).hoistableScripts,c=fi(e),o=l.get(c);o||(o=a.querySelector(Ss(c)),o||(e=S({src:e,async:!0,type:"module"},t),(t=dn.get(c))&&$o(e,t),o=a.createElement("script"),it(o),wt(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(c,o))}}function up(e,t,a,l){var c=(c=_e.current)?Vr(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=di(a.href),a=Dn(c).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=di(a.href);var o=Dn(c).hoistableStyles,m=o.get(e);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,m),(o=c.querySelector(bs(e)))&&!o._p&&(m.instance=o,m.state.loading=5),dn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},dn.set(e,a),o||Rv(c,e,a,m.state))),t&&l===null)throw Error(r(528,""));return m}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=fi(a),a=Dn(c).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function di(e){return'href="'+Mt(e)+'"'}function bs(e){return'link[rel="stylesheet"]['+e+"]"}function op(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function Rv(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),wt(t,"link",a),it(t),e.head.appendChild(t))}function fi(e){return'[src="'+Mt(e)+'"]'}function Ss(e){return"script[async]"+e}function dp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Mt(a.href)+'"]');if(l)return t.instance=l,it(l),l;var c=S({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),it(l),wt(l,"style",c),Jr(l,a.precedence,e),t.instance=l;case"stylesheet":c=di(a.href);var o=e.querySelector(bs(c));if(o)return t.state.loading|=4,t.instance=o,it(o),o;l=op(a),(c=dn.get(c))&&Oo(l,c),o=(e.ownerDocument||e).createElement("link"),it(o);var m=o;return m._p=new Promise(function(y,j){m.onload=y,m.onerror=j}),wt(o,"link",l),t.state.loading|=4,Jr(o,a.precedence,e),t.instance=o;case"script":return o=fi(a.src),(c=e.querySelector(Ss(o)))?(t.instance=c,it(c),c):(l=a,(c=dn.get(o))&&(l=S({},a),$o(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),it(c),wt(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Jr(l,a.precedence,e));return t.instance}function Jr(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,o=c,m=0;m title"):null)}function zv(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function hp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Mv(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var c=di(l.href),o=t.querySelector(bs(c));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Fr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=o,it(o);return}o=t.ownerDocument||t,l=op(l),(c=dn.get(c))&&Oo(l,c),o=o.createElement("link"),it(o);var m=o;m._p=new Promise(function(y,j){m.onload=y,m.onerror=j}),wt(o,"link",l),a.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Fr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var qo=0;function Ov(e,t){return e.stylesheets&&e.count===0&&Pr(e,e.stylesheets),0qo?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function Fr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Wr=null;function Pr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Wr=new Map,t.forEach($v,e),Wr=null,Fr.call(e))}function $v(e,t){if(!(t.state.loading&4)){var a=Wr.get(e);if(a)var l=a.get(null);else{a=new Map,Wr.set(e,a);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Xo.exports=eb(),Xo.exports}var nb=tb();/** * react-router v7.17.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var Lp="popstate";function Up(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function ab(n={}){function i(d,f){let{pathname:h="/",search:_="",hash:p=""}=xl(d.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),od("",{pathname:h,search:_,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function s(d,f){let h=d.document.querySelector("base"),_="";if(h&&h.getAttribute("href")){let p=d.location.href,g=p.indexOf("#");_=g===-1?p:p.slice(0,g)}return _+"#"+(typeof f=="string"?f:Os(f))}function r(d,f){fn(d.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return ib(i,s,r,n)}function tt(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function fn(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function lb(){return Math.random().toString(36).substring(2,10)}function Bp(n,i){return{usr:n.state,key:n.key,idx:i,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function od(n,i,s=null,r,d){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?xl(i):i,state:s,key:i&&i.key||r||lb(),mask:d}}function Os({pathname:n="/",search:i="",hash:s=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function xl(n){let i={};if(n){let s=n.indexOf("#");s>=0&&(i.hash=n.substring(s),n=n.substring(0,s));let r=n.indexOf("?");r>=0&&(i.search=n.substring(r),n=n.substring(0,r)),n&&(i.pathname=n)}return i}function ib(n,i,s,r={}){let{window:d=document.defaultView,v5Compat:f=!1}=r,h=d.history,_="POP",p=null,g=x();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function x(){return(h.state||{idx:null}).idx}function S(){_="POP";let M=x(),L=M==null?null:M-g;g=M,p&&p({action:_,location:R.location,delta:L})}function w(M,L){_="PUSH";let F=Up(M)?M:od(R.location,M,L);s&&s(F,M),g=x()+1;let V=Bp(F,g),ee=R.createHref(F.mask||F);try{h.pushState(V,"",ee)}catch(ne){if(ne instanceof DOMException&&ne.name==="DataCloneError")throw ne;d.location.assign(ee)}f&&p&&p({action:_,location:R.location,delta:1})}function O(M,L){_="REPLACE";let F=Up(M)?M:od(R.location,M,L);s&&s(F,M),g=x();let V=Bp(F,g),ee=R.createHref(F.mask||F);h.replaceState(V,"",ee),f&&p&&p({action:_,location:R.location,delta:0})}function T(M){return sb(d,M)}let R={get action(){return _},get location(){return n(d,h)},listen(M){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(Lp,S),p=M,()=>{d.removeEventListener(Lp,S),p=null}},createHref(M){return i(d,M)},createURL:T,encodeLocation(M){let L=T(M);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:w,replace:O,go(M){return h.go(M)}};return R}function sb(n,i,s=!1){let r="http://localhost";n&&(r=n.location.origin!=="null"?n.location.origin:n.location.href),tt(r,"No window.location.(origin|href) available to create URL");let d=typeof i=="string"?i:Os(i);return d=d.replace(/ $/,"%20"),!s&&d.startsWith("//")&&(d=r+d),new URL(d,r)}function zg(n,i,s="/"){return rb(n,i,s,!1)}function rb(n,i,s,r,d){let f=typeof i=="string"?xl(i):i,h=da(f.pathname||"/",s);if(h==null)return null;let _=cb(n),p=null,g=bb(h);for(let x=0;p==null&&x<_.length;++x)p=_b(_[x],g,r);return p}function cb(n){let i=Mg(n);return ub(i),i}function Mg(n,i=[],s=[],r="",d=!1){let f=(h,_,p=d,g)=>{let x={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:_,route:h};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(r)&&p)return;tt(x.relativePath.startsWith(r),`Absolute route path "${x.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(r.length)}let S=xn([r,x.relativePath]),w=s.concat(x);h.children&&h.children.length>0&&(tt(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),Mg(h.children,i,w,S,p)),!(h.path==null&&!h.index)&&i.push({path:S,score:gb(S,h.index),routesMeta:w})};return n.forEach((h,_)=>{var p;if(h.path===""||!((p=h.path)!=null&&p.includes("?")))f(h,_);else for(let g of Og(h.path))f(h,_,!0,g)}),i}function Og(n){let i=n.split("/");if(i.length===0)return[];let[s,...r]=i,d=s.endsWith("?"),f=s.replace(/\?$/,"");if(r.length===0)return d?[f,""]:[f];let h=Og(r.join("/")),_=[];return _.push(...h.map(p=>p===""?f:[f,p].join("/"))),d&&_.push(...h),_.map(p=>n.startsWith("/")&&p===""?"/":p)}function ub(n){n.sort((i,s)=>i.score!==s.score?s.score-i.score:yb(i.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var ob=/^:[\w-]+$/,db=3,fb=2,mb=1,hb=10,pb=-2,Hp=n=>n==="*";function gb(n,i){let s=n.split("/"),r=s.length;return s.some(Hp)&&(r+=pb),i&&(r+=fb),s.filter(d=>!Hp(d)).reduce((d,f)=>d+(ob.test(f)?db:f===""?mb:hb),r)}function yb(n,i){return n.length===i.length&&n.slice(0,-1).every((r,d)=>r===i[d])?n[n.length-1]-i[i.length-1]:0}function _b(n,i,s=!1){let{routesMeta:r}=n,d={},f="/",h=[];for(let _=0;_{if(x==="*"){let T=_[w]||"";h=f.slice(0,f.length-T.length).replace(/(.)\/+$/,"$1")}const O=_[w];return S&&!O?g[x]=void 0:g[x]=(O||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:h,pattern:n}}function vb(n,i=!1,s=!0){fn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],d="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,_,p,g,x)=>{if(r.push({paramName:_,isOptional:p!=null}),p){let S=x.charAt(g+h.length);return S&&S!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),d+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?d+="\\/*$":n!==""&&n!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,i?void 0:"i"),r]}function bb(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return fn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function da(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,r=n.charAt(s);return r&&r!=="/"?null:n.slice(s)||"/"}var Sb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function xb(n,i="/"){let{pathname:s,search:r="",hash:d=""}=typeof n=="string"?xl(n):n,f;return s?(s=$g(s),s.startsWith("/")?f=Gp(s.substring(1),"/"):f=Gp(s,i)):f=i,{pathname:f,search:kb(r),hash:Eb(d)}}function Gp(n,i){let s=xc(i).split("/");return n.split("/").forEach(d=>{d===".."?s.length>1&&s.pop():d!=="."&&s.push(d)}),s.length>1?s.join("/"):"/"}function Io(n,i,s,r){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function jb(n){return n.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function Cd(n){let i=jb(n);return i.map((s,r)=>r===i.length-1?s.pathname:s.pathnameBase)}function Nc(n,i,s,r=!1){let d;typeof n=="string"?d=xl(n):(d={...n},tt(!d.pathname||!d.pathname.includes("?"),Io("?","pathname","search",d)),tt(!d.pathname||!d.pathname.includes("#"),Io("#","pathname","hash",d)),tt(!d.search||!d.search.includes("#"),Io("#","search","hash",d)));let f=n===""||d.pathname==="",h=f?"/":d.pathname,_;if(h==null)_=s;else{let S=i.length-1;if(!r&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),S-=1;d.pathname=w.join("/")}_=S>=0?i[S]:"/"}let p=xb(d,_),g=h&&h!=="/"&&h.endsWith("/"),x=(f||h===".")&&s.endsWith("/");return!p.pathname.endsWith("/")&&(g||x)&&(p.pathname+="/"),p}var $g=n=>n.replace(/\/\/+/g,"/"),xn=n=>$g(n.join("/")),xc=n=>n.replace(/\/+$/,""),wb=n=>xc(n).replace(/^\/*/,"/"),kb=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Eb=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Tb=class{constructor(n,i,s,r=!1){this.status=n,this.statusText=i||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function Ab(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Cb(n){let i=n.map(s=>s.route.path).filter(Boolean);return xn(i)||"/"}var qg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Lg(n,i){let s=n;if(typeof s!="string"||!Sb.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let r=s,d=!1;if(qg)try{let f=new URL(window.location.href),h=s.startsWith("//")?new URL(f.protocol+s):new URL(s),_=da(h.pathname,i);h.origin===f.origin&&_!=null?s=_+h.search+h.hash:d=!0}catch{fn(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:d,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ug=["POST","PUT","PATCH","DELETE"];new Set(Ug);var Nb=["GET",...Ug];new Set(Nb);var vi=b.createContext(null);vi.displayName="DataRouter";var Dc=b.createContext(null);Dc.displayName="DataRouterState";var Bg=b.createContext(!1);function Db(){return b.useContext(Bg)}var Hg=b.createContext({isTransitioning:!1});Hg.displayName="ViewTransition";var Rb=b.createContext(new Map);Rb.displayName="Fetchers";var zb=b.createContext(null);zb.displayName="Await";var Wt=b.createContext(null);Wt.displayName="Navigation";var Us=b.createContext(null);Us.displayName="Location";var Gn=b.createContext({outlet:null,matches:[],isDataRoute:!1});Gn.displayName="Route";var Nd=b.createContext(null);Nd.displayName="RouteError";var Gg="REACT_ROUTER_ERROR",Mb="REDIRECT",Ob="ROUTE_ERROR_RESPONSE";function $b(n){if(n.startsWith(`${Gg}:${Mb}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function qb(n){if(n.startsWith(`${Gg}:${Ob}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Tb(i.status,i.statusText,i.data)}catch{}}function Lb(n,{relative:i}={}){tt(bi(),"useHref() may be used only in the context of a component.");let{basename:s,navigator:r}=b.useContext(Wt),{hash:d,pathname:f,search:h}=Bs(n,{relative:i}),_=f;return s!=="/"&&(_=f==="/"?s:xn([s,f])),r.createHref({pathname:_,search:h,hash:d})}function bi(){return b.useContext(Us)!=null}function kn(){return tt(bi(),"useLocation() may be used only in the context of a component."),b.useContext(Us).location}var Yg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Qg(n){b.useContext(Wt).static||b.useLayoutEffect(n)}function Dd(){let{isDataRoute:n}=b.useContext(Gn);return n?Fb():Ub()}function Ub(){tt(bi(),"useNavigate() may be used only in the context of a component.");let n=b.useContext(vi),{basename:i,navigator:s}=b.useContext(Wt),{matches:r}=b.useContext(Gn),{pathname:d}=kn(),f=JSON.stringify(Cd(r)),h=b.useRef(!1);return Qg(()=>{h.current=!0}),b.useCallback((p,g={})=>{if(fn(h.current,Yg),!h.current)return;if(typeof p=="number"){s.go(p);return}let x=Nc(p,JSON.parse(f),d,g.relative==="path");n==null&&i!=="/"&&(x.pathname=x.pathname==="/"?i:xn([i,x.pathname])),(g.replace?s.replace:s.push)(x,g.state,g)},[i,s,f,d,n])}b.createContext(null);function Bs(n,{relative:i}={}){let{matches:s}=b.useContext(Gn),{pathname:r}=kn(),d=JSON.stringify(Cd(s));return b.useMemo(()=>Nc(n,JSON.parse(d),r,i==="path"),[n,d,r,i])}function Bb(n,i){return Kg(n,i)}function Kg(n,i,s){var M;tt(bi(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=b.useContext(Wt),{matches:d}=b.useContext(Gn),f=d[d.length-1],h=f?f.params:{},_=f?f.pathname:"/",p=f?f.pathnameBase:"/",g=f&&f.route;{let L=g&&g.path||"";Zg(_,!g||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${_}" (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 x=kn(),S;if(i){let L=typeof i=="string"?xl(i):i;tt(p==="/"||((M=L.pathname)==null?void 0:M.startsWith(p)),`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 "${p}" but pathname "${L.pathname}" was given in the \`location\` prop.`),S=L}else S=x;let w=S.pathname||"/",O=w;if(p!=="/"){let L=p.replace(/^\//,"").split("/");O="/"+w.replace(/^\//,"").split("/").slice(L.length).join("/")}let T=s&&s.state.matches.length?s.state.matches.map(L=>Object.assign(L,{route:s.manifest[L.route.id]||L.route})):zg(n,{pathname:O});fn(g||T!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),fn(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.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 R=Kb(T&&T.map(L=>Object.assign({},L,{params:Object.assign({},h,L.params),pathname:xn([p,r.encodeLocation?r.encodeLocation(L.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?p:xn([p,r.encodeLocation?r.encodeLocation(L.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),d,s);return i&&R?b.createElement(Us.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...S},navigationType:"POP"}},R):R}function Hb(){let n=Ib(),i=Ab(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:f},"ErrorBoundary")," or"," ",b.createElement("code",{style:f},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},i),s?b.createElement("pre",{style:d},s):null,h)}var Gb=b.createElement(Hb,null),Xg=class extends b.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const s=qb(n.digest);s&&(n=s)}let i=n!==void 0?b.createElement(Gn.Provider,{value:this.props.routeContext},b.createElement(Nd.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?b.createElement(Yb,{error:n},i):i}};Xg.contextType=Bg;var Fo=new WeakMap;function Yb({children:n,error:i}){let{basename:s}=b.useContext(Wt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=$b(i.digest);if(r){let d=Fo.get(i);if(d)throw d;let f=Lg(r.location,s);if(qg&&!Fo.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw Fo.set(i,h),h}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function Qb({routeContext:n,match:i,children:s}){let r=b.useContext(vi);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),b.createElement(Gn.Provider,{value:n},s)}function Kb(n,i=[],s){let r=s==null?void 0:s.state;if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let d=n,f=r==null?void 0:r.errors;if(f!=null){let x=d.findIndex(S=>S.route.id&&(f==null?void 0:f[S.route.id])!==void 0);tt(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),d=d.slice(0,Math.min(d.length,x+1))}let h=!1,_=-1;if(s&&r){h=r.renderFallback;for(let x=0;x=0?d=d.slice(0,_+1):d=[d[0]];break}}}}let p=s==null?void 0:s.onError,g=r&&p?(x,S)=>{var w,O;p(x,{location:r.location,params:((O=(w=r.matches)==null?void 0:w[0])==null?void 0:O.params)??{},pattern:Cb(r.matches),errorInfo:S})}:void 0;return d.reduceRight((x,S,w)=>{let O,T=!1,R=null,M=null;r&&(O=f&&S.route.id?f[S.route.id]:void 0,R=S.route.errorElement||Gb,h&&(_<0&&w===0?(Zg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,M=null):_===w&&(T=!0,M=S.route.hydrateFallbackElement||null)));let L=i.concat(d.slice(0,w+1)),F=()=>{let V;return O?V=R:T?V=M:S.route.Component?V=b.createElement(S.route.Component,null):S.route.element?V=S.route.element:V=x,b.createElement(Qb,{match:S,routeContext:{outlet:x,matches:L,isDataRoute:r!=null},children:V})};return r&&(S.route.ErrorBoundary||S.route.errorElement||w===0)?b.createElement(Xg,{location:r.location,revalidation:r.revalidation,component:R,error:O,children:F(),routeContext:{outlet:null,matches:L,isDataRoute:!0},onError:g}):F()},null)}function Rd(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Xb(n){let i=b.useContext(vi);return tt(i,Rd(n)),i}function Zb(n){let i=b.useContext(Dc);return tt(i,Rd(n)),i}function Vb(n){let i=b.useContext(Gn);return tt(i,Rd(n)),i}function zd(n){let i=Vb(n),s=i.matches[i.matches.length-1];return tt(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function Jb(){return zd("useRouteId")}function Ib(){var r;let n=b.useContext(Nd),i=Zb("useRouteError"),s=zd("useRouteError");return n!==void 0?n:(r=i.errors)==null?void 0:r[s]}function Fb(){let{router:n}=Xb("useNavigate"),i=zd("useNavigate"),s=b.useRef(!1);return Qg(()=>{s.current=!0}),b.useCallback(async(d,f={})=>{fn(s.current,Yg),s.current&&(typeof d=="number"?await n.navigate(d):await n.navigate(d,{fromRouteId:i,...f}))},[n,i])}var Yp={};function Zg(n,i,s){!i&&!Yp[n]&&(Yp[n]=!0,fn(!1,s))}b.memo(Wb);function Wb({routes:n,manifest:i,future:s,state:r,isStatic:d,onError:f}){return Kg(n,void 0,{manifest:i,state:r,isStatic:d,onError:f})}function Pb({to:n,replace:i,state:s,relative:r}){tt(bi()," may be used only in the context of a component.");let{static:d}=b.useContext(Wt);fn(!d," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:f}=b.useContext(Gn),{pathname:h}=kn(),_=Dd(),p=Nc(n,Cd(f),h,r==="path"),g=JSON.stringify(p);return b.useEffect(()=>{_(JSON.parse(g),{replace:i,state:s,relative:r})},[_,g,r,i,s]),null}function dd(n){tt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function e0({basename:n="/",children:i=null,location:s,navigationType:r="POP",navigator:d,static:f=!1,useTransitions:h}){tt(!bi(),"You cannot render a inside another . You should never have more than one in your app.");let _=n.replace(/^\/*/,"/"),p=b.useMemo(()=>({basename:_,navigator:d,static:f,useTransitions:h,future:{}}),[_,d,f,h]);typeof s=="string"&&(s=xl(s));let{pathname:g="/",search:x="",hash:S="",state:w=null,key:O="default",mask:T}=s,R=b.useMemo(()=>{let M=da(g,_);return M==null?null:{location:{pathname:M,search:x,hash:S,state:w,key:O,mask:T},navigationType:r}},[_,g,x,S,w,O,r,T]);return fn(R!=null,` is not able to match the URL "${g}${x}${S}" because it does not start with the basename, so the won't render anything.`),R==null?null:b.createElement(Wt.Provider,{value:p},b.createElement(Us.Provider,{children:i,value:R}))}function t0({children:n,location:i}){return Bb(fd(n),i)}function fd(n,i=[]){let s=[];return b.Children.forEach(n,(r,d)=>{if(!b.isValidElement(r))return;let f=[...i,d];if(r.type===b.Fragment){s.push.apply(s,fd(r.props.children,f));return}tt(r.type===dd,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),tt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=fd(r.props.children,f)),s.push(h)}),s}var hc="get",pc="application/x-www-form-urlencoded";function Rc(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function n0(n){return Rc(n)&&n.tagName.toLowerCase()==="button"}function a0(n){return Rc(n)&&n.tagName.toLowerCase()==="form"}function l0(n){return Rc(n)&&n.tagName.toLowerCase()==="input"}function i0(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function s0(n,i){return n.button===0&&(!i||i==="_self")&&!i0(n)}var rc=null;function r0(){if(rc===null)try{new FormData(document.createElement("form"),0),rc=!1}catch{rc=!0}return rc}var c0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Wo(n){return n!=null&&!c0.has(n)?(fn(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${pc}"`),null):n}function u0(n,i){let s,r,d,f,h;if(a0(n)){let _=n.getAttribute("action");r=_?da(_,i):null,s=n.getAttribute("method")||hc,d=Wo(n.getAttribute("enctype"))||pc,f=new FormData(n)}else if(n0(n)||l0(n)&&(n.type==="submit"||n.type==="image")){let _=n.form;if(_==null)throw new Error('Cannot submit a