(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const y of m.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&u(y)}).observe(document,{childList:!0,subtree:!0});function o(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function u(f){if(f.ep)return;f.ep=!0;const m=o(f);fetch(f.href,m)}})();function uv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var eo={exports:{}},Yi={};/** * @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 jm;function ov(){if(jm)return Yi;jm=1;var n=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function o(u,f,m){var y=null;if(m!==void 0&&(y=""+m),f.key!==void 0&&(y=""+f.key),"key"in f){m={};for(var j in f)j!=="key"&&(m[j]=f[j])}else m=f;return f=m.ref,{$$typeof:n,type:u,key:y,ref:f!==void 0?f:null,props:m}}return Yi.Fragment=c,Yi.jsx=o,Yi.jsxs=o,Yi}var Em;function dv(){return Em||(Em=1,eo.exports=ov()),eo.exports}var r=dv(),to={exports:{}},he={};/** * @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 Nm;function fv(){if(Nm)return he;Nm=1;var n=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),y=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),T=Symbol.iterator;function q(S){return S===null||typeof S!="object"?null:(S=T&&S[T]||S["@@iterator"],typeof S=="function"?S:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y=Object.assign,B={};function X(S,R,K){this.props=S,this.context=R,this.refs=B,this.updater=K||M}X.prototype.isReactComponent={},X.prototype.setState=function(S,R){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,R,"setState")},X.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function I(){}I.prototype=X.prototype;function J(S,R,K){this.props=S,this.context=R,this.refs=B,this.updater=K||M}var le=J.prototype=new I;le.constructor=J,Y(le,X.prototype),le.isPureReactComponent=!0;var ie=Array.isArray;function me(){}var Z={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function Te(S,R,K){var F=K.ref;return{$$typeof:n,type:S,key:R,ref:F!==void 0?F:null,props:K}}function at(S,R){return Te(S.type,R,S.props)}function Xe(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function oe(S){var R={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(K){return R[K]})}var Q=/\/+/g;function se(S,R){return typeof S=="object"&&S!==null&&S.key!=null?oe(""+S.key):R.toString(36)}function H(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(me,me):(S.status="pending",S.then(function(R){S.status==="pending"&&(S.status="fulfilled",S.value=R)},function(R){S.status==="pending"&&(S.status="rejected",S.reason=R)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function k(S,R,K,F,re){var ye=typeof S;(ye==="undefined"||ye==="boolean")&&(S=null);var we=!1;if(S===null)we=!0;else switch(ye){case"bigint":case"string":case"number":we=!0;break;case"object":switch(S.$$typeof){case n:case c:we=!0;break;case w:return we=S._init,k(we(S._payload),R,K,F,re)}}if(we)return re=re(S),we=F===""?"."+se(S,0):F,ie(re)?(K="",we!=null&&(K=we.replace(Q,"$&/")+"/"),k(re,R,K,"",function(V){return V})):re!=null&&(Xe(re)&&(re=at(re,K+(re.key==null||S&&S.key===re.key?"":(""+re.key).replace(Q,"$&/")+"/")+we)),R.push(re)),1;we=0;var Ze=F===""?".":F+":";if(ie(S))for(var G=0;G>>1,be=k[de];if(0>>1;def(K,te))Ff(re,K)?(k[de]=re,k[F]=te,de=F):(k[de]=K,k[R]=te,de=R);else if(Ff(re,te))k[de]=re,k[F]=te,de=F;else break e}}return $}function f(k,$){var te=k.sortIndex-$.sortIndex;return te!==0?te:k.id-$.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;n.unstable_now=function(){return m.now()}}else{var y=Date,j=y.now();n.unstable_now=function(){return y.now()-j}}var g=[],p=[],w=1,x=null,T=3,q=!1,M=!1,Y=!1,B=!1,X=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;function le(k){for(var $=o(p);$!==null;){if($.callback===null)u(p);else if($.startTime<=k)u(p),$.sortIndex=$.expirationTime,c(g,$);else break;$=o(p)}}function ie(k){if(Y=!1,le(k),!M)if(o(g)!==null)M=!0,me||(me=!0,oe());else{var $=o(p);$!==null&&H(ie,$.startTime-k)}}var me=!1,Z=-1,ee=5,Te=-1;function at(){return B?!0:!(n.unstable_now()-Tek&&at());){var de=x.callback;if(typeof de=="function"){x.callback=null,T=x.priorityLevel;var be=de(x.expirationTime<=k);if(k=n.unstable_now(),typeof be=="function"){x.callback=be,le(k),$=!0;break t}x===o(g)&&u(g),le(k)}else u(g);x=o(g)}if(x!==null)$=!0;else{var S=o(p);S!==null&&H(ie,S.startTime-k),$=!1}}break e}finally{x=null,T=te,q=!1}$=void 0}}finally{$?oe():me=!1}}}var oe;if(typeof J=="function")oe=function(){J(Xe)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,se=Q.port2;Q.port1.onmessage=Xe,oe=function(){se.postMessage(null)}}else oe=function(){X(Xe,0)};function H(k,$){Z=X(function(){k(n.unstable_now())},$)}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(k){k.callback=null},n.unstable_forceFrameRate=function(k){0>k||125de?(k.sortIndex=te,c(p,k),o(g)===null&&k===o(p)&&(Y?(I(Z),Z=-1):Y=!0,H(ie,te-de))):(k.sortIndex=be,c(g,k),M||q||(M=!0,me||(me=!0,oe()))),k},n.unstable_shouldYield=at,n.unstable_wrapCallback=function(k){var $=T;return function(){var te=T;T=$;try{return k.apply(this,arguments)}finally{T=te}}}})(no)),no}var Cm;function pv(){return Cm||(Cm=1,lo.exports=mv()),lo.exports}var io={exports:{}},Nt={};/** * @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 Am;function yv(){if(Am)return Nt;Am=1;var n=zo();function c(g){var p="https://react.dev/errors/"+g;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(c){console.error(c)}}return n(),io.exports=yv(),io.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 Dm;function vv(){if(Dm)return Gi;Dm=1;var n=pv(),c=zo(),o=gv();function u(e){var t="https://react.dev/errors/"+e;if(1be||(e.current=de[be],de[be]=null,be--)}function K(e,t){be++,de[be]=e.current,e.current=t}var F=S(null),re=S(null),ye=S(null),we=S(null);function Ze(e,t){switch(K(ye,t),K(re,e),K(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Kh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Kh(t),e=Zh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}R(F),K(F,e)}function G(){R(F),R(re),R(ye)}function V(e){e.memoizedState!==null&&K(we,e);var t=F.current,a=Zh(t,e.type);t!==a&&(K(re,e),K(F,a))}function De(e){re.current===e&&(R(F),R(re)),we.current===e&&(R(we),Hi._currentValue=te)}var ze,ot;function _t(e){if(ze===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ze=t&&t[1]||"",ot=-1)":-1i||_[l]!==A[i]){var O=` `+_[l].replace(" at new "," at ");return e.displayName&&O.includes("")&&(O=O.replace("",e.displayName)),O}while(1<=l&&0<=i);break}}}finally{oa=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?_t(a):""}function ht(e,t){switch(e.tag){case 26:case 27:case 5:return _t(e.type);case 16:return _t("Lazy");case 13:return e.child!==t&&t!==null?_t("Suspense Fallback"):_t("Suspense");case 19:return _t("SuspenseList");case 0:case 15:return Re(e.type,!1);case 11:return Re(e.type.render,!1);case 1:return Re(e.type,!0);case 31:return _t("Activity");default:return""}}function xa(e){try{var t="",a=null;do t+=ht(e,a),a=e,e=e.return;while(e);return t}catch(l){return` Error generating stack: `+l.message+` `+l.stack}}var ue=Object.prototype.hasOwnProperty,xt=n.unstable_scheduleCallback,lt=n.unstable_cancelCallback,Ma=n.unstable_shouldYield,an=n.unstable_requestPaint,Ve=n.unstable_now,wt=n.unstable_getCurrentPriorityLevel,Al=n.unstable_ImmediatePriority,Sa=n.unstable_UserBlockingPriority,ja=n.unstable_NormalPriority,Zn=n.unstable_LowPriority,St=n.unstable_IdlePriority,Xr=n.log,Pi=n.unstable_setDisableYieldValue,Ft=null,Tt=null;function Wt(e){if(typeof Xr=="function"&&Pi(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(Ft,e)}catch{}}var Ct=Math.clz32?Math.clz32:Zr,Qr=Math.log,Kr=Math.LN2;function Zr(e){return e>>>=0,e===0?32:31-(Qr(e)/Kr|0)|0}var Dt=256,Oe=262144,_e=4194304;function da(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 fe(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,s=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var h=l&134217727;return h!==0?(l=h&~s,l!==0?i=da(l):(d&=h,d!==0?i=da(d):a||(a=h&~e,a!==0&&(i=da(a))))):(h=l&~s,h!==0?i=da(h):d!==0?i=da(d):a||(a=l&~e,a!==0&&(i=da(a)))),i===0?0:t!==0&&t!==i&&(t&s)===0&&(s=i&-i,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:i}function el(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Vn(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 es(){var e=_e;return _e<<=1,(_e&62914560)===0&&(_e=4194304),e}function Ea(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function fa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Vr(e,t,a,l,i,s){var d=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 h=e.entanglements,_=e.expirationTimes,A=e.hiddenUpdates;for(a=d&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var hs=/[\n"\\]/g;function dt(e){return e.replace(hs,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Pn(e,t,a,l,i,s,d,h){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Mt(t)):e.value!==""+Mt(t)&&(e.value=""+Mt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?ei(e,d,Mt(t)):a!=null?ei(e,d,Mt(a)):l!=null&&e.removeAttribute("value"),i==null&&s!=null&&(e.defaultChecked=!!s),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Mt(h):e.removeAttribute("name")}function ms(e,t,a,l,i,s,d,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){rn(e);return}a=a!=null?""+Mt(a):"",t=t!=null?""+Mt(t):a,h||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=h?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),rn(e)}function ei(e,t,a){t==="number"&&nl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Oa(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ec=!1;if(Ua)try{var ai={};Object.defineProperty(ai,"passive",{get:function(){ec=!0}}),window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{ec=!1}var il=null,tc=null,ps=null;function Ko(){if(ps)return ps;var e,t=tc,a=t.length,l,i="value"in il?il.value:il.textContent,s=i.length;for(e=0;e=ii),Io=" ",Po=!1;function ed(e,t){switch(e){case"keyup":return Dy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function td(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var on=!1;function My(e,t){switch(e){case"compositionend":return td(t);case"keypress":return t.which!==32?null:(Po=!0,Io);case"textInput":return e=t.data,e===Io&&Po?null:e;default:return null}}function Ry(e,t){if(on)return e==="compositionend"||!sc&&ed(e,t)?(e=Ko(),ps=tc=il=null,on=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ud(a)}}function dd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?dd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=nl(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=nl(e.document)}return t}function uc(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 Yy=Ua&&"documentMode"in document&&11>=document.documentMode,dn=null,oc=null,ui=null,dc=!1;function hd(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;dc||dn==null||dn!==nl(l)||(l=dn,"selectionStart"in l&&uc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ui&&ci(ui,l)||(ui=l,l=cr(oc,"onSelect"),0>=d,i-=d,Ta=1<<32-Ct(t)+i|a<ve?(Ee=ae,ae=null):Ee=ae.sibling;var ke=D(N,ae,C[ve],L);if(ke===null){ae===null&&(ae=Ee);break}e&&ae&&ke.alternate===null&&t(N,ae),E=s(ke,E,ve),Ae===null?ne=ke:Ae.sibling=ke,Ae=ke,ae=Ee}if(ve===C.length)return a(N,ae),Ne&&Ba(N,ve),ne;if(ae===null){for(;veve?(Ee=ae,ae=null):Ee=ae.sibling;var Tl=D(N,ae,ke.value,L);if(Tl===null){ae===null&&(ae=Ee);break}e&&ae&&Tl.alternate===null&&t(N,ae),E=s(Tl,E,ve),Ae===null?ne=Tl:Ae.sibling=Tl,Ae=Tl,ae=Ee}if(ke.done)return a(N,ae),Ne&&Ba(N,ve),ne;if(ae===null){for(;!ke.done;ve++,ke=C.next())ke=U(N,ke.value,L),ke!==null&&(E=s(ke,E,ve),Ae===null?ne=ke:Ae.sibling=ke,Ae=ke);return Ne&&Ba(N,ve),ne}for(ae=l(ae);!ke.done;ve++,ke=C.next())ke=z(ae,N,ve,ke.value,L),ke!==null&&(e&&ke.alternate!==null&&ae.delete(ke.key===null?ve:ke.key),E=s(ke,E,ve),Ae===null?ne=ke:Ae.sibling=ke,Ae=ke);return e&&ae.forEach(function(cv){return t(N,cv)}),Ne&&Ba(N,ve),ne}function qe(N,E,C,L){if(typeof C=="object"&&C!==null&&C.type===Y&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case q:e:{for(var ne=C.key;E!==null;){if(E.key===ne){if(ne=C.type,ne===Y){if(E.tag===7){a(N,E.sibling),L=i(E,C.props.children),L.return=N,N=L;break e}}else if(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ee&&Gl(ne)===E.type){a(N,E.sibling),L=i(E,C.props),pi(L,C),L.return=N,N=L;break e}a(N,E);break}else t(N,E);E=E.sibling}C.type===Y?(L=Hl(C.props.children,N.mode,L,C.key),L.return=N,N=L):(L=Ns(C.type,C.key,C.props,null,N.mode,L),pi(L,C),L.return=N,N=L)}return d(N);case M:e:{for(ne=C.key;E!==null;){if(E.key===ne)if(E.tag===4&&E.stateNode.containerInfo===C.containerInfo&&E.stateNode.implementation===C.implementation){a(N,E.sibling),L=i(E,C.children||[]),L.return=N,N=L;break e}else{a(N,E);break}else t(N,E);E=E.sibling}L=vc(C,N.mode,L),L.return=N,N=L}return d(N);case ee:return C=Gl(C),qe(N,E,C,L)}if(H(C))return P(N,E,C,L);if(oe(C)){if(ne=oe(C),typeof ne!="function")throw Error(u(150));return C=ne.call(C),ce(N,E,C,L)}if(typeof C.then=="function")return qe(N,E,zs(C),L);if(C.$$typeof===J)return qe(N,E,Cs(N,C),L);Ms(N,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,E!==null&&E.tag===6?(a(N,E.sibling),L=i(E,C),L.return=N,N=L):(a(N,E),L=gc(C,N.mode,L),L.return=N,N=L),d(N)):a(N,E)}return function(N,E,C,L){try{mi=0;var ne=qe(N,E,C,L);return Sn=null,ne}catch(ae){if(ae===xn||ae===ks)throw ae;var Ae=Gt(29,ae,null,N.mode);return Ae.lanes=L,Ae.return=N,Ae}finally{}}}var Ql=Ld(!0),Ud=Ld(!1),ol=!1;function kc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Dc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function dl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fl(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Me&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=Es(e),_d(e,null,a),t}return js(e,l,t,a),Es(e)}function yi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,At(e,a)}}function zc(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?i=s=d:s=s.next=d,a=a.next}while(a!==null);s===null?i=s=t:s=s.next=t}else i=s=t;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Mc=!1;function gi(){if(Mc){var e=_n;if(e!==null)throw e}}function vi(e,t,a,l){Mc=!1;var i=e.updateQueue;ol=!1;var s=i.firstBaseUpdate,d=i.lastBaseUpdate,h=i.shared.pending;if(h!==null){i.shared.pending=null;var _=h,A=_.next;_.next=null,d===null?s=A:d.next=A,d=_;var O=e.alternate;O!==null&&(O=O.updateQueue,h=O.lastBaseUpdate,h!==d&&(h===null?O.firstBaseUpdate=A:h.next=A,O.lastBaseUpdate=_))}if(s!==null){var U=i.baseState;d=0,O=A=_=null,h=s;do{var D=h.lane&-536870913,z=D!==h.lane;if(z?(je&D)===D:(l&D)===D){D!==0&&D===bn&&(Mc=!0),O!==null&&(O=O.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var P=e,ce=h;D=t;var qe=a;switch(ce.tag){case 1:if(P=ce.payload,typeof P=="function"){U=P.call(qe,U,D);break e}U=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ce.payload,D=typeof P=="function"?P.call(qe,U,D):P,D==null)break e;U=x({},U,D);break e;case 2:ol=!0}}D=h.callback,D!==null&&(e.flags|=64,z&&(e.flags|=8192),z=i.callbacks,z===null?i.callbacks=[D]:z.push(D))}else z={lane:D,tag:h.tag,payload:h.payload,callback:h.callback,next:null},O===null?(A=O=z,_=U):O=O.next=z,d|=D;if(h=h.next,h===null){if(h=i.shared.pending,h===null)break;z=h,h=z.next,z.next=null,i.lastBaseUpdate=z,i.shared.pending=null}}while(!0);O===null&&(_=U),i.baseState=_,i.firstBaseUpdate=A,i.lastBaseUpdate=O,s===null&&(i.shared.lanes=0),gl|=d,e.lanes=d,e.memoizedState=U}}function Hd(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Bd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;es?s:8;var d=k.T,h={};k.T=h,Ic(e,!1,t,a);try{var _=i(),A=k.S;if(A!==null&&A(h,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var O=Wy(_,l);xi(e,t,O,Vt(e))}else xi(e,t,l,Vt(e))}catch(U){xi(e,t,{then:function(){},status:"rejected",reason:U},Vt())}finally{$.p=s,d!==null&&h.types!==null&&(d.types=h.types),k.T=d}}function lg(){}function Fc(e,t,a,l){if(e.tag!==5)throw Error(u(476));var i=vf(e).queue;gf(e,i,t,te,a===null?lg:function(){return bf(e),a(l)})}function vf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ga,lastRenderedState:te},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ga,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bf(e){var t=vf(e);t.next===null&&(t=e.alternate.memoizedState),xi(e,t.next.queue,{},Vt())}function Wc(){return gt(Hi)}function _f(){return tt().memoizedState}function xf(){return tt().memoizedState}function ng(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Vt();e=dl(a);var l=fl(t,e,a);l!==null&&(Bt(l,t,a),yi(l,t,a)),t={cache:wc()},e.payload=t;return}t=t.return}}function ig(e,t,a){var l=Vt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Gs(e)?jf(t,a):(a=pc(e,t,a,l),a!==null&&(Bt(a,e,l),Ef(a,t,l)))}function Sf(e,t,a){var l=Vt();xi(e,t,a,l)}function xi(e,t,a,l){var i={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Gs(e))jf(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var d=t.lastRenderedState,h=s(d,a);if(i.hasEagerState=!0,i.eagerState=h,Yt(h,d))return js(e,t,i,0),$e===null&&Ss(),!1}catch{}finally{}if(a=pc(e,t,i,l),a!==null)return Bt(a,e,l),Ef(a,t,l),!0}return!1}function Ic(e,t,a,l){if(l={lane:2,revertLane:ku(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Gs(e)){if(t)throw Error(u(479))}else t=pc(e,a,l,2),t!==null&&Bt(t,e,2)}function Gs(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function jf(e,t){En=Ls=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Ef(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,At(e,a)}}var Si={readContext:gt,use:Bs,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie};Si.useEffectEvent=Ie;var Nf={readContext:gt,use:Bs,useCallback:function(e,t){return kt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:cf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,$s(4194308,4,ff.bind(null,t,e),a)},useLayoutEffect:function(e,t){return $s(4194308,4,e,t)},useInsertionEffect:function(e,t){$s(4,2,e,t)},useMemo:function(e,t){var a=kt();t=t===void 0?null:t;var l=e();if(Kl){Wt(!0);try{e()}finally{Wt(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=kt();if(a!==void 0){var i=a(t);if(Kl){Wt(!0);try{a(t)}finally{Wt(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=ig.bind(null,ge,e),[l.memoizedState,e]},useRef:function(e){var t=kt();return e={current:e},t.memoizedState=e},useState:function(e){e=Qc(e);var t=e.queue,a=Sf.bind(null,ge,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Vc,useDeferredValue:function(e,t){var a=kt();return Jc(a,e,t)},useTransition:function(){var e=Qc(!1);return e=gf.bind(null,ge,e.queue,!0,!1),kt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ge,i=kt();if(Ne){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),$e===null)throw Error(u(349));(je&127)!==0||Qd(l,t,a)}i.memoizedState=a;var s={value:a,getSnapshot:t};return i.queue=s,cf(Zd.bind(null,l,s,e),[e]),l.flags|=2048,wn(9,{destroy:void 0},Kd.bind(null,l,s,a,t),null),a},useId:function(){var e=kt(),t=$e.identifierPrefix;if(Ne){var a=Ca,l=Ta;a=(l&~(1<<32-Ct(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Us++,0<\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?d.createElement(i,{is:l.is}):d.createElement(i)}}s[nt]=t,s[jt]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)s.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=s;e:switch(bt(s,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Qa(t)}}return Ge(t),fu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Qa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(u(166));if(e=ye.current,gn(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=yt,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[nt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Xh(e.nodeValue,a)),e||cl(t,!0)}else e=ur(e).createTextNode(l),e[nt]=t,t.stateNode=e}return Ge(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=gn(t),a!==null){if(e===null){if(!l)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[nt]=t}else Bl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),e=!1}else a=Sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Qt(t),t):(Qt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Ge(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=gn(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[nt]=t}else Bl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),i=!1}else i=Sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Qt(t),t):(Qt(t),null)}return Qt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==i&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Vs(t,t.updateQueue),Ge(t),null);case 4:return G(),e===null&&Ru(t.stateNode.containerInfo),Ge(t),null;case 10:return $a(t.type),Ge(t),null;case 19:if(R(et),l=t.memoizedState,l===null)return Ge(t),null;if(i=(t.flags&128)!==0,s=l.rendering,s===null)if(i)Ei(l,!1);else{if(Pe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Os(e),s!==null){for(t.flags|=128,Ei(l,!1),e=s.updateQueue,t.updateQueue=e,Vs(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)xd(a,e),a=a.sibling;return K(et,et.current&1|2),Ne&&Ba(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ve()>Ps&&(t.flags|=128,i=!0,Ei(l,!1),t.lanes=4194304)}else{if(!i)if(e=Os(s),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Vs(t,e),Ei(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!Ne)return Ge(t),null}else 2*Ve()-l.renderingStartTime>Ps&&a!==536870912&&(t.flags|=128,i=!0,Ei(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ve(),e.sibling=null,a=et.current,K(et,i?a&1|2:a&1),Ne&&Ba(t,l.treeForkCount),e):(Ge(t),null);case 22:case 23:return Qt(t),Oc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),a=t.updateQueue,a!==null&&Vs(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&R(Yl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),$a(st),Ge(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function og(e,t){switch(_c(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $a(st),G(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return De(t),null;case 31:if(t.memoizedState!==null){if(Qt(t),t.alternate===null)throw Error(u(340));Bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(et),null;case 4:return G(),null;case 10:return $a(t.type),null;case 22:case 23:return Qt(t),Oc(),e!==null&&R(Yl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return $a(st),null;case 25:return null;default:return null}}function Jf(e,t){switch(_c(t),t.tag){case 3:$a(st),G();break;case 26:case 27:case 5:De(t);break;case 4:G();break;case 31:t.memoizedState!==null&&Qt(t);break;case 13:Qt(t);break;case 19:R(et);break;case 10:$a(t.type);break;case 22:case 23:Qt(t),Oc(),e!==null&&R(Yl);break;case 24:$a(st)}}function Ni(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var s=a.create,d=a.inst;l=s(),d.destroy=l}a=a.next}while(a!==i)}}catch(h){Ue(t,t.return,h)}}function pl(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&e)===e){var d=l.inst,h=d.destroy;if(h!==void 0){d.destroy=void 0,i=t;var _=a,A=h;try{A()}catch(O){Ue(i,_,O)}}}l=l.next}while(l!==s)}}catch(O){Ue(t,t.return,O)}}function Ff(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Bd(t,a)}catch(l){Ue(e,e.return,l)}}}function Wf(e,t,a){a.props=Zl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ue(e,t,l)}}function wi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(i){Ue(e,t,i)}}function Aa(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Ue(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Ue(e,t,i)}else a.current=null}function If(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Ue(e,e.return,i)}}function hu(e,t,a){try{var l=e.stateNode;zg(l,e.type,a,t),l[jt]=t}catch(i){Ue(e,e.return,i)}}function Pf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sl(e.type)||e.tag===4}function mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pf(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&&Sl(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 pu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=La));else if(l!==4&&(l===27&&Sl(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(pu(e,t,a),e=e.sibling;e!==null;)pu(e,t,a),e=e.sibling}function Js(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Sl(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Js(e,t,a),e=e.sibling;e!==null;)Js(e,t,a),e=e.sibling}function eh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);bt(t,l,a),t[nt]=e,t[jt]=a}catch(s){Ue(e,e.return,s)}}var Ka=!1,ut=!1,yu=!1,th=typeof WeakSet=="function"?WeakSet:Set,pt=null;function dg(e,t){if(e=e.containerInfo,Uu=yr,e=fd(e),uc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var d=0,h=-1,_=-1,A=0,O=0,U=e,D=null;t:for(;;){for(var z;U!==a||i!==0&&U.nodeType!==3||(h=d+i),U!==s||l!==0&&U.nodeType!==3||(_=d+l),U.nodeType===3&&(d+=U.nodeValue.length),(z=U.firstChild)!==null;)D=U,U=z;for(;;){if(U===e)break t;if(D===a&&++A===i&&(h=d),D===s&&++O===l&&(_=d),(z=U.nextSibling)!==null)break;U=D,D=U.parentNode}U=z}a=h===-1||_===-1?null:{start:h,end:_}}else a=null}a=a||{start:0,end:0}}else a=null;for(Hu={focusedElem:e,selectionRange:a},yr=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){switch(t=pt,s=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"))),bt(s,l,a),s[nt]=e,it(s),l=s;break e;case"link":var d=rm("link","href",i).get(l+(a.href||""));if(d){for(var h=0;hqe&&(d=qe,qe=ce,ce=d);var N=od(h,ce),E=od(h,qe);if(N&&E&&(z.rangeCount!==1||z.anchorNode!==N.node||z.anchorOffset!==N.offset||z.focusNode!==E.node||z.focusOffset!==E.offset)){var C=U.createRange();C.setStart(N.node,N.offset),z.removeAllRanges(),ce>qe?(z.addRange(C),z.extend(E.node,E.offset)):(C.setEnd(E.node,E.offset),z.addRange(C))}}}}for(U=[],z=h;z=z.parentNode;)z.nodeType===1&&U.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;ha?32:a,k.T=null,a=ju,ju=null;var s=bl,d=Wa;if(ft=0,Dn=bl=null,Wa=0,(Me&6)!==0)throw Error(u(331));var h=Me;if(Me|=4,fh(s.current),uh(s,s.current,d,a),Me=h,zi(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(Ft,s)}catch{}return!0}finally{$.p=i,k.T=l,kh(e,t)}}function zh(e,t,a){t=ea(a,t),t=au(e.stateNode,t,2),e=fl(e,t,2),e!==null&&(fa(e,2),ka(e))}function Ue(e,t,a){if(e.tag===3)zh(e,e,a);else for(;t!==null;){if(t.tag===3){zh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(vl===null||!vl.has(l))){e=ea(a,e),a=Mf(2),l=fl(t,a,2),l!==null&&(Rf(a,l,t,e),fa(l,2),ka(l));break}}t=t.return}}function Tu(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new mg;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(bu=!0,i.add(a),e=bg.bind(null,e,t,a),t.then(e,e))}function bg(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,$e===e&&(je&a)===a&&(Pe===4||Pe===3&&(je&62914560)===je&&300>Ve()-Is?(Me&2)===0&&zn(e,0):_u|=a,kn===je&&(kn=0)),ka(e)}function Mh(e,t){t===0&&(t=es()),e=Ul(e,t),e!==null&&(fa(e,t),ka(e))}function _g(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Mh(e,a)}function xg(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(t),Mh(e,a)}function Sg(e,t){return xt(e,t)}var ir=null,Rn=null,Cu=!1,sr=!1,Au=!1,xl=0;function ka(e){e!==Rn&&e.next===null&&(Rn===null?ir=Rn=e:Rn=Rn.next=e),sr=!0,Cu||(Cu=!0,Eg())}function zi(e,t){if(!Au&&sr){Au=!0;do for(var a=!1,l=ir;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var s=0;else{var d=l.suspendedLanes,h=l.pingedLanes;s=(1<<31-Ct(42|e)+1)-1,s&=i&~(d&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,Uh(l,s))}else s=je,s=fe(l,l===$e?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||el(l,s)||(a=!0,Uh(l,s));l=l.next}while(a);Au=!1}}function jg(){Rh()}function Rh(){sr=Cu=!1;var e=0;xl!==0&&Rg()&&(e=xl);for(var t=Ve(),a=null,l=ir;l!==null;){var i=l.next,s=Oh(l,t);s===0?(l.next=null,a===null?ir=i:a.next=i,i===null&&(Rn=a)):(a=l,(e!==0||(s&3)!==0)&&(sr=!0)),l=i}ft!==0&&ft!==5||zi(e),xl!==0&&(xl=0)}function Oh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes&-62914561;0h)break;var O=_.transferSize,U=_.initiatorType;O&&Qh(U)&&(_=_.responseEnd,d+=O*(_"u"?null:document;function lm(e,t,a){var l=On;if(l&&typeof t=="string"&&t){var i=dt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),am.has(i)||(am.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),bt(t,"link",e),it(t),l.head.appendChild(t)))}}function Gg(e){Ia.D(e),lm("dns-prefetch",e,null)}function Xg(e,t){Ia.C(e,t),lm("preconnect",e,t)}function Qg(e,t,a){Ia.L(e,t,a);var l=On;if(l&&e&&t){var i='link[rel="preload"][as="'+dt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+dt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+dt(a.imageSizes)+'"]')):i+='[href="'+dt(e)+'"]';var s=i;switch(t){case"style":s=Ln(e);break;case"script":s=Un(e)}sa.has(s)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),sa.set(s,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(Li(s))||t==="script"&&l.querySelector(Ui(s))||(t=l.createElement("link"),bt(t,"link",e),it(t),l.head.appendChild(t)))}}function Kg(e,t){Ia.m(e,t);var a=On;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+dt(l)+'"][href="'+dt(e)+'"]',s=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Un(e)}if(!sa.has(s)&&(e=x({rel:"modulepreload",href:e},t),sa.set(s,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ui(s)))return}l=a.createElement("link"),bt(l,"link",e),it(l),a.head.appendChild(l)}}}function Zg(e,t,a){Ia.S(e,t,a);var l=On;if(l&&e){var i=ll(l).hoistableStyles,s=Ln(e);t=t||"default";var d=i.get(s);if(!d){var h={loading:0,preload:null};if(d=l.querySelector(Li(s)))h.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=sa.get(s))&&Qu(e,a);var _=d=l.createElement("link");it(_),bt(_,"link",e),_._p=new Promise(function(A,O){_.onload=A,_.onerror=O}),_.addEventListener("load",function(){h.loading|=1}),_.addEventListener("error",function(){h.loading|=2}),h.loading|=4,dr(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:h},i.set(s,d)}}}function Vg(e,t){Ia.X(e,t);var a=On;if(a&&e){var l=ll(a).hoistableScripts,i=Un(e),s=l.get(i);s||(s=a.querySelector(Ui(i)),s||(e=x({src:e,async:!0},t),(t=sa.get(i))&&Ku(e,t),s=a.createElement("script"),it(s),bt(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function Jg(e,t){Ia.M(e,t);var a=On;if(a&&e){var l=ll(a).hoistableScripts,i=Un(e),s=l.get(i);s||(s=a.querySelector(Ui(i)),s||(e=x({src:e,async:!0,type:"module"},t),(t=sa.get(i))&&Ku(e,t),s=a.createElement("script"),it(s),bt(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function nm(e,t,a,l){var i=(i=ye.current)?or(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Ln(a.href),a=ll(i).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ln(a.href);var s=ll(i).hoistableStyles,d=s.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,d),(s=i.querySelector(Li(e)))&&!s._p&&(d.instance=s,d.state.loading=5),sa.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},sa.set(e,a),s||Fg(i,e,a,d.state))),t&&l===null)throw Error(u(528,""));return d}if(t&&l!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Un(a),a=ll(i).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Ln(e){return'href="'+dt(e)+'"'}function Li(e){return'link[rel="stylesheet"]['+e+"]"}function im(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Fg(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),bt(t,"link",a),it(t),e.head.appendChild(t))}function Un(e){return'[src="'+dt(e)+'"]'}function Ui(e){return"script[async]"+e}function sm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+dt(a.href)+'"]');if(l)return t.instance=l,it(l),l;var i=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),it(l),bt(l,"style",i),dr(l,a.precedence,e),t.instance=l;case"stylesheet":i=Ln(a.href);var s=e.querySelector(Li(i));if(s)return t.state.loading|=4,t.instance=s,it(s),s;l=im(a),(i=sa.get(i))&&Qu(l,i),s=(e.ownerDocument||e).createElement("link"),it(s);var d=s;return d._p=new Promise(function(h,_){d.onload=h,d.onerror=_}),bt(s,"link",l),t.state.loading|=4,dr(s,a.precedence,e),t.instance=s;case"script":return s=Un(a.src),(i=e.querySelector(Ui(s)))?(t.instance=i,it(i),i):(l=a,(i=sa.get(s))&&(l=x({},a),Ku(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),it(i),bt(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,dr(l,a.precedence,e));return t.instance}function dr(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,s=i,d=0;d title"):null)}function Wg(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 um(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ig(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=Ln(l.href),s=t.querySelector(Li(i));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=hr.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,it(s);return}s=t.ownerDocument||t,l=im(l),(i=sa.get(i))&&Qu(l,i),s=s.createElement("link"),it(s);var d=s;d._p=new Promise(function(h,_){d.onload=h,d.onerror=_}),bt(s,"link",l),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=hr.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Zu=0;function Pg(e,t){return e.stylesheets&&e.count===0&&pr(e,e.stylesheets),0Zu?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function hr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)pr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var mr=null;function pr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,mr=new Map,t.forEach(ev,e),mr=null,hr.call(e))}function ev(e,t){if(!(t.state.loading&4)){var a=mr.get(e);if(a)var l=a.get(null);else{a=new Map,mr.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(c){console.error(c)}}return n(),ao.exports=vv(),ao.exports}var _v=bv();/** * 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 Mm="popstate";function Rm(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function xv(n={}){function c(f,m){let{pathname:y="/",search:j="",hash:g=""}=en(f.location.hash.substring(1));return!y.startsWith("/")&&!y.startsWith(".")&&(y="/"+y),xo("",{pathname:y,search:j,hash:g},m.state&&m.state.usr||null,m.state&&m.state.key||"default")}function o(f,m){let y=f.document.querySelector("base"),j="";if(y&&y.getAttribute("href")){let g=f.location.href,p=g.indexOf("#");j=p===-1?g:g.slice(0,p)}return j+"#"+(typeof m=="string"?m:Zi(m))}function u(f,m){ca(f.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(m)})`)}return jv(c,o,u,n)}function Ke(n,c){if(n===!1||n===null||typeof n>"u")throw new Error(c)}function ca(n,c){if(!n){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function Sv(){return Math.random().toString(36).substring(2,10)}function Om(n,c){return{usr:n.state,key:n.key,idx:c,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function xo(n,c,o=null,u,f){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof c=="string"?en(c):c,state:o,key:c&&c.key||u||Sv(),mask:f}}function Zi({pathname:n="/",search:c="",hash:o=""}){return c&&c!=="?"&&(n+=c.charAt(0)==="?"?c:"?"+c),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function en(n){let c={};if(n){let o=n.indexOf("#");o>=0&&(c.hash=n.substring(o),n=n.substring(0,o));let u=n.indexOf("?");u>=0&&(c.search=n.substring(u),n=n.substring(0,u)),n&&(c.pathname=n)}return c}function jv(n,c,o,u={}){let{window:f=document.defaultView,v5Compat:m=!1}=u,y=f.history,j="POP",g=null,p=w();p==null&&(p=0,y.replaceState({...y.state,idx:p},""));function w(){return(y.state||{idx:null}).idx}function x(){j="POP";let B=w(),X=B==null?null:B-p;p=B,g&&g({action:j,location:Y.location,delta:X})}function T(B,X){j="PUSH";let I=Rm(B)?B:xo(Y.location,B,X);o&&o(I,B),p=w()+1;let J=Om(I,p),le=Y.createHref(I.mask||I);try{y.pushState(J,"",le)}catch(ie){if(ie instanceof DOMException&&ie.name==="DataCloneError")throw ie;f.location.assign(le)}m&&g&&g({action:j,location:Y.location,delta:1})}function q(B,X){j="REPLACE";let I=Rm(B)?B:xo(Y.location,B,X);o&&o(I,B),p=w();let J=Om(I,p),le=Y.createHref(I.mask||I);y.replaceState(J,"",le),m&&g&&g({action:j,location:Y.location,delta:0})}function M(B){return Ev(f,B)}let Y={get action(){return j},get location(){return n(f,y)},listen(B){if(g)throw new Error("A history only accepts one active listener");return f.addEventListener(Mm,x),g=B,()=>{f.removeEventListener(Mm,x),g=null}},createHref(B){return c(f,B)},createURL:M,encodeLocation(B){let X=M(B);return{pathname:X.pathname,search:X.search,hash:X.hash}},push:T,replace:q,go(B){return y.go(B)}};return Y}function Ev(n,c,o=!1){let u="http://localhost";n&&(u=n.location.origin!=="null"?n.location.origin:n.location.href),Ke(u,"No window.location.(origin|href) available to create URL");let f=typeof c=="string"?c:Zi(c);return f=f.replace(/ $/,"%20"),!o&&f.startsWith("//")&&(f=u+f),new URL(f,u)}function gp(n,c,o="/"){return Nv(n,c,o,!1)}function Nv(n,c,o,u,f){let m=typeof c=="string"?en(c):c,y=Pa(m.pathname||"/",o);if(y==null)return null;let j=wv(n),g=null,p=Hv(y);for(let w=0;g==null&&w{let w={relativePath:p===void 0?y.path||"":p,caseSensitive:y.caseSensitive===!0,childrenIndex:j,route:y};if(w.relativePath.startsWith("/")){if(!w.relativePath.startsWith(u)&&g)return;Ke(w.relativePath.startsWith(u),`Absolute route path "${w.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),w.relativePath=w.relativePath.slice(u.length)}let x=ba([u,w.relativePath]),T=o.concat(w);y.children&&y.children.length>0&&(Ke(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),vp(y.children,c,T,x,g)),!(y.path==null&&!y.index)&&c.push({path:x,score:Rv(x,y.index),routesMeta:T})};return n.forEach((y,j)=>{var g;if(y.path===""||!((g=y.path)!=null&&g.includes("?")))m(y,j);else for(let p of bp(y.path))m(y,j,!0,p)}),c}function bp(n){let c=n.split("/");if(c.length===0)return[];let[o,...u]=c,f=o.endsWith("?"),m=o.replace(/\?$/,"");if(u.length===0)return f?[m,""]:[m];let y=bp(u.join("/")),j=[];return j.push(...y.map(g=>g===""?m:[m,g].join("/"))),f&&j.push(...y),j.map(g=>n.startsWith("/")&&g===""?"/":g)}function Tv(n){n.sort((c,o)=>c.score!==o.score?o.score-c.score:Ov(c.routesMeta.map(u=>u.childrenIndex),o.routesMeta.map(u=>u.childrenIndex)))}var Cv=/^:[\w-]+$/,Av=3,kv=2,Dv=1,zv=10,Mv=-2,Lm=n=>n==="*";function Rv(n,c){let o=n.split("/"),u=o.length;return o.some(Lm)&&(u+=Mv),c&&(u+=kv),o.filter(f=>!Lm(f)).reduce((f,m)=>f+(Cv.test(m)?Av:m===""?Dv:zv),u)}function Ov(n,c){return n.length===c.length&&n.slice(0,-1).every((u,f)=>u===c[f])?n[n.length-1]-c[c.length-1]:0}function Lv(n,c,o=!1){let{routesMeta:u}=n,f={},m="/",y=[];for(let j=0;j{if(w==="*"){let M=j[T]||"";y=m.slice(0,m.length-M.length).replace(/(.)\/+$/,"$1")}const q=j[T];return x&&!q?p[w]=void 0:p[w]=(q||"").replace(/%2F/g,"/"),p},{}),pathname:m,pathnameBase:y,pattern:n}}function Uv(n,c=!1,o=!0){ca(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 u=[],f="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,j,g,p,w)=>{if(u.push({paramName:j,isOptional:g!=null}),g){let x=w.charAt(p+y.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(u.push({paramName:"*"}),f+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?f+="\\/*$":n!==""&&n!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,c?void 0:"i"),u]}function Hv(n){try{return n.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return ca(!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 (${c}).`),n}}function Pa(n,c){if(c==="/")return n;if(!n.toLowerCase().startsWith(c.toLowerCase()))return null;let o=c.endsWith("/")?c.length-1:c.length,u=n.charAt(o);return u&&u!=="/"?null:n.slice(o)||"/"}var Bv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function qv(n,c="/"){let{pathname:o,search:u="",hash:f=""}=typeof n=="string"?en(n):n,m;return o?(o=_p(o),o.startsWith("/")?m=Um(o.substring(1),"/"):m=Um(o,c)):m=c,{pathname:m,search:Gv(u),hash:Xv(f)}}function Um(n,c){let o=zr(c).split("/");return n.split("/").forEach(f=>{f===".."?o.length>1&&o.pop():f!=="."&&o.push(f)}),o.length>1?o.join("/"):"/"}function so(n,c,o,u){return`Cannot include a '${n}' character in a manually specified \`to.${c}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function $v(n){return n.filter((c,o)=>o===0||c.route.path&&c.route.path.length>0)}function Mo(n){let c=$v(n);return c.map((o,u)=>u===c.length-1?o.pathname:o.pathnameBase)}function Lr(n,c,o,u=!1){let f;typeof n=="string"?f=en(n):(f={...n},Ke(!f.pathname||!f.pathname.includes("?"),so("?","pathname","search",f)),Ke(!f.pathname||!f.pathname.includes("#"),so("#","pathname","hash",f)),Ke(!f.search||!f.search.includes("#"),so("#","search","hash",f)));let m=n===""||f.pathname==="",y=m?"/":f.pathname,j;if(y==null)j=o;else{let x=c.length-1;if(!u&&y.startsWith("..")){let T=y.split("/");for(;T[0]==="..";)T.shift(),x-=1;f.pathname=T.join("/")}j=x>=0?c[x]:"/"}let g=qv(f,j),p=y&&y!=="/"&&y.endsWith("/"),w=(m||y===".")&&o.endsWith("/");return!g.pathname.endsWith("/")&&(p||w)&&(g.pathname+="/"),g}var _p=n=>n.replace(/\/\/+/g,"/"),ba=n=>_p(n.join("/")),zr=n=>n.replace(/\/+$/,""),Yv=n=>zr(n).replace(/^\/*/,"/"),Gv=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Xv=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Qv=class{constructor(n,c,o,u=!1){this.status=n,this.statusText=c||"",this.internal=u,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function Kv(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Zv(n){let c=n.map(o=>o.route.path).filter(Boolean);return ba(c)||"/"}var xp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Sp(n,c){let o=n;if(typeof o!="string"||!Bv.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let u=o,f=!1;if(xp)try{let m=new URL(window.location.href),y=o.startsWith("//")?new URL(m.protocol+o):new URL(o),j=Pa(y.pathname,c);y.origin===m.origin&&j!=null?o=j+y.search+y.hash:f=!0}catch{ca(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:f,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var jp=["POST","PUT","PATCH","DELETE"];new Set(jp);var Vv=["GET",...jp];new Set(Vv);var Xn=v.createContext(null);Xn.displayName="DataRouter";var Ur=v.createContext(null);Ur.displayName="DataRouterState";var Ep=v.createContext(!1);function Jv(){return v.useContext(Ep)}var Np=v.createContext({isTransitioning:!1});Np.displayName="ViewTransition";var Fv=v.createContext(new Map);Fv.displayName="Fetchers";var Wv=v.createContext(null);Wv.displayName="Await";var Jt=v.createContext(null);Jt.displayName="Navigation";var Fi=v.createContext(null);Fi.displayName="Location";var za=v.createContext({outlet:null,matches:[],isDataRoute:!1});za.displayName="Route";var Ro=v.createContext(null);Ro.displayName="RouteError";var wp="REACT_ROUTER_ERROR",Iv="REDIRECT",Pv="ROUTE_ERROR_RESPONSE";function eb(n){if(n.startsWith(`${wp}:${Iv}:{`))try{let c=JSON.parse(n.slice(28));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.location=="string"&&typeof c.reloadDocument=="boolean"&&typeof c.replace=="boolean")return c}catch{}}function tb(n){if(n.startsWith(`${wp}:${Pv}:{`))try{let c=JSON.parse(n.slice(40));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string")return new Qv(c.status,c.statusText,c.data)}catch{}}function ab(n,{relative:c}={}){Ke(Qn(),"useHref() may be used only in the context of a component.");let{basename:o,navigator:u}=v.useContext(Jt),{hash:f,pathname:m,search:y}=Wi(n,{relative:c}),j=m;return o!=="/"&&(j=m==="/"?o:ba([o,m])),u.createHref({pathname:j,search:y,hash:f})}function Qn(){return v.useContext(Fi)!=null}function _a(){return Ke(Qn(),"useLocation() may be used only in the context of a component."),v.useContext(Fi).location}var Tp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Cp(n){v.useContext(Jt).static||v.useLayoutEffect(n)}function Oo(){let{isDataRoute:n}=v.useContext(za);return n?pb():lb()}function lb(){Ke(Qn(),"useNavigate() may be used only in the context of a component.");let n=v.useContext(Xn),{basename:c,navigator:o}=v.useContext(Jt),{matches:u}=v.useContext(za),{pathname:f}=_a(),m=JSON.stringify(Mo(u)),y=v.useRef(!1);return Cp(()=>{y.current=!0}),v.useCallback((g,p={})=>{if(ca(y.current,Tp),!y.current)return;if(typeof g=="number"){o.go(g);return}let w=Lr(g,JSON.parse(m),f,p.relative==="path");n==null&&c!=="/"&&(w.pathname=w.pathname==="/"?c:ba([c,w.pathname])),(p.replace?o.replace:o.push)(w,p.state,p)},[c,o,m,f,n])}v.createContext(null);function Wi(n,{relative:c}={}){let{matches:o}=v.useContext(za),{pathname:u}=_a(),f=JSON.stringify(Mo(o));return v.useMemo(()=>Lr(n,JSON.parse(f),u,c==="path"),[n,f,u,c])}function nb(n,c){return Ap(n,c)}function Ap(n,c,o){var B;Ke(Qn(),"useRoutes() may be used only in the context of a component.");let{navigator:u}=v.useContext(Jt),{matches:f}=v.useContext(za),m=f[f.length-1],y=m?m.params:{},j=m?m.pathname:"/",g=m?m.pathnameBase:"/",p=m&&m.route;{let X=p&&p.path||"";Dp(j,!p||X.endsWith("*")||X.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${j}" (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 w=_a(),x;if(c){let X=typeof c=="string"?en(c):c;Ke(g==="/"||((B=X.pathname)==null?void 0:B.startsWith(g)),`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 "${g}" but pathname "${X.pathname}" was given in the \`location\` prop.`),x=X}else x=w;let T=x.pathname||"/",q=T;if(g!=="/"){let X=g.replace(/^\//,"").split("/");q="/"+T.replace(/^\//,"").split("/").slice(X.length).join("/")}let M=o&&o.state.matches.length?o.state.matches.map(X=>Object.assign(X,{route:o.manifest[X.route.id]||X.route})):gp(n,{pathname:q});ca(p||M!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),ca(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.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 Y=ub(M&&M.map(X=>Object.assign({},X,{params:Object.assign({},y,X.params),pathname:ba([g,u.encodeLocation?u.encodeLocation(X.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:X.pathname]),pathnameBase:X.pathnameBase==="/"?g:ba([g,u.encodeLocation?u.encodeLocation(X.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:X.pathnameBase])})),f,o);return c&&Y?v.createElement(Fi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...x},navigationType:"POP"}},Y):Y}function ib(){let n=mb(),c=Kv(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,u="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:u},m={padding:"2px 4px",backgroundColor:u},y=null;return console.error("Error handled by React Router default ErrorBoundary:",n),y=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:m},"ErrorBoundary")," or"," ",v.createElement("code",{style:m},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},c),o?v.createElement("pre",{style:f},o):null,y)}var sb=v.createElement(ib,null),kp=class extends v.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,c){return c.location!==n.location||c.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:c.error,location:c.location,revalidation:n.revalidation||c.revalidation}}componentDidCatch(n,c){this.props.onError?this.props.onError(n,c):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 o=tb(n.digest);o&&(n=o)}let c=n!==void 0?v.createElement(za.Provider,{value:this.props.routeContext},v.createElement(Ro.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?v.createElement(rb,{error:n},c):c}};kp.contextType=Ep;var ro=new WeakMap;function rb({children:n,error:c}){let{basename:o}=v.useContext(Jt);if(typeof c=="object"&&c&&"digest"in c&&typeof c.digest=="string"){let u=eb(c.digest);if(u){let f=ro.get(c);if(f)throw f;let m=Sp(u.location,o);if(xp&&!ro.get(c))if(m.isExternal||u.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:u.replace}));throw ro.set(c,y),y}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return n}function cb({routeContext:n,match:c,children:o}){let u=v.useContext(Xn);return u&&u.static&&u.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=c.route.id),v.createElement(za.Provider,{value:n},o)}function ub(n,c=[],o){let u=o==null?void 0:o.state;if(n==null){if(!u)return null;if(u.errors)n=u.matches;else if(c.length===0&&!u.initialized&&u.matches.length>0)n=u.matches;else return null}let f=n,m=u==null?void 0:u.errors;if(m!=null){let w=f.findIndex(x=>x.route.id&&(m==null?void 0:m[x.route.id])!==void 0);Ke(w>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),f=f.slice(0,Math.min(f.length,w+1))}let y=!1,j=-1;if(o&&u){y=u.renderFallback;for(let w=0;w=0?f=f.slice(0,j+1):f=[f[0]];break}}}}let g=o==null?void 0:o.onError,p=u&&g?(w,x)=>{var T,q;g(w,{location:u.location,params:((q=(T=u.matches)==null?void 0:T[0])==null?void 0:q.params)??{},pattern:Zv(u.matches),errorInfo:x})}:void 0;return f.reduceRight((w,x,T)=>{let q,M=!1,Y=null,B=null;u&&(q=m&&x.route.id?m[x.route.id]:void 0,Y=x.route.errorElement||sb,y&&(j<0&&T===0?(Dp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),M=!0,B=null):j===T&&(M=!0,B=x.route.hydrateFallbackElement||null)));let X=c.concat(f.slice(0,T+1)),I=()=>{let J;return q?J=Y:M?J=B:x.route.Component?J=v.createElement(x.route.Component,null):x.route.element?J=x.route.element:J=w,v.createElement(cb,{match:x,routeContext:{outlet:w,matches:X,isDataRoute:u!=null},children:J})};return u&&(x.route.ErrorBoundary||x.route.errorElement||T===0)?v.createElement(kp,{location:u.location,revalidation:u.revalidation,component:Y,error:q,children:I(),routeContext:{outlet:null,matches:X,isDataRoute:!0},onError:p}):I()},null)}function Lo(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ob(n){let c=v.useContext(Xn);return Ke(c,Lo(n)),c}function db(n){let c=v.useContext(Ur);return Ke(c,Lo(n)),c}function fb(n){let c=v.useContext(za);return Ke(c,Lo(n)),c}function Uo(n){let c=fb(n),o=c.matches[c.matches.length-1];return Ke(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function hb(){return Uo("useRouteId")}function mb(){var u;let n=v.useContext(Ro),c=db("useRouteError"),o=Uo("useRouteError");return n!==void 0?n:(u=c.errors)==null?void 0:u[o]}function pb(){let{router:n}=ob("useNavigate"),c=Uo("useNavigate"),o=v.useRef(!1);return Cp(()=>{o.current=!0}),v.useCallback(async(f,m={})=>{ca(o.current,Tp),o.current&&(typeof f=="number"?await n.navigate(f):await n.navigate(f,{fromRouteId:c,...m}))},[n,c])}var Hm={};function Dp(n,c,o){!c&&!Hm[n]&&(Hm[n]=!0,ca(!1,o))}v.memo(yb);function yb({routes:n,manifest:c,future:o,state:u,isStatic:f,onError:m}){return Ap(n,void 0,{manifest:c,state:u,isStatic:f,onError:m})}function gb({to:n,replace:c,state:o,relative:u}){Ke(Qn()," may be used only in the context of a component.");let{static:f}=v.useContext(Jt);ca(!f," 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:m}=v.useContext(za),{pathname:y}=_a(),j=Oo(),g=Lr(n,Mo(m),y,u==="path"),p=JSON.stringify(g);return v.useEffect(()=>{j(JSON.parse(p),{replace:c,state:o,relative:u})},[j,p,u,c,o]),null}function So(n){Ke(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function vb({basename:n="/",children:c=null,location:o,navigationType:u="POP",navigator:f,static:m=!1,useTransitions:y}){Ke(!Qn(),"You cannot render a inside another . You should never have more than one in your app.");let j=n.replace(/^\/*/,"/"),g=v.useMemo(()=>({basename:j,navigator:f,static:m,useTransitions:y,future:{}}),[j,f,m,y]);typeof o=="string"&&(o=en(o));let{pathname:p="/",search:w="",hash:x="",state:T=null,key:q="default",mask:M}=o,Y=v.useMemo(()=>{let B=Pa(p,j);return B==null?null:{location:{pathname:B,search:w,hash:x,state:T,key:q,mask:M},navigationType:u}},[j,p,w,x,T,q,u,M]);return ca(Y!=null,` is not able to match the URL "${p}${w}${x}" because it does not start with the basename, so the won't render anything.`),Y==null?null:v.createElement(Jt.Provider,{value:g},v.createElement(Fi.Provider,{children:c,value:Y}))}function bb({children:n,location:c}){return nb(jo(n),c)}function jo(n,c=[]){let o=[];return v.Children.forEach(n,(u,f)=>{if(!v.isValidElement(u))return;let m=[...c,f];if(u.type===v.Fragment){o.push.apply(o,jo(u.props.children,m));return}Ke(u.type===So,`[${typeof u.type=="string"?u.type:u.type.name}] is not a component. All component children of must be a or `),Ke(!u.props.index||!u.props.children,"An index route cannot have child routes.");let y={id:u.props.id||m.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(y.children=jo(u.props.children,m)),o.push(y)}),o}var wr="get",Tr="application/x-www-form-urlencoded";function Hr(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function _b(n){return Hr(n)&&n.tagName.toLowerCase()==="button"}function xb(n){return Hr(n)&&n.tagName.toLowerCase()==="form"}function Sb(n){return Hr(n)&&n.tagName.toLowerCase()==="input"}function jb(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Eb(n,c){return n.button===0&&(!c||c==="_self")&&!jb(n)}var jr=null;function Nb(){if(jr===null)try{new FormData(document.createElement("form"),0),jr=!1}catch{jr=!0}return jr}var wb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function co(n){return n!=null&&!wb.has(n)?(ca(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Tr}"`),null):n}function Tb(n,c){let o,u,f,m,y;if(xb(n)){let j=n.getAttribute("action");u=j?Pa(j,c):null,o=n.getAttribute("method")||wr,f=co(n.getAttribute("enctype"))||Tr,m=new FormData(n)}else if(_b(n)||Sb(n)&&(n.type==="submit"||n.type==="image")){let j=n.form;if(j==null)throw new Error('Cannot submit a