(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 h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).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 rb(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var nd={exports:{}},Ms={};/** * @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 Hp;function cb(){if(Hp)return Ms;Hp=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function s(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+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:h,ref:o!==void 0?o:null,props:f}}return Ms.Fragment=l,Ms.jsx=s,Ms.jsxs=s,Ms}var Gp;function ub(){return Gp||(Gp=1,nd.exports=cb()),nd.exports}var u=ub(),ad={exports:{}},ge={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Yp;function ob(){if(Yp)return ge;Yp=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"),h=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),k=Symbol.iterator;function q(E){return E===null||typeof E!="object"?null:(E=k&&E[k]||E["@@iterator"],typeof E=="function"?E:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,M={};function U(E,G,I){this.props=E,this.context=G,this.refs=M,this.updater=I||C}U.prototype.isReactComponent={},U.prototype.setState=function(E,G){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,G,"setState")},U.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Z(){}Z.prototype=U.prototype;function T(E,G,I){this.props=E,this.context=G,this.refs=M,this.updater=I||C}var F=T.prototype=new Z;F.constructor=T,O(F,U.prototype),F.isPureReactComponent=!0;var ee=Array.isArray;function he(){}var P={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function le(E,G,I){var te=I.ref;return{$$typeof:n,type:E,key:G,ref:te!==void 0?te:null,props:I}}function be(E,G){return le(E.type,G,E.props)}function He(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function Me(E){var G={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(I){return G[I]})}var X=/\/+/g;function re(E,G){return typeof E=="object"&&E!==null&&E.key!=null?Me(""+E.key):G.toString(36)}function B(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(he,he):(E.status="pending",E.then(function(G){E.status==="pending"&&(E.status="fulfilled",E.value=G)},function(G){E.status==="pending"&&(E.status="rejected",E.reason=G)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function D(E,G,I,te,de){var ye=typeof E;(ye==="undefined"||ye==="boolean")&&(E=null);var V=!1;if(E===null)V=!0;else switch(ye){case"bigint":case"string":case"number":V=!0;break;case"object":switch(E.$$typeof){case n:case l:V=!0;break;case b:return V=E._init,D(V(E._payload),G,I,te,de)}}if(V)return de=de(E),V=te===""?"."+re(E,0):te,ee(de)?(I="",V!=null&&(I=V.replace(X,"$&/")+"/"),D(de,G,I,"",function(Oe){return Oe})):de!=null&&(He(de)&&(de=be(de,I+(de.key==null||E&&E.key===de.key?"":(""+de.key).replace(X,"$&/")+"/")+V)),G.push(de)),1;V=0;var ne=te===""?".":te+":";if(ee(E))for(var $e=0;$e>>1,Se=D[me];if(0>>1;meo(I,ie))teo(de,I)?(D[me]=de,D[te]=ie,me=te):(D[me]=I,D[G]=ie,me=G);else if(teo(de,ie))D[me]=de,D[te]=ie,me=te;else break e}}return K}function o(D,K){var ie=D.sortIndex-K.sortIndex;return ie!==0?ie:D.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,_=h.now();n.unstable_now=function(){return h.now()-_}}var p=[],g=[],b=1,x=null,k=3,q=!1,C=!1,O=!1,M=!1,U=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function F(D){for(var K=s(g);K!==null;){if(K.callback===null)r(g);else if(K.startTime<=D)r(g),K.sortIndex=K.expirationTime,l(p,K);else break;K=s(g)}}function ee(D){if(O=!1,F(D),!C)if(s(p)!==null)C=!0,he||(he=!0,Me());else{var K=s(g);K!==null&&B(ee,K.startTime-D)}}var he=!1,P=-1,W=5,le=-1;function be(){return M?!0:!(n.unstable_now()-leD&&be());){var me=x.callback;if(typeof me=="function"){x.callback=null,k=x.priorityLevel;var Se=me(x.expirationTime<=D);if(D=n.unstable_now(),typeof Se=="function"){x.callback=Se,F(D),K=!0;break t}x===s(p)&&r(p),F(D)}else r(p);x=s(p)}if(x!==null)K=!0;else{var E=s(g);E!==null&&B(ee,E.startTime-D),K=!1}}break e}finally{x=null,k=ie,q=!1}K=void 0}}finally{K?Me():he=!1}}}var Me;if(typeof T=="function")Me=function(){T(He)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,re=X.port2;X.port1.onmessage=He,Me=function(){re.postMessage(null)}}else Me=function(){U(He,0)};function B(D,K){P=U(function(){D(n.unstable_now())},K)}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(D){D.callback=null},n.unstable_forceFrameRate=function(D){0>D||125me?(D.sortIndex=ie,l(g,D),s(p)===null&&D===s(g)&&(O?(Z(P),P=-1):O=!0,B(ee,ie-me))):(D.sortIndex=Se,l(p,D),C||q||(C=!0,he||(he=!0,Me()))),D},n.unstable_shouldYield=be,n.unstable_wrapCallback=function(D){var K=k;return function(){var ie=k;k=K;try{return D.apply(this,arguments)}finally{k=ie}}}})(sd)),sd}var Xp;function mb(){return Xp||(Xp=1,id.exports=fb()),id.exports}var rd={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 Vp;function hb(){if(Vp)return Tt;Vp=1;var n=Ud();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(),rd.exports=hb(),rd.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 Ip;function gb(){if(Ip)return $s;Ip=1;var n=mb(),l=Ud(),s=pb();function r(e){var t="https://react.dev/errors/"+e;if(1Se||(e.current=me[Se],me[Se]=null,Se--)}function I(e,t){Se++,me[Se]=e.current,e.current=t}var te=E(null),de=E(null),ye=E(null),V=E(null);function ne(e,t){switch(I(ye,t),I(de,e),I(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?op(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=op(t),e=dp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(te),I(te,e)}function $e(){G(te),G(de),G(ye)}function Oe(e){e.memoizedState!==null&&I(V,e);var t=te.current,a=dp(t,e.type);t!==a&&(I(de,e),I(te,a))}function xe(e){de.current===e&&(G(te),G(de)),V.current===e&&(G(V),Ns._currentValue=ie)}var Dt,vt;function Ce(e){if(Dt===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Dt=t&&t[1]||"",vt=-1)":-1c||w[i]!==z[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:"")?Ce(a):""}function Di(e,t){switch(e.tag){case 26:case 27:case 5:return Ce(e.type);case 16:return Ce("Lazy");case 13:return e.child!==t&&t!==null?Ce("Suspense Fallback"):Ce("Suspense");case 19:return Ce("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 Ce("Activity");default:return""}}function Rl(e){try{var t="",a=null;do t+=Di(e,a),a=e,e=e.return;while(e);return t}catch(i){return` Error generating stack: `+i.message+` `+i.stack}}var Ri=Object.prototype.hasOwnProperty,zi=n.unstable_scheduleCallback,St=n.unstable_cancelCallback,Ps=n.unstable_shouldYield,ke=n.unstable_requestPaint,gt=n.unstable_now,sn=n.unstable_getCurrentPriorityLevel,rn=n.unstable_ImmediatePriority,al=n.unstable_UserBlockingPriority,$t=n.unstable_NormalPriority,Rt=n.unstable_LowPriority,ll=n.unstable_IdlePriority,Xn=n.log,il=n.unstable_setDisableYieldValue,Vn=null,Ze=null;function Dn(e){if(typeof Xn=="function"&&il(e),Ze&&typeof Ze.setStrictMode=="function")try{Ze.setStrictMode(Vn,e)}catch{}}var Ct=Math.clz32?Math.clz32:Mi,_a=Math.log,Pc=Math.LN2;function Mi(e){return e>>>=0,e===0?32:31-(_a(e)/Pc|0)|0}var zl=256,Ml=262144,$l=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 Ot(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var c=0,d=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var y=i&134217727;return y!==0?(i=y&~d,i!==0?c=Zn(i):(m&=y,m!==0?c=Zn(m):a||(a=y&~e,a!==0&&(c=Zn(a))))):(y=i&~d,y!==0?c=Zn(y):m!==0?c=Zn(m):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 Ue(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Te(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 Ol(){var e=$l;return $l<<=1,($l&62914560)===0&&($l=4194304),e}function er(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function cn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function df(e,t,a,i,c,d){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,w=e.expirationTimes,z=e.hiddenUpdates;for(a=m&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ir=/[\n"\\]/g;function Lt(e){return e.replace(ir,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Gi(e,t,a,i,c,d,m,y){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Yi(e,m,qt(t)):a!=null?Yi(e,m,qt(a)):i!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+qt(y):e.removeAttribute("name")}function sr(e,t,a,i,c,d,m,y){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)){Bi(e);return}a=a!=null?""+qt(a):"",t=t!=null?""+qt(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=y?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Bi(e)}function Yi(e,t,a){t==="number"&&sl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ja(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"),Yl=!1;if(un)try{var Ca={};Object.defineProperty(Ca,"passive",{get:function(){Yl=!0}}),window.addEventListener("test",Ca,Ca),window.removeEventListener("test",Ca,Ca)}catch{Yl=!1}var v=null,J=null,ue=null;function ze(){if(ue)return ue;var e,t=J,a=t.length,i,c="value"in v?v.value:v.textContent,d=c.length;for(e=0;e=Fi),_f=" ",yf=!1;function vf(e,t){switch(e){case"keyup":return Ty.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ql=!1;function Dy(e,t){switch(e){case"compositionend":return bf(t);case"keypress":return t.which!==32?null:(yf=!0,_f);case"textInput":return e=t.data,e===_f&&yf?null:e;default:return null}}function Ry(e,t){if(Ql)return e==="compositionend"||!ru&&vf(e,t)?(e=ze(),ue=J=v=null,Ql=!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=Cf(a)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Df(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=sl(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=sl(e.document)}return t}function ou(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 By=un&&"documentMode"in document&&11>=document.documentMode,Kl=null,du=null,ts=null,fu=!1;function Rf(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;fu||Kl==null||Kl!==sl(i)||(i=Kl,"selectionStart"in i&&ou(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}),ts&&es(ts,i)||(ts=i,i=ec(du,"onSelect"),0>=m,c-=m,Un=1<<32-Ct(t)+c|a<ve?(Ae=se,se=null):Ae=se.sibling;var Le=$(N,se,R[ve],Y);if(Le===null){se===null&&(se=Ae);break}e&&se&&Le.alternate===null&&t(N,se),A=d(Le,A,ve),qe===null?ce=Le:qe.sibling=Le,qe=Le,se=Ae}if(ve===R.length)return a(N,se),Ne&&Fn(N,ve),ce;if(se===null){for(;veve?(Ae=se,se=null):Ae=se.sibling;var Ja=$(N,se,Le.value,Y);if(Ja===null){se===null&&(se=Ae);break}e&&se&&Ja.alternate===null&&t(N,se),A=d(Ja,A,ve),qe===null?ce=Ja:qe.sibling=Ja,qe=Ja,se=Ae}if(Le.done)return a(N,se),Ne&&Fn(N,ve),ce;if(se===null){for(;!Le.done;ve++,Le=R.next())Le=Q(N,Le.value,Y),Le!==null&&(A=d(Le,A,ve),qe===null?ce=Le:qe.sibling=Le,qe=Le);return Ne&&Fn(N,ve),ce}for(se=i(se);!Le.done;ve++,Le=R.next())Le=L(se,N,ve,Le.value,Y),Le!==null&&(e&&Le.alternate!==null&&se.delete(Le.key===null?ve:Le.key),A=d(Le,A,ve),qe===null?ce=Le:qe.sibling=Le,qe=Le);return e&&se.forEach(function(sb){return t(N,sb)}),Ne&&Fn(N,ve),ce}function Ve(N,A,R,Y){if(typeof R=="object"&&R!==null&&R.type===O&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case q:e:{for(var ce=R.key;A!==null;){if(A.key===ce){if(ce=R.type,ce===O){if(A.tag===7){a(N,A.sibling),Y=c(A,R.props.children),Y.return=N,N=Y;break e}}else if(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===W&&gl(ce)===A.type){a(N,A.sibling),Y=c(A,R.props),rs(Y,R),Y.return=N,N=Y;break e}a(N,A);break}else t(N,A);A=A.sibling}R.type===O?(Y=dl(R.props.children,N.mode,Y,R.key),Y.return=N,N=Y):(Y=_r(R.type,R.key,R.props,null,N.mode,Y),rs(Y,R),Y.return=N,N=Y)}return m(N);case C:e:{for(ce=R.key;A!==null;){if(A.key===ce)if(A.tag===4&&A.stateNode.containerInfo===R.containerInfo&&A.stateNode.implementation===R.implementation){a(N,A.sibling),Y=c(A,R.children||[]),Y.return=N,N=Y;break e}else{a(N,A);break}else t(N,A);A=A.sibling}Y=vu(R,N.mode,Y),Y.return=N,N=Y}return m(N);case W:return R=gl(R),Ve(N,A,R,Y)}if(B(R))return ae(N,A,R,Y);if(Me(R)){if(ce=Me(R),typeof ce!="function")throw Error(r(150));return R=ce.call(R),fe(N,A,R,Y)}if(typeof R.then=="function")return Ve(N,A,wr(R),Y);if(R.$$typeof===T)return Ve(N,A,br(N,R),Y);kr(N,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,A!==null&&A.tag===6?(a(N,A.sibling),Y=c(A,R),Y.return=N,N=Y):(a(N,A),Y=yu(R,N.mode,Y),Y.return=N,N=Y),m(N)):a(N,A)}return function(N,A,R,Y){try{ss=0;var ce=Ve(N,A,R,Y);return ni=null,ce}catch(se){if(se===ti||se===xr)throw se;var qe=It(29,se,null,N.mode);return qe.lanes=Y,qe.return=N,qe}finally{}}}var yl=tm(!0),nm=tm(!1),za=!1;function Du(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ru(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 Ma(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,(Be&2)!==0){var c=i.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),i.pending=t,t=gr(e),Uf(e,null,a),t}return pr(e,i,t,a),gr(e)}function cs(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,pe(e,a)}}function zu(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 m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?c=d=m:d=d.next=m,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 Mu=!1;function us(){if(Mu){var e=ei;if(e!==null)throw e}}function os(e,t,a,i){Mu=!1;var c=e.updateQueue;za=!1;var d=c.firstBaseUpdate,m=c.lastBaseUpdate,y=c.shared.pending;if(y!==null){c.shared.pending=null;var w=y,z=w.next;w.next=null,m===null?d=z:m.next=z,m=w;var H=e.alternate;H!==null&&(H=H.updateQueue,y=H.lastBaseUpdate,y!==m&&(y===null?H.firstBaseUpdate=z:y.next=z,H.lastBaseUpdate=w))}if(d!==null){var Q=c.baseState;m=0,H=z=w=null,y=d;do{var $=y.lane&-536870913,L=$!==y.lane;if(L?(Ee&$)===$:(i&$)===$){$!==0&&$===Pl&&(Mu=!0),H!==null&&(H=H.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ae=e,fe=y;$=t;var Ve=a;switch(fe.tag){case 1:if(ae=fe.payload,typeof ae=="function"){Q=ae.call(Ve,Q,$);break e}Q=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=fe.payload,$=typeof ae=="function"?ae.call(Ve,Q,$):ae,$==null)break e;Q=x({},Q,$);break e;case 2:za=!0}}$=y.callback,$!==null&&(e.flags|=64,L&&(e.flags|=8192),L=c.callbacks,L===null?c.callbacks=[$]:L.push($))}else L={lane:$,tag:y.tag,payload:y.payload,callback:y.callback,next:null},H===null?(z=H=L,w=Q):H=H.next=L,m|=$;if(y=y.next,y===null){if(y=c.shared.pending,y===null)break;L=y,y=L.next,L.next=null,c.lastBaseUpdate=L,c.shared.pending=null}}while(!0);H===null&&(w=Q),c.baseState=w,c.firstBaseUpdate=z,c.lastBaseUpdate=H,d===null&&(c.shared.lanes=0),Ba|=m,e.lanes=m,e.memoizedState=Q}}function am(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function lm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;ed?d:8;var m=D.T,y={};D.T=y,Pu(e,!1,t,a);try{var w=c(),z=D.S;if(z!==null&&z(y,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var H=Iy(w,i);ms(e,t,H,en(e))}else ms(e,t,i,en(e))}catch(Q){ms(e,t,{then:function(){},status:"rejected",reason:Q},en())}finally{K.p=d,m!==null&&y.types!==null&&(m.types=y.types),D.T=m}}function tv(){}function Fu(e,t,a,i){if(e.tag!==5)throw Error(r(476));var c=Om(e).queue;$m(e,c,t,ie,a===null?tv:function(){return qm(e),a(i)})}function Om(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:ta,lastRenderedState:ie},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function qm(e){var t=Om(e);t.next===null&&(t=e.alternate.memoizedState),ms(e,t.next.queue,{},en())}function Wu(){return jt(Ns)}function Lm(){return ut().memoizedState}function Um(){return ut().memoizedState}function nv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=en();e=Ma(a);var i=$a(t,e,a);i!==null&&(Yt(i,t,a),cs(i,t,a)),t={cache:Au()},e.payload=t;return}t=t.return}}function av(e,t,a){var i=en();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},$r(e)?Hm(t,a):(a=gu(e,t,a,i),a!==null&&(Yt(a,e,i),Gm(a,t,i)))}function Bm(e,t,a){var i=en();ms(e,t,a,i)}function ms(e,t,a,i){var c={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if($r(e))Hm(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var m=t.lastRenderedState,y=d(m,a);if(c.hasEagerState=!0,c.eagerState=y,Zt(y,m))return pr(e,t,c,0),Je===null&&hr(),!1}catch{}finally{}if(a=gu(e,t,c,i),a!==null)return Yt(a,e,i),Gm(a,t,i),!0}return!1}function Pu(e,t,a,i){if(i={lane:2,revertLane:Ro(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},$r(e)){if(t)throw Error(r(479))}else t=gu(e,a,i,2),t!==null&&Yt(t,e,2)}function $r(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Hm(e,t){li=Cr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Gm(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,pe(e,a)}}var hs={readContext:jt,use:Dr,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};hs.useEffectEvent=lt;var Ym={readContext:jt,use:Dr,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:jt,useEffect:Em,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,zr(4194308,4,Nm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return zr(4194308,4,e,t)},useInsertionEffect:function(e,t){zr(4,2,e,t)},useMemo:function(e,t){var a=zt();t=t===void 0?null:t;var i=e();if(vl){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(vl){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=av.bind(null,_e,e),[i.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:function(e){e=Xu(e);var t=e.queue,a=Bm.bind(null,_e,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Iu,useDeferredValue:function(e,t){var a=zt();return Ju(a,e,t)},useTransition:function(){var e=Xu(!1);return e=$m.bind(null,_e,e.queue,!0,!1),zt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=_e,c=zt();if(Ne){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Je===null)throw Error(r(349));(Ee&127)!==0||om(i,t,a)}c.memoizedState=a;var d={value:a,getSnapshot:t};return c.queue=d,Em(fm.bind(null,i,d,e),[e]),i.flags|=2048,si(9,{destroy:void 0},dm.bind(null,i,d,a,t),null),a},useId:function(){var e=zt(),t=Je.identifierPrefix;if(Ne){var a=Bn,i=Un;a=(i&~(1<<32-Ct(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Tr++,0<\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is=="string"?m.createElement("select",{is:i.is}):m.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is=="string"?m.createElement(c,{is:i.is}):m.createElement(c)}}d[_t]=t,d[Ie]=i;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)d.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=d;e:switch(kt(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&&aa(t)}}return Pe(t),ho(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&aa(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=ye.current,Fl(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,c=xt,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps}e[_t]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||cp(e.nodeValue,a)),e||Da(t,!0)}else e=tc(e).createTextNode(i),e[_t]=t,t.stateNode=e}return Pe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=Fl(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 fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else a=ju(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ft(t),t):(Ft(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Pe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Fl(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 fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),c=!1}else c=ju(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Ft(t),t):(Ft(t),null)}return Ft(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),Br(t,t.updateQueue),Pe(t),null);case 4:return $e(),e===null&&Oo(t.stateNode.containerInfo),Pe(t),null;case 10:return Pn(t.type),Pe(t),null;case 19:if(G(ct),i=t.memoizedState,i===null)return Pe(t),null;if(c=(t.flags&128)!==0,d=i.rendering,d===null)if(c)gs(i,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Ar(e),d!==null){for(t.flags|=128,gs(i,!1),e=d.updateQueue,t.updateQueue=e,Br(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Bf(a,e),a=a.sibling;return I(ct,ct.current&1|2),Ne&&Fn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&>()>Kr&&(t.flags|=128,c=!0,gs(i,!1),t.lanes=4194304)}else{if(!c)if(e=Ar(d),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Br(t,e),gs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Ne)return Pe(t),null}else 2*gt()-i.renderingStartTime>Kr&&a!==536870912&&(t.flags|=128,c=!0,gs(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,I(ct,c?a&1|2:a&1),Ne&&Fn(t,i.treeForkCount),e):(Pe(t),null);case 22:case 23:return Ft(t),Ou(),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&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),a=t.updateQueue,a!==null&&Br(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&&G(pl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pn(ft),Pe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function cv(e,t){switch(Su(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pn(ft),$e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(Ft(t),t.alternate===null)throw Error(r(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ft(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(ct),null;case 4:return $e(),null;case 10:return Pn(t.type),null;case 22:case 23:return Ft(t),Ou(),e!==null&&G(pl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pn(ft),null;case 25:return null;default:return null}}function mh(e,t){switch(Su(t),t.tag){case 3:Pn(ft),$e();break;case 26:case 27:case 5:xe(t);break;case 4:$e();break;case 31:t.memoizedState!==null&&Ft(t);break;case 13:Ft(t);break;case 19:G(ct);break;case 10:Pn(t.type);break;case 22:case 23:Ft(t),Ou(),e!==null&&G(pl);break;case 24:Pn(ft)}}function _s(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,m=a.inst;i=d(),m.destroy=i}a=a.next}while(a!==c)}}catch(y){Ye(t,t.return,y)}}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 m=i.inst,y=m.destroy;if(y!==void 0){m.destroy=void 0,c=t;var w=a,z=y;try{z()}catch(H){Ye(c,w,H)}}}i=i.next}while(i!==d)}}catch(H){Ye(t,t.return,H)}}function hh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{lm(t,a)}catch(i){Ye(e,e.return,i)}}}function ph(e,t,a){a.props=bl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Ye(e,t,i)}}function ys(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){Ye(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){Ye(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){Ye(e,t,c)}else a.current=null}function gh(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){Ye(e,e.return,c)}}function po(e,t,a){try{var i=e.stateNode;Nv(i,e.type,a,t),i[Ie]=t}catch(c){Ye(e,e.return,c)}}function _h(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ka(e.type)||e.tag===4}function go(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_h(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 _o(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=Kt));else if(i!==4&&(i===27&&Ka(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(_o(e,t,a),e=e.sibling;e!==null;)_o(e,t,a),e=e.sibling}function Hr(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(Hr(e,t,a),e=e.sibling;e!==null;)Hr(e,t,a),e=e.sibling}function yh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);kt(t,i,a),t[_t]=e,t[Ie]=a}catch(d){Ye(e,e.return,d)}}var la=!1,pt=!1,yo=!1,vh=typeof WeakSet=="function"?WeakSet:Set,bt=null;function uv(e,t){if(e=e.containerInfo,Uo=cc,e=Df(e),ou(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 m=0,y=-1,w=-1,z=0,H=0,Q=e,$=null;t:for(;;){for(var L;Q!==a||c!==0&&Q.nodeType!==3||(y=m+c),Q!==d||i!==0&&Q.nodeType!==3||(w=m+i),Q.nodeType===3&&(m+=Q.nodeValue.length),(L=Q.firstChild)!==null;)$=Q,Q=L;for(;;){if(Q===e)break t;if($===a&&++z===c&&(y=m),$===d&&++H===i&&(w=m),(L=Q.nextSibling)!==null)break;Q=$,$=Q.parentNode}Q=L}a=y===-1||w===-1?null:{start:y,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(Bo={focusedElem:e,selectionRange:a},cc=!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"))),kt(d,i,a),d[_t]=e,st(d),i=d;break e;case"link":var m=kp("link","href",c).get(i+(a.href||""));if(m){for(var y=0;yVe&&(m=Ve,Ve=fe,fe=m);var N=Tf(y,fe),A=Tf(y,Ve);if(N&&A&&(L.rangeCount!==1||L.anchorNode!==N.node||L.anchorOffset!==N.offset||L.focusNode!==A.node||L.focusOffset!==A.offset)){var R=Q.createRange();R.setStart(N.node,N.offset),L.removeAllRanges(),fe>Ve?(L.addRange(R),L.extend(A.node,A.offset)):(R.setEnd(A.node,A.offset),L.addRange(R))}}}}for(Q=[],L=y;L=L.parentNode;)L.nodeType===1&&Q.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;ya?32:a,D.T=null,a=ko,ko=null;var d=Ga,m=ua;if(yt=0,di=Ga=null,ua=0,(Be&6)!==0)throw Error(r(331));var y=Be;if(Be|=4,Nh(d.current),Ah(d,d.current,m,a),Be=y,ws(0,!1),Ze&&typeof Ze.onPostCommitFiberRoot=="function")try{Ze.onPostCommitFiberRoot(Vn,d)}catch{}return!0}finally{K.p=c,D.T=i,Zh(e,t)}}function Jh(e,t,a){t=dn(a,t),t=ao(e.stateNode,t,2),e=$a(e,t,2),e!==null&&(cn(e,2),Gn(e))}function Ye(e,t,a){if(e.tag===3)Jh(e,e,a);else for(;t!==null;){if(t.tag===3){Jh(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=dn(a,e),a=Fm(2),i=$a(t,a,2),i!==null&&(Wm(a,i,t,e),cn(i,2),Gn(i));break}}t=t.return}}function To(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new fv;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)||(So=!0,c.add(a),e=_v.bind(null,e,t,a),t.then(e,e))}function _v(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Je===e&&(Ee&a)===a&&(it===4||it===3&&(Ee&62914560)===Ee&&300>gt()-Qr?(Be&2)===0&&fi(e,0):xo|=a,oi===Ee&&(oi=0)),Gn(e)}function Fh(e,t){t===0&&(t=Ol()),e=ol(e,t),e!==null&&(cn(e,t),Gn(e))}function yv(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Fh(e,a)}function vv(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),Fh(e,a)}function bv(e,t){return zi(e,t)}var Fr=null,hi=null,No=!1,Wr=!1,Do=!1,Qa=0;function Gn(e){e!==hi&&e.next===null&&(hi===null?Fr=hi=e:hi=hi.next=e),Wr=!0,No||(No=!0,xv())}function ws(e,t){if(!Do&&Wr){Do=!0;do for(var a=!1,i=Fr;i!==null;){if(e!==0){var c=i.pendingLanes;if(c===0)var d=0;else{var m=i.suspendedLanes,y=i.pingedLanes;d=(1<<31-Ct(42|e)+1)-1,d&=c&~(m&~y),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,tp(i,d))}else d=Ee,d=Ot(i,i===Je?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||Ue(i,d)||(a=!0,tp(i,d));i=i.next}while(a);Do=!1}}function Sv(){Wh()}function Wh(){Wr=No=!1;var e=0;Qa!==0&&Rv()&&(e=Qa);for(var t=gt(),a=null,i=Fr;i!==null;){var c=i.next,d=Ph(i,t);d===0?(i.next=null,a===null?Fr=c:a.next=c,c===null&&(hi=a)):(a=i,(e!==0||(d&3)!==0)&&(Wr=!0)),i=c}yt!==0&&yt!==5||ws(e),Qa!==0&&(Qa=0)}function Ph(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0y)break;var H=w.transferSize,Q=w.initiatorType;H&&up(Q)&&(w=w.responseEnd,m+=H*(w"u"?null:document;function Sp(e,t,a){var i=pi;if(i&&typeof t=="string"&&t){var c=Lt(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},i.querySelector(c)===null&&(t=i.createElement("link"),kt(t,"link",e),st(t),i.head.appendChild(t)))}}function Hv(e){oa.D(e),Sp("dns-prefetch",e,null)}function Gv(e,t){oa.C(e,t),Sp("preconnect",e,t)}function Yv(e,t,a){oa.L(e,t,a);var i=pi;if(i&&e&&t){var c='link[rel="preload"][as="'+Lt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+Lt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+Lt(a.imageSizes)+'"]')):c+='[href="'+Lt(e)+'"]';var d=c;switch(t){case"style":d=gi(e);break;case"script":d=_i(e)}_n.has(d)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),_n.set(d,e),i.querySelector(c)!==null||t==="style"&&i.querySelector(Cs(d))||t==="script"&&i.querySelector(Ts(d))||(t=i.createElement("link"),kt(t,"link",e),st(t),i.head.appendChild(t)))}}function Qv(e,t){oa.m(e,t);var a=pi;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Lt(i)+'"][href="'+Lt(e)+'"]',d=c;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=_i(e)}if(!_n.has(d)&&(e=x({rel:"modulepreload",href:e},t),_n.set(d,e),a.querySelector(c)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ts(d)))return}i=a.createElement("link"),kt(i,"link",e),st(i),a.head.appendChild(i)}}}function Kv(e,t,a){oa.S(e,t,a);var i=pi;if(i&&e){var c=$n(i).hoistableStyles,d=gi(e);t=t||"default";var m=c.get(d);if(!m){var y={loading:0,preload:null};if(m=i.querySelector(Cs(d)))y.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=_n.get(d))&&Vo(e,a);var w=m=i.createElement("link");st(w),kt(w,"link",e),w._p=new Promise(function(z,H){w.onload=z,w.onerror=H}),w.addEventListener("load",function(){y.loading|=1}),w.addEventListener("error",function(){y.loading|=2}),y.loading|=4,ac(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:y},c.set(d,m)}}}function Xv(e,t){oa.X(e,t);var a=pi;if(a&&e){var i=$n(a).hoistableScripts,c=_i(e),d=i.get(c);d||(d=a.querySelector(Ts(c)),d||(e=x({src:e,async:!0},t),(t=_n.get(c))&&Zo(e,t),d=a.createElement("script"),st(d),kt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(c,d))}}function Vv(e,t){oa.M(e,t);var a=pi;if(a&&e){var i=$n(a).hoistableScripts,c=_i(e),d=i.get(c);d||(d=a.querySelector(Ts(c)),d||(e=x({src:e,async:!0,type:"module"},t),(t=_n.get(c))&&Zo(e,t),d=a.createElement("script"),st(d),kt(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(c,d))}}function xp(e,t,a,i){var c=(c=ye.current)?nc(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=gi(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=gi(a.href);var d=$n(c).hoistableStyles,m=d.get(e);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,m),(d=c.querySelector(Cs(e)))&&!d._p&&(m.instance=d,m.state.loading=5),_n.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},_n.set(e,a),d||Zv(c,e,a,m.state))),t&&i===null)throw Error(r(528,""));return m}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=_i(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 gi(e){return'href="'+Lt(e)+'"'}function Cs(e){return'link[rel="stylesheet"]['+e+"]"}function jp(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Zv(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}),kt(t,"link",a),st(t),e.head.appendChild(t))}function _i(e){return'[src="'+Lt(e)+'"]'}function Ts(e){return"script[async]"+e}function wp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Lt(a.href)+'"]');if(i)return t.instance=i,st(i),i;var c=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),st(i),kt(i,"style",c),ac(i,a.precedence,e),t.instance=i;case"stylesheet":c=gi(a.href);var d=e.querySelector(Cs(c));if(d)return t.state.loading|=4,t.instance=d,st(d),d;i=jp(a),(c=_n.get(c))&&Vo(i,c),d=(e.ownerDocument||e).createElement("link"),st(d);var m=d;return m._p=new Promise(function(y,w){m.onload=y,m.onerror=w}),kt(d,"link",i),t.state.loading|=4,ac(d,a.precedence,e),t.instance=d;case"script":return d=_i(a.src),(c=e.querySelector(Ts(d)))?(t.instance=c,st(c),c):(i=a,(c=_n.get(d))&&(i=x({},a),Zo(i,c)),e=e.ownerDocument||e,c=e.createElement("script"),st(c),kt(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,ac(i,a.precedence,e));return t.instance}function ac(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,m=0;m title"):null)}function Iv(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 Ap(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Jv(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=gi(i.href),d=t.querySelector(Cs(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ic.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=d,st(d);return}d=t.ownerDocument||t,i=jp(i),(c=_n.get(c))&&Vo(i,c),d=d.createElement("link"),st(d);var m=d;m._p=new Promise(function(y,w){m.onload=y,m.onerror=w}),kt(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=ic.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Io=0;function Fv(e,t){return e.stylesheets&&e.count===0&&rc(e,e.stylesheets),0Io?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(c)}}:null}function ic(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sc=null;function rc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,sc=new Map,t.forEach(Wv,e),sc=null,ic.call(e))}function Wv(e,t){if(!(t.state.loading&4)){var a=sc.get(e);if(a)var i=a.get(null);else{a=new Map,sc.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(),ld.exports=gb(),ld.exports}var yb=_b();/** * 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 Fp="popstate";function Wp(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function vb(n={}){function l(o,f){let{pathname:h="/",search:_="",hash:p=""}=Tl(o.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),xd("",{pathname:h,search:_,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function s(o,f){let h=o.document.querySelector("base"),_="";if(h&&h.getAttribute("href")){let p=o.location.href,g=p.indexOf("#");_=g===-1?p:p.slice(0,g)}return _+"#"+(typeof f=="string"?f:Ys(f))}function r(o,f){yn(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return Sb(l,s,r,n)}function nt(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function yn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function bb(){return Math.random().toString(36).substring(2,10)}function Pp(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 xd(n,l,s=null,r,o){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?Tl(l):l,state:s,key:l&&l.key||r||bb(),mask:o}}function Ys({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 Tl(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 Sb(n,l,s,r={}){let{window:o=document.defaultView,v5Compat:f=!1}=r,h=o.history,_="POP",p=null,g=b();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function b(){return(h.state||{idx:null}).idx}function x(){_="POP";let M=b(),U=M==null?null:M-g;g=M,p&&p({action:_,location:O.location,delta:U})}function k(M,U){_="PUSH";let Z=Wp(M)?M:xd(O.location,M,U);s&&s(Z,M),g=b()+1;let T=Pp(Z,g),F=O.createHref(Z.mask||Z);try{h.pushState(T,"",F)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;o.location.assign(F)}f&&p&&p({action:_,location:O.location,delta:1})}function q(M,U){_="REPLACE";let Z=Wp(M)?M:xd(O.location,M,U);s&&s(Z,M),g=b();let T=Pp(Z,g),F=O.createHref(Z.mask||Z);h.replaceState(T,"",F),f&&p&&p({action:_,location:O.location,delta:0})}function C(M){return xb(o,M)}let O={get action(){return _},get location(){return n(o,h)},listen(M){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(Fp,x),p=M,()=>{o.removeEventListener(Fp,x),p=null}},createHref(M){return l(o,M)},createURL:C,encodeLocation(M){let U=C(M);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:k,replace:q,go(M){return h.go(M)}};return O}function xb(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:Ys(l);return o=o.replace(/ $/,"%20"),!s&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function Vg(n,l,s="/"){return jb(n,l,s,!1)}function jb(n,l,s,r,o){let f=typeof l=="string"?Tl(l):l,h=ma(f.pathname||"/",s);if(h==null)return null;let _=wb(n),p=null,g=Ob(h);for(let b=0;p==null&&b<_.length;++b)p=Mb(_[b],g,r);return p}function wb(n){let l=Zg(n);return kb(l),l}function Zg(n,l=[],s=[],r="",o=!1){let f=(h,_,p=o,g)=>{let b={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:_,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(r)&&p)return;nt(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length)}let x=Cn([r,b.relativePath]),k=s.concat(b);h.children&&h.children.length>0&&(nt(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Zg(h.children,l,k,x,p)),!(h.path==null&&!h.index)&&l.push({path:x,score:Rb(x,h.index),routesMeta:k})};return n.forEach((h,_)=>{var p;if(h.path===""||!((p=h.path)!=null&&p.includes("?")))f(h,_);else for(let g of Ig(h.path))f(h,_,!0,g)}),l}function Ig(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 h=Ig(r.join("/")),_=[];return _.push(...h.map(p=>p===""?f:[f,p].join("/"))),o&&_.push(...h),_.map(p=>n.startsWith("/")&&p===""?"/":p)}function kb(n){n.sort((l,s)=>l.score!==s.score?s.score-l.score:zb(l.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var Eb=/^:[\w-]+$/,Ab=3,Cb=2,Tb=1,Nb=10,Db=-2,eg=n=>n==="*";function Rb(n,l){let s=n.split("/"),r=s.length;return s.some(eg)&&(r+=Db),l&&(r+=Cb),s.filter(o=>!eg(o)).reduce((o,f)=>o+(Eb.test(f)?Ab:f===""?Tb:Nb),r)}function zb(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 Mb(n,l,s=!1){let{routesMeta:r}=n,o={},f="/",h=[];for(let _=0;_{if(b==="*"){let C=_[k]||"";h=f.slice(0,f.length-C.length).replace(/(.)\/+$/,"$1")}const q=_[k];return x&&!q?g[b]=void 0:g[b]=(q||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:h,pattern:n}}function $b(n,l=!1,s=!0){yn(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,(h,_,p,g,b)=>{if(r.push({paramName:_,isOptional:p!=null}),p){let x=b.charAt(g+h.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 Ob(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return yn(!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 ma(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 qb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Lb(n,l="/"){let{pathname:s,search:r="",hash:o=""}=typeof n=="string"?Tl(n):n,f;return s?(s=Jg(s),s.startsWith("/")?f=tg(s.substring(1),"/"):f=tg(s,l)):f=l,{pathname:f,search:Hb(r),hash:Gb(o)}}function tg(n,l){let s=Dc(l).split("/");return n.split("/").forEach(o=>{o===".."?s.length>1&&s.pop():o!=="."&&s.push(o)}),s.length>1?s.join("/"):"/"}function cd(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 Ub(n){return n.filter((l,s)=>s===0||l.route.path&&l.route.path.length>0)}function Bd(n){let l=Ub(n);return l.map((s,r)=>r===l.length-1?s.pathname:s.pathnameBase)}function Bc(n,l,s,r=!1){let o;typeof n=="string"?o=Tl(n):(o={...n},nt(!o.pathname||!o.pathname.includes("?"),cd("?","pathname","search",o)),nt(!o.pathname||!o.pathname.includes("#"),cd("#","pathname","hash",o)),nt(!o.search||!o.search.includes("#"),cd("#","search","hash",o)));let f=n===""||o.pathname==="",h=f?"/":o.pathname,_;if(h==null)_=s;else{let x=l.length-1;if(!r&&h.startsWith("..")){let k=h.split("/");for(;k[0]==="..";)k.shift(),x-=1;o.pathname=k.join("/")}_=x>=0?l[x]:"/"}let p=Lb(o,_),g=h&&h!=="/"&&h.endsWith("/"),b=(f||h===".")&&s.endsWith("/");return!p.pathname.endsWith("/")&&(g||b)&&(p.pathname+="/"),p}var Jg=n=>n.replace(/\/\/+/g,"/"),Cn=n=>Jg(n.join("/")),Dc=n=>n.replace(/\/+$/,""),Bb=n=>Dc(n).replace(/^\/*/,"/"),Hb=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Gb=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Yb=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 Qb(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Kb(n){let l=n.map(s=>s.route.path).filter(Boolean);return Cn(l)||"/"}var Fg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Wg(n,l){let s=n;if(typeof s!="string"||!qb.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let r=s,o=!1;if(Fg)try{let f=new URL(window.location.href),h=s.startsWith("//")?new URL(f.protocol+s):new URL(s),_=ma(h.pathname,l);h.origin===f.origin&&_!=null?s=_+h.search+h.hash:o=!0}catch{yn(!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 Pg=["POST","PUT","PATCH","DELETE"];new Set(Pg);var Xb=["GET",...Pg];new Set(Xb);var ki=S.createContext(null);ki.displayName="DataRouter";var Hc=S.createContext(null);Hc.displayName="DataRouterState";var e_=S.createContext(!1);function Vb(){return S.useContext(e_)}var t_=S.createContext({isTransitioning:!1});t_.displayName="ViewTransition";var Zb=S.createContext(new Map);Zb.displayName="Fetchers";var Ib=S.createContext(null);Ib.displayName="Await";var an=S.createContext(null);an.displayName="Navigation";var Vs=S.createContext(null);Vs.displayName="Location";var Qn=S.createContext({outlet:null,matches:[],isDataRoute:!1});Qn.displayName="Route";var Hd=S.createContext(null);Hd.displayName="RouteError";var n_="REACT_ROUTER_ERROR",Jb="REDIRECT",Fb="ROUTE_ERROR_RESPONSE";function Wb(n){if(n.startsWith(`${n_}:${Jb}:{`))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 Pb(n){if(n.startsWith(`${n_}:${Fb}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new Yb(l.status,l.statusText,l.data)}catch{}}function e0(n,{relative:l}={}){nt(Ei(),"useHref() may be used only in the context of a component.");let{basename:s,navigator:r}=S.useContext(an),{hash:o,pathname:f,search:h}=Zs(n,{relative:l}),_=f;return s!=="/"&&(_=f==="/"?s:Cn([s,f])),r.createHref({pathname:_,search:h,hash:o})}function Ei(){return S.useContext(Vs)!=null}function Nn(){return nt(Ei(),"useLocation() may be used only in the context of a component."),S.useContext(Vs).location}var a_="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function l_(n){S.useContext(an).static||S.useLayoutEffect(n)}function Gd(){let{isDataRoute:n}=S.useContext(Qn);return n?m0():t0()}function t0(){nt(Ei(),"useNavigate() may be used only in the context of a component.");let n=S.useContext(ki),{basename:l,navigator:s}=S.useContext(an),{matches:r}=S.useContext(Qn),{pathname:o}=Nn(),f=JSON.stringify(Bd(r)),h=S.useRef(!1);return l_(()=>{h.current=!0}),S.useCallback((p,g={})=>{if(yn(h.current,a_),!h.current)return;if(typeof p=="number"){s.go(p);return}let b=Bc(p,JSON.parse(f),o,g.relative==="path");n==null&&l!=="/"&&(b.pathname=b.pathname==="/"?l:Cn([l,b.pathname])),(g.replace?s.replace:s.push)(b,g.state,g)},[l,s,f,o,n])}S.createContext(null);function Zs(n,{relative:l}={}){let{matches:s}=S.useContext(Qn),{pathname:r}=Nn(),o=JSON.stringify(Bd(s));return S.useMemo(()=>Bc(n,JSON.parse(o),r,l==="path"),[n,o,r,l])}function n0(n,l){return i_(n,l)}function i_(n,l,s){var M;nt(Ei(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=S.useContext(an),{matches:o}=S.useContext(Qn),f=o[o.length-1],h=f?f.params:{},_=f?f.pathname:"/",p=f?f.pathnameBase:"/",g=f&&f.route;{let U=g&&g.path||"";r_(_,!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 b=Nn(),x;if(l){let U=typeof l=="string"?Tl(l):l;nt(p==="/"||((M=U.pathname)==null?void 0:M.startsWith(p)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${U.pathname}" was given in the \`location\` prop.`),x=U}else x=b;let k=x.pathname||"/",q=k;if(p!=="/"){let U=p.replace(/^\//,"").split("/");q="/"+k.replace(/^\//,"").split("/").slice(U.length).join("/")}let C=s&&s.state.matches.length?s.state.matches.map(U=>Object.assign(U,{route:s.manifest[U.route.id]||U.route})):Vg(n,{pathname:q});yn(g||C!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),yn(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 O=r0(C&&C.map(U=>Object.assign({},U,{params:Object.assign({},h,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&&O?S.createElement(Vs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...x},navigationType:"POP"}},O):O}function a0(){let n=f0(),l=Qb(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},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:f},"ErrorBoundary")," or"," ",S.createElement("code",{style:f},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},l),s?S.createElement("pre",{style:o},s):null,h)}var l0=S.createElement(a0,null),s_=class extends S.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=Pb(n.digest);s&&(n=s)}let l=n!==void 0?S.createElement(Qn.Provider,{value:this.props.routeContext},S.createElement(Hd.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?S.createElement(i0,{error:n},l):l}};s_.contextType=e_;var ud=new WeakMap;function i0({children:n,error:l}){let{basename:s}=S.useContext(an);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let r=Wb(l.digest);if(r){let o=ud.get(l);if(o)throw o;let f=Wg(r.location,s);if(Fg&&!ud.get(l))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw ud.set(l,h),h}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function s0({routeContext:n,match:l,children:s}){let r=S.useContext(ki);return r&&r.static&&r.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=l.route.id),S.createElement(Qn.Provider,{value:n},s)}function r0(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 b=o.findIndex(x=>x.route.id&&(f==null?void 0:f[x.route.id])!==void 0);nt(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,b+1))}let h=!1,_=-1;if(s&&r){h=r.renderFallback;for(let b=0;b=0?o=o.slice(0,_+1):o=[o[0]];break}}}}let p=s==null?void 0:s.onError,g=r&&p?(b,x)=>{var k,q;p(b,{location:r.location,params:((q=(k=r.matches)==null?void 0:k[0])==null?void 0:q.params)??{},pattern:Kb(r.matches),errorInfo:x})}:void 0;return o.reduceRight((b,x,k)=>{let q,C=!1,O=null,M=null;r&&(q=f&&x.route.id?f[x.route.id]:void 0,O=x.route.errorElement||l0,h&&(_<0&&k===0?(r_("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,M=null):_===k&&(C=!0,M=x.route.hydrateFallbackElement||null)));let U=l.concat(o.slice(0,k+1)),Z=()=>{let T;return q?T=O:C?T=M:x.route.Component?T=S.createElement(x.route.Component,null):x.route.element?T=x.route.element:T=b,S.createElement(s0,{match:x,routeContext:{outlet:b,matches:U,isDataRoute:r!=null},children:T})};return r&&(x.route.ErrorBoundary||x.route.errorElement||k===0)?S.createElement(s_,{location:r.location,revalidation:r.revalidation,component:O,error:q,children:Z(),routeContext:{outlet:null,matches:U,isDataRoute:!0},onError:g}):Z()},null)}function Yd(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function c0(n){let l=S.useContext(ki);return nt(l,Yd(n)),l}function u0(n){let l=S.useContext(Hc);return nt(l,Yd(n)),l}function o0(n){let l=S.useContext(Qn);return nt(l,Yd(n)),l}function Qd(n){let l=o0(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 d0(){return Qd("useRouteId")}function f0(){var r;let n=S.useContext(Hd),l=u0("useRouteError"),s=Qd("useRouteError");return n!==void 0?n:(r=l.errors)==null?void 0:r[s]}function m0(){let{router:n}=c0("useNavigate"),l=Qd("useNavigate"),s=S.useRef(!1);return l_(()=>{s.current=!0}),S.useCallback(async(o,f={})=>{yn(s.current,a_),s.current&&(typeof o=="number"?await n.navigate(o):await n.navigate(o,{fromRouteId:l,...f}))},[n,l])}var ng={};function r_(n,l,s){!l&&!ng[n]&&(ng[n]=!0,yn(!1,s))}S.memo(h0);function h0({routes:n,manifest:l,future:s,state:r,isStatic:o,onError:f}){return i_(n,void 0,{manifest:l,state:r,isStatic:o,onError:f})}function p0({to:n,replace:l,state:s,relative:r}){nt(Ei()," may be used only in the context of a component.");let{static:o}=S.useContext(an);yn(!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}=S.useContext(Qn),{pathname:h}=Nn(),_=Gd(),p=Bc(n,Bd(f),h,r==="path"),g=JSON.stringify(p);return S.useEffect(()=>{_(JSON.parse(g),{replace:l,state:s,relative:r})},[_,g,r,l,s]),null}function jd(n){nt(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function g0({basename:n="/",children:l=null,location:s,navigationType:r="POP",navigator:o,static:f=!1,useTransitions:h}){nt(!Ei(),"You cannot render a inside another . You should never have more than one in your app.");let _=n.replace(/^\/*/,"/"),p=S.useMemo(()=>({basename:_,navigator:o,static:f,useTransitions:h,future:{}}),[_,o,f,h]);typeof s=="string"&&(s=Tl(s));let{pathname:g="/",search:b="",hash:x="",state:k=null,key:q="default",mask:C}=s,O=S.useMemo(()=>{let M=ma(g,_);return M==null?null:{location:{pathname:M,search:b,hash:x,state:k,key:q,mask:C},navigationType:r}},[_,g,b,x,k,q,r,C]);return yn(O!=null,` is not able to match the URL "${g}${b}${x}" because it does not start with the basename, so the won't render anything.`),O==null?null:S.createElement(an.Provider,{value:p},S.createElement(Vs.Provider,{children:l,value:O}))}function _0({children:n,location:l}){return n0(wd(n),l)}function wd(n,l=[]){let s=[];return S.Children.forEach(n,(r,o)=>{if(!S.isValidElement(r))return;let f=[...l,o];if(r.type===S.Fragment){s.push.apply(s,wd(r.props.children,f));return}nt(r.type===jd,`[${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 h={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=wd(r.props.children,f)),s.push(h)}),s}var Sc="get",xc="application/x-www-form-urlencoded";function Gc(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function y0(n){return Gc(n)&&n.tagName.toLowerCase()==="button"}function v0(n){return Gc(n)&&n.tagName.toLowerCase()==="form"}function b0(n){return Gc(n)&&n.tagName.toLowerCase()==="input"}function S0(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function x0(n,l){return n.button===0&&(!l||l==="_self")&&!S0(n)}var pc=null;function j0(){if(pc===null)try{new FormData(document.createElement("form"),0),pc=!1}catch{pc=!0}return pc}var w0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function od(n){return n!=null&&!w0.has(n)?(yn(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${xc}"`),null):n}function k0(n,l){let s,r,o,f,h;if(v0(n)){let _=n.getAttribute("action");r=_?ma(_,l):null,s=n.getAttribute("method")||Sc,o=od(n.getAttribute("enctype"))||xc,f=new FormData(n)}else if(y0(n)||b0(n)&&(n.type==="submit"||n.type==="image")){let _=n.form;if(_==null)throw new Error('Cannot submit a