(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function o(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(l){if(l.ep)return;l.ep=!0;const c=o(l);fetch(l.href,c)}})();function _r(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Nl={exports:{}},Ei={},_l={exports:{}},ae={};var uh;function Yv(){if(uh)return ae;uh=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function x(k){return k===null||typeof k!="object"?null:(k=v&&k[v]||k["@@iterator"],typeof k=="function"?k:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,R={};function P(k,F,oe){this.props=k,this.context=F,this.refs=R,this.updater=oe||T}P.prototype.isReactComponent={},P.prototype.setState=function(k,F){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,F,"setState")},P.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function _(){}_.prototype=P.prototype;function j(k,F,oe){this.props=k,this.context=F,this.refs=R,this.updater=oe||T}var V=j.prototype=new _;V.constructor=j,M(V,P.prototype),V.isPureReactComponent=!0;var W=Array.isArray,$=Object.prototype.hasOwnProperty,ee={current:null},ie={key:!0,ref:!0,__self:!0,__source:!0};function X(k,F,oe){var le,ce={},fe=null,ye=null;if(F!=null)for(le in F.ref!==void 0&&(ye=F.ref),F.key!==void 0&&(fe=""+F.key),F)$.call(F,le)&&!ie.hasOwnProperty(le)&&(ce[le]=F[le]);var pe=arguments.length-2;if(pe===1)ce.children=oe;else if(1>>1,F=U[k];if(0>>1;kl(ce,H))fel(ye,ce)?(U[k]=ye,U[fe]=H,k=fe):(U[k]=ce,U[le]=H,k=le);else if(fel(ye,H))U[k]=ye,U[fe]=H,k=fe;else break e}}return q}function l(U,q){var H=U.sortIndex-q.sortIndex;return H!==0?H:U.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var p=[],m=[],g=1,v=null,x=3,T=!1,M=!1,R=!1,P=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function V(U){for(var q=o(m);q!==null;){if(q.callback===null)s(m);else if(q.startTime<=U)s(m),q.sortIndex=q.expirationTime,r(p,q);else break;q=o(m)}}function W(U){if(R=!1,V(U),!M)if(o(p)!==null)M=!0,tt($);else{var q=o(m);q!==null&&se(W,q.startTime-U)}}function $(U,q){M=!1,R&&(R=!1,_(X),X=-1),T=!0;var H=x;try{for(V(q),v=o(p);v!==null&&(!(v.expirationTime>q)||U&&!Ge());){var k=v.callback;if(typeof k=="function"){v.callback=null,x=v.priorityLevel;var F=k(v.expirationTime<=q);q=n.unstable_now(),typeof F=="function"?v.callback=F:v===o(p)&&s(p),V(q)}else s(p);v=o(p)}if(v!==null)var oe=!0;else{var le=o(m);le!==null&&se(W,le.startTime-q),oe=!1}return oe}finally{v=null,x=H,T=!1}}var ee=!1,ie=null,X=-1,he=5,ge=-1;function Ge(){return!(n.unstable_now()-geU||125k?(U.sortIndex=H,r(m,U),o(p)===null&&U===o(m)&&(R?(_(X),X=-1):R=!0,se(W,H-k))):(U.sortIndex=F,r(p,U),M||T||(M=!0,tt($))),U},n.unstable_shouldYield=Ge,n.unstable_wrapCallback=function(U){var q=x;return function(){var H=x;x=q;try{return U.apply(this,arguments)}finally{x=H}}}})(Vl)),Vl}var ph;function Zv(){return ph||(ph=1,Ol.exports=qv()),Ol.exports}var mh;function Jv(){if(mh)return ut;mh=1;var n=Ms(),r=Zv();function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},v={};function x(e){return p.call(v,e)?!0:p.call(g,e)?!1:m.test(e)?v[e]=!0:(g[e]=!0,!1)}function T(e,t,i,a){if(i!==null&&i.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function M(e,t,i,a){if(t===null||typeof t>"u"||T(e,t,i,a))return!0;if(a)return!1;if(i!==null)switch(i.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function R(e,t,i,a,u,d,y){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=u,this.mustUseProperty=i,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=y}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){P[e]=new R(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];P[t]=new R(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){P[e]=new R(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){P[e]=new R(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){P[e]=new R(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){P[e]=new R(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){P[e]=new R(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){P[e]=new R(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){P[e]=new R(e,5,!1,e.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function j(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_,j);P[t]=new R(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_,j);P[t]=new R(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_,j);P[t]=new R(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){P[e]=new R(e,1,!1,e.toLowerCase(),null,!1,!1)}),P.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){P[e]=new R(e,1,!1,e.toLowerCase(),null,!0,!0)});function V(e,t,i,a){var u=P.hasOwnProperty(t)?P[t]:null;(u!==null?u.type!==0:a||!(2w||u[y]!==d[w]){var S=` `+u[y].replace(" at new "," at ");return e.displayName&&S.includes("")&&(S=S.replace("",e.displayName)),S}while(1<=y&&0<=w);break}}}finally{oe=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?F(e):""}function ce(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=le(e.type,!1),e;case 11:return e=le(e.type.render,!1),e;case 1:return e=le(e.type,!0),e;default:return""}}function fe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ie:return"Fragment";case ee:return"Portal";case he:return"Profiler";case X:return"StrictMode";case Be:return"Suspense";case be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ge:return(e.displayName||"Context")+".Consumer";case ge:return(e._context.displayName||"Context")+".Provider";case et:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Oe:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case tt:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}function ye(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fe(t);case 8:return t===X?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function pe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Te(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ft(e){var t=Te(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,d=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(y){a=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qi(e){e._valueTracker||(e._valueTracker=ft(e))}function pc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),a="";return e&&(a=Te(e)?e.checked?"true":"false":e.value),e=a,e!==i?(t.setValue(e),!0):!1}function Zi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Bs(e,t){var i=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function mc(e,t){var i=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;i=pe(t.value!=null?t.value:i),e._wrapperState={initialChecked:a,initialValue:i,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gc(e,t){t=t.checked,t!=null&&V(e,"checked",t,!1)}function zs(e,t){gc(e,t);var i=pe(t.value),a=t.type;if(i!=null)a==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Us(e,t.type,i):t.hasOwnProperty("defaultValue")&&Us(e,t.type,pe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yc(e,t,i){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,i||t===e.value||(e.value=t),e.defaultValue=t}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function Us(e,t,i){(t!=="number"||Zi(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var Ir=Array.isArray;function Zn(e,t,i,a){if(e=e.options,t){t={};for(var u=0;u"+t.valueOf().toString()+"",t=Ji.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Br(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var zr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zg=["Webkit","ms","Moz","O"];Object.keys(zr).forEach(function(e){Zg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),zr[t]=zr[e]})});function Ec(e,t,i){return t==null||typeof t=="boolean"||t===""?"":i||typeof t!="number"||t===0||zr.hasOwnProperty(e)&&zr[e]?(""+t).trim():t+"px"}function Pc(e,t){e=e.style;for(var i in t)if(t.hasOwnProperty(i)){var a=i.indexOf("--")===0,u=Ec(i,t[i],a);i==="float"&&(i="cssFloat"),a?e.setProperty(i,u):e[i]=u}}var Jg=H({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Hs(e,t){if(t){if(Jg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(o(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(t.style!=null&&typeof t.style!="object")throw Error(o(62))}}function Ws(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ks=null;function Gs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ys=null,Jn=null,er=null;function Cc(e){if(e=li(e)){if(typeof Ys!="function")throw Error(o(280));var t=e.stateNode;t&&(t=Eo(t),Ys(e.stateNode,e.type,t))}}function kc(e){Jn?er?er.push(e):er=[e]:Jn=e}function Rc(){if(Jn){var e=Jn,t=er;if(er=Jn=null,Cc(e),t)for(e=0;e>>=0,e===0?32:31-(cy(e)/fy|0)|0}var io=64,oo=4194304;function Hr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function so(e,t){var i=e.pendingLanes;if(i===0)return 0;var a=0,u=e.suspendedLanes,d=e.pingedLanes,y=i&268435455;if(y!==0){var w=y&~u;w!==0?a=Hr(w):(d&=y,d!==0&&(a=Hr(d)))}else y=i&~u,y!==0?a=Hr(y):d!==0&&(a=Hr(d));if(a===0)return 0;if(t!==0&&t!==a&&(t&u)===0&&(u=a&-a,d=t&-t,u>=d||u===16&&(d&4194240)!==0))return t;if((a&4)!==0&&(a|=i&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0i;i++)t.push(e);return t}function Wr(e,t,i){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rt(t),e[t]=i}function my(e,t){var i=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0=Jr),tf=" ",nf=!1;function rf(e,t){switch(e){case"keyup":return by.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function of(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rr=!1;function Wy(e,t){switch(e){case"compositionend":return of(t);case"keypress":return t.which!==32?null:(nf=!0,tf);case"textInput":return e=t.data,e===tf&&nf?null:e;default:return null}}function Ky(e,t){if(rr)return e==="compositionend"||!da&&rf(e,t)?(e=Qc(),fo=sa=fn=null,rr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:i,offset:t-e};e=a}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=df(i)}}function pf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mf(){for(var e=window,t=Zi();t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Zi(e.document)}return t}function ma(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function tv(e){var t=mf(),i=e.focusedElem,a=e.selectionRange;if(t!==i&&i&&i.ownerDocument&&pf(i.ownerDocument.documentElement,i)){if(a!==null&&ma(i)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in i)i.selectionStart=t,i.selectionEnd=Math.min(e,i.value.length);else if(e=(t=i.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var u=i.textContent.length,d=Math.min(a.start,u);a=a.end===void 0?d:Math.min(a.end,u),!e.extend&&d>a&&(u=a,a=d,d=u),u=hf(i,d);var y=hf(i,a);u&&y&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==y.node||e.focusOffset!==y.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),e.removeAllRanges(),d>a?(e.addRange(t),e.extend(y.node,y.offset)):(t.setEnd(y.node,y.offset),e.addRange(t)))}}for(t=[],e=i;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i=document.documentMode,ir=null,ga=null,ri=null,ya=!1;function gf(e,t,i){var a=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ya||ir==null||ir!==Zi(a)||(a=ir,"selectionStart"in a&&ma(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}),ri&&ni(ri,a)||(ri=a,a=wo(ga,"onSelect"),0ur||(e.current=La[ur],La[ur]=null,ur--)}function ve(e,t){ur++,La[ur]=e.current,e.current=t}var mn={},Ye=pn(mn),it=pn(!1),_n=mn;function cr(e,t){var i=e.type.contextTypes;if(!i)return mn;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var u={},d;for(d in i)u[d]=t[d];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function ot(e){return e=e.childContextTypes,e!=null}function Po(){we(it),we(Ye)}function Df(e,t,i){if(Ye.current!==mn)throw Error(o(168));ve(Ye,t),ve(it,i)}function Nf(e,t,i){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return i;a=a.getChildContext();for(var u in a)if(!(u in t))throw Error(o(108,ye(e)||"Unknown",u));return H({},i,a)}function Co(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mn,_n=Ye.current,ve(Ye,e),ve(it,it.current),!0}function _f(e,t,i){var a=e.stateNode;if(!a)throw Error(o(169));i?(e=Nf(e,t,_n),a.__reactInternalMemoizedMergedChildContext=e,we(it),we(Ye),ve(Ye,e)):we(it),ve(it,i)}var Gt=null,ko=!1,Ma=!1;function jf(e){Gt===null?Gt=[e]:Gt.push(e)}function hv(e){ko=!0,jf(e)}function gn(){if(!Ma&&Gt!==null){Ma=!0;var e=0,t=me;try{var i=Gt;for(me=1;e>=y,u-=y,Yt=1<<32-Rt(t)+u|i<ne?($e=J,J=null):$e=J.sibling;var de=O(A,J,L[ne],z);if(de===null){J===null&&(J=$e);break}e&&J&&de.alternate===null&&t(A,J),E=d(de,E,ne),Z===null?Q=de:Z.sibling=de,Z=de,J=$e}if(ne===L.length)return i(A,J),Ee&&On(A,ne),Q;if(J===null){for(;nene?($e=J,J=null):$e=J.sibling;var Cn=O(A,J,de.value,z);if(Cn===null){J===null&&(J=$e);break}e&&J&&Cn.alternate===null&&t(A,J),E=d(Cn,E,ne),Z===null?Q=Cn:Z.sibling=Cn,Z=Cn,J=$e}if(de.done)return i(A,J),Ee&&On(A,ne),Q;if(J===null){for(;!de.done;ne++,de=L.next())de=B(A,de.value,z),de!==null&&(E=d(de,E,ne),Z===null?Q=de:Z.sibling=de,Z=de);return Ee&&On(A,ne),Q}for(J=a(A,J);!de.done;ne++,de=L.next())de=b(J,A,ne,de.value,z),de!==null&&(e&&de.alternate!==null&&J.delete(de.key===null?ne:de.key),E=d(de,E,ne),Z===null?Q=de:Z.sibling=de,Z=de);return e&&J.forEach(function(Gv){return t(A,Gv)}),Ee&&On(A,ne),Q}function _e(A,E,L,z){if(typeof L=="object"&&L!==null&&L.type===ie&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case $:e:{for(var Q=L.key,Z=E;Z!==null;){if(Z.key===Q){if(Q=L.type,Q===ie){if(Z.tag===7){i(A,Z.sibling),E=u(Z,L.props.children),E.return=A,A=E;break e}}else if(Z.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===tt&&zf(Q)===Z.type){i(A,Z.sibling),E=u(Z,L.props),E.ref=ui(A,Z,L),E.return=A,A=E;break e}i(A,Z);break}else t(A,Z);Z=Z.sibling}L.type===ie?(E=bn(L.props.children,A.mode,z,L.key),E.return=A,A=E):(z=es(L.type,L.key,L.props,null,A.mode,z),z.ref=ui(A,E,L),z.return=A,A=z)}return y(A);case ee:e:{for(Z=L.key;E!==null;){if(E.key===Z)if(E.tag===4&&E.stateNode.containerInfo===L.containerInfo&&E.stateNode.implementation===L.implementation){i(A,E.sibling),E=u(E,L.children||[]),E.return=A,A=E;break e}else{i(A,E);break}else t(A,E);E=E.sibling}E=Rl(L,A.mode,z),E.return=A,A=E}return y(A);case tt:return Z=L._init,_e(A,E,Z(L._payload),z)}if(Ir(L))return G(A,E,L,z);if(q(L))return Y(A,E,L,z);Mo(A,L)}return typeof L=="string"&&L!==""||typeof L=="number"?(L=""+L,E!==null&&E.tag===6?(i(A,E.sibling),E=u(E,L),E.return=A,A=E):(i(A,E),E=kl(L,A.mode,z),E.return=A,A=E),y(A)):i(A,E)}return _e}var pr=Uf(!0),$f=Uf(!1),Do=pn(null),No=null,mr=null,Va=null;function Fa(){Va=mr=No=null}function Ia(e){var t=Do.current;we(Do),e._currentValue=t}function Ba(e,t,i){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===i)break;e=e.return}}function gr(e,t){No=e,Va=mr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(st=!0),e.firstContext=null)}function wt(e){var t=e._currentValue;if(Va!==e)if(e={context:e,memoizedValue:t,next:null},mr===null){if(No===null)throw Error(o(308));mr=e,No.dependencies={lanes:0,firstContext:e}}else mr=mr.next=e;return t}var Vn=null;function za(e){Vn===null?Vn=[e]:Vn.push(e)}function bf(e,t,i,a){var u=t.interleaved;return u===null?(i.next=i,za(t)):(i.next=u.next,u.next=i),t.interleaved=i,Xt(e,a)}function Xt(e,t){e.lanes|=t;var i=e.alternate;for(i!==null&&(i.lanes|=t),i=e,e=e.return;e!==null;)e.childLanes|=t,i=e.alternate,i!==null&&(i.childLanes|=t),i=e,e=e.return;return i.tag===3?i.stateNode:null}var yn=!1;function Ua(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vn(e,t,i){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ue&2)!==0){var u=a.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),a.pending=t,Xt(e,i)}return u=a.interleaved,u===null?(t.next=t,za(a)):(t.next=u.next,u.next=t),a.interleaved=t,Xt(e,i)}function _o(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,i|=a,t.lanes=i,ta(e,i)}}function Wf(e,t){var i=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,i===a)){var u=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var y={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};d===null?u=d=y:d=d.next=y,i=i.next}while(i!==null);d===null?u=d=t:d=d.next=t}else u=d=t;i={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:a.shared,effects:a.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}function jo(e,t,i,a){var u=e.updateQueue;yn=!1;var d=u.firstBaseUpdate,y=u.lastBaseUpdate,w=u.shared.pending;if(w!==null){u.shared.pending=null;var S=w,D=S.next;S.next=null,y===null?d=D:y.next=D,y=S;var I=e.alternate;I!==null&&(I=I.updateQueue,w=I.lastBaseUpdate,w!==y&&(w===null?I.firstBaseUpdate=D:w.next=D,I.lastBaseUpdate=S))}if(d!==null){var B=u.baseState;y=0,I=D=S=null,w=d;do{var O=w.lane,b=w.eventTime;if((a&O)===O){I!==null&&(I=I.next={eventTime:b,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var G=e,Y=w;switch(O=t,b=i,Y.tag){case 1:if(G=Y.payload,typeof G=="function"){B=G.call(b,B,O);break e}B=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=Y.payload,O=typeof G=="function"?G.call(b,B,O):G,O==null)break e;B=H({},B,O);break e;case 2:yn=!0}}w.callback!==null&&w.lane!==0&&(e.flags|=64,O=u.effects,O===null?u.effects=[w]:O.push(w))}else b={eventTime:b,lane:O,tag:w.tag,payload:w.payload,callback:w.callback,next:null},I===null?(D=I=b,S=B):I=I.next=b,y|=O;if(w=w.next,w===null){if(w=u.shared.pending,w===null)break;O=w,w=O.next,O.next=null,u.lastBaseUpdate=O,u.shared.pending=null}}while(!0);if(I===null&&(S=B),u.baseState=S,u.firstBaseUpdate=D,u.lastBaseUpdate=I,t=u.shared.interleaved,t!==null){u=t;do y|=u.lane,u=u.next;while(u!==t)}else d===null&&(u.shared.lanes=0);Bn|=y,e.lanes=y,e.memoizedState=B}}function Kf(e,t,i){if(e=t.effects,t.effects=null,e!==null)for(t=0;ti?i:4,e(!0);var a=Ka.transition;Ka.transition={};try{e(!1),t()}finally{me=i,Ka.transition=a}}function fd(){return St().memoizedState}function yv(e,t,i){var a=Tn(e);if(i={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null},dd(e))hd(t,i);else if(i=bf(e,t,i,a),i!==null){var u=rt();_t(i,e,a,u),pd(i,t,a)}}function vv(e,t,i){var a=Tn(e),u={lane:a,action:i,hasEagerState:!1,eagerState:null,next:null};if(dd(e))hd(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,w=d(y,i);if(u.hasEagerState=!0,u.eagerState=w,At(w,y)){var S=t.interleaved;S===null?(u.next=u,za(t)):(u.next=S.next,S.next=u),t.interleaved=u;return}}catch{}i=bf(e,t,u,a),i!==null&&(u=rt(),_t(i,e,a,u),pd(i,t,a))}}function dd(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function hd(e,t){hi=Fo=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function pd(e,t,i){if((i&4194240)!==0){var a=t.lanes;a&=e.pendingLanes,i|=a,t.lanes=i,ta(e,i)}}var zo={readContext:wt,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},xv={readContext:wt,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:rd,useImperativeHandle:function(e,t,i){return i=i!=null?i.concat([e]):null,Io(4194308,4,sd.bind(null,t,e),i)},useLayoutEffect:function(e,t){return Io(4194308,4,e,t)},useInsertionEffect:function(e,t){return Io(4,2,e,t)},useMemo:function(e,t){var i=zt();return t=t===void 0?null:t,e=e(),i.memoizedState=[e,t],e},useReducer:function(e,t,i){var a=zt();return t=i!==void 0?i(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=yv.bind(null,Re,e),[a.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:td,useDebugValue:Ja,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=td(!1),t=e[0];return e=gv.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,i){var a=Re,u=zt();if(Ee){if(i===void 0)throw Error(o(407));i=i()}else{if(i=t(),Ue===null)throw Error(o(349));(In&30)!==0||Xf(a,t,i)}u.memoizedState=i;var d={value:i,getSnapshot:t};return u.queue=d,rd(Zf.bind(null,a,d,e),[e]),a.flags|=2048,gi(9,qf.bind(null,a,d,i,t),void 0,null),i},useId:function(){var e=zt(),t=Ue.identifierPrefix;if(Ee){var i=Qt,a=Yt;i=(a&~(1<<32-Rt(a)-1)).toString(32)+i,t=":"+t+"R"+i,i=pi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=y.createElement(i,{is:a.is}):(e=y.createElement(i),i==="select"&&(y=e,a.multiple?y.multiple=!0:a.size&&(y.size=a.size))):e=y.createElementNS(e,i),e[It]=t,e[ai]=a,jd(e,t,!1,!1),t.stateNode=e;e:{switch(y=Ws(i,a),i){case"dialog":xe("cancel",e),xe("close",e),u=a;break;case"iframe":case"object":case"embed":xe("load",e),u=a;break;case"video":case"audio":for(u=0;uSr&&(t.flags|=128,a=!0,yi(d,!1),t.lanes=4194304)}else{if(!a)if(e=Oo(y),e!==null){if(t.flags|=128,a=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),yi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!y.alternate&&!Ee)return Xe(t),null}else 2*Ne()-d.renderingStartTime>Sr&&i!==1073741824&&(t.flags|=128,a=!0,yi(d,!1),t.lanes=4194304);d.isBackwards?(y.sibling=t.child,t.child=y):(i=d.last,i!==null?i.sibling=y:t.child=y,d.last=y)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=Ne(),t.sibling=null,i=ke.current,ve(ke,a?i&1|2:i&1),t):(Xe(t),null);case 22:case 23:return El(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&(t.mode&1)!==0?(mt&1073741824)!==0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(o(156,t.tag))}function Rv(e,t){switch(Na(t),t.tag){case 1:return ot(t.type)&&Po(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yr(),we(it),we(Ye),Wa(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ba(t),null;case 13:if(we(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));hr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(ke),null;case 4:return yr(),null;case 10:return Ia(t.type._context),null;case 22:case 23:return El(),null;case 24:return null;default:return null}}var Ho=!1,qe=!1,Av=typeof WeakSet=="function"?WeakSet:Set,K=null;function xr(e,t){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(a){Me(e,t,a)}else i.current=null}function fl(e,t,i){try{i()}catch(a){Me(e,t,a)}}var Fd=!1;function Lv(e,t){if(Ea=uo,e=mf(),ma(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var u=a.anchorOffset,d=a.focusNode;a=a.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var y=0,w=-1,S=-1,D=0,I=0,B=e,O=null;t:for(;;){for(var b;B!==i||u!==0&&B.nodeType!==3||(w=y+u),B!==d||a!==0&&B.nodeType!==3||(S=y+a),B.nodeType===3&&(y+=B.nodeValue.length),(b=B.firstChild)!==null;)O=B,B=b;for(;;){if(B===e)break t;if(O===i&&++D===u&&(w=y),O===d&&++I===a&&(S=y),(b=B.nextSibling)!==null)break;B=O,O=B.parentNode}B=b}i=w===-1||S===-1?null:{start:w,end:S}}else i=null}i=i||{start:0,end:0}}else i=null;for(Pa={focusedElem:e,selectionRange:i},uo=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var G=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(G!==null){var Y=G.memoizedProps,_e=G.memoizedState,A=t.stateNode,E=A.getSnapshotBeforeUpdate(t.elementType===t.type?Y:Mt(t.type,Y),_e);A.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var L=t.stateNode.containerInfo;L.nodeType===1?L.textContent="":L.nodeType===9&&L.documentElement&&L.removeChild(L.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(z){Me(t,t.return,z)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return G=Fd,Fd=!1,G}function vi(e,t,i){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var u=a=a.next;do{if((u.tag&e)===e){var d=u.destroy;u.destroy=void 0,d!==void 0&&fl(t,i,d)}u=u.next}while(u!==a)}}function Wo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do{if((i.tag&e)===e){var a=i.create;i.destroy=a()}i=i.next}while(i!==t)}}function dl(e){var t=e.ref;if(t!==null){var i=e.stateNode;e.tag,e=i,typeof t=="function"?t(e):t.current=e}}function Id(e){var t=e.alternate;t!==null&&(e.alternate=null,Id(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[ai],delete t[Aa],delete t[fv],delete t[dv])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Bd(e){return e.tag===5||e.tag===3||e.tag===4}function zd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hl(e,t,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=To));else if(a!==4&&(e=e.child,e!==null))for(hl(e,t,i),e=e.sibling;e!==null;)hl(e,t,i),e=e.sibling}function pl(e,t,i){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(pl(e,t,i),e=e.sibling;e!==null;)pl(e,t,i),e=e.sibling}var He=null,Dt=!1;function xn(e,t,i){for(i=i.child;i!==null;)Ud(e,t,i),i=i.sibling}function Ud(e,t,i){if(Ft&&typeof Ft.onCommitFiberUnmount=="function")try{Ft.onCommitFiberUnmount(ro,i)}catch{}switch(i.tag){case 5:qe||xr(i,t);case 6:var a=He,u=Dt;He=null,xn(e,t,i),He=a,Dt=u,He!==null&&(Dt?(e=He,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):He.removeChild(i.stateNode));break;case 18:He!==null&&(Dt?(e=He,i=i.stateNode,e.nodeType===8?Ra(e.parentNode,i):e.nodeType===1&&Ra(e,i),Xr(e)):Ra(He,i.stateNode));break;case 4:a=He,u=Dt,He=i.stateNode.containerInfo,Dt=!0,xn(e,t,i),He=a,Dt=u;break;case 0:case 11:case 14:case 15:if(!qe&&(a=i.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){u=a=a.next;do{var d=u,y=d.destroy;d=d.tag,y!==void 0&&((d&2)!==0||(d&4)!==0)&&fl(i,t,y),u=u.next}while(u!==a)}xn(e,t,i);break;case 1:if(!qe&&(xr(i,t),a=i.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=i.memoizedProps,a.state=i.memoizedState,a.componentWillUnmount()}catch(w){Me(i,t,w)}xn(e,t,i);break;case 21:xn(e,t,i);break;case 22:i.mode&1?(qe=(a=qe)||i.memoizedState!==null,xn(e,t,i),qe=a):xn(e,t,i);break;default:xn(e,t,i)}}function $d(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new Av),t.forEach(function(a){var u=Iv.bind(null,e,a);i.has(a)||(i.add(a),a.then(u,u))})}}function Nt(e,t){var i=t.deletions;if(i!==null)for(var a=0;au&&(u=y),a&=~d}if(a=u,a=Ne()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Dv(a/1960))-a,10e?16:e,Sn===null)var a=!1;else{if(e=Sn,Sn=null,Xo=0,(ue&6)!==0)throw Error(o(331));var u=ue;for(ue|=4,K=e.current;K!==null;){var d=K,y=d.child;if((K.flags&16)!==0){var w=d.deletions;if(w!==null){for(var S=0;SNe()-yl?Un(e,0):gl|=i),lt(e,t)}function th(e,t){t===0&&((e.mode&1)===0?t=1:(t=oo,oo<<=1,(oo&130023424)===0&&(oo=4194304)));var i=rt();e=Xt(e,t),e!==null&&(Wr(e,t,i),lt(e,i))}function Fv(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),th(e,i)}function Iv(e,t){var i=0;switch(e.tag){case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(i=u.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(o(314))}a!==null&&a.delete(t),th(e,i)}var nh;nh=function(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)st=!0;else{if((e.lanes&i)===0&&(t.flags&128)===0)return st=!1,Cv(e,t,i);st=(e.flags&131072)!==0}else st=!1,Ee&&(t.flags&1048576)!==0&&Of(t,Ao,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;bo(e,t),e=t.pendingProps;var u=cr(t,Ye.current);gr(t,i),u=Ya(null,t,a,e,u,i);var d=Qa();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ot(a)?(d=!0,Co(t)):d=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,Ua(t),u.updater=Uo,t.stateNode=u,u._reactInternals=t,tl(t,a,e,i),t=ol(null,t,a,!0,d,i)):(t.tag=0,Ee&&d&&Da(t),nt(null,t,u,i),t=t.child),t;case 16:a=t.elementType;e:{switch(bo(e,t),e=t.pendingProps,u=a._init,a=u(a._payload),t.type=a,u=t.tag=zv(a),e=Mt(a,e),u){case 0:t=il(null,t,a,e,i);break e;case 1:t=Ad(null,t,a,e,i);break e;case 11:t=Ed(null,t,a,e,i);break e;case 14:t=Pd(null,t,a,Mt(a.type,e),i);break e}throw Error(o(306,a,""))}return t;case 0:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Mt(a,u),il(e,t,a,u,i);case 1:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Mt(a,u),Ad(e,t,a,u,i);case 3:e:{if(Ld(t),e===null)throw Error(o(387));a=t.pendingProps,d=t.memoizedState,u=d.element,Hf(e,t),jo(t,a,null,i);var y=t.memoizedState;if(a=y.element,d.isDehydrated)if(d={element:a,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){u=vr(Error(o(423)),t),t=Md(e,t,a,i,u);break e}else if(a!==u){u=vr(Error(o(424)),t),t=Md(e,t,a,i,u);break e}else for(pt=hn(t.stateNode.containerInfo.firstChild),ht=t,Ee=!0,Lt=null,i=$f(t,null,a,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(hr(),a===u){t=Zt(e,t,i);break e}nt(e,t,a,i)}t=t.child}return t;case 5:return Gf(t),e===null&&ja(t),a=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,y=u.children,Ca(a,u)?y=null:d!==null&&Ca(a,d)&&(t.flags|=32),Rd(e,t),nt(e,t,y,i),t.child;case 6:return e===null&&ja(t),null;case 13:return Dd(e,t,i);case 4:return $a(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=pr(t,null,a,i):nt(e,t,a,i),t.child;case 11:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Mt(a,u),Ed(e,t,a,u,i);case 7:return nt(e,t,t.pendingProps,i),t.child;case 8:return nt(e,t,t.pendingProps.children,i),t.child;case 12:return nt(e,t,t.pendingProps.children,i),t.child;case 10:e:{if(a=t.type._context,u=t.pendingProps,d=t.memoizedProps,y=u.value,ve(Do,a._currentValue),a._currentValue=y,d!==null)if(At(d.value,y)){if(d.children===u.children&&!it.current){t=Zt(e,t,i);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var w=d.dependencies;if(w!==null){y=d.child;for(var S=w.firstContext;S!==null;){if(S.context===a){if(d.tag===1){S=qt(-1,i&-i),S.tag=2;var D=d.updateQueue;if(D!==null){D=D.shared;var I=D.pending;I===null?S.next=S:(S.next=I.next,I.next=S),D.pending=S}}d.lanes|=i,S=d.alternate,S!==null&&(S.lanes|=i),Ba(d.return,i,t),w.lanes|=i;break}S=S.next}}else if(d.tag===10)y=d.type===t.type?null:d.child;else if(d.tag===18){if(y=d.return,y===null)throw Error(o(341));y.lanes|=i,w=y.alternate,w!==null&&(w.lanes|=i),Ba(y,i,t),y=d.sibling}else y=d.child;if(y!==null)y.return=d;else for(y=d;y!==null;){if(y===t){y=null;break}if(d=y.sibling,d!==null){d.return=y.return,y=d;break}y=y.return}d=y}nt(e,t,u.children,i),t=t.child}return t;case 9:return u=t.type,a=t.pendingProps.children,gr(t,i),u=wt(u),a=a(u),t.flags|=1,nt(e,t,a,i),t.child;case 14:return a=t.type,u=Mt(a,t.pendingProps),u=Mt(a.type,u),Pd(e,t,a,u,i);case 15:return Cd(e,t,t.type,t.pendingProps,i);case 17:return a=t.type,u=t.pendingProps,u=t.elementType===a?u:Mt(a,u),bo(e,t),t.tag=1,ot(a)?(e=!0,Co(t)):e=!1,gr(t,i),gd(t,a,u),tl(t,a,u,i),ol(null,t,a,!0,e,i);case 19:return _d(e,t,i);case 22:return kd(e,t,i)}throw Error(o(156,t.tag))};function rh(e,t){return Oc(e,t)}function Bv(e,t,i,a){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,i,a){return new Bv(e,t,i,a)}function Cl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zv(e){if(typeof e=="function")return Cl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===et)return 11;if(e===Oe)return 14}return 2}function Pn(e,t){var i=e.alternate;return i===null?(i=Et(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function es(e,t,i,a,u,d){var y=2;if(a=e,typeof e=="function")Cl(e)&&(y=1);else if(typeof e=="string")y=5;else e:switch(e){case ie:return bn(i.children,u,d,t);case X:y=8,u|=8;break;case he:return e=Et(12,i,t,u|2),e.elementType=he,e.lanes=d,e;case Be:return e=Et(13,i,t,u),e.elementType=Be,e.lanes=d,e;case be:return e=Et(19,i,t,u),e.elementType=be,e.lanes=d,e;case se:return ts(i,u,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ge:y=10;break e;case Ge:y=9;break e;case et:y=11;break e;case Oe:y=14;break e;case tt:y=16,a=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return t=Et(y,i,t,u),t.elementType=e,t.type=a,t.lanes=d,t}function bn(e,t,i,a){return e=Et(7,e,a,t),e.lanes=i,e}function ts(e,t,i,a){return e=Et(22,e,a,t),e.elementType=se,e.lanes=i,e.stateNode={isHidden:!1},e}function kl(e,t,i){return e=Et(6,e,null,t),e.lanes=i,e}function Rl(e,t,i){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uv(e,t,i,a,u){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ea(0),this.expirationTimes=ea(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ea(0),this.identifierPrefix=a,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function Al(e,t,i,a,u,d,y,w,S){return e=new Uv(e,t,i,w,S),t===1?(t=1,d===!0&&(t|=8)):t=0,d=Et(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:a,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ua(d),e}function $v(e,t,i){var a=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),jl.exports=Jv(),jl.exports}var yh;function t0(){if(yh)return ls;yh=1;var n=e0();return ls.createRoot=n.createRoot,ls.hydrateRoot=n.hydrateRoot,ls}var n0=t0();const r0=_r(n0);var Ru=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Qp=/^[\\/]{2}/;function i0(n,r){return r+n.replace(/\\/g,"/")}var vh="popstate";function xh(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function o0(n={}){function r(s,l){let c=l.state?.masked,{pathname:f,search:h,hash:p}=c||s.location;return su("",{pathname:f,search:h,hash:p},l.state&&l.state.usr||null,l.state&&l.state.key||"default",c?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function o(s,l){return typeof l=="string"?l:Fi(l)}return a0(r,o,null,n)}function Le(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function Ht(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function s0(){return Math.random().toString(36).substring(2,10)}function wh(n,r){return{usr:n.state,key:n.key,idx:r,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function su(n,r,o=null,s,l){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?jr(r):r,state:o,key:r&&r.key||s||s0(),mask:l}}function Fi({pathname:n="/",search:r="",hash:o=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function jr(n){let r={};if(n){let o=n.indexOf("#");o>=0&&(r.hash=n.substring(o),n=n.substring(0,o));let s=n.indexOf("?");s>=0&&(r.search=n.substring(s),n=n.substring(0,s)),n&&(r.pathname=n)}return r}function a0(n,r,o,s={}){let{window:l=document.defaultView,v5Compat:c=!1}=s,f=l.history,h="POP",p=null,m=g();m==null&&(m=0,f.replaceState({...f.state,idx:m},""));function g(){return(f.state||{idx:null}).idx}function v(){h="POP";let P=g(),_=P==null?null:P-m;m=P,p&&p({action:h,location:R.location,delta:_})}function x(P,_){h="PUSH";let j=xh(P)?P:su(R.location,P,_);m=g()+1;let V=wh(j,m),W=R.createHref(j.mask||j);try{f.pushState(V,"",W)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;l.location.assign(W)}c&&p&&p({action:h,location:R.location,delta:1})}function T(P,_){h="REPLACE";let j=xh(P)?P:su(R.location,P,_);m=g();let V=wh(j,m),W=R.createHref(j.mask||j);f.replaceState(V,"",W),c&&p&&p({action:h,location:R.location,delta:0})}function M(P){return l0(l,P)}let R={get action(){return h},get location(){return n(l,f)},listen(P){if(p)throw new Error("A history only accepts one active listener");return l.addEventListener(vh,v),p=P,()=>{l.removeEventListener(vh,v),p=null}},createHref(P){return r(l,P)},createURL:M,encodeLocation(P){let _=M(P);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:x,replace:T,go(P){return f.go(P)}};return R}function l0(n,r,o=!1){let s="http://localhost";n&&(s=n.location.origin!=="null"?n.location.origin:n.location.href),Le(s,"No window.location.(origin|href) available to create URL");let l=typeof r=="string"?r:Fi(r);return l=l.replace(/ $/,"%20"),!o&&Qp.test(l)&&(l=s+l),new URL(l,s)}function Xp(n,r,o="/"){return u0(n,r,o,!1)}function u0(n,r,o,s,l){let c=typeof r=="string"?jr(r):r,f=rn(c.pathname||"/",o);if(f==null)return null;let h=c0(n),p=null,m=S0(f);for(let g=0;p==null&&g{let g={relativePath:m===void 0?f.path||"":m,caseSensitive:f.caseSensitive===!0,childrenIndex:h,route:f};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(s)&&p)return;Le(g.relativePath.startsWith(s),`Absolute route path "${g.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(s.length)}let v=Vt([s,g.relativePath]),x=o.concat(g);f.children&&f.children.length>0&&(Le(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),qp(f.children,r,x,v,p)),!(f.path==null&&!f.index)&&r.push({path:v,score:v0(v,f.index),routesMeta:x.map((T,M)=>{let[R,P]=em(T.relativePath,T.caseSensitive,M===x.length-1);return{...T,matcher:R,compiledParams:P}})})};return n.forEach((f,h)=>{if(f.path===""||!f.path?.includes("?"))c(f,h);else for(let p of Zp(f.path))c(f,h,!0,p)}),r}function Zp(n){let r=n.split("/");if(r.length===0)return[];let[o,...s]=r,l=o.endsWith("?"),c=o.replace(/\?$/,"");if(s.length===0)return l?[c,""]:[c];let f=Zp(s.join("/")),h=[];return h.push(...f.map(p=>p===""?c:[c,p].join("/"))),l&&h.push(...f),h.map(p=>n.startsWith("/")&&p===""?"/":p)}function f0(n){n.sort((r,o)=>r.score!==o.score?o.score-r.score:x0(r.routesMeta.map(s=>s.childrenIndex),o.routesMeta.map(s=>s.childrenIndex)))}var d0=/^:[\w-]+$/,h0=3,p0=2,m0=1,g0=10,y0=-2,Sh=n=>n==="*";function v0(n,r){let o=n.split("/"),s=o.length;return o.some(Sh)&&(s+=y0),r&&(s+=p0),o.filter(l=>!Sh(l)).reduce((l,c)=>l+(d0.test(c)?h0:c===""?m0:g0),s)}function x0(n,r){return n.length===r.length&&n.slice(0,-1).every((s,l)=>s===r[l])?n[n.length-1]-r[r.length-1]:0}function w0(n,r,o=!1){let{routesMeta:s}=n,l={},c="/",f=[];for(let h=0;h{if(g==="*"){let M=h[x]||"";f=c.slice(0,c.length-M.length).replace(/(.)\/+$/,"$1")}const T=h[x];return v&&!T?m[g]=void 0:m[g]=(T||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:f,pattern:n}}function em(n,r=!1,o=!0){Ht(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],l="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,p,m,g)=>{if(s.push({paramName:h,isOptional:p!=null}),p){let v=g.charAt(m+f.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),l+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?l+="\\/*$":n!==""&&n!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,r?void 0:"i"),s]}function S0(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Ht(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),n}}function rn(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let o=r.endsWith("/")?r.length-1:r.length,s=n.charAt(o);return s&&s!=="/"?null:n.slice(o)||"/"}function T0(n,r="/"){let{pathname:o,search:s="",hash:l=""}=typeof n=="string"?jr(n):n,c;return o?(o=nm(o),o.startsWith("/")?c=Th(o.substring(1),"/"):c=Th(o,r)):c=r,{pathname:c,search:C0(s),hash:k0(l)}}function Th(n,r){let o=ws(r).split("/");return n.split("/").forEach(l=>{l===".."?o.length>1&&o.pop():l!=="."&&o.push(l)}),o.length>1?o.join("/"):"/"}function Fl(n,r,o,s){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function E0(n){return n.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function tm(n){let r=E0(n);return r.map((o,s)=>s===r.length-1?o.pathname:o.pathnameBase)}function Au(n,r,o,s=!1){let l;typeof n=="string"?l=jr(n):(l={...n},Le(!l.pathname||!l.pathname.includes("?"),Fl("?","pathname","search",l)),Le(!l.pathname||!l.pathname.includes("#"),Fl("#","pathname","hash",l)),Le(!l.search||!l.search.includes("#"),Fl("#","search","hash",l)));let c=n===""||l.pathname==="",f=c?"/":l.pathname,h;if(f==null)h=o;else{let v=r.length-1;if(!s&&f.startsWith("..")){let x=f.split("/");for(;x[0]==="..";)x.shift(),v-=1;l.pathname=x.join("/")}h=v>=0?r[v]:"/"}let p=T0(l,h),m=f&&f!=="/"&&f.endsWith("/"),g=(c||f===".")&&o.endsWith("/");return!p.pathname.endsWith("/")&&(m||g)&&(p.pathname+="/"),p}var nm=n=>n.replace(/[\\/]{2,}/g,"/"),Vt=n=>nm(n.join("/")),ws=n=>n.replace(/\/+$/,""),P0=n=>ws(n).replace(/^\/*/,"/"),C0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,k0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,R0=class{constructor(n,r,o,s=!1){this.status=n,this.statusText=r||"",this.internal=s,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function A0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function L0(n){let r=n.map(o=>o.route.path).filter(Boolean);return Vt(r)||"/"}var rm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function im(n,r){let o=n;if(typeof o!="string"||!Ru.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let s=o,l=!1;if(rm)try{let c=new URL(window.location.href),f=Qp.test(o)?new URL(i0(o,c.protocol)):new URL(o),h=rn(f.pathname,r);f.origin===c.origin&&h!=null?o=h+f.search+f.hash:l=!0}catch{Ht(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:l,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var om=["POST","PUT","PATCH","DELETE"];new Set(om);var M0=["GET",...om];new Set(M0);var D0=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function N0(n){try{return D0.includes(new URL(n).protocol)}catch{return!1}}var Or=C.createContext(null);Or.displayName="DataRouter";var Ds=C.createContext(null);Ds.displayName="DataRouterState";var sm=C.createContext(!1);function _0(){return C.useContext(sm)}var am=C.createContext({isTransitioning:!1});am.displayName="ViewTransition";var j0=C.createContext(new Map);j0.displayName="Fetchers";var O0=C.createContext(null);O0.displayName="Await";var kt=C.createContext(null);kt.displayName="Navigation";var Hi=C.createContext(null);Hi.displayName="Location";var sn=C.createContext({outlet:null,matches:[],isDataRoute:!1});sn.displayName="Route";var Lu=C.createContext(null);Lu.displayName="RouteError";var lm="REACT_ROUTER_ERROR",V0="REDIRECT",F0="ROUTE_ERROR_RESPONSE";function I0(n){if(n.startsWith(`${lm}:${V0}:{`))try{let r=JSON.parse(n.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function B0(n){if(n.startsWith(`${lm}:${F0}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new R0(r.status,r.statusText,r.data)}catch{}}function z0(n,{relative:r}={}){Le(Wi(),"useHref() may be used only in the context of a component.");let{basename:o,navigator:s}=C.useContext(kt),{hash:l,pathname:c,search:f}=Ki(n,{relative:r}),h=c;return o!=="/"&&(h=c==="/"?o:Vt([o,c])),s.createHref({pathname:h,search:f,hash:l})}function Wi(){return C.useContext(Hi)!=null}function Wt(){return Le(Wi(),"useLocation() may be used only in the context of a component."),C.useContext(Hi).location}var um="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function cm(n){C.useContext(kt).static||C.useLayoutEffect(n)}function U0(){let{isDataRoute:n}=C.useContext(sn);return n?e1():$0()}function $0(){Le(Wi(),"useNavigate() may be used only in the context of a component.");let n=C.useContext(Or),{basename:r,navigator:o}=C.useContext(kt),{matches:s}=C.useContext(sn),{pathname:l}=Wt(),c=JSON.stringify(tm(s)),f=C.useRef(!1);return cm(()=>{f.current=!0}),C.useCallback((p,m={})=>{if(Ht(f.current,um),!f.current)return;if(typeof p=="number"){o.go(p);return}let g=Au(p,JSON.parse(c),l,m.relative==="path");n==null&&r!=="/"&&(g.pathname=g.pathname==="/"?r:Vt([r,g.pathname])),(m.replace?o.replace:o.push)(g,m.state,m)},[r,o,c,l,n])}C.createContext(null);function Ki(n,{relative:r}={}){let{matches:o}=C.useContext(sn),{pathname:s}=Wt(),l=JSON.stringify(tm(o));return C.useMemo(()=>Au(n,JSON.parse(l),s,r==="path"),[n,l,s,r])}function b0(n,r){return fm(n,r)}function fm(n,r,o){Le(Wi(),"useRoutes() may be used only in the context of a component.");let{navigator:s}=C.useContext(kt),{matches:l}=C.useContext(sn),c=l[l.length-1],f=c?c.params:{},h=c?c.pathname:"/",p=c?c.pathnameBase:"/",m=c&&c.route;{let P=m&&m.path||"";hm(h,!m||P.endsWith("*")||P.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${h}" (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 g=Wt(),v;if(r){let P=typeof r=="string"?jr(r):r;Le(p==="/"||P.pathname?.startsWith(p),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${P.pathname}" was given in the \`location\` prop.`),v=P}else v=g;let x=v.pathname||"/",T=x;if(p!=="/"){let P=p.replace(/^\//,"").split("/");T="/"+x.replace(/^\//,"").split("/").slice(P.length).join("/")}let M=o&&o.state.matches.length?o.state.matches.map(P=>Object.assign(P,{route:o.manifest[P.route.id]||P.route})):Xp(n,{pathname:T});Ht(m||M!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Ht(M==null||M[M.length-1].route.element!==void 0||M[M.length-1].route.Component!==void 0||M[M.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let R=Y0(M&&M.map(P=>Object.assign({},P,{params:Object.assign({},f,P.params),pathname:Vt([p,s.encodeLocation?s.encodeLocation(P.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?p:Vt([p,s.encodeLocation?s.encodeLocation(P.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:P.pathnameBase])})),l,o);return r&&R?C.createElement(Hi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...v},navigationType:"POP"}},R):R}function H0(){let n=J0(),r=A0(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:s},c={padding:"2px 4px",backgroundColor:s},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=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:c},"ErrorBoundary")," or"," ",C.createElement("code",{style:c},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},r),o?C.createElement("pre",{style:l},o):null,f)}var W0=C.createElement(H0,null),dm=class extends C.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){this.props.onError?this.props.onError(n,r):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const o=B0(n.digest);o&&(n=o)}let r=n!==void 0?C.createElement(sn.Provider,{value:this.props.routeContext},C.createElement(Lu.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?C.createElement(K0,{error:n},r):r}};dm.contextType=sm;var Il=new WeakMap;function K0({children:n,error:r}){let{basename:o}=C.useContext(kt);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let s=I0(r.digest);if(s){let l=Il.get(r);if(l)throw l;let c=im(s.location,o),f=c.absoluteURL||c.to;if(N0(f))throw new Error("Invalid redirect location");if(rm&&!Il.get(r))if(c.isExternal||s.reloadDocument)window.location.href=f;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:s.replace}));throw Il.set(r,h),h}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f}`})}}return n}function G0({routeContext:n,match:r,children:o}){let s=C.useContext(Or);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),C.createElement(sn.Provider,{value:n},o)}function Y0(n,r=[],o){let s=o?.state;if(n==null){if(!s)return null;if(s.errors)n=s.matches;else if(r.length===0&&!s.initialized&&s.matches.length>0)n=s.matches;else return null}let l=n,c=s?.errors;if(c!=null){let g=l.findIndex(v=>v.route.id&&c?.[v.route.id]!==void 0);Le(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),l=l.slice(0,Math.min(l.length,g+1))}let f=!1,h=-1;if(o&&s){f=s.renderFallback;for(let g=0;g=0?l=l.slice(0,h+1):l=[l[0]];break}}}}let p=o?.onError,m=s&&p?(g,v)=>{p(g,{location:s.location,params:s.matches?.[0]?.params??{},pattern:L0(s.matches),errorInfo:v})}:void 0;return l.reduceRight((g,v,x)=>{let T,M=!1,R=null,P=null;s&&(T=c&&v.route.id?c[v.route.id]:void 0,R=v.route.errorElement||W0,f&&(h<0&&x===0?(hm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),M=!0,P=null):h===x&&(M=!0,P=v.route.hydrateFallbackElement||null)));let _=r.concat(l.slice(0,x+1)),j=()=>{let V;return T?V=R:M?V=P:v.route.Component?V=C.createElement(v.route.Component,null):v.route.element?V=v.route.element:V=g,C.createElement(G0,{match:v,routeContext:{outlet:g,matches:_,isDataRoute:s!=null},children:V})};return s&&(v.route.ErrorBoundary||v.route.errorElement||x===0)?C.createElement(dm,{location:s.location,revalidation:s.revalidation,component:R,error:T,children:j(),routeContext:{outlet:null,matches:_,isDataRoute:!0},onError:m}):j()},null)}function Mu(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Q0(n){let r=C.useContext(Or);return Le(r,Mu(n)),r}function X0(n){let r=C.useContext(Ds);return Le(r,Mu(n)),r}function q0(n){let r=C.useContext(sn);return Le(r,Mu(n)),r}function Du(n){let r=q0(n),o=r.matches[r.matches.length-1];return Le(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function Z0(){return Du("useRouteId")}function J0(){let n=C.useContext(Lu),r=X0("useRouteError"),o=Du("useRouteError");return n!==void 0?n:r.errors?.[o]}function e1(){let{router:n}=Q0("useNavigate"),r=Du("useNavigate"),o=C.useRef(!1);return cm(()=>{o.current=!0}),C.useCallback(async(l,c={})=>{Ht(o.current,um),o.current&&(typeof l=="number"?await n.navigate(l):await n.navigate(l,{fromRouteId:r,...c}))},[n,r])}var Eh={};function hm(n,r,o){!r&&!Eh[n]&&(Eh[n]=!0,Ht(!1,o))}C.memo(t1);function t1({routes:n,manifest:r,future:o,state:s,isStatic:l,onError:c}){return fm(n,void 0,{manifest:r,state:s,isStatic:l,onError:c})}function pm(n){Le(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function n1({basename:n="/",children:r=null,location:o,navigationType:s="POP",navigator:l,static:c=!1,useTransitions:f}){Le(!Wi(),"You cannot render a inside another . You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),p=C.useMemo(()=>({basename:h,navigator:l,static:c,useTransitions:f,future:{}}),[h,l,c,f]);typeof o=="string"&&(o=jr(o));let{pathname:m="/",search:g="",hash:v="",state:x=null,key:T="default",mask:M}=o,R=C.useMemo(()=>{let P=rn(m,h);return P==null?null:{location:{pathname:P,search:g,hash:v,state:x,key:T,mask:M},navigationType:s}},[h,m,g,v,x,T,s,M]);return Ht(R!=null,` is not able to match the URL "${m}${g}${v}" because it does not start with the basename, so the won't render anything.`),R==null?null:C.createElement(kt.Provider,{value:p},C.createElement(Hi.Provider,{children:r,value:R}))}function r1({children:n,location:r}){return b0(au(n),r)}function au(n,r=[]){let o=[];return C.Children.forEach(n,(s,l)=>{if(!C.isValidElement(s))return;let c=[...r,l];if(s.type===C.Fragment){o.push.apply(o,au(s.props.children,c));return}Le(s.type===pm,`[${typeof s.type=="string"?s.type:s.type.name}] is not a component. All component children of must be a or `),Le(!s.props.index||!s.props.children,"An index route cannot have child routes.");let f={id:s.props.id||c.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(f.children=au(s.props.children,c)),o.push(f)}),o}var ps="get",ms="application/x-www-form-urlencoded";function Ns(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function i1(n){return Ns(n)&&n.tagName.toLowerCase()==="button"}function o1(n){return Ns(n)&&n.tagName.toLowerCase()==="form"}function s1(n){return Ns(n)&&n.tagName.toLowerCase()==="input"}function a1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function l1(n,r){return n.button===0&&(!r||r==="_self")&&!a1(n)}var us=null;function u1(){if(us===null)try{new FormData(document.createElement("form"),0),us=!1}catch{us=!0}return us}var c1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bl(n){return n!=null&&!c1.has(n)?(Ht(!1,`"${n}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${ms}"`),null):n}function f1(n,r){let o,s,l,c,f;if(o1(n)){let h=n.getAttribute("action");s=h?rn(h,r):null,o=n.getAttribute("method")||ps,l=Bl(n.getAttribute("enctype"))||ms,c=new FormData(n)}else if(i1(n)||s1(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a