function Dd(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Wu={exports:{}},q={};var nc;function Od(){if(nc)return q;nc=1;var u=Symbol.for("react.element"),s=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),w=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),R=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),x=Symbol.iterator;function I(v){return v===null||typeof v!="object"?null:(v=x&&v[x]||v["@@iterator"],typeof v=="function"?v:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,O={};function _(v,L,Z){this.props=v,this.context=L,this.refs=O,this.updater=Z||Y}_.prototype.isReactComponent={},_.prototype.setState=function(v,L){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,L,"setState")},_.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function X(){}X.prototype=_.prototype;function G(v,L,Z){this.props=v,this.context=L,this.refs=O,this.updater=Z||Y}var J=G.prototype=new X;J.constructor=G,H(J,_.prototype),J.isPureReactComponent=!0;var le=Array.isArray,ie=Object.prototype.hasOwnProperty,de={current:null},ve={key:!0,ref:!0,__self:!0,__source:!0};function xe(v,L,Z){var b,te={},ne=null,ae=null;if(L!=null)for(b in L.ref!==void 0&&(ae=L.ref),L.key!==void 0&&(ne=""+L.key),L)ie.call(L,b)&&!ve.hasOwnProperty(b)&&(te[b]=L[b]);var oe=arguments.length-2;if(oe===1)te.children=Z;else if(1>>1,L=M[v];if(0>>1;vd(te,$))ned(ae,te)?(M[v]=ae,M[ne]=$,v=ne):(M[v]=te,M[b]=$,v=b);else if(ned(ae,$))M[v]=ae,M[ne]=$,v=ne;else break e}}return Q}function d(M,Q){var $=M.sortIndex-Q.sortIndex;return $!==0?$:M.id-Q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var m=performance;u.unstable_now=function(){return m.now()}}else{var w=Date,E=w.now();u.unstable_now=function(){return w.now()-E}}var C=[],R=[],z=1,x=null,I=3,Y=!1,H=!1,O=!1,_=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function J(M){for(var Q=a(R);Q!==null;){if(Q.callback===null)f(R);else if(Q.startTime<=M)f(R),Q.sortIndex=Q.expirationTime,s(C,Q);else break;Q=a(R)}}function le(M){if(O=!1,J(M),!H)if(a(C)!==null)H=!0,He(ie);else{var Q=a(R);Q!==null&&we(le,Q.startTime-M)}}function ie(M,Q){H=!1,O&&(O=!1,X(xe),xe=-1),Y=!0;var $=I;try{for(J(Q),x=a(C);x!==null&&(!(x.expirationTime>Q)||M&&!Rt());){var v=x.callback;if(typeof v=="function"){x.callback=null,I=x.priorityLevel;var L=v(x.expirationTime<=Q);Q=u.unstable_now(),typeof L=="function"?x.callback=L:x===a(C)&&f(C),J(Q)}else f(C);x=a(C)}if(x!==null)var Z=!0;else{var b=a(R);b!==null&&we(le,b.startTime-Q),Z=!1}return Z}finally{x=null,I=$,Y=!1}}var de=!1,ve=null,xe=-1,Ae=5,Ge=-1;function Rt(){return!(u.unstable_now()-GeM||125v?(M.sortIndex=$,s(R,M),a(C)===null&&M===a(R)&&(O?(X(xe),xe=-1):O=!0,we(le,$-v))):(M.sortIndex=L,s(C,M),H||Y||(H=!0,He(ie))),M},u.unstable_shouldYield=Rt,u.unstable_wrapCallback=function(M){var Q=I;return function(){var $=I;I=Q;try{return M.apply(this,arguments)}finally{I=$}}}})(Ku)),Ku}var oc;function Fd(){return oc||(oc=1,Qu.exports=Md()),Qu.exports}var uc;function Id(){if(uc)return Xe;uc=1;var u=mc(),s=Fd();function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C=Object.prototype.hasOwnProperty,R=/^[: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]*$/,z={},x={};function I(e){return C.call(x,e)?!0:C.call(z,e)?!1:R.test(e)?x[e]=!0:(z[e]=!0,!1)}function Y(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function H(e,t,n,r){if(t===null||typeof t>"u"||Y(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 O(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_[e]=new O(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_[t]=new O(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){_[e]=new O(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_[e]=new O(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){_[e]=new O(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){_[e]=new O(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){_[e]=new O(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){_[e]=new O(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){_[e]=new O(e,5,!1,e.toLowerCase(),null,!1,!1)});var X=/[\-:]([a-z])/g;function G(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(X,G);_[t]=new O(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(X,G);_[t]=new O(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(X,G);_[t]=new O(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){_[e]=new O(e,1,!1,e.toLowerCase(),null,!1,!1)}),_.xlinkHref=new O("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){_[e]=new O(e,1,!1,e.toLowerCase(),null,!0,!0)});function J(e,t,n,r){var l=_.hasOwnProperty(t)?_[t]:null;(l!==null?l.type!==0:r||!(2c||l[i]!==o[c]){var p=` `+l[i].replace(" at new "," at ");return e.displayName&&p.includes("")&&(p=p.replace("",e.displayName)),p}while(1<=i&&0<=c);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function te(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=b(e.type,!1),e;case 11:return e=b(e.type.render,!1),e;case 1:return e=b(e.type,!0),e;default:return""}}function ne(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 ve:return"Fragment";case de:return"Portal";case Ae:return"Profiler";case xe:return"StrictMode";case Oe:return"Suspense";case Be:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rt:return(e.displayName||"Context")+".Consumer";case Ge:return(e._context.displayName||"Context")+".Provider";case nt:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Re:return t=e.displayName||null,t!==null?t:ne(e.type)||"Memo";case He:t=e._payload,e=e._init;try{return ne(e(t))}catch{}}return null}function ae(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 ne(t);case 8:return t===xe?"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 oe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Je(e){var t=pe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zr(e){e._valueTracker||(e._valueTracker=Je(e))}function ai(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pe(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Dr(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 Gl(e,t){var n=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function si(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=oe(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ci(e,t){t=t.checked,t!=null&&J(e,"checked",t,!1)}function Jl(e,t){ci(e,t);var n=oe(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zl(e,t.type,oe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fi(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Zl(e,t,n){(t!=="number"||Dr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hn=Array.isArray;function hn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vn={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},Fc=["Webkit","ms","Moz","O"];Object.keys(Vn).forEach(function(e){Fc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vn[t]=Vn[e]})});function yi(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vn.hasOwnProperty(e)&&Vn[e]?(""+t).trim():t+"px"}function gi(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=yi(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Ic=$({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 eo(e,t){if(t){if(Ic[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function to(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 no=null;function ro(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lo=null,mn=null,vn=null;function wi(e){if(e=dr(e)){if(typeof lo!="function")throw Error(a(280));var t=e.stateNode;t&&(t=nl(t),lo(e.stateNode,e.type,t))}}function Si(e){mn?vn?vn.push(e):vn=[e]:mn=e}function ki(){if(mn){var e=mn,t=vn;if(vn=mn=null,wi(e),t)for(e=0;e>>=0,e===0?32:31-(Yc(e)/Xc|0)|0}var $r=64,jr=4194304;function Xn(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 Ar(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var c=i&~l;c!==0?r=Xn(c):(o&=i,o!==0&&(r=Xn(o)))}else i=n&~l,i!==0?r=Xn(i):o!==0&&(r=Xn(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Gn(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ct(t),e[t]=n}function qc(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0=rr),Gi=" ",Ji=!1;function Zi(e,t){switch(e){case"keyup":return _f.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qi(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wn=!1;function Nf(e,t){switch(e){case"compositionend":return qi(t);case"keypress":return t.which!==32?null:(Ji=!0,Gi);case"textInput":return e=t.data,e===Gi&&Ji?null:e;default:return null}}function Tf(e,t){if(wn)return e==="compositionend"||!Co&&Zi(e,t)?(e=Wi(),Qr=yo=jt=null,wn=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=oa(n)}}function ia(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ia(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function aa(){for(var e=window,t=Dr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dr(e.document)}return t}function Po(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 jf(e){var t=aa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ia(n.ownerDocument.documentElement,n)){if(r!==null&&Po(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=ua(n,o);var i=ua(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Sn=null,_o=null,ir=null,Lo=!1;function sa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lo||Sn==null||Sn!==Dr(r)||(r=Sn,"selectionStart"in r&&Po(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ir&&ur(ir,r)||(ir=r,r=br(_o,"onSelect"),0Rn||(e.current=Ao[Rn],Ao[Rn]=null,Rn--)}function se(e,t){Rn++,Ao[Rn]=e.current,e.current=t}var Wt={},Me=Ht(Wt),We=Ht(!1),nn=Wt;function Pn(e,t){var n=e.type.contextTypes;if(!n)return Wt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ve(e){return e=e.childContextTypes,e!=null}function rl(){fe(We),fe(Me)}function xa(e,t,n){if(Me.current!==Wt)throw Error(a(168));se(Me,t),se(We,n)}function Ra(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(a(108,ae(e)||"Unknown",l));return $({},n,r)}function ll(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wt,nn=Me.current,se(Me,e),se(We,We.current),!0}function Pa(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Ra(e,t,nn),r.__reactInternalMemoizedMergedChildContext=e,fe(We),fe(Me),se(Me,e)):fe(We),se(We,n)}var _t=null,ol=!1,Bo=!1;function _a(e){_t===null?_t=[e]:_t.push(e)}function Zf(e){ol=!0,_a(e)}function Vt(){if(!Bo&&_t!==null){Bo=!0;var e=0,t=ue;try{var n=_t;for(ue=1;e>=i,l-=i,Lt=1<<32-ct(t)+l|n<K?(Te=V,V=null):Te=V.sibling;var re=P(y,V,g[K],D);if(re===null){V===null&&(V=Te);break}e&&V&&re.alternate===null&&t(y,V),h=o(re,h,K),W===null?B=re:W.sibling=re,W=re,V=Te}if(K===g.length)return n(y,V),he&&ln(y,K),B;if(V===null){for(;KK?(Te=V,V=null):Te=V.sibling;var bt=P(y,V,re.value,D);if(bt===null){V===null&&(V=Te);break}e&&V&&bt.alternate===null&&t(y,V),h=o(bt,h,K),W===null?B=bt:W.sibling=bt,W=bt,V=Te}if(re.done)return n(y,V),he&&ln(y,K),B;if(V===null){for(;!re.done;K++,re=g.next())re=T(y,re.value,D),re!==null&&(h=o(re,h,K),W===null?B=re:W.sibling=re,W=re);return he&&ln(y,K),B}for(V=r(y,V);!re.done;K++,re=g.next())re=F(V,y,K,re.value,D),re!==null&&(e&&re.alternate!==null&&V.delete(re.key===null?K:re.key),h=o(re,h,K),W===null?B=re:W.sibling=re,W=re);return e&&V.forEach(function(zd){return t(y,zd)}),he&&ln(y,K),B}function Ee(y,h,g,D){if(typeof g=="object"&&g!==null&&g.type===ve&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case ie:e:{for(var B=g.key,W=h;W!==null;){if(W.key===B){if(B=g.type,B===ve){if(W.tag===7){n(y,W.sibling),h=l(W,g.props.children),h.return=y,y=h;break e}}else if(W.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===He&&Oa(B)===W.type){n(y,W.sibling),h=l(W,g.props),h.ref=pr(y,W,g),h.return=y,y=h;break e}n(y,W);break}else t(y,W);W=W.sibling}g.type===ve?(h=pn(g.props.children,y.mode,D,g.key),h.return=y,y=h):(D=Ol(g.type,g.key,g.props,null,y.mode,D),D.ref=pr(y,h,g),D.return=y,y=D)}return i(y);case de:e:{for(W=g.key;h!==null;){if(h.key===W)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(y,h.sibling),h=l(h,g.children||[]),h.return=y,y=h;break e}else{n(y,h);break}else t(y,h);h=h.sibling}h=$u(g,y.mode,D),h.return=y,y=h}return i(y);case He:return W=g._init,Ee(y,h,W(g._payload),D)}if(Hn(g))return j(y,h,g,D);if(Q(g))return A(y,h,g,D);sl(y,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(y,h.sibling),h=l(h,g),h.return=y,y=h):(n(y,h),h=Uu(g,y.mode,D),h.return=y,y=h),i(y)):n(y,h)}return Ee}var Tn=Ma(!0),Fa=Ma(!1),cl=Ht(null),fl=null,zn=null,Yo=null;function Xo(){Yo=zn=fl=null}function Go(e){var t=cl.current;fe(cl),e._currentValue=t}function Jo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Dn(e,t){fl=e,Yo=zn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Qe=!0),e.firstContext=null)}function ot(e){var t=e._currentValue;if(Yo!==e)if(e={context:e,memoizedValue:t,next:null},zn===null){if(fl===null)throw Error(a(308));zn=e,fl.dependencies={lanes:0,firstContext:e}}else zn=zn.next=e;return t}var on=null;function Zo(e){on===null?on=[e]:on.push(e)}function Ia(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Zo(t)):(n.next=l.next,l.next=n),t.interleaved=n,Tt(e,r)}function Tt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Qt=!1;function qo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ua(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 zt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ee&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Tt(e,n)}return l=r.interleaved,l===null?(t.next=t,Zo(r)):(t.next=l.next,l.next=t),r.interleaved=t,Tt(e,n)}function dl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fo(e,n)}}function $a(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function pl(e,t,n,r){var l=e.updateQueue;Qt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,c=l.shared.pending;if(c!==null){l.shared.pending=null;var p=c,S=p.next;p.next=null,i===null?o=S:i.next=S,i=p;var N=e.alternate;N!==null&&(N=N.updateQueue,c=N.lastBaseUpdate,c!==i&&(c===null?N.firstBaseUpdate=S:c.next=S,N.lastBaseUpdate=p))}if(o!==null){var T=l.baseState;i=0,N=S=p=null,c=o;do{var P=c.lane,F=c.eventTime;if((r&P)===P){N!==null&&(N=N.next={eventTime:F,lane:0,tag:c.tag,payload:c.payload,callback:c.callback,next:null});e:{var j=e,A=c;switch(P=t,F=n,A.tag){case 1:if(j=A.payload,typeof j=="function"){T=j.call(F,T,P);break e}T=j;break e;case 3:j.flags=j.flags&-65537|128;case 0:if(j=A.payload,P=typeof j=="function"?j.call(F,T,P):j,P==null)break e;T=$({},T,P);break e;case 2:Qt=!0}}c.callback!==null&&c.lane!==0&&(e.flags|=64,P=l.effects,P===null?l.effects=[c]:P.push(c))}else F={eventTime:F,lane:P,tag:c.tag,payload:c.payload,callback:c.callback,next:null},N===null?(S=N=F,p=T):N=N.next=F,i|=P;if(c=c.next,c===null){if(c=l.shared.pending,c===null)break;P=c,c=P.next,P.next=null,l.lastBaseUpdate=P,l.shared.pending=null}}while(!0);if(N===null&&(p=T),l.baseState=p,l.firstBaseUpdate=S,l.lastBaseUpdate=N,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);sn|=i,e.lanes=i,e.memoizedState=T}}function ja(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ru.transition;ru.transition={};try{e(!1),t()}finally{ue=n,ru.transition=r}}function ls(){return ut().memoizedState}function td(e,t,n){var r=Jt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},os(e))us(t,n);else if(n=Ia(e,t,n,r),n!==null){var l=je();vt(n,e,r,l),is(n,t,r)}}function nd(e,t,n){var r=Jt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(os(e))us(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,c=o(i,n);if(l.hasEagerState=!0,l.eagerState=c,ft(c,i)){var p=t.interleaved;p===null?(l.next=l,Zo(t)):(l.next=p.next,p.next=l),t.interleaved=l;return}}catch{}finally{}n=Ia(e,t,l,r),n!==null&&(l=je(),vt(n,e,r,l),is(n,t,r))}}function os(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function us(e,t){yr=vl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function is(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fo(e,n)}}var wl={readContext:ot,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},rd={readContext:ot,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:Ja,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yl(4194308,4,ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yl(4194308,4,e,t)},useInsertionEffect:function(e,t){return yl(4,2,e,t)},useMemo:function(e,t){var n=Et();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Et();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=td.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:Xa,useDebugValue:cu,useDeferredValue:function(e){return Et().memoizedState=e},useTransition:function(){var e=Xa(!1),t=e[0];return e=ed.bind(null,e[1]),Et().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,l=Et();if(he){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Ne===null)throw Error(a(349));(an&30)!==0||Wa(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ja(Qa.bind(null,r,o,e),[e]),r.flags|=2048,Sr(9,Va.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Et(),t=Ne.identifierPrefix;if(he){var n=Nt,r=Lt;n=(r&~(1<<32-ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[St]=t,e[fr]=r,_s(e,t,!1,!1),t.stateNode=e;e:{switch(i=to(n,r),n){case"dialog":ce("cancel",e),ce("close",e),l=r;break;case"iframe":case"object":case"embed":ce("load",e),l=r;break;case"video":case"audio":for(l=0;lUn&&(t.flags|=128,r=!0,kr(o,!1),t.lanes=4194304)}else{if(!r)if(e=hl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),kr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!he)return Ie(t),null}else 2*ke()-o.renderingStartTime>Un&&n!==1073741824&&(t.flags|=128,r=!0,kr(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ke(),t.sibling=null,n=ye.current,se(ye,r?n&1|2:n&1),t):(Ie(t),null);case 22:case 23:return Mu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(et&1073741824)!==0&&(Ie(t),t.subtreeFlags&6&&(t.flags|=8192)):Ie(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function fd(e,t){switch(Wo(t),t.tag){case 1:return Ve(t.type)&&rl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return On(),fe(We),fe(Me),nu(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return eu(t),null;case 13:if(fe(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Nn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ye),null;case 4:return On(),null;case 10:return Go(t.type._context),null;case 22:case 23:return Mu(),null;case 24:return null;default:return null}}var Cl=!1,Ue=!1,dd=typeof WeakSet=="function"?WeakSet:Set,U=null;function Fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Se(e,t,r)}else n.current=null}function Eu(e,t,n){try{n()}catch(r){Se(e,t,r)}}var Ts=!1;function pd(e,t){if(Mo=Wr,e=aa(),Po(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,c=-1,p=-1,S=0,N=0,T=e,P=null;t:for(;;){for(var F;T!==n||l!==0&&T.nodeType!==3||(c=i+l),T!==o||r!==0&&T.nodeType!==3||(p=i+r),T.nodeType===3&&(i+=T.nodeValue.length),(F=T.firstChild)!==null;)P=T,T=F;for(;;){if(T===e)break t;if(P===n&&++S===l&&(c=i),P===o&&++N===r&&(p=i),(F=T.nextSibling)!==null)break;T=P,P=T.parentNode}T=F}n=c===-1||p===-1?null:{start:c,end:p}}else n=null}n=n||{start:0,end:0}}else n=null;for(Fo={focusedElem:e,selectionRange:n},Wr=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var j=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(j!==null){var A=j.memoizedProps,Ee=j.memoizedState,y=t.stateNode,h=y.getSnapshotBeforeUpdate(t.elementType===t.type?A:pt(t.type,A),Ee);y.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(D){Se(t,t.return,D)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return j=Ts,Ts=!1,j}function Er(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Eu(t,n,o)}l=l.next}while(l!==r)}}function xl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Cu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function zs(e){var t=e.alternate;t!==null&&(e.alternate=null,zs(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[fr],delete t[jo],delete t[Gf],delete t[Jf])),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 Ds(e){return e.tag===5||e.tag===3||e.tag===4}function Os(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ds(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 xu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tl));else if(r!==4&&(e=e.child,e!==null))for(xu(e,t,n),e=e.sibling;e!==null;)xu(e,t,n),e=e.sibling}function Ru(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ru(e,t,n),e=e.sibling;e!==null;)Ru(e,t,n),e=e.sibling}var ze=null,ht=!1;function Yt(e,t,n){for(n=n.child;n!==null;)Ms(e,t,n),n=n.sibling}function Ms(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(Ur,n)}catch{}switch(n.tag){case 5:Ue||Fn(n,t);case 6:var r=ze,l=ht;ze=null,Yt(e,t,n),ze=r,ht=l,ze!==null&&(ht?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(ht?(e=ze,n=n.stateNode,e.nodeType===8?$o(e.parentNode,n):e.nodeType===1&&$o(e,n),er(e)):$o(ze,n.stateNode));break;case 4:r=ze,l=ht,ze=n.stateNode.containerInfo,ht=!0,Yt(e,t,n),ze=r,ht=l;break;case 0:case 11:case 14:case 15:if(!Ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&((o&2)!==0||(o&4)!==0)&&Eu(n,t,i),l=l.next}while(l!==r)}Yt(e,t,n);break;case 1:if(!Ue&&(Fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){Se(n,t,c)}Yt(e,t,n);break;case 21:Yt(e,t,n);break;case 22:n.mode&1?(Ue=(r=Ue)||n.memoizedState!==null,Yt(e,t,n),Ue=r):Yt(e,t,n);break;default:Yt(e,t,n)}}function Fs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new dd),t.forEach(function(r){var l=Ed.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*md(r/1960))-r,10e?16:e,Gt===null)var r=!1;else{if(e=Gt,Gt=null,Nl=0,(ee&6)!==0)throw Error(a(331));var l=ee;for(ee|=4,U=e.current;U!==null;){var o=U,i=o.child;if((U.flags&16)!==0){var c=o.deletions;if(c!==null){for(var p=0;pke()-Lu?fn(e,0):_u|=n),Ye(e,t)}function Xs(e,t){t===0&&((e.mode&1)===0?t=1:(t=jr,jr<<=1,(jr&130023424)===0&&(jr=4194304)));var n=je();e=Tt(e,t),e!==null&&(Gn(e,t,n),Ye(e,n))}function kd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xs(e,n)}function Ed(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}r!==null&&r.delete(t),Xs(e,n)}var Gs;Gs=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||We.current)Qe=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Qe=!1,sd(e,t,n);Qe=(e.flags&131072)!==0}else Qe=!1,he&&(t.flags&1048576)!==0&&La(t,il,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;El(e,t),e=t.pendingProps;var l=Pn(t,Me.current);Dn(t,n),l=ou(null,t,r,e,l,n);var o=uu();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ve(r)?(o=!0,ll(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,qo(t),l.updater=Sl,t.stateNode=l,l._reactInternals=t,du(t,r,e,n),t=vu(null,t,r,!0,o,n)):(t.tag=0,he&&o&&Ho(t),$e(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(El(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=xd(r),e=pt(r,e),l){case 0:t=mu(null,t,r,e,n);break e;case 1:t=ks(null,t,r,e,n);break e;case 11:t=vs(null,t,r,e,n);break e;case 14:t=ys(null,t,r,pt(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:pt(r,l),mu(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:pt(r,l),ks(e,t,r,l,n);case 3:e:{if(Es(t),e===null)throw Error(a(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Ua(e,t),pl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Mn(Error(a(423)),t),t=Cs(e,t,r,n,l);break e}else if(r!==l){l=Mn(Error(a(424)),t),t=Cs(e,t,r,n,l);break e}else for(be=Bt(t.stateNode.containerInfo.firstChild),qe=t,he=!0,dt=null,n=Fa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nn(),r===l){t=Dt(e,t,n);break e}$e(e,t,r,n)}t=t.child}return t;case 5:return Aa(t),e===null&&Qo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Io(r,l)?i=null:o!==null&&Io(r,o)&&(t.flags|=32),Ss(e,t),$e(e,t,i,n),t.child;case 6:return e===null&&Qo(t),null;case 13:return xs(e,t,n);case 4:return bo(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Tn(t,null,r,n):$e(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:pt(r,l),vs(e,t,r,l,n);case 7:return $e(e,t,t.pendingProps,n),t.child;case 8:return $e(e,t,t.pendingProps.children,n),t.child;case 12:return $e(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,se(cl,r._currentValue),r._currentValue=i,o!==null)if(ft(o.value,i)){if(o.children===l.children&&!We.current){t=Dt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){i=o.child;for(var p=c.firstContext;p!==null;){if(p.context===r){if(o.tag===1){p=zt(-1,n&-n),p.tag=2;var S=o.updateQueue;if(S!==null){S=S.shared;var N=S.pending;N===null?p.next=p:(p.next=N.next,N.next=p),S.pending=p}}o.lanes|=n,p=o.alternate,p!==null&&(p.lanes|=n),Jo(o.return,n,t),c.lanes|=n;break}p=p.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(a(341));i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Jo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}$e(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Dn(t,n),l=ot(l),r=r(l),t.flags|=1,$e(e,t,r,n),t.child;case 14:return r=t.type,l=pt(r,t.pendingProps),l=pt(r.type,l),ys(e,t,r,l,n);case 15:return gs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:pt(r,l),El(e,t),t.tag=1,Ve(r)?(e=!0,ll(t)):e=!1,Dn(t,n),ss(t,r,l),du(t,r,l,n),vu(null,t,r,!0,e,n);case 19:return Ps(e,t,n);case 22:return ws(e,t,n)}throw Error(a(156,t.tag))};function Js(e,t){return Ni(e,t)}function Cd(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function at(e,t,n,r){return new Cd(e,t,n,r)}function Iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xd(e){if(typeof e=="function")return Iu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nt)return 11;if(e===Re)return 14}return 2}function qt(e,t){var n=e.alternate;return n===null?(n=at(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ol(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Iu(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ve:return pn(n.children,l,o,t);case xe:i=8,l|=8;break;case Ae:return e=at(12,n,t,l|2),e.elementType=Ae,e.lanes=o,e;case Oe:return e=at(13,n,t,l),e.elementType=Oe,e.lanes=o,e;case Be:return e=at(19,n,t,l),e.elementType=Be,e.lanes=o,e;case we:return Ml(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ge:i=10;break e;case Rt:i=9;break e;case nt:i=11;break e;case Re:i=14;break e;case He:i=16,r=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=at(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function pn(e,t,n,r){return e=at(7,e,r,t),e.lanes=n,e}function Ml(e,t,n,r){return e=at(22,e,r,t),e.elementType=we,e.lanes=n,e.stateNode={isHidden:!1},e}function Uu(e,t,n){return e=at(6,e,null,t),e.lanes=n,e}function $u(e,t,n){return t=at(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rd(e,t,n,r,l){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=co(0),this.expirationTimes=co(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=co(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ju(e,t,n,r,l,o,i,c,p){return e=new Rd(e,t,n,c,p),t===1?(t=1,o===!0&&(t|=8)):t=0,o=at(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qo(o),e}function Pd(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(s){console.error(s)}}return u(),Vu.exports=Id(),Vu.exports}var ac="popstate";function sc(u){return typeof u=="object"&&u!=null&&"pathname"in u&&"search"in u&&"hash"in u&&"state"in u&&"key"in u}function $d(u={}){function s(f,d){let m=d.state?.masked,{pathname:w,search:E,hash:C}=m||f.location;return Ju("",{pathname:w,search:E,hash:C},d.state&&d.state.usr||null,d.state&&d.state.key||"default",m?{pathname:f.location.pathname,search:f.location.search,hash:f.location.hash}:void 0)}function a(f,d){return typeof d=="string"?d:Lr(d)}return Ad(s,a,null,u)}function me(u,s){if(u===!1||u===null||typeof u>"u")throw new Error(s)}function st(u,s){if(!u){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function jd(){return Math.random().toString(36).substring(2,10)}function cc(u,s){return{usr:u.state,key:u.key,idx:s,masked:u.mask?{pathname:u.pathname,search:u.search,hash:u.hash}:void 0}}function Ju(u,s,a=null,f,d){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof s=="string"?jn(s):s,state:a,key:s&&s.key||f||jd(),mask:d}}function Lr({pathname:u="/",search:s="",hash:a=""}){return s&&s!=="?"&&(u+=s.charAt(0)==="?"?s:"?"+s),a&&a!=="#"&&(u+=a.charAt(0)==="#"?a:"#"+a),u}function jn(u){let s={};if(u){let a=u.indexOf("#");a>=0&&(s.hash=u.substring(a),u=u.substring(0,a));let f=u.indexOf("?");f>=0&&(s.search=u.substring(f),u=u.substring(0,f)),u&&(s.pathname=u)}return s}function Ad(u,s,a,f={}){let{window:d=document.defaultView,v5Compat:m=!1}=f,w=d.history,E="POP",C=null,R=z();R==null&&(R=0,w.replaceState({...w.state,idx:R},""));function z(){return(w.state||{idx:null}).idx}function x(){E="POP";let _=z(),X=_==null?null:_-R;R=_,C&&C({action:E,location:O.location,delta:X})}function I(_,X){E="PUSH";let G=sc(_)?_:Ju(O.location,_,X);R=z()+1;let J=cc(G,R),le=O.createHref(G.mask||G);try{w.pushState(J,"",le)}catch(ie){if(ie instanceof DOMException&&ie.name==="DataCloneError")throw ie;d.location.assign(le)}m&&C&&C({action:E,location:O.location,delta:1})}function Y(_,X){E="REPLACE";let G=sc(_)?_:Ju(O.location,_,X);R=z();let J=cc(G,R),le=O.createHref(G.mask||G);w.replaceState(J,"",le),m&&C&&C({action:E,location:O.location,delta:0})}function H(_){return Bd(_)}let O={get action(){return E},get location(){return u(d,w)},listen(_){if(C)throw new Error("A history only accepts one active listener");return d.addEventListener(ac,x),C=_,()=>{d.removeEventListener(ac,x),C=null}},createHref(_){return s(d,_)},createURL:H,encodeLocation(_){let X=H(_);return{pathname:X.pathname,search:X.search,hash:X.hash}},push:I,replace:Y,go(_){return w.go(_)}};return O}function Bd(u,s=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),me(a,"No window.location.(origin|href) available to create URL");let f=typeof u=="string"?u:Lr(u);return f=f.replace(/ $/,"%20"),!s&&f.startsWith("//")&&(f=a+f),new URL(f,a)}function vc(u,s,a="/"){return Hd(u,s,a,!1)}function Hd(u,s,a,f,d){let m=typeof s=="string"?jn(s):s,w=Mt(m.pathname||"/",a);if(w==null)return null;let E=Wd(u),C=null,R=tp(w);for(let z=0;C==null&&z{let z={relativePath:R===void 0?w.path||"":R,caseSensitive:w.caseSensitive===!0,childrenIndex:E,route:w};if(z.relativePath.startsWith("/")){if(!z.relativePath.startsWith(f)&&C)return;me(z.relativePath.startsWith(f),`Absolute route path "${z.relativePath}" nested under path "${f}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),z.relativePath=z.relativePath.slice(f.length)}let x=yt([f,z.relativePath]),I=a.concat(z);w.children&&w.children.length>0&&(me(w.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),yc(w.children,s,I,x,C)),!(w.path==null&&!w.index)&&s.push({path:x,score:Zd(x,w.index),routesMeta:I})};return u.forEach((w,E)=>{if(w.path===""||!w.path?.includes("?"))m(w,E);else for(let C of gc(w.path))m(w,E,!0,C)}),s}function gc(u){let s=u.split("/");if(s.length===0)return[];let[a,...f]=s,d=a.endsWith("?"),m=a.replace(/\?$/,"");if(f.length===0)return d?[m,""]:[m];let w=gc(f.join("/")),E=[];return E.push(...w.map(C=>C===""?m:[m,C].join("/"))),d&&E.push(...w),E.map(C=>u.startsWith("/")&&C===""?"/":C)}function Vd(u){u.sort((s,a)=>s.score!==a.score?a.score-s.score:qd(s.routesMeta.map(f=>f.childrenIndex),a.routesMeta.map(f=>f.childrenIndex)))}var Qd=/^:[\w-]+$/,Kd=3,Yd=2,Xd=1,Gd=10,Jd=-2,fc=u=>u==="*";function Zd(u,s){let a=u.split("/"),f=a.length;return a.some(fc)&&(f+=Jd),s&&(f+=Yd),a.filter(d=>!fc(d)).reduce((d,m)=>d+(Qd.test(m)?Kd:m===""?Xd:Gd),f)}function qd(u,s){return u.length===s.length&&u.slice(0,-1).every((f,d)=>f===s[d])?u[u.length-1]-s[s.length-1]:0}function bd(u,s,a=!1){let{routesMeta:f}=u,d={},m="/",w=[];for(let E=0;E{if(z==="*"){let H=E[I]||"";w=m.slice(0,m.length-H.length).replace(/(.)\/+$/,"$1")}const Y=E[I];return x&&!Y?R[z]=void 0:R[z]=(Y||"").replace(/%2F/g,"/"),R},{}),pathname:m,pathnameBase:w,pattern:u}}function ep(u,s=!1,a=!0){st(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let f=[],d="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(w,E,C,R,z)=>{if(f.push({paramName:E,isOptional:C!=null}),C){let x=z.charAt(R+w.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(f.push({paramName:"*"}),d+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?d+="\\/*$":u!==""&&u!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,s?void 0:"i"),f]}function tp(u){try{return u.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return st(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),u}}function Mt(u,s){if(s==="/")return u;if(!u.toLowerCase().startsWith(s.toLowerCase()))return null;let a=s.endsWith("/")?s.length-1:s.length,f=u.charAt(a);return f&&f!=="/"?null:u.slice(a)||"/"}var np=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function rp(u,s="/"){let{pathname:a,search:f="",hash:d=""}=typeof u=="string"?jn(u):u,m;return a?(a=wc(a),a.startsWith("/")?m=dc(a.substring(1),"/"):m=dc(a,s)):m=s,{pathname:m,search:up(f),hash:ip(d)}}function dc(u,s){let a=Ql(s).split("/");return u.split("/").forEach(d=>{d===".."?a.length>1&&a.pop():d!=="."&&a.push(d)}),a.length>1?a.join("/"):"/"}function Yu(u,s,a,f){return`Cannot include a '${u}' character in a manually specified \`to.${s}\` field [${JSON.stringify(f)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function lp(u){return u.filter((s,a)=>a===0||s.route.path&&s.route.path.length>0)}function bu(u){let s=lp(u);return s.map((a,f)=>f===s.length-1?a.pathname:a.pathnameBase)}function Kl(u,s,a,f=!1){let d;typeof u=="string"?d=jn(u):(d={...u},me(!d.pathname||!d.pathname.includes("?"),Yu("?","pathname","search",d)),me(!d.pathname||!d.pathname.includes("#"),Yu("#","pathname","hash",d)),me(!d.search||!d.search.includes("#"),Yu("#","search","hash",d)));let m=u===""||d.pathname==="",w=m?"/":d.pathname,E;if(w==null)E=a;else{let x=s.length-1;if(!f&&w.startsWith("..")){let I=w.split("/");for(;I[0]==="..";)I.shift(),x-=1;d.pathname=I.join("/")}E=x>=0?s[x]:"/"}let C=rp(d,E),R=w&&w!=="/"&&w.endsWith("/"),z=(m||w===".")&&a.endsWith("/");return!C.pathname.endsWith("/")&&(R||z)&&(C.pathname+="/"),C}var wc=u=>u.replace(/\/\/+/g,"/"),yt=u=>wc(u.join("/")),Ql=u=>u.replace(/\/+$/,""),op=u=>Ql(u).replace(/^\/*/,"/"),up=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,ip=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,ap=class{constructor(u,s,a,f=!1){this.status=u,this.statusText=s||"",this.internal=f,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function sp(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function cp(u){let s=u.map(a=>a.route.path).filter(Boolean);return yt(s)||"/"}var Sc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function kc(u,s){let a=u;if(typeof a!="string"||!np.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let f=a,d=!1;if(Sc)try{let m=new URL(window.location.href),w=a.startsWith("//")?new URL(m.protocol+a):new URL(a),E=Mt(w.pathname,s);w.origin===m.origin&&E!=null?a=E+w.search+w.hash:d=!0}catch{st(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:f,isExternal:d,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ec=["POST","PUT","PATCH","DELETE"];new Set(Ec);var fp=["GET",...Ec];new Set(fp);var An=k.createContext(null);An.displayName="DataRouter";var Yl=k.createContext(null);Yl.displayName="DataRouterState";var Cc=k.createContext(!1);function dp(){return k.useContext(Cc)}var xc=k.createContext({isTransitioning:!1});xc.displayName="ViewTransition";var pp=k.createContext(new Map);pp.displayName="Fetchers";var hp=k.createContext(null);hp.displayName="Await";var tt=k.createContext(null);tt.displayName="Navigation";var Nr=k.createContext(null);Nr.displayName="Location";var xt=k.createContext({outlet:null,matches:[],isDataRoute:!1});xt.displayName="Route";var ei=k.createContext(null);ei.displayName="RouteError";var Rc="REACT_ROUTER_ERROR",mp="REDIRECT",vp="ROUTE_ERROR_RESPONSE";function yp(u){if(u.startsWith(`${Rc}:${mp}:{`))try{let s=JSON.parse(u.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function gp(u){if(u.startsWith(`${Rc}:${vp}:{`))try{let s=JSON.parse(u.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new ap(s.status,s.statusText,s.data)}catch{}}function wp(u,{relative:s}={}){me(Bn(),"useHref() may be used only in the context of a component.");let{basename:a,navigator:f}=k.useContext(tt),{hash:d,pathname:m,search:w}=Tr(u,{relative:s}),E=m;return a!=="/"&&(E=m==="/"?a:yt([a,m])),f.createHref({pathname:E,search:w,hash:d})}function Bn(){return k.useContext(Nr)!=null}function gt(){return me(Bn(),"useLocation() may be used only in the context of a component."),k.useContext(Nr).location}var Pc="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _c(u){k.useContext(tt).static||k.useLayoutEffect(u)}function ti(){let{isDataRoute:u}=k.useContext(xt);return u?Dp():Sp()}function Sp(){me(Bn(),"useNavigate() may be used only in the context of a component.");let u=k.useContext(An),{basename:s,navigator:a}=k.useContext(tt),{matches:f}=k.useContext(xt),{pathname:d}=gt(),m=JSON.stringify(bu(f)),w=k.useRef(!1);return _c(()=>{w.current=!0}),k.useCallback((C,R={})=>{if(st(w.current,Pc),!w.current)return;if(typeof C=="number"){a.go(C);return}let z=Kl(C,JSON.parse(m),d,R.relative==="path");u==null&&s!=="/"&&(z.pathname=z.pathname==="/"?s:yt([s,z.pathname])),(R.replace?a.replace:a.push)(z,R.state,R)},[s,a,m,d,u])}k.createContext(null);function Tr(u,{relative:s}={}){let{matches:a}=k.useContext(xt),{pathname:f}=gt(),d=JSON.stringify(bu(a));return k.useMemo(()=>Kl(u,JSON.parse(d),f,s==="path"),[u,d,f,s])}function kp(u,s){return Lc(u,s)}function Lc(u,s,a){me(Bn(),"useRoutes() may be used only in the context of a component.");let{navigator:f}=k.useContext(tt),{matches:d}=k.useContext(xt),m=d[d.length-1],w=m?m.params:{},E=m?m.pathname:"/",C=m?m.pathnameBase:"/",R=m&&m.route;{let _=R&&R.path||"";Tc(E,!R||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${E}" (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 z=gt(),x;if(s){let _=typeof s=="string"?jn(s):s;me(C==="/"||_.pathname?.startsWith(C),`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 "${C}" but pathname "${_.pathname}" was given in the \`location\` prop.`),x=_}else x=z;let I=x.pathname||"/",Y=I;if(C!=="/"){let _=C.replace(/^\//,"").split("/");Y="/"+I.replace(/^\//,"").split("/").slice(_.length).join("/")}let H=a&&a.state.matches.length?a.state.matches.map(_=>Object.assign(_,{route:a.manifest[_.route.id]||_.route})):vc(u,{pathname:Y});st(R||H!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),st(H==null||H[H.length-1].route.element!==void 0||H[H.length-1].route.Component!==void 0||H[H.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let O=Pp(H&&H.map(_=>Object.assign({},_,{params:Object.assign({},w,_.params),pathname:yt([C,f.encodeLocation?f.encodeLocation(_.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?C:yt([C,f.encodeLocation?f.encodeLocation(_.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),d,a);return s&&O?k.createElement(Nr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...x},navigationType:"POP"}},O):O}function Ep(){let u=zp(),s=sp(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),a=u instanceof Error?u.stack:null,f="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:f},m={padding:"2px 4px",backgroundColor:f},w=null;return console.error("Error handled by React Router default ErrorBoundary:",u),w=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:m},"ErrorBoundary")," or"," ",k.createElement("code",{style:m},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},s),a?k.createElement("pre",{style:d},a):null,w)}var Cp=k.createElement(Ep,null),Nc=class extends k.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,s){return s.location!==u.location||s.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:s.error,location:s.location,revalidation:u.revalidation||s.revalidation}}componentDidCatch(u,s){this.props.onError?this.props.onError(u,s):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const a=gp(u.digest);a&&(u=a)}let s=u!==void 0?k.createElement(xt.Provider,{value:this.props.routeContext},k.createElement(ei.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?k.createElement(xp,{error:u},s):s}};Nc.contextType=Cc;var Xu=new WeakMap;function xp({children:u,error:s}){let{basename:a}=k.useContext(tt);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let f=yp(s.digest);if(f){let d=Xu.get(s);if(d)throw d;let m=kc(f.location,a);if(Sc&&!Xu.get(s))if(m.isExternal||f.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const w=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:f.replace}));throw Xu.set(s,w),w}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return u}function Rp({routeContext:u,match:s,children:a}){let f=k.useContext(An);return f&&f.static&&f.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(f.staticContext._deepestRenderedBoundaryId=s.route.id),k.createElement(xt.Provider,{value:u},a)}function Pp(u,s=[],a){let f=a?.state;if(u==null){if(!f)return null;if(f.errors)u=f.matches;else if(s.length===0&&!f.initialized&&f.matches.length>0)u=f.matches;else return null}let d=u,m=f?.errors;if(m!=null){let z=d.findIndex(x=>x.route.id&&m?.[x.route.id]!==void 0);me(z>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,z+1))}let w=!1,E=-1;if(a&&f){w=f.renderFallback;for(let z=0;z=0?d=d.slice(0,E+1):d=[d[0]];break}}}}let C=a?.onError,R=f&&C?(z,x)=>{C(z,{location:f.location,params:f.matches?.[0]?.params??{},pattern:cp(f.matches),errorInfo:x})}:void 0;return d.reduceRight((z,x,I)=>{let Y,H=!1,O=null,_=null;f&&(Y=m&&x.route.id?m[x.route.id]:void 0,O=x.route.errorElement||Cp,w&&(E<0&&I===0?(Tc("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,_=null):E===I&&(H=!0,_=x.route.hydrateFallbackElement||null)));let X=s.concat(d.slice(0,I+1)),G=()=>{let J;return Y?J=O:H?J=_:x.route.Component?J=k.createElement(x.route.Component,null):x.route.element?J=x.route.element:J=z,k.createElement(Rp,{match:x,routeContext:{outlet:z,matches:X,isDataRoute:f!=null},children:J})};return f&&(x.route.ErrorBoundary||x.route.errorElement||I===0)?k.createElement(Nc,{location:f.location,revalidation:f.revalidation,component:O,error:Y,children:G(),routeContext:{outlet:null,matches:X,isDataRoute:!0},onError:R}):G()},null)}function ni(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _p(u){let s=k.useContext(An);return me(s,ni(u)),s}function Lp(u){let s=k.useContext(Yl);return me(s,ni(u)),s}function Np(u){let s=k.useContext(xt);return me(s,ni(u)),s}function ri(u){let s=Np(u),a=s.matches[s.matches.length-1];return me(a.route.id,`${u} can only be used on routes that contain a unique "id"`),a.route.id}function Tp(){return ri("useRouteId")}function zp(){let u=k.useContext(ei),s=Lp("useRouteError"),a=ri("useRouteError");return u!==void 0?u:s.errors?.[a]}function Dp(){let{router:u}=_p("useNavigate"),s=ri("useNavigate"),a=k.useRef(!1);return _c(()=>{a.current=!0}),k.useCallback(async(d,m={})=>{st(a.current,Pc),a.current&&(typeof d=="number"?await u.navigate(d):await u.navigate(d,{fromRouteId:s,...m}))},[u,s])}var pc={};function Tc(u,s,a){!s&&!pc[u]&&(pc[u]=!0,st(!1,a))}k.memo(Op);function Op({routes:u,manifest:s,future:a,state:f,isStatic:d,onError:m}){return Lc(u,void 0,{manifest:s,state:f,isStatic:d,onError:m})}function vh({to:u,replace:s,state:a,relative:f}){me(Bn()," may be used only in the context of a component.");let{static:d}=k.useContext(tt);st(!d," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:m}=k.useContext(xt),{pathname:w}=gt(),E=ti(),C=Kl(u,bu(m),w,f==="path"),R=JSON.stringify(C);return k.useEffect(()=>{E(JSON.parse(R),{replace:s,state:a,relative:f})},[E,R,f,s,a]),null}function Mp(u){me(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Fp({basename:u="/",children:s=null,location:a,navigationType:f="POP",navigator:d,static:m=!1,useTransitions:w}){me(!Bn(),"You cannot render a inside another . You should never have more than one in your app.");let E=u.replace(/^\/*/,"/"),C=k.useMemo(()=>({basename:E,navigator:d,static:m,useTransitions:w,future:{}}),[E,d,m,w]);typeof a=="string"&&(a=jn(a));let{pathname:R="/",search:z="",hash:x="",state:I=null,key:Y="default",mask:H}=a,O=k.useMemo(()=>{let _=Mt(R,E);return _==null?null:{location:{pathname:_,search:z,hash:x,state:I,key:Y,mask:H},navigationType:f}},[E,R,z,x,I,Y,f,H]);return st(O!=null,` is not able to match the URL "${R}${z}${x}" because it does not start with the basename, so the won't render anything.`),O==null?null:k.createElement(tt.Provider,{value:C},k.createElement(Nr.Provider,{children:s,value:O}))}function yh({children:u,location:s}){return kp(Zu(u),s)}function Zu(u,s=[]){let a=[];return k.Children.forEach(u,(f,d)=>{if(!k.isValidElement(f))return;let m=[...s,d];if(f.type===k.Fragment){a.push.apply(a,Zu(f.props.children,m));return}me(f.type===Mp,`[${typeof f.type=="string"?f.type:f.type.name}] is not a component. All component children of must be a or `),me(!f.props.index||!f.props.children,"An index route cannot have child routes.");let w={id:f.props.id||m.join("-"),caseSensitive:f.props.caseSensitive,element:f.props.element,Component:f.props.Component,index:f.props.index,path:f.props.path,middleware:f.props.middleware,loader:f.props.loader,action:f.props.action,hydrateFallbackElement:f.props.hydrateFallbackElement,HydrateFallback:f.props.HydrateFallback,errorElement:f.props.errorElement,ErrorBoundary:f.props.ErrorBoundary,hasErrorBoundary:f.props.hasErrorBoundary===!0||f.props.ErrorBoundary!=null||f.props.errorElement!=null,shouldRevalidate:f.props.shouldRevalidate,handle:f.props.handle,lazy:f.props.lazy};f.props.children&&(w.children=Zu(f.props.children,m)),a.push(w)}),a}var Hl="get",Wl="application/x-www-form-urlencoded";function Xl(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function Ip(u){return Xl(u)&&u.tagName.toLowerCase()==="button"}function Up(u){return Xl(u)&&u.tagName.toLowerCase()==="form"}function $p(u){return Xl(u)&&u.tagName.toLowerCase()==="input"}function jp(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function Ap(u,s){return u.button===0&&(!s||s==="_self")&&!jp(u)}function qu(u=""){return new URLSearchParams(typeof u=="string"||Array.isArray(u)||u instanceof URLSearchParams?u:Object.keys(u).reduce((s,a)=>{let f=u[a];return s.concat(Array.isArray(f)?f.map(d=>[a,d]):[[a,f]])},[]))}function Bp(u,s){let a=qu(u);return s&&s.forEach((f,d)=>{a.has(d)||s.getAll(d).forEach(m=>{a.append(d,m)})}),a}var Bl=null;function Hp(){if(Bl===null)try{new FormData(document.createElement("form"),0),Bl=!1}catch{Bl=!0}return Bl}var Wp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Gu(u){return u!=null&&!Wp.has(u)?(st(!1,`"${u}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Wl}"`),null):u}function Vp(u,s){let a,f,d,m,w;if(Up(u)){let E=u.getAttribute("action");f=E?Mt(E,s):null,a=u.getAttribute("method")||Hl,d=Gu(u.getAttribute("enctype"))||Wl,m=new FormData(u)}else if(Ip(u)||$p(u)&&(u.type==="submit"||u.type==="image")){let E=u.form;if(E==null)throw new Error('Cannot submit a