@ottocode/web-ui 0.1.271 → 0.1.273

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,4 +6,4 @@ var WS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"
6
6
  `+_[a].replace(" at new "," at ");return t.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",t.displayName)),w}while(1<=a&&0<=u);break}}}finally{gl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Ye(n):""}function Oi(t,e){switch(t.tag){case 26:case 27:case 5:return Ye(t.type);case 16:return Ye("Lazy");case 13:return t.child!==e&&e!==null?Ye("Suspense Fallback"):Ye("Suspense");case 19:return Ye("SuspenseList");case 0:case 15:return Ta(t.type,!1);case 11:return Ta(t.type.render,!1);case 1:return Ta(t.type,!0);case 31:return Ye("Activity");default:return""}}function ke(t){try{var e="",n=null;do e+=Oi(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
7
7
  Error generating stack: `+a.message+`
8
8
  `+a.stack}}var Fn=Object.prototype.hasOwnProperty,je=l.unstable_scheduleCallback,Sl=l.unstable_cancelCallback,Ci=l.unstable_shouldYield,rs=l.unstable_requestPaint,ne=l.unstable_now,xt=l.unstable_getCurrentPriorityLevel,kt=l.unstable_ImmediatePriority,Ge=l.unstable_UserBlockingPriority,Ma=l.unstable_NormalPriority,Py=l.unstable_LowPriority,hr=l.unstable_IdlePriority,Fy=l.log,ky=l.unstable_setDisableYieldValue,bl=null,ye=null;function Sn(t){if(typeof Fy=="function"&&ky(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(bl,t)}catch{}}var ve=Math.clz32?Math.clz32:$y,Wy=Math.log,Iy=Math.LN2;function $y(t){return t>>>=0,t===0?32:31-(Wy(t)/Iy|0)|0}var Ai=256,xi=262144,zi=4194304;function kn(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Di(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var u=0,c=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var v=a&134217727;return v!==0?(a=v&~c,a!==0?u=kn(a):(f&=v,f!==0?u=kn(f):n||(n=v&~t,n!==0&&(u=kn(n))))):(v=a&~c,v!==0?u=kn(v):f!==0?u=kn(f):n||(n=a&~t,n!==0&&(u=kn(n)))),u===0?0:e!==0&&e!==u&&(e&c)===0&&(c=u&-u,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:u}function _l(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function tv(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function dr(){var t=zi;return zi<<=1,(zi&62914560)===0&&(zi=4194304),t}function fs(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Rl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ev(t,e,n,a,u,c){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var v=t.entanglements,_=t.expirationTimes,x=t.hiddenUpdates;for(n=f&~n;0<n;){var w=31-ve(n),Q=1<<w;v[w]=0,_[w]=-1;var z=x[w];if(z!==null)for(x[w]=null,w=0;w<z.length;w++){var U=z[w];U!==null&&(U.lane&=-536870913)}n&=~Q}a!==0&&mr(t,a,0),c!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function mr(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ve(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function yr(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-ve(n),u=1<<a;u&e|t[a]&e&&(t[a]|=e),n&=~u}}function vr(t,e){var n=e&-e;return n=(n&42)!==0?1:hs(n),(n&(t.suspendedLanes|e))!==0?0:n}function hs(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ds(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function pr(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:am(t.type))}function gr(t,e){var n=V.p;try{return V.p=t,e()}finally{V.p=n}}var bn=Math.random().toString(36).slice(2),Wt="__reactFiber$"+bn,se="__reactProps$"+bn,Oa="__reactContainer$"+bn,ms="__reactEvents$"+bn,nv="__reactListeners$"+bn,av="__reactHandles$"+bn,Sr="__reactResources$"+bn,El="__reactMarker$"+bn;function ys(t){delete t[Wt],delete t[se],delete t[ms],delete t[nv],delete t[av]}function Ca(t){var e=t[Wt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Oa]||n[Wt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Yd(t);t!==null;){if(n=t[Wt])return n;t=Yd(t)}return e}t=n,n=t.parentNode}return null}function Aa(t){if(t=t[Wt]||t[Oa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Tl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function xa(t){var e=t[Sr];return e||(e=t[Sr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Pt(t){t[El]=!0}var br=new Set,_r={};function Wn(t,e){za(t,e),za(t+"Capture",e)}function za(t,e){for(_r[t]=e,t=0;t<e.length;t++)br.add(e[t])}var lv=RegExp("^[: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]*$"),Rr={},Er={};function iv(t){return Fn.call(Er,t)?!0:Fn.call(Rr,t)?!1:lv.test(t)?Er[t]=!0:(Rr[t]=!0,!1)}function Ui(t,e,n){if(iv(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Li(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function We(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function Oe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Tr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function uv(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var u=a.get,c=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function vs(t){if(!t._valueTracker){var e=Tr(t)?"checked":"value";t._valueTracker=uv(t,e,""+t[e])}}function Mr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Tr(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function Ni(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var sv=/[\n"\\]/g;function Ce(t){return t.replace(sv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ps(t,e,n,a,u,c,f,v){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Oe(e)):t.value!==""+Oe(e)&&(t.value=""+Oe(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?gs(t,f,Oe(e)):n!=null?gs(t,f,Oe(n)):a!=null&&t.removeAttribute("value"),u==null&&c!=null&&(t.defaultChecked=!!c),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+Oe(v):t.removeAttribute("name")}function Or(t,e,n,a,u,c,f,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){vs(t);return}n=n!=null?""+Oe(n):"",e=e!=null?""+Oe(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=v?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),vs(t)}function gs(t,e,n){e==="number"&&Ni(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Da(t,e,n,a){if(t=t.options,e){e={};for(var u=0;u<n.length;u++)e["$"+n[u]]=!0;for(n=0;n<t.length;n++)u=e.hasOwnProperty("$"+t[n].value),t[n].selected!==u&&(t[n].selected=u),u&&a&&(t[n].defaultSelected=!0)}else{for(n=""+Oe(n),e=null,u=0;u<t.length;u++){if(t[u].value===n){t[u].selected=!0,a&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function Cr(t,e,n){if(e!=null&&(e=""+Oe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Oe(n):""}function Ar(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(Ht(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Oe(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),vs(t)}function Ua(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var cv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function xr(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||cv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function zr(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var u in e)a=e[u],e.hasOwnProperty(u)&&n[u]!==a&&xr(t,u,a)}else for(var c in e)e.hasOwnProperty(c)&&xr(t,c,e[c])}function Ss(t){if(t.indexOf("-")===-1)return!1;switch(t){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 ov=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),rv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function wi(t){return rv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Ie(){}var bs=null;function _s(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var La=null,Na=null;function Dr(t){var e=Aa(t);if(e&&(t=e.stateNode)){var n=t[se]||null;t:switch(t=e.stateNode,e.type){case"input":if(ps(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ce(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var u=a[se]||null;if(!u)throw Error(o(90));ps(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&Mr(a)}break t;case"textarea":Cr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Da(t,!!n.multiple,e,!1)}}}var Rs=!1;function Ur(t,e,n){if(Rs)return t(e,n);Rs=!0;try{var a=t(e);return a}finally{if(Rs=!1,(La!==null||Na!==null)&&(Ru(),La&&(e=La,t=Na,Na=La=null,Dr(e),t)))for(e=0;e<t.length;e++)Dr(t[e])}}function Ml(t,e){var n=t.stateNode;if(n===null)return null;var a=n[se]||null;if(a===null)return null;n=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var $e=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Es=!1;if($e)try{var Ol={};Object.defineProperty(Ol,"passive",{get:function(){Es=!0}}),window.addEventListener("test",Ol,Ol),window.removeEventListener("test",Ol,Ol)}catch{Es=!1}var _n=null,Ts=null,Bi=null;function Lr(){if(Bi)return Bi;var t,e=Ts,n=e.length,a,u="value"in _n?_n.value:_n.textContent,c=u.length;for(t=0;t<n&&e[t]===u[t];t++);var f=n-t;for(a=1;a<=f&&e[n-a]===u[c-a];a++);return Bi=u.slice(t,1<a?1-a:void 0)}function ji(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Hi(){return!0}function Nr(){return!1}function ce(t){function e(n,a,u,c,f){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Hi:Nr,this.isPropagationStopped=Nr,this}return g(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Hi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hi)},persist:function(){},isPersistent:Hi}),e}var In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qi=ce(In),Cl=g({},In,{view:0,detail:0}),fv=ce(Cl),Ms,Os,Al,Qi=g({},Cl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:As,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Al&&(Al&&t.type==="mousemove"?(Ms=t.screenX-Al.screenX,Os=t.screenY-Al.screenY):Os=Ms=0,Al=t),Ms)},movementY:function(t){return"movementY"in t?t.movementY:Os}}),wr=ce(Qi),hv=g({},Qi,{dataTransfer:0}),dv=ce(hv),mv=g({},Cl,{relatedTarget:0}),Cs=ce(mv),yv=g({},In,{animationName:0,elapsedTime:0,pseudoElement:0}),vv=ce(yv),pv=g({},In,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),gv=ce(pv),Sv=g({},In,{data:0}),Br=ce(Sv),bv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_v={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Rv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ev(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Rv[t])?!!e[t]:!1}function As(){return Ev}var Tv=g({},Cl,{key:function(t){if(t.key){var e=bv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ji(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?_v[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:As,charCode:function(t){return t.type==="keypress"?ji(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ji(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Mv=ce(Tv),Ov=g({},Qi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jr=ce(Ov),Cv=g({},Cl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:As}),Av=ce(Cv),xv=g({},In,{propertyName:0,elapsedTime:0,pseudoElement:0}),zv=ce(xv),Dv=g({},Qi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Uv=ce(Dv),Lv=g({},In,{newState:0,oldState:0}),Nv=ce(Lv),wv=[9,13,27,32],xs=$e&&"CompositionEvent"in window,xl=null;$e&&"documentMode"in document&&(xl=document.documentMode);var Bv=$e&&"TextEvent"in window&&!xl,Hr=$e&&(!xs||xl&&8<xl&&11>=xl),qr=" ",Qr=!1;function Yr(t,e){switch(t){case"keyup":return wv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var wa=!1;function jv(t,e){switch(t){case"compositionend":return Gr(e);case"keypress":return e.which!==32?null:(Qr=!0,qr);case"textInput":return t=e.data,t===qr&&Qr?null:t;default:return null}}function Hv(t,e){if(wa)return t==="compositionend"||!xs&&Yr(t,e)?(t=Lr(),Bi=Ts=_n=null,wa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Hr&&e.locale!=="ko"?null:e.data;default:return null}}var qv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Xr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!qv[t.type]:e==="textarea"}function Vr(t,e,n,a){La?Na?Na.push(a):Na=[a]:La=a,e=xu(e,"onChange"),0<e.length&&(n=new qi("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var zl=null,Dl=null;function Qv(t){Cd(t,0)}function Yi(t){var e=Tl(t);if(Mr(e))return t}function Kr(t,e){if(t==="change")return e}var Zr=!1;if($e){var zs;if($e){var Ds="oninput"in document;if(!Ds){var Jr=document.createElement("div");Jr.setAttribute("oninput","return;"),Ds=typeof Jr.oninput=="function"}zs=Ds}else zs=!1;Zr=zs&&(!document.documentMode||9<document.documentMode)}function Pr(){zl&&(zl.detachEvent("onpropertychange",Fr),Dl=zl=null)}function Fr(t){if(t.propertyName==="value"&&Yi(Dl)){var e=[];Vr(e,Dl,t,_s(t)),Ur(Qv,e)}}function Yv(t,e,n){t==="focusin"?(Pr(),zl=e,Dl=n,zl.attachEvent("onpropertychange",Fr)):t==="focusout"&&Pr()}function Gv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Yi(Dl)}function Xv(t,e){if(t==="click")return Yi(e)}function Vv(t,e){if(t==="input"||t==="change")return Yi(e)}function Kv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pe=typeof Object.is=="function"?Object.is:Kv;function Ul(t,e){if(pe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var u=n[a];if(!Fn.call(e,u)||!pe(t[u],e[u]))return!1}return!0}function kr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Wr(t,e){var n=kr(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=kr(n)}}function Ir(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Ir(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function $r(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ni(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ni(t.document)}return e}function Us(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Zv=$e&&"documentMode"in document&&11>=document.documentMode,Ba=null,Ls=null,Ll=null,Ns=!1;function tf(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ns||Ba==null||Ba!==Ni(a)||(a=Ba,"selectionStart"in a&&Us(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ll&&Ul(Ll,a)||(Ll=a,a=xu(Ls,"onSelect"),0<a.length&&(e=new qi("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=Ba)))}function $n(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var ja={animationend:$n("Animation","AnimationEnd"),animationiteration:$n("Animation","AnimationIteration"),animationstart:$n("Animation","AnimationStart"),transitionrun:$n("Transition","TransitionRun"),transitionstart:$n("Transition","TransitionStart"),transitioncancel:$n("Transition","TransitionCancel"),transitionend:$n("Transition","TransitionEnd")},ws={},ef={};$e&&(ef=document.createElement("div").style,"AnimationEvent"in window||(delete ja.animationend.animation,delete ja.animationiteration.animation,delete ja.animationstart.animation),"TransitionEvent"in window||delete ja.transitionend.transition);function ta(t){if(ws[t])return ws[t];if(!ja[t])return t;var e=ja[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in ef)return ws[t]=e[n];return t}var nf=ta("animationend"),af=ta("animationiteration"),lf=ta("animationstart"),Jv=ta("transitionrun"),Pv=ta("transitionstart"),Fv=ta("transitioncancel"),uf=ta("transitionend"),sf=new Map,Bs="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Bs.push("scrollEnd");function He(t,e){sf.set(t,e),Wn(e,[t])}var Gi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ae=[],Ha=0,js=0;function Xi(){for(var t=Ha,e=js=Ha=0;e<t;){var n=Ae[e];Ae[e++]=null;var a=Ae[e];Ae[e++]=null;var u=Ae[e];Ae[e++]=null;var c=Ae[e];if(Ae[e++]=null,a!==null&&u!==null){var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}c!==0&&cf(n,u,c)}}function Vi(t,e,n,a){Ae[Ha++]=t,Ae[Ha++]=e,Ae[Ha++]=n,Ae[Ha++]=a,js|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Hs(t,e,n,a){return Vi(t,e,n,a),Ki(t)}function ea(t,e){return Vi(t,null,null,e),Ki(t)}function cf(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var u=!1,c=t.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(u=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,u&&e!==null&&(u=31-ve(n),t=c.hiddenUpdates,a=t[u],a===null?t[u]=[e]:a.push(e),e.lane=n|536870912),c):null}function Ki(t){if(50<ei)throw ei=0,Jc=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var qa={};function kv(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ge(t,e,n,a){return new kv(t,e,n,a)}function qs(t){return t=t.prototype,!(!t||!t.isReactComponent)}function tn(t,e){var n=t.alternate;return n===null?(n=ge(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function of(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Zi(t,e,n,a,u,c){var f=0;if(a=t,typeof t=="function")qs(t)&&(f=1);else if(typeof t=="string")f=eg(t,n,F.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case J:return t=ge(31,n,e,u),t.elementType=J,t.lanes=c,t;case C:return na(n.children,u,c,e);case D:f=8,u|=24;break;case L:return t=ge(12,n,e,u|2),t.elementType=L,t.lanes=c,t;case K:return t=ge(13,n,e,u),t.elementType=K,t.lanes=c,t;case P:return t=ge(19,n,e,u),t.elementType=P,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:f=10;break t;case j:f=9;break t;case G:f=11;break t;case B:f=14;break t;case Y:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=ge(f,n,e,u),e.elementType=t,e.type=a,e.lanes=c,e}function na(t,e,n,a){return t=ge(7,t,a,e),t.lanes=n,t}function Qs(t,e,n){return t=ge(6,t,null,e),t.lanes=n,t}function rf(t){var e=ge(18,null,null,0);return e.stateNode=t,e}function Ys(t,e,n){return e=ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var ff=new WeakMap;function xe(t,e){if(typeof t=="object"&&t!==null){var n=ff.get(t);return n!==void 0?n:(e={value:t,source:e,stack:ke(e)},ff.set(t,e),e)}return{value:t,source:e,stack:ke(e)}}var Qa=[],Ya=0,Ji=null,Nl=0,ze=[],De=0,Rn=null,Xe=1,Ve="";function en(t,e){Qa[Ya++]=Nl,Qa[Ya++]=Ji,Ji=t,Nl=e}function hf(t,e,n){ze[De++]=Xe,ze[De++]=Ve,ze[De++]=Rn,Rn=t;var a=Xe;t=Ve;var u=32-ve(a)-1;a&=~(1<<u),n+=1;var c=32-ve(e)+u;if(30<c){var f=u-u%5;c=(a&(1<<f)-1).toString(32),a>>=f,u-=f,Xe=1<<32-ve(e)+u|n<<u|a,Ve=c+t}else Xe=1<<c|n<<u|a,Ve=t}function Gs(t){t.return!==null&&(en(t,1),hf(t,1,0))}function Xs(t){for(;t===Ji;)Ji=Qa[--Ya],Qa[Ya]=null,Nl=Qa[--Ya],Qa[Ya]=null;for(;t===Rn;)Rn=ze[--De],ze[De]=null,Ve=ze[--De],ze[De]=null,Xe=ze[--De],ze[De]=null}function df(t,e){ze[De++]=Xe,ze[De++]=Ve,ze[De++]=Rn,Xe=e.id,Ve=e.overflow,Rn=t}var It=null,zt=null,yt=!1,En=null,Ue=!1,Vs=Error(o(519));function Tn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wl(xe(e,t)),Vs}function mf(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Wt]=t,e[se]=a,n){case"dialog":ht("cancel",e),ht("close",e);break;case"iframe":case"object":case"embed":ht("load",e);break;case"video":case"audio":for(n=0;n<ai.length;n++)ht(ai[n],e);break;case"source":ht("error",e);break;case"img":case"image":case"link":ht("error",e),ht("load",e);break;case"details":ht("toggle",e);break;case"input":ht("invalid",e),Or(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ht("invalid",e);break;case"textarea":ht("invalid",e),Ar(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||Dd(e.textContent,n)?(a.popover!=null&&(ht("beforetoggle",e),ht("toggle",e)),a.onScroll!=null&&ht("scroll",e),a.onScrollEnd!=null&&ht("scrollend",e),a.onClick!=null&&(e.onclick=Ie),e=!0):e=!1,e||Tn(t,!0)}function yf(t){for(It=t.return;It;)switch(It.tag){case 5:case 31:case 13:Ue=!1;return;case 27:case 3:Ue=!0;return;default:It=It.return}}function Ga(t){if(t!==It)return!1;if(!yt)return yf(t),yt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||co(t.type,t.memoizedProps)),n=!n),n&&zt&&Tn(t),yf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));zt=Qd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));zt=Qd(t)}else e===27?(e=zt,Hn(t.type)?(t=mo,mo=null,zt=t):zt=e):zt=It?Ne(t.stateNode.nextSibling):null;return!0}function aa(){zt=It=null,yt=!1}function Ks(){var t=En;return t!==null&&(he===null?he=t:he.push.apply(he,t),En=null),t}function wl(t){En===null?En=[t]:En.push(t)}var Zs=T(null),la=null,nn=null;function Mn(t,e,n){Z(Zs,e._currentValue),e._currentValue=n}function an(t){t._currentValue=Zs.current,q(Zs)}function Js(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function Ps(t,e,n,a){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var c=u.dependencies;if(c!==null){var f=u.child;c=c.firstContext;t:for(;c!==null;){var v=c;c=u;for(var _=0;_<e.length;_++)if(v.context===e[_]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),Js(c.return,n,t),a||(f=null);break t}c=v.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(o(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),Js(f,n,t),f=null}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function Xa(t,e,n,a){t=null;for(var u=e,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var f=u.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var v=u.type;pe(u.pendingProps.value,f.value)||(t!==null?t.push(v):t=[v])}}else if(u===vt.current){if(f=u.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(ci):t=[ci])}u=u.return}t!==null&&Ps(e,t,n,a),e.flags|=262144}function Pi(t){for(t=t.firstContext;t!==null;){if(!pe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ia(t){la=t,nn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function $t(t){return vf(la,t)}function Fi(t,e){return la===null&&ia(t),vf(t,e)}function vf(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},nn===null){if(t===null)throw Error(o(308));nn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else nn=nn.next=e;return n}var Wv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Iv=l.unstable_scheduleCallback,$v=l.unstable_NormalPriority,Gt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fs(){return{controller:new Wv,data:new Map,refCount:0}}function Bl(t){t.refCount--,t.refCount===0&&Iv($v,function(){t.controller.abort()})}var jl=null,ks=0,Va=0,Ka=null;function tp(t,e){if(jl===null){var n=jl=[];ks=0,Va=$c(),Ka={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ks++,e.then(pf,pf),e}function pf(){if(--ks===0&&jl!==null){Ka!==null&&(Ka.status="fulfilled");var t=jl;jl=null,Va=0,Ka=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function ep(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var u=0;u<n.length;u++)(0,n[u])(e)},function(u){for(a.status="rejected",a.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),a}var gf=N.S;N.S=function(t,e){ed=ne(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&tp(t,e),gf!==null&&gf(t,e)};var ua=T(null);function Ws(){var t=ua.current;return t!==null?t:At.pooledCache}function ki(t,e){e===null?Z(ua,ua.current):Z(ua,e.pool)}function Sf(){var t=Ws();return t===null?null:{parent:Gt._currentValue,pool:t}}var Za=Error(o(460)),Is=Error(o(474)),Wi=Error(o(542)),Ii={then:function(){}};function bf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function _f(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Ie,Ie),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Ef(t),t;default:if(typeof e.status=="string")e.then(Ie,Ie);else{if(t=At,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=a}},function(a){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Ef(t),t}throw ca=e,Za}}function sa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ca=n,Za):n}}var ca=null;function Rf(){if(ca===null)throw Error(o(459));var t=ca;return ca=null,t}function Ef(t){if(t===Za||t===Wi)throw Error(o(483))}var Ja=null,Hl=0;function $i(t){var e=Hl;return Hl+=1,Ja===null&&(Ja=[]),_f(Ja,t,e)}function ql(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function tu(t,e){throw e.$$typeof===b?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Tf(t){function e(O,E){if(t){var A=O.deletions;A===null?(O.deletions=[E],O.flags|=16):A.push(E)}}function n(O,E){if(!t)return null;for(;E!==null;)e(O,E),E=E.sibling;return null}function a(O){for(var E=new Map;O!==null;)O.key!==null?E.set(O.key,O):E.set(O.index,O),O=O.sibling;return E}function u(O,E){return O=tn(O,E),O.index=0,O.sibling=null,O}function c(O,E,A){return O.index=A,t?(A=O.alternate,A!==null?(A=A.index,A<E?(O.flags|=67108866,E):A):(O.flags|=67108866,E)):(O.flags|=1048576,E)}function f(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function v(O,E,A,H){return E===null||E.tag!==6?(E=Qs(A,O.mode,H),E.return=O,E):(E=u(E,A),E.return=O,E)}function _(O,E,A,H){var et=A.type;return et===C?w(O,E,A.props.children,H,A.key):E!==null&&(E.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===Y&&sa(et)===E.type)?(E=u(E,A.props),ql(E,A),E.return=O,E):(E=Zi(A.type,A.key,A.props,null,O.mode,H),ql(E,A),E.return=O,E)}function x(O,E,A,H){return E===null||E.tag!==4||E.stateNode.containerInfo!==A.containerInfo||E.stateNode.implementation!==A.implementation?(E=Ys(A,O.mode,H),E.return=O,E):(E=u(E,A.children||[]),E.return=O,E)}function w(O,E,A,H,et){return E===null||E.tag!==7?(E=na(A,O.mode,H,et),E.return=O,E):(E=u(E,A),E.return=O,E)}function Q(O,E,A){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Qs(""+E,O.mode,A),E.return=O,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case R:return A=Zi(E.type,E.key,E.props,null,O.mode,A),ql(A,E),A.return=O,A;case M:return E=Ys(E,O.mode,A),E.return=O,E;case Y:return E=sa(E),Q(O,E,A)}if(Ht(E)||tt(E))return E=na(E,O.mode,A,null),E.return=O,E;if(typeof E.then=="function")return Q(O,$i(E),A);if(E.$$typeof===X)return Q(O,Fi(O,E),A);tu(O,E)}return null}function z(O,E,A,H){var et=E!==null?E.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return et!==null?null:v(O,E,""+A,H);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case R:return A.key===et?_(O,E,A,H):null;case M:return A.key===et?x(O,E,A,H):null;case Y:return A=sa(A),z(O,E,A,H)}if(Ht(A)||tt(A))return et!==null?null:w(O,E,A,H,null);if(typeof A.then=="function")return z(O,E,$i(A),H);if(A.$$typeof===X)return z(O,E,Fi(O,A),H);tu(O,A)}return null}function U(O,E,A,H,et){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return O=O.get(A)||null,v(E,O,""+H,et);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case R:return O=O.get(H.key===null?A:H.key)||null,_(E,O,H,et);case M:return O=O.get(H.key===null?A:H.key)||null,x(E,O,H,et);case Y:return H=sa(H),U(O,E,A,H,et)}if(Ht(H)||tt(H))return O=O.get(A)||null,w(E,O,H,et,null);if(typeof H.then=="function")return U(O,E,A,$i(H),et);if(H.$$typeof===X)return U(O,E,A,Fi(E,H),et);tu(E,H)}return null}function k(O,E,A,H){for(var et=null,pt=null,I=E,ot=E=0,mt=null;I!==null&&ot<A.length;ot++){I.index>ot?(mt=I,I=null):mt=I.sibling;var gt=z(O,I,A[ot],H);if(gt===null){I===null&&(I=mt);break}t&&I&&gt.alternate===null&&e(O,I),E=c(gt,E,ot),pt===null?et=gt:pt.sibling=gt,pt=gt,I=mt}if(ot===A.length)return n(O,I),yt&&en(O,ot),et;if(I===null){for(;ot<A.length;ot++)I=Q(O,A[ot],H),I!==null&&(E=c(I,E,ot),pt===null?et=I:pt.sibling=I,pt=I);return yt&&en(O,ot),et}for(I=a(I);ot<A.length;ot++)mt=U(I,O,ot,A[ot],H),mt!==null&&(t&&mt.alternate!==null&&I.delete(mt.key===null?ot:mt.key),E=c(mt,E,ot),pt===null?et=mt:pt.sibling=mt,pt=mt);return t&&I.forEach(function(Xn){return e(O,Xn)}),yt&&en(O,ot),et}function ut(O,E,A,H){if(A==null)throw Error(o(151));for(var et=null,pt=null,I=E,ot=E=0,mt=null,gt=A.next();I!==null&&!gt.done;ot++,gt=A.next()){I.index>ot?(mt=I,I=null):mt=I.sibling;var Xn=z(O,I,gt.value,H);if(Xn===null){I===null&&(I=mt);break}t&&I&&Xn.alternate===null&&e(O,I),E=c(Xn,E,ot),pt===null?et=Xn:pt.sibling=Xn,pt=Xn,I=mt}if(gt.done)return n(O,I),yt&&en(O,ot),et;if(I===null){for(;!gt.done;ot++,gt=A.next())gt=Q(O,gt.value,H),gt!==null&&(E=c(gt,E,ot),pt===null?et=gt:pt.sibling=gt,pt=gt);return yt&&en(O,ot),et}for(I=a(I);!gt.done;ot++,gt=A.next())gt=U(I,O,ot,gt.value,H),gt!==null&&(t&&gt.alternate!==null&&I.delete(gt.key===null?ot:gt.key),E=c(gt,E,ot),pt===null?et=gt:pt.sibling=gt,pt=gt);return t&&I.forEach(function(hg){return e(O,hg)}),yt&&en(O,ot),et}function Ot(O,E,A,H){if(typeof A=="object"&&A!==null&&A.type===C&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case R:t:{for(var et=A.key;E!==null;){if(E.key===et){if(et=A.type,et===C){if(E.tag===7){n(O,E.sibling),H=u(E,A.props.children),H.return=O,O=H;break t}}else if(E.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===Y&&sa(et)===E.type){n(O,E.sibling),H=u(E,A.props),ql(H,A),H.return=O,O=H;break t}n(O,E);break}else e(O,E);E=E.sibling}A.type===C?(H=na(A.props.children,O.mode,H,A.key),H.return=O,O=H):(H=Zi(A.type,A.key,A.props,null,O.mode,H),ql(H,A),H.return=O,O=H)}return f(O);case M:t:{for(et=A.key;E!==null;){if(E.key===et)if(E.tag===4&&E.stateNode.containerInfo===A.containerInfo&&E.stateNode.implementation===A.implementation){n(O,E.sibling),H=u(E,A.children||[]),H.return=O,O=H;break t}else{n(O,E);break}else e(O,E);E=E.sibling}H=Ys(A,O.mode,H),H.return=O,O=H}return f(O);case Y:return A=sa(A),Ot(O,E,A,H)}if(Ht(A))return k(O,E,A,H);if(tt(A)){if(et=tt(A),typeof et!="function")throw Error(o(150));return A=et.call(A),ut(O,E,A,H)}if(typeof A.then=="function")return Ot(O,E,$i(A),H);if(A.$$typeof===X)return Ot(O,E,Fi(O,A),H);tu(O,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,E!==null&&E.tag===6?(n(O,E.sibling),H=u(E,A),H.return=O,O=H):(n(O,E),H=Qs(A,O.mode,H),H.return=O,O=H),f(O)):n(O,E)}return function(O,E,A,H){try{Hl=0;var et=Ot(O,E,A,H);return Ja=null,et}catch(I){if(I===Za||I===Wi)throw I;var pt=ge(29,I,null,O.mode);return pt.lanes=H,pt.return=O,pt}}}var oa=Tf(!0),Mf=Tf(!1),On=!1;function $s(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Cn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function An(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(bt&2)!==0){var u=a.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),a.pending=e,e=Ki(t),cf(t,null,n),e}return Vi(t,a,e,n),Ki(t)}function Ql(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,yr(t,n)}}function ec(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?u=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?u=c=e:c=c.next=e}else u=c=e;n={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var nc=!1;function Yl(){if(nc){var t=Ka;if(t!==null)throw t}}function Gl(t,e,n,a){nc=!1;var u=t.updateQueue;On=!1;var c=u.firstBaseUpdate,f=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var _=v,x=_.next;_.next=null,f===null?c=x:f.next=x,f=_;var w=t.alternate;w!==null&&(w=w.updateQueue,v=w.lastBaseUpdate,v!==f&&(v===null?w.firstBaseUpdate=x:v.next=x,w.lastBaseUpdate=_))}if(c!==null){var Q=u.baseState;f=0,w=x=_=null,v=c;do{var z=v.lane&-536870913,U=z!==v.lane;if(U?(dt&z)===z:(a&z)===z){z!==0&&z===Va&&(nc=!0),w!==null&&(w=w.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var k=t,ut=v;z=e;var Ot=n;switch(ut.tag){case 1:if(k=ut.payload,typeof k=="function"){Q=k.call(Ot,Q,z);break t}Q=k;break t;case 3:k.flags=k.flags&-65537|128;case 0:if(k=ut.payload,z=typeof k=="function"?k.call(Ot,Q,z):k,z==null)break t;Q=g({},Q,z);break t;case 2:On=!0}}z=v.callback,z!==null&&(t.flags|=64,U&&(t.flags|=8192),U=u.callbacks,U===null?u.callbacks=[z]:U.push(z))}else U={lane:z,tag:v.tag,payload:v.payload,callback:v.callback,next:null},w===null?(x=w=U,_=Q):w=w.next=U,f|=z;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;U=v,v=U.next,U.next=null,u.lastBaseUpdate=U,u.shared.pending=null}}while(!0);w===null&&(_=Q),u.baseState=_,u.firstBaseUpdate=x,u.lastBaseUpdate=w,c===null&&(u.shared.lanes=0),Ln|=f,t.lanes=f,t.memoizedState=Q}}function Of(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Cf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Of(n[t],e)}var Pa=T(null),eu=T(0);function Af(t,e){t=dn,Z(eu,t),Z(Pa,e),dn=t|e.baseLanes}function ac(){Z(eu,dn),Z(Pa,Pa.current)}function lc(){dn=eu.current,q(Pa),q(eu)}var Se=T(null),Le=null;function xn(t){var e=t.alternate;Z(Qt,Qt.current&1),Z(Se,t),Le===null&&(e===null||Pa.current!==null||e.memoizedState!==null)&&(Le=t)}function ic(t){Z(Qt,Qt.current),Z(Se,t),Le===null&&(Le=t)}function xf(t){t.tag===22?(Z(Qt,Qt.current),Z(Se,t),Le===null&&(Le=t)):zn()}function zn(){Z(Qt,Qt.current),Z(Se,Se.current)}function be(t){q(Se),Le===t&&(Le=null),q(Qt)}var Qt=T(0);function nu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fo(n)||ho(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ln=0,ct=null,Tt=null,Xt=null,au=!1,Fa=!1,ra=!1,lu=0,Xl=0,ka=null,np=0;function Bt(){throw Error(o(321))}function uc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!pe(t[n],e[n]))return!1;return!0}function sc(t,e,n,a,u,c){return ln=c,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,N.H=t===null||t.memoizedState===null?hh:Rc,ra=!1,c=n(a,u),ra=!1,Fa&&(c=Df(e,n,a,u)),zf(t),c}function zf(t){N.H=Zl;var e=Tt!==null&&Tt.next!==null;if(ln=0,Xt=Tt=ct=null,au=!1,Xl=0,ka=null,e)throw Error(o(300));t===null||Vt||(t=t.dependencies,t!==null&&Pi(t)&&(Vt=!0))}function Df(t,e,n,a){ct=t;var u=0;do{if(Fa&&(ka=null),Xl=0,Fa=!1,25<=u)throw Error(o(301));if(u+=1,Xt=Tt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}N.H=dh,c=e(n,a)}while(Fa);return c}function ap(){var t=N.H,e=t.useState()[0];return e=typeof e.then=="function"?Vl(e):e,t=t.useState()[0],(Tt!==null?Tt.memoizedState:null)!==t&&(ct.flags|=1024),e}function cc(){var t=lu!==0;return lu=0,t}function oc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function rc(t){if(au){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}au=!1}ln=0,Xt=Tt=ct=null,Fa=!1,Xl=lu=0,ka=null}function ie(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?ct.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Yt(){if(Tt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Tt.next;var e=Xt===null?ct.memoizedState:Xt.next;if(e!==null)Xt=e,Tt=t;else{if(t===null)throw ct.alternate===null?Error(o(467)):Error(o(310));Tt=t,t={memoizedState:Tt.memoizedState,baseState:Tt.baseState,baseQueue:Tt.baseQueue,queue:Tt.queue,next:null},Xt===null?ct.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function iu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vl(t){var e=Xl;return Xl+=1,ka===null&&(ka=[]),t=_f(ka,t,e),e=ct,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,N.H=e===null||e.memoizedState===null?hh:Rc),t}function uu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Vl(t);if(t.$$typeof===X)return $t(t)}throw Error(o(438,String(t)))}function fc(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=ct.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=iu(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=it;return e.index++,n}function un(t,e){return typeof e=="function"?e(t):e}function su(t){var e=Yt();return hc(e,Tt,t)}function hc(t,e,n){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var u=t.baseQueue,c=a.pending;if(c!==null){if(u!==null){var f=u.next;u.next=c.next,c.next=f}e.baseQueue=u=c,a.pending=null}if(c=t.baseState,u===null)t.memoizedState=c;else{e=u.next;var v=f=null,_=null,x=e,w=!1;do{var Q=x.lane&-536870913;if(Q!==x.lane?(dt&Q)===Q:(ln&Q)===Q){var z=x.revertLane;if(z===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),Q===Va&&(w=!0);else if((ln&z)===z){x=x.next,z===Va&&(w=!0);continue}else Q={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},_===null?(v=_=Q,f=c):_=_.next=Q,ct.lanes|=z,Ln|=z;Q=x.action,ra&&n(c,Q),c=x.hasEagerState?x.eagerState:n(c,Q)}else z={lane:Q,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},_===null?(v=_=z,f=c):_=_.next=z,ct.lanes|=Q,Ln|=Q;x=x.next}while(x!==null&&x!==e);if(_===null?f=c:_.next=v,!pe(c,t.memoizedState)&&(Vt=!0,w&&(n=Ka,n!==null)))throw n;t.memoizedState=c,t.baseState=f,t.baseQueue=_,a.lastRenderedState=c}return u===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function dc(t){var e=Yt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var a=n.dispatch,u=n.pending,c=e.memoizedState;if(u!==null){n.pending=null;var f=u=u.next;do c=t(c,f.action),f=f.next;while(f!==u);pe(c,e.memoizedState)||(Vt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,a]}function Uf(t,e,n){var a=ct,u=Yt(),c=yt;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!pe((Tt||u).memoizedState,n);if(f&&(u.memoizedState=n,Vt=!0),u=u.queue,vc(wf.bind(null,a,u,t),[t]),u.getSnapshot!==e||f||Xt!==null&&Xt.memoizedState.tag&1){if(a.flags|=2048,Wa(9,{destroy:void 0},Nf.bind(null,a,u,n,e),null),At===null)throw Error(o(349));c||(ln&127)!==0||Lf(a,e,n)}return n}function Lf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=iu(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Nf(t,e,n,a){e.value=n,e.getSnapshot=a,Bf(e)&&jf(t)}function wf(t,e,n){return n(function(){Bf(e)&&jf(t)})}function Bf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!pe(t,n)}catch{return!0}}function jf(t){var e=ea(t,2);e!==null&&de(e,t,2)}function mc(t){var e=ie();if(typeof t=="function"){var n=t;if(t=n(),ra){Sn(!0);try{n()}finally{Sn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:t},e}function Hf(t,e,n,a){return t.baseState=n,hc(t,Tt,typeof a=="function"?a:un)}function lp(t,e,n,a,u){if(ru(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};N.T!==null?n(!0):c.isTransition=!1,a(c),n=e.pending,n===null?(c.next=e.pending=c,qf(e,c)):(c.next=n.next,e.pending=n.next=c)}}function qf(t,e){var n=e.action,a=e.payload,u=t.state;if(e.isTransition){var c=N.T,f={};N.T=f;try{var v=n(u,a),_=N.S;_!==null&&_(f,v),Qf(t,e,v)}catch(x){yc(t,e,x)}finally{c!==null&&f.types!==null&&(c.types=f.types),N.T=c}}else try{c=n(u,a),Qf(t,e,c)}catch(x){yc(t,e,x)}}function Qf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Yf(t,e,a)},function(a){return yc(t,e,a)}):Yf(t,e,n)}function Yf(t,e,n){e.status="fulfilled",e.value=n,Gf(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,qf(t,n)))}function yc(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,Gf(e),e=e.next;while(e!==a)}t.action=null}function Gf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Xf(t,e){return e}function Vf(t,e){if(yt){var n=At.formState;if(n!==null){t:{var a=ct;if(yt){if(zt){e:{for(var u=zt,c=Ue;u.nodeType!==8;){if(!c){u=null;break e}if(u=Ne(u.nextSibling),u===null){u=null;break e}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){zt=Ne(u.nextSibling),a=u.data==="F!";break t}}Tn(a)}a=!1}a&&(e=n[0])}}return n=ie(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xf,lastRenderedState:e},n.queue=a,n=oh.bind(null,ct,a),a.dispatch=n,a=mc(!1),c=_c.bind(null,ct,!1,a.queue),a=ie(),u={state:e,dispatch:null,action:t,pending:null},a.queue=u,n=lp.bind(null,ct,u,c,n),u.dispatch=n,a.memoizedState=t,[e,n,!1]}function Kf(t){var e=Yt();return Zf(e,Tt,t)}function Zf(t,e,n){if(e=hc(t,e,Xf)[0],t=su(un)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Vl(e)}catch(f){throw f===Za?Wi:f}else a=e;e=Yt();var u=e.queue,c=u.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,Wa(9,{destroy:void 0},ip.bind(null,u,n),null)),[a,c,t]}function ip(t,e){t.action=e}function Jf(t){var e=Yt(),n=Tt;if(n!==null)return Zf(e,n,t);Yt(),e=e.memoizedState,n=Yt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Wa(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ct.updateQueue,e===null&&(e=iu(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function Pf(){return Yt().memoizedState}function cu(t,e,n,a){var u=ie();ct.flags|=t,u.memoizedState=Wa(1|e,{destroy:void 0},n,a===void 0?null:a)}function ou(t,e,n,a){var u=Yt();a=a===void 0?null:a;var c=u.memoizedState.inst;Tt!==null&&a!==null&&uc(a,Tt.memoizedState.deps)?u.memoizedState=Wa(e,c,n,a):(ct.flags|=t,u.memoizedState=Wa(1|e,c,n,a))}function Ff(t,e){cu(8390656,8,t,e)}function vc(t,e){ou(2048,8,t,e)}function up(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=iu(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function kf(t){var e=Yt().memoizedState;return up({ref:e,nextImpl:t}),function(){if((bt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function Wf(t,e){return ou(4,2,t,e)}function If(t,e){return ou(4,4,t,e)}function $f(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function th(t,e,n){n=n!=null?n.concat([t]):null,ou(4,4,$f.bind(null,e,t),n)}function pc(){}function eh(t,e){var n=Yt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&uc(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function nh(t,e){var n=Yt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&uc(e,a[1]))return a[0];if(a=t(),ra){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[a,e],a}function gc(t,e,n){return n===void 0||(ln&1073741824)!==0&&(dt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=ad(),ct.lanes|=t,Ln|=t,n)}function ah(t,e,n,a){return pe(n,e)?n:Pa.current!==null?(t=gc(t,n,a),pe(t,e)||(Vt=!0),t):(ln&42)===0||(ln&1073741824)!==0&&(dt&261930)===0?(Vt=!0,t.memoizedState=n):(t=ad(),ct.lanes|=t,Ln|=t,e)}function lh(t,e,n,a,u){var c=V.p;V.p=c!==0&&8>c?c:8;var f=N.T,v={};N.T=v,_c(t,!1,e,n);try{var _=u(),x=N.S;if(x!==null&&x(v,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var w=ep(_,a);Kl(t,e,w,Ee(t))}else Kl(t,e,a,Ee(t))}catch(Q){Kl(t,e,{then:function(){},status:"rejected",reason:Q},Ee())}finally{V.p=c,f!==null&&v.types!==null&&(f.types=v.types),N.T=f}}function sp(){}function Sc(t,e,n,a){if(t.tag!==5)throw Error(o(476));var u=ih(t).queue;lh(t,u,e,at,n===null?sp:function(){return uh(t),n(a)})}function ih(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:at,baseState:at,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:at},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function uh(t){var e=ih(t);e.next===null&&(e=t.alternate.memoizedState),Kl(t,e.next.queue,{},Ee())}function bc(){return $t(ci)}function sh(){return Yt().memoizedState}function ch(){return Yt().memoizedState}function cp(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ee();t=Cn(n);var a=An(e,t,n);a!==null&&(de(a,e,n),Ql(a,e,n)),e={cache:Fs()},t.payload=e;return}e=e.return}}function op(t,e,n){var a=Ee();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ru(t)?rh(e,n):(n=Hs(t,e,n,a),n!==null&&(de(n,t,a),fh(n,e,a)))}function oh(t,e,n){var a=Ee();Kl(t,e,n,a)}function Kl(t,e,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ru(t))rh(e,u);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var f=e.lastRenderedState,v=c(f,n);if(u.hasEagerState=!0,u.eagerState=v,pe(v,f))return Vi(t,e,u,0),At===null&&Xi(),!1}catch{}if(n=Hs(t,e,u,a),n!==null)return de(n,t,a),fh(n,e,a),!0}return!1}function _c(t,e,n,a){if(a={lane:2,revertLane:$c(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ru(t)){if(e)throw Error(o(479))}else e=Hs(t,n,a,2),e!==null&&de(e,t,2)}function ru(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function rh(t,e){Fa=au=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function fh(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,yr(t,n)}}var Zl={readContext:$t,use:uu,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};Zl.useEffectEvent=Bt;var hh={readContext:$t,use:uu,useCallback:function(t,e){return ie().memoizedState=[t,e===void 0?null:e],t},useContext:$t,useEffect:Ff,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,cu(4194308,4,$f.bind(null,e,t),n)},useLayoutEffect:function(t,e){return cu(4194308,4,t,e)},useInsertionEffect:function(t,e){cu(4,2,t,e)},useMemo:function(t,e){var n=ie();e=e===void 0?null:e;var a=t();if(ra){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ie();if(n!==void 0){var u=n(e);if(ra){Sn(!0);try{n(e)}finally{Sn(!1)}}}else u=e;return a.memoizedState=a.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},a.queue=t,t=t.dispatch=op.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var e=ie();return t={current:t},e.memoizedState=t},useState:function(t){t=mc(t);var e=t.queue,n=oh.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:pc,useDeferredValue:function(t,e){var n=ie();return gc(n,t,e)},useTransition:function(){var t=mc(!1);return t=lh.bind(null,ct,t.queue,!0,!1),ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ct,u=ie();if(yt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),At===null)throw Error(o(349));(dt&127)!==0||Lf(a,e,n)}u.memoizedState=n;var c={value:n,getSnapshot:e};return u.queue=c,Ff(wf.bind(null,a,c,t),[t]),a.flags|=2048,Wa(9,{destroy:void 0},Nf.bind(null,a,c,n,e),null),n},useId:function(){var t=ie(),e=At.identifierPrefix;if(yt){var n=Ve,a=Xe;n=(a&~(1<<32-ve(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=lu++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=np++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:bc,useFormState:Vf,useActionState:Vf,useOptimistic:function(t){var e=ie();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=_c.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:fc,useCacheRefresh:function(){return ie().memoizedState=cp.bind(null,ct)},useEffectEvent:function(t){var e=ie(),n={impl:t};return e.memoizedState=n,function(){if((bt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Rc={readContext:$t,use:uu,useCallback:eh,useContext:$t,useEffect:vc,useImperativeHandle:th,useInsertionEffect:Wf,useLayoutEffect:If,useMemo:nh,useReducer:su,useRef:Pf,useState:function(){return su(un)},useDebugValue:pc,useDeferredValue:function(t,e){var n=Yt();return ah(n,Tt.memoizedState,t,e)},useTransition:function(){var t=su(un)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Vl(t),e]},useSyncExternalStore:Uf,useId:sh,useHostTransitionStatus:bc,useFormState:Kf,useActionState:Kf,useOptimistic:function(t,e){var n=Yt();return Hf(n,Tt,t,e)},useMemoCache:fc,useCacheRefresh:ch};Rc.useEffectEvent=kf;var dh={readContext:$t,use:uu,useCallback:eh,useContext:$t,useEffect:vc,useImperativeHandle:th,useInsertionEffect:Wf,useLayoutEffect:If,useMemo:nh,useReducer:dc,useRef:Pf,useState:function(){return dc(un)},useDebugValue:pc,useDeferredValue:function(t,e){var n=Yt();return Tt===null?gc(n,t,e):ah(n,Tt.memoizedState,t,e)},useTransition:function(){var t=dc(un)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Vl(t),e]},useSyncExternalStore:Uf,useId:sh,useHostTransitionStatus:bc,useFormState:Jf,useActionState:Jf,useOptimistic:function(t,e){var n=Yt();return Tt!==null?Hf(n,Tt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:fc,useCacheRefresh:ch};dh.useEffectEvent=kf;function Ec(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:g({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Tc={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=Ee(),u=Cn(a);u.payload=e,n!=null&&(u.callback=n),e=An(t,u,a),e!==null&&(de(e,t,a),Ql(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Ee(),u=Cn(a);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=An(t,u,a),e!==null&&(de(e,t,a),Ql(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ee(),a=Cn(n);a.tag=2,e!=null&&(a.callback=e),e=An(t,a,n),e!==null&&(de(e,t,n),Ql(e,t,n))}};function mh(t,e,n,a,u,c,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,c,f):e.prototype&&e.prototype.isPureReactComponent?!Ul(n,a)||!Ul(u,c):!0}function yh(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&Tc.enqueueReplaceState(e,e.state,null)}function fa(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=g({},n));for(var u in t)n[u]===void 0&&(n[u]=t[u])}return n}function vh(t){Gi(t)}function ph(t){console.error(t)}function gh(t){Gi(t)}function fu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Sh(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Mc(t,e,n){return n=Cn(n),n.tag=3,n.payload={element:null},n.callback=function(){fu(t,e)},n}function bh(t){return t=Cn(t),t.tag=3,t}function _h(t,e,n,a){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var c=a.value;t.payload=function(){return u(c)},t.callback=function(){Sh(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Sh(e,n,a),typeof u!="function"&&(Nn===null?Nn=new Set([this]):Nn.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function rp(t,e,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&Xa(e,n,u,!0),n=Se.current,n!==null){switch(n.tag){case 31:case 13:return Le===null?Eu():n.alternate===null&&jt===0&&(jt=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===Ii?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),kc(t,a,u)),!1;case 22:return n.flags|=65536,a===Ii?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),kc(t,a,u)),!1}throw Error(o(435,n.tag))}return kc(t,a,u),Eu(),!1}if(yt)return e=Se.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,a!==Vs&&(t=Error(o(422),{cause:a}),wl(xe(t,n)))):(a!==Vs&&(e=Error(o(423),{cause:a}),wl(xe(e,n))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,a=xe(a,n),u=Mc(t.stateNode,a,u),ec(t,u),jt!==4&&(jt=2)),!1;var c=Error(o(520),{cause:a});if(c=xe(c,n),ti===null?ti=[c]:ti.push(c),jt!==4&&(jt=2),e===null)return!0;a=xe(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=u&-u,n.lanes|=t,t=Mc(n.stateNode,a,t),ec(n,t),!1;case 1:if(e=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Nn===null||!Nn.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=bh(u),_h(u,t,n,a),ec(n,u),!1}n=n.return}while(n!==null);return!1}var Oc=Error(o(461)),Vt=!1;function te(t,e,n,a){e.child=t===null?Mf(e,null,n,a):oa(e,t.child,n,a)}function Rh(t,e,n,a,u){n=n.render;var c=e.ref;if("ref"in a){var f={};for(var v in a)v!=="ref"&&(f[v]=a[v])}else f=a;return ia(e),a=sc(t,e,n,f,c,u),v=cc(),t!==null&&!Vt?(oc(t,e,u),sn(t,e,u)):(yt&&v&&Gs(e),e.flags|=1,te(t,e,a,u),e.child)}function Eh(t,e,n,a,u){if(t===null){var c=n.type;return typeof c=="function"&&!qs(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,Th(t,e,c,a,u)):(t=Zi(n.type,null,a,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Nc(t,u)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ul,n(f,a)&&t.ref===e.ref)return sn(t,e,u)}return e.flags|=1,t=tn(c,a),t.ref=e.ref,t.return=e,e.child=t}function Th(t,e,n,a,u){if(t!==null){var c=t.memoizedProps;if(Ul(c,a)&&t.ref===e.ref)if(Vt=!1,e.pendingProps=a=c,Nc(t,u))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,sn(t,e,u)}return Cc(t,e,n,a,u)}function Mh(t,e,n,a){var u=a.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,t!==null){for(a=e.child=t.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~c}else a=0,e.child=null;return Oh(t,e,c,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&ki(e,c!==null?c.cachePool:null),c!==null?Af(e,c):ac(),xf(e);else return a=e.lanes=536870912,Oh(t,e,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(ki(e,c.cachePool),Af(e,c),zn(),e.memoizedState=null):(t!==null&&ki(e,null),ac(),zn());return te(t,e,u,n),e.child}function Jl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Oh(t,e,n,a,u){var c=Ws();return c=c===null?null:{parent:Gt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&ki(e,null),ac(),xf(e),t!==null&&Xa(t,e,a,!0),e.childLanes=u,null}function hu(t,e){return e=mu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Ch(t,e,n){return oa(e,t.child,null,n),t=hu(e,e.pendingProps),t.flags|=2,be(e),e.memoizedState=null,t}function fp(t,e,n){var a=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(yt){if(a.mode==="hidden")return t=hu(e,a),e.lanes=536870912,Jl(null,t);if(ic(e),(t=zt)?(t=qd(t,Ue),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Rn!==null?{id:Xe,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},n=rf(t),n.return=e,e.child=n,It=e,zt=null)):t=null,t===null)throw Tn(e);return e.lanes=536870912,null}return hu(e,a)}var c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(ic(e),u)if(e.flags&256)e.flags&=-257,e=Ch(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Vt||Xa(t,e,n,!1),u=(n&t.childLanes)!==0,Vt||u){if(a=At,a!==null&&(f=vr(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,ea(t,f),de(a,t,f),Oc;Eu(),e=Ch(t,e,n)}else t=c.treeContext,zt=Ne(f.nextSibling),It=e,yt=!0,En=null,Ue=!1,t!==null&&df(e,t),e=hu(e,a),e.flags|=4096;return e}return t=tn(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function du(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Cc(t,e,n,a,u){return ia(e),n=sc(t,e,n,a,void 0,u),a=cc(),t!==null&&!Vt?(oc(t,e,u),sn(t,e,u)):(yt&&a&&Gs(e),e.flags|=1,te(t,e,n,u),e.child)}function Ah(t,e,n,a,u,c){return ia(e),e.updateQueue=null,n=Df(e,a,n,u),zf(t),a=cc(),t!==null&&!Vt?(oc(t,e,c),sn(t,e,c)):(yt&&a&&Gs(e),e.flags|=1,te(t,e,n,c),e.child)}function xh(t,e,n,a,u){if(ia(e),e.stateNode===null){var c=qa,f=n.contextType;typeof f=="object"&&f!==null&&(c=$t(f)),c=new n(a,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Tc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=a,c.state=e.memoizedState,c.refs={},$s(e),f=n.contextType,c.context=typeof f=="object"&&f!==null?$t(f):qa,c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Ec(e,n,f,a),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&Tc.enqueueReplaceState(c,c.state,null),Gl(e,a,c,u),Yl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){c=e.stateNode;var v=e.memoizedProps,_=fa(n,v);c.props=_;var x=c.context,w=n.contextType;f=qa,typeof w=="object"&&w!==null&&(f=$t(w));var Q=n.getDerivedStateFromProps;w=typeof Q=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,w||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||x!==f)&&yh(e,c,a,f),On=!1;var z=e.memoizedState;c.state=z,Gl(e,a,c,u),Yl(),x=e.memoizedState,v||z!==x||On?(typeof Q=="function"&&(Ec(e,n,Q,a),x=e.memoizedState),(_=On||mh(e,n,_,a,z,x,f))?(w||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=x),c.props=a,c.state=x,c.context=f,a=_):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{c=e.stateNode,tc(t,e),f=e.memoizedProps,w=fa(n,f),c.props=w,Q=e.pendingProps,z=c.context,x=n.contextType,_=qa,typeof x=="object"&&x!==null&&(_=$t(x)),v=n.getDerivedStateFromProps,(x=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==Q||z!==_)&&yh(e,c,a,_),On=!1,z=e.memoizedState,c.state=z,Gl(e,a,c,u),Yl();var U=e.memoizedState;f!==Q||z!==U||On||t!==null&&t.dependencies!==null&&Pi(t.dependencies)?(typeof v=="function"&&(Ec(e,n,v,a),U=e.memoizedState),(w=On||mh(e,n,w,a,z,U,_)||t!==null&&t.dependencies!==null&&Pi(t.dependencies))?(x||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,U,_),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,U,_)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=U),c.props=a,c.state=U,c.context=_,a=w):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),a=!1)}return c=a,du(t,e),a=(e.flags&128)!==0,c||a?(c=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&a?(e.child=oa(e,t.child,null,u),e.child=oa(e,null,n,u)):te(t,e,n,u),e.memoizedState=c.state,t=e.child):t=sn(t,e,u),t}function zh(t,e,n,a){return aa(),e.flags|=256,te(t,e,n,a),e.child}var Ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(t){return{baseLanes:t,cachePool:Sf()}}function zc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function Dh(t,e,n){var a=e.pendingProps,u=!1,c=(e.flags&128)!==0,f;if((f=c)||(f=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),f&&(u=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(u?xn(e):zn(),(t=zt)?(t=qd(t,Ue),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Rn!==null?{id:Xe,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},n=rf(t),n.return=e,e.child=n,It=e,zt=null)):t=null,t===null)throw Tn(e);return ho(t)?e.lanes=32:e.lanes=536870912,null}var v=a.children;return a=a.fallback,u?(zn(),u=e.mode,v=mu({mode:"hidden",children:v},u),a=na(a,u,n,null),v.return=e,a.return=e,v.sibling=a,e.child=v,a=e.child,a.memoizedState=xc(n),a.childLanes=zc(t,f,n),e.memoizedState=Ac,Jl(null,a)):(xn(e),Dc(e,v))}var _=t.memoizedState;if(_!==null&&(v=_.dehydrated,v!==null)){if(c)e.flags&256?(xn(e),e.flags&=-257,e=Uc(t,e,n)):e.memoizedState!==null?(zn(),e.child=t.child,e.flags|=128,e=null):(zn(),v=a.fallback,u=e.mode,a=mu({mode:"visible",children:a.children},u),v=na(v,u,n,null),v.flags|=2,a.return=e,v.return=e,a.sibling=v,e.child=a,oa(e,t.child,null,n),a=e.child,a.memoizedState=xc(n),a.childLanes=zc(t,f,n),e.memoizedState=Ac,e=Jl(null,a));else if(xn(e),ho(v)){if(f=v.nextSibling&&v.nextSibling.dataset,f)var x=f.dgst;f=x,a=Error(o(419)),a.stack="",a.digest=f,wl({value:a,source:null,stack:null}),e=Uc(t,e,n)}else if(Vt||Xa(t,e,n,!1),f=(n&t.childLanes)!==0,Vt||f){if(f=At,f!==null&&(a=vr(f,n),a!==0&&a!==_.retryLane))throw _.retryLane=a,ea(t,a),de(f,t,a),Oc;fo(v)||Eu(),e=Uc(t,e,n)}else fo(v)?(e.flags|=192,e.child=t.child,e=null):(t=_.treeContext,zt=Ne(v.nextSibling),It=e,yt=!0,En=null,Ue=!1,t!==null&&df(e,t),e=Dc(e,a.children),e.flags|=4096);return e}return u?(zn(),v=a.fallback,u=e.mode,_=t.child,x=_.sibling,a=tn(_,{mode:"hidden",children:a.children}),a.subtreeFlags=_.subtreeFlags&65011712,x!==null?v=tn(x,v):(v=na(v,u,n,null),v.flags|=2),v.return=e,a.return=e,a.sibling=v,e.child=a,Jl(null,a),a=e.child,v=t.child.memoizedState,v===null?v=xc(n):(u=v.cachePool,u!==null?(_=Gt._currentValue,u=u.parent!==_?{parent:_,pool:_}:u):u=Sf(),v={baseLanes:v.baseLanes|n,cachePool:u}),a.memoizedState=v,a.childLanes=zc(t,f,n),e.memoizedState=Ac,Jl(t.child,a)):(xn(e),n=t.child,t=n.sibling,n=tn(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Dc(t,e){return e=mu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function mu(t,e){return t=ge(22,t,null,e),t.lanes=0,t}function Uc(t,e,n){return oa(e,t.child,null,n),t=Dc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Uh(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Js(t.return,e,n)}function Lc(t,e,n,a,u,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u,treeForkCount:c}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=u,f.treeForkCount=c)}function Lh(t,e,n){var a=e.pendingProps,u=a.revealOrder,c=a.tail;a=a.children;var f=Qt.current,v=(f&2)!==0;if(v?(f=f&1|2,e.flags|=128):f&=1,Z(Qt,f),te(t,e,a,n),a=yt?Nl:0,!v&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Uh(t,n,e);else if(t.tag===19)Uh(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(n=e.child,u=null;n!==null;)t=n.alternate,t!==null&&nu(t)===null&&(u=n),n=n.sibling;n=u,n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),Lc(e,!1,u,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&nu(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}Lc(e,!0,n,null,c,a);break;case"together":Lc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function sn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ln|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Xa(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=tn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=tn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Nc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Pi(t)))}function hp(t,e,n){switch(e.tag){case 3:qt(e,e.stateNode.containerInfo),Mn(e,Gt,t.memoizedState.cache),aa();break;case 27:case 5:Pe(e);break;case 4:qt(e,e.stateNode.containerInfo);break;case 10:Mn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,ic(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(xn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Dh(t,e,n):(xn(e),t=sn(t,e,n),t!==null?t.sibling:null);xn(e);break;case 19:var u=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(Xa(t,e,n,!1),a=(n&e.childLanes)!==0),u){if(a)return Lh(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Z(Qt,Qt.current),a)break;return null;case 22:return e.lanes=0,Mh(t,e,n,e.pendingProps);case 24:Mn(e,Gt,t.memoizedState.cache)}return sn(t,e,n)}function Nh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Vt=!0;else{if(!Nc(t,n)&&(e.flags&128)===0)return Vt=!1,hp(t,e,n);Vt=(t.flags&131072)!==0}else Vt=!1,yt&&(e.flags&1048576)!==0&&hf(e,Nl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=sa(e.elementType),e.type=t,typeof t=="function")qs(t)?(a=fa(t,a),e.tag=1,e=xh(null,e,t,a,n)):(e.tag=0,e=Cc(null,e,t,a,n));else{if(t!=null){var u=t.$$typeof;if(u===G){e.tag=11,e=Rh(null,e,t,a,n);break t}else if(u===B){e.tag=14,e=Eh(null,e,t,a,n);break t}}throw e=Ut(t)||t,Error(o(306,e,""))}}return e;case 0:return Cc(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,u=fa(a,e.pendingProps),xh(t,e,a,u,n);case 3:t:{if(qt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var c=e.memoizedState;u=c.element,tc(t,e),Gl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,Mn(e,Gt,a),a!==c.cache&&Ps(e,[Gt],n,!0),Yl(),a=f.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=zh(t,e,a,n);break t}else if(a!==u){u=xe(Error(o(424)),e),wl(u),e=zh(t,e,a,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,zt=Ne(t.firstChild),It=e,yt=!0,En=null,Ue=!0,n=Mf(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(aa(),a===u){e=sn(t,e,n);break t}te(t,e,a,n)}e=e.child}return e;case 26:return du(t,e),t===null?(n=Kd(e.type,null,e.pendingProps,null))?e.memoizedState=n:yt||(n=e.type,t=e.pendingProps,a=zu(rt.current).createElement(n),a[Wt]=e,a[se]=t,ee(a,n,t),Pt(a),e.stateNode=a):e.memoizedState=Kd(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Pe(e),t===null&&yt&&(a=e.stateNode=Gd(e.type,e.pendingProps,rt.current),It=e,Ue=!0,u=zt,Hn(e.type)?(mo=u,zt=Ne(a.firstChild)):zt=u),te(t,e,e.pendingProps.children,n),du(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((u=a=zt)&&(a=Gp(a,e.type,e.pendingProps,Ue),a!==null?(e.stateNode=a,It=e,zt=Ne(a.firstChild),Ue=!1,u=!0):u=!1),u||Tn(e)),Pe(e),u=e.type,c=e.pendingProps,f=t!==null?t.memoizedProps:null,a=c.children,co(u,c)?a=null:f!==null&&co(u,f)&&(e.flags|=32),e.memoizedState!==null&&(u=sc(t,e,ap,null,null,n),ci._currentValue=u),du(t,e),te(t,e,a,n),e.child;case 6:return t===null&&yt&&((t=n=zt)&&(n=Xp(n,e.pendingProps,Ue),n!==null?(e.stateNode=n,It=e,zt=null,t=!0):t=!1),t||Tn(e)),null;case 13:return Dh(t,e,n);case 4:return qt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=oa(e,null,a,n):te(t,e,a,n),e.child;case 11:return Rh(t,e,e.type,e.pendingProps,n);case 7:return te(t,e,e.pendingProps,n),e.child;case 8:return te(t,e,e.pendingProps.children,n),e.child;case 12:return te(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,Mn(e,e.type,a.value),te(t,e,a.children,n),e.child;case 9:return u=e.type._context,a=e.pendingProps.children,ia(e),u=$t(u),a=a(u),e.flags|=1,te(t,e,a,n),e.child;case 14:return Eh(t,e,e.type,e.pendingProps,n);case 15:return Th(t,e,e.type,e.pendingProps,n);case 19:return Lh(t,e,n);case 31:return fp(t,e,n);case 22:return Mh(t,e,n,e.pendingProps);case 24:return ia(e),a=$t(Gt),t===null?(u=Ws(),u===null&&(u=At,c=Fs(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),e.memoizedState={parent:a,cache:u},$s(e),Mn(e,Gt,u)):((t.lanes&n)!==0&&(tc(t,e),Gl(e,null,null,n),Yl()),u=t.memoizedState,c=e.memoizedState,u.parent!==a?(u={parent:a,cache:a},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),Mn(e,Gt,a)):(a=c.cache,Mn(e,Gt,a),a!==u.cache&&Ps(e,[Gt],n,!0))),te(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function cn(t){t.flags|=4}function wc(t,e,n,a,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(sd())t.flags|=8192;else throw ca=Ii,Is}else t.flags&=-16777217}function wh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!kd(e))if(sd())t.flags|=8192;else throw ca=Ii,Is}function yu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?dr():536870912,t.lanes|=e,el|=e)}function Pl(t,e){if(!yt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Dt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var u=t.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function dp(t,e,n){var a=e.pendingProps;switch(Xs(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(e),null;case 1:return Dt(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),an(Gt),Ct(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ga(e)?cn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Ks())),Dt(e),null;case 26:var u=e.type,c=e.memoizedState;return t===null?(cn(e),c!==null?(Dt(e),wh(e,c)):(Dt(e),wc(e,u,null,a,n))):c?c!==t.memoizedState?(cn(e),Dt(e),wh(e,c)):(Dt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&cn(e),Dt(e),wc(e,u,t,a,n)),null;case 27:if(Fe(e),n=rt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Dt(e),null}t=F.current,Ga(e)?mf(e):(t=Gd(u,a,n),e.stateNode=t,cn(e))}return Dt(e),null;case 5:if(Fe(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Dt(e),null}if(c=F.current,Ga(e))mf(e);else{var f=zu(rt.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?f.createElement(u,{is:a.is}):f.createElement(u)}}c[Wt]=e,c[se]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=c;t:switch(ee(c,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&cn(e)}}return Dt(e),wc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=rt.current,Ga(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,u=It,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[Wt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Dd(t.nodeValue,n)),t||Tn(e,!0)}else t=zu(t).createTextNode(a),t[Wt]=e,e.stateNode=t}return Dt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=Ga(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Wt]=e}else aa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Dt(e),t=!1}else n=Ks(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(be(e),e):(be(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Dt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Ga(e),a!==null&&a.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Wt]=e}else aa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Dt(e),u=!1}else u=Ks(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(be(e),e):(be(e),null)}return be(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==u&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),yu(e,e.updateQueue),Dt(e),null);case 4:return Ct(),t===null&&ao(e.stateNode.containerInfo),Dt(e),null;case 10:return an(e.type),Dt(e),null;case 19:if(q(Qt),a=e.memoizedState,a===null)return Dt(e),null;if(u=(e.flags&128)!==0,c=a.rendering,c===null)if(u)Pl(a,!1);else{if(jt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=nu(t),c!==null){for(e.flags|=128,Pl(a,!1),t=c.updateQueue,e.updateQueue=t,yu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)of(n,t),n=n.sibling;return Z(Qt,Qt.current&1|2),yt&&en(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ne()>bu&&(e.flags|=128,u=!0,Pl(a,!1),e.lanes=4194304)}else{if(!u)if(t=nu(c),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,yu(e,t),Pl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!yt)return Dt(e),null}else 2*ne()-a.renderingStartTime>bu&&n!==536870912&&(e.flags|=128,u=!0,Pl(a,!1),e.lanes=4194304);a.isBackwards?(c.sibling=e.child,e.child=c):(t=a.last,t!==null?t.sibling=c:e.child=c,a.last=c)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ne(),t.sibling=null,n=Qt.current,Z(Qt,u?n&1|2:n&1),yt&&en(e,a.treeForkCount),t):(Dt(e),null);case 22:case 23:return be(e),lc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(Dt(e),e.subtreeFlags&6&&(e.flags|=8192)):Dt(e),n=e.updateQueue,n!==null&&yu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&q(ua),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),an(Gt),Dt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function mp(t,e){switch(Xs(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return an(Gt),Ct(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Fe(e),null;case 31:if(e.memoizedState!==null){if(be(e),e.alternate===null)throw Error(o(340));aa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(be(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));aa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return q(Qt),null;case 4:return Ct(),null;case 10:return an(e.type),null;case 22:case 23:return be(e),lc(),t!==null&&q(ua),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return an(Gt),null;case 25:return null;default:return null}}function Bh(t,e){switch(Xs(e),e.tag){case 3:an(Gt),Ct();break;case 26:case 27:case 5:Fe(e);break;case 4:Ct();break;case 31:e.memoizedState!==null&&be(e);break;case 13:be(e);break;case 19:q(Qt);break;case 10:an(e.type);break;case 22:case 23:be(e),lc(),t!==null&&q(ua);break;case 24:an(Gt)}}function Fl(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&t)===t){a=void 0;var c=n.create,f=n.inst;a=c(),f.destroy=a}n=n.next}while(n!==u)}}catch(v){Et(e,e.return,v)}}function Dn(t,e,n){try{var a=e.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var c=u.next;a=c;do{if((a.tag&t)===t){var f=a.inst,v=f.destroy;if(v!==void 0){f.destroy=void 0,u=e;var _=n,x=v;try{x()}catch(w){Et(u,_,w)}}}a=a.next}while(a!==c)}}catch(w){Et(e,e.return,w)}}function jh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Cf(e,n)}catch(a){Et(t,t.return,a)}}}function Hh(t,e,n){n.props=fa(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Et(t,e,a)}}function kl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(u){Et(t,e,u)}}function Ke(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Et(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Et(t,e,u)}else n.current=null}function qh(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(u){Et(t,t.return,u)}}function Bc(t,e,n){try{var a=t.stateNode;Bp(a,t.type,n,e),a[se]=e}catch(u){Et(t,t.return,u)}}function Qh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Hn(t.type)||t.tag===4}function jc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Qh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Hn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Hc(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Ie));else if(a!==4&&(a===27&&Hn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Hc(t,e,n),t=t.sibling;t!==null;)Hc(t,e,n),t=t.sibling}function vu(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&Hn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(vu(t,e,n),t=t.sibling;t!==null;)vu(t,e,n),t=t.sibling}function Yh(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ee(e,a,n),e[Wt]=t,e[se]=n}catch(c){Et(t,t.return,c)}}var on=!1,Kt=!1,qc=!1,Gh=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function yp(t,e){if(t=t.containerInfo,uo=ju,t=$r(t),Us(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break t}var f=0,v=-1,_=-1,x=0,w=0,Q=t,z=null;e:for(;;){for(var U;Q!==n||u!==0&&Q.nodeType!==3||(v=f+u),Q!==c||a!==0&&Q.nodeType!==3||(_=f+a),Q.nodeType===3&&(f+=Q.nodeValue.length),(U=Q.firstChild)!==null;)z=Q,Q=U;for(;;){if(Q===t)break e;if(z===n&&++x===u&&(v=f),z===c&&++w===a&&(_=f),(U=Q.nextSibling)!==null)break;Q=z,z=Q.parentNode}Q=U}n=v===-1||_===-1?null:{start:v,end:_}}else n=null}n=n||{start:0,end:0}}else n=null;for(so={focusedElem:t,selectionRange:n},ju=!1,Ft=e;Ft!==null;)if(e=Ft,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ft=t;else for(;Ft!==null;){switch(e=Ft,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)u=t[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,n=e,u=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var k=fa(n.type,u);t=a.getSnapshotBeforeUpdate(k,c),a.__reactInternalSnapshotBeforeUpdate=t}catch(ut){Et(n,n.return,ut)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)ro(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ro(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Ft=t;break}Ft=e.return}}function Xh(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:fn(t,n),a&4&&Fl(5,n);break;case 1:if(fn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Et(n,n.return,f)}else{var u=fa(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Et(n,n.return,f)}}a&64&&jh(n),a&512&&kl(n,n.return);break;case 3:if(fn(t,n),a&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Cf(t,e)}catch(f){Et(n,n.return,f)}}break;case 27:e===null&&a&4&&Yh(n);case 26:case 5:fn(t,n),e===null&&a&4&&qh(n),a&512&&kl(n,n.return);break;case 12:fn(t,n);break;case 31:fn(t,n),a&4&&Zh(t,n);break;case 13:fn(t,n),a&4&&Jh(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Tp.bind(null,n),Vp(t,n))));break;case 22:if(a=n.memoizedState!==null||on,!a){e=e!==null&&e.memoizedState!==null||Kt,u=on;var c=Kt;on=a,(Kt=e)&&!c?hn(t,n,(n.subtreeFlags&8772)!==0):fn(t,n),on=u,Kt=c}break;case 30:break;default:fn(t,n)}}function Vh(t){var e=t.alternate;e!==null&&(t.alternate=null,Vh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ys(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Lt=null,oe=!1;function rn(t,e,n){for(n=n.child;n!==null;)Kh(t,e,n),n=n.sibling}function Kh(t,e,n){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(bl,n)}catch{}switch(n.tag){case 26:Kt||Ke(n,e),rn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||Ke(n,e);var a=Lt,u=oe;Hn(n.type)&&(Lt=n.stateNode,oe=!1),rn(t,e,n),ii(n.stateNode),Lt=a,oe=u;break;case 5:Kt||Ke(n,e);case 6:if(a=Lt,u=oe,Lt=null,rn(t,e,n),Lt=a,oe=u,Lt!==null)if(oe)try{(Lt.nodeType===9?Lt.body:Lt.nodeName==="HTML"?Lt.ownerDocument.body:Lt).removeChild(n.stateNode)}catch(c){Et(n,e,c)}else try{Lt.removeChild(n.stateNode)}catch(c){Et(n,e,c)}break;case 18:Lt!==null&&(oe?(t=Lt,jd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ol(t)):jd(Lt,n.stateNode));break;case 4:a=Lt,u=oe,Lt=n.stateNode.containerInfo,oe=!0,rn(t,e,n),Lt=a,oe=u;break;case 0:case 11:case 14:case 15:Dn(2,n,e),Kt||Dn(4,n,e),rn(t,e,n);break;case 1:Kt||(Ke(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Hh(n,e,a)),rn(t,e,n);break;case 21:rn(t,e,n);break;case 22:Kt=(a=Kt)||n.memoizedState!==null,rn(t,e,n),Kt=a;break;default:rn(t,e,n)}}function Zh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ol(t)}catch(n){Et(e,e.return,n)}}}function Jh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ol(t)}catch(n){Et(e,e.return,n)}}function vp(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Gh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Gh),e;default:throw Error(o(435,t.tag))}}function pu(t,e){var n=vp(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var u=Mp.bind(null,t,a);a.then(u,u)}})}function re(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],c=t,f=e,v=f;t:for(;v!==null;){switch(v.tag){case 27:if(Hn(v.type)){Lt=v.stateNode,oe=!1;break t}break;case 5:Lt=v.stateNode,oe=!1;break t;case 3:case 4:Lt=v.stateNode.containerInfo,oe=!0;break t}v=v.return}if(Lt===null)throw Error(o(160));Kh(c,f,u),Lt=null,oe=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Ph(e,t),e=e.sibling}var qe=null;function Ph(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:re(e,t),fe(t),a&4&&(Dn(3,t,t.return),Fl(3,t),Dn(5,t,t.return));break;case 1:re(e,t),fe(t),a&512&&(Kt||n===null||Ke(n,n.return)),a&64&&on&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var u=qe;if(re(e,t),fe(t),a&512&&(Kt||n===null||Ke(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,u=u.ownerDocument||u;e:switch(a){case"title":c=u.getElementsByTagName("title")[0],(!c||c[El]||c[Wt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(a),u.head.insertBefore(c,u.querySelector("head > title"))),ee(c,a,n),c[Wt]=t,Pt(c),a=c;break t;case"link":var f=Pd("link","href",u).get(a+(n.href||""));if(f){for(var v=0;v<f.length;v++)if(c=f[v],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(v,1);break e}}c=u.createElement(a),ee(c,a,n),u.head.appendChild(c);break;case"meta":if(f=Pd("meta","content",u).get(a+(n.content||""))){for(v=0;v<f.length;v++)if(c=f[v],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(v,1);break e}}c=u.createElement(a),ee(c,a,n),u.head.appendChild(c);break;default:throw Error(o(468,a))}c[Wt]=t,Pt(c),a=c}t.stateNode=a}else Fd(u,t.type,t.stateNode);else t.stateNode=Jd(u,a,t.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?Fd(u,t.type,t.stateNode):Jd(u,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Bc(t,t.memoizedProps,n.memoizedProps)}break;case 27:re(e,t),fe(t),a&512&&(Kt||n===null||Ke(n,n.return)),n!==null&&a&4&&Bc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(re(e,t),fe(t),a&512&&(Kt||n===null||Ke(n,n.return)),t.flags&32){u=t.stateNode;try{Ua(u,"")}catch(k){Et(t,t.return,k)}}a&4&&t.stateNode!=null&&(u=t.memoizedProps,Bc(t,u,n!==null?n.memoizedProps:u)),a&1024&&(qc=!0);break;case 6:if(re(e,t),fe(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(k){Et(t,t.return,k)}}break;case 3:if(Lu=null,u=qe,qe=Du(e.containerInfo),re(e,t),qe=u,fe(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ol(e.containerInfo)}catch(k){Et(t,t.return,k)}qc&&(qc=!1,Fh(t));break;case 4:a=qe,qe=Du(t.stateNode.containerInfo),re(e,t),fe(t),qe=a;break;case 12:re(e,t),fe(t);break;case 31:re(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,pu(t,a)));break;case 13:re(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Su=ne()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,pu(t,a)));break;case 22:u=t.memoizedState!==null;var _=n!==null&&n.memoizedState!==null,x=on,w=Kt;if(on=x||u,Kt=w||_,re(e,t),Kt=w,on=x,fe(t),a&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(n===null||_||on||Kt||ha(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){_=n=e;try{if(c=_.stateNode,u)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{v=_.stateNode;var Q=_.memoizedProps.style,z=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;v.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(k){Et(_,_.return,k)}}}else if(e.tag===6){if(n===null){_=e;try{_.stateNode.nodeValue=u?"":_.memoizedProps}catch(k){Et(_,_.return,k)}}}else if(e.tag===18){if(n===null){_=e;try{var U=_.stateNode;u?Hd(U,!0):Hd(_.stateNode,!1)}catch(k){Et(_,_.return,k)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,pu(t,n))));break;case 19:re(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,pu(t,a)));break;case 30:break;case 21:break;default:re(e,t),fe(t)}}function fe(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(Qh(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var u=n.stateNode,c=jc(t);vu(t,c,u);break;case 5:var f=n.stateNode;n.flags&32&&(Ua(f,""),n.flags&=-33);var v=jc(t);vu(t,v,f);break;case 3:case 4:var _=n.stateNode.containerInfo,x=jc(t);Hc(t,x,_);break;default:throw Error(o(161))}}catch(w){Et(t,t.return,w)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Fh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Fh(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function fn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Xh(t,e.alternate,e),e=e.sibling}function ha(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Dn(4,e,e.return),ha(e);break;case 1:Ke(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Hh(e,e.return,n),ha(e);break;case 27:ii(e.stateNode);case 26:case 5:Ke(e,e.return),ha(e);break;case 22:e.memoizedState===null&&ha(e);break;case 30:ha(e);break;default:ha(e)}t=t.sibling}}function hn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,u=t,c=e,f=c.flags;switch(c.tag){case 0:case 11:case 15:hn(u,c,n),Fl(4,c);break;case 1:if(hn(u,c,n),a=c,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(x){Et(a,a.return,x)}if(a=c,u=a.updateQueue,u!==null){var v=a.stateNode;try{var _=u.shared.hiddenCallbacks;if(_!==null)for(u.shared.hiddenCallbacks=null,u=0;u<_.length;u++)Of(_[u],v)}catch(x){Et(a,a.return,x)}}n&&f&64&&jh(c),kl(c,c.return);break;case 27:Yh(c);case 26:case 5:hn(u,c,n),n&&a===null&&f&4&&qh(c),kl(c,c.return);break;case 12:hn(u,c,n);break;case 31:hn(u,c,n),n&&f&4&&Zh(u,c);break;case 13:hn(u,c,n),n&&f&4&&Jh(u,c);break;case 22:c.memoizedState===null&&hn(u,c,n),kl(c,c.return);break;case 30:break;default:hn(u,c,n)}e=e.sibling}}function Qc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Bl(n))}function Yc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Bl(t))}function Qe(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kh(t,e,n,a),e=e.sibling}function kh(t,e,n,a){var u=e.flags;switch(e.tag){case 0:case 11:case 15:Qe(t,e,n,a),u&2048&&Fl(9,e);break;case 1:Qe(t,e,n,a);break;case 3:Qe(t,e,n,a),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Bl(t)));break;case 12:if(u&2048){Qe(t,e,n,a),t=e.stateNode;try{var c=e.memoizedProps,f=c.id,v=c.onPostCommit;typeof v=="function"&&v(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(_){Et(e,e.return,_)}}else Qe(t,e,n,a);break;case 31:Qe(t,e,n,a);break;case 13:Qe(t,e,n,a);break;case 23:break;case 22:c=e.stateNode,f=e.alternate,e.memoizedState!==null?c._visibility&2?Qe(t,e,n,a):Wl(t,e):c._visibility&2?Qe(t,e,n,a):(c._visibility|=2,Ia(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),u&2048&&Qc(f,e);break;case 24:Qe(t,e,n,a),u&2048&&Yc(e.alternate,e);break;default:Qe(t,e,n,a)}}function Ia(t,e,n,a,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,f=e,v=n,_=a,x=f.flags;switch(f.tag){case 0:case 11:case 15:Ia(c,f,v,_,u),Fl(8,f);break;case 23:break;case 22:var w=f.stateNode;f.memoizedState!==null?w._visibility&2?Ia(c,f,v,_,u):Wl(c,f):(w._visibility|=2,Ia(c,f,v,_,u)),u&&x&2048&&Qc(f.alternate,f);break;case 24:Ia(c,f,v,_,u),u&&x&2048&&Yc(f.alternate,f);break;default:Ia(c,f,v,_,u)}e=e.sibling}}function Wl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,u=a.flags;switch(a.tag){case 22:Wl(n,a),u&2048&&Qc(a.alternate,a);break;case 24:Wl(n,a),u&2048&&Yc(a.alternate,a);break;default:Wl(n,a)}e=e.sibling}}var Il=8192;function $a(t,e,n){if(t.subtreeFlags&Il)for(t=t.child;t!==null;)Wh(t,e,n),t=t.sibling}function Wh(t,e,n){switch(t.tag){case 26:$a(t,e,n),t.flags&Il&&t.memoizedState!==null&&ng(n,qe,t.memoizedState,t.memoizedProps);break;case 5:$a(t,e,n);break;case 3:case 4:var a=qe;qe=Du(t.stateNode.containerInfo),$a(t,e,n),qe=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Il,Il=16777216,$a(t,e,n),Il=a):$a(t,e,n));break;default:$a(t,e,n)}}function Ih(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function $l(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Ft=a,td(a,t)}Ih(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$h(t),t=t.sibling}function $h(t){switch(t.tag){case 0:case 11:case 15:$l(t),t.flags&2048&&Dn(9,t,t.return);break;case 3:$l(t);break;case 12:$l(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,gu(t)):$l(t);break;default:$l(t)}}function gu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Ft=a,td(a,t)}Ih(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Dn(8,e,e.return),gu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,gu(e));break;default:gu(e)}t=t.sibling}}function td(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:Dn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Bl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Ft=a;else t:for(n=t;Ft!==null;){a=Ft;var u=a.sibling,c=a.return;if(Vh(a),a===n){Ft=null;break t}if(u!==null){u.return=c,Ft=u;break t}Ft=c}}}var pp={getCacheForType:function(t){var e=$t(Gt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return $t(Gt).controller.signal}},gp=typeof WeakMap=="function"?WeakMap:Map,bt=0,At=null,ft=null,dt=0,Rt=0,_e=null,Un=!1,tl=!1,Gc=!1,dn=0,jt=0,Ln=0,da=0,Xc=0,Re=0,el=0,ti=null,he=null,Vc=!1,Su=0,ed=0,bu=1/0,_u=null,Nn=null,Zt=0,wn=null,nl=null,mn=0,Kc=0,Zc=null,nd=null,ei=0,Jc=null;function Ee(){return(bt&2)!==0&&dt!==0?dt&-dt:N.T!==null?$c():pr()}function ad(){if(Re===0)if((dt&536870912)===0||yt){var t=xi;xi<<=1,(xi&3932160)===0&&(xi=262144),Re=t}else Re=536870912;return t=Se.current,t!==null&&(t.flags|=32),Re}function de(t,e,n){(t===At&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(al(t,0),Bn(t,dt,Re,!1)),Rl(t,n),((bt&2)===0||t!==At)&&(t===At&&((bt&2)===0&&(da|=n),jt===4&&Bn(t,dt,Re,!1)),Ze(t))}function ld(t,e,n){if((bt&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||_l(t,e),u=a?_p(t,e):Fc(t,e,!0),c=a;do{if(u===0){tl&&!a&&Bn(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!Sp(n)){u=Fc(t,e,!1),c=!1;continue}if(u===2){if(c=e,t.errorRecoveryDisabledLanes&c)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var v=t;u=ti;var _=v.current.memoizedState.isDehydrated;if(_&&(al(v,f).flags|=256),f=Fc(v,f,!1),f!==2){if(Gc&&!_){v.errorRecoveryDisabledLanes|=c,da|=c,u=4;break t}c=he,he=u,c!==null&&(he===null?he=c:he.push.apply(he,c))}u=f}if(c=!1,u!==2)continue}}if(u===1){al(t,0),Bn(t,e,0,!0);break}t:{switch(a=t,c=u,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Bn(a,e,Re,!Un);break t;case 2:he=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(u=Su+300-ne(),10<u)){if(Bn(a,e,Re,!Un),Di(a,0,!0)!==0)break t;mn=e,a.timeoutHandle=wd(id.bind(null,a,n,he,_u,Vc,e,Re,da,el,Un,c,"Throttled",-0,0),u);break t}id(a,n,he,_u,Vc,e,Re,da,el,Un,c,null,-0,0)}}break}while(!0);Ze(t)}function id(t,e,n,a,u,c,f,v,_,x,w,Q,z,U){if(t.timeoutHandle=-1,Q=e.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ie},Wh(e,c,Q);var k=(c&62914560)===c?Su-ne():(c&4194048)===c?ed-ne():0;if(k=ag(Q,k),k!==null){mn=c,t.cancelPendingCommit=k(dd.bind(null,t,e,c,n,a,u,f,v,_,w,Q,null,z,U)),Bn(t,c,f,!x);return}}dd(t,e,c,n,a,u,f,v,_)}function Sp(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var u=n[a],c=u.getSnapshot;u=u.value;try{if(!pe(c(),u))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Bn(t,e,n,a){e&=~Xc,e&=~da,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var u=e;0<u;){var c=31-ve(u),f=1<<c;a[c]=-1,u&=~f}n!==0&&mr(t,n,e)}function Ru(){return(bt&6)===0?(ni(0),!1):!0}function Pc(){if(ft!==null){if(Rt===0)var t=ft.return;else t=ft,nn=la=null,rc(t),Ja=null,Hl=0,t=ft;for(;t!==null;)Bh(t.alternate,t),t=t.return;ft=null}}function al(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,qp(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),mn=0,Pc(),At=t,ft=n=tn(t.current,null),dt=e,Rt=0,_e=null,Un=!1,tl=_l(t,e),Gc=!1,el=Re=Xc=da=Ln=jt=0,he=ti=null,Vc=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var u=31-ve(a),c=1<<u;e|=t[u],a&=~c}return dn=e,Xi(),n}function ud(t,e){ct=null,N.H=Zl,e===Za||e===Wi?(e=Rf(),Rt=3):e===Is?(e=Rf(),Rt=4):Rt=e===Oc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,_e=e,ft===null&&(jt=1,fu(t,xe(e,t.current)))}function sd(){var t=Se.current;return t===null?!0:(dt&4194048)===dt?Le===null:(dt&62914560)===dt||(dt&536870912)!==0?t===Le:!1}function cd(){var t=N.H;return N.H=Zl,t===null?Zl:t}function od(){var t=N.A;return N.A=pp,t}function Eu(){jt=4,Un||(dt&4194048)!==dt&&Se.current!==null||(tl=!0),(Ln&134217727)===0&&(da&134217727)===0||At===null||Bn(At,dt,Re,!1)}function Fc(t,e,n){var a=bt;bt|=2;var u=cd(),c=od();(At!==t||dt!==e)&&(_u=null,al(t,e)),e=!1;var f=jt;t:do try{if(Rt!==0&&ft!==null){var v=ft,_=_e;switch(Rt){case 8:Pc(),f=6;break t;case 3:case 2:case 9:case 6:Se.current===null&&(e=!0);var x=Rt;if(Rt=0,_e=null,ll(t,v,_,x),n&&tl){f=0;break t}break;default:x=Rt,Rt=0,_e=null,ll(t,v,_,x)}}bp(),f=jt;break}catch(w){ud(t,w)}while(!0);return e&&t.shellSuspendCounter++,nn=la=null,bt=a,N.H=u,N.A=c,ft===null&&(At=null,dt=0,Xi()),f}function bp(){for(;ft!==null;)rd(ft)}function _p(t,e){var n=bt;bt|=2;var a=cd(),u=od();At!==t||dt!==e?(_u=null,bu=ne()+500,al(t,e)):tl=_l(t,e);t:do try{if(Rt!==0&&ft!==null){e=ft;var c=_e;e:switch(Rt){case 1:Rt=0,_e=null,ll(t,e,c,1);break;case 2:case 9:if(bf(c)){Rt=0,_e=null,fd(e);break}e=function(){Rt!==2&&Rt!==9||At!==t||(Rt=7),Ze(t)},c.then(e,e);break t;case 3:Rt=7;break t;case 4:Rt=5;break t;case 7:bf(c)?(Rt=0,_e=null,fd(e)):(Rt=0,_e=null,ll(t,e,c,7));break;case 5:var f=null;switch(ft.tag){case 26:f=ft.memoizedState;case 5:case 27:var v=ft;if(f?kd(f):v.stateNode.complete){Rt=0,_e=null;var _=v.sibling;if(_!==null)ft=_;else{var x=v.return;x!==null?(ft=x,Tu(x)):ft=null}break e}}Rt=0,_e=null,ll(t,e,c,5);break;case 6:Rt=0,_e=null,ll(t,e,c,6);break;case 8:Pc(),jt=6;break t;default:throw Error(o(462))}}Rp();break}catch(w){ud(t,w)}while(!0);return nn=la=null,N.H=a,N.A=u,bt=n,ft!==null?0:(At=null,dt=0,Xi(),jt)}function Rp(){for(;ft!==null&&!Ci();)rd(ft)}function rd(t){var e=Nh(t.alternate,t,dn);t.memoizedProps=t.pendingProps,e===null?Tu(t):ft=e}function fd(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Ah(n,e,e.pendingProps,e.type,void 0,dt);break;case 11:e=Ah(n,e,e.pendingProps,e.type.render,e.ref,dt);break;case 5:rc(e);default:Bh(n,e),e=ft=of(e,dn),e=Nh(n,e,dn)}t.memoizedProps=t.pendingProps,e===null?Tu(t):ft=e}function ll(t,e,n,a){nn=la=null,rc(e),Ja=null,Hl=0;var u=e.return;try{if(rp(t,u,e,n,dt)){jt=1,fu(t,xe(n,t.current)),ft=null;return}}catch(c){if(u!==null)throw ft=u,c;jt=1,fu(t,xe(n,t.current)),ft=null;return}e.flags&32768?(yt||a===1?t=!0:tl||(dt&536870912)!==0?t=!1:(Un=t=!0,(a===2||a===9||a===3||a===6)&&(a=Se.current,a!==null&&a.tag===13&&(a.flags|=16384))),hd(e,t)):Tu(e)}function Tu(t){var e=t;do{if((e.flags&32768)!==0){hd(e,Un);return}t=e.return;var n=dp(e.alternate,e,dn);if(n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);jt===0&&(jt=5)}function hd(t,e){do{var n=mp(t.alternate,t);if(n!==null){n.flags&=32767,ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=n}while(t!==null);jt=6,ft=null}function dd(t,e,n,a,u,c,f,v,_){t.cancelPendingCommit=null;do Mu();while(Zt!==0);if((bt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=js,ev(t,n,c,f,v,_),t===At&&(ft=At=null,dt=0),nl=e,wn=t,mn=n,Kc=c,Zc=u,nd=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Op(Ma,function(){return gd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=N.T,N.T=null,u=V.p,V.p=2,f=bt,bt|=4;try{yp(t,e,n)}finally{bt=f,V.p=u,N.T=a}}Zt=1,md(),yd(),vd()}}function md(){if(Zt===1){Zt=0;var t=wn,e=nl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=N.T,N.T=null;var a=V.p;V.p=2;var u=bt;bt|=4;try{Ph(e,t);var c=so,f=$r(t.containerInfo),v=c.focusedElem,_=c.selectionRange;if(f!==v&&v&&v.ownerDocument&&Ir(v.ownerDocument.documentElement,v)){if(_!==null&&Us(v)){var x=_.start,w=_.end;if(w===void 0&&(w=x),"selectionStart"in v)v.selectionStart=x,v.selectionEnd=Math.min(w,v.value.length);else{var Q=v.ownerDocument||document,z=Q&&Q.defaultView||window;if(z.getSelection){var U=z.getSelection(),k=v.textContent.length,ut=Math.min(_.start,k),Ot=_.end===void 0?ut:Math.min(_.end,k);!U.extend&&ut>Ot&&(f=Ot,Ot=ut,ut=f);var O=Wr(v,ut),E=Wr(v,Ot);if(O&&E&&(U.rangeCount!==1||U.anchorNode!==O.node||U.anchorOffset!==O.offset||U.focusNode!==E.node||U.focusOffset!==E.offset)){var A=Q.createRange();A.setStart(O.node,O.offset),U.removeAllRanges(),ut>Ot?(U.addRange(A),U.extend(E.node,E.offset)):(A.setEnd(E.node,E.offset),U.addRange(A))}}}}for(Q=[],U=v;U=U.parentNode;)U.nodeType===1&&Q.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Q.length;v++){var H=Q[v];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}ju=!!uo,so=uo=null}finally{bt=u,V.p=a,N.T=n}}t.current=e,Zt=2}}function yd(){if(Zt===2){Zt=0;var t=wn,e=nl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=N.T,N.T=null;var a=V.p;V.p=2;var u=bt;bt|=4;try{Xh(t,e.alternate,e)}finally{bt=u,V.p=a,N.T=n}}Zt=3}}function vd(){if(Zt===4||Zt===3){Zt=0,rs();var t=wn,e=nl,n=mn,a=nd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,nl=wn=null,pd(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Nn=null),ds(n),e=e.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(bl,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=N.T,u=V.p,V.p=2,N.T=null;try{for(var c=t.onRecoverableError,f=0;f<a.length;f++){var v=a[f];c(v.value,{componentStack:v.stack})}}finally{N.T=e,V.p=u}}(mn&3)!==0&&Mu(),Ze(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===Jc?ei++:(ei=0,Jc=t):ei=0,ni(0)}}function pd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Bl(e)))}function Mu(){return md(),yd(),vd(),gd()}function gd(){if(Zt!==5)return!1;var t=wn,e=Kc;Kc=0;var n=ds(mn),a=N.T,u=V.p;try{V.p=32>n?32:n,N.T=null,n=Zc,Zc=null;var c=wn,f=mn;if(Zt=0,nl=wn=null,mn=0,(bt&6)!==0)throw Error(o(331));var v=bt;if(bt|=4,$h(c.current),kh(c,c.current,f,n),bt=v,ni(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(bl,c)}catch{}return!0}finally{V.p=u,N.T=a,pd(t,e)}}function Sd(t,e,n){e=xe(n,e),e=Mc(t.stateNode,e,2),t=An(t,e,2),t!==null&&(Rl(t,2),Ze(t))}function Et(t,e,n){if(t.tag===3)Sd(t,t,n);else for(;e!==null;){if(e.tag===3){Sd(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Nn===null||!Nn.has(a))){t=xe(n,t),n=bh(2),a=An(e,n,2),a!==null&&(_h(n,a,e,t),Rl(a,2),Ze(a));break}}e=e.return}}function kc(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new gp;var u=new Set;a.set(e,u)}else u=a.get(e),u===void 0&&(u=new Set,a.set(e,u));u.has(n)||(Gc=!0,u.add(n),t=Ep.bind(null,t,e,n),e.then(t,t))}function Ep(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,At===t&&(dt&n)===n&&(jt===4||jt===3&&(dt&62914560)===dt&&300>ne()-Su?(bt&2)===0&&al(t,0):Xc|=n,el===dt&&(el=0)),Ze(t)}function bd(t,e){e===0&&(e=dr()),t=ea(t,e),t!==null&&(Rl(t,e),Ze(t))}function Tp(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),bd(t,n)}function Mp(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),bd(t,n)}function Op(t,e){return je(t,e)}var Ou=null,il=null,Wc=!1,Cu=!1,Ic=!1,jn=0;function Ze(t){t!==il&&t.next===null&&(il===null?Ou=il=t:il=il.next=t),Cu=!0,Wc||(Wc=!0,Ap())}function ni(t,e){if(!Ic&&Cu){Ic=!0;do for(var n=!1,a=Ou;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var c=0;else{var f=a.suspendedLanes,v=a.pingedLanes;c=(1<<31-ve(42|t)+1)-1,c&=u&~(f&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Td(a,c))}else c=dt,c=Di(a,a===At?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||_l(a,c)||(n=!0,Td(a,c));a=a.next}while(n);Ic=!1}}function Cp(){_d()}function _d(){Cu=Wc=!1;var t=0;jn!==0&&Hp()&&(t=jn);for(var e=ne(),n=null,a=Ou;a!==null;){var u=a.next,c=Rd(a,e);c===0?(a.next=null,n===null?Ou=u:n.next=u,u===null&&(il=n)):(n=a,(t!==0||(c&3)!==0)&&(Cu=!0)),a=u}Zt!==0&&Zt!==5||ni(t),jn!==0&&(jn=0)}function Rd(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var f=31-ve(c),v=1<<f,_=u[f];_===-1?((v&n)===0||(v&a)!==0)&&(u[f]=tv(v,e)):_<=e&&(t.expiredLanes|=v),c&=~v}if(e=At,n=dt,n=Di(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Sl(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||_l(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Sl(a),ds(n)){case 2:case 8:n=Ge;break;case 32:n=Ma;break;case 268435456:n=hr;break;default:n=Ma}return a=Ed.bind(null,t),n=je(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Sl(a),t.callbackPriority=2,t.callbackNode=null,2}function Ed(t,e){if(Zt!==0&&Zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Mu()&&t.callbackNode!==n)return null;var a=dt;return a=Di(t,t===At?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(ld(t,a,e),Rd(t,ne()),t.callbackNode!=null&&t.callbackNode===n?Ed.bind(null,t):null)}function Td(t,e){if(Mu())return null;ld(t,e,!0)}function Ap(){Qp(function(){(bt&6)!==0?je(kt,Cp):_d()})}function $c(){if(jn===0){var t=Va;t===0&&(t=Ai,Ai<<=1,(Ai&261888)===0&&(Ai=256)),jn=t}return jn}function Md(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:wi(""+t)}function Od(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function xp(t,e,n,a,u){if(e==="submit"&&n&&n.stateNode===u){var c=Md((u[se]||null).action),f=a.submitter;f&&(e=(e=f[se]||null)?Md(e.formAction):f.getAttribute("formAction"),e!==null&&(c=e,f=null));var v=new qi("action","action",null,a,u);t.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(jn!==0){var _=f?Od(u,f):new FormData(u);Sc(n,{pending:!0,data:_,method:u.method,action:c},null,_)}}else typeof c=="function"&&(v.preventDefault(),_=f?Od(u,f):new FormData(u),Sc(n,{pending:!0,data:_,method:u.method,action:c},c,_))},currentTarget:u}]})}}for(var to=0;to<Bs.length;to++){var eo=Bs[to],zp=eo.toLowerCase(),Dp=eo[0].toUpperCase()+eo.slice(1);He(zp,"on"+Dp)}He(nf,"onAnimationEnd"),He(af,"onAnimationIteration"),He(lf,"onAnimationStart"),He("dblclick","onDoubleClick"),He("focusin","onFocus"),He("focusout","onBlur"),He(Jv,"onTransitionRun"),He(Pv,"onTransitionStart"),He(Fv,"onTransitionCancel"),He(uf,"onTransitionEnd"),za("onMouseEnter",["mouseout","mouseover"]),za("onMouseLeave",["mouseout","mouseover"]),za("onPointerEnter",["pointerout","pointerover"]),za("onPointerLeave",["pointerout","pointerover"]),Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ai="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Up=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ai));function Cd(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],u=a.event;a=a.listeners;t:{var c=void 0;if(e)for(var f=a.length-1;0<=f;f--){var v=a[f],_=v.instance,x=v.currentTarget;if(v=v.listener,_!==c&&u.isPropagationStopped())break t;c=v,u.currentTarget=x;try{c(u)}catch(w){Gi(w)}u.currentTarget=null,c=_}else for(f=0;f<a.length;f++){if(v=a[f],_=v.instance,x=v.currentTarget,v=v.listener,_!==c&&u.isPropagationStopped())break t;c=v,u.currentTarget=x;try{c(u)}catch(w){Gi(w)}u.currentTarget=null,c=_}}}}function ht(t,e){var n=e[ms];n===void 0&&(n=e[ms]=new Set);var a=t+"__bubble";n.has(a)||(Ad(e,t,2,!1),n.add(a))}function no(t,e,n){var a=0;e&&(a|=4),Ad(n,t,a,e)}var Au="_reactListening"+Math.random().toString(36).slice(2);function ao(t){if(!t[Au]){t[Au]=!0,br.forEach(function(n){n!=="selectionchange"&&(Up.has(n)||no(n,!1,t),no(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Au]||(e[Au]=!0,no("selectionchange",!1,e))}}function Ad(t,e,n,a){switch(am(e)){case 2:var u=ug;break;case 8:u=sg;break;default:u=So}n=u.bind(null,e,n,t),u=void 0,!Es||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),a?u!==void 0?t.addEventListener(e,n,{capture:!0,passive:u}):t.addEventListener(e,n,!0):u!==void 0?t.addEventListener(e,n,{passive:u}):t.addEventListener(e,n,!1)}function lo(t,e,n,a,u){var c=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var v=a.stateNode.containerInfo;if(v===u)break;if(f===4)for(f=a.return;f!==null;){var _=f.tag;if((_===3||_===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;v!==null;){if(f=Ca(v),f===null)return;if(_=f.tag,_===5||_===6||_===26||_===27){a=c=f;continue t}v=v.parentNode}}a=a.return}Ur(function(){var x=c,w=_s(n),Q=[];t:{var z=sf.get(t);if(z!==void 0){var U=qi,k=t;switch(t){case"keypress":if(ji(n)===0)break t;case"keydown":case"keyup":U=Mv;break;case"focusin":k="focus",U=Cs;break;case"focusout":k="blur",U=Cs;break;case"beforeblur":case"afterblur":U=Cs;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=wr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=dv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Av;break;case nf:case af:case lf:U=vv;break;case uf:U=zv;break;case"scroll":case"scrollend":U=fv;break;case"wheel":U=Uv;break;case"copy":case"cut":case"paste":U=gv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=jr;break;case"toggle":case"beforetoggle":U=Nv}var ut=(e&4)!==0,Ot=!ut&&(t==="scroll"||t==="scrollend"),O=ut?z!==null?z+"Capture":null:z;ut=[];for(var E=x,A;E!==null;){var H=E;if(A=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||A===null||O===null||(H=Ml(E,O),H!=null&&ut.push(li(E,H,A))),Ot)break;E=E.return}0<ut.length&&(z=new U(z,k,null,n,w),Q.push({event:z,listeners:ut}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",U=t==="mouseout"||t==="pointerout",z&&n!==bs&&(k=n.relatedTarget||n.fromElement)&&(Ca(k)||k[Oa]))break t;if((U||z)&&(z=w.window===w?w:(z=w.ownerDocument)?z.defaultView||z.parentWindow:window,U?(k=n.relatedTarget||n.toElement,U=x,k=k?Ca(k):null,k!==null&&(Ot=h(k),ut=k.tag,k!==Ot||ut!==5&&ut!==27&&ut!==6)&&(k=null)):(U=null,k=x),U!==k)){if(ut=wr,H="onMouseLeave",O="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(ut=jr,H="onPointerLeave",O="onPointerEnter",E="pointer"),Ot=U==null?z:Tl(U),A=k==null?z:Tl(k),z=new ut(H,E+"leave",U,n,w),z.target=Ot,z.relatedTarget=A,H=null,Ca(w)===x&&(ut=new ut(O,E+"enter",k,n,w),ut.target=A,ut.relatedTarget=Ot,H=ut),Ot=H,U&&k)e:{for(ut=Lp,O=U,E=k,A=0,H=O;H;H=ut(H))A++;H=0;for(var et=E;et;et=ut(et))H++;for(;0<A-H;)O=ut(O),A--;for(;0<H-A;)E=ut(E),H--;for(;A--;){if(O===E||E!==null&&O===E.alternate){ut=O;break e}O=ut(O),E=ut(E)}ut=null}else ut=null;U!==null&&xd(Q,z,U,ut,!1),k!==null&&Ot!==null&&xd(Q,Ot,k,ut,!0)}}t:{if(z=x?Tl(x):window,U=z.nodeName&&z.nodeName.toLowerCase(),U==="select"||U==="input"&&z.type==="file")var pt=Kr;else if(Xr(z))if(Zr)pt=Vv;else{pt=Gv;var I=Yv}else U=z.nodeName,!U||U.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?x&&Ss(x.elementType)&&(pt=Kr):pt=Xv;if(pt&&(pt=pt(t,x))){Vr(Q,pt,n,w);break t}I&&I(t,z,x),t==="focusout"&&x&&z.type==="number"&&x.memoizedProps.value!=null&&gs(z,"number",z.value)}switch(I=x?Tl(x):window,t){case"focusin":(Xr(I)||I.contentEditable==="true")&&(Ba=I,Ls=x,Ll=null);break;case"focusout":Ll=Ls=Ba=null;break;case"mousedown":Ns=!0;break;case"contextmenu":case"mouseup":case"dragend":Ns=!1,tf(Q,n,w);break;case"selectionchange":if(Zv)break;case"keydown":case"keyup":tf(Q,n,w)}var ot;if(xs)t:{switch(t){case"compositionstart":var mt="onCompositionStart";break t;case"compositionend":mt="onCompositionEnd";break t;case"compositionupdate":mt="onCompositionUpdate";break t}mt=void 0}else wa?Yr(t,n)&&(mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(mt="onCompositionStart");mt&&(Hr&&n.locale!=="ko"&&(wa||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&wa&&(ot=Lr()):(_n=w,Ts="value"in _n?_n.value:_n.textContent,wa=!0)),I=xu(x,mt),0<I.length&&(mt=new Br(mt,t,null,n,w),Q.push({event:mt,listeners:I}),ot?mt.data=ot:(ot=Gr(n),ot!==null&&(mt.data=ot)))),(ot=Bv?jv(t,n):Hv(t,n))&&(mt=xu(x,"onBeforeInput"),0<mt.length&&(I=new Br("onBeforeInput","beforeinput",null,n,w),Q.push({event:I,listeners:mt}),I.data=ot)),xp(Q,t,x,n,w)}Cd(Q,e)})}function li(t,e,n){return{instance:t,listener:e,currentTarget:n}}function xu(t,e){for(var n=e+"Capture",a=[];t!==null;){var u=t,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=Ml(t,n),u!=null&&a.unshift(li(t,u,c)),u=Ml(t,e),u!=null&&a.push(li(t,u,c))),t.tag===3)return a;t=t.return}return[]}function Lp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function xd(t,e,n,a,u){for(var c=e._reactName,f=[];n!==null&&n!==a;){var v=n,_=v.alternate,x=v.stateNode;if(v=v.tag,_!==null&&_===a)break;v!==5&&v!==26&&v!==27||x===null||(_=x,u?(x=Ml(n,c),x!=null&&f.unshift(li(n,x,_))):u||(x=Ml(n,c),x!=null&&f.push(li(n,x,_)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var Np=/\r\n?/g,wp=/\u0000|\uFFFD/g;function zd(t){return(typeof t=="string"?t:""+t).replace(Np,`
9
- `).replace(wp,"")}function Dd(t,e){return e=zd(e),zd(t)===e}function Mt(t,e,n,a,u,c){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ua(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ua(t,""+a);break;case"className":Li(t,"class",a);break;case"tabIndex":Li(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Li(t,n,a);break;case"style":zr(t,a,c);break;case"data":if(e!=="object"){Li(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=wi(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(e!=="input"&&Mt(t,e,"name",u.name,u,null),Mt(t,e,"formEncType",u.formEncType,u,null),Mt(t,e,"formMethod",u.formMethod,u,null),Mt(t,e,"formTarget",u.formTarget,u,null)):(Mt(t,e,"encType",u.encType,u,null),Mt(t,e,"method",u.method,u,null),Mt(t,e,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=wi(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=Ie);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=wi(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":ht("beforetoggle",t),ht("toggle",t),Ui(t,"popover",a);break;case"xlinkActuate":We(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":We(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":We(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":We(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":We(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":We(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":We(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":We(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":We(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ui(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ov.get(n)||n,Ui(t,n,a))}}function io(t,e,n,a,u,c){switch(n){case"style":zr(t,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?Ua(t,a):(typeof a=="number"||typeof a=="bigint")&&Ua(t,""+a);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_r.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),e=n.slice(2,u?n.length-7:void 0),c=t[se]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,u),typeof a=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,u);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):Ui(t,n,a)}}}function ee(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",t),ht("load",t);var a=!1,u=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Mt(t,e,c,f,n,null)}}u&&Mt(t,e,"srcSet",n.srcSet,n,null),a&&Mt(t,e,"src",n.src,n,null);return;case"input":ht("invalid",t);var v=c=f=u=null,_=null,x=null;for(a in n)if(n.hasOwnProperty(a)){var w=n[a];if(w!=null)switch(a){case"name":u=w;break;case"type":f=w;break;case"checked":_=w;break;case"defaultChecked":x=w;break;case"value":c=w;break;case"defaultValue":v=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,e));break;default:Mt(t,e,a,w,n,null)}}Or(t,c,v,_,x,f,u,!1);return;case"select":ht("invalid",t),a=f=c=null;for(u in n)if(n.hasOwnProperty(u)&&(v=n[u],v!=null))switch(u){case"value":c=v;break;case"defaultValue":f=v;break;case"multiple":a=v;default:Mt(t,e,u,v,n,null)}e=c,n=f,t.multiple=!!a,e!=null?Da(t,!!a,e,!1):n!=null&&Da(t,!!a,n,!0);return;case"textarea":ht("invalid",t),c=u=a=null;for(f in n)if(n.hasOwnProperty(f)&&(v=n[f],v!=null))switch(f){case"value":a=v;break;case"defaultValue":u=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:Mt(t,e,f,v,n,null)}Ar(t,a,u,c);return;case"option":for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!=null)&&(_==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Mt(t,e,_,a,n,null));return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(a=0;a<ai.length;a++)ht(ai[a],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(x in n)if(n.hasOwnProperty(x)&&(a=n[x],a!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Mt(t,e,x,a,n,null)}return;default:if(Ss(e)){for(w in n)n.hasOwnProperty(w)&&(a=n[w],a!==void 0&&io(t,e,w,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Mt(t,e,v,a,n,null))}function Bp(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,f=null,v=null,_=null,x=null,w=null;for(U in n){var Q=n[U];if(n.hasOwnProperty(U)&&Q!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":_=Q;default:a.hasOwnProperty(U)||Mt(t,e,U,null,a,Q)}}for(var z in a){var U=a[z];if(Q=n[z],a.hasOwnProperty(z)&&(U!=null||Q!=null))switch(z){case"type":c=U;break;case"name":u=U;break;case"checked":x=U;break;case"defaultChecked":w=U;break;case"value":f=U;break;case"defaultValue":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,e));break;default:U!==Q&&Mt(t,e,z,U,a,Q)}}ps(t,f,v,_,x,w,c,u);return;case"select":U=f=v=z=null;for(c in n)if(_=n[c],n.hasOwnProperty(c)&&_!=null)switch(c){case"value":break;case"multiple":U=_;default:a.hasOwnProperty(c)||Mt(t,e,c,null,a,_)}for(u in a)if(c=a[u],_=n[u],a.hasOwnProperty(u)&&(c!=null||_!=null))switch(u){case"value":z=c;break;case"defaultValue":v=c;break;case"multiple":f=c;default:c!==_&&Mt(t,e,u,c,a,_)}e=v,n=f,a=U,z!=null?Da(t,!!n,z,!1):!!a!=!!n&&(e!=null?Da(t,!!n,e,!0):Da(t,!!n,n?[]:"",!1));return;case"textarea":U=z=null;for(v in n)if(u=n[v],n.hasOwnProperty(v)&&u!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Mt(t,e,v,null,a,u)}for(f in a)if(u=a[f],c=n[f],a.hasOwnProperty(f)&&(u!=null||c!=null))switch(f){case"value":z=u;break;case"defaultValue":U=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==c&&Mt(t,e,f,u,a,c)}Cr(t,z,U);return;case"option":for(var k in n)z=n[k],n.hasOwnProperty(k)&&z!=null&&!a.hasOwnProperty(k)&&(k==="selected"?t.selected=!1:Mt(t,e,k,null,a,z));for(_ in a)z=a[_],U=n[_],a.hasOwnProperty(_)&&z!==U&&(z!=null||U!=null)&&(_==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Mt(t,e,_,z,a,U));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ut in n)z=n[ut],n.hasOwnProperty(ut)&&z!=null&&!a.hasOwnProperty(ut)&&Mt(t,e,ut,null,a,z);for(x in a)if(z=a[x],U=n[x],a.hasOwnProperty(x)&&z!==U&&(z!=null||U!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:Mt(t,e,x,z,a,U)}return;default:if(Ss(e)){for(var Ot in n)z=n[Ot],n.hasOwnProperty(Ot)&&z!==void 0&&!a.hasOwnProperty(Ot)&&io(t,e,Ot,void 0,a,z);for(w in a)z=a[w],U=n[w],!a.hasOwnProperty(w)||z===U||z===void 0&&U===void 0||io(t,e,w,z,a,U);return}}for(var O in n)z=n[O],n.hasOwnProperty(O)&&z!=null&&!a.hasOwnProperty(O)&&Mt(t,e,O,null,a,z);for(Q in a)z=a[Q],U=n[Q],!a.hasOwnProperty(Q)||z===U||z==null&&U==null||Mt(t,e,Q,z,a,U)}function Ud(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var u=n[a],c=u.transferSize,f=u.initiatorType,v=u.duration;if(c&&v&&Ud(f)){for(f=0,v=u.responseEnd,a+=1;a<n.length;a++){var _=n[a],x=_.startTime;if(x>v)break;var w=_.transferSize,Q=_.initiatorType;w&&Ud(Q)&&(_=_.responseEnd,f+=w*(_<v?1:(v-x)/(_-x)))}if(--a,e+=8*(c+f)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var uo=null,so=null;function zu(t){return t.nodeType===9?t:t.ownerDocument}function Ld(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Nd(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function co(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var oo=null;function Hp(){var t=window.event;return t&&t.type==="popstate"?t===oo?!1:(oo=t,!0):(oo=null,!1)}var wd=typeof setTimeout=="function"?setTimeout:void 0,qp=typeof clearTimeout=="function"?clearTimeout:void 0,Bd=typeof Promise=="function"?Promise:void 0,Qp=typeof queueMicrotask=="function"?queueMicrotask:typeof Bd<"u"?function(t){return Bd.resolve(null).then(t).catch(Yp)}:wd;function Yp(t){setTimeout(function(){throw t})}function Hn(t){return t==="head"}function jd(t,e){var n=e,a=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(u),ol(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")ii(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ii(n);for(var c=n.firstChild;c;){var f=c.nextSibling,v=c.nodeName;c[El]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&ii(t.ownerDocument.body);n=u}while(n);ol(e)}function Hd(t,e){var n=t;t=0;do{var a=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=a}while(n)}function ro(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ro(n),ys(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Gp(t,e,n,a){for(;t.nodeType===1;){var u=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[El])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Ne(t.nextSibling),t===null)break}return null}function Xp(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ne(t.nextSibling),t===null))return null;return t}function qd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ne(t.nextSibling),t===null))return null;return t}function fo(t){return t.data==="$?"||t.data==="$~"}function ho(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Vp(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Ne(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var mo=null;function Qd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ne(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Yd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function Gd(t,e,n){switch(e=zu(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function ii(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ys(t)}var we=new Map,Xd=new Set;function Du(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yn=V.d;V.d={f:Kp,r:Zp,D:Jp,C:Pp,L:Fp,m:kp,X:Ip,S:Wp,M:$p};function Kp(){var t=yn.f(),e=Ru();return t||e}function Zp(t){var e=Aa(t);e!==null&&e.tag===5&&e.type==="form"?uh(e):yn.r(t)}var ul=typeof document>"u"?null:document;function Vd(t,e,n){var a=ul;if(a&&typeof e=="string"&&e){var u=Ce(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),Xd.has(u)||(Xd.add(u),t={rel:t,crossOrigin:n,href:e},a.querySelector(u)===null&&(e=a.createElement("link"),ee(e,"link",t),Pt(e),a.head.appendChild(e)))}}function Jp(t){yn.D(t),Vd("dns-prefetch",t,null)}function Pp(t,e){yn.C(t,e),Vd("preconnect",t,e)}function Fp(t,e,n){yn.L(t,e,n);var a=ul;if(a&&t&&e){var u='link[rel="preload"][as="'+Ce(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Ce(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Ce(n.imageSizes)+'"]')):u+='[href="'+Ce(t)+'"]';var c=u;switch(e){case"style":c=sl(t);break;case"script":c=cl(t)}we.has(c)||(t=g({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),we.set(c,t),a.querySelector(u)!==null||e==="style"&&a.querySelector(ui(c))||e==="script"&&a.querySelector(si(c))||(e=a.createElement("link"),ee(e,"link",t),Pt(e),a.head.appendChild(e)))}}function kp(t,e){yn.m(t,e);var n=ul;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ce(a)+'"][href="'+Ce(t)+'"]',c=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=cl(t)}if(!we.has(c)&&(t=g({rel:"modulepreload",href:t},e),we.set(c,t),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(si(c)))return}a=n.createElement("link"),ee(a,"link",t),Pt(a),n.head.appendChild(a)}}}function Wp(t,e,n){yn.S(t,e,n);var a=ul;if(a&&t){var u=xa(a).hoistableStyles,c=sl(t);e=e||"default";var f=u.get(c);if(!f){var v={loading:0,preload:null};if(f=a.querySelector(ui(c)))v.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n),(n=we.get(c))&&yo(t,n);var _=f=a.createElement("link");Pt(_),ee(_,"link",t),_._p=new Promise(function(x,w){_.onload=x,_.onerror=w}),_.addEventListener("load",function(){v.loading|=1}),_.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Uu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:v},u.set(c,f)}}}function Ip(t,e){yn.X(t,e);var n=ul;if(n&&t){var a=xa(n).hoistableScripts,u=cl(t),c=a.get(u);c||(c=n.querySelector(si(u)),c||(t=g({src:t,async:!0},e),(e=we.get(u))&&vo(t,e),c=n.createElement("script"),Pt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function $p(t,e){yn.M(t,e);var n=ul;if(n&&t){var a=xa(n).hoistableScripts,u=cl(t),c=a.get(u);c||(c=n.querySelector(si(u)),c||(t=g({src:t,async:!0,type:"module"},e),(e=we.get(u))&&vo(t,e),c=n.createElement("script"),Pt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function Kd(t,e,n,a){var u=(u=rt.current)?Du(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=sl(n.href),n=xa(u).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=sl(n.href);var c=xa(u).hoistableStyles,f=c.get(t);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=u.querySelector(ui(t)))&&!c._p&&(f.instance=c,f.state.loading=5),we.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},we.set(t,n),c||tg(u,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=cl(n),n=xa(u).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function sl(t){return'href="'+Ce(t)+'"'}function ui(t){return'link[rel="stylesheet"]['+t+"]"}function Zd(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function tg(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ee(e,"link",n),Pt(e),t.head.appendChild(e))}function cl(t){return'[src="'+Ce(t)+'"]'}function si(t){return"script[async]"+t}function Jd(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ce(n.href)+'"]');if(a)return e.instance=a,Pt(a),a;var u=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Pt(a),ee(a,"style",u),Uu(a,n.precedence,t),e.instance=a;case"stylesheet":u=sl(n.href);var c=t.querySelector(ui(u));if(c)return e.state.loading|=4,e.instance=c,Pt(c),c;a=Zd(n),(u=we.get(u))&&yo(a,u),c=(t.ownerDocument||t).createElement("link"),Pt(c);var f=c;return f._p=new Promise(function(v,_){f.onload=v,f.onerror=_}),ee(c,"link",a),e.state.loading|=4,Uu(c,n.precedence,t),e.instance=c;case"script":return c=cl(n.src),(u=t.querySelector(si(c)))?(e.instance=u,Pt(u),u):(a=n,(u=we.get(c))&&(a=g({},n),vo(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),Pt(u),ee(u,"link",a),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Uu(a,n.precedence,t));return e.instance}function Uu(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,c=u,f=0;f<a.length;f++){var v=a[f];if(v.dataset.precedence===e)c=v;else if(c!==u)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function yo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function vo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Lu=null;function Pd(t,e,n){if(Lu===null){var a=new Map,u=Lu=new Map;u.set(n,a)}else u=Lu,a=u.get(n),a||(a=new Map,u.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),u=0;u<n.length;u++){var c=n[u];if(!(c[El]||c[Wt]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(e)||"";f=t+f;var v=a.get(f);v?v.push(c):a.set(f,[c])}}return a}function Fd(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function eg(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function kd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function ng(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=sl(a.href),c=e.querySelector(ui(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Nu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,Pt(c);return}c=e.ownerDocument||e,a=Zd(a),(u=we.get(u))&&yo(a,u),c=c.createElement("link"),Pt(c);var f=c;f._p=new Promise(function(v,_){f.onload=v,f.onerror=_}),ee(c,"link",a),n.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Nu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var po=0;function ag(t,e){return t.stylesheets&&t.count===0&&Bu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Bu(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&po===0&&(po=62500*jp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Bu(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>po?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function Nu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var wu=null;function Bu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,wu=new Map,e.forEach(lg,t),wu=null,Nu.call(t))}function lg(t,e){if(!(e.state.loading&4)){var n=wu.get(t);if(n)var a=n.get(null);else{n=new Map,wu.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var f=u[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}u=e.instance,f=u.getAttribute("data-precedence"),c=n.get(f)||a,c===a&&n.set(null,u),n.set(f,u),this.count++,a=Nu.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),c?c.parentNode.insertBefore(u,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var ci={$$typeof:X,Provider:null,Consumer:null,_currentValue:at,_currentValue2:at,_threadCount:0};function ig(t,e,n,a,u,c,f,v,_){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fs(0),this.hiddenUpdates=fs(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Wd(t,e,n,a,u,c,f,v,_,x,w,Q){return t=new ig(t,e,n,f,_,x,w,Q,v),e=1,c===!0&&(e|=24),c=ge(3,null,null,e),t.current=c,c.stateNode=t,e=Fs(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:e},$s(c),t}function Id(t){return t?(t=qa,t):qa}function $d(t,e,n,a,u,c){u=Id(u),a.context===null?a.context=u:a.pendingContext=u,a=Cn(e),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=An(t,a,e),n!==null&&(de(n,t,e),Ql(n,t,e))}function tm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function go(t,e){tm(t,e),(t=t.alternate)&&tm(t,e)}function em(t){if(t.tag===13||t.tag===31){var e=ea(t,67108864);e!==null&&de(e,t,67108864),go(t,67108864)}}function nm(t){if(t.tag===13||t.tag===31){var e=Ee();e=hs(e);var n=ea(t,e);n!==null&&de(n,t,e),go(t,e)}}var ju=!0;function ug(t,e,n,a){var u=N.T;N.T=null;var c=V.p;try{V.p=2,So(t,e,n,a)}finally{V.p=c,N.T=u}}function sg(t,e,n,a){var u=N.T;N.T=null;var c=V.p;try{V.p=8,So(t,e,n,a)}finally{V.p=c,N.T=u}}function So(t,e,n,a){if(ju){var u=bo(a);if(u===null)lo(t,e,a,Hu,n),lm(t,a);else if(og(u,t,e,n,a))a.stopPropagation();else if(lm(t,a),e&4&&-1<cg.indexOf(t)){for(;u!==null;){var c=Aa(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=kn(c.pendingLanes);if(f!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;f;){var _=1<<31-ve(f);v.entanglements[1]|=_,f&=~_}Ze(c),(bt&6)===0&&(bu=ne()+500,ni(0))}}break;case 31:case 13:v=ea(c,2),v!==null&&de(v,c,2),Ru(),go(c,2)}if(c=bo(a),c===null&&lo(t,e,a,Hu,n),c===u)break;u=c}u!==null&&a.stopPropagation()}else lo(t,e,a,null,n)}}function bo(t){return t=_s(t),_o(t)}var Hu=null;function _o(t){if(Hu=null,t=Ca(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(e),t!==null)return t;t=null}else if(n===31){if(t=p(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Hu=t,null}function am(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xt()){case kt:return 2;case Ge:return 8;case Ma:case Py:return 32;case hr:return 268435456;default:return 32}default:return 32}}var Ro=!1,qn=null,Qn=null,Yn=null,oi=new Map,ri=new Map,Gn=[],cg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function lm(t,e){switch(t){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Yn=null;break;case"pointerover":case"pointerout":oi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ri.delete(e.pointerId)}}function fi(t,e,n,a,u,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[u]},e!==null&&(e=Aa(e),e!==null&&em(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function og(t,e,n,a,u){switch(e){case"focusin":return qn=fi(qn,t,e,n,a,u),!0;case"dragenter":return Qn=fi(Qn,t,e,n,a,u),!0;case"mouseover":return Yn=fi(Yn,t,e,n,a,u),!0;case"pointerover":var c=u.pointerId;return oi.set(c,fi(oi.get(c)||null,t,e,n,a,u)),!0;case"gotpointercapture":return c=u.pointerId,ri.set(c,fi(ri.get(c)||null,t,e,n,a,u)),!0}return!1}function im(t){var e=Ca(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,gr(t.priority,function(){nm(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,gr(t.priority,function(){nm(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function qu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=bo(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);bs=a,n.target.dispatchEvent(a),bs=null}else return e=Aa(n),e!==null&&em(e),t.blockedOn=n,!1;e.shift()}return!0}function um(t,e,n){qu(t)&&n.delete(e)}function rg(){Ro=!1,qn!==null&&qu(qn)&&(qn=null),Qn!==null&&qu(Qn)&&(Qn=null),Yn!==null&&qu(Yn)&&(Yn=null),oi.forEach(um),ri.forEach(um)}function Qu(t,e){t.blockedOn===e&&(t.blockedOn=null,Ro||(Ro=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,rg)))}var Yu=null;function sm(t){Yu!==t&&(Yu=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Yu===t&&(Yu=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],u=t[e+2];if(typeof a!="function"){if(_o(a||n)===null)continue;break}var c=Aa(n);c!==null&&(t.splice(e,3),e-=3,Sc(c,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function ol(t){function e(_){return Qu(_,t)}qn!==null&&Qu(qn,t),Qn!==null&&Qu(Qn,t),Yn!==null&&Qu(Yn,t),oi.forEach(e),ri.forEach(e);for(var n=0;n<Gn.length;n++){var a=Gn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Gn.length&&(n=Gn[0],n.blockedOn===null);)im(n),n.blockedOn===null&&Gn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var u=n[a],c=n[a+1],f=u[se]||null;if(typeof c=="function")f||sm(n);else if(f){var v=null;if(c&&c.hasAttribute("formAction")){if(u=c,f=c[se]||null)v=f.formAction;else if(_o(u)!==null)continue}else v=f.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),sm(n)}}}function cm(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function Eo(t){this._internalRoot=t}Gu.prototype.render=Eo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=Ee();$d(n,a,t,e,null,null)},Gu.prototype.unmount=Eo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;$d(t.current,2,null,t,null,null),Ru(),e[Oa]=null}};function Gu(t){this._internalRoot=t}Gu.prototype.unstable_scheduleHydration=function(t){if(t){var e=pr();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Gn.length&&e!==0&&e<Gn[n].priority;n++);Gn.splice(n,0,t),n===0&&im(t)}};var om=i.version;if(om!=="19.2.0")throw Error(o(527,om,"19.2.0"));V.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=m(e),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var fg={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xu.isDisabled&&Xu.supportsFiber)try{bl=Xu.inject(fg),ye=Xu}catch{}}return di.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,a="",u=vh,c=ph,f=gh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Wd(t,1,!1,null,null,n,a,null,u,c,f,cm),t[Oa]=e.current,ao(t),new Eo(e)},di.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var a=!1,u="",c=vh,f=ph,v=gh,_=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(_=n.formState)),e=Wd(t,1,!0,e,n??null,a,u,_,c,f,v,cm),e.context=Id(null),n=e.current,a=Ee(),a=hs(a),u=Cn(a),u.callback=null,An(n,u,a),n=a,e.current.lanes=n,Rl(e,n),Ze(e),t[Oa]=e.current,ao(t),new Gu(e)},di.version="19.2.0",di}var Sm;function _g(){if(Sm)return Oo.exports;Sm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Oo.exports=bg(),Oo.exports}var $S=_g(),vl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rg=class extends vl{#t;#e;#n;constructor(){super(),this.#n=l=>{if(typeof window<"u"&&window.addEventListener){const i=()=>l();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(l){this.#n=l,this.#e?.(),this.#e=l(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(l){this.#t!==l&&(this.#t=l,this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(i=>{i(l)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},nr=new Rg,Eg={setTimeout:(l,i)=>setTimeout(l,i),clearTimeout:l=>clearTimeout(l),setInterval:(l,i)=>setInterval(l,i),clearInterval:l=>clearInterval(l)},Tg=class{#t=Eg;#e=!1;setTimeoutProvider(l){this.#t=l}setTimeout(l,i){return this.#t.setTimeout(l,i)}clearTimeout(l){this.#t.clearTimeout(l)}setInterval(l,i){return this.#t.setInterval(l,i)}clearInterval(l){this.#t.clearInterval(l)}},ya=new Tg;function Mg(l){setTimeout(l,0)}var Og=typeof window>"u"||"Deno"in globalThis;function ue(){}function Cg(l,i){return typeof l=="function"?l(i):l}function Go(l){return typeof l=="number"&&l>=0&&l!==1/0}function ly(l,i){return Math.max(l+(i||0)-Date.now(),0)}function Jn(l,i){return typeof l=="function"?l(i):l}function Te(l,i){return typeof l=="function"?l(i):l}function bm(l,i){const{type:s="all",exact:o,fetchStatus:r,predicate:h,queryKey:d,stale:p}=l;if(d){if(o){if(i.queryHash!==ar(d,i.options))return!1}else if(!Si(i.queryKey,d))return!1}if(s!=="all"){const y=i.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof p=="boolean"&&i.isStale()!==p||r&&r!==i.state.fetchStatus||h&&!h(i))}function _m(l,i){const{exact:s,status:o,predicate:r,mutationKey:h}=l;if(h){if(!i.options.mutationKey)return!1;if(s){if(Ra(i.options.mutationKey)!==Ra(h))return!1}else if(!Si(i.options.mutationKey,h))return!1}return!(o&&i.state.status!==o||r&&!r(i))}function ar(l,i){return(i?.queryKeyHashFn||Ra)(l)}function Ra(l){return JSON.stringify(l,(i,s)=>Xo(s)?Object.keys(s).sort().reduce((o,r)=>(o[r]=s[r],o),{}):s)}function Si(l,i){return l===i?!0:typeof l!=typeof i?!1:l&&i&&typeof l=="object"&&typeof i=="object"?Object.keys(i).every(s=>Si(l[s],i[s])):!1}var Ag=Object.prototype.hasOwnProperty;function iy(l,i,s=0){if(l===i)return l;if(s>500)return i;const o=Rm(l)&&Rm(i);if(!o&&!(Xo(l)&&Xo(i)))return i;const h=(o?l:Object.keys(l)).length,d=o?i:Object.keys(i),p=d.length,y=o?new Array(p):{};let m=0;for(let S=0;S<p;S++){const g=o?S:d[S],b=l[g],R=i[g];if(b===R){y[g]=b,(o?S<h:Ag.call(l,g))&&m++;continue}if(b===null||R===null||typeof b!="object"||typeof R!="object"){y[g]=R;continue}const M=iy(b,R,s+1);y[g]=M,M===b&&m++}return h===p&&m===h?l:y}function $u(l,i){if(!i||Object.keys(l).length!==Object.keys(i).length)return!1;for(const s in l)if(l[s]!==i[s])return!1;return!0}function Rm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Xo(l){if(!Em(l))return!1;const i=l.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!Em(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Em(l){return Object.prototype.toString.call(l)==="[object Object]"}function xg(l){return new Promise(i=>{ya.setTimeout(i,l)})}function Vo(l,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(l,i):s.structuralSharing!==!1?iy(l,i):i}function zg(l,i,s=0){const o=[...l,i];return s&&o.length>s?o.slice(1):o}function Dg(l,i,s=0){const o=[i,...l];return s&&o.length>s?o.slice(0,-1):o}var lr=Symbol();function uy(l,i){return!l.queryFn&&i?.initialPromise?()=>i.initialPromise:!l.queryFn||l.queryFn===lr?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function ir(l,i){return typeof l=="function"?l(...i):!!l}function Ug(l,i,s){let o=!1,r;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(r??=i(),o||(o=!0,r.aborted?s():r.addEventListener("abort",s,{once:!0})),r)}),l}var bi=(()=>{let l=()=>Og;return{isServer(){return l()},setIsServer(i){l=i}}})();function Ko(){let l,i;const s=new Promise((r,h)=>{l=r,i=h});s.status="pending",s.catch(()=>{});function o(r){Object.assign(s,r),delete s.resolve,delete s.reject}return s.resolve=r=>{o({status:"fulfilled",value:r}),l(r)},s.reject=r=>{o({status:"rejected",reason:r}),i(r)},s}var Lg=Mg;function Ng(){let l=[],i=0,s=p=>{p()},o=p=>{p()},r=Lg;const h=p=>{i?l.push(p):r(()=>{s(p)})},d=()=>{const p=l;l=[],p.length&&r(()=>{o(()=>{p.forEach(y=>{s(y)})})})};return{batch:p=>{let y;i++;try{y=p()}finally{i--,i||d()}return y},batchCalls:p=>(...y)=>{h(()=>{p(...y)})},schedule:h,setNotifyFunction:p=>{s=p},setBatchNotifyFunction:p=>{o=p},setScheduler:p=>{r=p}}}var Jt=Ng(),wg=class extends vl{#t=!0;#e;#n;constructor(){super(),this.#n=l=>{if(typeof window<"u"&&window.addEventListener){const i=()=>l(!0),s=()=>l(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(l){this.#n=l,this.#e?.(),this.#e=l(this.setOnline.bind(this))}setOnline(l){this.#t!==l&&(this.#t=l,this.listeners.forEach(s=>{s(l)}))}isOnline(){return this.#t}},ts=new wg;function Bg(l){return Math.min(1e3*2**l,3e4)}function sy(l){return(l??"online")==="online"?ts.isOnline():!0}var Zo=class extends Error{constructor(l){super("CancelledError"),this.revert=l?.revert,this.silent=l?.silent}};function cy(l){let i=!1,s=0,o;const r=Ko(),h=()=>r.status!=="pending",d=C=>{if(!h()){const D=new Zo(C);b(D),l.onCancel?.(D)}},p=()=>{i=!0},y=()=>{i=!1},m=()=>nr.isFocused()&&(l.networkMode==="always"||ts.isOnline())&&l.canRun(),S=()=>sy(l.networkMode)&&l.canRun(),g=C=>{h()||(o?.(),r.resolve(C))},b=C=>{h()||(o?.(),r.reject(C))},R=()=>new Promise(C=>{o=D=>{(h()||m())&&C(D)},l.onPause?.()}).then(()=>{o=void 0,h()||l.onContinue?.()}),M=()=>{if(h())return;let C;const D=s===0?l.initialPromise:void 0;try{C=D??l.fn()}catch(L){C=Promise.reject(L)}Promise.resolve(C).then(g).catch(L=>{if(h())return;const j=l.retry??(bi.isServer()?0:3),X=l.retryDelay??Bg,G=typeof X=="function"?X(s,L):X,K=j===!0||typeof j=="number"&&s<j||typeof j=="function"&&j(s,L);if(i||!K){b(L);return}s++,l.onFail?.(s,L),xg(G).then(()=>m()?void 0:R()).then(()=>{i?b(L):M()})})};return{promise:r,status:()=>r.status,cancel:d,continue:()=>(o?.(),r),cancelRetry:p,continueRetry:y,canStart:S,start:()=>(S()?M():R().then(M),r)}}var oy=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Go(this.gcTime)&&(this.#t=ya.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(bi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(ya.clearTimeout(this.#t),this.#t=void 0)}};function jg(l){return{onFetch:(i,s)=>{const o=i.options,r=i.fetchOptions?.meta?.fetchMore?.direction,h=i.state.data?.pages||[],d=i.state.data?.pageParams||[];let p={pages:[],pageParams:[]},y=0;const m=async()=>{let S=!1;const g=M=>{Ug(M,()=>i.signal,()=>S=!0)},b=uy(i.options,i.fetchOptions),R=async(M,C,D)=>{if(S)return Promise.reject(i.signal.reason);if(C==null&&M.pages.length)return Promise.resolve(M);const j=(()=>{const P={client:i.client,queryKey:i.queryKey,pageParam:C,direction:D?"backward":"forward",meta:i.options.meta};return g(P),P})(),X=await b(j),{maxPages:G}=i.options,K=D?Dg:zg;return{pages:K(M.pages,X,G),pageParams:K(M.pageParams,C,G)}};if(r&&h.length){const M=r==="backward",C=M?ry:Jo,D={pages:h,pageParams:d},L=C(o,D);p=await R(D,L,M)}else{const M=l??h.length;do{const C=y===0?d[0]??o.initialPageParam:Jo(o,p);if(y>0&&C==null)break;p=await R(p,C),y++}while(y<M)}return p};i.options.persister?i.fetchFn=()=>i.options.persister?.(m,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=m}}}function Jo(l,{pages:i,pageParams:s}){const o=i.length-1;return i.length>0?l.getNextPageParam(i[o],i,s[o],s):void 0}function ry(l,{pages:i,pageParams:s}){return i.length>0?l.getPreviousPageParam?.(i[0],i,s[0],s):void 0}function Hg(l,i){return i?Jo(l,i)!=null:!1}function qg(l,i){return!i||!l.getPreviousPageParam?!1:ry(l,i)!=null}var Qg=class extends oy{#t;#e;#n;#a;#i;#l;#s;#u;constructor(l){super(),this.#u=!1,this.#s=l.defaultOptions,this.setOptions(l.options),this.observers=[],this.#i=l.client,this.#a=this.#i.getQueryCache(),this.queryKey=l.queryKey,this.queryHash=l.queryHash,this.#e=Mm(this.options),this.state=l.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#l?.promise}setOptions(l){if(this.options={...this.#s,...l},l?._type&&(this.#t=l._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Mm(this.options);i.data!==void 0&&(this.setState(Tm(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(l,i){const s=Vo(this.state.data,l,this.options);return this.#c({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(l){this.#c({type:"setState",state:l})}cancel(l){const i=this.#l?.promise;return this.#l?.cancel(l),i?i.then(ue).catch(ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>Te(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lr||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>Jn(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:!ly(this.state.dataUpdatedAt,l)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(i=>i!==l),this.observers.length||(this.#l&&(this.#u||this.#r()?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}#r(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#c({type:"invalidate"})}async fetch(l,i){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(l&&this.setOptions(l),!this.options.queryFn){const y=this.observers.find(m=>m.options.queryFn);y&&this.setOptions(y.options)}const s=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#u=!0,s.signal)})},r=()=>{const y=uy(this.options,i),S=(()=>{const g={client:this.#i,queryKey:this.queryKey,meta:this.meta};return o(g),g})();return this.#u=!1,this.options.persister?this.options.persister(y,S,this):y(S)},d=(()=>{const y={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return o(y),y})();(this.#t==="infinite"?jg(this.options.pages):this.options.behavior)?.onFetch(d,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#c({type:"fetch",meta:d.fetchOptions?.meta}),this.#l=cy({initialPromise:i?.initialPromise,fn:d.fetchFn,onCancel:y=>{y instanceof Zo&&y.revert&&this.setState({...this.#n,fetchStatus:"idle"}),s.abort()},onFail:(y,m)=>{this.#c({type:"failed",failureCount:y,error:m})},onPause:()=>{this.#c({type:"pause"})},onContinue:()=>{this.#c({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const y=await this.#l.start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),this.#a.config.onSuccess?.(y,this),this.#a.config.onSettled?.(y,this.state.error,this),y}catch(y){if(y instanceof Zo){if(y.silent)return this.#l.promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw this.#c({type:"error",error:y}),this.#a.config.onError?.(y,this),this.#a.config.onSettled?.(this.state.data,y,this),y}finally{this.scheduleGc()}}#c(l){const i=s=>{switch(l.type){case"failed":return{...s,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...fy(s.data,this.options),fetchMeta:l.meta??null};case"success":const o={...s,...Tm(l.data,l.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=l.manual?o:void 0,o;case"error":const r=l.error;return{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...l.state}}};this.state=i(this.state),Jt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:l})})}};function fy(l,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sy(i.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function Tm(l,i){return{data:l,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Mm(l){const i=typeof l.initialData=="function"?l.initialData():l.initialData,s=i!==void 0,o=s?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var hy=class extends vl{constructor(l,i){super(),this.options=i,this.#t=l,this.#u=null,this.#s=Ko(),this.bindMethods(),this.setOptions(i)}#t;#e=void 0;#n=void 0;#a=void 0;#i;#l;#s;#u;#r;#c;#m;#f;#h;#o;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Om(this.#e,this.options)?this.#d():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Po(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Po(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#_(),this.#e.removeObserver(this)}setOptions(l){const i=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Te(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#R(),this.#e.setOptions(this.options),i._defaulted&&!$u(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&Cm(this.#e,s,this.options,i)&&this.#d(),this.updateResult(),o&&(this.#e!==s||Te(this.options.enabled,this.#e)!==Te(i.enabled,this.#e)||Jn(this.options.staleTime,this.#e)!==Jn(i.staleTime,this.#e))&&this.#v();const r=this.#p();o&&(this.#e!==s||Te(this.options.enabled,this.#e)!==Te(i.enabled,this.#e)||r!==this.#o)&&this.#g(r)}getOptimisticResult(l){const i=this.#t.getQueryCache().build(this.#t,l),s=this.createResult(i,l);return Gg(this,s)&&(this.#a=s,this.#l=this.options,this.#i=this.#e.state),s}getCurrentResult(){return this.#a}trackResult(l,i){return new Proxy(l,{get:(s,o)=>(this.trackProp(o),i?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(l){this.#y.add(l)}getCurrentQuery(){return this.#e}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const i=this.#t.defaultQueryOptions(l),s=this.#t.getQueryCache().build(this.#t,i);return s.fetch().then(()=>this.createResult(s,i))}fetch(l){return this.#d({...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#d(l){this.#R();let i=this.#e.fetch(this.options,l);return l?.throwOnError||(i=i.catch(ue)),i}#v(){this.#b();const l=Jn(this.options.staleTime,this.#e);if(bi.isServer()||this.#a.isStale||!Go(l))return;const s=ly(this.#a.dataUpdatedAt,l)+1;this.#f=ya.setTimeout(()=>{this.#a.isStale||this.updateResult()},s)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(l){this.#_(),this.#o=l,!(bi.isServer()||Te(this.options.enabled,this.#e)===!1||!Go(this.#o)||this.#o===0)&&(this.#h=ya.setInterval(()=>{(this.options.refetchIntervalInBackground||nr.isFocused())&&this.#d()},this.#o))}#S(){this.#v(),this.#g(this.#p())}#b(){this.#f!==void 0&&(ya.clearTimeout(this.#f),this.#f=void 0)}#_(){this.#h!==void 0&&(ya.clearInterval(this.#h),this.#h=void 0)}createResult(l,i){const s=this.#e,o=this.options,r=this.#a,h=this.#i,d=this.#l,y=l!==s?l.state:this.#n,{state:m}=l;let S={...m},g=!1,b;if(i._optimisticResults){const Y=this.hasListeners(),J=!Y&&Om(l,i),it=Y&&Cm(l,s,i,o);(J||it)&&(S={...S,...fy(m.data,l.options)}),i._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:R,errorUpdatedAt:M,status:C}=S;b=S.data;let D=!1;if(i.placeholderData!==void 0&&b===void 0&&C==="pending"){let Y;r?.isPlaceholderData&&i.placeholderData===d?.placeholderData?(Y=r.data,D=!0):Y=typeof i.placeholderData=="function"?i.placeholderData(this.#m?.state.data,this.#m):i.placeholderData,Y!==void 0&&(C="success",b=Vo(r?.data,Y,i),g=!0)}if(i.select&&b!==void 0&&!D)if(r&&b===h?.data&&i.select===this.#r)b=this.#c;else try{this.#r=i.select,b=i.select(b),b=Vo(r?.data,b,i),this.#c=b,this.#u=null}catch(Y){this.#u=Y}this.#u&&(R=this.#u,b=this.#c,M=Date.now(),C="error");const L=S.fetchStatus==="fetching",j=C==="pending",X=C==="error",G=j&&L,K=b!==void 0,B={status:C,fetchStatus:S.fetchStatus,isPending:j,isSuccess:C==="success",isError:X,isInitialLoading:G,isLoading:G,data:b,dataUpdatedAt:S.dataUpdatedAt,error:R,errorUpdatedAt:M,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:S.dataUpdateCount>y.dataUpdateCount||S.errorUpdateCount>y.errorUpdateCount,isFetching:L,isRefetching:L&&!j,isLoadingError:X&&!K,isPaused:S.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:X&&K,isStale:ur(l,i),refetch:this.refetch,promise:this.#s,isEnabled:Te(i.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const Y=B.data!==void 0,J=B.status==="error"&&!Y,it=wt=>{J?wt.reject(B.error):Y&&wt.resolve(B.data)},nt=()=>{const wt=this.#s=B.promise=Ko();it(wt)},tt=this.#s;switch(tt.status){case"pending":l.queryHash===s.queryHash&&it(tt);break;case"fulfilled":(J||B.data!==tt.value)&&nt();break;case"rejected":(!J||B.error!==tt.reason)&&nt();break}}return B}updateResult(){const l=this.#a,i=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#l=this.options,this.#i.data!==void 0&&(this.#m=this.#e),$u(i,l))return;this.#a=i;const s=()=>{if(!l)return!0;const{notifyOnChangeProps:o}=this.options,r=typeof o=="function"?o():o;if(r==="all"||!r&&!this.#y.size)return!0;const h=new Set(r??this.#y);return this.options.throwOnError&&h.add("error"),Object.keys(this.#a).some(d=>{const p=d;return this.#a[p]!==l[p]&&h.has(p)})};this.#E({listeners:s()})}#R(){const l=this.#t.getQueryCache().build(this.#t,this.options);if(l===this.#e)return;const i=this.#e;this.#e=l,this.#n=l.state,this.hasListeners()&&(i?.removeObserver(this),l.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#E(l){Jt.batch(()=>{l.listeners&&this.listeners.forEach(i=>{i(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Yg(l,i){return Te(i.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&Te(i.retryOnMount,l)===!1)}function Om(l,i){return Yg(l,i)||l.state.data!==void 0&&Po(l,i,i.refetchOnMount)}function Po(l,i,s){if(Te(i.enabled,l)!==!1&&Jn(i.staleTime,l)!=="static"){const o=typeof s=="function"?s(l):s;return o==="always"||o!==!1&&ur(l,i)}return!1}function Cm(l,i,s,o){return(l!==i||Te(o.enabled,l)===!1)&&(!s.suspense||l.state.status!=="error")&&ur(l,s)}function ur(l,i){return Te(i.enabled,l)!==!1&&l.isStaleByTime(Jn(i.staleTime,l))}function Gg(l,i){return!$u(l.getCurrentResult(),i)}var Xg=class extends hy{constructor(l,i){super(l,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(l){l._type="infinite",super.setOptions(l)}getOptimisticResult(l){return l._type="infinite",super.getOptimisticResult(l)}fetchNextPage(l){return this.fetch({...l,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(l){return this.fetch({...l,meta:{fetchMore:{direction:"backward"}}})}createResult(l,i){const{state:s}=l,o=super.createResult(l,i),{isFetching:r,isRefetching:h,isError:d,isRefetchError:p}=o,y=s.fetchMeta?.fetchMore?.direction,m=d&&y==="forward",S=r&&y==="forward",g=d&&y==="backward",b=r&&y==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Hg(i,s.data),hasPreviousPage:qg(i,s.data),isFetchNextPageError:m,isFetchingNextPage:S,isFetchPreviousPageError:g,isFetchingPreviousPage:b,isRefetchError:p&&!m&&!g,isRefetching:h&&!S&&!b}}},Vg=class extends oy{#t;#e;#n;#a;constructor(l){super(),this.#t=l.client,this.mutationId=l.mutationId,this.#n=l.mutationCache,this.#e=[],this.state=l.state||dy(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){this.#e.includes(l)||(this.#e.push(l),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){this.#e=this.#e.filter(i=>i!==l),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(l){const i=()=>{this.#i({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=cy({fn:()=>this.options.mutationFn?this.options.mutationFn(l,s):Promise.reject(new Error("No mutationFn found")),onFail:(h,d)=>{this.#i({type:"failed",failureCount:h,error:d})},onPause:()=>{this.#i({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const o=this.state.status==="pending",r=!this.#a.canStart();try{if(o)i();else{this.#i({type:"pending",variables:l,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(l,this,s);const d=await this.options.onMutate?.(l,s);d!==this.state.context&&this.#i({type:"pending",context:d,variables:l,isPaused:r})}const h=await this.#a.start();return await this.#n.config.onSuccess?.(h,l,this.state.context,this,s),await this.options.onSuccess?.(h,l,this.state.context,s),await this.#n.config.onSettled?.(h,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(h,null,l,this.state.context,s),this.#i({type:"success",data:h}),h}catch(h){try{await this.#n.config.onError?.(h,l,this.state.context,this,s)}catch(d){Promise.reject(d)}try{await this.options.onError?.(h,l,this.state.context,s)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,h,this.state.variables,this.state.context,this,s)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,h,l,this.state.context,s)}catch(d){Promise.reject(d)}throw this.#i({type:"error",error:h}),h}finally{this.#n.runNext(this)}}#i(l){const i=s=>{switch(l.type){case"failed":return{...s,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,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{...s,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:l.error,failureCount:s.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Jt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(l)}),this.#n.notify({mutation:this,type:"updated",action:l})})}};function dy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kg=class extends vl{constructor(l={}){super(),this.config=l,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(l,i,s){const o=new Vg({client:l,mutationCache:this,mutationId:++this.#n,options:l.defaultMutationOptions(i),state:s});return this.add(o),o}add(l){this.#t.add(l);const i=Vu(l);if(typeof i=="string"){const s=this.#e.get(i);s?s.push(l):this.#e.set(i,[l])}this.notify({type:"added",mutation:l})}remove(l){if(this.#t.delete(l)){const i=Vu(l);if(typeof i=="string"){const s=this.#e.get(i);if(s)if(s.length>1){const o=s.indexOf(l);o!==-1&&s.splice(o,1)}else s[0]===l&&this.#e.delete(i)}}this.notify({type:"removed",mutation:l})}canRun(l){const i=Vu(l);if(typeof i=="string"){const o=this.#e.get(i)?.find(r=>r.state.status==="pending");return!o||o===l}else return!0}runNext(l){const i=Vu(l);return typeof i=="string"?this.#e.get(i)?.find(o=>o!==l&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Jt.batch(()=>{this.#t.forEach(l=>{this.notify({type:"removed",mutation:l})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(l){const i={exact:!0,...l};return this.getAll().find(s=>_m(i,s))}findAll(l={}){return this.getAll().filter(i=>_m(l,i))}notify(l){Jt.batch(()=>{this.listeners.forEach(i=>{i(l)})})}resumePausedMutations(){const l=this.getAll().filter(i=>i.state.isPaused);return Jt.batch(()=>Promise.all(l.map(i=>i.continue().catch(ue))))}};function Vu(l){return l.options.scope?.id}var Zg=class extends vl{#t;#e=void 0;#n;#a;constructor(l,i){super(),this.#t=l,this.setOptions(i),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(l){const i=this.options;this.options=this.#t.defaultMutationOptions(l),$u(this.options,i)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&Ra(i.mutationKey)!==Ra(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(l){this.#i(),this.#l(l)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#l()}mutate(l,i){return this.#a=i,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(l)}#i(){const l=this.#n?.state??dy();this.#e={...l,isPending:l.status==="pending",isSuccess:l.status==="success",isError:l.status==="error",isIdle:l.status==="idle",mutate:this.mutate,reset:this.reset}}#l(l){Jt.batch(()=>{if(this.#a&&this.hasListeners()){const i=this.#e.variables,s=this.#e.context,o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(l?.type==="success"){try{this.#a.onSuccess?.(l.data,i,s,o)}catch(r){Promise.reject(r)}try{this.#a.onSettled?.(l.data,null,i,s,o)}catch(r){Promise.reject(r)}}else if(l?.type==="error"){try{this.#a.onError?.(l.error,i,s,o)}catch(r){Promise.reject(r)}try{this.#a.onSettled?.(void 0,l.error,i,s,o)}catch(r){Promise.reject(r)}}}this.listeners.forEach(i=>{i(this.#e)})})}},Jg=class extends vl{constructor(l={}){super(),this.config=l,this.#t=new Map}#t;build(l,i,s){const o=i.queryKey,r=i.queryHash??ar(o,i);let h=this.get(r);return h||(h=new Qg({client:l,queryKey:o,queryHash:r,options:l.defaultQueryOptions(i),state:s,defaultOptions:l.getQueryDefaults(o)}),this.add(h)),h}add(l){this.#t.has(l.queryHash)||(this.#t.set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const i=this.#t.get(l.queryHash);i&&(l.destroy(),i===l&&this.#t.delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){Jt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return this.#t.get(l)}getAll(){return[...this.#t.values()]}find(l){const i={exact:!0,...l};return this.getAll().find(s=>bm(i,s))}findAll(l={}){const i=this.getAll();return Object.keys(l).length>0?i.filter(s=>bm(l,s)):i}notify(l){Jt.batch(()=>{this.listeners.forEach(i=>{i(l)})})}onFocus(){Jt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Jt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},tb=class{#t;#e;#n;#a;#i;#l;#s;#u;constructor(l={}){this.#t=l.queryCache||new Jg,this.#e=l.mutationCache||new Kg,this.#n=l.defaultOptions||{},this.#a=new Map,this.#i=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#s=nr.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#u=ts.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#s?.(),this.#s=void 0,this.#u?.(),this.#u=void 0)}isFetching(l){return this.#t.findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return this.#e.findAll({...l,status:"pending"}).length}getQueryData(l){const i=this.defaultQueryOptions({queryKey:l});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(l){const i=this.defaultQueryOptions(l),s=this.#t.build(this,i),o=s.state.data;return o===void 0?this.fetchQuery(l):(l.revalidateIfStale&&s.isStaleByTime(Jn(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(o))}getQueriesData(l){return this.#t.findAll(l).map(({queryKey:i,state:s})=>{const o=s.data;return[i,o]})}setQueryData(l,i,s){const o=this.defaultQueryOptions({queryKey:l}),h=this.#t.get(o.queryHash)?.state.data,d=Cg(i,h);if(d!==void 0)return this.#t.build(this,o).setData(d,{...s,manual:!0})}setQueriesData(l,i,s){return Jt.batch(()=>this.#t.findAll(l).map(({queryKey:o})=>[o,this.setQueryData(o,i,s)]))}getQueryState(l){const i=this.defaultQueryOptions({queryKey:l});return this.#t.get(i.queryHash)?.state}removeQueries(l){const i=this.#t;Jt.batch(()=>{i.findAll(l).forEach(s=>{i.remove(s)})})}resetQueries(l,i){const s=this.#t;return Jt.batch(()=>(s.findAll(l).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...l},i)))}cancelQueries(l,i={}){const s={revert:!0,...i},o=Jt.batch(()=>this.#t.findAll(l).map(r=>r.cancel(s)));return Promise.all(o).then(ue).catch(ue)}invalidateQueries(l,i={}){return Jt.batch(()=>(this.#t.findAll(l).forEach(s=>{s.invalidate()}),l?.refetchType==="none"?Promise.resolve():this.refetchQueries({...l,type:l?.refetchType??l?.type??"active"},i)))}refetchQueries(l,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},o=Jt.batch(()=>this.#t.findAll(l).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let h=r.fetch(void 0,s);return s.throwOnError||(h=h.catch(ue)),r.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(ue)}fetchQuery(l){const i=this.defaultQueryOptions(l);i.retry===void 0&&(i.retry=!1);const s=this.#t.build(this,i);return s.isStaleByTime(Jn(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(ue).catch(ue)}fetchInfiniteQuery(l){return l._type="infinite",this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(ue).catch(ue)}ensureInfiniteQueryData(l){return l._type="infinite",this.ensureQueryData(l)}resumePausedMutations(){return ts.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(l){this.#n=l}setQueryDefaults(l,i){this.#a.set(Ra(l),{queryKey:l,defaultOptions:i})}getQueryDefaults(l){const i=[...this.#a.values()],s={};return i.forEach(o=>{Si(l,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(l,i){this.#i.set(Ra(l),{mutationKey:l,defaultOptions:i})}getMutationDefaults(l){const i=[...this.#i.values()],s={};return i.forEach(o=>{Si(l,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(l){if(l._defaulted)return l;const i={...this.#n.queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return i.queryHash||(i.queryHash=ar(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===lr&&(i.enabled=!1),i}defaultMutationOptions(l){return l?._defaulted?l:{...this.#n.mutations,...l?.mutationKey&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},my=W.createContext(void 0),yy=l=>{const i=W.useContext(my);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},eb=({client:l,children:i})=>(W.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),lt.jsx(my.Provider,{value:l,children:i})),vy=W.createContext(!1),Pg=()=>W.useContext(vy);vy.Provider;function Fg(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var kg=W.createContext(Fg()),Wg=()=>W.useContext(kg),Ig=(l,i,s)=>{const o=s?.state.error&&typeof l.throwOnError=="function"?ir(l.throwOnError,[s.state.error,s]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||o)&&(i.isReset()||(l.retryOnMount=!1))},$g=l=>{W.useEffect(()=>{l.clearReset()},[l])},t0=({result:l,errorResetBoundary:i,throwOnError:s,query:o,suspense:r})=>l.isError&&!i.isReset()&&!l.isFetching&&o&&(r&&l.data===void 0||ir(s,[l.error,o])),e0=l=>{if(l.suspense){const s=r=>r==="static"?r:Math.max(r??1e3,1e3),o=l.staleTime;l.staleTime=typeof o=="function"?(...r)=>s(o(...r)):s(o),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},n0=(l,i)=>l.isLoading&&l.isFetching&&!i,a0=(l,i)=>l?.suspense&&i.isPending,Am=(l,i,s)=>i.fetchOptimistic(l).catch(()=>{s.clearReset()});function py(l,i,s){const o=Pg(),r=Wg(),h=yy(),d=h.defaultQueryOptions(l);h.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const p=h.getQueryCache().get(d.queryHash);d._optimisticResults=o?"isRestoring":"optimistic",e0(d),Ig(d,r,p),$g(r);const y=!h.getQueryCache().get(d.queryHash),[m]=W.useState(()=>new i(h,d)),S=m.getOptimisticResult(d),g=!o&&l.subscribed!==!1;if(W.useSyncExternalStore(W.useCallback(b=>{const R=g?m.subscribe(Jt.batchCalls(b)):ue;return m.updateResult(),R},[m,g]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),W.useEffect(()=>{m.setOptions(d)},[d,m]),a0(d,S))throw Am(d,m,r);if(t0({result:S,errorResetBoundary:r,throwOnError:d.throwOnError,query:p,suspense:d.suspense}))throw S.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(d,S),d.experimental_prefetchInRender&&!bi.isServer()&&n0(S,o)&&(y?Am(d,m,r):p?.promise)?.catch(ue).finally(()=>{m.updateResult()}),d.notifyOnChangeProps?S:m.trackResult(S)}function nb(l,i){return py(l,hy)}function ab(l,i){const s=yy(),[o]=W.useState(()=>new Zg(s,l));W.useEffect(()=>{o.setOptions(l)},[o,l]);const r=W.useSyncExternalStore(W.useCallback(d=>o.subscribe(Jt.batchCalls(d)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=W.useCallback((d,p)=>{o.mutate(d,p).catch(ue)},[o]);if(r.error&&ir(o.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:h,mutateAsync:r.mutate}}function lb(l,i){return py(l,Xg)}var pi=typeof window<"u"?W.useLayoutEffect:W.useEffect;function zo(l){const i=W.useRef({value:l,prev:null}),s=i.current.value;return l!==s&&(i.current={value:l,prev:s}),i.current.prev}function l0(l,i,s={},o={}){W.useEffect(()=>{if(!l.current||o.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([h])=>{i(h)},s);return r.observe(l.current),()=>{r.disconnect()}},[i,s,o.disabled,l])}function i0(l){const i=W.useRef(null);return W.useImperativeHandle(l,()=>i.current,[]),i}const gy=!1;function _i(l){return l[l.length-1]}function u0(l){return typeof l=="function"}function va(l,i){return u0(l)?l(i):l}const Sy=Object.prototype.hasOwnProperty,xm=Object.prototype.propertyIsEnumerable;function by(l){for(const i in l)if(Sy.call(l,i))return!0;return!1}const s0=()=>Object.create(null),ma=(l,i)=>pa(l,i,s0);function pa(l,i,s=()=>({}),o=0){if(l===i)return l;if(o>500)return i;const r=i,h=Um(l)&&Um(r);if(!h&&!(es(l)&&es(r)))return r;const d=h?l:zm(l);if(!d)return r;const p=h?r:zm(r);if(!p)return r;const y=d.length,m=p.length,S=h?new Array(m):s();let g=0;for(let b=0;b<m;b++){const R=h?b:p[b],M=l[R],C=r[R];if(M===C){S[R]=M,(h?b<y:Sy.call(l,R))&&g++;continue}if(M===null||C===null||typeof M!="object"||typeof C!="object"){S[R]=C;continue}const D=pa(M,C,s,o+1);S[R]=D,D===M&&g++}return y===m&&g===y?l:S}function zm(l){const i=Object.getOwnPropertyNames(l);for(const r of i)if(!xm.call(l,r))return!1;const s=Object.getOwnPropertySymbols(l);if(s.length===0)return i;const o=i;for(const r of s){if(!xm.call(l,r))return!1;o.push(r)}return o}function es(l){if(!Dm(l))return!1;const i=l.constructor;if(typeof i>"u")return!0;const s=i.prototype;return!(!Dm(s)||!s.hasOwnProperty("isPrototypeOf"))}function Dm(l){return Object.prototype.toString.call(l)==="[object Object]"}function Um(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Sa(l,i,s){if(l===i)return!0;if(typeof l!=typeof i)return!1;if(Array.isArray(l)&&Array.isArray(i)){if(l.length!==i.length)return!1;for(let o=0,r=l.length;o<r;o++)if(!Sa(l[o],i[o],s))return!1;return!0}if(es(l)&&es(i)){const o=s?.ignoreUndefined??!0;if(s?.partial){for(const d in i)if((!o||i[d]!==void 0)&&!Sa(l[d],i[d],s))return!1;return!0}let r=0;if(!o)r=Object.keys(l).length;else for(const d in l)l[d]!==void 0&&r++;let h=0;for(const d in i)if((!o||i[d]!==void 0)&&(h++,h>r||!Sa(l[d],i[d],s)))return!1;return r===h}return!1}function yl(l){let i,s;const o=new Promise((r,h)=>{i=r,s=h});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,i(r),l?.(r)},o.reject=r=>{o.status="rejected",s(r)},o}function Ri(l){return!!(l&&typeof l=="object"&&typeof l.then=="function")}function c0(l){return l.replace(/[\x00-\x1f\x7f]/g,"")}function Lm(l){let i;try{i=decodeURI(l)}catch{i=l.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return c0(i)}const o0=["http:","https:","mailto:","tel:"];function ns(l,i){if(!l)return!1;try{const s=new URL(l);return!i.has(s.protocol)}catch{return!1}}function mi(l){if(!l)return{path:l,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(l)&&!l.startsWith("//"))return{path:l,handledProtocolRelativeURL:!1};const i=/%25|%5C/gi;let s=0,o="",r;for(;(r=i.exec(l))!==null;)o+=Lm(l.slice(s,r.index))+r[0],s=i.lastIndex;o=o+Lm(s?l.slice(s):l);let h=!1;return o.startsWith("//")&&(h=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:h}}function r0(l){return/\s|[^\u0000-\u007F]/.test(l)?l.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):l}function f0(l,i){if(l===i)return!0;if(l.length!==i.length)return!1;for(let s=0;s<l.length;s++)if(l[s]!==i[s])return!1;return!0}function pn(){throw new Error("Invariant failed")}function Ei(l){const i=new Map;let s,o;const r=h=>{h.next&&(h.prev?(h.prev.next=h.next,h.next.prev=h.prev,h.next=void 0,o&&(o.next=h,h.prev=o)):(h.next.prev=void 0,s=h.next,h.next=void 0,o&&(h.prev=o,o.next=h)),o=h)};return{get(h){const d=i.get(h);if(d)return r(d),d.value},set(h,d){if(i.size>=l&&s){const y=s;i.delete(y.key),y.next&&(s=y.next,y.next.prev=void 0),y===o&&(o=void 0)}const p=i.get(h);if(p)p.value=d,r(p);else{const y={key:h,value:d,prev:o};o&&(o.next=y),o=y,s||(s=y),i.set(h,y)}},clear(){i.clear(),s=void 0,o=void 0}}}const Kn=4,_y=5;function h0(l){const i=l.indexOf("{");if(i===-1)return null;const s=l.indexOf("}",i);return s===-1||i+1>=l.length?null:[i,s]}function Ry(l,i,s=new Uint16Array(6)){const o=l.indexOf("/",i),r=o===-1?l.length:o,h=l.substring(i,r);if(!h||!h.includes("$"))return s[0]=0,s[1]=i,s[2]=i,s[3]=r,s[4]=r,s[5]=r,s;if(h==="$"){const p=l.length;return s[0]=2,s[1]=i,s[2]=i,s[3]=p,s[4]=p,s[5]=p,s}if(h.charCodeAt(0)===36)return s[0]=1,s[1]=i,s[2]=i+1,s[3]=r,s[4]=r,s[5]=r,s;const d=h0(h);if(d){const[p,y]=d,m=h.charCodeAt(p+1);if(m===45){if(p+2<h.length&&h.charCodeAt(p+2)===36){const S=p+3,g=y;if(S<g)return s[0]=3,s[1]=i+p,s[2]=i+S,s[3]=i+g,s[4]=i+y+1,s[5]=r,s}}else if(m===36){const S=p+1,g=p+2;return g===y?(s[0]=2,s[1]=i+p,s[2]=i+S,s[3]=i+g,s[4]=i+y+1,s[5]=l.length,s):(s[0]=1,s[1]=i+p,s[2]=i+g,s[3]=i+y,s[4]=i+y+1,s[5]=r,s)}}return s[0]=0,s[1]=i,s[2]=i,s[3]=r,s[4]=r,s[5]=r,s}function ss(l,i,s,o,r,h,d){d?.(s);let p=o;{const y=s.fullPath??s.from,m=y.length,S=s.options?.caseSensitive??l,g=s.options?.params?.parse??s.options?.parseParams;for(;p<m;){const R=Ry(y,p,i);let M;const C=p,D=R[5];switch(p=D+1,h++,R[0]){case 0:{const L=y.substring(R[2],R[3]);if(S){const j=r.static?.get(L);if(j)M=j;else{r.static??=new Map;const X=ga(s.fullPath??s.from);X.parent=r,X.depth=h,M=X,r.static.set(L,X)}}else{const j=L.toLowerCase(),X=r.staticInsensitive?.get(j);if(X)M=X;else{r.staticInsensitive??=new Map;const G=ga(s.fullPath??s.from);G.parent=r,G.depth=h,M=G,r.staticInsensitive.set(j,G)}}break}case 1:{const L=y.substring(C,R[1]),j=y.substring(R[4],D),X=S&&!!(L||j),G=L?X?L:L.toLowerCase():void 0,K=j?X?j:j.toLowerCase():void 0,P=!g&&r.dynamic?.find(B=>!B.parse&&B.caseSensitive===X&&B.prefix===G&&B.suffix===K);if(P)M=P;else{const B=Uo(1,s.fullPath??s.from,X,G,K);M=B,B.depth=h,B.parent=r,r.dynamic??=[],r.dynamic.push(B)}break}case 3:{const L=y.substring(C,R[1]),j=y.substring(R[4],D),X=S&&!!(L||j),G=L?X?L:L.toLowerCase():void 0,K=j?X?j:j.toLowerCase():void 0,P=!g&&r.optional?.find(B=>!B.parse&&B.caseSensitive===X&&B.prefix===G&&B.suffix===K);if(P)M=P;else{const B=Uo(3,s.fullPath??s.from,X,G,K);M=B,B.parent=r,B.depth=h,r.optional??=[],r.optional.push(B)}break}case 2:{const L=y.substring(C,R[1]),j=y.substring(R[4],D),X=S&&!!(L||j),G=L?X?L:L.toLowerCase():void 0,K=j?X?j:j.toLowerCase():void 0,P=Uo(2,s.fullPath??s.from,X,G,K);M=P,P.parent=r,P.depth=h,r.wildcard??=[],r.wildcard.push(P)}}r=M}if(g&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const R=ga(s.fullPath??s.from);R.kind=_y,R.parent=r,h++,R.depth=h,r.pathless??=[],r.pathless.push(R),r=R}const b=(s.path||!s.children)&&!s.isRoot;if(b&&y.endsWith("/")){const R=ga(s.fullPath??s.from);R.kind=Kn,R.parent=r,h++,R.depth=h,r.index=R,r=R}r.parse=g??null,r.priority=s.options?.params?.priority??0,b&&!r.route&&(r.route=s,r.fullPath=s.fullPath??s.from)}if(s.children)for(const y of s.children)ss(l,i,y,p,r,h,d)}function Do(l,i){if(l.parse&&!i.parse)return-1;if(!l.parse&&i.parse)return 1;if(l.parse&&i.parse&&(l.priority||i.priority))return i.priority-l.priority;if(l.prefix&&i.prefix&&l.prefix!==i.prefix){if(l.prefix.startsWith(i.prefix))return-1;if(i.prefix.startsWith(l.prefix))return 1}if(l.suffix&&i.suffix&&l.suffix!==i.suffix){if(l.suffix.endsWith(i.suffix))return-1;if(i.suffix.endsWith(l.suffix))return 1}return l.prefix&&!i.prefix?-1:!l.prefix&&i.prefix?1:l.suffix&&!i.suffix?-1:!l.suffix&&i.suffix?1:l.caseSensitive&&!i.caseSensitive?-1:!l.caseSensitive&&i.caseSensitive?1:0}function Vn(l){if(l.pathless)for(const i of l.pathless)Vn(i);if(l.static)for(const i of l.static.values())Vn(i);if(l.staticInsensitive)for(const i of l.staticInsensitive.values())Vn(i);if(l.dynamic?.length){l.dynamic.sort(Do);for(const i of l.dynamic)Vn(i)}if(l.optional?.length){l.optional.sort(Do);for(const i of l.optional)Vn(i)}if(l.wildcard?.length){l.wildcard.sort(Do);for(const i of l.wildcard)Vn(i)}}function ga(l){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:l,parent:null,parse:null,priority:0}}function Uo(l,i,s,o,r){return{kind:l,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:i,parent:null,parse:null,priority:0,caseSensitive:s,prefix:o,suffix:r}}function d0(l,i){const s=ga("/"),o=new Uint16Array(6);for(const r of l)ss(!1,o,r,1,s,0);Vn(s),i.masksTree=s,i.flatCache=Ei(1e3)}function m0(l,i){l||="/";const s=i.flatCache.get(l);if(s)return s;const o=sr(l,i.masksTree);return i.flatCache.set(l,o),o}function y0(l,i,s,o,r){l||="/",o||="/";const h=i?`case\0${l}`:l;let d=r.singleCache.get(h);return d||(d=ga("/"),ss(i,new Uint16Array(6),{from:l},1,d,0),r.singleCache.set(h,d)),sr(o,d,s)}function v0(l,i,s=!1){const o=s?l:`nofuzz\0${l}`,r=i.matchCache.get(o);if(r!==void 0)return r;l||="/";let h;try{h=sr(l,i.segmentTree,s)}catch(d){if(d instanceof URIError)h=null;else throw d}return h&&(h.branch=Ty(h.route)),i.matchCache.set(o,h),h}function p0(l){return l==="/"?l:l.replace(/\/{1,}$/,"")}function g0(l,i=!1,s){const o=ga(l.fullPath),r=new Uint16Array(6),h={},d={};let p=0;return ss(i,r,l,1,o,0,y=>{if(s?.(y,p),y.id in h&&pn(),h[y.id]=y,p!==0&&y.path){const m=p0(y.fullPath);(!d[m]||y.fullPath.endsWith("/"))&&(d[m]=y)}p++}),Vn(o),{processedTree:{segmentTree:o,singleCache:Ei(1e3),matchCache:Ei(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:d}}function sr(l,i,s=!1){const o=l.split("/"),r=b0(l,o,i,s);if(!r)return null;const[h]=Ey(l,o,r);return{route:r.node.route,rawParams:h}}function Ey(l,i,s){const o=S0(s.node);let r=null;const h=Object.create(null);let d=s.extract?.part??0,p=s.extract?.node??0,y=s.extract?.path??0,m=s.extract?.segment??0;for(;p<o.length;d++,p++,y++,m++){const S=o[p];if(S.kind===Kn)break;if(S.kind===_y){m--,d--,y--;continue}const g=i[d],b=y;if(g&&(y+=g.length),S.kind===1){r??=s.node.fullPath.split("/");const R=r[m],M=S.prefix?.length??0;if(R.charCodeAt(M)===123){const C=S.suffix?.length??0,D=R.substring(M+2,R.length-C-1),L=g.substring(M,g.length-C);h[D]=decodeURIComponent(L)}else{const C=R.substring(1);h[C]=decodeURIComponent(g)}}else if(S.kind===3){if(s.skipped&1<<p){d--,y=b-1;continue}r??=s.node.fullPath.split("/");const R=r[m],M=S.prefix?.length??0,C=S.suffix?.length??0,D=R.substring(M+3,R.length-C-1),L=S.suffix||S.prefix?g.substring(M,g.length-C):g;L&&(h[D]=decodeURIComponent(L))}else if(S.kind===2){const R=S,M=l.substring(b+(R.prefix?.length??0),l.length-(R.suffix?.length??0)),C=decodeURIComponent(M);h["*"]=C,h._splat=C;break}}return s.rawParams&&Object.assign(h,s.rawParams),[h,{part:d,node:p,path:y,segment:m}]}function Ty(l){const i=[l];for(;l.parentRoute;)l=l.parentRoute,i.push(l);return i.reverse(),i}function S0(l){const i=Array(l.depth+1);do i[l.depth]=l,l=l.parent;while(l);return i}function b0(l,i,s,o){if(l==="/"&&s.index)return{node:s.index,skipped:0};const r=!_i(i),h=r&&l!=="/",d=i.length-(r?1:0),p=[{node:s,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let y=null,m=null;for(;p.length;){const S=p.pop(),{node:g,index:b,skipped:R,depth:M,statics:C,dynamics:D,optionals:L}=S;let{extract:j,rawParams:X}=S;if(g.kind===2&&g.route&&!Zu(m,S))continue;if(g.parse){if(!Nm(l,i,S))continue;X=S.rawParams,j=S.extract}o&&g.route&&g.kind!==Kn&&Zu(y,S)&&(y=S);const G=b===d;if(G&&(g.route&&(!h||g.kind===Kn||g.kind===2)&&Zu(m,S)&&(m=S),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const K=G?void 0:i[b];let P;if(G&&g.index){const B={node:g.index,index:b,skipped:R,depth:M+1,statics:C,dynamics:D,optionals:L,extract:j,rawParams:X};let Y=!0;if(g.index.parse&&(Nm(l,i,B)||(Y=!1)),Y){if(!D&&!L&&!R&&_0(C,d))return B;Zu(m,B)&&(m=B)}}if(g.wildcard)for(let B=g.wildcard.length-1;B>=0;B--){const Y=g.wildcard[B],{prefix:J,suffix:it}=Y;if(!(J&&(G||!(Y.caseSensitive?K:P??=K.toLowerCase()).startsWith(J)))){if(it){if(G)continue;const nt=i.slice(b).join("/").slice(-it.length);if((Y.caseSensitive?nt:nt.toLowerCase())!==it)continue}p.push({node:Y,index:d,skipped:R,depth:M+1,statics:C,dynamics:D,optionals:L,extract:j,rawParams:X})}}if(g.optional){const B=R|1<<M,Y=M+1;for(let J=g.optional.length-1;J>=0;J--){const it=g.optional[J];p.push({node:it,index:b,skipped:B,depth:Y,statics:C,dynamics:D,optionals:L,extract:j,rawParams:X})}if(!G)for(let J=g.optional.length-1;J>=0;J--){const it=g.optional[J],{prefix:nt,suffix:tt}=it;if(nt||tt){const wt=it.caseSensitive?K:P??=K.toLowerCase();if(nt&&!wt.startsWith(nt)||tt&&!wt.endsWith(tt))continue}p.push({node:it,index:b+1,skipped:R,depth:Y,statics:C,dynamics:D,optionals:L+Ku(d,b),extract:j,rawParams:X})}}if(!G&&g.dynamic&&K)for(let B=g.dynamic.length-1;B>=0;B--){const Y=g.dynamic[B],{prefix:J,suffix:it}=Y;if(J||it){const nt=Y.caseSensitive?K:P??=K.toLowerCase();if(J&&!nt.startsWith(J)||it&&!nt.endsWith(it))continue}p.push({node:Y,index:b+1,skipped:R,depth:M+1,statics:C,dynamics:D+Ku(d,b),optionals:L,extract:j,rawParams:X})}if(!G&&g.staticInsensitive){const B=g.staticInsensitive.get(P??=K.toLowerCase());B&&p.push({node:B,index:b+1,skipped:R,depth:M+1,statics:C+Ku(d,b),dynamics:D,optionals:L,extract:j,rawParams:X})}if(!G&&g.static){const B=g.static.get(K);B&&p.push({node:B,index:b+1,skipped:R,depth:M+1,statics:C+Ku(d,b),dynamics:D,optionals:L,extract:j,rawParams:X})}if(g.pathless){const B=M+1;for(let Y=g.pathless.length-1;Y>=0;Y--){const J=g.pathless[Y];p.push({node:J,index:b,skipped:R,depth:B,statics:C,dynamics:D,optionals:L,extract:j,rawParams:X})}}}if(m)return m;if(o&&y){let S=y.index;for(let b=0;b<y.index;b++)S+=i[b].length;const g=S===l.length?"/":l.slice(S);return y.rawParams??=Object.create(null),y.rawParams["**"]=decodeURIComponent(g),y}return null}function Ku(l,i){return 2**(l-i-1)}function _0(l,i){return l===2**(i-1)-1}function Nm(l,i,s){let o,r;try{[o,r]=Ey(l,i,s)}catch{return null}if(s.rawParams=o,s.extract=r,!s.node.parse)return!0;try{if(s.node.parse(o)===!1)return null}catch{}return!0}function Zu(l,i){return l?i.statics>l.statics||i.statics===l.statics&&(i.dynamics>l.dynamics||i.dynamics===l.dynamics&&(i.optionals>l.optionals||i.optionals===l.optionals&&((i.node.kind===Kn)>(l.node.kind===Kn)||i.node.kind===Kn==(l.node.kind===Kn)&&i.depth>l.depth))):!0}function Fu(l){return cr(l.filter(i=>i!==void 0).join("/"))}function cr(l){return l.replace(/\/{2,}/g,"/")}function My(l){return l==="/"?l:l.replace(/^\/{1,}/,"")}function vn(l){const i=l.length;return i>1&&l[i-1]==="/"?l.replace(/\/{1,}$/,""):l}function Oy(l){return vn(My(l))}function as(l,i){return l?.endsWith("/")&&l!=="/"&&l!==`${i}/`?l.slice(0,-1):l}function R0(l,i,s){return as(l,s)===as(i,s)}function E0({base:l,to:i,trailingSlash:s="never",cache:o}){const r=i.startsWith("/"),h=!r&&i===".";let d;if(o){d=r?i:h?l:l+"\0"+i;const m=o.get(d);if(m)return m}let p;if(h)p=l.split("/");else if(r)p=i.split("/");else{for(p=l.split("/");p.length>1&&_i(p)==="";)p.pop();const m=i.split("/");for(let S=0,g=m.length;S<g;S++){const b=m[S];b===""?S?S===g-1&&p.push(b):p=[b]:b===".."?p.pop():b==="."||p.push(b)}}p.length>1&&(_i(p)===""?s==="never"&&p.pop():s==="always"&&p.push(""));const y=cr(p.join("/"))||"/";return d&&o&&o.set(d,y),y}function T0(l){const i=new Map(l.map(r=>[encodeURIComponent(r),r])),s=Array.from(i.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(s,"g");return r=>r.replace(o,h=>i.get(h)??h)}function Lo(l,i,s){const o=i[l];return typeof o!="string"?o:l==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(r=>Bm(r,s)).join("/"):Bm(o,s)}function wm({path:l,params:i,decoder:s,...o}){let r=!1;const h=Object.create(null);if(!l||l==="/")return{interpolatedPath:"/",usedParams:h,isMissingParams:r};if(!l.includes("$"))return{interpolatedPath:l,usedParams:h,isMissingParams:r};const d=l.length;let p=0,y,m="";for(;p<d;){const S=p;y=Ry(l,S,y);const g=y[5];if(p=g+1,S===g)continue;const b=y[0];if(b===0){m+="/"+l.substring(S,g);continue}if(b===2){const R=i._splat;h._splat=R,h["*"]=R;const M=l.substring(S,y[1]),C=l.substring(y[4],g);if(!R){r=!0,(M||C)&&(m+="/"+M+C);continue}const D=Lo("_splat",i,s);m+="/"+M+D+C;continue}if(b===1){const R=l.substring(y[2],y[3]);!r&&!(R in i)&&(r=!0),h[R]=i[R];const M=l.substring(S,y[1]),C=l.substring(y[4],g),D=Lo(R,i,s)??"undefined";m+="/"+M+D+C;continue}if(b===3){const R=l.substring(y[2],y[3]),M=i[R];if(M==null)continue;h[R]=M;const C=l.substring(S,y[1]),D=l.substring(y[4],g),L=Lo(R,i,s)??"";m+="/"+C+L+D;continue}}return l.endsWith("/")&&(m+="/"),{usedParams:h,interpolatedPath:m||"/",isMissingParams:r}}function Bm(l,i){const s=encodeURIComponent(l);return i?.(s)??s}function le(l){return l?.isNotFound===!0}function M0(l,i=String){const s=new URLSearchParams;for(const o in l){const r=l[o];r!==void 0&&s.set(o,i(r))}return s.toString()}function No(l){return l?l==="false"?!1:l==="true"?!0:+l*0===0&&+l+""===l?+l:l:""}function O0(l){const i=new URLSearchParams(l),s=Object.create(null);for(const[o,r]of i.entries()){const h=s[o];h==null?s[o]=No(r):Array.isArray(h)?h.push(No(r)):s[o]=[h,No(r)]}return s}const C0=x0(JSON.parse),A0=z0(JSON.stringify,JSON.parse);function x0(l){return i=>{i[0]==="?"&&(i=i.substring(1));const s=O0(i);for(const o in s){const r=s[o];if(typeof r=="string")try{s[o]=l(r)}catch{}}return s}}function z0(l,i){const s=typeof i=="function";function o(r){if(typeof r=="object"&&r!==null)try{return l(r)}catch{}else if(s&&typeof r=="string")try{return i(r),l(r)}catch{}return r}return r=>{const h=M0(r,o);return h?`?${h}`:""}}const ba="__root__";function D0(l){if(l.statusCode=l.statusCode||l.code||307,!l._builtLocation&&!l.reloadDocument&&typeof l.href=="string")try{new URL(l.href),l.reloadDocument=!0}catch{}const i=new Headers(l.headers);l.href&&i.get("Location")===null&&i.set("Location",l.href);const s=new Response(null,{status:l.statusCode,headers:i});if(s.options=l,l.throw)throw s;return s}function me(l){return l instanceof Response&&!!l.options}const Fo=l=>{if(!l.rendered)return l.rendered=!0,l.onReady?.()},U0=l=>l.stores.matchesId.get().some(i=>l.stores.matchStores.get(i)?.get()._forcePending),cs=(l,i)=>!!(l.preload&&!l.router.stores.matchStores.has(i)),_a=(l,i,s=!0)=>{const o={...l.router.options.context??{}},r=s?i:i-1;for(let h=0;h<=r;h++){const d=l.matches[h];if(!d)continue;const p=l.router.getMatch(d.id);p&&Object.assign(o,p.__routeContext,p.__beforeLoadContext)}return o},jm=(l,i)=>{if(!l.matches.length)return;const s=i.routeId,o=l.matches.findIndex(d=>d.routeId===l.router.routeTree.id),r=o>=0?o:0;let h=s?l.matches.findIndex(d=>d.routeId===s):l.firstBadMatchIndex??l.matches.length-1;h<0&&(h=r);for(let d=h;d>=0;d--){const p=l.matches[d];if(l.router.looseRoutesById[p.routeId].options.notFoundComponent)return d}return s?h:r},Zn=(l,i,s)=>{if(!(!me(s)&&!le(s)))throw me(s)&&s.redirectHandled&&!s.options.reloadDocument||(i&&(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0,i._nonReactive.error=s,l.updateMatch(i.id,o=>({...o,status:me(s)?"redirected":le(s)?"notFound":o.status==="pending"?"success":o.status,context:_a(l,i.index),isFetching:!1,error:s})),le(s)&&!s.routeId&&(s.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()),me(s)&&(l.rendered=!0,s.options._fromLocation=l.location,s.redirectHandled=!0,s=l.router.resolveRedirect(s))),s},Cy=(l,i)=>{const s=l.router.getMatch(i);return!!(!s||s._nonReactive.dehydrated)},Hm=(l,i,s)=>{const o=_a(l,s);l.updateMatch(i,r=>({...r,context:o}))},yi=(l,i,s,o)=>{const{id:r,routeId:h}=l.matches[i],d=l.router.looseRoutesById[h];if(s instanceof Promise)throw s;s.routerCode=o,l.firstBadMatchIndex??=i,Zn(l,l.router.getMatch(r),s);try{d.options.onError?.(s)}catch(p){s=p,Zn(l,l.router.getMatch(r),s)}l.updateMatch(r,p=>(p._nonReactive.beforeLoadPromise?.resolve(),p._nonReactive.beforeLoadPromise=void 0,p._nonReactive.loadPromise?.resolve(),{...p,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!l.preload&&!me(s)&&!le(s)&&(l.serialError??=s)},Ay=(l,i,s,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=s.options.pendingMs??l.router.options.defaultPendingMs;if(l.onReady&&!cs(l,i)&&(s.options.loader||s.options.beforeLoad||zy(s))&&typeof r=="number"&&r!==1/0&&(s.options.pendingComponent??l.router.options?.defaultPendingComponent)){const h=setTimeout(()=>{Fo(l)},r);o._nonReactive.pendingTimeout=h}},L0=(l,i,s)=>{const o=l.router.getMatch(i);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Ay(l,i,s,o);const r=()=>{const h=l.router.getMatch(i);h.preload&&(h.status==="redirected"||h.status==="notFound")&&Zn(l,h,h.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},N0=(l,i,s,o)=>{const r=l.router.getMatch(i);let h=r._nonReactive.loadPromise;r._nonReactive.loadPromise=yl(()=>{h?.resolve(),h=void 0});const{paramsError:d,searchError:p}=r;d&&yi(l,s,d,"PARSE_PARAMS"),p&&yi(l,s,p,"VALIDATE_SEARCH"),Ay(l,i,o,r);const y=new AbortController;let m=!1;const S=()=>{m||(m=!0,l.updateMatch(i,G=>({...G,isFetching:"beforeLoad",fetchCount:G.fetchCount+1,abortController:y})))},g=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,l.updateMatch(i,G=>({...G,isFetching:!1}))};if(!o.options.beforeLoad){l.router.batch(()=>{S(),g()});return}r._nonReactive.beforeLoadPromise=yl();const b={..._a(l,s,!1),...r.__routeContext},{search:R,params:M,cause:C}=r,D=cs(l,i),L={search:R,abortController:y,params:M,preload:D,context:b,location:l.location,navigate:G=>l.router.navigate({...G,_fromLocation:l.location}),buildLocation:l.router.buildLocation,cause:D?"preload":C,matches:l.matches,routeId:o.id,...l.router.options.additionalContext},j=G=>{if(G===void 0){l.router.batch(()=>{S(),g()});return}(me(G)||le(G))&&(S(),yi(l,s,G,"BEFORE_LOAD")),l.router.batch(()=>{S(),l.updateMatch(i,K=>({...K,__beforeLoadContext:G})),g()})};let X;try{if(X=o.options.beforeLoad(L),Ri(X))return S(),X.catch(G=>{yi(l,s,G,"BEFORE_LOAD")}).then(j)}catch(G){S(),yi(l,s,G,"BEFORE_LOAD")}j(X)},w0=(l,i)=>{const{id:s,routeId:o}=l.matches[i],r=l.router.looseRoutesById[o],h=()=>p(),d=()=>N0(l,s,i,r),p=()=>{if(Cy(l,s))return;const y=L0(l,s,r);return Ri(y)?y.then(d):d()};return h()},B0=(l,i,s)=>{const o=l.router.getMatch(i);if(!o||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const r={ssr:l.router.options.ssr,matches:l.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([s.options.head?.(r),s.options.scripts?.(r),s.options.headers?.(r)]).then(([h,d,p])=>({meta:h?.meta,links:h?.links,headScripts:h?.scripts,headers:p,scripts:d,styles:h?.styles}))},xy=(l,i,s,o,r)=>{const h=i[o-1],{params:d,loaderDeps:p,abortController:y,cause:m}=l.router.getMatch(s),S=_a(l,o),g=cs(l,s);return{params:d,deps:p,preload:!!g,parentMatchPromise:h,abortController:y,context:S,location:l.location,navigate:b=>l.router.navigate({...b,_fromLocation:l.location}),cause:g?"preload":m,route:r,...l.router.options.additionalContext}},qm=async(l,i,s,o,r)=>{try{const h=l.router.getMatch(s);try{(!(gy??l.router.isServer)||h.ssr===!0)&&Ti(r);const d=r.options.loader,p=typeof d=="function"?d:d?.handler,y=p?.(xy(l,i,s,o,r)),m=!!p&&Ri(y);if((m||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||h._nonReactive.minPendingPromise)&&l.updateMatch(s,g=>({...g,isFetching:"loader"})),p){const g=m?await y:y;Zn(l,l.router.getMatch(s),g),g!==void 0&&l.updateMatch(s,b=>({...b,loaderData:g}))}r._lazyPromise&&await r._lazyPromise;const S=h._nonReactive.minPendingPromise;S&&await S,r._componentsPromise&&await r._componentsPromise,l.updateMatch(s,g=>({...g,error:void 0,context:_a(l,o),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(d){let p=d;if(p?.name==="AbortError"){if(h.abortController.signal.aborted){h._nonReactive.loaderPromise?.resolve(),h._nonReactive.loaderPromise=void 0;return}l.updateMatch(s,m=>({...m,status:m.status==="pending"?"success":m.status,isFetching:!1,context:_a(l,o)}));return}const y=h._nonReactive.minPendingPromise;y&&await y,le(d)&&await r.options.notFoundComponent?.preload?.(),Zn(l,l.router.getMatch(s),d);try{r.options.onError?.(d)}catch(m){p=m,Zn(l,l.router.getMatch(s),m)}!me(p)&&!le(p)&&await Ti(r,["errorComponent"]),l.updateMatch(s,m=>({...m,error:p,context:_a(l,o),status:"error",isFetching:!1}))}}catch(h){const d=l.router.getMatch(s);d&&(d._nonReactive.loaderPromise=void 0),Zn(l,d,h)}},j0=async(l,i,s)=>{async function o(R,M,C,D,L){const j=Date.now()-M.updatedAt,X=R?L.options.preloadStaleTime??l.router.options.defaultPreloadStaleTime??3e4:L.options.staleTime??l.router.options.defaultStaleTime??0,G=L.options.shouldReload,K=typeof G=="function"?G(xy(l,i,r,s,L)):G,{status:P,invalid:B}=D,Y=j>=X&&(!!l.forceStaleReload||D.cause==="enter"||C!==void 0&&C!==D.id);d=P==="success"&&(B||(K??Y)),R&&L.options.preload===!1||(d&&!l.sync&&S?(p=!0,(async()=>{try{await qm(l,i,r,s,L);const J=l.router.getMatch(r);J._nonReactive.loaderPromise?.resolve(),J._nonReactive.loadPromise?.resolve(),J._nonReactive.loaderPromise=void 0,J._nonReactive.loadPromise=void 0}catch(J){me(J)&&await l.router.navigate(J.options)}})()):P!=="success"||d?await qm(l,i,r,s,L):Hm(l,r,s))}const{id:r,routeId:h}=l.matches[s];let d=!1,p=!1;const y=l.router.looseRoutesById[h],m=y.options.loader,S=((typeof m=="function"?void 0:m?.staleReloadMode)??l.router.options.defaultStaleReloadMode)!=="blocking";if(Cy(l,r)){if(!l.router.getMatch(r))return l.matches[s];Hm(l,r,s)}else{const R=l.router.getMatch(r),M=l.router.stores.matchesId.get()[s],C=(M&&l.router.stores.matchStores.get(M)||null)?.routeId===h?M:l.router.stores.matches.get().find(L=>L.routeId===h)?.id,D=cs(l,r);if(R._nonReactive.loaderPromise){if(R.status==="success"&&!l.sync&&!R.preload&&S)return R;await R._nonReactive.loaderPromise;const L=l.router.getMatch(r),j=L._nonReactive.error||L.error;j&&Zn(l,L,j),L.status==="pending"&&await o(D,R,C,L,y)}else{const L=D&&!l.router.stores.matchStores.has(r),j=l.router.getMatch(r);j._nonReactive.loaderPromise=yl(),L!==j.preload&&l.updateMatch(r,X=>({...X,preload:L})),await o(D,R,C,j,y)}}const g=l.router.getMatch(r);p||(g._nonReactive.loaderPromise?.resolve(),g._nonReactive.loadPromise?.resolve(),g._nonReactive.loadPromise=void 0),clearTimeout(g._nonReactive.pendingTimeout),g._nonReactive.pendingTimeout=void 0,p||(g._nonReactive.loaderPromise=void 0),g._nonReactive.dehydrated=void 0;const b=p?g.isFetching:!1;return b!==g.isFetching||g.invalid!==!1?(l.updateMatch(r,R=>({...R,isFetching:b,invalid:!1})),l.router.getMatch(r)):g};async function Qm(l){const i=l,s=[];U0(i.router)&&Fo(i);let o;for(let b=0;b<i.matches.length;b++){try{const R=w0(i,b);Ri(R)&&await R}catch(R){if(me(R))throw R;if(le(R))o=R;else if(!i.preload)throw R;break}if(i.serialError||i.firstBadMatchIndex!=null)break}const r=i.firstBadMatchIndex??i.matches.length,h=o&&!i.preload?jm(i,o):void 0,d=o&&i.preload?0:h!==void 0?Math.min(h+1,r):r;let p,y;for(let b=0;b<d;b++)s.push(j0(i,s,b));try{await Promise.all(s)}catch{const b=await Promise.allSettled(s);for(const R of b){if(R.status!=="rejected")continue;const M=R.reason;if(me(M))throw M;le(M)?p??=M:y??=M}if(y!==void 0)throw y}const m=p??(o&&!i.preload?o:void 0);let S=i.firstBadMatchIndex!==void 0?i.firstBadMatchIndex:i.matches.length-1;if(!m&&o&&i.preload)return i.matches;if(m){const b=jm(i,m);b===void 0&&pn();const R=i.matches[b],M=i.router.looseRoutesById[R.routeId],C=i.router.options?.defaultNotFoundComponent;!M.options.notFoundComponent&&C&&(M.options.notFoundComponent=C),m.routeId=R.routeId;const D=R.routeId===i.router.routeTree.id;i.updateMatch(R.id,L=>({...L,...D?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:m},isFetching:!1})),S=b,await Ti(M,["notFoundComponent"])}else if(!i.preload){const b=i.matches[0];b.globalNotFound||i.router.getMatch(b.id)?.globalNotFound&&i.updateMatch(b.id,R=>({...R,globalNotFound:!1,error:void 0}))}if(i.serialError&&i.firstBadMatchIndex!==void 0){const b=i.router.looseRoutesById[i.matches[i.firstBadMatchIndex].routeId];await Ti(b,["errorComponent"])}for(let b=0;b<=S;b++){const{id:R,routeId:M}=i.matches[b],C=i.router.looseRoutesById[M];try{const D=B0(i,R,C);if(D){const L=await D;i.updateMatch(R,j=>({...j,...L}))}}catch(D){console.error(`Error executing head for route ${M}:`,D)}}const g=Fo(i);if(Ri(g)&&await g,m)throw m;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}function Ym(l,i){const s=i.map(o=>l.options[o]?.preload?.()).filter(Boolean);if(s.length!==0)return Promise.all(s)}function Ti(l,i=ku){!l._lazyLoaded&&l._lazyPromise===void 0&&(l.lazyFn?l._lazyPromise=l.lazyFn().then(o=>{const{id:r,...h}=o.options;Object.assign(l.options,h),l._lazyLoaded=!0,l._lazyPromise=void 0}):l._lazyLoaded=!0);const s=()=>l._componentsLoaded?void 0:i===ku?(()=>{if(l._componentsPromise===void 0){const o=Ym(l,ku);o?l._componentsPromise=o.then(()=>{l._componentsLoaded=!0,l._componentsPromise=void 0}):l._componentsLoaded=!0}return l._componentsPromise})():Ym(l,i);return l._lazyPromise?l._lazyPromise.then(s):s()}function zy(l){for(const i of ku)if(l.options[i]?.preload)return!0;return!1}const ku=["component","errorComponent","pendingComponent","notFoundComponent"];function H0(l){return{input:({url:i})=>{for(const s of l)i=ko(s,i);return i},output:({url:i})=>{for(let s=l.length-1;s>=0;s--)i=Dy(l[s],i);return i}}}function q0(l){const i=Oy(l.basepath),s=`/${i}`,o=l.caseSensitive?s:s.toLowerCase(),r=`${o}/`;return{input:({url:h})=>{const d=l.caseSensitive?h.pathname:h.pathname.toLowerCase();return d===o?h.pathname="/":d.startsWith(r)&&(h.pathname=h.pathname.slice(s.length)),h},output:({url:h})=>(h.pathname=Fu(["/",i,h.pathname]),h)}}function ko(l,i){const s=l?.input?.({url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function Dy(l,i){const s=l?.output?.({url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function Q0(l,i){const{createMutableStore:s,createReadonlyStore:o,batch:r,init:h}=i,d=new Map,p=new Map,y=new Map,m=s(l.status),S=s(l.loadedAt),g=s(l.isLoading),b=s(l.isTransitioning),R=s(l.location),M=s(l.resolvedLocation),C=s(l.statusCode),D=s(l.redirect),L=s([]),j=s([]),X=s([]),G=o(()=>wo(d,L.get())),K=o(()=>wo(p,j.get())),P=o(()=>wo(y,X.get())),B=o(()=>L.get()[0]),Y=o(()=>L.get().some(V=>d.get(V)?.get().status==="pending")),J=o(()=>({locationHref:R.get().href,resolvedLocationHref:M.get()?.href,status:m.get()})),it=o(()=>({status:m.get(),loadedAt:S.get(),isLoading:g.get(),isTransitioning:b.get(),matches:G.get(),location:R.get(),resolvedLocation:M.get(),statusCode:C.get(),redirect:D.get()})),nt=Ei(64);function tt(V){let at=nt.get(V);return at||(at=o(()=>{const St=L.get();for(const _t of St){const T=d.get(_t);if(T&&T.routeId===V)return T.get()}}),nt.set(V,at)),at}const wt={status:m,loadedAt:S,isLoading:g,isTransitioning:b,location:R,resolvedLocation:M,statusCode:C,redirect:D,matchesId:L,pendingIds:j,cachedIds:X,matches:G,pendingMatches:K,cachedMatches:P,firstId:B,hasPending:Y,matchRouteDeps:J,matchStores:d,pendingMatchStores:p,cachedMatchStores:y,__store:it,getRouteMatchStore:tt,setMatches:Ut,setPending:Ht,setCached:N};Ut(l.matches),h?.(wt);function Ut(V){Bo(V,d,L,s,r)}function Ht(V){Bo(V,p,j,s,r)}function N(V){Bo(V,y,X,s,r)}return wt}function wo(l,i){const s=[];for(const o of i){const r=l.get(o);r&&s.push(r.get())}return s}function Bo(l,i,s,o,r){const h=l.map(p=>p.id),d=new Set(h);r(()=>{for(const p of i.keys())d.has(p)||i.delete(p);for(const p of l){const y=i.get(p.id);if(!y){const m=o(p);m.routeId=p.routeId,i.set(p.id,m);continue}y.routeId=p.routeId,y.get()!==p&&y.set(p)}f0(s.get(),h)||s.set(h)})}var Pn="__TSR_index",Gm="popstate",Xm="beforeunload";function Y0(l){let i=l.getLocation();const s=new Set,o=d=>{i=l.getLocation(),s.forEach(p=>p({location:i,action:d}))},r=d=>{l.notifyOnIndexChange??!0?o(d):i=l.getLocation()},h=async({task:d,navigateOpts:p,...y})=>{if(p?.ignoreBlocker??!1){d();return}const m=l.getBlockers?.()??[],S=y.type==="PUSH"||y.type==="REPLACE";if(typeof document<"u"&&m.length&&S)for(const g of m){const b=ls(y.path,y.state);if(await g.blockerFn({currentLocation:i,nextLocation:b,action:y.type})){l.onBlocked?.();return}}d()};return{get location(){return i},get length(){return l.getLength()},subscribers:s,subscribe:d=>(s.add(d),()=>{s.delete(d)}),push:(d,p,y)=>{const m=i.state[Pn];p=Vm(m+1,p),h({task:()=>{l.pushState(d,p),o({type:"PUSH"})},navigateOpts:y,type:"PUSH",path:d,state:p})},replace:(d,p,y)=>{const m=i.state[Pn];p=Vm(m,p),h({task:()=>{l.replaceState(d,p),o({type:"REPLACE"})},navigateOpts:y,type:"REPLACE",path:d,state:p})},go:(d,p)=>{h({task:()=>{l.go(d),r({type:"GO",index:d})},navigateOpts:p,type:"GO"})},back:d=>{h({task:()=>{l.back(d?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:d,type:"BACK"})},forward:d=>{h({task:()=>{l.forward(d?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:d,type:"FORWARD"})},canGoBack:()=>i.state[Pn]!==0,createHref:d=>l.createHref(d),block:d=>{if(!l.setBlockers)return()=>{};const p=l.getBlockers?.()??[];return l.setBlockers([...p,d]),()=>{const y=l.getBlockers?.()??[];l.setBlockers?.(y.filter(m=>m!==d))}},flush:()=>l.flush?.(),destroy:()=>l.destroy?.(),notify:o}}function Vm(l,i){i||(i={});const s=or();return{...i,key:s,__TSR_key:s,[Pn]:l}}function G0(l){const i=typeof document<"u"?window:void 0,s=i.history.pushState,o=i.history.replaceState;let r=[];const h=()=>r,d=Y=>r=Y,p=(Y=>Y),y=(()=>ls(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const Y=or();i.history.replaceState({[Pn]:0,key:Y,__TSR_key:Y},"")}let m=y(),S,g=!1,b=!1,R=!1,M=!1;const C=()=>m;let D,L;const j=()=>{D&&(B._ignoreSubscribers=!0,(D.isPush?i.history.pushState:i.history.replaceState)(D.state,"",D.href),B._ignoreSubscribers=!1,D=void 0,L=void 0,S=void 0)},X=(Y,J,it)=>{const nt=p(J);L||(S=m),m=ls(J,it),D={href:nt,state:it,isPush:D?.isPush||Y==="push"},L||(L=Promise.resolve().then(()=>j()))},G=Y=>{m=y(),B.notify({type:Y})},K=async()=>{if(b){b=!1;return}const Y=y(),J=Y.state[Pn]-m.state[Pn],it=J===1,nt=J===-1,tt=!it&&!nt||g;g=!1;const wt=tt?"GO":nt?"BACK":"FORWARD",Ut=tt?{type:"GO",index:J}:{type:nt?"BACK":"FORWARD"};if(R)R=!1;else{const Ht=h();if(typeof document<"u"&&Ht.length){for(const N of Ht)if(await N.blockerFn({currentLocation:m,nextLocation:Y,action:wt})){b=!0,i.history.go(1),B.notify(Ut);return}}}m=y(),B.notify(Ut)},P=Y=>{if(M){M=!1;return}let J=!1;const it=h();if(typeof document<"u"&&it.length)for(const nt of it){const tt=nt.enableBeforeUnload??!0;if(tt===!0){J=!0;break}if(typeof tt=="function"&&tt()===!0){J=!0;break}}if(J)return Y.preventDefault(),Y.returnValue=""},B=Y0({getLocation:C,getLength:()=>i.history.length,pushState:(Y,J)=>X("push",Y,J),replaceState:(Y,J)=>X("replace",Y,J),back:Y=>(Y&&(R=!0),M=!0,i.history.back()),forward:Y=>{Y&&(R=!0),M=!0,i.history.forward()},go:Y=>{g=!0,i.history.go(Y)},createHref:Y=>p(Y),flush:j,destroy:()=>{i.history.pushState=s,i.history.replaceState=o,i.removeEventListener(Xm,P,{capture:!0}),i.removeEventListener(Gm,K)},onBlocked:()=>{S&&m!==S&&(m=S)},getBlockers:h,setBlockers:d,notifyOnIndexChange:!1});return i.addEventListener(Xm,P,{capture:!0}),i.addEventListener(Gm,K),i.history.pushState=function(...Y){const J=s.apply(i.history,Y);return B._ignoreSubscribers||G("PUSH"),J},i.history.replaceState=function(...Y){const J=o.apply(i.history,Y);return B._ignoreSubscribers||G("REPLACE"),J},B}function X0(l){let i=l.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function ls(l,i){const s=X0(l),o=s.indexOf("#"),r=s.indexOf("?"),h=or();return{href:s,pathname:s.substring(0,o>0?r>0?Math.min(o,r):o:r>0?r:s.length),hash:o>-1?s.substring(o):"",search:r>-1?s.slice(r,o===-1?void 0:o):"",state:i||{[Pn]:0,key:h,__TSR_key:h}}}function or(){return(Math.random()+1).toString(36).substring(7)}function ml(l,i){const s=i,o=l;return{fromLocation:s,toLocation:o,pathChanged:s?.pathname!==o.pathname,hrefChanged:s?.href!==o.href,hashChanged:s?.hash!==o.hash}}const Wo=new WeakMap;var V0=class{constructor(l,i){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=s=>s(),this.update=s=>{const o=this.options,r=this.basepath??o?.basepath??"/",h=this.basepath===void 0,d=o?.rewrite;if(this.options={...o,...s},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=T0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=G0()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let S;this.resolvePathCache=Ei(1e3),S=this.buildRouteTree(),this.setRoutes(S)}if(!this.stores&&this.latestLocation){const S=this.getStoreConfig(this);this.batch=S.batch,this.stores=Q0(Z0(this.latestLocation),S),aS(this)}let p=!1;const y=this.options.basepath??"/",m=this.options.rewrite;if(h||r!==y||d!==m){this.basepath=y;const S=[],g=Oy(y);g&&g!=="/"&&S.push(q0({basepath:y})),m&&S.push(m),this.rewrite=S.length===0?void 0:S.length===1?S[0]:H0(S),this.history&&this.updateLatestLocation(),p=!0}p&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const s=g0(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&d0(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,o)=>{const r={eventType:s,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=s=>{this.subscribers.forEach(o=>{o.eventType===s.type&&o.fn(s)})},this.parseLocation=(s,o)=>{const r=({pathname:y,search:m,hash:S,href:g,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(y)){const L=this.options.parseSearch(m),j=this.options.stringifySearch(L);return{href:y+j+S,publicHref:y+j+S,pathname:mi(y).path,external:!1,searchStr:j,search:ma(o?.search,L),hash:mi(S.slice(1)).path,state:pa(o?.state,b)}}const R=new URL(g,this.origin),M=ko(this.rewrite,R),C=this.options.parseSearch(M.search),D=this.options.stringifySearch(C);return M.search=D,{href:M.href.replace(M.origin,""),publicHref:g,pathname:mi(M.pathname).path,external:!!this.rewrite&&M.origin!==this.origin,searchStr:D,search:ma(o?.search,C),hash:mi(M.hash.slice(1)).path,state:pa(o?.state,b)}},h=r(s),{__tempLocation:d,__tempKey:p}=h.state;if(d&&(!p||p===this.tempLocationKey)){const y=r(d);return y.state.key=h.state.key,y.state.__TSR_key=h.state.__TSR_key,delete y.state.__tempLocation,{...y,maskedLocation:h}}return h},this.resolvePathWithBase=(s,o)=>E0({base:s,to:o.includes("//")?cr(o):o,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,o,r)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:o},r):this.matchRoutesInternal(s,o),this.getMatchedRoutes=s=>J0({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const o=this.getMatch(s);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(s=>{this.cancelMatch(s)}),this.stores.matchesId.get().forEach(s=>{if(this.stores.pendingMatchStores.has(s))return;const o=this.stores.matchStores.get(s)?.get();o&&(o.status==="pending"||o.isFetching==="loader")&&this.cancelMatch(s)})},this.buildLocation=s=>{const o=(h={})=>{const d=h._fromLocation||this.pendingBuiltLocation||this.latestLocation,p=this.matchRoutesLightweight(d);h.from;const y=h.unsafeRelative==="path"?d.pathname:h.from??p.fullPath,m=h.to?`${h.to}`:void 0,S=p.search,g=Object.assign(Object.create(null),p.params),b=m?.charCodeAt(0)===47?"/":this.resolvePathWithBase(y,"."),R=m?this.resolvePathWithBase(b,m):b,M=h.params===!1||h.params===null?Object.create(null):(h.params??!0)===!0?g:Object.assign(g,va(h.params,g)),C=this.routesByPath[vn(R)];let D;if(C)D=this.getRouteBranch(C);else if(R.includes("$"))D=[];else{const nt=this.getMatchedRoutes(R);D=nt.matchedRoutes,this.options.notFoundRoute&&(!nt.foundRoute||nt.foundRoute.path!=="/"&&nt.routeParams["**"])&&(D=[...D,this.options.notFoundRoute])}if(D.length&&by(M))for(const nt of D){const tt=nt.options.params?.stringify??nt.options.stringifyParams;if(tt)try{Object.assign(M,tt(M))}catch{}}const L=s.leaveParams?R:mi(wm({path:R,params:M,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let j=S;if(s._includeValidateSearch&&this.options.search?.strict){const nt={};D.forEach(tt=>{if(tt.options.validateSearch)try{Object.assign(nt,Wu(tt.options.validateSearch,{...nt,...j}))}catch{}}),j=nt}j=P0({search:j,dest:h,destRoutes:D,_includeValidateSearch:s._includeValidateSearch}),j=ma(S,j);const X=this.options.stringifySearch(j),G=h.hash===!0?d.hash:h.hash?va(h.hash,d.hash):void 0,K=G?`#${G}`:"";let P=h.state===!0?d.state:h.state?va(h.state,d.state):{};P=pa(d.state,P);const B=`${L}${X}${K}`;let Y,J,it=!1;if(this.rewrite){const nt=new URL(B,this.origin),tt=Dy(this.rewrite,nt);Y=nt.href.replace(nt.origin,""),tt.origin!==this.origin?(J=tt.href,it=!0):J=tt.pathname+tt.search+tt.hash}else Y=r0(B),J=Y;return{publicHref:J,href:Y,pathname:L,search:j,searchStr:X,state:P,hash:G??"",external:it,unmaskOnReload:h.unmaskOnReload}},r=(h={},d)=>{const p=o(h);let y=d?o(d):void 0;if(!y){const m=Object.create(null);if(this.options.routeMasks){const S=m0(p.pathname,this.processedTree);if(S){Object.assign(m,S.rawParams);const{from:g,params:b,...R}=S.route,M=b===!1||b===null?Object.create(null):(b??!0)===!0?m:Object.assign(m,va(b,m));d={from:s.from,...R,params:M},y=o(d)}}}return y&&(p.maskedLocation=y),p};return s.mask?r(s,{from:s.from,...s.mask}):r(s)},this.commitLocation=async({viewTransition:s,ignoreBlocker:o,...r})=>{let h;const d=()=>{const m=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];m.forEach(g=>{r.state[g]=this.latestLocation.state[g]});const S=Sa(r.state,this.latestLocation.state);return m.forEach(g=>{delete r.state[g]}),S},p=vn(this.latestLocation.href)===vn(r.href);let y=this.commitLocationPromise;if(this.commitLocationPromise=yl(()=>{y?.resolve(),y=void 0}),p&&d())this.load();else{let{maskedLocation:m,hashScrollIntoView:S,...g}=r;m&&(g={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...g,search:g.searchStr,state:{...g.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(g.unmaskOnReload??this.options.unmaskOnReload??!1)&&(g.state.__tempKey=this.tempLocationKey)),g.state.__hashScrollIntoViewOptions=S??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,h=r.replace?"REPLACE":"PUSH",this.history[h==="REPLACE"?"replace":"push"](g.publicHref,g.state,{ignoreBlocker:o})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(h?{action:{type:h}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:o,hashScrollIntoView:r,viewTransition:h,ignoreBlocker:d,href:p,...y}={})=>{if(p){const g=this.history.location.state.__TSR_index,b=ls(p,{__TSR_index:s?g:g+1}),R=new URL(b.pathname,this.origin);y.to=ko(this.rewrite,R).pathname,y.search=this.options.parseSearch(b.search),y.hash=b.hash.slice(1)}const m=this.buildLocation({...y,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const S=this.commitLocation({...m,viewTransition:h,replace:s,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:d});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),S},this.navigate=async({to:s,reloadDocument:o,href:r,publicHref:h,...d})=>{let p=!1;if(r)try{new URL(`${r}`),p=!0}catch{}if(p&&!o&&(o=!0),o){if(s!==void 0||!r){const m=this.buildLocation({to:s,...d});r=r??m.publicHref,h=h??m.publicHref}const y=!p&&h?h:r;if(ns(y,this.protocolAllowlist))return Promise.resolve();if(!d.ignoreBlocker){const m=this.history.getBlockers?.()??[];for(const S of m)if(S?.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return d.replace?window.location.replace(y):window.location.href=y,Promise.resolve()}return this.buildAndCommitLocation({...d,href:r,to:s,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const s=this.matchRoutes(this.latestLocation),o=this.stores.cachedMatches.get().filter(r=>!s.some(h=>h.id===r.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(s),this.stores.setCached(o)})},this.load=async s=>{const o=s?.action?.type;let r,h,d;const p=this.stores.resolvedLocation.get()??this.stores.location.get();for(d=new Promise(m=>{this.startTransition(async()=>{try{this.beforeLoad(),o?Wo.set(this.latestLocation,o):Wo.delete(this.latestLocation);const S=this.latestLocation,g=ml(S,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...g}),this.emit({type:"onBeforeLoad",...g}),await Qm({router:this,sync:s?.sync,forceStaleReload:p.href===S.href,matches:this.stores.pendingMatches.get(),location:S,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=null,R=null,M=null,C=null;this.batch(()=>{const D=this.stores.pendingMatches.get(),L=D.length,j=this.stores.matches.get();b=L?j.filter(K=>!this.stores.pendingMatchStores.has(K.id)):null;const X=new Set;for(const K of this.stores.pendingMatchStores.values())K.routeId&&X.add(K.routeId);const G=new Set;for(const K of this.stores.matchStores.values())K.routeId&&G.add(K.routeId);R=L?j.filter(K=>!X.has(K.routeId)):null,M=L?D.filter(K=>!G.has(K.routeId)):null,C=L?D.filter(K=>G.has(K.routeId)):j,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),L&&(this.stores.setMatches(D),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...b.filter(K=>K.status!=="error"&&K.status!=="notFound"&&K.status!=="redirected")]),this.clearExpiredCache())});for(const[D,L]of[[R,"onLeave"],[M,"onEnter"],[C,"onStay"]])if(D)for(const j of D)this.looseRoutesById[j.routeId].options[L]?.(j)})})}})}catch(S){me(S)?(r=S,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):le(S)&&(h=S);const g=r?r.status:h?404:this.stores.matches.get().some(b=>b.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(g),this.stores.redirect.set(r)})}this.latestLoadPromise===d&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),m()})}),this.latestLoadPromise=d,await d;this.latestLoadPromise&&d!==this.latestLoadPromise;)await this.latestLoadPromise;let y;this.hasNotFoundMatch()?y=404:this.stores.matches.get().some(m=>m.status==="error")&&(y=500),y!==void 0&&this.stores.statusCode.set(y)},this.startViewTransition=s=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const h=this.latestLocation,d=this.stores.resolvedLocation.get(),p=typeof o.types=="function"?o.types(ml(h,d)):o.types;if(p===!1){s();return}r={update:s,types:p}}else r=s;document.startViewTransition(r)}else s()},this.updateMatch=(s,o)=>{this.startTransition(()=>{const r=this.stores.pendingMatchStores.get(s);if(r){r.set(o);return}const h=this.stores.matchStores.get(s);if(h){h.set(o);return}const d=this.stores.cachedMatchStores.get(s);if(d){const p=o(d.get());p.status==="redirected"?this.stores.cachedMatchStores.delete(s)&&this.stores.cachedIds.set(y=>y.filter(m=>m!==s)):d.set(p)}})},this.getMatch=s=>this.stores.cachedMatchStores.get(s)?.get()??this.stores.pendingMatchStores.get(s)?.get()??this.stores.matchStores.get(s)?.get(),this.invalidate=s=>{const o=r=>s?.filter?.(r)??!0?{...r,invalid:!0,...s?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(o)),this.stores.setCached(this.stores.cachedMatches.get().map(o)),this.stores.setPending(this.stores.pendingMatches.get().map(o))}),this.shouldViewTransition=!1,this.load({sync:s?.sync})},this.getParsedLocationHref=s=>s.publicHref||"/",this.resolveRedirect=s=>{const o=s.headers.get("Location");if(!s.options.href||s.options._builtLocation){const r=s.options._builtLocation??this.buildLocation(s.options),h=this.getParsedLocationHref(r);s.options.href=h,s.headers.set("Location",h)}else if(o)try{const r=new URL(o);if(this.origin&&r.origin===this.origin){const h=r.pathname+r.search+r.hash;s.options.href=h,s.headers.set("Location",h)}}catch{}if(s.options.href&&!s.options._builtLocation&&ns(s.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{const o=s?.filter;o!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(r=>!o(r))):this.stores.setCached([])},this.clearExpiredCache=()=>{const s=Date.now(),o=r=>{const h=this.looseRoutesById[r.routeId];if(!h.options.loader)return!0;const d=(r.preload?h.options.preloadGcTime??this.options.defaultPreloadGcTime:h.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:s-r.updatedAt>=d};this.clearCache({filter:o})},this.loadRouteChunk=Ti,this.preloadRoute=async s=>{const o=s._builtLocation??this.buildLocation(s);let r=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:s});const h=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),d=new Set([...h,...this.stores.cachedIds.get()]),p=r.filter(y=>!d.has(y.id));if(p.length){const y=this.stores.cachedMatches.get();this.stores.setCached([...y,...p])}try{return r=await Qm({router:this,matches:r,location:o,preload:!0,updateMatch:(y,m)=>{h.has(y)?r=r.map(S=>S.id===y?m(S):S):this.updateMatch(y,m)}}),r}catch(y){if(me(y))return y.options.reloadDocument?void 0:await this.preloadRoute({...y.options,_fromLocation:o});le(y)||console.error(y);return}},this.matchRoute=(s,o)=>{const r={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},h=this.buildLocation(r);if(o?.pending&&this.stores.status.get()!=="pending")return!1;const d=(o?.pending===void 0?!this.stores.isLoading.get():o.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),p=y0(h.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,d.pathname,this.processedTree);return!p||s.params&&!Sa(p.rawParams,s.params,{partial:!0})?!1:o?.includeSearch??!0?Sa(d.search,h.search,{partial:!0})?p.rawParams:!1:p.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(s=>s.status==="notFound"||s.globalNotFound),this.getStoreConfig=i,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...l,caseSensitive:l.caseSensitive??!1,notFoundMode:l.notFoundMode??"fuzzy",stringifySearch:l.stringifySearch??A0,parseSearch:l.parseSearch??C0,protocolAllowlist:l.protocolAllowlist??o0}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:l,routesByPath:i,processedTree:s}){this.routesById=l,this.routesByPath=i,this.processedTree=s;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)}getRouteBranch(l){let i=this.routeBranchCache.get(l);return i||(i=Ty(l),this.routeBranchCache.set(l,i)),i}get looseRoutesById(){return this.routesById}getParentContext(l){return l?.id?l.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(l,i){const s=this.getMatchedRoutes(l.pathname),{foundRoute:o,routeParams:r}=s;let{matchedRoutes:h}=s,d=!1;(o?o.path!=="/"&&r["**"]:vn(l.pathname))&&(this.options.notFoundRoute?h=[...h,this.options.notFoundRoute]:d=!0);const p=d?k0(this.options.notFoundMode,h):void 0,y=new Array(h.length),m=new Map;for(const S of this.stores.matchStores.values())S.routeId&&m.set(S.routeId,S.get());for(let S=0;S<h.length;S++){const g=h[S],b=y[S-1];let R,M,C;{const tt=b?.search??l.search,wt=b?._strictSearch??void 0;try{const Ut=Wu(g.options.validateSearch,{...tt})??void 0;R={...tt,...Ut},M={...wt,...Ut},C=void 0}catch(Ut){let Ht=Ut;if(Ut instanceof is||(Ht=new is(Ut.message,{cause:Ut})),i?.throwOnError)throw Ht;R=tt,M={},C=Ht}}const D=g.options.loaderDeps?.({search:R})??"",L=D?JSON.stringify(D):"",{interpolatedPath:j,usedParams:X}=wm({path:g.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),G=g.id+j+L,K=this.getMatch(G),P=m.get(g.id),B=K?._strictParams??X;let Y;if(!K)try{Km(g,B)}catch(tt){if(le(tt)||me(tt)?Y=tt:Y=new K0(tt.message,{cause:tt}),i?.throwOnError)throw Y}Object.assign(r,B);const J=P?"stay":"enter";let it;if(K)it={...K,cause:J,params:P?.params??r,_strictParams:B,search:ma(P?P.search:K.search,R),_strictSearch:M};else{const tt=g.options.loader||g.options.beforeLoad||g.lazyFn||zy(g)?"pending":"success";it={id:G,ssr:g.options.ssr,index:S,routeId:g.id,params:P?.params??r,_strictParams:B,pathname:j,updatedAt:Date.now(),search:P?ma(P.search,R):R,_strictSearch:M,searchError:void 0,status:tt,isFetching:!1,error:void 0,paramsError:Y,__routeContext:void 0,_nonReactive:{loadPromise:yl()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:J,loaderDeps:P?pa(P.loaderDeps,D):D,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:g.options.staticData||{},fullPath:g.fullPath}}i?.preload||(it.globalNotFound=p===g.id),it.searchError=C;const nt=this.getParentContext(b);it.context={...nt,...it.__routeContext,...it.__beforeLoadContext},y[S]=it}for(let S=0;S<y.length;S++){const g=y[S],b=this.looseRoutesById[g.routeId],R=this.getMatch(g.id),M=m.get(g.routeId);if(g.params=M?ma(M.params,r):r,!R){const C=y[S-1],D=this.getParentContext(C);if(b.options.context){const L={deps:g.loaderDeps,params:g.params,context:D??{},location:l,navigate:j=>this.navigate({...j,_fromLocation:l}),buildLocation:this.buildLocation,cause:g.cause,abortController:g.abortController,preload:!!g.preload,matches:y,routeId:b.id};g.__routeContext=b.options.context(L)??void 0}g.context={...D,...g.__routeContext,...g.__beforeLoadContext}}}return y}matchRoutesLightweight(l){const{matchedRoutes:i,routeParams:s}=this.getMatchedRoutes(l.pathname),o=_i(i),r={...l.search};for(const m of i)try{Object.assign(r,Wu(m.options.validateSearch,r))}catch{}const h=_i(this.stores.matchesId.get()),d=h&&this.stores.matchStores.get(h)?.get(),p=d&&d.routeId===o.id&&d.pathname===l.pathname;let y;if(p)y=d.params;else{const m=Object.assign(Object.create(null),s);for(const S of i)try{Km(S,m)}catch{}y=m}return{matchedRoutes:i,fullPath:o.fullPath,search:r,params:y}}},is=class extends Error{},K0=class extends Error{};function Z0(l){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:l,matches:[],statusCode:200}}function Wu(l,i){if(l==null)return{};if("~standard"in l){const s=l["~standard"].validate(i);if(s instanceof Promise)throw new is("Async validation not supported");if(s.issues)throw new is(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in l?l.parse(i):typeof l=="function"?l(i):{}}function J0({pathname:l,routesById:i,processedTree:s}){const o=Object.create(null),r=vn(l);let h;const d=v0(r,s,!0);return d&&(h=d.route,Object.assign(o,d.rawParams)),{matchedRoutes:d?.branch||[i.__root__],routeParams:o,foundRoute:h}}function P0({search:l,dest:i,destRoutes:s,_includeValidateSearch:o}){return F0(s)(l,i,o??!1)}function F0(l){const i={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of l){if("search"in r.options)r.options.search?.middlewares&&i.middlewares.push(...r.options.search.middlewares);else if(r.options.preSearchFilters||r.options.postSearchFilters){const h=({search:d,next:p})=>{let y=d;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(y=r.options.preSearchFilters.reduce((S,g)=>g(S),d));const m=p(y);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((S,g)=>g(S),m):m};i.middlewares.push(h)}if(r.options.validateSearch){const h=({search:d,next:p})=>{const y=p(d);if(!i._includeValidateSearch)return y;try{return{...y,...Wu(r.options.validateSearch,y)??void 0}}catch{return y}};i.middlewares.push(h)}}const s=({search:r})=>{const h=i.dest;return h.search?h.search===!0?r:va(h.search,r):{}};i.middlewares.push(s);const o=(r,h,d)=>{if(r>=d.length)return h;const p=d[r];return p({search:h,next:m=>o(r+1,m,d)})};return function(h,d,p){return i.dest=d,i._includeValidateSearch=p,o(0,h,i.middlewares)}}function k0(l,i){if(l!=="root")for(let s=i.length-1;s>=0;s--){const o=i[s];if(o.children)return o.id}return ba}function Km(l,i){const s=l.options.params?.parse??l.options.parseParams;if(s){const o=s(i);if(o===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(i,o)}}function W0(){try{return sessionStorage}catch{return}}const I0="tsr-scroll-restoration-v1_3",Uy=W0();function $0(){try{return JSON.parse(Uy?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function tS(){try{Uy?.setItem(I0,JSON.stringify(fl))}catch{}}const fl=$0(),Zm="data-scroll-restoration-id",eS=l=>l.state.__TSR_key||l.href;function nS(l){const i=l.getAttribute(Zm);if(i)return`[${Zm}="${i}"]`;let s="",o=l,r;for(;r=o.parentNode;){let h=1,d=o;for(;d=d.previousElementSibling;)h++;const p=`${o.localName}:nth-child(${h})`;s=s?`${p} > ${s}`:p,o=r}return s}let Ju=!1;const hl="window";function Io(l){try{return typeof l=="function"?l():document.querySelector(l)}catch{}}function Jm(l){const i=[];for(const s of l){if(s===hl)continue;const o=Io(s);o&&i.push(o)}return i}function aS(l,i){if(l.options.scrollRestoration&&(l.isScrollRestoring=!0),l.isScrollRestorationSetup)return;l.isScrollRestorationSetup=!0,Ju=!1;const s=l.options.getScrollRestorationKey||eS,o=new Map,r=(p,y,m)=>{const S=o.get(p)||{};S.scrollX=y,S.scrollY=m,o.set(p,S)};history.scrollRestoration="manual";const h=p=>{if(!(Ju||!l.isScrollRestoring))if(p.target===document)r(hl,scrollX,scrollY);else{const y=p.target;r(y,y.scrollLeft,y.scrollTop)}},d=p=>{if(!l.isScrollRestoring)return;const y=fl[p]||={};for(const[m,S]of o)m===hl?y[hl]=S:m.isConnected&&(y[nS(m)]=S)};document.addEventListener("scroll",h,!0),l.subscribe("onBeforeLoad",p=>{p.fromLocation&&d(s(p.fromLocation)),o.clear()}),addEventListener("pagehide",()=>{d(s(l.stores.resolvedLocation.get()??l.stores.location.get())),tS()}),l.subscribe("onRendered",p=>{const y=l.options.scrollRestorationBehavior,m=l.options.scrollToTopSelectors,S=l.resetNextScroll;let g;if(o.clear(),S||(l.resetNextScroll=!0),typeof l.options.scrollRestoration=="function"&&!l.options.scrollRestoration({location:l.latestLocation}))return;const b=s(p.toLocation),R=p.fromLocation&&s(p.fromLocation);if(l.isScrollRestoring&&R&&R!==b){const M=fl[R];if(M){let C=fl[b];for(const D in M){if(D===hl){if(S)continue}else{const L=Io(D);if(!L||S&&m&&(g??=Jm(m),g.includes(L)))continue}C||(C=fl[b]={}),C[D]??=M[D]}}}if(S){Ju=!0;try{const M=p.toLocation.hash,C=p.toLocation.state.__hashScrollIntoViewOptions??!0,D=Wo.get(p.toLocation),L=M&&C&&(D==="PUSH"||D==="REPLACE"),j=l.isScrollRestoring?fl[b]:void 0;let X=!1;if(j)for(const G in j){const{scrollX:K,scrollY:P}=j[G];if(G===hl){if(L)continue;scrollTo({top:P,left:K,behavior:y}),X=!0}else{const B=Io(G);B&&(B.scrollLeft=K,B.scrollTop=P)}}if(!X)if(M)C&&document.getElementById(M)?.scrollIntoView(C);else{const G={top:0,left:0,behavior:y};if(scrollTo(G),m){g??=Jm(m);for(const K of g)K.scrollTo(G)}}}finally{Ju=!1}}})}const lS="Error preloading route! ☝️";var Ly=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(l){if(this.init=i=>{this.originalIndex=i.originalIndex;const s=this.options,o=!s?.path&&!s?.id;this.parentRoute=this.options.getParentRoute?.(),o?this._path=ba:this.parentRoute||pn();let r=o?ba:s?.path;r&&r!=="/"&&(r=My(r));const h=s?.id||r;let d=o?ba:Fu([this.parentRoute.id==="__root__"?"":this.parentRoute.id,h]);r==="__root__"&&(r="/"),d!=="__root__"&&(d=Fu(["/",d]));const p=d==="__root__"?"/":Fu([this.parentRoute.fullPath,r]);this._path=r,this._id=d,this._fullPath=p,this._to=vn(p)},this.addChildren=i=>this._addFileChildren(i),this._addFileChildren=i=>(Array.isArray(i)&&(this.children=i),typeof i=="object"&&i!==null&&(this.children=Object.values(i)),this),this._addFileTypes=()=>this,this.updateLoader=i=>(Object.assign(this.options,i),this),this.update=i=>(Object.assign(this.options,i),this),this.lazy=i=>(this.lazyFn=i,this),this.redirect=i=>D0({from:this.fullPath,...i}),this.options=l||{},this.isRoot=!l?.getParentRoute,l?.id&&l?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},iS=class extends Ly{constructor(l){super(l)}};function rr(l){const i=l.errorComponent??fr;return lt.jsx(uS,{getResetKey:l.getResetKey,onCatch:l.onCatch,children:({error:s,reset:o})=>s?W.createElement(i,{error:s,reset:o}):l.children})}var uS=class extends W.Component{constructor(...l){super(...l),this.state={error:null}}static getDerivedStateFromProps(l,i){const s=l.getResetKey();return i.error&&i.resetKey!==s?{resetKey:s,error:null}:{resetKey:s}}static getDerivedStateFromError(l){return{error:l}}reset(){this.setState({error:null})}componentDidCatch(l,i){this.props.onCatch&&this.props.onCatch(l,i)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function fr({error:l}){const[i,s]=W.useState(!1);return lt.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[lt.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[lt.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),lt.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(o=>!o),children:i?"Hide Error":"Show Error"})]}),lt.jsx("div",{style:{height:".25rem"}}),i?lt.jsx("div",{children:lt.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:l.message?lt.jsx("code",{children:l.message}):null})}):null]})}function sS({children:l,fallback:i=null}){return Ny()?lt.jsx(gi.Fragment,{children:l}):lt.jsx(gi.Fragment,{children:i})}function Ny(){return gi.useSyncExternalStore(cS,()=>!0,()=>!1)}function cS(){return()=>{}}var wy=W.createContext(null);function Be(l){return W.useContext(wy)}var os=W.createContext(void 0),oS=W.createContext(void 0),Nt=(l=>(l[l.None=0]="None",l[l.Mutable=1]="Mutable",l[l.Watching=2]="Watching",l[l.RecursedCheck=4]="RecursedCheck",l[l.Recursed=8]="Recursed",l[l.Dirty=16]="Dirty",l[l.Pending=32]="Pending",l))(Nt||{});function rS({update:l,notify:i,unwatched:s}){return{link:o,unlink:r,propagate:h,checkDirty:d,shallowPropagate:p};function o(m,S,g){const b=S.depsTail;if(b!==void 0&&b.dep===m)return;const R=b!==void 0?b.nextDep:S.deps;if(R!==void 0&&R.dep===m){R.version=g,S.depsTail=R;return}const M=m.subsTail;if(M!==void 0&&M.version===g&&M.sub===S)return;const C=S.depsTail=m.subsTail={version:g,dep:m,sub:S,prevDep:b,nextDep:R,prevSub:M,nextSub:void 0};R!==void 0&&(R.prevDep=C),b!==void 0?b.nextDep=C:S.deps=C,M!==void 0?M.nextSub=C:m.subs=C}function r(m,S=m.sub){const g=m.dep,b=m.prevDep,R=m.nextDep,M=m.nextSub,C=m.prevSub;return R!==void 0?R.prevDep=b:S.depsTail=b,b!==void 0?b.nextDep=R:S.deps=R,M!==void 0?M.prevSub=C:g.subsTail=C,C!==void 0?C.nextSub=M:(g.subs=M)===void 0&&s(g),R}function h(m){let S=m.nextSub,g;t:do{const b=m.sub;let R=b.flags;if(R&60?R&12?R&4?!(R&48)&&y(m,b)?(b.flags=R|40,R&=1):R=0:b.flags=R&-9|32:R=0:b.flags=R|32,R&2&&i(b),R&1){const M=b.subs;if(M!==void 0){const C=(m=M).nextSub;C!==void 0&&(g={value:S,prev:g},S=C);continue}}if((m=S)!==void 0){S=m.nextSub;continue}for(;g!==void 0;)if(m=g.value,g=g.prev,m!==void 0){S=m.nextSub;continue t}break}while(!0)}function d(m,S){let g,b=0,R=!1;t:do{const M=m.dep,C=M.flags;if(S.flags&16)R=!0;else if((C&17)===17){if(l(M)){const D=M.subs;D.nextSub!==void 0&&p(D),R=!0}}else if((C&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(g={value:m,prev:g}),m=M.deps,S=M,++b;continue}if(!R){const D=m.nextDep;if(D!==void 0){m=D;continue}}for(;b--;){const D=S.subs,L=D.nextSub!==void 0;if(L?(m=g.value,g=g.prev):m=D,R){if(l(S)){L&&p(D),S=m.sub;continue}R=!1}else S.flags&=-33;S=m.sub;const j=m.nextDep;if(j!==void 0){m=j;continue t}}return R}while(!0)}function p(m){do{const S=m.sub,g=S.flags;(g&48)===32&&(S.flags=g|16,(g&6)===2&&i(S))}while((m=m.nextSub)!==void 0)}function y(m,S){let g=S.depsTail;for(;g!==void 0;){if(g===m)return!0;g=g.prevDep}return!1}}function fS(l,i,s){const o=typeof l=="object",r=o?l:void 0;return{next:(o?l.next:l)?.bind(r),error:(o?l.error:i)?.bind(r),complete:(o?l.complete:s)?.bind(r)}}const $o=[];let Iu=0;const{link:Pm,unlink:hS,propagate:dS,checkDirty:By,shallowPropagate:Fm}=rS({update(l){return l._update()},notify(l){$o[tr++]=l,l.flags&=~Nt.Watching},unwatched(l){l.depsTail!==void 0&&(l.depsTail=void 0,l.flags=Nt.Mutable|Nt.Dirty,us(l))}});let Pu=0,tr=0,Je,er=0;function jy(l){try{++er,l()}finally{--er||Hy()}}function us(l){const i=l.depsTail;let s=i!==void 0?i.nextDep:l.deps;for(;s!==void 0;)s=hS(s,l)}function Hy(){if(!(er>0)){for(;Pu<tr;){const l=$o[Pu];$o[Pu++]=void 0,l.notify()}Pu=0,tr=0}}function km(l,i){const s=typeof l=="function",o=l,r={_snapshot:s?void 0:l,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:s?Nt.None:Nt.Mutable,get(){return Je!==void 0&&Pm(r,Je,Iu),r._snapshot},subscribe(h){const d=fS(h),p={current:!1},y=mS(()=>{r.get(),p.current?d.next?.(r._snapshot):p.current=!0});return{unsubscribe:()=>{y.stop()}}},_update(h){const d=Je,p=i?.compare??Object.is;if(s)Je=r,++Iu,r.depsTail=void 0;else if(h===void 0)return!1;s&&(r.flags=Nt.Mutable|Nt.RecursedCheck);try{const y=r._snapshot,m=typeof h=="function"?h(y):h===void 0&&s?o(y):h;return y===void 0||!p(y,m)?(r._snapshot=m,!0):!1}finally{Je=d,s&&(r.flags&=~Nt.RecursedCheck),us(r)}}};return s?(r.flags=Nt.Mutable|Nt.Dirty,r.get=function(){const h=r.flags;if(h&Nt.Dirty||h&Nt.Pending&&By(r.deps,r)){if(r._update()){const d=r.subs;d!==void 0&&Fm(d)}}else h&Nt.Pending&&(r.flags=h&~Nt.Pending);return Je!==void 0&&Pm(r,Je,Iu),r._snapshot}):r.set=function(h){if(r._update(h)){const d=r.subs;d!==void 0&&(dS(d),Fm(d),Hy())}},r}function mS(l){const i=()=>{const o=Je;Je=s,++Iu,s.depsTail=void 0,s.flags=Nt.Watching|Nt.RecursedCheck;try{return l()}finally{Je=o,s.flags&=~Nt.RecursedCheck,us(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Nt.Watching|Nt.RecursedCheck,notify(){const o=this.flags;o&Nt.Dirty||o&Nt.Pending&&By(this.deps,this)?i():this.flags=Nt.Watching},stop(){this.flags=Nt.None,this.depsTail=void 0,us(this)}};return i(),s}var jo={exports:{}},Ho={},qo={exports:{}},Qo={};var Wm;function yS(){if(Wm)return Qo;Wm=1;var l=Mi();function i(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var s=typeof Object.is=="function"?Object.is:i,o=l.useState,r=l.useEffect,h=l.useLayoutEffect,d=l.useDebugValue;function p(g,b){var R=b(),M=o({inst:{value:R,getSnapshot:b}}),C=M[0].inst,D=M[1];return h(function(){C.value=R,C.getSnapshot=b,y(C)&&D({inst:C})},[g,R,b]),r(function(){return y(C)&&D({inst:C}),g(function(){y(C)&&D({inst:C})})},[g]),d(R),R}function y(g){var b=g.getSnapshot;g=g.value;try{var R=b();return!s(g,R)}catch{return!0}}function m(g,b){return b()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:p;return Qo.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:S,Qo}var Im;function vS(){return Im||(Im=1,qo.exports=yS()),qo.exports}var $m;function pS(){if($m)return Ho;$m=1;var l=Mi(),i=vS();function s(m,S){return m===S&&(m!==0||1/m===1/S)||m!==m&&S!==S}var o=typeof Object.is=="function"?Object.is:s,r=i.useSyncExternalStore,h=l.useRef,d=l.useEffect,p=l.useMemo,y=l.useDebugValue;return Ho.useSyncExternalStoreWithSelector=function(m,S,g,b,R){var M=h(null);if(M.current===null){var C={hasValue:!1,value:null};M.current=C}else C=M.current;M=p(function(){function L(P){if(!j){if(j=!0,X=P,P=b(P),R!==void 0&&C.hasValue){var B=C.value;if(R(B,P))return G=B}return G=P}if(B=G,o(X,P))return B;var Y=b(P);return R!==void 0&&R(B,Y)?(X=P,B):(X=P,G=Y)}var j=!1,X,G,K=g===void 0?null:g;return[function(){return L(S())},K===null?void 0:function(){return L(K())}]},[S,g,b,R]);var D=r(m,M[0],M[1]);return d(function(){C.hasValue=!0,C.value=D},[D]),y(D),D},Ho}var ty;function gS(){return ty||(ty=1,jo.exports=pS()),jo.exports}var SS=gS();function bS(l,i){return l===i}function Me(l,i,s=bS){const o=W.useCallback(d=>{if(!l)return()=>{};const{unsubscribe:p}=l.subscribe(d);return p},[l]),r=W.useCallback(()=>l?.get(),[l]);return SS.useSyncExternalStoreWithSelector(o,r,r,i,s)}var _S={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Ea(l){const i=Be(),s=W.useContext(l.from?oS:os),o=l.from??s,r=o?l.from?i.stores.getRouteMatchStore(o):i.stores.matchStores.get(o):void 0,h=W.useRef(void 0);return Me(r??_S,d=>{if((l.shouldThrow??!0)&&!d&&pn(),d===void 0)return;const p=l.select?l.select(d):d;if(l.structuralSharing??i.options.defaultStructuralSharing){const y=pa(h.current,p);return h.current=y,y}return p})}function qy(l){return Ea({from:l.from,strict:l.strict,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.loaderData):i.loaderData})}function Qy(l){const{select:i,...s}=l;return Ea({...s,select:o=>i?i(o.loaderDeps):o.loaderDeps})}function Yy(l){return Ea({from:l.from,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,strict:l.strict,select:i=>{const s=l.strict===!1?i.params:i._strictParams;return l.select?l.select(s):s}})}function Gy(l){return Ea({from:l.from,strict:l.strict,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.search):i.search})}function Xy(l){const i=Be();return W.useCallback(s=>i.navigate({...s,from:s.from??l?.from}),[l?.from,i])}function Vy(l){return Ea({...l,select:i=>l.select?l.select(i.context):i.context})}var RS=ay();function ES(l,i){const s=Be(),o=i0(i),{activeProps:r,inactiveProps:h,activeOptions:d,to:p,preload:y,preloadDelay:m,preloadIntentProximity:S,hashScrollIntoView:g,replace:b,startTransition:R,resetScroll:M,viewTransition:C,children:D,target:L,disabled:j,style:X,className:G,onClick:K,onBlur:P,onFocus:B,onMouseEnter:Y,onMouseLeave:J,onTouchStart:it,ignoreBlocker:nt,params:tt,search:wt,hash:Ut,state:Ht,mask:N,reloadDocument:V,unsafeRelative:at,from:St,_fromLocation:_t,...T}=l,q=Ny(),Z=W.useMemo(()=>l,[s,l.from,l._fromLocation,l.hash,l.to,l.search,l.params,l.state,l.mask,l.unsafeRelative]),F=Me(s.stores.location,xt=>xt,(xt,kt)=>xt.href===kt.href),$=W.useMemo(()=>{const xt={_fromLocation:F,...Z};return s.buildLocation(xt)},[s,F,Z]),rt=$.maskedLocation?$.maskedLocation.publicHref:$.publicHref,vt=$.maskedLocation?$.maskedLocation.external:$.external,qt=W.useMemo(()=>xS(rt,vt,s.history,j),[j,vt,rt,s.history]),Ct=W.useMemo(()=>{if(qt?.external)return ns(qt.href,s.protocolAllowlist)?void 0:qt.href;if(!zS(p)&&!(typeof p!="string"||p.indexOf(":")===-1))try{return new URL(p),ns(p,s.protocolAllowlist)?void 0:p}catch{}},[p,qt,s.protocolAllowlist]),Pe=W.useMemo(()=>{if(Ct)return!1;if(d?.exact){if(!R0(F.pathname,$.pathname,s.basepath))return!1}else{const xt=as(F.pathname,s.basepath),kt=as($.pathname,s.basepath);if(!(xt.startsWith(kt)&&(xt.length===kt.length||xt[kt.length]==="/")))return!1}return(d?.includeSearch??!0)&&!Sa(F.search,$.search,{partial:!d?.exact,ignoreUndefined:!d?.explicitUndefined})?!1:d?.includeHash?q&&F.hash===$.hash:!0},[d?.exact,d?.explicitUndefined,d?.includeHash,d?.includeSearch,F,Ct,q,$.hash,$.pathname,$.search,s.basepath]),Fe=Pe?va(r,{})??TS:Yo,gn=Pe?Yo:va(h,{})??Yo,pl=[G,Fe.className,gn.className].filter(Boolean).join(" "),Ye=(X||Fe.style||gn.style)&&{...X,...Fe.style,...gn.style},[gl,Ta]=W.useState(!1),Oi=W.useRef(!1),ke=l.reloadDocument||Ct?!1:y??s.options.defaultPreload,Fn=m??s.options.defaultPreloadDelay??0,je=W.useCallback(()=>{s.preloadRoute({...Z,_builtLocation:$}).catch(xt=>{console.warn(xt),console.warn(lS)})},[s,Z,$]);l0(o,W.useCallback(xt=>{xt?.isIntersecting&&je()},[je]),AS,{disabled:!!j||ke!=="viewport"}),W.useEffect(()=>{Oi.current||!j&&ke==="render"&&(je(),Oi.current=!0)},[j,je,ke]);const Sl=xt=>{const kt=xt.currentTarget.getAttribute("target"),Ge=L!==void 0?L:kt;if(!j&&!DS(xt)&&!xt.defaultPrevented&&(!Ge||Ge==="_self")&&xt.button===0){xt.preventDefault(),RS.flushSync(()=>{Ta(!0)});const Ma=s.subscribe("onResolved",()=>{Ma(),Ta(!1)});s.navigate({...Z,replace:b,resetScroll:M,hashScrollIntoView:g,startTransition:R,viewTransition:C,ignoreBlocker:nt})}};if(Ct)return{...T,ref:o,href:Ct,...D&&{children:D},...L&&{target:L},...j&&{disabled:j},...X&&{style:X},...G&&{className:G},...K&&{onClick:K},...P&&{onBlur:P},...B&&{onFocus:B},...Y&&{onMouseEnter:Y},...J&&{onMouseLeave:J},...it&&{onTouchStart:it}};const Ci=xt=>{if(j||ke!=="intent")return;if(!Fn){je();return}const kt=xt.currentTarget;if(vi.has(kt))return;const Ge=setTimeout(()=>{vi.delete(kt),je()},Fn);vi.set(kt,Ge)},rs=xt=>{j||ke!=="intent"||je()},ne=xt=>{if(j||!ke||!Fn)return;const kt=xt.currentTarget,Ge=vi.get(kt);Ge&&(clearTimeout(Ge),vi.delete(kt))};return{...T,...Fe,...gn,href:qt?.href,ref:o,onClick:rl([K,Sl]),onBlur:rl([P,ne]),onFocus:rl([B,Ci]),onMouseEnter:rl([Y,Ci]),onMouseLeave:rl([J,ne]),onTouchStart:rl([it,rs]),disabled:!!j,target:L,...Ye&&{style:Ye},...pl&&{className:pl},...j&&MS,...Pe&&OS,...q&&gl&&CS}}var Yo={},TS={className:"active"},MS={role:"link","aria-disabled":!0},OS={"data-status":"active","aria-current":"page"},CS={"data-transitioning":"transitioning"},vi=new WeakMap,AS={rootMargin:"100px"},rl=l=>i=>{for(const s of l)if(s){if(i.defaultPrevented)return;s(i)}};function xS(l,i,s,o){if(!o)return i?{href:l,external:!0}:{href:s.createHref(l)||"/",external:!1}}function zS(l){if(typeof l!="string")return!1;const i=l.charCodeAt(0);return i===47?l.charCodeAt(1)!==47:i===46}var Ky=W.forwardRef((l,i)=>{const{_asChild:s,...o}=l,{type:r,...h}=ES(o,i),d=typeof o.children=="function"?o.children({isActive:h["data-status"]==="active"}):o.children;if(!s){const{disabled:p,...y}=h;return W.createElement("a",y,d)}return W.createElement(s,h,d)});function DS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}var US=class extends Ly{constructor(l){super(l),this.useMatch=i=>Ea({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>Vy({...i,from:this.id}),this.useSearch=i=>Gy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>Yy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Qy({...i,from:this.id}),this.useLoaderData=i=>qy({...i,from:this.id}),this.useNavigate=()=>Xy({from:this.fullPath}),this.Link=gi.forwardRef((i,s)=>lt.jsx(Ky,{ref:s,from:this.fullPath,...i}))}};function LS(l){return new US(l)}var NS=class extends iS{constructor(l){super(l),this.useMatch=i=>Ea({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>Vy({...i,from:this.id}),this.useSearch=i=>Gy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>Yy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Qy({...i,from:this.id}),this.useLoaderData=i=>qy({...i,from:this.id}),this.useNavigate=()=>Xy({from:this.fullPath}),this.Link=gi.forwardRef((i,s)=>lt.jsx(Ky,{ref:s,from:this.fullPath,...i}))}};function ib(l){return new NS(l)}function ub(l){return new wS(l,{silent:!0}).createRoute}var wS=class{constructor(l,i){this.path=l,this.createRoute=s=>{const o=LS(s);return o.isRoot=!1,o},this.silent=i?.silent}};function BS(l){const i=Be(),s=`not-found-${Me(i.stores.location,o=>o.pathname)}-${Me(i.stores.status,o=>o)}`;return lt.jsx(rr,{getResetKey:()=>s,onCatch:(o,r)=>{if(le(o))l.onCatch?.(o,r);else throw o},errorComponent:({error:o})=>{if(le(o))return l.fallback?.(o);throw o},children:l.children})}function jS(){return lt.jsx("p",{children:"Not Found"})}function dl(l){return lt.jsx(lt.Fragment,{children:l.children})}function Zy(l,i,s){return i.options.notFoundComponent?lt.jsx(i.options.notFoundComponent,{...s}):l.options.defaultNotFoundComponent?lt.jsx(l.options.defaultNotFoundComponent,{...s}):lt.jsx(jS,{})}function HS(l){return null}function qS(){return HS(Be()),null}var Jy=W.memo(function({matchId:i}){const s=Be(),o=s.stores.matchStores.get(i);o||pn();const r=Me(s.stores.loadedAt,d=>d),h=Me(o,d=>d);return lt.jsx(QS,{router:s,matchId:i,resetKey:r,matchState:W.useMemo(()=>{const d=h.routeId,p=s.routesById[d].parentRoute?.id;return{routeId:d,ssr:h.ssr,_displayPending:h._displayPending,parentRouteId:p}},[h._displayPending,h.routeId,h.ssr,s.routesById])})});function QS({router:l,matchId:i,resetKey:s,matchState:o}){const r=l.routesById[o.routeId],h=r.options.pendingComponent??l.options.defaultPendingComponent,d=h?lt.jsx(h,{}):null,p=r.options.errorComponent??l.options.defaultErrorComponent,y=r.options.onCatch??l.options.defaultOnCatch,m=r.isRoot?r.options.notFoundComponent??l.options.notFoundRoute?.options.component:r.options.notFoundComponent,S=o.ssr===!1||o.ssr==="data-only",g=(!r.isRoot||r.options.wrapInSuspense||S)&&(r.options.wrapInSuspense??h??(r.options.errorComponent?.preload||S))?W.Suspense:dl,b=p?rr:dl,R=m?BS:dl;return lt.jsxs(r.isRoot?r.options.shellComponent??dl:dl,{children:[lt.jsx(os.Provider,{value:i,children:lt.jsx(g,{fallback:d,children:lt.jsx(b,{getResetKey:()=>s,errorComponent:p||fr,onCatch:(M,C)=>{if(le(M))throw M.routeId??=o.routeId,M;y?.(M,C)},children:lt.jsx(R,{fallback:M=>{if(M.routeId??=o.routeId,!m||M.routeId&&M.routeId!==o.routeId||!M.routeId&&!r.isRoot)throw M;return W.createElement(m,M)},children:S||o._displayPending?lt.jsx(sS,{fallback:d,children:lt.jsx(ey,{matchId:i})}):lt.jsx(ey,{matchId:i})})})})}),o.parentRouteId===ba?lt.jsxs(lt.Fragment,{children:[lt.jsx(YS,{resetKey:s}),l.options.scrollRestoration&&gy?lt.jsx(qS,{}):null]}):null]})}function YS({resetKey:l}){const i=Be(),s=W.useRef(void 0);return pi(()=>{const o=i.latestLocation.href;(s.current===void 0||s.current!==o)&&(i.emit({type:"onRendered",...ml(i.stores.location.get(),i.stores.resolvedLocation.get())}),s.current=o)},[i.latestLocation.state.__TSR_key,l,i]),null}var ey=W.memo(function({matchId:i}){const s=Be(),o=(S,g)=>s.getMatch(S.id)?._nonReactive[g]??S._nonReactive[g],r=s.stores.matchStores.get(i);r||pn();const h=Me(r,S=>S),d=h.routeId,p=s.routesById[d],y=W.useMemo(()=>{const S=(s.routesById[d].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:d,loaderDeps:h.loaderDeps,params:h._strictParams,search:h._strictSearch});return S?JSON.stringify(S):void 0},[d,h.loaderDeps,h._strictParams,h._strictSearch,s.options.defaultRemountDeps,s.routesById]),m=W.useMemo(()=>{const S=p.options.component??s.options.defaultComponent;return S?lt.jsx(S,{},y):lt.jsx(GS,{})},[y,p.options.component,s.options.defaultComponent]);if(h._displayPending)throw o(h,"displayPendingPromise");if(h._forcePending)throw o(h,"minPendingPromise");if(h.status==="pending"){const S=p.options.pendingMinMs??s.options.defaultPendingMinMs;if(S){const g=s.getMatch(h.id);if(g&&!g._nonReactive.minPendingPromise){const b=yl();g._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),g._nonReactive.minPendingPromise=void 0},S)}}throw o(h,"loadPromise")}if(h.status==="notFound")return le(h.error)||pn(),Zy(s,p,h.error);if(h.status==="redirected")throw me(h.error)||pn(),o(h,"loadPromise");if(h.status==="error")throw h.error;return m}),GS=W.memo(function(){const i=Be(),s=W.useContext(os);let o,r=!1,h;{const m=s?i.stores.matchStores.get(s):void 0;[o,r]=Me(m,S=>[S?.routeId,S?.globalNotFound??!1]),h=Me(i.stores.matchesId,S=>S[S.findIndex(g=>g===s)+1])}const d=o?i.routesById[o]:void 0,p=i.options.defaultPendingComponent?lt.jsx(i.options.defaultPendingComponent,{}):null;if(r)return d||pn(),Zy(i,d,void 0);if(!h)return null;const y=lt.jsx(Jy,{matchId:h});return o===ba?lt.jsx(W.Suspense,{fallback:p,children:y}):y});function XS(){const l=Be(),i=W.useRef({router:l,mounted:!1}),[s,o]=W.useState(!1),r=Me(l.stores.isLoading,g=>g),h=Me(l.stores.hasPending,g=>g),d=zo(r),p=r||s||h,y=zo(p),m=r||h,S=zo(m);return l.startTransition=g=>{o(!0),W.startTransition(()=>{g(),o(!1)})},W.useEffect(()=>{const g=l.history.subscribe(l.load),b=l.buildLocation({to:l.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return vn(l.latestLocation.publicHref)!==vn(b.publicHref)&&l.commitLocation({...b,replace:!0}),()=>{g()}},[l,l.history]),pi(()=>{if(typeof window<"u"&&l.ssr||i.current.router===l&&i.current.mounted)return;i.current={router:l,mounted:!0},(async()=>{try{await l.load()}catch(b){console.error(b)}})()},[l]),pi(()=>{d&&!r&&l.emit({type:"onLoad",...ml(l.stores.location.get(),l.stores.resolvedLocation.get())})},[d,l,r]),pi(()=>{S&&!m&&l.emit({type:"onBeforeRouteMount",...ml(l.stores.location.get(),l.stores.resolvedLocation.get())})},[m,S,l]),pi(()=>{if(y&&!p){const g=ml(l.stores.location.get(),l.stores.resolvedLocation.get());l.emit({type:"onResolved",...g}),jy(()=>{l.stores.status.set("idle"),l.stores.resolvedLocation.set(l.stores.location.get())})}},[p,y,l]),null}function VS(){const l=Be(),i=l.routesById[ba].options.pendingComponent??l.options.defaultPendingComponent,s=i?lt.jsx(i,{}):null,o=lt.jsxs(typeof document<"u"&&l.ssr?dl:W.Suspense,{fallback:s,children:[lt.jsx(XS,{}),lt.jsx(KS,{})]});return l.options.InnerWrap?lt.jsx(l.options.InnerWrap,{children:o}):o}function KS(){const l=Be(),i=Me(l.stores.firstId,r=>r),s=Me(l.stores.loadedAt,r=>r),o=i?lt.jsx(Jy,{matchId:i}):null;return lt.jsx(os.Provider,{value:i,children:l.options.disableGlobalCatchBoundary?o:lt.jsx(rr,{getResetKey:()=>s,errorComponent:fr,onCatch:void 0,children:o})})}var ZS=l=>({createMutableStore:km,createReadonlyStore:km,batch:jy}),sb=l=>new JS(l),JS=class extends V0{constructor(l){super(l,ZS)}};function PS({router:l,children:i,...s}){by(s)&&l.update({...l.options,...s,context:{...l.options.context,...s.context}});const o=lt.jsx(wy.Provider,{value:l,children:i});return l.options.Wrap?lt.jsx(l.options.Wrap,{children:o}):o}function cb({router:l,...i}){return lt.jsx(PS,{router:l,...i,children:lt.jsx(VS,{})})}const FS="modulepreload",kS=function(l){return"/"+l},ny={},ob=function(i,s,o){let r=Promise.resolve();if(s&&s.length>0){let y=function(m){return Promise.all(m.map(S=>Promise.resolve(S).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=d?.nonce||d?.getAttribute("nonce");r=y(s.map(m=>{if(m=kS(m),m in ny)return;ny[m]=!0;const S=m.endsWith(".css"),g=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${g}`))return;const b=document.createElement("link");if(b.rel=S?"stylesheet":FS,S||(b.as="script"),b.crossOrigin="",b.href=m,p&&b.setAttribute("nonce",p),document.head.appendChild(b),S)return new Promise((R,M)=>{b.addEventListener("load",R),b.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${m}`)))})}))}function h(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return r.then(d=>{for(const p of d||[])p.status==="rejected"&&h(p.reason);return i().catch(h)})};export{GS as O,tb as Q,gi as R,ob as _,eb as a,cb as b,$S as c,WS as d,ub as e,ib as f,sb as g,IS as h,dg as i,lt as j,W as k,D0 as l,ab as m,Xy as n,nb as o,yy as p,RS as r,lb as u};
9
+ `).replace(wp,"")}function Dd(t,e){return e=zd(e),zd(t)===e}function Mt(t,e,n,a,u,c){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ua(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ua(t,""+a);break;case"className":Li(t,"class",a);break;case"tabIndex":Li(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Li(t,n,a);break;case"style":zr(t,a,c);break;case"data":if(e!=="object"){Li(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=wi(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(e!=="input"&&Mt(t,e,"name",u.name,u,null),Mt(t,e,"formEncType",u.formEncType,u,null),Mt(t,e,"formMethod",u.formMethod,u,null),Mt(t,e,"formTarget",u.formTarget,u,null)):(Mt(t,e,"encType",u.encType,u,null),Mt(t,e,"method",u.method,u,null),Mt(t,e,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=wi(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=Ie);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=wi(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":ht("beforetoggle",t),ht("toggle",t),Ui(t,"popover",a);break;case"xlinkActuate":We(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":We(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":We(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":We(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":We(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":We(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":We(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":We(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":We(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ui(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ov.get(n)||n,Ui(t,n,a))}}function io(t,e,n,a,u,c){switch(n){case"style":zr(t,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?Ua(t,a):(typeof a=="number"||typeof a=="bigint")&&Ua(t,""+a);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_r.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),e=n.slice(2,u?n.length-7:void 0),c=t[se]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,u),typeof a=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,u);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):Ui(t,n,a)}}}function ee(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",t),ht("load",t);var a=!1,u=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":a=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Mt(t,e,c,f,n,null)}}u&&Mt(t,e,"srcSet",n.srcSet,n,null),a&&Mt(t,e,"src",n.src,n,null);return;case"input":ht("invalid",t);var v=c=f=u=null,_=null,x=null;for(a in n)if(n.hasOwnProperty(a)){var w=n[a];if(w!=null)switch(a){case"name":u=w;break;case"type":f=w;break;case"checked":_=w;break;case"defaultChecked":x=w;break;case"value":c=w;break;case"defaultValue":v=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,e));break;default:Mt(t,e,a,w,n,null)}}Or(t,c,v,_,x,f,u,!1);return;case"select":ht("invalid",t),a=f=c=null;for(u in n)if(n.hasOwnProperty(u)&&(v=n[u],v!=null))switch(u){case"value":c=v;break;case"defaultValue":f=v;break;case"multiple":a=v;default:Mt(t,e,u,v,n,null)}e=c,n=f,t.multiple=!!a,e!=null?Da(t,!!a,e,!1):n!=null&&Da(t,!!a,n,!0);return;case"textarea":ht("invalid",t),c=u=a=null;for(f in n)if(n.hasOwnProperty(f)&&(v=n[f],v!=null))switch(f){case"value":a=v;break;case"defaultValue":u=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:Mt(t,e,f,v,n,null)}Ar(t,a,u,c);return;case"option":for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!=null)&&(_==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Mt(t,e,_,a,n,null));return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(a=0;a<ai.length;a++)ht(ai[a],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(x in n)if(n.hasOwnProperty(x)&&(a=n[x],a!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Mt(t,e,x,a,n,null)}return;default:if(Ss(e)){for(w in n)n.hasOwnProperty(w)&&(a=n[w],a!==void 0&&io(t,e,w,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Mt(t,e,v,a,n,null))}function Bp(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,f=null,v=null,_=null,x=null,w=null;for(U in n){var Q=n[U];if(n.hasOwnProperty(U)&&Q!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":_=Q;default:a.hasOwnProperty(U)||Mt(t,e,U,null,a,Q)}}for(var z in a){var U=a[z];if(Q=n[z],a.hasOwnProperty(z)&&(U!=null||Q!=null))switch(z){case"type":c=U;break;case"name":u=U;break;case"checked":x=U;break;case"defaultChecked":w=U;break;case"value":f=U;break;case"defaultValue":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,e));break;default:U!==Q&&Mt(t,e,z,U,a,Q)}}ps(t,f,v,_,x,w,c,u);return;case"select":U=f=v=z=null;for(c in n)if(_=n[c],n.hasOwnProperty(c)&&_!=null)switch(c){case"value":break;case"multiple":U=_;default:a.hasOwnProperty(c)||Mt(t,e,c,null,a,_)}for(u in a)if(c=a[u],_=n[u],a.hasOwnProperty(u)&&(c!=null||_!=null))switch(u){case"value":z=c;break;case"defaultValue":v=c;break;case"multiple":f=c;default:c!==_&&Mt(t,e,u,c,a,_)}e=v,n=f,a=U,z!=null?Da(t,!!n,z,!1):!!a!=!!n&&(e!=null?Da(t,!!n,e,!0):Da(t,!!n,n?[]:"",!1));return;case"textarea":U=z=null;for(v in n)if(u=n[v],n.hasOwnProperty(v)&&u!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Mt(t,e,v,null,a,u)}for(f in a)if(u=a[f],c=n[f],a.hasOwnProperty(f)&&(u!=null||c!=null))switch(f){case"value":z=u;break;case"defaultValue":U=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==c&&Mt(t,e,f,u,a,c)}Cr(t,z,U);return;case"option":for(var k in n)z=n[k],n.hasOwnProperty(k)&&z!=null&&!a.hasOwnProperty(k)&&(k==="selected"?t.selected=!1:Mt(t,e,k,null,a,z));for(_ in a)z=a[_],U=n[_],a.hasOwnProperty(_)&&z!==U&&(z!=null||U!=null)&&(_==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Mt(t,e,_,z,a,U));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ut in n)z=n[ut],n.hasOwnProperty(ut)&&z!=null&&!a.hasOwnProperty(ut)&&Mt(t,e,ut,null,a,z);for(x in a)if(z=a[x],U=n[x],a.hasOwnProperty(x)&&z!==U&&(z!=null||U!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:Mt(t,e,x,z,a,U)}return;default:if(Ss(e)){for(var Ot in n)z=n[Ot],n.hasOwnProperty(Ot)&&z!==void 0&&!a.hasOwnProperty(Ot)&&io(t,e,Ot,void 0,a,z);for(w in a)z=a[w],U=n[w],!a.hasOwnProperty(w)||z===U||z===void 0&&U===void 0||io(t,e,w,z,a,U);return}}for(var O in n)z=n[O],n.hasOwnProperty(O)&&z!=null&&!a.hasOwnProperty(O)&&Mt(t,e,O,null,a,z);for(Q in a)z=a[Q],U=n[Q],!a.hasOwnProperty(Q)||z===U||z==null&&U==null||Mt(t,e,Q,z,a,U)}function Ud(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var u=n[a],c=u.transferSize,f=u.initiatorType,v=u.duration;if(c&&v&&Ud(f)){for(f=0,v=u.responseEnd,a+=1;a<n.length;a++){var _=n[a],x=_.startTime;if(x>v)break;var w=_.transferSize,Q=_.initiatorType;w&&Ud(Q)&&(_=_.responseEnd,f+=w*(_<v?1:(v-x)/(_-x)))}if(--a,e+=8*(c+f)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var uo=null,so=null;function zu(t){return t.nodeType===9?t:t.ownerDocument}function Ld(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Nd(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function co(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var oo=null;function Hp(){var t=window.event;return t&&t.type==="popstate"?t===oo?!1:(oo=t,!0):(oo=null,!1)}var wd=typeof setTimeout=="function"?setTimeout:void 0,qp=typeof clearTimeout=="function"?clearTimeout:void 0,Bd=typeof Promise=="function"?Promise:void 0,Qp=typeof queueMicrotask=="function"?queueMicrotask:typeof Bd<"u"?function(t){return Bd.resolve(null).then(t).catch(Yp)}:wd;function Yp(t){setTimeout(function(){throw t})}function Hn(t){return t==="head"}function jd(t,e){var n=e,a=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(u),ol(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")ii(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ii(n);for(var c=n.firstChild;c;){var f=c.nextSibling,v=c.nodeName;c[El]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&ii(t.ownerDocument.body);n=u}while(n);ol(e)}function Hd(t,e){var n=t;t=0;do{var a=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=a}while(n)}function ro(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ro(n),ys(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Gp(t,e,n,a){for(;t.nodeType===1;){var u=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[El])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Ne(t.nextSibling),t===null)break}return null}function Xp(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ne(t.nextSibling),t===null))return null;return t}function qd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ne(t.nextSibling),t===null))return null;return t}function fo(t){return t.data==="$?"||t.data==="$~"}function ho(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Vp(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Ne(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var mo=null;function Qd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ne(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Yd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function Gd(t,e,n){switch(e=zu(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function ii(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ys(t)}var we=new Map,Xd=new Set;function Du(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yn=V.d;V.d={f:Kp,r:Zp,D:Jp,C:Pp,L:Fp,m:kp,X:Ip,S:Wp,M:$p};function Kp(){var t=yn.f(),e=Ru();return t||e}function Zp(t){var e=Aa(t);e!==null&&e.tag===5&&e.type==="form"?uh(e):yn.r(t)}var ul=typeof document>"u"?null:document;function Vd(t,e,n){var a=ul;if(a&&typeof e=="string"&&e){var u=Ce(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),Xd.has(u)||(Xd.add(u),t={rel:t,crossOrigin:n,href:e},a.querySelector(u)===null&&(e=a.createElement("link"),ee(e,"link",t),Pt(e),a.head.appendChild(e)))}}function Jp(t){yn.D(t),Vd("dns-prefetch",t,null)}function Pp(t,e){yn.C(t,e),Vd("preconnect",t,e)}function Fp(t,e,n){yn.L(t,e,n);var a=ul;if(a&&t&&e){var u='link[rel="preload"][as="'+Ce(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Ce(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Ce(n.imageSizes)+'"]')):u+='[href="'+Ce(t)+'"]';var c=u;switch(e){case"style":c=sl(t);break;case"script":c=cl(t)}we.has(c)||(t=g({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),we.set(c,t),a.querySelector(u)!==null||e==="style"&&a.querySelector(ui(c))||e==="script"&&a.querySelector(si(c))||(e=a.createElement("link"),ee(e,"link",t),Pt(e),a.head.appendChild(e)))}}function kp(t,e){yn.m(t,e);var n=ul;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ce(a)+'"][href="'+Ce(t)+'"]',c=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=cl(t)}if(!we.has(c)&&(t=g({rel:"modulepreload",href:t},e),we.set(c,t),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(si(c)))return}a=n.createElement("link"),ee(a,"link",t),Pt(a),n.head.appendChild(a)}}}function Wp(t,e,n){yn.S(t,e,n);var a=ul;if(a&&t){var u=xa(a).hoistableStyles,c=sl(t);e=e||"default";var f=u.get(c);if(!f){var v={loading:0,preload:null};if(f=a.querySelector(ui(c)))v.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n),(n=we.get(c))&&yo(t,n);var _=f=a.createElement("link");Pt(_),ee(_,"link",t),_._p=new Promise(function(x,w){_.onload=x,_.onerror=w}),_.addEventListener("load",function(){v.loading|=1}),_.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Uu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:v},u.set(c,f)}}}function Ip(t,e){yn.X(t,e);var n=ul;if(n&&t){var a=xa(n).hoistableScripts,u=cl(t),c=a.get(u);c||(c=n.querySelector(si(u)),c||(t=g({src:t,async:!0},e),(e=we.get(u))&&vo(t,e),c=n.createElement("script"),Pt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function $p(t,e){yn.M(t,e);var n=ul;if(n&&t){var a=xa(n).hoistableScripts,u=cl(t),c=a.get(u);c||(c=n.querySelector(si(u)),c||(t=g({src:t,async:!0,type:"module"},e),(e=we.get(u))&&vo(t,e),c=n.createElement("script"),Pt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function Kd(t,e,n,a){var u=(u=rt.current)?Du(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=sl(n.href),n=xa(u).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=sl(n.href);var c=xa(u).hoistableStyles,f=c.get(t);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=u.querySelector(ui(t)))&&!c._p&&(f.instance=c,f.state.loading=5),we.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},we.set(t,n),c||tg(u,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=cl(n),n=xa(u).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function sl(t){return'href="'+Ce(t)+'"'}function ui(t){return'link[rel="stylesheet"]['+t+"]"}function Zd(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function tg(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ee(e,"link",n),Pt(e),t.head.appendChild(e))}function cl(t){return'[src="'+Ce(t)+'"]'}function si(t){return"script[async]"+t}function Jd(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ce(n.href)+'"]');if(a)return e.instance=a,Pt(a),a;var u=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Pt(a),ee(a,"style",u),Uu(a,n.precedence,t),e.instance=a;case"stylesheet":u=sl(n.href);var c=t.querySelector(ui(u));if(c)return e.state.loading|=4,e.instance=c,Pt(c),c;a=Zd(n),(u=we.get(u))&&yo(a,u),c=(t.ownerDocument||t).createElement("link"),Pt(c);var f=c;return f._p=new Promise(function(v,_){f.onload=v,f.onerror=_}),ee(c,"link",a),e.state.loading|=4,Uu(c,n.precedence,t),e.instance=c;case"script":return c=cl(n.src),(u=t.querySelector(si(c)))?(e.instance=u,Pt(u),u):(a=n,(u=we.get(c))&&(a=g({},n),vo(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),Pt(u),ee(u,"link",a),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Uu(a,n.precedence,t));return e.instance}function Uu(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,c=u,f=0;f<a.length;f++){var v=a[f];if(v.dataset.precedence===e)c=v;else if(c!==u)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function yo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function vo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Lu=null;function Pd(t,e,n){if(Lu===null){var a=new Map,u=Lu=new Map;u.set(n,a)}else u=Lu,a=u.get(n),a||(a=new Map,u.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),u=0;u<n.length;u++){var c=n[u];if(!(c[El]||c[Wt]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(e)||"";f=t+f;var v=a.get(f);v?v.push(c):a.set(f,[c])}}return a}function Fd(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function eg(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function kd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function ng(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=sl(a.href),c=e.querySelector(ui(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Nu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,Pt(c);return}c=e.ownerDocument||e,a=Zd(a),(u=we.get(u))&&yo(a,u),c=c.createElement("link"),Pt(c);var f=c;f._p=new Promise(function(v,_){f.onload=v,f.onerror=_}),ee(c,"link",a),n.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Nu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var po=0;function ag(t,e){return t.stylesheets&&t.count===0&&Bu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Bu(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&po===0&&(po=62500*jp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Bu(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>po?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function Nu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var wu=null;function Bu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,wu=new Map,e.forEach(lg,t),wu=null,Nu.call(t))}function lg(t,e){if(!(e.state.loading&4)){var n=wu.get(t);if(n)var a=n.get(null);else{n=new Map,wu.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var f=u[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}u=e.instance,f=u.getAttribute("data-precedence"),c=n.get(f)||a,c===a&&n.set(null,u),n.set(f,u),this.count++,a=Nu.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),c?c.parentNode.insertBefore(u,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var ci={$$typeof:X,Provider:null,Consumer:null,_currentValue:at,_currentValue2:at,_threadCount:0};function ig(t,e,n,a,u,c,f,v,_){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fs(0),this.hiddenUpdates=fs(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Wd(t,e,n,a,u,c,f,v,_,x,w,Q){return t=new ig(t,e,n,f,_,x,w,Q,v),e=1,c===!0&&(e|=24),c=ge(3,null,null,e),t.current=c,c.stateNode=t,e=Fs(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:e},$s(c),t}function Id(t){return t?(t=qa,t):qa}function $d(t,e,n,a,u,c){u=Id(u),a.context===null?a.context=u:a.pendingContext=u,a=Cn(e),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=An(t,a,e),n!==null&&(de(n,t,e),Ql(n,t,e))}function tm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function go(t,e){tm(t,e),(t=t.alternate)&&tm(t,e)}function em(t){if(t.tag===13||t.tag===31){var e=ea(t,67108864);e!==null&&de(e,t,67108864),go(t,67108864)}}function nm(t){if(t.tag===13||t.tag===31){var e=Ee();e=hs(e);var n=ea(t,e);n!==null&&de(n,t,e),go(t,e)}}var ju=!0;function ug(t,e,n,a){var u=N.T;N.T=null;var c=V.p;try{V.p=2,So(t,e,n,a)}finally{V.p=c,N.T=u}}function sg(t,e,n,a){var u=N.T;N.T=null;var c=V.p;try{V.p=8,So(t,e,n,a)}finally{V.p=c,N.T=u}}function So(t,e,n,a){if(ju){var u=bo(a);if(u===null)lo(t,e,a,Hu,n),lm(t,a);else if(og(u,t,e,n,a))a.stopPropagation();else if(lm(t,a),e&4&&-1<cg.indexOf(t)){for(;u!==null;){var c=Aa(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=kn(c.pendingLanes);if(f!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;f;){var _=1<<31-ve(f);v.entanglements[1]|=_,f&=~_}Ze(c),(bt&6)===0&&(bu=ne()+500,ni(0))}}break;case 31:case 13:v=ea(c,2),v!==null&&de(v,c,2),Ru(),go(c,2)}if(c=bo(a),c===null&&lo(t,e,a,Hu,n),c===u)break;u=c}u!==null&&a.stopPropagation()}else lo(t,e,a,null,n)}}function bo(t){return t=_s(t),_o(t)}var Hu=null;function _o(t){if(Hu=null,t=Ca(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=d(e),t!==null)return t;t=null}else if(n===31){if(t=p(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Hu=t,null}function am(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xt()){case kt:return 2;case Ge:return 8;case Ma:case Py:return 32;case hr:return 268435456;default:return 32}default:return 32}}var Ro=!1,qn=null,Qn=null,Yn=null,oi=new Map,ri=new Map,Gn=[],cg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function lm(t,e){switch(t){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Yn=null;break;case"pointerover":case"pointerout":oi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ri.delete(e.pointerId)}}function fi(t,e,n,a,u,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[u]},e!==null&&(e=Aa(e),e!==null&&em(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function og(t,e,n,a,u){switch(e){case"focusin":return qn=fi(qn,t,e,n,a,u),!0;case"dragenter":return Qn=fi(Qn,t,e,n,a,u),!0;case"mouseover":return Yn=fi(Yn,t,e,n,a,u),!0;case"pointerover":var c=u.pointerId;return oi.set(c,fi(oi.get(c)||null,t,e,n,a,u)),!0;case"gotpointercapture":return c=u.pointerId,ri.set(c,fi(ri.get(c)||null,t,e,n,a,u)),!0}return!1}function im(t){var e=Ca(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=d(n),e!==null){t.blockedOn=e,gr(t.priority,function(){nm(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,gr(t.priority,function(){nm(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function qu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=bo(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);bs=a,n.target.dispatchEvent(a),bs=null}else return e=Aa(n),e!==null&&em(e),t.blockedOn=n,!1;e.shift()}return!0}function um(t,e,n){qu(t)&&n.delete(e)}function rg(){Ro=!1,qn!==null&&qu(qn)&&(qn=null),Qn!==null&&qu(Qn)&&(Qn=null),Yn!==null&&qu(Yn)&&(Yn=null),oi.forEach(um),ri.forEach(um)}function Qu(t,e){t.blockedOn===e&&(t.blockedOn=null,Ro||(Ro=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,rg)))}var Yu=null;function sm(t){Yu!==t&&(Yu=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Yu===t&&(Yu=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],u=t[e+2];if(typeof a!="function"){if(_o(a||n)===null)continue;break}var c=Aa(n);c!==null&&(t.splice(e,3),e-=3,Sc(c,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function ol(t){function e(_){return Qu(_,t)}qn!==null&&Qu(qn,t),Qn!==null&&Qu(Qn,t),Yn!==null&&Qu(Yn,t),oi.forEach(e),ri.forEach(e);for(var n=0;n<Gn.length;n++){var a=Gn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Gn.length&&(n=Gn[0],n.blockedOn===null);)im(n),n.blockedOn===null&&Gn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var u=n[a],c=n[a+1],f=u[se]||null;if(typeof c=="function")f||sm(n);else if(f){var v=null;if(c&&c.hasAttribute("formAction")){if(u=c,f=c[se]||null)v=f.formAction;else if(_o(u)!==null)continue}else v=f.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),sm(n)}}}function cm(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function Eo(t){this._internalRoot=t}Gu.prototype.render=Eo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=Ee();$d(n,a,t,e,null,null)},Gu.prototype.unmount=Eo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;$d(t.current,2,null,t,null,null),Ru(),e[Oa]=null}};function Gu(t){this._internalRoot=t}Gu.prototype.unstable_scheduleHydration=function(t){if(t){var e=pr();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Gn.length&&e!==0&&e<Gn[n].priority;n++);Gn.splice(n,0,t),n===0&&im(t)}};var om=i.version;if(om!=="19.2.0")throw Error(o(527,om,"19.2.0"));V.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=m(e),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var fg={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xu.isDisabled&&Xu.supportsFiber)try{bl=Xu.inject(fg),ye=Xu}catch{}}return di.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,a="",u=vh,c=ph,f=gh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Wd(t,1,!1,null,null,n,a,null,u,c,f,cm),t[Oa]=e.current,ao(t),new Eo(e)},di.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var a=!1,u="",c=vh,f=ph,v=gh,_=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(_=n.formState)),e=Wd(t,1,!0,e,n??null,a,u,_,c,f,v,cm),e.context=Id(null),n=e.current,a=Ee(),a=hs(a),u=Cn(a),u.callback=null,An(n,u,a),n=a,e.current.lanes=n,Rl(e,n),Ze(e),t[Oa]=e.current,ao(t),new Gu(e)},di.version="19.2.0",di}var Sm;function _g(){if(Sm)return Oo.exports;Sm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Oo.exports=bg(),Oo.exports}var $S=_g(),vl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rg=class extends vl{#t;#e;#n;constructor(){super(),this.#n=l=>{if(typeof window<"u"&&window.addEventListener){const i=()=>l();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(l){this.#n=l,this.#e?.(),this.#e=l(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(l){this.#t!==l&&(this.#t=l,this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(i=>{i(l)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},nr=new Rg,Eg={setTimeout:(l,i)=>setTimeout(l,i),clearTimeout:l=>clearTimeout(l),setInterval:(l,i)=>setInterval(l,i),clearInterval:l=>clearInterval(l)},Tg=class{#t=Eg;#e=!1;setTimeoutProvider(l){this.#t=l}setTimeout(l,i){return this.#t.setTimeout(l,i)}clearTimeout(l){this.#t.clearTimeout(l)}setInterval(l,i){return this.#t.setInterval(l,i)}clearInterval(l){this.#t.clearInterval(l)}},ya=new Tg;function Mg(l){setTimeout(l,0)}var Og=typeof window>"u"||"Deno"in globalThis;function ue(){}function Cg(l,i){return typeof l=="function"?l(i):l}function Go(l){return typeof l=="number"&&l>=0&&l!==1/0}function ly(l,i){return Math.max(l+(i||0)-Date.now(),0)}function Jn(l,i){return typeof l=="function"?l(i):l}function Te(l,i){return typeof l=="function"?l(i):l}function bm(l,i){const{type:s="all",exact:o,fetchStatus:r,predicate:h,queryKey:d,stale:p}=l;if(d){if(o){if(i.queryHash!==ar(d,i.options))return!1}else if(!Si(i.queryKey,d))return!1}if(s!=="all"){const y=i.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof p=="boolean"&&i.isStale()!==p||r&&r!==i.state.fetchStatus||h&&!h(i))}function _m(l,i){const{exact:s,status:o,predicate:r,mutationKey:h}=l;if(h){if(!i.options.mutationKey)return!1;if(s){if(Ra(i.options.mutationKey)!==Ra(h))return!1}else if(!Si(i.options.mutationKey,h))return!1}return!(o&&i.state.status!==o||r&&!r(i))}function ar(l,i){return(i?.queryKeyHashFn||Ra)(l)}function Ra(l){return JSON.stringify(l,(i,s)=>Xo(s)?Object.keys(s).sort().reduce((o,r)=>(o[r]=s[r],o),{}):s)}function Si(l,i){return l===i?!0:typeof l!=typeof i?!1:l&&i&&typeof l=="object"&&typeof i=="object"?Object.keys(i).every(s=>Si(l[s],i[s])):!1}var Ag=Object.prototype.hasOwnProperty;function iy(l,i,s=0){if(l===i)return l;if(s>500)return i;const o=Rm(l)&&Rm(i);if(!o&&!(Xo(l)&&Xo(i)))return i;const h=(o?l:Object.keys(l)).length,d=o?i:Object.keys(i),p=d.length,y=o?new Array(p):{};let m=0;for(let S=0;S<p;S++){const g=o?S:d[S],b=l[g],R=i[g];if(b===R){y[g]=b,(o?S<h:Ag.call(l,g))&&m++;continue}if(b===null||R===null||typeof b!="object"||typeof R!="object"){y[g]=R;continue}const M=iy(b,R,s+1);y[g]=M,M===b&&m++}return h===p&&m===h?l:y}function $u(l,i){if(!i||Object.keys(l).length!==Object.keys(i).length)return!1;for(const s in l)if(l[s]!==i[s])return!1;return!0}function Rm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Xo(l){if(!Em(l))return!1;const i=l.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!Em(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Em(l){return Object.prototype.toString.call(l)==="[object Object]"}function xg(l){return new Promise(i=>{ya.setTimeout(i,l)})}function Vo(l,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(l,i):s.structuralSharing!==!1?iy(l,i):i}function zg(l,i,s=0){const o=[...l,i];return s&&o.length>s?o.slice(1):o}function Dg(l,i,s=0){const o=[i,...l];return s&&o.length>s?o.slice(0,-1):o}var lr=Symbol();function uy(l,i){return!l.queryFn&&i?.initialPromise?()=>i.initialPromise:!l.queryFn||l.queryFn===lr?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function ir(l,i){return typeof l=="function"?l(...i):!!l}function Ug(l,i,s){let o=!1,r;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(r??=i(),o||(o=!0,r.aborted?s():r.addEventListener("abort",s,{once:!0})),r)}),l}var bi=(()=>{let l=()=>Og;return{isServer(){return l()},setIsServer(i){l=i}}})();function Ko(){let l,i;const s=new Promise((r,h)=>{l=r,i=h});s.status="pending",s.catch(()=>{});function o(r){Object.assign(s,r),delete s.resolve,delete s.reject}return s.resolve=r=>{o({status:"fulfilled",value:r}),l(r)},s.reject=r=>{o({status:"rejected",reason:r}),i(r)},s}var Lg=Mg;function Ng(){let l=[],i=0,s=p=>{p()},o=p=>{p()},r=Lg;const h=p=>{i?l.push(p):r(()=>{s(p)})},d=()=>{const p=l;l=[],p.length&&r(()=>{o(()=>{p.forEach(y=>{s(y)})})})};return{batch:p=>{let y;i++;try{y=p()}finally{i--,i||d()}return y},batchCalls:p=>(...y)=>{h(()=>{p(...y)})},schedule:h,setNotifyFunction:p=>{s=p},setBatchNotifyFunction:p=>{o=p},setScheduler:p=>{r=p}}}var Jt=Ng(),wg=class extends vl{#t=!0;#e;#n;constructor(){super(),this.#n=l=>{if(typeof window<"u"&&window.addEventListener){const i=()=>l(!0),s=()=>l(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(l){this.#n=l,this.#e?.(),this.#e=l(this.setOnline.bind(this))}setOnline(l){this.#t!==l&&(this.#t=l,this.listeners.forEach(s=>{s(l)}))}isOnline(){return this.#t}},ts=new wg;function Bg(l){return Math.min(1e3*2**l,3e4)}function sy(l){return(l??"online")==="online"?ts.isOnline():!0}var Zo=class extends Error{constructor(l){super("CancelledError"),this.revert=l?.revert,this.silent=l?.silent}};function cy(l){let i=!1,s=0,o;const r=Ko(),h=()=>r.status!=="pending",d=C=>{if(!h()){const D=new Zo(C);b(D),l.onCancel?.(D)}},p=()=>{i=!0},y=()=>{i=!1},m=()=>nr.isFocused()&&(l.networkMode==="always"||ts.isOnline())&&l.canRun(),S=()=>sy(l.networkMode)&&l.canRun(),g=C=>{h()||(o?.(),r.resolve(C))},b=C=>{h()||(o?.(),r.reject(C))},R=()=>new Promise(C=>{o=D=>{(h()||m())&&C(D)},l.onPause?.()}).then(()=>{o=void 0,h()||l.onContinue?.()}),M=()=>{if(h())return;let C;const D=s===0?l.initialPromise:void 0;try{C=D??l.fn()}catch(L){C=Promise.reject(L)}Promise.resolve(C).then(g).catch(L=>{if(h())return;const j=l.retry??(bi.isServer()?0:3),X=l.retryDelay??Bg,G=typeof X=="function"?X(s,L):X,K=j===!0||typeof j=="number"&&s<j||typeof j=="function"&&j(s,L);if(i||!K){b(L);return}s++,l.onFail?.(s,L),xg(G).then(()=>m()?void 0:R()).then(()=>{i?b(L):M()})})};return{promise:r,status:()=>r.status,cancel:d,continue:()=>(o?.(),r),cancelRetry:p,continueRetry:y,canStart:S,start:()=>(S()?M():R().then(M),r)}}var oy=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Go(this.gcTime)&&(this.#t=ya.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(bi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(ya.clearTimeout(this.#t),this.#t=void 0)}};function jg(l){return{onFetch:(i,s)=>{const o=i.options,r=i.fetchOptions?.meta?.fetchMore?.direction,h=i.state.data?.pages||[],d=i.state.data?.pageParams||[];let p={pages:[],pageParams:[]},y=0;const m=async()=>{let S=!1;const g=M=>{Ug(M,()=>i.signal,()=>S=!0)},b=uy(i.options,i.fetchOptions),R=async(M,C,D)=>{if(S)return Promise.reject(i.signal.reason);if(C==null&&M.pages.length)return Promise.resolve(M);const j=(()=>{const P={client:i.client,queryKey:i.queryKey,pageParam:C,direction:D?"backward":"forward",meta:i.options.meta};return g(P),P})(),X=await b(j),{maxPages:G}=i.options,K=D?Dg:zg;return{pages:K(M.pages,X,G),pageParams:K(M.pageParams,C,G)}};if(r&&h.length){const M=r==="backward",C=M?ry:Jo,D={pages:h,pageParams:d},L=C(o,D);p=await R(D,L,M)}else{const M=l??h.length;do{const C=y===0?d[0]??o.initialPageParam:Jo(o,p);if(y>0&&C==null)break;p=await R(p,C),y++}while(y<M)}return p};i.options.persister?i.fetchFn=()=>i.options.persister?.(m,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=m}}}function Jo(l,{pages:i,pageParams:s}){const o=i.length-1;return i.length>0?l.getNextPageParam(i[o],i,s[o],s):void 0}function ry(l,{pages:i,pageParams:s}){return i.length>0?l.getPreviousPageParam?.(i[0],i,s[0],s):void 0}function Hg(l,i){return i?Jo(l,i)!=null:!1}function qg(l,i){return!i||!l.getPreviousPageParam?!1:ry(l,i)!=null}var Qg=class extends oy{#t;#e;#n;#a;#i;#l;#s;#u;constructor(l){super(),this.#u=!1,this.#s=l.defaultOptions,this.setOptions(l.options),this.observers=[],this.#i=l.client,this.#a=this.#i.getQueryCache(),this.queryKey=l.queryKey,this.queryHash=l.queryHash,this.#e=Mm(this.options),this.state=l.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#l?.promise}setOptions(l){if(this.options={...this.#s,...l},l?._type&&(this.#t=l._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Mm(this.options);i.data!==void 0&&(this.setState(Tm(i.data,i.dataUpdatedAt)),this.#e=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(l,i){const s=Vo(this.state.data,l,this.options);return this.#c({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(l){this.#c({type:"setState",state:l})}cancel(l){const i=this.#l?.promise;return this.#l?.cancel(l),i?i.then(ue).catch(ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>Te(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lr||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>Jn(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:!ly(this.state.dataUpdatedAt,l)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(i=>i!==l),this.observers.length||(this.#l&&(this.#u||this.#r()?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}#r(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#c({type:"invalidate"})}async fetch(l,i){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(l&&this.setOptions(l),!this.options.queryFn){const y=this.observers.find(m=>m.options.queryFn);y&&this.setOptions(y.options)}const s=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#u=!0,s.signal)})},r=()=>{const y=uy(this.options,i),S=(()=>{const g={client:this.#i,queryKey:this.queryKey,meta:this.meta};return o(g),g})();return this.#u=!1,this.options.persister?this.options.persister(y,S,this):y(S)},d=(()=>{const y={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};return o(y),y})();(this.#t==="infinite"?jg(this.options.pages):this.options.behavior)?.onFetch(d,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#c({type:"fetch",meta:d.fetchOptions?.meta}),this.#l=cy({initialPromise:i?.initialPromise,fn:d.fetchFn,onCancel:y=>{y instanceof Zo&&y.revert&&this.setState({...this.#n,fetchStatus:"idle"}),s.abort()},onFail:(y,m)=>{this.#c({type:"failed",failureCount:y,error:m})},onPause:()=>{this.#c({type:"pause"})},onContinue:()=>{this.#c({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const y=await this.#l.start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),this.#a.config.onSuccess?.(y,this),this.#a.config.onSettled?.(y,this.state.error,this),y}catch(y){if(y instanceof Zo){if(y.silent)return this.#l.promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw this.#c({type:"error",error:y}),this.#a.config.onError?.(y,this),this.#a.config.onSettled?.(this.state.data,y,this),y}finally{this.scheduleGc()}}#c(l){const i=s=>{switch(l.type){case"failed":return{...s,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...fy(s.data,this.options),fetchMeta:l.meta??null};case"success":const o={...s,...Tm(l.data,l.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=l.manual?o:void 0,o;case"error":const r=l.error;return{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...l.state}}};this.state=i(this.state),Jt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:l})})}};function fy(l,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sy(i.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function Tm(l,i){return{data:l,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Mm(l){const i=typeof l.initialData=="function"?l.initialData():l.initialData,s=i!==void 0,o=s?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var hy=class extends vl{constructor(l,i){super(),this.options=i,this.#t=l,this.#u=null,this.#s=Ko(),this.bindMethods(),this.setOptions(i)}#t;#e=void 0;#n=void 0;#a=void 0;#i;#l;#s;#u;#r;#c;#m;#f;#h;#o;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Om(this.#e,this.options)?this.#d():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Po(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Po(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#_(),this.#e.removeObserver(this)}setOptions(l){const i=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Te(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#R(),this.#e.setOptions(this.options),i._defaulted&&!$u(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&Cm(this.#e,s,this.options,i)&&this.#d(),this.updateResult(),o&&(this.#e!==s||Te(this.options.enabled,this.#e)!==Te(i.enabled,this.#e)||Jn(this.options.staleTime,this.#e)!==Jn(i.staleTime,this.#e))&&this.#v();const r=this.#p();o&&(this.#e!==s||Te(this.options.enabled,this.#e)!==Te(i.enabled,this.#e)||r!==this.#o)&&this.#g(r)}getOptimisticResult(l){const i=this.#t.getQueryCache().build(this.#t,l),s=this.createResult(i,l);return Gg(this,s)&&(this.#a=s,this.#l=this.options,this.#i=this.#e.state),s}getCurrentResult(){return this.#a}trackResult(l,i){return new Proxy(l,{get:(s,o)=>(this.trackProp(o),i?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(l){this.#y.add(l)}getCurrentQuery(){return this.#e}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const i=this.#t.defaultQueryOptions(l),s=this.#t.getQueryCache().build(this.#t,i);return s.fetch().then(()=>this.createResult(s,i))}fetch(l){return this.#d({...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#d(l){this.#R();let i=this.#e.fetch(this.options,l);return l?.throwOnError||(i=i.catch(ue)),i}#v(){this.#b();const l=Jn(this.options.staleTime,this.#e);if(bi.isServer()||this.#a.isStale||!Go(l))return;const s=ly(this.#a.dataUpdatedAt,l)+1;this.#f=ya.setTimeout(()=>{this.#a.isStale||this.updateResult()},s)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(l){this.#_(),this.#o=l,!(bi.isServer()||Te(this.options.enabled,this.#e)===!1||!Go(this.#o)||this.#o===0)&&(this.#h=ya.setInterval(()=>{(this.options.refetchIntervalInBackground||nr.isFocused())&&this.#d()},this.#o))}#S(){this.#v(),this.#g(this.#p())}#b(){this.#f!==void 0&&(ya.clearTimeout(this.#f),this.#f=void 0)}#_(){this.#h!==void 0&&(ya.clearInterval(this.#h),this.#h=void 0)}createResult(l,i){const s=this.#e,o=this.options,r=this.#a,h=this.#i,d=this.#l,y=l!==s?l.state:this.#n,{state:m}=l;let S={...m},g=!1,b;if(i._optimisticResults){const Y=this.hasListeners(),J=!Y&&Om(l,i),it=Y&&Cm(l,s,i,o);(J||it)&&(S={...S,...fy(m.data,l.options)}),i._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:R,errorUpdatedAt:M,status:C}=S;b=S.data;let D=!1;if(i.placeholderData!==void 0&&b===void 0&&C==="pending"){let Y;r?.isPlaceholderData&&i.placeholderData===d?.placeholderData?(Y=r.data,D=!0):Y=typeof i.placeholderData=="function"?i.placeholderData(this.#m?.state.data,this.#m):i.placeholderData,Y!==void 0&&(C="success",b=Vo(r?.data,Y,i),g=!0)}if(i.select&&b!==void 0&&!D)if(r&&b===h?.data&&i.select===this.#r)b=this.#c;else try{this.#r=i.select,b=i.select(b),b=Vo(r?.data,b,i),this.#c=b,this.#u=null}catch(Y){this.#u=Y}this.#u&&(R=this.#u,b=this.#c,M=Date.now(),C="error");const L=S.fetchStatus==="fetching",j=C==="pending",X=C==="error",G=j&&L,K=b!==void 0,B={status:C,fetchStatus:S.fetchStatus,isPending:j,isSuccess:C==="success",isError:X,isInitialLoading:G,isLoading:G,data:b,dataUpdatedAt:S.dataUpdatedAt,error:R,errorUpdatedAt:M,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:S.dataUpdateCount>y.dataUpdateCount||S.errorUpdateCount>y.errorUpdateCount,isFetching:L,isRefetching:L&&!j,isLoadingError:X&&!K,isPaused:S.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:X&&K,isStale:ur(l,i),refetch:this.refetch,promise:this.#s,isEnabled:Te(i.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const Y=B.data!==void 0,J=B.status==="error"&&!Y,it=wt=>{J?wt.reject(B.error):Y&&wt.resolve(B.data)},nt=()=>{const wt=this.#s=B.promise=Ko();it(wt)},tt=this.#s;switch(tt.status){case"pending":l.queryHash===s.queryHash&&it(tt);break;case"fulfilled":(J||B.data!==tt.value)&&nt();break;case"rejected":(!J||B.error!==tt.reason)&&nt();break}}return B}updateResult(){const l=this.#a,i=this.createResult(this.#e,this.options);if(this.#i=this.#e.state,this.#l=this.options,this.#i.data!==void 0&&(this.#m=this.#e),$u(i,l))return;this.#a=i;const s=()=>{if(!l)return!0;const{notifyOnChangeProps:o}=this.options,r=typeof o=="function"?o():o;if(r==="all"||!r&&!this.#y.size)return!0;const h=new Set(r??this.#y);return this.options.throwOnError&&h.add("error"),Object.keys(this.#a).some(d=>{const p=d;return this.#a[p]!==l[p]&&h.has(p)})};this.#E({listeners:s()})}#R(){const l=this.#t.getQueryCache().build(this.#t,this.options);if(l===this.#e)return;const i=this.#e;this.#e=l,this.#n=l.state,this.hasListeners()&&(i?.removeObserver(this),l.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#E(l){Jt.batch(()=>{l.listeners&&this.listeners.forEach(i=>{i(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Yg(l,i){return Te(i.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&Te(i.retryOnMount,l)===!1)}function Om(l,i){return Yg(l,i)||l.state.data!==void 0&&Po(l,i,i.refetchOnMount)}function Po(l,i,s){if(Te(i.enabled,l)!==!1&&Jn(i.staleTime,l)!=="static"){const o=typeof s=="function"?s(l):s;return o==="always"||o!==!1&&ur(l,i)}return!1}function Cm(l,i,s,o){return(l!==i||Te(o.enabled,l)===!1)&&(!s.suspense||l.state.status!=="error")&&ur(l,s)}function ur(l,i){return Te(i.enabled,l)!==!1&&l.isStaleByTime(Jn(i.staleTime,l))}function Gg(l,i){return!$u(l.getCurrentResult(),i)}var Xg=class extends hy{constructor(l,i){super(l,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(l){l._type="infinite",super.setOptions(l)}getOptimisticResult(l){return l._type="infinite",super.getOptimisticResult(l)}fetchNextPage(l){return this.fetch({...l,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(l){return this.fetch({...l,meta:{fetchMore:{direction:"backward"}}})}createResult(l,i){const{state:s}=l,o=super.createResult(l,i),{isFetching:r,isRefetching:h,isError:d,isRefetchError:p}=o,y=s.fetchMeta?.fetchMore?.direction,m=d&&y==="forward",S=r&&y==="forward",g=d&&y==="backward",b=r&&y==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Hg(i,s.data),hasPreviousPage:qg(i,s.data),isFetchNextPageError:m,isFetchingNextPage:S,isFetchPreviousPageError:g,isFetchingPreviousPage:b,isRefetchError:p&&!m&&!g,isRefetching:h&&!S&&!b}}},Vg=class extends oy{#t;#e;#n;#a;constructor(l){super(),this.#t=l.client,this.mutationId=l.mutationId,this.#n=l.mutationCache,this.#e=[],this.state=l.state||dy(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){this.#e.includes(l)||(this.#e.push(l),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){this.#e=this.#e.filter(i=>i!==l),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(l){const i=()=>{this.#i({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=cy({fn:()=>this.options.mutationFn?this.options.mutationFn(l,s):Promise.reject(new Error("No mutationFn found")),onFail:(h,d)=>{this.#i({type:"failed",failureCount:h,error:d})},onPause:()=>{this.#i({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const o=this.state.status==="pending",r=!this.#a.canStart();try{if(o)i();else{this.#i({type:"pending",variables:l,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(l,this,s);const d=await this.options.onMutate?.(l,s);d!==this.state.context&&this.#i({type:"pending",context:d,variables:l,isPaused:r})}const h=await this.#a.start();return await this.#n.config.onSuccess?.(h,l,this.state.context,this,s),await this.options.onSuccess?.(h,l,this.state.context,s),await this.#n.config.onSettled?.(h,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(h,null,l,this.state.context,s),this.#i({type:"success",data:h}),h}catch(h){try{await this.#n.config.onError?.(h,l,this.state.context,this,s)}catch(d){Promise.reject(d)}try{await this.options.onError?.(h,l,this.state.context,s)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,h,this.state.variables,this.state.context,this,s)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,h,l,this.state.context,s)}catch(d){Promise.reject(d)}throw this.#i({type:"error",error:h}),h}finally{this.#n.runNext(this)}}#i(l){const i=s=>{switch(l.type){case"failed":return{...s,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,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{...s,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:l.error,failureCount:s.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Jt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(l)}),this.#n.notify({mutation:this,type:"updated",action:l})})}};function dy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kg=class extends vl{constructor(l={}){super(),this.config=l,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(l,i,s){const o=new Vg({client:l,mutationCache:this,mutationId:++this.#n,options:l.defaultMutationOptions(i),state:s});return this.add(o),o}add(l){this.#t.add(l);const i=Vu(l);if(typeof i=="string"){const s=this.#e.get(i);s?s.push(l):this.#e.set(i,[l])}this.notify({type:"added",mutation:l})}remove(l){if(this.#t.delete(l)){const i=Vu(l);if(typeof i=="string"){const s=this.#e.get(i);if(s)if(s.length>1){const o=s.indexOf(l);o!==-1&&s.splice(o,1)}else s[0]===l&&this.#e.delete(i)}}this.notify({type:"removed",mutation:l})}canRun(l){const i=Vu(l);if(typeof i=="string"){const o=this.#e.get(i)?.find(r=>r.state.status==="pending");return!o||o===l}else return!0}runNext(l){const i=Vu(l);return typeof i=="string"?this.#e.get(i)?.find(o=>o!==l&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Jt.batch(()=>{this.#t.forEach(l=>{this.notify({type:"removed",mutation:l})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(l){const i={exact:!0,...l};return this.getAll().find(s=>_m(i,s))}findAll(l={}){return this.getAll().filter(i=>_m(l,i))}notify(l){Jt.batch(()=>{this.listeners.forEach(i=>{i(l)})})}resumePausedMutations(){const l=this.getAll().filter(i=>i.state.isPaused);return Jt.batch(()=>Promise.all(l.map(i=>i.continue().catch(ue))))}};function Vu(l){return l.options.scope?.id}var Zg=class extends vl{#t;#e=void 0;#n;#a;constructor(l,i){super(),this.#t=l,this.setOptions(i),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(l){const i=this.options;this.options=this.#t.defaultMutationOptions(l),$u(this.options,i)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&Ra(i.mutationKey)!==Ra(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(l){this.#i(),this.#l(l)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#l()}mutate(l,i){return this.#a=i,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(l)}#i(){const l=this.#n?.state??dy();this.#e={...l,isPending:l.status==="pending",isSuccess:l.status==="success",isError:l.status==="error",isIdle:l.status==="idle",mutate:this.mutate,reset:this.reset}}#l(l){Jt.batch(()=>{if(this.#a&&this.hasListeners()){const i=this.#e.variables,s=this.#e.context,o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(l?.type==="success"){try{this.#a.onSuccess?.(l.data,i,s,o)}catch(r){Promise.reject(r)}try{this.#a.onSettled?.(l.data,null,i,s,o)}catch(r){Promise.reject(r)}}else if(l?.type==="error"){try{this.#a.onError?.(l.error,i,s,o)}catch(r){Promise.reject(r)}try{this.#a.onSettled?.(void 0,l.error,i,s,o)}catch(r){Promise.reject(r)}}}this.listeners.forEach(i=>{i(this.#e)})})}},Jg=class extends vl{constructor(l={}){super(),this.config=l,this.#t=new Map}#t;build(l,i,s){const o=i.queryKey,r=i.queryHash??ar(o,i);let h=this.get(r);return h||(h=new Qg({client:l,queryKey:o,queryHash:r,options:l.defaultQueryOptions(i),state:s,defaultOptions:l.getQueryDefaults(o)}),this.add(h)),h}add(l){this.#t.has(l.queryHash)||(this.#t.set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const i=this.#t.get(l.queryHash);i&&(l.destroy(),i===l&&this.#t.delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){Jt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return this.#t.get(l)}getAll(){return[...this.#t.values()]}find(l){const i={exact:!0,...l};return this.getAll().find(s=>bm(i,s))}findAll(l={}){const i=this.getAll();return Object.keys(l).length>0?i.filter(s=>bm(l,s)):i}notify(l){Jt.batch(()=>{this.listeners.forEach(i=>{i(l)})})}onFocus(){Jt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Jt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},tb=class{#t;#e;#n;#a;#i;#l;#s;#u;constructor(l={}){this.#t=l.queryCache||new Jg,this.#e=l.mutationCache||new Kg,this.#n=l.defaultOptions||{},this.#a=new Map,this.#i=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#s=nr.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#u=ts.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#s?.(),this.#s=void 0,this.#u?.(),this.#u=void 0)}isFetching(l){return this.#t.findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return this.#e.findAll({...l,status:"pending"}).length}getQueryData(l){const i=this.defaultQueryOptions({queryKey:l});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(l){const i=this.defaultQueryOptions(l),s=this.#t.build(this,i),o=s.state.data;return o===void 0?this.fetchQuery(l):(l.revalidateIfStale&&s.isStaleByTime(Jn(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(o))}getQueriesData(l){return this.#t.findAll(l).map(({queryKey:i,state:s})=>{const o=s.data;return[i,o]})}setQueryData(l,i,s){const o=this.defaultQueryOptions({queryKey:l}),h=this.#t.get(o.queryHash)?.state.data,d=Cg(i,h);if(d!==void 0)return this.#t.build(this,o).setData(d,{...s,manual:!0})}setQueriesData(l,i,s){return Jt.batch(()=>this.#t.findAll(l).map(({queryKey:o})=>[o,this.setQueryData(o,i,s)]))}getQueryState(l){const i=this.defaultQueryOptions({queryKey:l});return this.#t.get(i.queryHash)?.state}removeQueries(l){const i=this.#t;Jt.batch(()=>{i.findAll(l).forEach(s=>{i.remove(s)})})}resetQueries(l,i){const s=this.#t;return Jt.batch(()=>(s.findAll(l).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...l},i)))}cancelQueries(l,i={}){const s={revert:!0,...i},o=Jt.batch(()=>this.#t.findAll(l).map(r=>r.cancel(s)));return Promise.all(o).then(ue).catch(ue)}invalidateQueries(l,i={}){return Jt.batch(()=>(this.#t.findAll(l).forEach(s=>{s.invalidate()}),l?.refetchType==="none"?Promise.resolve():this.refetchQueries({...l,type:l?.refetchType??l?.type??"active"},i)))}refetchQueries(l,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},o=Jt.batch(()=>this.#t.findAll(l).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let h=r.fetch(void 0,s);return s.throwOnError||(h=h.catch(ue)),r.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(ue)}fetchQuery(l){const i=this.defaultQueryOptions(l);i.retry===void 0&&(i.retry=!1);const s=this.#t.build(this,i);return s.isStaleByTime(Jn(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(ue).catch(ue)}fetchInfiniteQuery(l){return l._type="infinite",this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(ue).catch(ue)}ensureInfiniteQueryData(l){return l._type="infinite",this.ensureQueryData(l)}resumePausedMutations(){return ts.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(l){this.#n=l}setQueryDefaults(l,i){this.#a.set(Ra(l),{queryKey:l,defaultOptions:i})}getQueryDefaults(l){const i=[...this.#a.values()],s={};return i.forEach(o=>{Si(l,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(l,i){this.#i.set(Ra(l),{mutationKey:l,defaultOptions:i})}getMutationDefaults(l){const i=[...this.#i.values()],s={};return i.forEach(o=>{Si(l,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(l){if(l._defaulted)return l;const i={...this.#n.queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return i.queryHash||(i.queryHash=ar(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===lr&&(i.enabled=!1),i}defaultMutationOptions(l){return l?._defaulted?l:{...this.#n.mutations,...l?.mutationKey&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},my=W.createContext(void 0),yy=l=>{const i=W.useContext(my);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},eb=({client:l,children:i})=>(W.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),lt.jsx(my.Provider,{value:l,children:i})),vy=W.createContext(!1),Pg=()=>W.useContext(vy);vy.Provider;function Fg(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var kg=W.createContext(Fg()),Wg=()=>W.useContext(kg),Ig=(l,i,s)=>{const o=s?.state.error&&typeof l.throwOnError=="function"?ir(l.throwOnError,[s.state.error,s]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||o)&&(i.isReset()||(l.retryOnMount=!1))},$g=l=>{W.useEffect(()=>{l.clearReset()},[l])},t0=({result:l,errorResetBoundary:i,throwOnError:s,query:o,suspense:r})=>l.isError&&!i.isReset()&&!l.isFetching&&o&&(r&&l.data===void 0||ir(s,[l.error,o])),e0=l=>{if(l.suspense){const s=r=>r==="static"?r:Math.max(r??1e3,1e3),o=l.staleTime;l.staleTime=typeof o=="function"?(...r)=>s(o(...r)):s(o),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},n0=(l,i)=>l.isLoading&&l.isFetching&&!i,a0=(l,i)=>l?.suspense&&i.isPending,Am=(l,i,s)=>i.fetchOptimistic(l).catch(()=>{s.clearReset()});function py(l,i,s){const o=Pg(),r=Wg(),h=yy(),d=h.defaultQueryOptions(l);h.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const p=h.getQueryCache().get(d.queryHash);d._optimisticResults=o?"isRestoring":"optimistic",e0(d),Ig(d,r,p),$g(r);const y=!h.getQueryCache().get(d.queryHash),[m]=W.useState(()=>new i(h,d)),S=m.getOptimisticResult(d),g=!o&&l.subscribed!==!1;if(W.useSyncExternalStore(W.useCallback(b=>{const R=g?m.subscribe(Jt.batchCalls(b)):ue;return m.updateResult(),R},[m,g]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),W.useEffect(()=>{m.setOptions(d)},[d,m]),a0(d,S))throw Am(d,m,r);if(t0({result:S,errorResetBoundary:r,throwOnError:d.throwOnError,query:p,suspense:d.suspense}))throw S.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(d,S),d.experimental_prefetchInRender&&!bi.isServer()&&n0(S,o)&&(y?Am(d,m,r):p?.promise)?.catch(ue).finally(()=>{m.updateResult()}),d.notifyOnChangeProps?S:m.trackResult(S)}function nb(l,i){return py(l,hy)}function ab(l,i){const s=yy(),[o]=W.useState(()=>new Zg(s,l));W.useEffect(()=>{o.setOptions(l)},[o,l]);const r=W.useSyncExternalStore(W.useCallback(d=>o.subscribe(Jt.batchCalls(d)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=W.useCallback((d,p)=>{o.mutate(d,p).catch(ue)},[o]);if(r.error&&ir(o.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:h,mutateAsync:r.mutate}}function lb(l,i){return py(l,Xg)}var pi=typeof window<"u"?W.useLayoutEffect:W.useEffect;function zo(l){const i=W.useRef({value:l,prev:null}),s=i.current.value;return l!==s&&(i.current={value:l,prev:s}),i.current.prev}function l0(l,i,s={},o={}){W.useEffect(()=>{if(!l.current||o.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([h])=>{i(h)},s);return r.observe(l.current),()=>{r.disconnect()}},[i,s,o.disabled,l])}function i0(l){const i=W.useRef(null);return W.useImperativeHandle(l,()=>i.current,[]),i}const gy=!1;function _i(l){return l[l.length-1]}function u0(l){return typeof l=="function"}function va(l,i){return u0(l)?l(i):l}const Sy=Object.prototype.hasOwnProperty,xm=Object.prototype.propertyIsEnumerable;function by(l){for(const i in l)if(Sy.call(l,i))return!0;return!1}const s0=()=>Object.create(null),ma=(l,i)=>pa(l,i,s0);function pa(l,i,s=()=>({}),o=0){if(l===i)return l;if(o>500)return i;const r=i,h=Um(l)&&Um(r);if(!h&&!(es(l)&&es(r)))return r;const d=h?l:zm(l);if(!d)return r;const p=h?r:zm(r);if(!p)return r;const y=d.length,m=p.length,S=h?new Array(m):s();let g=0;for(let b=0;b<m;b++){const R=h?b:p[b],M=l[R],C=r[R];if(M===C){S[R]=M,(h?b<y:Sy.call(l,R))&&g++;continue}if(M===null||C===null||typeof M!="object"||typeof C!="object"){S[R]=C;continue}const D=pa(M,C,s,o+1);S[R]=D,D===M&&g++}return y===m&&g===y?l:S}function zm(l){const i=Object.getOwnPropertyNames(l);for(const r of i)if(!xm.call(l,r))return!1;const s=Object.getOwnPropertySymbols(l);if(s.length===0)return i;const o=i;for(const r of s){if(!xm.call(l,r))return!1;o.push(r)}return o}function es(l){if(!Dm(l))return!1;const i=l.constructor;if(typeof i>"u")return!0;const s=i.prototype;return!(!Dm(s)||!s.hasOwnProperty("isPrototypeOf"))}function Dm(l){return Object.prototype.toString.call(l)==="[object Object]"}function Um(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Sa(l,i,s){if(l===i)return!0;if(typeof l!=typeof i)return!1;if(Array.isArray(l)&&Array.isArray(i)){if(l.length!==i.length)return!1;for(let o=0,r=l.length;o<r;o++)if(!Sa(l[o],i[o],s))return!1;return!0}if(es(l)&&es(i)){const o=s?.ignoreUndefined??!0;if(s?.partial){for(const d in i)if((!o||i[d]!==void 0)&&!Sa(l[d],i[d],s))return!1;return!0}let r=0;if(!o)r=Object.keys(l).length;else for(const d in l)l[d]!==void 0&&r++;let h=0;for(const d in i)if((!o||i[d]!==void 0)&&(h++,h>r||!Sa(l[d],i[d],s)))return!1;return r===h}return!1}function yl(l){let i,s;const o=new Promise((r,h)=>{i=r,s=h});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,i(r),l?.(r)},o.reject=r=>{o.status="rejected",s(r)},o}function Ri(l){return!!(l&&typeof l=="object"&&typeof l.then=="function")}function c0(l){return l.replace(/[\x00-\x1f\x7f]/g,"")}function Lm(l){let i;try{i=decodeURI(l)}catch{i=l.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return c0(i)}const o0=["http:","https:","mailto:","tel:"];function ns(l,i){if(!l)return!1;try{const s=new URL(l);return!i.has(s.protocol)}catch{return!1}}function mi(l){if(!l)return{path:l,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(l)&&!l.startsWith("//"))return{path:l,handledProtocolRelativeURL:!1};const i=/%25|%5C/gi;let s=0,o="",r;for(;(r=i.exec(l))!==null;)o+=Lm(l.slice(s,r.index))+r[0],s=i.lastIndex;o=o+Lm(s?l.slice(s):l);let h=!1;return o.startsWith("//")&&(h=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:h}}function r0(l){return/\s|[^\u0000-\u007F]/.test(l)?l.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):l}function f0(l,i){if(l===i)return!0;if(l.length!==i.length)return!1;for(let s=0;s<l.length;s++)if(l[s]!==i[s])return!1;return!0}function pn(){throw new Error("Invariant failed")}function Ei(l){const i=new Map;let s,o;const r=h=>{h.next&&(h.prev?(h.prev.next=h.next,h.next.prev=h.prev,h.next=void 0,o&&(o.next=h,h.prev=o)):(h.next.prev=void 0,s=h.next,h.next=void 0,o&&(h.prev=o,o.next=h)),o=h)};return{get(h){const d=i.get(h);if(d)return r(d),d.value},set(h,d){if(i.size>=l&&s){const y=s;i.delete(y.key),y.next&&(s=y.next,y.next.prev=void 0),y===o&&(o=void 0)}const p=i.get(h);if(p)p.value=d,r(p);else{const y={key:h,value:d,prev:o};o&&(o.next=y),o=y,s||(s=y),i.set(h,y)}},clear(){i.clear(),s=void 0,o=void 0}}}const Kn=4,_y=5;function h0(l){const i=l.indexOf("{");if(i===-1)return null;const s=l.indexOf("}",i);return s===-1||i+1>=l.length?null:[i,s]}function Ry(l,i,s=new Uint16Array(6)){const o=l.indexOf("/",i),r=o===-1?l.length:o,h=l.substring(i,r);if(!h||!h.includes("$"))return s[0]=0,s[1]=i,s[2]=i,s[3]=r,s[4]=r,s[5]=r,s;if(h==="$"){const p=l.length;return s[0]=2,s[1]=i,s[2]=i,s[3]=p,s[4]=p,s[5]=p,s}if(h.charCodeAt(0)===36)return s[0]=1,s[1]=i,s[2]=i+1,s[3]=r,s[4]=r,s[5]=r,s;const d=h0(h);if(d){const[p,y]=d,m=h.charCodeAt(p+1);if(m===45){if(p+2<h.length&&h.charCodeAt(p+2)===36){const S=p+3,g=y;if(S<g)return s[0]=3,s[1]=i+p,s[2]=i+S,s[3]=i+g,s[4]=i+y+1,s[5]=r,s}}else if(m===36){const S=p+1,g=p+2;return g===y?(s[0]=2,s[1]=i+p,s[2]=i+S,s[3]=i+g,s[4]=i+y+1,s[5]=l.length,s):(s[0]=1,s[1]=i+p,s[2]=i+g,s[3]=i+y,s[4]=i+y+1,s[5]=r,s)}}return s[0]=0,s[1]=i,s[2]=i,s[3]=r,s[4]=r,s[5]=r,s}function ss(l,i,s,o,r,h,d){d?.(s);let p=o;{const y=s.fullPath??s.from,m=y.length,S=s.options?.caseSensitive??l,g=s.options?.params?.parse??s.options?.parseParams;for(;p<m;){const R=Ry(y,p,i);let M;const C=p,D=R[5];switch(p=D+1,h++,R[0]){case 0:{const L=y.substring(R[2],R[3]);if(S){const j=r.static?.get(L);if(j)M=j;else{r.static??=new Map;const X=ga(s.fullPath??s.from);X.parent=r,X.depth=h,M=X,r.static.set(L,X)}}else{const j=L.toLowerCase(),X=r.staticInsensitive?.get(j);if(X)M=X;else{r.staticInsensitive??=new Map;const G=ga(s.fullPath??s.from);G.parent=r,G.depth=h,M=G,r.staticInsensitive.set(j,G)}}break}case 1:{const L=y.substring(C,R[1]),j=y.substring(R[4],D),X=S&&!!(L||j),G=L?X?L:L.toLowerCase():void 0,K=j?X?j:j.toLowerCase():void 0,P=!g&&r.dynamic?.find(B=>!B.parse&&B.caseSensitive===X&&B.prefix===G&&B.suffix===K);if(P)M=P;else{const B=Uo(1,s.fullPath??s.from,X,G,K);M=B,B.depth=h,B.parent=r,r.dynamic??=[],r.dynamic.push(B)}break}case 3:{const L=y.substring(C,R[1]),j=y.substring(R[4],D),X=S&&!!(L||j),G=L?X?L:L.toLowerCase():void 0,K=j?X?j:j.toLowerCase():void 0,P=!g&&r.optional?.find(B=>!B.parse&&B.caseSensitive===X&&B.prefix===G&&B.suffix===K);if(P)M=P;else{const B=Uo(3,s.fullPath??s.from,X,G,K);M=B,B.parent=r,B.depth=h,r.optional??=[],r.optional.push(B)}break}case 2:{const L=y.substring(C,R[1]),j=y.substring(R[4],D),X=S&&!!(L||j),G=L?X?L:L.toLowerCase():void 0,K=j?X?j:j.toLowerCase():void 0,P=Uo(2,s.fullPath??s.from,X,G,K);M=P,P.parent=r,P.depth=h,r.wildcard??=[],r.wildcard.push(P)}}r=M}if(g&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const R=ga(s.fullPath??s.from);R.kind=_y,R.parent=r,h++,R.depth=h,r.pathless??=[],r.pathless.push(R),r=R}const b=(s.path||!s.children)&&!s.isRoot;if(b&&y.endsWith("/")){const R=ga(s.fullPath??s.from);R.kind=Kn,R.parent=r,h++,R.depth=h,r.index=R,r=R}r.parse=g??null,r.priority=s.options?.params?.priority??0,b&&!r.route&&(r.route=s,r.fullPath=s.fullPath??s.from)}if(s.children)for(const y of s.children)ss(l,i,y,p,r,h,d)}function Do(l,i){if(l.parse&&!i.parse)return-1;if(!l.parse&&i.parse)return 1;if(l.parse&&i.parse&&(l.priority||i.priority))return i.priority-l.priority;if(l.prefix&&i.prefix&&l.prefix!==i.prefix){if(l.prefix.startsWith(i.prefix))return-1;if(i.prefix.startsWith(l.prefix))return 1}if(l.suffix&&i.suffix&&l.suffix!==i.suffix){if(l.suffix.endsWith(i.suffix))return-1;if(i.suffix.endsWith(l.suffix))return 1}return l.prefix&&!i.prefix?-1:!l.prefix&&i.prefix?1:l.suffix&&!i.suffix?-1:!l.suffix&&i.suffix?1:l.caseSensitive&&!i.caseSensitive?-1:!l.caseSensitive&&i.caseSensitive?1:0}function Vn(l){if(l.pathless)for(const i of l.pathless)Vn(i);if(l.static)for(const i of l.static.values())Vn(i);if(l.staticInsensitive)for(const i of l.staticInsensitive.values())Vn(i);if(l.dynamic?.length){l.dynamic.sort(Do);for(const i of l.dynamic)Vn(i)}if(l.optional?.length){l.optional.sort(Do);for(const i of l.optional)Vn(i)}if(l.wildcard?.length){l.wildcard.sort(Do);for(const i of l.wildcard)Vn(i)}}function ga(l){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:l,parent:null,parse:null,priority:0}}function Uo(l,i,s,o,r){return{kind:l,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:i,parent:null,parse:null,priority:0,caseSensitive:s,prefix:o,suffix:r}}function d0(l,i){const s=ga("/"),o=new Uint16Array(6);for(const r of l)ss(!1,o,r,1,s,0);Vn(s),i.masksTree=s,i.flatCache=Ei(1e3)}function m0(l,i){l||="/";const s=i.flatCache.get(l);if(s)return s;const o=sr(l,i.masksTree);return i.flatCache.set(l,o),o}function y0(l,i,s,o,r){l||="/",o||="/";const h=i?`case\0${l}`:l;let d=r.singleCache.get(h);return d||(d=ga("/"),ss(i,new Uint16Array(6),{from:l},1,d,0),r.singleCache.set(h,d)),sr(o,d,s)}function v0(l,i,s=!1){const o=s?l:`nofuzz\0${l}`,r=i.matchCache.get(o);if(r!==void 0)return r;l||="/";let h;try{h=sr(l,i.segmentTree,s)}catch(d){if(d instanceof URIError)h=null;else throw d}return h&&(h.branch=Ty(h.route)),i.matchCache.set(o,h),h}function p0(l){return l==="/"?l:l.replace(/\/{1,}$/,"")}function g0(l,i=!1,s){const o=ga(l.fullPath),r=new Uint16Array(6),h={},d={};let p=0;return ss(i,r,l,1,o,0,y=>{if(s?.(y,p),y.id in h&&pn(),h[y.id]=y,p!==0&&y.path){const m=p0(y.fullPath);(!d[m]||y.fullPath.endsWith("/"))&&(d[m]=y)}p++}),Vn(o),{processedTree:{segmentTree:o,singleCache:Ei(1e3),matchCache:Ei(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:d}}function sr(l,i,s=!1){const o=l.split("/"),r=b0(l,o,i,s);if(!r)return null;const[h]=Ey(l,o,r);return{route:r.node.route,rawParams:h}}function Ey(l,i,s){const o=S0(s.node);let r=null;const h=Object.create(null);let d=s.extract?.part??0,p=s.extract?.node??0,y=s.extract?.path??0,m=s.extract?.segment??0;for(;p<o.length;d++,p++,y++,m++){const S=o[p];if(S.kind===Kn)break;if(S.kind===_y){m--,d--,y--;continue}const g=i[d],b=y;if(g&&(y+=g.length),S.kind===1){r??=s.node.fullPath.split("/");const R=r[m],M=S.prefix?.length??0;if(R.charCodeAt(M)===123){const C=S.suffix?.length??0,D=R.substring(M+2,R.length-C-1),L=g.substring(M,g.length-C);h[D]=decodeURIComponent(L)}else{const C=R.substring(1);h[C]=decodeURIComponent(g)}}else if(S.kind===3){if(s.skipped&1<<p){d--,y=b-1;continue}r??=s.node.fullPath.split("/");const R=r[m],M=S.prefix?.length??0,C=S.suffix?.length??0,D=R.substring(M+3,R.length-C-1),L=S.suffix||S.prefix?g.substring(M,g.length-C):g;L&&(h[D]=decodeURIComponent(L))}else if(S.kind===2){const R=S,M=l.substring(b+(R.prefix?.length??0),l.length-(R.suffix?.length??0)),C=decodeURIComponent(M);h["*"]=C,h._splat=C;break}}return s.rawParams&&Object.assign(h,s.rawParams),[h,{part:d,node:p,path:y,segment:m}]}function Ty(l){const i=[l];for(;l.parentRoute;)l=l.parentRoute,i.push(l);return i.reverse(),i}function S0(l){const i=Array(l.depth+1);do i[l.depth]=l,l=l.parent;while(l);return i}function b0(l,i,s,o){if(l==="/"&&s.index)return{node:s.index,skipped:0};const r=!_i(i),h=r&&l!=="/",d=i.length-(r?1:0),p=[{node:s,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let y=null,m=null;for(;p.length;){const S=p.pop(),{node:g,index:b,skipped:R,depth:M,statics:C,dynamics:D,optionals:L}=S;let{extract:j,rawParams:X}=S;if(g.kind===2&&g.route&&!Zu(m,S))continue;if(g.parse){if(!Nm(l,i,S))continue;X=S.rawParams,j=S.extract}o&&g.route&&g.kind!==Kn&&Zu(y,S)&&(y=S);const G=b===d;if(G&&(g.route&&(!h||g.kind===Kn||g.kind===2)&&Zu(m,S)&&(m=S),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const K=G?void 0:i[b];let P;if(G&&g.index){const B={node:g.index,index:b,skipped:R,depth:M+1,statics:C,dynamics:D,optionals:L,extract:j,rawParams:X};let Y=!0;if(g.index.parse&&(Nm(l,i,B)||(Y=!1)),Y){if(!D&&!L&&!R&&_0(C,d))return B;Zu(m,B)&&(m=B)}}if(g.wildcard)for(let B=g.wildcard.length-1;B>=0;B--){const Y=g.wildcard[B],{prefix:J,suffix:it}=Y;if(!(J&&(G||!(Y.caseSensitive?K:P??=K.toLowerCase()).startsWith(J)))){if(it){if(G)continue;const nt=i.slice(b).join("/").slice(-it.length);if((Y.caseSensitive?nt:nt.toLowerCase())!==it)continue}p.push({node:Y,index:d,skipped:R,depth:M+1,statics:C,dynamics:D,optionals:L,extract:j,rawParams:X})}}if(g.optional){const B=R|1<<M,Y=M+1;for(let J=g.optional.length-1;J>=0;J--){const it=g.optional[J];p.push({node:it,index:b,skipped:B,depth:Y,statics:C,dynamics:D,optionals:L,extract:j,rawParams:X})}if(!G)for(let J=g.optional.length-1;J>=0;J--){const it=g.optional[J],{prefix:nt,suffix:tt}=it;if(nt||tt){const wt=it.caseSensitive?K:P??=K.toLowerCase();if(nt&&!wt.startsWith(nt)||tt&&!wt.endsWith(tt))continue}p.push({node:it,index:b+1,skipped:R,depth:Y,statics:C,dynamics:D,optionals:L+Ku(d,b),extract:j,rawParams:X})}}if(!G&&g.dynamic&&K)for(let B=g.dynamic.length-1;B>=0;B--){const Y=g.dynamic[B],{prefix:J,suffix:it}=Y;if(J||it){const nt=Y.caseSensitive?K:P??=K.toLowerCase();if(J&&!nt.startsWith(J)||it&&!nt.endsWith(it))continue}p.push({node:Y,index:b+1,skipped:R,depth:M+1,statics:C,dynamics:D+Ku(d,b),optionals:L,extract:j,rawParams:X})}if(!G&&g.staticInsensitive){const B=g.staticInsensitive.get(P??=K.toLowerCase());B&&p.push({node:B,index:b+1,skipped:R,depth:M+1,statics:C+Ku(d,b),dynamics:D,optionals:L,extract:j,rawParams:X})}if(!G&&g.static){const B=g.static.get(K);B&&p.push({node:B,index:b+1,skipped:R,depth:M+1,statics:C+Ku(d,b),dynamics:D,optionals:L,extract:j,rawParams:X})}if(g.pathless){const B=M+1;for(let Y=g.pathless.length-1;Y>=0;Y--){const J=g.pathless[Y];p.push({node:J,index:b,skipped:R,depth:B,statics:C,dynamics:D,optionals:L,extract:j,rawParams:X})}}}if(m)return m;if(o&&y){let S=y.index;for(let b=0;b<y.index;b++)S+=i[b].length;const g=S===l.length?"/":l.slice(S);return y.rawParams??=Object.create(null),y.rawParams["**"]=decodeURIComponent(g),y}return null}function Ku(l,i){return 2**(l-i-1)}function _0(l,i){return l===2**(i-1)-1}function Nm(l,i,s){let o,r;try{[o,r]=Ey(l,i,s)}catch{return null}if(s.rawParams=o,s.extract=r,!s.node.parse)return!0;try{if(s.node.parse(o)===!1)return null}catch{}return!0}function Zu(l,i){return l?i.statics>l.statics||i.statics===l.statics&&(i.dynamics>l.dynamics||i.dynamics===l.dynamics&&(i.optionals>l.optionals||i.optionals===l.optionals&&((i.node.kind===Kn)>(l.node.kind===Kn)||i.node.kind===Kn==(l.node.kind===Kn)&&i.depth>l.depth))):!0}function Fu(l){return cr(l.filter(i=>i!==void 0).join("/"))}function cr(l){return l.replace(/\/{2,}/g,"/")}function My(l){return l==="/"?l:l.replace(/^\/{1,}/,"")}function vn(l){const i=l.length;return i>1&&l[i-1]==="/"?l.replace(/\/{1,}$/,""):l}function Oy(l){return vn(My(l))}function as(l,i){return l?.endsWith("/")&&l!=="/"&&l!==`${i}/`?l.slice(0,-1):l}function R0(l,i,s){return as(l,s)===as(i,s)}function E0({base:l,to:i,trailingSlash:s="never",cache:o}){const r=i.startsWith("/"),h=!r&&i===".";let d;if(o){d=r?i:h?l:l+"\0"+i;const m=o.get(d);if(m)return m}let p;if(h)p=l.split("/");else if(r)p=i.split("/");else{for(p=l.split("/");p.length>1&&_i(p)==="";)p.pop();const m=i.split("/");for(let S=0,g=m.length;S<g;S++){const b=m[S];b===""?S?S===g-1&&p.push(b):p=[b]:b===".."?p.pop():b==="."||p.push(b)}}p.length>1&&(_i(p)===""?s==="never"&&p.pop():s==="always"&&p.push(""));const y=cr(p.join("/"))||"/";return d&&o&&o.set(d,y),y}function T0(l){const i=new Map(l.map(r=>[encodeURIComponent(r),r])),s=Array.from(i.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(s,"g");return r=>r.replace(o,h=>i.get(h)??h)}function Lo(l,i,s){const o=i[l];return typeof o!="string"?o:l==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(r=>Bm(r,s)).join("/"):Bm(o,s)}function wm({path:l,params:i,decoder:s,...o}){let r=!1;const h=Object.create(null);if(!l||l==="/")return{interpolatedPath:"/",usedParams:h,isMissingParams:r};if(!l.includes("$"))return{interpolatedPath:l,usedParams:h,isMissingParams:r};const d=l.length;let p=0,y,m="";for(;p<d;){const S=p;y=Ry(l,S,y);const g=y[5];if(p=g+1,S===g)continue;const b=y[0];if(b===0){m+="/"+l.substring(S,g);continue}if(b===2){const R=i._splat;h._splat=R,h["*"]=R;const M=l.substring(S,y[1]),C=l.substring(y[4],g);if(!R){r=!0,(M||C)&&(m+="/"+M+C);continue}const D=Lo("_splat",i,s);m+="/"+M+D+C;continue}if(b===1){const R=l.substring(y[2],y[3]);!r&&!(R in i)&&(r=!0),h[R]=i[R];const M=l.substring(S,y[1]),C=l.substring(y[4],g),D=Lo(R,i,s)??"undefined";m+="/"+M+D+C;continue}if(b===3){const R=l.substring(y[2],y[3]),M=i[R];if(M==null)continue;h[R]=M;const C=l.substring(S,y[1]),D=l.substring(y[4],g),L=Lo(R,i,s)??"";m+="/"+C+L+D;continue}}return l.endsWith("/")&&(m+="/"),{usedParams:h,interpolatedPath:m||"/",isMissingParams:r}}function Bm(l,i){const s=encodeURIComponent(l);return i?.(s)??s}function le(l){return l?.isNotFound===!0}function M0(l,i=String){const s=new URLSearchParams;for(const o in l){const r=l[o];r!==void 0&&s.set(o,i(r))}return s.toString()}function No(l){return l?l==="false"?!1:l==="true"?!0:+l*0===0&&+l+""===l?+l:l:""}function O0(l){const i=new URLSearchParams(l),s=Object.create(null);for(const[o,r]of i.entries()){const h=s[o];h==null?s[o]=No(r):Array.isArray(h)?h.push(No(r)):s[o]=[h,No(r)]}return s}const C0=x0(JSON.parse),A0=z0(JSON.stringify,JSON.parse);function x0(l){return i=>{i[0]==="?"&&(i=i.substring(1));const s=O0(i);for(const o in s){const r=s[o];if(typeof r=="string")try{s[o]=l(r)}catch{}}return s}}function z0(l,i){const s=typeof i=="function";function o(r){if(typeof r=="object"&&r!==null)try{return l(r)}catch{}else if(s&&typeof r=="string")try{return i(r),l(r)}catch{}return r}return r=>{const h=M0(r,o);return h?`?${h}`:""}}const ba="__root__";function D0(l){if(l.statusCode=l.statusCode||l.code||307,!l._builtLocation&&!l.reloadDocument&&typeof l.href=="string")try{new URL(l.href),l.reloadDocument=!0}catch{}const i=new Headers(l.headers);l.href&&i.get("Location")===null&&i.set("Location",l.href);const s=new Response(null,{status:l.statusCode,headers:i});if(s.options=l,l.throw)throw s;return s}function me(l){return l instanceof Response&&!!l.options}const Fo=l=>{if(!l.rendered)return l.rendered=!0,l.onReady?.()},U0=l=>l.stores.matchesId.get().some(i=>l.stores.matchStores.get(i)?.get()._forcePending),cs=(l,i)=>!!(l.preload&&!l.router.stores.matchStores.has(i)),_a=(l,i,s=!0)=>{const o={...l.router.options.context??{}},r=s?i:i-1;for(let h=0;h<=r;h++){const d=l.matches[h];if(!d)continue;const p=l.router.getMatch(d.id);p&&Object.assign(o,p.__routeContext,p.__beforeLoadContext)}return o},jm=(l,i)=>{if(!l.matches.length)return;const s=i.routeId,o=l.matches.findIndex(d=>d.routeId===l.router.routeTree.id),r=o>=0?o:0;let h=s?l.matches.findIndex(d=>d.routeId===s):l.firstBadMatchIndex??l.matches.length-1;h<0&&(h=r);for(let d=h;d>=0;d--){const p=l.matches[d];if(l.router.looseRoutesById[p.routeId].options.notFoundComponent)return d}return s?h:r},Zn=(l,i,s)=>{if(!(!me(s)&&!le(s)))throw me(s)&&s.redirectHandled&&!s.options.reloadDocument||(i&&(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0,i._nonReactive.error=s,l.updateMatch(i.id,o=>({...o,status:me(s)?"redirected":le(s)?"notFound":o.status==="pending"?"success":o.status,context:_a(l,i.index),isFetching:!1,error:s})),le(s)&&!s.routeId&&(s.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()),me(s)&&(l.rendered=!0,s.options._fromLocation=l.location,s.redirectHandled=!0,s=l.router.resolveRedirect(s))),s},Cy=(l,i)=>{const s=l.router.getMatch(i);return!!(!s||s._nonReactive.dehydrated)},Hm=(l,i,s)=>{const o=_a(l,s);l.updateMatch(i,r=>({...r,context:o}))},yi=(l,i,s,o)=>{const{id:r,routeId:h}=l.matches[i],d=l.router.looseRoutesById[h];if(s instanceof Promise)throw s;s.routerCode=o,l.firstBadMatchIndex??=i,Zn(l,l.router.getMatch(r),s);try{d.options.onError?.(s)}catch(p){s=p,Zn(l,l.router.getMatch(r),s)}l.updateMatch(r,p=>(p._nonReactive.beforeLoadPromise?.resolve(),p._nonReactive.beforeLoadPromise=void 0,p._nonReactive.loadPromise?.resolve(),{...p,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!l.preload&&!me(s)&&!le(s)&&(l.serialError??=s)},Ay=(l,i,s,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=s.options.pendingMs??l.router.options.defaultPendingMs;if(l.onReady&&!cs(l,i)&&(s.options.loader||s.options.beforeLoad||zy(s))&&typeof r=="number"&&r!==1/0&&(s.options.pendingComponent??l.router.options?.defaultPendingComponent)){const h=setTimeout(()=>{Fo(l)},r);o._nonReactive.pendingTimeout=h}},L0=(l,i,s)=>{const o=l.router.getMatch(i);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Ay(l,i,s,o);const r=()=>{const h=l.router.getMatch(i);h.preload&&(h.status==="redirected"||h.status==="notFound")&&Zn(l,h,h.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},N0=(l,i,s,o)=>{const r=l.router.getMatch(i);let h=r._nonReactive.loadPromise;r._nonReactive.loadPromise=yl(()=>{h?.resolve(),h=void 0});const{paramsError:d,searchError:p}=r;d&&yi(l,s,d,"PARSE_PARAMS"),p&&yi(l,s,p,"VALIDATE_SEARCH"),Ay(l,i,o,r);const y=new AbortController;let m=!1;const S=()=>{m||(m=!0,l.updateMatch(i,G=>({...G,isFetching:"beforeLoad",fetchCount:G.fetchCount+1,abortController:y})))},g=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,l.updateMatch(i,G=>({...G,isFetching:!1}))};if(!o.options.beforeLoad){l.router.batch(()=>{S(),g()});return}r._nonReactive.beforeLoadPromise=yl();const b={..._a(l,s,!1),...r.__routeContext},{search:R,params:M,cause:C}=r,D=cs(l,i),L={search:R,abortController:y,params:M,preload:D,context:b,location:l.location,navigate:G=>l.router.navigate({...G,_fromLocation:l.location}),buildLocation:l.router.buildLocation,cause:D?"preload":C,matches:l.matches,routeId:o.id,...l.router.options.additionalContext},j=G=>{if(G===void 0){l.router.batch(()=>{S(),g()});return}(me(G)||le(G))&&(S(),yi(l,s,G,"BEFORE_LOAD")),l.router.batch(()=>{S(),l.updateMatch(i,K=>({...K,__beforeLoadContext:G})),g()})};let X;try{if(X=o.options.beforeLoad(L),Ri(X))return S(),X.catch(G=>{yi(l,s,G,"BEFORE_LOAD")}).then(j)}catch(G){S(),yi(l,s,G,"BEFORE_LOAD")}j(X)},w0=(l,i)=>{const{id:s,routeId:o}=l.matches[i],r=l.router.looseRoutesById[o],h=()=>p(),d=()=>N0(l,s,i,r),p=()=>{if(Cy(l,s))return;const y=L0(l,s,r);return Ri(y)?y.then(d):d()};return h()},B0=(l,i,s)=>{const o=l.router.getMatch(i);if(!o||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const r={ssr:l.router.options.ssr,matches:l.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([s.options.head?.(r),s.options.scripts?.(r),s.options.headers?.(r)]).then(([h,d,p])=>({meta:h?.meta,links:h?.links,headScripts:h?.scripts,headers:p,scripts:d,styles:h?.styles}))},xy=(l,i,s,o,r)=>{const h=i[o-1],{params:d,loaderDeps:p,abortController:y,cause:m}=l.router.getMatch(s),S=_a(l,o),g=cs(l,s);return{params:d,deps:p,preload:!!g,parentMatchPromise:h,abortController:y,context:S,location:l.location,navigate:b=>l.router.navigate({...b,_fromLocation:l.location}),cause:g?"preload":m,route:r,...l.router.options.additionalContext}},qm=async(l,i,s,o,r)=>{try{const h=l.router.getMatch(s);try{(!(gy??l.router.isServer)||h.ssr===!0)&&Ti(r);const d=r.options.loader,p=typeof d=="function"?d:d?.handler,y=p?.(xy(l,i,s,o,r)),m=!!p&&Ri(y);if((m||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||h._nonReactive.minPendingPromise)&&l.updateMatch(s,g=>({...g,isFetching:"loader"})),p){const g=m?await y:y;Zn(l,l.router.getMatch(s),g),g!==void 0&&l.updateMatch(s,b=>({...b,loaderData:g}))}r._lazyPromise&&await r._lazyPromise;const S=h._nonReactive.minPendingPromise;S&&await S,r._componentsPromise&&await r._componentsPromise,l.updateMatch(s,g=>({...g,error:void 0,context:_a(l,o),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(d){let p=d;if(p?.name==="AbortError"){if(h.abortController.signal.aborted){h._nonReactive.loaderPromise?.resolve(),h._nonReactive.loaderPromise=void 0;return}l.updateMatch(s,m=>({...m,status:m.status==="pending"?"success":m.status,isFetching:!1,context:_a(l,o)}));return}const y=h._nonReactive.minPendingPromise;y&&await y,le(d)&&await r.options.notFoundComponent?.preload?.(),Zn(l,l.router.getMatch(s),d);try{r.options.onError?.(d)}catch(m){p=m,Zn(l,l.router.getMatch(s),m)}!me(p)&&!le(p)&&await Ti(r,["errorComponent"]),l.updateMatch(s,m=>({...m,error:p,context:_a(l,o),status:"error",isFetching:!1}))}}catch(h){const d=l.router.getMatch(s);d&&(d._nonReactive.loaderPromise=void 0),Zn(l,d,h)}},j0=async(l,i,s)=>{async function o(R,M,C,D,L){const j=Date.now()-M.updatedAt,X=R?L.options.preloadStaleTime??l.router.options.defaultPreloadStaleTime??3e4:L.options.staleTime??l.router.options.defaultStaleTime??0,G=L.options.shouldReload,K=typeof G=="function"?G(xy(l,i,r,s,L)):G,{status:P,invalid:B}=D,Y=j>=X&&(!!l.forceStaleReload||D.cause==="enter"||C!==void 0&&C!==D.id);d=P==="success"&&(B||(K??Y)),R&&L.options.preload===!1||(d&&!l.sync&&S?(p=!0,(async()=>{try{await qm(l,i,r,s,L);const J=l.router.getMatch(r);J._nonReactive.loaderPromise?.resolve(),J._nonReactive.loadPromise?.resolve(),J._nonReactive.loaderPromise=void 0,J._nonReactive.loadPromise=void 0}catch(J){me(J)&&await l.router.navigate(J.options)}})()):P!=="success"||d?await qm(l,i,r,s,L):Hm(l,r,s))}const{id:r,routeId:h}=l.matches[s];let d=!1,p=!1;const y=l.router.looseRoutesById[h],m=y.options.loader,S=((typeof m=="function"?void 0:m?.staleReloadMode)??l.router.options.defaultStaleReloadMode)!=="blocking";if(Cy(l,r)){if(!l.router.getMatch(r))return l.matches[s];Hm(l,r,s)}else{const R=l.router.getMatch(r),M=l.router.stores.matchesId.get()[s],C=(M&&l.router.stores.matchStores.get(M)||null)?.routeId===h?M:l.router.stores.matches.get().find(L=>L.routeId===h)?.id,D=cs(l,r);if(R._nonReactive.loaderPromise){if(R.status==="success"&&!l.sync&&!R.preload&&S)return R;await R._nonReactive.loaderPromise;const L=l.router.getMatch(r),j=L._nonReactive.error||L.error;j&&Zn(l,L,j),L.status==="pending"&&await o(D,R,C,L,y)}else{const L=D&&!l.router.stores.matchStores.has(r),j=l.router.getMatch(r);j._nonReactive.loaderPromise=yl(),L!==j.preload&&l.updateMatch(r,X=>({...X,preload:L})),await o(D,R,C,j,y)}}const g=l.router.getMatch(r);p||(g._nonReactive.loaderPromise?.resolve(),g._nonReactive.loadPromise?.resolve(),g._nonReactive.loadPromise=void 0),clearTimeout(g._nonReactive.pendingTimeout),g._nonReactive.pendingTimeout=void 0,p||(g._nonReactive.loaderPromise=void 0),g._nonReactive.dehydrated=void 0;const b=p?g.isFetching:!1;return b!==g.isFetching||g.invalid!==!1?(l.updateMatch(r,R=>({...R,isFetching:b,invalid:!1})),l.router.getMatch(r)):g};async function Qm(l){const i=l,s=[];U0(i.router)&&Fo(i);let o;for(let b=0;b<i.matches.length;b++){try{const R=w0(i,b);Ri(R)&&await R}catch(R){if(me(R))throw R;if(le(R))o=R;else if(!i.preload)throw R;break}if(i.serialError||i.firstBadMatchIndex!=null)break}const r=i.firstBadMatchIndex??i.matches.length,h=o&&!i.preload?jm(i,o):void 0,d=o&&i.preload?0:h!==void 0?Math.min(h+1,r):r;let p,y;for(let b=0;b<d;b++)s.push(j0(i,s,b));try{await Promise.all(s)}catch{const b=await Promise.allSettled(s);for(const R of b){if(R.status!=="rejected")continue;const M=R.reason;if(me(M))throw M;le(M)?p??=M:y??=M}if(y!==void 0)throw y}const m=p??(o&&!i.preload?o:void 0);let S=i.firstBadMatchIndex!==void 0?i.firstBadMatchIndex:i.matches.length-1;if(!m&&o&&i.preload)return i.matches;if(m){const b=jm(i,m);b===void 0&&pn();const R=i.matches[b],M=i.router.looseRoutesById[R.routeId],C=i.router.options?.defaultNotFoundComponent;!M.options.notFoundComponent&&C&&(M.options.notFoundComponent=C),m.routeId=R.routeId;const D=R.routeId===i.router.routeTree.id;i.updateMatch(R.id,L=>({...L,...D?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:m},isFetching:!1})),S=b,await Ti(M,["notFoundComponent"])}else if(!i.preload){const b=i.matches[0];b.globalNotFound||i.router.getMatch(b.id)?.globalNotFound&&i.updateMatch(b.id,R=>({...R,globalNotFound:!1,error:void 0}))}if(i.serialError&&i.firstBadMatchIndex!==void 0){const b=i.router.looseRoutesById[i.matches[i.firstBadMatchIndex].routeId];await Ti(b,["errorComponent"])}for(let b=0;b<=S;b++){const{id:R,routeId:M}=i.matches[b],C=i.router.looseRoutesById[M];try{const D=B0(i,R,C);if(D){const L=await D;i.updateMatch(R,j=>({...j,...L}))}}catch(D){console.error(`Error executing head for route ${M}:`,D)}}const g=Fo(i);if(Ri(g)&&await g,m)throw m;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}function Ym(l,i){const s=i.map(o=>l.options[o]?.preload?.()).filter(Boolean);if(s.length!==0)return Promise.all(s)}function Ti(l,i=ku){!l._lazyLoaded&&l._lazyPromise===void 0&&(l.lazyFn?l._lazyPromise=l.lazyFn().then(o=>{const{id:r,...h}=o.options;Object.assign(l.options,h),l._lazyLoaded=!0,l._lazyPromise=void 0}):l._lazyLoaded=!0);const s=()=>l._componentsLoaded?void 0:i===ku?(()=>{if(l._componentsPromise===void 0){const o=Ym(l,ku);o?l._componentsPromise=o.then(()=>{l._componentsLoaded=!0,l._componentsPromise=void 0}):l._componentsLoaded=!0}return l._componentsPromise})():Ym(l,i);return l._lazyPromise?l._lazyPromise.then(s):s()}function zy(l){for(const i of ku)if(l.options[i]?.preload)return!0;return!1}const ku=["component","errorComponent","pendingComponent","notFoundComponent"];function H0(l){return{input:({url:i})=>{for(const s of l)i=ko(s,i);return i},output:({url:i})=>{for(let s=l.length-1;s>=0;s--)i=Dy(l[s],i);return i}}}function q0(l){const i=Oy(l.basepath),s=`/${i}`,o=l.caseSensitive?s:s.toLowerCase(),r=`${o}/`;return{input:({url:h})=>{const d=l.caseSensitive?h.pathname:h.pathname.toLowerCase();return d===o?h.pathname="/":d.startsWith(r)&&(h.pathname=h.pathname.slice(s.length)),h},output:({url:h})=>(h.pathname=Fu(["/",i,h.pathname]),h)}}function ko(l,i){const s=l?.input?.({url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function Dy(l,i){const s=l?.output?.({url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function Q0(l,i){const{createMutableStore:s,createReadonlyStore:o,batch:r,init:h}=i,d=new Map,p=new Map,y=new Map,m=s(l.status),S=s(l.loadedAt),g=s(l.isLoading),b=s(l.isTransitioning),R=s(l.location),M=s(l.resolvedLocation),C=s(l.statusCode),D=s(l.redirect),L=s([]),j=s([]),X=s([]),G=o(()=>wo(d,L.get())),K=o(()=>wo(p,j.get())),P=o(()=>wo(y,X.get())),B=o(()=>L.get()[0]),Y=o(()=>L.get().some(V=>d.get(V)?.get().status==="pending")),J=o(()=>({locationHref:R.get().href,resolvedLocationHref:M.get()?.href,status:m.get()})),it=o(()=>({status:m.get(),loadedAt:S.get(),isLoading:g.get(),isTransitioning:b.get(),matches:G.get(),location:R.get(),resolvedLocation:M.get(),statusCode:C.get(),redirect:D.get()})),nt=Ei(64);function tt(V){let at=nt.get(V);return at||(at=o(()=>{const St=L.get();for(const _t of St){const T=d.get(_t);if(T&&T.routeId===V)return T.get()}}),nt.set(V,at)),at}const wt={status:m,loadedAt:S,isLoading:g,isTransitioning:b,location:R,resolvedLocation:M,statusCode:C,redirect:D,matchesId:L,pendingIds:j,cachedIds:X,matches:G,pendingMatches:K,cachedMatches:P,firstId:B,hasPending:Y,matchRouteDeps:J,matchStores:d,pendingMatchStores:p,cachedMatchStores:y,__store:it,getRouteMatchStore:tt,setMatches:Ut,setPending:Ht,setCached:N};Ut(l.matches),h?.(wt);function Ut(V){Bo(V,d,L,s,r)}function Ht(V){Bo(V,p,j,s,r)}function N(V){Bo(V,y,X,s,r)}return wt}function wo(l,i){const s=[];for(const o of i){const r=l.get(o);r&&s.push(r.get())}return s}function Bo(l,i,s,o,r){const h=l.map(p=>p.id),d=new Set(h);r(()=>{for(const p of i.keys())d.has(p)||i.delete(p);for(const p of l){const y=i.get(p.id);if(!y){const m=o(p);m.routeId=p.routeId,i.set(p.id,m);continue}y.routeId=p.routeId,y.get()!==p&&y.set(p)}f0(s.get(),h)||s.set(h)})}var Pn="__TSR_index",Gm="popstate",Xm="beforeunload";function Y0(l){let i=l.getLocation();const s=new Set,o=d=>{i=l.getLocation(),s.forEach(p=>p({location:i,action:d}))},r=d=>{l.notifyOnIndexChange??!0?o(d):i=l.getLocation()},h=async({task:d,navigateOpts:p,...y})=>{if(p?.ignoreBlocker??!1){d();return}const m=l.getBlockers?.()??[],S=y.type==="PUSH"||y.type==="REPLACE";if(typeof document<"u"&&m.length&&S)for(const g of m){const b=ls(y.path,y.state);if(await g.blockerFn({currentLocation:i,nextLocation:b,action:y.type})){l.onBlocked?.();return}}d()};return{get location(){return i},get length(){return l.getLength()},subscribers:s,subscribe:d=>(s.add(d),()=>{s.delete(d)}),push:(d,p,y)=>{const m=i.state[Pn];p=Vm(m+1,p),h({task:()=>{l.pushState(d,p),o({type:"PUSH"})},navigateOpts:y,type:"PUSH",path:d,state:p})},replace:(d,p,y)=>{const m=i.state[Pn];p=Vm(m,p),h({task:()=>{l.replaceState(d,p),o({type:"REPLACE"})},navigateOpts:y,type:"REPLACE",path:d,state:p})},go:(d,p)=>{h({task:()=>{l.go(d),r({type:"GO",index:d})},navigateOpts:p,type:"GO"})},back:d=>{h({task:()=>{l.back(d?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:d,type:"BACK"})},forward:d=>{h({task:()=>{l.forward(d?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:d,type:"FORWARD"})},canGoBack:()=>i.state[Pn]!==0,createHref:d=>l.createHref(d),block:d=>{if(!l.setBlockers)return()=>{};const p=l.getBlockers?.()??[];return l.setBlockers([...p,d]),()=>{const y=l.getBlockers?.()??[];l.setBlockers?.(y.filter(m=>m!==d))}},flush:()=>l.flush?.(),destroy:()=>l.destroy?.(),notify:o}}function Vm(l,i){i||(i={});const s=or();return{...i,key:s,__TSR_key:s,[Pn]:l}}function G0(l){const i=typeof document<"u"?window:void 0,s=i.history.pushState,o=i.history.replaceState;let r=[];const h=()=>r,d=Y=>r=Y,p=(Y=>Y),y=(()=>ls(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const Y=or();i.history.replaceState({[Pn]:0,key:Y,__TSR_key:Y},"")}let m=y(),S,g=!1,b=!1,R=!1,M=!1;const C=()=>m;let D,L;const j=()=>{D&&(B._ignoreSubscribers=!0,(D.isPush?i.history.pushState:i.history.replaceState)(D.state,"",D.href),B._ignoreSubscribers=!1,D=void 0,L=void 0,S=void 0)},X=(Y,J,it)=>{const nt=p(J);L||(S=m),m=ls(J,it),D={href:nt,state:it,isPush:D?.isPush||Y==="push"},L||(L=Promise.resolve().then(()=>j()))},G=Y=>{m=y(),B.notify({type:Y})},K=async()=>{if(b){b=!1;return}const Y=y(),J=Y.state[Pn]-m.state[Pn],it=J===1,nt=J===-1,tt=!it&&!nt||g;g=!1;const wt=tt?"GO":nt?"BACK":"FORWARD",Ut=tt?{type:"GO",index:J}:{type:nt?"BACK":"FORWARD"};if(R)R=!1;else{const Ht=h();if(typeof document<"u"&&Ht.length){for(const N of Ht)if(await N.blockerFn({currentLocation:m,nextLocation:Y,action:wt})){b=!0,i.history.go(1),B.notify(Ut);return}}}m=y(),B.notify(Ut)},P=Y=>{if(M){M=!1;return}let J=!1;const it=h();if(typeof document<"u"&&it.length)for(const nt of it){const tt=nt.enableBeforeUnload??!0;if(tt===!0){J=!0;break}if(typeof tt=="function"&&tt()===!0){J=!0;break}}if(J)return Y.preventDefault(),Y.returnValue=""},B=Y0({getLocation:C,getLength:()=>i.history.length,pushState:(Y,J)=>X("push",Y,J),replaceState:(Y,J)=>X("replace",Y,J),back:Y=>(Y&&(R=!0),M=!0,i.history.back()),forward:Y=>{Y&&(R=!0),M=!0,i.history.forward()},go:Y=>{g=!0,i.history.go(Y)},createHref:Y=>p(Y),flush:j,destroy:()=>{i.history.pushState=s,i.history.replaceState=o,i.removeEventListener(Xm,P,{capture:!0}),i.removeEventListener(Gm,K)},onBlocked:()=>{S&&m!==S&&(m=S)},getBlockers:h,setBlockers:d,notifyOnIndexChange:!1});return i.addEventListener(Xm,P,{capture:!0}),i.addEventListener(Gm,K),i.history.pushState=function(...Y){const J=s.apply(i.history,Y);return B._ignoreSubscribers||G("PUSH"),J},i.history.replaceState=function(...Y){const J=o.apply(i.history,Y);return B._ignoreSubscribers||G("REPLACE"),J},B}function X0(l){let i=l.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function ls(l,i){const s=X0(l),o=s.indexOf("#"),r=s.indexOf("?"),h=or();return{href:s,pathname:s.substring(0,o>0?r>0?Math.min(o,r):o:r>0?r:s.length),hash:o>-1?s.substring(o):"",search:r>-1?s.slice(r,o===-1?void 0:o):"",state:i||{[Pn]:0,key:h,__TSR_key:h}}}function or(){return(Math.random()+1).toString(36).substring(7)}function ml(l,i){const s=i,o=l;return{fromLocation:s,toLocation:o,pathChanged:s?.pathname!==o.pathname,hrefChanged:s?.href!==o.href,hashChanged:s?.hash!==o.hash}}const Wo=new WeakMap;var V0=class{constructor(l,i){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.routeBranchCache=new WeakMap,this.startTransition=s=>s(),this.update=s=>{const o=this.options,r=this.basepath??o?.basepath??"/",h=this.basepath===void 0,d=o?.rewrite;if(this.options={...o,...s},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=T0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=G0()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let S;this.resolvePathCache=Ei(1e3),S=this.buildRouteTree(),this.setRoutes(S)}if(!this.stores&&this.latestLocation){const S=this.getStoreConfig(this);this.batch=S.batch,this.stores=Q0(Z0(this.latestLocation),S),aS(this)}let p=!1;const y=this.options.basepath??"/",m=this.options.rewrite;if(h||r!==y||d!==m){this.basepath=y;const S=[],g=Oy(y);g&&g!=="/"&&S.push(q0({basepath:y})),m&&S.push(m),this.rewrite=S.length===0?void 0:S.length===1?S[0]:H0(S),this.history&&this.updateLatestLocation(),p=!0}p&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const s=g0(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&d0(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,o)=>{const r={eventType:s,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=s=>{this.subscribers.forEach(o=>{o.eventType===s.type&&o.fn(s)})},this.parseLocation=(s,o)=>{const r=({pathname:y,search:m,hash:S,href:g,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(y)){const L=this.options.parseSearch(m),j=this.options.stringifySearch(L);return{href:y+j+S,publicHref:y+j+S,pathname:mi(y).path,external:!1,searchStr:j,search:ma(o?.search,L),hash:mi(S.slice(1)).path,state:pa(o?.state,b)}}const R=new URL(g,this.origin),M=ko(this.rewrite,R),C=this.options.parseSearch(M.search),D=this.options.stringifySearch(C);return M.search=D,{href:M.href.replace(M.origin,""),publicHref:g,pathname:mi(M.pathname).path,external:!!this.rewrite&&M.origin!==this.origin,searchStr:D,search:ma(o?.search,C),hash:mi(M.hash.slice(1)).path,state:pa(o?.state,b)}},h=r(s),{__tempLocation:d,__tempKey:p}=h.state;if(d&&(!p||p===this.tempLocationKey)){const y=r(d);return y.state.key=h.state.key,y.state.__TSR_key=h.state.__TSR_key,delete y.state.__tempLocation,{...y,maskedLocation:h}}return h},this.resolvePathWithBase=(s,o)=>E0({base:s,to:o.includes("//")?cr(o):o,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,o,r)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:o},r):this.matchRoutesInternal(s,o),this.getMatchedRoutes=s=>J0({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const o=this.getMatch(s);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(s=>{this.cancelMatch(s)}),this.stores.matchesId.get().forEach(s=>{if(this.stores.pendingMatchStores.has(s))return;const o=this.stores.matchStores.get(s)?.get();o&&(o.status==="pending"||o.isFetching==="loader")&&this.cancelMatch(s)})},this.buildLocation=s=>{const o=(h={})=>{const d=h._fromLocation||this.pendingBuiltLocation||this.latestLocation,p=this.matchRoutesLightweight(d);h.from;const y=h.unsafeRelative==="path"?d.pathname:h.from??p.fullPath,m=h.to?`${h.to}`:void 0,S=p.search,g=Object.assign(Object.create(null),p.params),b=m?.charCodeAt(0)===47?"/":this.resolvePathWithBase(y,"."),R=m?this.resolvePathWithBase(b,m):b,M=h.params===!1||h.params===null?Object.create(null):(h.params??!0)===!0?g:Object.assign(g,va(h.params,g)),C=this.routesByPath[vn(R)];let D;if(C)D=this.getRouteBranch(C);else if(R.includes("$"))D=[];else{const nt=this.getMatchedRoutes(R);D=nt.matchedRoutes,this.options.notFoundRoute&&(!nt.foundRoute||nt.foundRoute.path!=="/"&&nt.routeParams["**"])&&(D=[...D,this.options.notFoundRoute])}if(D.length&&by(M))for(const nt of D){const tt=nt.options.params?.stringify??nt.options.stringifyParams;if(tt)try{Object.assign(M,tt(M))}catch{}}const L=s.leaveParams?R:mi(wm({path:R,params:M,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let j=S;if(s._includeValidateSearch&&this.options.search?.strict){const nt={};D.forEach(tt=>{if(tt.options.validateSearch)try{Object.assign(nt,Wu(tt.options.validateSearch,{...nt,...j}))}catch{}}),j=nt}j=P0({search:j,dest:h,destRoutes:D,_includeValidateSearch:s._includeValidateSearch}),j=ma(S,j);const X=this.options.stringifySearch(j),G=h.hash===!0?d.hash:h.hash?va(h.hash,d.hash):void 0,K=G?`#${G}`:"";let P=h.state===!0?d.state:h.state?va(h.state,d.state):{};P=pa(d.state,P);const B=`${L}${X}${K}`;let Y,J,it=!1;if(this.rewrite){const nt=new URL(B,this.origin),tt=Dy(this.rewrite,nt);Y=nt.href.replace(nt.origin,""),tt.origin!==this.origin?(J=tt.href,it=!0):J=tt.pathname+tt.search+tt.hash}else Y=r0(B),J=Y;return{publicHref:J,href:Y,pathname:L,search:j,searchStr:X,state:P,hash:G??"",external:it,unmaskOnReload:h.unmaskOnReload}},r=(h={},d)=>{const p=o(h);let y=d?o(d):void 0;if(!y){const m=Object.create(null);if(this.options.routeMasks){const S=m0(p.pathname,this.processedTree);if(S){Object.assign(m,S.rawParams);const{from:g,params:b,...R}=S.route,M=b===!1||b===null?Object.create(null):(b??!0)===!0?m:Object.assign(m,va(b,m));d={from:s.from,...R,params:M},y=o(d)}}}return y&&(p.maskedLocation=y),p};return s.mask?r(s,{from:s.from,...s.mask}):r(s)},this.commitLocation=async({viewTransition:s,ignoreBlocker:o,...r})=>{let h;const d=()=>{const m=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];m.forEach(g=>{r.state[g]=this.latestLocation.state[g]});const S=Sa(r.state,this.latestLocation.state);return m.forEach(g=>{delete r.state[g]}),S},p=vn(this.latestLocation.href)===vn(r.href);let y=this.commitLocationPromise;if(this.commitLocationPromise=yl(()=>{y?.resolve(),y=void 0}),p&&d())this.load();else{let{maskedLocation:m,hashScrollIntoView:S,...g}=r;m&&(g={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...g,search:g.searchStr,state:{...g.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(g.unmaskOnReload??this.options.unmaskOnReload??!1)&&(g.state.__tempKey=this.tempLocationKey)),g.state.__hashScrollIntoViewOptions=S??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,h=r.replace?"REPLACE":"PUSH",this.history[h==="REPLACE"?"replace":"push"](g.publicHref,g.state,{ignoreBlocker:o})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(h?{action:{type:h}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:o,hashScrollIntoView:r,viewTransition:h,ignoreBlocker:d,href:p,...y}={})=>{if(p){const g=this.history.location.state.__TSR_index,b=ls(p,{__TSR_index:s?g:g+1}),R=new URL(b.pathname,this.origin);y.to=ko(this.rewrite,R).pathname,y.search=this.options.parseSearch(b.search),y.hash=b.hash.slice(1)}const m=this.buildLocation({...y,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const S=this.commitLocation({...m,viewTransition:h,replace:s,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:d});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),S},this.navigate=async({to:s,reloadDocument:o,href:r,publicHref:h,...d})=>{let p=!1;if(r)try{new URL(`${r}`),p=!0}catch{}if(p&&!o&&(o=!0),o){if(s!==void 0||!r){const m=this.buildLocation({to:s,...d});r=r??m.publicHref,h=h??m.publicHref}const y=!p&&h?h:r;if(ns(y,this.protocolAllowlist))return Promise.resolve();if(!d.ignoreBlocker){const m=this.history.getBlockers?.()??[];for(const S of m)if(S?.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return d.replace?window.location.replace(y):window.location.href=y,Promise.resolve()}return this.buildAndCommitLocation({...d,href:r,to:s,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const s=this.matchRoutes(this.latestLocation),o=this.stores.cachedMatches.get().filter(r=>!s.some(h=>h.id===r.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(s),this.stores.setCached(o)})},this.load=async s=>{const o=s?.action?.type;let r,h,d;const p=this.stores.resolvedLocation.get()??this.stores.location.get();for(d=new Promise(m=>{this.startTransition(async()=>{try{this.beforeLoad(),o?Wo.set(this.latestLocation,o):Wo.delete(this.latestLocation);const S=this.latestLocation,g=ml(S,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...g}),this.emit({type:"onBeforeLoad",...g}),await Qm({router:this,sync:s?.sync,forceStaleReload:p.href===S.href,matches:this.stores.pendingMatches.get(),location:S,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=null,R=null,M=null,C=null;this.batch(()=>{const D=this.stores.pendingMatches.get(),L=D.length,j=this.stores.matches.get();b=L?j.filter(K=>!this.stores.pendingMatchStores.has(K.id)):null;const X=new Set;for(const K of this.stores.pendingMatchStores.values())K.routeId&&X.add(K.routeId);const G=new Set;for(const K of this.stores.matchStores.values())K.routeId&&G.add(K.routeId);R=L?j.filter(K=>!X.has(K.routeId)):null,M=L?D.filter(K=>!G.has(K.routeId)):null,C=L?D.filter(K=>G.has(K.routeId)):j,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),L&&(this.stores.setMatches(D),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...b.filter(K=>K.status!=="error"&&K.status!=="notFound"&&K.status!=="redirected")]),this.clearExpiredCache())});for(const[D,L]of[[R,"onLeave"],[M,"onEnter"],[C,"onStay"]])if(D)for(const j of D)this.looseRoutesById[j.routeId].options[L]?.(j)})})}})}catch(S){me(S)?(r=S,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):le(S)&&(h=S);const g=r?r.status:h?404:this.stores.matches.get().some(b=>b.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(g),this.stores.redirect.set(r)})}this.latestLoadPromise===d&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),m()})}),this.latestLoadPromise=d,await d;this.latestLoadPromise&&d!==this.latestLoadPromise;)await this.latestLoadPromise;let y;this.hasNotFoundMatch()?y=404:this.stores.matches.get().some(m=>m.status==="error")&&(y=500),y!==void 0&&this.stores.statusCode.set(y)},this.startViewTransition=s=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const h=this.latestLocation,d=this.stores.resolvedLocation.get(),p=typeof o.types=="function"?o.types(ml(h,d)):o.types;if(p===!1){s();return}r={update:s,types:p}}else r=s;document.startViewTransition(r)}else s()},this.updateMatch=(s,o)=>{this.startTransition(()=>{const r=this.stores.pendingMatchStores.get(s);if(r){r.set(o);return}const h=this.stores.matchStores.get(s);if(h){h.set(o);return}const d=this.stores.cachedMatchStores.get(s);if(d){const p=o(d.get());p.status==="redirected"?this.stores.cachedMatchStores.delete(s)&&this.stores.cachedIds.set(y=>y.filter(m=>m!==s)):d.set(p)}})},this.getMatch=s=>this.stores.cachedMatchStores.get(s)?.get()??this.stores.pendingMatchStores.get(s)?.get()??this.stores.matchStores.get(s)?.get(),this.invalidate=s=>{const o=r=>s?.filter?.(r)??!0?{...r,invalid:!0,...s?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(o)),this.stores.setCached(this.stores.cachedMatches.get().map(o)),this.stores.setPending(this.stores.pendingMatches.get().map(o))}),this.shouldViewTransition=!1,this.load({sync:s?.sync})},this.getParsedLocationHref=s=>s.publicHref||"/",this.resolveRedirect=s=>{const o=s.headers.get("Location");if(!s.options.href||s.options._builtLocation){const r=s.options._builtLocation??this.buildLocation(s.options),h=this.getParsedLocationHref(r);s.options.href=h,s.headers.set("Location",h)}else if(o)try{const r=new URL(o);if(this.origin&&r.origin===this.origin){const h=r.pathname+r.search+r.hash;s.options.href=h,s.headers.set("Location",h)}}catch{}if(s.options.href&&!s.options._builtLocation&&ns(s.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{const o=s?.filter;o!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(r=>!o(r))):this.stores.setCached([])},this.clearExpiredCache=()=>{const s=Date.now(),o=r=>{const h=this.looseRoutesById[r.routeId];if(!h.options.loader)return!0;const d=(r.preload?h.options.preloadGcTime??this.options.defaultPreloadGcTime:h.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:s-r.updatedAt>=d};this.clearCache({filter:o})},this.loadRouteChunk=Ti,this.preloadRoute=async s=>{const o=s._builtLocation??this.buildLocation(s);let r=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:s});const h=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),d=new Set([...h,...this.stores.cachedIds.get()]),p=r.filter(y=>!d.has(y.id));if(p.length){const y=this.stores.cachedMatches.get();this.stores.setCached([...y,...p])}try{return r=await Qm({router:this,matches:r,location:o,preload:!0,updateMatch:(y,m)=>{h.has(y)?r=r.map(S=>S.id===y?m(S):S):this.updateMatch(y,m)}}),r}catch(y){if(me(y))return y.options.reloadDocument?void 0:await this.preloadRoute({...y.options,_fromLocation:o});le(y)||console.error(y);return}},this.matchRoute=(s,o)=>{const r={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},h=this.buildLocation(r);if(o?.pending&&this.stores.status.get()!=="pending")return!1;const d=(o?.pending===void 0?!this.stores.isLoading.get():o.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),p=y0(h.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,d.pathname,this.processedTree);return!p||s.params&&!Sa(p.rawParams,s.params,{partial:!0})?!1:o?.includeSearch??!0?Sa(d.search,h.search,{partial:!0})?p.rawParams:!1:p.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(s=>s.status==="notFound"||s.globalNotFound),this.getStoreConfig=i,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...l,caseSensitive:l.caseSensitive??!1,notFoundMode:l.notFoundMode??"fuzzy",stringifySearch:l.stringifySearch??A0,parseSearch:l.parseSearch??C0,protocolAllowlist:l.protocolAllowlist??o0}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:l,routesByPath:i,processedTree:s}){this.routesById=l,this.routesByPath=i,this.processedTree=s;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)}getRouteBranch(l){let i=this.routeBranchCache.get(l);return i||(i=Ty(l),this.routeBranchCache.set(l,i)),i}get looseRoutesById(){return this.routesById}getParentContext(l){return l?.id?l.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(l,i){const s=this.getMatchedRoutes(l.pathname),{foundRoute:o,routeParams:r}=s;let{matchedRoutes:h}=s,d=!1;(o?o.path!=="/"&&r["**"]:vn(l.pathname))&&(this.options.notFoundRoute?h=[...h,this.options.notFoundRoute]:d=!0);const p=d?k0(this.options.notFoundMode,h):void 0,y=new Array(h.length),m=new Map;for(const S of this.stores.matchStores.values())S.routeId&&m.set(S.routeId,S.get());for(let S=0;S<h.length;S++){const g=h[S],b=y[S-1];let R,M,C;{const tt=b?.search??l.search,wt=b?._strictSearch??void 0;try{const Ut=Wu(g.options.validateSearch,{...tt})??void 0;R={...tt,...Ut},M={...wt,...Ut},C=void 0}catch(Ut){let Ht=Ut;if(Ut instanceof is||(Ht=new is(Ut.message,{cause:Ut})),i?.throwOnError)throw Ht;R=tt,M={},C=Ht}}const D=g.options.loaderDeps?.({search:R})??"",L=D?JSON.stringify(D):"",{interpolatedPath:j,usedParams:X}=wm({path:g.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),G=g.id+j+L,K=this.getMatch(G),P=m.get(g.id),B=K?._strictParams??X;let Y;if(!K)try{Km(g,B)}catch(tt){if(le(tt)||me(tt)?Y=tt:Y=new K0(tt.message,{cause:tt}),i?.throwOnError)throw Y}Object.assign(r,B);const J=P?"stay":"enter";let it;if(K)it={...K,cause:J,params:P?.params??r,_strictParams:B,search:ma(P?P.search:K.search,R),_strictSearch:M};else{const tt=g.options.loader||g.options.beforeLoad||g.lazyFn||zy(g)?"pending":"success";it={id:G,ssr:g.options.ssr,index:S,routeId:g.id,params:P?.params??r,_strictParams:B,pathname:j,updatedAt:Date.now(),search:P?ma(P.search,R):R,_strictSearch:M,searchError:void 0,status:tt,isFetching:!1,error:void 0,paramsError:Y,__routeContext:void 0,_nonReactive:{loadPromise:yl()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:J,loaderDeps:P?pa(P.loaderDeps,D):D,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:g.options.staticData||{},fullPath:g.fullPath}}i?.preload||(it.globalNotFound=p===g.id),it.searchError=C;const nt=this.getParentContext(b);it.context={...nt,...it.__routeContext,...it.__beforeLoadContext},y[S]=it}for(let S=0;S<y.length;S++){const g=y[S],b=this.looseRoutesById[g.routeId],R=this.getMatch(g.id),M=m.get(g.routeId);if(g.params=M?ma(M.params,r):r,!R){const C=y[S-1],D=this.getParentContext(C);if(b.options.context){const L={deps:g.loaderDeps,params:g.params,context:D??{},location:l,navigate:j=>this.navigate({...j,_fromLocation:l}),buildLocation:this.buildLocation,cause:g.cause,abortController:g.abortController,preload:!!g.preload,matches:y,routeId:b.id};g.__routeContext=b.options.context(L)??void 0}g.context={...D,...g.__routeContext,...g.__beforeLoadContext}}}return y}matchRoutesLightweight(l){const{matchedRoutes:i,routeParams:s}=this.getMatchedRoutes(l.pathname),o=_i(i),r={...l.search};for(const m of i)try{Object.assign(r,Wu(m.options.validateSearch,r))}catch{}const h=_i(this.stores.matchesId.get()),d=h&&this.stores.matchStores.get(h)?.get(),p=d&&d.routeId===o.id&&d.pathname===l.pathname;let y;if(p)y=d.params;else{const m=Object.assign(Object.create(null),s);for(const S of i)try{Km(S,m)}catch{}y=m}return{matchedRoutes:i,fullPath:o.fullPath,search:r,params:y}}},is=class extends Error{},K0=class extends Error{};function Z0(l){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:l,matches:[],statusCode:200}}function Wu(l,i){if(l==null)return{};if("~standard"in l){const s=l["~standard"].validate(i);if(s instanceof Promise)throw new is("Async validation not supported");if(s.issues)throw new is(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in l?l.parse(i):typeof l=="function"?l(i):{}}function J0({pathname:l,routesById:i,processedTree:s}){const o=Object.create(null),r=vn(l);let h;const d=v0(r,s,!0);return d&&(h=d.route,Object.assign(o,d.rawParams)),{matchedRoutes:d?.branch||[i.__root__],routeParams:o,foundRoute:h}}function P0({search:l,dest:i,destRoutes:s,_includeValidateSearch:o}){return F0(s)(l,i,o??!1)}function F0(l){const i={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of l){if("search"in r.options)r.options.search?.middlewares&&i.middlewares.push(...r.options.search.middlewares);else if(r.options.preSearchFilters||r.options.postSearchFilters){const h=({search:d,next:p})=>{let y=d;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(y=r.options.preSearchFilters.reduce((S,g)=>g(S),d));const m=p(y);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((S,g)=>g(S),m):m};i.middlewares.push(h)}if(r.options.validateSearch){const h=({search:d,next:p})=>{const y=p(d);if(!i._includeValidateSearch)return y;try{return{...y,...Wu(r.options.validateSearch,y)??void 0}}catch{return y}};i.middlewares.push(h)}}const s=({search:r})=>{const h=i.dest;return h.search?h.search===!0?r:va(h.search,r):{}};i.middlewares.push(s);const o=(r,h,d)=>{if(r>=d.length)return h;const p=d[r];return p({search:h,next:m=>o(r+1,m,d)})};return function(h,d,p){return i.dest=d,i._includeValidateSearch=p,o(0,h,i.middlewares)}}function k0(l,i){if(l!=="root")for(let s=i.length-1;s>=0;s--){const o=i[s];if(o.children)return o.id}return ba}function Km(l,i){const s=l.options.params?.parse??l.options.parseParams;if(s){const o=s(i);if(o===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(i,o)}}function W0(){try{return sessionStorage}catch{return}}const I0="tsr-scroll-restoration-v1_3",Uy=W0();function $0(){try{return JSON.parse(Uy?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function tS(){try{Uy?.setItem(I0,JSON.stringify(fl))}catch{}}const fl=$0(),Zm="data-scroll-restoration-id",eS=l=>l.state.__TSR_key||l.href;function nS(l){const i=l.getAttribute(Zm);if(i)return`[${Zm}="${i}"]`;let s="",o=l,r;for(;r=o.parentNode;){let h=1,d=o;for(;d=d.previousElementSibling;)h++;const p=`${o.localName}:nth-child(${h})`;s=s?`${p} > ${s}`:p,o=r}return s}let Ju=!1;const hl="window";function Io(l){try{return typeof l=="function"?l():document.querySelector(l)}catch{}}function Jm(l){const i=[];for(const s of l){if(s===hl)continue;const o=Io(s);o&&i.push(o)}return i}function aS(l,i){if(l.options.scrollRestoration&&(l.isScrollRestoring=!0),l.isScrollRestorationSetup)return;l.isScrollRestorationSetup=!0,Ju=!1;const s=l.options.getScrollRestorationKey||eS,o=new Map,r=(p,y,m)=>{const S=o.get(p)||{};S.scrollX=y,S.scrollY=m,o.set(p,S)};history.scrollRestoration="manual";const h=p=>{if(!(Ju||!l.isScrollRestoring))if(p.target===document)r(hl,scrollX,scrollY);else{const y=p.target;r(y,y.scrollLeft,y.scrollTop)}},d=p=>{if(!l.isScrollRestoring)return;const y=fl[p]||={};for(const[m,S]of o)m===hl?y[hl]=S:m.isConnected&&(y[nS(m)]=S)};document.addEventListener("scroll",h,!0),l.subscribe("onBeforeLoad",p=>{p.fromLocation&&d(s(p.fromLocation)),o.clear()}),addEventListener("pagehide",()=>{d(s(l.stores.resolvedLocation.get()??l.stores.location.get())),tS()}),l.subscribe("onRendered",p=>{const y=l.options.scrollRestorationBehavior,m=l.options.scrollToTopSelectors,S=l.resetNextScroll;let g;if(o.clear(),S||(l.resetNextScroll=!0),typeof l.options.scrollRestoration=="function"&&!l.options.scrollRestoration({location:l.latestLocation}))return;const b=s(p.toLocation),R=p.fromLocation&&s(p.fromLocation);if(l.isScrollRestoring&&R&&R!==b){const M=fl[R];if(M){let C=fl[b];for(const D in M){if(D===hl){if(S)continue}else{const L=Io(D);if(!L||S&&m&&(g??=Jm(m),g.includes(L)))continue}C||(C=fl[b]={}),C[D]??=M[D]}}}Ju=!0;try{const M=p.toLocation.hash,C=p.toLocation.state.__hashScrollIntoViewOptions??!0;let D=!1;if(S){const L=Wo.get(p.toLocation),j=M&&C&&(L==="PUSH"||L==="REPLACE"),X=l.isScrollRestoring?fl[b]:void 0;if(X)for(const G in X){const{scrollX:K,scrollY:P}=X[G];if(G===hl){if(j)continue;scrollTo({top:P,left:K,behavior:y}),D=!0}else{const B=Io(G);B&&(B.scrollLeft=K,B.scrollTop=P)}}if(!D&&!M){const G={top:0,left:0,behavior:y};if(scrollTo(G),m){g??=Jm(m);for(const K of g)K.scrollTo(G)}}}!D&&M&&C&&document.getElementById(M)?.scrollIntoView(C)}finally{Ju=!1}})}const lS="Error preloading route! ☝️";var Ly=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(l){if(this.init=i=>{this.originalIndex=i.originalIndex;const s=this.options,o=!s?.path&&!s?.id;this.parentRoute=this.options.getParentRoute?.(),o?this._path=ba:this.parentRoute||pn();let r=o?ba:s?.path;r&&r!=="/"&&(r=My(r));const h=s?.id||r;let d=o?ba:Fu([this.parentRoute.id==="__root__"?"":this.parentRoute.id,h]);r==="__root__"&&(r="/"),d!=="__root__"&&(d=Fu(["/",d]));const p=d==="__root__"?"/":Fu([this.parentRoute.fullPath,r]);this._path=r,this._id=d,this._fullPath=p,this._to=vn(p)},this.addChildren=i=>this._addFileChildren(i),this._addFileChildren=i=>(Array.isArray(i)&&(this.children=i),typeof i=="object"&&i!==null&&(this.children=Object.values(i)),this),this._addFileTypes=()=>this,this.updateLoader=i=>(Object.assign(this.options,i),this),this.update=i=>(Object.assign(this.options,i),this),this.lazy=i=>(this.lazyFn=i,this),this.redirect=i=>D0({from:this.fullPath,...i}),this.options=l||{},this.isRoot=!l?.getParentRoute,l?.id&&l?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},iS=class extends Ly{constructor(l){super(l)}};function rr(l){const i=l.errorComponent??fr;return lt.jsx(uS,{getResetKey:l.getResetKey,onCatch:l.onCatch,children:({error:s,reset:o})=>s?W.createElement(i,{error:s,reset:o}):l.children})}var uS=class extends W.Component{constructor(...l){super(...l),this.state={error:null}}static getDerivedStateFromProps(l,i){const s=l.getResetKey();return i.error&&i.resetKey!==s?{resetKey:s,error:null}:{resetKey:s}}static getDerivedStateFromError(l){return{error:l}}reset(){this.setState({error:null})}componentDidCatch(l,i){this.props.onCatch&&this.props.onCatch(l,i)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function fr({error:l}){const[i,s]=W.useState(!1);return lt.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[lt.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[lt.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),lt.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(o=>!o),children:i?"Hide Error":"Show Error"})]}),lt.jsx("div",{style:{height:".25rem"}}),i?lt.jsx("div",{children:lt.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:l.message?lt.jsx("code",{children:l.message}):null})}):null]})}function sS({children:l,fallback:i=null}){return Ny()?lt.jsx(gi.Fragment,{children:l}):lt.jsx(gi.Fragment,{children:i})}function Ny(){return gi.useSyncExternalStore(cS,()=>!0,()=>!1)}function cS(){return()=>{}}var wy=W.createContext(null);function Be(l){return W.useContext(wy)}var os=W.createContext(void 0),oS=W.createContext(void 0),Nt=(l=>(l[l.None=0]="None",l[l.Mutable=1]="Mutable",l[l.Watching=2]="Watching",l[l.RecursedCheck=4]="RecursedCheck",l[l.Recursed=8]="Recursed",l[l.Dirty=16]="Dirty",l[l.Pending=32]="Pending",l))(Nt||{});function rS({update:l,notify:i,unwatched:s}){return{link:o,unlink:r,propagate:h,checkDirty:d,shallowPropagate:p};function o(m,S,g){const b=S.depsTail;if(b!==void 0&&b.dep===m)return;const R=b!==void 0?b.nextDep:S.deps;if(R!==void 0&&R.dep===m){R.version=g,S.depsTail=R;return}const M=m.subsTail;if(M!==void 0&&M.version===g&&M.sub===S)return;const C=S.depsTail=m.subsTail={version:g,dep:m,sub:S,prevDep:b,nextDep:R,prevSub:M,nextSub:void 0};R!==void 0&&(R.prevDep=C),b!==void 0?b.nextDep=C:S.deps=C,M!==void 0?M.nextSub=C:m.subs=C}function r(m,S=m.sub){const g=m.dep,b=m.prevDep,R=m.nextDep,M=m.nextSub,C=m.prevSub;return R!==void 0?R.prevDep=b:S.depsTail=b,b!==void 0?b.nextDep=R:S.deps=R,M!==void 0?M.prevSub=C:g.subsTail=C,C!==void 0?C.nextSub=M:(g.subs=M)===void 0&&s(g),R}function h(m){let S=m.nextSub,g;t:do{const b=m.sub;let R=b.flags;if(R&60?R&12?R&4?!(R&48)&&y(m,b)?(b.flags=R|40,R&=1):R=0:b.flags=R&-9|32:R=0:b.flags=R|32,R&2&&i(b),R&1){const M=b.subs;if(M!==void 0){const C=(m=M).nextSub;C!==void 0&&(g={value:S,prev:g},S=C);continue}}if((m=S)!==void 0){S=m.nextSub;continue}for(;g!==void 0;)if(m=g.value,g=g.prev,m!==void 0){S=m.nextSub;continue t}break}while(!0)}function d(m,S){let g,b=0,R=!1;t:do{const M=m.dep,C=M.flags;if(S.flags&16)R=!0;else if((C&17)===17){if(l(M)){const D=M.subs;D.nextSub!==void 0&&p(D),R=!0}}else if((C&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(g={value:m,prev:g}),m=M.deps,S=M,++b;continue}if(!R){const D=m.nextDep;if(D!==void 0){m=D;continue}}for(;b--;){const D=S.subs,L=D.nextSub!==void 0;if(L?(m=g.value,g=g.prev):m=D,R){if(l(S)){L&&p(D),S=m.sub;continue}R=!1}else S.flags&=-33;S=m.sub;const j=m.nextDep;if(j!==void 0){m=j;continue t}}return R}while(!0)}function p(m){do{const S=m.sub,g=S.flags;(g&48)===32&&(S.flags=g|16,(g&6)===2&&i(S))}while((m=m.nextSub)!==void 0)}function y(m,S){let g=S.depsTail;for(;g!==void 0;){if(g===m)return!0;g=g.prevDep}return!1}}function fS(l,i,s){const o=typeof l=="object",r=o?l:void 0;return{next:(o?l.next:l)?.bind(r),error:(o?l.error:i)?.bind(r),complete:(o?l.complete:s)?.bind(r)}}const $o=[];let Iu=0;const{link:Pm,unlink:hS,propagate:dS,checkDirty:By,shallowPropagate:Fm}=rS({update(l){return l._update()},notify(l){$o[tr++]=l,l.flags&=~Nt.Watching},unwatched(l){l.depsTail!==void 0&&(l.depsTail=void 0,l.flags=Nt.Mutable|Nt.Dirty,us(l))}});let Pu=0,tr=0,Je,er=0;function jy(l){try{++er,l()}finally{--er||Hy()}}function us(l){const i=l.depsTail;let s=i!==void 0?i.nextDep:l.deps;for(;s!==void 0;)s=hS(s,l)}function Hy(){if(!(er>0)){for(;Pu<tr;){const l=$o[Pu];$o[Pu++]=void 0,l.notify()}Pu=0,tr=0}}function km(l,i){const s=typeof l=="function",o=l,r={_snapshot:s?void 0:l,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:s?Nt.None:Nt.Mutable,get(){return Je!==void 0&&Pm(r,Je,Iu),r._snapshot},subscribe(h){const d=fS(h),p={current:!1},y=mS(()=>{r.get(),p.current?d.next?.(r._snapshot):p.current=!0});return{unsubscribe:()=>{y.stop()}}},_update(h){const d=Je,p=i?.compare??Object.is;if(s)Je=r,++Iu,r.depsTail=void 0;else if(h===void 0)return!1;s&&(r.flags=Nt.Mutable|Nt.RecursedCheck);try{const y=r._snapshot,m=typeof h=="function"?h(y):h===void 0&&s?o(y):h;return y===void 0||!p(y,m)?(r._snapshot=m,!0):!1}finally{Je=d,s&&(r.flags&=~Nt.RecursedCheck),us(r)}}};return s?(r.flags=Nt.Mutable|Nt.Dirty,r.get=function(){const h=r.flags;if(h&Nt.Dirty||h&Nt.Pending&&By(r.deps,r)){if(r._update()){const d=r.subs;d!==void 0&&Fm(d)}}else h&Nt.Pending&&(r.flags=h&~Nt.Pending);return Je!==void 0&&Pm(r,Je,Iu),r._snapshot}):r.set=function(h){if(r._update(h)){const d=r.subs;d!==void 0&&(dS(d),Fm(d),Hy())}},r}function mS(l){const i=()=>{const o=Je;Je=s,++Iu,s.depsTail=void 0,s.flags=Nt.Watching|Nt.RecursedCheck;try{return l()}finally{Je=o,s.flags&=~Nt.RecursedCheck,us(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Nt.Watching|Nt.RecursedCheck,notify(){const o=this.flags;o&Nt.Dirty||o&Nt.Pending&&By(this.deps,this)?i():this.flags=Nt.Watching},stop(){this.flags=Nt.None,this.depsTail=void 0,us(this)}};return i(),s}var jo={exports:{}},Ho={},qo={exports:{}},Qo={};var Wm;function yS(){if(Wm)return Qo;Wm=1;var l=Mi();function i(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var s=typeof Object.is=="function"?Object.is:i,o=l.useState,r=l.useEffect,h=l.useLayoutEffect,d=l.useDebugValue;function p(g,b){var R=b(),M=o({inst:{value:R,getSnapshot:b}}),C=M[0].inst,D=M[1];return h(function(){C.value=R,C.getSnapshot=b,y(C)&&D({inst:C})},[g,R,b]),r(function(){return y(C)&&D({inst:C}),g(function(){y(C)&&D({inst:C})})},[g]),d(R),R}function y(g){var b=g.getSnapshot;g=g.value;try{var R=b();return!s(g,R)}catch{return!0}}function m(g,b){return b()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:p;return Qo.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:S,Qo}var Im;function vS(){return Im||(Im=1,qo.exports=yS()),qo.exports}var $m;function pS(){if($m)return Ho;$m=1;var l=Mi(),i=vS();function s(m,S){return m===S&&(m!==0||1/m===1/S)||m!==m&&S!==S}var o=typeof Object.is=="function"?Object.is:s,r=i.useSyncExternalStore,h=l.useRef,d=l.useEffect,p=l.useMemo,y=l.useDebugValue;return Ho.useSyncExternalStoreWithSelector=function(m,S,g,b,R){var M=h(null);if(M.current===null){var C={hasValue:!1,value:null};M.current=C}else C=M.current;M=p(function(){function L(P){if(!j){if(j=!0,X=P,P=b(P),R!==void 0&&C.hasValue){var B=C.value;if(R(B,P))return G=B}return G=P}if(B=G,o(X,P))return B;var Y=b(P);return R!==void 0&&R(B,Y)?(X=P,B):(X=P,G=Y)}var j=!1,X,G,K=g===void 0?null:g;return[function(){return L(S())},K===null?void 0:function(){return L(K())}]},[S,g,b,R]);var D=r(m,M[0],M[1]);return d(function(){C.hasValue=!0,C.value=D},[D]),y(D),D},Ho}var ty;function gS(){return ty||(ty=1,jo.exports=pS()),jo.exports}var SS=gS();function bS(l,i){return l===i}function Me(l,i,s=bS){const o=W.useCallback(d=>{if(!l)return()=>{};const{unsubscribe:p}=l.subscribe(d);return p},[l]),r=W.useCallback(()=>l?.get(),[l]);return SS.useSyncExternalStoreWithSelector(o,r,r,i,s)}var _S={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Ea(l){const i=Be(),s=W.useContext(l.from?oS:os),o=l.from??s,r=o?l.from?i.stores.getRouteMatchStore(o):i.stores.matchStores.get(o):void 0,h=W.useRef(void 0);return Me(r??_S,d=>{if((l.shouldThrow??!0)&&!d&&pn(),d===void 0)return;const p=l.select?l.select(d):d;if(l.structuralSharing??i.options.defaultStructuralSharing){const y=pa(h.current,p);return h.current=y,y}return p})}function qy(l){return Ea({from:l.from,strict:l.strict,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.loaderData):i.loaderData})}function Qy(l){const{select:i,...s}=l;return Ea({...s,select:o=>i?i(o.loaderDeps):o.loaderDeps})}function Yy(l){return Ea({from:l.from,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,strict:l.strict,select:i=>{const s=l.strict===!1?i.params:i._strictParams;return l.select?l.select(s):s}})}function Gy(l){return Ea({from:l.from,strict:l.strict,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.search):i.search})}function Xy(l){const i=Be();return W.useCallback(s=>i.navigate({...s,from:s.from??l?.from}),[l?.from,i])}function Vy(l){return Ea({...l,select:i=>l.select?l.select(i.context):i.context})}var RS=ay();function ES(l,i){const s=Be(),o=i0(i),{activeProps:r,inactiveProps:h,activeOptions:d,to:p,preload:y,preloadDelay:m,preloadIntentProximity:S,hashScrollIntoView:g,replace:b,startTransition:R,resetScroll:M,viewTransition:C,children:D,target:L,disabled:j,style:X,className:G,onClick:K,onBlur:P,onFocus:B,onMouseEnter:Y,onMouseLeave:J,onTouchStart:it,ignoreBlocker:nt,params:tt,search:wt,hash:Ut,state:Ht,mask:N,reloadDocument:V,unsafeRelative:at,from:St,_fromLocation:_t,...T}=l,q=Ny(),Z=W.useMemo(()=>l,[s,l.from,l._fromLocation,l.hash,l.to,l.search,l.params,l.state,l.mask,l.unsafeRelative]),F=Me(s.stores.location,xt=>xt,(xt,kt)=>xt.href===kt.href),$=W.useMemo(()=>{const xt={_fromLocation:F,...Z};return s.buildLocation(xt)},[s,F,Z]),rt=$.maskedLocation?$.maskedLocation.publicHref:$.publicHref,vt=$.maskedLocation?$.maskedLocation.external:$.external,qt=W.useMemo(()=>xS(rt,vt,s.history,j),[j,vt,rt,s.history]),Ct=W.useMemo(()=>{if(qt?.external)return ns(qt.href,s.protocolAllowlist)?void 0:qt.href;if(!zS(p)&&!(typeof p!="string"||p.indexOf(":")===-1))try{return new URL(p),ns(p,s.protocolAllowlist)?void 0:p}catch{}},[p,qt,s.protocolAllowlist]),Pe=W.useMemo(()=>{if(Ct)return!1;if(d?.exact){if(!R0(F.pathname,$.pathname,s.basepath))return!1}else{const xt=as(F.pathname,s.basepath),kt=as($.pathname,s.basepath);if(!(xt.startsWith(kt)&&(xt.length===kt.length||xt[kt.length]==="/")))return!1}return(d?.includeSearch??!0)&&!Sa(F.search,$.search,{partial:!d?.exact,ignoreUndefined:!d?.explicitUndefined})?!1:d?.includeHash?q&&F.hash===$.hash:!0},[d?.exact,d?.explicitUndefined,d?.includeHash,d?.includeSearch,F,Ct,q,$.hash,$.pathname,$.search,s.basepath]),Fe=Pe?va(r,{})??TS:Yo,gn=Pe?Yo:va(h,{})??Yo,pl=[G,Fe.className,gn.className].filter(Boolean).join(" "),Ye=(X||Fe.style||gn.style)&&{...X,...Fe.style,...gn.style},[gl,Ta]=W.useState(!1),Oi=W.useRef(!1),ke=l.reloadDocument||Ct?!1:y??s.options.defaultPreload,Fn=m??s.options.defaultPreloadDelay??0,je=W.useCallback(()=>{s.preloadRoute({...Z,_builtLocation:$}).catch(xt=>{console.warn(xt),console.warn(lS)})},[s,Z,$]);l0(o,W.useCallback(xt=>{xt?.isIntersecting&&je()},[je]),AS,{disabled:!!j||ke!=="viewport"}),W.useEffect(()=>{Oi.current||!j&&ke==="render"&&(je(),Oi.current=!0)},[j,je,ke]);const Sl=xt=>{const kt=xt.currentTarget.getAttribute("target"),Ge=L!==void 0?L:kt;if(!j&&!DS(xt)&&!xt.defaultPrevented&&(!Ge||Ge==="_self")&&xt.button===0){xt.preventDefault(),RS.flushSync(()=>{Ta(!0)});const Ma=s.subscribe("onResolved",()=>{Ma(),Ta(!1)});s.navigate({...Z,replace:b,resetScroll:M,hashScrollIntoView:g,startTransition:R,viewTransition:C,ignoreBlocker:nt})}};if(Ct)return{...T,ref:o,href:Ct,...D&&{children:D},...L&&{target:L},...j&&{disabled:j},...X&&{style:X},...G&&{className:G},...K&&{onClick:K},...P&&{onBlur:P},...B&&{onFocus:B},...Y&&{onMouseEnter:Y},...J&&{onMouseLeave:J},...it&&{onTouchStart:it}};const Ci=xt=>{if(j||ke!=="intent")return;if(!Fn){je();return}const kt=xt.currentTarget;if(vi.has(kt))return;const Ge=setTimeout(()=>{vi.delete(kt),je()},Fn);vi.set(kt,Ge)},rs=xt=>{j||ke!=="intent"||je()},ne=xt=>{if(j||!ke||!Fn)return;const kt=xt.currentTarget,Ge=vi.get(kt);Ge&&(clearTimeout(Ge),vi.delete(kt))};return{...T,...Fe,...gn,href:qt?.href,ref:o,onClick:rl([K,Sl]),onBlur:rl([P,ne]),onFocus:rl([B,Ci]),onMouseEnter:rl([Y,Ci]),onMouseLeave:rl([J,ne]),onTouchStart:rl([it,rs]),disabled:!!j,target:L,...Ye&&{style:Ye},...pl&&{className:pl},...j&&MS,...Pe&&OS,...q&&gl&&CS}}var Yo={},TS={className:"active"},MS={role:"link","aria-disabled":!0},OS={"data-status":"active","aria-current":"page"},CS={"data-transitioning":"transitioning"},vi=new WeakMap,AS={rootMargin:"100px"},rl=l=>i=>{for(const s of l)if(s){if(i.defaultPrevented)return;s(i)}};function xS(l,i,s,o){if(!o)return i?{href:l,external:!0}:{href:s.createHref(l)||"/",external:!1}}function zS(l){if(typeof l!="string")return!1;const i=l.charCodeAt(0);return i===47?l.charCodeAt(1)!==47:i===46}var Ky=W.forwardRef((l,i)=>{const{_asChild:s,...o}=l,{type:r,...h}=ES(o,i),d=typeof o.children=="function"?o.children({isActive:h["data-status"]==="active"}):o.children;if(!s){const{disabled:p,...y}=h;return W.createElement("a",y,d)}return W.createElement(s,h,d)});function DS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}var US=class extends Ly{constructor(l){super(l),this.useMatch=i=>Ea({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>Vy({...i,from:this.id}),this.useSearch=i=>Gy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>Yy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Qy({...i,from:this.id}),this.useLoaderData=i=>qy({...i,from:this.id}),this.useNavigate=()=>Xy({from:this.fullPath}),this.Link=gi.forwardRef((i,s)=>lt.jsx(Ky,{ref:s,from:this.fullPath,...i}))}};function LS(l){return new US(l)}var NS=class extends iS{constructor(l){super(l),this.useMatch=i=>Ea({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>Vy({...i,from:this.id}),this.useSearch=i=>Gy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>Yy({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Qy({...i,from:this.id}),this.useLoaderData=i=>qy({...i,from:this.id}),this.useNavigate=()=>Xy({from:this.fullPath}),this.Link=gi.forwardRef((i,s)=>lt.jsx(Ky,{ref:s,from:this.fullPath,...i}))}};function ib(l){return new NS(l)}function ub(l){return new wS(l,{silent:!0}).createRoute}var wS=class{constructor(l,i){this.path=l,this.createRoute=s=>{const o=LS(s);return o.isRoot=!1,o},this.silent=i?.silent}};function BS(l){const i=Be(),s=`not-found-${Me(i.stores.location,o=>o.pathname)}-${Me(i.stores.status,o=>o)}`;return lt.jsx(rr,{getResetKey:()=>s,onCatch:(o,r)=>{if(le(o))l.onCatch?.(o,r);else throw o},errorComponent:({error:o})=>{if(le(o))return l.fallback?.(o);throw o},children:l.children})}function jS(){return lt.jsx("p",{children:"Not Found"})}function dl(l){return lt.jsx(lt.Fragment,{children:l.children})}function Zy(l,i,s){return i.options.notFoundComponent?lt.jsx(i.options.notFoundComponent,{...s}):l.options.defaultNotFoundComponent?lt.jsx(l.options.defaultNotFoundComponent,{...s}):lt.jsx(jS,{})}function HS(l){return null}function qS(){return HS(Be()),null}var Jy=W.memo(function({matchId:i}){const s=Be(),o=s.stores.matchStores.get(i);o||pn();const r=Me(s.stores.loadedAt,d=>d),h=Me(o,d=>d);return lt.jsx(QS,{router:s,matchId:i,resetKey:r,matchState:W.useMemo(()=>{const d=h.routeId,p=s.routesById[d].parentRoute?.id;return{routeId:d,ssr:h.ssr,_displayPending:h._displayPending,parentRouteId:p}},[h._displayPending,h.routeId,h.ssr,s.routesById])})});function QS({router:l,matchId:i,resetKey:s,matchState:o}){const r=l.routesById[o.routeId],h=r.options.pendingComponent??l.options.defaultPendingComponent,d=h?lt.jsx(h,{}):null,p=r.options.errorComponent??l.options.defaultErrorComponent,y=r.options.onCatch??l.options.defaultOnCatch,m=r.isRoot?r.options.notFoundComponent??l.options.notFoundRoute?.options.component:r.options.notFoundComponent,S=o.ssr===!1||o.ssr==="data-only",g=(!r.isRoot||r.options.wrapInSuspense||S)&&(r.options.wrapInSuspense??h??(r.options.errorComponent?.preload||S))?W.Suspense:dl,b=p?rr:dl,R=m?BS:dl;return lt.jsxs(r.isRoot?r.options.shellComponent??dl:dl,{children:[lt.jsx(os.Provider,{value:i,children:lt.jsx(g,{fallback:d,children:lt.jsx(b,{getResetKey:()=>s,errorComponent:p||fr,onCatch:(M,C)=>{if(le(M))throw M.routeId??=o.routeId,M;y?.(M,C)},children:lt.jsx(R,{fallback:M=>{if(M.routeId??=o.routeId,!m||M.routeId&&M.routeId!==o.routeId||!M.routeId&&!r.isRoot)throw M;return W.createElement(m,M)},children:S||o._displayPending?lt.jsx(sS,{fallback:d,children:lt.jsx(ey,{matchId:i})}):lt.jsx(ey,{matchId:i})})})})}),o.parentRouteId===ba?lt.jsxs(lt.Fragment,{children:[lt.jsx(YS,{resetKey:s}),l.options.scrollRestoration&&gy?lt.jsx(qS,{}):null]}):null]})}function YS({resetKey:l}){const i=Be(),s=W.useRef(void 0);return pi(()=>{const o=i.latestLocation.href;(s.current===void 0||s.current!==o)&&(i.emit({type:"onRendered",...ml(i.stores.location.get(),i.stores.resolvedLocation.get())}),s.current=o)},[i.latestLocation.state.__TSR_key,l,i]),null}var ey=W.memo(function({matchId:i}){const s=Be(),o=(S,g)=>s.getMatch(S.id)?._nonReactive[g]??S._nonReactive[g],r=s.stores.matchStores.get(i);r||pn();const h=Me(r,S=>S),d=h.routeId,p=s.routesById[d],y=W.useMemo(()=>{const S=(s.routesById[d].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:d,loaderDeps:h.loaderDeps,params:h._strictParams,search:h._strictSearch});return S?JSON.stringify(S):void 0},[d,h.loaderDeps,h._strictParams,h._strictSearch,s.options.defaultRemountDeps,s.routesById]),m=W.useMemo(()=>{const S=p.options.component??s.options.defaultComponent;return S?lt.jsx(S,{},y):lt.jsx(GS,{})},[y,p.options.component,s.options.defaultComponent]);if(h._displayPending)throw o(h,"displayPendingPromise");if(h._forcePending)throw o(h,"minPendingPromise");if(h.status==="pending"){const S=p.options.pendingMinMs??s.options.defaultPendingMinMs;if(S){const g=s.getMatch(h.id);if(g&&!g._nonReactive.minPendingPromise){const b=yl();g._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),g._nonReactive.minPendingPromise=void 0},S)}}throw o(h,"loadPromise")}if(h.status==="notFound")return le(h.error)||pn(),Zy(s,p,h.error);if(h.status==="redirected")throw me(h.error)||pn(),o(h,"loadPromise");if(h.status==="error")throw h.error;return m}),GS=W.memo(function(){const i=Be(),s=W.useContext(os);let o,r=!1,h;{const m=s?i.stores.matchStores.get(s):void 0;[o,r]=Me(m,S=>[S?.routeId,S?.globalNotFound??!1]),h=Me(i.stores.matchesId,S=>S[S.findIndex(g=>g===s)+1])}const d=o?i.routesById[o]:void 0,p=i.options.defaultPendingComponent?lt.jsx(i.options.defaultPendingComponent,{}):null;if(r)return d||pn(),Zy(i,d,void 0);if(!h)return null;const y=lt.jsx(Jy,{matchId:h});return o===ba?lt.jsx(W.Suspense,{fallback:p,children:y}):y});function XS(){const l=Be(),i=W.useRef({router:l,mounted:!1}),[s,o]=W.useState(!1),r=Me(l.stores.isLoading,g=>g),h=Me(l.stores.hasPending,g=>g),d=zo(r),p=r||s||h,y=zo(p),m=r||h,S=zo(m);return l.startTransition=g=>{o(!0),W.startTransition(()=>{g(),o(!1)})},W.useEffect(()=>{const g=l.history.subscribe(l.load),b=l.buildLocation({to:l.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return vn(l.latestLocation.publicHref)!==vn(b.publicHref)&&l.commitLocation({...b,replace:!0}),()=>{g()}},[l,l.history]),pi(()=>{if(typeof window<"u"&&l.ssr||i.current.router===l&&i.current.mounted)return;i.current={router:l,mounted:!0},(async()=>{try{await l.load()}catch(b){console.error(b)}})()},[l]),pi(()=>{d&&!r&&l.emit({type:"onLoad",...ml(l.stores.location.get(),l.stores.resolvedLocation.get())})},[d,l,r]),pi(()=>{S&&!m&&l.emit({type:"onBeforeRouteMount",...ml(l.stores.location.get(),l.stores.resolvedLocation.get())})},[m,S,l]),pi(()=>{if(y&&!p){const g=ml(l.stores.location.get(),l.stores.resolvedLocation.get());l.emit({type:"onResolved",...g}),jy(()=>{l.stores.status.set("idle"),l.stores.resolvedLocation.set(l.stores.location.get())})}},[p,y,l]),null}function VS(){const l=Be(),i=l.routesById[ba].options.pendingComponent??l.options.defaultPendingComponent,s=i?lt.jsx(i,{}):null,o=lt.jsxs(typeof document<"u"&&l.ssr?dl:W.Suspense,{fallback:s,children:[lt.jsx(XS,{}),lt.jsx(KS,{})]});return l.options.InnerWrap?lt.jsx(l.options.InnerWrap,{children:o}):o}function KS(){const l=Be(),i=Me(l.stores.firstId,r=>r),s=Me(l.stores.loadedAt,r=>r),o=i?lt.jsx(Jy,{matchId:i}):null;return lt.jsx(os.Provider,{value:i,children:l.options.disableGlobalCatchBoundary?o:lt.jsx(rr,{getResetKey:()=>s,errorComponent:fr,onCatch:void 0,children:o})})}var ZS=l=>({createMutableStore:km,createReadonlyStore:km,batch:jy}),sb=l=>new JS(l),JS=class extends V0{constructor(l){super(l,ZS)}};function PS({router:l,children:i,...s}){by(s)&&l.update({...l.options,...s,context:{...l.options.context,...s.context}});const o=lt.jsx(wy.Provider,{value:l,children:i});return l.options.Wrap?lt.jsx(l.options.Wrap,{children:o}):o}function cb({router:l,...i}){return lt.jsx(PS,{router:l,...i,children:lt.jsx(VS,{})})}const FS="modulepreload",kS=function(l){return"/"+l},ny={},ob=function(i,s,o){let r=Promise.resolve();if(s&&s.length>0){let y=function(m){return Promise.all(m.map(S=>Promise.resolve(S).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=d?.nonce||d?.getAttribute("nonce");r=y(s.map(m=>{if(m=kS(m),m in ny)return;ny[m]=!0;const S=m.endsWith(".css"),g=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${g}`))return;const b=document.createElement("link");if(b.rel=S?"stylesheet":FS,S||(b.as="script"),b.crossOrigin="",b.href=m,p&&b.setAttribute("nonce",p),document.head.appendChild(b),S)return new Promise((R,M)=>{b.addEventListener("load",R),b.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${m}`)))})}))}function h(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return r.then(d=>{for(const p of d||[])p.status==="rejected"&&h(p.reason);return i().catch(h)})};export{GS as O,tb as Q,gi as R,ob as _,eb as a,cb as b,$S as c,WS as d,ub as e,ib as f,sb as g,IS as h,dg as i,lt as j,W as k,D0 as l,ab as m,Xy as n,nb as o,yy as p,RS as r,lb as u};