diff --git a/backend/app/api/routes/smart_plugs.py b/backend/app/api/routes/smart_plugs.py
index 45fdf053a..1fa782145 100644
--- a/backend/app/api/routes/smart_plugs.py
+++ b/backend/app/api/routes/smart_plugs.py
@@ -62,6 +62,18 @@ async def create_smart_plug(
return plug
+@router.get("/by-printer/{printer_id}", response_model=SmartPlugResponse | None)
+async def get_smart_plug_by_printer(printer_id: int, db: AsyncSession = Depends(get_db)):
+ """Get the smart plug assigned to a printer."""
+ result = await db.execute(
+ select(SmartPlug).where(SmartPlug.printer_id == printer_id)
+ )
+ plug = result.scalar_one_or_none()
+ if not plug:
+ return None
+ return plug
+
+
@router.get("/{plug_id}", response_model=SmartPlugResponse)
async def get_smart_plug(plug_id: int, db: AsyncSession = Depends(get_db)):
"""Get a specific smart plug."""
diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts
index 61649bcfa..c5640a1b9 100644
--- a/frontend/src/api/client.ts
+++ b/frontend/src/api/client.ts
@@ -519,6 +519,7 @@ export const api = {
// Smart Plugs
getSmartPlugs: () => request
Printing
-- {status.subtask_name || status.current_print} -
-Printing
++ {status.subtask_name || status.current_print} +
+Status
++ {status.state?.toLowerCase() || 'Idle'} +
+Ready to print
+ > + )}Q?(q.sortIndex=Y,e(c,q),n(l)===null&&q===n(c)&&(b?(M(R),R=-1):b=!0,$(T,Y-Q))):(q.sortIndex=se,e(l,q),y||m||(y=!0,P||(P=!0,I()))),q},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(q){var G=p;return function(){var Y=p;p=G;try{return q.apply(this,arguments)}finally{p=Y}}}})(LE)),LE}var HU;function oee(){return HU||(HU=1,OE.exports=see()),OE.exports}var kE={exports:{}},Gr={};var VU;function lee(){if(VU)return Gr;VU=1;var t=Hp();function e(l){var c="https://react.dev/errors/"+l;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),kE.exports=lee(),kE.exports}var $U;function cee(){if($U)return ig;$U=1;var t=oee(),e=Hp(),n=CV();function i(u){var h="https://react.dev/errors/"+u;if(1 se||(u.current=Q[se],Q[se]=null,se--)}function re(u,h){se++,Q[se]=u.current,u.current=h}var ce=H(null),ye=H(null),me=H(null),be=H(null);function De(u,h){switch(re(me,h),re(ye,u),re(ce,null),h.nodeType){case 9:case 11:u=(u=h.documentElement)&&(u=u.namespaceURI)?sU(u):0;break;default:if(u=h.tagName,h=h.namespaceURI)h=sU(h),u=oU(h,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}X(ce),re(ce,u)}function he(){X(ce),X(ye),X(me)}function Ae(u){u.memoizedState!==null&&re(be,u);var h=ce.current,g=oU(h,u.type);h!==g&&(re(ye,u),re(ce,g))}function Be(u){ye.current===u&&(X(ce),X(ye)),be.current===u&&(X(be),Jm._currentValue=Y)}var le,ut;function z(u){if(le===void 0)try{throw Error()}catch(g){var h=g.stack.trim().match(/\n( *(at )?)/);le=h&&h[1]||"",ut=-1 )":-1 i[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();var Kx=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var NE={exports:{}},ng={};var UU;function ree(){if(UU)return ng;UU=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,r,a){var s=null;if(a!==void 0&&(s=""+a),r.key!==void 0&&(s=""+r.key),"key"in r){a={};for(var o in r)o!=="key"&&(a[o]=r[o])}else a=r;return r=a.ref,{$$typeof:t,type:i,key:s,ref:r!==void 0?r:null,props:a}}return ng.Fragment=e,ng.jsx=n,ng.jsxs=n,ng}var FU;function aee(){return FU||(FU=1,NE.exports=ree()),NE.exports}var S=aee(),PE={exports:{}},$t={};var zU;function see(){if(zU)return $t;zU=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),p=Symbol.iterator;function m(H){return H===null||typeof H!="object"?null:(H=p&&H[p]||H["@@iterator"],typeof H=="function"?H:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function g(H,X,re){this.props=H,this.context=X,this.refs=x,this.updater=re||y}g.prototype.isReactComponent={},g.prototype.setState=function(H,X){if(typeof H!="object"&&typeof H!="function"&&H!=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,H,X,"setState")},g.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function M(){}M.prototype=g.prototype;function w(H,X,re){this.props=H,this.context=X,this.refs=x,this.updater=re||y}var E=w.prototype=new M;E.constructor=w,b(E,g.prototype),E.isPureReactComponent=!0;var A=Array.isArray;function N(){}var R={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function P(H,X,re){var ce=re.ref;return{$$typeof:t,type:H,key:X,ref:ce!==void 0?ce:null,props:re}}function O(H,X){return P(H.type,X,H.props)}function B(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function I(H){var X={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(re){return X[re]})}var W=/\/+/g;function L(H,X){return typeof H=="object"&&H!==null&&H.key!=null?I(""+H.key):X.toString(36)}function $(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(N,N):(H.status="pending",H.then(function(X){H.status==="pending"&&(H.status="fulfilled",H.value=X)},function(X){H.status==="pending"&&(H.status="rejected",H.reason=X)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function q(H,X,re,ce,ye){var me=typeof H;(me==="undefined"||me==="boolean")&&(H=null);var be=!1;if(H===null)be=!0;else switch(me){case"bigint":case"string":case"number":be=!0;break;case"object":switch(H.$$typeof){case t:case e:be=!0;break;case d:return be=H._init,q(be(H._payload),X,re,ce,ye)}}if(be)return ye=ye(H),be=ce===""?"."+L(H,0):ce,A(ye)?(re="",be!=null&&(re=be.replace(W,"$&/")+"/"),q(ye,X,re,"",function(Ae){return Ae})):ye!=null&&(B(ye)&&(ye=O(ye,re+(ye.key==null||H&&H.key===ye.key?"":(""+ye.key).replace(W,"$&/")+"/")+be)),X.push(ye)),1;be=0;var De=ce===""?".":ce+":";if(A(H))for(var he=0;he >>1,se=q[Q];if(0 >>1;Q r(re,K))ce r(ye,re)?(q[Q]=ye,q[ce]=K,Q=ce):(q[Q]=re,q[X]=K,Q=X);else if(ce r(ye,K))q[Q]=ye,q[ce]=K,Q=ce;else break e}}return G}function r(q,G){var K=q.sortIndex-G.sortIndex;return K!==0?K:q.id-G.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();t.unstable_now=function(){return s.now()-o}}var l=[],c=[],d=1,f=null,p=3,m=!1,y=!1,b=!1,x=!1,g=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function E(q){for(var G=n(c);G!==null;){if(G.callback===null)i(c);else if(G.startTime<=q)i(c),G.sortIndex=G.expirationTime,e(l,G);else break;G=n(c)}}function A(q){if(b=!1,E(q),!y)if(n(l)!==null)y=!0,N||(N=!0,I());else{var G=n(c);G!==null&&$(A,G.startTime-q)}}var N=!1,R=-1,U=5,P=-1;function O(){return x?!0:!(t.unstable_now()-Pq&&O());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,p=f.priorityLevel;var se=Q(f.expirationTime<=q);if(q=t.unstable_now(),typeof se=="function"){f.callback=se,E(q),G=!0;break t}f===n(l)&&i(l),E(q)}else i(l);f=n(l)}if(f!==null)G=!0;else{var H=n(c);H!==null&&$(A,H.startTime-q),G=!1}}break e}finally{f=null,p=K,m=!1}G=void 0}}finally{G?I():N=!1}}}var I;if(typeof w=="function")I=function(){w(B)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,L=W.port2;W.port1.onmessage=B,I=function(){L.postMessage(null)}}else I=function(){g(B,0)};function $(q,G){R=g(function(){q(t.unstable_now())},G)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(q){q.callback=null},t.unstable_forceFrameRate=function(q){0>q||125 Q?(q.sortIndex=K,e(c,q),n(l)===null&&q===n(c)&&(b?(M(R),R=-1):b=!0,$(A,K-Q))):(q.sortIndex=se,e(l,q),y||m||(y=!0,N||(N=!0,I()))),q},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(q){var G=p;return function(){var K=p;p=G;try{return q.apply(this,arguments)}finally{p=K}}}})(LE)),LE}var HU;function cee(){return HU||(HU=1,OE.exports=lee()),OE.exports}var kE={exports:{}},Gr={};var VU;function uee(){if(VU)return Gr;VU=1;var t=Vp();function e(l){var c="https://react.dev/errors/"+l;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),kE.exports=uee(),kE.exports}var $U;function dee(){if($U)return ig;$U=1;var t=cee(),e=Vp(),n=CV();function i(u){var h="https://react.dev/errors/"+u;if(1 se||(u.current=Q[se],Q[se]=null,se--)}function re(u,h){se++,Q[se]=u.current,u.current=h}var ce=H(null),ye=H(null),me=H(null),be=H(null);function De(u,h){switch(re(me,h),re(ye,u),re(ce,null),h.nodeType){case 9:case 11:u=(u=h.documentElement)&&(u=u.namespaceURI)?sU(u):0;break;default:if(u=h.tagName,h=h.namespaceURI)h=sU(h),u=oU(h,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}X(ce),re(ce,u)}function he(){X(ce),X(ye),X(me)}function Ae(u){u.memoizedState!==null&&re(be,u);var h=ce.current,v=oU(h,u.type);h!==v&&(re(ye,u),re(ce,v))}function Be(u){ye.current===u&&(X(ce),X(ye)),be.current===u&&(X(be),Jm._currentValue=K)}var le,ut;function z(u){if(le===void 0)try{throw Error()}catch(v){var h=v.stack.trim().match(/\n( *(at )?)/);le=h&&h[1]||"",ut=-1 )":-1 A||Se[_]!==ze[A]){var Je=` -`+Se[_].replace(" at new "," at ");return u.displayName&&Je.includes(" ")&&(Je=Je.replace(" ",u.displayName)),Je}while(1<=_&&0<=A);break}}}finally{V=!1,Error.prepareStackTrace=g}return(g=u?u.displayName||u.name:"")?z(g):""}function J(u,h){switch(u.tag){case 26:case 27:case 5:return z(u.type);case 16:return z("Lazy");case 13:return u.child!==h&&h!==null?z("Suspense Fallback"):z("Suspense");case 19:return z("SuspenseList");case 0:case 15:return ne(u.type,!1);case 11:return ne(u.type.render,!1);case 1:return ne(u.type,!0);case 31:return z("Activity");default:return""}}function ee(u){try{var h="",g=null;do h+=J(u,g),g=u,u=u.return;while(u);return h}catch(_){return` +`);for(T=_=0;_ T||Se[_]!==ze[T]){var Je=` +`+Se[_].replace(" at new "," at ");return u.displayName&&Je.includes(" ")&&(Je=Je.replace(" ",u.displayName)),Je}while(1<=_&&0<=T);break}}}finally{V=!1,Error.prepareStackTrace=v}return(v=u?u.displayName||u.name:"")?z(v):""}function J(u,h){switch(u.tag){case 26:case 27:case 5:return z(u.type);case 16:return z("Lazy");case 13:return u.child!==h&&h!==null?z("Suspense Fallback"):z("Suspense");case 19:return z("SuspenseList");case 0:case 15:return ne(u.type,!1);case 11:return ne(u.type.render,!1);case 1:return ne(u.type,!0);case 31:return z("Activity");default:return""}}function ee(u){try{var h="",v=null;do h+=J(u,v),v=u,u=u.return;while(u);return h}catch(_){return` Error generating stack: `+_.message+` -`+_.stack}}var ae=Object.prototype.hasOwnProperty,ie=t.unstable_scheduleCallback,we=t.unstable_cancelCallback,ve=t.unstable_shouldYield,F=t.unstable_requestPaint,k=t.unstable_now,K=t.unstable_getCurrentPriorityLevel,pe=t.unstable_ImmediatePriority,xe=t.unstable_UserBlockingPriority,fe=t.unstable_NormalPriority,Ke=t.unstable_LowPriority,ke=t.unstable_IdlePriority,$e=t.log,rt=t.unstable_setDisableYieldValue,Ue=null,Pe=null;function dt(u){if(typeof $e=="function"&&rt(u),Pe&&typeof Pe.setStrictMode=="function")try{Pe.setStrictMode(Ue,u)}catch{}}var et=Math.clz32?Math.clz32:ue,Qe=Math.log,st=Math.LN2;function ue(u){return u>>>=0,u===0?32:31-(Qe(u)/st|0)|0}var tt=256,de=262144,Le=4194304;function Ee(u){var h=u&42;if(h!==0)return h;switch(u&-u){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 u&261888;case 262144:case 524288:case 1048576:case 2097152:return u&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function ge(u,h,g){var _=u.pendingLanes;if(_===0)return 0;var A=0,D=u.suspendedLanes,j=u.pingedLanes;u=u.warmLanes;var te=_&134217727;return te!==0?(_=te&~D,_!==0?A=Ee(_):(j&=te,j!==0?A=Ee(j):g||(g=te&~u,g!==0&&(A=Ee(g))))):(te=_&~D,te!==0?A=Ee(te):j!==0?A=Ee(j):g||(g=_&~u,g!==0&&(A=Ee(g)))),A===0?0:h!==0&&h!==A&&(h&D)===0&&(D=A&-A,g=h&-h,D>=g||D===32&&(g&4194048)!==0)?h:A}function je(u,h){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&h)===0}function at(u,h){switch(u){case 1:case 2:case 4:case 8:case 64:return h+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 h+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 yt(){var u=Le;return Le<<=1,(Le&62914560)===0&&(Le=4194304),u}function Ct(u){for(var h=[],g=0;31>g;g++)h.push(u);return h}function tn(u,h){u.pendingLanes|=h,h!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function Pt(u,h,g,_,A,D){var j=u.pendingLanes;u.pendingLanes=g,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=g,u.entangledLanes&=g,u.errorRecoveryDisabledLanes&=g,u.shellSuspendCounter=0;var te=u.entanglements,Se=u.expirationTimes,ze=u.hiddenUpdates;for(g=j&~g;0 "u")return null;try{return u.activeElement||u.body}catch{return u.body}}var Mi=/[\n"\\]/g;function Sn(u){return u.replace(Mi,function(h){return"\\"+h.charCodeAt(0).toString(16)+" "})}function Ws(u,h,g,_,A,D,j,te){u.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?u.type=j:u.removeAttribute("type"),h!=null?j==="number"?(h===0&&u.value===""||u.value!=h)&&(u.value=""+rn(h)):u.value!==""+rn(h)&&(u.value=""+rn(h)):j!=="submit"&&j!=="reset"||u.removeAttribute("value"),h!=null?fr(u,j,rn(h)):g!=null?fr(u,j,rn(g)):_!=null&&u.removeAttribute("value"),A==null&&D!=null&&(u.defaultChecked=!!D),A!=null&&(u.checked=A&&typeof A!="function"&&typeof A!="symbol"),te!=null&&typeof te!="function"&&typeof te!="symbol"&&typeof te!="boolean"?u.name=""+rn(te):u.removeAttribute("name")}function Mn(u,h,g,_,A,D,j,te){if(D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(u.type=D),h!=null||g!=null){if(!(D!=="submit"&&D!=="reset"||h!=null)){Gt(u);return}g=g!=null?""+rn(g):"",h=h!=null?""+rn(h):g,te||h===u.value||(u.value=h),u.defaultValue=h}_=_??A,_=typeof _!="function"&&typeof _!="symbol"&&!!_,u.checked=te?u.checked:!!_,u.defaultChecked=!!_,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(u.name=j),Gt(u)}function fr(u,h,g){h==="number"&&hi(u.ownerDocument)===u||u.defaultValue===""+g||(u.defaultValue=""+g)}function Yi(u,h,g,_){if(u=u.options,h){h={};for(var A=0;A "u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nw=!1;if(Jo)try{var gm={};Object.defineProperty(gm,"passive",{get:function(){Nw=!0}}),window.addEventListener("test",gm,gm),window.removeEventListener("test",gm,gm)}catch{Nw=!1}var vc=null,Pw=null,jv=null;function oL(){if(jv)return jv;var u,h=Pw,g=h.length,_,A="value"in vc?vc.value:vc.textContent,D=A.length;for(u=0;u =ym),hL=" ",pL=!1;function mL(u,h){switch(u){case"keyup":return wJ.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gL(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Df=!1;function EJ(u,h){switch(u){case"compositionend":return gL(h);case"keypress":return h.which!==32?null:(pL=!0,hL);case"textInput":return u=h.data,u===hL&&pL?null:u;default:return null}}function AJ(u,h){if(Df)return u==="compositionend"||!Iw&&mL(u,h)?(u=oL(),jv=Pw=vc=null,Df=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1 =h)return{node:g,offset:h-u};u=_}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=ML(g)}}function AL(u,h){return u&&h?u===h?!0:u&&u.nodeType===3?!1:h&&h.nodeType===3?AL(u,h.parentNode):"contains"in u?u.contains(h):u.compareDocumentPosition?!!(u.compareDocumentPosition(h)&16):!1:!1}function TL(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var h=hi(u.document);h instanceof u.HTMLIFrameElement;){try{var g=typeof h.contentWindow.location.href=="string"}catch{g=!1}if(g)u=h.contentWindow;else break;h=hi(u.document)}return h}function zw(u){var h=u&&u.nodeName&&u.nodeName.toLowerCase();return h&&(h==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||h==="textarea"||u.contentEditable==="true")}var LJ=Jo&&"documentMode"in document&&11>=document.documentMode,Of=null,Bw=null,wm=null,jw=!1;function CL(u,h,g){var _=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;jw||Of==null||Of!==hi(_)||(_=Of,"selectionStart"in _&&zw(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),wm&&Sm(wm,_)||(wm=_,_=Lx(Bw,"onSelect"),0<_.length&&(h=new Gv("onSelect","select",null,h,g),u.push({event:h,listeners:_}),h.target=Of)))}function qu(u,h){var g={};return g[u.toLowerCase()]=h.toLowerCase(),g["Webkit"+u]="webkit"+h,g["Moz"+u]="moz"+h,g}var Lf={animationend:qu("Animation","AnimationEnd"),animationiteration:qu("Animation","AnimationIteration"),animationstart:qu("Animation","AnimationStart"),transitionrun:qu("Transition","TransitionRun"),transitionstart:qu("Transition","TransitionStart"),transitioncancel:qu("Transition","TransitionCancel"),transitionend:qu("Transition","TransitionEnd")},Hw={},RL={};Jo&&(RL=document.createElement("div").style,"AnimationEvent"in window||(delete Lf.animationend.animation,delete Lf.animationiteration.animation,delete Lf.animationstart.animation),"TransitionEvent"in window||delete Lf.transitionend.transition);function Xu(u){if(Hw[u])return Hw[u];if(!Lf[u])return u;var h=Lf[u],g;for(g in h)if(h.hasOwnProperty(g)&&g in RL)return Hw[u]=h[g];return u}var NL=Xu("animationend"),PL=Xu("animationiteration"),DL=Xu("animationstart"),kJ=Xu("transitionrun"),IJ=Xu("transitionstart"),UJ=Xu("transitioncancel"),OL=Xu("transitionend"),LL=new Map,Vw="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Vw.push("scrollEnd");function qs(u,h){LL.set(u,h),ot(h,[u])}var qv=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var h=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(h))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)},cs=[],kf=0,Gw=0;function Xv(){for(var u=kf,h=Gw=kf=0;h>=j,A-=j,bo=1<<32-et(h)+A|g<Xt?(dn=Nt,Nt=null):dn=Nt.sibling;var vn=Ve(Oe,Nt,Fe[Xt],nt);if(vn===null){Nt===null&&(Nt=dn);break}u&&Nt&&vn.alternate===null&&h(Oe,Nt),Te=D(vn,Te,Xt),gn===null?Lt=vn:gn.sibling=vn,gn=vn,Nt=dn}if(Xt===Fe.length)return g(Oe,Nt),hn&&el(Oe,Xt),Lt;if(Nt===null){for(;Xt Xt?(dn=Nt,Nt=null):dn=Nt.sibling;var zc=Ve(Oe,Nt,vn.value,nt);if(zc===null){Nt===null&&(Nt=dn);break}u&&Nt&&zc.alternate===null&&h(Oe,Nt),Te=D(zc,Te,Xt),gn===null?Lt=zc:gn.sibling=zc,gn=zc,Nt=dn}if(vn.done)return g(Oe,Nt),hn&&el(Oe,Xt),Lt;if(Nt===null){for(;!vn.done;Xt++,vn=Fe.next())vn=it(Oe,vn.value,nt),vn!==null&&(Te=D(vn,Te,Xt),gn===null?Lt=vn:gn.sibling=vn,gn=vn);return hn&&el(Oe,Xt),Lt}for(Nt=_(Nt);!vn.done;Xt++,vn=Fe.next())vn=Ye(Nt,Oe,Xt,vn.value,nt),vn!==null&&(u&&vn.alternate!==null&&Nt.delete(vn.key===null?Xt:vn.key),Te=D(vn,Te,Xt),gn===null?Lt=vn:gn.sibling=vn,gn=vn);return u&&Nt.forEach(function(eee){return h(Oe,eee)}),hn&&el(Oe,Xt),Lt}function Pn(Oe,Te,Fe,nt){if(typeof Fe=="object"&&Fe!==null&&Fe.type===b&&Fe.key===null&&(Fe=Fe.props.children),typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case m:e:{for(var Lt=Fe.key;Te!==null;){if(Te.key===Lt){if(Lt=Fe.type,Lt===b){if(Te.tag===7){g(Oe,Te.sibling),nt=A(Te,Fe.props.children),nt.return=Oe,Oe=nt;break e}}else if(Te.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===U&&td(Lt)===Te.type){g(Oe,Te.sibling),nt=A(Te,Fe.props),Rm(nt,Fe),nt.return=Oe,Oe=nt;break e}g(Oe,Te);break}else h(Oe,Te);Te=Te.sibling}Fe.type===b?(nt=Ku(Fe.props.children,Oe.mode,nt,Fe.key),nt.return=Oe,Oe=nt):(nt=Zv(Fe.type,Fe.key,Fe.props,null,Oe.mode,nt),Rm(nt,Fe),nt.return=Oe,Oe=nt)}return j(Oe);case y:e:{for(Lt=Fe.key;Te!==null;){if(Te.key===Lt)if(Te.tag===4&&Te.stateNode.containerInfo===Fe.containerInfo&&Te.stateNode.implementation===Fe.implementation){g(Oe,Te.sibling),nt=A(Te,Fe.children||[]),nt.return=Oe,Oe=nt;break e}else{g(Oe,Te);break}else h(Oe,Te);Te=Te.sibling}nt=Xw(Fe,Oe.mode,nt),nt.return=Oe,Oe=nt}return j(Oe);case U:return Fe=td(Fe),Pn(Oe,Te,Fe,nt)}if($(Fe))return Tt(Oe,Te,Fe,nt);if(I(Fe)){if(Lt=I(Fe),typeof Lt!="function")throw Error(i(150));return Fe=Lt.call(Fe),Ft(Oe,Te,Fe,nt)}if(typeof Fe.then=="function")return Pn(Oe,Te,rx(Fe),nt);if(Fe.$$typeof===w)return Pn(Oe,Te,ex(Oe,Fe),nt);ax(Oe,Fe)}return typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint"?(Fe=""+Fe,Te!==null&&Te.tag===6?(g(Oe,Te.sibling),nt=A(Te,Fe),nt.return=Oe,Oe=nt):(g(Oe,Te),nt=qw(Fe,Oe.mode,nt),nt.return=Oe,Oe=nt),j(Oe)):g(Oe,Te)}return function(Oe,Te,Fe,nt){try{Cm=0;var Lt=Pn(Oe,Te,Fe,nt);return Gf=null,Lt}catch(Nt){if(Nt===Vf||Nt===nx)throw Nt;var gn=ja(29,Nt,null,Oe.mode);return gn.lanes=nt,gn.return=Oe,gn}finally{}}}var id=ZL(!0),JL=ZL(!1),Sc=!1;function sM(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oM(u,h){u=u.updateQueue,h.updateQueue===u&&(h.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function wc(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function Mc(u,h,g){var _=u.updateQueue;if(_===null)return null;if(_=_.shared,(_n&2)!==0){var A=_.pending;return A===null?h.next=h:(h.next=A.next,A.next=h),_.pending=h,h=Kv(u),kL(u,null,g),h}return Yv(u,_,h,g),Kv(u)}function Nm(u,h,g){if(h=h.updateQueue,h!==null&&(h=h.shared,(g&4194048)!==0)){var _=h.lanes;_&=u.pendingLanes,g|=_,h.lanes=g,zn(u,g)}}function lM(u,h){var g=u.updateQueue,_=u.alternate;if(_!==null&&(_=_.updateQueue,g===_)){var A=null,D=null;if(g=g.firstBaseUpdate,g!==null){do{var j={lane:g.lane,tag:g.tag,payload:g.payload,callback:null,next:null};D===null?A=D=j:D=D.next=j,g=g.next}while(g!==null);D===null?A=D=h:D=D.next=h}else A=D=h;g={baseState:_.baseState,firstBaseUpdate:A,lastBaseUpdate:D,shared:_.shared,callbacks:_.callbacks},u.updateQueue=g;return}u=g.lastBaseUpdate,u===null?g.firstBaseUpdate=h:u.next=h,g.lastBaseUpdate=h}var cM=!1;function Pm(){if(cM){var u=Hf;if(u!==null)throw u}}function Dm(u,h,g,_){cM=!1;var A=u.updateQueue;Sc=!1;var D=A.firstBaseUpdate,j=A.lastBaseUpdate,te=A.shared.pending;if(te!==null){A.shared.pending=null;var Se=te,ze=Se.next;Se.next=null,j===null?D=ze:j.next=ze,j=Se;var Je=u.alternate;Je!==null&&(Je=Je.updateQueue,te=Je.lastBaseUpdate,te!==j&&(te===null?Je.firstBaseUpdate=ze:te.next=ze,Je.lastBaseUpdate=Se))}if(D!==null){var it=A.baseState;j=0,Je=ze=Se=null,te=D;do{var Ve=te.lane&-536870913,Ye=Ve!==te.lane;if(Ye?(un&Ve)===Ve:(_&Ve)===Ve){Ve!==0&&Ve===jf&&(cM=!0),Je!==null&&(Je=Je.next={lane:0,tag:te.tag,payload:te.payload,callback:null,next:null});e:{var Tt=u,Ft=te;Ve=h;var Pn=g;switch(Ft.tag){case 1:if(Tt=Ft.payload,typeof Tt=="function"){it=Tt.call(Pn,it,Ve);break e}it=Tt;break e;case 3:Tt.flags=Tt.flags&-65537|128;case 0:if(Tt=Ft.payload,Ve=typeof Tt=="function"?Tt.call(Pn,it,Ve):Tt,Ve==null)break e;it=f({},it,Ve);break e;case 2:Sc=!0}}Ve=te.callback,Ve!==null&&(u.flags|=64,Ye&&(u.flags|=8192),Ye=A.callbacks,Ye===null?A.callbacks=[Ve]:Ye.push(Ve))}else Ye={lane:Ve,tag:te.tag,payload:te.payload,callback:te.callback,next:null},Je===null?(ze=Je=Ye,Se=it):Je=Je.next=Ye,j|=Ve;if(te=te.next,te===null){if(te=A.shared.pending,te===null)break;Ye=te,te=Ye.next,Ye.next=null,A.lastBaseUpdate=Ye,A.shared.pending=null}}while(!0);Je===null&&(Se=it),A.baseState=Se,A.firstBaseUpdate=ze,A.lastBaseUpdate=Je,D===null&&(A.shared.lanes=0),Rc|=j,u.lanes=j,u.memoizedState=it}}function QL(u,h){if(typeof u!="function")throw Error(i(191,u));u.call(h)}function ek(u,h){var g=u.callbacks;if(g!==null)for(u.callbacks=null,u=0;u D?D:8;var j=q.T,te={};q.T=te,CM(u,!1,h,g);try{var Se=A(),ze=q.S;if(ze!==null&&ze(te,Se),Se!==null&&typeof Se=="object"&&typeof Se.then=="function"){var Je=VJ(Se,_);km(u,h,Je,Wa(u))}else km(u,h,_,Wa(u))}catch(it){km(u,h,{then:function(){},status:"rejected",reason:it},Wa())}finally{G.p=D,j!==null&&te.types!==null&&(j.types=te.types),q.T=j}}function YJ(){}function AM(u,h,g,_){if(u.tag!==5)throw Error(i(476));var A=Dk(u).queue;Pk(u,A,h,Y,g===null?YJ:function(){return Ok(u),g(_)})}function Dk(u){var h=u.memoizedState;if(h!==null)return h;h={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:Y},next:null};var g={};return h.next={memoizedState:g,baseState:g,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:g},next:null},u.memoizedState=h,u=u.alternate,u!==null&&(u.memoizedState=h),h}function Ok(u){var h=Dk(u);h.next===null&&(h=u.alternate.memoizedState),km(u,h.next.queue,{},Wa())}function TM(){return Rr(Jm)}function Lk(){return Ai().memoizedState}function kk(){return Ai().memoizedState}function KJ(u){for(var h=u.return;h!==null;){switch(h.tag){case 24:case 3:var g=Wa();u=wc(g);var _=Mc(h,u,g);_!==null&&(Ma(_,h,g),Nm(_,h,g)),h={cache:nM()},u.payload=h;return}h=h.return}}function ZJ(u,h,g){var _=Wa();g={lane:_,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},mx(u)?Uk(h,g):(g=$w(u,h,g,_),g!==null&&(Ma(g,u,_),Fk(g,h,_)))}function Ik(u,h,g){var _=Wa();km(u,h,g,_)}function km(u,h,g,_){var A={lane:_,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null};if(mx(u))Uk(h,A);else{var D=u.alternate;if(u.lanes===0&&(D===null||D.lanes===0)&&(D=h.lastRenderedReducer,D!==null))try{var j=h.lastRenderedState,te=D(j,g);if(A.hasEagerState=!0,A.eagerState=te,Ba(te,j))return Yv(u,h,A,0),Bn===null&&Xv(),!1}catch{}finally{}if(g=$w(u,h,A,_),g!==null)return Ma(g,u,_),Fk(g,h,_),!0}return!1}function CM(u,h,g,_){if(_={lane:2,revertLane:sE(),gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null},mx(u)){if(h)throw Error(i(479))}else h=$w(u,g,_,2),h!==null&&Ma(h,u,2)}function mx(u){var h=u.alternate;return u===qt||h!==null&&h===qt}function Uk(u,h){Wf=lx=!0;var g=u.pending;g===null?h.next=h:(h.next=g.next,g.next=h),u.pending=h}function Fk(u,h,g){if((g&4194048)!==0){var _=h.lanes;_&=u.pendingLanes,g|=_,h.lanes=g,zn(u,g)}}var Im={readContext:Rr,use:dx,useCallback:pi,useContext:pi,useEffect:pi,useImperativeHandle:pi,useLayoutEffect:pi,useInsertionEffect:pi,useMemo:pi,useReducer:pi,useRef:pi,useState:pi,useDebugValue:pi,useDeferredValue:pi,useTransition:pi,useSyncExternalStore:pi,useId:pi,useHostTransitionStatus:pi,useFormState:pi,useActionState:pi,useOptimistic:pi,useMemoCache:pi,useCacheRefresh:pi};Im.useEffectEvent=pi;var zk={readContext:Rr,use:dx,useCallback:function(u,h){return aa().memoizedState=[u,h===void 0?null:h],u},useContext:Rr,useEffect:Sk,useImperativeHandle:function(u,h,g){g=g!=null?g.concat([u]):null,hx(4194308,4,Ak.bind(null,h,u),g)},useLayoutEffect:function(u,h){return hx(4194308,4,u,h)},useInsertionEffect:function(u,h){hx(4,2,u,h)},useMemo:function(u,h){var g=aa();h=h===void 0?null:h;var _=u();if(rd){dt(!0);try{u()}finally{dt(!1)}}return g.memoizedState=[_,h],_},useReducer:function(u,h,g){var _=aa();if(g!==void 0){var A=g(h);if(rd){dt(!0);try{g(h)}finally{dt(!1)}}}else A=h;return _.memoizedState=_.baseState=A,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:A},_.queue=u,u=u.dispatch=ZJ.bind(null,qt,u),[_.memoizedState,u]},useRef:function(u){var h=aa();return u={current:u},h.memoizedState=u},useState:function(u){u=_M(u);var h=u.queue,g=Ik.bind(null,qt,h);return h.dispatch=g,[u.memoizedState,g]},useDebugValue:MM,useDeferredValue:function(u,h){var g=aa();return EM(g,u,h)},useTransition:function(){var u=_M(!1);return u=Pk.bind(null,qt,u.queue,!0,!1),aa().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,h,g){var _=qt,A=aa();if(hn){if(g===void 0)throw Error(i(407));g=g()}else{if(g=h(),Bn===null)throw Error(i(349));(un&127)!==0||sk(_,h,g)}A.memoizedState=g;var D={value:g,getSnapshot:h};return A.queue=D,Sk(lk.bind(null,_,D,u),[u]),_.flags|=2048,Xf(9,{destroy:void 0},ok.bind(null,_,D,g,h),null),g},useId:function(){var u=aa(),h=Bn.identifierPrefix;if(hn){var g=_o,_=bo;g=(_&~(1<<32-et(_)-1)).toString(32)+g,h="_"+h+"R_"+g,g=cx++,0 <\/script>",D=D.removeChild(D.firstChild);break;case"select":D=typeof _.is=="string"?j.createElement("select",{is:_.is}):j.createElement("select"),_.multiple?D.multiple=!0:_.size&&(D.size=_.size);break;default:D=typeof _.is=="string"?j.createElement(A,{is:_.is}):j.createElement(A)}}D[si]=h,D[wi]=_;e:for(j=h.child;j!==null;){if(j.tag===5||j.tag===6)D.appendChild(j.stateNode);else if(j.tag!==4&&j.tag!==27&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===h)break e;for(;j.sibling===null;){if(j.return===null||j.return===h)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}h.stateNode=D;e:switch(Pr(D,A,_),A){case"button":case"input":case"select":case"textarea":_=!!_.autoFocus;break e;case"img":_=!0;break e;default:_=!1}_&&sl(h)}}return Yn(h),HM(h,h.type,u===null?null:u.memoizedProps,h.pendingProps,g),null;case 6:if(u&&h.stateNode!=null)u.memoizedProps!==_&&sl(h);else{if(typeof _!="string"&&h.stateNode===null)throw Error(i(166));if(u=me.current,zf(h)){if(u=h.stateNode,g=h.memoizedProps,_=null,A=Cr,A!==null)switch(A.tag){case 27:case 5:_=A.memoizedProps}u[si]=h,u=!!(u.nodeValue===g||_!==null&&_.suppressHydrationWarning===!0||rU(u.nodeValue,g)),u||bc(h,!0)}else u=kx(u).createTextNode(_),u[si]=h,h.stateNode=u}return Yn(h),null;case 31:if(g=h.memoizedState,u===null||u.memoizedState!==null){if(_=zf(h),g!==null){if(u===null){if(!_)throw Error(i(318));if(u=h.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(557));u[si]=h}else Zu(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;Yn(h),u=!1}else g=Jw(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=g),u=!0;if(!u)return h.flags&256?(Va(h),h):(Va(h),null);if((h.flags&128)!==0)throw Error(i(558))}return Yn(h),null;case 13:if(_=h.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(A=zf(h),_!==null&&_.dehydrated!==null){if(u===null){if(!A)throw Error(i(318));if(A=h.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(317));A[si]=h}else Zu(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;Yn(h),A=!1}else A=Jw(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=A),A=!0;if(!A)return h.flags&256?(Va(h),h):(Va(h),null)}return Va(h),(h.flags&128)!==0?(h.lanes=g,h):(g=_!==null,u=u!==null&&u.memoizedState!==null,g&&(_=h.child,A=null,_.alternate!==null&&_.alternate.memoizedState!==null&&_.alternate.memoizedState.cachePool!==null&&(A=_.alternate.memoizedState.cachePool.pool),D=null,_.memoizedState!==null&&_.memoizedState.cachePool!==null&&(D=_.memoizedState.cachePool.pool),D!==A&&(_.flags|=2048)),g!==u&&g&&(h.child.flags|=8192),bx(h,h.updateQueue),Yn(h),null);case 4:return he(),u===null&&uE(h.stateNode.containerInfo),Yn(h),null;case 10:return nl(h.type),Yn(h),null;case 19:if(X(Ei),_=h.memoizedState,_===null)return Yn(h),null;if(A=(h.flags&128)!==0,D=_.rendering,D===null)if(A)Fm(_,!1);else{if(mi!==0||u!==null&&(u.flags&128)!==0)for(u=h.child;u!==null;){if(D=ox(u),D!==null){for(h.flags|=128,Fm(_,!1),u=D.updateQueue,h.updateQueue=u,bx(h,u),h.subtreeFlags=0,u=g,g=h.child;g!==null;)IL(g,u),g=g.sibling;return re(Ei,Ei.current&1|2),hn&&el(h,_.treeForkCount),h.child}u=u.sibling}_.tail!==null&&k()>Ex&&(h.flags|=128,A=!0,Fm(_,!1),h.lanes=4194304)}else{if(!A)if(u=ox(D),u!==null){if(h.flags|=128,A=!0,u=u.updateQueue,h.updateQueue=u,bx(h,u),Fm(_,!0),_.tail===null&&_.tailMode==="hidden"&&!D.alternate&&!hn)return Yn(h),null}else 2*k()-_.renderingStartTime>Ex&&g!==536870912&&(h.flags|=128,A=!0,Fm(_,!1),h.lanes=4194304);_.isBackwards?(D.sibling=h.child,h.child=D):(u=_.last,u!==null?u.sibling=D:h.child=D,_.last=D)}return _.tail!==null?(u=_.tail,_.rendering=u,_.tail=u.sibling,_.renderingStartTime=k(),u.sibling=null,g=Ei.current,re(Ei,A?g&1|2:g&1),hn&&el(h,_.treeForkCount),u):(Yn(h),null);case 22:case 23:return Va(h),dM(),_=h.memoizedState!==null,u!==null?u.memoizedState!==null!==_&&(h.flags|=8192):_&&(h.flags|=8192),_?(g&536870912)!==0&&(h.flags&128)===0&&(Yn(h),h.subtreeFlags&6&&(h.flags|=8192)):Yn(h),g=h.updateQueue,g!==null&&bx(h,g.retryQueue),g=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),_=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(_=h.memoizedState.cachePool.pool),_!==g&&(h.flags|=2048),u!==null&&X(ed),null;case 24:return g=null,u!==null&&(g=u.memoizedState.cache),h.memoizedState.cache!==g&&(h.flags|=2048),nl(Oi),Yn(h),null;case 25:return null;case 30:return null}throw Error(i(156,h.tag))}function nQ(u,h){switch(Kw(h),h.tag){case 1:return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 3:return nl(Oi),he(),u=h.flags,(u&65536)!==0&&(u&128)===0?(h.flags=u&-65537|128,h):null;case 26:case 27:case 5:return Be(h),null;case 31:if(h.memoizedState!==null){if(Va(h),h.alternate===null)throw Error(i(340));Zu()}return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 13:if(Va(h),u=h.memoizedState,u!==null&&u.dehydrated!==null){if(h.alternate===null)throw Error(i(340));Zu()}return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 19:return X(Ei),null;case 4:return he(),null;case 10:return nl(h.type),null;case 22:case 23:return Va(h),dM(),u!==null&&X(ed),u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 24:return nl(Oi),null;case 25:return null;default:return null}}function cI(u,h){switch(Kw(h),h.tag){case 3:nl(Oi),he();break;case 26:case 27:case 5:Be(h);break;case 4:he();break;case 31:h.memoizedState!==null&&Va(h);break;case 13:Va(h);break;case 19:X(Ei);break;case 10:nl(h.type);break;case 22:case 23:Va(h),dM(),u!==null&&X(ed);break;case 24:nl(Oi)}}function zm(u,h){try{var g=h.updateQueue,_=g!==null?g.lastEffect:null;if(_!==null){var A=_.next;g=A;do{if((g.tag&u)===u){_=void 0;var D=g.create,j=g.inst;_=D(),j.destroy=_}g=g.next}while(g!==A)}}catch(te){An(h,h.return,te)}}function Tc(u,h,g){try{var _=h.updateQueue,A=_!==null?_.lastEffect:null;if(A!==null){var D=A.next;_=D;do{if((_.tag&u)===u){var j=_.inst,te=j.destroy;if(te!==void 0){j.destroy=void 0,A=h;var Se=g,ze=te;try{ze()}catch(Je){An(A,Se,Je)}}}_=_.next}while(_!==D)}}catch(Je){An(h,h.return,Je)}}function uI(u){var h=u.updateQueue;if(h!==null){var g=u.stateNode;try{ek(h,g)}catch(_){An(u,u.return,_)}}}function dI(u,h,g){g.props=ad(u.type,u.memoizedProps),g.state=u.memoizedState;try{g.componentWillUnmount()}catch(_){An(u,h,_)}}function Bm(u,h){try{var g=u.ref;if(g!==null){switch(u.tag){case 26:case 27:case 5:var _=u.stateNode;break;case 30:_=u.stateNode;break;default:_=u.stateNode}typeof g=="function"?u.refCleanup=g(_):g.current=_}}catch(A){An(u,h,A)}}function So(u,h){var g=u.ref,_=u.refCleanup;if(g!==null)if(typeof _=="function")try{_()}catch(A){An(u,h,A)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof g=="function")try{g(null)}catch(A){An(u,h,A)}else g.current=null}function fI(u){var h=u.type,g=u.memoizedProps,_=u.stateNode;try{e:switch(h){case"button":case"input":case"select":case"textarea":g.autoFocus&&_.focus();break e;case"img":g.src?_.src=g.src:g.srcSet&&(_.srcset=g.srcSet)}}catch(A){An(u,u.return,A)}}function VM(u,h,g){try{var _=u.stateNode;MQ(_,u.type,g,h),_[wi]=h}catch(A){An(u,u.return,A)}}function hI(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27&&Lc(u.type)||u.tag===4}function GM(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||hI(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.tag===27&&Lc(u.type)||u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function $M(u,h,g){var _=u.tag;if(_===5||_===6)u=u.stateNode,h?(g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g).insertBefore(u,h):(h=g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g,h.appendChild(u),g=g._reactRootContainer,g!=null||h.onclick!==null||(h.onclick=Zo));else if(_!==4&&(_===27&&Lc(u.type)&&(g=u.stateNode,h=null),u=u.child,u!==null))for($M(u,h,g),u=u.sibling;u!==null;)$M(u,h,g),u=u.sibling}function _x(u,h,g){var _=u.tag;if(_===5||_===6)u=u.stateNode,h?g.insertBefore(u,h):g.appendChild(u);else if(_!==4&&(_===27&&Lc(u.type)&&(g=u.stateNode),u=u.child,u!==null))for(_x(u,h,g),u=u.sibling;u!==null;)_x(u,h,g),u=u.sibling}function pI(u){var h=u.stateNode,g=u.memoizedProps;try{for(var _=u.type,A=h.attributes;A.length;)h.removeAttributeNode(A[0]);Pr(h,_,g),h[si]=u,h[wi]=g}catch(D){An(u,u.return,D)}}var ol=!1,Ii=!1,WM=!1,mI=typeof WeakSet=="function"?WeakSet:Set,pr=null;function iQ(u,h){if(u=u.containerInfo,hE=Hx,u=TL(u),zw(u)){if("selectionStart"in u)var g={start:u.selectionStart,end:u.selectionEnd};else e:{g=(g=u.ownerDocument)&&g.defaultView||window;var _=g.getSelection&&g.getSelection();if(_&&_.rangeCount!==0){g=_.anchorNode;var A=_.anchorOffset,D=_.focusNode;_=_.focusOffset;try{g.nodeType,D.nodeType}catch{g=null;break e}var j=0,te=-1,Se=-1,ze=0,Je=0,it=u,Ve=null;t:for(;;){for(var Ye;it!==g||A!==0&&it.nodeType!==3||(te=j+A),it!==D||_!==0&&it.nodeType!==3||(Se=j+_),it.nodeType===3&&(j+=it.nodeValue.length),(Ye=it.firstChild)!==null;)Ve=it,it=Ye;for(;;){if(it===u)break t;if(Ve===g&&++ze===A&&(te=j),Ve===D&&++Je===_&&(Se=j),(Ye=it.nextSibling)!==null)break;it=Ve,Ve=it.parentNode}it=Ye}g=te===-1||Se===-1?null:{start:te,end:Se}}else g=null}g=g||{start:0,end:0}}else g=null;for(pE={focusedElem:u,selectionRange:g},Hx=!1,pr=h;pr!==null;)if(h=pr,u=h.child,(h.subtreeFlags&1028)!==0&&u!==null)u.return=h,pr=u;else for(;pr!==null;){switch(h=pr,D=h.alternate,u=h.flags,h.tag){case 0:if((u&4)!==0&&(u=h.updateQueue,u=u!==null?u.events:null,u!==null))for(g=0;g title"))),Pr(D,_,g),D[si]=u,Re(D),_=D;break e;case"link":var j=_U("link","href",A).get(_+(g.href||""));if(j){for(var te=0;te Pn&&(j=Pn,Pn=Ft,Ft=j);var Oe=EL(te,Ft),Te=EL(te,Pn);if(Oe&&Te&&(Ye.rangeCount!==1||Ye.anchorNode!==Oe.node||Ye.anchorOffset!==Oe.offset||Ye.focusNode!==Te.node||Ye.focusOffset!==Te.offset)){var Fe=it.createRange();Fe.setStart(Oe.node,Oe.offset),Ye.removeAllRanges(),Ft>Pn?(Ye.addRange(Fe),Ye.extend(Te.node,Te.offset)):(Fe.setEnd(Te.node,Te.offset),Ye.addRange(Fe))}}}}for(it=[],Ye=te;Ye=Ye.parentNode;)Ye.nodeType===1&&it.push({element:Ye,left:Ye.scrollLeft,top:Ye.scrollTop});for(typeof te.focus=="function"&&te.focus(),te=0;te g?32:g,q.T=null,g=QM,QM=null;var D=Pc,j=fl;if(Ki=0,Qf=Pc=null,fl=0,(_n&6)!==0)throw Error(i(331));var te=_n;if(_n|=4,AI(D.current),wI(D,D.current,j,g),_n=te,Wm(0,!1),Pe&&typeof Pe.onPostCommitFiberRoot=="function")try{Pe.onPostCommitFiberRoot(Ue,D)}catch{}return!0}finally{G.p=A,q.T=_,GI(u,h)}}function WI(u,h,g){h=us(g,h),h=DM(u.stateNode,h,2),u=Mc(u,h,2),u!==null&&(tn(u,2),wo(u))}function An(u,h,g){if(u.tag===3)WI(u,u,g);else for(;h!==null;){if(h.tag===3){WI(h,u,g);break}else if(h.tag===1){var _=h.stateNode;if(typeof h.type.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&(Nc===null||!Nc.has(_))){u=us(g,u),g=qk(2),_=Mc(h,g,2),_!==null&&(Xk(g,_,h,u),tn(_,2),wo(_));break}}h=h.return}}function iE(u,h,g){var _=u.pingCache;if(_===null){_=u.pingCache=new sQ;var A=new Set;_.set(h,A)}else A=_.get(h),A===void 0&&(A=new Set,_.set(h,A));A.has(g)||(YM=!0,A.add(g),u=dQ.bind(null,u,h,g),h.then(u,u))}function dQ(u,h,g){var _=u.pingCache;_!==null&&_.delete(h),u.pingedLanes|=u.suspendedLanes&g,u.warmLanes&=~g,Bn===u&&(un&g)===g&&(mi===4||mi===3&&(un&62914560)===un&&300>k()-Mx?(_n&2)===0&&eh(u,0):KM|=g,Jf===un&&(Jf=0)),wo(u)}function qI(u,h){h===0&&(h=yt()),u=Yu(u,h),u!==null&&(tn(u,h),wo(u))}function fQ(u){var h=u.memoizedState,g=0;h!==null&&(g=h.retryLane),qI(u,g)}function hQ(u,h){var g=0;switch(u.tag){case 31:case 13:var _=u.stateNode,A=u.memoizedState;A!==null&&(g=A.retryLane);break;case 19:_=u.stateNode;break;case 22:_=u.stateNode._retryCache;break;default:throw Error(i(314))}_!==null&&_.delete(h),qI(u,g)}function pQ(u,h){return ie(u,h)}var Px=null,nh=null,rE=!1,Dx=!1,aE=!1,Oc=0;function wo(u){u!==nh&&u.next===null&&(nh===null?Px=nh=u:nh=nh.next=u),Dx=!0,rE||(rE=!0,gQ())}function Wm(u,h){if(!aE&&Dx){aE=!0;do for(var g=!1,_=Px;_!==null;){if(u!==0){var A=_.pendingLanes;if(A===0)var D=0;else{var j=_.suspendedLanes,te=_.pingedLanes;D=(1<<31-et(42|u)+1)-1,D&=A&~(j&~te),D=D&201326741?D&201326741|1:D?D|2:0}D!==0&&(g=!0,ZI(_,D))}else D=un,D=ge(_,_===Bn?D:0,_.cancelPendingCommit!==null||_.timeoutHandle!==-1),(D&3)===0||je(_,D)||(g=!0,ZI(_,D));_=_.next}while(g);aE=!1}}function mQ(){XI()}function XI(){Dx=rE=!1;var u=0;Oc!==0&&AQ()&&(u=Oc);for(var h=k(),g=null,_=Px;_!==null;){var A=_.next,D=YI(_,h);D===0?(_.next=null,g===null?Px=A:g.next=A,A===null&&(nh=g)):(g=_,(u!==0||(D&3)!==0)&&(Dx=!0)),_=A}Ki!==0&&Ki!==5||Wm(u),Oc!==0&&(Oc=0)}function YI(u,h){for(var g=u.suspendedLanes,_=u.pingedLanes,A=u.expirationTimes,D=u.pendingLanes&-62914561;0 te)break;var Je=Se.transferSize,it=Se.initiatorType;Je&&aU(it)&&(Se=Se.responseEnd,j+=Je*(Se "u"?null:document;function vU(u,h,g){var _=ih;if(_&&typeof h=="string"&&h){var A=Sn(h);A='link[rel="'+u+'"][href="'+A+'"]',typeof g=="string"&&(A+='[crossorigin="'+g+'"]'),gU.has(A)||(gU.add(A),u={rel:u,crossOrigin:g,href:h},_.querySelector(A)===null&&(h=_.createElement("link"),Pr(h,"link",u),Re(h),_.head.appendChild(h)))}}function kQ(u){hl.D(u),vU("dns-prefetch",u,null)}function IQ(u,h){hl.C(u,h),vU("preconnect",u,h)}function UQ(u,h,g){hl.L(u,h,g);var _=ih;if(_&&u&&h){var A='link[rel="preload"][as="'+Sn(h)+'"]';h==="image"&&g&&g.imageSrcSet?(A+='[imagesrcset="'+Sn(g.imageSrcSet)+'"]',typeof g.imageSizes=="string"&&(A+='[imagesizes="'+Sn(g.imageSizes)+'"]')):A+='[href="'+Sn(u)+'"]';var D=A;switch(h){case"style":D=rh(u);break;case"script":D=ah(u)}gs.has(D)||(u=f({rel:"preload",href:h==="image"&&g&&g.imageSrcSet?void 0:u,as:h},g),gs.set(D,u),_.querySelector(A)!==null||h==="style"&&_.querySelector(Km(D))||h==="script"&&_.querySelector(Zm(D))||(h=_.createElement("link"),Pr(h,"link",u),Re(h),_.head.appendChild(h)))}}function FQ(u,h){hl.m(u,h);var g=ih;if(g&&u){var _=h&&typeof h.as=="string"?h.as:"script",A='link[rel="modulepreload"][as="'+Sn(_)+'"][href="'+Sn(u)+'"]',D=A;switch(_){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":D=ah(u)}if(!gs.has(D)&&(u=f({rel:"modulepreload",href:u},h),gs.set(D,u),g.querySelector(A)===null)){switch(_){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(g.querySelector(Zm(D)))return}_=g.createElement("link"),Pr(_,"link",u),Re(_),g.head.appendChild(_)}}}function zQ(u,h,g){hl.S(u,h,g);var _=ih;if(_&&u){var A=Ne(_).hoistableStyles,D=rh(u);h=h||"default";var j=A.get(D);if(!j){var te={loading:0,preload:null};if(j=_.querySelector(Km(D)))te.loading=5;else{u=f({rel:"stylesheet",href:u,"data-precedence":h},g),(g=gs.get(D))&&_E(u,g);var Se=j=_.createElement("link");Re(Se),Pr(Se,"link",u),Se._p=new Promise(function(ze,Je){Se.onload=ze,Se.onerror=Je}),Se.addEventListener("load",function(){te.loading|=1}),Se.addEventListener("error",function(){te.loading|=2}),te.loading|=4,Ux(j,h,_)}j={type:"stylesheet",instance:j,count:1,state:te},A.set(D,j)}}}function BQ(u,h){hl.X(u,h);var g=ih;if(g&&u){var _=Ne(g).hoistableScripts,A=ah(u),D=_.get(A);D||(D=g.querySelector(Zm(A)),D||(u=f({src:u,async:!0},h),(h=gs.get(A))&&SE(u,h),D=g.createElement("script"),Re(D),Pr(D,"link",u),g.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},_.set(A,D))}}function jQ(u,h){hl.M(u,h);var g=ih;if(g&&u){var _=Ne(g).hoistableScripts,A=ah(u),D=_.get(A);D||(D=g.querySelector(Zm(A)),D||(u=f({src:u,async:!0,type:"module"},h),(h=gs.get(A))&&SE(u,h),D=g.createElement("script"),Re(D),Pr(D,"link",u),g.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},_.set(A,D))}}function xU(u,h,g,_){var A=(A=me.current)?Ix(A):null;if(!A)throw Error(i(446));switch(u){case"meta":case"title":return null;case"style":return typeof g.precedence=="string"&&typeof g.href=="string"?(h=rh(g.href),g=Ne(A).hoistableStyles,_=g.get(h),_||(_={type:"style",instance:null,count:0,state:null},g.set(h,_)),_):{type:"void",instance:null,count:0,state:null};case"link":if(g.rel==="stylesheet"&&typeof g.href=="string"&&typeof g.precedence=="string"){u=rh(g.href);var D=Ne(A).hoistableStyles,j=D.get(u);if(j||(A=A.ownerDocument||A,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},D.set(u,j),(D=A.querySelector(Km(u)))&&!D._p&&(j.instance=D,j.state.loading=5),gs.has(u)||(g={rel:"preload",as:"style",href:g.href,crossOrigin:g.crossOrigin,integrity:g.integrity,media:g.media,hrefLang:g.hrefLang,referrerPolicy:g.referrerPolicy},gs.set(u,g),D||HQ(A,u,g,j.state))),h&&_===null)throw Error(i(528,""));return j}if(h&&_!==null)throw Error(i(529,""));return null;case"script":return h=g.async,g=g.src,typeof g=="string"&&h&&typeof h!="function"&&typeof h!="symbol"?(h=ah(g),g=Ne(A).hoistableScripts,_=g.get(h),_||(_={type:"script",instance:null,count:0,state:null},g.set(h,_)),_):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,u))}}function rh(u){return'href="'+Sn(u)+'"'}function Km(u){return'link[rel="stylesheet"]['+u+"]"}function yU(u){return f({},u,{"data-precedence":u.precedence,precedence:null})}function HQ(u,h,g,_){u.querySelector('link[rel="preload"][as="style"]['+h+"]")?_.loading=1:(h=u.createElement("link"),_.preload=h,h.addEventListener("load",function(){return _.loading|=1}),h.addEventListener("error",function(){return _.loading|=2}),Pr(h,"link",g),Re(h),u.head.appendChild(h))}function ah(u){return'[src="'+Sn(u)+'"]'}function Zm(u){return"script[async]"+u}function bU(u,h,g){if(h.count++,h.instance===null)switch(h.type){case"style":var _=u.querySelector('style[data-href~="'+Sn(g.href)+'"]');if(_)return h.instance=_,Re(_),_;var A=f({},g,{"data-href":g.href,"data-precedence":g.precedence,href:null,precedence:null});return _=(u.ownerDocument||u).createElement("style"),Re(_),Pr(_,"style",A),Ux(_,g.precedence,u),h.instance=_;case"stylesheet":A=rh(g.href);var D=u.querySelector(Km(A));if(D)return h.state.loading|=4,h.instance=D,Re(D),D;_=yU(g),(A=gs.get(A))&&_E(_,A),D=(u.ownerDocument||u).createElement("link"),Re(D);var j=D;return j._p=new Promise(function(te,Se){j.onload=te,j.onerror=Se}),Pr(D,"link",_),h.state.loading|=4,Ux(D,g.precedence,u),h.instance=D;case"script":return D=ah(g.src),(A=u.querySelector(Zm(D)))?(h.instance=A,Re(A),A):(_=g,(A=gs.get(D))&&(_=f({},g),SE(_,A)),u=u.ownerDocument||u,A=u.createElement("script"),Re(A),Pr(A,"link",_),u.head.appendChild(A),h.instance=A);case"void":return null;default:throw Error(i(443,h.type))}else h.type==="stylesheet"&&(h.state.loading&4)===0&&(_=h.instance,h.state.loading|=4,Ux(_,g.precedence,u));return h.instance}function Ux(u,h,g){for(var _=g.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),A=_.length?_[_.length-1]:null,D=A,j=0;j<_.length;j++){var te=_[j];if(te.dataset.precedence===h)D=te;else if(D!==A)break}D?D.parentNode.insertBefore(u,D.nextSibling):(h=g.nodeType===9?g.head:g,h.insertBefore(u,h.firstChild))}function _E(u,h){u.crossOrigin==null&&(u.crossOrigin=h.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=h.referrerPolicy),u.title==null&&(u.title=h.title)}function SE(u,h){u.crossOrigin==null&&(u.crossOrigin=h.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=h.referrerPolicy),u.integrity==null&&(u.integrity=h.integrity)}var Fx=null;function _U(u,h,g){if(Fx===null){var _=new Map,A=Fx=new Map;A.set(g,_)}else A=Fx,_=A.get(g),_||(_=new Map,A.set(g,_));if(_.has(u))return _;for(_.set(u,null),g=g.getElementsByTagName(u),A=0;A title"):null)}function VQ(u,h,g){if(g===1||h.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof h.precedence!="string"||typeof h.href!="string"||h.href==="")break;return!0;case"link":if(typeof h.rel!="string"||typeof h.href!="string"||h.href===""||h.onLoad||h.onError)break;switch(h.rel){case"stylesheet":return u=h.disabled,typeof h.precedence=="string"&&u==null;default:return!0}case"script":if(h.async&&typeof h.async!="function"&&typeof h.async!="symbol"&&!h.onLoad&&!h.onError&&h.src&&typeof h.src=="string")return!0}return!1}function wU(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}function GQ(u,h,g,_){if(g.type==="stylesheet"&&(typeof _.media!="string"||matchMedia(_.media).matches!==!1)&&(g.state.loading&4)===0){if(g.instance===null){var A=rh(_.href),D=h.querySelector(Km(A));if(D){h=D._p,h!==null&&typeof h=="object"&&typeof h.then=="function"&&(u.count++,u=zx.bind(u),h.then(u,u)),g.state.loading|=4,g.instance=D,Re(D);return}D=h.ownerDocument||h,_=yU(_),(A=gs.get(A))&&_E(_,A),D=D.createElement("link"),Re(D);var j=D;j._p=new Promise(function(te,Se){j.onload=te,j.onerror=Se}),Pr(D,"link",_),g.instance=D}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(g,h),(h=g.state.preload)&&(g.state.loading&3)===0&&(u.count++,g=zx.bind(u),h.addEventListener("load",g),h.addEventListener("error",g))}}var wE=0;function $Q(u,h){return u.stylesheets&&u.count===0&&jx(u,u.stylesheets),0 wE?50:800)+h);return u.unsuspend=g,function(){u.unsuspend=null,clearTimeout(_),clearTimeout(A)}}:null}function zx(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jx(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var Bx=null;function jx(u,h){u.stylesheets=null,u.unsuspend!==null&&(u.count++,Bx=new Map,h.forEach(WQ,u),Bx=null,zx.call(u))}function WQ(u,h){if(!(h.state.loading&4)){var g=Bx.get(u);if(g)var _=g.get(null);else{g=new Map,Bx.set(u,g);for(var A=u.querySelectorAll("link[data-precedence],style[data-precedence]"),D=0;D "u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),DE.exports=cee(),DE.exports}var dee=uee();var qU="popstate";function fee(t={}){function e(i,r){let{pathname:a,search:s,hash:o}=i.location;return v2("",{pathname:a,search:s,hash:o},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(i,r){return typeof r=="string"?r:o0(r)}return pee(e,n,null,t)}function li(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function po(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function hee(){return Math.random().toString(36).substring(2,10)}function XU(t,e){return{usr:t.state,key:t.key,idx:e}}function v2(t,e,n=null,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?Vp(e):e,state:n,key:e&&e.key||i||hee()}}function o0({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Vp(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substring(i),t=t.substring(0,i)),t&&(e.pathname=t)}return e}function pee(t,e,n,i={}){let{window:r=document.defaultView,v5Compat:a=!1}=i,s=r.history,o="POP",l=null,c=d();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function d(){return(s.state||{idx:null}).idx}function f(){o="POP";let x=d(),v=x==null?null:x-c;c=x,l&&l({action:o,location:b.location,delta:v})}function p(x,v){o="PUSH";let M=v2(b.location,x,v);c=d()+1;let w=XU(M,c),E=b.createHref(M);try{s.pushState(w,"",E)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;r.location.assign(E)}a&&l&&l({action:o,location:b.location,delta:1})}function m(x,v){o="REPLACE";let M=v2(b.location,x,v);c=d();let w=XU(M,c),E=b.createHref(M);s.replaceState(w,"",E),a&&l&&l({action:o,location:b.location,delta:0})}function y(x){return mee(x)}let b={get action(){return o},get location(){return t(r,s)},listen(x){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(qU,f),l=x,()=>{r.removeEventListener(qU,f),l=null}},createHref(x){return e(r,x)},createURL:y,encodeLocation(x){let v=y(x);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:m,go(x){return s.go(x)}};return b}function mee(t,e=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),li(n,"No window.location.(origin|href) available to create URL");let i=typeof t=="string"?t:o0(t);return i=i.replace(/ $/,"%20"),!e&&i.startsWith("//")&&(i=n+i),new URL(i,n)}function RV(t,e,n="/"){return gee(t,e,n,!1)}function gee(t,e,n,i){let r=typeof e=="string"?Vp(e):e,a=Zl(r.pathname||"/",n);if(a==null)return null;let s=NV(t);vee(s);let o=null;for(let l=0;o==null&&l {let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(i)&&l)return;li(d.relativePath.startsWith(i),`Absolute route path "${d.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(i.length)}let f=Vl([i,d.relativePath]),p=n.concat(d);s.children&&s.children.length>0&&(li(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),NV(s.children,e,p,f,l)),!(s.path==null&&!s.index)&&e.push({path:f,score:Mee(f,s.index),routesMeta:p})};return t.forEach((s,o)=>{if(s.path===""||!s.path?.includes("?"))a(s,o);else for(let l of PV(s.path))a(s,o,!0,l)}),e}function PV(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,r=n.endsWith("?"),a=n.replace(/\?$/,"");if(i.length===0)return r?[a,""]:[a];let s=PV(i.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),r&&o.push(...s),o.map(l=>t.startsWith("/")&&l===""?"/":l)}function vee(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Eee(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var xee=/^:[\w-]+$/,yee=3,bee=2,_ee=1,See=10,wee=-2,YU=t=>t==="*";function Mee(t,e){let n=t.split("/"),i=n.length;return n.some(YU)&&(i+=wee),e&&(i+=bee),n.filter(r=>!YU(r)).reduce((r,a)=>r+(xee.test(a)?yee:a===""?_ee:See),i)}function Eee(t,e){return t.length===e.length&&t.slice(0,-1).every((i,r)=>i===e[r])?t[t.length-1]-e[e.length-1]:0}function Aee(t,e,n=!1){let{routesMeta:i}=t,r={},a="/",s=[];for(let o=0;o {if(d==="*"){let y=o[p]||"";s=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const m=o[p];return f&&!m?c[d]=void 0:c[d]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:s,pattern:t}}function Tee(t,e=!1,n=!0){po(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let i=[],r="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(i.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(i.push({paramName:"*"}),r+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":t!==""&&t!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),i]}function Cee(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return po(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function Zl(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}var Ree=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nee=t=>Ree.test(t);function Pee(t,e="/"){let{pathname:n,search:i="",hash:r=""}=typeof t=="string"?Vp(t):t,a;if(n)if(Nee(n))a=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),po(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${n}`)}n.startsWith("/")?a=KU(n.substring(1),"/"):a=KU(n,e)}else a=e;return{pathname:a,search:Lee(i),hash:kee(r)}}function KU(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function IE(t,e,n,i){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Dee(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function DV(t){let e=Dee(t);return e.map((n,i)=>i===e.length-1?n.pathname:n.pathnameBase)}function OV(t,e,n,i=!1){let r;typeof t=="string"?r=Vp(t):(r={...t},li(!r.pathname||!r.pathname.includes("?"),IE("?","pathname","search",r)),li(!r.pathname||!r.pathname.includes("#"),IE("#","pathname","hash",r)),li(!r.search||!r.search.includes("#"),IE("#","search","hash",r)));let a=t===""||r.pathname==="",s=a?"/":r.pathname,o;if(s==null)o=n;else{let f=e.length-1;if(!i&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;r.pathname=p.join("/")}o=f>=0?e[f]:"/"}let l=Pee(r,o),c=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}var Vl=t=>t.join("/").replace(/\/\/+/g,"/"),Oee=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Lee=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,kee=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Iee(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var LV=["POST","PUT","PATCH","DELETE"];new Set(LV);var Uee=["GET",...LV];new Set(Uee);var Gp=C.createContext(null);Gp.displayName="DataRouter";var tS=C.createContext(null);tS.displayName="DataRouterState";C.createContext(!1);var kV=C.createContext({isTransitioning:!1});kV.displayName="ViewTransition";var Fee=C.createContext(new Map);Fee.displayName="Fetchers";var zee=C.createContext(null);zee.displayName="Await";var qo=C.createContext(null);qo.displayName="Navigation";var Q0=C.createContext(null);Q0.displayName="Location";var Xo=C.createContext({outlet:null,matches:[],isDataRoute:!1});Xo.displayName="Route";var bN=C.createContext(null);bN.displayName="RouteError";function Bee(t,{relative:e}={}){li(ev(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:i}=C.useContext(qo),{hash:r,pathname:a,search:s}=tv(t,{relative:e}),o=a;return n!=="/"&&(o=a==="/"?n:Vl([n,a])),i.createHref({pathname:o,search:s,hash:r})}function ev(){return C.useContext(Q0)!=null}function wf(){return li(ev(),"useLocation() may be used only in the context of a component."),C.useContext(Q0).location}var IV="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function UV(t){C.useContext(qo).static||C.useLayoutEffect(t)}function FV(){let{isDataRoute:t}=C.useContext(Xo);return t?tte():jee()}function jee(){li(ev(),"useNavigate() may be used only in the context of a component.");let t=C.useContext(Gp),{basename:e,navigator:n}=C.useContext(qo),{matches:i}=C.useContext(Xo),{pathname:r}=wf(),a=JSON.stringify(DV(i)),s=C.useRef(!1);return UV(()=>{s.current=!0}),C.useCallback((l,c={})=>{if(po(s.current,IV),!s.current)return;if(typeof l=="number"){n.go(l);return}let d=OV(l,JSON.parse(a),r,c.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:Vl([e,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[e,n,a,r,t])}var Hee=C.createContext(null);function Vee(t){let e=C.useContext(Xo).outlet;return C.useMemo(()=>e&&C.createElement(Hee.Provider,{value:t},e),[e,t])}function tv(t,{relative:e}={}){let{matches:n}=C.useContext(Xo),{pathname:i}=wf(),r=JSON.stringify(DV(n));return C.useMemo(()=>OV(t,JSON.parse(r),i,e==="path"),[t,r,i,e])}function Gee(t,e){return zV(t,e)}function zV(t,e,n,i,r){li(ev(),"useRoutes() may be used only in the context of a component.");let{navigator:a}=C.useContext(qo),{matches:s}=C.useContext(Xo),o=s[s.length-1],l=o?o.params:{},c=o?o.pathname:"/",d=o?o.pathnameBase:"/",f=o&&o.route;{let M=f&&f.path||"";BV(c,!f||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${c}" (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. +`+_.stack}}var ae=Object.prototype.hasOwnProperty,ie=t.unstable_scheduleCallback,we=t.unstable_cancelCallback,ve=t.unstable_shouldYield,F=t.unstable_requestPaint,k=t.unstable_now,Y=t.unstable_getCurrentPriorityLevel,pe=t.unstable_ImmediatePriority,xe=t.unstable_UserBlockingPriority,fe=t.unstable_NormalPriority,Ye=t.unstable_LowPriority,ke=t.unstable_IdlePriority,$e=t.log,rt=t.unstable_setDisableYieldValue,Ue=null,Pe=null;function dt(u){if(typeof $e=="function"&&rt(u),Pe&&typeof Pe.setStrictMode=="function")try{Pe.setStrictMode(Ue,u)}catch{}}var et=Math.clz32?Math.clz32:ue,Qe=Math.log,st=Math.LN2;function ue(u){return u>>>=0,u===0?32:31-(Qe(u)/st|0)|0}var tt=256,de=262144,Le=4194304;function Ee(u){var h=u&42;if(h!==0)return h;switch(u&-u){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 u&261888;case 262144:case 524288:case 1048576:case 2097152:return u&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function ge(u,h,v){var _=u.pendingLanes;if(_===0)return 0;var T=0,D=u.suspendedLanes,j=u.pingedLanes;u=u.warmLanes;var te=_&134217727;return te!==0?(_=te&~D,_!==0?T=Ee(_):(j&=te,j!==0?T=Ee(j):v||(v=te&~u,v!==0&&(T=Ee(v))))):(te=_&~D,te!==0?T=Ee(te):j!==0?T=Ee(j):v||(v=_&~u,v!==0&&(T=Ee(v)))),T===0?0:h!==0&&h!==T&&(h&D)===0&&(D=T&-T,v=h&-h,D>=v||D===32&&(v&4194048)!==0)?h:T}function je(u,h){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&h)===0}function at(u,h){switch(u){case 1:case 2:case 4:case 8:case 64:return h+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 h+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 yt(){var u=Le;return Le<<=1,(Le&62914560)===0&&(Le=4194304),u}function Ct(u){for(var h=[],v=0;31>v;v++)h.push(u);return h}function tn(u,h){u.pendingLanes|=h,h!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function Pt(u,h,v,_,T,D){var j=u.pendingLanes;u.pendingLanes=v,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=v,u.entangledLanes&=v,u.errorRecoveryDisabledLanes&=v,u.shellSuspendCounter=0;var te=u.entanglements,Se=u.expirationTimes,ze=u.hiddenUpdates;for(v=j&~v;0 "u")return null;try{return u.activeElement||u.body}catch{return u.body}}var Mi=/[\n"\\]/g;function Sn(u){return u.replace(Mi,function(h){return"\\"+h.charCodeAt(0).toString(16)+" "})}function Ws(u,h,v,_,T,D,j,te){u.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?u.type=j:u.removeAttribute("type"),h!=null?j==="number"?(h===0&&u.value===""||u.value!=h)&&(u.value=""+rn(h)):u.value!==""+rn(h)&&(u.value=""+rn(h)):j!=="submit"&&j!=="reset"||u.removeAttribute("value"),h!=null?fr(u,j,rn(h)):v!=null?fr(u,j,rn(v)):_!=null&&u.removeAttribute("value"),T==null&&D!=null&&(u.defaultChecked=!!D),T!=null&&(u.checked=T&&typeof T!="function"&&typeof T!="symbol"),te!=null&&typeof te!="function"&&typeof te!="symbol"&&typeof te!="boolean"?u.name=""+rn(te):u.removeAttribute("name")}function Mn(u,h,v,_,T,D,j,te){if(D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(u.type=D),h!=null||v!=null){if(!(D!=="submit"&&D!=="reset"||h!=null)){Gt(u);return}v=v!=null?""+rn(v):"",h=h!=null?""+rn(h):v,te||h===u.value||(u.value=h),u.defaultValue=h}_=_??T,_=typeof _!="function"&&typeof _!="symbol"&&!!_,u.checked=te?u.checked:!!_,u.defaultChecked=!!_,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(u.name=j),Gt(u)}function fr(u,h,v){h==="number"&&hi(u.ownerDocument)===u||u.defaultValue===""+v||(u.defaultValue=""+v)}function Ki(u,h,v,_){if(u=u.options,h){h={};for(var T=0;T "u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nw=!1;if(Qo)try{var gm={};Object.defineProperty(gm,"passive",{get:function(){Nw=!0}}),window.addEventListener("test",gm,gm),window.removeEventListener("test",gm,gm)}catch{Nw=!1}var xc=null,Pw=null,jv=null;function oL(){if(jv)return jv;var u,h=Pw,v=h.length,_,T="value"in xc?xc.value:xc.textContent,D=T.length;for(u=0;u =ym),hL=" ",pL=!1;function mL(u,h){switch(u){case"keyup":return EJ.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gL(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Of=!1;function TJ(u,h){switch(u){case"compositionend":return gL(h);case"keypress":return h.which!==32?null:(pL=!0,hL);case"textInput":return u=h.data,u===hL&&pL?null:u;default:return null}}function CJ(u,h){if(Of)return u==="compositionend"||!Iw&&mL(u,h)?(u=oL(),jv=Pw=xc=null,Of=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1 =h)return{node:v,offset:h-u};u=_}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=ML(v)}}function AL(u,h){return u&&h?u===h?!0:u&&u.nodeType===3?!1:h&&h.nodeType===3?AL(u,h.parentNode):"contains"in u?u.contains(h):u.compareDocumentPosition?!!(u.compareDocumentPosition(h)&16):!1:!1}function TL(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var h=hi(u.document);h instanceof u.HTMLIFrameElement;){try{var v=typeof h.contentWindow.location.href=="string"}catch{v=!1}if(v)u=h.contentWindow;else break;h=hi(u.document)}return h}function zw(u){var h=u&&u.nodeName&&u.nodeName.toLowerCase();return h&&(h==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||h==="textarea"||u.contentEditable==="true")}var IJ=Qo&&"documentMode"in document&&11>=document.documentMode,Lf=null,Bw=null,wm=null,jw=!1;function CL(u,h,v){var _=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;jw||Lf==null||Lf!==hi(_)||(_=Lf,"selectionStart"in _&&zw(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),wm&&Sm(wm,_)||(wm=_,_=Lx(Bw,"onSelect"),0<_.length&&(h=new Gv("onSelect","select",null,h,v),u.push({event:h,listeners:_}),h.target=Lf)))}function Xu(u,h){var v={};return v[u.toLowerCase()]=h.toLowerCase(),v["Webkit"+u]="webkit"+h,v["Moz"+u]="moz"+h,v}var kf={animationend:Xu("Animation","AnimationEnd"),animationiteration:Xu("Animation","AnimationIteration"),animationstart:Xu("Animation","AnimationStart"),transitionrun:Xu("Transition","TransitionRun"),transitionstart:Xu("Transition","TransitionStart"),transitioncancel:Xu("Transition","TransitionCancel"),transitionend:Xu("Transition","TransitionEnd")},Hw={},RL={};Qo&&(RL=document.createElement("div").style,"AnimationEvent"in window||(delete kf.animationend.animation,delete kf.animationiteration.animation,delete kf.animationstart.animation),"TransitionEvent"in window||delete kf.transitionend.transition);function Ku(u){if(Hw[u])return Hw[u];if(!kf[u])return u;var h=kf[u],v;for(v in h)if(h.hasOwnProperty(v)&&v in RL)return Hw[u]=h[v];return u}var NL=Ku("animationend"),PL=Ku("animationiteration"),DL=Ku("animationstart"),UJ=Ku("transitionrun"),FJ=Ku("transitionstart"),zJ=Ku("transitioncancel"),OL=Ku("transitionend"),LL=new Map,Vw="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Vw.push("scrollEnd");function qs(u,h){LL.set(u,h),lt(h,[u])}var qv=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var h=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(h))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)},cs=[],If=0,Gw=0;function Xv(){for(var u=If,h=Gw=If=0;h>=j,T-=j,bo=1<<32-et(h)+T|v< Xt?(dn=Nt,Nt=null):dn=Nt.sibling;var vn=Ve(Oe,Nt,Fe[Xt],nt);if(vn===null){Nt===null&&(Nt=dn);break}u&&Nt&&vn.alternate===null&&h(Oe,Nt),Te=D(vn,Te,Xt),gn===null?Lt=vn:gn.sibling=vn,gn=vn,Nt=dn}if(Xt===Fe.length)return v(Oe,Nt),hn&&tl(Oe,Xt),Lt;if(Nt===null){for(;Xt Xt?(dn=Nt,Nt=null):dn=Nt.sibling;var Bc=Ve(Oe,Nt,vn.value,nt);if(Bc===null){Nt===null&&(Nt=dn);break}u&&Nt&&Bc.alternate===null&&h(Oe,Nt),Te=D(Bc,Te,Xt),gn===null?Lt=Bc:gn.sibling=Bc,gn=Bc,Nt=dn}if(vn.done)return v(Oe,Nt),hn&&tl(Oe,Xt),Lt;if(Nt===null){for(;!vn.done;Xt++,vn=Fe.next())vn=it(Oe,vn.value,nt),vn!==null&&(Te=D(vn,Te,Xt),gn===null?Lt=vn:gn.sibling=vn,gn=vn);return hn&&tl(Oe,Xt),Lt}for(Nt=_(Nt);!vn.done;Xt++,vn=Fe.next())vn=Ke(Nt,Oe,Xt,vn.value,nt),vn!==null&&(u&&vn.alternate!==null&&Nt.delete(vn.key===null?Xt:vn.key),Te=D(vn,Te,Xt),gn===null?Lt=vn:gn.sibling=vn,gn=vn);return u&&Nt.forEach(function(nee){return h(Oe,nee)}),hn&&tl(Oe,Xt),Lt}function Dn(Oe,Te,Fe,nt){if(typeof Fe=="object"&&Fe!==null&&Fe.type===b&&Fe.key===null&&(Fe=Fe.props.children),typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case m:e:{for(var Lt=Fe.key;Te!==null;){if(Te.key===Lt){if(Lt=Fe.type,Lt===b){if(Te.tag===7){v(Oe,Te.sibling),nt=T(Te,Fe.props.children),nt.return=Oe,Oe=nt;break e}}else if(Te.elementType===Lt||typeof Lt=="object"&&Lt!==null&&Lt.$$typeof===U&&nd(Lt)===Te.type){v(Oe,Te.sibling),nt=T(Te,Fe.props),Rm(nt,Fe),nt.return=Oe,Oe=nt;break e}v(Oe,Te);break}else h(Oe,Te);Te=Te.sibling}Fe.type===b?(nt=Zu(Fe.props.children,Oe.mode,nt,Fe.key),nt.return=Oe,Oe=nt):(nt=Zv(Fe.type,Fe.key,Fe.props,null,Oe.mode,nt),Rm(nt,Fe),nt.return=Oe,Oe=nt)}return j(Oe);case y:e:{for(Lt=Fe.key;Te!==null;){if(Te.key===Lt)if(Te.tag===4&&Te.stateNode.containerInfo===Fe.containerInfo&&Te.stateNode.implementation===Fe.implementation){v(Oe,Te.sibling),nt=T(Te,Fe.children||[]),nt.return=Oe,Oe=nt;break e}else{v(Oe,Te);break}else h(Oe,Te);Te=Te.sibling}nt=Xw(Fe,Oe.mode,nt),nt.return=Oe,Oe=nt}return j(Oe);case U:return Fe=nd(Fe),Dn(Oe,Te,Fe,nt)}if($(Fe))return Tt(Oe,Te,Fe,nt);if(I(Fe)){if(Lt=I(Fe),typeof Lt!="function")throw Error(i(150));return Fe=Lt.call(Fe),Ft(Oe,Te,Fe,nt)}if(typeof Fe.then=="function")return Dn(Oe,Te,rx(Fe),nt);if(Fe.$$typeof===w)return Dn(Oe,Te,ex(Oe,Fe),nt);ax(Oe,Fe)}return typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint"?(Fe=""+Fe,Te!==null&&Te.tag===6?(v(Oe,Te.sibling),nt=T(Te,Fe),nt.return=Oe,Oe=nt):(v(Oe,Te),nt=qw(Fe,Oe.mode,nt),nt.return=Oe,Oe=nt),j(Oe)):v(Oe,Te)}return function(Oe,Te,Fe,nt){try{Cm=0;var Lt=Dn(Oe,Te,Fe,nt);return $f=null,Lt}catch(Nt){if(Nt===Gf||Nt===nx)throw Nt;var gn=ja(29,Nt,null,Oe.mode);return gn.lanes=nt,gn.return=Oe,gn}finally{}}}var rd=ZL(!0),JL=ZL(!1),wc=!1;function sM(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oM(u,h){u=u.updateQueue,h.updateQueue===u&&(h.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function Mc(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function Ec(u,h,v){var _=u.updateQueue;if(_===null)return null;if(_=_.shared,(_n&2)!==0){var T=_.pending;return T===null?h.next=h:(h.next=T.next,T.next=h),_.pending=h,h=Yv(u),kL(u,null,v),h}return Kv(u,_,h,v),Yv(u)}function Nm(u,h,v){if(h=h.updateQueue,h!==null&&(h=h.shared,(v&4194048)!==0)){var _=h.lanes;_&=u.pendingLanes,v|=_,h.lanes=v,Bn(u,v)}}function lM(u,h){var v=u.updateQueue,_=u.alternate;if(_!==null&&(_=_.updateQueue,v===_)){var T=null,D=null;if(v=v.firstBaseUpdate,v!==null){do{var j={lane:v.lane,tag:v.tag,payload:v.payload,callback:null,next:null};D===null?T=D=j:D=D.next=j,v=v.next}while(v!==null);D===null?T=D=h:D=D.next=h}else T=D=h;v={baseState:_.baseState,firstBaseUpdate:T,lastBaseUpdate:D,shared:_.shared,callbacks:_.callbacks},u.updateQueue=v;return}u=v.lastBaseUpdate,u===null?v.firstBaseUpdate=h:u.next=h,v.lastBaseUpdate=h}var cM=!1;function Pm(){if(cM){var u=Vf;if(u!==null)throw u}}function Dm(u,h,v,_){cM=!1;var T=u.updateQueue;wc=!1;var D=T.firstBaseUpdate,j=T.lastBaseUpdate,te=T.shared.pending;if(te!==null){T.shared.pending=null;var Se=te,ze=Se.next;Se.next=null,j===null?D=ze:j.next=ze,j=Se;var Je=u.alternate;Je!==null&&(Je=Je.updateQueue,te=Je.lastBaseUpdate,te!==j&&(te===null?Je.firstBaseUpdate=ze:te.next=ze,Je.lastBaseUpdate=Se))}if(D!==null){var it=T.baseState;j=0,Je=ze=Se=null,te=D;do{var Ve=te.lane&-536870913,Ke=Ve!==te.lane;if(Ke?(un&Ve)===Ve:(_&Ve)===Ve){Ve!==0&&Ve===Hf&&(cM=!0),Je!==null&&(Je=Je.next={lane:0,tag:te.tag,payload:te.payload,callback:null,next:null});e:{var Tt=u,Ft=te;Ve=h;var Dn=v;switch(Ft.tag){case 1:if(Tt=Ft.payload,typeof Tt=="function"){it=Tt.call(Dn,it,Ve);break e}it=Tt;break e;case 3:Tt.flags=Tt.flags&-65537|128;case 0:if(Tt=Ft.payload,Ve=typeof Tt=="function"?Tt.call(Dn,it,Ve):Tt,Ve==null)break e;it=f({},it,Ve);break e;case 2:wc=!0}}Ve=te.callback,Ve!==null&&(u.flags|=64,Ke&&(u.flags|=8192),Ke=T.callbacks,Ke===null?T.callbacks=[Ve]:Ke.push(Ve))}else Ke={lane:Ve,tag:te.tag,payload:te.payload,callback:te.callback,next:null},Je===null?(ze=Je=Ke,Se=it):Je=Je.next=Ke,j|=Ve;if(te=te.next,te===null){if(te=T.shared.pending,te===null)break;Ke=te,te=Ke.next,Ke.next=null,T.lastBaseUpdate=Ke,T.shared.pending=null}}while(!0);Je===null&&(Se=it),T.baseState=Se,T.firstBaseUpdate=ze,T.lastBaseUpdate=Je,D===null&&(T.shared.lanes=0),Nc|=j,u.lanes=j,u.memoizedState=it}}function QL(u,h){if(typeof u!="function")throw Error(i(191,u));u.call(h)}function ek(u,h){var v=u.callbacks;if(v!==null)for(u.callbacks=null,u=0;u D?D:8;var j=q.T,te={};q.T=te,CM(u,!1,h,v);try{var Se=T(),ze=q.S;if(ze!==null&&ze(te,Se),Se!==null&&typeof Se=="object"&&typeof Se.then=="function"){var Je=$J(Se,_);km(u,h,Je,Wa(u))}else km(u,h,_,Wa(u))}catch(it){km(u,h,{then:function(){},status:"rejected",reason:it},Wa())}finally{G.p=D,j!==null&&te.types!==null&&(j.types=te.types),q.T=j}}function ZJ(){}function AM(u,h,v,_){if(u.tag!==5)throw Error(i(476));var T=Dk(u).queue;Pk(u,T,h,K,v===null?ZJ:function(){return Ok(u),v(_)})}function Dk(u){var h=u.memoizedState;if(h!==null)return h;h={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:al,lastRenderedState:K},next:null};var v={};return h.next={memoizedState:v,baseState:v,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:al,lastRenderedState:v},next:null},u.memoizedState=h,u=u.alternate,u!==null&&(u.memoizedState=h),h}function Ok(u){var h=Dk(u);h.next===null&&(h=u.alternate.memoizedState),km(u,h.next.queue,{},Wa())}function TM(){return Rr(Jm)}function Lk(){return Ai().memoizedState}function kk(){return Ai().memoizedState}function JJ(u){for(var h=u.return;h!==null;){switch(h.tag){case 24:case 3:var v=Wa();u=Mc(v);var _=Ec(h,u,v);_!==null&&(Ma(_,h,v),Nm(_,h,v)),h={cache:nM()},u.payload=h;return}h=h.return}}function QJ(u,h,v){var _=Wa();v={lane:_,revertLane:0,gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},mx(u)?Uk(h,v):(v=$w(u,h,v,_),v!==null&&(Ma(v,u,_),Fk(v,h,_)))}function Ik(u,h,v){var _=Wa();km(u,h,v,_)}function km(u,h,v,_){var T={lane:_,revertLane:0,gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null};if(mx(u))Uk(h,T);else{var D=u.alternate;if(u.lanes===0&&(D===null||D.lanes===0)&&(D=h.lastRenderedReducer,D!==null))try{var j=h.lastRenderedState,te=D(j,v);if(T.hasEagerState=!0,T.eagerState=te,Ba(te,j))return Kv(u,h,T,0),jn===null&&Xv(),!1}catch{}finally{}if(v=$w(u,h,T,_),v!==null)return Ma(v,u,_),Fk(v,h,_),!0}return!1}function CM(u,h,v,_){if(_={lane:2,revertLane:sE(),gesture:null,action:_,hasEagerState:!1,eagerState:null,next:null},mx(u)){if(h)throw Error(i(479))}else h=$w(u,v,_,2),h!==null&&Ma(h,u,2)}function mx(u){var h=u.alternate;return u===qt||h!==null&&h===qt}function Uk(u,h){qf=lx=!0;var v=u.pending;v===null?h.next=h:(h.next=v.next,v.next=h),u.pending=h}function Fk(u,h,v){if((v&4194048)!==0){var _=h.lanes;_&=u.pendingLanes,v|=_,h.lanes=v,Bn(u,v)}}var Im={readContext:Rr,use:dx,useCallback:pi,useContext:pi,useEffect:pi,useImperativeHandle:pi,useLayoutEffect:pi,useInsertionEffect:pi,useMemo:pi,useReducer:pi,useRef:pi,useState:pi,useDebugValue:pi,useDeferredValue:pi,useTransition:pi,useSyncExternalStore:pi,useId:pi,useHostTransitionStatus:pi,useFormState:pi,useActionState:pi,useOptimistic:pi,useMemoCache:pi,useCacheRefresh:pi};Im.useEffectEvent=pi;var zk={readContext:Rr,use:dx,useCallback:function(u,h){return aa().memoizedState=[u,h===void 0?null:h],u},useContext:Rr,useEffect:Sk,useImperativeHandle:function(u,h,v){v=v!=null?v.concat([u]):null,hx(4194308,4,Ak.bind(null,h,u),v)},useLayoutEffect:function(u,h){return hx(4194308,4,u,h)},useInsertionEffect:function(u,h){hx(4,2,u,h)},useMemo:function(u,h){var v=aa();h=h===void 0?null:h;var _=u();if(ad){dt(!0);try{u()}finally{dt(!1)}}return v.memoizedState=[_,h],_},useReducer:function(u,h,v){var _=aa();if(v!==void 0){var T=v(h);if(ad){dt(!0);try{v(h)}finally{dt(!1)}}}else T=h;return _.memoizedState=_.baseState=T,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:T},_.queue=u,u=u.dispatch=QJ.bind(null,qt,u),[_.memoizedState,u]},useRef:function(u){var h=aa();return u={current:u},h.memoizedState=u},useState:function(u){u=_M(u);var h=u.queue,v=Ik.bind(null,qt,h);return h.dispatch=v,[u.memoizedState,v]},useDebugValue:MM,useDeferredValue:function(u,h){var v=aa();return EM(v,u,h)},useTransition:function(){var u=_M(!1);return u=Pk.bind(null,qt,u.queue,!0,!1),aa().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,h,v){var _=qt,T=aa();if(hn){if(v===void 0)throw Error(i(407));v=v()}else{if(v=h(),jn===null)throw Error(i(349));(un&127)!==0||sk(_,h,v)}T.memoizedState=v;var D={value:v,getSnapshot:h};return T.queue=D,Sk(lk.bind(null,_,D,u),[u]),_.flags|=2048,Kf(9,{destroy:void 0},ok.bind(null,_,D,v,h),null),v},useId:function(){var u=aa(),h=jn.identifierPrefix;if(hn){var v=_o,_=bo;v=(_&~(1<<32-et(_)-1)).toString(32)+v,h="_"+h+"R_"+v,v=cx++,0 <\/script>",D=D.removeChild(D.firstChild);break;case"select":D=typeof _.is=="string"?j.createElement("select",{is:_.is}):j.createElement("select"),_.multiple?D.multiple=!0:_.size&&(D.size=_.size);break;default:D=typeof _.is=="string"?j.createElement(T,{is:_.is}):j.createElement(T)}}D[si]=h,D[wi]=_;e:for(j=h.child;j!==null;){if(j.tag===5||j.tag===6)D.appendChild(j.stateNode);else if(j.tag!==4&&j.tag!==27&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===h)break e;for(;j.sibling===null;){if(j.return===null||j.return===h)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}h.stateNode=D;e:switch(Pr(D,T,_),T){case"button":case"input":case"select":case"textarea":_=!!_.autoFocus;break e;case"img":_=!0;break e;default:_=!1}_&&ol(h)}}return Yn(h),HM(h,h.type,u===null?null:u.memoizedProps,h.pendingProps,v),null;case 6:if(u&&h.stateNode!=null)u.memoizedProps!==_&&ol(h);else{if(typeof _!="string"&&h.stateNode===null)throw Error(i(166));if(u=me.current,Bf(h)){if(u=h.stateNode,v=h.memoizedProps,_=null,T=Cr,T!==null)switch(T.tag){case 27:case 5:_=T.memoizedProps}u[si]=h,u=!!(u.nodeValue===v||_!==null&&_.suppressHydrationWarning===!0||rU(u.nodeValue,v)),u||_c(h,!0)}else u=kx(u).createTextNode(_),u[si]=h,h.stateNode=u}return Yn(h),null;case 31:if(v=h.memoizedState,u===null||u.memoizedState!==null){if(_=Bf(h),v!==null){if(u===null){if(!_)throw Error(i(318));if(u=h.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(557));u[si]=h}else Ju(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;Yn(h),u=!1}else v=Jw(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=v),u=!0;if(!u)return h.flags&256?(Va(h),h):(Va(h),null);if((h.flags&128)!==0)throw Error(i(558))}return Yn(h),null;case 13:if(_=h.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(T=Bf(h),_!==null&&_.dehydrated!==null){if(u===null){if(!T)throw Error(i(318));if(T=h.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(i(317));T[si]=h}else Ju(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;Yn(h),T=!1}else T=Jw(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=T),T=!0;if(!T)return h.flags&256?(Va(h),h):(Va(h),null)}return Va(h),(h.flags&128)!==0?(h.lanes=v,h):(v=_!==null,u=u!==null&&u.memoizedState!==null,v&&(_=h.child,T=null,_.alternate!==null&&_.alternate.memoizedState!==null&&_.alternate.memoizedState.cachePool!==null&&(T=_.alternate.memoizedState.cachePool.pool),D=null,_.memoizedState!==null&&_.memoizedState.cachePool!==null&&(D=_.memoizedState.cachePool.pool),D!==T&&(_.flags|=2048)),v!==u&&v&&(h.child.flags|=8192),bx(h,h.updateQueue),Yn(h),null);case 4:return he(),u===null&&uE(h.stateNode.containerInfo),Yn(h),null;case 10:return il(h.type),Yn(h),null;case 19:if(X(Ei),_=h.memoizedState,_===null)return Yn(h),null;if(T=(h.flags&128)!==0,D=_.rendering,D===null)if(T)Fm(_,!1);else{if(mi!==0||u!==null&&(u.flags&128)!==0)for(u=h.child;u!==null;){if(D=ox(u),D!==null){for(h.flags|=128,Fm(_,!1),u=D.updateQueue,h.updateQueue=u,bx(h,u),h.subtreeFlags=0,u=v,v=h.child;v!==null;)IL(v,u),v=v.sibling;return re(Ei,Ei.current&1|2),hn&&tl(h,_.treeForkCount),h.child}u=u.sibling}_.tail!==null&&k()>Ex&&(h.flags|=128,T=!0,Fm(_,!1),h.lanes=4194304)}else{if(!T)if(u=ox(D),u!==null){if(h.flags|=128,T=!0,u=u.updateQueue,h.updateQueue=u,bx(h,u),Fm(_,!0),_.tail===null&&_.tailMode==="hidden"&&!D.alternate&&!hn)return Yn(h),null}else 2*k()-_.renderingStartTime>Ex&&v!==536870912&&(h.flags|=128,T=!0,Fm(_,!1),h.lanes=4194304);_.isBackwards?(D.sibling=h.child,h.child=D):(u=_.last,u!==null?u.sibling=D:h.child=D,_.last=D)}return _.tail!==null?(u=_.tail,_.rendering=u,_.tail=u.sibling,_.renderingStartTime=k(),u.sibling=null,v=Ei.current,re(Ei,T?v&1|2:v&1),hn&&tl(h,_.treeForkCount),u):(Yn(h),null);case 22:case 23:return Va(h),dM(),_=h.memoizedState!==null,u!==null?u.memoizedState!==null!==_&&(h.flags|=8192):_&&(h.flags|=8192),_?(v&536870912)!==0&&(h.flags&128)===0&&(Yn(h),h.subtreeFlags&6&&(h.flags|=8192)):Yn(h),v=h.updateQueue,v!==null&&bx(h,v.retryQueue),v=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),_=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(_=h.memoizedState.cachePool.pool),_!==v&&(h.flags|=2048),u!==null&&X(td),null;case 24:return v=null,u!==null&&(v=u.memoizedState.cache),h.memoizedState.cache!==v&&(h.flags|=2048),il(Oi),Yn(h),null;case 25:return null;case 30:return null}throw Error(i(156,h.tag))}function rQ(u,h){switch(Yw(h),h.tag){case 1:return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 3:return il(Oi),he(),u=h.flags,(u&65536)!==0&&(u&128)===0?(h.flags=u&-65537|128,h):null;case 26:case 27:case 5:return Be(h),null;case 31:if(h.memoizedState!==null){if(Va(h),h.alternate===null)throw Error(i(340));Ju()}return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 13:if(Va(h),u=h.memoizedState,u!==null&&u.dehydrated!==null){if(h.alternate===null)throw Error(i(340));Ju()}return u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 19:return X(Ei),null;case 4:return he(),null;case 10:return il(h.type),null;case 22:case 23:return Va(h),dM(),u!==null&&X(td),u=h.flags,u&65536?(h.flags=u&-65537|128,h):null;case 24:return il(Oi),null;case 25:return null;default:return null}}function cI(u,h){switch(Yw(h),h.tag){case 3:il(Oi),he();break;case 26:case 27:case 5:Be(h);break;case 4:he();break;case 31:h.memoizedState!==null&&Va(h);break;case 13:Va(h);break;case 19:X(Ei);break;case 10:il(h.type);break;case 22:case 23:Va(h),dM(),u!==null&&X(td);break;case 24:il(Oi)}}function zm(u,h){try{var v=h.updateQueue,_=v!==null?v.lastEffect:null;if(_!==null){var T=_.next;v=T;do{if((v.tag&u)===u){_=void 0;var D=v.create,j=v.inst;_=D(),j.destroy=_}v=v.next}while(v!==T)}}catch(te){An(h,h.return,te)}}function Cc(u,h,v){try{var _=h.updateQueue,T=_!==null?_.lastEffect:null;if(T!==null){var D=T.next;_=D;do{if((_.tag&u)===u){var j=_.inst,te=j.destroy;if(te!==void 0){j.destroy=void 0,T=h;var Se=v,ze=te;try{ze()}catch(Je){An(T,Se,Je)}}}_=_.next}while(_!==D)}}catch(Je){An(h,h.return,Je)}}function uI(u){var h=u.updateQueue;if(h!==null){var v=u.stateNode;try{ek(h,v)}catch(_){An(u,u.return,_)}}}function dI(u,h,v){v.props=sd(u.type,u.memoizedProps),v.state=u.memoizedState;try{v.componentWillUnmount()}catch(_){An(u,h,_)}}function Bm(u,h){try{var v=u.ref;if(v!==null){switch(u.tag){case 26:case 27:case 5:var _=u.stateNode;break;case 30:_=u.stateNode;break;default:_=u.stateNode}typeof v=="function"?u.refCleanup=v(_):v.current=_}}catch(T){An(u,h,T)}}function So(u,h){var v=u.ref,_=u.refCleanup;if(v!==null)if(typeof _=="function")try{_()}catch(T){An(u,h,T)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof v=="function")try{v(null)}catch(T){An(u,h,T)}else v.current=null}function fI(u){var h=u.type,v=u.memoizedProps,_=u.stateNode;try{e:switch(h){case"button":case"input":case"select":case"textarea":v.autoFocus&&_.focus();break e;case"img":v.src?_.src=v.src:v.srcSet&&(_.srcset=v.srcSet)}}catch(T){An(u,u.return,T)}}function VM(u,h,v){try{var _=u.stateNode;AQ(_,u.type,v,h),_[wi]=h}catch(T){An(u,u.return,T)}}function hI(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27&&kc(u.type)||u.tag===4}function GM(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||hI(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.tag===27&&kc(u.type)||u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function $M(u,h,v){var _=u.tag;if(_===5||_===6)u=u.stateNode,h?(v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v).insertBefore(u,h):(h=v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v,h.appendChild(u),v=v._reactRootContainer,v!=null||h.onclick!==null||(h.onclick=Jo));else if(_!==4&&(_===27&&kc(u.type)&&(v=u.stateNode,h=null),u=u.child,u!==null))for($M(u,h,v),u=u.sibling;u!==null;)$M(u,h,v),u=u.sibling}function _x(u,h,v){var _=u.tag;if(_===5||_===6)u=u.stateNode,h?v.insertBefore(u,h):v.appendChild(u);else if(_!==4&&(_===27&&kc(u.type)&&(v=u.stateNode),u=u.child,u!==null))for(_x(u,h,v),u=u.sibling;u!==null;)_x(u,h,v),u=u.sibling}function pI(u){var h=u.stateNode,v=u.memoizedProps;try{for(var _=u.type,T=h.attributes;T.length;)h.removeAttributeNode(T[0]);Pr(h,_,v),h[si]=u,h[wi]=v}catch(D){An(u,u.return,D)}}var ll=!1,Ii=!1,WM=!1,mI=typeof WeakSet=="function"?WeakSet:Set,pr=null;function aQ(u,h){if(u=u.containerInfo,hE=Hx,u=TL(u),zw(u)){if("selectionStart"in u)var v={start:u.selectionStart,end:u.selectionEnd};else e:{v=(v=u.ownerDocument)&&v.defaultView||window;var _=v.getSelection&&v.getSelection();if(_&&_.rangeCount!==0){v=_.anchorNode;var T=_.anchorOffset,D=_.focusNode;_=_.focusOffset;try{v.nodeType,D.nodeType}catch{v=null;break e}var j=0,te=-1,Se=-1,ze=0,Je=0,it=u,Ve=null;t:for(;;){for(var Ke;it!==v||T!==0&&it.nodeType!==3||(te=j+T),it!==D||_!==0&&it.nodeType!==3||(Se=j+_),it.nodeType===3&&(j+=it.nodeValue.length),(Ke=it.firstChild)!==null;)Ve=it,it=Ke;for(;;){if(it===u)break t;if(Ve===v&&++ze===T&&(te=j),Ve===D&&++Je===_&&(Se=j),(Ke=it.nextSibling)!==null)break;it=Ve,Ve=it.parentNode}it=Ke}v=te===-1||Se===-1?null:{start:te,end:Se}}else v=null}v=v||{start:0,end:0}}else v=null;for(pE={focusedElem:u,selectionRange:v},Hx=!1,pr=h;pr!==null;)if(h=pr,u=h.child,(h.subtreeFlags&1028)!==0&&u!==null)u.return=h,pr=u;else for(;pr!==null;){switch(h=pr,D=h.alternate,u=h.flags,h.tag){case 0:if((u&4)!==0&&(u=h.updateQueue,u=u!==null?u.events:null,u!==null))for(v=0;v title"))),Pr(D,_,v),D[si]=u,Re(D),_=D;break e;case"link":var j=_U("link","href",T).get(_+(v.href||""));if(j){for(var te=0;te Dn&&(j=Dn,Dn=Ft,Ft=j);var Oe=EL(te,Ft),Te=EL(te,Dn);if(Oe&&Te&&(Ke.rangeCount!==1||Ke.anchorNode!==Oe.node||Ke.anchorOffset!==Oe.offset||Ke.focusNode!==Te.node||Ke.focusOffset!==Te.offset)){var Fe=it.createRange();Fe.setStart(Oe.node,Oe.offset),Ke.removeAllRanges(),Ft>Dn?(Ke.addRange(Fe),Ke.extend(Te.node,Te.offset)):(Fe.setEnd(Te.node,Te.offset),Ke.addRange(Fe))}}}}for(it=[],Ke=te;Ke=Ke.parentNode;)Ke.nodeType===1&&it.push({element:Ke,left:Ke.scrollLeft,top:Ke.scrollTop});for(typeof te.focus=="function"&&te.focus(),te=0;te v?32:v,q.T=null,v=QM,QM=null;var D=Dc,j=hl;if(Yi=0,eh=Dc=null,hl=0,(_n&6)!==0)throw Error(i(331));var te=_n;if(_n|=4,AI(D.current),wI(D,D.current,j,v),_n=te,Wm(0,!1),Pe&&typeof Pe.onPostCommitFiberRoot=="function")try{Pe.onPostCommitFiberRoot(Ue,D)}catch{}return!0}finally{G.p=T,q.T=_,GI(u,h)}}function WI(u,h,v){h=us(v,h),h=DM(u.stateNode,h,2),u=Ec(u,h,2),u!==null&&(tn(u,2),wo(u))}function An(u,h,v){if(u.tag===3)WI(u,u,v);else for(;h!==null;){if(h.tag===3){WI(h,u,v);break}else if(h.tag===1){var _=h.stateNode;if(typeof h.type.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&(Pc===null||!Pc.has(_))){u=us(v,u),v=qk(2),_=Ec(h,v,2),_!==null&&(Xk(v,_,h,u),tn(_,2),wo(_));break}}h=h.return}}function iE(u,h,v){var _=u.pingCache;if(_===null){_=u.pingCache=new lQ;var T=new Set;_.set(h,T)}else T=_.get(h),T===void 0&&(T=new Set,_.set(h,T));T.has(v)||(KM=!0,T.add(v),u=hQ.bind(null,u,h,v),h.then(u,u))}function hQ(u,h,v){var _=u.pingCache;_!==null&&_.delete(h),u.pingedLanes|=u.suspendedLanes&v,u.warmLanes&=~v,jn===u&&(un&v)===v&&(mi===4||mi===3&&(un&62914560)===un&&300>k()-Mx?(_n&2)===0&&th(u,0):YM|=v,Qf===un&&(Qf=0)),wo(u)}function qI(u,h){h===0&&(h=yt()),u=Yu(u,h),u!==null&&(tn(u,h),wo(u))}function pQ(u){var h=u.memoizedState,v=0;h!==null&&(v=h.retryLane),qI(u,v)}function mQ(u,h){var v=0;switch(u.tag){case 31:case 13:var _=u.stateNode,T=u.memoizedState;T!==null&&(v=T.retryLane);break;case 19:_=u.stateNode;break;case 22:_=u.stateNode._retryCache;break;default:throw Error(i(314))}_!==null&&_.delete(h),qI(u,v)}function gQ(u,h){return ie(u,h)}var Px=null,ih=null,rE=!1,Dx=!1,aE=!1,Lc=0;function wo(u){u!==ih&&u.next===null&&(ih===null?Px=ih=u:ih=ih.next=u),Dx=!0,rE||(rE=!0,xQ())}function Wm(u,h){if(!aE&&Dx){aE=!0;do for(var v=!1,_=Px;_!==null;){if(u!==0){var T=_.pendingLanes;if(T===0)var D=0;else{var j=_.suspendedLanes,te=_.pingedLanes;D=(1<<31-et(42|u)+1)-1,D&=T&~(j&~te),D=D&201326741?D&201326741|1:D?D|2:0}D!==0&&(v=!0,ZI(_,D))}else D=un,D=ge(_,_===jn?D:0,_.cancelPendingCommit!==null||_.timeoutHandle!==-1),(D&3)===0||je(_,D)||(v=!0,ZI(_,D));_=_.next}while(v);aE=!1}}function vQ(){XI()}function XI(){Dx=rE=!1;var u=0;Lc!==0&&CQ()&&(u=Lc);for(var h=k(),v=null,_=Px;_!==null;){var T=_.next,D=KI(_,h);D===0?(_.next=null,v===null?Px=T:v.next=T,T===null&&(ih=v)):(v=_,(u!==0||(D&3)!==0)&&(Dx=!0)),_=T}Yi!==0&&Yi!==5||Wm(u),Lc!==0&&(Lc=0)}function KI(u,h){for(var v=u.suspendedLanes,_=u.pingedLanes,T=u.expirationTimes,D=u.pendingLanes&-62914561;0 te)break;var Je=Se.transferSize,it=Se.initiatorType;Je&&aU(it)&&(Se=Se.responseEnd,j+=Je*(Se "u"?null:document;function vU(u,h,v){var _=rh;if(_&&typeof h=="string"&&h){var T=Sn(h);T='link[rel="'+u+'"][href="'+T+'"]',typeof v=="string"&&(T+='[crossorigin="'+v+'"]'),gU.has(T)||(gU.add(T),u={rel:u,crossOrigin:v,href:h},_.querySelector(T)===null&&(h=_.createElement("link"),Pr(h,"link",u),Re(h),_.head.appendChild(h)))}}function UQ(u){pl.D(u),vU("dns-prefetch",u,null)}function FQ(u,h){pl.C(u,h),vU("preconnect",u,h)}function zQ(u,h,v){pl.L(u,h,v);var _=rh;if(_&&u&&h){var T='link[rel="preload"][as="'+Sn(h)+'"]';h==="image"&&v&&v.imageSrcSet?(T+='[imagesrcset="'+Sn(v.imageSrcSet)+'"]',typeof v.imageSizes=="string"&&(T+='[imagesizes="'+Sn(v.imageSizes)+'"]')):T+='[href="'+Sn(u)+'"]';var D=T;switch(h){case"style":D=ah(u);break;case"script":D=sh(u)}gs.has(D)||(u=f({rel:"preload",href:h==="image"&&v&&v.imageSrcSet?void 0:u,as:h},v),gs.set(D,u),_.querySelector(T)!==null||h==="style"&&_.querySelector(Ym(D))||h==="script"&&_.querySelector(Zm(D))||(h=_.createElement("link"),Pr(h,"link",u),Re(h),_.head.appendChild(h)))}}function BQ(u,h){pl.m(u,h);var v=rh;if(v&&u){var _=h&&typeof h.as=="string"?h.as:"script",T='link[rel="modulepreload"][as="'+Sn(_)+'"][href="'+Sn(u)+'"]',D=T;switch(_){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":D=sh(u)}if(!gs.has(D)&&(u=f({rel:"modulepreload",href:u},h),gs.set(D,u),v.querySelector(T)===null)){switch(_){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(v.querySelector(Zm(D)))return}_=v.createElement("link"),Pr(_,"link",u),Re(_),v.head.appendChild(_)}}}function jQ(u,h,v){pl.S(u,h,v);var _=rh;if(_&&u){var T=Ne(_).hoistableStyles,D=ah(u);h=h||"default";var j=T.get(D);if(!j){var te={loading:0,preload:null};if(j=_.querySelector(Ym(D)))te.loading=5;else{u=f({rel:"stylesheet",href:u,"data-precedence":h},v),(v=gs.get(D))&&_E(u,v);var Se=j=_.createElement("link");Re(Se),Pr(Se,"link",u),Se._p=new Promise(function(ze,Je){Se.onload=ze,Se.onerror=Je}),Se.addEventListener("load",function(){te.loading|=1}),Se.addEventListener("error",function(){te.loading|=2}),te.loading|=4,Ux(j,h,_)}j={type:"stylesheet",instance:j,count:1,state:te},T.set(D,j)}}}function HQ(u,h){pl.X(u,h);var v=rh;if(v&&u){var _=Ne(v).hoistableScripts,T=sh(u),D=_.get(T);D||(D=v.querySelector(Zm(T)),D||(u=f({src:u,async:!0},h),(h=gs.get(T))&&SE(u,h),D=v.createElement("script"),Re(D),Pr(D,"link",u),v.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},_.set(T,D))}}function VQ(u,h){pl.M(u,h);var v=rh;if(v&&u){var _=Ne(v).hoistableScripts,T=sh(u),D=_.get(T);D||(D=v.querySelector(Zm(T)),D||(u=f({src:u,async:!0,type:"module"},h),(h=gs.get(T))&&SE(u,h),D=v.createElement("script"),Re(D),Pr(D,"link",u),v.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},_.set(T,D))}}function xU(u,h,v,_){var T=(T=me.current)?Ix(T):null;if(!T)throw Error(i(446));switch(u){case"meta":case"title":return null;case"style":return typeof v.precedence=="string"&&typeof v.href=="string"?(h=ah(v.href),v=Ne(T).hoistableStyles,_=v.get(h),_||(_={type:"style",instance:null,count:0,state:null},v.set(h,_)),_):{type:"void",instance:null,count:0,state:null};case"link":if(v.rel==="stylesheet"&&typeof v.href=="string"&&typeof v.precedence=="string"){u=ah(v.href);var D=Ne(T).hoistableStyles,j=D.get(u);if(j||(T=T.ownerDocument||T,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},D.set(u,j),(D=T.querySelector(Ym(u)))&&!D._p&&(j.instance=D,j.state.loading=5),gs.has(u)||(v={rel:"preload",as:"style",href:v.href,crossOrigin:v.crossOrigin,integrity:v.integrity,media:v.media,hrefLang:v.hrefLang,referrerPolicy:v.referrerPolicy},gs.set(u,v),D||GQ(T,u,v,j.state))),h&&_===null)throw Error(i(528,""));return j}if(h&&_!==null)throw Error(i(529,""));return null;case"script":return h=v.async,v=v.src,typeof v=="string"&&h&&typeof h!="function"&&typeof h!="symbol"?(h=sh(v),v=Ne(T).hoistableScripts,_=v.get(h),_||(_={type:"script",instance:null,count:0,state:null},v.set(h,_)),_):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,u))}}function ah(u){return'href="'+Sn(u)+'"'}function Ym(u){return'link[rel="stylesheet"]['+u+"]"}function yU(u){return f({},u,{"data-precedence":u.precedence,precedence:null})}function GQ(u,h,v,_){u.querySelector('link[rel="preload"][as="style"]['+h+"]")?_.loading=1:(h=u.createElement("link"),_.preload=h,h.addEventListener("load",function(){return _.loading|=1}),h.addEventListener("error",function(){return _.loading|=2}),Pr(h,"link",v),Re(h),u.head.appendChild(h))}function sh(u){return'[src="'+Sn(u)+'"]'}function Zm(u){return"script[async]"+u}function bU(u,h,v){if(h.count++,h.instance===null)switch(h.type){case"style":var _=u.querySelector('style[data-href~="'+Sn(v.href)+'"]');if(_)return h.instance=_,Re(_),_;var T=f({},v,{"data-href":v.href,"data-precedence":v.precedence,href:null,precedence:null});return _=(u.ownerDocument||u).createElement("style"),Re(_),Pr(_,"style",T),Ux(_,v.precedence,u),h.instance=_;case"stylesheet":T=ah(v.href);var D=u.querySelector(Ym(T));if(D)return h.state.loading|=4,h.instance=D,Re(D),D;_=yU(v),(T=gs.get(T))&&_E(_,T),D=(u.ownerDocument||u).createElement("link"),Re(D);var j=D;return j._p=new Promise(function(te,Se){j.onload=te,j.onerror=Se}),Pr(D,"link",_),h.state.loading|=4,Ux(D,v.precedence,u),h.instance=D;case"script":return D=sh(v.src),(T=u.querySelector(Zm(D)))?(h.instance=T,Re(T),T):(_=v,(T=gs.get(D))&&(_=f({},v),SE(_,T)),u=u.ownerDocument||u,T=u.createElement("script"),Re(T),Pr(T,"link",_),u.head.appendChild(T),h.instance=T);case"void":return null;default:throw Error(i(443,h.type))}else h.type==="stylesheet"&&(h.state.loading&4)===0&&(_=h.instance,h.state.loading|=4,Ux(_,v.precedence,u));return h.instance}function Ux(u,h,v){for(var _=v.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),T=_.length?_[_.length-1]:null,D=T,j=0;j<_.length;j++){var te=_[j];if(te.dataset.precedence===h)D=te;else if(D!==T)break}D?D.parentNode.insertBefore(u,D.nextSibling):(h=v.nodeType===9?v.head:v,h.insertBefore(u,h.firstChild))}function _E(u,h){u.crossOrigin==null&&(u.crossOrigin=h.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=h.referrerPolicy),u.title==null&&(u.title=h.title)}function SE(u,h){u.crossOrigin==null&&(u.crossOrigin=h.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=h.referrerPolicy),u.integrity==null&&(u.integrity=h.integrity)}var Fx=null;function _U(u,h,v){if(Fx===null){var _=new Map,T=Fx=new Map;T.set(v,_)}else T=Fx,_=T.get(v),_||(_=new Map,T.set(v,_));if(_.has(u))return _;for(_.set(u,null),v=v.getElementsByTagName(u),T=0;T title"):null)}function $Q(u,h,v){if(v===1||h.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof h.precedence!="string"||typeof h.href!="string"||h.href==="")break;return!0;case"link":if(typeof h.rel!="string"||typeof h.href!="string"||h.href===""||h.onLoad||h.onError)break;switch(h.rel){case"stylesheet":return u=h.disabled,typeof h.precedence=="string"&&u==null;default:return!0}case"script":if(h.async&&typeof h.async!="function"&&typeof h.async!="symbol"&&!h.onLoad&&!h.onError&&h.src&&typeof h.src=="string")return!0}return!1}function wU(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}function WQ(u,h,v,_){if(v.type==="stylesheet"&&(typeof _.media!="string"||matchMedia(_.media).matches!==!1)&&(v.state.loading&4)===0){if(v.instance===null){var T=ah(_.href),D=h.querySelector(Ym(T));if(D){h=D._p,h!==null&&typeof h=="object"&&typeof h.then=="function"&&(u.count++,u=zx.bind(u),h.then(u,u)),v.state.loading|=4,v.instance=D,Re(D);return}D=h.ownerDocument||h,_=yU(_),(T=gs.get(T))&&_E(_,T),D=D.createElement("link"),Re(D);var j=D;j._p=new Promise(function(te,Se){j.onload=te,j.onerror=Se}),Pr(D,"link",_),v.instance=D}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(v,h),(h=v.state.preload)&&(v.state.loading&3)===0&&(u.count++,v=zx.bind(u),h.addEventListener("load",v),h.addEventListener("error",v))}}var wE=0;function qQ(u,h){return u.stylesheets&&u.count===0&&jx(u,u.stylesheets),0 wE?50:800)+h);return u.unsuspend=v,function(){u.unsuspend=null,clearTimeout(_),clearTimeout(T)}}:null}function zx(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jx(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var Bx=null;function jx(u,h){u.stylesheets=null,u.unsuspend!==null&&(u.count++,Bx=new Map,h.forEach(XQ,u),Bx=null,zx.call(u))}function XQ(u,h){if(!(h.state.loading&4)){var v=Bx.get(u);if(v)var _=v.get(null);else{v=new Map,Bx.set(u,v);for(var T=u.querySelectorAll("link[data-precedence],style[data-precedence]"),D=0;D "u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),DE.exports=dee(),DE.exports}var hee=fee();var qU="popstate";function pee(t={}){function e(i,r){let{pathname:a,search:s,hash:o}=i.location;return v2("",{pathname:a,search:s,hash:o},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function n(i,r){return typeof r=="string"?r:o0(r)}return gee(e,n,null,t)}function li(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function po(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function mee(){return Math.random().toString(36).substring(2,10)}function XU(t,e){return{usr:t.state,key:t.key,idx:e}}function v2(t,e,n=null,i){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?Gp(e):e,state:n,key:e&&e.key||i||mee()}}function o0({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Gp(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let i=t.indexOf("?");i>=0&&(e.search=t.substring(i),t=t.substring(0,i)),t&&(e.pathname=t)}return e}function gee(t,e,n,i={}){let{window:r=document.defaultView,v5Compat:a=!1}=i,s=r.history,o="POP",l=null,c=d();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function d(){return(s.state||{idx:null}).idx}function f(){o="POP";let x=d(),g=x==null?null:x-c;c=x,l&&l({action:o,location:b.location,delta:g})}function p(x,g){o="PUSH";let M=v2(b.location,x,g);c=d()+1;let w=XU(M,c),E=b.createHref(M);try{s.pushState(w,"",E)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;r.location.assign(E)}a&&l&&l({action:o,location:b.location,delta:1})}function m(x,g){o="REPLACE";let M=v2(b.location,x,g);c=d();let w=XU(M,c),E=b.createHref(M);s.replaceState(w,"",E),a&&l&&l({action:o,location:b.location,delta:0})}function y(x){return vee(x)}let b={get action(){return o},get location(){return t(r,s)},listen(x){if(l)throw new Error("A history only accepts one active listener");return r.addEventListener(qU,f),l=x,()=>{r.removeEventListener(qU,f),l=null}},createHref(x){return e(r,x)},createURL:y,encodeLocation(x){let g=y(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:p,replace:m,go(x){return s.go(x)}};return b}function vee(t,e=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),li(n,"No window.location.(origin|href) available to create URL");let i=typeof t=="string"?t:o0(t);return i=i.replace(/ $/,"%20"),!e&&i.startsWith("//")&&(i=n+i),new URL(i,n)}function RV(t,e,n="/"){return xee(t,e,n,!1)}function xee(t,e,n,i){let r=typeof e=="string"?Gp(e):e,a=Jl(r.pathname||"/",n);if(a==null)return null;let s=NV(t);yee(s);let o=null;for(let l=0;o==null&&l {let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(i)&&l)return;li(d.relativePath.startsWith(i),`Absolute route path "${d.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(i.length)}let f=Gl([i,d.relativePath]),p=n.concat(d);s.children&&s.children.length>0&&(li(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),NV(s.children,e,p,f,l)),!(s.path==null&&!s.index)&&e.push({path:f,score:Aee(f,s.index),routesMeta:p})};return t.forEach((s,o)=>{if(s.path===""||!s.path?.includes("?"))a(s,o);else for(let l of PV(s.path))a(s,o,!0,l)}),e}function PV(t){let e=t.split("/");if(e.length===0)return[];let[n,...i]=e,r=n.endsWith("?"),a=n.replace(/\?$/,"");if(i.length===0)return r?[a,""]:[a];let s=PV(i.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),r&&o.push(...s),o.map(l=>t.startsWith("/")&&l===""?"/":l)}function yee(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Tee(e.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var bee=/^:[\w-]+$/,_ee=3,See=2,wee=1,Mee=10,Eee=-2,KU=t=>t==="*";function Aee(t,e){let n=t.split("/"),i=n.length;return n.some(KU)&&(i+=Eee),e&&(i+=See),n.filter(r=>!KU(r)).reduce((r,a)=>r+(bee.test(a)?_ee:a===""?wee:Mee),i)}function Tee(t,e){return t.length===e.length&&t.slice(0,-1).every((i,r)=>i===e[r])?t[t.length-1]-e[e.length-1]:0}function Cee(t,e,n=!1){let{routesMeta:i}=t,r={},a="/",s=[];for(let o=0;o {if(d==="*"){let y=o[p]||"";s=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const m=o[p];return f&&!m?c[d]=void 0:c[d]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:s,pattern:t}}function Ree(t,e=!1,n=!0){po(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let i=[],r="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(i.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(i.push({paramName:"*"}),r+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":t!==""&&t!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),i]}function Nee(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return po(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function Jl(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,i=t.charAt(n);return i&&i!=="/"?null:t.slice(n)||"/"}var Pee=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dee=t=>Pee.test(t);function Oee(t,e="/"){let{pathname:n,search:i="",hash:r=""}=typeof t=="string"?Gp(t):t,a;if(n)if(Dee(n))a=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),po(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${n}`)}n.startsWith("/")?a=YU(n.substring(1),"/"):a=YU(n,e)}else a=e;return{pathname:a,search:Iee(i),hash:Uee(r)}}function YU(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function IE(t,e,n,i){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Lee(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function DV(t){let e=Lee(t);return e.map((n,i)=>i===e.length-1?n.pathname:n.pathnameBase)}function OV(t,e,n,i=!1){let r;typeof t=="string"?r=Gp(t):(r={...t},li(!r.pathname||!r.pathname.includes("?"),IE("?","pathname","search",r)),li(!r.pathname||!r.pathname.includes("#"),IE("#","pathname","hash",r)),li(!r.search||!r.search.includes("#"),IE("#","search","hash",r)));let a=t===""||r.pathname==="",s=a?"/":r.pathname,o;if(s==null)o=n;else{let f=e.length-1;if(!i&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;r.pathname=p.join("/")}o=f>=0?e[f]:"/"}let l=Oee(r,o),c=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}var Gl=t=>t.join("/").replace(/\/\/+/g,"/"),kee=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Iee=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Uee=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Fee(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var LV=["POST","PUT","PATCH","DELETE"];new Set(LV);var zee=["GET",...LV];new Set(zee);var $p=C.createContext(null);$p.displayName="DataRouter";var tS=C.createContext(null);tS.displayName="DataRouterState";C.createContext(!1);var kV=C.createContext({isTransitioning:!1});kV.displayName="ViewTransition";var Bee=C.createContext(new Map);Bee.displayName="Fetchers";var jee=C.createContext(null);jee.displayName="Await";var Xo=C.createContext(null);Xo.displayName="Navigation";var Q0=C.createContext(null);Q0.displayName="Location";var Ko=C.createContext({outlet:null,matches:[],isDataRoute:!1});Ko.displayName="Route";var bN=C.createContext(null);bN.displayName="RouteError";function Hee(t,{relative:e}={}){li(ev(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:i}=C.useContext(Xo),{hash:r,pathname:a,search:s}=tv(t,{relative:e}),o=a;return n!=="/"&&(o=a==="/"?n:Gl([n,a])),i.createHref({pathname:o,search:s,hash:r})}function ev(){return C.useContext(Q0)!=null}function Mf(){return li(ev(),"useLocation() may be used only in the context of a component."),C.useContext(Q0).location}var IV="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function UV(t){C.useContext(Xo).static||C.useLayoutEffect(t)}function FV(){let{isDataRoute:t}=C.useContext(Ko);return t?ite():Vee()}function Vee(){li(ev(),"useNavigate() may be used only in the context of a component.");let t=C.useContext($p),{basename:e,navigator:n}=C.useContext(Xo),{matches:i}=C.useContext(Ko),{pathname:r}=Mf(),a=JSON.stringify(DV(i)),s=C.useRef(!1);return UV(()=>{s.current=!0}),C.useCallback((l,c={})=>{if(po(s.current,IV),!s.current)return;if(typeof l=="number"){n.go(l);return}let d=OV(l,JSON.parse(a),r,c.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:Gl([e,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[e,n,a,r,t])}var Gee=C.createContext(null);function $ee(t){let e=C.useContext(Ko).outlet;return C.useMemo(()=>e&&C.createElement(Gee.Provider,{value:t},e),[e,t])}function tv(t,{relative:e}={}){let{matches:n}=C.useContext(Ko),{pathname:i}=Mf(),r=JSON.stringify(DV(n));return C.useMemo(()=>OV(t,JSON.parse(r),i,e==="path"),[t,r,i,e])}function Wee(t,e){return zV(t,e)}function zV(t,e,n,i,r){li(ev(),"useRoutes() may be used only in the context of a component.");let{navigator:a}=C.useContext(Xo),{matches:s}=C.useContext(Ko),o=s[s.length-1],l=o?o.params:{},c=o?o.pathname:"/",d=o?o.pathnameBase:"/",f=o&&o.route;{let M=f&&f.path||"";BV(c,!f||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${c}" (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 p=wf(),m;if(e){let M=typeof e=="string"?Vp(e):e;li(d==="/"||M.pathname?.startsWith(d),`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 "${d}" but pathname "${M.pathname}" was given in the \`location\` prop.`),m=M}else m=p;let y=m.pathname||"/",b=y;if(d!=="/"){let M=d.replace(/^\//,"").split("/");b="/"+y.replace(/^\//,"").split("/").slice(M.length).join("/")}let x=RV(t,{pathname:b});po(f||x!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),po(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.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 v=Yee(x&&x.map(M=>Object.assign({},M,{params:Object.assign({},l,M.params),pathname:Vl([d,a.encodeLocation?a.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?d:Vl([d,a.encodeLocation?a.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),s,n,i,r);return e&&v?C.createElement(Q0.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...m},navigationType:"POP"}},v):v}function $ee(){let t=ete(),e=Iee(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:i},a={padding:"2px 4px",backgroundColor:i},s=null;return console.error("Error handled by React Router default ErrorBoundary:",t),s=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:a},"ErrorBoundary")," or"," ",C.createElement("code",{style:a},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},e),n?C.createElement("pre",{style:r},n):null,s)}var Wee=C.createElement($ee,null),qee=class extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){return this.state.error!==void 0?C.createElement(Xo.Provider,{value:this.props.routeContext},C.createElement(bN.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Xee({routeContext:t,match:e,children:n}){let i=C.useContext(Gp);return i&&i.static&&i.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=e.route.id),C.createElement(Xo.Provider,{value:t},n)}function Yee(t,e=[],n=null,i=null,r=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let a=t,s=n?.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&s?.[f.route.id]!==void 0);li(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let o=!1,l=-1;if(n)for(let d=0;d =0?a=a.slice(0,l+1):a=[a[0]];break}}}let c=n&&i?(d,f)=>{i(d,{location:n.location,params:n.matches?.[0]?.params??{},errorInfo:f})}:void 0;return a.reduceRight((d,f,p)=>{let m,y=!1,b=null,x=null;n&&(m=s&&f.route.id?s[f.route.id]:void 0,b=f.route.errorElement||Wee,o&&(l<0&&p===0?(BV("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,x=null):l===p&&(y=!0,x=f.route.hydrateFallbackElement||null)));let v=e.concat(a.slice(0,p+1)),M=()=>{let w;return m?w=b:y?w=x:f.route.Component?w=C.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,C.createElement(Xee,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?C.createElement(qee,{location:n.location,revalidation:n.revalidation,component:b,error:m,children:M(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:c}):M()},null)}function _N(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Kee(t){let e=C.useContext(Gp);return li(e,_N(t)),e}function Zee(t){let e=C.useContext(tS);return li(e,_N(t)),e}function Jee(t){let e=C.useContext(Xo);return li(e,_N(t)),e}function SN(t){let e=Jee(t),n=e.matches[e.matches.length-1];return li(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function Qee(){return SN("useRouteId")}function ete(){let t=C.useContext(bN),e=Zee("useRouteError"),n=SN("useRouteError");return t!==void 0?t:e.errors?.[n]}function tte(){let{router:t}=Kee("useNavigate"),e=SN("useNavigate"),n=C.useRef(!1);return UV(()=>{n.current=!0}),C.useCallback(async(r,a={})=>{po(n.current,IV),n.current&&(typeof r=="number"?t.navigate(r):await t.navigate(r,{fromRouteId:e,...a}))},[t,e])}var ZU={};function BV(t,e,n){!e&&!ZU[t]&&(ZU[t]=!0,po(!1,n))}C.memo(nte);function nte({routes:t,future:e,state:n,unstable_onError:i}){return zV(t,void 0,n,i,e)}function ite(t){return Vee(t.context)}function bd(t){li(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function rte({basename:t="/",children:e=null,location:n,navigationType:i="POP",navigator:r,static:a=!1}){li(!ev(),"You cannot render a inside another . You should never have more than one in your app.");let s=t.replace(/^\/*/,"/"),o=C.useMemo(()=>({basename:s,navigator:r,static:a,future:{}}),[s,r,a]);typeof n=="string"&&(n=Vp(n));let{pathname:l="/",search:c="",hash:d="",state:f=null,key:p="default"}=n,m=C.useMemo(()=>{let y=Zl(l,s);return y==null?null:{location:{pathname:y,search:c,hash:d,state:f,key:p},navigationType:i}},[s,l,c,d,f,p,i]);return po(m!=null,` is not able to match the URL "${l}${c}${d}" because it does not start with the basename, so the won't render anything.`),m==null?null:C.createElement(qo.Provider,{value:o},C.createElement(Q0.Provider,{children:e,value:m}))}function ate({children:t,location:e}){return Gee(x2(t),e)}function x2(t,e=[]){let n=[];return C.Children.forEach(t,(i,r)=>{if(!C.isValidElement(i))return;let a=[...e,r];if(i.type===C.Fragment){n.push.apply(n,x2(i.props.children,a));return}li(i.type===bd,`[${typeof i.type=="string"?i.type:i.type.name}] is not a component. All component children of must be a or `),li(!i.props.index||!i.props.children,"An index route cannot have child routes.");let s={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(s.children=x2(i.props.children,a)),n.push(s)}),n}var Tb="get",Cb="application/x-www-form-urlencoded";function nS(t){return t!=null&&typeof t.tagName=="string"}function ste(t){return nS(t)&&t.tagName.toLowerCase()==="button"}function ote(t){return nS(t)&&t.tagName.toLowerCase()==="form"}function lte(t){return nS(t)&&t.tagName.toLowerCase()==="input"}function cte(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function ute(t,e){return t.button===0&&(!e||e==="_self")&&!cte(t)}var Kx=null;function dte(){if(Kx===null)try{new FormData(document.createElement("form"),0),Kx=!1}catch{Kx=!0}return Kx}var fte=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function UE(t){return t!=null&&!fte.has(t)?(po(!1,`"${t}" is not a valid \`encType\` for \`