(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function s(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=s(o);fetch(o.href,f)}})();function vb(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var cd={exports:{}},Ls={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Jp;function bb(){if(Jp)return Ls;Jp=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function s(r,o,f){var m=null;if(f!==void 0&&(m=""+f),o.key!==void 0&&(m=""+o.key),"key"in o){f={};for(var _ in o)_!=="key"&&(f[_]=o[_])}else f=o;return o=f.ref,{$$typeof:n,type:r,key:m,ref:o!==void 0?o:null,props:f}}return Ls.Fragment=l,Ls.jsx=s,Ls.jsxs=s,Ls}var Fp;function Sb(){return Fp||(Fp=1,cd.exports=bb()),cd.exports}var u=Sb(),ud={exports:{}},_e={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Wp;function xb(){if(Wp)return _e;Wp=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),k=Symbol.iterator;function D(A){return A===null||typeof A!="object"?null:(A=k&&A[k]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,R={};function U(A,Y,F){this.props=A,this.context=Y,this.refs=R,this.updater=F||E}U.prototype.isReactComponent={},U.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,Y,"setState")},U.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function I(){}I.prototype=U.prototype;function $(A,Y,F){this.props=A,this.context=Y,this.refs=R,this.updater=F||E}var W=$.prototype=new I;W.constructor=$,T(W,U.prototype),W.isPureReactComponent=!0;var ne=Array.isArray;function fe(){}var P={H:null,A:null,T:null,S:null},G=Object.prototype.hasOwnProperty;function ee(A,Y,F){var te=F.ref;return{$$typeof:n,type:A,key:Y,ref:te!==void 0?te:null,props:F}}function pe(A,Y){return ee(A.type,Y,A.props)}function Ye(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function $e(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(F){return Y[F]})}var V=/\/+/g;function ce(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?$e(""+A.key):Y.toString(36)}function B(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(fe,fe):(A.status="pending",A.then(function(Y){A.status==="pending"&&(A.status="fulfilled",A.value=Y)},function(Y){A.status==="pending"&&(A.status="rejected",A.reason=Y)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function M(A,Y,F,te,de){var be=typeof A;(be==="undefined"||be==="boolean")&&(A=null);var Z=!1;if(A===null)Z=!0;else switch(be){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(A.$$typeof){case n:case l:Z=!0;break;case S:return Z=A._init,M(Z(A._payload),Y,F,te,de)}}if(Z)return de=de(A),Z=te===""?"."+ce(A,0):te,ne(de)?(F="",Z!=null&&(F=Z.replace(V,"$&/")+"/"),M(de,Y,F,"",function(qe){return qe})):de!=null&&(Ye(de)&&(de=pe(de,F+(de.key==null||A&&A.key===de.key?"":(""+de.key).replace(V,"$&/")+"/")+Z)),Y.push(de)),1;Z=0;var ae=te===""?".":te+":";if(ne(A))for(var Oe=0;Oe>>1,xe=M[he];if(0>>1;heo(F,ie))teo(de,F)?(M[he]=de,M[te]=ie,he=te):(M[he]=F,M[Y]=ie,he=Y);else if(teo(de,ie))M[he]=de,M[te]=ie,he=te;else break e}}return X}function o(M,X){var ie=M.sortIndex-X.sortIndex;return ie!==0?ie:M.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var m=Date,_=m.now();n.unstable_now=function(){return m.now()-_}}var p=[],g=[],S=1,j=null,k=3,D=!1,E=!1,T=!1,R=!1,U=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function W(M){for(var X=s(g);X!==null;){if(X.callback===null)r(g);else if(X.startTime<=M)r(g),X.sortIndex=X.expirationTime,l(p,X);else break;X=s(g)}}function ne(M){if(T=!1,W(M),!E)if(s(p)!==null)E=!0,fe||(fe=!0,$e());else{var X=s(g);X!==null&&B(ne,X.startTime-M)}}var fe=!1,P=-1,G=5,ee=-1;function pe(){return R?!0:!(n.unstable_now()-eeM&&pe());){var he=j.callback;if(typeof he=="function"){j.callback=null,k=j.priorityLevel;var xe=he(j.expirationTime<=M);if(M=n.unstable_now(),typeof xe=="function"){j.callback=xe,W(M),X=!0;break t}j===s(p)&&r(p),W(M)}else r(p);j=s(p)}if(j!==null)X=!0;else{var A=s(g);A!==null&&B(ne,A.startTime-M),X=!1}}break e}finally{j=null,k=ie,D=!1}X=void 0}}finally{X?$e():fe=!1}}}var $e;if(typeof $=="function")$e=function(){$(Ye)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,ce=V.port2;V.port1.onmessage=Ye,$e=function(){ce.postMessage(null)}}else $e=function(){U(Ye,0)};function B(M,X){P=U(function(){M(n.unstable_now())},X)}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(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125he?(M.sortIndex=ie,l(g,M),s(p)===null&&M===s(g)&&(T?(I(P),P=-1):T=!0,B(ne,ie-he))):(M.sortIndex=xe,l(p,M),E||D||(E=!0,fe||(fe=!0,$e()))),M},n.unstable_shouldYield=pe,n.unstable_wrapCallback=function(M){var X=k;return function(){var ie=k;k=X;try{return M.apply(this,arguments)}finally{k=ie}}}})(fd)),fd}var tg;function wb(){return tg||(tg=1,dd.exports=kb()),dd.exports}var md={exports:{}},Tt={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ng;function Eb(){if(ng)return Tt;ng=1;var n=Vd();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(),md.exports=Eb(),md.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var lg;function Cb(){if(lg)return Us;lg=1;var n=wb(),l=Vd(),s=Ab();function r(e){var t="https://react.dev/errors/"+e;if(1xe||(e.current=he[xe],he[xe]=null,xe--)}function F(e,t){xe++,he[xe]=e.current,e.current=t}var te=A(null),de=A(null),be=A(null),Z=A(null);function ae(e,t){switch(F(be,t),F(de,e),F(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=vp(t),e=bp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(te),F(te,e)}function Oe(){Y(te),Y(de),Y(be)}function qe(e){e.memoizedState!==null&&F(Z,e);var t=te.current,a=bp(t,e.type);t!==a&&(F(de,e),F(te,a))}function je(e){de.current===e&&(Y(te),Y(de)),Z.current===e&&(Y(Z),zs._currentValue=ie)}var Rt,vt;function Te(e){if(Rt===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Rt=t&&t[1]||"",vt=-1)":-1c||w[i]!==O[c]){var H=` `+w[i].replace(" at new "," at ");return e.displayName&&H.includes("")&&(H=H.replace("",e.displayName)),H}while(1<=i&&0<=c);break}}}finally{at=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Te(a):""}function $i(e,t){switch(e.tag){case 26:case 27:case 5:return Te(e.type);case 16:return Te("Lazy");case 13:return e.child!==t&&t!==null?Te("Suspense Fallback"):Te("Suspense");case 19:return Te("SuspenseList");case 0:case 15:return Kn(e.type,!1);case 11:return Kn(e.type.render,!1);case 1:return Kn(e.type,!0);case 31:return Te("Activity");default:return""}}function Ll(e){try{var t="",a=null;do t+=$i(e,a),a=e,e=e.return;while(e);return t}catch(i){return` Error generating stack: `+i.message+` `+i.stack}}var Oi=Object.prototype.hasOwnProperty,qi=n.unstable_scheduleCallback,xt=n.unstable_cancelCallback,lr=n.unstable_shouldYield,ke=n.unstable_requestPaint,gt=n.unstable_now,Ot=n.unstable_getCurrentPriorityLevel,rn=n.unstable_ImmediatePriority,ll=n.unstable_UserBlockingPriority,qt=n.unstable_NormalPriority,Mt=n.unstable_LowPriority,il=n.unstable_IdlePriority,Xn=n.log,sl=n.unstable_setDisableYieldValue,Vn=null,Ie=null;function Dn(e){if(typeof Xn=="function"&&sl(e),Ie&&typeof Ie.setStrictMode=="function")try{Ie.setStrictMode(Vn,e)}catch{}}var Nt=Math.clz32?Math.clz32:Li,ya=Math.log,lu=Math.LN2;function Li(e){return e>>>=0,e===0?32:31-(ya(e)/lu|0)|0}var Ul=256,Bl=262144,Hl=4194304;function Zn(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 Lt(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var c=0,d=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var v=i&134217727;return v!==0?(i=v&~d,i!==0?c=Zn(i):(h&=v,h!==0?c=Zn(h):a||(a=v&~e,a!==0&&(c=Zn(a))))):(v=i&~d,v!==0?c=Zn(v):h!==0?c=Zn(h):a||(a=i&~e,a!==0&&(c=Zn(a)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:c}function He(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function De(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 Gl(){var e=Hl;return Hl<<=1,(Hl&62914560)===0&&(Hl=4194304),e}function ir(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ut(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function bf(e,t,a,i,c,d){var h=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 v=e.entanglements,w=e.expirationTimes,O=e.hiddenUpdates;for(a=h&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var or=/[\n"\\]/g;function Ht(e){return e.replace(or,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Xi(e,t,a,i,c,d,h,v){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Bt(t)):e.value!==""+Bt(t)&&(e.value=""+Bt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Vi(e,h,Bt(t)):a!=null?Vi(e,h,Bt(a)):i!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Bt(v):e.removeAttribute("name")}function dr(e,t,a,i,c,d,h,v){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Qi(e);return}a=a!=null?""+Bt(a):"",t=t!=null?""+Bt(t):a,v||t===e.value||(e.value=t),e.defaultValue=t}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=v?e.checked:!!i,e.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Qi(e)}function Vi(e,t,a){t==="number"&&rl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ka(e,t,a,i){if(e=e.options,t){t={};for(var c=0;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vl=!1;if(cn)try{var Ca={};Object.defineProperty(Ca,"passive",{get:function(){Vl=!0}}),window.addEventListener("test",Ca,Ca),window.removeEventListener("test",Ca,Ca)}catch{Vl=!1}var jn=null,b=null,J=null;function se(){if(J)return J;var e,t=b,a=t.length,i,c="value"in jn?jn.value:jn.textContent,d=c.length;for(e=0;e=ts),Ef=" ",Af=!1;function Cf(e,t){switch(e){case"keyup":return Hy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zl=!1;function Yy(e,t){switch(e){case"compositionend":return Nf(t);case"keypress":return t.which!==32?null:(Af=!0,Ef);case"textInput":return e=t.data,e===Ef&&Af?null:e;default:return null}}function Qy(e,t){if(Zl)return e==="compositionend"||!mu&&Cf(e,t)?(e=se(),J=b=jn=null,Zl=!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=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=qf(a)}}function Uf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=rl(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=rl(e.document)}return t}function gu(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 Wy=cn&&"documentMode"in document&&11>=document.documentMode,Il=null,_u=null,is=null,yu=!1;function Hf(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;yu||Il==null||Il!==rl(i)||(i=Il,"selectionStart"in i&&gu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),is&&ls(is,i)||(is=i,i=lc(_u,"onSelect"),0>=h,c-=h,Un=1<<32-Nt(t)+c|a<Se?(Ne=re,re=null):Ne=re.sibling;var Be=q(N,re,z[Se],Q);if(Be===null){re===null&&(re=Ne);break}e&&re&&Be.alternate===null&&t(N,re),C=d(Be,C,Se),Ue===null?ue=Be:Ue.sibling=Be,Ue=Be,re=Ne}if(Se===z.length)return a(N,re),Re&&Wn(N,Se),ue;if(re===null){for(;SeSe?(Ne=re,re=null):Ne=re.sibling;var Ja=q(N,re,Be.value,Q);if(Ja===null){re===null&&(re=Ne);break}e&&re&&Ja.alternate===null&&t(N,re),C=d(Ja,C,Se),Ue===null?ue=Ja:Ue.sibling=Ja,Ue=Ja,re=Ne}if(Be.done)return a(N,re),Re&&Wn(N,Se),ue;if(re===null){for(;!Be.done;Se++,Be=z.next())Be=K(N,Be.value,Q),Be!==null&&(C=d(Be,C,Se),Ue===null?ue=Be:Ue.sibling=Be,Ue=Be);return Re&&Wn(N,Se),ue}for(re=i(re);!Be.done;Se++,Be=z.next())Be=L(re,N,Se,Be.value,Q),Be!==null&&(e&&Be.alternate!==null&&re.delete(Be.key===null?Se:Be.key),C=d(Be,C,Se),Ue===null?ue=Be:Ue.sibling=Be,Ue=Be);return e&&re.forEach(function(yb){return t(N,yb)}),Re&&Wn(N,Se),ue}function Ze(N,C,z,Q){if(typeof z=="object"&&z!==null&&z.type===T&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case D:e:{for(var ue=z.key;C!==null;){if(C.key===ue){if(ue=z.type,ue===T){if(C.tag===7){a(N,C.sibling),Q=c(C,z.props.children),Q.return=N,N=Q;break e}}else if(C.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===G&&vl(ue)===C.type){a(N,C.sibling),Q=c(C,z.props),ds(Q,z),Q.return=N,N=Q;break e}a(N,C);break}else t(N,C);C=C.sibling}z.type===T?(Q=hl(z.props.children,N.mode,Q,z.key),Q.return=N,N=Q):(Q=Sr(z.type,z.key,z.props,null,N.mode,Q),ds(Q,z),Q.return=N,N=Q)}return h(N);case E:e:{for(ue=z.key;C!==null;){if(C.key===ue)if(C.tag===4&&C.stateNode.containerInfo===z.containerInfo&&C.stateNode.implementation===z.implementation){a(N,C.sibling),Q=c(C,z.children||[]),Q.return=N,N=Q;break e}else{a(N,C);break}else t(N,C);C=C.sibling}Q=wu(z,N.mode,Q),Q.return=N,N=Q}return h(N);case G:return z=vl(z),Ze(N,C,z,Q)}if(B(z))return le(N,C,z,Q);if($e(z)){if(ue=$e(z),typeof ue!="function")throw Error(r(150));return z=ue.call(z),me(N,C,z,Q)}if(typeof z.then=="function")return Ze(N,C,Cr(z),Q);if(z.$$typeof===$)return Ze(N,C,kr(N,z),Q);Nr(N,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,C!==null&&C.tag===6?(a(N,C.sibling),Q=c(C,z),Q.return=N,N=Q):(a(N,C),Q=ku(z,N.mode,Q),Q.return=N,N=Q),h(N)):a(N,C)}return function(N,C,z,Q){try{os=0;var ue=Ze(N,C,z,Q);return si=null,ue}catch(re){if(re===ii||re===Er)throw re;var Ue=Ft(29,re,null,N.mode);return Ue.lanes=Q,Ue.return=N,Ue}finally{}}}var Sl=om(!0),dm=om(!1),Ma=!1;function qu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lu(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 za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function $a(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ge&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=br(e),Zf(e,null,a),t}return vr(e,i,t,a),br(e)}function fs(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,ge(e,a)}}function Uu(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var c=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?c=d=h:d=d.next=h,a=a.next}while(a!==null);d===null?c=d=t:d=d.next=t}else c=d=t;a={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Bu=!1;function ms(){if(Bu){var e=li;if(e!==null)throw e}}function hs(e,t,a,i){Bu=!1;var c=e.updateQueue;Ma=!1;var d=c.firstBaseUpdate,h=c.lastBaseUpdate,v=c.shared.pending;if(v!==null){c.shared.pending=null;var w=v,O=w.next;w.next=null,h===null?d=O:h.next=O,h=w;var H=e.alternate;H!==null&&(H=H.updateQueue,v=H.lastBaseUpdate,v!==h&&(v===null?H.firstBaseUpdate=O:v.next=O,H.lastBaseUpdate=w))}if(d!==null){var K=c.baseState;h=0,H=O=w=null,v=d;do{var q=v.lane&-536870913,L=q!==v.lane;if(L?(Ce&q)===q:(i&q)===q){q!==0&&q===ai&&(Bu=!0),H!==null&&(H=H.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var le=e,me=v;q=t;var Ze=a;switch(me.tag){case 1:if(le=me.payload,typeof le=="function"){K=le.call(Ze,K,q);break e}K=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=me.payload,q=typeof le=="function"?le.call(Ze,K,q):le,q==null)break e;K=j({},K,q);break e;case 2:Ma=!0}}q=v.callback,q!==null&&(e.flags|=64,L&&(e.flags|=8192),L=c.callbacks,L===null?c.callbacks=[q]:L.push(q))}else L={lane:q,tag:v.tag,payload:v.payload,callback:v.callback,next:null},H===null?(O=H=L,w=K):H=H.next=L,h|=q;if(v=v.next,v===null){if(v=c.shared.pending,v===null)break;L=v,v=L.next,L.next=null,c.lastBaseUpdate=L,c.shared.pending=null}}while(!0);H===null&&(w=K),c.baseState=w,c.firstBaseUpdate=O,c.lastBaseUpdate=H,d===null&&(c.shared.lanes=0),Ba|=h,e.lanes=h,e.memoizedState=K}}function fm(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function mm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;ed?d:8;var h=M.T,v={};M.T=v,io(e,!1,t,a);try{var w=c(),O=M.S;if(O!==null&&O(v,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var H=rv(w,i);_s(e,t,H,nn(e))}else _s(e,t,i,nn(e))}catch(K){_s(e,t,{then:function(){},status:"rejected",reason:K},nn())}finally{X.p=d,h!==null&&v.types!==null&&(h.types=v.types),M.T=h}}function mv(){}function ao(e,t,a,i){if(e.tag!==5)throw Error(r(476));var c=Km(e).queue;Qm(e,c,t,ie,a===null?mv:function(){return Xm(e),a(i)})}function Km(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:na,lastRenderedState:ie},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:na,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Xm(e){var t=Km(e);t.next===null&&(t=e.alternate.memoizedState),_s(e,t.next.queue,{},nn())}function lo(){return wt(zs)}function Vm(){return ut().memoizedState}function Zm(){return ut().memoizedState}function hv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=nn();e=za(a);var i=$a(t,e,a);i!==null&&(Vt(i,t,a),fs(i,t,a)),t={cache:Mu()},e.payload=t;return}t=t.return}}function pv(e,t,a){var i=nn();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ur(e)?Jm(t,a):(a=xu(e,t,a,i),a!==null&&(Vt(a,e,i),Fm(a,t,i)))}function Im(e,t,a){var i=nn();_s(e,t,a,i)}function _s(e,t,a,i){var c={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ur(e))Jm(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var h=t.lastRenderedState,v=d(h,a);if(c.hasEagerState=!0,c.eagerState=v,Jt(v,h))return vr(e,t,c,0),Fe===null&&yr(),!1}catch{}finally{}if(a=xu(e,t,c,i),a!==null)return Vt(a,e,i),Fm(a,t,i),!0}return!1}function io(e,t,a,i){if(i={lane:2,revertLane:Lo(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ur(e)){if(t)throw Error(r(479))}else t=xu(e,a,i,2),t!==null&&Vt(t,e,2)}function Ur(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Jm(e,t){ci=Rr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Fm(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,ge(e,a)}}var ys={readContext:wt,use:$r,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useLayoutEffect:lt,useInsertionEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useSyncExternalStore:lt,useId:lt,useHostTransitionStatus:lt,useFormState:lt,useActionState:lt,useOptimistic:lt,useMemoCache:lt,useCacheRefresh:lt};ys.useEffectEvent=lt;var Wm={readContext:wt,use:$r,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:$m,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,qr(4194308,4,Um.bind(null,t,e),a)},useLayoutEffect:function(e,t){return qr(4194308,4,e,t)},useInsertionEffect:function(e,t){qr(4,2,e,t)},useMemo:function(e,t){var a=zt();t=t===void 0?null:t;var i=e();if(xl){Dn(!0);try{e()}finally{Dn(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=zt();if(a!==void 0){var c=a(t);if(xl){Dn(!0);try{a(t)}finally{Dn(!1)}}}else c=t;return i.memoizedState=i.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},i.queue=e,e=e.dispatch=pv.bind(null,ve,e),[i.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:function(e){e=Wu(e);var t=e.queue,a=Im.bind(null,ve,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:to,useDeferredValue:function(e,t){var a=zt();return no(a,e,t)},useTransition:function(){var e=Wu(!1);return e=Qm.bind(null,ve,e.queue,!0,!1),zt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=ve,c=zt();if(Re){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Fe===null)throw Error(r(349));(Ce&127)!==0||vm(i,t,a)}c.memoizedState=a;var d={value:a,getSnapshot:t};return c.queue=d,$m(Sm.bind(null,i,d,e),[e]),i.flags|=2048,oi(9,{destroy:void 0},bm.bind(null,i,d,a,t),null),a},useId:function(){var e=zt(),t=Fe.identifierPrefix;if(Re){var a=Bn,i=Un;a=(i&~(1<<32-Nt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Mr++,0<\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is=="string"?h.createElement(c,{is:i.is}):h.createElement(c)}}d[_t]=t,d[Je]=i;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)d.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=d;e:switch(At(d,c,i),c){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&la(t)}}return et(t),bo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&la(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=be.current,ti(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,c=kt,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps}e[_t]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||_p(e.nodeValue,a)),e||Da(t,!0)}else e=ic(e).createTextNode(i),e[_t]=t,t.stateNode=e}return et(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=ti(t),a!==null){if(e===null){if(!i)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[_t]=t}else pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else a=Nu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Pt(t),t):(Pt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return et(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ti(t),i!==null&&i.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[_t]=t}else pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),c=!1}else c=Nu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Pt(t),t):(Pt(t),null)}return Pt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==c&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Qr(t,t.updateQueue),et(t),null);case 4:return Oe(),e===null&&Go(t.stateNode.containerInfo),et(t),null;case 10:return ea(t.type),et(t),null;case 19:if(Y(ct),i=t.memoizedState,i===null)return et(t),null;if(c=(t.flags&128)!==0,d=i.rendering,d===null)if(c)bs(i,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Dr(e),d!==null){for(t.flags|=128,bs(i,!1),e=d.updateQueue,t.updateQueue=e,Qr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)If(a,e),a=a.sibling;return F(ct,ct.current&1|2),Re&&Wn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&>()>Ir&&(t.flags|=128,c=!0,bs(i,!1),t.lanes=4194304)}else{if(!c)if(e=Dr(d),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Qr(t,e),bs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Re)return et(t),null}else 2*gt()-i.renderingStartTime>Ir&&a!==536870912&&(t.flags|=128,c=!0,bs(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=gt(),e.sibling=null,a=ct.current,F(ct,c?a&1|2:a&1),Re&&Wn(t,i.treeForkCount),e):(et(t),null);case 22:case 23:return Pt(t),Gu(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),a=t.updateQueue,a!==null&&Qr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Y(yl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ea(ft),et(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function bv(e,t){switch(Au(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ea(ft),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return je(t),null;case 31:if(t.memoizedState!==null){if(Pt(t),t.alternate===null)throw Error(r(340));pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(ct),null;case 4:return Oe(),null;case 10:return ea(t.type),null;case 22:case 23:return Pt(t),Gu(),e!==null&&Y(yl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ea(ft),null;case 25:return null;default:return null}}function xh(e,t){switch(Au(t),t.tag){case 3:ea(ft),Oe();break;case 26:case 27:case 5:je(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&Pt(t);break;case 13:Pt(t);break;case 19:Y(ct);break;case 10:ea(t.type);break;case 22:case 23:Pt(t),Gu(),e!==null&&Y(yl);break;case 24:ea(ft)}}function Ss(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&e)===e){i=void 0;var d=a.create,h=a.inst;i=d(),h.destroy=i}a=a.next}while(a!==c)}}catch(v){Ke(t,t.return,v)}}function La(e,t,a){try{var i=t.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var d=c.next;i=d;do{if((i.tag&e)===e){var h=i.inst,v=h.destroy;if(v!==void 0){h.destroy=void 0,c=t;var w=a,O=v;try{O()}catch(H){Ke(c,w,H)}}}i=i.next}while(i!==d)}}catch(H){Ke(t,t.return,H)}}function jh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{mm(t,a)}catch(i){Ke(e,e.return,i)}}}function kh(e,t,a){a.props=jl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Ke(e,t,i)}}function xs(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(c){Ke(e,t,c)}}function Hn(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(c){Ke(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){Ke(e,t,c)}else a.current=null}function wh(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(c){Ke(e,e.return,c)}}function So(e,t,a){try{var i=e.stateNode;Gv(i,e.type,a,t),i[Je]=t}catch(c){Ke(e,e.return,c)}}function Eh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ka(e.type)||e.tag===4}function xo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eh(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&&Ka(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 jo(e,t,a){var i=e.tag;if(i===5||i===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=xn));else if(i!==4&&(i===27&&Ka(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(jo(e,t,a),e=e.sibling;e!==null;)jo(e,t,a),e=e.sibling}function Kr(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Ka(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Kr(e,t,a),e=e.sibling;e!==null;)Kr(e,t,a),e=e.sibling}function Ah(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);At(t,i,a),t[_t]=e,t[Je]=a}catch(d){Ke(e,e.return,d)}}var ia=!1,pt=!1,ko=!1,Ch=typeof WeakSet=="function"?WeakSet:Set,bt=null;function Sv(e,t){if(e=e.containerInfo,Ko=fc,e=Bf(e),gu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var c=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var h=0,v=-1,w=-1,O=0,H=0,K=e,q=null;t:for(;;){for(var L;K!==a||c!==0&&K.nodeType!==3||(v=h+c),K!==d||i!==0&&K.nodeType!==3||(w=h+i),K.nodeType===3&&(h+=K.nodeValue.length),(L=K.firstChild)!==null;)q=K,K=L;for(;;){if(K===e)break t;if(q===a&&++O===c&&(v=h),q===d&&++H===i&&(w=h),(L=K.nextSibling)!==null)break;K=q,q=K.parentNode}K=L}a=v===-1||w===-1?null:{start:v,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(Xo={focusedElem:e,selectionRange:a},fc=!1,bt=t;bt!==null;)if(t=bt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,bt=e;else for(;bt!==null;){switch(t=bt,d=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"))),At(d,i,a),d[_t]=e,rt(d),i=d;break e;case"link":var h=zp("link","href",c).get(i+(a.href||""));if(h){for(var v=0;vZe&&(h=Ze,Ze=me,me=h);var N=Lf(v,me),C=Lf(v,Ze);if(N&&C&&(L.rangeCount!==1||L.anchorNode!==N.node||L.anchorOffset!==N.offset||L.focusNode!==C.node||L.focusOffset!==C.offset)){var z=K.createRange();z.setStart(N.node,N.offset),L.removeAllRanges(),me>Ze?(L.addRange(z),L.extend(C.node,C.offset)):(z.setEnd(C.node,C.offset),L.addRange(z))}}}}for(K=[],L=v;L=L.parentNode;)L.nodeType===1&&K.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;va?32:a,M.T=null,a=Do,Do=null;var d=Ga,h=oa;if(yt=0,pi=Ga=null,oa=0,(Ge&6)!==0)throw Error(r(331));var v=Ge;if(Ge|=4,Uh(d.current),Oh(d,d.current,h,a),Ge=v,Cs(0,!1),Ie&&typeof Ie.onPostCommitFiberRoot=="function")try{Ie.onPostCommitFiberRoot(Vn,d)}catch{}return!0}finally{X.p=c,M.T=i,ap(e,t)}}function ip(e,t,a){t=on(a,t),t=uo(e.stateNode,t,2),e=$a(e,t,2),e!==null&&(Ut(e,2),Gn(e))}function Ke(e,t,a){if(e.tag===3)ip(e,e,a);else for(;t!==null;){if(t.tag===3){ip(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ha===null||!Ha.has(i))){e=on(a,e),a=sh(2),i=$a(t,a,2),i!==null&&(rh(a,i,t,e),Ut(i,2),Gn(i));break}}t=t.return}}function $o(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new kv;var c=new Set;i.set(t,c)}else c=i.get(t),c===void 0&&(c=new Set,i.set(t,c));c.has(a)||(Ao=!0,c.add(a),e=Nv.bind(null,e,t,a),t.then(e,e))}function Nv(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Fe===e&&(Ce&a)===a&&(it===4||it===3&&(Ce&62914560)===Ce&&300>gt()-Zr?(Ge&2)===0&&gi(e,0):Co|=a,hi===Ce&&(hi=0)),Gn(e)}function sp(e,t){t===0&&(t=Gl()),e=ml(e,t),e!==null&&(Ut(e,t),Gn(e))}function Tv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),sp(e,a)}function Dv(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,c=e.memoizedState;c!==null&&(a=c.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),sp(e,a)}function Rv(e,t){return qi(e,t)}var tc=null,yi=null,Oo=!1,nc=!1,qo=!1,Qa=0;function Gn(e){e!==yi&&e.next===null&&(yi===null?tc=yi=e:yi=yi.next=e),nc=!0,Oo||(Oo=!0,zv())}function Cs(e,t){if(!qo&&nc){qo=!0;do for(var a=!1,i=tc;i!==null;){if(e!==0){var c=i.pendingLanes;if(c===0)var d=0;else{var h=i.suspendedLanes,v=i.pingedLanes;d=(1<<31-Nt(42|e)+1)-1,d&=c&~(h&~v),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,op(i,d))}else d=Ce,d=Lt(i,i===Fe?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||He(i,d)||(a=!0,op(i,d));i=i.next}while(a);qo=!1}}function Mv(){rp()}function rp(){nc=Oo=!1;var e=0;Qa!==0&&Qv()&&(e=Qa);for(var t=gt(),a=null,i=tc;i!==null;){var c=i.next,d=cp(i,t);d===0?(i.next=null,a===null?tc=c:a.next=c,c===null&&(yi=a)):(a=i,(e!==0||(d&3)!==0)&&(nc=!0)),i=c}yt!==0&&yt!==5||Cs(e),Qa!==0&&(Qa=0)}function cp(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0v)break;var H=w.transferSize,K=w.initiatorType;H&&yp(K)&&(w=w.responseEnd,h+=H*(w"u"?null:document;function Tp(e,t,a){var i=vi;if(i&&typeof t=="string"&&t){var c=Ht(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),Np.has(c)||(Np.add(c),e={rel:e,crossOrigin:a,href:t},i.querySelector(c)===null&&(t=i.createElement("link"),At(t,"link",e),rt(t),i.head.appendChild(t)))}}function Pv(e){da.D(e),Tp("dns-prefetch",e,null)}function eb(e,t){da.C(e,t),Tp("preconnect",e,t)}function tb(e,t,a){da.L(e,t,a);var i=vi;if(i&&e&&t){var c='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+Ht(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+Ht(a.imageSizes)+'"]')):c+='[href="'+Ht(e)+'"]';var d=c;switch(t){case"style":d=bi(e);break;case"script":d=Si(e)}gn.has(d)||(e=j({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),gn.set(d,e),i.querySelector(c)!==null||t==="style"&&i.querySelector(Rs(d))||t==="script"&&i.querySelector(Ms(d))||(t=i.createElement("link"),At(t,"link",e),rt(t),i.head.appendChild(t)))}}function nb(e,t){da.m(e,t);var a=vi;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Ht(i)+'"][href="'+Ht(e)+'"]',d=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Si(e)}if(!gn.has(d)&&(e=j({rel:"modulepreload",href:e},t),gn.set(d,e),a.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ms(d)))return}i=a.createElement("link"),At(i,"link",e),rt(i),a.head.appendChild(i)}}}function ab(e,t,a){da.S(e,t,a);var i=vi;if(i&&e){var c=$n(i).hoistableStyles,d=bi(e);t=t||"default";var h=c.get(d);if(!h){var v={loading:0,preload:null};if(h=i.querySelector(Rs(d)))v.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},a),(a=gn.get(d))&&Po(e,a);var w=h=i.createElement("link");rt(w),At(w,"link",e),w._p=new Promise(function(O,H){w.onload=O,w.onerror=H}),w.addEventListener("load",function(){v.loading|=1}),w.addEventListener("error",function(){v.loading|=2}),v.loading|=4,rc(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:v},c.set(d,h)}}}function lb(e,t){da.X(e,t);var a=vi;if(a&&e){var i=$n(a).hoistableScripts,c=Si(e),d=i.get(c);d||(d=a.querySelector(Ms(c)),d||(e=j({src:e,async:!0},t),(t=gn.get(c))&&ed(e,t),d=a.createElement("script"),rt(d),At(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(c,d))}}function ib(e,t){da.M(e,t);var a=vi;if(a&&e){var i=$n(a).hoistableScripts,c=Si(e),d=i.get(c);d||(d=a.querySelector(Ms(c)),d||(e=j({src:e,async:!0,type:"module"},t),(t=gn.get(c))&&ed(e,t),d=a.createElement("script"),rt(d),At(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(c,d))}}function Dp(e,t,a,i){var c=(c=be.current)?sc(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=bi(a.href),a=$n(c).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=bi(a.href);var d=$n(c).hoistableStyles,h=d.get(e);if(h||(c=c.ownerDocument||c,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,h),(d=c.querySelector(Rs(e)))&&!d._p&&(h.instance=d,h.state.loading=5),gn.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},gn.set(e,a),d||sb(c,e,a,h.state))),t&&i===null)throw Error(r(528,""));return h}if(t&&i!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Si(a),a=$n(c).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function bi(e){return'href="'+Ht(e)+'"'}function Rs(e){return'link[rel="stylesheet"]['+e+"]"}function Rp(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function sb(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),At(t,"link",a),rt(t),e.head.appendChild(t))}function Si(e){return'[src="'+Ht(e)+'"]'}function Ms(e){return"script[async]"+e}function Mp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Ht(a.href)+'"]');if(i)return t.instance=i,rt(i),i;var c=j({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),rt(i),At(i,"style",c),rc(i,a.precedence,e),t.instance=i;case"stylesheet":c=bi(a.href);var d=e.querySelector(Rs(c));if(d)return t.state.loading|=4,t.instance=d,rt(d),d;i=Rp(a),(c=gn.get(c))&&Po(i,c),d=(e.ownerDocument||e).createElement("link"),rt(d);var h=d;return h._p=new Promise(function(v,w){h.onload=v,h.onerror=w}),At(d,"link",i),t.state.loading|=4,rc(d,a.precedence,e),t.instance=d;case"script":return d=Si(a.src),(c=e.querySelector(Ms(d)))?(t.instance=c,rt(c),c):(i=a,(c=gn.get(d))&&(i=j({},a),ed(i,c)),e=e.ownerDocument||e,c=e.createElement("script"),rt(c),At(c,"link",i),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,rc(i,a.precedence,e));return t.instance}function rc(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,d=c,h=0;h title"):null)}function rb(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 Op(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function cb(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var c=bi(i.href),d=t.querySelector(Rs(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=uc.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=d,rt(d);return}d=t.ownerDocument||t,i=Rp(i),(c=gn.get(c))&&Po(i,c),d=d.createElement("link"),rt(d);var h=d;h._p=new Promise(function(v,w){h.onload=v,h.onerror=w}),At(d,"link",i),a.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=uc.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var td=0;function ub(e,t){return e.stylesheets&&e.count===0&&dc(e,e.stylesheets),0td?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(c)}}:null}function uc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)dc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var oc=null;function dc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oc=new Map,t.forEach(ob,e),oc=null,uc.call(e))}function ob(e,t){if(!(t.state.loading&4)){var a=oc.get(e);if(a)var i=a.get(null);else{a=new Map,oc.set(e,a);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),od.exports=Cb(),od.exports}var Tb=Nb();/** * react-router v7.17.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var sg="popstate";function rg(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Db(n={}){function l(o,f){let{pathname:m="/",search:_="",hash:p=""}=zl(o.location.hash.substring(1));return!m.startsWith("/")&&!m.startsWith(".")&&(m="/"+m),Nd("",{pathname:m,search:_,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function s(o,f){let m=o.document.querySelector("base"),_="";if(m&&m.getAttribute("href")){let p=o.location.href,g=p.indexOf("#");_=g===-1?p:p.slice(0,g)}return _+"#"+(typeof f=="string"?f:Zs(f))}function r(o,f){_n(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return Mb(l,s,r,n)}function nt(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function _n(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function Rb(){return Math.random().toString(36).substring(2,10)}function cg(n,l){return{usr:n.state,key:n.key,idx:l,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Nd(n,l,s=null,r,o){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?zl(l):l,state:s,key:l&&l.key||r||Rb(),mask:o}}function Zs({pathname:n="/",search:l="",hash:s=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function zl(n){let l={};if(n){let s=n.indexOf("#");s>=0&&(l.hash=n.substring(s),n=n.substring(0,s));let r=n.indexOf("?");r>=0&&(l.search=n.substring(r),n=n.substring(0,r)),n&&(l.pathname=n)}return l}function Mb(n,l,s,r={}){let{window:o=document.defaultView,v5Compat:f=!1}=r,m=o.history,_="POP",p=null,g=S();g==null&&(g=0,m.replaceState({...m.state,idx:g},""));function S(){return(m.state||{idx:null}).idx}function j(){_="POP";let R=S(),U=R==null?null:R-g;g=R,p&&p({action:_,location:T.location,delta:U})}function k(R,U){_="PUSH";let I=rg(R)?R:Nd(T.location,R,U);s&&s(I,R),g=S()+1;let $=cg(I,g),W=T.createHref(I.mask||I);try{m.pushState($,"",W)}catch(ne){if(ne instanceof DOMException&&ne.name==="DataCloneError")throw ne;o.location.assign(W)}f&&p&&p({action:_,location:T.location,delta:1})}function D(R,U){_="REPLACE";let I=rg(R)?R:Nd(T.location,R,U);s&&s(I,R),g=S();let $=cg(I,g),W=T.createHref(I.mask||I);m.replaceState($,"",W),f&&p&&p({action:_,location:T.location,delta:0})}function E(R){return zb(o,R)}let T={get action(){return _},get location(){return n(o,m)},listen(R){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(sg,j),p=R,()=>{o.removeEventListener(sg,j),p=null}},createHref(R){return l(o,R)},createURL:E,encodeLocation(R){let U=E(R);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:k,replace:D,go(R){return m.go(R)}};return T}function zb(n,l,s=!1){let r="http://localhost";n&&(r=n.location.origin!=="null"?n.location.origin:n.location.href),nt(r,"No window.location.(origin|href) available to create URL");let o=typeof l=="string"?l:Zs(l);return o=o.replace(/ $/,"%20"),!s&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function t_(n,l,s="/"){return $b(n,l,s,!1)}function $b(n,l,s,r,o){let f=typeof l=="string"?zl(l):l,m=ha(f.pathname||"/",s);if(m==null)return null;let _=Ob(n),p=null,g=Zb(m);for(let S=0;p==null&&S<_.length;++S)p=Xb(_[S],g,r);return p}function Ob(n){let l=n_(n);return qb(l),l}function n_(n,l=[],s=[],r="",o=!1){let f=(m,_,p=o,g)=>{let S={relativePath:g===void 0?m.path||"":g,caseSensitive:m.caseSensitive===!0,childrenIndex:_,route:m};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(r)&&p)return;nt(S.relativePath.startsWith(r),`Absolute route path "${S.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(r.length)}let j=Cn([r,S.relativePath]),k=s.concat(S);m.children&&m.children.length>0&&(nt(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${j}".`),n_(m.children,l,k,j,p)),!(m.path==null&&!m.index)&&l.push({path:j,score:Qb(j,m.index),routesMeta:k})};return n.forEach((m,_)=>{var p;if(m.path===""||!((p=m.path)!=null&&p.includes("?")))f(m,_);else for(let g of a_(m.path))f(m,_,!0,g)}),l}function a_(n){let l=n.split("/");if(l.length===0)return[];let[s,...r]=l,o=s.endsWith("?"),f=s.replace(/\?$/,"");if(r.length===0)return o?[f,""]:[f];let m=a_(r.join("/")),_=[];return _.push(...m.map(p=>p===""?f:[f,p].join("/"))),o&&_.push(...m),_.map(p=>n.startsWith("/")&&p===""?"/":p)}function qb(n){n.sort((l,s)=>l.score!==s.score?s.score-l.score:Kb(l.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var Lb=/^:[\w-]+$/,Ub=3,Bb=2,Hb=1,Gb=10,Yb=-2,ug=n=>n==="*";function Qb(n,l){let s=n.split("/"),r=s.length;return s.some(ug)&&(r+=Yb),l&&(r+=Bb),s.filter(o=>!ug(o)).reduce((o,f)=>o+(Lb.test(f)?Ub:f===""?Hb:Gb),r)}function Kb(n,l){return n.length===l.length&&n.slice(0,-1).every((r,o)=>r===l[o])?n[n.length-1]-l[l.length-1]:0}function Xb(n,l,s=!1){let{routesMeta:r}=n,o={},f="/",m=[];for(let _=0;_{if(S==="*"){let E=_[k]||"";m=f.slice(0,f.length-E.length).replace(/(.)\/+$/,"$1")}const D=_[k];return j&&!D?g[S]=void 0:g[S]=(D||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:m,pattern:n}}function Vb(n,l=!1,s=!0){_n(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,_,p,g,S)=>{if(r.push({paramName:_,isOptional:p!=null}),p){let j=S.charAt(g+m.length);return j&&j!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,l?void 0:"i"),r]}function Zb(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return _n(!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 ha(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let s=l.endsWith("/")?l.length-1:l.length,r=n.charAt(s);return r&&r!=="/"?null:n.slice(s)||"/"}var Ib=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Jb(n,l="/"){let{pathname:s,search:r="",hash:o=""}=typeof n=="string"?zl(n):n,f;return s?(s=l_(s),s.startsWith("/")?f=og(s.substring(1),"/"):f=og(s,l)):f=l,{pathname:f,search:Pb(r),hash:e0(o)}}function og(n,l){let s=zc(l).split("/");return n.split("/").forEach(o=>{o===".."?s.length>1&&s.pop():o!=="."&&s.push(o)}),s.length>1?s.join("/"):"/"}function hd(n,l,s,r){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Fb(n){return n.filter((l,s)=>s===0||l.route.path&&l.route.path.length>0)}function Zd(n){let l=Fb(n);return l.map((s,r)=>r===l.length-1?s.pathname:s.pathnameBase)}function Yc(n,l,s,r=!1){let o;typeof n=="string"?o=zl(n):(o={...n},nt(!o.pathname||!o.pathname.includes("?"),hd("?","pathname","search",o)),nt(!o.pathname||!o.pathname.includes("#"),hd("#","pathname","hash",o)),nt(!o.search||!o.search.includes("#"),hd("#","search","hash",o)));let f=n===""||o.pathname==="",m=f?"/":o.pathname,_;if(m==null)_=s;else{let j=l.length-1;if(!r&&m.startsWith("..")){let k=m.split("/");for(;k[0]==="..";)k.shift(),j-=1;o.pathname=k.join("/")}_=j>=0?l[j]:"/"}let p=Jb(o,_),g=m&&m!=="/"&&m.endsWith("/"),S=(f||m===".")&&s.endsWith("/");return!p.pathname.endsWith("/")&&(g||S)&&(p.pathname+="/"),p}var l_=n=>n.replace(/\/\/+/g,"/"),Cn=n=>l_(n.join("/")),zc=n=>n.replace(/\/+$/,""),Wb=n=>zc(n).replace(/^\/*/,"/"),Pb=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,e0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,t0=class{constructor(n,l,s,r=!1){this.status=n,this.statusText=l||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function n0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function a0(n){let l=n.map(s=>s.route.path).filter(Boolean);return Cn(l)||"/"}var i_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function s_(n,l){let s=n;if(typeof s!="string"||!Ib.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let r=s,o=!1;if(i_)try{let f=new URL(window.location.href),m=s.startsWith("//")?new URL(f.protocol+s):new URL(s),_=ha(m.pathname,l);m.origin===f.origin&&_!=null?s=_+m.search+m.hash:o=!0}catch{_n(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var r_=["POST","PUT","PATCH","DELETE"];new Set(r_);var l0=["GET",...r_];new Set(l0);var Ti=x.createContext(null);Ti.displayName="DataRouter";var Qc=x.createContext(null);Qc.displayName="DataRouterState";var c_=x.createContext(!1);function i0(){return x.useContext(c_)}var u_=x.createContext({isTransitioning:!1});u_.displayName="ViewTransition";var s0=x.createContext(new Map);s0.displayName="Fetchers";var r0=x.createContext(null);r0.displayName="Await";var sn=x.createContext(null);sn.displayName="Navigation";var Ws=x.createContext(null);Ws.displayName="Location";var Qn=x.createContext({outlet:null,matches:[],isDataRoute:!1});Qn.displayName="Route";var Id=x.createContext(null);Id.displayName="RouteError";var o_="REACT_ROUTER_ERROR",c0="REDIRECT",u0="ROUTE_ERROR_RESPONSE";function o0(n){if(n.startsWith(`${o_}:${c0}:{`))try{let l=JSON.parse(n.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function d0(n){if(n.startsWith(`${o_}:${u0}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new t0(l.status,l.statusText,l.data)}catch{}}function f0(n,{relative:l}={}){nt(Di(),"useHref() may be used only in the context of a component.");let{basename:s,navigator:r}=x.useContext(sn),{hash:o,pathname:f,search:m}=Ps(n,{relative:l}),_=f;return s!=="/"&&(_=f==="/"?s:Cn([s,f])),r.createHref({pathname:_,search:m,hash:o})}function Di(){return x.useContext(Ws)!=null}function Tn(){return nt(Di(),"useLocation() may be used only in the context of a component."),x.useContext(Ws).location}var d_="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function f_(n){x.useContext(sn).static||x.useLayoutEffect(n)}function Jd(){let{isDataRoute:n}=x.useContext(Qn);return n?w0():m0()}function m0(){nt(Di(),"useNavigate() may be used only in the context of a component.");let n=x.useContext(Ti),{basename:l,navigator:s}=x.useContext(sn),{matches:r}=x.useContext(Qn),{pathname:o}=Tn(),f=JSON.stringify(Zd(r)),m=x.useRef(!1);return f_(()=>{m.current=!0}),x.useCallback((p,g={})=>{if(_n(m.current,d_),!m.current)return;if(typeof p=="number"){s.go(p);return}let S=Yc(p,JSON.parse(f),o,g.relative==="path");n==null&&l!=="/"&&(S.pathname=S.pathname==="/"?l:Cn([l,S.pathname])),(g.replace?s.replace:s.push)(S,g.state,g)},[l,s,f,o,n])}x.createContext(null);function Ps(n,{relative:l}={}){let{matches:s}=x.useContext(Qn),{pathname:r}=Tn(),o=JSON.stringify(Zd(s));return x.useMemo(()=>Yc(n,JSON.parse(o),r,l==="path"),[n,o,r,l])}function h0(n,l){return m_(n,l)}function m_(n,l,s){var R;nt(Di(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=x.useContext(sn),{matches:o}=x.useContext(Qn),f=o[o.length-1],m=f?f.params:{},_=f?f.pathname:"/",p=f?f.pathnameBase:"/",g=f&&f.route;{let U=g&&g.path||"";p_(_,!g||U.endsWith("*")||U.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${_}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let S=Tn(),j;if(l){let U=typeof l=="string"?zl(l):l;nt(p==="/"||((R=U.pathname)==null?void 0:R.startsWith(p)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${U.pathname}" was given in the \`location\` prop.`),j=U}else j=S;let k=j.pathname||"/",D=k;if(p!=="/"){let U=p.replace(/^\//,"").split("/");D="/"+k.replace(/^\//,"").split("/").slice(U.length).join("/")}let E=s&&s.state.matches.length?s.state.matches.map(U=>Object.assign(U,{route:s.manifest[U.route.id]||U.route})):t_(n,{pathname:D});_n(g||E!=null,`No routes matched location "${j.pathname}${j.search}${j.hash}" `),_n(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${j.pathname}${j.search}${j.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 T=v0(E&&E.map(U=>Object.assign({},U,{params:Object.assign({},m,U.params),pathname:Cn([p,r.encodeLocation?r.encodeLocation(U.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:U.pathname]),pathnameBase:U.pathnameBase==="/"?p:Cn([p,r.encodeLocation?r.encodeLocation(U.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:U.pathnameBase])})),o,s);return l&&T?x.createElement(Ws.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...j},navigationType:"POP"}},T):T}function p0(){let n=k0(),l=n0(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},m=null;return console.error("Error handled by React Router default ErrorBoundary:",n),m=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:f},"ErrorBoundary")," or"," ",x.createElement("code",{style:f},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},l),s?x.createElement("pre",{style:o},s):null,m)}var g0=x.createElement(p0,null),h_=class extends x.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(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const s=d0(n.digest);s&&(n=s)}let l=n!==void 0?x.createElement(Qn.Provider,{value:this.props.routeContext},x.createElement(Id.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?x.createElement(_0,{error:n},l):l}};h_.contextType=c_;var pd=new WeakMap;function _0({children:n,error:l}){let{basename:s}=x.useContext(sn);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let r=o0(l.digest);if(r){let o=pd.get(l);if(o)throw o;let f=s_(r.location,s);if(i_&&!pd.get(l))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw pd.set(l,m),m}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function y0({routeContext:n,match:l,children:s}){let r=x.useContext(Ti);return r&&r.static&&r.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=l.route.id),x.createElement(Qn.Provider,{value:n},s)}function v0(n,l=[],s){let r=s==null?void 0:s.state;if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(l.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let o=n,f=r==null?void 0:r.errors;if(f!=null){let S=o.findIndex(j=>j.route.id&&(f==null?void 0:f[j.route.id])!==void 0);nt(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,S+1))}let m=!1,_=-1;if(s&&r){m=r.renderFallback;for(let S=0;S=0?o=o.slice(0,_+1):o=[o[0]];break}}}}let p=s==null?void 0:s.onError,g=r&&p?(S,j)=>{var k,D;p(S,{location:r.location,params:((D=(k=r.matches)==null?void 0:k[0])==null?void 0:D.params)??{},pattern:a0(r.matches),errorInfo:j})}:void 0;return o.reduceRight((S,j,k)=>{let D,E=!1,T=null,R=null;r&&(D=f&&j.route.id?f[j.route.id]:void 0,T=j.route.errorElement||g0,m&&(_<0&&k===0?(p_("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,R=null):_===k&&(E=!0,R=j.route.hydrateFallbackElement||null)));let U=l.concat(o.slice(0,k+1)),I=()=>{let $;return D?$=T:E?$=R:j.route.Component?$=x.createElement(j.route.Component,null):j.route.element?$=j.route.element:$=S,x.createElement(y0,{match:j,routeContext:{outlet:S,matches:U,isDataRoute:r!=null},children:$})};return r&&(j.route.ErrorBoundary||j.route.errorElement||k===0)?x.createElement(h_,{location:r.location,revalidation:r.revalidation,component:T,error:D,children:I(),routeContext:{outlet:null,matches:U,isDataRoute:!0},onError:g}):I()},null)}function Fd(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function b0(n){let l=x.useContext(Ti);return nt(l,Fd(n)),l}function S0(n){let l=x.useContext(Qc);return nt(l,Fd(n)),l}function x0(n){let l=x.useContext(Qn);return nt(l,Fd(n)),l}function Wd(n){let l=x0(n),s=l.matches[l.matches.length-1];return nt(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function j0(){return Wd("useRouteId")}function k0(){var r;let n=x.useContext(Id),l=S0("useRouteError"),s=Wd("useRouteError");return n!==void 0?n:(r=l.errors)==null?void 0:r[s]}function w0(){let{router:n}=b0("useNavigate"),l=Wd("useNavigate"),s=x.useRef(!1);return f_(()=>{s.current=!0}),x.useCallback(async(o,f={})=>{_n(s.current,d_),s.current&&(typeof o=="number"?await n.navigate(o):await n.navigate(o,{fromRouteId:l,...f}))},[n,l])}var dg={};function p_(n,l,s){!l&&!dg[n]&&(dg[n]=!0,_n(!1,s))}x.memo(E0);function E0({routes:n,manifest:l,future:s,state:r,isStatic:o,onError:f}){return m_(n,void 0,{manifest:l,state:r,isStatic:o,onError:f})}function A0({to:n,replace:l,state:s,relative:r}){nt(Di()," may be used only in the context of a component.");let{static:o}=x.useContext(sn);_n(!o," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:f}=x.useContext(Qn),{pathname:m}=Tn(),_=Jd(),p=Yc(n,Zd(f),m,r==="path"),g=JSON.stringify(p);return x.useEffect(()=>{_(JSON.parse(g),{replace:l,state:s,relative:r})},[_,g,r,l,s]),null}function Td(n){nt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function C0({basename:n="/",children:l=null,location:s,navigationType:r="POP",navigator:o,static:f=!1,useTransitions:m}){nt(!Di(),"You cannot render a inside another . You should never have more than one in your app.");let _=n.replace(/^\/*/,"/"),p=x.useMemo(()=>({basename:_,navigator:o,static:f,useTransitions:m,future:{}}),[_,o,f,m]);typeof s=="string"&&(s=zl(s));let{pathname:g="/",search:S="",hash:j="",state:k=null,key:D="default",mask:E}=s,T=x.useMemo(()=>{let R=ha(g,_);return R==null?null:{location:{pathname:R,search:S,hash:j,state:k,key:D,mask:E},navigationType:r}},[_,g,S,j,k,D,r,E]);return _n(T!=null,` is not able to match the URL "${g}${S}${j}" because it does not start with the basename, so the won't render anything.`),T==null?null:x.createElement(sn.Provider,{value:p},x.createElement(Ws.Provider,{children:l,value:T}))}function N0({children:n,location:l}){return h0(Dd(n),l)}function Dd(n,l=[]){let s=[];return x.Children.forEach(n,(r,o)=>{if(!x.isValidElement(r))return;let f=[...l,o];if(r.type===x.Fragment){s.push.apply(s,Dd(r.props.children,f));return}nt(r.type===Td,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),nt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let m={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(m.children=Dd(r.props.children,f)),s.push(m)}),s}var wc="get",Ec="application/x-www-form-urlencoded";function Kc(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function T0(n){return Kc(n)&&n.tagName.toLowerCase()==="button"}function D0(n){return Kc(n)&&n.tagName.toLowerCase()==="form"}function R0(n){return Kc(n)&&n.tagName.toLowerCase()==="input"}function M0(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function z0(n,l){return n.button===0&&(!l||l==="_self")&&!M0(n)}var vc=null;function $0(){if(vc===null)try{new FormData(document.createElement("form"),0),vc=!1}catch{vc=!0}return vc}var O0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gd(n){return n!=null&&!O0.has(n)?(_n(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Ec}"`),null):n}function q0(n,l){let s,r,o,f,m;if(D0(n)){let _=n.getAttribute("action");r=_?ha(_,l):null,s=n.getAttribute("method")||wc,o=gd(n.getAttribute("enctype"))||Ec,f=new FormData(n)}else if(T0(n)||R0(n)&&(n.type==="submit"||n.type==="image")){let _=n.form;if(_==null)throw new Error('Cannot submit a