var _f=r=>{throw TypeError(r)};var Aa=(r,l,s)=>l.has(r)||_f("Cannot "+s);var g=(r,l,s)=>(Aa(r,l,"read from private field"),s?s.call(r):l.get(r)),X=(r,l,s)=>l.has(r)?_f("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(r):l.set(r,s),W=(r,l,s,u)=>(Aa(r,l,"write to private field"),u?u.call(r,s):l.set(r,s),s),oe=(r,l,s)=>(Aa(r,l,"access private method"),s);var Rs=(r,l,s,u)=>({set _(d){W(r,l,d,s)},get _(){return g(r,l,u)}});(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&u(p)}).observe(document,{childList:!0,subtree:!0});function s(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function u(d){if(d.ep)return;d.ep=!0;const h=s(d);fetch(d.href,h)}})();function xh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ua={exports:{}},Yi={},$a={exports:{}},ue={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Tf;function Xm(){if(Tf)return ue;Tf=1;var r=Symbol.for("react.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),p=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),C=Symbol.iterator;function L(j){return j===null||typeof j!="object"?null:(j=C&&j[C]||j["@@iterator"],typeof j=="function"?j:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,I={};function _(j,F,se){this.props=j,this.context=F,this.refs=I,this.updater=se||O}_.prototype.isReactComponent={},_.prototype.setState=function(j,F){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,F,"setState")},_.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function R(){}R.prototype=_.prototype;function b(j,F,se){this.props=j,this.context=F,this.refs=I,this.updater=se||O}var B=b.prototype=new R;B.constructor=b,D(B,_.prototype),B.isPureReactComponent=!0;var z=Array.isArray,Z=Object.prototype.hasOwnProperty,ie={current:null},de={key:!0,ref:!0,__self:!0,__source:!0};function ne(j,F,se){var ae,fe={},Q=null,Ce=null;if(F!=null)for(ae in F.ref!==void 0&&(Ce=F.ref),F.key!==void 0&&(Q=""+F.key),F)Z.call(F,ae)&&!de.hasOwnProperty(ae)&&(fe[ae]=F[ae]);var xe=arguments.length-2;if(xe===1)fe.children=se;else if(1>>1,F=H[j];if(0>>1;jd(fe,K))Qd(Ce,fe)?(H[j]=Ce,H[Q]=K,j=Q):(H[j]=fe,H[ae]=K,j=ae);else if(Qd(Ce,K))H[j]=Ce,H[Q]=K,j=Q;else break e}}return re}function d(H,re){var K=H.sortIndex-re.sortIndex;return K!==0?K:H.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;r.unstable_now=function(){return h.now()}}else{var p=Date,m=p.now();r.unstable_now=function(){return p.now()-m}}var y=[],x=[],k=1,C=null,L=3,O=!1,D=!1,I=!1,_=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function B(H){for(var re=s(x);re!==null;){if(re.callback===null)u(x);else if(re.startTime<=H)u(x),re.sortIndex=re.expirationTime,l(y,re);else break;re=s(x)}}function z(H){if(I=!1,B(H),!D)if(s(y)!==null)D=!0,Ge(Z);else{var re=s(x);re!==null&&je(z,re.startTime-H)}}function Z(H,re){D=!1,I&&(I=!1,R(ne),ne=-1),O=!0;var K=L;try{for(B(re),C=s(y);C!==null&&(!(C.expirationTime>re)||H&&!De());){var j=C.callback;if(typeof j=="function"){C.callback=null,L=C.priorityLevel;var F=j(C.expirationTime<=re);re=r.unstable_now(),typeof F=="function"?C.callback=F:C===s(y)&&u(y),B(re)}else u(y);C=s(y)}if(C!==null)var se=!0;else{var ae=s(x);ae!==null&&je(z,ae.startTime-re),se=!1}return se}finally{C=null,L=K,O=!1}}var ie=!1,de=null,ne=-1,ce=5,pe=-1;function De(){return!(r.unstable_now()-peH||125j?(H.sortIndex=K,l(x,H),s(y)===null&&H===s(x)&&(I?(R(ne),ne=-1):I=!0,je(z,K-j))):(H.sortIndex=F,l(y,H),D||O||(D=!0,Ge(Z))),H},r.unstable_shouldYield=De,r.unstable_wrapCallback=function(H){var re=L;return function(){var K=L;L=re;try{return H.apply(this,arguments)}finally{L=K}}}})(Qa)),Qa}var Ff;function nv(){return Ff||(Ff=1,Ba.exports=tv()),Ba.exports}/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Mf;function rv(){if(Mf)return ft;Mf=1;var r=mu(),l=nv();function s(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"),y=Object.prototype.hasOwnProperty,x=/^[: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]*$/,k={},C={};function L(e){return y.call(C,e)?!0:y.call(k,e)?!1:x.test(e)?C[e]=!0:(k[e]=!0,!1)}function O(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function D(e,t,n,i){if(t===null||typeof t>"u"||O(e,t,n,i))return!0;if(i)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 I(e,t,n,i,o,a,f){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=f}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_[e]=new I(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 I(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){_[e]=new I(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_[e]=new I(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 I(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){_[e]=new I(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){_[e]=new I(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){_[e]=new I(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){_[e]=new I(e,5,!1,e.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function b(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(R,b);_[t]=new I(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(R,b);_[t]=new I(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(R,b);_[t]=new I(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){_[e]=new I(e,1,!1,e.toLowerCase(),null,!1,!1)}),_.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){_[e]=new I(e,1,!1,e.toLowerCase(),null,!0,!0)});function B(e,t,n,i){var o=_.hasOwnProperty(t)?_[t]:null;(o!==null?o.type!==0:i||!(2v||o[f]!==a[v]){var w=` `+o[f].replace(" at new "," at ");return e.displayName&&w.includes("")&&(w=w.replace("",e.displayName)),w}while(1<=f&&0<=v);break}}}finally{se=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function fe(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=ae(e.type,!1),e;case 11:return e=ae(e.type.render,!1),e;case 1:return e=ae(e.type,!0),e;default:return""}}function Q(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 de:return"Fragment";case ie:return"Portal";case ce:return"Profiler";case ne:return"StrictMode";case Ee:return"Suspense";case ye:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case De:return(e.displayName||"Context")+".Consumer";case pe:return(e._context.displayName||"Context")+".Provider";case Me:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case we:return t=e.displayName||null,t!==null?t:Q(e.type)||"Memo";case Ge:t=e._payload,e=e._init;try{return Q(e(t))}catch{}}return null}function Ce(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 Q(t);case 8:return t===ne?"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 xe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ne(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mt(e){var t=Ne(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(f){i=""+f,a.call(this,f)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(f){i=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vl(e){e._valueTracker||(e._valueTracker=mt(e))}function Ou(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Ne(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function yl(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 Hs(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fu(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=xe(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Mu(e,t){t=t.checked,t!=null&&B(e,"checked",t,!1)}function Ws(e,t){Mu(e,t);var n=xe(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Vs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Vs(e,t.type,xe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function zu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="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 Vs(e,t,n){(t!=="number"||yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var di=Array.isArray;function Er(e,t,n,i){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=gl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hi={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},np=["Webkit","ms","Moz","O"];Object.keys(hi).forEach(function(e){np.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hi[t]=hi[e]})});function Qu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hi.hasOwnProperty(e)&&hi[e]?(""+t).trim():t+"px"}function Hu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,o=Qu(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,o):e[n]=o}}var rp=K({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 Gs(e,t){if(t){if(rp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(s(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(s(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(t.style!=null&&typeof t.style!="object")throw Error(s(62))}}function Ys(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 Js=null;function Xs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zs=null,Cr=null,kr=null;function Wu(e){if(e=Fi(e)){if(typeof Zs!="function")throw Error(s(280));var t=e.stateNode;t&&(t=bl(t),Zs(e.stateNode,e.type,t))}}function Vu(e){Cr?kr?kr.push(e):kr=[e]:Cr=e}function Ku(){if(Cr){var e=Cr,t=kr;if(kr=Cr=null,Wu(e),t)for(e=0;e>>=0,e===0?32:31-(pp(e)/mp|0)|0}var Cl=64,kl=4194304;function yi(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 jl(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes,f=n&268435455;if(f!==0){var v=f&~o;v!==0?i=yi(v):(a&=f,a!==0&&(i=yi(a)))}else f=n&~o,f!==0?i=yi(f):a!==0&&(i=yi(a));if(i===0)return 0;if(t!==0&&t!==i&&(t&o)===0&&(o=i&-i,a=t&-t,o>=a||o===16&&(a&4194240)!==0))return t;if((i&4)!==0&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0n;n++)t.push(e);return t}function gi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dt(t),e[t]=n}function xp(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 i=e.eventTimes;for(e=e.expirationTimes;0=Ri),wc=" ",Ec=!1;function Cc(e,t){switch(e){case"keyup":return Kp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pr=!1;function Gp(e,t){switch(e){case"compositionend":return kc(t);case"keypress":return t.which!==32?null:(Ec=!0,wc);case"textInput":return e=t.data,e===wc&&Ec?null:e;default:return null}}function Yp(e,t){if(Pr)return e==="compositionend"||!go&&Cc(e,t)?(e=mc(),Tl=fo=En=null,Pr=!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=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Lc(n)}}function Dc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Oc(){for(var e=window,t=yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yl(e.document)}return t}function wo(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 lm(e){var t=Oc(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dc(n.ownerDocument.documentElement,n)){if(i!==null&&wo(n)){if(t=i.start,e=i.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 o=n.textContent.length,a=Math.min(i.start,o);i=i.end===void 0?a:Math.min(i.end,o),!e.extend&&a>i&&(o=i,i=a,a=o),o=Ic(n,a);var f=Ic(n,i);o&&f&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==f.node||e.focusOffset!==f.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),a>i?(e.addRange(t),e.extend(f.node,f.offset)):(t.setEnd(f.node,f.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,Nr=null,Eo=null,Ti=null,Co=!1;function Fc(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Co||Nr==null||Nr!==yl(i)||(i=Nr,"selectionStart"in i&&wo(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Ti&&_i(Ti,i)||(Ti=i,i=Al(Eo,"onSelect"),0Dr||(e.current=Fo[Dr],Fo[Dr]=null,Dr--)}function ke(e,t){Dr++,Fo[Dr]=e.current,e.current=t}var Rn={},Xe=jn(Rn),ot=jn(!1),Zn=Rn;function Or(e,t){var n=e.type.contextTypes;if(!n)return Rn;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var o={},a;for(a in n)o[a]=t[a];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function at(e){return e=e.childContextTypes,e!=null}function Bl(){Pe(ot),Pe(Xe)}function Yc(e,t,n){if(Xe.current!==Rn)throw Error(s(168));ke(Xe,t),ke(ot,n)}function Jc(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var o in i)if(!(o in t))throw Error(s(108,Ce(e)||"Unknown",o));return K({},n,i)}function Ql(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rn,Zn=Xe.current,ke(Xe,e),ke(ot,ot.current),!0}function Xc(e,t,n){var i=e.stateNode;if(!i)throw Error(s(169));n?(e=Jc(e,t,Zn),i.__reactInternalMemoizedMergedChildContext=e,Pe(ot),Pe(Xe),ke(Xe,e)):Pe(ot),ke(ot,n)}var Zt=null,Hl=!1,Mo=!1;function Zc(e){Zt===null?Zt=[e]:Zt.push(e)}function ym(e){Hl=!0,Zc(e)}function Pn(){if(!Mo&&Zt!==null){Mo=!0;var e=0,t=Se;try{var n=Zt;for(Se=1;e>=f,o-=f,en=1<<32-Dt(t)+o|n<le?(Ve=te,te=null):Ve=te.sibling;var ve=M(P,te,N[le],$);if(ve===null){te===null&&(te=Ve);break}e&&te&&ve.alternate===null&&t(P,te),E=a(ve,E,le),ee===null?J=ve:ee.sibling=ve,ee=ve,te=Ve}if(le===N.length)return n(P,te),_e&&tr(P,le),J;if(te===null){for(;lele?(Ve=te,te=null):Ve=te.sibling;var Mn=M(P,te,ve.value,$);if(Mn===null){te===null&&(te=Ve);break}e&&te&&Mn.alternate===null&&t(P,te),E=a(Mn,E,le),ee===null?J=Mn:ee.sibling=Mn,ee=Mn,te=Ve}if(ve.done)return n(P,te),_e&&tr(P,le),J;if(te===null){for(;!ve.done;le++,ve=N.next())ve=U(P,ve.value,$),ve!==null&&(E=a(ve,E,le),ee===null?J=ve:ee.sibling=ve,ee=ve);return _e&&tr(P,le),J}for(te=i(P,te);!ve.done;le++,ve=N.next())ve=V(te,P,le,ve.value,$),ve!==null&&(e&&ve.alternate!==null&&te.delete(ve.key===null?le:ve.key),E=a(ve,E,le),ee===null?J=ve:ee.sibling=ve,ee=ve);return e&&te.forEach(function(Jm){return t(P,Jm)}),_e&&tr(P,le),J}function Ae(P,E,N,$){if(typeof N=="object"&&N!==null&&N.type===de&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case Z:e:{for(var J=N.key,ee=E;ee!==null;){if(ee.key===J){if(J=N.type,J===de){if(ee.tag===7){n(P,ee.sibling),E=o(ee,N.props.children),E.return=P,P=E;break e}}else if(ee.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Ge&&ld(J)===ee.type){n(P,ee.sibling),E=o(ee,N.props),E.ref=Mi(P,ee,N),E.return=P,P=E;break e}n(P,ee);break}else t(P,ee);ee=ee.sibling}N.type===de?(E=ur(N.props.children,P.mode,$,N.key),E.return=P,P=E):($=gs(N.type,N.key,N.props,null,P.mode,$),$.ref=Mi(P,E,N),$.return=P,P=$)}return f(P);case ie:e:{for(ee=N.key;E!==null;){if(E.key===ee)if(E.tag===4&&E.stateNode.containerInfo===N.containerInfo&&E.stateNode.implementation===N.implementation){n(P,E.sibling),E=o(E,N.children||[]),E.return=P,P=E;break e}else{n(P,E);break}else t(P,E);E=E.sibling}E=Da(N,P.mode,$),E.return=P,P=E}return f(P);case Ge:return ee=N._init,Ae(P,E,ee(N._payload),$)}if(di(N))return G(P,E,N,$);if(re(N))return Y(P,E,N,$);ql(P,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,E!==null&&E.tag===6?(n(P,E.sibling),E=o(E,N),E.return=P,P=E):(n(P,E),E=Ia(N,P.mode,$),E.return=P,P=E),f(P)):n(P,E)}return Ae}var Ar=sd(!0),od=sd(!1),Gl=jn(null),Yl=null,Ur=null,Bo=null;function Qo(){Bo=Ur=Yl=null}function Ho(e){var t=Gl.current;Pe(Gl),e._currentValue=t}function Wo(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function $r(e,t){Yl=e,Bo=Ur=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(ut=!0),e.firstContext=null)}function Rt(e){var t=e._currentValue;if(Bo!==e)if(e={context:e,memoizedValue:t,next:null},Ur===null){if(Yl===null)throw Error(s(308));Ur=e,Yl.dependencies={lanes:0,firstContext:e}}else Ur=Ur.next=e;return t}var nr=null;function Vo(e){nr===null?nr=[e]:nr.push(e)}function ad(e,t,n,i){var o=t.interleaved;return o===null?(n.next=n,Vo(t)):(n.next=o.next,o.next=n),t.interleaved=n,nn(e,i)}function nn(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 Nn=!1;function Ko(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ud(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 rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _n(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(me&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,nn(e,n)}return o=i.interleaved,o===null?(t.next=t,Vo(i)):(t.next=o.next,o.next=t),i.interleaved=t,nn(e,n)}function Jl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,so(e,n)}}function cd(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var o=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var f={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?o=a=f:a=a.next=f,n=n.next}while(n!==null);a===null?o=a=t:a=a.next=t}else o=a=t;n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Xl(e,t,n,i){var o=e.updateQueue;Nn=!1;var a=o.firstBaseUpdate,f=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var w=v,T=w.next;w.next=null,f===null?a=T:f.next=T,f=w;var A=e.alternate;A!==null&&(A=A.updateQueue,v=A.lastBaseUpdate,v!==f&&(v===null?A.firstBaseUpdate=T:v.next=T,A.lastBaseUpdate=w))}if(a!==null){var U=o.baseState;f=0,A=T=w=null,v=a;do{var M=v.lane,V=v.eventTime;if((i&M)===M){A!==null&&(A=A.next={eventTime:V,lane:0,tag:v.tag,payload:v.payload,callback:v.callback,next:null});e:{var G=e,Y=v;switch(M=t,V=n,Y.tag){case 1:if(G=Y.payload,typeof G=="function"){U=G.call(V,U,M);break e}U=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=Y.payload,M=typeof G=="function"?G.call(V,U,M):G,M==null)break e;U=K({},U,M);break e;case 2:Nn=!0}}v.callback!==null&&v.lane!==0&&(e.flags|=64,M=o.effects,M===null?o.effects=[v]:M.push(v))}else V={eventTime:V,lane:M,tag:v.tag,payload:v.payload,callback:v.callback,next:null},A===null?(T=A=V,w=U):A=A.next=V,f|=M;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;M=v,v=M.next,M.next=null,o.lastBaseUpdate=M,o.shared.pending=null}}while(!0);if(A===null&&(w=U),o.baseState=w,o.firstBaseUpdate=T,o.lastBaseUpdate=A,t=o.shared.interleaved,t!==null){o=t;do f|=o.lane,o=o.next;while(o!==t)}else a===null&&(o.shared.lanes=0);lr|=f,e.lanes=f,e.memoizedState=U}}function dd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var i=Xo.transition;Xo.transition={};try{e(!1),t()}finally{Se=n,Xo.transition=i}}function Td(){return Pt().memoizedState}function wm(e,t,n){var i=Dn(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Ld(e))Id(t,n);else if(n=ad(e,t,n,i),n!==null){var o=it();Ut(n,e,i,o),Dd(n,t,i)}}function Em(e,t,n){var i=Dn(e),o={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ld(e))Id(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var f=t.lastRenderedState,v=a(f,n);if(o.hasEagerState=!0,o.eagerState=v,Ot(v,f)){var w=t.interleaved;w===null?(o.next=o,Vo(t)):(o.next=w.next,w.next=o),t.interleaved=o;return}}catch{}finally{}n=ad(e,t,o,i),n!==null&&(o=it(),Ut(n,e,i,o),Dd(n,t,i))}}function Ld(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function Id(e,t){$i=ts=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dd(e,t,n){if((n&4194240)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,so(e,n)}}var is={readContext:Rt,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},Cm={readContext:Rt,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:Ed,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ns(4194308,4,jd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return ns(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Kt();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=wm.bind(null,Ie,e),[i.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:Sd,useDebugValue:la,useDeferredValue:function(e){return Kt().memoizedState=e},useTransition:function(){var e=Sd(!1),t=e[0];return e=Sm.bind(null,e[1]),Kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Ie,o=Kt();if(_e){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),We===null)throw Error(s(349));(ir&30)!==0||md(i,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ed(yd.bind(null,i,a,e),[e]),i.flags|=2048,Qi(9,vd.bind(null,i,a,n,t),void 0,null),n},useId:function(){var e=Kt(),t=We.identifierPrefix;if(_e){var n=tn,i=en;n=(i&~(1<<32-Dt(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=bi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=f.createElement(n,{is:i.is}):(e=f.createElement(n),n==="select"&&(f=e,i.multiple?f.multiple=!0:i.size&&(f.size=i.size))):e=f.createElementNS(e,n),e[Wt]=t,e[Oi]=i,Zd(e,t,!1,!1),t.stateNode=e;e:{switch(f=Ys(n,i),n){case"dialog":Re("cancel",e),Re("close",e),o=i;break;case"iframe":case"object":case"embed":Re("load",e),o=i;break;case"video":case"audio":for(o=0;oWr&&(t.flags|=128,i=!0,Hi(a,!1),t.lanes=4194304)}else{if(!i)if(e=Zl(f),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Hi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!f.alternate&&!_e)return et(t),null}else 2*ze()-a.renderingStartTime>Wr&&n!==1073741824&&(t.flags|=128,i=!0,Hi(a,!1),t.lanes=4194304);a.isBackwards?(f.sibling=t.child,t.child=f):(n=a.last,n!==null?n.sibling=f:t.child=f,a.last=f)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ze(),t.sibling=null,n=Le.current,ke(Le,i?n&1|2:n&1),t):(et(t),null);case 22:case 23:return _a(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&(t.mode&1)!==0?(xt&1073741824)!==0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(s(156,t.tag))}function Lm(e,t){switch(Ao(t),t.tag){case 1:return at(t.type)&&Bl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return br(),Pe(ot),Pe(Xe),Jo(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Go(t),null;case 13:if(Pe(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Le),null;case 4:return br(),null;case 10:return Ho(t.type._context),null;case 22:case 23:return _a(),null;case 24:return null;default:return null}}var as=!1,tt=!1,Im=typeof WeakSet=="function"?WeakSet:Set,q=null;function Qr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){Oe(e,t,i)}else n.current=null}function ya(e,t,n){try{n()}catch(i){Oe(e,t,i)}}var nf=!1;function Dm(e,t){if(_o=Nl,e=Oc(),wo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var f=0,v=-1,w=-1,T=0,A=0,U=e,M=null;t:for(;;){for(var V;U!==n||o!==0&&U.nodeType!==3||(v=f+o),U!==a||i!==0&&U.nodeType!==3||(w=f+i),U.nodeType===3&&(f+=U.nodeValue.length),(V=U.firstChild)!==null;)M=U,U=V;for(;;){if(U===e)break t;if(M===n&&++T===o&&(v=f),M===a&&++A===i&&(w=f),(V=U.nextSibling)!==null)break;U=M,M=U.parentNode}U=V}n=v===-1||w===-1?null:{start:v,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(To={focusedElem:e,selectionRange:n},Nl=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;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,Ae=G.memoizedState,P=t.stateNode,E=P.getSnapshotBeforeUpdate(t.elementType===t.type?Y:Mt(t.type,Y),Ae);P.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var N=t.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch($){Oe(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return G=nf,nf=!1,G}function Wi(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,a!==void 0&&ya(t,n,a)}o=o.next}while(o!==i)}}function us(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 i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function ga(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 rf(e){var t=e.alternate;t!==null&&(e.alternate=null,rf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wt],delete t[Oi],delete t[Oo],delete t[mm],delete t[vm])),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 lf(e){return e.tag===5||e.tag===3||e.tag===4}function sf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lf(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 xa(e,t,n){var i=e.tag;if(i===5||i===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=$l));else if(i!==4&&(e=e.child,e!==null))for(xa(e,t,n),e=e.sibling;e!==null;)xa(e,t,n),e=e.sibling}function Sa(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(Sa(e,t,n),e=e.sibling;e!==null;)Sa(e,t,n),e=e.sibling}var Ye=null,zt=!1;function Tn(e,t,n){for(n=n.child;n!==null;)of(e,t,n),n=n.sibling}function of(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(El,n)}catch{}switch(n.tag){case 5:tt||Qr(n,t);case 6:var i=Ye,o=zt;Ye=null,Tn(e,t,n),Ye=i,zt=o,Ye!==null&&(zt?(e=Ye,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ye.removeChild(n.stateNode));break;case 18:Ye!==null&&(zt?(e=Ye,n=n.stateNode,e.nodeType===8?Do(e.parentNode,n):e.nodeType===1&&Do(e,n),Ci(e)):Do(Ye,n.stateNode));break;case 4:i=Ye,o=zt,Ye=n.stateNode.containerInfo,zt=!0,Tn(e,t,n),Ye=i,zt=o;break;case 0:case 11:case 14:case 15:if(!tt&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){o=i=i.next;do{var a=o,f=a.destroy;a=a.tag,f!==void 0&&((a&2)!==0||(a&4)!==0)&&ya(n,t,f),o=o.next}while(o!==i)}Tn(e,t,n);break;case 1:if(!tt&&(Qr(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(v){Oe(n,t,v)}Tn(e,t,n);break;case 21:Tn(e,t,n);break;case 22:n.mode&1?(tt=(i=tt)||n.memoizedState!==null,Tn(e,t,n),tt=i):Tn(e,t,n);break;default:Tn(e,t,n)}}function af(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Im),t.forEach(function(i){var o=Bm.bind(null,e,i);n.has(i)||(n.add(i),i.then(o,o))})}}function At(e,t){var n=t.deletions;if(n!==null)for(var i=0;io&&(o=f),i&=~a}if(i=o,i=ze()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Fm(i/1960))-i,10e?16:e,In===null)var i=!1;else{if(e=In,In=null,ps=0,(me&6)!==0)throw Error(s(331));var o=me;for(me|=4,q=e.current;q!==null;){var a=q,f=a.child;if((q.flags&16)!==0){var v=a.deletions;if(v!==null){for(var w=0;wze()-Ca?or(e,0):Ea|=n),dt(e,t)}function wf(e,t){t===0&&((e.mode&1)===0?t=1:(t=kl,kl<<=1,(kl&130023424)===0&&(kl=4194304)));var n=it();e=nn(e,t),e!==null&&(gi(e,t,n),dt(e,n))}function bm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wf(e,n)}function Bm(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(s(314))}i!==null&&i.delete(t),wf(e,n)}var Ef;Ef=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)ut=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return ut=!1,_m(e,t,n);ut=(e.flags&131072)!==0}else ut=!1,_e&&(t.flags&1048576)!==0&&ed(t,Vl,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;os(e,t),e=t.pendingProps;var o=Or(t,Xe.current);$r(t,n),o=ea(null,t,i,e,o,n);var a=ta();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(i)?(a=!0,Ql(t)):a=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ko(t),o.updater=ls,t.stateNode=o,o._reactInternals=t,oa(t,i,e,n),t=da(null,t,i,!0,a,n)):(t.tag=0,_e&&a&&zo(t),rt(null,t,o,n),t=t.child),t;case 16:i=t.elementType;e:{switch(os(e,t),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=Hm(i),e=Mt(i,e),o){case 0:t=ca(null,t,i,e,n);break e;case 1:t=Kd(null,t,i,e,n);break e;case 11:t=Bd(null,t,i,e,n);break e;case 14:t=Qd(null,t,i,Mt(i.type,e),n);break e}throw Error(s(306,i,""))}return t;case 0:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Mt(i,o),ca(e,t,i,o,n);case 1:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Mt(i,o),Kd(e,t,i,o,n);case 3:e:{if(qd(t),e===null)throw Error(s(387));i=t.pendingProps,a=t.memoizedState,o=a.element,ud(e,t),Xl(t,i,null,n);var f=t.memoizedState;if(i=f.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:f.cache,pendingSuspenseBoundaries:f.pendingSuspenseBoundaries,transitions:f.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){o=Br(Error(s(423)),t),t=Gd(e,t,i,n,o);break e}else if(i!==o){o=Br(Error(s(424)),t),t=Gd(e,t,i,n,o);break e}else for(gt=kn(t.stateNode.containerInfo.firstChild),yt=t,_e=!0,Ft=null,n=od(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zr(),i===o){t=ln(e,t,n);break e}rt(e,t,i,n)}t=t.child}return t;case 5:return fd(t),e===null&&$o(t),i=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,f=o.children,Lo(i,o)?f=null:a!==null&&Lo(i,a)&&(t.flags|=32),Vd(e,t),rt(e,t,f,n),t.child;case 6:return e===null&&$o(t),null;case 13:return Yd(e,t,n);case 4:return qo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ar(t,null,i,n):rt(e,t,i,n),t.child;case 11:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Mt(i,o),Bd(e,t,i,o,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,a=t.memoizedProps,f=o.value,ke(Gl,i._currentValue),i._currentValue=f,a!==null)if(Ot(a.value,f)){if(a.children===o.children&&!ot.current){t=ln(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var v=a.dependencies;if(v!==null){f=a.child;for(var w=v.firstContext;w!==null;){if(w.context===i){if(a.tag===1){w=rn(-1,n&-n),w.tag=2;var T=a.updateQueue;if(T!==null){T=T.shared;var A=T.pending;A===null?w.next=w:(w.next=A.next,A.next=w),T.pending=w}}a.lanes|=n,w=a.alternate,w!==null&&(w.lanes|=n),Wo(a.return,n,t),v.lanes|=n;break}w=w.next}}else if(a.tag===10)f=a.type===t.type?null:a.child;else if(a.tag===18){if(f=a.return,f===null)throw Error(s(341));f.lanes|=n,v=f.alternate,v!==null&&(v.lanes|=n),Wo(f,n,t),f=a.sibling}else f=a.child;if(f!==null)f.return=a;else for(f=a;f!==null;){if(f===t){f=null;break}if(a=f.sibling,a!==null){a.return=f.return,f=a;break}f=f.return}a=f}rt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps.children,$r(t,n),o=Rt(o),i=i(o),t.flags|=1,rt(e,t,i,n),t.child;case 14:return i=t.type,o=Mt(i,t.pendingProps),o=Mt(i.type,o),Qd(e,t,i,o,n);case 15:return Hd(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:Mt(i,o),os(e,t),t.tag=1,at(i)?(e=!0,Ql(t)):e=!1,$r(t,n),Fd(t,i,o),oa(t,i,o,n),da(null,t,i,!0,e,n);case 19:return Xd(e,t,n);case 22:return Wd(e,t,n)}throw Error(s(156,t.tag))};function Cf(e,t){return tc(e,t)}function Qm(e,t,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,i){return new Qm(e,t,n,i)}function La(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hm(e){if(typeof e=="function")return La(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Me)return 11;if(e===we)return 14}return 2}function Fn(e,t){var n=e.alternate;return n===null?(n=_t(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 gs(e,t,n,i,o,a){var f=2;if(i=e,typeof e=="function")La(e)&&(f=1);else if(typeof e=="string")f=5;else e:switch(e){case de:return ur(n.children,o,a,t);case ne:f=8,o|=8;break;case ce:return e=_t(12,n,t,o|2),e.elementType=ce,e.lanes=a,e;case Ee:return e=_t(13,n,t,o),e.elementType=Ee,e.lanes=a,e;case ye:return e=_t(19,n,t,o),e.elementType=ye,e.lanes=a,e;case je:return xs(n,o,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pe:f=10;break e;case De:f=9;break e;case Me:f=11;break e;case we:f=14;break e;case Ge:f=16,i=null;break e}throw Error(s(130,e==null?e:typeof e,""))}return t=_t(f,n,t,o),t.elementType=e,t.type=i,t.lanes=a,t}function ur(e,t,n,i){return e=_t(7,e,i,t),e.lanes=n,e}function xs(e,t,n,i){return e=_t(22,e,i,t),e.elementType=je,e.lanes=n,e.stateNode={isHidden:!1},e}function Ia(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function Da(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wm(e,t,n,i,o){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=lo(0),this.expirationTimes=lo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lo(0),this.identifierPrefix=i,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Oa(e,t,n,i,o,a,f,v,w){return e=new Wm(e,t,n,v,w),t===1?(t=1,a===!0&&(t|=8)):t=0,a=_t(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ko(a),e}function Vm(e,t,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(l){console.error(l)}}return r(),ba.exports=rv(),ba.exports}var Af;function lv(){if(Af)return Ps;Af=1;var r=iv();return Ps.createRoot=r.createRoot,Ps.hydrateRoot=r.hydrateRoot,Ps}var sv=lv();const ov=xh(sv);var oi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(r){return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},dr,An,qr,ah,av=(ah=class extends oi{constructor(){super();X(this,dr);X(this,An);X(this,qr);W(this,qr,l=>{if(typeof window<"u"&&window.addEventListener){const s=()=>l();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){g(this,An)||this.setEventListener(g(this,qr))}onUnsubscribe(){var l;this.hasListeners()||((l=g(this,An))==null||l.call(this),W(this,An,void 0))}setEventListener(l){var s;W(this,qr,l),(s=g(this,An))==null||s.call(this),W(this,An,l(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(l){g(this,dr)!==l&&(W(this,dr,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(s=>{s(l)})}isFocused(){var l;return typeof g(this,dr)=="boolean"?g(this,dr):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},dr=new WeakMap,An=new WeakMap,qr=new WeakMap,ah),vu=new av,uv={setTimeout:(r,l)=>setTimeout(r,l),clearTimeout:r=>clearTimeout(r),setInterval:(r,l)=>setInterval(r,l),clearInterval:r=>clearInterval(r)},Un,pu,uh,cv=(uh=class{constructor(){X(this,Un,uv);X(this,pu,!1)}setTimeoutProvider(r){W(this,Un,r)}setTimeout(r,l){return g(this,Un).setTimeout(r,l)}clearTimeout(r){g(this,Un).clearTimeout(r)}setInterval(r,l){return g(this,Un).setInterval(r,l)}clearInterval(r){g(this,Un).clearInterval(r)}},Un=new WeakMap,pu=new WeakMap,uh),cr=new cv;function dv(r){setTimeout(r,0)}var fv=typeof window>"u"||"Deno"in globalThis;function st(){}function hv(r,l){return typeof r=="function"?r(l):r}function Ga(r){return typeof r=="number"&&r>=0&&r!==1/0}function Sh(r,l){return Math.max(r+(l||0)-Date.now(),0)}function Gn(r,l){return typeof r=="function"?r(l):r}function wt(r,l){return typeof r=="function"?r(l):r}function Uf(r,l){const{type:s="all",exact:u,fetchStatus:d,predicate:h,queryKey:p,stale:m}=r;if(p){if(u){if(l.queryHash!==yu(p,l.options))return!1}else if(!il(l.queryKey,p))return!1}if(s!=="all"){const y=l.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof m=="boolean"&&l.isStale()!==m||d&&d!==l.state.fetchStatus||h&&!h(l))}function $f(r,l){const{exact:s,status:u,predicate:d,mutationKey:h}=r;if(h){if(!l.options.mutationKey)return!1;if(s){if(Sr(l.options.mutationKey)!==Sr(h))return!1}else if(!il(l.options.mutationKey,h))return!1}return!(u&&l.state.status!==u||d&&!d(l))}function yu(r,l){return((l==null?void 0:l.queryKeyHashFn)||Sr)(r)}function Sr(r){return JSON.stringify(r,(l,s)=>Ya(s)?Object.keys(s).sort().reduce((u,d)=>(u[d]=s[d],u),{}):s)}function il(r,l){return r===l?!0:typeof r!=typeof l?!1:r&&l&&typeof r=="object"&&typeof l=="object"?Object.keys(l).every(s=>il(r[s],l[s])):!1}var pv=Object.prototype.hasOwnProperty;function wh(r,l,s=0){if(r===l)return r;if(s>500)return l;const u=bf(r)&&bf(l);if(!u&&!(Ya(r)&&Ya(l)))return l;const h=(u?r:Object.keys(r)).length,p=u?l:Object.keys(l),m=p.length,y=u?new Array(m):{};let x=0;for(let k=0;k{cr.setTimeout(l,r)})}function Ja(r,l,s){return typeof s.structuralSharing=="function"?s.structuralSharing(r,l):s.structuralSharing!==!1?wh(r,l):l}function vv(r,l,s=0){const u=[...r,l];return s&&u.length>s?u.slice(1):u}function yv(r,l,s=0){const u=[l,...r];return s&&u.length>s?u.slice(0,-1):u}var gu=Symbol();function Eh(r,l){return!r.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!r.queryFn||r.queryFn===gu?()=>Promise.reject(new Error(`Missing queryFn: '${r.queryHash}'`)):r.queryFn}function xu(r,l){return typeof r=="function"?r(...l):!!r}function gv(r,l,s){let u=!1,d;return Object.defineProperty(r,"signal",{enumerable:!0,get:()=>(d??(d=l()),u||(u=!0,d.aborted?s():d.addEventListener("abort",s,{once:!0})),d)}),r}var ll=(()=>{let r=()=>fv;return{isServer(){return r()},setIsServer(l){r=l}}})();function Xa(){let r,l;const s=new Promise((d,h)=>{r=d,l=h});s.status="pending",s.catch(()=>{});function u(d){Object.assign(s,d),delete s.resolve,delete s.reject}return s.resolve=d=>{u({status:"fulfilled",value:d}),r(d)},s.reject=d=>{u({status:"rejected",reason:d}),l(d)},s}var xv=dv;function Sv(){let r=[],l=0,s=m=>{m()},u=m=>{m()},d=xv;const h=m=>{l?r.push(m):d(()=>{s(m)})},p=()=>{const m=r;r=[],m.length&&d(()=>{u(()=>{m.forEach(y=>{s(y)})})})};return{batch:m=>{let y;l++;try{y=m()}finally{l--,l||p()}return y},batchCalls:m=>(...y)=>{h(()=>{m(...y)})},schedule:h,setNotifyFunction:m=>{s=m},setBatchNotifyFunction:m=>{u=m},setScheduler:m=>{d=m}}}var Qe=Sv(),Gr,$n,Yr,ch,wv=(ch=class extends oi{constructor(){super();X(this,Gr,!0);X(this,$n);X(this,Yr);W(this,Yr,l=>{if(typeof window<"u"&&window.addEventListener){const s=()=>l(!0),u=()=>l(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",u)}}})}onSubscribe(){g(this,$n)||this.setEventListener(g(this,Yr))}onUnsubscribe(){var l;this.hasListeners()||((l=g(this,$n))==null||l.call(this),W(this,$n,void 0))}setEventListener(l){var s;W(this,Yr,l),(s=g(this,$n))==null||s.call(this),W(this,$n,l(this.setOnline.bind(this)))}setOnline(l){g(this,Gr)!==l&&(W(this,Gr,l),this.listeners.forEach(u=>{u(l)}))}isOnline(){return g(this,Gr)}},Gr=new WeakMap,$n=new WeakMap,Yr=new WeakMap,ch),Ms=new wv;function Ev(r){return Math.min(1e3*2**r,3e4)}function Ch(r){return(r??"online")==="online"?Ms.isOnline():!0}var Za=class extends Error{constructor(r){super("CancelledError"),this.revert=r==null?void 0:r.revert,this.silent=r==null?void 0:r.silent}};function kh(r){let l=!1,s=0,u;const d=Xa(),h=()=>d.status!=="pending",p=I=>{var _;if(!h()){const R=new Za(I);L(R),(_=r.onCancel)==null||_.call(r,R)}},m=()=>{l=!0},y=()=>{l=!1},x=()=>vu.isFocused()&&(r.networkMode==="always"||Ms.isOnline())&&r.canRun(),k=()=>Ch(r.networkMode)&&r.canRun(),C=I=>{h()||(u==null||u(),d.resolve(I))},L=I=>{h()||(u==null||u(),d.reject(I))},O=()=>new Promise(I=>{var _;u=R=>{(h()||x())&&I(R)},(_=r.onPause)==null||_.call(r)}).then(()=>{var I;u=void 0,h()||(I=r.onContinue)==null||I.call(r)}),D=()=>{if(h())return;let I;const _=s===0?r.initialPromise:void 0;try{I=_??r.fn()}catch(R){I=Promise.reject(R)}Promise.resolve(I).then(C).catch(R=>{var ie;if(h())return;const b=r.retry??(ll.isServer()?0:3),B=r.retryDelay??Ev,z=typeof B=="function"?B(s,R):B,Z=b===!0||typeof b=="number"&&sx()?void 0:O()).then(()=>{l?L(R):D()})})};return{promise:d,status:()=>d.status,cancel:p,continue:()=>(u==null||u(),d),cancelRetry:m,continueRetry:y,canStart:k,start:()=>(k()?D():O().then(D),d)}}var fr,dh,jh=(dh=class{constructor(){X(this,fr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ga(this.gcTime)&&W(this,fr,cr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(r){this.gcTime=Math.max(this.gcTime||0,r??(ll.isServer()?1/0:300*1e3))}clearGcTimeout(){g(this,fr)!==void 0&&(cr.clearTimeout(g(this,fr)),W(this,fr,void 0))}},fr=new WeakMap,dh);function Cv(r){return{onFetch:(l,s)=>{var k,C,L,O,D;const u=l.options,d=(L=(C=(k=l.fetchOptions)==null?void 0:k.meta)==null?void 0:C.fetchMore)==null?void 0:L.direction,h=((O=l.state.data)==null?void 0:O.pages)||[],p=((D=l.state.data)==null?void 0:D.pageParams)||[];let m={pages:[],pageParams:[]},y=0;const x=async()=>{let I=!1;const _=B=>{gv(B,()=>l.signal,()=>I=!0)},R=Eh(l.options,l.fetchOptions),b=async(B,z,Z)=>{if(I)return Promise.reject(l.signal.reason);if(z==null&&B.pages.length)return Promise.resolve(B);const de=(()=>{const De={client:l.client,queryKey:l.queryKey,pageParam:z,direction:Z?"backward":"forward",meta:l.options.meta};return _(De),De})(),ne=await R(de),{maxPages:ce}=l.options,pe=Z?yv:vv;return{pages:pe(B.pages,ne,ce),pageParams:pe(B.pageParams,z,ce)}};if(d&&h.length){const B=d==="backward",z=B?kv:Qf,Z={pages:h,pageParams:p},ie=z(u,Z);m=await b(Z,ie,B)}else{const B=r??h.length;do{const z=y===0?p[0]??u.initialPageParam:Qf(u,m);if(y>0&&z==null)break;m=await b(m,z),y++}while(y{var I,_;return(_=(I=l.options).persister)==null?void 0:_.call(I,x,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},s)}:l.fetchFn=x}}}function Qf(r,{pages:l,pageParams:s}){const u=l.length-1;return l.length>0?r.getNextPageParam(l[u],l,s[u],s):void 0}function kv(r,{pages:l,pageParams:s}){var u;return l.length>0?(u=r.getPreviousPageParam)==null?void 0:u.call(r,l[0],l,s[0],s):void 0}var Jr,hr,Xr,Tt,pr,Ke,ol,mr,St,Rh,on,fh,jv=(fh=class extends jh{constructor(l){super();X(this,St);X(this,Jr);X(this,hr);X(this,Xr);X(this,Tt);X(this,pr);X(this,Ke);X(this,ol);X(this,mr);W(this,mr,!1),W(this,ol,l.defaultOptions),this.setOptions(l.options),this.observers=[],W(this,pr,l.client),W(this,Tt,g(this,pr).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,W(this,hr,Wf(this.options)),this.state=l.state??g(this,hr),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return g(this,Jr)}get promise(){var l;return(l=g(this,Ke))==null?void 0:l.promise}setOptions(l){if(this.options={...g(this,ol),...l},l!=null&&l._type&&W(this,Jr,l._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=Wf(this.options);s.data!==void 0&&(this.setState(Hf(s.data,s.dataUpdatedAt)),W(this,hr,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&g(this,Tt).remove(this)}setData(l,s){const u=Ja(this.state.data,l,this.options);return oe(this,St,on).call(this,{data:u,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),u}setState(l){oe(this,St,on).call(this,{type:"setState",state:l})}cancel(l){var u,d;const s=(u=g(this,Ke))==null?void 0:u.promise;return(d=g(this,Ke))==null||d.cancel(l),s?s.then(st).catch(st):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return g(this,hr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>wt(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gu||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>Gn(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!Sh(this.state.dataUpdatedAt,l)}onFocus(){var s;const l=this.observers.find(u=>u.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(s=g(this,Ke))==null||s.continue()}onOnline(){var s;const l=this.observers.find(u=>u.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(s=g(this,Ke))==null||s.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),g(this,Tt).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(s=>s!==l),this.observers.length||(g(this,Ke)&&(g(this,mr)||oe(this,St,Rh).call(this)?g(this,Ke).cancel({revert:!0}):g(this,Ke).cancelRetry()),this.scheduleGc()),g(this,Tt).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||oe(this,St,on).call(this,{type:"invalidate"})}async fetch(l,s){var x,k,C,L,O,D,I,_,R,b,B;if(this.state.fetchStatus!=="idle"&&((x=g(this,Ke))==null?void 0:x.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(g(this,Ke))return g(this,Ke).continueRetry(),g(this,Ke).promise}if(l&&this.setOptions(l),!this.options.queryFn){const z=this.observers.find(Z=>Z.options.queryFn);z&&this.setOptions(z.options)}const u=new AbortController,d=z=>{Object.defineProperty(z,"signal",{enumerable:!0,get:()=>(W(this,mr,!0),u.signal)})},h=()=>{const z=Eh(this.options,s),ie=(()=>{const de={client:g(this,pr),queryKey:this.queryKey,meta:this.meta};return d(de),de})();return W(this,mr,!1),this.options.persister?this.options.persister(z,ie,this):z(ie)},m=(()=>{const z={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:g(this,pr),state:this.state,fetchFn:h};return d(z),z})(),y=g(this,Jr)==="infinite"?Cv(this.options.pages):this.options.behavior;y==null||y.onFetch(m,this),W(this,Xr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((k=m.fetchOptions)==null?void 0:k.meta))&&oe(this,St,on).call(this,{type:"fetch",meta:(C=m.fetchOptions)==null?void 0:C.meta}),W(this,Ke,kh({initialPromise:s==null?void 0:s.initialPromise,fn:m.fetchFn,onCancel:z=>{z instanceof Za&&z.revert&&this.setState({...g(this,Xr),fetchStatus:"idle"}),u.abort()},onFail:(z,Z)=>{oe(this,St,on).call(this,{type:"failed",failureCount:z,error:Z})},onPause:()=>{oe(this,St,on).call(this,{type:"pause"})},onContinue:()=>{oe(this,St,on).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const z=await g(this,Ke).start();if(z===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(z),(O=(L=g(this,Tt).config).onSuccess)==null||O.call(L,z,this),(I=(D=g(this,Tt).config).onSettled)==null||I.call(D,z,this.state.error,this),z}catch(z){if(z instanceof Za){if(z.silent)return g(this,Ke).promise;if(z.revert){if(this.state.data===void 0)throw z;return this.state.data}}throw oe(this,St,on).call(this,{type:"error",error:z}),(R=(_=g(this,Tt).config).onError)==null||R.call(_,z,this),(B=(b=g(this,Tt).config).onSettled)==null||B.call(b,this.state.data,z,this),z}finally{this.scheduleGc()}}},Jr=new WeakMap,hr=new WeakMap,Xr=new WeakMap,Tt=new WeakMap,pr=new WeakMap,Ke=new WeakMap,ol=new WeakMap,mr=new WeakMap,St=new WeakSet,Rh=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},on=function(l){const s=u=>{switch(l.type){case"failed":return{...u,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...Ph(u.data,this.options),fetchMeta:l.meta??null};case"success":const d={...u,...Hf(l.data,l.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return W(this,Xr,l.manual?d:void 0),d;case"error":const h=l.error;return{...u,error:h,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...l.state}}};this.state=s(this.state),Qe.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),g(this,Tt).notify({query:this,type:"updated",action:l})})},fh);function Ph(r,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ch(l.networkMode)?"fetching":"paused",...r===void 0&&{error:null,status:"pending"}}}function Hf(r,l){return{data:r,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Wf(r){const l=typeof r.initialData=="function"?r.initialData():r.initialData,s=l!==void 0,u=s?typeof r.initialDataUpdatedAt=="function"?r.initialDataUpdatedAt():r.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:s?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var ht,he,al,lt,vr,Zr,un,bn,ul,ei,ti,yr,gr,Bn,ni,ge,nl,eu,tu,nu,ru,iu,lu,su,Nh,hh,Rv=(hh=class extends oi{constructor(l,s){super();X(this,ge);X(this,ht);X(this,he);X(this,al);X(this,lt);X(this,vr);X(this,Zr);X(this,un);X(this,bn);X(this,ul);X(this,ei);X(this,ti);X(this,yr);X(this,gr);X(this,Bn);X(this,ni,new Set);this.options=s,W(this,ht,l),W(this,bn,null),W(this,un,Xa()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(g(this,he).addObserver(this),Vf(g(this,he),this.options)?oe(this,ge,nl).call(this):this.updateResult(),oe(this,ge,ru).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ou(g(this,he),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ou(g(this,he),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,oe(this,ge,iu).call(this),oe(this,ge,lu).call(this),g(this,he).removeObserver(this)}setOptions(l){const s=this.options,u=g(this,he);if(this.options=g(this,ht).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wt(this.options.enabled,g(this,he))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");oe(this,ge,su).call(this),g(this,he).setOptions(this.options),s._defaulted&&!Fs(this.options,s)&&g(this,ht).getQueryCache().notify({type:"observerOptionsUpdated",query:g(this,he),observer:this});const d=this.hasListeners();d&&Kf(g(this,he),u,this.options,s)&&oe(this,ge,nl).call(this),this.updateResult(),d&&(g(this,he)!==u||wt(this.options.enabled,g(this,he))!==wt(s.enabled,g(this,he))||Gn(this.options.staleTime,g(this,he))!==Gn(s.staleTime,g(this,he)))&&oe(this,ge,eu).call(this);const h=oe(this,ge,tu).call(this);d&&(g(this,he)!==u||wt(this.options.enabled,g(this,he))!==wt(s.enabled,g(this,he))||h!==g(this,Bn))&&oe(this,ge,nu).call(this,h)}getOptimisticResult(l){const s=g(this,ht).getQueryCache().build(g(this,ht),l),u=this.createResult(s,l);return Nv(this,u)&&(W(this,lt,u),W(this,Zr,this.options),W(this,vr,g(this,he).state)),u}getCurrentResult(){return g(this,lt)}trackResult(l,s){return new Proxy(l,{get:(u,d)=>(this.trackProp(d),s==null||s(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&g(this,un).status==="pending"&&g(this,un).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(u,d))})}trackProp(l){g(this,ni).add(l)}getCurrentQuery(){return g(this,he)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const s=g(this,ht).defaultQueryOptions(l),u=g(this,ht).getQueryCache().build(g(this,ht),s);return u.fetch().then(()=>this.createResult(u,s))}fetch(l){return oe(this,ge,nl).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),g(this,lt)))}createResult(l,s){var ce;const u=g(this,he),d=this.options,h=g(this,lt),p=g(this,vr),m=g(this,Zr),x=l!==u?l.state:g(this,al),{state:k}=l;let C={...k},L=!1,O;if(s._optimisticResults){const pe=this.hasListeners(),De=!pe&&Vf(l,s),Me=pe&&Kf(l,u,s,d);(De||Me)&&(C={...C,...Ph(k.data,l.options)}),s._optimisticResults==="isRestoring"&&(C.fetchStatus="idle")}let{error:D,errorUpdatedAt:I,status:_}=C;O=C.data;let R=!1;if(s.placeholderData!==void 0&&O===void 0&&_==="pending"){let pe;h!=null&&h.isPlaceholderData&&s.placeholderData===(m==null?void 0:m.placeholderData)?(pe=h.data,R=!0):pe=typeof s.placeholderData=="function"?s.placeholderData((ce=g(this,ti))==null?void 0:ce.state.data,g(this,ti)):s.placeholderData,pe!==void 0&&(_="success",O=Ja(h==null?void 0:h.data,pe,s),L=!0)}if(s.select&&O!==void 0&&!R)if(h&&O===(p==null?void 0:p.data)&&s.select===g(this,ul))O=g(this,ei);else try{W(this,ul,s.select),O=s.select(O),O=Ja(h==null?void 0:h.data,O,s),W(this,ei,O),W(this,bn,null)}catch(pe){W(this,bn,pe)}g(this,bn)&&(D=g(this,bn),O=g(this,ei),I=Date.now(),_="error");const b=C.fetchStatus==="fetching",B=_==="pending",z=_==="error",Z=B&&b,ie=O!==void 0,ne={status:_,fetchStatus:C.fetchStatus,isPending:B,isSuccess:_==="success",isError:z,isInitialLoading:Z,isLoading:Z,data:O,dataUpdatedAt:C.dataUpdatedAt,error:D,errorUpdatedAt:I,failureCount:C.fetchFailureCount,failureReason:C.fetchFailureReason,errorUpdateCount:C.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:C.dataUpdateCount>x.dataUpdateCount||C.errorUpdateCount>x.errorUpdateCount,isFetching:b,isRefetching:b&&!B,isLoadingError:z&&!ie,isPaused:C.fetchStatus==="paused",isPlaceholderData:L,isRefetchError:z&&ie,isStale:Su(l,s),refetch:this.refetch,promise:g(this,un),isEnabled:wt(s.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const pe=ne.data!==void 0,De=ne.status==="error"&&!pe,Me=we=>{De?we.reject(ne.error):pe&&we.resolve(ne.data)},Ee=()=>{const we=W(this,un,ne.promise=Xa());Me(we)},ye=g(this,un);switch(ye.status){case"pending":l.queryHash===u.queryHash&&Me(ye);break;case"fulfilled":(De||ne.data!==ye.value)&&Ee();break;case"rejected":(!De||ne.error!==ye.reason)&&Ee();break}}return ne}updateResult(){const l=g(this,lt),s=this.createResult(g(this,he),this.options);if(W(this,vr,g(this,he).state),W(this,Zr,this.options),g(this,vr).data!==void 0&&W(this,ti,g(this,he)),Fs(s,l))return;W(this,lt,s);const u=()=>{if(!l)return!0;const{notifyOnChangeProps:d}=this.options,h=typeof d=="function"?d():d;if(h==="all"||!h&&!g(this,ni).size)return!0;const p=new Set(h??g(this,ni));return this.options.throwOnError&&p.add("error"),Object.keys(g(this,lt)).some(m=>{const y=m;return g(this,lt)[y]!==l[y]&&p.has(y)})};oe(this,ge,Nh).call(this,{listeners:u()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&oe(this,ge,ru).call(this)}},ht=new WeakMap,he=new WeakMap,al=new WeakMap,lt=new WeakMap,vr=new WeakMap,Zr=new WeakMap,un=new WeakMap,bn=new WeakMap,ul=new WeakMap,ei=new WeakMap,ti=new WeakMap,yr=new WeakMap,gr=new WeakMap,Bn=new WeakMap,ni=new WeakMap,ge=new WeakSet,nl=function(l){oe(this,ge,su).call(this);let s=g(this,he).fetch(this.options,l);return l!=null&&l.throwOnError||(s=s.catch(st)),s},eu=function(){oe(this,ge,iu).call(this);const l=Gn(this.options.staleTime,g(this,he));if(ll.isServer()||g(this,lt).isStale||!Ga(l))return;const u=Sh(g(this,lt).dataUpdatedAt,l)+1;W(this,yr,cr.setTimeout(()=>{g(this,lt).isStale||this.updateResult()},u))},tu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(g(this,he)):this.options.refetchInterval)??!1},nu=function(l){oe(this,ge,lu).call(this),W(this,Bn,l),!(ll.isServer()||wt(this.options.enabled,g(this,he))===!1||!Ga(g(this,Bn))||g(this,Bn)===0)&&W(this,gr,cr.setInterval(()=>{(this.options.refetchIntervalInBackground||vu.isFocused())&&oe(this,ge,nl).call(this)},g(this,Bn)))},ru=function(){oe(this,ge,eu).call(this),oe(this,ge,nu).call(this,oe(this,ge,tu).call(this))},iu=function(){g(this,yr)!==void 0&&(cr.clearTimeout(g(this,yr)),W(this,yr,void 0))},lu=function(){g(this,gr)!==void 0&&(cr.clearInterval(g(this,gr)),W(this,gr,void 0))},su=function(){const l=g(this,ht).getQueryCache().build(g(this,ht),this.options);if(l===g(this,he))return;const s=g(this,he);W(this,he,l),W(this,al,l.state),this.hasListeners()&&(s==null||s.removeObserver(this),l.addObserver(this))},Nh=function(l){Qe.batch(()=>{l.listeners&&this.listeners.forEach(s=>{s(g(this,lt))}),g(this,ht).getQueryCache().notify({query:g(this,he),type:"observerResultsUpdated"})})},hh);function Pv(r,l){return wt(l.enabled,r)!==!1&&r.state.data===void 0&&!(r.state.status==="error"&&wt(l.retryOnMount,r)===!1)}function Vf(r,l){return Pv(r,l)||r.state.data!==void 0&&ou(r,l,l.refetchOnMount)}function ou(r,l,s){if(wt(l.enabled,r)!==!1&&Gn(l.staleTime,r)!=="static"){const u=typeof s=="function"?s(r):s;return u==="always"||u!==!1&&Su(r,l)}return!1}function Kf(r,l,s,u){return(r!==l||wt(u.enabled,r)===!1)&&(!s.suspense||r.state.status!=="error")&&Su(r,s)}function Su(r,l){return wt(l.enabled,r)!==!1&&r.isStaleByTime(Gn(l.staleTime,r))}function Nv(r,l){return!Fs(r.getCurrentResult(),l)}var cl,Gt,nt,xr,Yt,zn,ph,_v=(ph=class extends jh{constructor(l){super();X(this,Yt);X(this,cl);X(this,Gt);X(this,nt);X(this,xr);W(this,cl,l.client),this.mutationId=l.mutationId,W(this,nt,l.mutationCache),W(this,Gt,[]),this.state=l.state||_h(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){g(this,Gt).includes(l)||(g(this,Gt).push(l),this.clearGcTimeout(),g(this,nt).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){W(this,Gt,g(this,Gt).filter(s=>s!==l)),this.scheduleGc(),g(this,nt).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){g(this,Gt).length||(this.state.status==="pending"?this.scheduleGc():g(this,nt).remove(this))}continue(){var l;return((l=g(this,xr))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var p,m,y,x,k,C,L,O,D,I,_,R,b,B,z,Z,ie,de;const s=()=>{oe(this,Yt,zn).call(this,{type:"continue"})},u={client:g(this,cl),meta:this.options.meta,mutationKey:this.options.mutationKey};W(this,xr,kh({fn:()=>this.options.mutationFn?this.options.mutationFn(l,u):Promise.reject(new Error("No mutationFn found")),onFail:(ne,ce)=>{oe(this,Yt,zn).call(this,{type:"failed",failureCount:ne,error:ce})},onPause:()=>{oe(this,Yt,zn).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>g(this,nt).canRun(this)}));const d=this.state.status==="pending",h=!g(this,xr).canStart();try{if(d)s();else{oe(this,Yt,zn).call(this,{type:"pending",variables:l,isPaused:h}),g(this,nt).config.onMutate&&await g(this,nt).config.onMutate(l,this,u);const ce=await((m=(p=this.options).onMutate)==null?void 0:m.call(p,l,u));ce!==this.state.context&&oe(this,Yt,zn).call(this,{type:"pending",context:ce,variables:l,isPaused:h})}const ne=await g(this,xr).start();return await((x=(y=g(this,nt).config).onSuccess)==null?void 0:x.call(y,ne,l,this.state.context,this,u)),await((C=(k=this.options).onSuccess)==null?void 0:C.call(k,ne,l,this.state.context,u)),await((O=(L=g(this,nt).config).onSettled)==null?void 0:O.call(L,ne,null,this.state.variables,this.state.context,this,u)),await((I=(D=this.options).onSettled)==null?void 0:I.call(D,ne,null,l,this.state.context,u)),oe(this,Yt,zn).call(this,{type:"success",data:ne}),ne}catch(ne){try{await((R=(_=g(this,nt).config).onError)==null?void 0:R.call(_,ne,l,this.state.context,this,u))}catch(ce){Promise.reject(ce)}try{await((B=(b=this.options).onError)==null?void 0:B.call(b,ne,l,this.state.context,u))}catch(ce){Promise.reject(ce)}try{await((Z=(z=g(this,nt).config).onSettled)==null?void 0:Z.call(z,void 0,ne,this.state.variables,this.state.context,this,u))}catch(ce){Promise.reject(ce)}try{await((de=(ie=this.options).onSettled)==null?void 0:de.call(ie,void 0,ne,l,this.state.context,u))}catch(ce){Promise.reject(ce)}throw oe(this,Yt,zn).call(this,{type:"error",error:ne}),ne}finally{g(this,nt).runNext(this)}}},cl=new WeakMap,Gt=new WeakMap,nt=new WeakMap,xr=new WeakMap,Yt=new WeakSet,zn=function(l){const s=u=>{switch(l.type){case"failed":return{...u,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...u,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:l.error,failureCount:u.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Qe.batch(()=>{g(this,Gt).forEach(u=>{u.onMutationUpdate(l)}),g(this,nt).notify({mutation:this,type:"updated",action:l})})},ph);function _h(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var cn,bt,dl,mh,Tv=(mh=class extends oi{constructor(l={}){super();X(this,cn);X(this,bt);X(this,dl);this.config=l,W(this,cn,new Set),W(this,bt,new Map),W(this,dl,0)}build(l,s,u){const d=new _v({client:l,mutationCache:this,mutationId:++Rs(this,dl)._,options:l.defaultMutationOptions(s),state:u});return this.add(d),d}add(l){g(this,cn).add(l);const s=Ns(l);if(typeof s=="string"){const u=g(this,bt).get(s);u?u.push(l):g(this,bt).set(s,[l])}this.notify({type:"added",mutation:l})}remove(l){if(g(this,cn).delete(l)){const s=Ns(l);if(typeof s=="string"){const u=g(this,bt).get(s);if(u)if(u.length>1){const d=u.indexOf(l);d!==-1&&u.splice(d,1)}else u[0]===l&&g(this,bt).delete(s)}}this.notify({type:"removed",mutation:l})}canRun(l){const s=Ns(l);if(typeof s=="string"){const u=g(this,bt).get(s),d=u==null?void 0:u.find(h=>h.state.status==="pending");return!d||d===l}else return!0}runNext(l){var u;const s=Ns(l);if(typeof s=="string"){const d=(u=g(this,bt).get(s))==null?void 0:u.find(h=>h!==l&&h.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Qe.batch(()=>{g(this,cn).forEach(l=>{this.notify({type:"removed",mutation:l})}),g(this,cn).clear(),g(this,bt).clear()})}getAll(){return Array.from(g(this,cn))}find(l){const s={exact:!0,...l};return this.getAll().find(u=>$f(s,u))}findAll(l={}){return this.getAll().filter(s=>$f(l,s))}notify(l){Qe.batch(()=>{this.listeners.forEach(s=>{s(l)})})}resumePausedMutations(){const l=this.getAll().filter(s=>s.state.isPaused);return Qe.batch(()=>Promise.all(l.map(s=>s.continue().catch(st))))}},cn=new WeakMap,bt=new WeakMap,dl=new WeakMap,mh);function Ns(r){var l;return(l=r.options.scope)==null?void 0:l.id}var dn,Qn,pt,fn,mn,Is,au,vh,Lv=(vh=class extends oi{constructor(s,u){super();X(this,mn);X(this,dn);X(this,Qn);X(this,pt);X(this,fn);W(this,dn,s),this.setOptions(u),this.bindMethods(),oe(this,mn,Is).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var d;const u=this.options;this.options=g(this,dn).defaultMutationOptions(s),Fs(this.options,u)||g(this,dn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:g(this,pt),observer:this}),u!=null&&u.mutationKey&&this.options.mutationKey&&Sr(u.mutationKey)!==Sr(this.options.mutationKey)?this.reset():((d=g(this,pt))==null?void 0:d.state.status)==="pending"&&g(this,pt).setOptions(this.options)}onUnsubscribe(){var s;this.hasListeners()||(s=g(this,pt))==null||s.removeObserver(this)}onMutationUpdate(s){oe(this,mn,Is).call(this),oe(this,mn,au).call(this,s)}getCurrentResult(){return g(this,Qn)}reset(){var s;(s=g(this,pt))==null||s.removeObserver(this),W(this,pt,void 0),oe(this,mn,Is).call(this),oe(this,mn,au).call(this)}mutate(s,u){var d;return W(this,fn,u),(d=g(this,pt))==null||d.removeObserver(this),W(this,pt,g(this,dn).getMutationCache().build(g(this,dn),this.options)),g(this,pt).addObserver(this),g(this,pt).execute(s)}},dn=new WeakMap,Qn=new WeakMap,pt=new WeakMap,fn=new WeakMap,mn=new WeakSet,Is=function(){var u;const s=((u=g(this,pt))==null?void 0:u.state)??_h();W(this,Qn,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},au=function(s){Qe.batch(()=>{var u,d,h,p,m,y,x,k;if(g(this,fn)&&this.hasListeners()){const C=g(this,Qn).variables,L=g(this,Qn).context,O={client:g(this,dn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((s==null?void 0:s.type)==="success"){try{(d=(u=g(this,fn)).onSuccess)==null||d.call(u,s.data,C,L,O)}catch(D){Promise.reject(D)}try{(p=(h=g(this,fn)).onSettled)==null||p.call(h,s.data,null,C,L,O)}catch(D){Promise.reject(D)}}else if((s==null?void 0:s.type)==="error"){try{(y=(m=g(this,fn)).onError)==null||y.call(m,s.error,C,L,O)}catch(D){Promise.reject(D)}try{(k=(x=g(this,fn)).onSettled)==null||k.call(x,void 0,s.error,C,L,O)}catch(D){Promise.reject(D)}}}this.listeners.forEach(C=>{C(g(this,Qn))})})},vh),Jt,yh,Iv=(yh=class extends oi{constructor(l={}){super();X(this,Jt);this.config=l,W(this,Jt,new Map)}build(l,s,u){const d=s.queryKey,h=s.queryHash??yu(d,s);let p=this.get(h);return p||(p=new jv({client:l,queryKey:d,queryHash:h,options:l.defaultQueryOptions(s),state:u,defaultOptions:l.getQueryDefaults(d)}),this.add(p)),p}add(l){g(this,Jt).has(l.queryHash)||(g(this,Jt).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const s=g(this,Jt).get(l.queryHash);s&&(l.destroy(),s===l&&g(this,Jt).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){Qe.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return g(this,Jt).get(l)}getAll(){return[...g(this,Jt).values()]}find(l){const s={exact:!0,...l};return this.getAll().find(u=>Uf(s,u))}findAll(l={}){const s=this.getAll();return Object.keys(l).length>0?s.filter(u=>Uf(l,u)):s}notify(l){Qe.batch(()=>{this.listeners.forEach(s=>{s(l)})})}onFocus(){Qe.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Qe.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},Jt=new WeakMap,yh),Fe,Hn,Wn,ri,ii,Vn,li,si,gh,Dv=(gh=class{constructor(r={}){X(this,Fe);X(this,Hn);X(this,Wn);X(this,ri);X(this,ii);X(this,Vn);X(this,li);X(this,si);W(this,Fe,r.queryCache||new Iv),W(this,Hn,r.mutationCache||new Tv),W(this,Wn,r.defaultOptions||{}),W(this,ri,new Map),W(this,ii,new Map),W(this,Vn,0)}mount(){Rs(this,Vn)._++,g(this,Vn)===1&&(W(this,li,vu.subscribe(async r=>{r&&(await this.resumePausedMutations(),g(this,Fe).onFocus())})),W(this,si,Ms.subscribe(async r=>{r&&(await this.resumePausedMutations(),g(this,Fe).onOnline())})))}unmount(){var r,l;Rs(this,Vn)._--,g(this,Vn)===0&&((r=g(this,li))==null||r.call(this),W(this,li,void 0),(l=g(this,si))==null||l.call(this),W(this,si,void 0))}isFetching(r){return g(this,Fe).findAll({...r,fetchStatus:"fetching"}).length}isMutating(r){return g(this,Hn).findAll({...r,status:"pending"}).length}getQueryData(r){var s;const l=this.defaultQueryOptions({queryKey:r});return(s=g(this,Fe).get(l.queryHash))==null?void 0:s.state.data}ensureQueryData(r){const l=this.defaultQueryOptions(r),s=g(this,Fe).build(this,l),u=s.state.data;return u===void 0?this.fetchQuery(r):(r.revalidateIfStale&&s.isStaleByTime(Gn(l.staleTime,s))&&this.prefetchQuery(l),Promise.resolve(u))}getQueriesData(r){return g(this,Fe).findAll(r).map(({queryKey:l,state:s})=>{const u=s.data;return[l,u]})}setQueryData(r,l,s){const u=this.defaultQueryOptions({queryKey:r}),d=g(this,Fe).get(u.queryHash),h=d==null?void 0:d.state.data,p=hv(l,h);if(p!==void 0)return g(this,Fe).build(this,u).setData(p,{...s,manual:!0})}setQueriesData(r,l,s){return Qe.batch(()=>g(this,Fe).findAll(r).map(({queryKey:u})=>[u,this.setQueryData(u,l,s)]))}getQueryState(r){var s;const l=this.defaultQueryOptions({queryKey:r});return(s=g(this,Fe).get(l.queryHash))==null?void 0:s.state}removeQueries(r){const l=g(this,Fe);Qe.batch(()=>{l.findAll(r).forEach(s=>{l.remove(s)})})}resetQueries(r,l){const s=g(this,Fe);return Qe.batch(()=>(s.findAll(r).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...r},l)))}cancelQueries(r,l={}){const s={revert:!0,...l},u=Qe.batch(()=>g(this,Fe).findAll(r).map(d=>d.cancel(s)));return Promise.all(u).then(st).catch(st)}invalidateQueries(r,l={}){return Qe.batch(()=>(g(this,Fe).findAll(r).forEach(s=>{s.invalidate()}),(r==null?void 0:r.refetchType)==="none"?Promise.resolve():this.refetchQueries({...r,type:(r==null?void 0:r.refetchType)??(r==null?void 0:r.type)??"active"},l)))}refetchQueries(r,l={}){const s={...l,cancelRefetch:l.cancelRefetch??!0},u=Qe.batch(()=>g(this,Fe).findAll(r).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let h=d.fetch(void 0,s);return s.throwOnError||(h=h.catch(st)),d.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(u).then(st)}fetchQuery(r){const l=this.defaultQueryOptions(r);l.retry===void 0&&(l.retry=!1);const s=g(this,Fe).build(this,l);return s.isStaleByTime(Gn(l.staleTime,s))?s.fetch(l):Promise.resolve(s.state.data)}prefetchQuery(r){return this.fetchQuery(r).then(st).catch(st)}fetchInfiniteQuery(r){return r._type="infinite",this.fetchQuery(r)}prefetchInfiniteQuery(r){return this.fetchInfiniteQuery(r).then(st).catch(st)}ensureInfiniteQueryData(r){return r._type="infinite",this.ensureQueryData(r)}resumePausedMutations(){return Ms.isOnline()?g(this,Hn).resumePausedMutations():Promise.resolve()}getQueryCache(){return g(this,Fe)}getMutationCache(){return g(this,Hn)}getDefaultOptions(){return g(this,Wn)}setDefaultOptions(r){W(this,Wn,r)}setQueryDefaults(r,l){g(this,ri).set(Sr(r),{queryKey:r,defaultOptions:l})}getQueryDefaults(r){const l=[...g(this,ri).values()],s={};return l.forEach(u=>{il(r,u.queryKey)&&Object.assign(s,u.defaultOptions)}),s}setMutationDefaults(r,l){g(this,ii).set(Sr(r),{mutationKey:r,defaultOptions:l})}getMutationDefaults(r){const l=[...g(this,ii).values()],s={};return l.forEach(u=>{il(r,u.mutationKey)&&Object.assign(s,u.defaultOptions)}),s}defaultQueryOptions(r){if(r._defaulted)return r;const l={...g(this,Wn).queries,...this.getQueryDefaults(r.queryKey),...r,_defaulted:!0};return l.queryHash||(l.queryHash=yu(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===gu&&(l.enabled=!1),l}defaultMutationOptions(r){return r!=null&&r._defaulted?r:{...g(this,Wn).mutations,...(r==null?void 0:r.mutationKey)&&this.getMutationDefaults(r.mutationKey),...r,_defaulted:!0}}clear(){g(this,Fe).clear(),g(this,Hn).clear()}},Fe=new WeakMap,Hn=new WeakMap,Wn=new WeakMap,ri=new WeakMap,ii=new WeakMap,Vn=new WeakMap,li=new WeakMap,si=new WeakMap,gh),Th=S.createContext(void 0),yn=r=>{const l=S.useContext(Th);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},Ov=({client:r,children:l})=>(S.useEffect(()=>(r.mount(),()=>{r.unmount()}),[r]),c.jsx(Th.Provider,{value:r,children:l})),Lh=S.createContext(!1),Fv=()=>S.useContext(Lh);Lh.Provider;function Mv(){let r=!1;return{clearReset:()=>{r=!1},reset:()=>{r=!0},isReset:()=>r}}var zv=S.createContext(Mv()),Av=()=>S.useContext(zv),Uv=(r,l,s)=>{const u=s!=null&&s.state.error&&typeof r.throwOnError=="function"?xu(r.throwOnError,[s.state.error,s]):r.throwOnError;(r.suspense||r.experimental_prefetchInRender||u)&&(l.isReset()||(r.retryOnMount=!1))},$v=r=>{S.useEffect(()=>{r.clearReset()},[r])},bv=({result:r,errorResetBoundary:l,throwOnError:s,query:u,suspense:d})=>r.isError&&!l.isReset()&&!r.isFetching&&u&&(d&&r.data===void 0||xu(s,[r.error,u])),Bv=r=>{if(r.suspense){const s=d=>d==="static"?d:Math.max(d??1e3,1e3),u=r.staleTime;r.staleTime=typeof u=="function"?(...d)=>s(u(...d)):s(u),typeof r.gcTime=="number"&&(r.gcTime=Math.max(r.gcTime,1e3))}},Qv=(r,l)=>r.isLoading&&r.isFetching&&!l,Hv=(r,l)=>(r==null?void 0:r.suspense)&&l.isPending,qf=(r,l,s)=>l.fetchOptimistic(r).catch(()=>{s.clearReset()});function Wv(r,l,s){var L,O,D,I;const u=Fv(),d=Av(),h=yn(),p=h.defaultQueryOptions(r);(O=(L=h.getDefaultOptions().queries)==null?void 0:L._experimental_beforeQuery)==null||O.call(L,p);const m=h.getQueryCache().get(p.queryHash);p._optimisticResults=u?"isRestoring":"optimistic",Bv(p),Uv(p,d,m),$v(d);const y=!h.getQueryCache().get(p.queryHash),[x]=S.useState(()=>new l(h,p)),k=x.getOptimisticResult(p),C=!u&&r.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(_=>{const R=C?x.subscribe(Qe.batchCalls(_)):st;return x.updateResult(),R},[x,C]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),S.useEffect(()=>{x.setOptions(p)},[p,x]),Hv(p,k))throw qf(p,x,d);if(bv({result:k,errorResetBoundary:d,throwOnError:p.throwOnError,query:m,suspense:p.suspense}))throw k.error;if((I=(D=h.getDefaultOptions().queries)==null?void 0:D._experimental_afterQuery)==null||I.call(D,p,k),p.experimental_prefetchInRender&&!ll.isServer()&&Qv(k,u)){const _=y?qf(p,x,d):m==null?void 0:m.promise;_==null||_.catch(st).finally(()=>{x.updateResult()})}return p.notifyOnChangeProps?k:x.trackResult(k)}function Yn(r,l){return Wv(r,Rv)}function Lt(r,l){const s=yn(),[u]=S.useState(()=>new Lv(s,r));S.useEffect(()=>{u.setOptions(r)},[u,r]);const d=S.useSyncExternalStore(S.useCallback(p=>u.subscribe(Qe.batchCalls(p)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),h=S.useCallback((p,m)=>{u.mutate(p,m).catch(st)},[u]);if(d.error&&xu(u.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:h,mutateAsync:d.mutate}}/** * react-router v7.15.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var Gf="popstate";function Yf(r){return typeof r=="object"&&r!=null&&"pathname"in r&&"search"in r&&"hash"in r&&"state"in r&&"key"in r}function Vv(r={}){function l(u,d){var x;let h=(x=d.state)==null?void 0:x.masked,{pathname:p,search:m,hash:y}=h||u.location;return uu("",{pathname:p,search:m,hash:y},d.state&&d.state.usr||null,d.state&&d.state.key||"default",h?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function s(u,d){return typeof d=="string"?d:sl(d)}return qv(l,s,null,r)}function Te(r,l){if(r===!1||r===null||typeof r>"u")throw new Error(l)}function It(r,l){if(!r){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function Kv(){return Math.random().toString(36).substring(2,10)}function Jf(r,l){return{usr:r.state,key:r.key,idx:l,masked:r.mask?{pathname:r.pathname,search:r.search,hash:r.hash}:void 0}}function uu(r,l,s=null,u,d){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof l=="string"?ai(l):l,state:s,key:l&&l.key||u||Kv(),mask:d}}function sl({pathname:r="/",search:l="",hash:s=""}){return l&&l!=="?"&&(r+=l.charAt(0)==="?"?l:"?"+l),s&&s!=="#"&&(r+=s.charAt(0)==="#"?s:"#"+s),r}function ai(r){let l={};if(r){let s=r.indexOf("#");s>=0&&(l.hash=r.substring(s),r=r.substring(0,s));let u=r.indexOf("?");u>=0&&(l.search=r.substring(u),r=r.substring(0,u)),r&&(l.pathname=r)}return l}function qv(r,l,s,u={}){let{window:d=document.defaultView,v5Compat:h=!1}=u,p=d.history,m="POP",y=null,x=k();x==null&&(x=0,p.replaceState({...p.state,idx:x},""));function k(){return(p.state||{idx:null}).idx}function C(){m="POP";let _=k(),R=_==null?null:_-x;x=_,y&&y({action:m,location:I.location,delta:R})}function L(_,R){m="PUSH";let b=Yf(_)?_:uu(I.location,_,R);x=k()+1;let B=Jf(b,x),z=I.createHref(b.mask||b);try{p.pushState(B,"",z)}catch(Z){if(Z instanceof DOMException&&Z.name==="DataCloneError")throw Z;d.location.assign(z)}h&&y&&y({action:m,location:I.location,delta:1})}function O(_,R){m="REPLACE";let b=Yf(_)?_:uu(I.location,_,R);x=k();let B=Jf(b,x),z=I.createHref(b.mask||b);p.replaceState(B,"",z),h&&y&&y({action:m,location:I.location,delta:0})}function D(_){return Gv(_)}let I={get action(){return m},get location(){return r(d,p)},listen(_){if(y)throw new Error("A history only accepts one active listener");return d.addEventListener(Gf,C),y=_,()=>{d.removeEventListener(Gf,C),y=null}},createHref(_){return l(d,_)},createURL:D,encodeLocation(_){let R=D(_);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:L,replace:O,go(_){return p.go(_)}};return I}function Gv(r,l=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Te(s,"No window.location.(origin|href) available to create URL");let u=typeof r=="string"?r:sl(r);return u=u.replace(/ $/,"%20"),!l&&u.startsWith("//")&&(u=s+u),new URL(u,s)}function Ih(r,l,s="/"){return Yv(r,l,s,!1)}function Yv(r,l,s,u,d){let h=typeof l=="string"?ai(l):l,p=vn(h.pathname||"/",s);if(p==null)return null;let m=Jv(r),y=null,x=uy(p);for(let k=0;y==null&&k{let k={relativePath:x===void 0?p.path||"":x,caseSensitive:p.caseSensitive===!0,childrenIndex:m,route:p};if(k.relativePath.startsWith("/")){if(!k.relativePath.startsWith(u)&&y)return;Te(k.relativePath.startsWith(u),`Absolute route path "${k.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),k.relativePath=k.relativePath.slice(u.length)}let C=Bt([u,k.relativePath]),L=s.concat(k);p.children&&p.children.length>0&&(Te(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${C}".`),Dh(p.children,l,L,C,y)),!(p.path==null&&!p.index)&&l.push({path:C,score:ly(C,p.index),routesMeta:L})};return r.forEach((p,m)=>{var y;if(p.path===""||!((y=p.path)!=null&&y.includes("?")))h(p,m);else for(let x of Oh(p.path))h(p,m,!0,x)}),l}function Oh(r){let l=r.split("/");if(l.length===0)return[];let[s,...u]=l,d=s.endsWith("?"),h=s.replace(/\?$/,"");if(u.length===0)return d?[h,""]:[h];let p=Oh(u.join("/")),m=[];return m.push(...p.map(y=>y===""?h:[h,y].join("/"))),d&&m.push(...p),m.map(y=>r.startsWith("/")&&y===""?"/":y)}function Xv(r){r.sort((l,s)=>l.score!==s.score?s.score-l.score:sy(l.routesMeta.map(u=>u.childrenIndex),s.routesMeta.map(u=>u.childrenIndex)))}var Zv=/^:[\w-]+$/,ey=3,ty=2,ny=1,ry=10,iy=-2,Xf=r=>r==="*";function ly(r,l){let s=r.split("/"),u=s.length;return s.some(Xf)&&(u+=iy),l&&(u+=ty),s.filter(d=>!Xf(d)).reduce((d,h)=>d+(Zv.test(h)?ey:h===""?ny:ry),u)}function sy(r,l){return r.length===l.length&&r.slice(0,-1).every((u,d)=>u===l[d])?r[r.length-1]-l[l.length-1]:0}function oy(r,l,s=!1){let{routesMeta:u}=r,d={},h="/",p=[];for(let m=0;m{if(k==="*"){let D=m[L]||"";p=h.slice(0,h.length-D.length).replace(/(.)\/+$/,"$1")}const O=m[L];return C&&!O?x[k]=void 0:x[k]=(O||"").replace(/%2F/g,"/"),x},{}),pathname:h,pathnameBase:p,pattern:r}}function ay(r,l=!1,s=!0){It(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let u=[],d="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,m,y,x,k)=>{if(u.push({paramName:m,isOptional:y!=null}),y){let C=k.charAt(x+p.length);return C&&C!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(u.push({paramName:"*"}),d+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?d+="\\/*$":r!==""&&r!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,l?void 0:"i"),u]}function uy(r){try{return r.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return It(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),r}}function vn(r,l){if(l==="/")return r;if(!r.toLowerCase().startsWith(l.toLowerCase()))return null;let s=l.endsWith("/")?l.length-1:l.length,u=r.charAt(s);return u&&u!=="/"?null:r.slice(s)||"/"}var cy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function dy(r,l="/"){let{pathname:s,search:u="",hash:d=""}=typeof r=="string"?ai(r):r,h;return s?(s=Fh(s),s.startsWith("/")?h=Zf(s.substring(1),"/"):h=Zf(s,l)):h=l,{pathname:h,search:py(u),hash:my(d)}}function Zf(r,l){let s=As(l).split("/");return r.split("/").forEach(d=>{d===".."?s.length>1&&s.pop():d!=="."&&s.push(d)}),s.length>1?s.join("/"):"/"}function Ha(r,l,s,u){return`Cannot include a '${r}' character in a manually specified \`to.${l}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function fy(r){return r.filter((l,s)=>s===0||l.route.path&&l.route.path.length>0)}function wu(r){let l=fy(r);return l.map((s,u)=>u===l.length-1?s.pathname:s.pathnameBase)}function $s(r,l,s,u=!1){let d;typeof r=="string"?d=ai(r):(d={...r},Te(!d.pathname||!d.pathname.includes("?"),Ha("?","pathname","search",d)),Te(!d.pathname||!d.pathname.includes("#"),Ha("#","pathname","hash",d)),Te(!d.search||!d.search.includes("#"),Ha("#","search","hash",d)));let h=r===""||d.pathname==="",p=h?"/":d.pathname,m;if(p==null)m=s;else{let C=l.length-1;if(!u&&p.startsWith("..")){let L=p.split("/");for(;L[0]==="..";)L.shift(),C-=1;d.pathname=L.join("/")}m=C>=0?l[C]:"/"}let y=dy(d,m),x=p&&p!=="/"&&p.endsWith("/"),k=(h||p===".")&&s.endsWith("/");return!y.pathname.endsWith("/")&&(x||k)&&(y.pathname+="/"),y}var Fh=r=>r.replace(/\/\/+/g,"/"),Bt=r=>Fh(r.join("/")),As=r=>r.replace(/\/+$/,""),hy=r=>As(r).replace(/^\/*/,"/"),py=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,my=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r,vy=class{constructor(r,l,s,u=!1){this.status=r,this.statusText=l||"",this.internal=u,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function yy(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}function gy(r){let l=r.map(s=>s.route.path).filter(Boolean);return Bt(l)||"/"}var Mh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function zh(r,l){let s=r;if(typeof s!="string"||!cy.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let u=s,d=!1;if(Mh)try{let h=new URL(window.location.href),p=s.startsWith("//")?new URL(h.protocol+s):new URL(s),m=vn(p.pathname,l);p.origin===h.origin&&m!=null?s=m+p.search+p.hash:d=!0}catch{It(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:d,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ah=["POST","PUT","PATCH","DELETE"];new Set(Ah);var xy=["GET",...Ah];new Set(xy);var ui=S.createContext(null);ui.displayName="DataRouter";var bs=S.createContext(null);bs.displayName="DataRouterState";var Uh=S.createContext(!1);function Sy(){return S.useContext(Uh)}var $h=S.createContext({isTransitioning:!1});$h.displayName="ViewTransition";var wy=S.createContext(new Map);wy.displayName="Fetchers";var Ey=S.createContext(null);Ey.displayName="Await";var Et=S.createContext(null);Et.displayName="Navigation";var fl=S.createContext(null);fl.displayName="Location";var Qt=S.createContext({outlet:null,matches:[],isDataRoute:!1});Qt.displayName="Route";var Eu=S.createContext(null);Eu.displayName="RouteError";var bh="REACT_ROUTER_ERROR",Cy="REDIRECT",ky="ROUTE_ERROR_RESPONSE";function jy(r){if(r.startsWith(`${bh}:${Cy}:{`))try{let l=JSON.parse(r.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function Ry(r){if(r.startsWith(`${bh}:${ky}:{`))try{let l=JSON.parse(r.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new vy(l.status,l.statusText,l.data)}catch{}}function Py(r,{relative:l}={}){Te(ci(),"useHref() may be used only in the context of a component.");let{basename:s,navigator:u}=S.useContext(Et),{hash:d,pathname:h,search:p}=pl(r,{relative:l}),m=h;return s!=="/"&&(m=h==="/"?s:Bt([s,h])),u.createHref({pathname:m,search:p,hash:d})}function ci(){return S.useContext(fl)!=null}function Ct(){return Te(ci(),"useLocation() may be used only in the context of a component."),S.useContext(fl).location}var Bh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Qh(r){S.useContext(Et).static||S.useLayoutEffect(r)}function hl(){let{isDataRoute:r}=S.useContext(Qt);return r?$y():Ny()}function Ny(){Te(ci(),"useNavigate() may be used only in the context of a component.");let r=S.useContext(ui),{basename:l,navigator:s}=S.useContext(Et),{matches:u}=S.useContext(Qt),{pathname:d}=Ct(),h=JSON.stringify(wu(u)),p=S.useRef(!1);return Qh(()=>{p.current=!0}),S.useCallback((y,x={})=>{if(It(p.current,Bh),!p.current)return;if(typeof y=="number"){s.go(y);return}let k=$s(y,JSON.parse(h),d,x.relative==="path");r==null&&l!=="/"&&(k.pathname=k.pathname==="/"?l:Bt([l,k.pathname])),(x.replace?s.replace:s.push)(k,x.state,x)},[l,s,h,d,r])}S.createContext(null);function Hh(){let{matches:r}=S.useContext(Qt),l=r[r.length-1];return(l==null?void 0:l.params)??{}}function pl(r,{relative:l}={}){let{matches:s}=S.useContext(Qt),{pathname:u}=Ct(),d=JSON.stringify(wu(s));return S.useMemo(()=>$s(r,JSON.parse(d),u,l==="path"),[r,d,u,l])}function _y(r,l){return Wh(r,l)}function Wh(r,l,s){var _;Te(ci(),"useRoutes() may be used only in the context of a component.");let{navigator:u}=S.useContext(Et),{matches:d}=S.useContext(Qt),h=d[d.length-1],p=h?h.params:{},m=h?h.pathname:"/",y=h?h.pathnameBase:"/",x=h&&h.route;{let R=x&&x.path||"";Kh(m,!x||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${m}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let k=Ct(),C;if(l){let R=typeof l=="string"?ai(l):l;Te(y==="/"||((_=R.pathname)==null?void 0:_.startsWith(y)),`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 "${y}" but pathname "${R.pathname}" was given in the \`location\` prop.`),C=R}else C=k;let L=C.pathname||"/",O=L;if(y!=="/"){let R=y.replace(/^\//,"").split("/");O="/"+L.replace(/^\//,"").split("/").slice(R.length).join("/")}let D=s&&s.state.matches.length?s.state.matches.map(R=>Object.assign(R,{route:s.manifest[R.route.id]||R.route})):Ih(r,{pathname:O});It(x||D!=null,`No routes matched location "${C.pathname}${C.search}${C.hash}" `),It(D==null||D[D.length-1].route.element!==void 0||D[D.length-1].route.Component!==void 0||D[D.length-1].route.lazy!==void 0,`Matched leaf route at location "${C.pathname}${C.search}${C.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 I=Oy(D&&D.map(R=>Object.assign({},R,{params:Object.assign({},p,R.params),pathname:Bt([y,u.encodeLocation?u.encodeLocation(R.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?y:Bt([y,u.encodeLocation?u.encodeLocation(R.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),d,s);return l&&I?S.createElement(fl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...C},navigationType:"POP"}},I):I}function Ty(){let r=Uy(),l=yy(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),s=r instanceof Error?r.stack:null,u="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:u},h={padding:"2px 4px",backgroundColor:u},p=null;return console.error("Error handled by React Router default ErrorBoundary:",r),p=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:h},"ErrorBoundary")," or"," ",S.createElement("code",{style:h},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},l),s?S.createElement("pre",{style:d},s):null,p)}var Ly=S.createElement(Ty,null),Vh=class extends S.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,l){return l.location!==r.location||l.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:l.error,location:l.location,revalidation:r.revalidation||l.revalidation}}componentDidCatch(r,l){this.props.onError?this.props.onError(r,l):console.error("React Router caught the following error during render",r)}render(){let r=this.state.error;if(this.context&&typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){const s=Ry(r.digest);s&&(r=s)}let l=r!==void 0?S.createElement(Qt.Provider,{value:this.props.routeContext},S.createElement(Eu.Provider,{value:r,children:this.props.component})):this.props.children;return this.context?S.createElement(Iy,{error:r},l):l}};Vh.contextType=Uh;var Wa=new WeakMap;function Iy({children:r,error:l}){let{basename:s}=S.useContext(Et);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let u=jy(l.digest);if(u){let d=Wa.get(l);if(d)throw d;let h=zh(u.location,s);if(Mh&&!Wa.get(l))if(h.isExternal||u.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:u.replace}));throw Wa.set(l,p),p}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return r}function Dy({routeContext:r,match:l,children:s}){let u=S.useContext(ui);return u&&u.static&&u.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=l.route.id),S.createElement(Qt.Provider,{value:r},s)}function Oy(r,l=[],s){let u=s==null?void 0:s.state;if(r==null){if(!u)return null;if(u.errors)r=u.matches;else if(l.length===0&&!u.initialized&&u.matches.length>0)r=u.matches;else return null}let d=r,h=u==null?void 0:u.errors;if(h!=null){let k=d.findIndex(C=>C.route.id&&(h==null?void 0:h[C.route.id])!==void 0);Te(k>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,k+1))}let p=!1,m=-1;if(s&&u){p=u.renderFallback;for(let k=0;k=0?d=d.slice(0,m+1):d=[d[0]];break}}}}let y=s==null?void 0:s.onError,x=u&&y?(k,C)=>{var L,O;y(k,{location:u.location,params:((O=(L=u.matches)==null?void 0:L[0])==null?void 0:O.params)??{},pattern:gy(u.matches),errorInfo:C})}:void 0;return d.reduceRight((k,C,L)=>{let O,D=!1,I=null,_=null;u&&(O=h&&C.route.id?h[C.route.id]:void 0,I=C.route.errorElement||Ly,p&&(m<0&&L===0?(Kh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,_=null):m===L&&(D=!0,_=C.route.hydrateFallbackElement||null)));let R=l.concat(d.slice(0,L+1)),b=()=>{let B;return O?B=I:D?B=_:C.route.Component?B=S.createElement(C.route.Component,null):C.route.element?B=C.route.element:B=k,S.createElement(Dy,{match:C,routeContext:{outlet:k,matches:R,isDataRoute:u!=null},children:B})};return u&&(C.route.ErrorBoundary||C.route.errorElement||L===0)?S.createElement(Vh,{location:u.location,revalidation:u.revalidation,component:I,error:O,children:b(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:x}):b()},null)}function Cu(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fy(r){let l=S.useContext(ui);return Te(l,Cu(r)),l}function My(r){let l=S.useContext(bs);return Te(l,Cu(r)),l}function zy(r){let l=S.useContext(Qt);return Te(l,Cu(r)),l}function ku(r){let l=zy(r),s=l.matches[l.matches.length-1];return Te(s.route.id,`${r} can only be used on routes that contain a unique "id"`),s.route.id}function Ay(){return ku("useRouteId")}function Uy(){var u;let r=S.useContext(Eu),l=My("useRouteError"),s=ku("useRouteError");return r!==void 0?r:(u=l.errors)==null?void 0:u[s]}function $y(){let{router:r}=Fy("useNavigate"),l=ku("useNavigate"),s=S.useRef(!1);return Qh(()=>{s.current=!0}),S.useCallback(async(d,h={})=>{It(s.current,Bh),s.current&&(typeof d=="number"?await r.navigate(d):await r.navigate(d,{fromRouteId:l,...h}))},[r,l])}var eh={};function Kh(r,l,s){!l&&!eh[r]&&(eh[r]=!0,It(!1,s))}S.memo(by);function by({routes:r,manifest:l,future:s,state:u,isStatic:d,onError:h}){return Wh(r,void 0,{manifest:l,state:u,isStatic:d,onError:h})}function cu({to:r,replace:l,state:s,relative:u}){Te(ci()," may be used only in the context of a component.");let{static:d}=S.useContext(Et);It(!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:h}=S.useContext(Qt),{pathname:p}=Ct(),m=hl(),y=$s(r,wu(h),p,u==="path"),x=JSON.stringify(y);return S.useEffect(()=>{m(JSON.parse(x),{replace:l,state:s,relative:u})},[m,x,u,l,s]),null}function $t(r){Te(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function By({basename:r="/",children:l=null,location:s,navigationType:u="POP",navigator:d,static:h=!1,useTransitions:p}){Te(!ci(),"You cannot render a inside another . You should never have more than one in your app.");let m=r.replace(/^\/*/,"/"),y=S.useMemo(()=>({basename:m,navigator:d,static:h,useTransitions:p,future:{}}),[m,d,h,p]);typeof s=="string"&&(s=ai(s));let{pathname:x="/",search:k="",hash:C="",state:L=null,key:O="default",mask:D}=s,I=S.useMemo(()=>{let _=vn(x,m);return _==null?null:{location:{pathname:_,search:k,hash:C,state:L,key:O,mask:D},navigationType:u}},[m,x,k,C,L,O,u,D]);return It(I!=null,` is not able to match the URL "${x}${k}${C}" because it does not start with the basename, so the won't render anything.`),I==null?null:S.createElement(Et.Provider,{value:y},S.createElement(fl.Provider,{children:l,value:I}))}function Qy({children:r,location:l}){return _y(du(r),l)}function du(r,l=[]){let s=[];return S.Children.forEach(r,(u,d)=>{if(!S.isValidElement(u))return;let h=[...l,d];if(u.type===S.Fragment){s.push.apply(s,du(u.props.children,h));return}Te(u.type===$t,`[${typeof u.type=="string"?u.type:u.type.name}] is not a component. All component children of must be a or `),Te(!u.props.index||!u.props.children,"An index route cannot have child routes.");let p={id:u.props.id||h.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(p.children=du(u.props.children,h)),s.push(p)}),s}var Ds="get",Os="application/x-www-form-urlencoded";function Bs(r){return typeof HTMLElement<"u"&&r instanceof HTMLElement}function Hy(r){return Bs(r)&&r.tagName.toLowerCase()==="button"}function Wy(r){return Bs(r)&&r.tagName.toLowerCase()==="form"}function Vy(r){return Bs(r)&&r.tagName.toLowerCase()==="input"}function Ky(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function qy(r,l){return r.button===0&&(!l||l==="_self")&&!Ky(r)}function fu(r=""){return new URLSearchParams(typeof r=="string"||Array.isArray(r)||r instanceof URLSearchParams?r:Object.keys(r).reduce((l,s)=>{let u=r[s];return l.concat(Array.isArray(u)?u.map(d=>[s,d]):[[s,u]])},[]))}function Gy(r,l){let s=fu(r);return l&&l.forEach((u,d)=>{s.has(d)||l.getAll(d).forEach(h=>{s.append(d,h)})}),s}var _s=null;function Yy(){if(_s===null)try{new FormData(document.createElement("form"),0),_s=!1}catch{_s=!0}return _s}var Jy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Va(r){return r!=null&&!Jy.has(r)?(It(!1,`"${r}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Os}"`),null):r}function Xy(r,l){let s,u,d,h,p;if(Wy(r)){let m=r.getAttribute("action");u=m?vn(m,l):null,s=r.getAttribute("method")||Ds,d=Va(r.getAttribute("enctype"))||Os,h=new FormData(r)}else if(Hy(r)||Vy(r)&&(r.type==="submit"||r.type==="image")){let m=r.form;if(m==null)throw new Error('Cannot submit a