claude-session-viewer 0.2.3 → 0.2.5

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.
@@ -0,0 +1,51 @@
1
+ var ou=e=>{throw TypeError(e)};var po=(e,t,n)=>t.has(e)||ou("Cannot "+n);var y=(e,t,n)=>(po(e,t,"read from private field"),n?n.call(e):t.get(e)),D=(e,t,n)=>t.has(e)?ou("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_=(e,t,n,r)=>(po(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),W=(e,t,n)=>(po(e,t,"access private method"),n);var Wi=(e,t,n,r)=>({set _(i){_(e,t,i,n)},get _(){return y(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();function qh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xc={exports:{}},Kl={},Jc={exports:{}},A={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Oi=Symbol.for("react.element"),bh=Symbol.for("react.portal"),Xh=Symbol.for("react.fragment"),Jh=Symbol.for("react.strict_mode"),Zh=Symbol.for("react.profiler"),ep=Symbol.for("react.provider"),tp=Symbol.for("react.context"),np=Symbol.for("react.forward_ref"),rp=Symbol.for("react.suspense"),ip=Symbol.for("react.memo"),lp=Symbol.for("react.lazy"),su=Symbol.iterator;function op(e){return e===null||typeof e!="object"?null:(e=su&&e[su]||e["@@iterator"],typeof e=="function"?e:null)}var Zc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ef=Object.assign,tf={};function Rr(e,t,n){this.props=e,this.context=t,this.refs=tf,this.updater=n||Zc}Rr.prototype.isReactComponent={};Rr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Rr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function nf(){}nf.prototype=Rr.prototype;function na(e,t,n){this.props=e,this.context=t,this.refs=tf,this.updater=n||Zc}var ra=na.prototype=new nf;ra.constructor=na;ef(ra,Rr.prototype);ra.isPureReactComponent=!0;var au=Array.isArray,rf=Object.prototype.hasOwnProperty,ia={current:null},lf={key:!0,ref:!0,__self:!0,__source:!0};function of(e,t,n){var r,i={},l=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(l=""+t.key),t)rf.call(t,r)&&!lf.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Oi,type:e,key:l,ref:o,props:i,_owner:ia.current}}function sp(e,t){return{$$typeof:Oi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function la(e){return typeof e=="object"&&e!==null&&e.$$typeof===Oi}function ap(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var uu=/\/+/g;function mo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ap(""+e.key):t.toString(36)}function ol(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Oi:case bh:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+mo(o,0):r,au(i)?(n="",e!=null&&(n=e.replace(uu,"$&/")+"/"),ol(i,t,n,"",function(u){return u})):i!=null&&(la(i)&&(i=sp(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(uu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",au(e))for(var s=0;s<e.length;s++){l=e[s];var a=r+mo(l,s);o+=ol(l,t,n,a,i)}else if(a=op(e),typeof a=="function")for(e=a.call(e),s=0;!(l=e.next()).done;)l=l.value,a=r+mo(l,s++),o+=ol(l,t,n,a,i);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function $i(e,t,n){if(e==null)return e;var r=[],i=0;return ol(e,r,"","",function(l){return t.call(n,l,i++)}),r}function up(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Re={current:null},sl={transition:null},cp={ReactCurrentDispatcher:Re,ReactCurrentBatchConfig:sl,ReactCurrentOwner:ia};function sf(){throw Error("act(...) is not supported in production builds of React.")}A.Children={map:$i,forEach:function(e,t,n){$i(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return $i(e,function(){t++}),t},toArray:function(e){return $i(e,function(t){return t})||[]},only:function(e){if(!la(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};A.Component=Rr;A.Fragment=Xh;A.Profiler=Zh;A.PureComponent=na;A.StrictMode=Jh;A.Suspense=rp;A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cp;A.act=sf;A.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ef({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=ia.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)rf.call(t,a)&&!lf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Oi,type:e.type,key:i,ref:l,props:r,_owner:o}};A.createContext=function(e){return e={$$typeof:tp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ep,_context:e},e.Consumer=e};A.createElement=of;A.createFactory=function(e){var t=of.bind(null,e);return t.type=e,t};A.createRef=function(){return{current:null}};A.forwardRef=function(e){return{$$typeof:np,render:e}};A.isValidElement=la;A.lazy=function(e){return{$$typeof:lp,_payload:{_status:-1,_result:e},_init:up}};A.memo=function(e,t){return{$$typeof:ip,type:e,compare:t===void 0?null:t}};A.startTransition=function(e){var t=sl.transition;sl.transition={};try{e()}finally{sl.transition=t}};A.unstable_act=sf;A.useCallback=function(e,t){return Re.current.useCallback(e,t)};A.useContext=function(e){return Re.current.useContext(e)};A.useDebugValue=function(){};A.useDeferredValue=function(e){return Re.current.useDeferredValue(e)};A.useEffect=function(e,t){return Re.current.useEffect(e,t)};A.useId=function(){return Re.current.useId()};A.useImperativeHandle=function(e,t,n){return Re.current.useImperativeHandle(e,t,n)};A.useInsertionEffect=function(e,t){return Re.current.useInsertionEffect(e,t)};A.useLayoutEffect=function(e,t){return Re.current.useLayoutEffect(e,t)};A.useMemo=function(e,t){return Re.current.useMemo(e,t)};A.useReducer=function(e,t,n){return Re.current.useReducer(e,t,n)};A.useRef=function(e){return Re.current.useRef(e)};A.useState=function(e){return Re.current.useState(e)};A.useSyncExternalStore=function(e,t,n){return Re.current.useSyncExternalStore(e,t,n)};A.useTransition=function(){return Re.current.useTransition()};A.version="18.3.1";Jc.exports=A;var x=Jc.exports;const fp=qh(x);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var dp=x,hp=Symbol.for("react.element"),pp=Symbol.for("react.fragment"),mp=Object.prototype.hasOwnProperty,yp=dp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gp={key:!0,ref:!0,__self:!0,__source:!0};function af(e,t,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)mp.call(t,r)&&!gp.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:hp,type:e,key:l,ref:o,props:i,_owner:yp.current}}Kl.Fragment=pp;Kl.jsx=af;Kl.jsxs=af;Xc.exports=Kl;var k=Xc.exports,Vo={},uf={exports:{}},We={},cf={exports:{}},ff={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(L,z){var U=L.length;L.push(z);e:for(;0<U;){var ie=U-1>>>1,ce=L[ie];if(0<i(ce,z))L[ie]=z,L[U]=ce,U=ie;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var z=L[0],U=L.pop();if(U!==z){L[0]=U;e:for(var ie=0,ce=L.length,Ui=ce>>>1;ie<Ui;){var fn=2*(ie+1)-1,ho=L[fn],dn=fn+1,Ai=L[dn];if(0>i(ho,U))dn<ce&&0>i(Ai,ho)?(L[ie]=Ai,L[dn]=U,ie=dn):(L[ie]=ho,L[fn]=U,ie=fn);else if(dn<ce&&0>i(Ai,U))L[ie]=Ai,L[dn]=U,ie=dn;else break e}}return z}function i(L,z){var U=L.sortIndex-z.sortIndex;return U!==0?U:L.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var a=[],u=[],f=1,d=null,m=3,v=!1,g=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(L){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=L)r(u),z.sortIndex=z.expirationTime,t(a,z);else break;z=n(u)}}function w(L){if(S=!1,p(L),!g)if(n(a)!==null)g=!0,H(C);else{var z=n(u);z!==null&&Xe(w,z.startTime-L)}}function C(L,z){g=!1,S&&(S=!1,h(P),P=-1),v=!0;var U=m;try{for(p(z),d=n(a);d!==null&&(!(d.expirationTime>z)||L&&!j());){var ie=d.callback;if(typeof ie=="function"){d.callback=null,m=d.priorityLevel;var ce=ie(d.expirationTime<=z);z=e.unstable_now(),typeof ce=="function"?d.callback=ce:d===n(a)&&r(a),p(z)}else r(a);d=n(a)}if(d!==null)var Ui=!0;else{var fn=n(u);fn!==null&&Xe(w,fn.startTime-z),Ui=!1}return Ui}finally{d=null,m=U,v=!1}}var T=!1,O=null,P=-1,F=5,R=-1;function j(){return!(e.unstable_now()-R<F)}function I(){if(O!==null){var L=e.unstable_now();R=L;var z=!0;try{z=O(!0,L)}finally{z?B():(T=!1,O=null)}}else T=!1}var B;if(typeof c=="function")B=function(){c(I)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,Te=oe.port2;oe.port1.onmessage=I,B=function(){Te.postMessage(null)}}else B=function(){E(I,0)};function H(L){O=L,T||(T=!0,B())}function Xe(L,z){P=E(function(){L(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){g||v||(g=!0,H(C))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(L){switch(m){case 1:case 2:case 3:var z=3;break;default:z=m}var U=m;m=z;try{return L()}finally{m=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var U=m;m=L;try{return z()}finally{m=U}},e.unstable_scheduleCallback=function(L,z,U){var ie=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?ie+U:ie):U=ie,L){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=U+ce,L={id:f++,callback:z,priorityLevel:L,startTime:U,expirationTime:ce,sortIndex:-1},U>ie?(L.sortIndex=U,t(u,L),n(a)===null&&L===n(u)&&(S?(h(P),P=-1):S=!0,Xe(w,U-ie))):(L.sortIndex=ce,t(a,L),g||v||(g=!0,H(C))),L},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(L){var z=m;return function(){var U=m;m=z;try{return L.apply(this,arguments)}finally{m=U}}}})(ff);cf.exports=ff;var vp=cf.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var wp=x,Ae=vp;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var df=new Set,ri={};function Un(e,t){wr(e,t),wr(e+"Capture",t)}function wr(e,t){for(ri[e]=t,e=0;e<t.length;e++)df.add(t[e])}var Nt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yo=Object.prototype.hasOwnProperty,xp=/^[: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]*$/,cu={},fu={};function Sp(e){return Yo.call(fu,e)?!0:Yo.call(cu,e)?!1:xp.test(e)?fu[e]=!0:(cu[e]=!0,!1)}function Ep(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function kp(e,t,n,r){if(t===null||typeof t>"u"||Ep(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ne(e,t,n,r,i,l,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=o}var ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ge[e]=new Ne(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ge[t]=new Ne(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ge[e]=new Ne(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ge[e]=new Ne(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ge[e]=new Ne(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ge[e]=new Ne(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ge[e]=new Ne(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ge[e]=new Ne(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ge[e]=new Ne(e,5,!1,e.toLowerCase(),null,!1,!1)});var oa=/[\-:]([a-z])/g;function sa(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(oa,sa);ge[t]=new Ne(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(oa,sa);ge[t]=new Ne(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(oa,sa);ge[t]=new Ne(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ge[e]=new Ne(e,1,!1,e.toLowerCase(),null,!1,!1)});ge.xlinkHref=new Ne("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ge[e]=new Ne(e,1,!1,e.toLowerCase(),null,!0,!0)});function aa(e,t,n,r){var i=ge.hasOwnProperty(t)?ge[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(kp(t,n,i,r)&&(n=null),r||i===null?Sp(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Lt=wp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qi=Symbol.for("react.element"),Hn=Symbol.for("react.portal"),Bn=Symbol.for("react.fragment"),ua=Symbol.for("react.strict_mode"),Ko=Symbol.for("react.profiler"),hf=Symbol.for("react.provider"),pf=Symbol.for("react.context"),ca=Symbol.for("react.forward_ref"),Go=Symbol.for("react.suspense"),qo=Symbol.for("react.suspense_list"),fa=Symbol.for("react.memo"),It=Symbol.for("react.lazy"),mf=Symbol.for("react.offscreen"),du=Symbol.iterator;function Mr(e){return e===null||typeof e!="object"?null:(e=du&&e[du]||e["@@iterator"],typeof e=="function"?e:null)}var te=Object.assign,yo;function Qr(e){if(yo===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);yo=t&&t[1]||""}return`
34
+ `+yo+e}var go=!1;function vo(e,t){if(!e||go)return"";go=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35
+ `),l=r.stack.split(`
36
+ `),o=i.length-1,s=l.length-1;1<=o&&0<=s&&i[o]!==l[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==l[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==l[s]){var a=`
37
+ `+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{go=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Qr(e):""}function Cp(e){switch(e.tag){case 5:return Qr(e.type);case 16:return Qr("Lazy");case 13:return Qr("Suspense");case 19:return Qr("SuspenseList");case 0:case 2:case 15:return e=vo(e.type,!1),e;case 11:return e=vo(e.type.render,!1),e;case 1:return e=vo(e.type,!0),e;default:return""}}function bo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Bn:return"Fragment";case Hn:return"Portal";case Ko:return"Profiler";case ua:return"StrictMode";case Go:return"Suspense";case qo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pf:return(e.displayName||"Context")+".Consumer";case hf:return(e._context.displayName||"Context")+".Provider";case ca:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fa:return t=e.displayName||null,t!==null?t:bo(e.type)||"Memo";case It:t=e._payload,e=e._init;try{return bo(e(t))}catch{}}return null}function Pp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return bo(t);case 8:return t===ua?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function on(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rp(e){var t=yf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Hi(e){e._valueTracker||(e._valueTracker=Rp(e))}function gf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=yf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Xo(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=on(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function vf(e,t){t=t.checked,t!=null&&aa(e,"checked",t,!1)}function Jo(e,t){vf(e,t);var n=on(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Zo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Zo(e,t.type,on(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Zo(e,t,n){(t!=="number"||xl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Hr=Array.isArray;function tr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+on(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function es(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function mu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(Hr(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:on(n)}}function wf(e,t){var n=on(t.value),r=on(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function yu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function xf(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ts(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?xf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bi,Sf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Bi=Bi||document.createElement("div"),Bi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Bi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ii(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Np=["Webkit","ms","Moz","O"];Object.keys(Kr).forEach(function(e){Np.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Kr[t]=Kr[e]})});function Ef(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Kr.hasOwnProperty(e)&&Kr[e]?(""+t).trim():t+"px"}function kf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ef(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Tp=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ns(e,t){if(t){if(Tp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function rs(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var is=null;function da(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ls=null,nr=null,rr=null;function gu(e){if(e=Li(e)){if(typeof ls!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Jl(t),ls(e.stateNode,e.type,t))}}function Cf(e){nr?rr?rr.push(e):rr=[e]:nr=e}function Pf(){if(nr){var e=nr,t=rr;if(rr=nr=null,gu(e),t)for(e=0;e<t.length;e++)gu(t[e])}}function Rf(e,t){return e(t)}function Nf(){}var wo=!1;function Tf(e,t,n){if(wo)return e(t,n);wo=!0;try{return Rf(e,t,n)}finally{wo=!1,(nr!==null||rr!==null)&&(Nf(),Pf())}}function li(e,t){var n=e.stateNode;if(n===null)return null;var r=Jl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(N(231,t,typeof n));return n}var os=!1;if(Nt)try{var Lr={};Object.defineProperty(Lr,"passive",{get:function(){os=!0}}),window.addEventListener("test",Lr,Lr),window.removeEventListener("test",Lr,Lr)}catch{os=!1}function Op(e,t,n,r,i,l,o,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Gr=!1,Sl=null,El=!1,ss=null,_p={onError:function(e){Gr=!0,Sl=e}};function Mp(e,t,n,r,i,l,o,s,a){Gr=!1,Sl=null,Op.apply(_p,arguments)}function Lp(e,t,n,r,i,l,o,s,a){if(Mp.apply(this,arguments),Gr){if(Gr){var u=Sl;Gr=!1,Sl=null}else throw Error(N(198));El||(El=!0,ss=u)}}function An(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Of(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function vu(e){if(An(e)!==e)throw Error(N(188))}function Dp(e){var t=e.alternate;if(!t){if(t=An(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return vu(i),e;if(l===r)return vu(i),t;l=l.sibling}throw Error(N(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=l;break}if(s===r){o=!0,r=i,n=l;break}s=s.sibling}if(!o){for(s=l.child;s;){if(s===n){o=!0,n=l,r=i;break}if(s===r){o=!0,r=l,n=i;break}s=s.sibling}if(!o)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function _f(e){return e=Dp(e),e!==null?Mf(e):null}function Mf(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Mf(e);if(t!==null)return t;e=e.sibling}return null}var Lf=Ae.unstable_scheduleCallback,wu=Ae.unstable_cancelCallback,Fp=Ae.unstable_shouldYield,jp=Ae.unstable_requestPaint,le=Ae.unstable_now,Ip=Ae.unstable_getCurrentPriorityLevel,ha=Ae.unstable_ImmediatePriority,Df=Ae.unstable_UserBlockingPriority,kl=Ae.unstable_NormalPriority,zp=Ae.unstable_LowPriority,Ff=Ae.unstable_IdlePriority,Gl=null,mt=null;function Up(e){if(mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(Gl,e,void 0,(e.current.flags&128)===128)}catch{}}var it=Math.clz32?Math.clz32:$p,Ap=Math.log,Wp=Math.LN2;function $p(e){return e>>>=0,e===0?32:31-(Ap(e)/Wp|0)|0}var Vi=64,Yi=4194304;function Br(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Cl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Br(s):(l&=o,l!==0&&(r=Br(l)))}else o=n&~i,o!==0?r=Br(o):l!==0&&(r=Br(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,l=t&-t,i>=l||i===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-it(t),i=1<<n,r|=e[n],t&=~i;return r}function Qp(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-it(l),s=1<<o,a=i[o];a===-1?(!(s&n)||s&r)&&(i[o]=Qp(s,t)):a<=t&&(e.expiredLanes|=s),l&=~s}}function as(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function jf(){var e=Vi;return Vi<<=1,!(Vi&4194240)&&(Vi=64),e}function xo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _i(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-it(t),e[t]=n}function Bp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-it(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function pa(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var K=0;function If(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var zf,ma,Uf,Af,Wf,us=!1,Ki=[],bt=null,Xt=null,Jt=null,oi=new Map,si=new Map,Ut=[],Vp="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 submit".split(" ");function xu(e,t){switch(e){case"focusin":case"focusout":bt=null;break;case"dragenter":case"dragleave":Xt=null;break;case"mouseover":case"mouseout":Jt=null;break;case"pointerover":case"pointerout":oi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":si.delete(t.pointerId)}}function Dr(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},t!==null&&(t=Li(t),t!==null&&ma(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Yp(e,t,n,r,i){switch(t){case"focusin":return bt=Dr(bt,e,t,n,r,i),!0;case"dragenter":return Xt=Dr(Xt,e,t,n,r,i),!0;case"mouseover":return Jt=Dr(Jt,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return oi.set(l,Dr(oi.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,si.set(l,Dr(si.get(l)||null,e,t,n,r,i)),!0}return!1}function $f(e){var t=yn(e.target);if(t!==null){var n=An(t);if(n!==null){if(t=n.tag,t===13){if(t=Of(n),t!==null){e.blockedOn=t,Wf(e.priority,function(){Uf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function al(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=cs(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);is=r,n.target.dispatchEvent(r),is=null}else return t=Li(n),t!==null&&ma(t),e.blockedOn=n,!1;t.shift()}return!0}function Su(e,t,n){al(e)&&n.delete(t)}function Kp(){us=!1,bt!==null&&al(bt)&&(bt=null),Xt!==null&&al(Xt)&&(Xt=null),Jt!==null&&al(Jt)&&(Jt=null),oi.forEach(Su),si.forEach(Su)}function Fr(e,t){e.blockedOn===t&&(e.blockedOn=null,us||(us=!0,Ae.unstable_scheduleCallback(Ae.unstable_NormalPriority,Kp)))}function ai(e){function t(i){return Fr(i,e)}if(0<Ki.length){Fr(Ki[0],e);for(var n=1;n<Ki.length;n++){var r=Ki[n];r.blockedOn===e&&(r.blockedOn=null)}}for(bt!==null&&Fr(bt,e),Xt!==null&&Fr(Xt,e),Jt!==null&&Fr(Jt,e),oi.forEach(t),si.forEach(t),n=0;n<Ut.length;n++)r=Ut[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ut.length&&(n=Ut[0],n.blockedOn===null);)$f(n),n.blockedOn===null&&Ut.shift()}var ir=Lt.ReactCurrentBatchConfig,Pl=!0;function Gp(e,t,n,r){var i=K,l=ir.transition;ir.transition=null;try{K=1,ya(e,t,n,r)}finally{K=i,ir.transition=l}}function qp(e,t,n,r){var i=K,l=ir.transition;ir.transition=null;try{K=4,ya(e,t,n,r)}finally{K=i,ir.transition=l}}function ya(e,t,n,r){if(Pl){var i=cs(e,t,n,r);if(i===null)_o(e,t,r,Rl,n),xu(e,r);else if(Yp(i,e,t,n,r))r.stopPropagation();else if(xu(e,r),t&4&&-1<Vp.indexOf(e)){for(;i!==null;){var l=Li(i);if(l!==null&&zf(l),l=cs(e,t,n,r),l===null&&_o(e,t,r,Rl,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else _o(e,t,r,null,n)}}var Rl=null;function cs(e,t,n,r){if(Rl=null,e=da(r),e=yn(e),e!==null)if(t=An(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Of(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Rl=e,null}function Qf(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ip()){case ha:return 1;case Df:return 4;case kl:case zp:return 16;case Ff:return 536870912;default:return 16}default:return 16}}var Gt=null,ga=null,ul=null;function Hf(){if(ul)return ul;var e,t=ga,n=t.length,r,i="value"in Gt?Gt.value:Gt.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[l-r];r++);return ul=i.slice(e,1<r?1-r:void 0)}function cl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Gi(){return!0}function Eu(){return!1}function $e(e){function t(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?Gi:Eu,this.isPropagationStopped=Eu,this}return te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Gi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gi)},persist:function(){},isPersistent:Gi}),t}var Nr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},va=$e(Nr),Mi=te({},Nr,{view:0,detail:0}),bp=$e(Mi),So,Eo,jr,ql=te({},Mi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wa,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==jr&&(jr&&e.type==="mousemove"?(So=e.screenX-jr.screenX,Eo=e.screenY-jr.screenY):Eo=So=0,jr=e),So)},movementY:function(e){return"movementY"in e?e.movementY:Eo}}),ku=$e(ql),Xp=te({},ql,{dataTransfer:0}),Jp=$e(Xp),Zp=te({},Mi,{relatedTarget:0}),ko=$e(Zp),em=te({},Nr,{animationName:0,elapsedTime:0,pseudoElement:0}),tm=$e(em),nm=te({},Nr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rm=$e(nm),im=te({},Nr,{data:0}),Cu=$e(im),lm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},om={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"},sm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function am(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sm[e])?!!t[e]:!1}function wa(){return am}var um=te({},Mi,{key:function(e){if(e.key){var t=lm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?om[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wa,charCode:function(e){return e.type==="keypress"?cl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cm=$e(um),fm=te({},ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pu=$e(fm),dm=te({},Mi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wa}),hm=$e(dm),pm=te({},Nr,{propertyName:0,elapsedTime:0,pseudoElement:0}),mm=$e(pm),ym=te({},ql,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),gm=$e(ym),vm=[9,13,27,32],xa=Nt&&"CompositionEvent"in window,qr=null;Nt&&"documentMode"in document&&(qr=document.documentMode);var wm=Nt&&"TextEvent"in window&&!qr,Bf=Nt&&(!xa||qr&&8<qr&&11>=qr),Ru=" ",Nu=!1;function Vf(e,t){switch(e){case"keyup":return vm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vn=!1;function xm(e,t){switch(e){case"compositionend":return Yf(t);case"keypress":return t.which!==32?null:(Nu=!0,Ru);case"textInput":return e=t.data,e===Ru&&Nu?null:e;default:return null}}function Sm(e,t){if(Vn)return e==="compositionend"||!xa&&Vf(e,t)?(e=Hf(),ul=ga=Gt=null,Vn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bf&&t.locale!=="ko"?null:t.data;default:return null}}var Em={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 Tu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Em[e.type]:t==="textarea"}function Kf(e,t,n,r){Cf(r),t=Nl(t,"onChange"),0<t.length&&(n=new va("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var br=null,ui=null;function km(e){id(e,0)}function bl(e){var t=Gn(e);if(gf(t))return e}function Cm(e,t){if(e==="change")return t}var Gf=!1;if(Nt){var Co;if(Nt){var Po="oninput"in document;if(!Po){var Ou=document.createElement("div");Ou.setAttribute("oninput","return;"),Po=typeof Ou.oninput=="function"}Co=Po}else Co=!1;Gf=Co&&(!document.documentMode||9<document.documentMode)}function _u(){br&&(br.detachEvent("onpropertychange",qf),ui=br=null)}function qf(e){if(e.propertyName==="value"&&bl(ui)){var t=[];Kf(t,ui,e,da(e)),Tf(km,t)}}function Pm(e,t,n){e==="focusin"?(_u(),br=t,ui=n,br.attachEvent("onpropertychange",qf)):e==="focusout"&&_u()}function Rm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bl(ui)}function Nm(e,t){if(e==="click")return bl(t)}function Tm(e,t){if(e==="input"||e==="change")return bl(t)}function Om(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ot=typeof Object.is=="function"?Object.is:Om;function ci(e,t){if(ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Yo.call(t,i)||!ot(e[i],t[i]))return!1}return!0}function Mu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lu(e,t){var n=Mu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mu(n)}}function bf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xf(){for(var e=window,t=xl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xl(e.document)}return t}function Sa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function _m(e){var t=Xf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&bf(n.ownerDocument.documentElement,n)){if(r!==null&&Sa(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!e.extend&&l>r&&(i=r,r=l,l=i),i=Lu(n,l);var o=Lu(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Mm=Nt&&"documentMode"in document&&11>=document.documentMode,Yn=null,fs=null,Xr=null,ds=!1;function Du(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ds||Yn==null||Yn!==xl(r)||(r=Yn,"selectionStart"in r&&Sa(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xr&&ci(Xr,r)||(Xr=r,r=Nl(fs,"onSelect"),0<r.length&&(t=new va("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Yn)))}function qi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Kn={animationend:qi("Animation","AnimationEnd"),animationiteration:qi("Animation","AnimationIteration"),animationstart:qi("Animation","AnimationStart"),transitionend:qi("Transition","TransitionEnd")},Ro={},Jf={};Nt&&(Jf=document.createElement("div").style,"AnimationEvent"in window||(delete Kn.animationend.animation,delete Kn.animationiteration.animation,delete Kn.animationstart.animation),"TransitionEvent"in window||delete Kn.transitionend.transition);function Xl(e){if(Ro[e])return Ro[e];if(!Kn[e])return e;var t=Kn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jf)return Ro[e]=t[n];return e}var Zf=Xl("animationend"),ed=Xl("animationiteration"),td=Xl("animationstart"),nd=Xl("transitionend"),rd=new Map,Fu="abort auxClick 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(" ");function an(e,t){rd.set(e,t),Un(t,[e])}for(var No=0;No<Fu.length;No++){var To=Fu[No],Lm=To.toLowerCase(),Dm=To[0].toUpperCase()+To.slice(1);an(Lm,"on"+Dm)}an(Zf,"onAnimationEnd");an(ed,"onAnimationIteration");an(td,"onAnimationStart");an("dblclick","onDoubleClick");an("focusin","onFocus");an("focusout","onBlur");an(nd,"onTransitionEnd");wr("onMouseEnter",["mouseout","mouseover"]);wr("onMouseLeave",["mouseout","mouseover"]);wr("onPointerEnter",["pointerout","pointerover"]);wr("onPointerLeave",["pointerout","pointerover"]);Un("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Un("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Un("onBeforeInput",["compositionend","keypress","textInput","paste"]);Un("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Un("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Un("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vr="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(" "),Fm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vr));function ju(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Lp(r,t,void 0,e),e.currentTarget=null}function id(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==l&&i.isPropagationStopped())break e;ju(i,s,u),l=a}else for(o=0;o<r.length;o++){if(s=r[o],a=s.instance,u=s.currentTarget,s=s.listener,a!==l&&i.isPropagationStopped())break e;ju(i,s,u),l=a}}}if(El)throw e=ss,El=!1,ss=null,e}function q(e,t){var n=t[gs];n===void 0&&(n=t[gs]=new Set);var r=e+"__bubble";n.has(r)||(ld(t,e,2,!1),n.add(r))}function Oo(e,t,n){var r=0;t&&(r|=4),ld(n,e,r,t)}var bi="_reactListening"+Math.random().toString(36).slice(2);function fi(e){if(!e[bi]){e[bi]=!0,df.forEach(function(n){n!=="selectionchange"&&(Fm.has(n)||Oo(n,!1,e),Oo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bi]||(t[bi]=!0,Oo("selectionchange",!1,t))}}function ld(e,t,n,r){switch(Qf(t)){case 1:var i=Gp;break;case 4:i=qp;break;default:i=ya}n=i.bind(null,t,n,e),i=void 0,!os||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function _o(e,t,n,r,i){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;s!==null;){if(o=yn(s),o===null)return;if(a=o.tag,a===5||a===6){r=l=o;continue e}s=s.parentNode}}r=r.return}Tf(function(){var u=l,f=da(n),d=[];e:{var m=rd.get(e);if(m!==void 0){var v=va,g=e;switch(e){case"keypress":if(cl(n)===0)break e;case"keydown":case"keyup":v=cm;break;case"focusin":g="focus",v=ko;break;case"focusout":g="blur",v=ko;break;case"beforeblur":case"afterblur":v=ko;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=ku;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Jp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=hm;break;case Zf:case ed:case td:v=tm;break;case nd:v=mm;break;case"scroll":v=bp;break;case"wheel":v=gm;break;case"copy":case"cut":case"paste":v=rm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Pu}var S=(t&4)!==0,E=!S&&e==="scroll",h=S?m!==null?m+"Capture":null:m;S=[];for(var c=u,p;c!==null;){p=c;var w=p.stateNode;if(p.tag===5&&w!==null&&(p=w,h!==null&&(w=li(c,h),w!=null&&S.push(di(c,w,p)))),E)break;c=c.return}0<S.length&&(m=new v(m,g,null,n,f),d.push({event:m,listeners:S}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==is&&(g=n.relatedTarget||n.fromElement)&&(yn(g)||g[Tt]))break e;if((v||m)&&(m=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,v?(g=n.relatedTarget||n.toElement,v=u,g=g?yn(g):null,g!==null&&(E=An(g),g!==E||g.tag!==5&&g.tag!==6)&&(g=null)):(v=null,g=u),v!==g)){if(S=ku,w="onMouseLeave",h="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(S=Pu,w="onPointerLeave",h="onPointerEnter",c="pointer"),E=v==null?m:Gn(v),p=g==null?m:Gn(g),m=new S(w,c+"leave",v,n,f),m.target=E,m.relatedTarget=p,w=null,yn(f)===u&&(S=new S(h,c+"enter",g,n,f),S.target=p,S.relatedTarget=E,w=S),E=w,v&&g)t:{for(S=v,h=g,c=0,p=S;p;p=$n(p))c++;for(p=0,w=h;w;w=$n(w))p++;for(;0<c-p;)S=$n(S),c--;for(;0<p-c;)h=$n(h),p--;for(;c--;){if(S===h||h!==null&&S===h.alternate)break t;S=$n(S),h=$n(h)}S=null}else S=null;v!==null&&Iu(d,m,v,S,!1),g!==null&&E!==null&&Iu(d,E,g,S,!0)}}e:{if(m=u?Gn(u):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var C=Cm;else if(Tu(m))if(Gf)C=Tm;else{C=Rm;var T=Pm}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(C=Nm);if(C&&(C=C(e,u))){Kf(d,C,n,f);break e}T&&T(e,m,u),e==="focusout"&&(T=m._wrapperState)&&T.controlled&&m.type==="number"&&Zo(m,"number",m.value)}switch(T=u?Gn(u):window,e){case"focusin":(Tu(T)||T.contentEditable==="true")&&(Yn=T,fs=u,Xr=null);break;case"focusout":Xr=fs=Yn=null;break;case"mousedown":ds=!0;break;case"contextmenu":case"mouseup":case"dragend":ds=!1,Du(d,n,f);break;case"selectionchange":if(Mm)break;case"keydown":case"keyup":Du(d,n,f)}var O;if(xa)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Vn?Vf(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Bf&&n.locale!=="ko"&&(Vn||P!=="onCompositionStart"?P==="onCompositionEnd"&&Vn&&(O=Hf()):(Gt=f,ga="value"in Gt?Gt.value:Gt.textContent,Vn=!0)),T=Nl(u,P),0<T.length&&(P=new Cu(P,e,null,n,f),d.push({event:P,listeners:T}),O?P.data=O:(O=Yf(n),O!==null&&(P.data=O)))),(O=wm?xm(e,n):Sm(e,n))&&(u=Nl(u,"onBeforeInput"),0<u.length&&(f=new Cu("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=O))}id(d,t)})}function di(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=li(e,n),l!=null&&r.unshift(di(e,l,i)),l=li(e,t),l!=null&&r.push(di(e,l,i))),e=e.return}return r}function $n(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Iu(e,t,n,r,i){for(var l=t._reactName,o=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,i?(a=li(n,l),a!=null&&o.unshift(di(n,a,s))):i||(a=li(n,l),a!=null&&o.push(di(n,a,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var jm=/\r\n?/g,Im=/\u0000|\uFFFD/g;function zu(e){return(typeof e=="string"?e:""+e).replace(jm,`
38
+ `).replace(Im,"")}function Xi(e,t,n){if(t=zu(t),zu(e)!==t&&n)throw Error(N(425))}function Tl(){}var hs=null,ps=null;function ms(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ys=typeof setTimeout=="function"?setTimeout:void 0,zm=typeof clearTimeout=="function"?clearTimeout:void 0,Uu=typeof Promise=="function"?Promise:void 0,Um=typeof queueMicrotask=="function"?queueMicrotask:typeof Uu<"u"?function(e){return Uu.resolve(null).then(e).catch(Am)}:ys;function Am(e){setTimeout(function(){throw e})}function Mo(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),ai(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ai(t)}function Zt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Au(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Tr=Math.random().toString(36).slice(2),pt="__reactFiber$"+Tr,hi="__reactProps$"+Tr,Tt="__reactContainer$"+Tr,gs="__reactEvents$"+Tr,Wm="__reactListeners$"+Tr,$m="__reactHandles$"+Tr;function yn(e){var t=e[pt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tt]||n[pt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Au(e);e!==null;){if(n=e[pt])return n;e=Au(e)}return t}e=n,n=e.parentNode}return null}function Li(e){return e=e[pt]||e[Tt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function Jl(e){return e[hi]||null}var vs=[],qn=-1;function un(e){return{current:e}}function b(e){0>qn||(e.current=vs[qn],vs[qn]=null,qn--)}function G(e,t){qn++,vs[qn]=e.current,e.current=t}var sn={},Se=un(sn),De=un(!1),Mn=sn;function xr(e,t){var n=e.type.contextTypes;if(!n)return sn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Fe(e){return e=e.childContextTypes,e!=null}function Ol(){b(De),b(Se)}function Wu(e,t,n){if(Se.current!==sn)throw Error(N(168));G(Se,t),G(De,n)}function od(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(N(108,Pp(e)||"Unknown",i));return te({},n,r)}function _l(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sn,Mn=Se.current,G(Se,e),G(De,De.current),!0}function $u(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=od(e,t,Mn),r.__reactInternalMemoizedMergedChildContext=e,b(De),b(Se),G(Se,e)):b(De),G(De,n)}var xt=null,Zl=!1,Lo=!1;function sd(e){xt===null?xt=[e]:xt.push(e)}function Qm(e){Zl=!0,sd(e)}function cn(){if(!Lo&&xt!==null){Lo=!0;var e=0,t=K;try{var n=xt;for(K=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}xt=null,Zl=!1}catch(i){throw xt!==null&&(xt=xt.slice(e+1)),Lf(ha,cn),i}finally{K=t,Lo=!1}}return null}var bn=[],Xn=0,Ml=null,Ll=0,Be=[],Ve=0,Ln=null,kt=1,Ct="";function hn(e,t){bn[Xn++]=Ll,bn[Xn++]=Ml,Ml=e,Ll=t}function ad(e,t,n){Be[Ve++]=kt,Be[Ve++]=Ct,Be[Ve++]=Ln,Ln=e;var r=kt;e=Ct;var i=32-it(r)-1;r&=~(1<<i),n+=1;var l=32-it(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,kt=1<<32-it(t)+i|n<<i|r,Ct=l+e}else kt=1<<l|n<<i|r,Ct=e}function Ea(e){e.return!==null&&(hn(e,1),ad(e,1,0))}function ka(e){for(;e===Ml;)Ml=bn[--Xn],bn[Xn]=null,Ll=bn[--Xn],bn[Xn]=null;for(;e===Ln;)Ln=Be[--Ve],Be[Ve]=null,Ct=Be[--Ve],Be[Ve]=null,kt=Be[--Ve],Be[Ve]=null}var Ue=null,ze=null,X=!1,rt=null;function ud(e,t){var n=Ye(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Qu(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ue=e,ze=Zt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ue=e,ze=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ln!==null?{id:kt,overflow:Ct}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ye(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ue=e,ze=null,!0):!1;default:return!1}}function ws(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xs(e){if(X){var t=ze;if(t){var n=t;if(!Qu(e,t)){if(ws(e))throw Error(N(418));t=Zt(n.nextSibling);var r=Ue;t&&Qu(e,t)?ud(r,n):(e.flags=e.flags&-4097|2,X=!1,Ue=e)}}else{if(ws(e))throw Error(N(418));e.flags=e.flags&-4097|2,X=!1,Ue=e}}}function Hu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ue=e}function Ji(e){if(e!==Ue)return!1;if(!X)return Hu(e),X=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ms(e.type,e.memoizedProps)),t&&(t=ze)){if(ws(e))throw cd(),Error(N(418));for(;t;)ud(e,t),t=Zt(t.nextSibling)}if(Hu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ze=Zt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ze=null}}else ze=Ue?Zt(e.stateNode.nextSibling):null;return!0}function cd(){for(var e=ze;e;)e=Zt(e.nextSibling)}function Sr(){ze=Ue=null,X=!1}function Ca(e){rt===null?rt=[e]:rt.push(e)}var Hm=Lt.ReactCurrentBatchConfig;function Ir(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var i=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(o){var s=i.refs;o===null?delete s[l]:s[l]=o},t._stringRef=l,t)}if(typeof e!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function Zi(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Bu(e){var t=e._init;return t(e._payload)}function fd(e){function t(h,c){if(e){var p=h.deletions;p===null?(h.deletions=[c],h.flags|=16):p.push(c)}}function n(h,c){if(!e)return null;for(;c!==null;)t(h,c),c=c.sibling;return null}function r(h,c){for(h=new Map;c!==null;)c.key!==null?h.set(c.key,c):h.set(c.index,c),c=c.sibling;return h}function i(h,c){return h=rn(h,c),h.index=0,h.sibling=null,h}function l(h,c,p){return h.index=p,e?(p=h.alternate,p!==null?(p=p.index,p<c?(h.flags|=2,c):p):(h.flags|=2,c)):(h.flags|=1048576,c)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,c,p,w){return c===null||c.tag!==6?(c=Ao(p,h.mode,w),c.return=h,c):(c=i(c,p),c.return=h,c)}function a(h,c,p,w){var C=p.type;return C===Bn?f(h,c,p.props.children,w,p.key):c!==null&&(c.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===It&&Bu(C)===c.type)?(w=i(c,p.props),w.ref=Ir(h,c,p),w.return=h,w):(w=gl(p.type,p.key,p.props,null,h.mode,w),w.ref=Ir(h,c,p),w.return=h,w)}function u(h,c,p,w){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=Wo(p,h.mode,w),c.return=h,c):(c=i(c,p.children||[]),c.return=h,c)}function f(h,c,p,w,C){return c===null||c.tag!==7?(c=_n(p,h.mode,w,C),c.return=h,c):(c=i(c,p),c.return=h,c)}function d(h,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=Ao(""+c,h.mode,p),c.return=h,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Qi:return p=gl(c.type,c.key,c.props,null,h.mode,p),p.ref=Ir(h,null,c),p.return=h,p;case Hn:return c=Wo(c,h.mode,p),c.return=h,c;case It:var w=c._init;return d(h,w(c._payload),p)}if(Hr(c)||Mr(c))return c=_n(c,h.mode,p,null),c.return=h,c;Zi(h,c)}return null}function m(h,c,p,w){var C=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return C!==null?null:s(h,c,""+p,w);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Qi:return p.key===C?a(h,c,p,w):null;case Hn:return p.key===C?u(h,c,p,w):null;case It:return C=p._init,m(h,c,C(p._payload),w)}if(Hr(p)||Mr(p))return C!==null?null:f(h,c,p,w,null);Zi(h,p)}return null}function v(h,c,p,w,C){if(typeof w=="string"&&w!==""||typeof w=="number")return h=h.get(p)||null,s(c,h,""+w,C);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Qi:return h=h.get(w.key===null?p:w.key)||null,a(c,h,w,C);case Hn:return h=h.get(w.key===null?p:w.key)||null,u(c,h,w,C);case It:var T=w._init;return v(h,c,p,T(w._payload),C)}if(Hr(w)||Mr(w))return h=h.get(p)||null,f(c,h,w,C,null);Zi(c,w)}return null}function g(h,c,p,w){for(var C=null,T=null,O=c,P=c=0,F=null;O!==null&&P<p.length;P++){O.index>P?(F=O,O=null):F=O.sibling;var R=m(h,O,p[P],w);if(R===null){O===null&&(O=F);break}e&&O&&R.alternate===null&&t(h,O),c=l(R,c,P),T===null?C=R:T.sibling=R,T=R,O=F}if(P===p.length)return n(h,O),X&&hn(h,P),C;if(O===null){for(;P<p.length;P++)O=d(h,p[P],w),O!==null&&(c=l(O,c,P),T===null?C=O:T.sibling=O,T=O);return X&&hn(h,P),C}for(O=r(h,O);P<p.length;P++)F=v(O,h,P,p[P],w),F!==null&&(e&&F.alternate!==null&&O.delete(F.key===null?P:F.key),c=l(F,c,P),T===null?C=F:T.sibling=F,T=F);return e&&O.forEach(function(j){return t(h,j)}),X&&hn(h,P),C}function S(h,c,p,w){var C=Mr(p);if(typeof C!="function")throw Error(N(150));if(p=C.call(p),p==null)throw Error(N(151));for(var T=C=null,O=c,P=c=0,F=null,R=p.next();O!==null&&!R.done;P++,R=p.next()){O.index>P?(F=O,O=null):F=O.sibling;var j=m(h,O,R.value,w);if(j===null){O===null&&(O=F);break}e&&O&&j.alternate===null&&t(h,O),c=l(j,c,P),T===null?C=j:T.sibling=j,T=j,O=F}if(R.done)return n(h,O),X&&hn(h,P),C;if(O===null){for(;!R.done;P++,R=p.next())R=d(h,R.value,w),R!==null&&(c=l(R,c,P),T===null?C=R:T.sibling=R,T=R);return X&&hn(h,P),C}for(O=r(h,O);!R.done;P++,R=p.next())R=v(O,h,P,R.value,w),R!==null&&(e&&R.alternate!==null&&O.delete(R.key===null?P:R.key),c=l(R,c,P),T===null?C=R:T.sibling=R,T=R);return e&&O.forEach(function(I){return t(h,I)}),X&&hn(h,P),C}function E(h,c,p,w){if(typeof p=="object"&&p!==null&&p.type===Bn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Qi:e:{for(var C=p.key,T=c;T!==null;){if(T.key===C){if(C=p.type,C===Bn){if(T.tag===7){n(h,T.sibling),c=i(T,p.props.children),c.return=h,h=c;break e}}else if(T.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===It&&Bu(C)===T.type){n(h,T.sibling),c=i(T,p.props),c.ref=Ir(h,T,p),c.return=h,h=c;break e}n(h,T);break}else t(h,T);T=T.sibling}p.type===Bn?(c=_n(p.props.children,h.mode,w,p.key),c.return=h,h=c):(w=gl(p.type,p.key,p.props,null,h.mode,w),w.ref=Ir(h,c,p),w.return=h,h=w)}return o(h);case Hn:e:{for(T=p.key;c!==null;){if(c.key===T)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(h,c.sibling),c=i(c,p.children||[]),c.return=h,h=c;break e}else{n(h,c);break}else t(h,c);c=c.sibling}c=Wo(p,h.mode,w),c.return=h,h=c}return o(h);case It:return T=p._init,E(h,c,T(p._payload),w)}if(Hr(p))return g(h,c,p,w);if(Mr(p))return S(h,c,p,w);Zi(h,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(h,c.sibling),c=i(c,p),c.return=h,h=c):(n(h,c),c=Ao(p,h.mode,w),c.return=h,h=c),o(h)):n(h,c)}return E}var Er=fd(!0),dd=fd(!1),Dl=un(null),Fl=null,Jn=null,Pa=null;function Ra(){Pa=Jn=Fl=null}function Na(e){var t=Dl.current;b(Dl),e._currentValue=t}function Ss(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function lr(e,t){Fl=e,Pa=Jn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Le=!0),e.firstContext=null)}function Ge(e){var t=e._currentValue;if(Pa!==e)if(e={context:e,memoizedValue:t,next:null},Jn===null){if(Fl===null)throw Error(N(308));Jn=e,Fl.dependencies={lanes:0,firstContext:e}}else Jn=Jn.next=e;return t}var gn=null;function Ta(e){gn===null?gn=[e]:gn.push(e)}function hd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ta(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ot(e,r)}function Ot(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var zt=!1;function Oa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function en(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ot(e,n)}return i=r.interleaved,i===null?(t.next=t,Ta(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ot(e,n)}function fl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pa(e,n)}}function Vu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jl(e,t,n,r){var i=e.updateQueue;zt=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,u=a.next;a.next=null,o===null?l=u:o.next=u,o=a;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=a))}if(l!==null){var d=i.baseState;o=0,f=u=a=null,s=l;do{var m=s.lane,v=s.eventTime;if((r&m)===m){f!==null&&(f=f.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,S=s;switch(m=t,v=n,S.tag){case 1:if(g=S.payload,typeof g=="function"){d=g.call(v,d,m);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=S.payload,m=typeof g=="function"?g.call(v,d,m):g,m==null)break e;d=te({},d,m);break e;case 2:zt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[s]:m.push(s))}else v={eventTime:v,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=v,a=d):f=f.next=v,o|=m;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(f===null&&(a=d),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else l===null&&(i.shared.lanes=0);Fn|=o,e.lanes=o,e.memoizedState=d}}function Yu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(N(191,i));i.call(r)}}}var Di={},yt=un(Di),pi=un(Di),mi=un(Di);function vn(e){if(e===Di)throw Error(N(174));return e}function _a(e,t){switch(G(mi,t),G(pi,e),G(yt,Di),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ts(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ts(t,e)}b(yt),G(yt,t)}function kr(){b(yt),b(pi),b(mi)}function md(e){vn(mi.current);var t=vn(yt.current),n=ts(t,e.type);t!==n&&(G(pi,e),G(yt,n))}function Ma(e){pi.current===e&&(b(yt),b(pi))}var J=un(0);function Il(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Do=[];function La(){for(var e=0;e<Do.length;e++)Do[e]._workInProgressVersionPrimary=null;Do.length=0}var dl=Lt.ReactCurrentDispatcher,Fo=Lt.ReactCurrentBatchConfig,Dn=0,Z=null,ae=null,de=null,zl=!1,Jr=!1,yi=0,Bm=0;function ve(){throw Error(N(321))}function Da(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ot(e[n],t[n]))return!1;return!0}function Fa(e,t,n,r,i,l){if(Dn=l,Z=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,dl.current=e===null||e.memoizedState===null?Gm:qm,e=n(r,i),Jr){l=0;do{if(Jr=!1,yi=0,25<=l)throw Error(N(301));l+=1,de=ae=null,t.updateQueue=null,dl.current=bm,e=n(r,i)}while(Jr)}if(dl.current=Ul,t=ae!==null&&ae.next!==null,Dn=0,de=ae=Z=null,zl=!1,t)throw Error(N(300));return e}function ja(){var e=yi!==0;return yi=0,e}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return de===null?Z.memoizedState=de=e:de=de.next=e,de}function qe(){if(ae===null){var e=Z.alternate;e=e!==null?e.memoizedState:null}else e=ae.next;var t=de===null?Z.memoizedState:de.next;if(t!==null)de=t,ae=e;else{if(e===null)throw Error(N(310));ae=e,e={memoizedState:ae.memoizedState,baseState:ae.baseState,baseQueue:ae.baseQueue,queue:ae.queue,next:null},de===null?Z.memoizedState=de=e:de=de.next=e}return de}function gi(e,t){return typeof t=="function"?t(e):t}function jo(e){var t=qe(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=ae,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var s=o=null,a=null,u=l;do{var f=u.lane;if((Dn&f)===f)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=d,o=r):a=a.next=d,Z.lanes|=f,Fn|=f}u=u.next}while(u!==null&&u!==l);a===null?o=r:a.next=s,ot(r,t.memoizedState)||(Le=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do l=i.lane,Z.lanes|=l,Fn|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Io(e){var t=qe(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=e(l,o.action),o=o.next;while(o!==i);ot(l,t.memoizedState)||(Le=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function yd(){}function gd(e,t){var n=Z,r=qe(),i=t(),l=!ot(r.memoizedState,i);if(l&&(r.memoizedState=i,Le=!0),r=r.queue,Ia(xd.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||de!==null&&de.memoizedState.tag&1){if(n.flags|=2048,vi(9,wd.bind(null,n,r,i,t),void 0,null),he===null)throw Error(N(349));Dn&30||vd(n,t,i)}return i}function vd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Z.updateQueue,t===null?(t={lastEffect:null,stores:null},Z.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function wd(e,t,n,r){t.value=n,t.getSnapshot=r,Sd(t)&&Ed(e)}function xd(e,t,n){return n(function(){Sd(t)&&Ed(e)})}function Sd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ot(e,n)}catch{return!0}}function Ed(e){var t=Ot(e,1);t!==null&&lt(t,e,1,-1)}function Ku(e){var t=ct();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gi,lastRenderedState:e},t.queue=e,e=e.dispatch=Km.bind(null,Z,e),[t.memoizedState,e]}function vi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Z.updateQueue,t===null?(t={lastEffect:null,stores:null},Z.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function kd(){return qe().memoizedState}function hl(e,t,n,r){var i=ct();Z.flags|=e,i.memoizedState=vi(1|t,n,void 0,r===void 0?null:r)}function eo(e,t,n,r){var i=qe();r=r===void 0?null:r;var l=void 0;if(ae!==null){var o=ae.memoizedState;if(l=o.destroy,r!==null&&Da(r,o.deps)){i.memoizedState=vi(t,n,l,r);return}}Z.flags|=e,i.memoizedState=vi(1|t,n,l,r)}function Gu(e,t){return hl(8390656,8,e,t)}function Ia(e,t){return eo(2048,8,e,t)}function Cd(e,t){return eo(4,2,e,t)}function Pd(e,t){return eo(4,4,e,t)}function Rd(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Nd(e,t,n){return n=n!=null?n.concat([e]):null,eo(4,4,Rd.bind(null,t,e),n)}function za(){}function Td(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Da(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Od(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Da(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _d(e,t,n){return Dn&21?(ot(n,t)||(n=jf(),Z.lanes|=n,Fn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Le=!0),e.memoizedState=n)}function Vm(e,t){var n=K;K=n!==0&&4>n?n:4,e(!0);var r=Fo.transition;Fo.transition={};try{e(!1),t()}finally{K=n,Fo.transition=r}}function Md(){return qe().memoizedState}function Ym(e,t,n){var r=nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ld(e))Dd(t,n);else if(n=hd(e,t,n,r),n!==null){var i=Pe();lt(n,e,r,i),Fd(n,t,r)}}function Km(e,t,n){var r=nn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ld(e))Dd(t,i);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var o=t.lastRenderedState,s=l(o,n);if(i.hasEagerState=!0,i.eagerState=s,ot(s,o)){var a=t.interleaved;a===null?(i.next=i,Ta(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=hd(e,t,i,r),n!==null&&(i=Pe(),lt(n,e,r,i),Fd(n,t,r))}}function Ld(e){var t=e.alternate;return e===Z||t!==null&&t===Z}function Dd(e,t){Jr=zl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pa(e,n)}}var Ul={readContext:Ge,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},Gm={readContext:Ge,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:Ge,useEffect:Gu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,hl(4194308,4,Rd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hl(4194308,4,e,t)},useInsertionEffect:function(e,t){return hl(4,2,e,t)},useMemo:function(e,t){var n=ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ym.bind(null,Z,e),[r.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:Ku,useDebugValue:za,useDeferredValue:function(e){return ct().memoizedState=e},useTransition:function(){var e=Ku(!1),t=e[0];return e=Vm.bind(null,e[1]),ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Z,i=ct();if(X){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),he===null)throw Error(N(349));Dn&30||vd(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Gu(xd.bind(null,r,l,e),[e]),r.flags|=2048,vi(9,wd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=ct(),t=he.identifierPrefix;if(X){var n=Ct,r=kt;n=(r&~(1<<32-it(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=yi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Bm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qm={readContext:Ge,useCallback:Td,useContext:Ge,useEffect:Ia,useImperativeHandle:Nd,useInsertionEffect:Cd,useLayoutEffect:Pd,useMemo:Od,useReducer:jo,useRef:kd,useState:function(){return jo(gi)},useDebugValue:za,useDeferredValue:function(e){var t=qe();return _d(t,ae.memoizedState,e)},useTransition:function(){var e=jo(gi)[0],t=qe().memoizedState;return[e,t]},useMutableSource:yd,useSyncExternalStore:gd,useId:Md,unstable_isNewReconciler:!1},bm={readContext:Ge,useCallback:Td,useContext:Ge,useEffect:Ia,useImperativeHandle:Nd,useInsertionEffect:Cd,useLayoutEffect:Pd,useMemo:Od,useReducer:Io,useRef:kd,useState:function(){return Io(gi)},useDebugValue:za,useDeferredValue:function(e){var t=qe();return ae===null?t.memoizedState=e:_d(t,ae.memoizedState,e)},useTransition:function(){var e=Io(gi)[0],t=qe().memoizedState;return[e,t]},useMutableSource:yd,useSyncExternalStore:gd,useId:Md,unstable_isNewReconciler:!1};function Ze(e,t){if(e&&e.defaultProps){t=te({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Es(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var to={isMounted:function(e){return(e=e._reactInternals)?An(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pe(),i=nn(e),l=Pt(r,i);l.payload=t,n!=null&&(l.callback=n),t=en(e,l,i),t!==null&&(lt(t,e,i,r),fl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pe(),i=nn(e),l=Pt(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=en(e,l,i),t!==null&&(lt(t,e,i,r),fl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pe(),r=nn(e),i=Pt(n,r);i.tag=2,t!=null&&(i.callback=t),t=en(e,i,r),t!==null&&(lt(t,e,r,n),fl(t,e,r))}};function qu(e,t,n,r,i,l,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,o):t.prototype&&t.prototype.isPureReactComponent?!ci(n,r)||!ci(i,l):!0}function jd(e,t,n){var r=!1,i=sn,l=t.contextType;return typeof l=="object"&&l!==null?l=Ge(l):(i=Fe(t)?Mn:Se.current,r=t.contextTypes,l=(r=r!=null)?xr(e,i):sn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=to,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function bu(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&to.enqueueReplaceState(t,t.state,null)}function ks(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Oa(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=Ge(l):(l=Fe(t)?Mn:Se.current,i.context=xr(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Es(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&to.enqueueReplaceState(i,i.state,null),jl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Cr(e,t){try{var n="",r=t;do n+=Cp(r),r=r.return;while(r);var i=n}catch(l){i=`
39
+ Error generating stack: `+l.message+`
40
+ `+l.stack}return{value:e,source:t,stack:i,digest:null}}function zo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Cs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Xm=typeof WeakMap=="function"?WeakMap:Map;function Id(e,t,n){n=Pt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wl||(Wl=!0,Fs=r),Cs(e,t)},n}function zd(e,t,n){n=Pt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Cs(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Cs(e,t),typeof r!="function"&&(tn===null?tn=new Set([this]):tn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Xu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xm;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=fy.bind(null,e,t,n),t.then(e,e))}function Ju(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Zu(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Pt(-1,1),t.tag=2,en(n,t,1))),n.lanes|=1),e)}var Jm=Lt.ReactCurrentOwner,Le=!1;function Ce(e,t,n,r){t.child=e===null?dd(t,null,n,r):Er(t,e.child,n,r)}function ec(e,t,n,r,i){n=n.render;var l=t.ref;return lr(t,i),r=Fa(e,t,n,r,l,i),n=ja(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,_t(e,t,i)):(X&&n&&Ea(t),t.flags|=1,Ce(e,t,r,i),t.child)}function tc(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Va(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Ud(e,t,l,r,i)):(e=gl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!(e.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:ci,n(o,r)&&e.ref===t.ref)return _t(e,t,i)}return t.flags|=1,e=rn(l,r),e.ref=t.ref,e.return=t,t.child=e}function Ud(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(ci(l,r)&&e.ref===t.ref)if(Le=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Le=!0);else return t.lanes=e.lanes,_t(e,t,i)}return Ps(e,t,n,r,i)}function Ad(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(er,Ie),Ie|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,G(er,Ie),Ie|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,G(er,Ie),Ie|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,G(er,Ie),Ie|=r;return Ce(e,t,i,n),t.child}function Wd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,n,r,i){var l=Fe(n)?Mn:Se.current;return l=xr(t,l),lr(t,i),n=Fa(e,t,n,r,l,i),r=ja(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,_t(e,t,i)):(X&&r&&Ea(t),t.flags|=1,Ce(e,t,n,i),t.child)}function nc(e,t,n,r,i){if(Fe(n)){var l=!0;_l(t)}else l=!1;if(lr(t,i),t.stateNode===null)pl(e,t),jd(t,n,r),ks(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ge(u):(u=Fe(n)?Mn:Se.current,u=xr(t,u));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||a!==u)&&bu(t,o,r,u),zt=!1;var m=t.memoizedState;o.state=m,jl(t,r,o,i),a=t.memoizedState,s!==r||m!==a||De.current||zt?(typeof f=="function"&&(Es(t,n,f,r),a=t.memoizedState),(s=zt||qu(t,n,s,r,m,a,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,pd(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ze(t.type,s),o.props=u,d=t.pendingProps,m=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ge(a):(a=Fe(n)?Mn:Se.current,a=xr(t,a));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||m!==a)&&bu(t,o,r,a),zt=!1,m=t.memoizedState,o.state=m,jl(t,r,o,i);var g=t.memoizedState;s!==d||m!==g||De.current||zt?(typeof v=="function"&&(Es(t,n,v,r),g=t.memoizedState),(u=zt||qu(t,n,u,r,m,g,a)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),o.props=r,o.state=g,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Rs(e,t,n,r,l,i)}function Rs(e,t,n,r,i,l){Wd(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&$u(t,n,!1),_t(e,t,l);r=t.stateNode,Jm.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Er(t,e.child,null,l),t.child=Er(t,null,s,l)):Ce(e,t,s,l),t.memoizedState=r.state,i&&$u(t,n,!0),t.child}function $d(e){var t=e.stateNode;t.pendingContext?Wu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Wu(e,t.context,!1),_a(e,t.containerInfo)}function rc(e,t,n,r,i){return Sr(),Ca(i),t.flags|=256,Ce(e,t,n,r),t.child}var Ns={dehydrated:null,treeContext:null,retryLane:0};function Ts(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qd(e,t,n){var r=t.pendingProps,i=J.current,l=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),G(J,i&1),e===null)return xs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,l?(r=t.mode,l=t.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=io(o,r,0,null),e=_n(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ts(n),t.memoizedState=Ns,e):Ua(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Zm(e,t,o,r,s,i,n);if(l){l=r.fallback,o=t.mode,i=e.child,s=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=rn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?l=rn(s,l):(l=_n(l,o,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,o=e.child.memoizedState,o=o===null?Ts(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=Ns,r}return l=e.child,e=l.sibling,r=rn(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ua(e,t){return t=io({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function el(e,t,n,r){return r!==null&&Ca(r),Er(t,e.child,null,n),e=Ua(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zm(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=zo(Error(N(422))),el(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=io({mode:"visible",children:r.children},i,0,null),l=_n(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&Er(t,e.child,null,o),t.child.memoizedState=Ts(o),t.memoizedState=Ns,l);if(!(t.mode&1))return el(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(N(419)),r=zo(l,r,void 0),el(e,t,o,r)}if(s=(o&e.childLanes)!==0,Le||s){if(r=he,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,Ot(e,i),lt(r,e,i,-1))}return Ba(),r=zo(Error(N(421))),el(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=dy.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,ze=Zt(i.nextSibling),Ue=t,X=!0,rt=null,e!==null&&(Be[Ve++]=kt,Be[Ve++]=Ct,Be[Ve++]=Ln,kt=e.id,Ct=e.overflow,Ln=t),t=Ua(t,r.children),t.flags|=4096,t)}function ic(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ss(e.return,t,n)}function Uo(e,t,n,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function Hd(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(Ce(e,t,r.children,n),r=J.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ic(e,n,t);else if(e.tag===19)ic(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(G(J,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Il(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Uo(t,!1,i,n,l);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Il(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Uo(t,!0,n,null,l);break;case"together":Uo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function _t(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=rn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=rn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ey(e,t,n){switch(t.tag){case 3:$d(t),Sr();break;case 5:md(t);break;case 1:Fe(t.type)&&_l(t);break;case 4:_a(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;G(Dl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(G(J,J.current&1),t.flags|=128,null):n&t.child.childLanes?Qd(e,t,n):(G(J,J.current&1),e=_t(e,t,n),e!==null?e.sibling:null);G(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Hd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),G(J,J.current),r)break;return null;case 22:case 23:return t.lanes=0,Ad(e,t,n)}return _t(e,t,n)}var Bd,Os,Vd,Yd;Bd=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Os=function(){};Vd=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,vn(yt.current);var l=null;switch(n){case"input":i=Xo(e,i),r=Xo(e,r),l=[];break;case"select":i=te({},i,{value:void 0}),r=te({},r,{value:void 0}),l=[];break;case"textarea":i=es(e,i),r=es(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Tl)}ns(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ri.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var a=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&s[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(l||(l=[]),l.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(l=l||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ri.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&q("scroll",e),l||s===a||(l=[])):(l=l||[]).push(u,a))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}};Yd=function(e,t,n,r){n!==r&&(t.flags|=4)};function zr(e,t){if(!X)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function we(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ty(e,t,n){var r=t.pendingProps;switch(ka(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return we(t),null;case 1:return Fe(t.type)&&Ol(),we(t),null;case 3:return r=t.stateNode,kr(),b(De),b(Se),La(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ji(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,rt!==null&&(zs(rt),rt=null))),Os(e,t),we(t),null;case 5:Ma(t);var i=vn(mi.current);if(n=t.type,e!==null&&t.stateNode!=null)Vd(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return we(t),null}if(e=vn(yt.current),Ji(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[pt]=t,r[hi]=l,e=(t.mode&1)!==0,n){case"dialog":q("cancel",r),q("close",r);break;case"iframe":case"object":case"embed":q("load",r);break;case"video":case"audio":for(i=0;i<Vr.length;i++)q(Vr[i],r);break;case"source":q("error",r);break;case"img":case"image":case"link":q("error",r),q("load",r);break;case"details":q("toggle",r);break;case"input":hu(r,l),q("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},q("invalid",r);break;case"textarea":mu(r,l),q("invalid",r)}ns(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var s=l[o];o==="children"?typeof s=="string"?r.textContent!==s&&(l.suppressHydrationWarning!==!0&&Xi(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&Xi(r.textContent,s,e),i=["children",""+s]):ri.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&q("scroll",r)}switch(n){case"input":Hi(r),pu(r,l,!0);break;case"textarea":Hi(r),yu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Tl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=xf(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[pt]=t,e[hi]=r,Bd(e,t,!1,!1),t.stateNode=e;e:{switch(o=rs(n,r),n){case"dialog":q("cancel",e),q("close",e),i=r;break;case"iframe":case"object":case"embed":q("load",e),i=r;break;case"video":case"audio":for(i=0;i<Vr.length;i++)q(Vr[i],e);i=r;break;case"source":q("error",e),i=r;break;case"img":case"image":case"link":q("error",e),q("load",e),i=r;break;case"details":q("toggle",e),i=r;break;case"input":hu(e,r),i=Xo(e,r),q("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=te({},r,{value:void 0}),q("invalid",e);break;case"textarea":mu(e,r),i=es(e,r),q("invalid",e);break;default:i=r}ns(n,i),s=i;for(l in s)if(s.hasOwnProperty(l)){var a=s[l];l==="style"?kf(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Sf(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ii(e,a):typeof a=="number"&&ii(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ri.hasOwnProperty(l)?a!=null&&l==="onScroll"&&q("scroll",e):a!=null&&aa(e,l,a,o))}switch(n){case"input":Hi(e),pu(e,r,!1);break;case"textarea":Hi(e),yu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+on(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?tr(e,!!r.multiple,l,!1):r.defaultValue!=null&&tr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Tl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return we(t),null;case 6:if(e&&t.stateNode!=null)Yd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=vn(mi.current),vn(yt.current),Ji(t)){if(r=t.stateNode,n=t.memoizedProps,r[pt]=t,(l=r.nodeValue!==n)&&(e=Ue,e!==null))switch(e.tag){case 3:Xi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Xi(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[pt]=t,t.stateNode=r}return we(t),null;case 13:if(b(J),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(X&&ze!==null&&t.mode&1&&!(t.flags&128))cd(),Sr(),t.flags|=98560,l=!1;else if(l=Ji(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(N(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(N(317));l[pt]=t}else Sr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;we(t),l=!1}else rt!==null&&(zs(rt),rt=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||J.current&1?ue===0&&(ue=3):Ba())),t.updateQueue!==null&&(t.flags|=4),we(t),null);case 4:return kr(),Os(e,t),e===null&&fi(t.stateNode.containerInfo),we(t),null;case 10:return Na(t.type._context),we(t),null;case 17:return Fe(t.type)&&Ol(),we(t),null;case 19:if(b(J),l=t.memoizedState,l===null)return we(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)zr(l,!1);else{if(ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Il(e),o!==null){for(t.flags|=128,zr(l,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,e=o.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return G(J,J.current&1|2),t.child}e=e.sibling}l.tail!==null&&le()>Pr&&(t.flags|=128,r=!0,zr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Il(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),zr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!X)return we(t),null}else 2*le()-l.renderingStartTime>Pr&&n!==1073741824&&(t.flags|=128,r=!0,zr(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(n=l.last,n!==null?n.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=le(),t.sibling=null,n=J.current,G(J,r?n&1|2:n&1),t):(we(t),null);case 22:case 23:return Ha(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ie&1073741824&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function ny(e,t){switch(ka(t),t.tag){case 1:return Fe(t.type)&&Ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kr(),b(De),b(Se),La(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ma(t),null;case 13:if(b(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return b(J),null;case 4:return kr(),null;case 10:return Na(t.type._context),null;case 22:case 23:return Ha(),null;case 24:return null;default:return null}}var tl=!1,xe=!1,ry=typeof WeakSet=="function"?WeakSet:Set,M=null;function Zn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function _s(e,t,n){try{n()}catch(r){re(e,t,r)}}var lc=!1;function iy(e,t){if(hs=Pl,e=Xf(),Sa(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,s=-1,a=-1,u=0,f=0,d=e,m=null;t:for(;;){for(var v;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==l||r!==0&&d.nodeType!==3||(a=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(v=d.firstChild)!==null;)m=d,d=v;for(;;){if(d===e)break t;if(m===n&&++u===i&&(s=o),m===l&&++f===r&&(a=o),(v=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=v}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ps={focusedElem:e,selectionRange:n},Pl=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var S=g.memoizedProps,E=g.memoizedState,h=t.stateNode,c=h.getSnapshotBeforeUpdate(t.elementType===t.type?S:Ze(t.type,S),E);h.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(w){re(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return g=lc,lc=!1,g}function Zr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var l=i.destroy;i.destroy=void 0,l!==void 0&&_s(t,n,l)}i=i.next}while(i!==r)}}function no(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ms(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Kd(e){var t=e.alternate;t!==null&&(e.alternate=null,Kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pt],delete t[hi],delete t[gs],delete t[Wm],delete t[$m])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gd(e){return e.tag===5||e.tag===3||e.tag===4}function oc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ls(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Tl));else if(r!==4&&(e=e.child,e!==null))for(Ls(e,t,n),e=e.sibling;e!==null;)Ls(e,t,n),e=e.sibling}function Ds(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ds(e,t,n),e=e.sibling;e!==null;)Ds(e,t,n),e=e.sibling}var pe=null,nt=!1;function Dt(e,t,n){for(n=n.child;n!==null;)qd(e,t,n),n=n.sibling}function qd(e,t,n){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Gl,n)}catch{}switch(n.tag){case 5:xe||Zn(n,t);case 6:var r=pe,i=nt;pe=null,Dt(e,t,n),pe=r,nt=i,pe!==null&&(nt?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(nt?(e=pe,n=n.stateNode,e.nodeType===8?Mo(e.parentNode,n):e.nodeType===1&&Mo(e,n),ai(e)):Mo(pe,n.stateNode));break;case 4:r=pe,i=nt,pe=n.stateNode.containerInfo,nt=!0,Dt(e,t,n),pe=r,nt=i;break;case 0:case 11:case 14:case 15:if(!xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&_s(n,t,o),i=i.next}while(i!==r)}Dt(e,t,n);break;case 1:if(!xe&&(Zn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){re(n,t,s)}Dt(e,t,n);break;case 21:Dt(e,t,n);break;case 22:n.mode&1?(xe=(r=xe)||n.memoizedState!==null,Dt(e,t,n),xe=r):Dt(e,t,n);break;default:Dt(e,t,n)}}function sc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ry),t.forEach(function(r){var i=hy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Je(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:pe=s.stateNode,nt=!1;break e;case 3:pe=s.stateNode.containerInfo,nt=!0;break e;case 4:pe=s.stateNode.containerInfo,nt=!0;break e}s=s.return}if(pe===null)throw Error(N(160));qd(l,o,i),pe=null,nt=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){re(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)bd(t,e),t=t.sibling}function bd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Je(t,e),ut(e),r&4){try{Zr(3,e,e.return),no(3,e)}catch(S){re(e,e.return,S)}try{Zr(5,e,e.return)}catch(S){re(e,e.return,S)}}break;case 1:Je(t,e),ut(e),r&512&&n!==null&&Zn(n,n.return);break;case 5:if(Je(t,e),ut(e),r&512&&n!==null&&Zn(n,n.return),e.flags&32){var i=e.stateNode;try{ii(i,"")}catch(S){re(e,e.return,S)}}if(r&4&&(i=e.stateNode,i!=null)){var l=e.memoizedProps,o=n!==null?n.memoizedProps:l,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&l.type==="radio"&&l.name!=null&&vf(i,l),rs(s,o);var u=rs(s,l);for(o=0;o<a.length;o+=2){var f=a[o],d=a[o+1];f==="style"?kf(i,d):f==="dangerouslySetInnerHTML"?Sf(i,d):f==="children"?ii(i,d):aa(i,f,d,u)}switch(s){case"input":Jo(i,l);break;case"textarea":wf(i,l);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var v=l.value;v!=null?tr(i,!!l.multiple,v,!1):m!==!!l.multiple&&(l.defaultValue!=null?tr(i,!!l.multiple,l.defaultValue,!0):tr(i,!!l.multiple,l.multiple?[]:"",!1))}i[hi]=l}catch(S){re(e,e.return,S)}}break;case 6:if(Je(t,e),ut(e),r&4){if(e.stateNode===null)throw Error(N(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(S){re(e,e.return,S)}}break;case 3:if(Je(t,e),ut(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ai(t.containerInfo)}catch(S){re(e,e.return,S)}break;case 4:Je(t,e),ut(e);break;case 13:Je(t,e),ut(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||($a=le())),r&4&&sc(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(xe=(u=xe)||f,Je(t,e),xe=u):Je(t,e),ut(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(M=e,f=e.child;f!==null;){for(d=M=f;M!==null;){switch(m=M,v=m.child,m.tag){case 0:case 11:case 14:case 15:Zr(4,m,m.return);break;case 1:Zn(m,m.return);var g=m.stateNode;if(typeof g.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(S){re(r,n,S)}}break;case 5:Zn(m,m.return);break;case 22:if(m.memoizedState!==null){uc(d);continue}}v!==null?(v.return=m,M=v):uc(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{i=d.stateNode,u?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(s=d.stateNode,a=d.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=Ef("display",o))}catch(S){re(e,e.return,S)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(S){re(e,e.return,S)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Je(t,e),ut(e),r&4&&sc(e);break;case 21:break;default:Je(t,e),ut(e)}}function ut(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Gd(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ii(i,""),r.flags&=-33);var l=oc(e);Ds(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=oc(e);Ls(e,s,o);break;default:throw Error(N(161))}}catch(a){re(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ly(e,t,n){M=e,Xd(e)}function Xd(e,t,n){for(var r=(e.mode&1)!==0;M!==null;){var i=M,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||tl;if(!o){var s=i.alternate,a=s!==null&&s.memoizedState!==null||xe;s=tl;var u=xe;if(tl=o,(xe=a)&&!u)for(M=i;M!==null;)o=M,a=o.child,o.tag===22&&o.memoizedState!==null?cc(i):a!==null?(a.return=o,M=a):cc(i);for(;l!==null;)M=l,Xd(l),l=l.sibling;M=i,tl=s,xe=u}ac(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,M=l):ac(e)}}function ac(e){for(;M!==null;){var t=M;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:xe||no(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!xe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ze(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Yu(t,l,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Yu(t,o,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&ai(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}xe||t.flags&512&&Ms(t)}catch(m){re(t,t.return,m)}}if(t===e){M=null;break}if(n=t.sibling,n!==null){n.return=t.return,M=n;break}M=t.return}}function uc(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var n=t.sibling;if(n!==null){n.return=t.return,M=n;break}M=t.return}}function cc(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{no(4,t)}catch(a){re(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){re(t,i,a)}}var l=t.return;try{Ms(t)}catch(a){re(t,l,a)}break;case 5:var o=t.return;try{Ms(t)}catch(a){re(t,o,a)}}}catch(a){re(t,t.return,a)}if(t===e){M=null;break}var s=t.sibling;if(s!==null){s.return=t.return,M=s;break}M=t.return}}var oy=Math.ceil,Al=Lt.ReactCurrentDispatcher,Aa=Lt.ReactCurrentOwner,Ke=Lt.ReactCurrentBatchConfig,Q=0,he=null,se=null,ye=0,Ie=0,er=un(0),ue=0,wi=null,Fn=0,ro=0,Wa=0,ei=null,Me=null,$a=0,Pr=1/0,wt=null,Wl=!1,Fs=null,tn=null,nl=!1,qt=null,$l=0,ti=0,js=null,ml=-1,yl=0;function Pe(){return Q&6?le():ml!==-1?ml:ml=le()}function nn(e){return e.mode&1?Q&2&&ye!==0?ye&-ye:Hm.transition!==null?(yl===0&&(yl=jf()),yl):(e=K,e!==0||(e=window.event,e=e===void 0?16:Qf(e.type)),e):1}function lt(e,t,n,r){if(50<ti)throw ti=0,js=null,Error(N(185));_i(e,n,r),(!(Q&2)||e!==he)&&(e===he&&(!(Q&2)&&(ro|=n),ue===4&&At(e,ye)),je(e,r),n===1&&Q===0&&!(t.mode&1)&&(Pr=le()+500,Zl&&cn()))}function je(e,t){var n=e.callbackNode;Hp(e,t);var r=Cl(e,e===he?ye:0);if(r===0)n!==null&&wu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&wu(n),t===1)e.tag===0?Qm(fc.bind(null,e)):sd(fc.bind(null,e)),Um(function(){!(Q&6)&&cn()}),n=null;else{switch(If(r)){case 1:n=ha;break;case 4:n=Df;break;case 16:n=kl;break;case 536870912:n=Ff;break;default:n=kl}n=lh(n,Jd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Jd(e,t){if(ml=-1,yl=0,Q&6)throw Error(N(327));var n=e.callbackNode;if(or()&&e.callbackNode!==n)return null;var r=Cl(e,e===he?ye:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ql(e,r);else{t=r;var i=Q;Q|=2;var l=eh();(he!==e||ye!==t)&&(wt=null,Pr=le()+500,On(e,t));do try{uy();break}catch(s){Zd(e,s)}while(!0);Ra(),Al.current=l,Q=i,se!==null?t=0:(he=null,ye=0,t=ue)}if(t!==0){if(t===2&&(i=as(e),i!==0&&(r=i,t=Is(e,i))),t===1)throw n=wi,On(e,0),At(e,r),je(e,le()),n;if(t===6)At(e,r);else{if(i=e.current.alternate,!(r&30)&&!sy(i)&&(t=Ql(e,r),t===2&&(l=as(e),l!==0&&(r=l,t=Is(e,l))),t===1))throw n=wi,On(e,0),At(e,r),je(e,le()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:pn(e,Me,wt);break;case 3:if(At(e,r),(r&130023424)===r&&(t=$a+500-le(),10<t)){if(Cl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Pe(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ys(pn.bind(null,e,Me,wt),t);break}pn(e,Me,wt);break;case 4:if(At(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-it(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oy(r/1960))-r,10<r){e.timeoutHandle=ys(pn.bind(null,e,Me,wt),r);break}pn(e,Me,wt);break;case 5:pn(e,Me,wt);break;default:throw Error(N(329))}}}return je(e,le()),e.callbackNode===n?Jd.bind(null,e):null}function Is(e,t){var n=ei;return e.current.memoizedState.isDehydrated&&(On(e,t).flags|=256),e=Ql(e,t),e!==2&&(t=Me,Me=n,t!==null&&zs(t)),e}function zs(e){Me===null?Me=e:Me.push.apply(Me,e)}function sy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!ot(l(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function At(e,t){for(t&=~Wa,t&=~ro,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function fc(e){if(Q&6)throw Error(N(327));or();var t=Cl(e,0);if(!(t&1))return je(e,le()),null;var n=Ql(e,t);if(e.tag!==0&&n===2){var r=as(e);r!==0&&(t=r,n=Is(e,r))}if(n===1)throw n=wi,On(e,0),At(e,t),je(e,le()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pn(e,Me,wt),je(e,le()),null}function Qa(e,t){var n=Q;Q|=1;try{return e(t)}finally{Q=n,Q===0&&(Pr=le()+500,Zl&&cn())}}function jn(e){qt!==null&&qt.tag===0&&!(Q&6)&&or();var t=Q;Q|=1;var n=Ke.transition,r=K;try{if(Ke.transition=null,K=1,e)return e()}finally{K=r,Ke.transition=n,Q=t,!(Q&6)&&cn()}}function Ha(){Ie=er.current,b(er)}function On(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,zm(n)),se!==null)for(n=se.return;n!==null;){var r=n;switch(ka(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ol();break;case 3:kr(),b(De),b(Se),La();break;case 5:Ma(r);break;case 4:kr();break;case 13:b(J);break;case 19:b(J);break;case 10:Na(r.type._context);break;case 22:case 23:Ha()}n=n.return}if(he=e,se=e=rn(e.current,null),ye=Ie=t,ue=0,wi=null,Wa=ro=Fn=0,Me=ei=null,gn!==null){for(t=0;t<gn.length;t++)if(n=gn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}gn=null}return e}function Zd(e,t){do{var n=se;try{if(Ra(),dl.current=Ul,zl){for(var r=Z.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}zl=!1}if(Dn=0,de=ae=Z=null,Jr=!1,yi=0,Aa.current=null,n===null||n.return===null){ue=1,wi=t,se=null;break}e:{var l=e,o=n.return,s=n,a=t;if(t=ye,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,f=s,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var m=f.alternate;m?(f.updateQueue=m.updateQueue,f.memoizedState=m.memoizedState,f.lanes=m.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=Ju(o);if(v!==null){v.flags&=-257,Zu(v,o,s,l,t),v.mode&1&&Xu(l,u,t),t=v,a=u;var g=t.updateQueue;if(g===null){var S=new Set;S.add(a),t.updateQueue=S}else g.add(a);break e}else{if(!(t&1)){Xu(l,u,t),Ba();break e}a=Error(N(426))}}else if(X&&s.mode&1){var E=Ju(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),Zu(E,o,s,l,t),Ca(Cr(a,s));break e}}l=a=Cr(a,s),ue!==4&&(ue=2),ei===null?ei=[l]:ei.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var h=Id(l,a,t);Vu(l,h);break e;case 1:s=a;var c=l.type,p=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(tn===null||!tn.has(p)))){l.flags|=65536,t&=-t,l.lanes|=t;var w=zd(l,s,t);Vu(l,w);break e}}l=l.return}while(l!==null)}nh(n)}catch(C){t=C,se===n&&n!==null&&(se=n=n.return);continue}break}while(!0)}function eh(){var e=Al.current;return Al.current=Ul,e===null?Ul:e}function Ba(){(ue===0||ue===3||ue===2)&&(ue=4),he===null||!(Fn&268435455)&&!(ro&268435455)||At(he,ye)}function Ql(e,t){var n=Q;Q|=2;var r=eh();(he!==e||ye!==t)&&(wt=null,On(e,t));do try{ay();break}catch(i){Zd(e,i)}while(!0);if(Ra(),Q=n,Al.current=r,se!==null)throw Error(N(261));return he=null,ye=0,ue}function ay(){for(;se!==null;)th(se)}function uy(){for(;se!==null&&!Fp();)th(se)}function th(e){var t=ih(e.alternate,e,Ie);e.memoizedProps=e.pendingProps,t===null?nh(e):se=t,Aa.current=null}function nh(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ny(n,t),n!==null){n.flags&=32767,se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ue=6,se=null;return}}else if(n=ty(n,t,Ie),n!==null){se=n;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);ue===0&&(ue=5)}function pn(e,t,n){var r=K,i=Ke.transition;try{Ke.transition=null,K=1,cy(e,t,n,r)}finally{Ke.transition=i,K=r}return null}function cy(e,t,n,r){do or();while(qt!==null);if(Q&6)throw Error(N(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Bp(e,l),e===he&&(se=he=null,ye=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||nl||(nl=!0,lh(kl,function(){return or(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Ke.transition,Ke.transition=null;var o=K;K=1;var s=Q;Q|=4,Aa.current=null,iy(e,n),bd(n,e),_m(ps),Pl=!!hs,ps=hs=null,e.current=n,ly(n),jp(),Q=s,K=o,Ke.transition=l}else e.current=n;if(nl&&(nl=!1,qt=e,$l=i),l=e.pendingLanes,l===0&&(tn=null),Up(n.stateNode),je(e,le()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Wl)throw Wl=!1,e=Fs,Fs=null,e;return $l&1&&e.tag!==0&&or(),l=e.pendingLanes,l&1?e===js?ti++:(ti=0,js=e):ti=0,cn(),null}function or(){if(qt!==null){var e=If($l),t=Ke.transition,n=K;try{if(Ke.transition=null,K=16>e?16:e,qt===null)var r=!1;else{if(e=qt,qt=null,$l=0,Q&6)throw Error(N(331));var i=Q;for(Q|=4,M=e.current;M!==null;){var l=M,o=l.child;if(M.flags&16){var s=l.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(M=u;M!==null;){var f=M;switch(f.tag){case 0:case 11:case 15:Zr(8,f,l)}var d=f.child;if(d!==null)d.return=f,M=d;else for(;M!==null;){f=M;var m=f.sibling,v=f.return;if(Kd(f),f===u){M=null;break}if(m!==null){m.return=v,M=m;break}M=v}}}var g=l.alternate;if(g!==null){var S=g.child;if(S!==null){g.child=null;do{var E=S.sibling;S.sibling=null,S=E}while(S!==null)}}M=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,M=o;else e:for(;M!==null;){if(l=M,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Zr(9,l,l.return)}var h=l.sibling;if(h!==null){h.return=l.return,M=h;break e}M=l.return}}var c=e.current;for(M=c;M!==null;){o=M;var p=o.child;if(o.subtreeFlags&2064&&p!==null)p.return=o,M=p;else e:for(o=c;M!==null;){if(s=M,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:no(9,s)}}catch(C){re(s,s.return,C)}if(s===o){M=null;break e}var w=s.sibling;if(w!==null){w.return=s.return,M=w;break e}M=s.return}}if(Q=i,cn(),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(Gl,e)}catch{}r=!0}return r}finally{K=n,Ke.transition=t}}return!1}function dc(e,t,n){t=Cr(n,t),t=Id(e,t,1),e=en(e,t,1),t=Pe(),e!==null&&(_i(e,1,t),je(e,t))}function re(e,t,n){if(e.tag===3)dc(e,e,n);else for(;t!==null;){if(t.tag===3){dc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(tn===null||!tn.has(r))){e=Cr(n,e),e=zd(t,e,1),t=en(t,e,1),e=Pe(),t!==null&&(_i(t,1,e),je(t,e));break}}t=t.return}}function fy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Pe(),e.pingedLanes|=e.suspendedLanes&n,he===e&&(ye&n)===n&&(ue===4||ue===3&&(ye&130023424)===ye&&500>le()-$a?On(e,0):Wa|=n),je(e,t)}function rh(e,t){t===0&&(e.mode&1?(t=Yi,Yi<<=1,!(Yi&130023424)&&(Yi=4194304)):t=1);var n=Pe();e=Ot(e,t),e!==null&&(_i(e,t,n),je(e,n))}function dy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),rh(e,n)}function hy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),rh(e,n)}var ih;ih=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||De.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,ey(e,t,n);Le=!!(e.flags&131072)}else Le=!1,X&&t.flags&1048576&&ad(t,Ll,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pl(e,t),e=t.pendingProps;var i=xr(t,Se.current);lr(t,n),i=Fa(null,t,r,e,i,n);var l=ja();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fe(r)?(l=!0,_l(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Oa(t),i.updater=to,t.stateNode=i,i._reactInternals=t,ks(t,r,e,n),t=Rs(null,t,r,!0,l,n)):(t.tag=0,X&&l&&Ea(t),Ce(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=my(r),e=Ze(r,e),i){case 0:t=Ps(null,t,r,e,n);break e;case 1:t=nc(null,t,r,e,n);break e;case 11:t=ec(null,t,r,e,n);break e;case 14:t=tc(null,t,r,Ze(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),Ps(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),nc(e,t,r,i,n);case 3:e:{if($d(t),e===null)throw Error(N(387));r=t.pendingProps,l=t.memoizedState,i=l.element,pd(e,t),jl(t,r,null,n);var o=t.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){i=Cr(Error(N(423)),t),t=rc(e,t,r,n,i);break e}else if(r!==i){i=Cr(Error(N(424)),t),t=rc(e,t,r,n,i);break e}else for(ze=Zt(t.stateNode.containerInfo.firstChild),Ue=t,X=!0,rt=null,n=dd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Sr(),r===i){t=_t(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return md(t),e===null&&xs(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,ms(r,i)?o=null:l!==null&&ms(r,l)&&(t.flags|=32),Wd(e,t),Ce(e,t,o,n),t.child;case 6:return e===null&&xs(t),null;case 13:return Qd(e,t,n);case 4:return _a(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Er(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),ec(e,t,r,i,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value,G(Dl,r._currentValue),r._currentValue=o,l!==null)if(ot(l.value,o)){if(l.children===i.children&&!De.current){t=_t(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Pt(-1,n&-n),a.tag=2;var u=l.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Ss(l.return,n,t),s.lanes|=n;break}a=a.next}}else if(l.tag===10)o=l.type===t.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(N(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Ss(o,n,t),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Ce(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,lr(t,n),i=Ge(i),r=r(i),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,i=Ze(r,t.pendingProps),i=Ze(r.type,i),tc(e,t,r,i,n);case 15:return Ud(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ze(r,i),pl(e,t),t.tag=1,Fe(r)?(e=!0,_l(t)):e=!1,lr(t,n),jd(t,r,i),ks(t,r,i,n),Rs(null,t,r,!0,e,n);case 19:return Hd(e,t,n);case 22:return Ad(e,t,n)}throw Error(N(156,t.tag))};function lh(e,t){return Lf(e,t)}function py(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ye(e,t,n,r){return new py(e,t,n,r)}function Va(e){return e=e.prototype,!(!e||!e.isReactComponent)}function my(e){if(typeof e=="function")return Va(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ca)return 11;if(e===fa)return 14}return 2}function rn(e,t){var n=e.alternate;return n===null?(n=Ye(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function gl(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Va(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Bn:return _n(n.children,i,l,t);case ua:o=8,i|=8;break;case Ko:return e=Ye(12,n,t,i|2),e.elementType=Ko,e.lanes=l,e;case Go:return e=Ye(13,n,t,i),e.elementType=Go,e.lanes=l,e;case qo:return e=Ye(19,n,t,i),e.elementType=qo,e.lanes=l,e;case mf:return io(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hf:o=10;break e;case pf:o=9;break e;case ca:o=11;break e;case fa:o=14;break e;case It:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Ye(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function _n(e,t,n,r){return e=Ye(7,e,r,t),e.lanes=n,e}function io(e,t,n,r){return e=Ye(22,e,r,t),e.elementType=mf,e.lanes=n,e.stateNode={isHidden:!1},e}function Ao(e,t,n){return e=Ye(6,e,null,t),e.lanes=n,e}function Wo(e,t,n){return t=Ye(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yy(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xo(0),this.expirationTimes=xo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ya(e,t,n,r,i,l,o,s,a){return e=new yy(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Ye(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oa(l),e}function gy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Hn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function oh(e){if(!e)return sn;e=e._reactInternals;e:{if(An(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Fe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(Fe(n))return od(e,n,t)}return t}function sh(e,t,n,r,i,l,o,s,a){return e=Ya(n,r,!0,e,i,l,o,s,a),e.context=oh(null),n=e.current,r=Pe(),i=nn(n),l=Pt(r,i),l.callback=t??null,en(n,l,i),e.current.lanes=i,_i(e,i,r),je(e,r),e}function lo(e,t,n,r){var i=t.current,l=Pe(),o=nn(i);return n=oh(n),t.context===null?t.context=n:t.pendingContext=n,t=Pt(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=en(i,t,o),e!==null&&(lt(e,i,o,l),fl(e,i,o)),o}function Hl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function hc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ka(e,t){hc(e,t),(e=e.alternate)&&hc(e,t)}function vy(){return null}var ah=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ga(e){this._internalRoot=e}oo.prototype.render=Ga.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));lo(e,t,null,null)};oo.prototype.unmount=Ga.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jn(function(){lo(null,e,null,null)}),t[Tt]=null}};function oo(e){this._internalRoot=e}oo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Af();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ut.length&&t!==0&&t<Ut[n].priority;n++);Ut.splice(n,0,e),n===0&&$f(e)}};function qa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function so(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pc(){}function wy(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=Hl(o);l.call(u)}}var o=sh(t,r,e,0,null,!1,!1,"",pc);return e._reactRootContainer=o,e[Tt]=o.current,fi(e.nodeType===8?e.parentNode:e),jn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=Hl(a);s.call(u)}}var a=Ya(e,0,!1,null,null,!1,!1,"",pc);return e._reactRootContainer=a,e[Tt]=a.current,fi(e.nodeType===8?e.parentNode:e),jn(function(){lo(t,a,n,r)}),a}function ao(e,t,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var s=i;i=function(){var a=Hl(o);s.call(a)}}lo(t,o,e,i)}else o=wy(n,t,e,i,r);return Hl(o)}zf=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Br(t.pendingLanes);n!==0&&(pa(t,n|1),je(t,le()),!(Q&6)&&(Pr=le()+500,cn()))}break;case 13:jn(function(){var r=Ot(e,1);if(r!==null){var i=Pe();lt(r,e,1,i)}}),Ka(e,1)}};ma=function(e){if(e.tag===13){var t=Ot(e,134217728);if(t!==null){var n=Pe();lt(t,e,134217728,n)}Ka(e,134217728)}};Uf=function(e){if(e.tag===13){var t=nn(e),n=Ot(e,t);if(n!==null){var r=Pe();lt(n,e,t,r)}Ka(e,t)}};Af=function(){return K};Wf=function(e,t){var n=K;try{return K=e,t()}finally{K=n}};ls=function(e,t,n){switch(t){case"input":if(Jo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Jl(r);if(!i)throw Error(N(90));gf(r),Jo(r,i)}}}break;case"textarea":wf(e,n);break;case"select":t=n.value,t!=null&&tr(e,!!n.multiple,t,!1)}};Rf=Qa;Nf=jn;var xy={usingClientEntryPoint:!1,Events:[Li,Gn,Jl,Cf,Pf,Qa]},Ur={findFiberByHostInstance:yn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Sy={bundleType:Ur.bundleType,version:Ur.version,rendererPackageName:Ur.rendererPackageName,rendererConfig:Ur.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Lt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_f(e),e===null?null:e.stateNode},findFiberByHostInstance:Ur.findFiberByHostInstance||vy,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rl.isDisabled&&rl.supportsFiber)try{Gl=rl.inject(Sy),mt=rl}catch{}}We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xy;We.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!qa(t))throw Error(N(200));return gy(e,t,null,n)};We.createRoot=function(e,t){if(!qa(e))throw Error(N(299));var n=!1,r="",i=ah;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ya(e,1,!1,null,null,n,!1,r,i),e[Tt]=t.current,fi(e.nodeType===8?e.parentNode:e),new Ga(t)};We.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=_f(t),e=e===null?null:e.stateNode,e};We.flushSync=function(e){return jn(e)};We.hydrate=function(e,t,n){if(!so(t))throw Error(N(200));return ao(null,e,t,!0,n)};We.hydrateRoot=function(e,t,n){if(!qa(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=ah;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=sh(t,null,e,1,n??null,i,!1,l,o),e[Tt]=t.current,fi(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new oo(t)};We.render=function(e,t,n){if(!so(t))throw Error(N(200));return ao(null,e,t,!1,n)};We.unmountComponentAtNode=function(e){if(!so(e))throw Error(N(40));return e._reactRootContainer?(jn(function(){ao(null,null,e,!1,function(){e._reactRootContainer=null,e[Tt]=null})}),!0):!1};We.unstable_batchedUpdates=Qa;We.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!so(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return ao(e,t,n,!1,r)};We.version="18.3.1-next-f1338f8080-20240426";function uh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uh)}catch(e){console.error(e)}}uh(),uf.exports=We;var Ey=uf.exports,mc=Ey;Vo.createRoot=mc.createRoot,Vo.hydrateRoot=mc.hydrateRoot;var Fi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ky={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Wt,ta,$c,Cy=($c=class{constructor(){D(this,Wt,ky);D(this,ta,!1)}setTimeoutProvider(e){_(this,Wt,e)}setTimeout(e,t){return y(this,Wt).setTimeout(e,t)}clearTimeout(e){y(this,Wt).clearTimeout(e)}setInterval(e,t){return y(this,Wt).setInterval(e,t)}clearInterval(e){y(this,Wt).clearInterval(e)}},Wt=new WeakMap,ta=new WeakMap,$c),wn=new Cy;function Py(e){setTimeout(e,0)}var In=typeof window>"u"||"Deno"in globalThis;function _e(){}function Ry(e,t){return typeof e=="function"?e(t):e}function Us(e){return typeof e=="number"&&e>=0&&e!==1/0}function ch(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ln(e,t){return typeof e=="function"?e(t):e}function He(e,t){return typeof e=="function"?e(t):e}function yc(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ba(o,t.options))return!1}else if(!Si(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||l&&!l(t))}function gc(e,t){const{exact:n,status:r,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(xi(t.options.mutationKey)!==xi(l))return!1}else if(!Si(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ba(e,t){return((t==null?void 0:t.queryKeyHashFn)||xi)(e)}function xi(e){return JSON.stringify(e,(t,n)=>Ws(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Si(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Si(e[n],t[n])):!1}var Ny=Object.prototype.hasOwnProperty;function fh(e,t){if(e===t)return e;const n=vc(e)&&vc(t);if(!n&&!(Ws(e)&&Ws(t)))return t;const i=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),o=l.length,s=n?new Array(o):{};let a=0;for(let u=0;u<o;u++){const f=n?u:l[u],d=e[f],m=t[f];if(d===m){s[f]=d,(n?u<i:Ny.call(e,f))&&a++;continue}if(d===null||m===null||typeof d!="object"||typeof m!="object"){s[f]=m;continue}const v=fh(d,m);s[f]=v,v===d&&a++}return i===o&&a===i?e:s}function As(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function vc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ws(e){if(!wc(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!wc(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function wc(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ty(e){return new Promise(t=>{wn.setTimeout(t,e)})}function $s(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?fh(e,t):t}function Oy(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function _y(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Xa=Symbol();function dh(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Xa?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function hh(e,t){return typeof e=="function"?e(...t):!!e}function My(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var xn,$t,sr,Qc,Ly=(Qc=class extends Fi{constructor(){super();D(this,xn);D(this,$t);D(this,sr);_(this,sr,t=>{if(!In&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,$t)||this.setEventListener(y(this,sr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,$t))==null||t.call(this),_(this,$t,void 0))}setEventListener(t){var n;_(this,sr,t),(n=y(this,$t))==null||n.call(this),_(this,$t,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,xn)!==t&&(_(this,xn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,xn)=="boolean"?y(this,xn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},xn=new WeakMap,$t=new WeakMap,sr=new WeakMap,Qc),Ja=new Ly;function Qs(){let e,t;const n=new Promise((i,l)=>{e=i,t=l});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var Dy=Py;function Fy(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=Dy;const l=s=>{t?e.push(s):i(()=>{n(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{r(()=>{s.forEach(a=>{n(a)})})})};return{batch:s=>{let a;t++;try{a=s()}finally{t--,t||o()}return a},batchCalls:s=>(...a)=>{l(()=>{s(...a)})},schedule:l,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{i=s}}}var me=Fy(),ar,Qt,ur,Hc,jy=(Hc=class extends Fi{constructor(){super();D(this,ar,!0);D(this,Qt);D(this,ur);_(this,ur,t=>{if(!In&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,Qt)||this.setEventListener(y(this,ur))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Qt))==null||t.call(this),_(this,Qt,void 0))}setEventListener(t){var n;_(this,ur,t),(n=y(this,Qt))==null||n.call(this),_(this,Qt,t(this.setOnline.bind(this)))}setOnline(t){y(this,ar)!==t&&(_(this,ar,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,ar)}},ar=new WeakMap,Qt=new WeakMap,ur=new WeakMap,Hc),Bl=new jy;function Iy(e){return Math.min(1e3*2**e,3e4)}function ph(e){return(e??"online")==="online"?Bl.isOnline():!0}var Hs=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function mh(e){let t=!1,n=0,r;const i=Qs(),l=()=>i.status!=="pending",o=S=>{var E;if(!l()){const h=new Hs(S);m(h),(E=e.onCancel)==null||E.call(e,h)}},s=()=>{t=!0},a=()=>{t=!1},u=()=>Ja.isFocused()&&(e.networkMode==="always"||Bl.isOnline())&&e.canRun(),f=()=>ph(e.networkMode)&&e.canRun(),d=S=>{l()||(r==null||r(),i.resolve(S))},m=S=>{l()||(r==null||r(),i.reject(S))},v=()=>new Promise(S=>{var E;r=h=>{(l()||u())&&S(h)},(E=e.onPause)==null||E.call(e)}).then(()=>{var S;r=void 0,l()||(S=e.onContinue)==null||S.call(e)}),g=()=>{if(l())return;let S;const E=n===0?e.initialPromise:void 0;try{S=E??e.fn()}catch(h){S=Promise.reject(h)}Promise.resolve(S).then(d).catch(h=>{var T;if(l())return;const c=e.retry??(In?0:3),p=e.retryDelay??Iy,w=typeof p=="function"?p(n,h):p,C=c===!0||typeof c=="number"&&n<c||typeof c=="function"&&c(n,h);if(t||!C){m(h);return}n++,(T=e.onFail)==null||T.call(e,n,h),Ty(w).then(()=>u()?void 0:v()).then(()=>{t?m(h):g()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:s,continueRetry:a,canStart:f,start:()=>(f()?g():v().then(g),i)}}var Sn,Bc,yh=(Bc=class{constructor(){D(this,Sn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Us(this.gcTime)&&_(this,Sn,wn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(In?1/0:5*60*1e3))}clearGcTimeout(){y(this,Sn)&&(wn.clearTimeout(y(this,Sn)),_(this,Sn,void 0))}},Sn=new WeakMap,Bc),En,cr,Qe,kn,fe,Ci,Cn,et,vt,Vc,zy=(Vc=class extends yh{constructor(t){super();D(this,et);D(this,En);D(this,cr);D(this,Qe);D(this,kn);D(this,fe);D(this,Ci);D(this,Cn);_(this,Cn,!1),_(this,Ci,t.defaultOptions),this.setOptions(t.options),this.observers=[],_(this,kn,t.client),_(this,Qe,y(this,kn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,_(this,En,Sc(this.options)),this.state=t.state??y(this,En),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,fe))==null?void 0:t.promise}setOptions(t){if(this.options={...y(this,Ci),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Sc(this.options);n.data!==void 0&&(this.setState(xc(n.data,n.dataUpdatedAt)),_(this,En,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Qe).remove(this)}setData(t,n){const r=$s(this.state.data,t,this.options);return W(this,et,vt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){W(this,et,vt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=y(this,fe))==null?void 0:r.promise;return(i=y(this,fe))==null||i.cancel(t),n?n.then(_e).catch(_e):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,En))}isActive(){return this.observers.some(t=>He(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Xa||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ln(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!ch(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,fe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,fe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,Qe).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,fe)&&(y(this,Cn)?y(this,fe).cancel({revert:!0}):y(this,fe).cancelRetry()),this.scheduleGc()),y(this,Qe).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||W(this,et,vt).call(this,{type:"invalidate"})}async fetch(t,n){var a,u,f,d,m,v,g,S,E,h,c,p;if(this.state.fetchStatus!=="idle"&&((a=y(this,fe))==null?void 0:a.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,fe))return y(this,fe).continueRetry(),y(this,fe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(C=>C.options.queryFn);w&&this.setOptions(w.options)}const r=new AbortController,i=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(_(this,Cn,!0),r.signal)})},l=()=>{const w=dh(this.options,n),T=(()=>{const O={client:y(this,kn),queryKey:this.queryKey,meta:this.meta};return i(O),O})();return _(this,Cn,!1),this.options.persister?this.options.persister(w,T,this):w(T)},s=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:y(this,kn),state:this.state,fetchFn:l};return i(w),w})();(u=this.options.behavior)==null||u.onFetch(s,this),_(this,cr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&W(this,et,vt).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta}),_(this,fe,mh({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:w=>{w instanceof Hs&&w.revert&&this.setState({...y(this,cr),fetchStatus:"idle"}),r.abort()},onFail:(w,C)=>{W(this,et,vt).call(this,{type:"failed",failureCount:w,error:C})},onPause:()=>{W(this,et,vt).call(this,{type:"pause"})},onContinue:()=>{W(this,et,vt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const w=await y(this,fe).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(v=(m=y(this,Qe).config).onSuccess)==null||v.call(m,w,this),(S=(g=y(this,Qe).config).onSettled)==null||S.call(g,w,this.state.error,this),w}catch(w){if(w instanceof Hs){if(w.silent)return y(this,fe).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw W(this,et,vt).call(this,{type:"error",error:w}),(h=(E=y(this,Qe).config).onError)==null||h.call(E,w,this),(p=(c=y(this,Qe).config).onSettled)==null||p.call(c,this.state.data,w,this),w}finally{this.scheduleGc()}}},En=new WeakMap,cr=new WeakMap,Qe=new WeakMap,kn=new WeakMap,fe=new WeakMap,Ci=new WeakMap,Cn=new WeakMap,et=new WeakSet,vt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...gh(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...xc(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return _(this,cr,t.manual?i:void 0),i;case"error":const l=t.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),me.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,Qe).notify({query:this,type:"updated",action:t})})},Vc);function gh(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ph(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function xc(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Sc(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Oe,$,Pi,Ee,Pn,fr,St,Ht,Ri,dr,hr,Rn,Nn,Bt,pr,V,Yr,Bs,Vs,Ys,Ks,Gs,qs,bs,vh,Yc,Uy=(Yc=class extends Fi{constructor(t,n){super();D(this,V);D(this,Oe);D(this,$);D(this,Pi);D(this,Ee);D(this,Pn);D(this,fr);D(this,St);D(this,Ht);D(this,Ri);D(this,dr);D(this,hr);D(this,Rn);D(this,Nn);D(this,Bt);D(this,pr,new Set);this.options=n,_(this,Oe,t),_(this,Ht,null),_(this,St,Qs()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,$).addObserver(this),Ec(y(this,$),this.options)?W(this,V,Yr).call(this):this.updateResult(),W(this,V,Ks).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xs(y(this,$),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xs(y(this,$),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,W(this,V,Gs).call(this),W(this,V,qs).call(this),y(this,$).removeObserver(this)}setOptions(t){const n=this.options,r=y(this,$);if(this.options=y(this,Oe).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof He(this.options.enabled,y(this,$))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");W(this,V,bs).call(this),y(this,$).setOptions(this.options),n._defaulted&&!As(this.options,n)&&y(this,Oe).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,$),observer:this});const i=this.hasListeners();i&&kc(y(this,$),r,this.options,n)&&W(this,V,Yr).call(this),this.updateResult(),i&&(y(this,$)!==r||He(this.options.enabled,y(this,$))!==He(n.enabled,y(this,$))||ln(this.options.staleTime,y(this,$))!==ln(n.staleTime,y(this,$)))&&W(this,V,Bs).call(this);const l=W(this,V,Vs).call(this);i&&(y(this,$)!==r||He(this.options.enabled,y(this,$))!==He(n.enabled,y(this,$))||l!==y(this,Bt))&&W(this,V,Ys).call(this,l)}getOptimisticResult(t){const n=y(this,Oe).getQueryCache().build(y(this,Oe),t),r=this.createResult(n,t);return Wy(this,r)&&(_(this,Ee,r),_(this,fr,this.options),_(this,Pn,y(this,$).state)),r}getCurrentResult(){return y(this,Ee)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&y(this,St).status==="pending"&&y(this,St).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){y(this,pr).add(t)}getCurrentQuery(){return y(this,$)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Oe).defaultQueryOptions(t),r=y(this,Oe).getQueryCache().build(y(this,Oe),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return W(this,V,Yr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,Ee)))}createResult(t,n){var F;const r=y(this,$),i=this.options,l=y(this,Ee),o=y(this,Pn),s=y(this,fr),u=t!==r?t.state:y(this,Pi),{state:f}=t;let d={...f},m=!1,v;if(n._optimisticResults){const R=this.hasListeners(),j=!R&&Ec(t,n),I=R&&kc(t,r,n,i);(j||I)&&(d={...d,...gh(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:g,errorUpdatedAt:S,status:E}=d;v=d.data;let h=!1;if(n.placeholderData!==void 0&&v===void 0&&E==="pending"){let R;l!=null&&l.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(R=l.data,h=!0):R=typeof n.placeholderData=="function"?n.placeholderData((F=y(this,hr))==null?void 0:F.state.data,y(this,hr)):n.placeholderData,R!==void 0&&(E="success",v=$s(l==null?void 0:l.data,R,n),m=!0)}if(n.select&&v!==void 0&&!h)if(l&&v===(o==null?void 0:o.data)&&n.select===y(this,Ri))v=y(this,dr);else try{_(this,Ri,n.select),v=n.select(v),v=$s(l==null?void 0:l.data,v,n),_(this,dr,v),_(this,Ht,null)}catch(R){_(this,Ht,R)}y(this,Ht)&&(g=y(this,Ht),v=y(this,dr),S=Date.now(),E="error");const c=d.fetchStatus==="fetching",p=E==="pending",w=E==="error",C=p&&c,T=v!==void 0,P={status:E,fetchStatus:d.fetchStatus,isPending:p,isSuccess:E==="success",isError:w,isInitialLoading:C,isLoading:C,data:v,dataUpdatedAt:d.dataUpdatedAt,error:g,errorUpdatedAt:S,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:c,isRefetching:c&&!p,isLoadingError:w&&!T,isPaused:d.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:w&&T,isStale:Za(t,n),refetch:this.refetch,promise:y(this,St),isEnabled:He(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const R=B=>{P.status==="error"?B.reject(P.error):P.data!==void 0&&B.resolve(P.data)},j=()=>{const B=_(this,St,P.promise=Qs());R(B)},I=y(this,St);switch(I.status){case"pending":t.queryHash===r.queryHash&&R(I);break;case"fulfilled":(P.status==="error"||P.data!==I.value)&&j();break;case"rejected":(P.status!=="error"||P.error!==I.reason)&&j();break}}return P}updateResult(){const t=y(this,Ee),n=this.createResult(y(this,$),this.options);if(_(this,Pn,y(this,$).state),_(this,fr,this.options),y(this,Pn).data!==void 0&&_(this,hr,y(this,$)),As(n,t))return;_(this,Ee,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!y(this,pr).size)return!0;const o=new Set(l??y(this,pr));return this.options.throwOnError&&o.add("error"),Object.keys(y(this,Ee)).some(s=>{const a=s;return y(this,Ee)[a]!==t[a]&&o.has(a)})};W(this,V,vh).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&W(this,V,Ks).call(this)}},Oe=new WeakMap,$=new WeakMap,Pi=new WeakMap,Ee=new WeakMap,Pn=new WeakMap,fr=new WeakMap,St=new WeakMap,Ht=new WeakMap,Ri=new WeakMap,dr=new WeakMap,hr=new WeakMap,Rn=new WeakMap,Nn=new WeakMap,Bt=new WeakMap,pr=new WeakMap,V=new WeakSet,Yr=function(t){W(this,V,bs).call(this);let n=y(this,$).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(_e)),n},Bs=function(){W(this,V,Gs).call(this);const t=ln(this.options.staleTime,y(this,$));if(In||y(this,Ee).isStale||!Us(t))return;const r=ch(y(this,Ee).dataUpdatedAt,t)+1;_(this,Rn,wn.setTimeout(()=>{y(this,Ee).isStale||this.updateResult()},r))},Vs=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,$)):this.options.refetchInterval)??!1},Ys=function(t){W(this,V,qs).call(this),_(this,Bt,t),!(In||He(this.options.enabled,y(this,$))===!1||!Us(y(this,Bt))||y(this,Bt)===0)&&_(this,Nn,wn.setInterval(()=>{(this.options.refetchIntervalInBackground||Ja.isFocused())&&W(this,V,Yr).call(this)},y(this,Bt)))},Ks=function(){W(this,V,Bs).call(this),W(this,V,Ys).call(this,W(this,V,Vs).call(this))},Gs=function(){y(this,Rn)&&(wn.clearTimeout(y(this,Rn)),_(this,Rn,void 0))},qs=function(){y(this,Nn)&&(wn.clearInterval(y(this,Nn)),_(this,Nn,void 0))},bs=function(){const t=y(this,Oe).getQueryCache().build(y(this,Oe),this.options);if(t===y(this,$))return;const n=y(this,$);_(this,$,t),_(this,Pi,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},vh=function(t){me.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,Ee))}),y(this,Oe).getQueryCache().notify({query:y(this,$),type:"observerResultsUpdated"})})},Yc);function Ay(e,t){return He(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ec(e,t){return Ay(e,t)||e.state.data!==void 0&&Xs(e,t,t.refetchOnMount)}function Xs(e,t,n){if(He(t.enabled,e)!==!1&&ln(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Za(e,t)}return!1}function kc(e,t,n,r){return(e!==t||He(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Za(e,n)}function Za(e,t){return He(t.enabled,e)!==!1&&e.isStaleByTime(ln(t.staleTime,e))}function Wy(e,t){return!As(e.getCurrentResult(),t)}function Cc(e){return{onFetch:(t,n)=>{var f,d,m,v,g;const r=t.options,i=(m=(d=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:d.fetchMore)==null?void 0:m.direction,l=((v=t.state.data)==null?void 0:v.pages)||[],o=((g=t.state.data)==null?void 0:g.pageParams)||[];let s={pages:[],pageParams:[]},a=0;const u=async()=>{let S=!1;const E=p=>{My(p,()=>t.signal,()=>S=!0)},h=dh(t.options,t.fetchOptions),c=async(p,w,C)=>{if(S)return Promise.reject();if(w==null&&p.pages.length)return Promise.resolve(p);const O=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:w,direction:C?"backward":"forward",meta:t.options.meta};return E(j),j})(),P=await h(O),{maxPages:F}=t.options,R=C?_y:Oy;return{pages:R(p.pages,P,F),pageParams:R(p.pageParams,w,F)}};if(i&&l.length){const p=i==="backward",w=p?$y:Pc,C={pages:l,pageParams:o},T=w(r,C);s=await c(C,T,p)}else{const p=e??l.length;do{const w=a===0?o[0]??r.initialPageParam:Pc(r,s);if(a>0&&w==null)break;s=await c(s,w),a++}while(a<p)}return s};t.options.persister?t.fetchFn=()=>{var S,E;return(E=(S=t.options).persister)==null?void 0:E.call(S,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Pc(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function $y(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ni,ft,ke,Tn,dt,jt,Kc,Qy=(Kc=class extends yh{constructor(t){super();D(this,dt);D(this,Ni);D(this,ft);D(this,ke);D(this,Tn);_(this,Ni,t.client),this.mutationId=t.mutationId,_(this,ke,t.mutationCache),_(this,ft,[]),this.state=t.state||Hy(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,ft).includes(t)||(y(this,ft).push(t),this.clearGcTimeout(),y(this,ke).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){_(this,ft,y(this,ft).filter(n=>n!==t)),this.scheduleGc(),y(this,ke).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,ft).length||(this.state.status==="pending"?this.scheduleGc():y(this,ke).remove(this))}continue(){var t;return((t=y(this,Tn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,a,u,f,d,m,v,g,S,E,h,c,p,w,C,T,O,P,F;const n=()=>{W(this,dt,jt).call(this,{type:"continue"})},r={client:y(this,Ni),meta:this.options.meta,mutationKey:this.options.mutationKey};_(this,Tn,mh({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(R,j)=>{W(this,dt,jt).call(this,{type:"failed",failureCount:R,error:j})},onPause:()=>{W(this,dt,jt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,ke).canRun(this)}));const i=this.state.status==="pending",l=!y(this,Tn).canStart();try{if(i)n();else{W(this,dt,jt).call(this,{type:"pending",variables:t,isPaused:l}),await((s=(o=y(this,ke).config).onMutate)==null?void 0:s.call(o,t,this,r));const j=await((u=(a=this.options).onMutate)==null?void 0:u.call(a,t,r));j!==this.state.context&&W(this,dt,jt).call(this,{type:"pending",context:j,variables:t,isPaused:l})}const R=await y(this,Tn).start();return await((d=(f=y(this,ke).config).onSuccess)==null?void 0:d.call(f,R,t,this.state.context,this,r)),await((v=(m=this.options).onSuccess)==null?void 0:v.call(m,R,t,this.state.context,r)),await((S=(g=y(this,ke).config).onSettled)==null?void 0:S.call(g,R,null,this.state.variables,this.state.context,this,r)),await((h=(E=this.options).onSettled)==null?void 0:h.call(E,R,null,t,this.state.context,r)),W(this,dt,jt).call(this,{type:"success",data:R}),R}catch(R){try{await((p=(c=y(this,ke).config).onError)==null?void 0:p.call(c,R,t,this.state.context,this,r))}catch(j){Promise.reject(j)}try{await((C=(w=this.options).onError)==null?void 0:C.call(w,R,t,this.state.context,r))}catch(j){Promise.reject(j)}try{await((O=(T=y(this,ke).config).onSettled)==null?void 0:O.call(T,void 0,R,this.state.variables,this.state.context,this,r))}catch(j){Promise.reject(j)}try{await((F=(P=this.options).onSettled)==null?void 0:F.call(P,void 0,R,t,this.state.context,r))}catch(j){Promise.reject(j)}throw W(this,dt,jt).call(this,{type:"error",error:R}),R}finally{y(this,ke).runNext(this)}}},Ni=new WeakMap,ft=new WeakMap,ke=new WeakMap,Tn=new WeakMap,dt=new WeakSet,jt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),me.batch(()=>{y(this,ft).forEach(r=>{r.onMutationUpdate(t)}),y(this,ke).notify({mutation:this,type:"updated",action:t})})},Kc);function Hy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Et,tt,Ti,Gc,By=(Gc=class extends Fi{constructor(t={}){super();D(this,Et);D(this,tt);D(this,Ti);this.config=t,_(this,Et,new Set),_(this,tt,new Map),_(this,Ti,0)}build(t,n,r){const i=new Qy({client:t,mutationCache:this,mutationId:++Wi(this,Ti)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){y(this,Et).add(t);const n=il(t);if(typeof n=="string"){const r=y(this,tt).get(n);r?r.push(t):y(this,tt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(y(this,Et).delete(t)){const n=il(t);if(typeof n=="string"){const r=y(this,tt).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&y(this,tt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=il(t);if(typeof n=="string"){const r=y(this,tt).get(n),i=r==null?void 0:r.find(l=>l.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=il(t);if(typeof n=="string"){const i=(r=y(this,tt).get(n))==null?void 0:r.find(l=>l!==t&&l.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){me.batch(()=>{y(this,Et).forEach(t=>{this.notify({type:"removed",mutation:t})}),y(this,Et).clear(),y(this,tt).clear()})}getAll(){return Array.from(y(this,Et))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>gc(n,r))}findAll(t={}){return this.getAll().filter(n=>gc(t,n))}notify(t){me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return me.batch(()=>Promise.all(t.map(n=>n.continue().catch(_e))))}},Et=new WeakMap,tt=new WeakMap,Ti=new WeakMap,Gc);function il(e){var t;return(t=e.options.scope)==null?void 0:t.id}var ht,qc,Vy=(qc=class extends Fi{constructor(t={}){super();D(this,ht);this.config=t,_(this,ht,new Map)}build(t,n,r){const i=n.queryKey,l=n.queryHash??ba(i,n);let o=this.get(l);return o||(o=new zy({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){y(this,ht).has(t.queryHash)||(y(this,ht).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,ht).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,ht).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){me.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,ht).get(t)}getAll(){return[...y(this,ht).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>yc(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>yc(t,r)):n}notify(t){me.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){me.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){me.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ht=new WeakMap,qc),ne,Vt,Yt,mr,yr,Kt,gr,vr,bc,Yy=(bc=class{constructor(e={}){D(this,ne);D(this,Vt);D(this,Yt);D(this,mr);D(this,yr);D(this,Kt);D(this,gr);D(this,vr);_(this,ne,e.queryCache||new Vy),_(this,Vt,e.mutationCache||new By),_(this,Yt,e.defaultOptions||{}),_(this,mr,new Map),_(this,yr,new Map),_(this,Kt,0)}mount(){Wi(this,Kt)._++,y(this,Kt)===1&&(_(this,gr,Ja.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ne).onFocus())})),_(this,vr,Bl.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ne).onOnline())})))}unmount(){var e,t;Wi(this,Kt)._--,y(this,Kt)===0&&((e=y(this,gr))==null||e.call(this),_(this,gr,void 0),(t=y(this,vr))==null||t.call(this),_(this,vr,void 0))}isFetching(e){return y(this,ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,Vt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=y(this,ne).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ln(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(this,ne).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=y(this,ne).get(r.queryHash),l=i==null?void 0:i.state.data,o=Ry(t,l);if(o!==void 0)return y(this,ne).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return me.batch(()=>y(this,ne).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,ne);me.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,ne);return me.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=me.batch(()=>y(this,ne).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(_e).catch(_e)}invalidateQueries(e,t={}){return me.batch(()=>(y(this,ne).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=me.batch(()=>y(this,ne).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let l=i.fetch(void 0,n);return n.throwOnError||(l=l.catch(_e)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(_e)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,ne).build(this,t);return n.isStaleByTime(ln(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(_e).catch(_e)}fetchInfiniteQuery(e){return e.behavior=Cc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(_e).catch(_e)}ensureInfiniteQueryData(e){return e.behavior=Cc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Bl.isOnline()?y(this,Vt).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,ne)}getMutationCache(){return y(this,Vt)}getDefaultOptions(){return y(this,Yt)}setDefaultOptions(e){_(this,Yt,e)}setQueryDefaults(e,t){y(this,mr).set(xi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,mr).values()],n={};return t.forEach(r=>{Si(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,yr).set(xi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,yr).values()],n={};return t.forEach(r=>{Si(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Yt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ba(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Xa&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Yt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,ne).clear(),y(this,Vt).clear()}},ne=new WeakMap,Vt=new WeakMap,Yt=new WeakMap,mr=new WeakMap,yr=new WeakMap,Kt=new WeakMap,gr=new WeakMap,vr=new WeakMap,bc),wh=x.createContext(void 0),Ky=e=>{const t=x.useContext(wh);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Gy=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),k.jsx(wh.Provider,{value:e,children:t})),xh=x.createContext(!1),qy=()=>x.useContext(xh);xh.Provider;function by(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Xy=x.createContext(by()),Jy=()=>x.useContext(Xy),Zy=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?hh(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},eg=e=>{x.useEffect(()=>{e.clearReset()},[e])},tg=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||hh(n,[e.error,r])),ng=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},rg=(e,t)=>e.isLoading&&e.isFetching&&!t,ig=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Rc=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function lg(e,t,n){var m,v,g,S;const r=qy(),i=Jy(),l=Ky(),o=l.defaultQueryOptions(e);(v=(m=l.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||v.call(m,o);const s=l.getQueryCache().get(o.queryHash);o._optimisticResults=r?"isRestoring":"optimistic",ng(o),Zy(o,i,s),eg(i);const a=!l.getQueryCache().get(o.queryHash),[u]=x.useState(()=>new t(l,o)),f=u.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(E=>{const h=d?u.subscribe(me.batchCalls(E)):_e;return u.updateResult(),h},[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),x.useEffect(()=>{u.setOptions(o)},[o,u]),ig(o,f))throw Rc(o,u,i);if(tg({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;if((S=(g=l.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||S.call(g,o,f),o.experimental_prefetchInRender&&!In&&rg(f,r)){const E=a?Rc(o,u,i):s==null?void 0:s.promise;E==null||E.catch(_e).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?f:u.trackResult(f)}function Sh(e,t){return lg(e,Uy)}/**
41
+ * react-router v7.11.0
42
+ *
43
+ * Copyright (c) Remix Software Inc.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE.md file in the root directory of this source tree.
47
+ *
48
+ * @license MIT
49
+ */var Nc="popstate";function og(e={}){function t(r,i){let{pathname:l,search:o,hash:s}=r.location;return Js("",{pathname:l,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Ei(i)}return ag(t,n,null,e)}function ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function st(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sg(){return Math.random().toString(36).substring(2,10)}function Tc(e,t){return{usr:e.state,key:e.key,idx:t}}function Js(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Or(t):t,state:n,key:t&&t.key||r||sg()}}function Ei({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Or(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ag(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:l=!1}=r,o=i.history,s="POP",a=null,u=f();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function f(){return(o.state||{idx:null}).idx}function d(){s="POP";let E=f(),h=E==null?null:E-u;u=E,a&&a({action:s,location:S.location,delta:h})}function m(E,h){s="PUSH";let c=Js(S.location,E,h);u=f()+1;let p=Tc(c,u),w=S.createHref(c);try{o.pushState(p,"",w)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(w)}l&&a&&a({action:s,location:S.location,delta:1})}function v(E,h){s="REPLACE";let c=Js(S.location,E,h);u=f();let p=Tc(c,u),w=S.createHref(c);o.replaceState(p,"",w),l&&a&&a({action:s,location:S.location,delta:0})}function g(E){return ug(E)}let S={get action(){return s},get location(){return e(i,o)},listen(E){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Nc,d),a=E,()=>{i.removeEventListener(Nc,d),a=null}},createHref(E){return t(i,E)},createURL:g,encodeLocation(E){let h=g(E);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:v,go(E){return o.go(E)}};return S}function ug(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ee(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Ei(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Eh(e,t,n="/"){return cg(e,t,n,!1)}function cg(e,t,n,r){let i=typeof t=="string"?Or(t):t,l=Mt(i.pathname||"/",n);if(l==null)return null;let o=kh(e);fg(o);let s=null;for(let a=0;s==null&&a<o.length;++a){let u=Eg(l);s=xg(o[a],u,r)}return s}function kh(e,t=[],n=[],r="",i=!1){let l=(o,s,a=i,u)=>{let f={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&a)return;ee(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let d=Rt([r,f.relativePath]),m=n.concat(f);o.children&&o.children.length>0&&(ee(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),kh(o.children,t,m,d,a)),!(o.path==null&&!o.index)&&t.push({path:d,score:vg(d,o.index),routesMeta:m})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,s);else for(let u of Ch(o.path))l(o,s,!0,u)}),t}function Ch(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let o=Ch(r.join("/")),s=[];return s.push(...o.map(a=>a===""?l:[l,a].join("/"))),i&&s.push(...o),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function fg(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:wg(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var dg=/^:[\w-]+$/,hg=3,pg=2,mg=1,yg=10,gg=-2,Oc=e=>e==="*";function vg(e,t){let n=e.split("/"),r=n.length;return n.some(Oc)&&(r+=gg),t&&(r+=pg),n.filter(i=>!Oc(i)).reduce((i,l)=>i+(dg.test(l)?hg:l===""?mg:yg),r)}function wg(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function xg(e,t,n=!1){let{routesMeta:r}=e,i={},l="/",o=[];for(let s=0;s<r.length;++s){let a=r[s],u=s===r.length-1,f=l==="/"?t:t.slice(l.length)||"/",d=Vl({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},f),m=a.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=Vl({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},f)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Rt([l,d.pathname]),pathnameBase:Rg(Rt([l,d.pathnameBase])),route:m}),d.pathnameBase!=="/"&&(l=Rt([l,d.pathnameBase]))}return o}function Vl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Sg(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let l=i[0],o=l.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:d},m)=>{if(f==="*"){let g=s[m]||"";o=l.slice(0,l.length-g.length).replace(/(.)\/+$/,"$1")}const v=s[m];return d&&!v?u[f]=void 0:u[f]=(v||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:o,pattern:e}}function Sg(e,t=!1,n=!0){st(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Eg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return st(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Mt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Ph=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kg=e=>Ph.test(e);function Cg(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Or(e):e,l;if(n)if(kg(n))l=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),st(!1,`Pathnames cannot have embedded double slashes - normalizing ${o} -> ${n}`)}n.startsWith("/")?l=_c(n.substring(1),"/"):l=_c(n,t)}else l=t;return{pathname:l,search:Ng(r),hash:Tg(i)}}function _c(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function $o(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Pg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Rh(e){let t=Pg(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Nh(e,t,n,r=!1){let i;typeof e=="string"?i=Or(e):(i={...e},ee(!i.pathname||!i.pathname.includes("?"),$o("?","pathname","search",i)),ee(!i.pathname||!i.pathname.includes("#"),$o("#","pathname","hash",i)),ee(!i.search||!i.search.includes("#"),$o("#","search","hash",i)));let l=e===""||i.pathname==="",o=l?"/":i.pathname,s;if(o==null)s=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),d-=1;i.pathname=m.join("/")}s=d>=0?t[d]:"/"}let a=Cg(i,s),u=o&&o!=="/"&&o.endsWith("/"),f=(l||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||f)&&(a.pathname+="/"),a}var Rt=e=>e.join("/").replace(/\/\/+/g,"/"),Rg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ng=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Tg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Og=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function _g(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Mg(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Th=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Oh(e,t){let n=e;if(typeof n!="string"||!Ph.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Th)try{let l=new URL(window.location.href),o=n.startsWith("//")?new URL(l.protocol+n):new URL(n),s=Mt(o.pathname,t);o.origin===l.origin&&s!=null?n=s+o.search+o.hash:i=!0}catch{st(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var _h=["POST","PUT","PATCH","DELETE"];new Set(_h);var Lg=["GET",..._h];new Set(Lg);var _r=x.createContext(null);_r.displayName="DataRouter";var uo=x.createContext(null);uo.displayName="DataRouterState";var Dg=x.createContext(!1),Mh=x.createContext({isTransitioning:!1});Mh.displayName="ViewTransition";var Fg=x.createContext(new Map);Fg.displayName="Fetchers";var jg=x.createContext(null);jg.displayName="Await";var be=x.createContext(null);be.displayName="Navigation";var ji=x.createContext(null);ji.displayName="Location";var gt=x.createContext({outlet:null,matches:[],isDataRoute:!1});gt.displayName="Route";var eu=x.createContext(null);eu.displayName="RouteError";var Lh="REACT_ROUTER_ERROR",Ig="REDIRECT",zg="ROUTE_ERROR_RESPONSE";function Ug(e){if(e.startsWith(`${Lh}:${Ig}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Ag(e){if(e.startsWith(`${Lh}:${zg}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Og(t.status,t.statusText,t.data)}catch{}}function Wg(e,{relative:t}={}){ee(Ii(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=x.useContext(be),{hash:i,pathname:l,search:o}=zi(e,{relative:t}),s=l;return n!=="/"&&(s=l==="/"?n:Rt([n,l])),r.createHref({pathname:s,search:o,hash:i})}function Ii(){return x.useContext(ji)!=null}function Wn(){return ee(Ii(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(ji).location}var Dh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Fh(e){x.useContext(be).static||x.useLayoutEffect(e)}function jh(){let{isDataRoute:e}=x.useContext(gt);return e?ev():$g()}function $g(){ee(Ii(),"useNavigate() may be used only in the context of a <Router> component.");let e=x.useContext(_r),{basename:t,navigator:n}=x.useContext(be),{matches:r}=x.useContext(gt),{pathname:i}=Wn(),l=JSON.stringify(Rh(r)),o=x.useRef(!1);return Fh(()=>{o.current=!0}),x.useCallback((a,u={})=>{if(st(o.current,Dh),!o.current)return;if(typeof a=="number"){n.go(a);return}let f=Nh(a,JSON.parse(l),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Rt([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,l,i,e])}x.createContext(null);function Qg(){let{matches:e}=x.useContext(gt),t=e[e.length-1];return t?t.params:{}}function zi(e,{relative:t}={}){let{matches:n}=x.useContext(gt),{pathname:r}=Wn(),i=JSON.stringify(Rh(n));return x.useMemo(()=>Nh(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function Hg(e,t){return Ih(e,t)}function Ih(e,t,n,r,i){var c;ee(Ii(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=x.useContext(be),{matches:o}=x.useContext(gt),s=o[o.length-1],a=s?s.params:{},u=s?s.pathname:"/",f=s?s.pathnameBase:"/",d=s&&s.route;{let p=d&&d.path||"";Uh(u,!d||p.endsWith("*")||p.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${p}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
50
+
51
+ Please change the parent <Route path="${p}"> to <Route path="${p==="/"?"*":`${p}/*`}">.`)}let m=Wn(),v;if(t){let p=typeof t=="string"?Or(t):t;ee(f==="/"||((c=p.pathname)==null?void 0:c.startsWith(f)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${p.pathname}" was given in the \`location\` prop.`),v=p}else v=m;let g=v.pathname||"/",S=g;if(f!=="/"){let p=f.replace(/^\//,"").split("/");S="/"+g.replace(/^\//,"").split("/").slice(p.length).join("/")}let E=Eh(e,{pathname:S});st(d||E!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),st(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Gg(E&&E.map(p=>Object.assign({},p,{params:Object.assign({},a,p.params),pathname:Rt([f,l.encodeLocation?l.encodeLocation(p.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?f:Rt([f,l.encodeLocation?l.encodeLocation(p.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:p.pathnameBase])})),o,n,r,i);return t&&h?x.createElement(ji.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},h):h}function Bg(){let e=Zg(),t=_g(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:l},"ErrorBoundary")," or"," ",x.createElement("code",{style:l},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:i},n):null,o)}var Vg=x.createElement(Bg,null),zh=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Ag(e.digest);n&&(e=n)}let t=e!==void 0?x.createElement(gt.Provider,{value:this.props.routeContext},x.createElement(eu.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?x.createElement(Yg,{error:e},t):t}};zh.contextType=Dg;var Qo=new WeakMap;function Yg({children:e,error:t}){let{basename:n}=x.useContext(be);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Ug(t.digest);if(r){let i=Qo.get(t);if(i)throw i;let l=Oh(r.location,n);if(Th&&!Qo.get(t))if(l.isExternal||r.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:r.replace}));throw Qo.set(t,o),o}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function Kg({routeContext:e,match:t,children:n}){let r=x.useContext(_r);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),x.createElement(gt.Provider,{value:e},n)}function Gg(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,o=n==null?void 0:n.errors;if(o!=null){let f=l.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);ee(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),l=l.slice(0,Math.min(l.length,f+1))}let s=!1,a=-1;if(n)for(let f=0;f<l.length;f++){let d=l[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(a=f),d.route.id){let{loaderData:m,errors:v}=n,g=d.route.loader&&!m.hasOwnProperty(d.route.id)&&(!v||v[d.route.id]===void 0);if(d.route.lazy||g){s=!0,a>=0?l=l.slice(0,a+1):l=[l[0]];break}}}let u=n&&r?(f,d)=>{var m,v;r(f,{location:n.location,params:((v=(m=n.matches)==null?void 0:m[0])==null?void 0:v.params)??{},unstable_pattern:Mg(n.matches),errorInfo:d})}:void 0;return l.reduceRight((f,d,m)=>{let v,g=!1,S=null,E=null;n&&(v=o&&d.route.id?o[d.route.id]:void 0,S=d.route.errorElement||Vg,s&&(a<0&&m===0?(Uh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,E=null):a===m&&(g=!0,E=d.route.hydrateFallbackElement||null)));let h=t.concat(l.slice(0,m+1)),c=()=>{let p;return v?p=S:g?p=E:d.route.Component?p=x.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=f,x.createElement(Kg,{match:d,routeContext:{outlet:f,matches:h,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?x.createElement(zh,{location:n.location,revalidation:n.revalidation,component:S,error:v,children:c(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):c()},null)}function tu(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qg(e){let t=x.useContext(_r);return ee(t,tu(e)),t}function bg(e){let t=x.useContext(uo);return ee(t,tu(e)),t}function Xg(e){let t=x.useContext(gt);return ee(t,tu(e)),t}function nu(e){let t=Xg(e),n=t.matches[t.matches.length-1];return ee(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Jg(){return nu("useRouteId")}function Zg(){var r;let e=x.useContext(eu),t=bg("useRouteError"),n=nu("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function ev(){let{router:e}=qg("useNavigate"),t=nu("useNavigate"),n=x.useRef(!1);return Fh(()=>{n.current=!0}),x.useCallback(async(i,l={})=>{st(n.current,Dh),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var Mc={};function Uh(e,t,n){!t&&!Mc[e]&&(Mc[e]=!0,st(!1,n))}x.memo(tv);function tv({routes:e,future:t,state:n,onError:r}){return Ih(e,void 0,n,r,t)}function Zs(e){ee(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function nv({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:l=!1,unstable_useTransitions:o}){ee(!Ii(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),a=x.useMemo(()=>({basename:s,navigator:i,static:l,unstable_useTransitions:o,future:{}}),[s,i,l,o]);typeof n=="string"&&(n=Or(n));let{pathname:u="/",search:f="",hash:d="",state:m=null,key:v="default"}=n,g=x.useMemo(()=>{let S=Mt(u,s);return S==null?null:{location:{pathname:S,search:f,hash:d,state:m,key:v},navigationType:r}},[s,u,f,d,m,v,r]);return st(g!=null,`<Router basename="${s}"> is not able to match the URL "${u}${f}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:x.createElement(be.Provider,{value:a},x.createElement(ji.Provider,{children:t,value:g}))}function rv({children:e,location:t}){return Hg(ea(e),t)}function ea(e,t=[]){let n=[];return x.Children.forEach(e,(r,i)=>{if(!x.isValidElement(r))return;let l=[...t,i];if(r.type===x.Fragment){n.push.apply(n,ea(r.props.children,l));return}ee(r.type===Zs,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ee(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=ea(r.props.children,l)),n.push(o)}),n}var vl="get",wl="application/x-www-form-urlencoded";function co(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function iv(e){return co(e)&&e.tagName.toLowerCase()==="button"}function lv(e){return co(e)&&e.tagName.toLowerCase()==="form"}function ov(e){return co(e)&&e.tagName.toLowerCase()==="input"}function sv(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function av(e,t){return e.button===0&&(!t||t==="_self")&&!sv(e)}var ll=null;function uv(){if(ll===null)try{new FormData(document.createElement("form"),0),ll=!1}catch{ll=!0}return ll}var cv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ho(e){return e!=null&&!cv.has(e)?(st(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${wl}"`),null):e}function fv(e,t){let n,r,i,l,o;if(lv(e)){let s=e.getAttribute("action");r=s?Mt(s,t):null,n=e.getAttribute("method")||vl,i=Ho(e.getAttribute("enctype"))||wl,l=new FormData(e)}else if(iv(e)||ov(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||s.getAttribute("action");if(r=a?Mt(a,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||vl,i=Ho(e.getAttribute("formenctype"))||Ho(s.getAttribute("enctype"))||wl,l=new FormData(s,e),!uv()){let{name:u,type:f,value:d}=e;if(f==="image"){let m=u?`${u}.`:"";l.append(`${m}x`,"0"),l.append(`${m}y`,"0")}else u&&l.append(u,d)}}else{if(co(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=vl,r=null,i=wl,o=e}return l&&i==="text/plain"&&(o=l,l=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:l,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ru(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dv(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Mt(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function hv(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function pv(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function mv(e,t,n){let r=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let o=await hv(l,n);return o.links?o.links():[]}return[]}));return wv(r.flat(1).filter(pv).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Lc(e,t,n,r,i,l){let o=(a,u)=>n[u]?a.route.id!==n[u].route.id:!0,s=(a,u)=>{var f;return n[u].pathname!==a.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==a.params["*"]};return l==="assets"?t.filter((a,u)=>o(a,u)||s(a,u)):l==="data"?t.filter((a,u)=>{var d;let f=r.routes[a.route.id];if(!f||!f.hasLoader)return!1;if(o(a,u)||s(a,u))return!0;if(a.route.shouldRevalidate){let m=a.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:a.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function yv(e,t,{includeHydrateFallback:n}={}){return gv(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let l=[i.module];return i.clientActionModule&&(l=l.concat(i.clientActionModule)),i.clientLoaderModule&&(l=l.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(l=l.concat(i.hydrateFallbackModule)),i.imports&&(l=l.concat(i.imports)),l}).flat(1))}function gv(e){return[...new Set(e)]}function vv(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function wv(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let l=JSON.stringify(vv(i));return n.has(l)||(n.add(l),r.push({key:l,link:i})),r},[])}function Ah(){let e=x.useContext(_r);return ru(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function xv(){let e=x.useContext(uo);return ru(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var iu=x.createContext(void 0);iu.displayName="FrameworkContext";function Wh(){let e=x.useContext(iu);return ru(e,"You must render this element inside a <HydratedRouter> element"),e}function Sv(e,t){let n=x.useContext(iu),[r,i]=x.useState(!1),[l,o]=x.useState(!1),{onFocus:s,onBlur:a,onMouseEnter:u,onMouseLeave:f,onTouchStart:d}=t,m=x.useRef(null);x.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let S=h=>{h.forEach(c=>{o(c.isIntersecting)})},E=new IntersectionObserver(S,{threshold:.5});return m.current&&E.observe(m.current),()=>{E.disconnect()}}},[e]),x.useEffect(()=>{if(r){let S=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(S)}}},[r]);let v=()=>{i(!0)},g=()=>{i(!1),o(!1)};return n?e!=="intent"?[l,m,{}]:[l,m,{onFocus:Ar(s,v),onBlur:Ar(a,g),onMouseEnter:Ar(u,v),onMouseLeave:Ar(f,g),onTouchStart:Ar(d,v)}]:[!1,m,{}]}function Ar(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ev({page:e,...t}){let{router:n}=Ah(),r=x.useMemo(()=>Eh(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?x.createElement(Cv,{page:e,matches:r,...t}):null}function kv(e){let{manifest:t,routeModules:n}=Wh(),[r,i]=x.useState([]);return x.useEffect(()=>{let l=!1;return mv(e,t,n).then(o=>{l||i(o)}),()=>{l=!0}},[e,t,n]),r}function Cv({page:e,matches:t,...n}){let r=Wn(),{manifest:i,routeModules:l}=Wh(),{basename:o}=Ah(),{loaderData:s,matches:a}=xv(),u=x.useMemo(()=>Lc(e,t,a,i,r,"data"),[e,t,a,i,r]),f=x.useMemo(()=>Lc(e,t,a,i,r,"assets"),[e,t,a,i,r]),d=x.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,S=!1;if(t.forEach(h=>{var p;let c=i.routes[h.route.id];!c||!c.hasLoader||(!u.some(w=>w.route.id===h.route.id)&&h.route.id in s&&((p=l[h.route.id])!=null&&p.shouldRevalidate)||c.hasClientLoader?S=!0:g.add(h.route.id))}),g.size===0)return[];let E=dv(e,o,"data");return S&&g.size>0&&E.searchParams.set("_routes",t.filter(h=>g.has(h.route.id)).map(h=>h.route.id).join(",")),[E.pathname+E.search]},[o,s,r,i,u,t,e,l]),m=x.useMemo(()=>yv(f,i),[f,i]),v=kv(f);return x.createElement(x.Fragment,null,d.map(g=>x.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),m.map(g=>x.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),v.map(({key:g,link:S})=>x.createElement("link",{key:g,nonce:n.nonce,...S})))}function Pv(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Rv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Rv&&(window.__reactRouterVersion="7.11.0")}catch{}function Nv({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=x.useRef();i.current==null&&(i.current=og({window:r,v5Compat:!0}));let l=i.current,[o,s]=x.useState({action:l.action,location:l.location}),a=x.useCallback(u=>{n===!1?s(u):x.startTransition(()=>s(u))},[n]);return x.useLayoutEffect(()=>l.listen(a),[l,a]),x.createElement(nv,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:l,unstable_useTransitions:n})}var $h=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lu=x.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:l,replace:o,state:s,target:a,to:u,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:m,...v},g){let{basename:S,unstable_useTransitions:E}=x.useContext(be),h=typeof u=="string"&&$h.test(u),c=Oh(u,S);u=c.to;let p=Wg(u,{relative:i}),[w,C,T]=Sv(r,v),O=Mv(u,{replace:o,state:s,target:a,preventScrollReset:f,relative:i,viewTransition:d,unstable_defaultShouldRevalidate:m,unstable_useTransitions:E});function P(R){t&&t(R),R.defaultPrevented||O(R)}let F=x.createElement("a",{...v,...T,href:c.absoluteURL||p,onClick:c.isExternal||l?t:P,ref:Pv(g,C),target:a,"data-discover":!h&&n==="render"?"true":void 0});return w&&!h?x.createElement(x.Fragment,null,F,x.createElement(Ev,{page:p})):F});lu.displayName="Link";var Tv=x.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:l,to:o,viewTransition:s,children:a,...u},f){let d=zi(o,{relative:u.relative}),m=Wn(),v=x.useContext(uo),{navigator:g,basename:S}=x.useContext(be),E=v!=null&&Iv(d)&&s===!0,h=g.encodeLocation?g.encodeLocation(d).pathname:d.pathname,c=m.pathname,p=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(c=c.toLowerCase(),p=p?p.toLowerCase():null,h=h.toLowerCase()),p&&S&&(p=Mt(p,S)||p);const w=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let C=c===h||!i&&c.startsWith(h)&&c.charAt(w)==="/",T=p!=null&&(p===h||!i&&p.startsWith(h)&&p.charAt(h.length)==="/"),O={isActive:C,isPending:T,isTransitioning:E},P=C?t:void 0,F;typeof r=="function"?F=r(O):F=[r,C?"active":null,T?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let R=typeof l=="function"?l(O):l;return x.createElement(lu,{...u,"aria-current":P,className:F,ref:f,style:R,to:o,viewTransition:s},typeof a=="function"?a(O):a)});Tv.displayName="NavLink";var Ov=x.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:l,method:o=vl,action:s,onSubmit:a,relative:u,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:m,...v},g)=>{let{unstable_useTransitions:S}=x.useContext(be),E=Fv(),h=jv(s,{relative:u}),c=o.toLowerCase()==="get"?"get":"post",p=typeof s=="string"&&$h.test(s),w=C=>{if(a&&a(C),C.defaultPrevented)return;C.preventDefault();let T=C.nativeEvent.submitter,O=(T==null?void 0:T.getAttribute("formmethod"))||o,P=()=>E(T||C.currentTarget,{fetcherKey:t,method:O,navigate:n,replace:i,state:l,relative:u,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:m});S&&n!==!1?x.startTransition(()=>P()):P()};return x.createElement("form",{ref:g,method:c,action:h,onSubmit:r?a:w,...v,"data-discover":!p&&e==="render"?"true":void 0})});Ov.displayName="Form";function _v(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qh(e){let t=x.useContext(_r);return ee(t,_v(e)),t}function Mv(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:l,viewTransition:o,unstable_defaultShouldRevalidate:s,unstable_useTransitions:a}={}){let u=jh(),f=Wn(),d=zi(e,{relative:l});return x.useCallback(m=>{if(av(m,t)){m.preventDefault();let v=n!==void 0?n:Ei(f)===Ei(d),g=()=>u(e,{replace:v,state:r,preventScrollReset:i,relative:l,viewTransition:o,unstable_defaultShouldRevalidate:s});a?x.startTransition(()=>g()):g()}},[f,u,d,n,r,t,e,i,l,o,s,a])}var Lv=0,Dv=()=>`__${String(++Lv)}__`;function Fv(){let{router:e}=Qh("useSubmit"),{basename:t}=x.useContext(be),n=Jg(),r=e.fetch,i=e.navigate;return x.useCallback(async(l,o={})=>{let{action:s,method:a,encType:u,formData:f,body:d}=fv(l,t);if(o.navigate===!1){let m=o.fetcherKey||Dv();await r(m,n,o.action||s,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:f,body:d,formMethod:o.method||a,formEncType:o.encType||u,flushSync:o.flushSync})}else await i(o.action||s,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:f,body:d,formMethod:o.method||a,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,i,t,n])}function jv(e,{relative:t}={}){let{basename:n}=x.useContext(be),r=x.useContext(gt);ee(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),l={...zi(e||".",{relative:t})},o=Wn();if(e==null){l.search=o.search;let s=new URLSearchParams(l.search),a=s.getAll("index");if(a.some(f=>f==="")){s.delete("index"),a.filter(d=>d).forEach(d=>s.append("index",d));let f=s.toString();l.search=f?`?${f}`:""}}return(!e||e===".")&&i.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Rt([n,l.pathname])),Ei(l)}function Iv(e,{relative:t}={}){let n=x.useContext(Mh);ee(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Qh("useViewTransitionState"),i=zi(e,{relative:t});if(!n.isTransitioning)return!1;let l=Mt(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Mt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Vl(i.pathname,o)!=null||Vl(i.pathname,l)!=null}function at(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function zn(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Hh=6048e5,zv=864e5;let Uv={};function fo(){return Uv}function ki(e,t){var s,a,u,f;const n=fo(),r=(t==null?void 0:t.weekStartsOn)??((a=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:a.weekStartsOn)??n.weekStartsOn??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.weekStartsOn)??0,i=at(e),l=i.getDay(),o=(l<r?7:0)+l-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Yl(e){return ki(e,{weekStartsOn:1})}function Bh(e){const t=at(e),n=t.getFullYear(),r=zn(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Yl(r),l=zn(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const o=Yl(l);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Dc(e){const t=at(e);return t.setHours(0,0,0,0),t}function Fc(e){const t=at(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Av(e,t){const n=Dc(e),r=Dc(t),i=+n-Fc(n),l=+r-Fc(r);return Math.round((i-l)/zv)}function Wv(e){const t=Bh(e),n=zn(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Yl(n)}function $v(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Qv(e){if(!$v(e)&&typeof e!="number")return!1;const t=at(e);return!isNaN(Number(t))}function Hv(e){const t=at(e),n=zn(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Bv={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Vv=(e,t,n)=>{let r;const i=Bv[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Bo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Yv={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kv={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Gv={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qv={date:Bo({formats:Yv,defaultWidth:"full"}),time:Bo({formats:Kv,defaultWidth:"full"}),dateTime:Bo({formats:Gv,defaultWidth:"full"})},bv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Xv=(e,t,n,r)=>bv[e];function Wr(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{const o=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[o]}const l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}const Jv={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Zv={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},e0={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},t0={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},r0={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},i0=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},l0={ordinalNumber:i0,era:Wr({values:Jv,defaultWidth:"wide"}),quarter:Wr({values:Zv,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Wr({values:e0,defaultWidth:"wide"}),day:Wr({values:t0,defaultWidth:"wide"}),dayPeriod:Wr({values:n0,defaultWidth:"wide",formattingValues:r0,defaultFormattingWidth:"wide"})};function $r(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(i);if(!l)return null;const o=l[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],a=Array.isArray(s)?s0(s,d=>d.test(o)):o0(s,d=>d.test(o));let u;u=e.valueCallback?e.valueCallback(a):a,u=n.valueCallback?n.valueCallback(u):u;const f=t.slice(o.length);return{value:u,rest:f}}}function o0(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function s0(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function a0(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],l=t.match(e.parsePattern);if(!l)return null;let o=e.valueCallback?e.valueCallback(l[0]):l[0];o=n.valueCallback?n.valueCallback(o):o;const s=t.slice(i.length);return{value:o,rest:s}}}const u0=/^(\d+)(th|st|nd|rd)?/i,c0=/\d+/i,f0={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},d0={any:[/^b/i,/^(a|c)/i]},h0={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},p0={any:[/1/i,/2/i,/3/i,/4/i]},m0={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y0={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},g0={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v0={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},w0={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},x0={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},S0={ordinalNumber:a0({matchPattern:u0,parsePattern:c0,valueCallback:e=>parseInt(e,10)}),era:$r({matchPatterns:f0,defaultMatchWidth:"wide",parsePatterns:d0,defaultParseWidth:"any"}),quarter:$r({matchPatterns:h0,defaultMatchWidth:"wide",parsePatterns:p0,defaultParseWidth:"any",valueCallback:e=>e+1}),month:$r({matchPatterns:m0,defaultMatchWidth:"wide",parsePatterns:y0,defaultParseWidth:"any"}),day:$r({matchPatterns:g0,defaultMatchWidth:"wide",parsePatterns:v0,defaultParseWidth:"any"}),dayPeriod:$r({matchPatterns:w0,defaultMatchWidth:"any",parsePatterns:x0,defaultParseWidth:"any"})},E0={code:"en-US",formatDistance:Vv,formatLong:qv,formatRelative:Xv,localize:l0,match:S0,options:{weekStartsOn:0,firstWeekContainsDate:1}};function k0(e){const t=at(e);return Av(t,Hv(t))+1}function C0(e){const t=at(e),n=+Yl(t)-+Wv(t);return Math.round(n/Hh)+1}function Vh(e,t){var f,d,m,v;const n=at(e),r=n.getFullYear(),i=fo(),l=(t==null?void 0:t.firstWeekContainsDate)??((d=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??i.firstWeekContainsDate??((v=(m=i.locale)==null?void 0:m.options)==null?void 0:v.firstWeekContainsDate)??1,o=zn(e,0);o.setFullYear(r+1,0,l),o.setHours(0,0,0,0);const s=ki(o,t),a=zn(e,0);a.setFullYear(r,0,l),a.setHours(0,0,0,0);const u=ki(a,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function P0(e,t){var s,a,u,f;const n=fo(),r=(t==null?void 0:t.firstWeekContainsDate)??((a=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:a.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(u=n.locale)==null?void 0:u.options)==null?void 0:f.firstWeekContainsDate)??1,i=Vh(e,t),l=zn(e,0);return l.setFullYear(i,0,r),l.setHours(0,0,0,0),ki(l,t)}function R0(e,t){const n=at(e),r=+ki(n,t)-+P0(n,t);return Math.round(r/Hh)+1}function Y(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ft={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Y(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Y(n+1,2)},d(e,t){return Y(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Y(e.getHours()%12||12,t.length)},H(e,t){return Y(e.getHours(),t.length)},m(e,t){return Y(e.getMinutes(),t.length)},s(e,t){return Y(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Y(i,t.length)}},Qn={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},jc={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Ft.y(e,t)},Y:function(e,t,n,r){const i=Vh(e,r),l=i>0?i:1-i;if(t==="YY"){const o=l%100;return Y(o,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):Y(l,t.length)},R:function(e,t){const n=Bh(e);return Y(n,t.length)},u:function(e,t){const n=e.getFullYear();return Y(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Y(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Y(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ft.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Y(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=R0(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Y(i,t.length)},I:function(e,t,n){const r=C0(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Y(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ft.d(e,t)},D:function(e,t,n){const r=k0(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Y(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return Y(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return Y(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Y(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Qn.noon:r===0?i=Qn.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Qn.evening:r>=12?i=Qn.afternoon:r>=4?i=Qn.morning:i=Qn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ft.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ft.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Y(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Y(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ft.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ft.s(e,t)},S:function(e,t){return Ft.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return zc(r);case"XXXX":case"XX":return mn(r);case"XXXXX":case"XXX":default:return mn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return zc(r);case"xxxx":case"xx":return mn(r);case"xxxxx":case"xxx":default:return mn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ic(r,":");case"OOOO":default:return"GMT"+mn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ic(r,":");case"zzzz":default:return"GMT"+mn(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return Y(r,t.length)},T:function(e,t,n){const r=e.getTime();return Y(r,t.length)}};function Ic(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),l=r%60;return l===0?n+String(i):n+String(i)+t+Y(l,2)}function zc(e,t){return e%60===0?(e>0?"-":"+")+Y(Math.abs(e)/60,2):mn(e,t)}function mn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Y(Math.trunc(r/60),2),l=Y(r%60,2);return n+i+t+l}const Uc=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Yh=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},N0=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Uc(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",Uc(r,t)).replace("{{time}}",Yh(i,t))},T0={p:Yh,P:N0},O0=/^D+$/,_0=/^Y+$/,M0=["D","DD","YY","YYYY"];function L0(e){return O0.test(e)}function D0(e){return _0.test(e)}function F0(e,t,n){const r=j0(e,t,n);if(console.warn(r),M0.includes(e))throw new RangeError(r)}function j0(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const I0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,z0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,U0=/^'([^]*?)'?$/,A0=/''/g,W0=/[a-zA-Z]/;function ni(e,t,n){var f,d,m,v;const r=fo(),i=r.locale??E0,l=r.firstWeekContainsDate??((d=(f=r.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??1,o=r.weekStartsOn??((v=(m=r.locale)==null?void 0:m.options)==null?void 0:v.weekStartsOn)??0,s=at(e);if(!Qv(s))throw new RangeError("Invalid time value");let a=t.match(z0).map(g=>{const S=g[0];if(S==="p"||S==="P"){const E=T0[S];return E(g,i.formatLong)}return g}).join("").match(I0).map(g=>{if(g==="''")return{isToken:!1,value:"'"};const S=g[0];if(S==="'")return{isToken:!1,value:$0(g)};if(jc[S])return{isToken:!0,value:g};if(S.match(W0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:g}});i.localize.preprocessor&&(a=i.localize.preprocessor(s,a));const u={firstWeekContainsDate:l,weekStartsOn:o,locale:i};return a.map(g=>{if(!g.isToken)return g.value;const S=g.value;(D0(S)||L0(S))&&F0(S,t,String(e));const E=jc[S[0]];return E(s,S,i.localize,u)}).join("")}function $0(e){const t=e.match(U0);return t?t[1].replace(A0,"'"):e}function Q0({displayName:e,sessionCount:t,lastActivity:n,sessions:r,selectedId:i,onSelectSession:l,initialExpanded:o=!1}){const[s,a]=x.useState(o);return x.useEffect(()=>{i&&r.some(f=>{var d;return f.id===i||((d=f.agentSessions)==null?void 0:d.some(m=>m.id===i))})&&a(!0)},[i,r]),k.jsxs("div",{className:"border-b border-gray-700",children:[k.jsx("button",{onClick:()=>a(!s),className:"sticky top-0 z-10 w-full text-left p-4 bg-gray-900 hover:bg-gray-800 transition-colors flex items-center justify-between",children:k.jsxs("div",{className:"flex-1 min-w-0",children:[k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("svg",{className:`w-4 h-4 transition-transform ${s?"rotate-90":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),k.jsx("span",{className:"font-semibold text-sm truncate",children:e})]}),k.jsxs("div",{className:"text-xs text-gray-400 mt-1 ml-6",children:[t," session",t!==1?"s":""," · Last activity"," ",ni(new Date(n),"PPp")]})]})}),s&&k.jsx("div",{className:"bg-gray-900/50",children:r.map(u=>k.jsxs("div",{children:[k.jsxs("button",{onClick:()=>l(u.id),className:`w-full text-left px-4 py-3 pl-8 hover:bg-gray-700/50 transition-colors border-l-2 ${i===u.id?"bg-gray-700 border-blue-500":"border-transparent"}`,children:[u.title&&k.jsx("div",{className:"text-sm font-medium text-gray-200 mb-1 truncate",children:u.title}),k.jsx("div",{className:"text-xs text-gray-400",children:ni(new Date(u.timestamp),"PPpp")}),k.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[u.messageCount," message",u.messageCount!==1?"s":"",u.agentSessions&&u.agentSessions.length>0&&k.jsxs("span",{className:"ml-2",children:["· ",u.agentSessions.length," task",u.agentSessions.length!==1?"s":""]})]})]}),u.agentSessions&&u.agentSessions.length>0&&k.jsx("div",{className:"bg-gray-900/70",children:u.agentSessions.map(f=>k.jsxs("button",{onClick:()=>l(f.id),className:`w-full text-left px-4 py-2 pl-14 hover:bg-gray-700/50 transition-colors border-l-2 ${i===f.id?"bg-gray-700 border-blue-500":"border-transparent"}`,children:[k.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[k.jsx("span",{className:"px-1.5 py-0.5 text-xs bg-purple-900/50 text-purple-300 rounded",children:"TASK"}),f.title&&k.jsx("span",{className:"text-sm font-medium text-gray-300 truncate",children:f.title})]}),k.jsx("div",{className:"text-xs text-gray-400",children:ni(new Date(f.timestamp),"PPpp")}),k.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[f.messageCount," message",f.messageCount!==1?"s":""]})]},f.id))})]},u.id))})]})}function H0({projects:e,selectedId:t,onSelect:n}){const r=i=>t?i.sessions.some(l=>{var o;return l.id===t||((o=l.agentSessions)==null?void 0:o.some(s=>s.id===t))}):!1;return k.jsx("div",{children:e.map(i=>k.jsx(Q0,{name:i.name,displayName:i.displayName,sessionCount:i.sessionCount,lastActivity:i.lastActivity,sessions:i.sessions,selectedId:t,onSelectSession:n,initialExpanded:r(i)},i.name))})}function B0({messages:e,activeId:t,onNavigate:n}){const[r,i]=x.useState([]),l=x.useRef(null),o=x.useRef(null),s=x.useRef(!1);x.useEffect(()=>{const u=e.map((f,d)=>{var S;const m=`message-${d}`;let v="";const g=[];if((S=f.message)!=null&&S.content&&Array.isArray(f.message.content)){const E=f.message.content.find(h=>h.type==="text");E&&(v=E.text.slice(0,50)+(E.text.length>50?"...":"")),f.message.content.forEach(h=>{h.type==="tool_use"?g.push({name:h.name,type:"tool_use"}):h.type==="tool_result"&&g.push({name:"Tool Result",type:"tool_result"})})}return{id:m,type:f.type||"system",text:v,toolUses:g,timestamp:f.timestamp}});i(u)},[e]),x.useEffect(()=>{if(!s.current&&l.current&&o.current){const u=o.current,f=l.current,d=u.getBoundingClientRect(),m=f.getBoundingClientRect();(m.top<d.top||m.bottom>d.bottom)&&f.scrollIntoView({behavior:"smooth",block:"center"})}},[t]);const a=u=>{s.current=!0,n(u),setTimeout(()=>{s.current=!1},1500)};return k.jsxs("div",{ref:o,className:"w-full border-l border-gray-700 bg-gray-800 overflow-y-auto h-full",children:[k.jsxs("div",{className:"p-4 border-b border-gray-700 sticky top-0 bg-gray-800 z-10",children:[k.jsx("h3",{className:"text-sm font-semibold text-gray-300",children:"Table of Contents"}),k.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:[r.length," messages"]})]}),k.jsx("nav",{className:"p-2",children:r.map((u,f)=>k.jsx("div",{className:"mb-1",children:k.jsxs("button",{ref:t===u.id?l:null,onClick:()=>a(u.id),className:`w-full text-left px-3 py-2 rounded text-xs transition-colors ${t===u.id?"bg-blue-900/50 text-blue-200 border-l-2 border-blue-400":"text-gray-400 hover:bg-gray-700 hover:text-gray-200"}`,children:[k.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[k.jsx("span",{className:`px-1.5 py-0.5 text-[10px] rounded ${u.type==="user"?"bg-blue-900/50 text-blue-300":u.type==="assistant"?"bg-green-900/50 text-green-300":"bg-gray-700 text-gray-400"}`,children:u.type}),k.jsxs("span",{className:"text-gray-500",children:["#",f+1]})]}),u.text&&k.jsx("div",{className:"text-gray-300 line-clamp-2 leading-tight",children:u.text}),u.toolUses.length>0&&k.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:u.toolUses.map((d,m)=>k.jsxs("span",{className:`px-1.5 py-0.5 text-[10px] rounded font-mono ${d.type==="tool_result"?"bg-green-900/30 text-green-400":"bg-yellow-900/30 text-yellow-400"}`,children:[d.type==="tool_result"?"✓":"🔧"," ",d.name]},m))})]})},u.id))})]})}const Kh=256,V0=640,Y0=896,K0=Y0+Kh;function G0({sessionId:e}){var j;const[t,n]=x.useState(null),[r,i]=x.useState(!0),[l,o]=x.useState(0),[s,a]=x.useState(!1),u=x.useRef(new Map),f=x.useRef(!1),d=x.useRef(null),m=x.useRef(null),v=x.useRef(0),{data:g,isLoading:S,error:E}=Sh({queryKey:["session",e],queryFn:async()=>{const I=await fetch(`/api/sessions/${e}`);if(!I.ok)throw new Error("Failed to fetch session");return I.json()}});x.useEffect(()=>{o(0),v.current=0,a(!1);const I=m.current;I&&(I.scrollTop=0)},[e]),x.useEffect(()=>{const I=m.current;if(!I)return;const B=()=>{const oe=I.scrollTop,Te=oe<v.current;o(oe),a(Te),v.current=oe};return I.addEventListener("scroll",B),()=>I.removeEventListener("scroll",B)},[e,g]),x.useEffect(()=>{if(!d.current)return;const I=d.current.parentElement??d.current,B=H=>{i(H>=K0)},oe=new ResizeObserver(H=>{for(const Xe of H)B(Xe.contentRect.width)}),Te=I.getBoundingClientRect().width;return B(Te),oe.observe(I),()=>{oe.disconnect()}},[]),x.useEffect(()=>{var B;if(!((B=g==null?void 0:g.session)!=null&&B.messages))return;const I=new IntersectionObserver(oe=>{f.current||oe.forEach(Te=>{if(Te.isIntersecting){const H=Te.target.getAttribute("data-message-id");H&&n(H)}})},{rootMargin:"-50% 0px -50% 0px",threshold:0});return u.current.forEach(oe=>{I.observe(oe)}),()=>{I.disconnect()}},[(j=g==null?void 0:g.session)==null?void 0:j.messages]);const h=I=>{n(I),f.current=!0;const B=u.current.get(I);B&&B.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>{f.current=!1},1500)};if(S)return k.jsx("div",{className:"flex items-center justify-center h-full",children:k.jsx("div",{className:"text-gray-400",children:"Loading session..."})});if(E)return k.jsx("div",{className:"flex items-center justify-center h-full",children:k.jsxs("div",{className:"text-red-400",children:["Error: ",E.message]})});const c=g==null?void 0:g.session,w=Math.max(0,1-(s?0:l)/80),C=w,T=w,O=14+w*8,P=1.25+w*.25,F=C>0?"auto":0,R=Math.max(0,1-T);return k.jsxs("div",{ref:d,className:"h-full flex min-w-0",children:[k.jsxs("div",{className:"flex-1 flex flex-col min-w-0",style:{minWidth:`${V0}px`},children:[k.jsxs("div",{className:"border-b border-gray-700 bg-gray-800 flex-shrink-0 transition-all duration-200",style:{padding:`${O}px 24px`},children:[k.jsxs("div",{className:"flex items-center gap-2",children:[(c==null?void 0:c.isAgent)&&k.jsx("span",{className:"px-2 py-1 text-xs bg-purple-900/50 text-purple-300 rounded font-semibold",children:"TASK"}),k.jsx("h2",{className:"font-bold truncate flex-1 transition-all duration-200",style:{fontSize:`${P}rem`},children:(c==null?void 0:c.title)||"Untitled Session"}),R>0&&k.jsx("span",{className:"px-2 py-1 text-xs bg-gray-700 text-gray-300 rounded transition-opacity duration-200",style:{opacity:R},children:c==null?void 0:c.project})]}),k.jsx("div",{className:"text-xl text-gray-300 transition-all duration-200",style:{opacity:T,height:T>0?"auto":0,overflow:"hidden",marginTop:"-2px"},children:c==null?void 0:c.project}),k.jsxs("div",{className:"flex items-center gap-3 text-sm text-gray-400 transition-all duration-200",style:{opacity:C,height:F,overflow:"hidden",marginTop:C>0?"1rem":0},children:[k.jsx("span",{children:(c==null?void 0:c.timestamp)&&ni(new Date(c.timestamp),"PPpp")}),k.jsx("span",{children:"•"}),k.jsxs("span",{children:[(c==null?void 0:c.messageCount)||0," message",(c==null?void 0:c.messageCount)!==1?"s":""]}),(c==null?void 0:c.agentSessions)&&c.agentSessions.length>0&&k.jsxs(k.Fragment,{children:[k.jsx("span",{children:"•"}),k.jsxs("span",{children:[c.agentSessions.length," task",c.agentSessions.length!==1?"s":""]})]})]})]}),k.jsx("div",{ref:m,className:"flex-1 overflow-y-auto p-6",children:k.jsx("div",{className:"max-w-4xl mx-auto space-y-6",children:c==null?void 0:c.messages.map((I,B)=>{var Te;const oe=`message-${B}`;return k.jsxs("div",{ref:H=>{H?u.current.set(oe,H):u.current.delete(oe)},"data-message-id":oe,className:"border-l-2 border-gray-700 pl-4",children:[k.jsx("div",{className:"flex items-start justify-between mb-2",children:k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("span",{className:`px-2 py-1 text-xs rounded ${I.type==="user"?"bg-blue-900 text-blue-200":I.type==="assistant"?"bg-green-900 text-green-200":"bg-gray-700 text-gray-300"}`,children:I.type||"system"}),k.jsxs("span",{className:"text-xs text-gray-500 font-mono",children:["#",B+1]}),I.timestamp&&k.jsx("span",{className:"text-xs text-gray-500",children:ni(new Date(I.timestamp),"HH:mm:ss")})]})}),k.jsx("div",{className:"bg-gray-800 rounded-lg p-4 text-sm",children:(Te=I.message)!=null&&Te.content&&Array.isArray(I.message.content)?k.jsx("div",{className:"space-y-2",children:I.message.content.map((H,Xe)=>k.jsxs("div",{children:[H.type==="text"&&k.jsx("p",{className:"whitespace-pre-wrap",children:H.text}),H.type==="tool_use"&&k.jsxs("div",{className:"bg-gray-900 p-3 rounded border border-gray-700",children:[k.jsxs("div",{className:"flex items-center justify-between mb-2",children:[k.jsxs("div",{className:"text-yellow-400 font-mono text-xs",children:["🔧 ",H.name]}),H.name==="Task"&&H.agentId&&k.jsx(lu,{to:`/sessions/agent-${H.agentId}`,className:"px-2 py-1 text-xs bg-purple-700 hover:bg-purple-600 text-purple-100 rounded transition-colors",children:"View Task →"})]}),k.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:JSON.stringify(H.input,null,2)})]}),H.type==="tool_result"&&k.jsxs("div",{className:"bg-gray-900 p-3 rounded border border-gray-700",children:[k.jsx("div",{className:"text-green-400 font-mono text-xs mb-2",children:"✓ Tool Result"}),k.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:typeof H.content=="string"?H.content:JSON.stringify(H.content,null,2)})]})]},Xe))}):k.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:JSON.stringify(I,null,2)})})]},B)})})})]}),r&&(c==null?void 0:c.messages)&&c.messages.length>0&&k.jsx("div",{style:{width:`${Kh}px`,flexShrink:0},children:k.jsx(B0,{messages:c.messages,activeId:t,onNavigate:h})})]})}const Gh=new Yy,Ac="claude-session-viewer-sidebar-width",q0=320,b0=200,X0=600;function Wc(){const e=jh(),n=Qg().sessionId||null,[r,i]=x.useState(()=>{const P=localStorage.getItem(Ac);return P?parseInt(P,10):q0}),[l,o]=x.useState(!1),[s,a]=x.useState(0),[u,f]=x.useState(!1),d=x.useRef(null),m=x.useRef(null),v=x.useRef(0),{data:g,isLoading:S,error:E,refetch:h}=Sh({queryKey:["sessions"],queryFn:async()=>{const P=await fetch("/api/sessions");if(!P.ok)throw new Error("Failed to fetch sessions");return P.json()}}),c=P=>{e(`/sessions/${P}`)};x.useEffect(()=>{const P=m.current;if(!P)return;const F=()=>{const R=P.scrollTop,j=R<v.current;a(R),f(j),v.current=R};return P.addEventListener("scroll",F),()=>P.removeEventListener("scroll",F)},[]),x.useEffect(()=>{const P=R=>{if(!l)return;const j=R.clientX;j>=b0&&j<=X0&&(i(j),localStorage.setItem(Ac,j.toString()))},F=()=>{o(!1),document.body.style.cursor="",document.body.style.userSelect=""};return l&&(document.body.style.cursor="col-resize",document.body.style.userSelect="none",document.addEventListener("mousemove",P),document.addEventListener("mouseup",F)),()=>{document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",F)}},[l]),x.useEffect(()=>{const F=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;let R=null,j=!1,I=null,B=0,oe=!0;const Te=()=>{R=new WebSocket(F),j=!1,R.onopen=()=>{if(j){R==null||R.close();return}B=0},R.onmessage=H=>{const Xe=JSON.parse(H.data);(Xe.type==="file-added"||Xe.type==="file-changed"||Xe.type==="file-deleted")&&(h(),n&&Gh.invalidateQueries({queryKey:["session",n]}))},R.onerror=H=>{console.error("WebSocket error:",H)},R.onclose=()=>{if(!oe)return;const H=Math.min(1e3*2**B,1e4);B+=1,I=setTimeout(Te,H)}};return Te(),()=>{oe=!1,I&&clearTimeout(I),R&&R.readyState===WebSocket.CONNECTING?j=!0:R==null||R.close()}},[h,n]);const w=Math.max(0,1-(u?0:s)/80),C=12+w*12,T=1.125+w*.375,O=w;return k.jsxs("div",{className:"flex h-screen bg-gray-900 text-white",children:[k.jsxs("div",{className:"relative flex flex-col",style:{width:`${r}px`},children:[k.jsxs("div",{ref:d,className:"border-r border-gray-700 h-full flex flex-col",children:[k.jsxs("div",{className:"border-b border-gray-700 flex-shrink-0 transition-all duration-200",style:{padding:`${C}px`},children:[k.jsx("h1",{className:"font-bold transition-all duration-200",style:{fontSize:`${T}rem`},children:"Claude Sessions"}),k.jsx("p",{className:"text-sm text-gray-400 mt-1 transition-opacity duration-200",style:{opacity:O,height:O>0?"auto":0,overflow:"hidden"},children:S?"Loading...":`${(g==null?void 0:g.projects.length)||0} project${(g==null?void 0:g.projects.length)!==1?"s":""}`})]}),k.jsx("div",{ref:m,className:"flex-1 overflow-y-auto",children:E?k.jsxs("div",{className:"p-4 text-red-400 text-sm",children:["Error loading sessions: ",E.message]}):k.jsx(H0,{projects:(g==null?void 0:g.projects)||[],selectedId:n,onSelect:c})})]}),k.jsx("div",{className:"absolute top-0 right-0 w-4 h-full cursor-col-resize group z-10",onMouseDown:P=>{P.preventDefault(),o(!0)},style:{touchAction:"none"},children:k.jsx("div",{className:`w-1 h-full ml-auto transition-colors ${l?"bg-blue-500":"bg-transparent group-hover:bg-blue-500"}`})})]}),k.jsx("div",{className:"flex-1 min-w-0 overflow-y-auto",children:n?k.jsx(G0,{sessionId:n}):k.jsx("div",{className:"flex items-center justify-center h-full text-gray-500",children:k.jsxs("div",{className:"text-center",children:[k.jsx("svg",{className:"mx-auto h-12 w-12 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:k.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),k.jsx("h3",{className:"mt-2 text-sm font-medium",children:"No session selected"}),k.jsx("p",{className:"mt-1 text-sm text-gray-600",children:"Select a session from the sidebar to view details"})]})})})]})}function J0(){return k.jsx(Gy,{client:Gh,children:k.jsx(Nv,{children:k.jsxs(rv,{children:[k.jsx(Zs,{path:"/",element:k.jsx(Wc,{})}),k.jsx(Zs,{path:"/sessions/:sessionId",element:k.jsx(Wc,{})})]})})})}Vo.createRoot(document.getElementById("root")).render(k.jsx(fp.StrictMode,{children:k.jsx(J0,{})}));