claude-session-viewer 0.1.2 → 0.2.1
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.
- package/dist/client/assets/index-CPyFv14M.js +51 -0
- package/dist/client/assets/index-Dg6fR2pp.css +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/index.js +46 -7
- package/package.json +2 -1
- package/dist/client/assets/index-D70FKSi-.js +0 -40
- package/dist/client/assets/index-DUAdsLyv.css +0 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var lu=e=>{throw TypeError(e)};var fo=(e,t,n)=>t.has(e)||lu("Cannot "+n);var y=(e,t,n)=>(fo(e,t,"read from private field"),n?n.call(e):t.get(e)),D=(e,t,n)=>t.has(e)?lu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_=(e,t,n,r)=>(fo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),U=(e,t,n)=>(fo(e,t,"access private method"),n);var Ii=(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 Xh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xc={exports:{}},Hl={},bc={exports:{}},z={};/**
|
|
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 Pi=Symbol.for("react.element"),bh=Symbol.for("react.portal"),Jh=Symbol.for("react.fragment"),Zh=Symbol.for("react.strict_mode"),ep=Symbol.for("react.profiler"),tp=Symbol.for("react.provider"),np=Symbol.for("react.context"),rp=Symbol.for("react.forward_ref"),ip=Symbol.for("react.suspense"),lp=Symbol.for("react.memo"),op=Symbol.for("react.lazy"),ou=Symbol.iterator;function sp(e){return e===null||typeof e!="object"?null:(e=ou&&e[ou]||e["@@iterator"],typeof e=="function"?e:null)}var Jc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zc=Object.assign,ef={};function kr(e,t,n){this.props=e,this.context=t,this.refs=ef,this.updater=n||Jc}kr.prototype.isReactComponent={};kr.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")};kr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tf(){}tf.prototype=kr.prototype;function ea(e,t,n){this.props=e,this.context=t,this.refs=ef,this.updater=n||Jc}var ta=ea.prototype=new tf;ta.constructor=ea;Zc(ta,kr.prototype);ta.isPureReactComponent=!0;var su=Array.isArray,nf=Object.prototype.hasOwnProperty,na={current:null},rf={key:!0,ref:!0,__self:!0,__source:!0};function lf(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)nf.call(t,r)&&!rf.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:Pi,type:e,key:l,ref:o,props:i,_owner:na.current}}function ap(e,t){return{$$typeof:Pi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ra(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pi}function up(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var au=/\/+/g;function ho(e,t){return typeof e=="object"&&e!==null&&e.key!=null?up(""+e.key):t.toString(36)}function nl(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 Pi:case bh:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+ho(o,0):r,su(i)?(n="",e!=null&&(n=e.replace(au,"$&/")+"/"),nl(i,t,n,"",function(u){return u})):i!=null&&(ra(i)&&(i=ap(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(au,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",su(e))for(var s=0;s<e.length;s++){l=e[s];var a=r+ho(l,s);o+=nl(l,t,n,a,i)}else if(a=sp(e),typeof a=="function")for(e=a.call(e),s=0;!(l=e.next()).done;)l=l.value,a=r+ho(l,s++),o+=nl(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 zi(e,t,n){if(e==null)return e;var r=[],i=0;return nl(e,r,"","",function(l){return t.call(n,l,i++)}),r}function cp(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 ke={current:null},rl={transition:null},fp={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:rl,ReactCurrentOwner:na};function of(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:zi,forEach:function(e,t,n){zi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return zi(e,function(){t++}),t},toArray:function(e){return zi(e,function(t){return t})||[]},only:function(e){if(!ra(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=kr;z.Fragment=Jh;z.Profiler=ep;z.PureComponent=ea;z.StrictMode=Zh;z.Suspense=ip;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fp;z.act=of;z.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=Zc({},e.props),i=e.key,l=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,o=na.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)nf.call(t,a)&&!rf.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:Pi,type:e.type,key:i,ref:l,props:r,_owner:o}};z.createContext=function(e){return e={$$typeof:np,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:tp,_context:e},e.Consumer=e};z.createElement=lf;z.createFactory=function(e){var t=lf.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:rp,render:e}};z.isValidElement=ra;z.lazy=function(e){return{$$typeof:op,_payload:{_status:-1,_result:e},_init:cp}};z.memo=function(e,t){return{$$typeof:lp,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=rl.transition;rl.transition={};try{e()}finally{rl.transition=t}};z.unstable_act=of;z.useCallback=function(e,t){return ke.current.useCallback(e,t)};z.useContext=function(e){return ke.current.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e){return ke.current.useDeferredValue(e)};z.useEffect=function(e,t){return ke.current.useEffect(e,t)};z.useId=function(){return ke.current.useId()};z.useImperativeHandle=function(e,t,n){return ke.current.useImperativeHandle(e,t,n)};z.useInsertionEffect=function(e,t){return ke.current.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return ke.current.useLayoutEffect(e,t)};z.useMemo=function(e,t){return ke.current.useMemo(e,t)};z.useReducer=function(e,t,n){return ke.current.useReducer(e,t,n)};z.useRef=function(e){return ke.current.useRef(e)};z.useState=function(e){return ke.current.useState(e)};z.useSyncExternalStore=function(e,t,n){return ke.current.useSyncExternalStore(e,t,n)};z.useTransition=function(){return ke.current.useTransition()};z.version="18.3.1";bc.exports=z;var S=bc.exports;const dp=Xh(S);/**
|
|
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 hp=S,pp=Symbol.for("react.element"),mp=Symbol.for("react.fragment"),yp=Object.prototype.hasOwnProperty,vp=hp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gp={key:!0,ref:!0,__self:!0,__source:!0};function sf(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)yp.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:pp,type:e,key:l,ref:o,props:i,_owner:vp.current}}Hl.Fragment=mp;Hl.jsx=sf;Hl.jsxs=sf;Xc.exports=Hl;var E=Xc.exports,Ho={},af={exports:{}},je={},uf={exports:{}},cf={};/**
|
|
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,F){var j=L.length;L.push(F);e:for(;0<j;){var te=j-1>>>1,oe=L[te];if(0<i(oe,F))L[te]=F,L[j]=oe,j=te;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var F=L[0],j=L.pop();if(j!==F){L[0]=j;e:for(var te=0,oe=L.length,Fi=oe>>>1;te<Fi;){var sn=2*(te+1)-1,co=L[sn],an=sn+1,ji=L[an];if(0>i(co,j))an<oe&&0>i(ji,co)?(L[te]=ji,L[an]=j,te=an):(L[te]=co,L[sn]=j,te=sn);else if(an<oe&&0>i(ji,j))L[te]=ji,L[an]=j,te=an;else break e}}return F}function i(L,F){var j=L.sortIndex-F.sortIndex;return j!==0?j:L.id-F.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,p=3,g=!1,w=!1,v=!1,k=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 m(L){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=L)r(u),F.sortIndex=F.expirationTime,t(a,F);else break;F=n(u)}}function x(L){if(v=!1,m(L),!w)if(n(a)!==null)w=!0,ao(C);else{var F=n(u);F!==null&&uo(x,F.startTime-L)}}function C(L,F){w=!1,v&&(v=!1,h(N),N=-1),g=!0;var j=p;try{for(m(F),d=n(a);d!==null&&(!(d.expirationTime>F)||L&&!$());){var te=d.callback;if(typeof te=="function"){d.callback=null,p=d.priorityLevel;var oe=te(d.expirationTime<=F);F=e.unstable_now(),typeof oe=="function"?d.callback=oe:d===n(a)&&r(a),m(F)}else r(a);d=n(a)}if(d!==null)var Fi=!0;else{var sn=n(u);sn!==null&&uo(x,sn.startTime-F),Fi=!1}return Fi}finally{d=null,p=j,g=!1}}var R=!1,T=null,N=-1,I=5,O=-1;function $(){return!(e.unstable_now()-O<I)}function ze(){if(T!==null){var L=e.unstable_now();O=L;var F=!0;try{F=T(!0,L)}finally{F?it():(R=!1,T=null)}}else R=!1}var it;if(typeof c=="function")it=function(){c(ze)};else if(typeof MessageChannel<"u"){var iu=new MessageChannel,qh=iu.port2;iu.port1.onmessage=ze,it=function(){qh.postMessage(null)}}else it=function(){k(ze,0)};function ao(L){T=L,R||(R=!0,it())}function uo(L,F){N=k(function(){L(e.unstable_now())},F)}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(){w||g||(w=!0,ao(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"):I=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(L){switch(p){case 1:case 2:case 3:var F=3;break;default:F=p}var j=p;p=F;try{return L()}finally{p=j}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,F){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var j=p;p=L;try{return F()}finally{p=j}},e.unstable_scheduleCallback=function(L,F,j){var te=e.unstable_now();switch(typeof j=="object"&&j!==null?(j=j.delay,j=typeof j=="number"&&0<j?te+j:te):j=te,L){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=j+oe,L={id:f++,callback:F,priorityLevel:L,startTime:j,expirationTime:oe,sortIndex:-1},j>te?(L.sortIndex=j,t(u,L),n(a)===null&&L===n(u)&&(v?(h(N),N=-1):v=!0,uo(x,j-te))):(L.sortIndex=oe,t(a,L),w||g||(w=!0,ao(C))),L},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(L){var F=p;return function(){var j=p;p=F;try{return L.apply(this,arguments)}finally{p=j}}}})(cf);uf.exports=cf;var wp=uf.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 xp=S,Fe=wp;function P(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 ff=new Set,Zr={};function Fn(e,t){mr(e,t),mr(e+"Capture",t)}function mr(e,t){for(Zr[e]=t,e=0;e<t.length;e++)ff.add(t[e])}var Et=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bo=Object.prototype.hasOwnProperty,Sp=/^[: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]*$/,uu={},cu={};function kp(e){return Bo.call(cu,e)?!0:Bo.call(uu,e)?!1:Sp.test(e)?cu[e]=!0:(uu[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 Cp(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 Ee(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 he={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){he[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];he[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){he[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){he[e]=new Ee(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){he[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){he[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){he[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){he[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){he[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var ia=/[\-:]([a-z])/g;function la(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(ia,la);he[t]=new Ee(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(ia,la);he[t]=new Ee(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(ia,la);he[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){he[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});he.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){he[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function oa(e,t,n,r){var i=he.hasOwnProperty(t)?he[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Cp(t,n,i,r)&&(n=null),r||i===null?kp(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 Tt=xp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ui=Symbol.for("react.element"),An=Symbol.for("react.portal"),Wn=Symbol.for("react.fragment"),sa=Symbol.for("react.strict_mode"),Vo=Symbol.for("react.profiler"),df=Symbol.for("react.provider"),hf=Symbol.for("react.context"),aa=Symbol.for("react.forward_ref"),Yo=Symbol.for("react.suspense"),Ko=Symbol.for("react.suspense_list"),ua=Symbol.for("react.memo"),Lt=Symbol.for("react.lazy"),pf=Symbol.for("react.offscreen"),fu=Symbol.iterator;function Nr(e){return e===null||typeof e!="object"?null:(e=fu&&e[fu]||e["@@iterator"],typeof e=="function"?e:null)}var J=Object.assign,po;function Ur(e){if(po===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);po=t&&t[1]||""}return`
|
|
34
|
+
`+po+e}var mo=!1;function yo(e,t){if(!e||mo)return"";mo=!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{mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ur(e):""}function Pp(e){switch(e.tag){case 5:return Ur(e.type);case 16:return Ur("Lazy");case 13:return Ur("Suspense");case 19:return Ur("SuspenseList");case 0:case 2:case 15:return e=yo(e.type,!1),e;case 11:return e=yo(e.type.render,!1),e;case 1:return e=yo(e.type,!0),e;default:return""}}function Go(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 Wn:return"Fragment";case An:return"Portal";case Vo:return"Profiler";case sa:return"StrictMode";case Yo:return"Suspense";case Ko:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case hf:return(e.displayName||"Context")+".Consumer";case df:return(e._context.displayName||"Context")+".Provider";case aa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ua:return t=e.displayName||null,t!==null?t:Go(e.type)||"Memo";case Lt:t=e._payload,e=e._init;try{return Go(e(t))}catch{}}return null}function Rp(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 Go(t);case 8:return t===sa?"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 tn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Np(e){var t=mf(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 Ai(e){e._valueTracker||(e._valueTracker=Np(e))}function yf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=mf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function qo(e,t){var n=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function du(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=tn(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&&oa(e,"checked",t,!1)}function Xo(e,t){vf(e,t);var n=tn(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")?bo(e,t.type,n):t.hasOwnProperty("defaultValue")&&bo(e,t.type,tn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hu(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 bo(e,t,n){(t!=="number"||yl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ar=Array.isArray;function bn(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=""+tn(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 Jo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return J({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function pu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(P(92));if(Ar(n)){if(1<n.length)throw Error(P(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:tn(n)}}function gf(e,t){var n=tn(t.value),r=tn(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 mu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function wf(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 Zo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?wf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wi,xf=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(Wi=Wi||document.createElement("div"),Wi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Wi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ei(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hr={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},Tp=["Webkit","ms","Moz","O"];Object.keys(Hr).forEach(function(e){Tp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hr[t]=Hr[e]})});function Sf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hr.hasOwnProperty(e)&&Hr[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=Sf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Op=J({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 es(e,t){if(t){if(Op[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function ts(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 ns=null;function ca(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rs=null,Jn=null,Zn=null;function yu(e){if(e=Ti(e)){if(typeof rs!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Gl(t),rs(e.stateNode,e.type,t))}}function Ef(e){Jn?Zn?Zn.push(e):Zn=[e]:Jn=e}function Cf(){if(Jn){var e=Jn,t=Zn;if(Zn=Jn=null,yu(e),t)for(e=0;e<t.length;e++)yu(t[e])}}function Pf(e,t){return e(t)}function Rf(){}var vo=!1;function Nf(e,t,n){if(vo)return e(t,n);vo=!0;try{return Pf(e,t,n)}finally{vo=!1,(Jn!==null||Zn!==null)&&(Rf(),Cf())}}function ti(e,t){var n=e.stateNode;if(n===null)return null;var r=Gl(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(P(231,t,typeof n));return n}var is=!1;if(Et)try{var Tr={};Object.defineProperty(Tr,"passive",{get:function(){is=!0}}),window.addEventListener("test",Tr,Tr),window.removeEventListener("test",Tr,Tr)}catch{is=!1}function _p(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 Br=!1,vl=null,gl=!1,ls=null,Mp={onError:function(e){Br=!0,vl=e}};function Lp(e,t,n,r,i,l,o,s,a){Br=!1,vl=null,_p.apply(Mp,arguments)}function Dp(e,t,n,r,i,l,o,s,a){if(Lp.apply(this,arguments),Br){if(Br){var u=vl;Br=!1,vl=null}else throw Error(P(198));gl||(gl=!0,ls=u)}}function jn(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 Tf(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(jn(e)!==e)throw Error(P(188))}function Fp(e){var t=e.alternate;if(!t){if(t=jn(e),t===null)throw Error(P(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(P(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(P(189))}}if(n.alternate!==r)throw Error(P(190))}if(n.tag!==3)throw Error(P(188));return n.stateNode.current===n?e:t}function Of(e){return e=Fp(e),e!==null?_f(e):null}function _f(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=_f(e);if(t!==null)return t;e=e.sibling}return null}var Mf=Fe.unstable_scheduleCallback,gu=Fe.unstable_cancelCallback,jp=Fe.unstable_shouldYield,Ip=Fe.unstable_requestPaint,ne=Fe.unstable_now,zp=Fe.unstable_getCurrentPriorityLevel,fa=Fe.unstable_ImmediatePriority,Lf=Fe.unstable_UserBlockingPriority,wl=Fe.unstable_NormalPriority,Up=Fe.unstable_LowPriority,Df=Fe.unstable_IdlePriority,Bl=null,ft=null;function Ap(e){if(ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(Bl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ze=Math.clz32?Math.clz32:Qp,Wp=Math.log,$p=Math.LN2;function Qp(e){return e>>>=0,e===0?32:31-(Wp(e)/$p|0)|0}var $i=64,Qi=4194304;function Wr(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 xl(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=Wr(s):(l&=o,l!==0&&(r=Wr(l)))}else o=n&~i,o!==0?r=Wr(o):l!==0&&(r=Wr(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-Ze(t),i=1<<n,r|=e[n],t&=~i;return r}function Hp(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 Bp(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var o=31-Ze(l),s=1<<o,a=i[o];a===-1?(!(s&n)||s&r)&&(i[o]=Hp(s,t)):a<=t&&(e.expiredLanes|=s),l&=~s}}function os(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ff(){var e=$i;return $i<<=1,!($i&4194240)&&($i=64),e}function go(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ri(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ze(t),e[t]=n}function Vp(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-Ze(n),l=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~l}}function da(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ze(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var B=0;function jf(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var If,ha,zf,Uf,Af,ss=!1,Hi=[],Yt=null,Kt=null,Gt=null,ni=new Map,ri=new Map,Ft=[],Yp="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 wu(e,t){switch(e){case"focusin":case"focusout":Yt=null;break;case"dragenter":case"dragleave":Kt=null;break;case"mouseover":case"mouseout":Gt=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ri.delete(t.pointerId)}}function Or(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=Ti(t),t!==null&&ha(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Kp(e,t,n,r,i){switch(t){case"focusin":return Yt=Or(Yt,e,t,n,r,i),!0;case"dragenter":return Kt=Or(Kt,e,t,n,r,i),!0;case"mouseover":return Gt=Or(Gt,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return ni.set(l,Or(ni.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,ri.set(l,Or(ri.get(l)||null,e,t,n,r,i)),!0}return!1}function Wf(e){var t=dn(e.target);if(t!==null){var n=jn(t);if(n!==null){if(t=n.tag,t===13){if(t=Tf(n),t!==null){e.blockedOn=t,Af(e.priority,function(){zf(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 il(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=as(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ns=r,n.target.dispatchEvent(r),ns=null}else return t=Ti(n),t!==null&&ha(t),e.blockedOn=n,!1;t.shift()}return!0}function xu(e,t,n){il(e)&&n.delete(t)}function Gp(){ss=!1,Yt!==null&&il(Yt)&&(Yt=null),Kt!==null&&il(Kt)&&(Kt=null),Gt!==null&&il(Gt)&&(Gt=null),ni.forEach(xu),ri.forEach(xu)}function _r(e,t){e.blockedOn===t&&(e.blockedOn=null,ss||(ss=!0,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,Gp)))}function ii(e){function t(i){return _r(i,e)}if(0<Hi.length){_r(Hi[0],e);for(var n=1;n<Hi.length;n++){var r=Hi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yt!==null&&_r(Yt,e),Kt!==null&&_r(Kt,e),Gt!==null&&_r(Gt,e),ni.forEach(t),ri.forEach(t),n=0;n<Ft.length;n++)r=Ft[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ft.length&&(n=Ft[0],n.blockedOn===null);)Wf(n),n.blockedOn===null&&Ft.shift()}var er=Tt.ReactCurrentBatchConfig,Sl=!0;function qp(e,t,n,r){var i=B,l=er.transition;er.transition=null;try{B=1,pa(e,t,n,r)}finally{B=i,er.transition=l}}function Xp(e,t,n,r){var i=B,l=er.transition;er.transition=null;try{B=4,pa(e,t,n,r)}finally{B=i,er.transition=l}}function pa(e,t,n,r){if(Sl){var i=as(e,t,n,r);if(i===null)To(e,t,r,kl,n),wu(e,r);else if(Kp(i,e,t,n,r))r.stopPropagation();else if(wu(e,r),t&4&&-1<Yp.indexOf(e)){for(;i!==null;){var l=Ti(i);if(l!==null&&If(l),l=as(e,t,n,r),l===null&&To(e,t,r,kl,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else To(e,t,r,null,n)}}var kl=null;function as(e,t,n,r){if(kl=null,e=ca(r),e=dn(e),e!==null)if(t=jn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Tf(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 kl=e,null}function $f(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(zp()){case fa:return 1;case Lf:return 4;case wl:case Up:return 16;case Df:return 536870912;default:return 16}default:return 16}}var Bt=null,ma=null,ll=null;function Qf(){if(ll)return ll;var e,t=ma,n=t.length,r,i="value"in Bt?Bt.value:Bt.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 ll=i.slice(e,1<r?1-r:void 0)}function ol(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 Bi(){return!0}function Su(){return!1}function Ie(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)?Bi:Su,this.isPropagationStopped=Su,this}return J(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=Bi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bi)},persist:function(){},isPersistent:Bi}),t}var Er={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ya=Ie(Er),Ni=J({},Er,{view:0,detail:0}),bp=Ie(Ni),wo,xo,Mr,Vl=J({},Ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:va,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!==Mr&&(Mr&&e.type==="mousemove"?(wo=e.screenX-Mr.screenX,xo=e.screenY-Mr.screenY):xo=wo=0,Mr=e),wo)},movementY:function(e){return"movementY"in e?e.movementY:xo}}),ku=Ie(Vl),Jp=J({},Vl,{dataTransfer:0}),Zp=Ie(Jp),em=J({},Ni,{relatedTarget:0}),So=Ie(em),tm=J({},Er,{animationName:0,elapsedTime:0,pseudoElement:0}),nm=Ie(tm),rm=J({},Er,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),im=Ie(rm),lm=J({},Er,{data:0}),Eu=Ie(lm),om={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sm={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"},am={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function um(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=am[e])?!!t[e]:!1}function va(){return um}var cm=J({},Ni,{key:function(e){if(e.key){var t=om[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ol(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:va,charCode:function(e){return e.type==="keypress"?ol(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ol(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fm=Ie(cm),dm=J({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cu=Ie(dm),hm=J({},Ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:va}),pm=Ie(hm),mm=J({},Er,{propertyName:0,elapsedTime:0,pseudoElement:0}),ym=Ie(mm),vm=J({},Vl,{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=Ie(vm),wm=[9,13,27,32],ga=Et&&"CompositionEvent"in window,Vr=null;Et&&"documentMode"in document&&(Vr=document.documentMode);var xm=Et&&"TextEvent"in window&&!Vr,Hf=Et&&(!ga||Vr&&8<Vr&&11>=Vr),Pu=" ",Ru=!1;function Bf(e,t){switch(e){case"keyup":return wm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $n=!1;function Sm(e,t){switch(e){case"compositionend":return Vf(t);case"keypress":return t.which!==32?null:(Ru=!0,Pu);case"textInput":return e=t.data,e===Pu&&Ru?null:e;default:return null}}function km(e,t){if($n)return e==="compositionend"||!ga&&Bf(e,t)?(e=Qf(),ll=ma=Bt=null,$n=!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 Hf&&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 Nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Em[e.type]:t==="textarea"}function Yf(e,t,n,r){Ef(r),t=El(t,"onChange"),0<t.length&&(n=new ya("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yr=null,li=null;function Cm(e){rd(e,0)}function Yl(e){var t=Bn(e);if(yf(t))return e}function Pm(e,t){if(e==="change")return t}var Kf=!1;if(Et){var ko;if(Et){var Eo="oninput"in document;if(!Eo){var Tu=document.createElement("div");Tu.setAttribute("oninput","return;"),Eo=typeof Tu.oninput=="function"}ko=Eo}else ko=!1;Kf=ko&&(!document.documentMode||9<document.documentMode)}function Ou(){Yr&&(Yr.detachEvent("onpropertychange",Gf),li=Yr=null)}function Gf(e){if(e.propertyName==="value"&&Yl(li)){var t=[];Yf(t,li,e,ca(e)),Nf(Cm,t)}}function Rm(e,t,n){e==="focusin"?(Ou(),Yr=t,li=n,Yr.attachEvent("onpropertychange",Gf)):e==="focusout"&&Ou()}function Nm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yl(li)}function Tm(e,t){if(e==="click")return Yl(t)}function Om(e,t){if(e==="input"||e==="change")return Yl(t)}function _m(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tt=typeof Object.is=="function"?Object.is:_m;function oi(e,t){if(tt(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(!Bo.call(t,i)||!tt(e[i],t[i]))return!1}return!0}function _u(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mu(e,t){var n=_u(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=_u(n)}}function qf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xf(){for(var e=window,t=yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yl(e.document)}return t}function wa(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 Mm(e){var t=Xf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qf(n.ownerDocument.documentElement,n)){if(r!==null&&wa(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=Mu(n,l);var o=Mu(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 Lm=Et&&"documentMode"in document&&11>=document.documentMode,Qn=null,us=null,Kr=null,cs=!1;function Lu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cs||Qn==null||Qn!==yl(r)||(r=Qn,"selectionStart"in r&&wa(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}),Kr&&oi(Kr,r)||(Kr=r,r=El(us,"onSelect"),0<r.length&&(t=new ya("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qn)))}function Vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Hn={animationend:Vi("Animation","AnimationEnd"),animationiteration:Vi("Animation","AnimationIteration"),animationstart:Vi("Animation","AnimationStart"),transitionend:Vi("Transition","TransitionEnd")},Co={},bf={};Et&&(bf=document.createElement("div").style,"AnimationEvent"in window||(delete Hn.animationend.animation,delete Hn.animationiteration.animation,delete Hn.animationstart.animation),"TransitionEvent"in window||delete Hn.transitionend.transition);function Kl(e){if(Co[e])return Co[e];if(!Hn[e])return e;var t=Hn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bf)return Co[e]=t[n];return e}var Jf=Kl("animationend"),Zf=Kl("animationiteration"),ed=Kl("animationstart"),td=Kl("transitionend"),nd=new Map,Du="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 rn(e,t){nd.set(e,t),Fn(t,[e])}for(var Po=0;Po<Du.length;Po++){var Ro=Du[Po],Dm=Ro.toLowerCase(),Fm=Ro[0].toUpperCase()+Ro.slice(1);rn(Dm,"on"+Fm)}rn(Jf,"onAnimationEnd");rn(Zf,"onAnimationIteration");rn(ed,"onAnimationStart");rn("dblclick","onDoubleClick");rn("focusin","onFocus");rn("focusout","onBlur");rn(td,"onTransitionEnd");mr("onMouseEnter",["mouseout","mouseover"]);mr("onMouseLeave",["mouseout","mouseover"]);mr("onPointerEnter",["pointerout","pointerover"]);mr("onPointerLeave",["pointerout","pointerover"]);Fn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $r="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(" "),jm=new Set("cancel close invalid load scroll toggle".split(" ").concat($r));function Fu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Dp(r,t,void 0,e),e.currentTarget=null}function rd(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;Fu(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;Fu(i,s,u),l=a}}}if(gl)throw e=ls,gl=!1,ls=null,e}function Y(e,t){var n=t[ms];n===void 0&&(n=t[ms]=new Set);var r=e+"__bubble";n.has(r)||(id(t,e,2,!1),n.add(r))}function No(e,t,n){var r=0;t&&(r|=4),id(n,e,r,t)}var Yi="_reactListening"+Math.random().toString(36).slice(2);function si(e){if(!e[Yi]){e[Yi]=!0,ff.forEach(function(n){n!=="selectionchange"&&(jm.has(n)||No(n,!1,e),No(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yi]||(t[Yi]=!0,No("selectionchange",!1,t))}}function id(e,t,n,r){switch($f(t)){case 1:var i=qp;break;case 4:i=Xp;break;default:i=pa}n=i.bind(null,t,n,e),i=void 0,!is||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 To(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=dn(s),o===null)return;if(a=o.tag,a===5||a===6){r=l=o;continue e}s=s.parentNode}}r=r.return}Nf(function(){var u=l,f=ca(n),d=[];e:{var p=nd.get(e);if(p!==void 0){var g=ya,w=e;switch(e){case"keypress":if(ol(n)===0)break e;case"keydown":case"keyup":g=fm;break;case"focusin":w="focus",g=So;break;case"focusout":w="blur",g=So;break;case"beforeblur":case"afterblur":g=So;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":g=ku;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Zp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=pm;break;case Jf:case Zf:case ed:g=nm;break;case td:g=ym;break;case"scroll":g=bp;break;case"wheel":g=gm;break;case"copy":case"cut":case"paste":g=im;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Cu}var v=(t&4)!==0,k=!v&&e==="scroll",h=v?p!==null?p+"Capture":null:p;v=[];for(var c=u,m;c!==null;){m=c;var x=m.stateNode;if(m.tag===5&&x!==null&&(m=x,h!==null&&(x=ti(c,h),x!=null&&v.push(ai(c,x,m)))),k)break;c=c.return}0<v.length&&(p=new g(p,w,null,n,f),d.push({event:p,listeners:v}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&n!==ns&&(w=n.relatedTarget||n.fromElement)&&(dn(w)||w[Ct]))break e;if((g||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,g?(w=n.relatedTarget||n.toElement,g=u,w=w?dn(w):null,w!==null&&(k=jn(w),w!==k||w.tag!==5&&w.tag!==6)&&(w=null)):(g=null,w=u),g!==w)){if(v=ku,x="onMouseLeave",h="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(v=Cu,x="onPointerLeave",h="onPointerEnter",c="pointer"),k=g==null?p:Bn(g),m=w==null?p:Bn(w),p=new v(x,c+"leave",g,n,f),p.target=k,p.relatedTarget=m,x=null,dn(f)===u&&(v=new v(h,c+"enter",w,n,f),v.target=m,v.relatedTarget=k,x=v),k=x,g&&w)t:{for(v=g,h=w,c=0,m=v;m;m=zn(m))c++;for(m=0,x=h;x;x=zn(x))m++;for(;0<c-m;)v=zn(v),c--;for(;0<m-c;)h=zn(h),m--;for(;c--;){if(v===h||h!==null&&v===h.alternate)break t;v=zn(v),h=zn(h)}v=null}else v=null;g!==null&&ju(d,p,g,v,!1),w!==null&&k!==null&&ju(d,k,w,v,!0)}}e:{if(p=u?Bn(u):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var C=Pm;else if(Nu(p))if(Kf)C=Om;else{C=Nm;var R=Rm}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(C=Tm);if(C&&(C=C(e,u))){Yf(d,C,n,f);break e}R&&R(e,p,u),e==="focusout"&&(R=p._wrapperState)&&R.controlled&&p.type==="number"&&bo(p,"number",p.value)}switch(R=u?Bn(u):window,e){case"focusin":(Nu(R)||R.contentEditable==="true")&&(Qn=R,us=u,Kr=null);break;case"focusout":Kr=us=Qn=null;break;case"mousedown":cs=!0;break;case"contextmenu":case"mouseup":case"dragend":cs=!1,Lu(d,n,f);break;case"selectionchange":if(Lm)break;case"keydown":case"keyup":Lu(d,n,f)}var T;if(ga)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else $n?Bf(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Hf&&n.locale!=="ko"&&($n||N!=="onCompositionStart"?N==="onCompositionEnd"&&$n&&(T=Qf()):(Bt=f,ma="value"in Bt?Bt.value:Bt.textContent,$n=!0)),R=El(u,N),0<R.length&&(N=new Eu(N,e,null,n,f),d.push({event:N,listeners:R}),T?N.data=T:(T=Vf(n),T!==null&&(N.data=T)))),(T=xm?Sm(e,n):km(e,n))&&(u=El(u,"onBeforeInput"),0<u.length&&(f=new Eu("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=T))}rd(d,t)})}function ai(e,t,n){return{instance:e,listener:t,currentTarget:n}}function El(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=ti(e,n),l!=null&&r.unshift(ai(e,l,i)),l=ti(e,t),l!=null&&r.push(ai(e,l,i))),e=e.return}return r}function zn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ju(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=ti(n,l),a!=null&&o.unshift(ai(n,a,s))):i||(a=ti(n,l),a!=null&&o.push(ai(n,a,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Im=/\r\n?/g,zm=/\u0000|\uFFFD/g;function Iu(e){return(typeof e=="string"?e:""+e).replace(Im,`
|
|
38
|
+
`).replace(zm,"")}function Ki(e,t,n){if(t=Iu(t),Iu(e)!==t&&n)throw Error(P(425))}function Cl(){}var fs=null,ds=null;function hs(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 ps=typeof setTimeout=="function"?setTimeout:void 0,Um=typeof clearTimeout=="function"?clearTimeout:void 0,zu=typeof Promise=="function"?Promise:void 0,Am=typeof queueMicrotask=="function"?queueMicrotask:typeof zu<"u"?function(e){return zu.resolve(null).then(e).catch(Wm)}:ps;function Wm(e){setTimeout(function(){throw e})}function Oo(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),ii(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ii(t)}function qt(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 Uu(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 Cr=Math.random().toString(36).slice(2),ct="__reactFiber$"+Cr,ui="__reactProps$"+Cr,Ct="__reactContainer$"+Cr,ms="__reactEvents$"+Cr,$m="__reactListeners$"+Cr,Qm="__reactHandles$"+Cr;function dn(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Uu(e);e!==null;){if(n=e[ct])return n;e=Uu(e)}return t}e=n,n=e.parentNode}return null}function Ti(e){return e=e[ct]||e[Ct],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function Gl(e){return e[ui]||null}var ys=[],Vn=-1;function ln(e){return{current:e}}function K(e){0>Vn||(e.current=ys[Vn],ys[Vn]=null,Vn--)}function V(e,t){Vn++,ys[Vn]=e.current,e.current=t}var nn={},ve=ln(nn),Te=ln(!1),Nn=nn;function yr(e,t){var n=e.type.contextTypes;if(!n)return nn;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 Oe(e){return e=e.childContextTypes,e!=null}function Pl(){K(Te),K(ve)}function Au(e,t,n){if(ve.current!==nn)throw Error(P(168));V(ve,t),V(Te,n)}function ld(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(P(108,Rp(e)||"Unknown",i));return J({},n,r)}function Rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||nn,Nn=ve.current,V(ve,e),V(Te,Te.current),!0}function Wu(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=ld(e,t,Nn),r.__reactInternalMemoizedMergedChildContext=e,K(Te),K(ve),V(ve,e)):K(Te),V(Te,n)}var yt=null,ql=!1,_o=!1;function od(e){yt===null?yt=[e]:yt.push(e)}function Hm(e){ql=!0,od(e)}function on(){if(!_o&&yt!==null){_o=!0;var e=0,t=B;try{var n=yt;for(B=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}yt=null,ql=!1}catch(i){throw yt!==null&&(yt=yt.slice(e+1)),Mf(fa,on),i}finally{B=t,_o=!1}}return null}var Yn=[],Kn=0,Nl=null,Tl=0,We=[],$e=0,Tn=null,wt=1,xt="";function un(e,t){Yn[Kn++]=Tl,Yn[Kn++]=Nl,Nl=e,Tl=t}function sd(e,t,n){We[$e++]=wt,We[$e++]=xt,We[$e++]=Tn,Tn=e;var r=wt;e=xt;var i=32-Ze(r)-1;r&=~(1<<i),n+=1;var l=32-Ze(t)+i;if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,wt=1<<32-Ze(t)+i|n<<i|r,xt=l+e}else wt=1<<l|n<<i|r,xt=e}function xa(e){e.return!==null&&(un(e,1),sd(e,1,0))}function Sa(e){for(;e===Nl;)Nl=Yn[--Kn],Yn[Kn]=null,Tl=Yn[--Kn],Yn[Kn]=null;for(;e===Tn;)Tn=We[--$e],We[$e]=null,xt=We[--$e],We[$e]=null,wt=We[--$e],We[$e]=null}var De=null,Le=null,G=!1,Je=null;function ad(e,t){var n=Qe(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 $u(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,De=e,Le=qt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,De=e,Le=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Tn!==null?{id:wt,overflow:xt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Qe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,De=e,Le=null,!0):!1;default:return!1}}function vs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function gs(e){if(G){var t=Le;if(t){var n=t;if(!$u(e,t)){if(vs(e))throw Error(P(418));t=qt(n.nextSibling);var r=De;t&&$u(e,t)?ad(r,n):(e.flags=e.flags&-4097|2,G=!1,De=e)}}else{if(vs(e))throw Error(P(418));e.flags=e.flags&-4097|2,G=!1,De=e}}}function Qu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;De=e}function Gi(e){if(e!==De)return!1;if(!G)return Qu(e),G=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!hs(e.type,e.memoizedProps)),t&&(t=Le)){if(vs(e))throw ud(),Error(P(418));for(;t;)ad(e,t),t=qt(t.nextSibling)}if(Qu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Le=qt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Le=null}}else Le=De?qt(e.stateNode.nextSibling):null;return!0}function ud(){for(var e=Le;e;)e=qt(e.nextSibling)}function vr(){Le=De=null,G=!1}function ka(e){Je===null?Je=[e]:Je.push(e)}var Bm=Tt.ReactCurrentBatchConfig;function Lr(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(P(309));var r=n.stateNode}if(!r)throw Error(P(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(P(284));if(!n._owner)throw Error(P(290,e))}return e}function qi(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hu(e){var t=e._init;return t(e._payload)}function cd(e){function t(h,c){if(e){var m=h.deletions;m===null?(h.deletions=[c],h.flags|=16):m.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=Zt(h,c),h.index=0,h.sibling=null,h}function l(h,c,m){return h.index=m,e?(m=h.alternate,m!==null?(m=m.index,m<c?(h.flags|=2,c):m):(h.flags|=2,c)):(h.flags|=1048576,c)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,c,m,x){return c===null||c.tag!==6?(c=zo(m,h.mode,x),c.return=h,c):(c=i(c,m),c.return=h,c)}function a(h,c,m,x){var C=m.type;return C===Wn?f(h,c,m.props.children,x,m.key):c!==null&&(c.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Lt&&Hu(C)===c.type)?(x=i(c,m.props),x.ref=Lr(h,c,m),x.return=h,x):(x=hl(m.type,m.key,m.props,null,h.mode,x),x.ref=Lr(h,c,m),x.return=h,x)}function u(h,c,m,x){return c===null||c.tag!==4||c.stateNode.containerInfo!==m.containerInfo||c.stateNode.implementation!==m.implementation?(c=Uo(m,h.mode,x),c.return=h,c):(c=i(c,m.children||[]),c.return=h,c)}function f(h,c,m,x,C){return c===null||c.tag!==7?(c=Rn(m,h.mode,x,C),c.return=h,c):(c=i(c,m),c.return=h,c)}function d(h,c,m){if(typeof c=="string"&&c!==""||typeof c=="number")return c=zo(""+c,h.mode,m),c.return=h,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case Ui:return m=hl(c.type,c.key,c.props,null,h.mode,m),m.ref=Lr(h,null,c),m.return=h,m;case An:return c=Uo(c,h.mode,m),c.return=h,c;case Lt:var x=c._init;return d(h,x(c._payload),m)}if(Ar(c)||Nr(c))return c=Rn(c,h.mode,m,null),c.return=h,c;qi(h,c)}return null}function p(h,c,m,x){var C=c!==null?c.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return C!==null?null:s(h,c,""+m,x);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ui:return m.key===C?a(h,c,m,x):null;case An:return m.key===C?u(h,c,m,x):null;case Lt:return C=m._init,p(h,c,C(m._payload),x)}if(Ar(m)||Nr(m))return C!==null?null:f(h,c,m,x,null);qi(h,m)}return null}function g(h,c,m,x,C){if(typeof x=="string"&&x!==""||typeof x=="number")return h=h.get(m)||null,s(c,h,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ui:return h=h.get(x.key===null?m:x.key)||null,a(c,h,x,C);case An:return h=h.get(x.key===null?m:x.key)||null,u(c,h,x,C);case Lt:var R=x._init;return g(h,c,m,R(x._payload),C)}if(Ar(x)||Nr(x))return h=h.get(m)||null,f(c,h,x,C,null);qi(c,x)}return null}function w(h,c,m,x){for(var C=null,R=null,T=c,N=c=0,I=null;T!==null&&N<m.length;N++){T.index>N?(I=T,T=null):I=T.sibling;var O=p(h,T,m[N],x);if(O===null){T===null&&(T=I);break}e&&T&&O.alternate===null&&t(h,T),c=l(O,c,N),R===null?C=O:R.sibling=O,R=O,T=I}if(N===m.length)return n(h,T),G&&un(h,N),C;if(T===null){for(;N<m.length;N++)T=d(h,m[N],x),T!==null&&(c=l(T,c,N),R===null?C=T:R.sibling=T,R=T);return G&&un(h,N),C}for(T=r(h,T);N<m.length;N++)I=g(T,h,N,m[N],x),I!==null&&(e&&I.alternate!==null&&T.delete(I.key===null?N:I.key),c=l(I,c,N),R===null?C=I:R.sibling=I,R=I);return e&&T.forEach(function($){return t(h,$)}),G&&un(h,N),C}function v(h,c,m,x){var C=Nr(m);if(typeof C!="function")throw Error(P(150));if(m=C.call(m),m==null)throw Error(P(151));for(var R=C=null,T=c,N=c=0,I=null,O=m.next();T!==null&&!O.done;N++,O=m.next()){T.index>N?(I=T,T=null):I=T.sibling;var $=p(h,T,O.value,x);if($===null){T===null&&(T=I);break}e&&T&&$.alternate===null&&t(h,T),c=l($,c,N),R===null?C=$:R.sibling=$,R=$,T=I}if(O.done)return n(h,T),G&&un(h,N),C;if(T===null){for(;!O.done;N++,O=m.next())O=d(h,O.value,x),O!==null&&(c=l(O,c,N),R===null?C=O:R.sibling=O,R=O);return G&&un(h,N),C}for(T=r(h,T);!O.done;N++,O=m.next())O=g(T,h,N,O.value,x),O!==null&&(e&&O.alternate!==null&&T.delete(O.key===null?N:O.key),c=l(O,c,N),R===null?C=O:R.sibling=O,R=O);return e&&T.forEach(function(ze){return t(h,ze)}),G&&un(h,N),C}function k(h,c,m,x){if(typeof m=="object"&&m!==null&&m.type===Wn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ui:e:{for(var C=m.key,R=c;R!==null;){if(R.key===C){if(C=m.type,C===Wn){if(R.tag===7){n(h,R.sibling),c=i(R,m.props.children),c.return=h,h=c;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Lt&&Hu(C)===R.type){n(h,R.sibling),c=i(R,m.props),c.ref=Lr(h,R,m),c.return=h,h=c;break e}n(h,R);break}else t(h,R);R=R.sibling}m.type===Wn?(c=Rn(m.props.children,h.mode,x,m.key),c.return=h,h=c):(x=hl(m.type,m.key,m.props,null,h.mode,x),x.ref=Lr(h,c,m),x.return=h,h=x)}return o(h);case An:e:{for(R=m.key;c!==null;){if(c.key===R)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(h,c.sibling),c=i(c,m.children||[]),c.return=h,h=c;break e}else{n(h,c);break}else t(h,c);c=c.sibling}c=Uo(m,h.mode,x),c.return=h,h=c}return o(h);case Lt:return R=m._init,k(h,c,R(m._payload),x)}if(Ar(m))return w(h,c,m,x);if(Nr(m))return v(h,c,m,x);qi(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(h,c.sibling),c=i(c,m),c.return=h,h=c):(n(h,c),c=zo(m,h.mode,x),c.return=h,h=c),o(h)):n(h,c)}return k}var gr=cd(!0),fd=cd(!1),Ol=ln(null),_l=null,Gn=null,Ea=null;function Ca(){Ea=Gn=_l=null}function Pa(e){var t=Ol.current;K(Ol),e._currentValue=t}function ws(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 tr(e,t){_l=e,Ea=Gn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ne=!0),e.firstContext=null)}function Be(e){var t=e._currentValue;if(Ea!==e)if(e={context:e,memoizedValue:t,next:null},Gn===null){if(_l===null)throw Error(P(308));Gn=e,_l.dependencies={lanes:0,firstContext:e}}else Gn=Gn.next=e;return t}var hn=null;function Ra(e){hn===null?hn=[e]:hn.push(e)}function dd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ra(t)):(n.next=i.next,i.next=n),t.interleaved=n,Pt(e,r)}function Pt(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 Dt=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hd(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 St(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Pt(e,n)}return i=r.interleaved,i===null?(t.next=t,Ra(r)):(t.next=i.next,i.next=t),r.interleaved=t,Pt(e,n)}function sl(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,da(e,n)}}function Bu(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 Ml(e,t,n,r){var i=e.updateQueue;Dt=!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 p=s.lane,g=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var w=e,v=s;switch(p=t,g=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){d=w.call(g,d,p);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,p=typeof w=="function"?w.call(g,d,p):w,p==null)break e;d=J({},d,p);break e;case 2:Dt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=g,a=d):f=f.next=g,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,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);_n|=o,e.lanes=o,e.memoizedState=d}}function Vu(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(P(191,i));i.call(r)}}}var Oi={},dt=ln(Oi),ci=ln(Oi),fi=ln(Oi);function pn(e){if(e===Oi)throw Error(P(174));return e}function Ta(e,t){switch(V(fi,t),V(ci,e),V(dt,Oi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Zo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Zo(t,e)}K(dt),V(dt,t)}function wr(){K(dt),K(ci),K(fi)}function pd(e){pn(fi.current);var t=pn(dt.current),n=Zo(t,e.type);t!==n&&(V(ci,e),V(dt,n))}function Oa(e){ci.current===e&&(K(dt),K(ci))}var q=ln(0);function Ll(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 Mo=[];function _a(){for(var e=0;e<Mo.length;e++)Mo[e]._workInProgressVersionPrimary=null;Mo.length=0}var al=Tt.ReactCurrentDispatcher,Lo=Tt.ReactCurrentBatchConfig,On=0,X=null,ie=null,ae=null,Dl=!1,Gr=!1,di=0,Vm=0;function pe(){throw Error(P(321))}function Ma(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tt(e[n],t[n]))return!1;return!0}function La(e,t,n,r,i,l){if(On=l,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,al.current=e===null||e.memoizedState===null?qm:Xm,e=n(r,i),Gr){l=0;do{if(Gr=!1,di=0,25<=l)throw Error(P(301));l+=1,ae=ie=null,t.updateQueue=null,al.current=bm,e=n(r,i)}while(Gr)}if(al.current=Fl,t=ie!==null&&ie.next!==null,On=0,ae=ie=X=null,Dl=!1,t)throw Error(P(300));return e}function Da(){var e=di!==0;return di=0,e}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ae===null?X.memoizedState=ae=e:ae=ae.next=e,ae}function Ve(){if(ie===null){var e=X.alternate;e=e!==null?e.memoizedState:null}else e=ie.next;var t=ae===null?X.memoizedState:ae.next;if(t!==null)ae=t,ie=e;else{if(e===null)throw Error(P(310));ie=e,e={memoizedState:ie.memoizedState,baseState:ie.baseState,baseQueue:ie.baseQueue,queue:ie.queue,next:null},ae===null?X.memoizedState=ae=e:ae=ae.next=e}return ae}function hi(e,t){return typeof t=="function"?t(e):t}function Do(e){var t=Ve(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=ie,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((On&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,X.lanes|=f,_n|=f}u=u.next}while(u!==null&&u!==l);a===null?o=r:a.next=s,tt(r,t.memoizedState)||(Ne=!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,X.lanes|=l,_n|=l,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Fo(e){var t=Ve(),n=t.queue;if(n===null)throw Error(P(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);tt(l,t.memoizedState)||(Ne=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function md(){}function yd(e,t){var n=X,r=Ve(),i=t(),l=!tt(r.memoizedState,i);if(l&&(r.memoizedState=i,Ne=!0),r=r.queue,Fa(wd.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ae!==null&&ae.memoizedState.tag&1){if(n.flags|=2048,pi(9,gd.bind(null,n,r,i,t),void 0,null),ue===null)throw Error(P(349));On&30||vd(n,t,i)}return i}function vd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gd(e,t,n,r){t.value=n,t.getSnapshot=r,xd(t)&&Sd(e)}function wd(e,t,n){return n(function(){xd(t)&&Sd(e)})}function xd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tt(e,n)}catch{return!0}}function Sd(e){var t=Pt(e,1);t!==null&&et(t,e,1,-1)}function Yu(e){var t=ot();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:e},t.queue=e,e=e.dispatch=Gm.bind(null,X,e),[t.memoizedState,e]}function pi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=X.updateQueue,t===null?(t={lastEffect:null,stores:null},X.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 Ve().memoizedState}function ul(e,t,n,r){var i=ot();X.flags|=e,i.memoizedState=pi(1|t,n,void 0,r===void 0?null:r)}function Xl(e,t,n,r){var i=Ve();r=r===void 0?null:r;var l=void 0;if(ie!==null){var o=ie.memoizedState;if(l=o.destroy,r!==null&&Ma(r,o.deps)){i.memoizedState=pi(t,n,l,r);return}}X.flags|=e,i.memoizedState=pi(1|t,n,l,r)}function Ku(e,t){return ul(8390656,8,e,t)}function Fa(e,t){return Xl(2048,8,e,t)}function Ed(e,t){return Xl(4,2,e,t)}function Cd(e,t){return Xl(4,4,e,t)}function Pd(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 Rd(e,t,n){return n=n!=null?n.concat([e]):null,Xl(4,4,Pd.bind(null,t,e),n)}function ja(){}function Nd(e,t){var n=Ve();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Td(e,t){var n=Ve();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Od(e,t,n){return On&21?(tt(n,t)||(n=Ff(),X.lanes|=n,_n|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ne=!0),e.memoizedState=n)}function Ym(e,t){var n=B;B=n!==0&&4>n?n:4,e(!0);var r=Lo.transition;Lo.transition={};try{e(!1),t()}finally{B=n,Lo.transition=r}}function _d(){return Ve().memoizedState}function Km(e,t,n){var r=Jt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Md(e))Ld(t,n);else if(n=dd(e,t,n,r),n!==null){var i=Se();et(n,e,r,i),Dd(n,t,r)}}function Gm(e,t,n){var r=Jt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Md(e))Ld(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,tt(s,o)){var a=t.interleaved;a===null?(i.next=i,Ra(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=dd(e,t,i,r),n!==null&&(i=Se(),et(n,e,r,i),Dd(n,t,r))}}function Md(e){var t=e.alternate;return e===X||t!==null&&t===X}function Ld(e,t){Gr=Dl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,da(e,n)}}var Fl={readContext:Be,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useInsertionEffect:pe,useLayoutEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useMutableSource:pe,useSyncExternalStore:pe,useId:pe,unstable_isNewReconciler:!1},qm={readContext:Be,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:Be,useEffect:Ku,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ul(4194308,4,Pd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ul(4194308,4,e,t)},useInsertionEffect:function(e,t){return ul(4,2,e,t)},useMemo:function(e,t){var n=ot();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ot();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=Km.bind(null,X,e),[r.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:Yu,useDebugValue:ja,useDeferredValue:function(e){return ot().memoizedState=e},useTransition:function(){var e=Yu(!1),t=e[0];return e=Ym.bind(null,e[1]),ot().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=X,i=ot();if(G){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),ue===null)throw Error(P(349));On&30||vd(r,t,n)}i.memoizedState=n;var l={value:n,getSnapshot:t};return i.queue=l,Ku(wd.bind(null,r,l,e),[e]),r.flags|=2048,pi(9,gd.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=ot(),t=ue.identifierPrefix;if(G){var n=xt,r=wt;n=(r&~(1<<32-Ze(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=di++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Vm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Xm={readContext:Be,useCallback:Nd,useContext:Be,useEffect:Fa,useImperativeHandle:Rd,useInsertionEffect:Ed,useLayoutEffect:Cd,useMemo:Td,useReducer:Do,useRef:kd,useState:function(){return Do(hi)},useDebugValue:ja,useDeferredValue:function(e){var t=Ve();return Od(t,ie.memoizedState,e)},useTransition:function(){var e=Do(hi)[0],t=Ve().memoizedState;return[e,t]},useMutableSource:md,useSyncExternalStore:yd,useId:_d,unstable_isNewReconciler:!1},bm={readContext:Be,useCallback:Nd,useContext:Be,useEffect:Fa,useImperativeHandle:Rd,useInsertionEffect:Ed,useLayoutEffect:Cd,useMemo:Td,useReducer:Fo,useRef:kd,useState:function(){return Fo(hi)},useDebugValue:ja,useDeferredValue:function(e){var t=Ve();return ie===null?t.memoizedState=e:Od(t,ie.memoizedState,e)},useTransition:function(){var e=Fo(hi)[0],t=Ve().memoizedState;return[e,t]},useMutableSource:md,useSyncExternalStore:yd,useId:_d,unstable_isNewReconciler:!1};function Ge(e,t){if(e&&e.defaultProps){t=J({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:J({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bl={isMounted:function(e){return(e=e._reactInternals)?jn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Se(),i=Jt(e),l=St(r,i);l.payload=t,n!=null&&(l.callback=n),t=Xt(e,l,i),t!==null&&(et(t,e,i,r),sl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Se(),i=Jt(e),l=St(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Xt(e,l,i),t!==null&&(et(t,e,i,r),sl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Se(),r=Jt(e),i=St(n,r);i.tag=2,t!=null&&(i.callback=t),t=Xt(e,i,r),t!==null&&(et(t,e,r,n),sl(t,e,r))}};function Gu(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?!oi(n,r)||!oi(i,l):!0}function Fd(e,t,n){var r=!1,i=nn,l=t.contextType;return typeof l=="object"&&l!==null?l=Be(l):(i=Oe(t)?Nn:ve.current,r=t.contextTypes,l=(r=r!=null)?yr(e,i):nn),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=bl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function qu(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&&bl.enqueueReplaceState(t,t.state,null)}function Ss(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Na(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=Be(l):(l=Oe(t)?Nn:ve.current,i.context=yr(e,l)),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(xs(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&&bl.enqueueReplaceState(i,i.state,null),Ml(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function xr(e,t){try{var n="",r=t;do n+=Pp(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 jo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ks(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Jm=typeof WeakMap=="function"?WeakMap:Map;function jd(e,t,n){n=St(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Il||(Il=!0,Ls=r),ks(e,t)},n}function Id(e,t,n){n=St(-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(){ks(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){ks(e,t),typeof r!="function"&&(bt===null?bt=new Set([this]):bt.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 Jm;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=dy.bind(null,e,t,n),t.then(e,e))}function bu(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 Ju(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=St(-1,1),t.tag=2,Xt(n,t,1))),n.lanes|=1),e)}var Zm=Tt.ReactCurrentOwner,Ne=!1;function xe(e,t,n,r){t.child=e===null?fd(t,null,n,r):gr(t,e.child,n,r)}function Zu(e,t,n,r,i){n=n.render;var l=t.ref;return tr(t,i),r=La(e,t,n,r,l,i),n=Da(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Rt(e,t,i)):(G&&n&&xa(t),t.flags|=1,xe(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var l=n.type;return typeof l=="function"&&!Ha(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,zd(e,t,l,r,i)):(e=hl(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:oi,n(o,r)&&e.ref===t.ref)return Rt(e,t,i)}return t.flags|=1,e=Zt(l,r),e.ref=t.ref,e.return=t,t.child=e}function zd(e,t,n,r,i){if(e!==null){var l=e.memoizedProps;if(oi(l,r)&&e.ref===t.ref)if(Ne=!1,t.pendingProps=r=l,(e.lanes&i)!==0)e.flags&131072&&(Ne=!0);else return t.lanes=e.lanes,Rt(e,t,i)}return Es(e,t,n,r,i)}function Ud(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},V(Xn,Me),Me|=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,V(Xn,Me),Me|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,V(Xn,Me),Me|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,V(Xn,Me),Me|=r;return xe(e,t,i,n),t.child}function Ad(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,i){var l=Oe(n)?Nn:ve.current;return l=yr(t,l),tr(t,i),n=La(e,t,n,r,l,i),r=Da(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Rt(e,t,i)):(G&&r&&xa(t),t.flags|=1,xe(e,t,n,i),t.child)}function tc(e,t,n,r,i){if(Oe(n)){var l=!0;Rl(t)}else l=!1;if(tr(t,i),t.stateNode===null)cl(e,t),Fd(t,n,r),Ss(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=Be(u):(u=Oe(n)?Nn:ve.current,u=yr(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)&&qu(t,o,r,u),Dt=!1;var p=t.memoizedState;o.state=p,Ml(t,r,o,i),a=t.memoizedState,s!==r||p!==a||Te.current||Dt?(typeof f=="function"&&(xs(t,n,f,r),a=t.memoizedState),(s=Dt||Gu(t,n,s,r,p,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,hd(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ge(t.type,s),o.props=u,d=t.pendingProps,p=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Be(a):(a=Oe(n)?Nn:ve.current,a=yr(t,a));var g=n.getDerivedStateFromProps;(f=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||p!==a)&&qu(t,o,r,a),Dt=!1,p=t.memoizedState,o.state=p,Ml(t,r,o,i);var w=t.memoizedState;s!==d||p!==w||Te.current||Dt?(typeof g=="function"&&(xs(t,n,g,r),w=t.memoizedState),(u=Dt||Gu(t,n,u,r,p,w,a)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Cs(e,t,n,r,l,i)}function Cs(e,t,n,r,i,l){Ad(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Wu(t,n,!1),Rt(e,t,l);r=t.stateNode,Zm.current=t;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=gr(t,e.child,null,l),t.child=gr(t,null,s,l)):xe(e,t,s,l),t.memoizedState=r.state,i&&Wu(t,n,!0),t.child}function Wd(e){var t=e.stateNode;t.pendingContext?Au(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Au(e,t.context,!1),Ta(e,t.containerInfo)}function nc(e,t,n,r,i){return vr(),ka(i),t.flags|=256,xe(e,t,n,r),t.child}var Ps={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function $d(e,t,n){var r=t.pendingProps,i=q.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),V(q,i&1),e===null)return gs(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=eo(o,r,0,null),e=Rn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Rs(n),t.memoizedState=Ps,e):Ia(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return ey(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=Zt(i,a),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?l=Zt(s,l):(l=Rn(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?Rs(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=e.childLanes&~n,t.memoizedState=Ps,r}return l=e.child,e=l.sibling,r=Zt(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 Ia(e,t){return t=eo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Xi(e,t,n,r){return r!==null&&ka(r),gr(t,e.child,null,n),e=Ia(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ey(e,t,n,r,i,l,o){if(n)return t.flags&256?(t.flags&=-257,r=jo(Error(P(422))),Xi(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,i=t.mode,r=eo({mode:"visible",children:r.children},i,0,null),l=Rn(l,i,o,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&gr(t,e.child,null,o),t.child.memoizedState=Rs(o),t.memoizedState=Ps,l);if(!(t.mode&1))return Xi(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(P(419)),r=jo(l,r,void 0),Xi(e,t,o,r)}if(s=(o&e.childLanes)!==0,Ne||s){if(r=ue,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,Pt(e,i),et(r,e,i,-1))}return Qa(),r=jo(Error(P(421))),Xi(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=hy.bind(null,e),i._reactRetry=t,null):(e=l.treeContext,Le=qt(i.nextSibling),De=t,G=!0,Je=null,e!==null&&(We[$e++]=wt,We[$e++]=xt,We[$e++]=Tn,wt=e.id,xt=e.overflow,Tn=t),t=Ia(t,r.children),t.flags|=4096,t)}function rc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ws(e.return,t,n)}function Io(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 Qd(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(xe(e,t,r.children,n),r=q.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&&rc(e,n,t);else if(e.tag===19)rc(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(V(q,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&&Ll(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Io(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&&Ll(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Io(t,!0,n,null,l);break;case"together":Io(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_n|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,n=Zt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Zt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ty(e,t,n){switch(t.tag){case 3:Wd(t),vr();break;case 5:pd(t);break;case 1:Oe(t.type)&&Rl(t);break;case 4:Ta(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;V(Ol,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(V(q,q.current&1),t.flags|=128,null):n&t.child.childLanes?$d(e,t,n):(V(q,q.current&1),e=Rt(e,t,n),e!==null?e.sibling:null);V(q,q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Qd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(q,q.current),r)break;return null;case 22:case 23:return t.lanes=0,Ud(e,t,n)}return Rt(e,t,n)}var Hd,Ns,Bd,Vd;Hd=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}};Ns=function(){};Bd=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,pn(dt.current);var l=null;switch(n){case"input":i=qo(e,i),r=qo(e,r),l=[];break;case"select":i=J({},i,{value:void 0}),r=J({},r,{value:void 0}),l=[];break;case"textarea":i=Jo(e,i),r=Jo(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Cl)}es(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"&&(Zr.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"&&(Zr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Y("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)}};Vd=function(e,t,n,r){n!==r&&(t.flags|=4)};function Dr(e,t){if(!G)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 me(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 ny(e,t,n){var r=t.pendingProps;switch(Sa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return me(t),null;case 1:return Oe(t.type)&&Pl(),me(t),null;case 3:return r=t.stateNode,wr(),K(Te),K(ve),_a(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Je!==null&&(js(Je),Je=null))),Ns(e,t),me(t),null;case 5:Oa(t);var i=pn(fi.current);if(n=t.type,e!==null&&t.stateNode!=null)Bd(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(P(166));return me(t),null}if(e=pn(dt.current),Gi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[ct]=t,r[ui]=l,e=(t.mode&1)!==0,n){case"dialog":Y("cancel",r),Y("close",r);break;case"iframe":case"object":case"embed":Y("load",r);break;case"video":case"audio":for(i=0;i<$r.length;i++)Y($r[i],r);break;case"source":Y("error",r);break;case"img":case"image":case"link":Y("error",r),Y("load",r);break;case"details":Y("toggle",r);break;case"input":du(r,l),Y("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Y("invalid",r);break;case"textarea":pu(r,l),Y("invalid",r)}es(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&&Ki(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&Ki(r.textContent,s,e),i=["children",""+s]):Zr.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Y("scroll",r)}switch(n){case"input":Ai(r),hu(r,l,!0);break;case"textarea":Ai(r),mu(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Cl)}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=wf(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[ct]=t,e[ui]=r,Hd(e,t,!1,!1),t.stateNode=e;e:{switch(o=ts(n,r),n){case"dialog":Y("cancel",e),Y("close",e),i=r;break;case"iframe":case"object":case"embed":Y("load",e),i=r;break;case"video":case"audio":for(i=0;i<$r.length;i++)Y($r[i],e);i=r;break;case"source":Y("error",e),i=r;break;case"img":case"image":case"link":Y("error",e),Y("load",e),i=r;break;case"details":Y("toggle",e),i=r;break;case"input":du(e,r),i=qo(e,r),Y("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=J({},r,{value:void 0}),Y("invalid",e);break;case"textarea":pu(e,r),i=Jo(e,r),Y("invalid",e);break;default:i=r}es(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&&xf(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ei(e,a):typeof a=="number"&&ei(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Zr.hasOwnProperty(l)?a!=null&&l==="onScroll"&&Y("scroll",e):a!=null&&oa(e,l,a,o))}switch(n){case"input":Ai(e),hu(e,r,!1);break;case"textarea":Ai(e),mu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+tn(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?bn(e,!!r.multiple,l,!1):r.defaultValue!=null&&bn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Cl)}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 me(t),null;case 6:if(e&&t.stateNode!=null)Vd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(P(166));if(n=pn(fi.current),pn(dt.current),Gi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ct]=t,(l=r.nodeValue!==n)&&(e=De,e!==null))switch(e.tag){case 3:Ki(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ki(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ct]=t,t.stateNode=r}return me(t),null;case 13:if(K(q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(G&&Le!==null&&t.mode&1&&!(t.flags&128))ud(),vr(),t.flags|=98560,l=!1;else if(l=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(P(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(P(317));l[ct]=t}else vr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;me(t),l=!1}else Je!==null&&(js(Je),Je=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||q.current&1?le===0&&(le=3):Qa())),t.updateQueue!==null&&(t.flags|=4),me(t),null);case 4:return wr(),Ns(e,t),e===null&&si(t.stateNode.containerInfo),me(t),null;case 10:return Pa(t.type._context),me(t),null;case 17:return Oe(t.type)&&Pl(),me(t),null;case 19:if(K(q),l=t.memoizedState,l===null)return me(t),null;if(r=(t.flags&128)!==0,o=l.rendering,o===null)if(r)Dr(l,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ll(e),o!==null){for(t.flags|=128,Dr(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 V(q,q.current&1|2),t.child}e=e.sibling}l.tail!==null&&ne()>Sr&&(t.flags|=128,r=!0,Dr(l,!1),t.lanes=4194304)}else{if(!r)if(e=Ll(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Dr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!G)return me(t),null}else 2*ne()-l.renderingStartTime>Sr&&n!==1073741824&&(t.flags|=128,r=!0,Dr(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=ne(),t.sibling=null,n=q.current,V(q,r?n&1|2:n&1),t):(me(t),null);case 22:case 23:return $a(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function ry(e,t){switch(Sa(t),t.tag){case 1:return Oe(t.type)&&Pl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wr(),K(Te),K(ve),_a(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Oa(t),null;case 13:if(K(q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(q),null;case 4:return wr(),null;case 10:return Pa(t.type._context),null;case 22:case 23:return $a(),null;case 24:return null;default:return null}}var bi=!1,ye=!1,iy=typeof WeakSet=="function"?WeakSet:Set,M=null;function qn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ee(e,t,r)}else n.current=null}function Ts(e,t,n){try{n()}catch(r){ee(e,t,r)}}var ic=!1;function ly(e,t){if(fs=Sl,e=Xf(),wa(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,p=null;t:for(;;){for(var g;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),(g=d.firstChild)!==null;)p=d,d=g;for(;;){if(d===e)break t;if(p===n&&++u===i&&(s=o),p===l&&++f===r&&(a=o),(g=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=g}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ds={focusedElem:e,selectionRange:n},Sl=!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 w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,k=w.memoizedState,h=t.stateNode,c=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ge(t.type,v),k);h.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(x){ee(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return w=ic,ic=!1,w}function qr(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&&Ts(t,n,l)}i=i.next}while(i!==r)}}function Jl(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 Os(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 Yd(e){var t=e.alternate;t!==null&&(e.alternate=null,Yd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ct],delete t[ui],delete t[ms],delete t[$m],delete t[Qm])),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 Kd(e){return e.tag===5||e.tag===3||e.tag===4}function lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Kd(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 _s(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=Cl));else if(r!==4&&(e=e.child,e!==null))for(_s(e,t,n),e=e.sibling;e!==null;)_s(e,t,n),e=e.sibling}function Ms(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(Ms(e,t,n),e=e.sibling;e!==null;)Ms(e,t,n),e=e.sibling}var ce=null,be=!1;function Ot(e,t,n){for(n=n.child;n!==null;)Gd(e,t,n),n=n.sibling}function Gd(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Bl,n)}catch{}switch(n.tag){case 5:ye||qn(n,t);case 6:var r=ce,i=be;ce=null,Ot(e,t,n),ce=r,be=i,ce!==null&&(be?(e=ce,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ce.removeChild(n.stateNode));break;case 18:ce!==null&&(be?(e=ce,n=n.stateNode,e.nodeType===8?Oo(e.parentNode,n):e.nodeType===1&&Oo(e,n),ii(e)):Oo(ce,n.stateNode));break;case 4:r=ce,i=be,ce=n.stateNode.containerInfo,be=!0,Ot(e,t,n),ce=r,be=i;break;case 0:case 11:case 14:case 15:if(!ye&&(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)&&Ts(n,t,o),i=i.next}while(i!==r)}Ot(e,t,n);break;case 1:if(!ye&&(qn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ee(n,t,s)}Ot(e,t,n);break;case 21:Ot(e,t,n);break;case 22:n.mode&1?(ye=(r=ye)||n.memoizedState!==null,Ot(e,t,n),ye=r):Ot(e,t,n);break;default:Ot(e,t,n)}}function oc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new iy),t.forEach(function(r){var i=py.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ke(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:ce=s.stateNode,be=!1;break e;case 3:ce=s.stateNode.containerInfo,be=!0;break e;case 4:ce=s.stateNode.containerInfo,be=!0;break e}s=s.return}if(ce===null)throw Error(P(160));Gd(l,o,i),ce=null,be=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){ee(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)qd(t,e),t=t.sibling}function qd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ke(t,e),lt(e),r&4){try{qr(3,e,e.return),Jl(3,e)}catch(v){ee(e,e.return,v)}try{qr(5,e,e.return)}catch(v){ee(e,e.return,v)}}break;case 1:Ke(t,e),lt(e),r&512&&n!==null&&qn(n,n.return);break;case 5:if(Ke(t,e),lt(e),r&512&&n!==null&&qn(n,n.return),e.flags&32){var i=e.stateNode;try{ei(i,"")}catch(v){ee(e,e.return,v)}}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),ts(s,o);var u=ts(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"?xf(i,d):f==="children"?ei(i,d):oa(i,f,d,u)}switch(s){case"input":Xo(i,l);break;case"textarea":gf(i,l);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var g=l.value;g!=null?bn(i,!!l.multiple,g,!1):p!==!!l.multiple&&(l.defaultValue!=null?bn(i,!!l.multiple,l.defaultValue,!0):bn(i,!!l.multiple,l.multiple?[]:"",!1))}i[ui]=l}catch(v){ee(e,e.return,v)}}break;case 6:if(Ke(t,e),lt(e),r&4){if(e.stateNode===null)throw Error(P(162));i=e.stateNode,l=e.memoizedProps;try{i.nodeValue=l}catch(v){ee(e,e.return,v)}}break;case 3:if(Ke(t,e),lt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ii(t.containerInfo)}catch(v){ee(e,e.return,v)}break;case 4:Ke(t,e),lt(e);break;case 13:Ke(t,e),lt(e),i=e.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(Aa=ne())),r&4&&oc(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(ye=(u=ye)||f,Ke(t,e),ye=u):Ke(t,e),lt(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(p=M,g=p.child,p.tag){case 0:case 11:case 14:case 15:qr(4,p,p.return);break;case 1:qn(p,p.return);var w=p.stateNode;if(typeof w.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(v){ee(r,n,v)}}break;case 5:qn(p,p.return);break;case 22:if(p.memoizedState!==null){ac(d);continue}}g!==null?(g.return=p,M=g):ac(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=Sf("display",o))}catch(v){ee(e,e.return,v)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(v){ee(e,e.return,v)}}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:Ke(t,e),lt(e),r&4&&oc(e);break;case 21:break;default:Ke(t,e),lt(e)}}function lt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Kd(n)){var r=n;break e}n=n.return}throw Error(P(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ei(i,""),r.flags&=-33);var l=lc(e);Ms(e,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=lc(e);_s(e,s,o);break;default:throw Error(P(161))}}catch(a){ee(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function oy(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||bi;if(!o){var s=i.alternate,a=s!==null&&s.memoizedState!==null||ye;s=bi;var u=ye;if(bi=o,(ye=a)&&!u)for(M=i;M!==null;)o=M,a=o.child,o.tag===22&&o.memoizedState!==null?uc(i):a!==null?(a.return=o,M=a):uc(i);for(;l!==null;)M=l,Xd(l),l=l.sibling;M=i,bi=s,ye=u}sc(e)}else i.subtreeFlags&8772&&l!==null?(l.return=i,M=l):sc(e)}}function sc(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:ye||Jl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ye)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ge(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Vu(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}Vu(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&&ii(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}ye||t.flags&512&&Os(t)}catch(p){ee(t,t.return,p)}}if(t===e){M=null;break}if(n=t.sibling,n!==null){n.return=t.return,M=n;break}M=t.return}}function ac(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 uc(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jl(4,t)}catch(a){ee(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){ee(t,i,a)}}var l=t.return;try{Os(t)}catch(a){ee(t,l,a)}break;case 5:var o=t.return;try{Os(t)}catch(a){ee(t,o,a)}}}catch(a){ee(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 sy=Math.ceil,jl=Tt.ReactCurrentDispatcher,za=Tt.ReactCurrentOwner,He=Tt.ReactCurrentBatchConfig,W=0,ue=null,re=null,de=0,Me=0,Xn=ln(0),le=0,mi=null,_n=0,Zl=0,Ua=0,Xr=null,Re=null,Aa=0,Sr=1/0,mt=null,Il=!1,Ls=null,bt=null,Ji=!1,Vt=null,zl=0,br=0,Ds=null,fl=-1,dl=0;function Se(){return W&6?ne():fl!==-1?fl:fl=ne()}function Jt(e){return e.mode&1?W&2&&de!==0?de&-de:Bm.transition!==null?(dl===0&&(dl=Ff()),dl):(e=B,e!==0||(e=window.event,e=e===void 0?16:$f(e.type)),e):1}function et(e,t,n,r){if(50<br)throw br=0,Ds=null,Error(P(185));Ri(e,n,r),(!(W&2)||e!==ue)&&(e===ue&&(!(W&2)&&(Zl|=n),le===4&&jt(e,de)),_e(e,r),n===1&&W===0&&!(t.mode&1)&&(Sr=ne()+500,ql&&on()))}function _e(e,t){var n=e.callbackNode;Bp(e,t);var r=xl(e,e===ue?de:0);if(r===0)n!==null&&gu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&gu(n),t===1)e.tag===0?Hm(cc.bind(null,e)):od(cc.bind(null,e)),Am(function(){!(W&6)&&on()}),n=null;else{switch(jf(r)){case 1:n=fa;break;case 4:n=Lf;break;case 16:n=wl;break;case 536870912:n=Df;break;default:n=wl}n=ih(n,bd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function bd(e,t){if(fl=-1,dl=0,W&6)throw Error(P(327));var n=e.callbackNode;if(nr()&&e.callbackNode!==n)return null;var r=xl(e,e===ue?de:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ul(e,r);else{t=r;var i=W;W|=2;var l=Zd();(ue!==e||de!==t)&&(mt=null,Sr=ne()+500,Pn(e,t));do try{cy();break}catch(s){Jd(e,s)}while(!0);Ca(),jl.current=l,W=i,re!==null?t=0:(ue=null,de=0,t=le)}if(t!==0){if(t===2&&(i=os(e),i!==0&&(r=i,t=Fs(e,i))),t===1)throw n=mi,Pn(e,0),jt(e,r),_e(e,ne()),n;if(t===6)jt(e,r);else{if(i=e.current.alternate,!(r&30)&&!ay(i)&&(t=Ul(e,r),t===2&&(l=os(e),l!==0&&(r=l,t=Fs(e,l))),t===1))throw n=mi,Pn(e,0),jt(e,r),_e(e,ne()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(P(345));case 2:cn(e,Re,mt);break;case 3:if(jt(e,r),(r&130023424)===r&&(t=Aa+500-ne(),10<t)){if(xl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Se(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ps(cn.bind(null,e,Re,mt),t);break}cn(e,Re,mt);break;case 4:if(jt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Ze(r);l=1<<o,o=t[o],o>i&&(i=o),r&=~l}if(r=i,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*sy(r/1960))-r,10<r){e.timeoutHandle=ps(cn.bind(null,e,Re,mt),r);break}cn(e,Re,mt);break;case 5:cn(e,Re,mt);break;default:throw Error(P(329))}}}return _e(e,ne()),e.callbackNode===n?bd.bind(null,e):null}function Fs(e,t){var n=Xr;return e.current.memoizedState.isDehydrated&&(Pn(e,t).flags|=256),e=Ul(e,t),e!==2&&(t=Re,Re=n,t!==null&&js(t)),e}function js(e){Re===null?Re=e:Re.push.apply(Re,e)}function ay(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(!tt(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 jt(e,t){for(t&=~Ua,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ze(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(W&6)throw Error(P(327));nr();var t=xl(e,0);if(!(t&1))return _e(e,ne()),null;var n=Ul(e,t);if(e.tag!==0&&n===2){var r=os(e);r!==0&&(t=r,n=Fs(e,r))}if(n===1)throw n=mi,Pn(e,0),jt(e,t),_e(e,ne()),n;if(n===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cn(e,Re,mt),_e(e,ne()),null}function Wa(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(Sr=ne()+500,ql&&on())}}function Mn(e){Vt!==null&&Vt.tag===0&&!(W&6)&&nr();var t=W;W|=1;var n=He.transition,r=B;try{if(He.transition=null,B=1,e)return e()}finally{B=r,He.transition=n,W=t,!(W&6)&&on()}}function $a(){Me=Xn.current,K(Xn)}function Pn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Um(n)),re!==null)for(n=re.return;n!==null;){var r=n;switch(Sa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pl();break;case 3:wr(),K(Te),K(ve),_a();break;case 5:Oa(r);break;case 4:wr();break;case 13:K(q);break;case 19:K(q);break;case 10:Pa(r.type._context);break;case 22:case 23:$a()}n=n.return}if(ue=e,re=e=Zt(e.current,null),de=Me=t,le=0,mi=null,Ua=Zl=_n=0,Re=Xr=null,hn!==null){for(t=0;t<hn.length;t++)if(n=hn[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}hn=null}return e}function Jd(e,t){do{var n=re;try{if(Ca(),al.current=Fl,Dl){for(var r=X.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Dl=!1}if(On=0,ae=ie=X=null,Gr=!1,di=0,za.current=null,n===null||n.return===null){le=1,mi=t,re=null;break}e:{var l=e,o=n.return,s=n,a=t;if(t=de,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 p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var g=bu(o);if(g!==null){g.flags&=-257,Ju(g,o,s,l,t),g.mode&1&&Xu(l,u,t),t=g,a=u;var w=t.updateQueue;if(w===null){var v=new Set;v.add(a),t.updateQueue=v}else w.add(a);break e}else{if(!(t&1)){Xu(l,u,t),Qa();break e}a=Error(P(426))}}else if(G&&s.mode&1){var k=bu(o);if(k!==null){!(k.flags&65536)&&(k.flags|=256),Ju(k,o,s,l,t),ka(xr(a,s));break e}}l=a=xr(a,s),le!==4&&(le=2),Xr===null?Xr=[l]:Xr.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var h=jd(l,a,t);Bu(l,h);break e;case 1:s=a;var c=l.type,m=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(bt===null||!bt.has(m)))){l.flags|=65536,t&=-t,l.lanes|=t;var x=Id(l,s,t);Bu(l,x);break e}}l=l.return}while(l!==null)}th(n)}catch(C){t=C,re===n&&n!==null&&(re=n=n.return);continue}break}while(!0)}function Zd(){var e=jl.current;return jl.current=Fl,e===null?Fl:e}function Qa(){(le===0||le===3||le===2)&&(le=4),ue===null||!(_n&268435455)&&!(Zl&268435455)||jt(ue,de)}function Ul(e,t){var n=W;W|=2;var r=Zd();(ue!==e||de!==t)&&(mt=null,Pn(e,t));do try{uy();break}catch(i){Jd(e,i)}while(!0);if(Ca(),W=n,jl.current=r,re!==null)throw Error(P(261));return ue=null,de=0,le}function uy(){for(;re!==null;)eh(re)}function cy(){for(;re!==null&&!jp();)eh(re)}function eh(e){var t=rh(e.alternate,e,Me);e.memoizedProps=e.pendingProps,t===null?th(e):re=t,za.current=null}function th(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ry(n,t),n!==null){n.flags&=32767,re=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,re=null;return}}else if(n=ny(n,t,Me),n!==null){re=n;return}if(t=t.sibling,t!==null){re=t;return}re=t=e}while(t!==null);le===0&&(le=5)}function cn(e,t,n){var r=B,i=He.transition;try{He.transition=null,B=1,fy(e,t,n,r)}finally{He.transition=i,B=r}return null}function fy(e,t,n,r){do nr();while(Vt!==null);if(W&6)throw Error(P(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(P(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Vp(e,l),e===ue&&(re=ue=null,de=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ji||(Ji=!0,ih(wl,function(){return nr(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=He.transition,He.transition=null;var o=B;B=1;var s=W;W|=4,za.current=null,ly(e,n),qd(n,e),Mm(ds),Sl=!!fs,ds=fs=null,e.current=n,oy(n),Ip(),W=s,B=o,He.transition=l}else e.current=n;if(Ji&&(Ji=!1,Vt=e,zl=i),l=e.pendingLanes,l===0&&(bt=null),Ap(n.stateNode),_e(e,ne()),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(Il)throw Il=!1,e=Ls,Ls=null,e;return zl&1&&e.tag!==0&&nr(),l=e.pendingLanes,l&1?e===Ds?br++:(br=0,Ds=e):br=0,on(),null}function nr(){if(Vt!==null){var e=jf(zl),t=He.transition,n=B;try{if(He.transition=null,B=16>e?16:e,Vt===null)var r=!1;else{if(e=Vt,Vt=null,zl=0,W&6)throw Error(P(331));var i=W;for(W|=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:qr(8,f,l)}var d=f.child;if(d!==null)d.return=f,M=d;else for(;M!==null;){f=M;var p=f.sibling,g=f.return;if(Yd(f),f===u){M=null;break}if(p!==null){p.return=g,M=p;break}M=g}}}var w=l.alternate;if(w!==null){var v=w.child;if(v!==null){w.child=null;do{var k=v.sibling;v.sibling=null,v=k}while(v!==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:qr(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 m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,M=m;else e:for(o=c;M!==null;){if(s=M,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Jl(9,s)}}catch(C){ee(s,s.return,C)}if(s===o){M=null;break e}var x=s.sibling;if(x!==null){x.return=s.return,M=x;break e}M=s.return}}if(W=i,on(),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(Bl,e)}catch{}r=!0}return r}finally{B=n,He.transition=t}}return!1}function fc(e,t,n){t=xr(n,t),t=jd(e,t,1),e=Xt(e,t,1),t=Se(),e!==null&&(Ri(e,1,t),_e(e,t))}function ee(e,t,n){if(e.tag===3)fc(e,e,n);else for(;t!==null;){if(t.tag===3){fc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(bt===null||!bt.has(r))){e=xr(n,e),e=Id(t,e,1),t=Xt(t,e,1),e=Se(),t!==null&&(Ri(t,1,e),_e(t,e));break}}t=t.return}}function dy(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Se(),e.pingedLanes|=e.suspendedLanes&n,ue===e&&(de&n)===n&&(le===4||le===3&&(de&130023424)===de&&500>ne()-Aa?Pn(e,0):Ua|=n),_e(e,t)}function nh(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var n=Se();e=Pt(e,t),e!==null&&(Ri(e,t,n),_e(e,n))}function hy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nh(e,n)}function py(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(P(314))}r!==null&&r.delete(t),nh(e,n)}var rh;rh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Te.current)Ne=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ne=!1,ty(e,t,n);Ne=!!(e.flags&131072)}else Ne=!1,G&&t.flags&1048576&&sd(t,Tl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cl(e,t),e=t.pendingProps;var i=yr(t,ve.current);tr(t,n),i=La(null,t,r,e,i,n);var l=Da();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,Oe(r)?(l=!0,Rl(t)):l=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Na(t),i.updater=bl,t.stateNode=i,i._reactInternals=t,Ss(t,r,e,n),t=Cs(null,t,r,!0,l,n)):(t.tag=0,G&&l&&xa(t),xe(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=yy(r),e=Ge(r,e),i){case 0:t=Es(null,t,r,e,n);break e;case 1:t=tc(null,t,r,e,n);break e;case 11:t=Zu(null,t,r,e,n);break e;case 14:t=ec(null,t,r,Ge(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),Es(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),tc(e,t,r,i,n);case 3:e:{if(Wd(t),e===null)throw Error(P(387));r=t.pendingProps,l=t.memoizedState,i=l.element,hd(e,t),Ml(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=xr(Error(P(423)),t),t=nc(e,t,r,n,i);break e}else if(r!==i){i=xr(Error(P(424)),t),t=nc(e,t,r,n,i);break e}else for(Le=qt(t.stateNode.containerInfo.firstChild),De=t,G=!0,Je=null,n=fd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vr(),r===i){t=Rt(e,t,n);break e}xe(e,t,r,n)}t=t.child}return t;case 5:return pd(t),e===null&&gs(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,o=i.children,hs(r,i)?o=null:l!==null&&hs(r,l)&&(t.flags|=32),Ad(e,t),xe(e,t,o,n),t.child;case 6:return e===null&&gs(t),null;case 13:return $d(e,t,n);case 4:return Ta(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gr(t,null,r,n):xe(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),Zu(e,t,r,i,n);case 7:return xe(e,t,t.pendingProps,n),t.child;case 8:return xe(e,t,t.pendingProps.children,n),t.child;case 12:return xe(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,V(Ol,r._currentValue),r._currentValue=o,l!==null)if(tt(l.value,o)){if(l.children===i.children&&!Te.current){t=Rt(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=St(-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),ws(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(P(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),ws(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}xe(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,tr(t,n),i=Be(i),r=r(i),t.flags|=1,xe(e,t,r,n),t.child;case 14:return r=t.type,i=Ge(r,t.pendingProps),i=Ge(r.type,i),ec(e,t,r,i,n);case 15:return zd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ge(r,i),cl(e,t),t.tag=1,Oe(r)?(e=!0,Rl(t)):e=!1,tr(t,n),Fd(t,r,i),Ss(t,r,i,n),Cs(null,t,r,!0,e,n);case 19:return Qd(e,t,n);case 22:return Ud(e,t,n)}throw Error(P(156,t.tag))};function ih(e,t){return Mf(e,t)}function my(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 Qe(e,t,n,r){return new my(e,t,n,r)}function Ha(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yy(e){if(typeof e=="function")return Ha(e)?1:0;if(e!=null){if(e=e.$$typeof,e===aa)return 11;if(e===ua)return 14}return 2}function Zt(e,t){var n=e.alternate;return n===null?(n=Qe(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 hl(e,t,n,r,i,l){var o=2;if(r=e,typeof e=="function")Ha(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Wn:return Rn(n.children,i,l,t);case sa:o=8,i|=8;break;case Vo:return e=Qe(12,n,t,i|2),e.elementType=Vo,e.lanes=l,e;case Yo:return e=Qe(13,n,t,i),e.elementType=Yo,e.lanes=l,e;case Ko:return e=Qe(19,n,t,i),e.elementType=Ko,e.lanes=l,e;case pf:return eo(n,i,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case df:o=10;break e;case hf:o=9;break e;case aa:o=11;break e;case ua:o=14;break e;case Lt:o=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Qe(o,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function Rn(e,t,n,r){return e=Qe(7,e,r,t),e.lanes=n,e}function eo(e,t,n,r){return e=Qe(22,e,r,t),e.elementType=pf,e.lanes=n,e.stateNode={isHidden:!1},e}function zo(e,t,n){return e=Qe(6,e,null,t),e.lanes=n,e}function Uo(e,t,n){return t=Qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vy(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=go(0),this.expirationTimes=go(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=go(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ba(e,t,n,r,i,l,o,s,a){return e=new vy(e,t,n,s,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Qe(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Na(l),e}function gy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:An,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function lh(e){if(!e)return nn;e=e._reactInternals;e:{if(jn(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var n=e.type;if(Oe(n))return ld(e,n,t)}return t}function oh(e,t,n,r,i,l,o,s,a){return e=Ba(n,r,!0,e,i,l,o,s,a),e.context=lh(null),n=e.current,r=Se(),i=Jt(n),l=St(r,i),l.callback=t??null,Xt(n,l,i),e.current.lanes=i,Ri(e,i,r),_e(e,r),e}function to(e,t,n,r){var i=t.current,l=Se(),o=Jt(i);return n=lh(n),t.context===null?t.context=n:t.pendingContext=n,t=St(l,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Xt(i,t,o),e!==null&&(et(e,i,o,l),sl(e,i,o)),o}function Al(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 dc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Va(e,t){dc(e,t),(e=e.alternate)&&dc(e,t)}function wy(){return null}var sh=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ya(e){this._internalRoot=e}no.prototype.render=Ya.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));to(e,t,null,null)};no.prototype.unmount=Ya.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mn(function(){to(null,e,null,null)}),t[Ct]=null}};function no(e){this._internalRoot=e}no.prototype.unstable_scheduleHydration=function(e){if(e){var t=Uf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ft.length&&t!==0&&t<Ft[n].priority;n++);Ft.splice(n,0,e),n===0&&Wf(e)}};function Ka(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ro(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hc(){}function xy(e,t,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var u=Al(o);l.call(u)}}var o=oh(t,r,e,0,null,!1,!1,"",hc);return e._reactRootContainer=o,e[Ct]=o.current,si(e.nodeType===8?e.parentNode:e),Mn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=Al(a);s.call(u)}}var a=Ba(e,0,!1,null,null,!1,!1,"",hc);return e._reactRootContainer=a,e[Ct]=a.current,si(e.nodeType===8?e.parentNode:e),Mn(function(){to(t,a,n,r)}),a}function io(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=Al(o);s.call(a)}}to(t,o,e,i)}else o=xy(n,t,e,i,r);return Al(o)}If=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Wr(t.pendingLanes);n!==0&&(da(t,n|1),_e(t,ne()),!(W&6)&&(Sr=ne()+500,on()))}break;case 13:Mn(function(){var r=Pt(e,1);if(r!==null){var i=Se();et(r,e,1,i)}}),Va(e,1)}};ha=function(e){if(e.tag===13){var t=Pt(e,134217728);if(t!==null){var n=Se();et(t,e,134217728,n)}Va(e,134217728)}};zf=function(e){if(e.tag===13){var t=Jt(e),n=Pt(e,t);if(n!==null){var r=Se();et(n,e,t,r)}Va(e,t)}};Uf=function(){return B};Af=function(e,t){var n=B;try{return B=e,t()}finally{B=n}};rs=function(e,t,n){switch(t){case"input":if(Xo(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=Gl(r);if(!i)throw Error(P(90));yf(r),Xo(r,i)}}}break;case"textarea":gf(e,n);break;case"select":t=n.value,t!=null&&bn(e,!!n.multiple,t,!1)}};Pf=Wa;Rf=Mn;var Sy={usingClientEntryPoint:!1,Events:[Ti,Bn,Gl,Ef,Cf,Wa]},Fr={findFiberByHostInstance:dn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ky={bundleType:Fr.bundleType,version:Fr.version,rendererPackageName:Fr.rendererPackageName,rendererConfig:Fr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Tt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Of(e),e===null?null:e.stateNode},findFiberByHostInstance:Fr.findFiberByHostInstance||wy,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 Zi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zi.isDisabled&&Zi.supportsFiber)try{Bl=Zi.inject(ky),ft=Zi}catch{}}je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Sy;je.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ka(t))throw Error(P(200));return gy(e,t,null,n)};je.createRoot=function(e,t){if(!Ka(e))throw Error(P(299));var n=!1,r="",i=sh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ba(e,1,!1,null,null,n,!1,r,i),e[Ct]=t.current,si(e.nodeType===8?e.parentNode:e),new Ya(t)};je.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(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=Of(t),e=e===null?null:e.stateNode,e};je.flushSync=function(e){return Mn(e)};je.hydrate=function(e,t,n){if(!ro(t))throw Error(P(200));return io(null,e,t,!0,n)};je.hydrateRoot=function(e,t,n){if(!Ka(e))throw Error(P(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=sh;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=oh(t,null,e,1,n??null,i,!1,l,o),e[Ct]=t.current,si(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 no(t)};je.render=function(e,t,n){if(!ro(t))throw Error(P(200));return io(null,e,t,!1,n)};je.unmountComponentAtNode=function(e){if(!ro(e))throw Error(P(40));return e._reactRootContainer?(Mn(function(){io(null,null,e,!1,function(){e._reactRootContainer=null,e[Ct]=null})}),!0):!1};je.unstable_batchedUpdates=Wa;je.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ro(n))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return io(e,t,n,!1,r)};je.version="18.3.1-next-f1338f8080-20240426";function ah(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ah)}catch(e){console.error(e)}}ah(),af.exports=je;var Ey=af.exports,pc=Ey;Ho.createRoot=pc.createRoot,Ho.hydrateRoot=pc.hydrateRoot;var _i=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(){}},Cy={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},It,Zs,Wc,Py=(Wc=class{constructor(){D(this,It,Cy);D(this,Zs,!1)}setTimeoutProvider(e){_(this,It,e)}setTimeout(e,t){return y(this,It).setTimeout(e,t)}clearTimeout(e){y(this,It).clearTimeout(e)}setInterval(e,t){return y(this,It).setInterval(e,t)}clearInterval(e){y(this,It).clearInterval(e)}},It=new WeakMap,Zs=new WeakMap,Wc),mn=new Py;function Ry(e){setTimeout(e,0)}var Ln=typeof window>"u"||"Deno"in globalThis;function Pe(){}function Ny(e,t){return typeof e=="function"?e(t):e}function Is(e){return typeof e=="number"&&e>=0&&e!==1/0}function uh(e,t){return Math.max(e+(t||0)-Date.now(),0)}function en(e,t){return typeof e=="function"?e(t):e}function Ae(e,t){return typeof e=="function"?e(t):e}function mc(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:l,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Ga(o,t.options))return!1}else if(!vi(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 yc(e,t){const{exact:n,status:r,predicate:i,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(yi(t.options.mutationKey)!==yi(l))return!1}else if(!vi(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ga(e,t){return((t==null?void 0:t.queryKeyHashFn)||yi)(e)}function yi(e){return JSON.stringify(e,(t,n)=>Us(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function vi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>vi(e[n],t[n])):!1}var Ty=Object.prototype.hasOwnProperty;function ch(e,t){if(e===t)return e;const n=vc(e)&&vc(t);if(!n&&!(Us(e)&&Us(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],p=t[f];if(d===p){s[f]=d,(n?u<i:Ty.call(e,f))&&a++;continue}if(d===null||p===null||typeof d!="object"||typeof p!="object"){s[f]=p;continue}const g=ch(d,p);s[f]=g,g===d&&a++}return i===o&&a===i?e:s}function zs(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 Us(e){if(!gc(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!gc(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function gc(e){return Object.prototype.toString.call(e)==="[object Object]"}function Oy(e){return new Promise(t=>{mn.setTimeout(t,e)})}function As(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ch(e,t):t}function _y(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function My(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var qa=Symbol();function fh(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===qa?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function dh(e,t){return typeof e=="function"?e(...t):!!e}function Ly(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 yn,zt,rr,$c,Dy=($c=class extends _i{constructor(){super();D(this,yn);D(this,zt);D(this,rr);_(this,rr,t=>{if(!Ln&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,zt)||this.setEventListener(y(this,rr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,zt))==null||t.call(this),_(this,zt,void 0))}setEventListener(t){var n;_(this,rr,t),(n=y(this,zt))==null||n.call(this),_(this,zt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,yn)!==t&&(_(this,yn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,yn)=="boolean"?y(this,yn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},yn=new WeakMap,zt=new WeakMap,rr=new WeakMap,$c),Xa=new Dy;function Ws(){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 Fy=Ry;function jy(){let e=[],t=0,n=s=>{s()},r=s=>{s()},i=Fy;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 fe=jy(),ir,Ut,lr,Qc,Iy=(Qc=class extends _i{constructor(){super();D(this,ir,!0);D(this,Ut);D(this,lr);_(this,lr,t=>{if(!Ln&&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,Ut)||this.setEventListener(y(this,lr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Ut))==null||t.call(this),_(this,Ut,void 0))}setEventListener(t){var n;_(this,lr,t),(n=y(this,Ut))==null||n.call(this),_(this,Ut,t(this.setOnline.bind(this)))}setOnline(t){y(this,ir)!==t&&(_(this,ir,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,ir)}},ir=new WeakMap,Ut=new WeakMap,lr=new WeakMap,Qc),Wl=new Iy;function zy(e){return Math.min(1e3*2**e,3e4)}function hh(e){return(e??"online")==="online"?Wl.isOnline():!0}var $s=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ph(e){let t=!1,n=0,r;const i=Ws(),l=()=>i.status!=="pending",o=v=>{var k;if(!l()){const h=new $s(v);p(h),(k=e.onCancel)==null||k.call(e,h)}},s=()=>{t=!0},a=()=>{t=!1},u=()=>Xa.isFocused()&&(e.networkMode==="always"||Wl.isOnline())&&e.canRun(),f=()=>hh(e.networkMode)&&e.canRun(),d=v=>{l()||(r==null||r(),i.resolve(v))},p=v=>{l()||(r==null||r(),i.reject(v))},g=()=>new Promise(v=>{var k;r=h=>{(l()||u())&&v(h)},(k=e.onPause)==null||k.call(e)}).then(()=>{var v;r=void 0,l()||(v=e.onContinue)==null||v.call(e)}),w=()=>{if(l())return;let v;const k=n===0?e.initialPromise:void 0;try{v=k??e.fn()}catch(h){v=Promise.reject(h)}Promise.resolve(v).then(d).catch(h=>{var R;if(l())return;const c=e.retry??(Ln?0:3),m=e.retryDelay??zy,x=typeof m=="function"?m(n,h):m,C=c===!0||typeof c=="number"&&n<c||typeof c=="function"&&c(n,h);if(t||!C){p(h);return}n++,(R=e.onFail)==null||R.call(e,n,h),Oy(x).then(()=>u()?void 0:g()).then(()=>{t?p(h):w()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:s,continueRetry:a,canStart:f,start:()=>(f()?w():g().then(w),i)}}var vn,Hc,mh=(Hc=class{constructor(){D(this,vn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Is(this.gcTime)&&_(this,vn,mn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ln?1/0:5*60*1e3))}clearGcTimeout(){y(this,vn)&&(mn.clearTimeout(y(this,vn)),_(this,vn,void 0))}},vn=new WeakMap,Hc),gn,or,Ue,wn,se,xi,xn,qe,pt,Bc,Uy=(Bc=class extends mh{constructor(t){super();D(this,qe);D(this,gn);D(this,or);D(this,Ue);D(this,wn);D(this,se);D(this,xi);D(this,xn);_(this,xn,!1),_(this,xi,t.defaultOptions),this.setOptions(t.options),this.observers=[],_(this,wn,t.client),_(this,Ue,y(this,wn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,_(this,gn,xc(this.options)),this.state=t.state??y(this,gn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,se))==null?void 0:t.promise}setOptions(t){if(this.options={...y(this,xi),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=xc(this.options);n.data!==void 0&&(this.setState(wc(n.data,n.dataUpdatedAt)),_(this,gn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Ue).remove(this)}setData(t,n){const r=As(this.state.data,t,this.options);return U(this,qe,pt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){U(this,qe,pt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=y(this,se))==null?void 0:r.promise;return(i=y(this,se))==null||i.cancel(t),n?n.then(Pe).catch(Pe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,gn))}isActive(){return this.observers.some(t=>Ae(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qa||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>en(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:!uh(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,se))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,se))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,Ue).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,se)&&(y(this,xn)?y(this,se).cancel({revert:!0}):y(this,se).cancelRetry()),this.scheduleGc()),y(this,Ue).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||U(this,qe,pt).call(this,{type:"invalidate"})}async fetch(t,n){var a,u,f,d,p,g,w,v,k,h,c,m;if(this.state.fetchStatus!=="idle"&&((a=y(this,se))==null?void 0:a.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,se))return y(this,se).continueRetry(),y(this,se).promise}if(t&&this.setOptions(t),!this.options.queryFn){const x=this.observers.find(C=>C.options.queryFn);x&&this.setOptions(x.options)}const r=new AbortController,i=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(_(this,xn,!0),r.signal)})},l=()=>{const x=fh(this.options,n),R=(()=>{const T={client:y(this,wn),queryKey:this.queryKey,meta:this.meta};return i(T),T})();return _(this,xn,!1),this.options.persister?this.options.persister(x,R,this):x(R)},s=(()=>{const x={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:y(this,wn),state:this.state,fetchFn:l};return i(x),x})();(u=this.options.behavior)==null||u.onFetch(s,this),_(this,or,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&U(this,qe,pt).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta}),_(this,se,ph({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:x=>{x instanceof $s&&x.revert&&this.setState({...y(this,or),fetchStatus:"idle"}),r.abort()},onFail:(x,C)=>{U(this,qe,pt).call(this,{type:"failed",failureCount:x,error:C})},onPause:()=>{U(this,qe,pt).call(this,{type:"pause"})},onContinue:()=>{U(this,qe,pt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const x=await y(this,se).start();if(x===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(x),(g=(p=y(this,Ue).config).onSuccess)==null||g.call(p,x,this),(v=(w=y(this,Ue).config).onSettled)==null||v.call(w,x,this.state.error,this),x}catch(x){if(x instanceof $s){if(x.silent)return y(this,se).promise;if(x.revert){if(this.state.data===void 0)throw x;return this.state.data}}throw U(this,qe,pt).call(this,{type:"error",error:x}),(h=(k=y(this,Ue).config).onError)==null||h.call(k,x,this),(m=(c=y(this,Ue).config).onSettled)==null||m.call(c,this.state.data,x,this),x}finally{this.scheduleGc()}}},gn=new WeakMap,or=new WeakMap,Ue=new WeakMap,wn=new WeakMap,se=new WeakMap,xi=new WeakMap,xn=new WeakMap,qe=new WeakSet,pt=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,...yh(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...wc(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return _(this,or,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),fe.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,Ue).notify({query:this,type:"updated",action:t})})},Bc);function yh(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hh(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wc(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function xc(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 Ce,A,Si,ge,Sn,sr,vt,At,ki,ar,ur,kn,En,Wt,cr,Q,Qr,Qs,Hs,Bs,Vs,Ys,Ks,Gs,vh,Vc,Ay=(Vc=class extends _i{constructor(t,n){super();D(this,Q);D(this,Ce);D(this,A);D(this,Si);D(this,ge);D(this,Sn);D(this,sr);D(this,vt);D(this,At);D(this,ki);D(this,ar);D(this,ur);D(this,kn);D(this,En);D(this,Wt);D(this,cr,new Set);this.options=n,_(this,Ce,t),_(this,At,null),_(this,vt,Ws()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,A).addObserver(this),Sc(y(this,A),this.options)?U(this,Q,Qr).call(this):this.updateResult(),U(this,Q,Vs).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qs(y(this,A),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qs(y(this,A),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,U(this,Q,Ys).call(this),U(this,Q,Ks).call(this),y(this,A).removeObserver(this)}setOptions(t){const n=this.options,r=y(this,A);if(this.options=y(this,Ce).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ae(this.options.enabled,y(this,A))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");U(this,Q,Gs).call(this),y(this,A).setOptions(this.options),n._defaulted&&!zs(this.options,n)&&y(this,Ce).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,A),observer:this});const i=this.hasListeners();i&&kc(y(this,A),r,this.options,n)&&U(this,Q,Qr).call(this),this.updateResult(),i&&(y(this,A)!==r||Ae(this.options.enabled,y(this,A))!==Ae(n.enabled,y(this,A))||en(this.options.staleTime,y(this,A))!==en(n.staleTime,y(this,A)))&&U(this,Q,Qs).call(this);const l=U(this,Q,Hs).call(this);i&&(y(this,A)!==r||Ae(this.options.enabled,y(this,A))!==Ae(n.enabled,y(this,A))||l!==y(this,Wt))&&U(this,Q,Bs).call(this,l)}getOptimisticResult(t){const n=y(this,Ce).getQueryCache().build(y(this,Ce),t),r=this.createResult(n,t);return $y(this,r)&&(_(this,ge,r),_(this,sr,this.options),_(this,Sn,y(this,A).state)),r}getCurrentResult(){return y(this,ge)}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,vt).status==="pending"&&y(this,vt).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){y(this,cr).add(t)}getCurrentQuery(){return y(this,A)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Ce).defaultQueryOptions(t),r=y(this,Ce).getQueryCache().build(y(this,Ce),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return U(this,Q,Qr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,ge)))}createResult(t,n){var I;const r=y(this,A),i=this.options,l=y(this,ge),o=y(this,Sn),s=y(this,sr),u=t!==r?t.state:y(this,Si),{state:f}=t;let d={...f},p=!1,g;if(n._optimisticResults){const O=this.hasListeners(),$=!O&&Sc(t,n),ze=O&&kc(t,r,n,i);($||ze)&&(d={...d,...yh(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:w,errorUpdatedAt:v,status:k}=d;g=d.data;let h=!1;if(n.placeholderData!==void 0&&g===void 0&&k==="pending"){let O;l!=null&&l.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData)?(O=l.data,h=!0):O=typeof n.placeholderData=="function"?n.placeholderData((I=y(this,ur))==null?void 0:I.state.data,y(this,ur)):n.placeholderData,O!==void 0&&(k="success",g=As(l==null?void 0:l.data,O,n),p=!0)}if(n.select&&g!==void 0&&!h)if(l&&g===(o==null?void 0:o.data)&&n.select===y(this,ki))g=y(this,ar);else try{_(this,ki,n.select),g=n.select(g),g=As(l==null?void 0:l.data,g,n),_(this,ar,g),_(this,At,null)}catch(O){_(this,At,O)}y(this,At)&&(w=y(this,At),g=y(this,ar),v=Date.now(),k="error");const c=d.fetchStatus==="fetching",m=k==="pending",x=k==="error",C=m&&c,R=g!==void 0,N={status:k,fetchStatus:d.fetchStatus,isPending:m,isSuccess:k==="success",isError:x,isInitialLoading:C,isLoading:C,data:g,dataUpdatedAt:d.dataUpdatedAt,error:w,errorUpdatedAt:v,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&&!m,isLoadingError:x&&!R,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:x&&R,isStale:ba(t,n),refetch:this.refetch,promise:y(this,vt),isEnabled:Ae(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const O=it=>{N.status==="error"?it.reject(N.error):N.data!==void 0&&it.resolve(N.data)},$=()=>{const it=_(this,vt,N.promise=Ws());O(it)},ze=y(this,vt);switch(ze.status){case"pending":t.queryHash===r.queryHash&&O(ze);break;case"fulfilled":(N.status==="error"||N.data!==ze.value)&&$();break;case"rejected":(N.status!=="error"||N.error!==ze.reason)&&$();break}}return N}updateResult(){const t=y(this,ge),n=this.createResult(y(this,A),this.options);if(_(this,Sn,y(this,A).state),_(this,sr,this.options),y(this,Sn).data!==void 0&&_(this,ur,y(this,A)),zs(n,t))return;_(this,ge,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!y(this,cr).size)return!0;const o=new Set(l??y(this,cr));return this.options.throwOnError&&o.add("error"),Object.keys(y(this,ge)).some(s=>{const a=s;return y(this,ge)[a]!==t[a]&&o.has(a)})};U(this,Q,vh).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&U(this,Q,Vs).call(this)}},Ce=new WeakMap,A=new WeakMap,Si=new WeakMap,ge=new WeakMap,Sn=new WeakMap,sr=new WeakMap,vt=new WeakMap,At=new WeakMap,ki=new WeakMap,ar=new WeakMap,ur=new WeakMap,kn=new WeakMap,En=new WeakMap,Wt=new WeakMap,cr=new WeakMap,Q=new WeakSet,Qr=function(t){U(this,Q,Gs).call(this);let n=y(this,A).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pe)),n},Qs=function(){U(this,Q,Ys).call(this);const t=en(this.options.staleTime,y(this,A));if(Ln||y(this,ge).isStale||!Is(t))return;const r=uh(y(this,ge).dataUpdatedAt,t)+1;_(this,kn,mn.setTimeout(()=>{y(this,ge).isStale||this.updateResult()},r))},Hs=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,A)):this.options.refetchInterval)??!1},Bs=function(t){U(this,Q,Ks).call(this),_(this,Wt,t),!(Ln||Ae(this.options.enabled,y(this,A))===!1||!Is(y(this,Wt))||y(this,Wt)===0)&&_(this,En,mn.setInterval(()=>{(this.options.refetchIntervalInBackground||Xa.isFocused())&&U(this,Q,Qr).call(this)},y(this,Wt)))},Vs=function(){U(this,Q,Qs).call(this),U(this,Q,Bs).call(this,U(this,Q,Hs).call(this))},Ys=function(){y(this,kn)&&(mn.clearTimeout(y(this,kn)),_(this,kn,void 0))},Ks=function(){y(this,En)&&(mn.clearInterval(y(this,En)),_(this,En,void 0))},Gs=function(){const t=y(this,Ce).getQueryCache().build(y(this,Ce),this.options);if(t===y(this,A))return;const n=y(this,A);_(this,A,t),_(this,Si,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},vh=function(t){fe.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,ge))}),y(this,Ce).getQueryCache().notify({query:y(this,A),type:"observerResultsUpdated"})})},Vc);function Wy(e,t){return Ae(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Sc(e,t){return Wy(e,t)||e.state.data!==void 0&&qs(e,t,t.refetchOnMount)}function qs(e,t,n){if(Ae(t.enabled,e)!==!1&&en(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ba(e,t)}return!1}function kc(e,t,n,r){return(e!==t||Ae(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ba(e,n)}function ba(e,t){return Ae(t.enabled,e)!==!1&&e.isStaleByTime(en(t.staleTime,e))}function $y(e,t){return!zs(e.getCurrentResult(),t)}function Ec(e){return{onFetch:(t,n)=>{var f,d,p,g,w;const r=t.options,i=(p=(d=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:d.fetchMore)==null?void 0:p.direction,l=((g=t.state.data)==null?void 0:g.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let s={pages:[],pageParams:[]},a=0;const u=async()=>{let v=!1;const k=m=>{Ly(m,()=>t.signal,()=>v=!0)},h=fh(t.options,t.fetchOptions),c=async(m,x,C)=>{if(v)return Promise.reject();if(x==null&&m.pages.length)return Promise.resolve(m);const T=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:x,direction:C?"backward":"forward",meta:t.options.meta};return k($),$})(),N=await h(T),{maxPages:I}=t.options,O=C?My:_y;return{pages:O(m.pages,N,I),pageParams:O(m.pageParams,x,I)}};if(i&&l.length){const m=i==="backward",x=m?Qy:Cc,C={pages:l,pageParams:o},R=x(r,C);s=await c(C,R,m)}else{const m=e??l.length;do{const x=a===0?o[0]??r.initialPageParam:Cc(r,s);if(a>0&&x==null)break;s=await c(s,x),a++}while(a<m)}return s};t.options.persister?t.fetchFn=()=>{var v,k;return(k=(v=t.options).persister)==null?void 0:k.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Cc(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 Qy(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 Ei,st,we,Cn,at,Mt,Yc,Hy=(Yc=class extends mh{constructor(t){super();D(this,at);D(this,Ei);D(this,st);D(this,we);D(this,Cn);_(this,Ei,t.client),this.mutationId=t.mutationId,_(this,we,t.mutationCache),_(this,st,[]),this.state=t.state||By(),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,st).includes(t)||(y(this,st).push(t),this.clearGcTimeout(),y(this,we).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){_(this,st,y(this,st).filter(n=>n!==t)),this.scheduleGc(),y(this,we).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,st).length||(this.state.status==="pending"?this.scheduleGc():y(this,we).remove(this))}continue(){var t;return((t=y(this,Cn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,a,u,f,d,p,g,w,v,k,h,c,m,x,C,R,T,N,I;const n=()=>{U(this,at,Mt).call(this,{type:"continue"})},r={client:y(this,Ei),meta:this.options.meta,mutationKey:this.options.mutationKey};_(this,Cn,ph({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(O,$)=>{U(this,at,Mt).call(this,{type:"failed",failureCount:O,error:$})},onPause:()=>{U(this,at,Mt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,we).canRun(this)}));const i=this.state.status==="pending",l=!y(this,Cn).canStart();try{if(i)n();else{U(this,at,Mt).call(this,{type:"pending",variables:t,isPaused:l}),await((s=(o=y(this,we).config).onMutate)==null?void 0:s.call(o,t,this,r));const $=await((u=(a=this.options).onMutate)==null?void 0:u.call(a,t,r));$!==this.state.context&&U(this,at,Mt).call(this,{type:"pending",context:$,variables:t,isPaused:l})}const O=await y(this,Cn).start();return await((d=(f=y(this,we).config).onSuccess)==null?void 0:d.call(f,O,t,this.state.context,this,r)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,O,t,this.state.context,r)),await((v=(w=y(this,we).config).onSettled)==null?void 0:v.call(w,O,null,this.state.variables,this.state.context,this,r)),await((h=(k=this.options).onSettled)==null?void 0:h.call(k,O,null,t,this.state.context,r)),U(this,at,Mt).call(this,{type:"success",data:O}),O}catch(O){try{await((m=(c=y(this,we).config).onError)==null?void 0:m.call(c,O,t,this.state.context,this,r))}catch($){Promise.reject($)}try{await((C=(x=this.options).onError)==null?void 0:C.call(x,O,t,this.state.context,r))}catch($){Promise.reject($)}try{await((T=(R=y(this,we).config).onSettled)==null?void 0:T.call(R,void 0,O,this.state.variables,this.state.context,this,r))}catch($){Promise.reject($)}try{await((I=(N=this.options).onSettled)==null?void 0:I.call(N,void 0,O,t,this.state.context,r))}catch($){Promise.reject($)}throw U(this,at,Mt).call(this,{type:"error",error:O}),O}finally{y(this,we).runNext(this)}}},Ei=new WeakMap,st=new WeakMap,we=new WeakMap,Cn=new WeakMap,at=new WeakSet,Mt=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),fe.batch(()=>{y(this,st).forEach(r=>{r.onMutationUpdate(t)}),y(this,we).notify({mutation:this,type:"updated",action:t})})},Yc);function By(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gt,Xe,Ci,Kc,Vy=(Kc=class extends _i{constructor(t={}){super();D(this,gt);D(this,Xe);D(this,Ci);this.config=t,_(this,gt,new Set),_(this,Xe,new Map),_(this,Ci,0)}build(t,n,r){const i=new Hy({client:t,mutationCache:this,mutationId:++Ii(this,Ci)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){y(this,gt).add(t);const n=el(t);if(typeof n=="string"){const r=y(this,Xe).get(n);r?r.push(t):y(this,Xe).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(y(this,gt).delete(t)){const n=el(t);if(typeof n=="string"){const r=y(this,Xe).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,Xe).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=el(t);if(typeof n=="string"){const r=y(this,Xe).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=el(t);if(typeof n=="string"){const i=(r=y(this,Xe).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(){fe.batch(()=>{y(this,gt).forEach(t=>{this.notify({type:"removed",mutation:t})}),y(this,gt).clear(),y(this,Xe).clear()})}getAll(){return Array.from(y(this,gt))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>yc(n,r))}findAll(t={}){return this.getAll().filter(n=>yc(t,n))}notify(t){fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return fe.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pe))))}},gt=new WeakMap,Xe=new WeakMap,Ci=new WeakMap,Kc);function el(e){var t;return(t=e.options.scope)==null?void 0:t.id}var ut,Gc,Yy=(Gc=class extends _i{constructor(t={}){super();D(this,ut);this.config=t,_(this,ut,new Map)}build(t,n,r){const i=n.queryKey,l=n.queryHash??Ga(i,n);let o=this.get(l);return o||(o=new Uy({client:t,queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){y(this,ut).has(t.queryHash)||(y(this,ut).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,ut).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,ut).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){fe.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,ut).get(t)}getAll(){return[...y(this,ut).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>mc(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>mc(t,r)):n}notify(t){fe.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){fe.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){fe.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ut=new WeakMap,Gc),Z,$t,Qt,fr,dr,Ht,hr,pr,qc,Ky=(qc=class{constructor(e={}){D(this,Z);D(this,$t);D(this,Qt);D(this,fr);D(this,dr);D(this,Ht);D(this,hr);D(this,pr);_(this,Z,e.queryCache||new Yy),_(this,$t,e.mutationCache||new Vy),_(this,Qt,e.defaultOptions||{}),_(this,fr,new Map),_(this,dr,new Map),_(this,Ht,0)}mount(){Ii(this,Ht)._++,y(this,Ht)===1&&(_(this,hr,Xa.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,Z).onFocus())})),_(this,pr,Wl.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,Z).onOnline())})))}unmount(){var e,t;Ii(this,Ht)._--,y(this,Ht)===0&&((e=y(this,hr))==null||e.call(this),_(this,hr,void 0),(t=y(this,pr))==null||t.call(this),_(this,pr,void 0))}isFetching(e){return y(this,Z).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,$t).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,Z).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=y(this,Z).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(en(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(this,Z).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,Z).get(r.queryHash),l=i==null?void 0:i.state.data,o=Ny(t,l);if(o!==void 0)return y(this,Z).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return fe.batch(()=>y(this,Z).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,Z).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,Z);fe.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,Z);return fe.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=fe.batch(()=>y(this,Z).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Pe).catch(Pe)}invalidateQueries(e,t={}){return fe.batch(()=>(y(this,Z).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=fe.batch(()=>y(this,Z).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let l=i.fetch(void 0,n);return n.throwOnError||(l=l.catch(Pe)),i.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(Pe)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,Z).build(this,t);return n.isStaleByTime(en(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pe).catch(Pe)}fetchInfiniteQuery(e){return e.behavior=Ec(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pe).catch(Pe)}ensureInfiniteQueryData(e){return e.behavior=Ec(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Wl.isOnline()?y(this,$t).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,Z)}getMutationCache(){return y(this,$t)}getDefaultOptions(){return y(this,Qt)}setDefaultOptions(e){_(this,Qt,e)}setQueryDefaults(e,t){y(this,fr).set(yi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,fr).values()],n={};return t.forEach(r=>{vi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,dr).set(yi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,dr).values()],n={};return t.forEach(r=>{vi(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Qt).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ga(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===qa&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Qt).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,Z).clear(),y(this,$t).clear()}},Z=new WeakMap,$t=new WeakMap,Qt=new WeakMap,fr=new WeakMap,dr=new WeakMap,Ht=new WeakMap,hr=new WeakMap,pr=new WeakMap,qc),gh=S.createContext(void 0),Gy=e=>{const t=S.useContext(gh);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},qy=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(gh.Provider,{value:e,children:t})),wh=S.createContext(!1),Xy=()=>S.useContext(wh);wh.Provider;function by(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Jy=S.createContext(by()),Zy=()=>S.useContext(Jy),ev=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?dh(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},tv=e=>{S.useEffect(()=>{e.clearReset()},[e])},nv=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||dh(n,[e.error,r])),rv=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))}},iv=(e,t)=>e.isLoading&&e.isFetching&&!t,lv=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Pc=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function ov(e,t,n){var p,g,w,v;const r=Xy(),i=Zy(),l=Gy(),o=l.defaultQueryOptions(e);(g=(p=l.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||g.call(p,o);const s=l.getQueryCache().get(o.queryHash);o._optimisticResults=r?"isRestoring":"optimistic",rv(o),ev(o,i,s),tv(i);const a=!l.getQueryCache().get(o.queryHash),[u]=S.useState(()=>new t(l,o)),f=u.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(k=>{const h=d?u.subscribe(fe.batchCalls(k)):Pe;return u.updateResult(),h},[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),S.useEffect(()=>{u.setOptions(o)},[o,u]),lv(o,f))throw Pc(o,u,i);if(nv({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;if((v=(w=l.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||v.call(w,o,f),o.experimental_prefetchInRender&&!Ln&&iv(f,r)){const k=a?Pc(o,u,i):s==null?void 0:s.promise;k==null||k.catch(Pe).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?f:u.trackResult(f)}function xh(e,t){return ov(e,Ay)}/**
|
|
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 Rc="popstate";function sv(e={}){function t(r,i){let{pathname:l,search:o,hash:s}=r.location;return Xs("",{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:gi(i)}return uv(t,n,null,e)}function b(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function nt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function av(){return Math.random().toString(36).substring(2,10)}function Nc(e,t){return{usr:e.state,key:e.key,idx:t}}function Xs(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Pr(t):t,state:n,key:t&&t.key||r||av()}}function gi({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 Pr(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 uv(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 k=f(),h=k==null?null:k-u;u=k,a&&a({action:s,location:v.location,delta:h})}function p(k,h){s="PUSH";let c=Xs(v.location,k,h);u=f()+1;let m=Nc(c,u),x=v.createHref(c);try{o.pushState(m,"",x)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(x)}l&&a&&a({action:s,location:v.location,delta:1})}function g(k,h){s="REPLACE";let c=Xs(v.location,k,h);u=f();let m=Nc(c,u),x=v.createHref(c);o.replaceState(m,"",x),l&&a&&a({action:s,location:v.location,delta:0})}function w(k){return cv(k)}let v={get action(){return s},get location(){return e(i,o)},listen(k){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Rc,d),a=k,()=>{i.removeEventListener(Rc,d),a=null}},createHref(k){return t(i,k)},createURL:w,encodeLocation(k){let h=w(k);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:p,replace:g,go(k){return o.go(k)}};return v}function cv(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),b(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:gi(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Sh(e,t,n="/"){return fv(e,t,n,!1)}function fv(e,t,n,r){let i=typeof t=="string"?Pr(t):t,l=Nt(i.pathname||"/",n);if(l==null)return null;let o=kh(e);dv(o);let s=null;for(let a=0;s==null&&a<o.length;++a){let u=Ev(l);s=Sv(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;b(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=kt([r,f.relativePath]),p=n.concat(f);o.children&&o.children.length>0&&(b(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),kh(o.children,t,p,d,a)),!(o.path==null&&!o.index)&&t.push({path:d,score:wv(d,o.index),routesMeta:p})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,s);else for(let u of Eh(o.path))l(o,s,!0,u)}),t}function Eh(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=Eh(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 dv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var hv=/^:[\w-]+$/,pv=3,mv=2,yv=1,vv=10,gv=-2,Tc=e=>e==="*";function wv(e,t){let n=e.split("/"),r=n.length;return n.some(Tc)&&(r+=gv),t&&(r+=mv),n.filter(i=>!Tc(i)).reduce((i,l)=>i+(hv.test(l)?pv:l===""?yv:vv),r)}function xv(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 Sv(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=$l({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},f),p=a.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=$l({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},f)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:kt([l,d.pathname]),pathnameBase:Nv(kt([l,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(l=kt([l,d.pathnameBase]))}return o}function $l(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=kv(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},p)=>{if(f==="*"){let w=s[p]||"";o=l.slice(0,l.length-w.length).replace(/(.)\/+$/,"$1")}const g=s[p];return d&&!g?u[f]=void 0:u[f]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:l,pathnameBase:o,pattern:e}}function kv(e,t=!1,n=!0){nt(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 Ev(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return nt(!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 Nt(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 Ch=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Cv=e=>Ch.test(e);function Pv(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Pr(e):e,l;if(n)if(Cv(n))l=n;else{if(n.includes("//")){let o=n;n=n.replace(/\/\/+/g,"/"),nt(!1,`Pathnames cannot have embedded double slashes - normalizing ${o} -> ${n}`)}n.startsWith("/")?l=Oc(n.substring(1),"/"):l=Oc(n,t)}else l=t;return{pathname:l,search:Tv(r),hash:Ov(i)}}function Oc(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 Ao(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 Rv(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ph(e){let t=Rv(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Rh(e,t,n,r=!1){let i;typeof e=="string"?i=Pr(e):(i={...e},b(!i.pathname||!i.pathname.includes("?"),Ao("?","pathname","search",i)),b(!i.pathname||!i.pathname.includes("#"),Ao("#","pathname","hash",i)),b(!i.search||!i.search.includes("#"),Ao("#","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 p=o.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let a=Pv(i,s),u=o&&o!=="/"&&o.endsWith("/"),f=(l||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||f)&&(a.pathname+="/"),a}var kt=e=>e.join("/").replace(/\/\/+/g,"/"),Nv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Tv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ov=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,_v=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 Mv(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Lv(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Nh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Th(e,t){let n=e;if(typeof n!="string"||!Ch.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Nh)try{let l=new URL(window.location.href),o=n.startsWith("//")?new URL(l.protocol+n):new URL(n),s=Nt(o.pathname,t);o.origin===l.origin&&s!=null?n=s+o.search+o.hash:i=!0}catch{nt(!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 Oh=["POST","PUT","PATCH","DELETE"];new Set(Oh);var Dv=["GET",...Oh];new Set(Dv);var Rr=S.createContext(null);Rr.displayName="DataRouter";var lo=S.createContext(null);lo.displayName="DataRouterState";var Fv=S.createContext(!1),_h=S.createContext({isTransitioning:!1});_h.displayName="ViewTransition";var jv=S.createContext(new Map);jv.displayName="Fetchers";var Iv=S.createContext(null);Iv.displayName="Await";var Ye=S.createContext(null);Ye.displayName="Navigation";var Mi=S.createContext(null);Mi.displayName="Location";var ht=S.createContext({outlet:null,matches:[],isDataRoute:!1});ht.displayName="Route";var Ja=S.createContext(null);Ja.displayName="RouteError";var Mh="REACT_ROUTER_ERROR",zv="REDIRECT",Uv="ROUTE_ERROR_RESPONSE";function Av(e){if(e.startsWith(`${Mh}:${zv}:{`))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 Wv(e){if(e.startsWith(`${Mh}:${Uv}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new _v(t.status,t.statusText,t.data)}catch{}}function $v(e,{relative:t}={}){b(Li(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(Ye),{hash:i,pathname:l,search:o}=Di(e,{relative:t}),s=l;return n!=="/"&&(s=l==="/"?n:kt([n,l])),r.createHref({pathname:s,search:o,hash:i})}function Li(){return S.useContext(Mi)!=null}function In(){return b(Li(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Mi).location}var Lh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Dh(e){S.useContext(Ye).static||S.useLayoutEffect(e)}function Fh(){let{isDataRoute:e}=S.useContext(ht);return e?tg():Qv()}function Qv(){b(Li(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Rr),{basename:t,navigator:n}=S.useContext(Ye),{matches:r}=S.useContext(ht),{pathname:i}=In(),l=JSON.stringify(Ph(r)),o=S.useRef(!1);return Dh(()=>{o.current=!0}),S.useCallback((a,u={})=>{if(nt(o.current,Lh),!o.current)return;if(typeof a=="number"){n.go(a);return}let f=Rh(a,JSON.parse(l),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:kt([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,l,i,e])}S.createContext(null);function Hv(){let{matches:e}=S.useContext(ht),t=e[e.length-1];return t?t.params:{}}function Di(e,{relative:t}={}){let{matches:n}=S.useContext(ht),{pathname:r}=In(),i=JSON.stringify(Ph(n));return S.useMemo(()=>Rh(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function Bv(e,t){return jh(e,t)}function jh(e,t,n,r,i){var c;b(Li(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=S.useContext(Ye),{matches:o}=S.useContext(ht),s=o[o.length-1],a=s?s.params:{},u=s?s.pathname:"/",f=s?s.pathnameBase:"/",d=s&&s.route;{let m=d&&d.path||"";zh(u,!d||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${m}">) 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="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let p=In(),g;if(t){let m=typeof t=="string"?Pr(t):t;b(f==="/"||((c=m.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 "${m.pathname}" was given in the \`location\` prop.`),g=m}else g=p;let w=g.pathname||"/",v=w;if(f!=="/"){let m=f.replace(/^\//,"").split("/");v="/"+w.replace(/^\//,"").split("/").slice(m.length).join("/")}let k=Sh(e,{pathname:v});nt(d||k!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),nt(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.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=qv(k&&k.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:kt([f,l.encodeLocation?l.encodeLocation(m.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?f:kt([f,l.encodeLocation?l.encodeLocation(m.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),o,n,r,i);return t&&h?S.createElement(Mi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},h):h}function Vv(){let e=eg(),t=Mv(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=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:l},"ErrorBoundary")," or"," ",S.createElement("code",{style:l},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,o)}var Yv=S.createElement(Vv,null),Ih=class extends S.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=Wv(e.digest);n&&(e=n)}let t=e!==void 0?S.createElement(ht.Provider,{value:this.props.routeContext},S.createElement(Ja.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?S.createElement(Kv,{error:e},t):t}};Ih.contextType=Fv;var Wo=new WeakMap;function Kv({children:e,error:t}){let{basename:n}=S.useContext(Ye);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Av(t.digest);if(r){let i=Wo.get(t);if(i)throw i;let l=Th(r.location,n);if(Nh&&!Wo.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 Wo.set(t,o),o}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function Gv({routeContext:e,match:t,children:n}){let r=S.useContext(Rr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(ht.Provider,{value:e},n)}function qv(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);b(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:p,errors:g}=n,w=d.route.loader&&!p.hasOwnProperty(d.route.id)&&(!g||g[d.route.id]===void 0);if(d.route.lazy||w){s=!0,a>=0?l=l.slice(0,a+1):l=[l[0]];break}}}let u=n&&r?(f,d)=>{var p,g;r(f,{location:n.location,params:((g=(p=n.matches)==null?void 0:p[0])==null?void 0:g.params)??{},unstable_pattern:Lv(n.matches),errorInfo:d})}:void 0;return l.reduceRight((f,d,p)=>{let g,w=!1,v=null,k=null;n&&(g=o&&d.route.id?o[d.route.id]:void 0,v=d.route.errorElement||Yv,s&&(a<0&&p===0?(zh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,k=null):a===p&&(w=!0,k=d.route.hydrateFallbackElement||null)));let h=t.concat(l.slice(0,p+1)),c=()=>{let m;return g?m=v:w?m=k:d.route.Component?m=S.createElement(d.route.Component,null):d.route.element?m=d.route.element:m=f,S.createElement(Gv,{match:d,routeContext:{outlet:f,matches:h,isDataRoute:n!=null},children:m})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?S.createElement(Ih,{location:n.location,revalidation:n.revalidation,component:v,error:g,children:c(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:u}):c()},null)}function Za(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Xv(e){let t=S.useContext(Rr);return b(t,Za(e)),t}function bv(e){let t=S.useContext(lo);return b(t,Za(e)),t}function Jv(e){let t=S.useContext(ht);return b(t,Za(e)),t}function eu(e){let t=Jv(e),n=t.matches[t.matches.length-1];return b(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Zv(){return eu("useRouteId")}function eg(){var r;let e=S.useContext(Ja),t=bv("useRouteError"),n=eu("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function tg(){let{router:e}=Xv("useNavigate"),t=eu("useNavigate"),n=S.useRef(!1);return Dh(()=>{n.current=!0}),S.useCallback(async(i,l={})=>{nt(n.current,Lh),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var _c={};function zh(e,t,n){!t&&!_c[e]&&(_c[e]=!0,nt(!1,n))}S.memo(ng);function ng({routes:e,future:t,state:n,onError:r}){return jh(e,void 0,n,r,t)}function bs(e){b(!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 rg({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:l=!1,unstable_useTransitions:o}){b(!Li(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),a=S.useMemo(()=>({basename:s,navigator:i,static:l,unstable_useTransitions:o,future:{}}),[s,i,l,o]);typeof n=="string"&&(n=Pr(n));let{pathname:u="/",search:f="",hash:d="",state:p=null,key:g="default"}=n,w=S.useMemo(()=>{let v=Nt(u,s);return v==null?null:{location:{pathname:v,search:f,hash:d,state:p,key:g},navigationType:r}},[s,u,f,d,p,g,r]);return nt(w!=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.`),w==null?null:S.createElement(Ye.Provider,{value:a},S.createElement(Mi.Provider,{children:t,value:w}))}function ig({children:e,location:t}){return Bv(Js(e),t)}function Js(e,t=[]){let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let l=[...t,i];if(r.type===S.Fragment){n.push.apply(n,Js(r.props.children,l));return}b(r.type===bs,`[${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>`),b(!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=Js(r.props.children,l)),n.push(o)}),n}var pl="get",ml="application/x-www-form-urlencoded";function oo(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function lg(e){return oo(e)&&e.tagName.toLowerCase()==="button"}function og(e){return oo(e)&&e.tagName.toLowerCase()==="form"}function sg(e){return oo(e)&&e.tagName.toLowerCase()==="input"}function ag(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ug(e,t){return e.button===0&&(!t||t==="_self")&&!ag(e)}var tl=null;function cg(){if(tl===null)try{new FormData(document.createElement("form"),0),tl=!1}catch{tl=!0}return tl}var fg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $o(e){return e!=null&&!fg.has(e)?(nt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ml}"`),null):e}function dg(e,t){let n,r,i,l,o;if(og(e)){let s=e.getAttribute("action");r=s?Nt(s,t):null,n=e.getAttribute("method")||pl,i=$o(e.getAttribute("enctype"))||ml,l=new FormData(e)}else if(lg(e)||sg(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?Nt(a,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||pl,i=$o(e.getAttribute("formenctype"))||$o(s.getAttribute("enctype"))||ml,l=new FormData(s,e),!cg()){let{name:u,type:f,value:d}=e;if(f==="image"){let p=u?`${u}.`:"";l.append(`${p}x`,"0"),l.append(`${p}y`,"0")}else u&&l.append(u,d)}}else{if(oo(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=pl,r=null,i=ml,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 tu(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function hg(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&&Nt(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function pg(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 mg(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 yg(e,t,n){let r=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let o=await pg(l,n);return o.links?o.links():[]}return[]}));return xg(r.flat(1).filter(mg).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Mc(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 p=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 p=="boolean")return p}return!0}):[]}function vg(e,t,{includeHydrateFallback:n}={}){return gg(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 gg(e){return[...new Set(e)]}function wg(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function xg(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let l=JSON.stringify(wg(i));return n.has(l)||(n.add(l),r.push({key:l,link:i})),r},[])}function Uh(){let e=S.useContext(Rr);return tu(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Sg(){let e=S.useContext(lo);return tu(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var nu=S.createContext(void 0);nu.displayName="FrameworkContext";function Ah(){let e=S.useContext(nu);return tu(e,"You must render this element inside a <HydratedRouter> element"),e}function kg(e,t){let n=S.useContext(nu),[r,i]=S.useState(!1),[l,o]=S.useState(!1),{onFocus:s,onBlur:a,onMouseEnter:u,onMouseLeave:f,onTouchStart:d}=t,p=S.useRef(null);S.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let v=h=>{h.forEach(c=>{o(c.isIntersecting)})},k=new IntersectionObserver(v,{threshold:.5});return p.current&&k.observe(p.current),()=>{k.disconnect()}}},[e]),S.useEffect(()=>{if(r){let v=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(v)}}},[r]);let g=()=>{i(!0)},w=()=>{i(!1),o(!1)};return n?e!=="intent"?[l,p,{}]:[l,p,{onFocus:jr(s,g),onBlur:jr(a,w),onMouseEnter:jr(u,g),onMouseLeave:jr(f,w),onTouchStart:jr(d,g)}]:[!1,p,{}]}function jr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Eg({page:e,...t}){let{router:n}=Uh(),r=S.useMemo(()=>Sh(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(Pg,{page:e,matches:r,...t}):null}function Cg(e){let{manifest:t,routeModules:n}=Ah(),[r,i]=S.useState([]);return S.useEffect(()=>{let l=!1;return yg(e,t,n).then(o=>{l||i(o)}),()=>{l=!0}},[e,t,n]),r}function Pg({page:e,matches:t,...n}){let r=In(),{manifest:i,routeModules:l}=Ah(),{basename:o}=Uh(),{loaderData:s,matches:a}=Sg(),u=S.useMemo(()=>Mc(e,t,a,i,r,"data"),[e,t,a,i,r]),f=S.useMemo(()=>Mc(e,t,a,i,r,"assets"),[e,t,a,i,r]),d=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,v=!1;if(t.forEach(h=>{var m;let c=i.routes[h.route.id];!c||!c.hasLoader||(!u.some(x=>x.route.id===h.route.id)&&h.route.id in s&&((m=l[h.route.id])!=null&&m.shouldRevalidate)||c.hasClientLoader?v=!0:w.add(h.route.id))}),w.size===0)return[];let k=hg(e,o,"data");return v&&w.size>0&&k.searchParams.set("_routes",t.filter(h=>w.has(h.route.id)).map(h=>h.route.id).join(",")),[k.pathname+k.search]},[o,s,r,i,u,t,e,l]),p=S.useMemo(()=>vg(f,i),[f,i]),g=Cg(f);return S.createElement(S.Fragment,null,d.map(w=>S.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),p.map(w=>S.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),g.map(({key:w,link:v})=>S.createElement("link",{key:w,nonce:n.nonce,...v})))}function Rg(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Ng=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ng&&(window.__reactRouterVersion="7.11.0")}catch{}function Tg({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=S.useRef();i.current==null&&(i.current=sv({window:r,v5Compat:!0}));let l=i.current,[o,s]=S.useState({action:l.action,location:l.location}),a=S.useCallback(u=>{n===!1?s(u):S.startTransition(()=>s(u))},[n]);return S.useLayoutEffect(()=>l.listen(a),[l,a]),S.createElement(rg,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:l,unstable_useTransitions:n})}var Wh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ru=S.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:p,...g},w){let{basename:v,unstable_useTransitions:k}=S.useContext(Ye),h=typeof u=="string"&&Wh.test(u),c=Th(u,v);u=c.to;let m=$v(u,{relative:i}),[x,C,R]=kg(r,g),T=Lg(u,{replace:o,state:s,target:a,preventScrollReset:f,relative:i,viewTransition:d,unstable_defaultShouldRevalidate:p,unstable_useTransitions:k});function N(O){t&&t(O),O.defaultPrevented||T(O)}let I=S.createElement("a",{...g,...R,href:c.absoluteURL||m,onClick:c.isExternal||l?t:N,ref:Rg(w,C),target:a,"data-discover":!h&&n==="render"?"true":void 0});return x&&!h?S.createElement(S.Fragment,null,I,S.createElement(Eg,{page:m})):I});ru.displayName="Link";var Og=S.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=Di(o,{relative:u.relative}),p=In(),g=S.useContext(lo),{navigator:w,basename:v}=S.useContext(Ye),k=g!=null&&zg(d)&&s===!0,h=w.encodeLocation?w.encodeLocation(d).pathname:d.pathname,c=p.pathname,m=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;n||(c=c.toLowerCase(),m=m?m.toLowerCase():null,h=h.toLowerCase()),m&&v&&(m=Nt(m,v)||m);const x=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let C=c===h||!i&&c.startsWith(h)&&c.charAt(x)==="/",R=m!=null&&(m===h||!i&&m.startsWith(h)&&m.charAt(h.length)==="/"),T={isActive:C,isPending:R,isTransitioning:k},N=C?t:void 0,I;typeof r=="function"?I=r(T):I=[r,C?"active":null,R?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let O=typeof l=="function"?l(T):l;return S.createElement(ru,{...u,"aria-current":N,className:I,ref:f,style:O,to:o,viewTransition:s},typeof a=="function"?a(T):a)});Og.displayName="NavLink";var _g=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:l,method:o=pl,action:s,onSubmit:a,relative:u,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:p,...g},w)=>{let{unstable_useTransitions:v}=S.useContext(Ye),k=jg(),h=Ig(s,{relative:u}),c=o.toLowerCase()==="get"?"get":"post",m=typeof s=="string"&&Wh.test(s),x=C=>{if(a&&a(C),C.defaultPrevented)return;C.preventDefault();let R=C.nativeEvent.submitter,T=(R==null?void 0:R.getAttribute("formmethod"))||o,N=()=>k(R||C.currentTarget,{fetcherKey:t,method:T,navigate:n,replace:i,state:l,relative:u,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:p});v&&n!==!1?S.startTransition(()=>N()):N()};return S.createElement("form",{ref:w,method:c,action:h,onSubmit:r?a:x,...g,"data-discover":!m&&e==="render"?"true":void 0})});_g.displayName="Form";function Mg(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $h(e){let t=S.useContext(Rr);return b(t,Mg(e)),t}function Lg(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:l,viewTransition:o,unstable_defaultShouldRevalidate:s,unstable_useTransitions:a}={}){let u=Fh(),f=In(),d=Di(e,{relative:l});return S.useCallback(p=>{if(ug(p,t)){p.preventDefault();let g=n!==void 0?n:gi(f)===gi(d),w=()=>u(e,{replace:g,state:r,preventScrollReset:i,relative:l,viewTransition:o,unstable_defaultShouldRevalidate:s});a?S.startTransition(()=>w()):w()}},[f,u,d,n,r,t,e,i,l,o,s,a])}var Dg=0,Fg=()=>`__${String(++Dg)}__`;function jg(){let{router:e}=$h("useSubmit"),{basename:t}=S.useContext(Ye),n=Zv(),r=e.fetch,i=e.navigate;return S.useCallback(async(l,o={})=>{let{action:s,method:a,encType:u,formData:f,body:d}=dg(l,t);if(o.navigate===!1){let p=o.fetcherKey||Fg();await r(p,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 Ig(e,{relative:t}={}){let{basename:n}=S.useContext(Ye),r=S.useContext(ht);b(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),l={...Di(e||".",{relative:t})},o=In();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:kt([n,l.pathname])),gi(l)}function zg(e,{relative:t}={}){let n=S.useContext(_h);b(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=$h("useViewTransitionState"),i=Di(e,{relative:t});if(!n.isTransitioning)return!1;let l=Nt(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Nt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return $l(i.pathname,o)!=null||$l(i.pathname,l)!=null}function rt(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 Dn(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Qh=6048e5,Ug=864e5;let Ag={};function so(){return Ag}function wi(e,t){var s,a,u,f;const n=so(),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=rt(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 Ql(e){return wi(e,{weekStartsOn:1})}function Hh(e){const t=rt(e),n=t.getFullYear(),r=Dn(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const i=Ql(r),l=Dn(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const o=Ql(l);return t.getTime()>=i.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Lc(e){const t=rt(e);return t.setHours(0,0,0,0),t}function Dc(e){const t=rt(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 Wg(e,t){const n=Lc(e),r=Lc(t),i=+n-Dc(n),l=+r-Dc(r);return Math.round((i-l)/Ug)}function $g(e){const t=Hh(e),n=Dn(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Ql(n)}function Qg(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Hg(e){if(!Qg(e)&&typeof e!="number")return!1;const t=rt(e);return!isNaN(Number(t))}function Bg(e){const t=rt(e),n=Dn(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Vg={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"}},Yg=(e,t,n)=>{let r;const i=Vg[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 Qo(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Kg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Gg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},qg={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Xg={date:Qo({formats:Kg,defaultWidth:"full"}),time:Qo({formats:Gg,defaultWidth:"full"}),dateTime:Qo({formats:qg,defaultWidth:"full"})},bg={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Jg=(e,t,n,r)=>bg[e];function Ir(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 Zg={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},e0={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},t0={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"]},n0={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"]},r0={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"}},i0={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"}},l0=(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"},o0={ordinalNumber:l0,era:Ir({values:Zg,defaultWidth:"wide"}),quarter:Ir({values:e0,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ir({values:t0,defaultWidth:"wide"}),day:Ir({values:n0,defaultWidth:"wide"}),dayPeriod:Ir({values:r0,defaultWidth:"wide",formattingValues:i0,defaultFormattingWidth:"wide"})};function zr(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)?a0(s,d=>d.test(o)):s0(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 s0(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function a0(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function u0(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 c0=/^(\d+)(th|st|nd|rd)?/i,f0=/\d+/i,d0={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},h0={any:[/^b/i,/^(a|c)/i]},p0={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},m0={any:[/1/i,/2/i,/3/i,/4/i]},y0={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},v0={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},w0={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]},x0={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},S0={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}},k0={ordinalNumber:u0({matchPattern:c0,parsePattern:f0,valueCallback:e=>parseInt(e,10)}),era:zr({matchPatterns:d0,defaultMatchWidth:"wide",parsePatterns:h0,defaultParseWidth:"any"}),quarter:zr({matchPatterns:p0,defaultMatchWidth:"wide",parsePatterns:m0,defaultParseWidth:"any",valueCallback:e=>e+1}),month:zr({matchPatterns:y0,defaultMatchWidth:"wide",parsePatterns:v0,defaultParseWidth:"any"}),day:zr({matchPatterns:g0,defaultMatchWidth:"wide",parsePatterns:w0,defaultParseWidth:"any"}),dayPeriod:zr({matchPatterns:x0,defaultMatchWidth:"any",parsePatterns:S0,defaultParseWidth:"any"})},E0={code:"en-US",formatDistance:Yg,formatLong:Xg,formatRelative:Jg,localize:o0,match:k0,options:{weekStartsOn:0,firstWeekContainsDate:1}};function C0(e){const t=rt(e);return Wg(t,Bg(t))+1}function P0(e){const t=rt(e),n=+Ql(t)-+$g(t);return Math.round(n/Qh)+1}function Bh(e,t){var f,d,p,g;const n=rt(e),r=n.getFullYear(),i=so(),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??((g=(p=i.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)??1,o=Dn(e,0);o.setFullYear(r+1,0,l),o.setHours(0,0,0,0);const s=wi(o,t),a=Dn(e,0);a.setFullYear(r,0,l),a.setHours(0,0,0,0);const u=wi(a,t);return n.getTime()>=s.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function R0(e,t){var s,a,u,f;const n=so(),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=Bh(e,t),l=Dn(e,0);return l.setFullYear(i,0,r),l.setHours(0,0,0,0),wi(l,t)}function N0(e,t){const n=rt(e),r=+wi(n,t)-+R0(n,t);return Math.round(r/Qh)+1}function H(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const _t={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return H(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):H(n+1,2)},d(e,t){return H(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 H(e.getHours()%12||12,t.length)},H(e,t){return H(e.getHours(),t.length)},m(e,t){return H(e.getMinutes(),t.length)},s(e,t){return H(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return H(i,t.length)}},Un={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Fc={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 _t.y(e,t)},Y:function(e,t,n,r){const i=Bh(e,r),l=i>0?i:1-i;if(t==="YY"){const o=l%100;return H(o,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):H(l,t.length)},R:function(e,t){const n=Hh(e);return H(n,t.length)},u:function(e,t){const n=e.getFullYear();return H(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 H(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 H(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 _t.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 H(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=N0(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):H(i,t.length)},I:function(e,t,n){const r=P0(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):H(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):_t.d(e,t)},D:function(e,t,n){const r=C0(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):H(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 H(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 H(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 H(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=Un.noon:r===0?i=Un.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=Un.evening:r>=12?i=Un.afternoon:r>=4?i=Un.morning:i=Un.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 _t.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):_t.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):H(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):H(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):_t.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):_t.s(e,t)},S:function(e,t){return _t.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ic(r);case"XXXX":case"XX":return fn(r);case"XXXXX":case"XXX":default:return fn(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ic(r);case"xxxx":case"xx":return fn(r);case"xxxxx":case"xxx":default:return fn(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+jc(r,":");case"OOOO":default:return"GMT"+fn(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+jc(r,":");case"zzzz":default:return"GMT"+fn(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return H(r,t.length)},T:function(e,t,n){const r=e.getTime();return H(r,t.length)}};function jc(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+H(l,2)}function Ic(e,t){return e%60===0?(e>0?"-":"+")+H(Math.abs(e)/60,2):fn(e,t)}function fn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=H(Math.trunc(r/60),2),l=H(r%60,2);return n+i+t+l}const zc=(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"})}},Vh=(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"})}},T0=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return zc(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}}",zc(r,t)).replace("{{time}}",Vh(i,t))},O0={p:Vh,P:T0},_0=/^D+$/,M0=/^Y+$/,L0=["D","DD","YY","YYYY"];function D0(e){return _0.test(e)}function F0(e){return M0.test(e)}function j0(e,t,n){const r=I0(e,t,n);if(console.warn(r),L0.includes(e))throw new RangeError(r)}function I0(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 z0=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,U0=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A0=/^'([^]*?)'?$/,W0=/''/g,$0=/[a-zA-Z]/;function Jr(e,t,n){var f,d,p,g;const r=so(),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??((g=(p=r.locale)==null?void 0:p.options)==null?void 0:g.weekStartsOn)??0,s=rt(e);if(!Hg(s))throw new RangeError("Invalid time value");let a=t.match(U0).map(w=>{const v=w[0];if(v==="p"||v==="P"){const k=O0[v];return k(w,i.formatLong)}return w}).join("").match(z0).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const v=w[0];if(v==="'")return{isToken:!1,value:Q0(w)};if(Fc[v])return{isToken:!0,value:w};if(v.match($0))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:w}});i.localize.preprocessor&&(a=i.localize.preprocessor(s,a));const u={firstWeekContainsDate:l,weekStartsOn:o,locale:i};return a.map(w=>{if(!w.isToken)return w.value;const v=w.value;(F0(v)||D0(v))&&j0(v,t,String(e));const k=Fc[v[0]];return k(s,v,i.localize,u)}).join("")}function Q0(e){const t=e.match(A0);return t?t[1].replace(W0,"'"):e}function H0({displayName:e,sessionCount:t,lastActivity:n,sessions:r,selectedId:i,onSelectSession:l,initialExpanded:o=!1}){const[s,a]=S.useState(o);return S.useEffect(()=>{i&&r.some(f=>{var d;return f.id===i||((d=f.agentSessions)==null?void 0:d.some(p=>p.id===i))})&&a(!0)},[i,r]),E.jsxs("div",{className:"border-b border-gray-700",children:[E.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:E.jsxs("div",{className:"flex-1 min-w-0",children:[E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("svg",{className:`w-4 h-4 transition-transform ${s?"rotate-90":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})}),E.jsx("span",{className:"font-semibold text-sm truncate",children:e})]}),E.jsxs("div",{className:"text-xs text-gray-400 mt-1 ml-6",children:[t," session",t!==1?"s":""," · Last activity"," ",Jr(new Date(n),"PPp")]})]})}),s&&E.jsx("div",{className:"bg-gray-900/50",children:r.map(u=>E.jsxs("div",{children:[E.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&&E.jsx("div",{className:"text-sm font-medium text-gray-200 mb-1 truncate",children:u.title}),E.jsx("div",{className:"text-xs text-gray-400",children:Jr(new Date(u.timestamp),"PPpp")}),E.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[u.messageCount," message",u.messageCount!==1?"s":"",u.agentSessions&&u.agentSessions.length>0&&E.jsxs("span",{className:"ml-2",children:["· ",u.agentSessions.length," task",u.agentSessions.length!==1?"s":""]})]})]}),u.agentSessions&&u.agentSessions.length>0&&E.jsx("div",{className:"bg-gray-900/70",children:u.agentSessions.map(f=>E.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:[E.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[E.jsx("span",{className:"px-1.5 py-0.5 text-xs bg-purple-900/50 text-purple-300 rounded",children:"TASK"}),f.title&&E.jsx("span",{className:"text-sm font-medium text-gray-300 truncate",children:f.title})]}),E.jsx("div",{className:"text-xs text-gray-400",children:Jr(new Date(f.timestamp),"PPpp")}),E.jsxs("div",{className:"text-xs text-gray-500 mt-1",children:[f.messageCount," message",f.messageCount!==1?"s":""]})]},f.id))})]},u.id))})]})}function B0({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 E.jsx("div",{children:e.map(i=>E.jsx(H0,{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 V0({messages:e,activeId:t,onNavigate:n}){const[r,i]=S.useState([]),l=S.useRef(null),o=S.useRef(null),s=S.useRef(!1);S.useEffect(()=>{const u=e.map((f,d)=>{var v;const p=`message-${d}`;let g="";const w=[];if((v=f.message)!=null&&v.content&&Array.isArray(f.message.content)){const k=f.message.content.find(h=>h.type==="text");k&&(g=k.text.slice(0,50)+(k.text.length>50?"...":"")),f.message.content.forEach(h=>{h.type==="tool_use"?w.push({name:h.name,type:"tool_use"}):h.type==="tool_result"&&w.push({name:"Tool Result",type:"tool_result"})})}return{id:p,type:f.type||"system",text:g,toolUses:w,timestamp:f.timestamp}});i(u)},[e]),S.useEffect(()=>{if(!s.current&&l.current&&o.current){const u=o.current,f=l.current,d=u.getBoundingClientRect(),p=f.getBoundingClientRect();(p.top<d.top||p.bottom>d.bottom)&&f.scrollIntoView({behavior:"smooth",block:"center"})}},[t]);const a=u=>{s.current=!0,n(u),setTimeout(()=>{s.current=!1},1500)};return E.jsxs("div",{ref:o,className:"w-full border-l border-gray-700 bg-gray-800 overflow-y-auto h-full",children:[E.jsxs("div",{className:"p-4 border-b border-gray-700 sticky top-0 bg-gray-800 z-10",children:[E.jsx("h3",{className:"text-sm font-semibold text-gray-300",children:"Table of Contents"}),E.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:[r.length," messages"]})]}),E.jsx("nav",{className:"p-2",children:r.map((u,f)=>E.jsx("div",{className:"mb-1",children:E.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:[E.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[E.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}),E.jsxs("span",{className:"text-gray-500",children:["#",f+1]})]}),u.text&&E.jsx("div",{className:"text-gray-300 line-clamp-2 leading-tight",children:u.text}),u.toolUses.length>0&&E.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:u.toolUses.map((d,p)=>E.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]},p))})]})},u.id))})]})}const Yh=256,Kh=640,Y0=Kh+Yh;function K0({sessionId:e}){var g;const[t,n]=S.useState(null),[r,i]=S.useState(!0),l=S.useRef(new Map),o=S.useRef(!1),s=S.useRef(null),{data:a,isLoading:u,error:f}=xh({queryKey:["session",e],queryFn:async()=>{const w=await fetch(`/api/sessions/${e}`);if(!w.ok)throw new Error("Failed to fetch session");return w.json()}});S.useEffect(()=>{if(!s.current)return;const w=new ResizeObserver(v=>{for(const k of v){const h=k.contentRect.width;i(h>=Y0)}});return w.observe(s.current),()=>{w.disconnect()}},[]),S.useEffect(()=>{var v;if(!((v=a==null?void 0:a.session)!=null&&v.messages))return;const w=new IntersectionObserver(k=>{o.current||k.forEach(h=>{if(h.isIntersecting){const c=h.target.getAttribute("data-message-id");c&&n(c)}})},{rootMargin:"-50% 0px -50% 0px",threshold:0});return l.current.forEach(k=>{w.observe(k)}),()=>{w.disconnect()}},[(g=a==null?void 0:a.session)==null?void 0:g.messages]);const d=w=>{n(w),o.current=!0;const v=l.current.get(w);v&&v.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>{o.current=!1},1500)};if(u)return E.jsx("div",{className:"flex items-center justify-center h-full",children:E.jsx("div",{className:"text-gray-400",children:"Loading session..."})});if(f)return E.jsx("div",{className:"flex items-center justify-center h-full",children:E.jsxs("div",{className:"text-red-400",children:["Error: ",f.message]})});const p=a==null?void 0:a.session;return E.jsxs("div",{ref:s,className:"h-full flex",children:[E.jsxs("div",{className:"flex-1 flex flex-col",style:{minWidth:`${Kh}px`},children:[E.jsxs("div",{className:"border-b border-gray-700 p-6 bg-gray-800",children:[E.jsxs("div",{className:"flex items-center gap-2",children:[(p==null?void 0:p.isAgent)&&E.jsx("span",{className:"px-2 py-1 text-xs bg-purple-900/50 text-purple-300 rounded font-semibold",children:"TASK"}),E.jsx("h2",{className:"text-2xl font-bold truncate flex-1",children:(p==null?void 0:p.title)||"Untitled Session"})]}),E.jsx("div",{className:"text-xl text-gray-300",children:p==null?void 0:p.project}),E.jsxs("div",{className:"flex items-center gap-3 mt-4 text-sm text-gray-400",children:[E.jsx("span",{children:(p==null?void 0:p.timestamp)&&Jr(new Date(p.timestamp),"PPpp")}),E.jsx("span",{children:"•"}),E.jsxs("span",{children:[(p==null?void 0:p.messageCount)||0," message",(p==null?void 0:p.messageCount)!==1?"s":""]}),(p==null?void 0:p.agentSessions)&&p.agentSessions.length>0&&E.jsxs(E.Fragment,{children:[E.jsx("span",{children:"•"}),E.jsxs("span",{children:[p.agentSessions.length," task",p.agentSessions.length!==1?"s":""]})]})]})]}),E.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:E.jsx("div",{className:"max-w-4xl mx-auto space-y-6",children:p==null?void 0:p.messages.map((w,v)=>{var h;const k=`message-${v}`;return E.jsxs("div",{ref:c=>{c?l.current.set(k,c):l.current.delete(k)},"data-message-id":k,className:"border-l-2 border-gray-700 pl-4",children:[E.jsx("div",{className:"flex items-start justify-between mb-2",children:E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("span",{className:`px-2 py-1 text-xs rounded ${w.type==="user"?"bg-blue-900 text-blue-200":w.type==="assistant"?"bg-green-900 text-green-200":"bg-gray-700 text-gray-300"}`,children:w.type||"system"}),E.jsxs("span",{className:"text-xs text-gray-500 font-mono",children:["#",v+1]}),w.timestamp&&E.jsx("span",{className:"text-xs text-gray-500",children:Jr(new Date(w.timestamp),"HH:mm:ss")})]})}),E.jsx("div",{className:"bg-gray-800 rounded-lg p-4 text-sm",children:(h=w.message)!=null&&h.content&&Array.isArray(w.message.content)?E.jsx("div",{className:"space-y-2",children:w.message.content.map((c,m)=>E.jsxs("div",{children:[c.type==="text"&&E.jsx("p",{className:"whitespace-pre-wrap",children:c.text}),c.type==="tool_use"&&E.jsxs("div",{className:"bg-gray-900 p-3 rounded border border-gray-700",children:[E.jsxs("div",{className:"flex items-center justify-between mb-2",children:[E.jsxs("div",{className:"text-yellow-400 font-mono text-xs",children:["🔧 ",c.name]}),c.name==="Task"&&c.agentId&&E.jsx(ru,{to:`/sessions/agent-${c.agentId}`,className:"px-2 py-1 text-xs bg-purple-700 hover:bg-purple-600 text-purple-100 rounded transition-colors",children:"View Task →"})]}),E.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:JSON.stringify(c.input,null,2)})]}),c.type==="tool_result"&&E.jsxs("div",{className:"bg-gray-900 p-3 rounded border border-gray-700",children:[E.jsx("div",{className:"text-green-400 font-mono text-xs mb-2",children:"✓ Tool Result"}),E.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:typeof c.content=="string"?c.content:JSON.stringify(c.content,null,2)})]})]},m))}):E.jsx("pre",{className:"text-xs overflow-x-auto text-gray-400",children:JSON.stringify(w,null,2)})})]},v)})})})]}),r&&(p==null?void 0:p.messages)&&p.messages.length>0&&E.jsx("div",{style:{width:`${Yh}px`,flexShrink:0},children:E.jsx(V0,{messages:p.messages,activeId:t,onNavigate:d})})]})}const Gh=new Ky,Uc="claude-session-viewer-sidebar-width",G0=320,q0=200,X0=600;function Ac(){const e=Fh(),n=Hv().sessionId||null,[r,i]=S.useState(()=>{const g=localStorage.getItem(Uc);return g?parseInt(g,10):G0}),[l,o]=S.useState(!1),s=S.useRef(null),{data:a,isLoading:u,error:f,refetch:d}=xh({queryKey:["sessions"],queryFn:async()=>{const g=await fetch("/api/sessions");if(!g.ok)throw new Error("Failed to fetch sessions");return g.json()}}),p=g=>{e(`/sessions/${g}`)};return S.useEffect(()=>{const g=v=>{if(!l)return;const k=v.clientX;k>=q0&&k<=X0&&(i(k),localStorage.setItem(Uc,k.toString()))},w=()=>{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",g),document.addEventListener("mouseup",w)),()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",w)}},[l]),S.useEffect(()=>{const w=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;let v=null,k=!1,h=null,c=0,m=!0;const x=()=>{v=new WebSocket(w),k=!1,v.onopen=()=>{if(k){v==null||v.close();return}c=0},v.onmessage=C=>{const R=JSON.parse(C.data);(R.type==="file-added"||R.type==="file-changed"||R.type==="file-deleted")&&(d(),n&&Gh.invalidateQueries({queryKey:["session",n]}))},v.onerror=C=>{console.error("WebSocket error:",C)},v.onclose=()=>{if(!m)return;const C=Math.min(1e3*2**c,1e4);c+=1,h=setTimeout(x,C)}};return x(),()=>{m=!1,h&&clearTimeout(h),v&&v.readyState===WebSocket.CONNECTING?k=!0:v==null||v.close()}},[d,n]),E.jsxs("div",{className:"flex h-screen bg-gray-900 text-white",children:[E.jsxs("div",{className:"relative",style:{width:`${r}px`},children:[E.jsxs("div",{ref:s,className:"border-r border-gray-700 overflow-y-auto h-full",children:[E.jsxs("div",{className:"p-4 border-b border-gray-700",children:[E.jsx("h1",{className:"text-xl font-bold",children:"Claude Sessions"}),E.jsx("p",{className:"text-sm text-gray-400 mt-1",children:u?"Loading...":`${(a==null?void 0:a.projects.length)||0} project${(a==null?void 0:a.projects.length)!==1?"s":""}`})]}),f?E.jsxs("div",{className:"p-4 text-red-400 text-sm",children:["Error loading sessions: ",f.message]}):E.jsx(B0,{projects:(a==null?void 0:a.projects)||[],selectedId:n,onSelect:p})]}),E.jsx("div",{className:"absolute top-0 right-0 w-4 h-full cursor-col-resize group z-10",onMouseDown:g=>{g.preventDefault(),o(!0)},style:{touchAction:"none"},children:E.jsx("div",{className:`w-1 h-full ml-auto transition-colors ${l?"bg-blue-500":"bg-transparent group-hover:bg-blue-500"}`})})]}),E.jsx("div",{className:"flex-1 overflow-y-auto",children:n?E.jsx(K0,{sessionId:n}):E.jsx("div",{className:"flex items-center justify-center h-full text-gray-500",children:E.jsxs("div",{className:"text-center",children:[E.jsx("svg",{className:"mx-auto h-12 w-12 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:E.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"})}),E.jsx("h3",{className:"mt-2 text-sm font-medium",children:"No session selected"}),E.jsx("p",{className:"mt-1 text-sm text-gray-600",children:"Select a session from the sidebar to view details"})]})})})]})}function b0(){return E.jsx(qy,{client:Gh,children:E.jsx(Tg,{children:E.jsxs(ig,{children:[E.jsx(bs,{path:"/",element:E.jsx(Ac,{})}),E.jsx(bs,{path:"/sessions/:sessionId",element:E.jsx(Ac,{})})]})})})}Ho.createRoot(document.getElementById("root")).render(E.jsx(dp.StrictMode,{children:E.jsx(b0,{})}));
|