var c2=Object.defineProperty;var f2=(n,i,s)=>i in n?c2(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s;var Dn=(n,i,s)=>f2(n,typeof i!="symbol"?i+"":i,s);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function s(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(u){if(u.ep)return;u.ep=!0;const f=s(u);fetch(u.href,f)}})();function Wr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Dc={exports:{}},Dl={};/** * @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 O0;function d2(){if(O0)return Dl;O0=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:r,key:d,ref:u!==void 0?u:null,props:f}}return Dl.Fragment=i,Dl.jsx=s,Dl.jsxs=s,Dl}var _0;function h2(){return _0||(_0=1,Dc.exports=d2()),Dc.exports}var h=h2(),kc={exports:{}},le={};/** * @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 V0;function m2(){if(V0)return le;V0=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function w(A){return A===null||typeof A!="object"?null:(A=S&&A[S]||A["@@iterator"],typeof A=="function"?A:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,M={};function D(A,Y,Z){this.props=A,this.context=Y,this.refs=M,this.updater=Z||z}D.prototype.isReactComponent={},D.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Y,"setState")},D.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function H(){}H.prototype=D.prototype;function U(A,Y,Z){this.props=A,this.context=Y,this.refs=M,this.updater=Z||z}var G=U.prototype=new H;G.constructor=U,k(G,D.prototype),G.isPureReactComponent=!0;var K=Array.isArray;function ne(){}var Q={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function ae(A,Y,Z){var W=Z.ref;return{$$typeof:n,type:A,key:Y,ref:W!==void 0?W:null,props:Z}}function I(A,Y){return ae(A.type,Y,A.props)}function fe(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function ve(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(Z){return Y[Z]})}var Ze=/\/+/g;function Ue(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?ve(""+A.key):Y.toString(36)}function we(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(ne,ne):(A.status="pending",A.then(function(Y){A.status==="pending"&&(A.status="fulfilled",A.value=Y)},function(Y){A.status==="pending"&&(A.status="rejected",A.reason=Y)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function V(A,Y,Z,W,se){var de=typeof A;(de==="undefined"||de==="boolean")&&(A=null);var je=!1;if(A===null)je=!0;else switch(de){case"bigint":case"string":case"number":je=!0;break;case"object":switch(A.$$typeof){case n:case i:je=!0;break;case x:return je=A._init,V(je(A._payload),Y,Z,W,se)}}if(je)return se=se(A),je=W===""?"."+Ue(A,0):W,K(se)?(Z="",je!=null&&(Z=je.replace(Ze,"$&/")+"/"),V(se,Y,Z,"",function(Bi){return Bi})):se!=null&&(fe(se)&&(se=I(se,Z+(se.key==null||A&&A.key===se.key?"":(""+se.key).replace(Ze,"$&/")+"/")+je)),Y.push(se)),1;je=0;var ft=W===""?".":W+":";if(K(A))for(var Ye=0;Ye>>1,ge=V[oe];if(0>>1;oeu(Z,F))Wu(se,Z)?(V[oe]=se,V[W]=F,oe=W):(V[oe]=Z,V[Y]=F,oe=Y);else if(Wu(se,F))V[oe]=se,V[W]=F,oe=W;else break e}}return X}function u(V,X){var F=V.sortIndex-X.sortIndex;return F!==0?F:V.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var p=[],y=[],x=1,v=null,S=3,w=!1,z=!1,k=!1,M=!1,D=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function G(V){for(var X=s(y);X!==null;){if(X.callback===null)r(y);else if(X.startTime<=V)r(y),X.sortIndex=X.expirationTime,i(p,X);else break;X=s(y)}}function K(V){if(k=!1,G(V),!z)if(s(p)!==null)z=!0,ne||(ne=!0,ve());else{var X=s(y);X!==null&&we(K,X.startTime-V)}}var ne=!1,Q=-1,P=5,ae=-1;function I(){return M?!0:!(n.unstable_now()-aeV&&I());){var oe=v.callback;if(typeof oe=="function"){v.callback=null,S=v.priorityLevel;var ge=oe(v.expirationTime<=V);if(V=n.unstable_now(),typeof ge=="function"){v.callback=ge,G(V),X=!0;break t}v===s(p)&&r(p),G(V)}else r(p);v=s(p)}if(v!==null)X=!0;else{var A=s(y);A!==null&&we(K,A.startTime-V),X=!1}}break e}finally{v=null,S=F,w=!1}X=void 0}}finally{X?ve():ne=!1}}}var ve;if(typeof U=="function")ve=function(){U(fe)};else if(typeof MessageChannel<"u"){var Ze=new MessageChannel,Ue=Ze.port2;Ze.port1.onmessage=fe,ve=function(){Ue.postMessage(null)}}else ve=function(){D(fe,0)};function we(V,X){Q=D(function(){V(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(V){V.callback=null},n.unstable_forceFrameRate=function(V){0>V||125oe?(V.sortIndex=F,i(y,V),s(p)===null&&V===s(y)&&(k?(H(Q),Q=-1):k=!0,we(K,F-oe))):(V.sortIndex=ge,i(p,V),z||w||(z=!0,ne||(ne=!0,ve()))),V},n.unstable_shouldYield=I,n.unstable_wrapCallback=function(V){var X=S;return function(){var F=S;S=X;try{return V.apply(this,arguments)}finally{S=F}}}})(Vc)),Vc}var B0;function y2(){return B0||(B0=1,_c.exports=p2()),_c.exports}var Lc={exports:{}},ct={};/** * @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 H0;function g2(){if(H0)return ct;H0=1;var n=Zf();function i(p){var y="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Lc.exports=g2(),Lc.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 Y0;function v2(){if(Y0)return kl;Y0=1;var n=y2(),i=Zf(),s=x2();function r(e){var t="https://react.dev/errors/"+e;if(1ge||(e.current=oe[ge],oe[ge]=null,ge--)}function Z(e,t){ge++,oe[ge]=e.current,e.current=t}var W=A(null),se=A(null),de=A(null),je=A(null);function ft(e,t){switch(Z(de,t),Z(se,e),Z(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?a0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=a0(t),e=i0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(W),Z(W,e)}function Ye(){Y(W),Y(se),Y(de)}function Bi(e){e.memoizedState!==null&&Z(je,e);var t=W.current,a=i0(t,e.type);t!==a&&(Z(se,e),Z(W,a))}function ts(e){se.current===e&&(Y(W),Y(se)),je.current===e&&(Y(je),Nl._currentValue=F)}var mo,kd;function ha(e){if(mo===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);mo=t&&t[1]||"",kd=-1)":-1o||T[l]!==R[o]){var L=` `+T[l].replace(" at new "," at ");return e.displayName&&L.includes("")&&(L=L.replace("",e.displayName)),L}while(1<=l&&0<=o);break}}}finally{po=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ha(a):""}function qv(e,t){switch(e.tag){case 26:case 27:case 5:return ha(e.type);case 16:return ha("Lazy");case 13:return e.child!==t&&t!==null?ha("Suspense Fallback"):ha("Suspense");case 19:return ha("SuspenseList");case 0:case 15:return yo(e.type,!1);case 11:return yo(e.type.render,!1);case 1:return yo(e.type,!0);case 31:return ha("Activity");default:return""}}function Od(e){try{var t="",a=null;do t+=qv(e,a),a=e,e=e.return;while(e);return t}catch(l){return` Error generating stack: `+l.message+` `+l.stack}}var go=Object.prototype.hasOwnProperty,xo=n.unstable_scheduleCallback,vo=n.unstable_cancelCallback,Yv=n.unstable_shouldYield,Gv=n.unstable_requestPaint,Tt=n.unstable_now,Kv=n.unstable_getCurrentPriorityLevel,_d=n.unstable_ImmediatePriority,Vd=n.unstable_UserBlockingPriority,ns=n.unstable_NormalPriority,Xv=n.unstable_LowPriority,Ld=n.unstable_IdlePriority,Zv=n.log,Qv=n.unstable_setDisableYieldValue,Hi=null,wt=null;function _n(e){if(typeof Zv=="function"&&Qv(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(Hi,e)}catch{}}var jt=Math.clz32?Math.clz32:Jv,Pv=Math.log,Fv=Math.LN2;function Jv(e){return e>>>=0,e===0?32:31-(Pv(e)/Fv|0)|0}var as=256,is=262144,ls=4194304;function ma(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 ss(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var b=l&134217727;return b!==0?(l=b&~c,l!==0?o=ma(l):(g&=b,g!==0?o=ma(g):a||(a=b&~e,a!==0&&(o=ma(a))))):(b=l&~c,b!==0?o=ma(b):g!==0?o=ma(g):a||(a=l&~e,a!==0&&(o=ma(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function qi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $v(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 Ud(){var e=ls;return ls<<=1,(ls&62914560)===0&&(ls=4194304),e}function bo(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Yi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Wv(e,t,a,l,o,c){var g=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 b=e.entanglements,T=e.expirationTimes,R=e.hiddenUpdates;for(a=g&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ib=/[\n"\\]/g;function _t(e){return e.replace(ib,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ao(e,t,a,l,o,c,g,b){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ot(t)):e.value!==""+Ot(t)&&(e.value=""+Ot(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?zo(e,g,Ot(t)):a!=null?zo(e,g,Ot(a)):l!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Ot(b):e.removeAttribute("name")}function $d(e,t,a,l,o,c,g,b){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Eo(e);return}a=a!=null?""+Ot(a):"",t=t!=null?""+Ot(t):a,b||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=b?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),Eo(e)}function zo(e,t,a){t==="number"&&us(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Xa(e,t,a,l){if(e=e.options,t){t={};for(var o=0;o"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Do=!1;if(yn)try{var Zi={};Object.defineProperty(Zi,"passive",{get:function(){Do=!0}}),window.addEventListener("test",Zi,Zi),window.removeEventListener("test",Zi,Zi)}catch{Do=!1}var Ln=null,ko=null,fs=null;function ih(){if(fs)return fs;var e,t=ko,a=t.length,l,o="value"in Ln?Ln.value:Ln.textContent,c=o.length;for(e=0;e=Fi),ch=" ",fh=!1;function dh(e,t){switch(e){case"keyup":return Db.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function Ob(e,t){switch(e){case"compositionend":return hh(t);case"keypress":return t.which!==32?null:(fh=!0,ch);case"textInput":return e=t.data,e===ch&&fh?null:e;default:return null}}function _b(e,t){if(Fa)return e==="compositionend"||!Uo&&dh(e,t)?(e=ih(),fs=ko=Ln=null,Fa=!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=Sh(a)}}function wh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=us(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=us(e.document)}return t}function qo(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 Gb=yn&&"documentMode"in document&&11>=document.documentMode,Ja=null,Yo=null,Ii=null,Go=!1;function Eh(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Go||Ja==null||Ja!==us(l)||(l=Ja,"selectionStart"in l&&qo(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}),Ii&&Wi(Ii,l)||(Ii=l,l=ir(Yo,"onSelect"),0>=g,o-=g,ln=1<<32-jt(t)+o|a<ue?(ye=ee,ee=null):ye=ee.sibling;var Se=O(N,ee,C[ue],B);if(Se===null){ee===null&&(ee=ye);break}e&&ee&&Se.alternate===null&&t(N,ee),E=c(Se,E,ue),be===null?te=Se:be.sibling=Se,be=Se,ee=ye}if(ue===C.length)return a(N,ee),xe&&xn(N,ue),te;if(ee===null){for(;ueue?(ye=ee,ee=null):ye=ee.sibling;var la=O(N,ee,Se.value,B);if(la===null){ee===null&&(ee=ye);break}e&&ee&&la.alternate===null&&t(N,ee),E=c(la,E,ue),be===null?te=la:be.sibling=la,be=la,ee=ye}if(Se.done)return a(N,ee),xe&&xn(N,ue),te;if(ee===null){for(;!Se.done;ue++,Se=C.next())Se=q(N,Se.value,B),Se!==null&&(E=c(Se,E,ue),be===null?te=Se:be.sibling=Se,be=Se);return xe&&xn(N,ue),te}for(ee=l(ee);!Se.done;ue++,Se=C.next())Se=_(ee,N,ue,Se.value,B),Se!==null&&(e&&Se.alternate!==null&&ee.delete(Se.key===null?ue:Se.key),E=c(Se,E,ue),be===null?te=Se:be.sibling=Se,be=Se);return e&&ee.forEach(function(u2){return t(N,u2)}),xe&&xn(N,ue),te}function Ce(N,E,C,B){if(typeof C=="object"&&C!==null&&C.type===k&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case w:e:{for(var te=C.key;E!==null;){if(E.key===te){if(te=C.type,te===k){if(E.tag===7){a(N,E.sibling),B=o(E,C.props.children),B.return=N,N=B;break e}}else if(E.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===P&&Ea(te)===E.type){a(N,E.sibling),B=o(E,C.props),ll(B,C),B.return=N,N=B;break e}a(N,E);break}else t(N,E);E=E.sibling}C.type===k?(B=ba(C.props.children,N.mode,B,C.key),B.return=N,N=B):(B=Ss(C.type,C.key,C.props,null,N.mode,B),ll(B,C),B.return=N,N=B)}return g(N);case z:e:{for(te=C.key;E!==null;){if(E.key===te)if(E.tag===4&&E.stateNode.containerInfo===C.containerInfo&&E.stateNode.implementation===C.implementation){a(N,E.sibling),B=o(E,C.children||[]),B.return=N,N=B;break e}else{a(N,E);break}else t(N,E);E=E.sibling}B=Jo(C,N.mode,B),B.return=N,N=B}return g(N);case P:return C=Ea(C),Ce(N,E,C,B)}if(we(C))return J(N,E,C,B);if(ve(C)){if(te=ve(C),typeof te!="function")throw Error(r(150));return C=te.call(C),ie(N,E,C,B)}if(typeof C.then=="function")return Ce(N,E,Ns(C),B);if(C.$$typeof===U)return Ce(N,E,js(N,C),B);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),B=o(E,C),B.return=N,N=B):(a(N,E),B=Fo(C,N.mode,B),B.return=N,N=B),g(N)):a(N,E)}return function(N,E,C,B){try{il=0;var te=Ce(N,E,C,B);return ri=null,te}catch(ee){if(ee===si||ee===As)throw ee;var be=At(29,ee,null,N.mode);return be.lanes=B,be.return=N,be}finally{}}}var za=Ph(!0),Fh=Ph(!1),Yn=!1;function ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function uu(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 Gn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Kn(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Te&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=bs(e),Dh(e,null,a),t}return vs(e,l,t,a),bs(e)}function sl(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,Hd(e,a)}}function cu(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=g:c=c.next=g,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,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 fu=!1;function rl(){if(fu){var e=li;if(e!==null)throw e}}function ol(e,t,a,l){fu=!1;var o=e.updateQueue;Yn=!1;var c=o.firstBaseUpdate,g=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var T=b,R=T.next;T.next=null,g===null?c=R:g.next=R,g=T;var L=e.alternate;L!==null&&(L=L.updateQueue,b=L.lastBaseUpdate,b!==g&&(b===null?L.firstBaseUpdate=R:b.next=R,L.lastBaseUpdate=T))}if(c!==null){var q=o.baseState;g=0,L=R=T=null,b=c;do{var O=b.lane&-536870913,_=O!==b.lane;if(_?(pe&O)===O:(l&O)===O){O!==0&&O===ii&&(fu=!0),L!==null&&(L=L.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var J=e,ie=b;O=t;var Ce=a;switch(ie.tag){case 1:if(J=ie.payload,typeof J=="function"){q=J.call(Ce,q,O);break e}q=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ie.payload,O=typeof J=="function"?J.call(Ce,q,O):J,O==null)break e;q=v({},q,O);break e;case 2:Yn=!0}}O=b.callback,O!==null&&(e.flags|=64,_&&(e.flags|=8192),_=o.callbacks,_===null?o.callbacks=[O]:_.push(O))}else _={lane:O,tag:b.tag,payload:b.payload,callback:b.callback,next:null},L===null?(R=L=_,T=q):L=L.next=_,g|=O;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;_=b,b=_.next,_.next=null,o.lastBaseUpdate=_,o.shared.pending=null}}while(!0);L===null&&(T=q),o.baseState=T,o.firstBaseUpdate=R,o.lastBaseUpdate=L,c===null&&(o.shared.lanes=0),Fn|=g,e.lanes=g,e.memoizedState=q}}function Jh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function $h(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;ec?c:8;var g=V.T,b={};V.T=b,Cu(e,!1,t,a);try{var T=o(),R=V.S;if(R!==null&&R(b,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var L=Wb(T,l);fl(e,t,L,Rt(e))}else fl(e,t,l,Rt(e))}catch(q){fl(e,t,{then:function(){},status:"rejected",reason:q},Rt())}finally{X.p=c,g!==null&&b.types!==null&&(g.types=b.types),V.T=g}}function i1(){}function Nu(e,t,a,l){if(e.tag!==5)throw Error(r(476));var o=Mm(e).queue;Nm(e,o,t,F,a===null?i1:function(){return Cm(e),a(l)})}function Mm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tn,lastRenderedState:F},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cm(e){var t=Mm(e);t.next===null&&(t=e.alternate.memoizedState),fl(e,t.next.queue,{},Rt())}function Mu(){return it(Nl)}function Rm(){return Ke().memoizedState}function Dm(){return Ke().memoizedState}function l1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=Gn(a);var l=Kn(t,e,a);l!==null&&(St(l,t,a),sl(l,t,a)),t={cache:iu()},e.payload=t;return}t=t.return}}function s1(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bs(e)?Om(t,a):(a=Qo(e,t,a,l),a!==null&&(St(a,e,l),_m(a,t,l)))}function km(e,t,a){var l=Rt();fl(e,t,a,l)}function fl(e,t,a,l){var o={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Om(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,b=c(g,a);if(o.hasEagerState=!0,o.eagerState=b,Et(b,g))return vs(e,t,o,0),Re===null&&xs(),!1}catch{}finally{}if(a=Qo(e,t,o,l),a!==null)return St(a,e,l),_m(a,t,l),!0}return!1}function Cu(e,t,a,l){if(l={lane:2,revertLane:oc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(r(479))}else t=Qo(e,a,l,2),t!==null&&St(t,e,2)}function Bs(e){var t=e.alternate;return e===re||t!==null&&t===re}function Om(e,t){ui=Ds=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function _m(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Hd(e,a)}}var dl={readContext:it,use:_s,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useLayoutEffect:Be,useInsertionEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useSyncExternalStore:Be,useId:Be,useHostTransitionStatus:Be,useFormState:Be,useActionState:Be,useOptimistic:Be,useMemoCache:Be,useCacheRefresh:Be};dl.useEffectEvent=Be;var Vm={readContext:it,use:_s,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:vm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ls(4194308,4,wm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ls(4194308,4,e,t)},useInsertionEffect:function(e,t){Ls(4,2,e,t)},useMemo:function(e,t){var a=dt();t=t===void 0?null:t;var l=e();if(Na){_n(!0);try{e()}finally{_n(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=dt();if(a!==void 0){var o=a(t);if(Na){_n(!0);try{a(t)}finally{_n(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=s1.bind(null,re,e),[l.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=wu(e);var t=e.queue,a=km.bind(null,re,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Au,useDeferredValue:function(e,t){var a=dt();return zu(a,e,t)},useTransition:function(){var e=wu(!1);return e=Nm.bind(null,re,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=re,o=dt();if(xe){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Re===null)throw Error(r(349));(pe&127)!==0||am(l,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,vm(lm.bind(null,l,c,e),[e]),l.flags|=2048,fi(9,{destroy:void 0},im.bind(null,l,c,a,t),null),a},useId:function(){var e=dt(),t=Re.identifierPrefix;if(xe){var a=sn,l=ln;a=(l&~(1<<32-jt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=ks++,0<\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?g.createElement(o,{is:l.is}):g.createElement(o)}}c[nt]=t,c[pt]=l;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=c;e:switch(st(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&jn(t)}}return Oe(t),Ku(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&jn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=de.current,ni(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,o=at,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[nt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||t0(e.nodeValue,a)),e||Hn(t,!0)}else e=lr(e).createTextNode(l),e[nt]=t,t.stateNode=e}return Oe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=ni(t),a!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[nt]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else a=eu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Nt(t),t):(Nt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Oe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=ni(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[nt]=t}else Sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),o=!1}else o=eu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Nt(t),t):(Nt(t),null)}return Nt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ks(t,t.updateQueue),Oe(t),null);case 4:return Ye(),e===null&&dc(t.stateNode.containerInfo),Oe(t),null;case 10:return bn(t.type),Oe(t),null;case 19:if(Y(Ge),l=t.memoizedState,l===null)return Oe(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)ml(l,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Rs(e),c!==null){for(t.flags|=128,ml(l,!1),e=c.updateQueue,t.updateQueue=e,Ks(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)kh(a,e),a=a.sibling;return Z(Ge,Ge.current&1|2),xe&&xn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Tt()>Fs&&(t.flags|=128,o=!0,ml(l,!1),t.lanes=4194304)}else{if(!o)if(e=Rs(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Ks(t,e),ml(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!xe)return Oe(t),null}else 2*Tt()-l.renderingStartTime>Fs&&a!==536870912&&(t.flags|=128,o=!0,ml(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Tt(),e.sibling=null,a=Ge.current,Z(Ge,o?a&1|2:a&1),xe&&xn(t,l.treeForkCount),e):(Oe(t),null);case 22:case 23:return Nt(t),hu(),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&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),a=t.updateQueue,a!==null&&Ks(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&&Y(ja),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),bn(Qe),Oe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function f1(e,t){switch(Wo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bn(Qe),Ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ts(t),null;case 31:if(t.memoizedState!==null){if(Nt(t),t.alternate===null)throw Error(r(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Nt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Ge),null;case 4:return Ye(),null;case 10:return bn(t.type),null;case 22:case 23:return Nt(t),hu(),e!==null&&Y(ja),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return bn(Qe),null;case 25:return null;default:return null}}function sp(e,t){switch(Wo(t),t.tag){case 3:bn(Qe),Ye();break;case 26:case 27:case 5:ts(t);break;case 4:Ye();break;case 31:t.memoizedState!==null&&Nt(t);break;case 13:Nt(t);break;case 19:Y(Ge);break;case 10:bn(t.type);break;case 22:case 23:Nt(t),hu(),e!==null&&Y(ja);break;case 24:bn(Qe)}}function pl(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var c=a.create,g=a.inst;l=c(),g.destroy=l}a=a.next}while(a!==o)}}catch(b){ze(t,t.return,b)}}function Qn(e,t,a){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var g=l.inst,b=g.destroy;if(b!==void 0){g.destroy=void 0,o=t;var T=a,R=b;try{R()}catch(L){ze(o,T,L)}}}l=l.next}while(l!==c)}}catch(L){ze(t,t.return,L)}}function rp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{$h(t,a)}catch(l){ze(e,e.return,l)}}}function op(e,t,a){a.props=Ma(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){ze(e,t,l)}}function yl(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(o){ze(e,t,o)}}function rn(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){ze(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){ze(e,t,o)}else a.current=null}function up(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(o){ze(e,e.return,o)}}function Xu(e,t,a){try{var l=e.stateNode;k1(l,e.type,a,t),l[pt]=t}catch(o){ze(e,e.return,o)}}function cp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ea(e.type)||e.tag===4}function Zu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ea(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qu(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=pn));else if(l!==4&&(l===27&&ea(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Qu(e,t,a),e=e.sibling;e!==null;)Qu(e,t,a),e=e.sibling}function Xs(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&&ea(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Xs(e,t,a),e=e.sibling;e!==null;)Xs(e,t,a),e=e.sibling}function fp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);st(t,l,a),t[nt]=e,t[pt]=a}catch(c){ze(e,e.return,c)}}var En=!1,Je=!1,Pu=!1,dp=typeof WeakSet=="function"?WeakSet:Set,tt=null;function d1(e,t){if(e=e.containerInfo,pc=dr,e=jh(e),qo(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 o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var g=0,b=-1,T=-1,R=0,L=0,q=e,O=null;t:for(;;){for(var _;q!==a||o!==0&&q.nodeType!==3||(b=g+o),q!==c||l!==0&&q.nodeType!==3||(T=g+l),q.nodeType===3&&(g+=q.nodeValue.length),(_=q.firstChild)!==null;)O=q,q=_;for(;;){if(q===e)break t;if(O===a&&++R===o&&(b=g),O===c&&++L===l&&(T=g),(_=q.nextSibling)!==null)break;q=O,O=q.parentNode}q=_}a=b===-1||T===-1?null:{start:b,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(yc={focusedElem:e,selectionRange:a},dr=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,c=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"))),st(c,l,a),c[nt]=e,et(c),l=c;break e;case"link":var g=x0("link","href",o).get(l+(a.href||""));if(g){for(var b=0;bCe&&(g=Ce,Ce=ie,ie=g);var N=Th(b,ie),E=Th(b,Ce);if(N&&E&&(_.rangeCount!==1||_.anchorNode!==N.node||_.anchorOffset!==N.offset||_.focusNode!==E.node||_.focusOffset!==E.offset)){var C=q.createRange();C.setStart(N.node,N.offset),_.removeAllRanges(),ie>Ce?(_.addRange(C),_.extend(E.node,E.offset)):(C.setEnd(E.node,E.offset),_.addRange(C))}}}}for(q=[],_=b;_=_.parentNode;)_.nodeType===1&&q.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;ba?32:a,V.T=null,a=tc,tc=null;var c=$n,g=Cn;if(We=0,yi=$n=null,Cn=0,(Te&6)!==0)throw Error(r(331));var b=Te;if(Te|=4,wp(c.current),bp(c,c.current,g,a),Te=b,Tl(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(Hi,c)}catch{}return!0}finally{X.p=o,V.T=l,qp(e,t)}}function Gp(e,t,a){t=Lt(a,t),t=Ou(e.stateNode,t,2),e=Kn(e,t,2),e!==null&&(Yi(e,2),on(e))}function ze(e,t,a){if(e.tag===3)Gp(e,e,a);else for(;t!==null;){if(t.tag===3){Gp(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Jn===null||!Jn.has(l))){e=Lt(a,e),a=Km(2),l=Kn(t,a,2),l!==null&&(Xm(a,l,t,e),Yi(l,2),on(l));break}}t=t.return}}function lc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new p1;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(a)||($u=!0,o.add(a),e=b1.bind(null,e,t,a),t.then(e,e))}function b1(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Re===e&&(pe&a)===a&&(He===4||He===3&&(pe&62914560)===pe&&300>Tt()-Ps?(Te&2)===0&&gi(e,0):Wu|=a,pi===pe&&(pi=0)),on(e)}function Kp(e,t){t===0&&(t=Ud()),e=va(e,t),e!==null&&(Yi(e,t),on(e))}function S1(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Kp(e,a)}function T1(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Kp(e,a)}function w1(e,t){return xo(e,t)}var tr=null,vi=null,sc=!1,nr=!1,rc=!1,In=0;function on(e){e!==vi&&e.next===null&&(vi===null?tr=vi=e:vi=vi.next=e),nr=!0,sc||(sc=!0,E1())}function Tl(e,t){if(!rc&&nr){rc=!0;do for(var a=!1,l=tr;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var g=l.suspendedLanes,b=l.pingedLanes;c=(1<<31-jt(42|e)+1)-1,c&=o&~(g&~b),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Pp(l,c))}else c=pe,c=ss(l,l===Re?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||qi(l,c)||(a=!0,Pp(l,c));l=l.next}while(a);rc=!1}}function j1(){Xp()}function Xp(){nr=sc=!1;var e=0;In!==0&&_1()&&(e=In);for(var t=Tt(),a=null,l=tr;l!==null;){var o=l.next,c=Zp(l,t);c===0?(l.next=null,a===null?tr=o:a.next=o,o===null&&(vi=a)):(a=l,(e!==0||(c&3)!==0)&&(nr=!0)),l=o}We!==0&&We!==5||Tl(e),In!==0&&(In=0)}function Zp(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0b)break;var L=T.transferSize,q=T.initiatorType;L&&n0(q)&&(T=T.responseEnd,g+=L*(T"u"?null:document;function m0(e,t,a){var l=bi;if(l&&typeof t=="string"&&t){var o=_t(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),h0.has(o)||(h0.add(o),e={rel:e,crossOrigin:a,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),st(t,"link",e),et(t),l.head.appendChild(t)))}}function K1(e){Rn.D(e),m0("dns-prefetch",e,null)}function X1(e,t){Rn.C(e,t),m0("preconnect",e,t)}function Z1(e,t,a){Rn.L(e,t,a);var l=bi;if(l&&e&&t){var o='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+_t(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+_t(a.imageSizes)+'"]')):o+='[href="'+_t(e)+'"]';var c=o;switch(t){case"style":c=Si(e);break;case"script":c=Ti(e)}Gt.has(c)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Gt.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Al(c))||t==="script"&&l.querySelector(zl(c))||(t=l.createElement("link"),st(t,"link",e),et(t),l.head.appendChild(t)))}}function Q1(e,t){Rn.m(e,t);var a=bi;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+_t(l)+'"][href="'+_t(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ti(e)}if(!Gt.has(c)&&(e=v({rel:"modulepreload",href:e},t),Gt.set(c,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(zl(c)))return}l=a.createElement("link"),st(l,"link",e),et(l),a.head.appendChild(l)}}}function P1(e,t,a){Rn.S(e,t,a);var l=bi;if(l&&e){var o=Ga(l).hoistableStyles,c=Si(e);t=t||"default";var g=o.get(c);if(!g){var b={loading:0,preload:null};if(g=l.querySelector(Al(c)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Gt.get(c))&&wc(e,a);var T=g=l.createElement("link");et(T),st(T,"link",e),T._p=new Promise(function(R,L){T.onload=R,T.onerror=L}),T.addEventListener("load",function(){b.loading|=1}),T.addEventListener("error",function(){b.loading|=2}),b.loading|=4,rr(g,t,l)}g={type:"stylesheet",instance:g,count:1,state:b},o.set(c,g)}}}function F1(e,t){Rn.X(e,t);var a=bi;if(a&&e){var l=Ga(a).hoistableScripts,o=Ti(e),c=l.get(o);c||(c=a.querySelector(zl(o)),c||(e=v({src:e,async:!0},t),(t=Gt.get(o))&&jc(e,t),c=a.createElement("script"),et(c),st(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function J1(e,t){Rn.M(e,t);var a=bi;if(a&&e){var l=Ga(a).hoistableScripts,o=Ti(e),c=l.get(o);c||(c=a.querySelector(zl(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Gt.get(o))&&jc(e,t),c=a.createElement("script"),et(c),st(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function p0(e,t,a,l){var o=(o=de.current)?sr(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Si(a.href),a=Ga(o).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=Si(a.href);var c=Ga(o).hoistableStyles,g=c.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=o.querySelector(Al(e)))&&!c._p&&(g.instance=c,g.state.loading=5),Gt.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},Gt.set(e,a),c||$1(o,e,a,g.state))),t&&l===null)throw Error(r(528,""));return g}if(t&&l!==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=Ti(a),a=Ga(o).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(r(444,e))}}function Si(e){return'href="'+_t(e)+'"'}function Al(e){return'link[rel="stylesheet"]['+e+"]"}function y0(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function $1(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}),st(t,"link",a),et(t),e.head.appendChild(t))}function Ti(e){return'[src="'+_t(e)+'"]'}function zl(e){return"script[async]"+e}function g0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+_t(a.href)+'"]');if(l)return t.instance=l,et(l),l;var o=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),et(l),st(l,"style",o),rr(l,a.precedence,e),t.instance=l;case"stylesheet":o=Si(a.href);var c=e.querySelector(Al(o));if(c)return t.state.loading|=4,t.instance=c,et(c),c;l=y0(a),(o=Gt.get(o))&&wc(l,o),c=(e.ownerDocument||e).createElement("link"),et(c);var g=c;return g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),st(c,"link",l),t.state.loading|=4,rr(c,a.precedence,e),t.instance=c;case"script":return c=Ti(a.src),(o=e.querySelector(zl(c)))?(t.instance=o,et(o),o):(l=a,(o=Gt.get(c))&&(l=v({},a),jc(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),et(o),st(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,rr(l,a.precedence,e));return t.instance}function rr(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,g=0;g title"):null)}function W1(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 b0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function I1(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 o=Si(l.href),c=t.querySelector(Al(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ur.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,et(c);return}c=t.ownerDocument||t,l=y0(l),(o=Gt.get(o))&&wc(l,o),c=c.createElement("link"),et(c);var g=c;g._p=new Promise(function(b,T){g.onload=b,g.onerror=T}),st(c,"link",l),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ur.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Ec=0;function e2(e,t){return e.stylesheets&&e.count===0&&fr(e,e.stylesheets),0Ec?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function ur(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cr=null;function fr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,cr=new Map,t.forEach(t2,e),cr=null,ur.call(e))}function t2(e,t){if(!(t.state.loading&4)){var a=cr.get(e);if(a)var l=a.get(null);else{a=new Map,cr.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Oc.exports=v2(),Oc.exports}var S2=b2();/** * react-router v7.14.2 * * 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 K0="popstate";function X0(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function T2(n={}){function i(r,u){var y;let f=(y=u.state)==null?void 0:y.masked,{pathname:d,search:m,hash:p}=f||r.location;return df("",{pathname:d,search:m,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function s(r,u){return typeof u=="string"?u:Gl(u)}return j2(i,s,null,n)}function Le(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function tn(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function w2(){return Math.random().toString(36).substring(2,10)}function Z0(n,i){return{usr:n.state,key:n.key,idx:i,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function df(n,i,s=null,r,u){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?ki(i):i,state:s,key:i&&i.key||r||w2(),unstable_mask:u}}function Gl({pathname:n="/",search:i="",hash:s=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function ki(n){let i={};if(n){let s=n.indexOf("#");s>=0&&(i.hash=n.substring(s),n=n.substring(0,s));let r=n.indexOf("?");r>=0&&(i.search=n.substring(r),n=n.substring(0,r)),n&&(i.pathname=n)}return i}function j2(n,i,s,r={}){let{window:u=document.defaultView,v5Compat:f=!1}=r,d=u.history,m="POP",p=null,y=x();y==null&&(y=0,d.replaceState({...d.state,idx:y},""));function x(){return(d.state||{idx:null}).idx}function v(){m="POP";let M=x(),D=M==null?null:M-y;y=M,p&&p({action:m,location:k.location,delta:D})}function S(M,D){m="PUSH";let H=X0(M)?M:df(k.location,M,D);y=x()+1;let U=Z0(H,y),G=k.createHref(H.unstable_mask||H);try{d.pushState(U,"",G)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;u.location.assign(G)}f&&p&&p({action:m,location:k.location,delta:1})}function w(M,D){m="REPLACE";let H=X0(M)?M:df(k.location,M,D);y=x();let U=Z0(H,y),G=k.createHref(H.unstable_mask||H);d.replaceState(U,"",G),f&&p&&p({action:m,location:k.location,delta:0})}function z(M){return E2(M)}let k={get action(){return m},get location(){return n(u,d)},listen(M){if(p)throw new Error("A history only accepts one active listener");return u.addEventListener(K0,v),p=M,()=>{u.removeEventListener(K0,v),p=null}},createHref(M){return i(u,M)},createURL:z,encodeLocation(M){let D=z(M);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:S,replace:w,go(M){return d.go(M)}};return k}function E2(n,i=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Le(s,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:Gl(n);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=s+r),new URL(r,s)}function Eg(n,i,s="/"){return A2(n,i,s,!1)}function A2(n,i,s,r){let u=typeof i=="string"?ki(i):i,f=kn(u.pathname||"/",s);if(f==null)return null;let d=Ag(n);z2(d);let m=null;for(let p=0;m==null&&p{let x={relativePath:y===void 0?d.path||"":y,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(r)&&p)return;Le(x.relativePath.startsWith(r),`Absolute route path "${x.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(r.length)}let v=It([r,x.relativePath]),S=s.concat(x);d.children&&d.children.length>0&&(Le(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Ag(d.children,i,S,v,p)),!(d.path==null&&!d.index)&&i.push({path:v,score:O2(v,d.index),routesMeta:S})};return n.forEach((d,m)=>{var p;if(d.path===""||!((p=d.path)!=null&&p.includes("?")))f(d,m);else for(let y of zg(d.path))f(d,m,!0,y)}),i}function zg(n){let i=n.split("/");if(i.length===0)return[];let[s,...r]=i,u=s.endsWith("?"),f=s.replace(/\?$/,"");if(r.length===0)return u?[f,""]:[f];let d=zg(r.join("/")),m=[];return m.push(...d.map(p=>p===""?f:[f,p].join("/"))),u&&m.push(...d),m.map(p=>n.startsWith("/")&&p===""?"/":p)}function z2(n){n.sort((i,s)=>i.score!==s.score?s.score-i.score:_2(i.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var N2=/^:[\w-]+$/,M2=3,C2=2,R2=1,D2=10,k2=-2,Q0=n=>n==="*";function O2(n,i){let s=n.split("/"),r=s.length;return s.some(Q0)&&(r+=k2),i&&(r+=C2),s.filter(u=>!Q0(u)).reduce((u,f)=>u+(N2.test(f)?M2:f===""?R2:D2),r)}function _2(n,i){return n.length===i.length&&n.slice(0,-1).every((r,u)=>r===i[u])?n[n.length-1]-i[i.length-1]:0}function V2(n,i,s=!1){let{routesMeta:r}=n,u={},f="/",d=[];for(let m=0;m{if(x==="*"){let z=m[S]||"";d=f.slice(0,f.length-z.length).replace(/(.)\/+$/,"$1")}const w=m[S];return v&&!w?y[x]=void 0:y[x]=(w||"").replace(/%2F/g,"/"),y},{}),pathname:f,pathnameBase:d,pattern:n}}function L2(n,i=!1,s=!0){tn(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=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,p,y,x)=>{if(r.push({paramName:m,isOptional:p!=null}),p){let v=x.charAt(y+d.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(r.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,i?void 0:"i"),r]}function U2(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return tn(!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 (${i}).`),n}}function kn(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,r=n.charAt(s);return r&&r!=="/"?null:n.slice(s)||"/"}var B2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function H2(n,i="/"){let{pathname:s,search:r="",hash:u=""}=typeof n=="string"?ki(n):n,f;return s?(s=Ng(s),s.startsWith("/")?f=P0(s.substring(1),"/"):f=P0(s,i)):f=i,{pathname:f,search:G2(r),hash:K2(u)}}function P0(n,i){let s=Br(i).split("/");return n.split("/").forEach(u=>{u===".."?s.length>1&&s.pop():u!=="."&&s.push(u)}),s.length>1?s.join("/"):"/"}function Uc(n,i,s,r){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` 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 q2(n){return n.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function Qf(n){let i=q2(n);return i.map((s,r)=>r===i.length-1?s.pathname:s.pathnameBase)}function Ir(n,i,s,r=!1){let u;typeof n=="string"?u=ki(n):(u={...n},Le(!u.pathname||!u.pathname.includes("?"),Uc("?","pathname","search",u)),Le(!u.pathname||!u.pathname.includes("#"),Uc("#","pathname","hash",u)),Le(!u.search||!u.search.includes("#"),Uc("#","search","hash",u)));let f=n===""||u.pathname==="",d=f?"/":u.pathname,m;if(d==null)m=s;else{let v=i.length-1;if(!r&&d.startsWith("..")){let S=d.split("/");for(;S[0]==="..";)S.shift(),v-=1;u.pathname=S.join("/")}m=v>=0?i[v]:"/"}let p=H2(u,m),y=d&&d!=="/"&&d.endsWith("/"),x=(f||d===".")&&s.endsWith("/");return!p.pathname.endsWith("/")&&(y||x)&&(p.pathname+="/"),p}var Ng=n=>n.replace(/\/\/+/g,"/"),It=n=>Ng(n.join("/")),Br=n=>n.replace(/\/+$/,""),Y2=n=>Br(n).replace(/^\/*/,"/"),G2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,K2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,X2=class{constructor(n,i,s,r=!1){this.status=n,this.statusText=i||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function Z2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Q2(n){let i=n.map(s=>s.route.path).filter(Boolean);return It(i)||"/"}var Mg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Cg(n,i){let s=n;if(typeof s!="string"||!B2.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let r=s,u=!1;if(Mg)try{let f=new URL(window.location.href),d=s.startsWith("//")?new URL(f.protocol+s):new URL(s),m=kn(d.pathname,i);d.origin===f.origin&&m!=null?s=m+d.search+d.hash:u=!0}catch{tn(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:u,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Rg=["POST","PUT","PATCH","DELETE"];new Set(Rg);var P2=["GET",...Rg];new Set(P2);var Oi=j.createContext(null);Oi.displayName="DataRouter";var eo=j.createContext(null);eo.displayName="DataRouterState";var Dg=j.createContext(!1);function F2(){return j.useContext(Dg)}var kg=j.createContext({isTransitioning:!1});kg.displayName="ViewTransition";var J2=j.createContext(new Map);J2.displayName="Fetchers";var $2=j.createContext(null);$2.displayName="Await";var kt=j.createContext(null);kt.displayName="Navigation";var Pl=j.createContext(null);Pl.displayName="Location";var nn=j.createContext({outlet:null,matches:[],isDataRoute:!1});nn.displayName="Route";var Pf=j.createContext(null);Pf.displayName="RouteError";var Og="REACT_ROUTER_ERROR",W2="REDIRECT",I2="ROUTE_ERROR_RESPONSE";function eS(n){if(n.startsWith(`${Og}:${W2}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function tS(n){if(n.startsWith(`${Og}:${I2}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new X2(i.status,i.statusText,i.data)}catch{}}function nS(n,{relative:i}={}){Le(_i(),"useHref() may be used only in the context of a component.");let{basename:s,navigator:r}=j.useContext(kt),{hash:u,pathname:f,search:d}=Fl(n,{relative:i}),m=f;return s!=="/"&&(m=f==="/"?s:It([s,f])),r.createHref({pathname:m,search:d,hash:u})}function _i(){return j.useContext(Pl)!=null}function an(){return Le(_i(),"useLocation() may be used only in the context of a component."),j.useContext(Pl).location}var _g="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Vg(n){j.useContext(kt).static||j.useLayoutEffect(n)}function Ff(){let{isDataRoute:n}=j.useContext(nn);return n?pS():aS()}function aS(){Le(_i(),"useNavigate() may be used only in the context of a component.");let n=j.useContext(Oi),{basename:i,navigator:s}=j.useContext(kt),{matches:r}=j.useContext(nn),{pathname:u}=an(),f=JSON.stringify(Qf(r)),d=j.useRef(!1);return Vg(()=>{d.current=!0}),j.useCallback((p,y={})=>{if(tn(d.current,_g),!d.current)return;if(typeof p=="number"){s.go(p);return}let x=Ir(p,JSON.parse(f),u,y.relative==="path");n==null&&i!=="/"&&(x.pathname=x.pathname==="/"?i:It([i,x.pathname])),(y.replace?s.replace:s.push)(x,y.state,y)},[i,s,f,u,n])}j.createContext(null);function Lg(){let{matches:n}=j.useContext(nn),i=n[n.length-1];return(i==null?void 0:i.params)??{}}function Fl(n,{relative:i}={}){let{matches:s}=j.useContext(nn),{pathname:r}=an(),u=JSON.stringify(Qf(s));return j.useMemo(()=>Ir(n,JSON.parse(u),r,i==="path"),[n,u,r,i])}function iS(n,i){return Ug(n,i)}function Ug(n,i,s){var M;Le(_i(),"useRoutes() may be used only in the context of a component.");let{navigator:r}=j.useContext(kt),{matches:u}=j.useContext(nn),f=u[u.length-1],d=f?f.params:{},m=f?f.pathname:"/",p=f?f.pathnameBase:"/",y=f&&f.route;{let D=y&&y.path||"";Hg(m,!y||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${m}" (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 x=an(),v;if(i){let D=typeof i=="string"?ki(i):i;Le(p==="/"||((M=D.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 "${D.pathname}" was given in the \`location\` prop.`),v=D}else v=x;let S=v.pathname||"/",w=S;if(p!=="/"){let D=p.replace(/^\//,"").split("/");w="/"+S.replace(/^\//,"").split("/").slice(D.length).join("/")}let z=Eg(n,{pathname:w});tn(y||z!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),tn(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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 k=uS(z&&z.map(D=>Object.assign({},D,{params:Object.assign({},d,D.params),pathname:It([p,r.encodeLocation?r.encodeLocation(D.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?p:It([p,r.encodeLocation?r.encodeLocation(D.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),u,s);return i&&k?j.createElement(Pl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},k):k}function lS(){let n=mS(),i=Z2(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)",u={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:f},"ErrorBoundary")," or"," ",j.createElement("code",{style:f},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},i),s?j.createElement("pre",{style:u},s):null,d)}var sS=j.createElement(lS,null),Bg=class extends j.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,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):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=tS(n.digest);s&&(n=s)}let i=n!==void 0?j.createElement(nn.Provider,{value:this.props.routeContext},j.createElement(Pf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?j.createElement(rS,{error:n},i):i}};Bg.contextType=Dg;var Bc=new WeakMap;function rS({children:n,error:i}){let{basename:s}=j.useContext(kt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=eS(i.digest);if(r){let u=Bc.get(i);if(u)throw u;let f=Cg(r.location,s);if(Mg&&!Bc.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw Bc.set(i,d),d}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return n}function oS({routeContext:n,match:i,children:s}){let r=j.useContext(Oi);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),j.createElement(nn.Provider,{value:n},s)}function uS(n,i=[],s){let r=s==null?void 0:s.state;if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let u=n,f=r==null?void 0:r.errors;if(f!=null){let x=u.findIndex(v=>v.route.id&&(f==null?void 0:f[v.route.id])!==void 0);Le(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,x+1))}let d=!1,m=-1;if(s&&r){d=r.renderFallback;for(let x=0;x=0?u=u.slice(0,m+1):u=[u[0]];break}}}}let p=s==null?void 0:s.onError,y=r&&p?(x,v)=>{var S,w;p(x,{location:r.location,params:((w=(S=r.matches)==null?void 0:S[0])==null?void 0:w.params)??{},unstable_pattern:Q2(r.matches),errorInfo:v})}:void 0;return u.reduceRight((x,v,S)=>{let w,z=!1,k=null,M=null;r&&(w=f&&v.route.id?f[v.route.id]:void 0,k=v.route.errorElement||sS,d&&(m<0&&S===0?(Hg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),z=!0,M=null):m===S&&(z=!0,M=v.route.hydrateFallbackElement||null)));let D=i.concat(u.slice(0,S+1)),H=()=>{let U;return w?U=k:z?U=M:v.route.Component?U=j.createElement(v.route.Component,null):v.route.element?U=v.route.element:U=x,j.createElement(oS,{match:v,routeContext:{outlet:x,matches:D,isDataRoute:r!=null},children:U})};return r&&(v.route.ErrorBoundary||v.route.errorElement||S===0)?j.createElement(Bg,{location:r.location,revalidation:r.revalidation,component:k,error:w,children:H(),routeContext:{outlet:null,matches:D,isDataRoute:!0},onError:y}):H()},null)}function Jf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cS(n){let i=j.useContext(Oi);return Le(i,Jf(n)),i}function fS(n){let i=j.useContext(eo);return Le(i,Jf(n)),i}function dS(n){let i=j.useContext(nn);return Le(i,Jf(n)),i}function $f(n){let i=dS(n),s=i.matches[i.matches.length-1];return Le(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function hS(){return $f("useRouteId")}function mS(){var r;let n=j.useContext(Pf),i=fS("useRouteError"),s=$f("useRouteError");return n!==void 0?n:(r=i.errors)==null?void 0:r[s]}function pS(){let{router:n}=cS("useNavigate"),i=$f("useNavigate"),s=j.useRef(!1);return Vg(()=>{s.current=!0}),j.useCallback(async(u,f={})=>{tn(s.current,_g),s.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:i,...f}))},[n,i])}var F0={};function Hg(n,i,s){!i&&!F0[n]&&(F0[n]=!0,tn(!1,s))}j.memo(yS);function yS({routes:n,future:i,state:s,isStatic:r,onError:u}){return Ug(n,void 0,{state:s,isStatic:r,onError:u})}function gS({to:n,replace:i,state:s,relative:r}){Le(_i()," may be used only in the context of a component.");let{static:u}=j.useContext(kt);tn(!u," 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}=j.useContext(nn),{pathname:d}=an(),m=Ff(),p=Ir(n,Qf(f),d,r==="path"),y=JSON.stringify(p);return j.useEffect(()=>{m(JSON.parse(y),{replace:i,state:s,relative:r})},[m,y,r,i,s]),null}function sa(n){Le(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function xS({basename:n="/",children:i=null,location:s,navigationType:r="POP",navigator:u,static:f=!1,unstable_useTransitions:d}){Le(!_i(),"You cannot render a inside another . You should never have more than one in your app.");let m=n.replace(/^\/*/,"/"),p=j.useMemo(()=>({basename:m,navigator:u,static:f,unstable_useTransitions:d,future:{}}),[m,u,f,d]);typeof s=="string"&&(s=ki(s));let{pathname:y="/",search:x="",hash:v="",state:S=null,key:w="default",unstable_mask:z}=s,k=j.useMemo(()=>{let M=kn(y,m);return M==null?null:{location:{pathname:M,search:x,hash:v,state:S,key:w,unstable_mask:z},navigationType:r}},[m,y,x,v,S,w,r,z]);return tn(k!=null,` is not able to match the URL "${y}${x}${v}" because it does not start with the basename, so the won't render anything.`),k==null?null:j.createElement(kt.Provider,{value:p},j.createElement(Pl.Provider,{children:i,value:k}))}function vS({children:n,location:i}){return iS(hf(n),i)}function hf(n,i=[]){let s=[];return j.Children.forEach(n,(r,u)=>{if(!j.isValidElement(r))return;let f=[...i,u];if(r.type===j.Fragment){s.push.apply(s,hf(r.props.children,f));return}Le(r.type===sa,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),Le(!r.props.index||!r.props.children,"An index route cannot have child routes.");let d={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&&(d.children=hf(r.props.children,f)),s.push(d)}),s}var Ar="get",zr="application/x-www-form-urlencoded";function to(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function bS(n){return to(n)&&n.tagName.toLowerCase()==="button"}function SS(n){return to(n)&&n.tagName.toLowerCase()==="form"}function TS(n){return to(n)&&n.tagName.toLowerCase()==="input"}function wS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function jS(n,i){return n.button===0&&(!i||i==="_self")&&!wS(n)}var vr=null;function ES(){if(vr===null)try{new FormData(document.createElement("form"),0),vr=!1}catch{vr=!0}return vr}var AS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hc(n){return n!=null&&!AS.has(n)?(tn(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${zr}"`),null):n}function zS(n,i){let s,r,u,f,d;if(SS(n)){let m=n.getAttribute("action");r=m?kn(m,i):null,s=n.getAttribute("method")||Ar,u=Hc(n.getAttribute("enctype"))||zr,f=new FormData(n)}else if(bS(n)||TS(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a