var Zve=Object.defineProperty;var gH=e=>{throw TypeError(e)};var Jve=(e,t,n)=>t in e?Zve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ve=(e,t,n)=>Jve(e,typeof t!="symbol"?t+"":t,n),Kk=(e,t,n)=>t.has(e)||gH("Cannot "+n);var je=(e,t,n)=>(Kk(e,t,"read from private field"),n?n.call(e):t.get(e)),mn=(e,t,n)=>t.has(e)?gH("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ut=(e,t,n,r)=>(Kk(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Un=(e,t,n)=>(Kk(e,t,"access private method"),n);var sC=(e,t,n,r)=>({set _(i){Ut(e,t,i,n)},get _(){return je(e,t,r)}});function Qve(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var lC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ma(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yk={exports:{}},rb={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var yH;function ebe(){if(yH)return rb;yH=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var s=null;if(a!==void 0&&(s=""+a),i.key!==void 0&&(s=""+i.key),"key"in i){a={};for(var l in i)l!=="key"&&(a[l]=i[l])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:a}}return rb.Fragment=t,rb.jsx=n,rb.jsxs=n,rb}var xH;function tbe(){return xH||(xH=1,Yk.exports=ebe()),Yk.exports}var o=tbe(),Xk={exports:{}},Pn={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var vH;function nbe(){if(vH)return Pn;vH=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),h=Symbol.iterator;function y(W){return W===null||typeof W!="object"?null:(W=h&&W[h]||W["@@iterator"],typeof W=="function"?W:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function _(W,J,te){this.props=W,this.context=J,this.refs=w,this.updater=te||x}_.prototype.isReactComponent={},_.prototype.setState=function(W,J){if(typeof W!="object"&&typeof W!="function"&&W!=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,W,J,"setState")},_.prototype.forceUpdate=function(W){this.updater.enqueueForceUpdate(this,W,"forceUpdate")};function C(){}C.prototype=_.prototype;function N(W,J,te){this.props=W,this.context=J,this.refs=w,this.updater=te||x}var j=N.prototype=new C;j.constructor=N,b(j,_.prototype),j.isPureReactComponent=!0;var E=Array.isArray;function k(){}var P={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function F(W,J,te){var se=te.ref;return{$$typeof:e,type:W,key:J,ref:se!==void 0?se:null,props:te}}function V(W,J){return F(W.type,J,W.props)}function H(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function R(W){var J={"=":"=0",":":"=2"};return"$"+W.replace(/[=:]/g,function(te){return J[te]})}var K=/\/+/g;function B(W,J){return typeof W=="object"&&W!==null&&W.key!=null?R(""+W.key):J.toString(36)}function Y(W){switch(W.status){case"fulfilled":return W.value;case"rejected":throw W.reason;default:switch(typeof W.status=="string"?W.then(k,k):(W.status="pending",W.then(function(J){W.status==="pending"&&(W.status="fulfilled",W.value=J)},function(J){W.status==="pending"&&(W.status="rejected",W.reason=J)})),W.status){case"fulfilled":return W.value;case"rejected":throw W.reason}}throw W}function z(W,J,te,se,ae){var ne=typeof W;(ne==="undefined"||ne==="boolean")&&(W=null);var re=!1;if(W===null)re=!0;else switch(ne){case"bigint":case"string":case"number":re=!0;break;case"object":switch(W.$$typeof){case e:case t:re=!0;break;case d:return re=W._init,z(re(W._payload),J,te,se,ae)}}if(re)return ae=ae(W),re=se===""?"."+B(W,0):se,E(ae)?(te="",re!=null&&(te=re.replace(K,"$&/")+"/"),z(ae,J,te,"",function(he){return he})):ae!=null&&(H(ae)&&(ae=V(ae,te+(ae.key==null||W&&W.key===ae.key?"":(""+ae.key).replace(K,"$&/")+"/")+re)),J.push(ae)),1;re=0;var pe=se===""?".":se+":";if(E(W))for(var ce=0;ce>>1,Q=z[G];if(0>>1;Gi(te,X))sei(ae,te)?(z[G]=ae,z[se]=X,G=se):(z[G]=te,z[J]=X,G=J);else if(sei(ae,X))z[G]=ae,z[se]=X,G=se;else break e}}return q}function i(z,q){var X=z.sortIndex-q.sortIndex;return X!==0?X:z.id-q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,m=null,h=3,y=!1,x=!1,b=!1,w=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function j(z){for(var q=n(u);q!==null;){if(q.callback===null)r(u);else if(q.startTime<=z)r(u),q.sortIndex=q.expirationTime,t(c,q);else break;q=n(u)}}function E(z){if(b=!1,j(z),!x)if(n(c)!==null)x=!0,k||(k=!0,R());else{var q=n(u);q!==null&&Y(E,q.startTime-z)}}var k=!1,P=-1,O=5,F=-1;function V(){return w?!0:!(e.unstable_now()-Fz&&V());){var G=m.callback;if(typeof G=="function"){m.callback=null,h=m.priorityLevel;var Q=G(m.expirationTime<=z);if(z=e.unstable_now(),typeof Q=="function"){m.callback=Q,j(z),q=!0;break t}m===n(c)&&r(c),j(z)}else r(c);m=n(c)}if(m!==null)q=!0;else{var W=n(u);W!==null&&Y(E,W.startTime-z),q=!1}}break e}finally{m=null,h=X,y=!1}q=void 0}}finally{q?R():k=!1}}}var R;if(typeof N=="function")R=function(){N(H)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,B=K.port2;K.port1.onmessage=H,R=function(){B.postMessage(null)}}else R=function(){_(H,0)};function Y(z,q){P=_(function(){z(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(z){z.callback=null},e.unstable_forceFrameRate=function(z){0>z||125G?(z.sortIndex=X,t(u,z),n(c)===null&&z===n(u)&&(b?(C(P),P=-1):b=!0,Y(E,X-G))):(z.sortIndex=Q,t(c,z),x||y||(x=!0,k||(k=!0,R()))),z},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(z){var q=h;return function(){var X=h;h=q;try{return z.apply(this,arguments)}finally{h=X}}}})(Qk)),Qk}var SH;function ibe(){return SH||(SH=1,Jk.exports=rbe()),Jk.exports}var eP={exports:{}},wa={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var _H;function obe(){if(_H)return wa;_H=1;var e=Sx();function t(c){var u="https://react.dev/errors/"+c;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),eP.exports=obe(),eP.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var NH;function abe(){if(NH)return ib;NH=1;var e=ibe(),t=Sx(),n=Hne();function r(p){var g="https://react.dev/errors/"+p;if(1Q||(p.current=G[Q],G[Q]=null,Q--)}function te(p,g){Q++,G[Q]=p.current,p.current=g}var se=W(null),ae=W(null),ne=W(null),re=W(null);function pe(p,g){switch(te(ne,g),te(ae,p),te(se,null),g.nodeType){case 9:case 11:p=(p=g.documentElement)&&(p=p.namespaceURI)?z9(p):0;break;default:if(p=g.tagName,g=g.namespaceURI)g=z9(g),p=B9(g,p);else switch(p){case"svg":p=1;break;case"math":p=2;break;default:p=0}}J(se),te(se,p)}function ce(){J(se),J(ae),J(ne)}function he(p){p.memoizedState!==null&&te(re,p);var g=se.current,S=B9(g,p.type);g!==S&&(te(ae,p),te(se,S))}function ve(p){ae.current===p&&(J(se),J(ae)),re.current===p&&(J(re),Qv._currentValue=X)}var ue,we;function ge(p){if(ue===void 0)try{throw Error()}catch(S){var g=S.stack.trim().match(/\n( *(at )?)/);ue=g&&g[1]||"",we=-1)":-1D||Ne[A]!==Ye[D]){var lt=` `+Ne[A].replace(" at new "," at ");return p.displayName&<.includes("")&&(lt=lt.replace("",p.displayName)),lt}while(1<=A&&0<=D);break}}}finally{oe=!1,Error.prepareStackTrace=S}return(S=p?p.displayName||p.name:"")?ge(S):""}function xe(p,g){switch(p.tag){case 26:case 27:case 5:return ge(p.type);case 16:return ge("Lazy");case 13:return p.child!==g&&g!==null?ge("Suspense Fallback"):ge("Suspense");case 19:return ge("SuspenseList");case 0:case 15:return ye(p.type,!1);case 11:return ye(p.type.render,!1);case 1:return ye(p.type,!0);case 31:return ge("Activity");default:return""}}function Se(p){try{var g="",S=null;do g+=xe(p,S),S=p,p=p.return;while(p);return g}catch(A){return` Error generating stack: `+A.message+` `+A.stack}}var Be=Object.prototype.hasOwnProperty,rt=e.unstable_scheduleCallback,it=e.unstable_cancelCallback,Te=e.unstable_shouldYield,at=e.unstable_requestPaint,ot=e.unstable_now,bt=e.unstable_getCurrentPriorityLevel,wt=e.unstable_ImmediatePriority,Nt=e.unstable_UserBlockingPriority,Ke=e.unstable_NormalPriority,Pt=e.unstable_LowPriority,dt=e.unstable_IdlePriority,Ee=e.log,Ge=e.unstable_setDisableYieldValue,tt=null,Ue=null;function Me(p){if(typeof Ee=="function"&&Ge(p),Ue&&typeof Ue.setStrictMode=="function")try{Ue.setStrictMode(tt,p)}catch{}}var Fe=Math.clz32?Math.clz32:Et,ut=Math.log,jt=Math.LN2;function Et(p){return p>>>=0,p===0?32:31-(ut(p)/jt|0)|0}var Bt=256,pt=262144,Rt=4194304;function kt(p){var g=p&42;if(g!==0)return g;switch(p&-p){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 p&261888;case 262144:case 524288:case 1048576:case 2097152:return p&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return p&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return p}}function zt(p,g,S){var A=p.pendingLanes;if(A===0)return 0;var D=0,U=p.suspendedLanes,ie=p.pingedLanes;p=p.warmLanes;var me=A&134217727;return me!==0?(A=me&~U,A!==0?D=kt(A):(ie&=me,ie!==0?D=kt(ie):S||(S=me&~p,S!==0&&(D=kt(S))))):(me=A&~U,me!==0?D=kt(me):ie!==0?D=kt(ie):S||(S=A&~p,S!==0&&(D=kt(S)))),D===0?0:g!==0&&g!==D&&(g&U)===0&&(U=D&-D,S=g&-g,U>=S||U===32&&(S&4194048)!==0)?g:D}function Gt(p,g){return(p.pendingLanes&~(p.suspendedLanes&~p.pingedLanes)&g)===0}function ln(p,g){switch(p){case 1:case 2:case 4:case 8:case 64:return g+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 g+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 mt(){var p=Rt;return Rt<<=1,(Rt&62914560)===0&&(Rt=4194304),p}function Lt(p){for(var g=[],S=0;31>S;S++)g.push(p);return g}function ke(p,g){p.pendingLanes|=g,g!==268435456&&(p.suspendedLanes=0,p.pingedLanes=0,p.warmLanes=0)}function He(p,g,S,A,D,U){var ie=p.pendingLanes;p.pendingLanes=S,p.suspendedLanes=0,p.pingedLanes=0,p.warmLanes=0,p.expiredLanes&=S,p.entangledLanes&=S,p.errorRecoveryDisabledLanes&=S,p.shellSuspendCounter=0;var me=p.entanglements,Ne=p.expirationTimes,Ye=p.hiddenUpdates;for(S=ie&~S;0"u")return null;try{return p.activeElement||p.body}catch{return p.body}}var _n=/[\n"\\]/g;function Cn(p){return p.replace(_n,function(g){return"\\"+g.charCodeAt(0).toString(16)+" "})}function ya(p,g,S,A,D,U,ie,me){p.name="",ie!=null&&typeof ie!="function"&&typeof ie!="symbol"&&typeof ie!="boolean"?p.type=ie:p.removeAttribute("type"),g!=null?ie==="number"?(g===0&&p.value===""||p.value!=g)&&(p.value=""+vn(g)):p.value!==""+vn(g)&&(p.value=""+vn(g)):ie!=="submit"&&ie!=="reset"||p.removeAttribute("value"),g!=null?xa(p,ie,vn(g)):S!=null?xa(p,ie,vn(S)):A!=null&&p.removeAttribute("value"),D==null&&U!=null&&(p.defaultChecked=!!U),D!=null&&(p.checked=D&&typeof D!="function"&&typeof D!="symbol"),me!=null&&typeof me!="function"&&typeof me!="symbol"&&typeof me!="boolean"?p.name=""+vn(me):p.removeAttribute("name")}function $o(p,g,S,A,D,U,ie,me){if(U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"&&(p.type=U),g!=null||S!=null){if(!(U!=="submit"&&U!=="reset"||g!=null)){dn(p);return}S=S!=null?""+vn(S):"",g=g!=null?""+vn(g):S,me||g===p.value||(p.value=g),p.defaultValue=g}A=A??D,A=typeof A!="function"&&typeof A!="symbol"&&!!A,p.checked=me?p.checked:!!A,p.defaultChecked=!!A,ie!=null&&typeof ie!="function"&&typeof ie!="symbol"&&typeof ie!="boolean"&&(p.name=ie),dn(p)}function xa(p,g,S){g==="number"&&Tt(p.ownerDocument)===p||p.defaultValue===""+S||(p.defaultValue=""+S)}function Nr(p,g,S,A){if(p=p.options,g){g={};for(var D=0;D"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dc=!1;if(Ra)try{var $a={};Object.defineProperty($a,"passive",{get:function(){Dc=!0}}),window.addEventListener("test",$a,$a),window.removeEventListener("test",$a,$a)}catch{Dc=!1}var Oa=null,ql=null,gi=null;function As(){if(gi)return gi;var p,g=ql,S=g.length,A,D="value"in Oa?Oa.value:Oa.textContent,U=D.length;for(p=0;p=bf),Dg=" ",e_=!1;function t_(p,g){switch(p){case"keyup":return is.indexOf(g.keyCode)!==-1;case"keydown":return g.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bv(p){return p=p.detail,typeof p=="object"&&"data"in p?p.data:null}var wf=!1;function Is(p,g){switch(p){case"compositionend":return bv(g);case"keypress":return g.which!==32?null:(e_=!0,Dg);case"textInput":return p=g.data,p===Dg&&e_?null:p;default:return null}}function Sf(p,g){if(wf)return p==="compositionend"||!$g&&t_(p,g)?(p=As(),gi=ql=Oa=null,wf=!1,p):null;switch(p){case"paste":return null;case"keypress":if(!(g.ctrlKey||g.altKey||g.metaKey)||g.ctrlKey&&g.altKey){if(g.char&&1=g)return{node:S,offset:g-p};p=A}e:{for(;S;){if(S.nextSibling){S=S.nextSibling;break e}S=S.parentNode}S=void 0}S=zg(S)}}function Bg(p,g){return p&&g?p===g?!0:p&&p.nodeType===3?!1:g&&g.nodeType===3?Bg(p,g.parentNode):"contains"in p?p.contains(g):p.compareDocumentPosition?!!(p.compareDocumentPosition(g)&16):!1:!1}function kp(p){p=p!=null&&p.ownerDocument!=null&&p.ownerDocument.defaultView!=null?p.ownerDocument.defaultView:window;for(var g=Tt(p.document);g instanceof p.HTMLIFrameElement;){try{var S=typeof g.contentWindow.location.href=="string"}catch{S=!1}if(S)p=g.contentWindow;else break;g=Tt(p.document)}return g}function Bc(p){var g=p&&p.nodeName&&p.nodeName.toLowerCase();return g&&(g==="input"&&(p.type==="text"||p.type==="search"||p.type==="tel"||p.type==="url"||p.type==="password")||g==="textarea"||p.contentEditable==="true")}var Fg=Ra&&"documentMode"in document&&11>=document.documentMode,Fc=null,Hg=null,Pp=null,jf=!1;function a_(p,g,S){var A=S.window===S?S.document:S.nodeType===9?S:S.ownerDocument;jf||Fc==null||Fc!==Tt(A)||(A=Fc,"selectionStart"in A&&Bc(A)?A={start:A.selectionStart,end:A.selectionEnd}:(A=(A.ownerDocument&&A.ownerDocument.defaultView||window).getSelection(),A={anchorNode:A.anchorNode,anchorOffset:A.anchorOffset,focusNode:A.focusNode,focusOffset:A.focusOffset}),Pp&&Nf(Pp,A)||(Pp=A,A=W_(Hg,"onSelect"),0>=ie,D-=ie,ht=1<<32-Fe(g)+D|S<zn?(sr=sn,sn=null):sr=sn.sibling;var wr=Je(De,sn,qe[zn],ft);if(wr===null){sn===null&&(sn=sr);break}p&&sn&&wr.alternate===null&&g(De,sn),Ae=U(wr,Ae,zn),br===null?hn=wr:br.sibling=wr,br=wr,sn=sr}if(zn===qe.length)return S(De,sn),Qn&&un(De,zn),hn;if(sn===null){for(;znzn?(sr=sn,sn=null):sr=sn.sibling;var Kf=Je(De,sn,wr.value,ft);if(Kf===null){sn===null&&(sn=sr);break}p&&sn&&Kf.alternate===null&&g(De,sn),Ae=U(Kf,Ae,zn),br===null?hn=Kf:br.sibling=Kf,br=Kf,sn=sr}if(wr.done)return S(De,sn),Qn&&un(De,zn),hn;if(sn===null){for(;!wr.done;zn++,wr=qe.next())wr=gt(De,wr.value,ft),wr!==null&&(Ae=U(wr,Ae,zn),br===null?hn=wr:br.sibling=wr,br=wr);return Qn&&un(De,zn),hn}for(sn=A(sn);!wr.done;zn++,wr=qe.next())wr=nt(sn,De,zn,wr.value,ft),wr!==null&&(p&&wr.alternate!==null&&sn.delete(wr.key===null?zn:wr.key),Ae=U(wr,Ae,zn),br===null?hn=wr:br.sibling=wr,br=wr);return p&&sn.forEach(function(Xve){return g(De,Xve)}),Qn&&un(De,zn),hn}function Zr(De,Ae,qe,ft){if(typeof qe=="object"&&qe!==null&&qe.type===b&&qe.key===null&&(qe=qe.props.children),typeof qe=="object"&&qe!==null){switch(qe.$$typeof){case y:e:{for(var hn=qe.key;Ae!==null;){if(Ae.key===hn){if(hn=qe.type,hn===b){if(Ae.tag===7){S(De,Ae.sibling),ft=D(Ae,qe.props.children),ft.return=De,De=ft;break e}}else if(Ae.elementType===hn||typeof hn=="object"&&hn!==null&&hn.$$typeof===O&&Up(hn)===Ae.type){S(De,Ae.sibling),ft=D(Ae,qe.props),Iv(ft,qe),ft.return=De,De=ft;break e}S(De,Ae);break}else g(De,Ae);Ae=Ae.sibling}qe.type===b?(ft=Uu(qe.props.children,De.mode,ft,qe.key),ft.return=De,De=ft):(ft=Lp(qe.type,qe.key,qe.props,null,De.mode,ft),Iv(ft,qe),ft.return=De,De=ft)}return ie(De);case x:e:{for(hn=qe.key;Ae!==null;){if(Ae.key===hn)if(Ae.tag===4&&Ae.stateNode.containerInfo===qe.containerInfo&&Ae.stateNode.implementation===qe.implementation){S(De,Ae.sibling),ft=D(Ae,qe.children||[]),ft.return=De,De=ft;break e}else{S(De,Ae);break}else g(De,Ae);Ae=Ae.sibling}ft=Cv(qe,De.mode,ft),ft.return=De,De=ft}return ie(De);case O:return qe=Up(qe),Zr(De,Ae,qe,ft)}if(Y(qe))return tn(De,Ae,qe,ft);if(R(qe)){if(hn=R(qe),typeof hn!="function")throw Error(r(150));return qe=hn.call(qe),wn(De,Ae,qe,ft)}if(typeof qe.then=="function")return Zr(De,Ae,g_(qe),ft);if(qe.$$typeof===N)return Zr(De,Ae,f_(De,qe),ft);y_(De,qe)}return typeof qe=="string"&&qe!==""||typeof qe=="number"||typeof qe=="bigint"?(qe=""+qe,Ae!==null&&Ae.tag===6?(S(De,Ae.sibling),ft=D(Ae,qe),ft.return=De,De=ft):(S(De,Ae),ft=Wg(qe,De.mode,ft),ft.return=De,De=ft),ie(De)):S(De,Ae)}return function(De,Ae,qe,ft){try{Av=0;var hn=Zr(De,Ae,qe,ft);return Jg=null,hn}catch(sn){if(sn===Zg||sn===p_)throw sn;var br=ba(29,sn,null,De.mode);return br.lanes=ft,br.return=De,br}finally{}}}var Gp=IF(!0),kF=IF(!1),kf=!1;function CI(p){p.updateQueue={baseState:p.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function NI(p,g){p=p.updateQueue,g.updateQueue===p&&(g.updateQueue={baseState:p.baseState,firstBaseUpdate:p.firstBaseUpdate,lastBaseUpdate:p.lastBaseUpdate,shared:p.shared,callbacks:null})}function Pf(p){return{lane:p,tag:0,payload:null,callback:null,next:null}}function Mf(p,g,S){var A=p.updateQueue;if(A===null)return null;if(A=A.shared,(jr&2)!==0){var D=A.pending;return D===null?g.next=g:(g.next=D.next,D.next=g),A.pending=g,g=Dp(p),Af(p,null,S),g}return Vc(p,A,g,S),Dp(p)}function kv(p,g,S){if(g=g.updateQueue,g!==null&&(g=g.shared,(S&4194048)!==0)){var A=g.lanes;A&=p.pendingLanes,S|=A,g.lanes=S,et(p,S)}}function jI(p,g){var S=p.updateQueue,A=p.alternate;if(A!==null&&(A=A.updateQueue,S===A)){var D=null,U=null;if(S=S.firstBaseUpdate,S!==null){do{var ie={lane:S.lane,tag:S.tag,payload:S.payload,callback:null,next:null};U===null?D=U=ie:U=U.next=ie,S=S.next}while(S!==null);U===null?D=U=g:U=U.next=g}else D=U=g;S={baseState:A.baseState,firstBaseUpdate:D,lastBaseUpdate:U,shared:A.shared,callbacks:A.callbacks},p.updateQueue=S;return}p=S.lastBaseUpdate,p===null?S.firstBaseUpdate=g:p.next=g,S.lastBaseUpdate=g}var EI=!1;function Pv(){if(EI){var p=Xg;if(p!==null)throw p}}function Mv(p,g,S,A){EI=!1;var D=p.updateQueue;kf=!1;var U=D.firstBaseUpdate,ie=D.lastBaseUpdate,me=D.shared.pending;if(me!==null){D.shared.pending=null;var Ne=me,Ye=Ne.next;Ne.next=null,ie===null?U=Ye:ie.next=Ye,ie=Ne;var lt=p.alternate;lt!==null&&(lt=lt.updateQueue,me=lt.lastBaseUpdate,me!==ie&&(me===null?lt.firstBaseUpdate=Ye:me.next=Ye,lt.lastBaseUpdate=Ne))}if(U!==null){var gt=D.baseState;ie=0,lt=Ye=Ne=null,me=U;do{var Je=me.lane&-536870913,nt=Je!==me.lane;if(nt?(ar&Je)===Je:(A&Je)===Je){Je!==0&&Je===Yg&&(EI=!0),lt!==null&&(lt=lt.next={lane:0,tag:me.tag,payload:me.payload,callback:null,next:null});e:{var tn=p,wn=me;Je=g;var Zr=S;switch(wn.tag){case 1:if(tn=wn.payload,typeof tn=="function"){gt=tn.call(Zr,gt,Je);break e}gt=tn;break e;case 3:tn.flags=tn.flags&-65537|128;case 0:if(tn=wn.payload,Je=typeof tn=="function"?tn.call(Zr,gt,Je):tn,Je==null)break e;gt=m({},gt,Je);break e;case 2:kf=!0}}Je=me.callback,Je!==null&&(p.flags|=64,nt&&(p.flags|=8192),nt=D.callbacks,nt===null?D.callbacks=[Je]:nt.push(Je))}else nt={lane:Je,tag:me.tag,payload:me.payload,callback:me.callback,next:null},lt===null?(Ye=lt=nt,Ne=gt):lt=lt.next=nt,ie|=Je;if(me=me.next,me===null){if(me=D.shared.pending,me===null)break;nt=me,me=nt.next,nt.next=null,D.lastBaseUpdate=nt,D.shared.pending=null}}while(!0);lt===null&&(Ne=gt),D.baseState=Ne,D.firstBaseUpdate=Ye,D.lastBaseUpdate=lt,U===null&&(D.shared.lanes=0),Lf|=ie,p.lanes=ie,p.memoizedState=gt}}function PF(p,g){if(typeof p!="function")throw Error(r(191,p));p.call(g)}function MF(p,g){var S=p.callbacks;if(S!==null)for(p.callbacks=null,p=0;pU?U:8;var ie=z.T,me={};z.T=me,WI(p,!1,g,S);try{var Ne=D(),Ye=z.S;if(Ye!==null&&Ye(me,Ne),Ne!==null&&typeof Ne=="object"&&typeof Ne.then=="function"){var lt=zxe(Ne,A);Ov(p,g,lt,$s(p))}else Ov(p,g,A,$s(p))}catch(gt){Ov(p,g,{then:function(){},status:"rejected",reason:gt},$s())}finally{q.p=U,ie!==null&&me.types!==null&&(ie.types=me.types),z.T=ie}}function Gxe(){}function VI(p,g,S,A){if(p.tag!==5)throw Error(r(476));var D=d7(p).queue;u7(p,D,g,X,S===null?Gxe:function(){return f7(p),S(A)})}function d7(p){var g=p.memoizedState;if(g!==null)return g;g={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qu,lastRenderedState:X},next:null};var S={};return g.next={memoizedState:S,baseState:S,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qu,lastRenderedState:S},next:null},p.memoizedState=g,p=p.alternate,p!==null&&(p.memoizedState=g),g}function f7(p){var g=d7(p);g.next===null&&(g=p.alternate.memoizedState),Ov(p,g.next.queue,{},$s())}function GI(){return ra(Qv)}function m7(){return Yi().memoizedState}function p7(){return Yi().memoizedState}function Wxe(p){for(var g=p.return;g!==null;){switch(g.tag){case 24:case 3:var S=$s();p=Pf(S);var A=Mf(g,p,S);A!==null&&(fs(A,g,S),kv(A,g,S)),g={cache:bI()},p.payload=g;return}g=g.return}}function qxe(p,g,S){var A=$s();S={lane:A,revertLane:0,gesture:null,action:S,hasEagerState:!1,eagerState:null,next:null},E_(p)?g7(g,S):(S=wv(p,g,S,A),S!==null&&(fs(S,p,A),y7(S,g,A)))}function h7(p,g,S){var A=$s();Ov(p,g,S,A)}function Ov(p,g,S,A){var D={lane:A,revertLane:0,gesture:null,action:S,hasEagerState:!1,eagerState:null,next:null};if(E_(p))g7(g,D);else{var U=p.alternate;if(p.lanes===0&&(U===null||U.lanes===0)&&(U=g.lastRenderedReducer,U!==null))try{var ie=g.lastRenderedState,me=U(ie,S);if(D.hasEagerState=!0,D.eagerState=me,Do(me,ie))return Vc(p,g,D,0),ti===null&&Op(),!1}catch{}finally{}if(S=wv(p,g,D,A),S!==null)return fs(S,p,A),y7(S,g,A),!0}return!1}function WI(p,g,S,A){if(A={lane:2,revertLane:Ck(),gesture:null,action:A,hasEagerState:!1,eagerState:null,next:null},E_(p)){if(g)throw Error(r(479))}else g=wv(p,S,A,2),g!==null&&fs(g,p,2)}function E_(p){var g=p.alternate;return p===On||g!==null&&g===On}function g7(p,g){e0=b_=!0;var S=p.pending;S===null?g.next=g:(g.next=S.next,S.next=g),p.pending=g}function y7(p,g,S){if((S&4194048)!==0){var A=g.lanes;A&=p.pendingLanes,S|=A,g.lanes=S,et(p,S)}}var Dv={readContext:ra,use:__,useCallback:$i,useContext:$i,useEffect:$i,useImperativeHandle:$i,useLayoutEffect:$i,useInsertionEffect:$i,useMemo:$i,useReducer:$i,useRef:$i,useState:$i,useDebugValue:$i,useDeferredValue:$i,useTransition:$i,useSyncExternalStore:$i,useId:$i,useHostTransitionStatus:$i,useFormState:$i,useActionState:$i,useOptimistic:$i,useMemoCache:$i,useCacheRefresh:$i};Dv.useEffectEvent=$i;var x7={readContext:ra,use:__,useCallback:function(p,g){return La().memoizedState=[p,g===void 0?null:g],p},useContext:ra,useEffect:t7,useImperativeHandle:function(p,g,S){S=S!=null?S.concat([p]):null,N_(4194308,4,o7.bind(null,g,p),S)},useLayoutEffect:function(p,g){return N_(4194308,4,p,g)},useInsertionEffect:function(p,g){N_(4,2,p,g)},useMemo:function(p,g){var S=La();g=g===void 0?null:g;var A=p();if(Wp){Me(!0);try{p()}finally{Me(!1)}}return S.memoizedState=[A,g],A},useReducer:function(p,g,S){var A=La();if(S!==void 0){var D=S(g);if(Wp){Me(!0);try{S(g)}finally{Me(!1)}}}else D=g;return A.memoizedState=A.baseState=D,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:D},A.queue=p,p=p.dispatch=qxe.bind(null,On,p),[A.memoizedState,p]},useRef:function(p){var g=La();return p={current:p},g.memoizedState=p},useState:function(p){p=zI(p);var g=p.queue,S=h7.bind(null,On,g);return g.dispatch=S,[p.memoizedState,S]},useDebugValue:HI,useDeferredValue:function(p,g){var S=La();return UI(S,p,g)},useTransition:function(){var p=zI(!1);return p=u7.bind(null,On,p.queue,!0,!1),La().memoizedState=p,[!1,p]},useSyncExternalStore:function(p,g,S){var A=On,D=La();if(Qn){if(S===void 0)throw Error(r(407));S=S()}else{if(S=g(),ti===null)throw Error(r(349));(ar&127)!==0||zF(A,g,S)}D.memoizedState=S;var U={value:S,getSnapshot:g};return D.queue=U,t7(FF.bind(null,A,U,p),[p]),A.flags|=2048,n0(9,{destroy:void 0},BF.bind(null,A,U,S,g),null),S},useId:function(){var p=La(),g=ti.identifierPrefix;if(Qn){var S=Ot,A=ht;S=(A&~(1<<32-Fe(A)-1)).toString(32)+S,g="_"+g+"R_"+S,S=w_++,0<\/script>",U=U.removeChild(U.firstChild);break;case"select":U=typeof A.is=="string"?ie.createElement("select",{is:A.is}):ie.createElement("select"),A.multiple?U.multiple=!0:A.size&&(U.size=A.size);break;default:U=typeof A.is=="string"?ie.createElement(D,{is:A.is}):ie.createElement(D)}}U[Qt]=g,U[Bn]=A;e:for(ie=g.child;ie!==null;){if(ie.tag===5||ie.tag===6)U.appendChild(ie.stateNode);else if(ie.tag!==4&&ie.tag!==27&&ie.child!==null){ie.child.return=ie,ie=ie.child;continue}if(ie===g)break e;for(;ie.sibling===null;){if(ie.return===null||ie.return===g)break e;ie=ie.return}ie.sibling.return=ie.return,ie=ie.sibling}g.stateNode=U;e:switch(oa(U,D,A),D){case"button":case"input":case"select":case"textarea":A=!!A.autoFocus;break e;case"img":A=!0;break e;default:A=!1}A&&Yu(g)}}return li(g),ak(g,g.type,p===null?null:p.memoizedProps,g.pendingProps,S),null;case 6:if(p&&g.stateNode!=null)p.memoizedProps!==A&&Yu(g);else{if(typeof A!="string"&&g.stateNode===null)throw Error(r(166));if(p=ne.current,Xl(g)){if(p=g.stateNode,S=g.memoizedProps,A=null,D=xr,D!==null)switch(D.tag){case 27:case 5:A=D.memoizedProps}p[Qt]=g,p=!!(p.nodeValue===S||A!==null&&A.suppressHydrationWarning===!0||D9(p.nodeValue,S)),p||Wc(g,!0)}else p=q_(p).createTextNode(A),p[Qt]=g,g.stateNode=p}return li(g),null;case 31:if(S=g.memoizedState,p===null||p.memoizedState!==null){if(A=Xl(g),S!==null){if(p===null){if(!A)throw Error(r(318));if(p=g.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(557));p[Qt]=g}else Vu(),(g.flags&128)===0&&(g.memoizedState=null),g.flags|=4;li(g),p=!1}else S=jv(),p!==null&&p.memoizedState!==null&&(p.memoizedState.hydrationErrors=S),p=!0;if(!p)return g.flags&256?(Ps(g),g):(Ps(g),null);if((g.flags&128)!==0)throw Error(r(558))}return li(g),null;case 13:if(A=g.memoizedState,p===null||p.memoizedState!==null&&p.memoizedState.dehydrated!==null){if(D=Xl(g),A!==null&&A.dehydrated!==null){if(p===null){if(!D)throw Error(r(318));if(D=g.memoizedState,D=D!==null?D.dehydrated:null,!D)throw Error(r(317));D[Qt]=g}else Vu(),(g.flags&128)===0&&(g.memoizedState=null),g.flags|=4;li(g),D=!1}else D=jv(),p!==null&&p.memoizedState!==null&&(p.memoizedState.hydrationErrors=D),D=!0;if(!D)return g.flags&256?(Ps(g),g):(Ps(g),null)}return Ps(g),(g.flags&128)!==0?(g.lanes=S,g):(S=A!==null,p=p!==null&&p.memoizedState!==null,S&&(A=g.child,D=null,A.alternate!==null&&A.alternate.memoizedState!==null&&A.alternate.memoizedState.cachePool!==null&&(D=A.alternate.memoizedState.cachePool.pool),U=null,A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(U=A.memoizedState.cachePool.pool),U!==D&&(A.flags|=2048)),S!==p&&S&&(g.child.flags|=8192),P_(g,g.updateQueue),li(g),null);case 4:return ce(),p===null&&Tk(g.stateNode.containerInfo),li(g),null;case 10:return Gu(g.type),li(g),null;case 19:if(J(Ki),A=g.memoizedState,A===null)return li(g),null;if(D=(g.flags&128)!==0,U=A.rendering,U===null)if(D)zv(A,!1);else{if(Oi!==0||p!==null&&(p.flags&128)!==0)for(p=g.child;p!==null;){if(U=v_(p),U!==null){for(g.flags|=128,zv(A,!1),p=U.updateQueue,g.updateQueue=p,P_(g,p),g.subtreeFlags=0,p=S,S=g.child;S!==null;)Sv(S,p),S=S.sibling;return te(Ki,Ki.current&1|2),Qn&&un(g,A.treeForkCount),g.child}p=p.sibling}A.tail!==null&&ot()>D_&&(g.flags|=128,D=!0,zv(A,!1),g.lanes=4194304)}else{if(!D)if(p=v_(U),p!==null){if(g.flags|=128,D=!0,p=p.updateQueue,g.updateQueue=p,P_(g,p),zv(A,!0),A.tail===null&&A.tailMode==="hidden"&&!U.alternate&&!Qn)return li(g),null}else 2*ot()-A.renderingStartTime>D_&&S!==536870912&&(g.flags|=128,D=!0,zv(A,!1),g.lanes=4194304);A.isBackwards?(U.sibling=g.child,g.child=U):(p=A.last,p!==null?p.sibling=U:g.child=U,A.last=U)}return A.tail!==null?(p=A.tail,A.rendering=p,A.tail=p.sibling,A.renderingStartTime=ot(),p.sibling=null,S=Ki.current,te(Ki,D?S&1|2:S&1),Qn&&un(g,A.treeForkCount),p):(li(g),null);case 22:case 23:return Ps(g),AI(),A=g.memoizedState!==null,p!==null?p.memoizedState!==null!==A&&(g.flags|=8192):A&&(g.flags|=8192),A?(S&536870912)!==0&&(g.flags&128)===0&&(li(g),g.subtreeFlags&6&&(g.flags|=8192)):li(g),S=g.updateQueue,S!==null&&P_(g,S.retryQueue),S=null,p!==null&&p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(S=p.memoizedState.cachePool.pool),A=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(A=g.memoizedState.cachePool.pool),A!==S&&(g.flags|=2048),p!==null&&J(Hp),null;case 24:return S=null,p!==null&&(S=p.memoizedState.cache),g.memoizedState.cache!==S&&(g.flags|=2048),Gu(eo),li(g),null;case 25:return null;case 30:return null}throw Error(r(156,g.tag))}function Jxe(p,g){switch(Ri(g),g.tag){case 1:return p=g.flags,p&65536?(g.flags=p&-65537|128,g):null;case 3:return Gu(eo),ce(),p=g.flags,(p&65536)!==0&&(p&128)===0?(g.flags=p&-65537|128,g):null;case 26:case 27:case 5:return ve(g),null;case 31:if(g.memoizedState!==null){if(Ps(g),g.alternate===null)throw Error(r(340));Vu()}return p=g.flags,p&65536?(g.flags=p&-65537|128,g):null;case 13:if(Ps(g),p=g.memoizedState,p!==null&&p.dehydrated!==null){if(g.alternate===null)throw Error(r(340));Vu()}return p=g.flags,p&65536?(g.flags=p&-65537|128,g):null;case 19:return J(Ki),null;case 4:return ce(),null;case 10:return Gu(g.type),null;case 22:case 23:return Ps(g),AI(),p!==null&&J(Hp),p=g.flags,p&65536?(g.flags=p&-65537|128,g):null;case 24:return Gu(eo),null;case 25:return null;default:return null}}function H7(p,g){switch(Ri(g),g.tag){case 3:Gu(eo),ce();break;case 26:case 27:case 5:ve(g);break;case 4:ce();break;case 31:g.memoizedState!==null&&Ps(g);break;case 13:Ps(g);break;case 19:J(Ki);break;case 10:Gu(g.type);break;case 22:case 23:Ps(g),AI(),p!==null&&J(Hp);break;case 24:Gu(eo)}}function Bv(p,g){try{var S=g.updateQueue,A=S!==null?S.lastEffect:null;if(A!==null){var D=A.next;S=D;do{if((S.tag&p)===p){A=void 0;var U=S.create,ie=S.inst;A=U(),ie.destroy=A}S=S.next}while(S!==D)}}catch(me){Hr(g,g.return,me)}}function Of(p,g,S){try{var A=g.updateQueue,D=A!==null?A.lastEffect:null;if(D!==null){var U=D.next;A=U;do{if((A.tag&p)===p){var ie=A.inst,me=ie.destroy;if(me!==void 0){ie.destroy=void 0,D=g;var Ne=S,Ye=me;try{Ye()}catch(lt){Hr(D,Ne,lt)}}}A=A.next}while(A!==U)}}catch(lt){Hr(g,g.return,lt)}}function U7(p){var g=p.updateQueue;if(g!==null){var S=p.stateNode;try{MF(g,S)}catch(A){Hr(p,p.return,A)}}}function V7(p,g,S){S.props=qp(p.type,p.memoizedProps),S.state=p.memoizedState;try{S.componentWillUnmount()}catch(A){Hr(p,g,A)}}function Fv(p,g){try{var S=p.ref;if(S!==null){switch(p.tag){case 26:case 27:case 5:var A=p.stateNode;break;case 30:A=p.stateNode;break;default:A=p.stateNode}typeof S=="function"?p.refCleanup=S(A):S.current=A}}catch(D){Hr(p,g,D)}}function Kc(p,g){var S=p.ref,A=p.refCleanup;if(S!==null)if(typeof A=="function")try{A()}catch(D){Hr(p,g,D)}finally{p.refCleanup=null,p=p.alternate,p!=null&&(p.refCleanup=null)}else if(typeof S=="function")try{S(null)}catch(D){Hr(p,g,D)}else S.current=null}function G7(p){var g=p.type,S=p.memoizedProps,A=p.stateNode;try{e:switch(g){case"button":case"input":case"select":case"textarea":S.autoFocus&&A.focus();break e;case"img":S.src?A.src=S.src:S.srcSet&&(A.srcset=S.srcSet)}}catch(D){Hr(p,p.return,D)}}function sk(p,g,S){try{var A=p.stateNode;bve(A,p.type,S,g),A[Bn]=g}catch(D){Hr(p,p.return,D)}}function W7(p){return p.tag===5||p.tag===3||p.tag===26||p.tag===27&&Uf(p.type)||p.tag===4}function lk(p){e:for(;;){for(;p.sibling===null;){if(p.return===null||W7(p.return))return null;p=p.return}for(p.sibling.return=p.return,p=p.sibling;p.tag!==5&&p.tag!==6&&p.tag!==18;){if(p.tag===27&&Uf(p.type)||p.flags&2||p.child===null||p.tag===4)continue e;p.child.return=p,p=p.child}if(!(p.flags&2))return p.stateNode}}function ck(p,g,S){var A=p.tag;if(A===5||A===6)p=p.stateNode,g?(S.nodeType===9?S.body:S.nodeName==="HTML"?S.ownerDocument.body:S).insertBefore(p,g):(g=S.nodeType===9?S.body:S.nodeName==="HTML"?S.ownerDocument.body:S,g.appendChild(p),S=S._reactRootContainer,S!=null||g.onclick!==null||(g.onclick=Oo));else if(A!==4&&(A===27&&Uf(p.type)&&(S=p.stateNode,g=null),p=p.child,p!==null))for(ck(p,g,S),p=p.sibling;p!==null;)ck(p,g,S),p=p.sibling}function M_(p,g,S){var A=p.tag;if(A===5||A===6)p=p.stateNode,g?S.insertBefore(p,g):S.appendChild(p);else if(A!==4&&(A===27&&Uf(p.type)&&(S=p.stateNode),p=p.child,p!==null))for(M_(p,g,S),p=p.sibling;p!==null;)M_(p,g,S),p=p.sibling}function q7(p){var g=p.stateNode,S=p.memoizedProps;try{for(var A=p.type,D=g.attributes;D.length;)g.removeAttributeNode(D[0]);oa(g,A,S),g[Qt]=p,g[Bn]=S}catch(U){Hr(p,p.return,U)}}var Xu=!1,ro=!1,uk=!1,K7=typeof WeakSet=="function"?WeakSet:Set,zo=null;function Qxe(p,g){if(p=p.containerInfo,kk=eC,p=kp(p),Bc(p)){if("selectionStart"in p)var S={start:p.selectionStart,end:p.selectionEnd};else e:{S=(S=p.ownerDocument)&&S.defaultView||window;var A=S.getSelection&&S.getSelection();if(A&&A.rangeCount!==0){S=A.anchorNode;var D=A.anchorOffset,U=A.focusNode;A=A.focusOffset;try{S.nodeType,U.nodeType}catch{S=null;break e}var ie=0,me=-1,Ne=-1,Ye=0,lt=0,gt=p,Je=null;t:for(;;){for(var nt;gt!==S||D!==0&>.nodeType!==3||(me=ie+D),gt!==U||A!==0&>.nodeType!==3||(Ne=ie+A),gt.nodeType===3&&(ie+=gt.nodeValue.length),(nt=gt.firstChild)!==null;)Je=gt,gt=nt;for(;;){if(gt===p)break t;if(Je===S&&++Ye===D&&(me=ie),Je===U&&++lt===A&&(Ne=ie),(nt=gt.nextSibling)!==null)break;gt=Je,Je=gt.parentNode}gt=nt}S=me===-1||Ne===-1?null:{start:me,end:Ne}}else S=null}S=S||{start:0,end:0}}else S=null;for(Pk={focusedElem:p,selectionRange:S},eC=!1,zo=g;zo!==null;)if(g=zo,p=g.child,(g.subtreeFlags&1028)!==0&&p!==null)p.return=g,zo=p;else for(;zo!==null;){switch(g=zo,U=g.alternate,p=g.flags,g.tag){case 0:if((p&4)!==0&&(p=g.updateQueue,p=p!==null?p.events:null,p!==null))for(S=0;S title"))),oa(U,A,S),U[Qt]=p,kn(U),A=U;break e;case"link":var ie=eH("link","href",D).get(A+(S.href||""));if(ie){for(var me=0;meZr&&(ie=Zr,Zr=wn,wn=ie);var De=Ip(me,wn),Ae=Ip(me,Zr);if(De&&Ae&&(nt.rangeCount!==1||nt.anchorNode!==De.node||nt.anchorOffset!==De.offset||nt.focusNode!==Ae.node||nt.focusOffset!==Ae.offset)){var qe=gt.createRange();qe.setStart(De.node,De.offset),nt.removeAllRanges(),wn>Zr?(nt.addRange(qe),nt.extend(Ae.node,Ae.offset)):(qe.setEnd(Ae.node,Ae.offset),nt.addRange(qe))}}}}for(gt=[],nt=me;nt=nt.parentNode;)nt.nodeType===1&>.push({element:nt,left:nt.scrollLeft,top:nt.scrollTop});for(typeof me.focus=="function"&&me.focus(),me=0;meS?32:S,z.T=null,S=yk,yk=null;var U=Bf,ie=td;if(yo=0,s0=Bf=null,td=0,(jr&6)!==0)throw Error(r(331));var me=jr;if(jr|=4,o9(U.current),n9(U,U.current,ie,S),jr=me,qv(0,!1),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(tt,U)}catch{}return!0}finally{q.p=D,z.T=A,_9(p,g)}}function N9(p,g,S){g=T(S,g),g=XI(p.stateNode,g,2),p=Mf(p,g,2),p!==null&&(ke(p,2),Yc(p))}function Hr(p,g,S){if(p.tag===3)N9(p,p,S);else for(;g!==null;){if(g.tag===3){N9(g,p,S);break}else if(g.tag===1){var A=g.stateNode;if(typeof g.type.getDerivedStateFromError=="function"||typeof A.componentDidCatch=="function"&&(zf===null||!zf.has(A))){p=T(S,p),S=j7(2),A=Mf(g,S,2),A!==null&&(E7(S,A,g,p),ke(A,2),Yc(A));break}}g=g.return}}function wk(p,g,S){var A=p.pingCache;if(A===null){A=p.pingCache=new nve;var D=new Set;A.set(g,D)}else D=A.get(g),D===void 0&&(D=new Set,A.set(g,D));D.has(S)||(mk=!0,D.add(S),p=sve.bind(null,p,g,S),g.then(p,p))}function sve(p,g,S){var A=p.pingCache;A!==null&&A.delete(g),p.pingedLanes|=p.suspendedLanes&S,p.warmLanes&=~S,ti===p&&(ar&S)===S&&(Oi===4||Oi===3&&(ar&62914560)===ar&&300>ot()-O_?(jr&2)===0&&l0(p,0):pk|=S,a0===ar&&(a0=0)),Yc(p)}function j9(p,g){g===0&&(g=mt()),p=cl(p,g),p!==null&&(ke(p,g),Yc(p))}function lve(p){var g=p.memoizedState,S=0;g!==null&&(S=g.retryLane),j9(p,S)}function cve(p,g){var S=0;switch(p.tag){case 31:case 13:var A=p.stateNode,D=p.memoizedState;D!==null&&(S=D.retryLane);break;case 19:A=p.stateNode;break;case 22:A=p.stateNode._retryCache;break;default:throw Error(r(314))}A!==null&&A.delete(g),j9(p,S)}function uve(p,g){return rt(p,g)}var U_=null,u0=null,Sk=!1,V_=!1,_k=!1,Hf=0;function Yc(p){p!==u0&&p.next===null&&(u0===null?U_=u0=p:u0=u0.next=p),V_=!0,Sk||(Sk=!0,fve())}function qv(p,g){if(!_k&&V_){_k=!0;do for(var S=!1,A=U_;A!==null;){if(p!==0){var D=A.pendingLanes;if(D===0)var U=0;else{var ie=A.suspendedLanes,me=A.pingedLanes;U=(1<<31-Fe(42|p)+1)-1,U&=D&~(ie&~me),U=U&201326741?U&201326741|1:U?U|2:0}U!==0&&(S=!0,I9(A,U))}else U=ar,U=zt(A,A===ti?U:0,A.cancelPendingCommit!==null||A.timeoutHandle!==-1),(U&3)===0||Gt(A,U)||(S=!0,I9(A,U));A=A.next}while(S);_k=!1}}function dve(){E9()}function E9(){V_=Sk=!1;var p=0;Hf!==0&&Sve()&&(p=Hf);for(var g=ot(),S=null,A=U_;A!==null;){var D=A.next,U=T9(A,g);U===0?(A.next=null,S===null?U_=D:S.next=D,D===null&&(u0=S)):(S=A,(p!==0||(U&3)!==0)&&(V_=!0)),A=D}yo!==0&&yo!==5||qv(p),Hf!==0&&(Hf=0)}function T9(p,g){for(var S=p.suspendedLanes,A=p.pingedLanes,D=p.expirationTimes,U=p.pendingLanes&-62914561;0me)break;var lt=Ne.transferSize,gt=Ne.initiatorType;lt&&L9(gt)&&(Ne=Ne.responseEnd,ie+=lt*(Ne"u"?null:document;function X9(p,g,S){var A=d0;if(A&&typeof g=="string"&&g){var D=Cn(g);D='link[rel="'+p+'"][href="'+D+'"]',typeof S=="string"&&(D+='[crossorigin="'+S+'"]'),Y9.has(D)||(Y9.add(D),p={rel:p,crossOrigin:S,href:g},A.querySelector(D)===null&&(g=A.createElement("link"),oa(g,"link",p),kn(g),A.head.appendChild(g)))}}function kve(p){nd.D(p),X9("dns-prefetch",p,null)}function Pve(p,g){nd.C(p,g),X9("preconnect",p,g)}function Mve(p,g,S){nd.L(p,g,S);var A=d0;if(A&&p&&g){var D='link[rel="preload"][as="'+Cn(g)+'"]';g==="image"&&S&&S.imageSrcSet?(D+='[imagesrcset="'+Cn(S.imageSrcSet)+'"]',typeof S.imageSizes=="string"&&(D+='[imagesizes="'+Cn(S.imageSizes)+'"]')):D+='[href="'+Cn(p)+'"]';var U=D;switch(g){case"style":U=f0(p);break;case"script":U=m0(p)}ml.has(U)||(p=m({rel:"preload",href:g==="image"&&S&&S.imageSrcSet?void 0:p,as:g},S),ml.set(U,p),A.querySelector(D)!==null||g==="style"&&A.querySelector(Zv(U))||g==="script"&&A.querySelector(Jv(U))||(g=A.createElement("link"),oa(g,"link",p),kn(g),A.head.appendChild(g)))}}function Rve(p,g){nd.m(p,g);var S=d0;if(S&&p){var A=g&&typeof g.as=="string"?g.as:"script",D='link[rel="modulepreload"][as="'+Cn(A)+'"][href="'+Cn(p)+'"]',U=D;switch(A){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":U=m0(p)}if(!ml.has(U)&&(p=m({rel:"modulepreload",href:p},g),ml.set(U,p),S.querySelector(D)===null)){switch(A){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(S.querySelector(Jv(U)))return}A=S.createElement("link"),oa(A,"link",p),kn(A),S.head.appendChild(A)}}}function $ve(p,g,S){nd.S(p,g,S);var A=d0;if(A&&p){var D=Yn(A).hoistableStyles,U=f0(p);g=g||"default";var ie=D.get(U);if(!ie){var me={loading:0,preload:null};if(ie=A.querySelector(Zv(U)))me.loading=5;else{p=m({rel:"stylesheet",href:p,"data-precedence":g},S),(S=ml.get(U))&&zk(p,S);var Ne=ie=A.createElement("link");kn(Ne),oa(Ne,"link",p),Ne._p=new Promise(function(Ye,lt){Ne.onload=Ye,Ne.onerror=lt}),Ne.addEventListener("load",function(){me.loading|=1}),Ne.addEventListener("error",function(){me.loading|=2}),me.loading|=4,Y_(ie,g,A)}ie={type:"stylesheet",instance:ie,count:1,state:me},D.set(U,ie)}}}function Ove(p,g){nd.X(p,g);var S=d0;if(S&&p){var A=Yn(S).hoistableScripts,D=m0(p),U=A.get(D);U||(U=S.querySelector(Jv(D)),U||(p=m({src:p,async:!0},g),(g=ml.get(D))&&Bk(p,g),U=S.createElement("script"),kn(U),oa(U,"link",p),S.head.appendChild(U)),U={type:"script",instance:U,count:1,state:null},A.set(D,U))}}function Dve(p,g){nd.M(p,g);var S=d0;if(S&&p){var A=Yn(S).hoistableScripts,D=m0(p),U=A.get(D);U||(U=S.querySelector(Jv(D)),U||(p=m({src:p,async:!0,type:"module"},g),(g=ml.get(D))&&Bk(p,g),U=S.createElement("script"),kn(U),oa(U,"link",p),S.head.appendChild(U)),U={type:"script",instance:U,count:1,state:null},A.set(D,U))}}function Z9(p,g,S,A){var D=(D=ne.current)?K_(D):null;if(!D)throw Error(r(446));switch(p){case"meta":case"title":return null;case"style":return typeof S.precedence=="string"&&typeof S.href=="string"?(g=f0(S.href),S=Yn(D).hoistableStyles,A=S.get(g),A||(A={type:"style",instance:null,count:0,state:null},S.set(g,A)),A):{type:"void",instance:null,count:0,state:null};case"link":if(S.rel==="stylesheet"&&typeof S.href=="string"&&typeof S.precedence=="string"){p=f0(S.href);var U=Yn(D).hoistableStyles,ie=U.get(p);if(ie||(D=D.ownerDocument||D,ie={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},U.set(p,ie),(U=D.querySelector(Zv(p)))&&!U._p&&(ie.instance=U,ie.state.loading=5),ml.has(p)||(S={rel:"preload",as:"style",href:S.href,crossOrigin:S.crossOrigin,integrity:S.integrity,media:S.media,hrefLang:S.hrefLang,referrerPolicy:S.referrerPolicy},ml.set(p,S),U||Lve(D,p,S,ie.state))),g&&A===null)throw Error(r(528,""));return ie}if(g&&A!==null)throw Error(r(529,""));return null;case"script":return g=S.async,S=S.src,typeof S=="string"&&g&&typeof g!="function"&&typeof g!="symbol"?(g=m0(S),S=Yn(D).hoistableScripts,A=S.get(g),A||(A={type:"script",instance:null,count:0,state:null},S.set(g,A)),A):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,p))}}function f0(p){return'href="'+Cn(p)+'"'}function Zv(p){return'link[rel="stylesheet"]['+p+"]"}function J9(p){return m({},p,{"data-precedence":p.precedence,precedence:null})}function Lve(p,g,S,A){p.querySelector('link[rel="preload"][as="style"]['+g+"]")?A.loading=1:(g=p.createElement("link"),A.preload=g,g.addEventListener("load",function(){return A.loading|=1}),g.addEventListener("error",function(){return A.loading|=2}),oa(g,"link",S),kn(g),p.head.appendChild(g))}function m0(p){return'[src="'+Cn(p)+'"]'}function Jv(p){return"script[async]"+p}function Q9(p,g,S){if(g.count++,g.instance===null)switch(g.type){case"style":var A=p.querySelector('style[data-href~="'+Cn(S.href)+'"]');if(A)return g.instance=A,kn(A),A;var D=m({},S,{"data-href":S.href,"data-precedence":S.precedence,href:null,precedence:null});return A=(p.ownerDocument||p).createElement("style"),kn(A),oa(A,"style",D),Y_(A,S.precedence,p),g.instance=A;case"stylesheet":D=f0(S.href);var U=p.querySelector(Zv(D));if(U)return g.state.loading|=4,g.instance=U,kn(U),U;A=J9(S),(D=ml.get(D))&&zk(A,D),U=(p.ownerDocument||p).createElement("link"),kn(U);var ie=U;return ie._p=new Promise(function(me,Ne){ie.onload=me,ie.onerror=Ne}),oa(U,"link",A),g.state.loading|=4,Y_(U,S.precedence,p),g.instance=U;case"script":return U=m0(S.src),(D=p.querySelector(Jv(U)))?(g.instance=D,kn(D),D):(A=S,(D=ml.get(U))&&(A=m({},S),Bk(A,D)),p=p.ownerDocument||p,D=p.createElement("script"),kn(D),oa(D,"link",A),p.head.appendChild(D),g.instance=D);case"void":return null;default:throw Error(r(443,g.type))}else g.type==="stylesheet"&&(g.state.loading&4)===0&&(A=g.instance,g.state.loading|=4,Y_(A,S.precedence,p));return g.instance}function Y_(p,g,S){for(var A=S.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),D=A.length?A[A.length-1]:null,U=D,ie=0;ie title"):null)}function zve(p,g,S){if(S===1||g.itemProp!=null)return!1;switch(p){case"meta":case"title":return!0;case"style":if(typeof g.precedence!="string"||typeof g.href!="string"||g.href==="")break;return!0;case"link":if(typeof g.rel!="string"||typeof g.href!="string"||g.href===""||g.onLoad||g.onError)break;switch(g.rel){case"stylesheet":return p=g.disabled,typeof g.precedence=="string"&&p==null;default:return!0}case"script":if(g.async&&typeof g.async!="function"&&typeof g.async!="symbol"&&!g.onLoad&&!g.onError&&g.src&&typeof g.src=="string")return!0}return!1}function nH(p){return!(p.type==="stylesheet"&&(p.state.loading&3)===0)}function Bve(p,g,S,A){if(S.type==="stylesheet"&&(typeof A.media!="string"||matchMedia(A.media).matches!==!1)&&(S.state.loading&4)===0){if(S.instance===null){var D=f0(A.href),U=g.querySelector(Zv(D));if(U){g=U._p,g!==null&&typeof g=="object"&&typeof g.then=="function"&&(p.count++,p=Z_.bind(p),g.then(p,p)),S.state.loading|=4,S.instance=U,kn(U);return}U=g.ownerDocument||g,A=J9(A),(D=ml.get(D))&&zk(A,D),U=U.createElement("link"),kn(U);var ie=U;ie._p=new Promise(function(me,Ne){ie.onload=me,ie.onerror=Ne}),oa(U,"link",A),S.instance=U}p.stylesheets===null&&(p.stylesheets=new Map),p.stylesheets.set(S,g),(g=S.state.preload)&&(S.state.loading&3)===0&&(p.count++,S=Z_.bind(p),g.addEventListener("load",S),g.addEventListener("error",S))}}var Fk=0;function Fve(p,g){return p.stylesheets&&p.count===0&&Q_(p,p.stylesheets),0Fk?50:800)+g);return p.unsuspend=S,function(){p.unsuspend=null,clearTimeout(A),clearTimeout(D)}}:null}function Z_(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Q_(this,this.stylesheets);else if(this.unsuspend){var p=this.unsuspend;this.unsuspend=null,p()}}}var J_=null;function Q_(p,g){p.stylesheets=null,p.unsuspend!==null&&(p.count++,J_=new Map,g.forEach(Hve,p),J_=null,Z_.call(p))}function Hve(p,g){if(!(g.state.loading&4)){var S=J_.get(p);if(S)var A=S.get(null);else{S=new Map,J_.set(p,S);for(var D=p.querySelectorAll("link[data-precedence],style[data-precedence]"),U=0;U"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Zk.exports=abe(),Zk.exports}var Une=sbe();const lbe=ma(Une);/** * react-router v7.11.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var EH="popstate";function cbe(e={}){function t(i,a){let{pathname:s="/",search:l="",hash:c=""}=Sg(i.location.hash.substring(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),Y4("",{pathname:s,search:l,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(i,a){let s=i.document.querySelector("base"),l="";if(s&&s.getAttribute("href")){let c=i.location.href,u=c.indexOf("#");l=u===-1?c:c.slice(0,u)}return l+"#"+(typeof a=="string"?a:P1(a))}function r(i,a){Zs(i.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(a)})`)}return dbe(t,n,r,e)}function Si(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Zs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ube(){return Math.random().toString(36).substring(2,10)}function TH(e,t){return{usr:e.state,key:e.key,idx:t}}function Y4(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Sg(t):t,state:n,key:t&&t.key||r||ube()}}function P1({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Sg(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function dbe(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,l="POP",c=null,u=d();u==null&&(u=0,s.replaceState({...s.state,idx:u},""));function d(){return(s.state||{idx:null}).idx}function m(){l="POP";let w=d(),_=w==null?null:w-u;u=w,c&&c({action:l,location:b.location,delta:_})}function h(w,_){l="PUSH";let C=Y4(b.location,w,_);n&&n(C,w),u=d()+1;let N=TH(C,u),j=b.createHref(C);try{s.pushState(N,"",j)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(j)}a&&c&&c({action:l,location:b.location,delta:1})}function y(w,_){l="REPLACE";let C=Y4(b.location,w,_);n&&n(C,w),u=d();let N=TH(C,u),j=b.createHref(C);s.replaceState(N,"",j),a&&c&&c({action:l,location:b.location,delta:0})}function x(w){return fbe(w)}let b={get action(){return l},get location(){return e(i,s)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(EH,m),c=w,()=>{i.removeEventListener(EH,m),c=null}},createHref(w){return t(i,w)},createURL:x,encodeLocation(w){let _=x(w);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:h,replace:y,go(w){return s.go(w)}};return b}function fbe(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Si(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:P1(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Vne(e,t,n="/"){return mbe(e,t,n,!1)}function mbe(e,t,n,r){let i=typeof t=="string"?Sg(t):t,a=Ld(i.pathname||"/",n);if(a==null)return null;let s=Gne(e);pbe(s);let l=null;for(let c=0;l==null&&c{let d={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&c)return;Si(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let m=Td([r,d.relativePath]),h=n.concat(d);s.children&&s.children.length>0&&(Si(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),Gne(s.children,t,h,m,c)),!(s.path==null&&!s.index)&&t.push({path:m,score:wbe(m,s.index),routesMeta:h})};return e.forEach((s,l)=>{var c;if(s.path===""||!((c=s.path)!=null&&c.includes("?")))a(s,l);else for(let u of Wne(s.path))a(s,l,!0,u)}),t}function Wne(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=Wne(r.join("/")),l=[];return l.push(...s.map(c=>c===""?a:[a,c].join("/"))),i&&l.push(...s),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function pbe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Sbe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var hbe=/^:[\w-]+$/,gbe=3,ybe=2,xbe=1,vbe=10,bbe=-2,AH=e=>e==="*";function wbe(e,t){let n=e.split("/"),r=n.length;return n.some(AH)&&(r+=bbe),t&&(r+=ybe),n.filter(i=>!AH(i)).reduce((i,a)=>i+(hbe.test(a)?gbe:a===""?xbe:vbe),r)}function Sbe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function _be(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",s=[];for(let l=0;l{if(d==="*"){let x=l[h]||"";s=a.slice(0,a.length-x.length).replace(/(.)\/+$/,"$1")}const y=l[h];return m&&!y?u[d]=void 0:u[d]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function Cbe(e,t=!1,n=!0){Zs(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Nbe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Zs(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ld(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var qne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jbe=e=>qne.test(e);function Ebe(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Sg(e):e,a;if(n)if(jbe(n))a=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),Zs(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${n}`)}n.startsWith("/")?a=IH(n.substring(1),"/"):a=IH(n,t)}else a=t;return{pathname:a,search:Ibe(r),hash:kbe(i)}}function IH(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function tP(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. 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 Tbe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function rL(e){let t=Tbe(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function iL(e,t,n,r=!1){let i;typeof e=="string"?i=Sg(e):(i={...e},Si(!i.pathname||!i.pathname.includes("?"),tP("?","pathname","search",i)),Si(!i.pathname||!i.pathname.includes("#"),tP("#","pathname","hash",i)),Si(!i.search||!i.search.includes("#"),tP("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,l;if(s==null)l=n;else{let m=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),m-=1;i.pathname=h.join("/")}l=m>=0?t[m]:"/"}let c=Ebe(i,l),u=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}var Td=e=>e.join("/").replace(/\/\/+/g,"/"),Abe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ibe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kbe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Pbe=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Mbe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Rbe(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Kne=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Yne(e,t){let n=e;if(typeof n!="string"||!qne.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Kne)try{let a=new URL(window.location.href),s=n.startsWith("//")?new URL(a.protocol+n):new URL(n),l=Ld(s.pathname,t);s.origin===a.origin&&l!=null?n=l+s.search+s.hash:i=!0}catch{Zs(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Xne=["POST","PUT","PATCH","DELETE"];new Set(Xne);var $be=["GET",...Xne];new Set($be);var _x=f.createContext(null);_x.displayName="DataRouter";var OE=f.createContext(null);OE.displayName="DataRouterState";var Obe=f.createContext(!1),Zne=f.createContext({isTransitioning:!1});Zne.displayName="ViewTransition";var Dbe=f.createContext(new Map);Dbe.displayName="Fetchers";var Lbe=f.createContext(null);Lbe.displayName="Await";var nl=f.createContext(null);nl.displayName="Navigation";var Lw=f.createContext(null);Lw.displayName="Location";var ju=f.createContext({outlet:null,matches:[],isDataRoute:!1});ju.displayName="Route";var oL=f.createContext(null);oL.displayName="RouteError";var Jne="REACT_ROUTER_ERROR",zbe="REDIRECT",Bbe="ROUTE_ERROR_RESPONSE";function Fbe(e){if(e.startsWith(`${Jne}:${zbe}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Hbe(e){if(e.startsWith(`${Jne}:${Bbe}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Pbe(t.status,t.statusText,t.data)}catch{}}function Ube(e,{relative:t}={}){Si(Cx(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=f.useContext(nl),{hash:i,pathname:a,search:s}=zw(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:Td([n,a])),r.createHref({pathname:l,search:s,hash:i})}function Cx(){return f.useContext(Lw)!=null}function up(){return Si(Cx(),"useLocation() may be used only in the context of a component."),f.useContext(Lw).location}var Qne="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ere(e){f.useContext(nl).static||f.useLayoutEffect(e)}function DE(){let{isDataRoute:e}=f.useContext(ju);return e?n1e():Vbe()}function Vbe(){Si(Cx(),"useNavigate() may be used only in the context of a component.");let e=f.useContext(_x),{basename:t,navigator:n}=f.useContext(nl),{matches:r}=f.useContext(ju),{pathname:i}=up(),a=JSON.stringify(rL(r)),s=f.useRef(!1);return ere(()=>{s.current=!0}),f.useCallback((c,u={})=>{if(Zs(s.current,Qne),!s.current)return;if(typeof c=="number"){n.go(c);return}let d=iL(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Td([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,a,i,e])}f.createContext(null);function zw(e,{relative:t}={}){let{matches:n}=f.useContext(ju),{pathname:r}=up(),i=JSON.stringify(rL(n));return f.useMemo(()=>iL(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function Gbe(e,t){return tre(e,t)}function tre(e,t,n,r,i){var C;Si(Cx(),"useRoutes() may be used only in the context of a component.");let{navigator:a}=f.useContext(nl),{matches:s}=f.useContext(ju),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",m=l&&l.route;{let N=m&&m.path||"";rre(u,!m||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${u}" (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 h=up(),y;if(t){let N=typeof t=="string"?Sg(t):t;Si(d==="/"||((C=N.pathname)==null?void 0:C.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 "${N.pathname}" was given in the \`location\` prop.`),y=N}else y=h;let x=y.pathname||"/",b=x;if(d!=="/"){let N=d.replace(/^\//,"").split("/");b="/"+x.replace(/^\//,"").split("/").slice(N.length).join("/")}let w=Vne(e,{pathname:b});Zs(m||w!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Zs(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.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 _=Xbe(w&&w.map(N=>Object.assign({},N,{params:Object.assign({},c,N.params),pathname:Td([d,a.encodeLocation?a.encodeLocation(N.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?d:Td([d,a.encodeLocation?a.encodeLocation(N.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),s,n,r,i);return t&&_?f.createElement(Lw.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},_):_}function Wbe(){let e=t1e(),t=Mbe(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:a},"ErrorBoundary")," or"," ",f.createElement("code",{style:a},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:i},n):null,s)}var qbe=f.createElement(Wbe,null),nre=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Hbe(e.digest);n&&(e=n)}let t=e!==void 0?f.createElement(ju.Provider,{value:this.props.routeContext},f.createElement(oL.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?f.createElement(Kbe,{error:e},t):t}};nre.contextType=Obe;var nP=new WeakMap;function Kbe({children:e,error:t}){let{basename:n}=f.useContext(nl);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Fbe(t.digest);if(r){let i=nP.get(t);if(i)throw i;let a=Yne(r.location,n);if(Kne&&!nP.get(t))if(a.isExternal||r.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:r.replace}));throw nP.set(t,s),s}return f.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function Ybe({routeContext:e,match:t,children:n}){let r=f.useContext(_x);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(ju.Provider,{value:e},n)}function Xbe(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=n==null?void 0:n.errors;if(s!=null){let d=a.findIndex(m=>m.route.id&&(s==null?void 0:s[m.route.id])!==void 0);Si(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 l=!1,c=-1;if(n)for(let d=0;d=0?a=a.slice(0,c+1):a=[a[0]];break}}}let u=n&&r?(d,m)=>{var h,y;r(d,{location:n.location,params:((y=(h=n.matches)==null?void 0:h[0])==null?void 0:y.params)??{},unstable_pattern:Rbe(n.matches),errorInfo:m})}:void 0;return a.reduceRight((d,m,h)=>{let y,x=!1,b=null,w=null;n&&(y=s&&m.route.id?s[m.route.id]:void 0,b=m.route.errorElement||qbe,l&&(c<0&&h===0?(rre("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,w=null):c===h&&(x=!0,w=m.route.hydrateFallbackElement||null)));let _=t.concat(a.slice(0,h+1)),C=()=>{let N;return y?N=b:x?N=w:m.route.Component?N=f.createElement(m.route.Component,null):m.route.element?N=m.route.element:N=d,f.createElement(Ybe,{match:m,routeContext:{outlet:d,matches:_,isDataRoute:n!=null},children:N})};return n&&(m.route.ErrorBoundary||m.route.errorElement||h===0)?f.createElement(nre,{location:n.location,revalidation:n.revalidation,component:b,error:y,children:C(),routeContext:{outlet:null,matches:_,isDataRoute:!0},onError:u}):C()},null)}function aL(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zbe(e){let t=f.useContext(_x);return Si(t,aL(e)),t}function Jbe(e){let t=f.useContext(OE);return Si(t,aL(e)),t}function Qbe(e){let t=f.useContext(ju);return Si(t,aL(e)),t}function sL(e){let t=Qbe(e),n=t.matches[t.matches.length-1];return Si(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function e1e(){return sL("useRouteId")}function t1e(){var r;let e=f.useContext(oL),t=Jbe("useRouteError"),n=sL("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function n1e(){let{router:e}=Zbe("useNavigate"),t=sL("useNavigate"),n=f.useRef(!1);return ere(()=>{n.current=!0}),f.useCallback(async(i,a={})=>{Zs(n.current,Qne),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var kH={};function rre(e,t,n){!t&&!kH[e]&&(kH[e]=!0,Zs(!1,n))}f.memo(r1e);function r1e({routes:e,future:t,state:n,onError:r}){return tre(e,void 0,n,r,t)}function ire({to:e,replace:t,state:n,relative:r}){Si(Cx()," may be used only in the context of a component.");let{static:i}=f.useContext(nl);Zs(!i," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:a}=f.useContext(ju),{pathname:s}=up(),l=DE(),c=iL(e,rL(a),s,r==="path"),u=JSON.stringify(c);return f.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function im(e){Si(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function i1e({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1,unstable_useTransitions:s}){Si(!Cx(),"You cannot render a inside another . You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=f.useMemo(()=>({basename:l,navigator:i,static:a,unstable_useTransitions:s,future:{}}),[l,i,a,s]);typeof n=="string"&&(n=Sg(n));let{pathname:u="/",search:d="",hash:m="",state:h=null,key:y="default"}=n,x=f.useMemo(()=>{let b=Ld(u,l);return b==null?null:{location:{pathname:b,search:d,hash:m,state:h,key:y},navigationType:r}},[l,u,d,m,h,y,r]);return Zs(x!=null,` is not able to match the URL "${u}${d}${m}" because it does not start with the basename, so the won't render anything.`),x==null?null:f.createElement(nl.Provider,{value:c},f.createElement(Lw.Provider,{children:t,value:x}))}function o1e({children:e,location:t}){return Gbe(X4(e),t)}function X4(e,t=[]){let n=[];return f.Children.forEach(e,(r,i)=>{if(!f.isValidElement(r))return;let a=[...t,i];if(r.type===f.Fragment){n.push.apply(n,X4(r.props.children,a));return}Si(r.type===im,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),Si(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=X4(r.props.children,a)),n.push(s)}),n}var D2="get",L2="application/x-www-form-urlencoded";function LE(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function a1e(e){return LE(e)&&e.tagName.toLowerCase()==="button"}function s1e(e){return LE(e)&&e.tagName.toLowerCase()==="form"}function l1e(e){return LE(e)&&e.tagName.toLowerCase()==="input"}function c1e(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function u1e(e,t){return e.button===0&&(!t||t==="_self")&&!c1e(e)}var cC=null;function d1e(){if(cC===null)try{new FormData(document.createElement("form"),0),cC=!1}catch{cC=!0}return cC}var f1e=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function rP(e){return e!=null&&!f1e.has(e)?(Zs(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${L2}"`),null):e}function m1e(e,t){let n,r,i,a,s;if(s1e(e)){let l=e.getAttribute("action");r=l?Ld(l,t):null,n=e.getAttribute("method")||D2,i=rP(e.getAttribute("enctype"))||L2,a=new FormData(e)}else if(a1e(e)||l1e(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a