From 998933f4c25d20b15c2c556bd25911e3a6b97e91 Mon Sep 17 00:00:00 2001 From: legop3 Date: Wed, 25 Mar 2026 21:56:23 -0400 Subject: [PATCH] ui block fix --- plans/to-do.md | 2 +- server/public/assets/index-DWSaRjmF.js | 125 ---------------------- server/public/assets/index-Dmezqb_N.js | 125 ++++++++++++++++++++++ server/public/index.html | 2 +- webui/src/components/RoverQueuesPanel.jsx | 12 ++- 5 files changed, 137 insertions(+), 129 deletions(-) delete mode 100644 server/public/assets/index-DWSaRjmF.js create mode 100644 server/public/assets/index-Dmezqb_N.js diff --git a/plans/to-do.md b/plans/to-do.md index 66d14f31..ceb104cf 100644 --- a/plans/to-do.md +++ b/plans/to-do.md @@ -1,7 +1,7 @@ 1. fix controls remapping [x] 2. trusted user system [x] 3. private rovers [x] -4. optional bump-off in drive macro +4. optional bump-off in drive macro [x] 5. allow admins to click on locked rovers from the roster 6. add faster way for admins to login 7. custom webhook profile pictures for chat bridge in discord diff --git a/server/public/assets/index-DWSaRjmF.js b/server/public/assets/index-DWSaRjmF.js deleted file mode 100644 index 8323ac51..00000000 --- a/server/public/assets/index-DWSaRjmF.js +++ /dev/null @@ -1,125 +0,0 @@ -(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))o(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function i(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(f){if(f.ep)return;f.ep=!0;const d=i(f);fetch(f.href,d)}})();function Iy(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ou={exports:{}},ni={};var a0;function Jy(){if(a0)return ni;a0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(o,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var x in f)x!=="key"&&(d[x]=f[x])}else d=f;return f=d.ref,{$$typeof:n,type:o,key:h,ref:f!==void 0?f:null,props:d}}return ni.Fragment=l,ni.jsx=i,ni.jsxs=i,ni}var l0;function Py(){return l0||(l0=1,Ou.exports=Jy()),Ou.exports}var r=Py(),Bu={exports:{}},Ce={};var s0;function Wy(){if(s0)return Ce;s0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),j=Symbol.iterator;function R(k){return k===null||typeof k!="object"?null:(k=j&&k[j]||k["@@iterator"],typeof k=="function"?k:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,A={};function w(k,V,ee){this.props=k,this.context=V,this.refs=A,this.updater=ee||N}w.prototype.isReactComponent={},w.prototype.setState=function(k,V){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,V,"setState")},w.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function C(){}C.prototype=w.prototype;function E(k,V,ee){this.props=k,this.context=V,this.refs=A,this.updater=ee||N}var M=E.prototype=new C;M.constructor=E,q(M,w.prototype),M.isPureReactComponent=!0;var L=Array.isArray;function K(){}var _={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function B(k,V,ee){var ne=ee.ref;return{$$typeof:n,type:k,key:V,ref:ne!==void 0?ne:null,props:ee}}function U(k,V){return B(k.type,V,k.props)}function F(k){return typeof k=="object"&&k!==null&&k.$$typeof===n}function W(k){var V={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(ee){return V[ee]})}var de=/\/+/g;function ue(k,V){return typeof k=="object"&&k!==null&&k.key!=null?W(""+k.key):V.toString(36)}function Y(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(K,K):(k.status="pending",k.then(function(V){k.status==="pending"&&(k.status="fulfilled",k.value=V)},function(V){k.status==="pending"&&(k.status="rejected",k.reason=V)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function T(k,V,ee,ne,pe){var ie=typeof k;(ie==="undefined"||ie==="boolean")&&(k=null);var oe=!1;if(k===null)oe=!0;else switch(ie){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(k.$$typeof){case n:case l:oe=!0;break;case y:return oe=k._init,T(oe(k._payload),V,ee,ne,pe)}}if(oe)return pe=pe(k),oe=ne===""?"."+ue(k,0):ne,L(pe)?(ee="",oe!=null&&(ee=oe.replace(de,"$&/")+"/"),T(pe,V,ee,"",function(xe){return xe})):pe!=null&&(F(pe)&&(pe=U(pe,ee+(pe.key==null||k&&k.key===pe.key?"":(""+pe.key).replace(de,"$&/")+"/")+oe)),V.push(pe)),1;oe=0;var ve=ne===""?".":ne+":";if(L(k))for(var ye=0;ye>>1,fe=T[se];if(0>>1;sef(ee,J))nef(pe,ee)?(T[se]=pe,T[ne]=J,se=ne):(T[se]=ee,T[V]=J,se=V);else if(nef(pe,J))T[se]=pe,T[ne]=J,se=ne;else break e}}return H}function f(T,H){var J=T.sortIndex-H.sortIndex;return J!==0?J:T.id-H.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,x=h.now();n.unstable_now=function(){return h.now()-x}}var p=[],g=[],y=1,b=null,j=3,R=!1,N=!1,q=!1,A=!1,w=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function M(T){for(var H=i(g);H!==null;){if(H.callback===null)o(g);else if(H.startTime<=T)o(g),H.sortIndex=H.expirationTime,l(p,H);else break;H=i(g)}}function L(T){if(q=!1,M(T),!N)if(i(p)!==null)N=!0,K||(K=!0,W());else{var H=i(g);H!==null&&Y(L,H.startTime-T)}}var K=!1,_=-1,Q=5,B=-1;function U(){return A?!0:!(n.unstable_now()-BT&&U());){var se=b.callback;if(typeof se=="function"){b.callback=null,j=b.priorityLevel;var fe=se(b.expirationTime<=T);if(T=n.unstable_now(),typeof fe=="function"){b.callback=fe,M(T),H=!0;break t}b===i(p)&&o(p),M(T)}else o(p);b=i(p)}if(b!==null)H=!0;else{var k=i(g);k!==null&&Y(L,k.startTime-T),H=!1}}break e}finally{b=null,j=J,R=!1}H=void 0}}finally{H?W():K=!1}}}var W;if(typeof E=="function")W=function(){E(F)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,ue=de.port2;de.port1.onmessage=F,W=function(){ue.postMessage(null)}}else W=function(){w(F,0)};function Y(T,H){_=w(function(){T(n.unstable_now())},H)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(T){T.callback=null},n.unstable_forceFrameRate=function(T){0>T||125se?(T.sortIndex=J,l(g,T),i(p)===null&&T===i(g)&&(q?(C(_),_=-1):q=!0,Y(L,J-se))):(T.sortIndex=fe,l(p,T),N||R||(N=!0,K||(K=!0,W()))),T},n.unstable_shouldYield=U,n.unstable_wrapCallback=function(T){var H=j;return function(){var J=j;j=H;try{return T.apply(this,arguments)}finally{j=J}}}})(Uu)),Uu}var o0;function tb(){return o0||(o0=1,zu.exports=eb()),zu.exports}var Hu={exports:{}},Ot={};var c0;function nb(){if(c0)return Ot;c0=1;var n=Rf();function l(p){var g="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Hu.exports=nb(),Hu.exports}var f0;function lb(){if(f0)return ai;f0=1;var n=tb(),l=Rf(),i=ab();function o(e){var t="https://react.dev/errors/"+e;if(1fe||(e.current=se[fe],se[fe]=null,fe--)}function ee(e,t){fe++,se[fe]=e.current,e.current=t}var ne=k(null),pe=k(null),ie=k(null),oe=k(null);function ve(e,t){switch(ee(ie,t),ee(pe,e),ee(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Cp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Cp(t),e=Ep(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(ne),ee(ne,e)}function ye(){V(ne),V(pe),V(ie)}function xe(e){e.memoizedState!==null&&ee(oe,e);var t=ne.current,a=Ep(t,e.type);t!==a&&(ee(pe,e),ee(ne,a))}function Ue(e){pe.current===e&&(V(ne),V(pe)),oe.current===e&&(V(oe),Ps._currentValue=J)}var $e,Ne;function ae(e){if($e===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);$e=t&&t[1]||"",Ne=-1)":-1c||D[s]!==G[c]){var I=` -`+D[s].replace(" at new "," at ");return e.displayName&&I.includes("")&&(I=I.replace("",e.displayName)),I}while(1<=s&&0<=c);break}}}finally{ce=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ae(a):""}function Me(e,t){switch(e.tag){case 26:case 27:case 5:return ae(e.type);case 16:return ae("Lazy");case 13:return e.child!==t&&t!==null?ae("Suspense Fallback"):ae("Suspense");case 19:return ae("SuspenseList");case 0:case 15:return be(e.type,!1);case 11:return be(e.type.render,!1);case 1:return be(e.type,!0);case 31:return ae("Activity");default:return""}}function le(e){try{var t="",a=null;do t+=Me(e,a),a=e,e=e.return;while(e);return t}catch(s){return` -Error generating stack: `+s.message+` -`+s.stack}}var re=Object.prototype.hasOwnProperty,me=n.unstable_scheduleCallback,we=n.unstable_cancelCallback,et=n.unstable_shouldYield,dt=n.unstable_requestPaint,Le=n.unstable_now,xt=n.unstable_getCurrentPriorityLevel,mt=n.unstable_ImmediatePriority,Tn=n.unstable_UserBlockingPriority,Et=n.unstable_NormalPriority,cl=n.unstable_LowPriority,Gt=n.unstable_IdlePriority,Oa=n.log,No=n.unstable_setDisableYieldValue,Dn=null,At=null;function Yt(e){if(typeof Oa=="function"&&No(e),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(Dn,e)}catch{}}var kt=Math.clz32?Math.clz32:ul,ca=Math.log,wo=Math.LN2;function ul(e){return e>>>=0,e===0?32:31-(ca(e)/wo|0)|0}var fl=256,Ba=262144,tt=4194304;function _n(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function An(e,t,a){var s=e.pendingLanes;if(s===0)return 0;var c=0,u=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var S=s&134217727;return S!==0?(s=S&~u,s!==0?c=_n(s):(v&=S,v!==0?c=_n(v):a||(a=S&~e,a!==0&&(c=_n(a))))):(S=s&~u,S!==0?c=_n(S):v!==0?c=_n(v):a||(a=s&~e,a!==0&&(c=_n(a)))),c===0?0:t!==0&&t!==c&&(t&u)===0&&(u=c&-c,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:c}function On(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function dl(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function us(){var e=tt;return tt<<=1,(tt&62914560)===0&&(tt=4194304),e}function fs(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function La(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Co(e,t,a,s,c,u){var v=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,D=e.expirationTimes,G=e.hiddenUpdates;for(a=v&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Yg=/[\n"\\]/g;function nn(e){return e.replace(Yg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mo(e,t,a,s,c,u,v,S){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tn(t)):e.value!==""+tn(t)&&(e.value=""+tn(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?qo(e,v,tn(t)):a!=null?qo(e,v,tn(a)):s!=null&&e.removeAttribute("value"),c==null&&u!=null&&(e.defaultChecked=!!u),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+tn(S):e.removeAttribute("name")}function bd(e,t,a,s,c,u,v,S){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){ko(e);return}a=a!=null?""+tn(a):"",t=t!=null?""+tn(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}s=s??c,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=S?e.checked:!!s,e.defaultChecked=!!s,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),ko(e)}function qo(e,t,a){t==="number"&&qi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function gl(e,t,a,s){if(e=e.options,t){t={};for(var c=0;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oo=!1;if(Un)try{var xs={};Object.defineProperty(xs,"passive",{get:function(){Oo=!0}}),window.addEventListener("test",xs,xs),window.removeEventListener("test",xs,xs)}catch{Oo=!1}var ua=null,Bo=null,Ti=null;function Ed(){if(Ti)return Ti;var e,t=Bo,a=t.length,s,c="value"in ua?ua.value:ua.textContent,u=c.length;for(e=0;e=ys),Dd=" ",_d=!1;function Od(e,t){switch(e){case"keyup":return vv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sl=!1;function bv(e,t){switch(e){case"compositionend":return Bd(t);case"keypress":return t.which!==32?null:(_d=!0,Dd);case"textInput":return e=t.data,e===Dd&&_d?null:e;default:return null}}function Sv(e,t){if(Sl)return e==="compositionend"||!Vo&&Od(e,t)?(e=Ed(),Ti=Bo=ua=null,Sl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Yd(a)}}function Xd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=qi(e.document)}return t}function Yo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Mv=Un&&"documentMode"in document&&11>=document.documentMode,Al=null,Fo=null,js=null,Xo=!1;function Kd(e,t,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Xo||Al==null||Al!==qi(s)||(s=Al,"selectionStart"in s&&Yo(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),js&&As(js,s)||(js=s,s=wr(Fo,"onSelect"),0>=v,c-=v,jn=1<<32-kt(t)+c|a<ke?(_e=ge,ge=null):_e=ge.sibling;var Ve=X(z,ge,$[ke],P);if(Ve===null){ge===null&&(ge=_e);break}e&&ge&&Ve.alternate===null&&t(z,ge),O=u(Ve,O,ke),He===null?Se=Ve:He.sibling=Ve,He=Ve,ge=_e}if(ke===$.length)return a(z,ge),Oe&&Vn(z,ke),Se;if(ge===null){for(;ke<$.length;ke++)ge=te(z,$[ke],P),ge!==null&&(O=u(ge,O,ke),He===null?Se=ge:He.sibling=ge,He=ge);return Oe&&Vn(z,ke),Se}for(ge=s(ge);ke<$.length;ke++)_e=Z(ge,z,ke,$[ke],P),_e!==null&&(e&&_e.alternate!==null&&ge.delete(_e.key===null?ke:_e.key),O=u(_e,O,ke),He===null?Se=_e:He.sibling=_e,He=_e);return e&&ge.forEach(function(Ta){return t(z,Ta)}),Oe&&Vn(z,ke),Se}function je(z,O,$,P){if($==null)throw Error(o(151));for(var Se=null,He=null,ge=O,ke=O=0,_e=null,Ve=$.next();ge!==null&&!Ve.done;ke++,Ve=$.next()){ge.index>ke?(_e=ge,ge=null):_e=ge.sibling;var Ta=X(z,ge,Ve.value,P);if(Ta===null){ge===null&&(ge=_e);break}e&&ge&&Ta.alternate===null&&t(z,ge),O=u(Ta,O,ke),He===null?Se=Ta:He.sibling=Ta,He=Ta,ge=_e}if(Ve.done)return a(z,ge),Oe&&Vn(z,ke),Se;if(ge===null){for(;!Ve.done;ke++,Ve=$.next())Ve=te(z,Ve.value,P),Ve!==null&&(O=u(Ve,O,ke),He===null?Se=Ve:He.sibling=Ve,He=Ve);return Oe&&Vn(z,ke),Se}for(ge=s(ge);!Ve.done;ke++,Ve=$.next())Ve=Z(ge,z,ke,Ve.value,P),Ve!==null&&(e&&Ve.alternate!==null&&ge.delete(Ve.key===null?ke:Ve.key),O=u(Ve,O,ke),He===null?Se=Ve:He.sibling=Ve,He=Ve);return e&&ge.forEach(function(Zy){return t(z,Zy)}),Oe&&Vn(z,ke),Se}function Je(z,O,$,P){if(typeof $=="object"&&$!==null&&$.type===q&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case R:e:{for(var Se=$.key;O!==null;){if(O.key===Se){if(Se=$.type,Se===q){if(O.tag===7){a(z,O.sibling),P=c(O,$.props.children),P.return=z,z=P;break e}}else if(O.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===Q&&Ka(Se)===O.type){a(z,O.sibling),P=c(O,$.props),Ms(P,$),P.return=z,z=P;break e}a(z,O);break}else t(z,O);O=O.sibling}$.type===q?(P=Ga($.props.children,z.mode,P,$.key),P.return=z,z=P):(P=$i($.type,$.key,$.props,null,z.mode,P),Ms(P,$),P.return=z,z=P)}return v(z);case N:e:{for(Se=$.key;O!==null;){if(O.key===Se)if(O.tag===4&&O.stateNode.containerInfo===$.containerInfo&&O.stateNode.implementation===$.implementation){a(z,O.sibling),P=c(O,$.children||[]),P.return=z,z=P;break e}else{a(z,O);break}else t(z,O);O=O.sibling}P=Wo($,z.mode,P),P.return=z,z=P}return v(z);case Q:return $=Ka($),Je(z,O,$,P)}if(Y($))return he(z,O,$,P);if(W($)){if(Se=W($),typeof Se!="function")throw Error(o(150));return $=Se.call($),je(z,O,$,P)}if(typeof $.then=="function")return Je(z,O,Zi($),P);if($.$$typeof===E)return Je(z,O,Fi(z,$),P);Ii(z,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,O!==null&&O.tag===6?(a(z,O.sibling),P=c(O,$),P.return=z,z=P):(a(z,O),P=Po($,z.mode,P),P.return=z,z=P),v(z)):a(z,O)}return function(z,O,$,P){try{ks=0;var Se=Je(z,O,$,P);return Dl=null,Se}catch(ge){if(ge===Tl||ge===Qi)throw ge;var He=Xt(29,ge,null,z.mode);return He.lanes=P,He.return=z,He}finally{}}}var Ia=gm(!0),vm=gm(!1),pa=!1;function fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ga(e,t,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ge&2)!==0){var c=s.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),s.pending=t,t=Vi(e),tm(e,null,a),t}return Hi(e,s,t,a),Vi(e)}function qs(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,en(e,a)}}function mc(e,t){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var c=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var v={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?c=u=v:u=u.next=v,a=a.next}while(a!==null);u===null?c=u=t:u=u.next=t}else c=u=t;a={baseState:s.baseState,firstBaseUpdate:c,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var hc=!1;function Rs(){if(hc){var e=Rl;if(e!==null)throw e}}function Ts(e,t,a,s){hc=!1;var c=e.updateQueue;pa=!1;var u=c.firstBaseUpdate,v=c.lastBaseUpdate,S=c.shared.pending;if(S!==null){c.shared.pending=null;var D=S,G=D.next;D.next=null,v===null?u=G:v.next=G,v=D;var I=e.alternate;I!==null&&(I=I.updateQueue,S=I.lastBaseUpdate,S!==v&&(S===null?I.firstBaseUpdate=G:S.next=G,I.lastBaseUpdate=D))}if(u!==null){var te=c.baseState;v=0,I=G=D=null,S=u;do{var X=S.lane&-536870913,Z=X!==S.lane;if(Z?(De&X)===X:(s&X)===X){X!==0&&X===ql&&(hc=!0),I!==null&&(I=I.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var he=e,je=S;X=t;var Je=a;switch(je.tag){case 1:if(he=je.payload,typeof he=="function"){te=he.call(Je,te,X);break e}te=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=je.payload,X=typeof he=="function"?he.call(Je,te,X):he,X==null)break e;te=b({},te,X);break e;case 2:pa=!0}}X=S.callback,X!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=c.callbacks,Z===null?c.callbacks=[X]:Z.push(X))}else Z={lane:X,tag:S.tag,payload:S.payload,callback:S.callback,next:null},I===null?(G=I=Z,D=te):I=I.next=Z,v|=X;if(S=S.next,S===null){if(S=c.shared.pending,S===null)break;Z=S,S=Z.next,Z.next=null,c.lastBaseUpdate=Z,c.shared.pending=null}}while(!0);I===null&&(D=te),c.baseState=D,c.firstBaseUpdate=G,c.lastBaseUpdate=I,u===null&&(c.shared.lanes=0),Aa|=v,e.lanes=v,e.memoizedState=te}}function ym(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function bm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;eu?u:8;var v=T.T,S={};T.T=S,Dc(e,!1,t,a);try{var D=c(),G=T.S;if(G!==null&&G(S,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var I=zv(D,s);Os(e,t,I,Jt(e))}else Os(e,t,s,Jt(e))}catch(te){Os(e,t,{then:function(){},status:"rejected",reason:te},Jt())}finally{H.p=u,v!==null&&S.types!==null&&(v.types=S.types),T.T=v}}function Yv(){}function Rc(e,t,a,s){if(e.tag!==5)throw Error(o(476));var c=Pm(e).queue;Jm(e,c,t,J,a===null?Yv:function(){return Wm(e),a(s)})}function Pm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wm(e){var t=Pm(e);t.next===null&&(t=e.alternate.memoizedState),Os(e,t.next.queue,{},Jt())}function Tc(){return qt(Ps)}function eh(){return pt().memoizedState}function th(){return pt().memoizedState}function Fv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Jt();e=xa(a);var s=ga(t,e,a);s!==null&&($t(s,t,a),qs(s,t,a)),t={cache:rc()},e.payload=t;return}t=t.return}}function Xv(e,t,a){var s=Jt();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ir(e)?ah(t,a):(a=Io(e,t,a,s),a!==null&&($t(a,e,s),lh(a,t,s)))}function nh(e,t,a){var s=Jt();Os(e,t,a,s)}function Os(e,t,a,s){var c={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ir(e))ah(t,c);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var v=t.lastRenderedState,S=u(v,a);if(c.hasEagerState=!0,c.eagerState=S,Ft(S,v))return Hi(e,t,c,0),We===null&&Ui(),!1}catch{}finally{}if(a=Io(e,t,c,s),a!==null)return $t(a,e,s),lh(a,t,s),!0}return!1}function Dc(e,t,a,s){if(s={lane:2,revertLane:fu(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},ir(e)){if(t)throw Error(o(479))}else t=Io(e,a,s,2),t!==null&&$t(t,e,2)}function ir(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function ah(e,t){Ol=Wi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function lh(e,t,a){if((a&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,a|=s,t.lanes=a,en(e,a)}}var Bs={readContext:qt,use:nr,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useLayoutEffect:ct,useInsertionEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useSyncExternalStore:ct,useId:ct,useHostTransitionStatus:ct,useFormState:ct,useActionState:ct,useOptimistic:ct,useMemoCache:ct,useCacheRefresh:ct};Bs.useEffectEvent=ct;var sh={readContext:qt,use:nr,useCallback:function(e,t){return Bt().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:$m,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,lr(4194308,4,Xm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return lr(4194308,4,e,t)},useInsertionEffect:function(e,t){lr(4,2,e,t)},useMemo:function(e,t){var a=Bt();t=t===void 0?null:t;var s=e();if(Ja){Yt(!0);try{e()}finally{Yt(!1)}}return a.memoizedState=[s,t],s},useReducer:function(e,t,a){var s=Bt();if(a!==void 0){var c=a(t);if(Ja){Yt(!0);try{a(t)}finally{Yt(!1)}}}else c=t;return s.memoizedState=s.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},s.queue=e,e=e.dispatch=Xv.bind(null,Ee,e),[s.memoizedState,e]},useRef:function(e){var t=Bt();return e={current:e},t.memoizedState=e},useState:function(e){e=Cc(e);var t=e.queue,a=nh.bind(null,Ee,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Mc,useDeferredValue:function(e,t){var a=Bt();return qc(a,e,t)},useTransition:function(){var e=Cc(!1);return e=Jm.bind(null,Ee,e.queue,!0,!1),Bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var s=Ee,c=Bt();if(Oe){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),We===null)throw Error(o(349));(De&127)!==0||Cm(s,t,a)}c.memoizedState=a;var u={value:a,getSnapshot:t};return c.queue=u,$m(km.bind(null,s,u,e),[e]),s.flags|=2048,Ll(9,{destroy:void 0},Em.bind(null,s,u,a,t),null),a},useId:function(){var e=Bt(),t=We.identifierPrefix;if(Oe){var a=Nn,s=jn;a=(s&~(1<<32-kt(s)-1)).toString(32)+a,t="_"+t+"R_"+a,a=er++,0<\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?v.createElement("select",{is:s.is}):v.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?v.createElement(c,{is:s.is}):v.createElement(c)}}u[rt]=t,u[jt]=s;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)u.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=u;e:switch(Tt(u,c,s),c){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Qn(t)}}return at(t),Qc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Qn(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(o(166));if(e=ie.current,kl(t)){if(e=t.stateNode,a=t.memoizedProps,s=null,c=Mt,c!==null)switch(c.tag){case 27:case 5:s=c.memoizedProps}e[rt]=t,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||Np(e.nodeValue,a)),e||ma(t,!0)}else e=Cr(e).createTextNode(s),e[rt]=t,t.stateNode=e}return at(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(s=kl(t),a!==null){if(e===null){if(!s)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[rt]=t}else Ya(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),e=!1}else a=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Kt(t),t):(Kt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return at(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=kl(t),s!==null&&s.dehydrated!==null){if(e===null){if(!c)throw Error(o(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[rt]=t}else Ya(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),c=!1}else c=ac(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Kt(t),t):(Kt(t),null)}return Kt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=s!==null,e=e!==null&&e.memoizedState!==null,a&&(s=t.child,c=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(c=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==c&&(s.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),fr(t,t.updateQueue),at(t),null);case 4:return ye(),e===null&&pu(t.stateNode.containerInfo),at(t),null;case 10:return Gn(t.type),at(t),null;case 19:if(V(ht),s=t.memoizedState,s===null)return at(t),null;if(c=(t.flags&128)!==0,u=s.rendering,u===null)if(c)zs(s,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Pi(e),u!==null){for(t.flags|=128,zs(s,!1),e=u.updateQueue,t.updateQueue=e,fr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)nm(a,e),a=a.sibling;return ee(ht,ht.current&1|2),Oe&&Vn(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&Le()>xr&&(t.flags|=128,c=!0,zs(s,!1),t.lanes=4194304)}else{if(!c)if(e=Pi(u),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,fr(t,e),zs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Oe)return at(t),null}else 2*Le()-s.renderingStartTime>xr&&a!==536870912&&(t.flags|=128,c=!0,zs(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(e=s.last,e!==null?e.sibling=u:t.child=u,s.last=u)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Le(),e.sibling=null,a=ht.current,ee(ht,c?a&1|2:a&1),Oe&&Vn(t,s.treeForkCount),e):(at(t),null);case 22:case 23:return Kt(t),xc(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(a&536870912)!==0&&(t.flags&128)===0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),a=t.updateQueue,a!==null&&fr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==a&&(t.flags|=2048),e!==null&&V(Qa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Gn(gt),at(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Jv(e,t){switch(tc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gn(gt),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ue(t),null;case 31:if(t.memoizedState!==null){if(Kt(t),t.alternate===null)throw Error(o(340));Ya()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ya()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(ht),null;case 4:return ye(),null;case 10:return Gn(t.type),null;case 22:case 23:return Kt(t),xc(),e!==null&&V(Qa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Gn(gt),null;case 25:return null;default:return null}}function Mh(e,t){switch(tc(t),t.tag){case 3:Gn(gt),ye();break;case 26:case 27:case 5:Ue(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&Kt(t);break;case 13:Kt(t);break;case 19:V(ht);break;case 10:Gn(t.type);break;case 22:case 23:Kt(t),xc(),e!==null&&V(Qa);break;case 24:Gn(gt)}}function Us(e,t){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var c=s.next;a=c;do{if((a.tag&e)===e){s=void 0;var u=a.create,v=a.inst;s=u(),v.destroy=s}a=a.next}while(a!==c)}}catch(S){Xe(t,t.return,S)}}function ba(e,t,a){try{var s=t.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var u=c.next;s=u;do{if((s.tag&e)===e){var v=s.inst,S=v.destroy;if(S!==void 0){v.destroy=void 0,c=t;var D=a,G=S;try{G()}catch(I){Xe(c,D,I)}}}s=s.next}while(s!==u)}}catch(I){Xe(t,t.return,I)}}function qh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{bm(t,a)}catch(s){Xe(e,e.return,s)}}}function Rh(e,t,a){a.props=Pa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){Xe(e,t,s)}}function Hs(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(c){Xe(e,t,c)}}function wn(e,t){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(c){Xe(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(c){Xe(e,t,c)}else a.current=null}function Th(e){var t=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(c){Xe(e,e.return,c)}}function Kc(e,t,a){try{var s=e.stateNode;yy(s,e.type,a,t),s[jt]=t}catch(c){Xe(e,e.return,c)}}function Dh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ea(e.type)||e.tag===4}function Zc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Dh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ea(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ic(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=zn));else if(s!==4&&(s===27&&Ea(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,a),e=e.sibling;e!==null;)Ic(e,t,a),e=e.sibling}function dr(e,t,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(s!==4&&(s===27&&Ea(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(dr(e,t,a),e=e.sibling;e!==null;)dr(e,t,a),e=e.sibling}function _h(e){var t=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Tt(t,s,a),t[rt]=e,t[jt]=a}catch(u){Xe(e,e.return,u)}}var Kn=!1,bt=!1,Jc=!1,Oh=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function Pv(e,t){if(e=e.containerInfo,vu=Dr,e=Qd(e),Yo(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var c=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var v=0,S=-1,D=-1,G=0,I=0,te=e,X=null;t:for(;;){for(var Z;te!==a||c!==0&&te.nodeType!==3||(S=v+c),te!==u||s!==0&&te.nodeType!==3||(D=v+s),te.nodeType===3&&(v+=te.nodeValue.length),(Z=te.firstChild)!==null;)X=te,te=Z;for(;;){if(te===e)break t;if(X===a&&++G===c&&(S=v),X===u&&++I===s&&(D=v),(Z=te.nextSibling)!==null)break;te=X,X=te.parentNode}te=Z}a=S===-1||D===-1?null:{start:S,end:D}}else a=null}a=a||{start:0,end:0}}else a=null;for(yu={focusedElem:e,selectionRange:a},Dr=!1,Ct=t;Ct!==null;)if(t=Ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ct=e;else for(;Ct!==null;){switch(t=Ct,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a title"))),Tt(u,s,a),u[rt]=e,wt(u),s=u;break e;case"link":var v=Vp("link","href",c).get(s+(a.href||""));if(v){for(var S=0;SJe&&(v=Je,Je=je,je=v);var z=Fd(S,je),O=Fd(S,Je);if(z&&O&&(Z.rangeCount!==1||Z.anchorNode!==z.node||Z.anchorOffset!==z.offset||Z.focusNode!==O.node||Z.focusOffset!==O.offset)){var $=te.createRange();$.setStart(z.node,z.offset),Z.removeAllRanges(),je>Je?(Z.addRange($),Z.extend(O.node,O.offset)):($.setEnd(O.node,O.offset),Z.addRange($))}}}}for(te=[],Z=S;Z=Z.parentNode;)Z.nodeType===1&&te.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;Sa?32:a,T.T=null,a=lu,lu=null;var u=Na,v=Wn;if(Nt=0,$l=Na=null,Wn=0,(Ge&6)!==0)throw Error(o(331));var S=Ge;if(Ge|=4,Xh(u.current),Gh(u,u.current,v,a),Ge=S,Xs(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Dn,u)}catch{}return!0}finally{H.p=c,T.T=s,up(e,t)}}function dp(e,t,a){t=ln(a,t),t=Lc(e.stateNode,t,2),e=ga(e,t,2),e!==null&&(La(e,2),Cn(e))}function Xe(e,t,a){if(e.tag===3)dp(e,e,a);else for(;t!==null;){if(t.tag===3){dp(t,e,a);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ja===null||!ja.has(s))){e=ln(a,e),a=mh(2),s=ga(t,a,2),s!==null&&(hh(a,s,t,e),La(s,2),Cn(s));break}}t=t.return}}function ou(e,t,a){var s=e.pingCache;if(s===null){s=e.pingCache=new ty;var c=new Set;s.set(t,c)}else c=s.get(t),c===void 0&&(c=new Set,s.set(t,c));c.has(a)||(eu=!0,c.add(a),e=iy.bind(null,e,t,a),t.then(e,e))}function iy(e,t,a){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,We===e&&(De&a)===a&&(ut===4||ut===3&&(De&62914560)===De&&300>Le()-pr?(Ge&2)===0&&Gl(e,0):tu|=a,Vl===De&&(Vl=0)),Cn(e)}function mp(e,t){t===0&&(t=us()),e=$a(e,t),e!==null&&(La(e,t),Cn(e))}function ry(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),mp(e,a)}function oy(e,t){var a=0;switch(e.tag){case 31:case 13:var s=e.stateNode,c=e.memoizedState;c!==null&&(a=c.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(t),mp(e,a)}function cy(e,t){return me(e,t)}var Ar=null,Fl=null,cu=!1,jr=!1,uu=!1,Ca=0;function Cn(e){e!==Fl&&e.next===null&&(Fl===null?Ar=Fl=e:Fl=Fl.next=e),jr=!0,cu||(cu=!0,fy())}function Xs(e,t){if(!uu&&jr){uu=!0;do for(var a=!1,s=Ar;s!==null;){if(e!==0){var c=s.pendingLanes;if(c===0)var u=0;else{var v=s.suspendedLanes,S=s.pingedLanes;u=(1<<31-kt(42|e)+1)-1,u&=c&~(v&~S),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,gp(s,u))}else u=De,u=An(s,s===We?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||On(s,u)||(a=!0,gp(s,u));s=s.next}while(a);uu=!1}}function uy(){hp()}function hp(){jr=cu=!1;var e=0;Ca!==0&&Sy()&&(e=Ca);for(var t=Le(),a=null,s=Ar;s!==null;){var c=s.next,u=pp(s,t);u===0?(s.next=null,a===null?Ar=c:a.next=c,c===null&&(Fl=a)):(a=s,(e!==0||(u&3)!==0)&&(jr=!0)),s=c}Nt!==0&&Nt!==5||Xs(e),Ca!==0&&(Ca=0)}function pp(e,t){for(var a=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,u=e.pendingLanes&-62914561;0S)break;var I=D.transferSize,te=D.initiatorType;I&&wp(te)&&(D=D.responseEnd,v+=I*(D"u"?null:document;function Lp(e,t,a){var s=Xl;if(s&&typeof t=="string"&&t){var c=nn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),Bp.has(c)||(Bp.add(c),e={rel:e,crossOrigin:a,href:t},s.querySelector(c)===null&&(t=s.createElement("link"),Tt(t,"link",e),wt(t),s.head.appendChild(t)))}}function qy(e){ea.D(e),Lp("dns-prefetch",e,null)}function Ry(e,t){ea.C(e,t),Lp("preconnect",e,t)}function Ty(e,t,a){ea.L(e,t,a);var s=Xl;if(s&&e&&t){var c='link[rel="preload"][as="'+nn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+nn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+nn(a.imageSizes)+'"]')):c+='[href="'+nn(e)+'"]';var u=c;switch(t){case"style":u=Ql(e);break;case"script":u=Kl(e)}fn.has(u)||(e=b({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),fn.set(u,e),s.querySelector(c)!==null||t==="style"&&s.querySelector(Is(u))||t==="script"&&s.querySelector(Js(u))||(t=s.createElement("link"),Tt(t,"link",e),wt(t),s.head.appendChild(t)))}}function Dy(e,t){ea.m(e,t);var a=Xl;if(a&&e){var s=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+nn(s)+'"][href="'+nn(e)+'"]',u=c;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Kl(e)}if(!fn.has(u)&&(e=b({rel:"modulepreload",href:e},t),fn.set(u,e),a.querySelector(c)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Js(u)))return}s=a.createElement("link"),Tt(s,"link",e),wt(s),a.head.appendChild(s)}}}function _y(e,t,a){ea.S(e,t,a);var s=Xl;if(s&&e){var c=pl(s).hoistableStyles,u=Ql(e);t=t||"default";var v=c.get(u);if(!v){var S={loading:0,preload:null};if(v=s.querySelector(Is(u)))S.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},a),(a=fn.get(u))&&Cu(e,a);var D=v=s.createElement("link");wt(D),Tt(D,"link",e),D._p=new Promise(function(G,I){D.onload=G,D.onerror=I}),D.addEventListener("load",function(){S.loading|=1}),D.addEventListener("error",function(){S.loading|=2}),S.loading|=4,kr(v,t,s)}v={type:"stylesheet",instance:v,count:1,state:S},c.set(u,v)}}}function Oy(e,t){ea.X(e,t);var a=Xl;if(a&&e){var s=pl(a).hoistableScripts,c=Kl(e),u=s.get(c);u||(u=a.querySelector(Js(c)),u||(e=b({src:e,async:!0},t),(t=fn.get(c))&&Eu(e,t),u=a.createElement("script"),wt(u),Tt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(c,u))}}function By(e,t){ea.M(e,t);var a=Xl;if(a&&e){var s=pl(a).hoistableScripts,c=Kl(e),u=s.get(c);u||(u=a.querySelector(Js(c)),u||(e=b({src:e,async:!0,type:"module"},t),(t=fn.get(c))&&Eu(e,t),u=a.createElement("script"),wt(u),Tt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(c,u))}}function zp(e,t,a,s){var c=(c=ie.current)?Er(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ql(a.href),a=pl(c).hoistableStyles,s=a.get(t),s||(s={type:"style",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ql(a.href);var u=pl(c).hoistableStyles,v=u.get(e);if(v||(c=c.ownerDocument||c,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,v),(u=c.querySelector(Is(e)))&&!u._p&&(v.instance=u,v.state.loading=5),fn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},fn.set(e,a),u||Ly(c,e,a,v.state))),t&&s===null)throw Error(o(528,""));return v}if(t&&s!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Kl(a),a=pl(c).hoistableScripts,s=a.get(t),s||(s={type:"script",instance:null,count:0,state:null},a.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ql(e){return'href="'+nn(e)+'"'}function Is(e){return'link[rel="stylesheet"]['+e+"]"}function Up(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Ly(e,t,a,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),Tt(t,"link",a),wt(t),e.head.appendChild(t))}function Kl(e){return'[src="'+nn(e)+'"]'}function Js(e){return"script[async]"+e}function Hp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+nn(a.href)+'"]');if(s)return t.instance=s,wt(s),s;var c=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),wt(s),Tt(s,"style",c),kr(s,a.precedence,e),t.instance=s;case"stylesheet":c=Ql(a.href);var u=e.querySelector(Is(c));if(u)return t.state.loading|=4,t.instance=u,wt(u),u;s=Up(a),(c=fn.get(c))&&Cu(s,c),u=(e.ownerDocument||e).createElement("link"),wt(u);var v=u;return v._p=new Promise(function(S,D){v.onload=S,v.onerror=D}),Tt(u,"link",s),t.state.loading|=4,kr(u,a.precedence,e),t.instance=u;case"script":return u=Kl(a.src),(c=e.querySelector(Js(u)))?(t.instance=c,wt(c),c):(s=a,(c=fn.get(u))&&(s=b({},a),Eu(s,c)),e=e.ownerDocument||e,c=e.createElement("script"),wt(c),Tt(c,"link",s),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,kr(s,a.precedence,e));return t.instance}function kr(e,t,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=s.length?s[s.length-1]:null,u=c,v=0;v title"):null)}function zy(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Gp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Uy(e,t,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var c=Ql(s.href),u=t.querySelector(Is(c));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=qr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,wt(u);return}u=t.ownerDocument||t,s=Up(s),(c=fn.get(c))&&Cu(s,c),u=u.createElement("link"),wt(u);var v=u;v._p=new Promise(function(S,D){v.onload=S,v.onerror=D}),Tt(u,"link",s),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=qr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ku=0;function Hy(e,t){return e.stylesheets&&e.count===0&&Tr(e,e.stylesheets),0ku?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(c)}}:null}function qr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Rr=null;function Tr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Rr=new Map,t.forEach(Vy,e),Rr=null,qr.call(e))}function Vy(e,t){if(!(t.state.loading&4)){var a=Rr.get(e);if(a)var s=a.get(null);else{a=new Map,Rr.set(e,a);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Lu.exports=lb(),Lu.exports}var ib=sb();var m0="popstate";function rb(n={}){function l(o,f){let{pathname:d,search:h,hash:x}=o.location;return mf("",{pathname:d,search:h,hash:x},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function i(o,f){return typeof f=="string"?f:hi(f)}return cb(l,i,null,n)}function ot(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function Sn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function ob(){return Math.random().toString(36).substring(2,10)}function h0(n,l){return{usr:n.state,key:n.key,idx:l}}function mf(n,l,i=null,o){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?is(l):l,state:i,key:l&&l.key||o||ob()}}function hi({pathname:n="/",search:l="",hash:i=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function is(n){let l={};if(n){let i=n.indexOf("#");i>=0&&(l.hash=n.substring(i),n=n.substring(0,i));let o=n.indexOf("?");o>=0&&(l.search=n.substring(o),n=n.substring(0,o)),n&&(l.pathname=n)}return l}function cb(n,l,i,o={}){let{window:f=document.defaultView,v5Compat:d=!1}=o,h=f.history,x="POP",p=null,g=y();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function y(){return(h.state||{idx:null}).idx}function b(){x="POP";let A=y(),w=A==null?null:A-g;g=A,p&&p({action:x,location:q.location,delta:w})}function j(A,w){x="PUSH";let C=mf(q.location,A,w);g=y()+1;let E=h0(C,g),M=q.createHref(C);try{h.pushState(E,"",M)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;f.location.assign(M)}d&&p&&p({action:x,location:q.location,delta:1})}function R(A,w){x="REPLACE";let C=mf(q.location,A,w);g=y();let E=h0(C,g),M=q.createHref(C);h.replaceState(E,"",M),d&&p&&p({action:x,location:q.location,delta:0})}function N(A){return ub(A)}let q={get action(){return x},get location(){return n(f,h)},listen(A){if(p)throw new Error("A history only accepts one active listener");return f.addEventListener(m0,b),p=A,()=>{f.removeEventListener(m0,b),p=null}},createHref(A){return l(f,A)},createURL:N,encodeLocation(A){let w=N(A);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:j,replace:R,go(A){return h.go(A)}};return q}function ub(n,l=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),ot(i,"No window.location.(origin|href) available to create URL");let o=typeof n=="string"?n:hi(n);return o=o.replace(/ $/,"%20"),!l&&o.startsWith("//")&&(o=i+o),new URL(o,i)}function mx(n,l,i="/"){return fb(n,l,i,!1)}function fb(n,l,i,o){let f=typeof l=="string"?is(l):l,d=ia(f.pathname||"/",i);if(d==null)return null;let h=hx(n);db(h);let x=null;for(let p=0;x==null&&p{let y={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:x,route:h};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(o)&&p)return;ot(y.relativePath.startsWith(o),`Absolute route path "${y.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(o.length)}let b=sa([o,y.relativePath]),j=i.concat(y);h.children&&h.children.length>0&&(ot(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),hx(h.children,l,j,b,p)),!(h.path==null&&!h.index)&&l.push({path:b,score:yb(b,h.index),routesMeta:j})};return n.forEach((h,x)=>{if(h.path===""||!h.path?.includes("?"))d(h,x);else for(let p of px(h.path))d(h,x,!0,p)}),l}function px(n){let l=n.split("/");if(l.length===0)return[];let[i,...o]=l,f=i.endsWith("?"),d=i.replace(/\?$/,"");if(o.length===0)return f?[d,""]:[d];let h=px(o.join("/")),x=[];return x.push(...h.map(p=>p===""?d:[d,p].join("/"))),f&&x.push(...h),x.map(p=>n.startsWith("/")&&p===""?"/":p)}function db(n){n.sort((l,i)=>l.score!==i.score?i.score-l.score:bb(l.routesMeta.map(o=>o.childrenIndex),i.routesMeta.map(o=>o.childrenIndex)))}var mb=/^:[\w-]+$/,hb=3,pb=2,xb=1,gb=10,vb=-2,p0=n=>n==="*";function yb(n,l){let i=n.split("/"),o=i.length;return i.some(p0)&&(o+=vb),l&&(o+=pb),i.filter(f=>!p0(f)).reduce((f,d)=>f+(mb.test(d)?hb:d===""?xb:gb),o)}function bb(n,l){return n.length===l.length&&n.slice(0,-1).every((o,f)=>o===l[f])?n[n.length-1]-l[l.length-1]:0}function Sb(n,l,i=!1){let{routesMeta:o}=n,f={},d="/",h=[];for(let x=0;x{if(y==="*"){let N=x[j]||"";h=d.slice(0,d.length-N.length).replace(/(.)\/+$/,"$1")}const R=x[j];return b&&!R?g[y]=void 0:g[y]=(R||"").replace(/%2F/g,"/"),g},{}),pathname:d,pathnameBase:h,pattern:n}}function Ab(n,l=!1,i=!0){Sn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let o=[],f="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,x,p)=>(o.push({paramName:x,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(o.push({paramName:"*"}),f+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?f+="\\/*$":n!==""&&n!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,l?void 0:"i"),o]}function jb(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Sn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),n}}function ia(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let i=l.endsWith("/")?l.length-1:l.length,o=n.charAt(i);return o&&o!=="/"?null:n.slice(i)||"/"}var Nb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wb=n=>Nb.test(n);function Cb(n,l="/"){let{pathname:i,search:o="",hash:f=""}=typeof n=="string"?is(n):n,d;if(i)if(wb(i))d=i;else{if(i.includes("//")){let h=i;i=i.replace(/\/\/+/g,"/"),Sn(!1,`Pathnames cannot have embedded double slashes - normalizing ${h} -> ${i}`)}i.startsWith("/")?d=x0(i.substring(1),"/"):d=x0(i,l)}else d=l;return{pathname:d,search:Mb(o),hash:qb(f)}}function x0(n,l){let i=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(f=>{f===".."?i.length>1&&i.pop():f!=="."&&i.push(f)}),i.length>1?i.join("/"):"/"}function Vu(n,l,i,o){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Eb(n){return n.filter((l,i)=>i===0||l.route.path&&l.route.path.length>0)}function xx(n){let l=Eb(n);return l.map((i,o)=>o===l.length-1?i.pathname:i.pathnameBase)}function gx(n,l,i,o=!1){let f;typeof n=="string"?f=is(n):(f={...n},ot(!f.pathname||!f.pathname.includes("?"),Vu("?","pathname","search",f)),ot(!f.pathname||!f.pathname.includes("#"),Vu("#","pathname","hash",f)),ot(!f.search||!f.search.includes("#"),Vu("#","search","hash",f)));let d=n===""||f.pathname==="",h=d?"/":f.pathname,x;if(h==null)x=i;else{let b=l.length-1;if(!o&&h.startsWith("..")){let j=h.split("/");for(;j[0]==="..";)j.shift(),b-=1;f.pathname=j.join("/")}x=b>=0?l[b]:"/"}let p=Cb(f,x),g=h&&h!=="/"&&h.endsWith("/"),y=(d||h===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var sa=n=>n.join("/").replace(/\/\/+/g,"/"),kb=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Mb=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,qb=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Rb(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var vx=["POST","PUT","PATCH","DELETE"];new Set(vx);var Tb=["GET",...vx];new Set(Tb);var rs=m.createContext(null);rs.displayName="DataRouter";var ho=m.createContext(null);ho.displayName="DataRouterState";m.createContext(!1);var yx=m.createContext({isTransitioning:!1});yx.displayName="ViewTransition";var Db=m.createContext(new Map);Db.displayName="Fetchers";var _b=m.createContext(null);_b.displayName="Await";var qn=m.createContext(null);qn.displayName="Navigation";var ji=m.createContext(null);ji.displayName="Location";var oa=m.createContext({outlet:null,matches:[],isDataRoute:!1});oa.displayName="Route";var Tf=m.createContext(null);Tf.displayName="RouteError";function Ob(n,{relative:l}={}){ot(Ni(),"useHref() may be used only in the context of a component.");let{basename:i,navigator:o}=m.useContext(qn),{hash:f,pathname:d,search:h}=wi(n,{relative:l}),x=d;return i!=="/"&&(x=d==="/"?i:sa([i,d])),o.createHref({pathname:x,search:h,hash:f})}function Ni(){return m.useContext(ji)!=null}function ol(){return ot(Ni(),"useLocation() may be used only in the context of a component."),m.useContext(ji).location}var bx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Sx(n){m.useContext(qn).static||m.useLayoutEffect(n)}function Bb(){let{isDataRoute:n}=m.useContext(oa);return n?Zb():Lb()}function Lb(){ot(Ni(),"useNavigate() may be used only in the context of a component.");let n=m.useContext(rs),{basename:l,navigator:i}=m.useContext(qn),{matches:o}=m.useContext(oa),{pathname:f}=ol(),d=JSON.stringify(xx(o)),h=m.useRef(!1);return Sx(()=>{h.current=!0}),m.useCallback((p,g={})=>{if(Sn(h.current,bx),!h.current)return;if(typeof p=="number"){i.go(p);return}let y=gx(p,JSON.parse(d),f,g.relative==="path");n==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:sa([l,y.pathname])),(g.replace?i.replace:i.push)(y,g.state,g)},[l,i,d,f,n])}m.createContext(null);function wi(n,{relative:l}={}){let{matches:i}=m.useContext(oa),{pathname:o}=ol(),f=JSON.stringify(xx(i));return m.useMemo(()=>gx(n,JSON.parse(f),o,l==="path"),[n,f,o,l])}function zb(n,l){return Ax(n,l)}function Ax(n,l,i,o,f){ot(Ni(),"useRoutes() may be used only in the context of a component.");let{navigator:d}=m.useContext(qn),{matches:h}=m.useContext(oa),x=h[h.length-1],p=x?x.params:{},g=x?x.pathname:"/",y=x?x.pathnameBase:"/",b=x&&x.route;{let C=b&&b.path||"";jx(g,!b||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${g}" (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 j=ol(),R;if(l){let C=typeof l=="string"?is(l):l;ot(y==="/"||C.pathname?.startsWith(y),`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 "${y}" but pathname "${C.pathname}" was given in the \`location\` prop.`),R=C}else R=j;let N=R.pathname||"/",q=N;if(y!=="/"){let C=y.replace(/^\//,"").split("/");q="/"+N.replace(/^\//,"").split("/").slice(C.length).join("/")}let A=mx(n,{pathname:q});Sn(b||A!=null,`No routes matched location "${R.pathname}${R.search}${R.hash}" `),Sn(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${R.pathname}${R.search}${R.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 w=Gb(A&&A.map(C=>Object.assign({},C,{params:Object.assign({},p,C.params),pathname:sa([y,d.encodeLocation?d.encodeLocation(C.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?y:sa([y,d.encodeLocation?d.encodeLocation(C.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),h,i,o,f);return l&&w?m.createElement(ji.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...R},navigationType:"POP"}},w):w}function Ub(){let n=Kb(),l=Rb(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,o="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:o},d={padding:"2px 4px",backgroundColor:o},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=m.createElement(m.Fragment,null,m.createElement("p",null,"đź’ż Hey developer đź‘‹"),m.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",m.createElement("code",{style:d},"ErrorBoundary")," or"," ",m.createElement("code",{style:d},"errorElement")," prop on your route.")),m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},l),i?m.createElement("pre",{style:f},i):null,h)}var Hb=m.createElement(Ub,null),Vb=class extends m.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){this.props.onError?this.props.onError(n,l):console.error("React Router caught the following error during render",n)}render(){return this.state.error!==void 0?m.createElement(oa.Provider,{value:this.props.routeContext},m.createElement(Tf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function $b({routeContext:n,match:l,children:i}){let o=m.useContext(rs);return o&&o.static&&o.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=l.route.id),m.createElement(oa.Provider,{value:n},i)}function Gb(n,l=[],i=null,o=null,f=null){if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(l.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let d=n,h=i?.errors;if(h!=null){let y=d.findIndex(b=>b.route.id&&h?.[b.route.id]!==void 0);ot(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,y+1))}let x=!1,p=-1;if(i)for(let y=0;y=0?d=d.slice(0,p+1):d=[d[0]];break}}}let g=i&&o?(y,b)=>{o(y,{location:i.location,params:i.matches?.[0]?.params??{},errorInfo:b})}:void 0;return d.reduceRight((y,b,j)=>{let R,N=!1,q=null,A=null;i&&(R=h&&b.route.id?h[b.route.id]:void 0,q=b.route.errorElement||Hb,x&&(p<0&&j===0?(jx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,A=null):p===j&&(N=!0,A=b.route.hydrateFallbackElement||null)));let w=l.concat(d.slice(0,j+1)),C=()=>{let E;return R?E=q:N?E=A:b.route.Component?E=m.createElement(b.route.Component,null):b.route.element?E=b.route.element:E=y,m.createElement($b,{match:b,routeContext:{outlet:y,matches:w,isDataRoute:i!=null},children:E})};return i&&(b.route.ErrorBoundary||b.route.errorElement||j===0)?m.createElement(Vb,{location:i.location,revalidation:i.revalidation,component:q,error:R,children:C(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:g}):C()},null)}function Df(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Yb(n){let l=m.useContext(rs);return ot(l,Df(n)),l}function Fb(n){let l=m.useContext(ho);return ot(l,Df(n)),l}function Xb(n){let l=m.useContext(oa);return ot(l,Df(n)),l}function _f(n){let l=Xb(n),i=l.matches[l.matches.length-1];return ot(i.route.id,`${n} can only be used on routes that contain a unique "id"`),i.route.id}function Qb(){return _f("useRouteId")}function Kb(){let n=m.useContext(Tf),l=Fb("useRouteError"),i=_f("useRouteError");return n!==void 0?n:l.errors?.[i]}function Zb(){let{router:n}=Yb("useNavigate"),l=_f("useNavigate"),i=m.useRef(!1);return Sx(()=>{i.current=!0}),m.useCallback(async(f,d={})=>{Sn(i.current,bx),i.current&&(typeof f=="number"?n.navigate(f):await n.navigate(f,{fromRouteId:l,...d}))},[n,l])}var g0={};function jx(n,l,i){!l&&!g0[n]&&(g0[n]=!0,Sn(!1,i))}m.memo(Ib);function Ib({routes:n,future:l,state:i,unstable_onError:o}){return Ax(n,void 0,i,o,l)}function Xr(n){ot(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Jb({basename:n="/",children:l=null,location:i,navigationType:o="POP",navigator:f,static:d=!1}){ot(!Ni(),"You cannot render a inside another . You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),x=m.useMemo(()=>({basename:h,navigator:f,static:d,future:{}}),[h,f,d]);typeof i=="string"&&(i=is(i));let{pathname:p="/",search:g="",hash:y="",state:b=null,key:j="default"}=i,R=m.useMemo(()=>{let N=ia(p,h);return N==null?null:{location:{pathname:N,search:g,hash:y,state:b,key:j},navigationType:o}},[h,p,g,y,b,j,o]);return Sn(R!=null,` is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the won't render anything.`),R==null?null:m.createElement(qn.Provider,{value:x},m.createElement(ji.Provider,{children:l,value:R}))}function Pb({children:n,location:l}){return zb(hf(n),l)}function hf(n,l=[]){let i=[];return m.Children.forEach(n,(o,f)=>{if(!m.isValidElement(o))return;let d=[...l,f];if(o.type===m.Fragment){i.push.apply(i,hf(o.props.children,d));return}ot(o.type===Xr,`[${typeof o.type=="string"?o.type:o.type.name}] is not a component. All component children of must be a or `),ot(!o.props.index||!o.props.children,"An index route cannot have child routes.");let h={id:o.props.id||d.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(h.children=hf(o.props.children,d)),i.push(h)}),i}var Qr="get",Kr="application/x-www-form-urlencoded";function po(n){return n!=null&&typeof n.tagName=="string"}function Wb(n){return po(n)&&n.tagName.toLowerCase()==="button"}function e1(n){return po(n)&&n.tagName.toLowerCase()==="form"}function t1(n){return po(n)&&n.tagName.toLowerCase()==="input"}function n1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function a1(n,l){return n.button===0&&(!l||l==="_self")&&!n1(n)}var Hr=null;function l1(){if(Hr===null)try{new FormData(document.createElement("form"),0),Hr=!1}catch{Hr=!0}return Hr}var s1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $u(n){return n!=null&&!s1.has(n)?(Sn(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Kr}"`),null):n}function i1(n,l){let i,o,f,d,h;if(e1(n)){let x=n.getAttribute("action");o=x?ia(x,l):null,i=n.getAttribute("method")||Qr,f=$u(n.getAttribute("enctype"))||Kr,d=new FormData(n)}else if(Wb(n)||t1(n)&&(n.type==="submit"||n.type==="image")){let x=n.form;if(x==null)throw new Error('Cannot submit a