diff --git a/.claude/plans/sorted-beaming-comet.md b/.claude/plans/sorted-beaming-comet.md new file mode 100644 index 0000000..bd25199 --- /dev/null +++ b/.claude/plans/sorted-beaming-comet.md @@ -0,0 +1,47 @@ +# Fix JSX Syntax Errors Blocking Electron Dev + +## Problem +`npm run dev:electron` fails with two issues: +1. **Sidebar.jsx:632** — Fatal: "Adjacent JSX elements must be wrapped in an enclosing tag" +2. **ScreenShareModal.jsx:70** — Warning: Duplicate `width` key in object literal + +## Root Cause Analysis + +### Sidebar.jsx — Duplicate opening `
x2?(q.sortIndex=u2,c(p,q),t(d)===null&&q===t(p)&&(w?(k(H),H=-1):w=!0,s2(E,u2-x2))):(q.sortIndex=V,c(d,q),M||z||(M=!0,D||(D=!0,G()))),q},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(q){var t2=_;return function(){var u2=_;_=t2;try{return q.apply(this,arguments)}finally{_=u2}}}})(fi)),fi}var uu;function OF(){return uu||(uu=1,vi.exports=NF()),vi.exports}var gi={exports:{}},n1={};var mu;function UF(){if(mu)return n1;mu=1;var e=ns();function c(d){var p="https://react.dev/errors/"+d;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(c){console.error(c)}}return e(),gi.exports=UF(),gi.exports}var zu;function jF(){if(zu)return e8;zu=1;var e=OF(),c=ns(),t=PF();function l(i){var s="https://react.dev/errors/"+i;if(1 V||(i.current=x2[V],x2[V]=null,V--)}function T(i,s){V++,x2[V]=i.current,i.current=s}var h2=O(null),_2=O(null),C2=O(null),b2=O(null);function T2(i,s){switch(T(C2,s),T(_2,i),T(h2,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?Tg(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=Tg(s),i=Hg(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}Q(h2),T(h2,i)}function L2(){Q(h2),Q(_2),Q(C2)}function z0(i){i.memoizedState!==null&&T(b2,i);var s=h2.current,h=Hg(s,i.type);s!==h&&(T(_2,i),T(h2,h))}function q0(i){_2.current===i&&(Q(h2),Q(_2)),b2.current===i&&(Q(b2),Y7._currentValue=u2)}var M1,w1;function v1(i){if(M1===void 0)try{throw Error()}catch(h){var s=h.stack.trim().match(/\n( *(at )?)/);M1=s&&s[1]||"",w1=-1 )":-1 u||U[v]!==W[u]){var a2=` -`+U[v].replace(" at new "," at ");return i.displayName&&a2.includes(" ")&&(a2=a2.replace(" ",i.displayName)),a2}while(1<=v&&0<=u);break}}}finally{_1=!1,Error.prepareStackTrace=h}return(h=i?i.displayName||i.name:"")?N0(h):""}function O2(i,s){switch(i.tag){case 26:case 27:case 5:return N0(i.type);case 16:return N0("Lazy");case 13:return i.child!==s&&s!==null?N0("Suspense Fallback"):N0("Suspense");case 19:return N0("SuspenseList");case 0:case 15:return e0(i.type,!1);case 11:return e0(i.type.render,!1);case 1:return e0(i.type,!0);case 31:return N0("Activity");default:return""}}function z1(i){try{var s="",h=null;do s+=O2(i,h),h=i,i=i.return;while(i);return s}catch(v){return` +`+M1+i+w1}var C1=!1;function X0(i,s){if(!i||C1)return"";C1=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(s){var p2=function(){throw Error()};if(Object.defineProperty(p2.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p2,[])}catch(a2){var e2=a2}Reflect.construct(i,[],p2)}else{try{p2.call()}catch(a2){e2=a2}i.call(p2.prototype)}}else{try{throw Error()}catch(a2){e2=a2}(p2=i())&&typeof p2.catch=="function"&&p2.catch(function(){})}}catch(a2){if(a2&&e2&&typeof a2.stack=="string")return[a2.stack,e2.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=v.DetermineComponentFrameRoot(),C=m[0],B=m[1];if(C&&B){var j=C.split(` +`),K=B.split(` +`);for(u=v=0;v u||j[v]!==K[u]){var r2=` +`+j[v].replace(" at new "," at ");return i.displayName&&r2.includes(" ")&&(r2=r2.replace(" ",i.displayName)),r2}while(1<=v&&0<=u);break}}}finally{C1=!1,Error.prepareStackTrace=h}return(h=i?i.displayName||i.name:"")?v1(h):""}function b3(i,s){switch(i.tag){case 26:case 27:case 5:return v1(i.type);case 16:return v1("Lazy");case 13:return i.child!==s&&s!==null?v1("Suspense Fallback"):v1("Suspense");case 19:return v1("SuspenseList");case 0:case 15:return X0(i.type,!1);case 11:return X0(i.type.render,!1);case 1:return X0(i.type,!0);case 31:return v1("Activity");default:return""}}function z4(i){try{var s="",h=null;do s+=b3(i,h),h=i,i=i.return;while(i);return s}catch(v){return` Error generating stack: `+v.message+` -`+v.stack}}var q1=Object.prototype.hasOwnProperty,h3=e.unstable_scheduleCallback,z4=e.unstable_cancelCallback,Yc=e.unstable_shouldYield,Wc=e.unstable_requestPaint,h1=e.unstable_now,Kc=e.unstable_getCurrentPriorityLevel,o2=e.unstable_ImmediatePriority,_2=e.unstable_UserBlockingPriority,A2=e.unstable_NormalPriority,U2=e.unstable_LowPriority,a0=e.unstable_IdlePriority,L1=e.log,U3=e.unstable_setDisableYieldValue,d1=null,O0=null;function M1(i){if(typeof L1=="function"&&U3(i),O0&&typeof O0.setStrictMode=="function")try{O0.setStrictMode(d1,i)}catch{}}var v0=Math.clz32?Math.clz32:mF,M4=Math.log,d3=Math.LN2;function mF(i){return i>>>=0,i===0?32:31-(M4(i)/d3|0)|0}var K8=256,X8=262144,Q8=4194304;function r5(i){var s=i&42;if(s!==0)return s;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function J8(i,s,h){var v=i.pendingLanes;if(v===0)return 0;var u=0,m=i.suspendedLanes,w=i.pingedLanes;i=i.warmLanes;var A=v&134217727;return A!==0?(v=A&~m,v!==0?u=r5(v):(w&=A,w!==0?u=r5(w):h||(h=A&~i,h!==0&&(u=r5(h))))):(A=v&~m,A!==0?u=r5(A):w!==0?u=r5(w):h||(h=v&~i,h!==0&&(u=r5(h)))),u===0?0:s!==0&&s!==u&&(s&m)===0&&(m=u&-u,h=s&-s,m>=h||m===32&&(h&4194048)!==0)?s:u}function l7(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function _F(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 pp(){var i=Q8;return Q8<<=1,(Q8&62914560)===0&&(Q8=4194304),i}function Xc(i){for(var s=[],h=0;31>h;h++)s.push(i);return s}function i7(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function zF(i,s,h,v,u,m){var w=i.pendingLanes;i.pendingLanes=h,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=h,i.entangledLanes&=h,i.errorRecoveryDisabledLanes&=h,i.shellSuspendCounter=0;var A=i.entanglements,U=i.expirationTimes,W=i.hiddenUpdates;for(h=w&~h;0 "u")return null;try{return i.activeElement||i.body}catch{return i.body}}var EF=/[\n"\\]/g;function Z1(i){return i.replace(EF,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function lt(i,s,h,v,u,m,w,A){i.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?i.type=w:i.removeAttribute("type"),s!=null?w==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+$1(s)):i.value!==""+$1(s)&&(i.value=""+$1(s)):w!=="submit"&&w!=="reset"||i.removeAttribute("value"),s!=null?it(i,w,$1(s)):h!=null?it(i,w,$1(h)):v!=null&&i.removeAttribute("value"),u==null&&m!=null&&(i.defaultChecked=!!m),u!=null&&(i.checked=u&&typeof u!="function"&&typeof u!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?i.name=""+$1(A):i.removeAttribute("name")}function Ep(i,s,h,v,u,m,w,A){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(i.type=m),s!=null||h!=null){if(!(m!=="submit"&&m!=="reset"||s!=null)){tt(i);return}h=h!=null?""+$1(h):"",s=s!=null?""+$1(s):h,A||s===i.value||(i.value=s),i.defaultValue=s}v=v??u,v=typeof v!="function"&&typeof v!="symbol"&&!!v,i.checked=A?i.checked:!!v,i.defaultChecked=!!v,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(i.name=w),tt(i)}function it(i,s,h){s==="number"&&t9(i.ownerDocument)===i||i.defaultValue===""+h||(i.defaultValue=""+h)}function q5(i,s,h,v){if(i=i.options,s){s={};for(var u=0;u "u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ot=!1;if(G3)try{var r7={};Object.defineProperty(r7,"passive",{get:function(){ot=!0}}),window.addEventListener("test",r7,r7),window.removeEventListener("test",r7,r7)}catch{ot=!1}var C4=null,ht=null,i9=null;function kp(){if(i9)return i9;var i,s=ht,h=s.length,v,u="value"in C4?C4.value:C4.textContent,m=u.length;for(i=0;i =d7),Ip=" ",Np=!1;function Op(i,s){switch(i){case"keyup":return JF.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Up(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var W5=!1;function cb(i,s){switch(i){case"compositionend":return Up(s);case"keypress":return s.which!==32?null:(Np=!0,Ip);case"textInput":return i=s.data,i===Ip&&Np?null:i;default:return null}}function tb(i,s){if(W5)return i==="compositionend"||!gt&&Op(i,s)?(i=kp(),i9=ht=C4=null,W5=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1 =s)return{node:h,offset:s-i};i=v}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=Wp(h)}}function Xp(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?Xp(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function Qp(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=t9(i.document);s instanceof i.HTMLIFrameElement;){try{var h=typeof s.contentWindow.location.href=="string"}catch{h=!1}if(h)i=s.contentWindow;else break;s=t9(i.document)}return s}function _t(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var hb=G3&&"documentMode"in document&&11>=document.documentMode,K5=null,zt=null,g7=null,Mt=!1;function Jp(i,s,h){var v=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;Mt||K5==null||K5!==t9(v)||(v=K5,"selectionStart"in v&&_t(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),g7&&f7(g7,v)||(g7=v,v=X9(zt,"onSelect"),0 >=w,u-=w,E3=1<<32-v0(s)+u|h<H2?(W2=E2,E2=null):W2=E2.sibling;var t0=Q(Z,E2,Y[H2],h2);if(t0===null){E2===null&&(E2=W2);break}i&&E2&&t0.alternate===null&&s(Z,E2),q=m(t0,q,H2),c0===null?x2=t0:c0.sibling=t0,c0=t0,E2=W2}if(H2===Y.length)return h(Z,E2),X2&&$3(Z,H2),x2;if(E2===null){for(;H2 H2?(W2=E2,E2=null):W2=E2.sibling;var G4=Q(Z,E2,t0.value,h2);if(G4===null){E2===null&&(E2=W2);break}i&&E2&&G4.alternate===null&&s(Z,E2),q=m(G4,q,H2),c0===null?x2=G4:c0.sibling=G4,c0=G4,E2=W2}if(t0.done)return h(Z,E2),X2&&$3(Z,H2),x2;if(E2===null){for(;!t0.done;H2++,t0=Y.next())t0=d2(Z,t0.value,h2),t0!==null&&(q=m(t0,q,H2),c0===null?x2=t0:c0.sibling=t0,c0=t0);return X2&&$3(Z,H2),x2}for(E2=v(E2);!t0.done;H2++,t0=Y.next())t0=t2(E2,Z,H2,t0.value,h2),t0!==null&&(i&&t0.alternate!==null&&E2.delete(t0.key===null?H2:t0.key),q=m(t0,q,H2),c0===null?x2=t0:c0.sibling=t0,c0=t0);return i&&E2.forEach(function(SE){return s(Z,SE)}),X2&&$3(Z,H2),x2}function d0(Z,q,Y,h2){if(typeof Y=="object"&&Y!==null&&Y.type===C&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case z:e:{for(var x2=Y.key;q!==null;){if(q.key===x2){if(x2=Y.type,x2===C){if(q.tag===7){h(Z,q.sibling),h2=u(q,Y.props.children),h2.return=Z,Z=h2;break e}}else if(q.elementType===x2||typeof x2=="object"&&x2!==null&&x2.$$typeof===j&&z5(x2)===q.type){h(Z,q.sibling),h2=u(q,Y.props),w7(h2,Y),h2.return=Z,Z=h2;break e}h(Z,q);break}else s(Z,q);q=q.sibling}Y.type===C?(h2=f5(Y.props.children,Z.mode,h2,Y.key),h2.return=Z,Z=h2):(h2=f9(Y.type,Y.key,Y.props,null,Z.mode,h2),w7(h2,Y),h2.return=Z,Z=h2)}return w(Z);case M:e:{for(x2=Y.key;q!==null;){if(q.key===x2)if(q.tag===4&&q.stateNode.containerInfo===Y.containerInfo&&q.stateNode.implementation===Y.implementation){h(Z,q.sibling),h2=u(q,Y.children||[]),h2.return=Z,Z=h2;break e}else{h(Z,q);break}else s(Z,q);q=q.sibling}h2=yt(Y,Z.mode,h2),h2.return=Z,Z=h2}return w(Z);case j:return Y=z5(Y),d0(Z,q,Y,h2)}if(s2(Y))return b2(Z,q,Y,h2);if(G(Y)){if(x2=G(Y),typeof x2!="function")throw Error(l(150));return Y=x2.call(Y),D2(Z,q,Y,h2)}if(typeof Y.then=="function")return d0(Z,q,w9(Y),h2);if(Y.$$typeof===S)return d0(Z,q,m9(Z,Y),h2);C9(Z,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,q!==null&&q.tag===6?(h(Z,q.sibling),h2=u(q,Y),h2.return=Z,Z=h2):(h(Z,q),h2=xt(Y,Z.mode,h2),h2.return=Z,Z=h2),w(Z)):h(Z,q)}return function(Z,q,Y,h2){try{M7=0;var x2=d0(Z,q,Y,h2);return n6=null,x2}catch(E2){if(E2===s6||E2===z9)throw E2;var c0=H1(29,E2,null,Z.mode);return c0.lanes=h2,c0.return=Z,c0}}}var w5=Cv(!0),Fv=Cv(!1),y4=!1;function Nt(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ot(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function D4(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function A4(i,s,h){var v=i.updateQueue;if(v===null)return null;if(v=v.shared,(l0&2)!==0){var u=v.pending;return u===null?s.next=s:(s.next=u.next,u.next=s),v.pending=s,s=v9(i),sv(i,null,h),s}return p9(i,v,s,h),v9(i)}function C7(i,s,h){if(s=s.updateQueue,s!==null&&(s=s.shared,(h&4194048)!==0)){var v=s.lanes;v&=i.pendingLanes,h|=v,s.lanes=h,fp(i,h)}}function Ut(i,s){var h=i.updateQueue,v=i.alternate;if(v!==null&&(v=v.updateQueue,h===v)){var u=null,m=null;if(h=h.firstBaseUpdate,h!==null){do{var w={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};m===null?u=m=w:m=m.next=w,h=h.next}while(h!==null);m===null?u=m=s:m=m.next=s}else u=m=s;h={baseState:v.baseState,firstBaseUpdate:u,lastBaseUpdate:m,shared:v.shared,callbacks:v.callbacks},i.updateQueue=h;return}i=h.lastBaseUpdate,i===null?h.firstBaseUpdate=s:i.next=s,h.lastBaseUpdate=s}var Pt=!1;function F7(){if(Pt){var i=a6;if(i!==null)throw i}}function b7(i,s,h,v){Pt=!1;var u=i.updateQueue;y4=!1;var m=u.firstBaseUpdate,w=u.lastBaseUpdate,A=u.shared.pending;if(A!==null){u.shared.pending=null;var U=A,W=U.next;U.next=null,w===null?m=W:w.next=W,w=U;var a2=i.alternate;a2!==null&&(a2=a2.updateQueue,A=a2.lastBaseUpdate,A!==w&&(A===null?a2.firstBaseUpdate=W:A.next=W,a2.lastBaseUpdate=U))}if(m!==null){var d2=u.baseState;w=0,a2=W=U=null,A=m;do{var Q=A.lane&-536870913,t2=Q!==A.lane;if(t2?(Y2&Q)===Q:(v&Q)===Q){Q!==0&&Q===i6&&(Pt=!0),a2!==null&&(a2=a2.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var b2=i,D2=A;Q=s;var d0=h;switch(D2.tag){case 1:if(b2=D2.payload,typeof b2=="function"){d2=b2.call(d0,d2,Q);break e}d2=b2;break e;case 3:b2.flags=b2.flags&-65537|128;case 0:if(b2=D2.payload,Q=typeof b2=="function"?b2.call(d0,d2,Q):b2,Q==null)break e;d2=g({},d2,Q);break e;case 2:y4=!0}}Q=A.callback,Q!==null&&(i.flags|=64,t2&&(i.flags|=8192),t2=u.callbacks,t2===null?u.callbacks=[Q]:t2.push(Q))}else t2={lane:Q,tag:A.tag,payload:A.payload,callback:A.callback,next:null},a2===null?(W=a2=t2,U=d2):a2=a2.next=t2,w|=Q;if(A=A.next,A===null){if(A=u.shared.pending,A===null)break;t2=A,A=t2.next,t2.next=null,u.lastBaseUpdate=t2,u.shared.pending=null}}while(!0);a2===null&&(U=d2),u.baseState=U,u.firstBaseUpdate=W,u.lastBaseUpdate=a2,m===null&&(u.shared.lanes=0),T4|=w,i.lanes=w,i.memoizedState=d2}}function bv(i,s){if(typeof i!="function")throw Error(l(191,i));i.call(s)}function Ev(i,s){var h=i.callbacks;if(h!==null)for(i.callbacks=null,i=0;i m?m:8;var w=$.T,A={};$.T=A,nl(i,!1,s,h);try{var U=u(),W=$.S;if(W!==null&&W(A,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var a2=zb(U,v);y7(i,s,a2,O1(i))}else y7(i,s,v,O1(i))}catch(d2){y7(i,s,{then:function(){},status:"rejected",reason:d2},O1())}finally{e2.p=m,w!==null&&A.types!==null&&(w.types=A.types),$.T=w}}function Eb(){}function al(i,s,h,v){if(i.tag!==5)throw Error(l(476));var u=lf(i).queue;tf(i,u,s,i2,h===null?Eb:function(){return af(i),h(v)})}function lf(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:i2,baseState:i2,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:K3,lastRenderedState:i2},next:null};var h={};return s.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:K3,lastRenderedState:h},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function af(i){var s=lf(i);s.next===null&&(s=i.alternate.memoizedState),y7(i,s.next.queue,{},O1())}function sl(){return Q0(G7)}function sf(){return S0().memoizedState}function nf(){return S0().memoizedState}function xb(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var h=O1();i=D4(h);var v=A4(s,i,h);v!==null&&(y1(v,s,h),C7(v,s,h)),s={cache:Ht()},i.payload=s;return}s=s.return}}function yb(i,s,h){var v=O1();h={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},k9(i)?of(s,h):(h=bt(i,s,h,v),h!==null&&(y1(h,i,v),hf(h,s,v)))}function rf(i,s,h){var v=O1();y7(i,s,h,v)}function y7(i,s,h,v){var u={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null};if(k9(i))of(s,u);else{var m=i.alternate;if(i.lanes===0&&(m===null||m.lanes===0)&&(m=s.lastRenderedReducer,m!==null))try{var w=s.lastRenderedState,A=m(w,h);if(u.hasEagerState=!0,u.eagerState=A,T1(A,w))return p9(i,s,u,0),f0===null&&d9(),!1}catch{}if(h=bt(i,s,u,v),h!==null)return y1(h,i,v),hf(h,s,v),!0}return!1}function nl(i,s,h,v){if(v={lane:2,revertLane:Nl(),gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},k9(i)){if(s)throw Error(l(479))}else s=bt(i,h,v,2),s!==null&&y1(s,i,2)}function k9(i){var s=i.alternate;return i===T2||s!==null&&s===T2}function of(i,s){o6=E9=!0;var h=i.pending;h===null?s.next=s:(s.next=h.next,h.next=s),i.pending=s}function hf(i,s,h){if((h&4194048)!==0){var v=s.lanes;v&=i.pendingLanes,h|=v,s.lanes=h,fp(i,h)}}var D7={readContext:Q0,use:D9,useCallback:b0,useContext:b0,useEffect:b0,useImperativeHandle:b0,useLayoutEffect:b0,useInsertionEffect:b0,useMemo:b0,useReducer:b0,useRef:b0,useState:b0,useDebugValue:b0,useDeferredValue:b0,useTransition:b0,useSyncExternalStore:b0,useId:b0,useHostTransitionStatus:b0,useFormState:b0,useActionState:b0,useOptimistic:b0,useMemoCache:b0,useCacheRefresh:b0};D7.useEffectEvent=b0;var df={readContext:Q0,use:D9,useCallback:function(i,s){return p1().memoizedState=[i,s===void 0?null:s],i},useContext:Q0,useEffect:Zv,useImperativeHandle:function(i,s,h){h=h!=null?h.concat([i]):null,S9(4194308,4,Xv.bind(null,s,i),h)},useLayoutEffect:function(i,s){return S9(4194308,4,i,s)},useInsertionEffect:function(i,s){S9(4,2,i,s)},useMemo:function(i,s){var h=p1();s=s===void 0?null:s;var v=i();if(C5){M1(!0);try{i()}finally{M1(!1)}}return h.memoizedState=[v,s],v},useReducer:function(i,s,h){var v=p1();if(h!==void 0){var u=h(s);if(C5){M1(!0);try{h(s)}finally{M1(!1)}}}else u=s;return v.memoizedState=v.baseState=u,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:u},v.queue=i,i=i.dispatch=yb.bind(null,T2,i),[v.memoizedState,i]},useRef:function(i){var s=p1();return i={current:i},s.memoizedState=i},useState:function(i){i=el(i);var s=i.queue,h=rf.bind(null,T2,s);return s.dispatch=h,[i.memoizedState,h]},useDebugValue:ll,useDeferredValue:function(i,s){var h=p1();return il(h,i,s)},useTransition:function(){var i=el(!1);return i=tf.bind(null,T2,i.queue,!0,!1),p1().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,h){var v=T2,u=p1();if(X2){if(h===void 0)throw Error(l(407));h=h()}else{if(h=s(),f0===null)throw Error(l(349));(Y2&127)!==0||Bv(v,s,h)}u.memoizedState=h;var m={value:h,getSnapshot:s};return u.queue=m,Zv(Lv.bind(null,v,m,i),[i]),v.flags|=2048,d6(9,{destroy:void 0},kv.bind(null,v,m,h,s),null),h},useId:function(){var i=p1(),s=f0.identifierPrefix;if(X2){var h=x3,v=E3;h=(v&~(1<<32-v0(v)-1)).toString(32)+h,s="_"+s+"R_"+h,h=x9++,0 <\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof v.is=="string"?w.createElement("select",{is:v.is}):w.createElement("select"),v.multiple?m.multiple=!0:v.size&&(m.size=v.size);break;default:m=typeof v.is=="string"?w.createElement(u,{is:v.is}):w.createElement(u)}}m[K0]=s,m[w1]=v;e:for(w=s.child;w!==null;){if(w.tag===5||w.tag===6)m.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===s)break e;for(;w.sibling===null;){if(w.return===null||w.return===s)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}s.stateNode=m;e:switch(e1(m,u,v),u){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}v&&Q3(s)}}return z0(s),wl(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,h),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==v&&Q3(s);else{if(typeof v!="string"&&s.stateNode===null)throw Error(l(166));if(i=M2.current,t6(s)){if(i=s.stateNode,h=s.memoizedProps,v=null,u=X0,u!==null)switch(u.tag){case 27:case 5:v=u.memoizedProps}i[K0]=s,i=!!(i.nodeValue===h||v!==null&&v.suppressHydrationWarning===!0||Sg(i.nodeValue,h)),i||E4(s,!0)}else i=Q9(i).createTextNode(v),i[K0]=s,s.stateNode=i}return z0(s),null;case 31:if(h=s.memoizedState,i===null||i.memoizedState!==null){if(v=t6(s),h!==null){if(i===null){if(!v)throw Error(l(318));if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(l(557));i[K0]=s}else g5(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;z0(s),i=!1}else h=Bt(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=h),i=!0;if(!i)return s.flags&256?(V1(s),s):(V1(s),null);if((s.flags&128)!==0)throw Error(l(558))}return z0(s),null;case 13:if(v=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(u=t6(s),v!==null&&v.dehydrated!==null){if(i===null){if(!u)throw Error(l(318));if(u=s.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(l(317));u[K0]=s}else g5(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;z0(s),u=!1}else u=Bt(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),u=!0;if(!u)return s.flags&256?(V1(s),s):(V1(s),null)}return V1(s),(s.flags&128)!==0?(s.lanes=h,s):(h=v!==null,i=i!==null&&i.memoizedState!==null,h&&(v=s.child,u=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(u=v.alternate.memoizedState.cachePool.pool),m=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(m=v.memoizedState.cachePool.pool),m!==u&&(v.flags|=2048)),h!==i&&h&&(s.child.flags|=8192),V9(s,s.updateQueue),z0(s),null);case 4:return l2(),i===null&&jl(s.stateNode.containerInfo),z0(s),null;case 10:return Y3(s.type),z0(s),null;case 19:if(X(A0),v=s.memoizedState,v===null)return z0(s),null;if(u=(s.flags&128)!==0,m=v.rendering,m===null)if(u)S7(v,!1);else{if(E0!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(m=b9(i),m!==null){for(s.flags|=128,S7(v,!1),i=m.updateQueue,s.updateQueue=i,V9(s,i),s.subtreeFlags=0,i=h,h=s.child;h!==null;)nv(h,i),h=h.sibling;return T(A0,A0.current&1|2),X2&&$3(s,v.treeForkCount),s.child}i=i.sibling}v.tail!==null&&h1()>P9&&(s.flags|=128,u=!0,S7(v,!1),s.lanes=4194304)}else{if(!u)if(i=b9(m),i!==null){if(s.flags|=128,u=!0,i=i.updateQueue,s.updateQueue=i,V9(s,i),S7(v,!0),v.tail===null&&v.tailMode==="hidden"&&!m.alternate&&!X2)return z0(s),null}else 2*h1()-v.renderingStartTime>P9&&h!==536870912&&(s.flags|=128,u=!0,S7(v,!1),s.lanes=4194304);v.isBackwards?(m.sibling=s.child,s.child=m):(i=v.last,i!==null?i.sibling=m:s.child=m,v.last=m)}return v.tail!==null?(i=v.tail,v.rendering=i,v.tail=i.sibling,v.renderingStartTime=h1(),i.sibling=null,h=A0.current,T(A0,u?h&1|2:h&1),X2&&$3(s,v.treeForkCount),i):(z0(s),null);case 22:case 23:return V1(s),Gt(),v=s.memoizedState!==null,i!==null?i.memoizedState!==null!==v&&(s.flags|=8192):v&&(s.flags|=8192),v?(h&536870912)!==0&&(s.flags&128)===0&&(z0(s),s.subtreeFlags&6&&(s.flags|=8192)):z0(s),h=s.updateQueue,h!==null&&V9(s,h.retryQueue),h=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(h=i.memoizedState.cachePool.pool),v=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(v=s.memoizedState.cachePool.pool),v!==h&&(s.flags|=2048),i!==null&&X(_5),null;case 24:return h=null,i!==null&&(h=i.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),Y3(k0),z0(s),null;case 25:return null;case 30:return null}throw Error(l(156,s.tag))}function kb(i,s){switch(At(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return Y3(k0),l2(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return L2(s),null;case 31:if(s.memoizedState!==null){if(V1(s),s.alternate===null)throw Error(l(340));g5()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if(V1(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(l(340));g5()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return X(A0),null;case 4:return l2(),null;case 10:return Y3(s.type),null;case 22:case 23:return V1(s),Gt(),i!==null&&X(_5),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return Y3(k0),null;case 25:return null;default:return null}}function Hf(i,s){switch(At(s),s.tag){case 3:Y3(k0),l2();break;case 26:case 27:case 5:L2(s);break;case 4:l2();break;case 31:s.memoizedState!==null&&V1(s);break;case 13:V1(s);break;case 19:X(A0);break;case 10:Y3(s.type);break;case 22:case 23:V1(s),Gt(),i!==null&&X(_5);break;case 24:Y3(k0)}}function B7(i,s){try{var h=s.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var u=v.next;h=u;do{if((h.tag&i)===i){v=void 0;var m=h.create,w=h.inst;v=m(),w.destroy=v}h=h.next}while(h!==u)}}catch(A){r0(s,s.return,A)}}function k4(i,s,h){try{var v=s.updateQueue,u=v!==null?v.lastEffect:null;if(u!==null){var m=u.next;v=m;do{if((v.tag&i)===i){var w=v.inst,A=w.destroy;if(A!==void 0){w.destroy=void 0,u=s;var U=h,W=A;try{W()}catch(a2){r0(u,U,a2)}}}v=v.next}while(v!==m)}}catch(a2){r0(s,s.return,a2)}}function Rf(i){var s=i.updateQueue;if(s!==null){var h=i.stateNode;try{Ev(s,h)}catch(v){r0(i,i.return,v)}}}function Vf(i,s,h){h.props=F5(i.type,i.memoizedProps),h.state=i.memoizedState;try{h.componentWillUnmount()}catch(v){r0(i,s,v)}}function k7(i,s){try{var h=i.ref;if(h!==null){switch(i.tag){case 26:case 27:case 5:var v=i.stateNode;break;case 30:v=i.stateNode;break;default:v=i.stateNode}typeof h=="function"?i.refCleanup=h(v):h.current=v}}catch(u){r0(i,s,u)}}function y3(i,s){var h=i.ref,v=i.refCleanup;if(h!==null)if(typeof v=="function")try{v()}catch(u){r0(i,s,u)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(u){r0(i,s,u)}else h.current=null}function If(i){var s=i.type,h=i.memoizedProps,v=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":h.autoFocus&&v.focus();break e;case"img":h.src?v.src=h.src:h.srcSet&&(v.srcset=h.srcSet)}}catch(u){r0(i,i.return,u)}}function Cl(i,s,h){try{var v=i.stateNode;eE(v,i.type,h,s),v[w1]=s}catch(u){r0(i,i.return,u)}}function Nf(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&N4(i.type)||i.tag===4}function Fl(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Nf(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&N4(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function bl(i,s,h){var v=i.tag;if(v===5||v===6)i=i.stateNode,s?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(i,s):(s=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,s.appendChild(i),h=h._reactRootContainer,h!=null||s.onclick!==null||(s.onclick=j3));else if(v!==4&&(v===27&&N4(i.type)&&(h=i.stateNode,s=null),i=i.child,i!==null))for(bl(i,s,h),i=i.sibling;i!==null;)bl(i,s,h),i=i.sibling}function I9(i,s,h){var v=i.tag;if(v===5||v===6)i=i.stateNode,s?h.insertBefore(i,s):h.appendChild(i);else if(v!==4&&(v===27&&N4(i.type)&&(h=i.stateNode),i=i.child,i!==null))for(I9(i,s,h),i=i.sibling;i!==null;)I9(i,s,h),i=i.sibling}function Of(i){var s=i.stateNode,h=i.memoizedProps;try{for(var v=i.type,u=s.attributes;u.length;)s.removeAttributeNode(u[0]);e1(s,v,h),s[K0]=i,s[w1]=h}catch(m){r0(i,i.return,m)}}var J3=!1,H0=!1,El=!1,Uf=typeof WeakSet=="function"?WeakSet:Set,$0=null;function Lb(i,s){if(i=i.containerInfo,$l=ae,i=Qp(i),_t(i)){if("selectionStart"in i)var h={start:i.selectionStart,end:i.selectionEnd};else e:{h=(h=i.ownerDocument)&&h.defaultView||window;var v=h.getSelection&&h.getSelection();if(v&&v.rangeCount!==0){h=v.anchorNode;var u=v.anchorOffset,m=v.focusNode;v=v.focusOffset;try{h.nodeType,m.nodeType}catch{h=null;break e}var w=0,A=-1,U=-1,W=0,a2=0,d2=i,Q=null;c:for(;;){for(var t2;d2!==h||u!==0&&d2.nodeType!==3||(A=w+u),d2!==m||v!==0&&d2.nodeType!==3||(U=w+v),d2.nodeType===3&&(w+=d2.nodeValue.length),(t2=d2.firstChild)!==null;)Q=d2,d2=t2;for(;;){if(d2===i)break c;if(Q===h&&++W===u&&(A=w),Q===m&&++a2===v&&(U=w),(t2=d2.nextSibling)!==null)break;d2=Q,Q=d2.parentNode}d2=t2}h=A===-1||U===-1?null:{start:A,end:U}}else h=null}h=h||{start:0,end:0}}else h=null;for(Zl={focusedElem:i,selectionRange:h},ae=!1,$0=s;$0!==null;)if(s=$0,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,$0=i;else for(;$0!==null;){switch(s=$0,m=s.alternate,i=s.flags,s.tag){case 0:if((i&4)!==0&&(i=s.updateQueue,i=i!==null?i.events:null,i!==null))for(h=0;h title"))),e1(m,v,h),m[K0]=i,q0(m),v=m;break e;case"link":var w=Zg("link","href",u).get(v+(h.href||""));if(w){for(var A=0;A d0&&(w=d0,d0=D2,D2=w);var Z=Kp(A,D2),q=Kp(A,d0);if(Z&&q&&(t2.rangeCount!==1||t2.anchorNode!==Z.node||t2.anchorOffset!==Z.offset||t2.focusNode!==q.node||t2.focusOffset!==q.offset)){var Y=d2.createRange();Y.setStart(Z.node,Z.offset),t2.removeAllRanges(),D2>d0?(t2.addRange(Y),t2.extend(q.node,q.offset)):(Y.setEnd(q.node,q.offset),t2.addRange(Y))}}}}for(d2=[],t2=A;t2=t2.parentNode;)t2.nodeType===1&&d2.push({element:t2,left:t2.scrollLeft,top:t2.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A h?32:h,$.T=null,h=kl,kl=null;var m=R4,w=i4;if(U0=0,u6=R4=null,i4=0,(l0&6)!==0)throw Error(l(331));var A=l0;if(l0|=4,Qf(m.current),Wf(m,m.current,w,h),l0=A,I7(0,!1),O0&&typeof O0.onPostCommitFiberRoot=="function")try{O0.onPostCommitFiberRoot(d1,m)}catch{}return!0}finally{e2.p=u,$.T=v,ug(i,s)}}function _g(i,s,h){s=W1(h,s),s=dl(i.stateNode,s,2),i=A4(i,s,2),i!==null&&(i7(i,2),D3(i))}function r0(i,s,h){if(i.tag===3)_g(i,i,h);else for(;s!==null;){if(s.tag===3){_g(s,i,h);break}else if(s.tag===1){var v=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(H4===null||!H4.has(v))){i=W1(h,i),h=zf(2),v=A4(s,h,2),v!==null&&(Mf(h,v,s,i),i7(v,2),D3(v));break}}s=s.return}}function Rl(i,s,h){var v=i.pingCache;if(v===null){v=i.pingCache=new Rb;var u=new Set;v.set(s,u)}else u=v.get(s),u===void 0&&(u=new Set,v.set(s,u));u.has(h)||(Dl=!0,u.add(h),i=Ub.bind(null,i,s,h),s.then(i,i))}function Ub(i,s,h){var v=i.pingCache;v!==null&&v.delete(s),i.pingedLanes|=i.suspendedLanes&h,i.warmLanes&=~h,f0===i&&(Y2&h)===h&&(E0===4||E0===3&&(Y2&62914560)===Y2&&300>h1()-U9?(l0&2)===0&&m6(i,0):Al|=h,g6===Y2&&(g6=0)),D3(i)}function zg(i,s){s===0&&(s=pp()),i=v5(i,s),i!==null&&(i7(i,s),D3(i))}function Pb(i){var s=i.memoizedState,h=0;s!==null&&(h=s.retryLane),zg(i,h)}function jb(i,s){var h=0;switch(i.tag){case 31:case 13:var v=i.stateNode,u=i.memoizedState;u!==null&&(h=u.retryLane);break;case 19:v=i.stateNode;break;case 22:v=i.stateNode._retryCache;break;default:throw Error(l(314))}v!==null&&v.delete(s),zg(i,h)}function Gb(i,s){return h3(i,s)}var Y9=null,z6=null,Vl=!1,W9=!1,Il=!1,I4=0;function D3(i){i!==z6&&i.next===null&&(z6===null?Y9=z6=i:z6=z6.next=i),W9=!0,Vl||(Vl=!0,$b())}function I7(i,s){if(!Il&&W9){Il=!0;do for(var h=!1,v=Y9;v!==null;){if(i!==0){var u=v.pendingLanes;if(u===0)var m=0;else{var w=v.suspendedLanes,A=v.pingedLanes;m=(1<<31-v0(42|i)+1)-1,m&=u&~(w&~A),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(h=!0,Fg(v,m))}else m=Y2,m=J8(v,v===f0?m:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(m&3)===0||l7(v,m)||(h=!0,Fg(v,m));v=v.next}while(h);Il=!1}}function qb(){Mg()}function Mg(){W9=Vl=!1;var i=0;I4!==0&&tE()&&(i=I4);for(var s=h1(),h=null,v=Y9;v!==null;){var u=v.next,m=wg(v,s);m===0?(v.next=null,h===null?Y9=u:h.next=u,u===null&&(z6=h)):(h=v,(i!==0||(m&3)!==0)&&(W9=!0)),v=u}U0!==0&&U0!==5||I7(i),I4!==0&&(I4=0)}function wg(i,s){for(var h=i.suspendedLanes,v=i.pingedLanes,u=i.expirationTimes,m=i.pendingLanes&-62914561;0 A)break;var a2=U.transferSize,d2=U.initiatorType;a2&&Bg(d2)&&(U=U.responseEnd,w+=a2*(U"u"?null:document;function jg(i,s,h){var v=M6;if(v&&typeof s=="string"&&s){var u=Z1(s);u='link[rel="'+i+'"][href="'+u+'"]',typeof h=="string"&&(u+='[crossorigin="'+h+'"]'),Pg.has(u)||(Pg.add(u),i={rel:i,crossOrigin:h,href:s},v.querySelector(u)===null&&(s=v.createElement("link"),e1(s,"link",i),q0(s),v.head.appendChild(s)))}}function dE(i){a4.D(i),jg("dns-prefetch",i,null)}function pE(i,s){a4.C(i,s),jg("preconnect",i,s)}function vE(i,s,h){a4.L(i,s,h);var v=M6;if(v&&i&&s){var u='link[rel="preload"][as="'+Z1(s)+'"]';s==="image"&&h&&h.imageSrcSet?(u+='[imagesrcset="'+Z1(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(u+='[imagesizes="'+Z1(h.imageSizes)+'"]')):u+='[href="'+Z1(i)+'"]';var m=u;switch(s){case"style":m=w6(i);break;case"script":m=C6(i)}c3.has(m)||(i=g({rel:"preload",href:s==="image"&&h&&h.imageSrcSet?void 0:i,as:s},h),c3.set(m,i),v.querySelector(u)!==null||s==="style"&&v.querySelector(P7(m))||s==="script"&&v.querySelector(j7(m))||(s=v.createElement("link"),e1(s,"link",i),q0(s),v.head.appendChild(s)))}}function fE(i,s){a4.m(i,s);var h=M6;if(h&&i){var v=s&&typeof s.as=="string"?s.as:"script",u='link[rel="modulepreload"][as="'+Z1(v)+'"][href="'+Z1(i)+'"]',m=u;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=C6(i)}if(!c3.has(m)&&(i=g({rel:"modulepreload",href:i},s),c3.set(m,i),h.querySelector(u)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(j7(m)))return}v=h.createElement("link"),e1(v,"link",i),q0(v),h.head.appendChild(v)}}}function gE(i,s,h){a4.S(i,s,h);var v=M6;if(v&&i){var u=j5(v).hoistableStyles,m=w6(i);s=s||"default";var w=u.get(m);if(!w){var A={loading:0,preload:null};if(w=v.querySelector(P7(m)))A.loading=5;else{i=g({rel:"stylesheet",href:i,"data-precedence":s},h),(h=c3.get(m))&&ei(i,h);var U=w=v.createElement("link");q0(U),e1(U,"link",i),U._p=new Promise(function(W,a2){U.onload=W,U.onerror=a2}),U.addEventListener("load",function(){A.loading|=1}),U.addEventListener("error",function(){A.loading|=2}),A.loading|=4,ee(w,s,v)}w={type:"stylesheet",instance:w,count:1,state:A},u.set(m,w)}}}function uE(i,s){a4.X(i,s);var h=M6;if(h&&i){var v=j5(h).hoistableScripts,u=C6(i),m=v.get(u);m||(m=h.querySelector(j7(u)),m||(i=g({src:i,async:!0},s),(s=c3.get(u))&&ci(i,s),m=h.createElement("script"),q0(m),e1(m,"link",i),h.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},v.set(u,m))}}function mE(i,s){a4.M(i,s);var h=M6;if(h&&i){var v=j5(h).hoistableScripts,u=C6(i),m=v.get(u);m||(m=h.querySelector(j7(u)),m||(i=g({src:i,async:!0,type:"module"},s),(s=c3.get(u))&&ci(i,s),m=h.createElement("script"),q0(m),e1(m,"link",i),h.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},v.set(u,m))}}function Gg(i,s,h,v){var u=(u=M2.current)?J9(u):null;if(!u)throw Error(l(446));switch(i){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(s=w6(h.href),h=j5(u).hoistableStyles,v=h.get(s),v||(v={type:"style",instance:null,count:0,state:null},h.set(s,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){i=w6(h.href);var m=j5(u).hoistableStyles,w=m.get(i);if(w||(u=u.ownerDocument||u,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(i,w),(m=u.querySelector(P7(i)))&&!m._p&&(w.instance=m,w.state.loading=5),c3.has(i)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},c3.set(i,h),m||_E(u,i,h,w.state))),s&&v===null)throw Error(l(528,""));return w}if(s&&v!==null)throw Error(l(529,""));return null;case"script":return s=h.async,h=h.src,typeof h=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=C6(h),h=j5(u).hoistableScripts,v=h.get(s),v||(v={type:"script",instance:null,count:0,state:null},h.set(s,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,i))}}function w6(i){return'href="'+Z1(i)+'"'}function P7(i){return'link[rel="stylesheet"]['+i+"]"}function qg(i){return g({},i,{"data-precedence":i.precedence,precedence:null})}function _E(i,s,h,v){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?v.loading=1:(s=i.createElement("link"),v.preload=s,s.addEventListener("load",function(){return v.loading|=1}),s.addEventListener("error",function(){return v.loading|=2}),e1(s,"link",h),q0(s),i.head.appendChild(s))}function C6(i){return'[src="'+Z1(i)+'"]'}function j7(i){return"script[async]"+i}function $g(i,s,h){if(s.count++,s.instance===null)switch(s.type){case"style":var v=i.querySelector('style[data-href~="'+Z1(h.href)+'"]');if(v)return s.instance=v,q0(v),v;var u=g({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return v=(i.ownerDocument||i).createElement("style"),q0(v),e1(v,"style",u),ee(v,h.precedence,i),s.instance=v;case"stylesheet":u=w6(h.href);var m=i.querySelector(P7(u));if(m)return s.state.loading|=4,s.instance=m,q0(m),m;v=qg(h),(u=c3.get(u))&&ei(v,u),m=(i.ownerDocument||i).createElement("link"),q0(m);var w=m;return w._p=new Promise(function(A,U){w.onload=A,w.onerror=U}),e1(m,"link",v),s.state.loading|=4,ee(m,h.precedence,i),s.instance=m;case"script":return m=C6(h.src),(u=i.querySelector(j7(m)))?(s.instance=u,q0(u),u):(v=h,(u=c3.get(m))&&(v=g({},h),ci(v,u)),i=i.ownerDocument||i,u=i.createElement("script"),q0(u),e1(u,"link",v),i.head.appendChild(u),s.instance=u);case"void":return null;default:throw Error(l(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(v=s.instance,s.state.loading|=4,ee(v,h.precedence,i));return s.instance}function ee(i,s,h){for(var v=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=v.length?v[v.length-1]:null,m=u,w=0;w title"):null)}function zE(i,s,h){if(h===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(i=s.disabled,typeof s.precedence=="string"&&i==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function Wg(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function ME(i,s,h,v){if(h.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var u=w6(v.href),m=s.querySelector(P7(u));if(m){s=m._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=te.bind(i),s.then(i,i)),h.state.loading|=4,h.instance=m,q0(m);return}m=s.ownerDocument||s,v=qg(v),(u=c3.get(u))&&ei(v,u),m=m.createElement("link"),q0(m);var w=m;w._p=new Promise(function(A,U){w.onload=A,w.onerror=U}),e1(m,"link",v),h.instance=m}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(h,s),(s=h.state.preload)&&(h.state.loading&3)===0&&(i.count++,h=te.bind(i),s.addEventListener("load",h),s.addEventListener("error",h))}}var ti=0;function wE(i,s){return i.stylesheets&&i.count===0&&ie(i,i.stylesheets),0 ti?50:800)+s);return i.unsuspend=h,function(){i.unsuspend=null,clearTimeout(v),clearTimeout(u)}}:null}function te(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ie(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var le=null;function ie(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,le=new Map,s.forEach(CE,i),le=null,te.call(i))}function CE(i,s){if(!(s.state.loading&4)){var h=le.get(i);if(h)var v=h.get(null);else{h=new Map,le.set(i,h);for(var u=i.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m "u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(c){console.error(c)}}return e(),di.exports=IE(),di.exports}var OE=NE();const UE=gc(OE);var zu="popstate";function PE(e={}){function c(a,n){let{pathname:r="/",search:o="",hash:d=""}=R5(a.location.hash.substring(1));return!r.startsWith("/")&&!r.startsWith(".")&&(r="/"+r),sa("",{pathname:r,search:o,hash:d},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function t(a,n){let r=a.document.querySelector("base"),o="";if(r&&r.getAttribute("href")){let d=a.location.href,p=d.indexOf("#");o=p===-1?d:d.slice(0,p)}return o+"#"+(typeof n=="string"?n:C8(n))}function l(a,n){r3(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(n)})`)}return GE(c,t,l,e)}function F0(e,c){if(e===!1||e===null||typeof e>"u")throw new Error(c)}function r3(e,c){if(!e){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function jE(){return Math.random().toString(36).substring(2,10)}function Mu(e,c){return{usr:e.state,key:e.key,idx:c}}function sa(e,c,t=null,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof c=="string"?R5(c):c,state:t,key:c&&c.key||l||jE()}}function C8({pathname:e="/",search:c="",hash:t=""}){return c&&c!=="?"&&(e+=c.charAt(0)==="?"?c:"?"+c),t&&t!=="#"&&(e+=t.charAt(0)==="#"?t:"#"+t),e}function R5(e){let c={};if(e){let t=e.indexOf("#");t>=0&&(c.hash=e.substring(t),e=e.substring(0,t));let l=e.indexOf("?");l>=0&&(c.search=e.substring(l),e=e.substring(0,l)),e&&(c.pathname=e)}return c}function GE(e,c,t,l={}){let{window:a=document.defaultView,v5Compat:n=!1}=l,r=a.history,o="POP",d=null,p=f();p==null&&(p=0,r.replaceState({...r.state,idx:p},""));function f(){return(r.state||{idx:null}).idx}function g(){o="POP";let x=f(),F=x==null?null:x-p;p=x,d&&d({action:o,location:C.location,delta:F})}function _(x,F){o="PUSH";let L=sa(C.location,x,F);t&&t(L,x),p=f()+1;let S=Mu(L,p),b=C.createHref(L);try{r.pushState(S,"",b)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;a.location.assign(b)}n&&d&&d({action:o,location:C.location,delta:1})}function z(x,F){o="REPLACE";let L=sa(C.location,x,F);t&&t(L,x),p=f();let S=Mu(L,p),b=C.createHref(L);r.replaceState(S,"",b),n&&d&&d({action:o,location:C.location,delta:0})}function M(x){return qE(x)}let C={get action(){return o},get location(){return e(a,r)},listen(x){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(zu,g),d=x,()=>{a.removeEventListener(zu,g),d=null}},createHref(x){return c(a,x)},createURL:M,encodeLocation(x){let F=M(x);return{pathname:F.pathname,search:F.search,hash:F.hash}},push:_,replace:z,go(x){return r.go(x)}};return C}function qE(e,c=!1){let t="http://localhost";typeof window<"u"&&(t=window.location.origin!=="null"?window.location.origin:window.location.href),F0(t,"No window.location.(origin|href) available to create URL");let l=typeof e=="string"?e:C8(e);return l=l.replace(/ $/,"%20"),!c&&l.startsWith("//")&&(l=t+l),new URL(l,t)}function q_(e,c,t="/"){return $E(e,c,t,!1)}function $E(e,c,t,l){let a=typeof c=="string"?R5(c):c,n=f4(a.pathname||"/",t);if(n==null)return null;let r=$_(e);ZE(r);let o=null;for(let d=0;o==null&&d {let f={relativePath:p===void 0?r.path||"":p,caseSensitive:r.caseSensitive===!0,childrenIndex:o,route:r};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(l)&&d)return;F0(f.relativePath.startsWith(l),`Absolute route path "${f.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(l.length)}let g=v4([l,f.relativePath]),_=t.concat(f);r.children&&r.children.length>0&&(F0(r.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),$_(r.children,c,_,g,d)),!(r.path==null&&!r.index)&&c.push({path:g,score:ex(g,r.index),routesMeta:_})};return e.forEach((r,o)=>{if(r.path===""||!r.path?.includes("?"))n(r,o);else for(let d of Z_(r.path))n(r,o,!0,d)}),c}function Z_(e){let c=e.split("/");if(c.length===0)return[];let[t,...l]=c,a=t.endsWith("?"),n=t.replace(/\?$/,"");if(l.length===0)return a?[n,""]:[n];let r=Z_(l.join("/")),o=[];return o.push(...r.map(d=>d===""?n:[n,d].join("/"))),a&&o.push(...r),o.map(d=>e.startsWith("/")&&d===""?"/":d)}function ZE(e){e.sort((c,t)=>c.score!==t.score?t.score-c.score:cx(c.routesMeta.map(l=>l.childrenIndex),t.routesMeta.map(l=>l.childrenIndex)))}var YE=/^:[\w-]+$/,WE=3,KE=2,XE=1,QE=10,JE=-2,wu=e=>e==="*";function ex(e,c){let t=e.split("/"),l=t.length;return t.some(wu)&&(l+=JE),c&&(l+=KE),t.filter(a=>!wu(a)).reduce((a,n)=>a+(YE.test(n)?WE:n===""?XE:QE),l)}function cx(e,c){return e.length===c.length&&e.slice(0,-1).every((l,a)=>l===c[a])?e[e.length-1]-c[c.length-1]:0}function tx(e,c,t=!1){let{routesMeta:l}=e,a={},n="/",r=[];for(let o=0;o {if(f==="*"){let M=o[_]||"";r=n.slice(0,n.length-M.length).replace(/(.)\/+$/,"$1")}const z=o[_];return g&&!z?p[f]=void 0:p[f]=(z||"").replace(/%2F/g,"/"),p},{}),pathname:n,pathnameBase:r,pattern:e}}function lx(e,c=!1,t=!0){r3(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let l=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(r,o,d)=>(l.push({paramName:o,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(l.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,c?void 0:"i"),l]}function ix(e){try{return e.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return r3(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${c}).`),e}}function f4(e,c){if(c==="/")return e;if(!e.toLowerCase().startsWith(c.toLowerCase()))return null;let t=c.endsWith("/")?c.length-1:c.length,l=e.charAt(t);return l&&l!=="/"?null:e.slice(t)||"/"}var Y_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ax=e=>Y_.test(e);function sx(e,c="/"){let{pathname:t,search:l="",hash:a=""}=typeof e=="string"?R5(e):e,n;if(t)if(ax(t))n=t;else{if(t.includes("//")){let r=t;t=t.replace(/\/\/+/g,"/"),r3(!1,`Pathnames cannot have embedded double slashes - normalizing ${r} -> ${t}`)}t.startsWith("/")?n=Cu(t.substring(1),"/"):n=Cu(t,c)}else n=c;return{pathname:n,search:ox(l),hash:hx(a)}}function Cu(e,c){let t=c.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function gi(e,c,t,l){return`Cannot include a '${e}' character in a manually specified \`to.${c}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function nx(e){return e.filter((c,t)=>t===0||c.route.path&&c.route.path.length>0)}function W_(e){let c=nx(e);return c.map((t,l)=>l===c.length-1?t.pathname:t.pathnameBase)}function K_(e,c,t,l=!1){let a;typeof e=="string"?a=R5(e):(a={...e},F0(!a.pathname||!a.pathname.includes("?"),gi("?","pathname","search",a)),F0(!a.pathname||!a.pathname.includes("#"),gi("#","pathname","hash",a)),F0(!a.search||!a.search.includes("#"),gi("#","search","hash",a)));let n=e===""||a.pathname==="",r=n?"/":a.pathname,o;if(r==null)o=t;else{let g=c.length-1;if(!l&&r.startsWith("..")){let _=r.split("/");for(;_[0]==="..";)_.shift(),g-=1;a.pathname=_.join("/")}o=g>=0?c[g]:"/"}let d=sx(a,o),p=r&&r!=="/"&&r.endsWith("/"),f=(n||r===".")&&t.endsWith("/");return!d.pathname.endsWith("/")&&(p||f)&&(d.pathname+="/"),d}var v4=e=>e.join("/").replace(/\/\/+/g,"/"),rx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ox=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hx=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,dx=class{constructor(e,c,t,l=!1){this.status=e,this.statusText=c||"",this.internal=l,t instanceof Error?(this.data=t.toString(),this.error=t):this.data=t}};function px(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function vx(e){return e.map(c=>c.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var X_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Q_(e,c){let t=e;if(typeof t!="string"||!Y_.test(t))return{absoluteURL:void 0,isExternal:!1,to:t};let l=t,a=!1;if(X_)try{let n=new URL(window.location.href),r=t.startsWith("//")?new URL(n.protocol+t):new URL(t),o=f4(r.pathname,c);r.origin===n.origin&&o!=null?t=o+r.search+r.hash:a=!0}catch{r3(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:a,to:t}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var J_=["POST","PUT","PATCH","DELETE"];new Set(J_);var fx=["GET",...J_];new Set(fx);var Z6=V.createContext(null);Z6.displayName="DataRouter";var uc=V.createContext(null);uc.displayName="DataRouterState";var gx=V.createContext(!1),ez=V.createContext({isTransitioning:!1});ez.displayName="ViewTransition";var ux=V.createContext(new Map);ux.displayName="Fetchers";var mx=V.createContext(null);mx.displayName="Await";var o3=V.createContext(null);o3.displayName="Navigation";var H8=V.createContext(null);H8.displayName="Location";var u4=V.createContext({outlet:null,matches:[],isDataRoute:!1});u4.displayName="Route";var ss=V.createContext(null);ss.displayName="RouteError";var cz="REACT_ROUTER_ERROR",_x="REDIRECT",zx="ROUTE_ERROR_RESPONSE";function Mx(e){if(e.startsWith(`${cz}:${_x}:{`))try{let c=JSON.parse(e.slice(28));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.location=="string"&&typeof c.reloadDocument=="boolean"&&typeof c.replace=="boolean")return c}catch{}}function wx(e){if(e.startsWith(`${cz}:${zx}:{`))try{let c=JSON.parse(e.slice(40));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string")return new dx(c.status,c.statusText,c.data)}catch{}}function Cx(e,{relative:c}={}){F0(R8(),"useHref() may be used only in the context of a component.");let{basename:t,navigator:l}=V.useContext(o3),{hash:a,pathname:n,search:r}=V8(e,{relative:c}),o=n;return t!=="/"&&(o=n==="/"?t:v4([t,n])),l.createHref({pathname:o,search:r,hash:a})}function R8(){return V.useContext(H8)!=null}function i5(){return F0(R8(),"useLocation() may be used only in the context of a component."),V.useContext(H8).location}var tz="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lz(e){V.useContext(o3).static||V.useLayoutEffect(e)}function ns(){let{isDataRoute:e}=V.useContext(u4);return e?Hx():Fx()}function Fx(){F0(R8(),"useNavigate() may be used only in the context of a component.");let e=V.useContext(Z6),{basename:c,navigator:t}=V.useContext(o3),{matches:l}=V.useContext(u4),{pathname:a}=i5(),n=JSON.stringify(W_(l)),r=V.useRef(!1);return lz(()=>{r.current=!0}),V.useCallback((d,p={})=>{if(r3(r.current,tz),!r.current)return;if(typeof d=="number"){t.go(d);return}let f=K_(d,JSON.parse(n),a,p.relative==="path");e==null&&c!=="/"&&(f.pathname=f.pathname==="/"?c:v4([c,f.pathname])),(p.replace?t.replace:t.push)(f,p.state,p)},[c,t,n,a,e])}V.createContext(null);function V8(e,{relative:c}={}){let{matches:t}=V.useContext(u4),{pathname:l}=i5(),a=JSON.stringify(W_(t));return V.useMemo(()=>K_(e,JSON.parse(a),l,c==="path"),[e,a,l,c])}function bx(e,c){return iz(e,c)}function iz(e,c,t,l,a){F0(R8(),"useRoutes() may be used only in the context of a component.");let{navigator:n}=V.useContext(o3),{matches:r}=V.useContext(u4),o=r[r.length-1],d=o?o.params:{},p=o?o.pathname:"/",f=o?o.pathnameBase:"/",g=o&&o.route;{let L=g&&g.path||"";sz(p,!g||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${p}" (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. +`+v.stack}}var M4=Object.prototype.hasOwnProperty,F3=e.unstable_scheduleCallback,w4=e.unstable_cancelCallback,s7=e.unstable_shouldYield,n7=e.unstable_requestPaint,J=e.unstable_now,M2=e.unstable_getCurrentPriorityLevel,Z=e.unstable_ImmediatePriority,i2=e.unstable_UserBlockingPriority,f2=e.unstable_NormalPriority,y2=e.unstable_LowPriority,k2=e.unstable_IdlePriority,G2=e.log,U2=e.unstable_setDisableYieldValue,J2=null,r0=null;function c0(i){if(typeof G2=="function"&&U2(i),r0&&typeof r0.setStrictMode=="function")try{r0.setStrictMode(J2,i)}catch{}}var A2=Math.clz32?Math.clz32:e9,Q0=Math.log,x1=Math.LN2;function e9(i){return i>>>=0,i===0?32:31-(Q0(i)/x1|0)|0}var o5=256,c9=262144,t9=4194304;function h5(i){var s=i&42;if(s!==0)return s;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function l9(i,s,h){var v=i.pendingLanes;if(v===0)return 0;var u=0,m=i.suspendedLanes,C=i.pingedLanes;i=i.warmLanes;var B=v&134217727;return B!==0?(v=B&~m,v!==0?u=h5(v):(C&=B,C!==0?u=h5(C):h||(h=B&~i,h!==0&&(u=h5(h))))):(B=v&~m,B!==0?u=h5(B):C!==0?u=h5(C):h||(h=v&~i,h!==0&&(u=h5(h)))),u===0?0:s!==0&&s!==u&&(s&m)===0&&(m=u&-u,h=s&-s,m>=h||m===32&&(h&4194048)!==0)?s:u}function r7(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function xx(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 fp(){var i=t9;return t9<<=1,(t9&62914560)===0&&(t9=4194304),i}function Qc(i){for(var s=[],h=0;31>h;h++)s.push(i);return s}function o7(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function bx(i,s,h,v,u,m){var C=i.pendingLanes;i.pendingLanes=h,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=h,i.entangledLanes&=h,i.errorRecoveryDisabledLanes&=h,i.shellSuspendCounter=0;var B=i.entanglements,j=i.expirationTimes,K=i.hiddenUpdates;for(h=C&~h;0 "u")return null;try{return i.activeElement||i.body}catch{return i.body}}var Sx=/[\n"\\]/g;function Y1(i){return i.replace(Sx,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function it(i,s,h,v,u,m,C,B){i.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?i.type=C:i.removeAttribute("type"),s!=null?C==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+W1(s)):i.value!==""+W1(s)&&(i.value=""+W1(s)):C!=="submit"&&C!=="reset"||i.removeAttribute("value"),s!=null?at(i,C,W1(s)):h!=null?at(i,C,W1(h)):v!=null&&i.removeAttribute("value"),u==null&&m!=null&&(i.defaultChecked=!!m),u!=null&&(i.checked=u&&typeof u!="function"&&typeof u!="symbol"),B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?i.name=""+W1(B):i.removeAttribute("name")}function yp(i,s,h,v,u,m,C,B){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(i.type=m),s!=null||h!=null){if(!(m!=="submit"&&m!=="reset"||s!=null)){lt(i);return}h=h!=null?""+W1(h):"",s=s!=null?""+W1(s):h,B||s===i.value||(i.value=s),i.defaultValue=s}v=v??u,v=typeof v!="function"&&typeof v!="symbol"&&!!v,i.checked=B?i.checked:!!v,i.defaultChecked=!!v,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(i.name=C),lt(i)}function at(i,s,h){s==="number"&&s9(i.ownerDocument)===i||i.defaultValue===""+h||(i.defaultValue=""+h)}function W5(i,s,h,v){if(i=i.options,s){s={};for(var u=0;u "u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ht=!1;if(G3)try{var v7={};Object.defineProperty(v7,"passive",{get:function(){ht=!0}}),window.addEventListener("test",v7,v7),window.removeEventListener("test",v7,v7)}catch{ht=!1}var x4=null,dt=null,r9=null;function Tp(){if(r9)return r9;var i,s=dt,h=s.length,v,u="value"in x4?x4.value:x4.textContent,m=u.length;for(i=0;i =u7),Op=" ",Up=!1;function Pp(i,s){switch(i){case"keyup":return ib.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jp(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Q5=!1;function sb(i,s){switch(i){case"compositionend":return jp(s);case"keypress":return s.which!==32?null:(Up=!0,Op);case"textInput":return i=s.data,i===Op&&Up?null:i;default:return null}}function nb(i,s){if(Q5)return i==="compositionend"||!ut&&Pp(i,s)?(i=Tp(),r9=dt=x4=null,Q5=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1 =s)return{node:h,offset:s-i};i=v}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=Xp(h)}}function Jp(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?Jp(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function ev(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=s9(i.document);s instanceof i.HTMLIFrameElement;){try{var h=typeof s.contentWindow.location.href=="string"}catch{h=!1}if(h)i=s.contentWindow;else break;s=s9(i.document)}return s}function zt(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var gb=G3&&"documentMode"in document&&11>=document.documentMode,J5=null,Mt=null,M7=null,wt=!1;function cv(i,s,h){var v=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;wt||J5==null||J5!==s9(v)||(v=J5,"selectionStart"in v&&zt(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),M7&&z7(M7,v)||(M7=v,v=ce(Mt,"onSelect"),0 >=C,u-=C,E3=1<<32-A2(s)+u|h<I2?(X2=E2,E2=null):X2=E2.sibling;var a0=e2(W,E2,Y[I2],d2);if(a0===null){E2===null&&(E2=X2);break}i&&E2&&a0.alternate===null&&s(W,E2),$=m(a0,$,I2),i0===null?D2=a0:i0.sibling=a0,i0=a0,E2=X2}if(I2===Y.length)return h(W,E2),e0&&$3(W,I2),D2;if(E2===null){for(;I2 I2?(X2=E2,E2=null):X2=E2.sibling;var q4=e2(W,E2,a0.value,d2);if(q4===null){E2===null&&(E2=X2);break}i&&E2&&q4.alternate===null&&s(W,E2),$=m(q4,$,I2),i0===null?D2=q4:i0.sibling=q4,i0=q4,E2=X2}if(a0.done)return h(W,E2),e0&&$3(W,I2),D2;if(E2===null){for(;!a0.done;I2++,a0=Y.next())a0=p2(W,a0.value,d2),a0!==null&&($=m(a0,$,I2),i0===null?D2=a0:i0.sibling=a0,i0=a0);return e0&&$3(W,I2),D2}for(E2=v(E2);!a0.done;I2++,a0=Y.next())a0=a2(E2,W,I2,a0.value,d2),a0!==null&&(i&&a0.alternate!==null&&E2.delete(a0.key===null?I2:a0.key),$=m(a0,$,I2),i0===null?D2=a0:i0.sibling=a0,i0=a0);return i&&E2.forEach(function(HF){return s(W,HF)}),e0&&$3(W,I2),D2}function v0(W,$,Y,d2){if(typeof Y=="object"&&Y!==null&&Y.type===w&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case z:e:{for(var D2=Y.key;$!==null;){if($.key===D2){if(D2=Y.type,D2===w){if($.tag===7){h(W,$.sibling),d2=u($,Y.props.children),d2.return=W,W=d2;break e}}else if($.elementType===D2||typeof D2=="object"&&D2!==null&&D2.$$typeof===I&&w5(D2)===$.type){h(W,$.sibling),d2=u($,Y.props),E7(d2,Y),d2.return=W,W=d2;break e}h(W,$);break}else s(W,$);$=$.sibling}Y.type===w?(d2=u5(Y.props.children,W.mode,d2,Y.key),d2.return=W,W=d2):(d2=_9(Y.type,Y.key,Y.props,null,W.mode,d2),E7(d2,Y),d2.return=W,W=d2)}return C(W);case M:e:{for(D2=Y.key;$!==null;){if($.key===D2)if($.tag===4&&$.stateNode.containerInfo===Y.containerInfo&&$.stateNode.implementation===Y.implementation){h(W,$.sibling),d2=u($,Y.children||[]),d2.return=W,W=d2;break e}else{h(W,$);break}else s(W,$);$=$.sibling}d2=Dt(Y,W.mode,d2),d2.return=W,W=d2}return C(W);case I:return Y=w5(Y),v0(W,$,Y,d2)}if(s2(Y))return F2(W,$,Y,d2);if(G(Y)){if(D2=G(Y),typeof D2!="function")throw Error(l(150));return Y=D2.call(Y),B2(W,$,Y,d2)}if(typeof Y.then=="function")return v0(W,$,F9(Y),d2);if(Y.$$typeof===S)return v0(W,$,w9(W,Y),d2);E9(W,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,$!==null&&$.tag===6?(h(W,$.sibling),d2=u($,Y),d2.return=W,W=d2):(h(W,$),d2=yt(Y,W.mode,d2),d2.return=W,W=d2),C(W)):h(W,$)}return function(W,$,Y,d2){try{F7=0;var D2=v0(W,$,Y,d2);return h6=null,D2}catch(E2){if(E2===o6||E2===x9)throw E2;var i0=V1(29,E2,null,W.mode);return i0.lanes=d2,i0.return=W,i0}}}var x5=bv(!0),Fv=bv(!1),D4=!1;function Ot(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ut(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function A4(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function S4(i,s,h){var v=i.updateQueue;if(v===null)return null;if(v=v.shared,(s0&2)!==0){var u=v.pending;return u===null?s.next=s:(s.next=u.next,u.next=s),v.pending=s,s=m9(i),rv(i,null,h),s}return u9(i,v,s,h),m9(i)}function y7(i,s,h){if(s=s.updateQueue,s!==null&&(s=s.shared,(h&4194048)!==0)){var v=s.lanes;v&=i.pendingLanes,h|=v,s.lanes=h,up(i,h)}}function Pt(i,s){var h=i.updateQueue,v=i.alternate;if(v!==null&&(v=v.updateQueue,h===v)){var u=null,m=null;if(h=h.firstBaseUpdate,h!==null){do{var C={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};m===null?u=m=C:m=m.next=C,h=h.next}while(h!==null);m===null?u=m=s:m=m.next=s}else u=m=s;h={baseState:v.baseState,firstBaseUpdate:u,lastBaseUpdate:m,shared:v.shared,callbacks:v.callbacks},i.updateQueue=h;return}i=h.lastBaseUpdate,i===null?h.firstBaseUpdate=s:i.next=s,h.lastBaseUpdate=s}var jt=!1;function D7(){if(jt){var i=r6;if(i!==null)throw i}}function A7(i,s,h,v){jt=!1;var u=i.updateQueue;D4=!1;var m=u.firstBaseUpdate,C=u.lastBaseUpdate,B=u.shared.pending;if(B!==null){u.shared.pending=null;var j=B,K=j.next;j.next=null,C===null?m=K:C.next=K,C=j;var r2=i.alternate;r2!==null&&(r2=r2.updateQueue,B=r2.lastBaseUpdate,B!==C&&(B===null?r2.firstBaseUpdate=K:B.next=K,r2.lastBaseUpdate=j))}if(m!==null){var p2=u.baseState;C=0,r2=K=j=null,B=m;do{var e2=B.lane&-536870913,a2=e2!==B.lane;if(a2?(K2&e2)===e2:(v&e2)===e2){e2!==0&&e2===n6&&(jt=!0),r2!==null&&(r2=r2.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});e:{var F2=i,B2=B;e2=s;var v0=h;switch(B2.tag){case 1:if(F2=B2.payload,typeof F2=="function"){p2=F2.call(v0,p2,e2);break e}p2=F2;break e;case 3:F2.flags=F2.flags&-65537|128;case 0:if(F2=B2.payload,e2=typeof F2=="function"?F2.call(v0,p2,e2):F2,e2==null)break e;p2=g({},p2,e2);break e;case 2:D4=!0}}e2=B.callback,e2!==null&&(i.flags|=64,a2&&(i.flags|=8192),a2=u.callbacks,a2===null?u.callbacks=[e2]:a2.push(e2))}else a2={lane:e2,tag:B.tag,payload:B.payload,callback:B.callback,next:null},r2===null?(K=r2=a2,j=p2):r2=r2.next=a2,C|=e2;if(B=B.next,B===null){if(B=u.shared.pending,B===null)break;a2=B,B=a2.next,a2.next=null,u.lastBaseUpdate=a2,u.shared.pending=null}}while(!0);r2===null&&(j=p2),u.baseState=j,u.firstBaseUpdate=K,u.lastBaseUpdate=r2,m===null&&(u.shared.lanes=0),H4|=C,i.lanes=C,i.memoizedState=p2}}function Ev(i,s){if(typeof i!="function")throw Error(l(191,i));i.call(s)}function yv(i,s){var h=i.callbacks;if(h!==null)for(i.callbacks=null,i=0;i m?m:8;var C=q.T,B={};q.T=B,rl(i,!1,s,h);try{var j=u(),K=q.S;if(K!==null&&K(B,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var r2=bb(j,v);k7(i,s,r2,P1(i))}else k7(i,s,v,P1(i))}catch(p2){k7(i,s,{then:function(){},status:"rejected",reason:p2},P1())}finally{t2.p=m,C!==null&&B.types!==null&&(C.types=B.types),q.T=C}}function Sb(){}function sl(i,s,h,v){if(i.tag!==5)throw Error(l(476));var u=sf(i).queue;af(i,u,s,u2,h===null?Sb:function(){return nf(i),h(v)})}function sf(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:u2,baseState:u2,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:K3,lastRenderedState:u2},next:null};var h={};return s.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:K3,lastRenderedState:h},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function nf(i){var s=sf(i);s.next===null&&(s=i.alternate.memoizedState),k7(i,s.next.queue,{},P1())}function nl(){return c1(Y7)}function rf(){return k0().memoizedState}function of(){return k0().memoizedState}function Bb(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var h=P1();i=A4(h);var v=S4(s,i,h);v!==null&&(S1(v,s,h),y7(v,s,h)),s={cache:Rt()},i.payload=s;return}s=s.return}}function kb(i,s,h){var v=P1();h={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},R9(i)?df(s,h):(h=Ft(i,s,h,v),h!==null&&(S1(h,i,v),pf(h,s,v)))}function hf(i,s,h){var v=P1();k7(i,s,h,v)}function k7(i,s,h,v){var u={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null};if(R9(i))df(s,u);else{var m=i.alternate;if(i.lanes===0&&(m===null||m.lanes===0)&&(m=s.lastRenderedReducer,m!==null))try{var C=s.lastRenderedState,B=m(C,h);if(u.hasEagerState=!0,u.eagerState=B,R1(B,C))return u9(i,s,u,0),g0===null&&g9(),!1}catch{}if(h=Ft(i,s,u,v),h!==null)return S1(h,i,v),pf(h,s,v),!0}return!1}function rl(i,s,h,v){if(v={lane:2,revertLane:Ol(),gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},R9(i)){if(s)throw Error(l(479))}else s=Ft(i,h,v,2),s!==null&&S1(s,i,2)}function R9(i){var s=i.alternate;return i===V2||s!==null&&s===V2}function df(i,s){p6=A9=!0;var h=i.pending;h===null?s.next=s:(s.next=h.next,h.next=s),i.pending=s}function pf(i,s,h){if((h&4194048)!==0){var v=s.lanes;v&=i.pendingLanes,h|=v,s.lanes=h,up(i,h)}}var L7={readContext:c1,use:k9,useCallback:E0,useContext:E0,useEffect:E0,useImperativeHandle:E0,useLayoutEffect:E0,useInsertionEffect:E0,useMemo:E0,useReducer:E0,useRef:E0,useState:E0,useDebugValue:E0,useDeferredValue:E0,useTransition:E0,useSyncExternalStore:E0,useId:E0,useHostTransitionStatus:E0,useFormState:E0,useActionState:E0,useOptimistic:E0,useMemoCache:E0,useCacheRefresh:E0};L7.useEffectEvent=E0;var vf={readContext:c1,use:k9,useCallback:function(i,s){return f1().memoizedState=[i,s===void 0?null:s],i},useContext:c1,useEffect:Yv,useImperativeHandle:function(i,s,h){h=h!=null?h.concat([i]):null,T9(4194308,4,Jv.bind(null,s,i),h)},useLayoutEffect:function(i,s){return T9(4194308,4,i,s)},useInsertionEffect:function(i,s){T9(4,2,i,s)},useMemo:function(i,s){var h=f1();s=s===void 0?null:s;var v=i();if(b5){c0(!0);try{i()}finally{c0(!1)}}return h.memoizedState=[v,s],v},useReducer:function(i,s,h){var v=f1();if(h!==void 0){var u=h(s);if(b5){c0(!0);try{h(s)}finally{c0(!1)}}}else u=s;return v.memoizedState=v.baseState=u,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:u},v.queue=i,i=i.dispatch=kb.bind(null,V2,i),[v.memoizedState,i]},useRef:function(i){var s=f1();return i={current:i},s.memoizedState=i},useState:function(i){i=cl(i);var s=i.queue,h=hf.bind(null,V2,s);return s.dispatch=h,[i.memoizedState,h]},useDebugValue:il,useDeferredValue:function(i,s){var h=f1();return al(h,i,s)},useTransition:function(){var i=cl(!1);return i=af.bind(null,V2,i.queue,!0,!1),f1().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,h){var v=V2,u=f1();if(e0){if(h===void 0)throw Error(l(407));h=h()}else{if(h=s(),g0===null)throw Error(l(349));(K2&127)!==0||Lv(v,s,h)}u.memoizedState=h;var m={value:h,getSnapshot:s};return u.queue=m,Yv(Hv.bind(null,v,m,i),[i]),v.flags|=2048,f6(9,{destroy:void 0},Tv.bind(null,v,m,h,s),null),h},useId:function(){var i=f1(),s=g0.identifierPrefix;if(e0){var h=y3,v=E3;h=(v&~(1<<32-A2(v)-1)).toString(32)+h,s="_"+s+"R_"+h,h=S9++,0 <\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof v.is=="string"?C.createElement("select",{is:v.is}):C.createElement("select"),v.multiple?m.multiple=!0:v.size&&(m.size=v.size);break;default:m=typeof v.is=="string"?C.createElement(u,{is:v.is}):C.createElement(u)}}m[J0]=s,m[b1]=v;e:for(C=s.child;C!==null;){if(C.tag===5||C.tag===6)m.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===s)break e;for(;C.sibling===null;){if(C.return===null||C.return===s)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}s.stateNode=m;e:switch(l1(m,u,v),u){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}v&&Q3(s)}}return w0(s),Cl(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,h),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==v&&Q3(s);else{if(typeof v!="string"&&s.stateNode===null)throw Error(l(166));if(i=C2.current,a6(s)){if(i=s.stateNode,h=s.memoizedProps,v=null,u=e1,u!==null)switch(u.tag){case 27:case 5:v=u.memoizedProps}i[J0]=s,i=!!(i.nodeValue===h||v!==null&&v.suppressHydrationWarning===!0||kg(i.nodeValue,h)),i||E4(s,!0)}else i=te(i).createTextNode(v),i[J0]=s,s.stateNode=i}return w0(s),null;case 31:if(h=s.memoizedState,i===null||i.memoizedState!==null){if(v=a6(s),h!==null){if(i===null){if(!v)throw Error(l(318));if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(l(557));i[J0]=s}else m5(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;w0(s),i=!1}else h=kt(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=h),i=!0;if(!i)return s.flags&256?(N1(s),s):(N1(s),null);if((s.flags&128)!==0)throw Error(l(558))}return w0(s),null;case 13:if(v=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(u=a6(s),v!==null&&v.dehydrated!==null){if(i===null){if(!u)throw Error(l(318));if(u=s.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(l(317));u[J0]=s}else m5(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;w0(s),u=!1}else u=kt(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),u=!0;if(!u)return s.flags&256?(N1(s),s):(N1(s),null)}return N1(s),(s.flags&128)!==0?(s.lanes=h,s):(h=v!==null,i=i!==null&&i.memoizedState!==null,h&&(v=s.child,u=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(u=v.alternate.memoizedState.cachePool.pool),m=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(m=v.memoizedState.cachePool.pool),m!==u&&(v.flags|=2048)),h!==i&&h&&(s.child.flags|=8192),U9(s,s.updateQueue),w0(s),null);case 4:return L2(),i===null&&Gl(s.stateNode.containerInfo),w0(s),null;case 10:return W3(s.type),w0(s),null;case 19:if(Q(B0),v=s.memoizedState,v===null)return w0(s),null;if(u=(s.flags&128)!==0,m=v.rendering,m===null)if(u)H7(v,!1);else{if(y0!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(m=D9(i),m!==null){for(s.flags|=128,H7(v,!1),i=m.updateQueue,s.updateQueue=i,U9(s,i),s.subtreeFlags=0,i=h,h=s.child;h!==null;)ov(h,i),h=h.sibling;return T(B0,B0.current&1|2),e0&&$3(s,v.treeForkCount),s.child}i=i.sibling}v.tail!==null&&J()>$9&&(s.flags|=128,u=!0,H7(v,!1),s.lanes=4194304)}else{if(!u)if(i=D9(m),i!==null){if(s.flags|=128,u=!0,i=i.updateQueue,s.updateQueue=i,U9(s,i),H7(v,!0),v.tail===null&&v.tailMode==="hidden"&&!m.alternate&&!e0)return w0(s),null}else 2*J()-v.renderingStartTime>$9&&h!==536870912&&(s.flags|=128,u=!0,H7(v,!1),s.lanes=4194304);v.isBackwards?(m.sibling=s.child,s.child=m):(i=v.last,i!==null?i.sibling=m:s.child=m,v.last=m)}return v.tail!==null?(i=v.tail,v.rendering=i,v.tail=i.sibling,v.renderingStartTime=J(),i.sibling=null,h=B0.current,T(B0,u?h&1|2:h&1),e0&&$3(s,v.treeForkCount),i):(w0(s),null);case 22:case 23:return N1(s),qt(),v=s.memoizedState!==null,i!==null?i.memoizedState!==null!==v&&(s.flags|=8192):v&&(s.flags|=8192),v?(h&536870912)!==0&&(s.flags&128)===0&&(w0(s),s.subtreeFlags&6&&(s.flags|=8192)):w0(s),h=s.updateQueue,h!==null&&U9(s,h.retryQueue),h=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(h=i.memoizedState.cachePool.pool),v=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(v=s.memoizedState.cachePool.pool),v!==h&&(s.flags|=2048),i!==null&&Q(M5),null;case 24:return h=null,i!==null&&(h=i.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),W3(T0),w0(s),null;case 25:return null;case 30:return null}throw Error(l(156,s.tag))}function Vb(i,s){switch(St(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return W3(T0),L2(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return q0(s),null;case 31:if(s.memoizedState!==null){if(N1(s),s.alternate===null)throw Error(l(340));m5()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if(N1(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(l(340));m5()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return Q(B0),null;case 4:return L2(),null;case 10:return W3(s.type),null;case 22:case 23:return N1(s),qt(),i!==null&&Q(M5),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return W3(T0),null;case 25:return null;default:return null}}function Vf(i,s){switch(St(s),s.tag){case 3:W3(T0),L2();break;case 26:case 27:case 5:q0(s);break;case 4:L2();break;case 31:s.memoizedState!==null&&N1(s);break;case 13:N1(s);break;case 19:Q(B0);break;case 10:W3(s.type);break;case 22:case 23:N1(s),qt(),i!==null&&Q(M5);break;case 24:W3(T0)}}function R7(i,s){try{var h=s.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var u=v.next;h=u;do{if((h.tag&i)===i){v=void 0;var m=h.create,C=h.inst;v=m(),C.destroy=v}h=h.next}while(h!==u)}}catch(B){h0(s,s.return,B)}}function L4(i,s,h){try{var v=s.updateQueue,u=v!==null?v.lastEffect:null;if(u!==null){var m=u.next;v=m;do{if((v.tag&i)===i){var C=v.inst,B=C.destroy;if(B!==void 0){C.destroy=void 0,u=s;var j=h,K=B;try{K()}catch(r2){h0(u,j,r2)}}}v=v.next}while(v!==m)}}catch(r2){h0(s,s.return,r2)}}function If(i){var s=i.updateQueue;if(s!==null){var h=i.stateNode;try{yv(s,h)}catch(v){h0(i,i.return,v)}}}function Nf(i,s,h){h.props=F5(i.type,i.memoizedProps),h.state=i.memoizedState;try{h.componentWillUnmount()}catch(v){h0(i,s,v)}}function V7(i,s){try{var h=i.ref;if(h!==null){switch(i.tag){case 26:case 27:case 5:var v=i.stateNode;break;case 30:v=i.stateNode;break;default:v=i.stateNode}typeof h=="function"?i.refCleanup=h(v):h.current=v}}catch(u){h0(i,s,u)}}function D3(i,s){var h=i.ref,v=i.refCleanup;if(h!==null)if(typeof v=="function")try{v()}catch(u){h0(i,s,u)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(u){h0(i,s,u)}else h.current=null}function Of(i){var s=i.type,h=i.memoizedProps,v=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":h.autoFocus&&v.focus();break e;case"img":h.src?v.src=h.src:h.srcSet&&(v.srcset=h.srcSet)}}catch(u){h0(i,i.return,u)}}function xl(i,s,h){try{var v=i.stateNode;aF(v,i.type,h,s),v[b1]=s}catch(u){h0(i,i.return,u)}}function Uf(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&O4(i.type)||i.tag===4}function bl(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Uf(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&O4(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Fl(i,s,h){var v=i.tag;if(v===5||v===6)i=i.stateNode,s?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(i,s):(s=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,s.appendChild(i),h=h._reactRootContainer,h!=null||s.onclick!==null||(s.onclick=j3));else if(v!==4&&(v===27&&O4(i.type)&&(h=i.stateNode,s=null),i=i.child,i!==null))for(Fl(i,s,h),i=i.sibling;i!==null;)Fl(i,s,h),i=i.sibling}function P9(i,s,h){var v=i.tag;if(v===5||v===6)i=i.stateNode,s?h.insertBefore(i,s):h.appendChild(i);else if(v!==4&&(v===27&&O4(i.type)&&(h=i.stateNode),i=i.child,i!==null))for(P9(i,s,h),i=i.sibling;i!==null;)P9(i,s,h),i=i.sibling}function Pf(i){var s=i.stateNode,h=i.memoizedProps;try{for(var v=i.type,u=s.attributes;u.length;)s.removeAttributeNode(u[0]);l1(s,v,h),s[J0]=i,s[b1]=h}catch(m){h0(i,i.return,m)}}var J3=!1,V0=!1,El=!1,jf=typeof WeakSet=="function"?WeakSet:Set,Z0=null;function Ib(i,s){if(i=i.containerInfo,Zl=oe,i=ev(i),zt(i)){if("selectionStart"in i)var h={start:i.selectionStart,end:i.selectionEnd};else e:{h=(h=i.ownerDocument)&&h.defaultView||window;var v=h.getSelection&&h.getSelection();if(v&&v.rangeCount!==0){h=v.anchorNode;var u=v.anchorOffset,m=v.focusNode;v=v.focusOffset;try{h.nodeType,m.nodeType}catch{h=null;break e}var C=0,B=-1,j=-1,K=0,r2=0,p2=i,e2=null;c:for(;;){for(var a2;p2!==h||u!==0&&p2.nodeType!==3||(B=C+u),p2!==m||v!==0&&p2.nodeType!==3||(j=C+v),p2.nodeType===3&&(C+=p2.nodeValue.length),(a2=p2.firstChild)!==null;)e2=p2,p2=a2;for(;;){if(p2===i)break c;if(e2===h&&++K===u&&(B=C),e2===m&&++r2===v&&(j=C),(a2=p2.nextSibling)!==null)break;p2=e2,e2=p2.parentNode}p2=a2}h=B===-1||j===-1?null:{start:B,end:j}}else h=null}h=h||{start:0,end:0}}else h=null;for(Wl={focusedElem:i,selectionRange:h},oe=!1,Z0=s;Z0!==null;)if(s=Z0,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Z0=i;else for(;Z0!==null;){switch(s=Z0,m=s.alternate,i=s.flags,s.tag){case 0:if((i&4)!==0&&(i=s.updateQueue,i=i!==null?i.events:null,i!==null))for(h=0;h title"))),l1(m,v,h),m[J0]=i,$0(m),v=m;break e;case"link":var C=Yg("link","href",u).get(v+(h.href||""));if(C){for(var B=0;B v0&&(C=v0,v0=B2,B2=C);var W=Qp(B,B2),$=Qp(B,v0);if(W&&$&&(a2.rangeCount!==1||a2.anchorNode!==W.node||a2.anchorOffset!==W.offset||a2.focusNode!==$.node||a2.focusOffset!==$.offset)){var Y=p2.createRange();Y.setStart(W.node,W.offset),a2.removeAllRanges(),B2>v0?(a2.addRange(Y),a2.extend($.node,$.offset)):(Y.setEnd($.node,$.offset),a2.addRange(Y))}}}}for(p2=[],a2=B;a2=a2.parentNode;)a2.nodeType===1&&p2.push({element:a2,left:a2.scrollLeft,top:a2.scrollTop});for(typeof B.focus=="function"&&B.focus(),B=0;B h?32:h,q.T=null,h=Ll,Ll=null;var m=V4,C=i4;if(U0=0,z6=V4=null,i4=0,(s0&6)!==0)throw Error(l(331));var B=s0;if(s0|=4,eg(m.current),Xf(m,m.current,C,h),s0=B,j7(0,!1),r0&&typeof r0.onPostCommitFiberRoot=="function")try{r0.onPostCommitFiberRoot(J2,m)}catch{}return!0}finally{t2.p=u,q.T=v,_g(i,s)}}function Mg(i,s,h){s=X1(h,s),s=pl(i.stateNode,s,2),i=S4(i,s,2),i!==null&&(o7(i,2),A3(i))}function h0(i,s,h){if(i.tag===3)Mg(i,i,h);else for(;s!==null;){if(s.tag===3){Mg(s,i,h);break}else if(s.tag===1){var v=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(R4===null||!R4.has(v))){i=X1(h,i),h=wf(2),v=S4(s,h,2),v!==null&&(Cf(h,v,s,i),o7(v,2),A3(v));break}}s=s.return}}function Vl(i,s,h){var v=i.pingCache;if(v===null){v=i.pingCache=new Ub;var u=new Set;v.set(s,u)}else u=v.get(s),u===void 0&&(u=new Set,v.set(s,u));u.has(h)||(Al=!0,u.add(h),i=$b.bind(null,i,s,h),s.then(i,i))}function $b(i,s,h){var v=i.pingCache;v!==null&&v.delete(s),i.pingedLanes|=i.suspendedLanes&h,i.warmLanes&=~h,g0===i&&(K2&h)===h&&(y0===4||y0===3&&(K2&62914560)===K2&&300>J()-q9?(s0&2)===0&&M6(i,0):Sl|=h,_6===K2&&(_6=0)),A3(i)}function wg(i,s){s===0&&(s=fp()),i=g5(i,s),i!==null&&(o7(i,s),A3(i))}function Zb(i){var s=i.memoizedState,h=0;s!==null&&(h=s.retryLane),wg(i,h)}function Wb(i,s){var h=0;switch(i.tag){case 31:case 13:var v=i.stateNode,u=i.memoizedState;u!==null&&(h=u.retryLane);break;case 19:v=i.stateNode;break;case 22:v=i.stateNode._retryCache;break;default:throw Error(l(314))}v!==null&&v.delete(s),wg(i,h)}function Yb(i,s){return F3(i,s)}var Q9=null,C6=null,Il=!1,J9=!1,Nl=!1,N4=0;function A3(i){i!==C6&&i.next===null&&(C6===null?Q9=C6=i:C6=C6.next=i),J9=!0,Il||(Il=!0,Xb())}function j7(i,s){if(!Nl&&J9){Nl=!0;do for(var h=!1,v=Q9;v!==null;){if(i!==0){var u=v.pendingLanes;if(u===0)var m=0;else{var C=v.suspendedLanes,B=v.pingedLanes;m=(1<<31-A2(42|i)+1)-1,m&=u&~(C&~B),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(h=!0,Fg(v,m))}else m=K2,m=l9(v,v===g0?m:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(m&3)===0||r7(v,m)||(h=!0,Fg(v,m));v=v.next}while(h);Nl=!1}}function Kb(){Cg()}function Cg(){J9=Il=!1;var i=0;N4!==0&&nF()&&(i=N4);for(var s=J(),h=null,v=Q9;v!==null;){var u=v.next,m=xg(v,s);m===0?(v.next=null,h===null?Q9=u:h.next=u,u===null&&(C6=h)):(h=v,(i!==0||(m&3)!==0)&&(J9=!0)),v=u}U0!==0&&U0!==5||j7(i),N4!==0&&(N4=0)}function xg(i,s){for(var h=i.suspendedLanes,v=i.pingedLanes,u=i.expirationTimes,m=i.pendingLanes&-62914561;0 B)break;var r2=j.transferSize,p2=j.initiatorType;r2&&Lg(p2)&&(j=j.responseEnd,C+=r2*(j"u"?null:document;function qg(i,s,h){var v=x6;if(v&&typeof s=="string"&&s){var u=Y1(s);u='link[rel="'+i+'"][href="'+u+'"]',typeof h=="string"&&(u+='[crossorigin="'+h+'"]'),Gg.has(u)||(Gg.add(u),i={rel:i,crossOrigin:h,href:s},v.querySelector(u)===null&&(s=v.createElement("link"),l1(s,"link",i),$0(s),v.head.appendChild(s)))}}function uF(i){a4.D(i),qg("dns-prefetch",i,null)}function mF(i,s){a4.C(i,s),qg("preconnect",i,s)}function _F(i,s,h){a4.L(i,s,h);var v=x6;if(v&&i&&s){var u='link[rel="preload"][as="'+Y1(s)+'"]';s==="image"&&h&&h.imageSrcSet?(u+='[imagesrcset="'+Y1(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(u+='[imagesizes="'+Y1(h.imageSizes)+'"]')):u+='[href="'+Y1(i)+'"]';var m=u;switch(s){case"style":m=b6(i);break;case"script":m=F6(i)}l3.has(m)||(i=g({rel:"preload",href:s==="image"&&h&&h.imageSrcSet?void 0:i,as:s},h),l3.set(m,i),v.querySelector(u)!==null||s==="style"&&v.querySelector(Z7(m))||s==="script"&&v.querySelector(W7(m))||(s=v.createElement("link"),l1(s,"link",i),$0(s),v.head.appendChild(s)))}}function zF(i,s){a4.m(i,s);var h=x6;if(h&&i){var v=s&&typeof s.as=="string"?s.as:"script",u='link[rel="modulepreload"][as="'+Y1(v)+'"][href="'+Y1(i)+'"]',m=u;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=F6(i)}if(!l3.has(m)&&(i=g({rel:"modulepreload",href:i},s),l3.set(m,i),h.querySelector(u)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(W7(m)))return}v=h.createElement("link"),l1(v,"link",i),$0(v),h.head.appendChild(v)}}}function MF(i,s,h){a4.S(i,s,h);var v=x6;if(v&&i){var u=$5(v).hoistableStyles,m=b6(i);s=s||"default";var C=u.get(m);if(!C){var B={loading:0,preload:null};if(C=v.querySelector(Z7(m)))B.loading=5;else{i=g({rel:"stylesheet",href:i,"data-precedence":s},h),(h=l3.get(m))&&ci(i,h);var j=C=v.createElement("link");$0(j),l1(j,"link",i),j._p=new Promise(function(K,r2){j.onload=K,j.onerror=r2}),j.addEventListener("load",function(){B.loading|=1}),j.addEventListener("error",function(){B.loading|=2}),B.loading|=4,ie(C,s,v)}C={type:"stylesheet",instance:C,count:1,state:B},u.set(m,C)}}}function wF(i,s){a4.X(i,s);var h=x6;if(h&&i){var v=$5(h).hoistableScripts,u=F6(i),m=v.get(u);m||(m=h.querySelector(W7(u)),m||(i=g({src:i,async:!0},s),(s=l3.get(u))&&ti(i,s),m=h.createElement("script"),$0(m),l1(m,"link",i),h.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},v.set(u,m))}}function CF(i,s){a4.M(i,s);var h=x6;if(h&&i){var v=$5(h).hoistableScripts,u=F6(i),m=v.get(u);m||(m=h.querySelector(W7(u)),m||(i=g({src:i,async:!0,type:"module"},s),(s=l3.get(u))&&ti(i,s),m=h.createElement("script"),$0(m),l1(m,"link",i),h.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},v.set(u,m))}}function $g(i,s,h,v){var u=(u=C2.current)?le(u):null;if(!u)throw Error(l(446));switch(i){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(s=b6(h.href),h=$5(u).hoistableStyles,v=h.get(s),v||(v={type:"style",instance:null,count:0,state:null},h.set(s,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){i=b6(h.href);var m=$5(u).hoistableStyles,C=m.get(i);if(C||(u=u.ownerDocument||u,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(i,C),(m=u.querySelector(Z7(i)))&&!m._p&&(C.instance=m,C.state.loading=5),l3.has(i)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},l3.set(i,h),m||xF(u,i,h,C.state))),s&&v===null)throw Error(l(528,""));return C}if(s&&v!==null)throw Error(l(529,""));return null;case"script":return s=h.async,h=h.src,typeof h=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=F6(h),h=$5(u).hoistableScripts,v=h.get(s),v||(v={type:"script",instance:null,count:0,state:null},h.set(s,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,i))}}function b6(i){return'href="'+Y1(i)+'"'}function Z7(i){return'link[rel="stylesheet"]['+i+"]"}function Zg(i){return g({},i,{"data-precedence":i.precedence,precedence:null})}function xF(i,s,h,v){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?v.loading=1:(s=i.createElement("link"),v.preload=s,s.addEventListener("load",function(){return v.loading|=1}),s.addEventListener("error",function(){return v.loading|=2}),l1(s,"link",h),$0(s),i.head.appendChild(s))}function F6(i){return'[src="'+Y1(i)+'"]'}function W7(i){return"script[async]"+i}function Wg(i,s,h){if(s.count++,s.instance===null)switch(s.type){case"style":var v=i.querySelector('style[data-href~="'+Y1(h.href)+'"]');if(v)return s.instance=v,$0(v),v;var u=g({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return v=(i.ownerDocument||i).createElement("style"),$0(v),l1(v,"style",u),ie(v,h.precedence,i),s.instance=v;case"stylesheet":u=b6(h.href);var m=i.querySelector(Z7(u));if(m)return s.state.loading|=4,s.instance=m,$0(m),m;v=Zg(h),(u=l3.get(u))&&ci(v,u),m=(i.ownerDocument||i).createElement("link"),$0(m);var C=m;return C._p=new Promise(function(B,j){C.onload=B,C.onerror=j}),l1(m,"link",v),s.state.loading|=4,ie(m,h.precedence,i),s.instance=m;case"script":return m=F6(h.src),(u=i.querySelector(W7(m)))?(s.instance=u,$0(u),u):(v=h,(u=l3.get(m))&&(v=g({},h),ti(v,u)),i=i.ownerDocument||i,u=i.createElement("script"),$0(u),l1(u,"link",v),i.head.appendChild(u),s.instance=u);case"void":return null;default:throw Error(l(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(v=s.instance,s.state.loading|=4,ie(v,h.precedence,i));return s.instance}function ie(i,s,h){for(var v=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=v.length?v[v.length-1]:null,m=u,C=0;C title"):null)}function bF(i,s,h){if(h===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(i=s.disabled,typeof s.precedence=="string"&&i==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function Xg(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function FF(i,s,h,v){if(h.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var u=b6(v.href),m=s.querySelector(Z7(u));if(m){s=m._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=se.bind(i),s.then(i,i)),h.state.loading|=4,h.instance=m,$0(m);return}m=s.ownerDocument||s,v=Zg(v),(u=l3.get(u))&&ci(v,u),m=m.createElement("link"),$0(m);var C=m;C._p=new Promise(function(B,j){C.onload=B,C.onerror=j}),l1(m,"link",v),h.instance=m}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(h,s),(s=h.state.preload)&&(h.state.loading&3)===0&&(i.count++,h=se.bind(i),s.addEventListener("load",h),s.addEventListener("error",h))}}var li=0;function EF(i,s){return i.stylesheets&&i.count===0&&re(i,i.stylesheets),0 li?50:800)+s);return i.unsuspend=h,function(){i.unsuspend=null,clearTimeout(v),clearTimeout(u)}}:null}function se(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)re(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var ne=null;function re(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,ne=new Map,s.forEach(yF,i),ne=null,se.call(i))}function yF(i,s){if(!(s.state.loading&4)){var h=ne.get(i);if(h)var v=h.get(null);else{h=new Map,ne.set(i,h);for(var u=i.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m "u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(c){console.error(c)}}return e(),pi.exports=jF(),pi.exports}var qF=GF();const $F=zc(qF);var wu="popstate";function ZF(e={}){function c(a,n){let{pathname:r="/",search:o="",hash:d=""}=N5(a.location.hash.substring(1));return!r.startsWith("/")&&!r.startsWith(".")&&(r="/"+r),na("",{pathname:r,search:o,hash:d},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function t(a,n){let r=a.document.querySelector("base"),o="";if(r&&r.getAttribute("href")){let d=a.location.href,p=d.indexOf("#");o=p===-1?d:d.slice(0,p)}return o+"#"+(typeof n=="string"?n:E8(n))}function l(a,n){h3(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(n)})`)}return YF(c,t,l,e)}function F0(e,c){if(e===!1||e===null||typeof e>"u")throw new Error(c)}function h3(e,c){if(!e){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function WF(){return Math.random().toString(36).substring(2,10)}function Cu(e,c){return{usr:e.state,key:e.key,idx:c}}function na(e,c,t=null,l){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof c=="string"?N5(c):c,state:t,key:c&&c.key||l||WF()}}function E8({pathname:e="/",search:c="",hash:t=""}){return c&&c!=="?"&&(e+=c.charAt(0)==="?"?c:"?"+c),t&&t!=="#"&&(e+=t.charAt(0)==="#"?t:"#"+t),e}function N5(e){let c={};if(e){let t=e.indexOf("#");t>=0&&(c.hash=e.substring(t),e=e.substring(0,t));let l=e.indexOf("?");l>=0&&(c.search=e.substring(l),e=e.substring(0,l)),e&&(c.pathname=e)}return c}function YF(e,c,t,l={}){let{window:a=document.defaultView,v5Compat:n=!1}=l,r=a.history,o="POP",d=null,p=f();p==null&&(p=0,r.replaceState({...r.state,idx:p},""));function f(){return(r.state||{idx:null}).idx}function g(){o="POP";let y=f(),x=y==null?null:y-p;p=y,d&&d({action:o,location:w.location,delta:x})}function _(y,x){o="PUSH";let k=na(w.location,y,x);t&&t(k,y),p=f()+1;let S=Cu(k,p),F=w.createHref(k);try{r.pushState(S,"",F)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;a.location.assign(F)}n&&d&&d({action:o,location:w.location,delta:1})}function z(y,x){o="REPLACE";let k=na(w.location,y,x);t&&t(k,y),p=f();let S=Cu(k,p),F=w.createHref(k);r.replaceState(S,"",F),n&&d&&d({action:o,location:w.location,delta:0})}function M(y){return KF(y)}let w={get action(){return o},get location(){return e(a,r)},listen(y){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(wu,g),d=y,()=>{a.removeEventListener(wu,g),d=null}},createHref(y){return c(a,y)},createURL:M,encodeLocation(y){let x=M(y);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:_,replace:z,go(y){return r.go(y)}};return w}function KF(e,c=!1){let t="http://localhost";typeof window<"u"&&(t=window.location.origin!=="null"?window.location.origin:window.location.href),F0(t,"No window.location.(origin|href) available to create URL");let l=typeof e=="string"?e:E8(e);return l=l.replace(/ $/,"%20"),!c&&l.startsWith("//")&&(l=t+l),new URL(l,t)}function W_(e,c,t="/"){return XF(e,c,t,!1)}function XF(e,c,t,l){let a=typeof c=="string"?N5(c):c,n=f4(a.pathname||"/",t);if(n==null)return null;let r=Y_(e);QF(r);let o=null;for(let d=0;o==null&&d {let f={relativePath:p===void 0?r.path||"":p,caseSensitive:r.caseSensitive===!0,childrenIndex:o,route:r};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(l)&&d)return;F0(f.relativePath.startsWith(l),`Absolute route path "${f.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(l.length)}let g=v4([l,f.relativePath]),_=t.concat(f);r.children&&r.children.length>0&&(F0(r.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Y_(r.children,c,_,g,d)),!(r.path==null&&!r.index)&&c.push({path:g,score:aE(g,r.index),routesMeta:_})};return e.forEach((r,o)=>{if(r.path===""||!r.path?.includes("?"))n(r,o);else for(let d of K_(r.path))n(r,o,!0,d)}),c}function K_(e){let c=e.split("/");if(c.length===0)return[];let[t,...l]=c,a=t.endsWith("?"),n=t.replace(/\?$/,"");if(l.length===0)return a?[n,""]:[n];let r=K_(l.join("/")),o=[];return o.push(...r.map(d=>d===""?n:[n,d].join("/"))),a&&o.push(...r),o.map(d=>e.startsWith("/")&&d===""?"/":d)}function QF(e){e.sort((c,t)=>c.score!==t.score?t.score-c.score:sE(c.routesMeta.map(l=>l.childrenIndex),t.routesMeta.map(l=>l.childrenIndex)))}var JF=/^:[\w-]+$/,eE=3,cE=2,tE=1,lE=10,iE=-2,xu=e=>e==="*";function aE(e,c){let t=e.split("/"),l=t.length;return t.some(xu)&&(l+=iE),c&&(l+=cE),t.filter(a=>!xu(a)).reduce((a,n)=>a+(JF.test(n)?eE:n===""?tE:lE),l)}function sE(e,c){return e.length===c.length&&e.slice(0,-1).every((l,a)=>l===c[a])?e[e.length-1]-c[c.length-1]:0}function nE(e,c,t=!1){let{routesMeta:l}=e,a={},n="/",r=[];for(let o=0;o {if(f==="*"){let M=o[_]||"";r=n.slice(0,n.length-M.length).replace(/(.)\/+$/,"$1")}const z=o[_];return g&&!z?p[f]=void 0:p[f]=(z||"").replace(/%2F/g,"/"),p},{}),pathname:n,pathnameBase:r,pattern:e}}function rE(e,c=!1,t=!0){h3(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let l=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(r,o,d)=>(l.push({paramName:o,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(l.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,c?void 0:"i"),l]}function oE(e){try{return e.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return h3(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${c}).`),e}}function f4(e,c){if(c==="/")return e;if(!e.toLowerCase().startsWith(c.toLowerCase()))return null;let t=c.endsWith("/")?c.length-1:c.length,l=e.charAt(t);return l&&l!=="/"?null:e.slice(t)||"/"}var X_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hE=e=>X_.test(e);function dE(e,c="/"){let{pathname:t,search:l="",hash:a=""}=typeof e=="string"?N5(e):e,n;if(t)if(hE(t))n=t;else{if(t.includes("//")){let r=t;t=t.replace(/\/\/+/g,"/"),h3(!1,`Pathnames cannot have embedded double slashes - normalizing ${r} -> ${t}`)}t.startsWith("/")?n=bu(t.substring(1),"/"):n=bu(t,c)}else n=c;return{pathname:n,search:fE(l),hash:gE(a)}}function bu(e,c){let t=c.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function ui(e,c,t,l){return`Cannot include a '${e}' character in a manually specified \`to.${c}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function pE(e){return e.filter((c,t)=>t===0||c.route.path&&c.route.path.length>0)}function Q_(e){let c=pE(e);return c.map((t,l)=>l===c.length-1?t.pathname:t.pathnameBase)}function J_(e,c,t,l=!1){let a;typeof e=="string"?a=N5(e):(a={...e},F0(!a.pathname||!a.pathname.includes("?"),ui("?","pathname","search",a)),F0(!a.pathname||!a.pathname.includes("#"),ui("#","pathname","hash",a)),F0(!a.search||!a.search.includes("#"),ui("#","search","hash",a)));let n=e===""||a.pathname==="",r=n?"/":a.pathname,o;if(r==null)o=t;else{let g=c.length-1;if(!l&&r.startsWith("..")){let _=r.split("/");for(;_[0]==="..";)_.shift(),g-=1;a.pathname=_.join("/")}o=g>=0?c[g]:"/"}let d=dE(a,o),p=r&&r!=="/"&&r.endsWith("/"),f=(n||r===".")&&t.endsWith("/");return!d.pathname.endsWith("/")&&(p||f)&&(d.pathname+="/"),d}var v4=e=>e.join("/").replace(/\/\/+/g,"/"),vE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,uE=class{constructor(e,c,t,l=!1){this.status=e,this.statusText=c||"",this.internal=l,t instanceof Error?(this.data=t.toString(),this.error=t):this.data=t}};function mE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function _E(e){return e.map(c=>c.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var ez=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function cz(e,c){let t=e;if(typeof t!="string"||!X_.test(t))return{absoluteURL:void 0,isExternal:!1,to:t};let l=t,a=!1;if(ez)try{let n=new URL(window.location.href),r=t.startsWith("//")?new URL(n.protocol+t):new URL(t),o=f4(r.pathname,c);r.origin===n.origin&&o!=null?t=o+r.search+r.hash:a=!0}catch{h3(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:a,to:t}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var tz=["POST","PUT","PATCH","DELETE"];new Set(tz);var zE=["GET",...tz];new Set(zE);var K6=R.createContext(null);K6.displayName="DataRouter";var Mc=R.createContext(null);Mc.displayName="DataRouterState";var ME=R.createContext(!1),lz=R.createContext({isTransitioning:!1});lz.displayName="ViewTransition";var wE=R.createContext(new Map);wE.displayName="Fetchers";var CE=R.createContext(null);CE.displayName="Await";var d3=R.createContext(null);d3.displayName="Navigation";var N8=R.createContext(null);N8.displayName="Location";var u4=R.createContext({outlet:null,matches:[],isDataRoute:!1});u4.displayName="Route";var rs=R.createContext(null);rs.displayName="RouteError";var iz="REACT_ROUTER_ERROR",xE="REDIRECT",bE="ROUTE_ERROR_RESPONSE";function FE(e){if(e.startsWith(`${iz}:${xE}:{`))try{let c=JSON.parse(e.slice(28));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.location=="string"&&typeof c.reloadDocument=="boolean"&&typeof c.replace=="boolean")return c}catch{}}function EE(e){if(e.startsWith(`${iz}:${bE}:{`))try{let c=JSON.parse(e.slice(40));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string")return new uE(c.status,c.statusText,c.data)}catch{}}function yE(e,{relative:c}={}){F0(O8(),"useHref() may be used only in the context of a component.");let{basename:t,navigator:l}=R.useContext(d3),{hash:a,pathname:n,search:r}=U8(e,{relative:c}),o=n;return t!=="/"&&(o=n==="/"?t:v4([t,n])),l.createHref({pathname:o,search:r,hash:a})}function O8(){return R.useContext(N8)!=null}function a5(){return F0(O8(),"useLocation() may be used only in the context of a component."),R.useContext(N8).location}var az="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sz(e){R.useContext(d3).static||R.useLayoutEffect(e)}function os(){let{isDataRoute:e}=R.useContext(u4);return e?OE():DE()}function DE(){F0(O8(),"useNavigate() may be used only in the context of a component.");let e=R.useContext(K6),{basename:c,navigator:t}=R.useContext(d3),{matches:l}=R.useContext(u4),{pathname:a}=a5(),n=JSON.stringify(Q_(l)),r=R.useRef(!1);return sz(()=>{r.current=!0}),R.useCallback((d,p={})=>{if(h3(r.current,az),!r.current)return;if(typeof d=="number"){t.go(d);return}let f=J_(d,JSON.parse(n),a,p.relative==="path");e==null&&c!=="/"&&(f.pathname=f.pathname==="/"?c:v4([c,f.pathname])),(p.replace?t.replace:t.push)(f,p.state,p)},[c,t,n,a,e])}R.createContext(null);function U8(e,{relative:c}={}){let{matches:t}=R.useContext(u4),{pathname:l}=a5(),a=JSON.stringify(Q_(t));return R.useMemo(()=>J_(e,JSON.parse(a),l,c==="path"),[e,a,l,c])}function AE(e,c){return nz(e,c)}function nz(e,c,t,l,a){F0(O8(),"useRoutes() may be used only in the context of a component.");let{navigator:n}=R.useContext(d3),{matches:r}=R.useContext(u4),o=r[r.length-1],d=o?o.params:{},p=o?o.pathname:"/",f=o?o.pathnameBase:"/",g=o&&o.route;{let k=g&&g.path||"";oz(p,!g||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${p}" (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 _=i5(),z;if(c){let L=typeof c=="string"?R5(c):c;F0(f==="/"||L.pathname?.startsWith(f),`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 "${f}" but pathname "${L.pathname}" was given in the \`location\` prop.`),z=L}else z=_;let M=z.pathname||"/",C=M;if(f!=="/"){let L=f.replace(/^\//,"").split("/");C="/"+M.replace(/^\//,"").split("/").slice(L.length).join("/")}let x=q_(e,{pathname:C});r3(g||x!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),r3(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.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 F=Ax(x&&x.map(L=>Object.assign({},L,{params:Object.assign({},d,L.params),pathname:v4([f,n.encodeLocation?n.encodeLocation(L.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?f:v4([f,n.encodeLocation?n.encodeLocation(L.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),r,t,l,a);return c&&F?V.createElement(H8.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...z},navigationType:"POP"}},F):F}function Ex(){let e=Tx(),c=px(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),t=e instanceof Error?e.stack:null,l="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:l},n={padding:"2px 4px",backgroundColor:l},r=null;return console.error("Error handled by React Router default ErrorBoundary:",e),r=V.createElement(V.Fragment,null,V.createElement("p",null,"💿 Hey developer 👋"),V.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",V.createElement("code",{style:n},"ErrorBoundary")," or"," ",V.createElement("code",{style:n},"errorElement")," prop on your route.")),V.createElement(V.Fragment,null,V.createElement("h2",null,"Unexpected Application Error!"),V.createElement("h3",{style:{fontStyle:"italic"}},c),t?V.createElement("pre",{style:a},t):null,r)}var xx=V.createElement(Ex,null),az=class extends V.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,c){return c.location!==e.location||c.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:c.error,location:c.location,revalidation:e.revalidation||c.revalidation}}componentDidCatch(e,c){this.props.onError?this.props.onError(e,c):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const t=wx(e.digest);t&&(e=t)}let c=e!==void 0?V.createElement(u4.Provider,{value:this.props.routeContext},V.createElement(ss.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?V.createElement(yx,{error:e},c):c}};az.contextType=gx;var ui=new WeakMap;function yx({children:e,error:c}){let{basename:t}=V.useContext(o3);if(typeof c=="object"&&c&&"digest"in c&&typeof c.digest=="string"){let l=Mx(c.digest);if(l){let a=ui.get(c);if(a)throw a;let n=Q_(l.location,t);if(X_&&!ui.get(c))if(n.isExternal||l.reloadDocument)window.location.href=n.absoluteURL||n.to;else{const r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(n.to,{replace:l.replace}));throw ui.set(c,r),r}return V.createElement("meta",{httpEquiv:"refresh",content:`0;url=${n.absoluteURL||n.to}`})}}return e}function Dx({routeContext:e,match:c,children:t}){let l=V.useContext(Z6);return l&&l.static&&l.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=c.route.id),V.createElement(u4.Provider,{value:e},t)}function Ax(e,c=[],t=null,l=null,a=null){if(e==null){if(!t)return null;if(t.errors)e=t.matches;else if(c.length===0&&!t.initialized&&t.matches.length>0)e=t.matches;else return null}let n=e,r=t?.errors;if(r!=null){let f=n.findIndex(g=>g.route.id&&r?.[g.route.id]!==void 0);F0(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(r).join(",")}`),n=n.slice(0,Math.min(n.length,f+1))}let o=!1,d=-1;if(t)for(let f=0;f =0?n=n.slice(0,d+1):n=[n[0]];break}}}let p=t&&l?(f,g)=>{l(f,{location:t.location,params:t.matches?.[0]?.params??{},unstable_pattern:vx(t.matches),errorInfo:g})}:void 0;return n.reduceRight((f,g,_)=>{let z,M=!1,C=null,x=null;t&&(z=r&&g.route.id?r[g.route.id]:void 0,C=g.route.errorElement||xx,o&&(d<0&&_===0?(sz("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),M=!0,x=null):d===_&&(M=!0,x=g.route.hydrateFallbackElement||null)));let F=c.concat(n.slice(0,_+1)),L=()=>{let S;return z?S=C:M?S=x:g.route.Component?S=V.createElement(g.route.Component,null):g.route.element?S=g.route.element:S=f,V.createElement(Dx,{match:g,routeContext:{outlet:f,matches:F,isDataRoute:t!=null},children:S})};return t&&(g.route.ErrorBoundary||g.route.errorElement||_===0)?V.createElement(az,{location:t.location,revalidation:t.revalidation,component:C,error:z,children:L(),routeContext:{outlet:null,matches:F,isDataRoute:!0},onError:p}):L()},null)}function rs(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Sx(e){let c=V.useContext(Z6);return F0(c,rs(e)),c}function Bx(e){let c=V.useContext(uc);return F0(c,rs(e)),c}function kx(e){let c=V.useContext(u4);return F0(c,rs(e)),c}function os(e){let c=kx(e),t=c.matches[c.matches.length-1];return F0(t.route.id,`${e} can only be used on routes that contain a unique "id"`),t.route.id}function Lx(){return os("useRouteId")}function Tx(){let e=V.useContext(ss),c=Bx("useRouteError"),t=os("useRouteError");return e!==void 0?e:c.errors?.[t]}function Hx(){let{router:e}=Sx("useNavigate"),c=os("useNavigate"),t=V.useRef(!1);return lz(()=>{t.current=!0}),V.useCallback(async(a,n={})=>{r3(t.current,tz),t.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:c,...n}))},[e,c])}var Fu={};function sz(e,c,t){!c&&!Fu[e]&&(Fu[e]=!0,r3(!1,t))}V.memo(Rx);function Rx({routes:e,future:c,state:t,onError:l}){return iz(e,void 0,t,l,c)}function xe(e){F0(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Vx({basename:e="/",children:c=null,location:t,navigationType:l="POP",navigator:a,static:n=!1,unstable_useTransitions:r}){F0(!R8(),"You cannot render a inside another . You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),d=V.useMemo(()=>({basename:o,navigator:a,static:n,unstable_useTransitions:r,future:{}}),[o,a,n,r]);typeof t=="string"&&(t=R5(t));let{pathname:p="/",search:f="",hash:g="",state:_=null,key:z="default"}=t,M=V.useMemo(()=>{let C=f4(p,o);return C==null?null:{location:{pathname:C,search:f,hash:g,state:_,key:z},navigationType:l}},[o,p,f,g,_,z,l]);return r3(M!=null,` is not able to match the URL "${p}${f}${g}" because it does not start with the basename, so the won't render anything.`),M==null?null:V.createElement(o3.Provider,{value:d},V.createElement(H8.Provider,{children:c,value:M}))}function Ix({children:e,location:c}){return bx(na(e),c)}function na(e,c=[]){let t=[];return V.Children.forEach(e,(l,a)=>{if(!V.isValidElement(l))return;let n=[...c,a];if(l.type===V.Fragment){t.push.apply(t,na(l.props.children,n));return}F0(l.type===xe,`[${typeof l.type=="string"?l.type:l.type.name}] is not a component. All component children of must be a or `),F0(!l.props.index||!l.props.children,"An index route cannot have child routes.");let r={id:l.props.id||n.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(r.children=na(l.props.children,n)),t.push(r)}),t}var ye="get",De="application/x-www-form-urlencoded";function mc(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Nx(e){return mc(e)&&e.tagName.toLowerCase()==="button"}function Ox(e){return mc(e)&&e.tagName.toLowerCase()==="form"}function Ux(e){return mc(e)&&e.tagName.toLowerCase()==="input"}function Px(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jx(e,c){return e.button===0&&(!c||c==="_self")&&!Px(e)}var pe=null;function Gx(){if(pe===null)try{new FormData(document.createElement("form"),0),pe=!1}catch{pe=!0}return pe}var qx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function mi(e){return e!=null&&!qx.has(e)?(r3(!1,`"${e}" is not a valid \`encType\` for \`