@coralai/sps-cli 0.45.5 → 0.46.0
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/commands/agentCommand.js +37 -44
- package/dist/commands/agentCommand.js.map +1 -1
- package/dist/console-assets/assets/index-BFHOcAY5.css +10 -0
- package/dist/console-assets/assets/index-BlpNynZd.js +290 -0
- package/dist/console-assets/index.html +2 -2
- package/dist/console-server/routes/chat.d.ts +18 -8
- package/dist/console-server/routes/chat.d.ts.map +1 -1
- package/dist/console-server/routes/chat.js +153 -179
- package/dist/console-server/routes/chat.js.map +1 -1
- package/dist/daemon/daemonClient.d.ts +25 -2
- package/dist/daemon/daemonClient.d.ts.map +1 -1
- package/dist/daemon/daemonClient.js +95 -4
- package/dist/daemon/daemonClient.js.map +1 -1
- package/dist/daemon/sessionDaemon.d.ts +35 -5
- package/dist/daemon/sessionDaemon.d.ts.map +1 -1
- package/dist/daemon/sessionDaemon.js +34 -2
- package/dist/daemon/sessionDaemon.js.map +1 -1
- package/dist/interfaces/ACPClient.d.ts +8 -0
- package/dist/interfaces/ACPClient.d.ts.map +1 -1
- package/dist/interfaces/AgentRuntime.d.ts +6 -1
- package/dist/interfaces/AgentRuntime.d.ts.map +1 -1
- package/dist/providers/ACPWorkerRuntime.d.ts +1 -0
- package/dist/providers/ACPWorkerRuntime.d.ts.map +1 -1
- package/dist/providers/ACPWorkerRuntime.js +5 -0
- package/dist/providers/ACPWorkerRuntime.js.map +1 -1
- package/dist/providers/LocalACPClient.d.ts +2 -1
- package/dist/providers/LocalACPClient.d.ts.map +1 -1
- package/dist/providers/LocalACPClient.js +3 -0
- package/dist/providers/LocalACPClient.js.map +1 -1
- package/dist/providers/adapters/AcpSdkAdapter.d.ts +1 -0
- package/dist/providers/adapters/AcpSdkAdapter.d.ts.map +1 -1
- package/dist/providers/adapters/AcpSdkAdapter.js +10 -3
- package/dist/providers/adapters/AcpSdkAdapter.js.map +1 -1
- package/dist/providers/adapters/acp-session-accumulator.d.ts +32 -0
- package/dist/providers/adapters/acp-session-accumulator.d.ts.map +1 -1
- package/dist/providers/adapters/acp-session-accumulator.js +26 -0
- package/dist/providers/adapters/acp-session-accumulator.js.map +1 -1
- package/package.json +1 -1
- package/dist/console-assets/assets/index-B6Y-FdZn.js +0 -236
- package/dist/console-assets/assets/index-BGs71Um2.css +0 -1
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
var Pg=Object.defineProperty;var $m=n=>{throw TypeError(n)};var Ig=(n,i,r)=>i in n?Pg(n,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[i]=r;var Fm=(n,i,r)=>Ig(n,typeof i!="symbol"?i+"":i,r),Ic=(n,i,r)=>i.has(n)||$m("Cannot "+r);var E=(n,i,r)=>(Ic(n,i,"read from private field"),r?r.call(n):i.get(n)),ie=(n,i,r)=>i.has(n)?$m("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(n):i.set(n,r),F=(n,i,r,c)=>(Ic(n,i,"write to private field"),c?c.call(n,r):i.set(n,r),r),ve=(n,i,r)=>(Ic(n,i,"access private method"),r);var xs=(n,i,r,c)=>({set _(d){F(n,i,d,r)},get _(){return E(n,i,c)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const v of h.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&c(v)}).observe(document,{childList:!0,subtree:!0});function r(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(d){if(d.ep)return;d.ep=!0;const h=r(d);fetch(d.href,h)}})();var eo={exports:{}},ki={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and 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 Wm;function e0(){if(Wm)return ki;Wm=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(c,d,h){var v=null;if(h!==void 0&&(v=""+h),d.key!==void 0&&(v=""+d.key),"key"in d){h={};for(var g in d)g!=="key"&&(h[g]=d[g])}else h=d;return d=h.ref,{$$typeof:n,type:c,key:v,ref:d!==void 0?d:null,props:h}}return ki.Fragment=i,ki.jsx=r,ki.jsxs=r,ki}var Pm;function t0(){return Pm||(Pm=1,eo.exports=e0()),eo.exports}var f=t0(),to={exports:{}},se={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and 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 Im;function a0(){if(Im)return se;Im=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),w=Symbol.iterator;function O(N){return N===null||typeof N!="object"?null:(N=w&&N[w]||N["@@iterator"],typeof N=="function"?N:null)}var Q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,H={};function D(N,B,$){this.props=N,this.context=B,this.refs=H,this.updater=$||Q}D.prototype.isReactComponent={},D.prototype.setState=function(N,B){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,B,"setState")},D.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function K(){}K.prototype=D.prototype;function G(N,B,$){this.props=N,this.context=B,this.refs=H,this.updater=$||Q}var X=G.prototype=new K;X.constructor=G,_(X,D.prototype),X.isPureReactComponent=!0;var V=Array.isArray;function le(){}var Y={H:null,A:null,T:null,S:null},Z=Object.prototype.hasOwnProperty;function W(N,B,$){var ee=$.ref;return{$$typeof:n,type:N,key:B,ref:ee!==void 0?ee:null,props:$}}function I(N,B){return W(N.type,B,N.props)}function ke(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function qe(N){var B={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function($){return B[$]})}var Be=/\/+/g;function tt(N,B){return typeof N=="object"&&N!==null&&N.key!=null?qe(""+N.key):B.toString(36)}function Oe(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(le,le):(N.status="pending",N.then(function(B){N.status==="pending"&&(N.status="fulfilled",N.value=B)},function(B){N.status==="pending"&&(N.status="rejected",N.reason=B)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function q(N,B,$,ee,re){var fe=typeof N;(fe==="undefined"||fe==="boolean")&&(N=null);var je=!1;if(N===null)je=!0;else switch(fe){case"bigint":case"string":case"number":je=!0;break;case"object":switch(N.$$typeof){case n:case i:je=!0;break;case T:return je=N._init,q(je(N._payload),B,$,ee,re)}}if(je)return re=re(N),je=ee===""?"."+tt(N,0):ee,V(re)?($="",je!=null&&($=je.replace(Be,"$&/")+"/"),q(re,B,$,"",function(Zn){return Zn})):re!=null&&(ke(re)&&(re=I(re,$+(re.key==null||N&&N.key===re.key?"":(""+re.key).replace(Be,"$&/")+"/")+je)),B.push(re)),1;je=0;var ft=ee===""?".":ee+":";if(V(N))for(var Xe=0;Xe<N.length;Xe++)ee=N[Xe],fe=ft+tt(ee,Xe),je+=q(ee,B,$,fe,re);else if(Xe=O(N),typeof Xe=="function")for(N=Xe.call(N),Xe=0;!(ee=N.next()).done;)ee=ee.value,fe=ft+tt(ee,Xe++),je+=q(ee,B,$,fe,re);else if(fe==="object"){if(typeof N.then=="function")return q(Oe(N),B,$,ee,re);throw B=String(N),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return je}function J(N,B,$){if(N==null)return N;var ee=[],re=0;return q(N,ee,"","",function(fe){return B.call($,fe,re++)}),ee}function ue(N){if(N._status===-1){var B=N._result;B=B(),B.then(function($){(N._status===0||N._status===-1)&&(N._status=1,N._result=$)},function($){(N._status===0||N._status===-1)&&(N._status=2,N._result=$)}),N._status===-1&&(N._status=0,N._result=B)}if(N._status===1)return N._result.default;throw N._result}var Re=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},we={map:J,forEach:function(N,B,$){J(N,function(){B.apply(this,arguments)},$)},count:function(N){var B=0;return J(N,function(){B++}),B},toArray:function(N){return J(N,function(B){return B})||[]},only:function(N){if(!ke(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return se.Activity=S,se.Children=we,se.Component=D,se.Fragment=r,se.Profiler=d,se.PureComponent=G,se.StrictMode=c,se.Suspense=p,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,se.__COMPILER_RUNTIME={__proto__:null,c:function(N){return Y.H.useMemoCache(N)}},se.cache=function(N){return function(){return N.apply(null,arguments)}},se.cacheSignal=function(){return null},se.cloneElement=function(N,B,$){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ee=_({},N.props),re=N.key;if(B!=null)for(fe in B.key!==void 0&&(re=""+B.key),B)!Z.call(B,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&B.ref===void 0||(ee[fe]=B[fe]);var fe=arguments.length-2;if(fe===1)ee.children=$;else if(1<fe){for(var je=Array(fe),ft=0;ft<fe;ft++)je[ft]=arguments[ft+2];ee.children=je}return W(N.type,re,ee)},se.createContext=function(N){return N={$$typeof:v,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:h,_context:N},N},se.createElement=function(N,B,$){var ee,re={},fe=null;if(B!=null)for(ee in B.key!==void 0&&(fe=""+B.key),B)Z.call(B,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(re[ee]=B[ee]);var je=arguments.length-2;if(je===1)re.children=$;else if(1<je){for(var ft=Array(je),Xe=0;Xe<je;Xe++)ft[Xe]=arguments[Xe+2];re.children=ft}if(N&&N.defaultProps)for(ee in je=N.defaultProps,je)re[ee]===void 0&&(re[ee]=je[ee]);return W(N,fe,re)},se.createRef=function(){return{current:null}},se.forwardRef=function(N){return{$$typeof:g,render:N}},se.isValidElement=ke,se.lazy=function(N){return{$$typeof:T,_payload:{_status:-1,_result:N},_init:ue}},se.memo=function(N,B){return{$$typeof:y,type:N,compare:B===void 0?null:B}},se.startTransition=function(N){var B=Y.T,$={};Y.T=$;try{var ee=N(),re=Y.S;re!==null&&re($,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(le,Re)}catch(fe){Re(fe)}finally{B!==null&&$.types!==null&&(B.types=$.types),Y.T=B}},se.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},se.use=function(N){return Y.H.use(N)},se.useActionState=function(N,B,$){return Y.H.useActionState(N,B,$)},se.useCallback=function(N,B){return Y.H.useCallback(N,B)},se.useContext=function(N){return Y.H.useContext(N)},se.useDebugValue=function(){},se.useDeferredValue=function(N,B){return Y.H.useDeferredValue(N,B)},se.useEffect=function(N,B){return Y.H.useEffect(N,B)},se.useEffectEvent=function(N){return Y.H.useEffectEvent(N)},se.useId=function(){return Y.H.useId()},se.useImperativeHandle=function(N,B,$){return Y.H.useImperativeHandle(N,B,$)},se.useInsertionEffect=function(N,B){return Y.H.useInsertionEffect(N,B)},se.useLayoutEffect=function(N,B){return Y.H.useLayoutEffect(N,B)},se.useMemo=function(N,B){return Y.H.useMemo(N,B)},se.useOptimistic=function(N,B){return Y.H.useOptimistic(N,B)},se.useReducer=function(N,B,$){return Y.H.useReducer(N,B,$)},se.useRef=function(N){return Y.H.useRef(N)},se.useState=function(N){return Y.H.useState(N)},se.useSyncExternalStore=function(N,B,$){return Y.H.useSyncExternalStore(N,B,$)},se.useTransition=function(){return Y.H.useTransition()},se.version="19.2.5",se}var ey;function Ao(){return ey||(ey=1,to.exports=a0()),to.exports}var j=Ao(),ao={exports:{}},Bi={},lo={exports:{}},no={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and 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
|
-
*/var ty;function l0(){return ty||(ty=1,(function(n){function i(q,J){var ue=q.length;q.push(J);e:for(;0<ue;){var Re=ue-1>>>1,we=q[Re];if(0<d(we,J))q[Re]=J,q[ue]=we,ue=Re;else break e}}function r(q){return q.length===0?null:q[0]}function c(q){if(q.length===0)return null;var J=q[0],ue=q.pop();if(ue!==J){q[0]=ue;e:for(var Re=0,we=q.length,N=we>>>1;Re<N;){var B=2*(Re+1)-1,$=q[B],ee=B+1,re=q[ee];if(0>d($,ue))ee<we&&0>d(re,$)?(q[Re]=re,q[ee]=ue,Re=ee):(q[Re]=$,q[B]=ue,Re=B);else if(ee<we&&0>d(re,ue))q[Re]=re,q[ee]=ue,Re=ee;else break e}}return J}function d(q,J){var ue=q.sortIndex-J.sortIndex;return ue!==0?ue:q.id-J.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;n.unstable_now=function(){return h.now()}}else{var v=Date,g=v.now();n.unstable_now=function(){return v.now()-g}}var p=[],y=[],T=1,S=null,w=3,O=!1,Q=!1,_=!1,H=!1,D=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function X(q){for(var J=r(y);J!==null;){if(J.callback===null)c(y);else if(J.startTime<=q)c(y),J.sortIndex=J.expirationTime,i(p,J);else break;J=r(y)}}function V(q){if(_=!1,X(q),!Q)if(r(p)!==null)Q=!0,le||(le=!0,qe());else{var J=r(y);J!==null&&Oe(V,J.startTime-q)}}var le=!1,Y=-1,Z=5,W=-1;function I(){return H?!0:!(n.unstable_now()-W<Z)}function ke(){if(H=!1,le){var q=n.unstable_now();W=q;var J=!0;try{e:{Q=!1,_&&(_=!1,K(Y),Y=-1),O=!0;var ue=w;try{t:{for(X(q),S=r(p);S!==null&&!(S.expirationTime>q&&I());){var Re=S.callback;if(typeof Re=="function"){S.callback=null,w=S.priorityLevel;var we=Re(S.expirationTime<=q);if(q=n.unstable_now(),typeof we=="function"){S.callback=we,X(q),J=!0;break t}S===r(p)&&c(p),X(q)}else c(p);S=r(p)}if(S!==null)J=!0;else{var N=r(y);N!==null&&Oe(V,N.startTime-q),J=!1}}break e}finally{S=null,w=ue,O=!1}J=void 0}}finally{J?qe():le=!1}}}var qe;if(typeof G=="function")qe=function(){G(ke)};else if(typeof MessageChannel<"u"){var Be=new MessageChannel,tt=Be.port2;Be.port1.onmessage=ke,qe=function(){tt.postMessage(null)}}else qe=function(){D(ke,0)};function Oe(q,J){Y=D(function(){q(n.unstable_now())},J)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(q){q.callback=null},n.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<q?Math.floor(1e3/q):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(q){switch(w){case 1:case 2:case 3:var J=3;break;default:J=w}var ue=w;w=J;try{return q()}finally{w=ue}},n.unstable_requestPaint=function(){H=!0},n.unstable_runWithPriority=function(q,J){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ue=w;w=q;try{return J()}finally{w=ue}},n.unstable_scheduleCallback=function(q,J,ue){var Re=n.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?Re+ue:Re):ue=Re,q){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=ue+we,q={id:T++,callback:J,priorityLevel:q,startTime:ue,expirationTime:we,sortIndex:-1},ue>Re?(q.sortIndex=ue,i(y,q),r(p)===null&&q===r(y)&&(_?(K(Y),Y=-1):_=!0,Oe(V,ue-Re))):(q.sortIndex=we,i(p,q),Q||O||(Q=!0,le||(le=!0,qe()))),q},n.unstable_shouldYield=I,n.unstable_wrapCallback=function(q){var J=w;return function(){var ue=w;w=J;try{return q.apply(this,arguments)}finally{w=ue}}}})(no)),no}var ay;function n0(){return ay||(ay=1,lo.exports=l0()),lo.exports}var io={exports:{}},rt={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and 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 ly;function i0(){if(ly)return rt;ly=1;var n=Ao();function i(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)y+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(p,y,T){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:S==null?null:""+S,children:p,containerInfo:y,implementation:T}}var v=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,rt.createPortal=function(p,y){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(i(299));return h(p,y,null,T)},rt.flushSync=function(p){var y=v.T,T=c.p;try{if(v.T=null,c.p=2,p)return p()}finally{v.T=y,c.p=T,c.d.f()}},rt.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,c.d.C(p,y))},rt.prefetchDNS=function(p){typeof p=="string"&&c.d.D(p)},rt.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var T=y.as,S=g(T,y.crossOrigin),w=typeof y.integrity=="string"?y.integrity:void 0,O=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;T==="style"?c.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:w,fetchPriority:O}):T==="script"&&c.d.X(p,{crossOrigin:S,integrity:w,fetchPriority:O,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},rt.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var T=g(y.as,y.crossOrigin);c.d.M(p,{crossOrigin:T,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&c.d.M(p)},rt.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var T=y.as,S=g(T,y.crossOrigin);c.d.L(p,T,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},rt.preloadModule=function(p,y){if(typeof p=="string")if(y){var T=g(y.as,y.crossOrigin);c.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:T,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else c.d.m(p)},rt.requestFormReset=function(p){c.d.r(p)},rt.unstable_batchedUpdates=function(p,y){return p(y)},rt.useFormState=function(p,y,T){return v.H.useFormState(p,y,T)},rt.useFormStatus=function(){return v.H.useHostTransitionStatus()},rt.version="19.2.5",rt}var ny;function u0(){if(ny)return io.exports;ny=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),io.exports=i0(),io.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var iy;function s0(){if(iy)return Bi;iy=1;var n=n0(),i=Ao(),r=u0();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function v(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 g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(h(e)!==e)throw Error(c(188))}function y(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(c(188));return t!==e?null:e}for(var a=e,l=t;;){var u=a.return;if(u===null)break;var s=u.alternate;if(s===null){if(l=u.return,l!==null){a=l;continue}break}if(u.child===s.child){for(s=u.child;s;){if(s===a)return p(u),e;if(s===l)return p(u),t;s=s.sibling}throw Error(c(188))}if(a.return!==l.return)a=u,l=s;else{for(var o=!1,m=u.child;m;){if(m===a){o=!0,a=u,l=s;break}if(m===l){o=!0,l=u,a=s;break}m=m.sibling}if(!o){for(m=s.child;m;){if(m===a){o=!0,a=s,l=u;break}if(m===l){o=!0,l=s,a=u;break}m=m.sibling}if(!o)throw Error(c(189))}}if(a.alternate!==l)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?e:t}function T(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=T(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,w=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),G=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function qe(e){return e===null||typeof e!="object"?null:(e=ke&&e[ke]||e["@@iterator"],typeof e=="function"?e:null)}var Be=Symbol.for("react.client.reference");function tt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case D:return"Profiler";case H:return"StrictMode";case V:return"Suspense";case le:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Q:return"Portal";case G:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:tt(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return tt(e(t))}catch{}}return null}var Oe=Array.isArray,q=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},Re=[],we=-1;function N(e){return{current:e}}function B(e){0>we||(e.current=Re[we],Re[we]=null,we--)}function $(e,t){we++,Re[we]=e.current,e.current=t}var ee=N(null),re=N(null),fe=N(null),je=N(null);function ft(e,t){switch($(fe,t),$(re,e),$(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gm(t),e=bm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(ee),$(ee,e)}function Xe(){B(ee),B(re),B(fe)}function Zn(e){e.memoizedState!==null&&$(je,e);var t=ee.current,a=bm(t,e.type);t!==a&&($(re,e),$(ee,a))}function au(e){re.current===e&&(B(ee),B(re)),je.current===e&&(B(je),Ui._currentValue=ue)}var Us,Vo;function hl(e){if(Us===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Us=t&&t[1]||"",Vo=-1<a.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Us+e+Vo}var qs=!1;function Hs(e,t){if(!e||qs)return"";qs=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(M){var A=M}Reflect.construct(e,[],k)}else{try{k.call()}catch(M){A=M}e.call(k.prototype)}}else{try{throw Error()}catch(M){A=M}(k=e())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(M){if(M&&A&&typeof M.stack=="string")return[M.stack,A.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),o=s[0],m=s[1];if(o&&m){var b=o.split(`
|
|
44
|
-
`),z=m.split(`
|
|
45
|
-
`);for(u=l=0;l<b.length&&!b[l].includes("DetermineComponentFrameRoot");)l++;for(;u<z.length&&!z[u].includes("DetermineComponentFrameRoot");)u++;if(l===b.length||u===z.length)for(l=b.length-1,u=z.length-1;1<=l&&0<=u&&b[l]!==z[u];)u--;for(;1<=l&&0<=u;l--,u--)if(b[l]!==z[u]){if(l!==1||u!==1)do if(l--,u--,0>u||b[l]!==z[u]){var U=`
|
|
46
|
-
`+b[l].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=l&&0<=u);break}}}finally{qs=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?hl(a):""}function Av(e,t){switch(e.tag){case 26:case 27:case 5:return hl(e.type);case 16:return hl("Lazy");case 13:return e.child!==t&&t!==null?hl("Suspense Fallback"):hl("Suspense");case 19:return hl("SuspenseList");case 0:case 15:return Hs(e.type,!1);case 11:return Hs(e.type.render,!1);case 1:return Hs(e.type,!0);case 31:return hl("Activity");default:return""}}function Jo(e){try{var t="",a=null;do t+=Av(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
-
Error generating stack: `+l.message+`
|
|
48
|
-
`+l.stack}}var Ls=Object.prototype.hasOwnProperty,ks=n.unstable_scheduleCallback,Bs=n.unstable_cancelCallback,_v=n.unstable_shouldYield,wv=n.unstable_requestPaint,jt=n.unstable_now,Mv=n.unstable_getCurrentPriorityLevel,$o=n.unstable_ImmediatePriority,Fo=n.unstable_UserBlockingPriority,lu=n.unstable_NormalPriority,Ov=n.unstable_LowPriority,Wo=n.unstable_IdlePriority,Dv=n.log,Uv=n.unstable_setDisableYieldValue,Vn=null,Nt=null;function Ma(e){if(typeof Dv=="function"&&Uv(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Vn,e)}catch{}}var Ct=Math.clz32?Math.clz32:Lv,qv=Math.log,Hv=Math.LN2;function Lv(e){return e>>>=0,e===0?32:31-(qv(e)/Hv|0)|0}var nu=256,iu=262144,uu=4194304;function ml(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function su(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var u=0,s=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var m=l&134217727;return m!==0?(l=m&~s,l!==0?u=ml(l):(o&=m,o!==0?u=ml(o):a||(a=m&~e,a!==0&&(u=ml(a))))):(m=l&~s,m!==0?u=ml(m):o!==0?u=ml(o):a||(a=l&~e,a!==0&&(u=ml(a)))),u===0?0:t!==0&&t!==u&&(t&s)===0&&(s=u&-u,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:u}function Jn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function kv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Po(){var e=uu;return uu<<=1,(uu&62914560)===0&&(uu=4194304),e}function Qs(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function $n(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Bv(e,t,a,l,u,s){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var m=e.entanglements,b=e.expirationTimes,z=e.hiddenUpdates;for(a=o&~a;0<a;){var U=31-Ct(a),k=1<<U;m[U]=0,b[U]=-1;var A=z[U];if(A!==null)for(z[U]=null,U=0;U<A.length;U++){var M=A[U];M!==null&&(M.lane&=-536870913)}a&=~k}l!==0&&Io(e,l,0),s!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=s&~(o&~t))}function Io(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ct(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function ef(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Ct(a),u=1<<l;u&t|e[l]&t&&(e[l]|=t),a&=~u}}function tf(e,t){var a=t&-t;return a=(a&42)!==0?1:Ys(a),(a&(e.suspendedLanes|t))!==0?0:a}function Ys(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Gs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function af(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Ym(e.type))}function lf(e,t){var a=J.p;try{return J.p=e,t()}finally{J.p=a}}var Oa=Math.random().toString(36).slice(2),at="__reactFiber$"+Oa,mt="__reactProps$"+Oa,Gl="__reactContainer$"+Oa,Xs="__reactEvents$"+Oa,Qv="__reactListeners$"+Oa,Yv="__reactHandles$"+Oa,nf="__reactResources$"+Oa,Fn="__reactMarker$"+Oa;function Ks(e){delete e[at],delete e[mt],delete e[Xs],delete e[Qv],delete e[Yv]}function Xl(e){var t=e[at];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Gl]||a[at]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Tm(e);e!==null;){if(a=e[at])return a;e=Tm(e)}return t}e=a,a=e.parentNode}return null}function Kl(e){if(e=e[at]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Zl(e){var t=e[nf];return t||(t=e[nf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[Fn]=!0}var uf=new Set,sf={};function yl(e,t){Vl(e,t),Vl(e+"Capture",t)}function Vl(e,t){for(sf[e]=t,e=0;e<t.length;e++)uf.add(t[e])}var Gv=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),rf={},cf={};function Xv(e){return Ls.call(cf,e)?!0:Ls.call(rf,e)?!1:Gv.test(e)?cf[e]=!0:(rf[e]=!0,!1)}function ru(e,t,a){if(Xv(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function cu(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function oa(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function of(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kv(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(o){a=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zs(e){if(!e._valueTracker){var t=of(e)?"checked":"value";e._valueTracker=Kv(e,t,""+e[t])}}function ff(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=of(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ou(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}}var Zv=/[\n"\\]/g;function qt(e){return e.replace(Zv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Vs(e,t,a,l,u,s,o,m){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Js(e,o,Ut(t)):a!=null?Js(e,o,Ut(a)):l!=null&&e.removeAttribute("value"),u==null&&s!=null&&(e.defaultChecked=!!s),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Ut(m):e.removeAttribute("name")}function df(e,t,a,l,u,s,o,m){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){Zs(e);return}a=a!=null?""+Ut(a):"",t=t!=null?""+Ut(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=m?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Zs(e)}function Js(e,t,a){t==="number"&&ou(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Jl(e,t,a,l){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Ut(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function hf(e,t,a){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ut(a):""}function mf(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(c(92));if(Oe(l)){if(1<l.length)throw Error(c(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Ut(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Zs(e)}function $l(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Vv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function yf(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Vv.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function vf(e,t,a){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&a[u]!==l&&yf(e,u,l)}else for(var s in t)t.hasOwnProperty(s)&&yf(e,s,t[s])}function $s(e){if(e.indexOf("-")===-1)return!1;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 Jv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$v=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function fu(e){return $v.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function fa(){}var Fs=null;function Ws(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fl=null,Wl=null;function pf(e){var t=Kl(e);if(t&&(e=t.stateNode)){var a=e[mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Vs(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+qt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var u=l[mt]||null;if(!u)throw Error(c(90));Vs(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&ff(l)}break e;case"textarea":hf(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Jl(e,!!a.multiple,t,!1)}}}var Ps=!1;function gf(e,t,a){if(Ps)return e(t,a);Ps=!0;try{var l=e(t);return l}finally{if(Ps=!1,(Fl!==null||Wl!==null)&&(Pu(),Fl&&(t=Fl,e=Wl,Wl=Fl=null,pf(t),e)))for(t=0;t<e.length;t++)pf(e[t])}}function Pn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[mt]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(c(231,t,typeof a));return a}var da=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Is=!1;if(da)try{var In={};Object.defineProperty(In,"passive",{get:function(){Is=!0}}),window.addEventListener("test",In,In),window.removeEventListener("test",In,In)}catch{Is=!1}var Da=null,er=null,du=null;function bf(){if(du)return du;var e,t=er,a=t.length,l,u="value"in Da?Da.value:Da.textContent,s=u.length;for(e=0;e<a&&t[e]===u[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===u[s-l];l++);return du=u.slice(e,1<l?1-l:void 0)}function hu(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 mu(){return!0}function xf(){return!1}function yt(e){function t(a,l,u,s,o){this._reactName=a,this._targetInst=u,this.type=l,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(s):s[m]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?mu:xf,this.isPropagationStopped=xf,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=mu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=mu)},persist:function(){},isPersistent:mu}),t}var vl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yu=yt(vl),ei=S({},vl,{view:0,detail:0}),Fv=yt(ei),tr,ar,ti,vu=S({},ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nr,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!==ti&&(ti&&e.type==="mousemove"?(tr=e.screenX-ti.screenX,ar=e.screenY-ti.screenY):ar=tr=0,ti=e),tr)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),Sf=yt(vu),Wv=S({},vu,{dataTransfer:0}),Pv=yt(Wv),Iv=S({},ei,{relatedTarget:0}),lr=yt(Iv),ep=S({},vl,{animationName:0,elapsedTime:0,pseudoElement:0}),tp=yt(ep),ap=S({},vl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lp=yt(ap),np=S({},vl,{data:0}),Ef=yt(np),ip={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},up={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"},sp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sp[e])?!!t[e]:!1}function nr(){return rp}var cp=S({},ei,{key:function(e){if(e.key){var t=ip[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=hu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?up[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nr,charCode:function(e){return e.type==="keypress"?hu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),op=yt(cp),fp=S({},vu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jf=yt(fp),dp=S({},ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nr}),hp=yt(dp),mp=S({},vl,{propertyName:0,elapsedTime:0,pseudoElement:0}),yp=yt(mp),vp=S({},vu,{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}),pp=yt(vp),gp=S({},vl,{newState:0,oldState:0}),bp=yt(gp),xp=[9,13,27,32],ir=da&&"CompositionEvent"in window,ai=null;da&&"documentMode"in document&&(ai=document.documentMode);var Sp=da&&"TextEvent"in window&&!ai,Nf=da&&(!ir||ai&&8<ai&&11>=ai),Cf=" ",Tf=!1;function Rf(e,t){switch(e){case"keyup":return xp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pl=!1;function Ep(e,t){switch(e){case"compositionend":return zf(t);case"keypress":return t.which!==32?null:(Tf=!0,Cf);case"textInput":return e=t.data,e===Cf&&Tf?null:e;default:return null}}function jp(e,t){if(Pl)return e==="compositionend"||!ir&&Rf(e,t)?(e=bf(),du=er=Da=null,Pl=!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 Nf&&t.locale!=="ko"?null:t.data;default:return null}}var Np={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 Af(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Np[e.type]:t==="textarea"}function _f(e,t,a,l){Fl?Wl?Wl.push(l):Wl=[l]:Fl=l,t=is(t,"onChange"),0<t.length&&(a=new yu("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var li=null,ni=null;function Cp(e){dm(e,0)}function pu(e){var t=Wn(e);if(ff(t))return e}function wf(e,t){if(e==="change")return t}var Mf=!1;if(da){var ur;if(da){var sr="oninput"in document;if(!sr){var Of=document.createElement("div");Of.setAttribute("oninput","return;"),sr=typeof Of.oninput=="function"}ur=sr}else ur=!1;Mf=ur&&(!document.documentMode||9<document.documentMode)}function Df(){li&&(li.detachEvent("onpropertychange",Uf),ni=li=null)}function Uf(e){if(e.propertyName==="value"&&pu(ni)){var t=[];_f(t,ni,e,Ws(e)),gf(Cp,t)}}function Tp(e,t,a){e==="focusin"?(Df(),li=t,ni=a,li.attachEvent("onpropertychange",Uf)):e==="focusout"&&Df()}function Rp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pu(ni)}function zp(e,t){if(e==="click")return pu(t)}function Ap(e,t){if(e==="input"||e==="change")return pu(t)}function _p(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:_p;function ii(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!Ls.call(t,u)||!Tt(e[u],t[u]))return!1}return!0}function qf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hf(e,t){var a=qf(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=qf(a)}}function Lf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ou(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ou(e.document)}return t}function rr(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")}var wp=da&&"documentMode"in document&&11>=document.documentMode,Il=null,cr=null,ui=null,or=!1;function Bf(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;or||Il==null||Il!==ou(l)||(l=Il,"selectionStart"in l&&rr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ui&&ii(ui,l)||(ui=l,l=is(cr,"onSelect"),0<l.length&&(t=new yu("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Il)))}function pl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var en={animationend:pl("Animation","AnimationEnd"),animationiteration:pl("Animation","AnimationIteration"),animationstart:pl("Animation","AnimationStart"),transitionrun:pl("Transition","TransitionRun"),transitionstart:pl("Transition","TransitionStart"),transitioncancel:pl("Transition","TransitionCancel"),transitionend:pl("Transition","TransitionEnd")},fr={},Qf={};da&&(Qf=document.createElement("div").style,"AnimationEvent"in window||(delete en.animationend.animation,delete en.animationiteration.animation,delete en.animationstart.animation),"TransitionEvent"in window||delete en.transitionend.transition);function gl(e){if(fr[e])return fr[e];if(!en[e])return e;var t=en[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Qf)return fr[e]=t[a];return e}var Yf=gl("animationend"),Gf=gl("animationiteration"),Xf=gl("animationstart"),Mp=gl("transitionrun"),Op=gl("transitionstart"),Dp=gl("transitioncancel"),Kf=gl("transitionend"),Zf=new Map,dr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");dr.push("scrollEnd");function Wt(e,t){Zf.set(e,t),yl(t,[e])}var gu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ht=[],tn=0,hr=0;function bu(){for(var e=tn,t=hr=tn=0;t<e;){var a=Ht[t];Ht[t++]=null;var l=Ht[t];Ht[t++]=null;var u=Ht[t];Ht[t++]=null;var s=Ht[t];if(Ht[t++]=null,l!==null&&u!==null){var o=l.pending;o===null?u.next=u:(u.next=o.next,o.next=u),l.pending=u}s!==0&&Vf(a,u,s)}}function xu(e,t,a,l){Ht[tn++]=e,Ht[tn++]=t,Ht[tn++]=a,Ht[tn++]=l,hr|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function mr(e,t,a,l){return xu(e,t,a,l),Su(e)}function bl(e,t){return xu(e,null,null,t),Su(e)}function Vf(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var u=!1,s=e.return;s!==null;)s.childLanes|=a,l=s.alternate,l!==null&&(l.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(u=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,u&&t!==null&&(u=31-Ct(a),e=s.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=a|536870912),s):null}function Su(e){if(50<zi)throw zi=0,jc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var an={};function Up(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,a,l){return new Up(e,t,a,l)}function yr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ha(e,t){var a=e.alternate;return a===null?(a=Rt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Jf(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Eu(e,t,a,l,u,s){var o=0;if(l=e,typeof e=="function")yr(e)&&(o=1);else if(typeof e=="string")o=Bg(e,a,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=Rt(31,a,t,u),e.elementType=W,e.lanes=s,e;case _:return xl(a.children,u,s,t);case H:o=8,u|=24;break;case D:return e=Rt(12,a,t,u|2),e.elementType=D,e.lanes=s,e;case V:return e=Rt(13,a,t,u),e.elementType=V,e.lanes=s,e;case le:return e=Rt(19,a,t,u),e.elementType=le,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:o=10;break e;case K:o=9;break e;case X:o=11;break e;case Y:o=14;break e;case Z:o=16,l=null;break e}o=29,a=Error(c(130,e===null?"null":typeof e,"")),l=null}return t=Rt(o,a,t,u),t.elementType=e,t.type=l,t.lanes=s,t}function xl(e,t,a,l){return e=Rt(7,e,l,t),e.lanes=a,e}function vr(e,t,a){return e=Rt(6,e,null,t),e.lanes=a,e}function $f(e){var t=Rt(18,null,null,0);return t.stateNode=e,t}function pr(e,t,a){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ff=new WeakMap;function Lt(e,t){if(typeof e=="object"&&e!==null){var a=Ff.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Jo(t)},Ff.set(e,t),t)}return{value:e,source:t,stack:Jo(t)}}var ln=[],nn=0,ju=null,si=0,kt=[],Bt=0,Ua=null,la=1,na="";function ma(e,t){ln[nn++]=si,ln[nn++]=ju,ju=e,si=t}function Wf(e,t,a){kt[Bt++]=la,kt[Bt++]=na,kt[Bt++]=Ua,Ua=e;var l=la;e=na;var u=32-Ct(l)-1;l&=~(1<<u),a+=1;var s=32-Ct(t)+u;if(30<s){var o=u-u%5;s=(l&(1<<o)-1).toString(32),l>>=o,u-=o,la=1<<32-Ct(t)+u|a<<u|l,na=s+e}else la=1<<s|a<<u|l,na=e}function gr(e){e.return!==null&&(ma(e,1),Wf(e,1,0))}function br(e){for(;e===ju;)ju=ln[--nn],ln[nn]=null,si=ln[--nn],ln[nn]=null;for(;e===Ua;)Ua=kt[--Bt],kt[Bt]=null,na=kt[--Bt],kt[Bt]=null,la=kt[--Bt],kt[Bt]=null}function Pf(e,t){kt[Bt++]=la,kt[Bt++]=na,kt[Bt++]=Ua,la=t.id,na=t.overflow,Ua=e}var lt=null,De=null,pe=!1,qa=null,Qt=!1,xr=Error(c(519));function Ha(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ri(Lt(t,e)),xr}function If(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[at]=e,t[mt]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<_i.length;a++)he(_i[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),df(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),mf(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||vm(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=fa),t=!0):t=!1,t||Ha(e,!0)}function ed(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Qt=!1;return;case 27:case 3:Qt=!0;return;default:lt=lt.return}}function un(e){if(e!==lt)return!1;if(!pe)return ed(e),pe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Lc(e.type,e.memoizedProps)),a=!a),a&&De&&Ha(e),ed(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));De=Cm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));De=Cm(e)}else t===27?(t=De,Wa(e.type)?(e=Gc,Gc=null,De=e):De=t):De=lt?Gt(e.stateNode.nextSibling):null;return!0}function Sl(){De=lt=null,pe=!1}function Sr(){var e=qa;return e!==null&&(bt===null?bt=e:bt.push.apply(bt,e),qa=null),e}function ri(e){qa===null?qa=[e]:qa.push(e)}var Er=N(null),El=null,ya=null;function La(e,t,a){$(Er,t._currentValue),t._currentValue=a}function va(e){e._currentValue=Er.current,B(Er)}function jr(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Nr(e,t,a,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var s=u.dependencies;if(s!==null){var o=u.child;s=s.firstContext;e:for(;s!==null;){var m=s;s=u;for(var b=0;b<t.length;b++)if(m.context===t[b]){s.lanes|=a,m=s.alternate,m!==null&&(m.lanes|=a),jr(s.return,a,e),l||(o=null);break e}s=m.next}}else if(u.tag===18){if(o=u.return,o===null)throw Error(c(341));o.lanes|=a,s=o.alternate,s!==null&&(s.lanes|=a),jr(o,a,e),o=null}else o=u.child;if(o!==null)o.return=u;else for(o=u;o!==null;){if(o===e){o=null;break}if(u=o.sibling,u!==null){u.return=o.return,o=u;break}o=o.return}u=o}}function sn(e,t,a,l){e=null;for(var u=t,s=!1;u!==null;){if(!s){if((u.flags&524288)!==0)s=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var o=u.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var m=u.type;Tt(u.pendingProps.value,o.value)||(e!==null?e.push(m):e=[m])}}else if(u===je.current){if(o=u.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Ui):e=[Ui])}u=u.return}e!==null&&Nr(t,e,a,l),t.flags|=262144}function Nu(e){for(e=e.firstContext;e!==null;){if(!Tt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function jl(e){El=e,ya=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return td(El,e)}function Cu(e,t){return El===null&&jl(e),td(e,t)}function td(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ya===null){if(e===null)throw Error(c(308));ya=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ya=ya.next=t;return a}var qp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Hp=n.unstable_scheduleCallback,Lp=n.unstable_NormalPriority,Ve={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cr(){return{controller:new qp,data:new Map,refCount:0}}function ci(e){e.refCount--,e.refCount===0&&Hp(Lp,function(){e.controller.abort()})}var oi=null,Tr=0,rn=0,cn=null;function kp(e,t){if(oi===null){var a=oi=[];Tr=0,rn=Ac(),cn={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Tr++,t.then(ad,ad),t}function ad(){if(--Tr===0&&oi!==null){cn!==null&&(cn.status="fulfilled");var e=oi;oi=null,rn=0,cn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Bp(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var ld=q.S;q.S=function(e,t){Bh=jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&kp(e,t),ld!==null&&ld(e,t)};var Nl=N(null);function Rr(){var e=Nl.current;return e!==null?e:Me.pooledCache}function Tu(e,t){t===null?$(Nl,Nl.current):$(Nl,t.pool)}function nd(){var e=Rr();return e===null?null:{parent:Ve._currentValue,pool:e}}var on=Error(c(460)),zr=Error(c(474)),Ru=Error(c(542)),zu={then:function(){}};function id(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ud(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(fa,fa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,rd(e),e;default:if(typeof t.status=="string")t.then(fa,fa);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,rd(e),e}throw Tl=t,on}}function Cl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Tl=a,on):a}}var Tl=null;function sd(){if(Tl===null)throw Error(c(459));var e=Tl;return Tl=null,e}function rd(e){if(e===on||e===Ru)throw Error(c(483))}var fn=null,fi=0;function Au(e){var t=fi;return fi+=1,fn===null&&(fn=[]),ud(fn,e,t)}function di(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function _u(e,t){throw t.$$typeof===w?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function cd(e){function t(C,x){if(e){var R=C.deletions;R===null?(C.deletions=[x],C.flags|=16):R.push(x)}}function a(C,x){if(!e)return null;for(;x!==null;)t(C,x),x=x.sibling;return null}function l(C){for(var x=new Map;C!==null;)C.key!==null?x.set(C.key,C):x.set(C.index,C),C=C.sibling;return x}function u(C,x){return C=ha(C,x),C.index=0,C.sibling=null,C}function s(C,x,R){return C.index=R,e?(R=C.alternate,R!==null?(R=R.index,R<x?(C.flags|=67108866,x):R):(C.flags|=67108866,x)):(C.flags|=1048576,x)}function o(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function m(C,x,R,L){return x===null||x.tag!==6?(x=vr(R,C.mode,L),x.return=C,x):(x=u(x,R),x.return=C,x)}function b(C,x,R,L){var ae=R.type;return ae===_?U(C,x,R.props.children,L,R.key):x!==null&&(x.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Z&&Cl(ae)===x.type)?(x=u(x,R.props),di(x,R),x.return=C,x):(x=Eu(R.type,R.key,R.props,null,C.mode,L),di(x,R),x.return=C,x)}function z(C,x,R,L){return x===null||x.tag!==4||x.stateNode.containerInfo!==R.containerInfo||x.stateNode.implementation!==R.implementation?(x=pr(R,C.mode,L),x.return=C,x):(x=u(x,R.children||[]),x.return=C,x)}function U(C,x,R,L,ae){return x===null||x.tag!==7?(x=xl(R,C.mode,L,ae),x.return=C,x):(x=u(x,R),x.return=C,x)}function k(C,x,R){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=vr(""+x,C.mode,R),x.return=C,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case O:return R=Eu(x.type,x.key,x.props,null,C.mode,R),di(R,x),R.return=C,R;case Q:return x=pr(x,C.mode,R),x.return=C,x;case Z:return x=Cl(x),k(C,x,R)}if(Oe(x)||qe(x))return x=xl(x,C.mode,R,null),x.return=C,x;if(typeof x.then=="function")return k(C,Au(x),R);if(x.$$typeof===G)return k(C,Cu(C,x),R);_u(C,x)}return null}function A(C,x,R,L){var ae=x!==null?x.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return ae!==null?null:m(C,x,""+R,L);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case O:return R.key===ae?b(C,x,R,L):null;case Q:return R.key===ae?z(C,x,R,L):null;case Z:return R=Cl(R),A(C,x,R,L)}if(Oe(R)||qe(R))return ae!==null?null:U(C,x,R,L,null);if(typeof R.then=="function")return A(C,x,Au(R),L);if(R.$$typeof===G)return A(C,x,Cu(C,R),L);_u(C,R)}return null}function M(C,x,R,L,ae){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return C=C.get(R)||null,m(x,C,""+L,ae);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case O:return C=C.get(L.key===null?R:L.key)||null,b(x,C,L,ae);case Q:return C=C.get(L.key===null?R:L.key)||null,z(x,C,L,ae);case Z:return L=Cl(L),M(C,x,R,L,ae)}if(Oe(L)||qe(L))return C=C.get(R)||null,U(x,C,L,ae,null);if(typeof L.then=="function")return M(C,x,R,Au(L),ae);if(L.$$typeof===G)return M(C,x,R,Cu(x,L),ae);_u(x,L)}return null}function P(C,x,R,L){for(var ae=null,be=null,te=x,oe=x=0,ye=null;te!==null&&oe<R.length;oe++){te.index>oe?(ye=te,te=null):ye=te.sibling;var xe=A(C,te,R[oe],L);if(xe===null){te===null&&(te=ye);break}e&&te&&xe.alternate===null&&t(C,te),x=s(xe,x,oe),be===null?ae=xe:be.sibling=xe,be=xe,te=ye}if(oe===R.length)return a(C,te),pe&&ma(C,oe),ae;if(te===null){for(;oe<R.length;oe++)te=k(C,R[oe],L),te!==null&&(x=s(te,x,oe),be===null?ae=te:be.sibling=te,be=te);return pe&&ma(C,oe),ae}for(te=l(te);oe<R.length;oe++)ye=M(te,C,oe,R[oe],L),ye!==null&&(e&&ye.alternate!==null&&te.delete(ye.key===null?oe:ye.key),x=s(ye,x,oe),be===null?ae=ye:be.sibling=ye,be=ye);return e&&te.forEach(function(al){return t(C,al)}),pe&&ma(C,oe),ae}function ne(C,x,R,L){if(R==null)throw Error(c(151));for(var ae=null,be=null,te=x,oe=x=0,ye=null,xe=R.next();te!==null&&!xe.done;oe++,xe=R.next()){te.index>oe?(ye=te,te=null):ye=te.sibling;var al=A(C,te,xe.value,L);if(al===null){te===null&&(te=ye);break}e&&te&&al.alternate===null&&t(C,te),x=s(al,x,oe),be===null?ae=al:be.sibling=al,be=al,te=ye}if(xe.done)return a(C,te),pe&&ma(C,oe),ae;if(te===null){for(;!xe.done;oe++,xe=R.next())xe=k(C,xe.value,L),xe!==null&&(x=s(xe,x,oe),be===null?ae=xe:be.sibling=xe,be=xe);return pe&&ma(C,oe),ae}for(te=l(te);!xe.done;oe++,xe=R.next())xe=M(te,C,oe,xe.value,L),xe!==null&&(e&&xe.alternate!==null&&te.delete(xe.key===null?oe:xe.key),x=s(xe,x,oe),be===null?ae=xe:be.sibling=xe,be=xe);return e&&te.forEach(function(Wg){return t(C,Wg)}),pe&&ma(C,oe),ae}function _e(C,x,R,L){if(typeof R=="object"&&R!==null&&R.type===_&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case O:e:{for(var ae=R.key;x!==null;){if(x.key===ae){if(ae=R.type,ae===_){if(x.tag===7){a(C,x.sibling),L=u(x,R.props.children),L.return=C,C=L;break e}}else if(x.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Z&&Cl(ae)===x.type){a(C,x.sibling),L=u(x,R.props),di(L,R),L.return=C,C=L;break e}a(C,x);break}else t(C,x);x=x.sibling}R.type===_?(L=xl(R.props.children,C.mode,L,R.key),L.return=C,C=L):(L=Eu(R.type,R.key,R.props,null,C.mode,L),di(L,R),L.return=C,C=L)}return o(C);case Q:e:{for(ae=R.key;x!==null;){if(x.key===ae)if(x.tag===4&&x.stateNode.containerInfo===R.containerInfo&&x.stateNode.implementation===R.implementation){a(C,x.sibling),L=u(x,R.children||[]),L.return=C,C=L;break e}else{a(C,x);break}else t(C,x);x=x.sibling}L=pr(R,C.mode,L),L.return=C,C=L}return o(C);case Z:return R=Cl(R),_e(C,x,R,L)}if(Oe(R))return P(C,x,R,L);if(qe(R)){if(ae=qe(R),typeof ae!="function")throw Error(c(150));return R=ae.call(R),ne(C,x,R,L)}if(typeof R.then=="function")return _e(C,x,Au(R),L);if(R.$$typeof===G)return _e(C,x,Cu(C,R),L);_u(C,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,x!==null&&x.tag===6?(a(C,x.sibling),L=u(x,R),L.return=C,C=L):(a(C,x),L=vr(R,C.mode,L),L.return=C,C=L),o(C)):a(C,x)}return function(C,x,R,L){try{fi=0;var ae=_e(C,x,R,L);return fn=null,ae}catch(te){if(te===on||te===Ru)throw te;var be=Rt(29,te,null,C.mode);return be.lanes=L,be.return=C,be}finally{}}}var Rl=cd(!0),od=cd(!1),ka=!1;function Ar(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _r(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ba(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Se&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=Su(e),Vf(e,null,a),t}return xu(e,l,t,a),Su(e)}function hi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,ef(e,a)}}function wr(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var u=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?u=s=o:s=s.next=o,a=a.next}while(a!==null);s===null?u=s=t:s=s.next=t}else u=s=t;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Mr=!1;function mi(){if(Mr){var e=cn;if(e!==null)throw e}}function yi(e,t,a,l){Mr=!1;var u=e.updateQueue;ka=!1;var s=u.firstBaseUpdate,o=u.lastBaseUpdate,m=u.shared.pending;if(m!==null){u.shared.pending=null;var b=m,z=b.next;b.next=null,o===null?s=z:o.next=z,o=b;var U=e.alternate;U!==null&&(U=U.updateQueue,m=U.lastBaseUpdate,m!==o&&(m===null?U.firstBaseUpdate=z:m.next=z,U.lastBaseUpdate=b))}if(s!==null){var k=u.baseState;o=0,U=z=b=null,m=s;do{var A=m.lane&-536870913,M=A!==m.lane;if(M?(me&A)===A:(l&A)===A){A!==0&&A===rn&&(Mr=!0),U!==null&&(U=U.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var P=e,ne=m;A=t;var _e=a;switch(ne.tag){case 1:if(P=ne.payload,typeof P=="function"){k=P.call(_e,k,A);break e}k=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ne.payload,A=typeof P=="function"?P.call(_e,k,A):P,A==null)break e;k=S({},k,A);break e;case 2:ka=!0}}A=m.callback,A!==null&&(e.flags|=64,M&&(e.flags|=8192),M=u.callbacks,M===null?u.callbacks=[A]:M.push(A))}else M={lane:A,tag:m.tag,payload:m.payload,callback:m.callback,next:null},U===null?(z=U=M,b=k):U=U.next=M,o|=A;if(m=m.next,m===null){if(m=u.shared.pending,m===null)break;M=m,m=M.next,M.next=null,u.lastBaseUpdate=M,u.shared.pending=null}}while(!0);U===null&&(b=k),u.baseState=b,u.firstBaseUpdate=z,u.lastBaseUpdate=U,s===null&&(u.shared.lanes=0),Za|=o,e.lanes=o,e.memoizedState=k}}function fd(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function dd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)fd(a[e],t)}var dn=N(null),wu=N(0);function hd(e,t){e=Ca,$(wu,e),$(dn,t),Ca=e|t.baseLanes}function Or(){$(wu,Ca),$(dn,dn.current)}function Dr(){Ca=wu.current,B(dn),B(wu)}var zt=N(null),Yt=null;function Ya(e){var t=e.alternate;$(Ke,Ke.current&1),$(zt,e),Yt===null&&(t===null||dn.current!==null||t.memoizedState!==null)&&(Yt=e)}function Ur(e){$(Ke,Ke.current),$(zt,e),Yt===null&&(Yt=e)}function md(e){e.tag===22?($(Ke,Ke.current),$(zt,e),Yt===null&&(Yt=e)):Ga()}function Ga(){$(Ke,Ke.current),$(zt,zt.current)}function At(e){B(zt),Yt===e&&(Yt=null),B(Ke)}var Ke=N(0);function Mu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Qc(a)||Yc(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)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 pa=0,ce=null,ze=null,Je=null,Ou=!1,hn=!1,zl=!1,Du=0,vi=0,mn=null,Qp=0;function Qe(){throw Error(c(321))}function qr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Tt(e[a],t[a]))return!1;return!0}function Hr(e,t,a,l,u,s){return pa=s,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e===null||e.memoizedState===null?Wd:Pr,zl=!1,s=a(l,u),zl=!1,hn&&(s=vd(t,a,l,u)),yd(e),s}function yd(e){q.H=bi;var t=ze!==null&&ze.next!==null;if(pa=0,Je=ze=ce=null,Ou=!1,vi=0,mn=null,t)throw Error(c(300));e===null||$e||(e=e.dependencies,e!==null&&Nu(e)&&($e=!0))}function vd(e,t,a,l){ce=e;var u=0;do{if(hn&&(mn=null),vi=0,hn=!1,25<=u)throw Error(c(301));if(u+=1,Je=ze=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}q.H=Pd,s=t(a,l)}while(hn);return s}function Yp(){var e=q.H,t=e.useState()[0];return t=typeof t.then=="function"?pi(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(ce.flags|=1024),t}function Lr(){var e=Du!==0;return Du=0,e}function kr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Br(e){if(Ou){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ou=!1}pa=0,Je=ze=ce=null,hn=!1,vi=Du=0,mn=null}function dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?ce.memoizedState=Je=e:Je=Je.next=e,Je}function Ze(){if(ze===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Je===null?ce.memoizedState:Je.next;if(t!==null)Je=t,ze=e;else{if(e===null)throw ce.alternate===null?Error(c(467)):Error(c(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Je===null?ce.memoizedState=Je=e:Je=Je.next=e}return Je}function Uu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pi(e){var t=vi;return vi+=1,mn===null&&(mn=[]),e=ud(mn,e,t),t=ce,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,q.H=t===null||t.memoizedState===null?Wd:Pr),e}function qu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pi(e);if(e.$$typeof===G)return nt(e)}throw Error(c(438,String(e)))}function Qr(e){var t=null,a=ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Uu(),ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=I;return t.index++,a}function ga(e,t){return typeof t=="function"?t(e):t}function Hu(e){var t=Ze();return Yr(t,ze,e)}function Yr(e,t,a){var l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=a;var u=e.baseQueue,s=l.pending;if(s!==null){if(u!==null){var o=u.next;u.next=s.next,s.next=o}t.baseQueue=u=s,l.pending=null}if(s=e.baseState,u===null)e.memoizedState=s;else{t=u.next;var m=o=null,b=null,z=t,U=!1;do{var k=z.lane&-536870913;if(k!==z.lane?(me&k)===k:(pa&k)===k){var A=z.revertLane;if(A===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),k===rn&&(U=!0);else if((pa&A)===A){z=z.next,A===rn&&(U=!0);continue}else k={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},b===null?(m=b=k,o=s):b=b.next=k,ce.lanes|=A,Za|=A;k=z.action,zl&&a(s,k),s=z.hasEagerState?z.eagerState:a(s,k)}else A={lane:k,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},b===null?(m=b=A,o=s):b=b.next=A,ce.lanes|=k,Za|=k;z=z.next}while(z!==null&&z!==t);if(b===null?o=s:b.next=m,!Tt(s,e.memoizedState)&&($e=!0,U&&(a=cn,a!==null)))throw a;e.memoizedState=s,e.baseState=o,e.baseQueue=b,l.lastRenderedState=s}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Gr(e){var t=Ze(),a=t.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=e;var l=a.dispatch,u=a.pending,s=t.memoizedState;if(u!==null){a.pending=null;var o=u=u.next;do s=e(s,o.action),o=o.next;while(o!==u);Tt(s,t.memoizedState)||($e=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,l]}function pd(e,t,a){var l=ce,u=Ze(),s=pe;if(s){if(a===void 0)throw Error(c(407));a=a()}else a=t();var o=!Tt((ze||u).memoizedState,a);if(o&&(u.memoizedState=a,$e=!0),u=u.queue,Zr(xd.bind(null,l,u,e),[e]),u.getSnapshot!==t||o||Je!==null&&Je.memoizedState.tag&1){if(l.flags|=2048,yn(9,{destroy:void 0},bd.bind(null,l,u,a,t),null),Me===null)throw Error(c(349));s||(pa&127)!==0||gd(l,t,a)}return a}function gd(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=Uu(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function bd(e,t,a,l){t.value=a,t.getSnapshot=l,Sd(t)&&Ed(e)}function xd(e,t,a){return a(function(){Sd(t)&&Ed(e)})}function Sd(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Tt(e,a)}catch{return!0}}function Ed(e){var t=bl(e,2);t!==null&&xt(t,e,2)}function Xr(e){var t=dt();if(typeof e=="function"){var a=e;if(e=a(),zl){Ma(!0);try{a()}finally{Ma(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:e},t}function jd(e,t,a,l){return e.baseState=a,Yr(e,ze,typeof l=="function"?l:ga)}function Gp(e,t,a,l,u){if(Bu(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};q.T!==null?a(!0):s.isTransition=!1,l(s),a=t.pending,a===null?(s.next=t.pending=s,Nd(t,s)):(s.next=a.next,t.pending=a.next=s)}}function Nd(e,t){var a=t.action,l=t.payload,u=e.state;if(t.isTransition){var s=q.T,o={};q.T=o;try{var m=a(u,l),b=q.S;b!==null&&b(o,m),Cd(e,t,m)}catch(z){Kr(e,t,z)}finally{s!==null&&o.types!==null&&(s.types=o.types),q.T=s}}else try{s=a(u,l),Cd(e,t,s)}catch(z){Kr(e,t,z)}}function Cd(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Td(e,t,l)},function(l){return Kr(e,t,l)}):Td(e,t,a)}function Td(e,t,a){t.status="fulfilled",t.value=a,Rd(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Nd(e,a)))}function Kr(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Rd(t),t=t.next;while(t!==l)}e.action=null}function Rd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function zd(e,t){return t}function Ad(e,t){if(pe){var a=Me.formState;if(a!==null){e:{var l=ce;if(pe){if(De){t:{for(var u=De,s=Qt;u.nodeType!==8;){if(!s){u=null;break t}if(u=Gt(u.nextSibling),u===null){u=null;break t}}s=u.data,u=s==="F!"||s==="F"?u:null}if(u){De=Gt(u.nextSibling),l=u.data==="F!";break e}}Ha(l)}l=!1}l&&(t=a[0])}}return a=dt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zd,lastRenderedState:t},a.queue=l,a=Jd.bind(null,ce,l),l.dispatch=a,l=Xr(!1),s=Wr.bind(null,ce,!1,l.queue),l=dt(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,a=Gp.bind(null,ce,u,s,a),u.dispatch=a,l.memoizedState=e,[t,a,!1]}function _d(e){var t=Ze();return wd(t,ze,e)}function wd(e,t,a){if(t=Yr(e,t,zd)[0],e=Hu(ga)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=pi(t)}catch(o){throw o===on?Ru:o}else l=t;t=Ze();var u=t.queue,s=u.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,yn(9,{destroy:void 0},Xp.bind(null,u,a),null)),[l,s,e]}function Xp(e,t){e.action=t}function Md(e){var t=Ze(),a=ze;if(a!==null)return wd(t,a,e);Ze(),t=t.memoizedState,a=Ze();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function yn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ce.updateQueue,t===null&&(t=Uu(),ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Od(){return Ze().memoizedState}function Lu(e,t,a,l){var u=dt();ce.flags|=e,u.memoizedState=yn(1|t,{destroy:void 0},a,l===void 0?null:l)}function ku(e,t,a,l){var u=Ze();l=l===void 0?null:l;var s=u.memoizedState.inst;ze!==null&&l!==null&&qr(l,ze.memoizedState.deps)?u.memoizedState=yn(t,s,a,l):(ce.flags|=e,u.memoizedState=yn(1|t,s,a,l))}function Dd(e,t){Lu(8390656,8,e,t)}function Zr(e,t){ku(2048,8,e,t)}function Kp(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Uu(),ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ud(e){var t=Ze().memoizedState;return Kp({ref:t,nextImpl:e}),function(){if((Se&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function qd(e,t){return ku(4,2,e,t)}function Hd(e,t){return ku(4,4,e,t)}function Ld(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kd(e,t,a){a=a!=null?a.concat([e]):null,ku(4,4,Ld.bind(null,t,e),a)}function Vr(){}function Bd(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&qr(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Qd(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&qr(t,l[1]))return l[0];if(l=e(),zl){Ma(!0);try{e()}finally{Ma(!1)}}return a.memoizedState=[l,t],l}function Jr(e,t,a){return a===void 0||(pa&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Yh(),ce.lanes|=e,Za|=e,a)}function Yd(e,t,a,l){return Tt(a,t)?a:dn.current!==null?(e=Jr(e,a,l),Tt(e,t)||($e=!0),e):(pa&42)===0||(pa&1073741824)!==0&&(me&261930)===0?($e=!0,e.memoizedState=a):(e=Yh(),ce.lanes|=e,Za|=e,t)}function Gd(e,t,a,l,u){var s=J.p;J.p=s!==0&&8>s?s:8;var o=q.T,m={};q.T=m,Wr(e,!1,t,a);try{var b=u(),z=q.S;if(z!==null&&z(m,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var U=Bp(b,l);gi(e,t,U,Mt(e))}else gi(e,t,l,Mt(e))}catch(k){gi(e,t,{then:function(){},status:"rejected",reason:k},Mt())}finally{J.p=s,o!==null&&m.types!==null&&(o.types=m.types),q.T=o}}function Zp(){}function $r(e,t,a,l){if(e.tag!==5)throw Error(c(476));var u=Xd(e).queue;Gd(e,u,t,ue,a===null?Zp:function(){return Kd(e),a(l)})}function Xd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:ue},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Kd(e){var t=Xd(e);t.next===null&&(t=e.alternate.memoizedState),gi(e,t.next.queue,{},Mt())}function Fr(){return nt(Ui)}function Zd(){return Ze().memoizedState}function Vd(){return Ze().memoizedState}function Vp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Mt();e=Ba(a);var l=Qa(t,e,a);l!==null&&(xt(l,t,a),hi(l,t,a)),t={cache:Cr()},e.payload=t;return}t=t.return}}function Jp(e,t,a){var l=Mt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bu(e)?$d(t,a):(a=mr(e,t,a,l),a!==null&&(xt(a,e,l),Fd(a,t,l)))}function Jd(e,t,a){var l=Mt();gi(e,t,a,l)}function gi(e,t,a,l){var u={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bu(e))$d(t,u);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,m=s(o,a);if(u.hasEagerState=!0,u.eagerState=m,Tt(m,o))return xu(e,t,u,0),Me===null&&bu(),!1}catch{}finally{}if(a=mr(e,t,u,l),a!==null)return xt(a,e,l),Fd(a,t,l),!0}return!1}function Wr(e,t,a,l){if(l={lane:2,revertLane:Ac(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Bu(e)){if(t)throw Error(c(479))}else t=mr(e,a,l,2),t!==null&&xt(t,e,2)}function Bu(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function $d(e,t){hn=Ou=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Fd(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,ef(e,a)}}var bi={readContext:nt,use:qu,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};bi.useEffectEvent=Qe;var Wd={readContext:nt,use:qu,useCallback:function(e,t){return dt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Dd,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Lu(4194308,4,Ld.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Lu(4194308,4,e,t)},useInsertionEffect:function(e,t){Lu(4,2,e,t)},useMemo:function(e,t){var a=dt();t=t===void 0?null:t;var l=e();if(zl){Ma(!0);try{e()}finally{Ma(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=dt();if(a!==void 0){var u=a(t);if(zl){Ma(!0);try{a(t)}finally{Ma(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=Jp.bind(null,ce,e),[l.memoizedState,e]},useRef:function(e){var t=dt();return e={current:e},t.memoizedState=e},useState:function(e){e=Xr(e);var t=e.queue,a=Jd.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Vr,useDeferredValue:function(e,t){var a=dt();return Jr(a,e,t)},useTransition:function(){var e=Xr(!1);return e=Gd.bind(null,ce,e.queue,!0,!1),dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ce,u=dt();if(pe){if(a===void 0)throw Error(c(407));a=a()}else{if(a=t(),Me===null)throw Error(c(349));(me&127)!==0||gd(l,t,a)}u.memoizedState=a;var s={value:a,getSnapshot:t};return u.queue=s,Dd(xd.bind(null,l,s,e),[e]),l.flags|=2048,yn(9,{destroy:void 0},bd.bind(null,l,s,a,t),null),a},useId:function(){var e=dt(),t=Me.identifierPrefix;if(pe){var a=na,l=la;a=(l&~(1<<32-Ct(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Du++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Qp++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Fr,useFormState:Ad,useActionState:Ad,useOptimistic:function(e){var t=dt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Wr.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:Qr,useCacheRefresh:function(){return dt().memoizedState=Vp.bind(null,ce)},useEffectEvent:function(e){var t=dt(),a={impl:e};return t.memoizedState=a,function(){if((Se&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},Pr={readContext:nt,use:qu,useCallback:Bd,useContext:nt,useEffect:Zr,useImperativeHandle:kd,useInsertionEffect:qd,useLayoutEffect:Hd,useMemo:Qd,useReducer:Hu,useRef:Od,useState:function(){return Hu(ga)},useDebugValue:Vr,useDeferredValue:function(e,t){var a=Ze();return Yd(a,ze.memoizedState,e,t)},useTransition:function(){var e=Hu(ga)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:pi(e),t]},useSyncExternalStore:pd,useId:Zd,useHostTransitionStatus:Fr,useFormState:_d,useActionState:_d,useOptimistic:function(e,t){var a=Ze();return jd(a,ze,e,t)},useMemoCache:Qr,useCacheRefresh:Vd};Pr.useEffectEvent=Ud;var Pd={readContext:nt,use:qu,useCallback:Bd,useContext:nt,useEffect:Zr,useImperativeHandle:kd,useInsertionEffect:qd,useLayoutEffect:Hd,useMemo:Qd,useReducer:Gr,useRef:Od,useState:function(){return Gr(ga)},useDebugValue:Vr,useDeferredValue:function(e,t){var a=Ze();return ze===null?Jr(a,e,t):Yd(a,ze.memoizedState,e,t)},useTransition:function(){var e=Gr(ga)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:pi(e),t]},useSyncExternalStore:pd,useId:Zd,useHostTransitionStatus:Fr,useFormState:Md,useActionState:Md,useOptimistic:function(e,t){var a=Ze();return ze!==null?jd(a,ze,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Qr,useCacheRefresh:Vd};Pd.useEffectEvent=Ud;function Ir(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:S({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ec={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Mt(),u=Ba(l);u.payload=t,a!=null&&(u.callback=a),t=Qa(e,u,l),t!==null&&(xt(t,e,l),hi(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Mt(),u=Ba(l);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Qa(e,u,l),t!==null&&(xt(t,e,l),hi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Mt(),l=Ba(a);l.tag=2,t!=null&&(l.callback=t),t=Qa(e,l,a),t!==null&&(xt(t,e,a),hi(t,e,a))}};function Id(e,t,a,l,u,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,o):t.prototype&&t.prototype.isPureReactComponent?!ii(a,l)||!ii(u,s):!0}function eh(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&ec.enqueueReplaceState(t,t.state,null)}function Al(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=S({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function th(e){gu(e)}function ah(e){console.error(e)}function lh(e){gu(e)}function Qu(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function nh(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function tc(e,t,a){return a=Ba(a),a.tag=3,a.payload={element:null},a.callback=function(){Qu(e,t)},a}function ih(e){return e=Ba(e),e.tag=3,e}function uh(e,t,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var s=l.value;e.payload=function(){return u(s)},e.callback=function(){nh(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){nh(t,a,l),typeof u!="function"&&(Va===null?Va=new Set([this]):Va.add(this));var m=l.stack;this.componentDidCatch(l.value,{componentStack:m!==null?m:""})})}function $p(e,t,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&sn(t,a,u,!0),a=zt.current,a!==null){switch(a.tag){case 31:case 13:return Yt===null?Iu():a.alternate===null&&Ye===0&&(Ye=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===zu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Tc(e,l,u)),!1;case 22:return a.flags|=65536,l===zu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Tc(e,l,u)),!1}throw Error(c(435,a.tag))}return Tc(e,l,u),Iu(),!1}if(pe)return t=zt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==xr&&(e=Error(c(422),{cause:l}),ri(Lt(e,a)))):(l!==xr&&(t=Error(c(423),{cause:l}),ri(Lt(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=Lt(l,a),u=tc(e.stateNode,l,u),wr(e,u),Ye!==4&&(Ye=2)),!1;var s=Error(c(520),{cause:l});if(s=Lt(s,a),Ri===null?Ri=[s]:Ri.push(s),Ye!==4&&(Ye=2),t===null)return!0;l=Lt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=tc(a.stateNode,l,e),wr(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Va===null||!Va.has(s))))return a.flags|=65536,u&=-u,a.lanes|=u,u=ih(u),uh(u,e,a,l),wr(a,u),!1}a=a.return}while(a!==null);return!1}var ac=Error(c(461)),$e=!1;function it(e,t,a,l){t.child=e===null?od(t,null,a,l):Rl(t,e.child,a,l)}function sh(e,t,a,l,u){a=a.render;var s=t.ref;if("ref"in l){var o={};for(var m in l)m!=="ref"&&(o[m]=l[m])}else o=l;return jl(t),l=Hr(e,t,a,o,s,u),m=Lr(),e!==null&&!$e?(kr(e,t,u),ba(e,t,u)):(pe&&m&&gr(t),t.flags|=1,it(e,t,l,u),t.child)}function rh(e,t,a,l,u){if(e===null){var s=a.type;return typeof s=="function"&&!yr(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,ch(e,t,s,l,u)):(e=Eu(a.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!oc(e,u)){var o=s.memoizedProps;if(a=a.compare,a=a!==null?a:ii,a(o,l)&&e.ref===t.ref)return ba(e,t,u)}return t.flags|=1,e=ha(s,l),e.ref=t.ref,e.return=t,t.child=e}function ch(e,t,a,l,u){if(e!==null){var s=e.memoizedProps;if(ii(s,l)&&e.ref===t.ref)if($e=!1,t.pendingProps=l=s,oc(e,u))(e.flags&131072)!==0&&($e=!0);else return t.lanes=e.lanes,ba(e,t,u)}return lc(e,t,a,l,u)}function oh(e,t,a,l){var u=l.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){for(l=t.child=e.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~s}else l=0,t.child=null;return fh(e,t,s,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Tu(t,s!==null?s.cachePool:null),s!==null?hd(t,s):Or(),md(t);else return l=t.lanes=536870912,fh(e,t,s!==null?s.baseLanes|a:a,a,l)}else s!==null?(Tu(t,s.cachePool),hd(t,s),Ga(),t.memoizedState=null):(e!==null&&Tu(t,null),Or(),Ga());return it(e,t,u,a),t.child}function xi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fh(e,t,a,l,u){var s=Rr();return s=s===null?null:{parent:Ve._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&Tu(t,null),Or(),md(t),e!==null&&sn(e,t,l,!0),t.childLanes=u,null}function Yu(e,t){return t=Xu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function dh(e,t,a){return Rl(t,e.child,null,a),e=Yu(t,t.pendingProps),e.flags|=2,At(t),t.memoizedState=null,e}function Fp(e,t,a){var l=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(pe){if(l.mode==="hidden")return e=Yu(t,l),t.lanes=536870912,xi(null,e);if(Ur(t),(e=De)?(e=Nm(e,Qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ua!==null?{id:la,overflow:na}:null,retryLane:536870912,hydrationErrors:null},a=$f(e),a.return=t,t.child=a,lt=t,De=null)):e=null,e===null)throw Ha(t);return t.lanes=536870912,null}return Yu(t,l)}var s=e.memoizedState;if(s!==null){var o=s.dehydrated;if(Ur(t),u)if(t.flags&256)t.flags&=-257,t=dh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if($e||sn(e,t,a,!1),u=(a&e.childLanes)!==0,$e||u){if(l=Me,l!==null&&(o=tf(l,a),o!==0&&o!==s.retryLane))throw s.retryLane=o,bl(e,o),xt(l,e,o),ac;Iu(),t=dh(e,t,a)}else e=s.treeContext,De=Gt(o.nextSibling),lt=t,pe=!0,qa=null,Qt=!1,e!==null&&Pf(t,e),t=Yu(t,l),t.flags|=4096;return t}return e=ha(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Gu(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function lc(e,t,a,l,u){return jl(t),a=Hr(e,t,a,l,void 0,u),l=Lr(),e!==null&&!$e?(kr(e,t,u),ba(e,t,u)):(pe&&l&&gr(t),t.flags|=1,it(e,t,a,u),t.child)}function hh(e,t,a,l,u,s){return jl(t),t.updateQueue=null,a=vd(t,l,a,u),yd(e),l=Lr(),e!==null&&!$e?(kr(e,t,s),ba(e,t,s)):(pe&&l&&gr(t),t.flags|=1,it(e,t,a,s),t.child)}function mh(e,t,a,l,u){if(jl(t),t.stateNode===null){var s=an,o=a.contextType;typeof o=="object"&&o!==null&&(s=nt(o)),s=new a(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=ec,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},Ar(t),o=a.contextType,s.context=typeof o=="object"&&o!==null?nt(o):an,s.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(Ir(t,a,o,l),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(o=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),o!==s.state&&ec.enqueueReplaceState(s,s.state,null),yi(t,l,s,u),mi(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var m=t.memoizedProps,b=Al(a,m);s.props=b;var z=s.context,U=a.contextType;o=an,typeof U=="object"&&U!==null&&(o=nt(U));var k=a.getDerivedStateFromProps;U=typeof k=="function"||typeof s.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,U||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(m||z!==o)&&eh(t,s,l,o),ka=!1;var A=t.memoizedState;s.state=A,yi(t,l,s,u),mi(),z=t.memoizedState,m||A!==z||ka?(typeof k=="function"&&(Ir(t,a,k,l),z=t.memoizedState),(b=ka||Id(t,a,b,l,A,z,o))?(U||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=z),s.props=l,s.state=z,s.context=o,l=b):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,_r(e,t),o=t.memoizedProps,U=Al(a,o),s.props=U,k=t.pendingProps,A=s.context,z=a.contextType,b=an,typeof z=="object"&&z!==null&&(b=nt(z)),m=a.getDerivedStateFromProps,(z=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==k||A!==b)&&eh(t,s,l,b),ka=!1,A=t.memoizedState,s.state=A,yi(t,l,s,u),mi();var M=t.memoizedState;o!==k||A!==M||ka||e!==null&&e.dependencies!==null&&Nu(e.dependencies)?(typeof m=="function"&&(Ir(t,a,m,l),M=t.memoizedState),(U=ka||Id(t,a,U,l,A,M,b)||e!==null&&e.dependencies!==null&&Nu(e.dependencies))?(z||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,M,b),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,M,b)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=M),s.props=l,s.state=M,s.context=b,l=U):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Gu(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=Rl(t,e.child,null,u),t.child=Rl(t,null,a,u)):it(e,t,a,u),t.memoizedState=s.state,e=t.child):e=ba(e,t,u),e}function yh(e,t,a,l){return Sl(),t.flags|=256,it(e,t,a,l),t.child}var nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ic(e){return{baseLanes:e,cachePool:nd()}}function uc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=wt),e}function vh(e,t,a){var l=t.pendingProps,u=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),o&&(u=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(pe){if(u?Ya(t):Ga(),(e=De)?(e=Nm(e,Qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ua!==null?{id:la,overflow:na}:null,retryLane:536870912,hydrationErrors:null},a=$f(e),a.return=t,t.child=a,lt=t,De=null)):e=null,e===null)throw Ha(t);return Yc(e)?t.lanes=32:t.lanes=536870912,null}var m=l.children;return l=l.fallback,u?(Ga(),u=t.mode,m=Xu({mode:"hidden",children:m},u),l=xl(l,u,a,null),m.return=t,l.return=t,m.sibling=l,t.child=m,l=t.child,l.memoizedState=ic(a),l.childLanes=uc(e,o,a),t.memoizedState=nc,xi(null,l)):(Ya(t),sc(t,m))}var b=e.memoizedState;if(b!==null&&(m=b.dehydrated,m!==null)){if(s)t.flags&256?(Ya(t),t.flags&=-257,t=rc(e,t,a)):t.memoizedState!==null?(Ga(),t.child=e.child,t.flags|=128,t=null):(Ga(),m=l.fallback,u=t.mode,l=Xu({mode:"visible",children:l.children},u),m=xl(m,u,a,null),m.flags|=2,l.return=t,m.return=t,l.sibling=m,t.child=l,Rl(t,e.child,null,a),l=t.child,l.memoizedState=ic(a),l.childLanes=uc(e,o,a),t.memoizedState=nc,t=xi(null,l));else if(Ya(t),Yc(m)){if(o=m.nextSibling&&m.nextSibling.dataset,o)var z=o.dgst;o=z,l=Error(c(419)),l.stack="",l.digest=o,ri({value:l,source:null,stack:null}),t=rc(e,t,a)}else if($e||sn(e,t,a,!1),o=(a&e.childLanes)!==0,$e||o){if(o=Me,o!==null&&(l=tf(o,a),l!==0&&l!==b.retryLane))throw b.retryLane=l,bl(e,l),xt(o,e,l),ac;Qc(m)||Iu(),t=rc(e,t,a)}else Qc(m)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,De=Gt(m.nextSibling),lt=t,pe=!0,qa=null,Qt=!1,e!==null&&Pf(t,e),t=sc(t,l.children),t.flags|=4096);return t}return u?(Ga(),m=l.fallback,u=t.mode,b=e.child,z=b.sibling,l=ha(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&65011712,z!==null?m=ha(z,m):(m=xl(m,u,a,null),m.flags|=2),m.return=t,l.return=t,l.sibling=m,t.child=l,xi(null,l),l=t.child,m=e.child.memoizedState,m===null?m=ic(a):(u=m.cachePool,u!==null?(b=Ve._currentValue,u=u.parent!==b?{parent:b,pool:b}:u):u=nd(),m={baseLanes:m.baseLanes|a,cachePool:u}),l.memoizedState=m,l.childLanes=uc(e,o,a),t.memoizedState=nc,xi(e.child,l)):(Ya(t),a=e.child,e=a.sibling,a=ha(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function sc(e,t){return t=Xu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Xu(e,t){return e=Rt(22,e,null,t),e.lanes=0,e}function rc(e,t,a){return Rl(t,e.child,null,a),e=sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ph(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),jr(e.return,t,a)}function cc(e,t,a,l,u,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u,treeForkCount:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=u,o.treeForkCount=s)}function gh(e,t,a){var l=t.pendingProps,u=l.revealOrder,s=l.tail;l=l.children;var o=Ke.current,m=(o&2)!==0;if(m?(o=o&1|2,t.flags|=128):o&=1,$(Ke,o),it(e,t,l,a),l=pe?si:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ph(e,a,t);else if(e.tag===19)ph(e,a,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}switch(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&Mu(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),cc(t,!1,u,a,s,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Mu(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}cc(t,!0,a,null,s,l);break;case"together":cc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ba(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Za|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(sn(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,a=ha(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ha(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function oc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Nu(e)))}function Wp(e,t,a){switch(t.tag){case 3:ft(t,t.stateNode.containerInfo),La(t,Ve,e.memoizedState.cache),Sl();break;case 27:case 5:Zn(t);break;case 4:ft(t,t.stateNode.containerInfo);break;case 10:La(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ur(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ya(t),t.flags|=128,null):(a&t.child.childLanes)!==0?vh(e,t,a):(Ya(t),e=ba(e,t,a),e!==null?e.sibling:null);Ya(t);break;case 19:var u=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(sn(e,t,a,!1),l=(a&t.childLanes)!==0),u){if(l)return gh(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),$(Ke,Ke.current),l)break;return null;case 22:return t.lanes=0,oh(e,t,a,t.pendingProps);case 24:La(t,Ve,e.memoizedState.cache)}return ba(e,t,a)}function bh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!oc(e,a)&&(t.flags&128)===0)return $e=!1,Wp(e,t,a);$e=(e.flags&131072)!==0}else $e=!1,pe&&(t.flags&1048576)!==0&&Wf(t,si,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Cl(t.elementType),t.type=e,typeof e=="function")yr(e)?(l=Al(e,l),t.tag=1,t=mh(null,t,e,l,a)):(t.tag=0,t=lc(null,t,e,l,a));else{if(e!=null){var u=e.$$typeof;if(u===X){t.tag=11,t=sh(null,t,e,l,a);break e}else if(u===Y){t.tag=14,t=rh(null,t,e,l,a);break e}}throw t=tt(e)||e,Error(c(306,t,""))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,u=Al(l,t.pendingProps),mh(e,t,l,u,a);case 3:e:{if(ft(t,t.stateNode.containerInfo),e===null)throw Error(c(387));l=t.pendingProps;var s=t.memoizedState;u=s.element,_r(e,t),yi(t,l,null,a);var o=t.memoizedState;if(l=o.cache,La(t,Ve,l),l!==s.cache&&Nr(t,[Ve],a,!0),mi(),l=o.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=yh(e,t,l,a);break e}else if(l!==u){u=Lt(Error(c(424)),t),ri(u),t=yh(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(De=Gt(e.firstChild),lt=t,pe=!0,qa=null,Qt=!0,a=od(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Sl(),l===u){t=ba(e,t,a);break e}it(e,t,l,a)}t=t.child}return t;case 26:return Gu(e,t),e===null?(a=_m(t.type,null,t.pendingProps,null))?t.memoizedState=a:pe||(a=t.type,e=t.pendingProps,l=us(fe.current).createElement(a),l[at]=t,l[mt]=e,ut(l,a,e),Pe(l),t.stateNode=l):t.memoizedState=_m(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Zn(t),e===null&&pe&&(l=t.stateNode=Rm(t.type,t.pendingProps,fe.current),lt=t,Qt=!0,u=De,Wa(t.type)?(Gc=u,De=Gt(l.firstChild)):De=u),it(e,t,t.pendingProps.children,a),Gu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&pe&&((u=l=De)&&(l=Rg(l,t.type,t.pendingProps,Qt),l!==null?(t.stateNode=l,lt=t,De=Gt(l.firstChild),Qt=!1,u=!0):u=!1),u||Ha(t)),Zn(t),u=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,l=s.children,Lc(u,s)?l=null:o!==null&&Lc(u,o)&&(t.flags|=32),t.memoizedState!==null&&(u=Hr(e,t,Yp,null,null,a),Ui._currentValue=u),Gu(e,t),it(e,t,l,a),t.child;case 6:return e===null&&pe&&((e=a=De)&&(a=zg(a,t.pendingProps,Qt),a!==null?(t.stateNode=a,lt=t,De=null,e=!0):e=!1),e||Ha(t)),null;case 13:return vh(e,t,a);case 4:return ft(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Rl(t,null,l,a):it(e,t,l,a),t.child;case 11:return sh(e,t,t.type,t.pendingProps,a);case 7:return it(e,t,t.pendingProps,a),t.child;case 8:return it(e,t,t.pendingProps.children,a),t.child;case 12:return it(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,La(t,t.type,l.value),it(e,t,l.children,a),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,jl(t),u=nt(u),l=l(u),t.flags|=1,it(e,t,l,a),t.child;case 14:return rh(e,t,t.type,t.pendingProps,a);case 15:return ch(e,t,t.type,t.pendingProps,a);case 19:return gh(e,t,a);case 31:return Fp(e,t,a);case 22:return oh(e,t,a,t.pendingProps);case 24:return jl(t),l=nt(Ve),e===null?(u=Rr(),u===null&&(u=Me,s=Cr(),u.pooledCache=s,s.refCount++,s!==null&&(u.pooledCacheLanes|=a),u=s),t.memoizedState={parent:l,cache:u},Ar(t),La(t,Ve,u)):((e.lanes&a)!==0&&(_r(e,t),yi(t,null,null,a),mi()),u=e.memoizedState,s=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),La(t,Ve,l)):(l=s.cache,La(t,Ve,l),l!==u.cache&&Nr(t,[Ve],a,!0))),it(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function xa(e){e.flags|=4}function fc(e,t,a,l,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Zh())e.flags|=8192;else throw Tl=zu,zr}else e.flags&=-16777217}function xh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Um(t))if(Zh())e.flags|=8192;else throw Tl=zu,zr}function Ku(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Po():536870912,e.lanes|=t,bn|=t)}function Si(e,t){if(!pe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Pp(e,t,a){var l=t.pendingProps;switch(br(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),va(Ve),Xe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(un(t)?xa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Sr())),Ue(t),null;case 26:var u=t.type,s=t.memoizedState;return e===null?(xa(t),s!==null?(Ue(t),xh(t,s)):(Ue(t),fc(t,u,null,l,a))):s?s!==e.memoizedState?(xa(t),Ue(t),xh(t,s)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&xa(t),Ue(t),fc(t,u,e,l,a)),null;case 27:if(au(t),a=fe.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&xa(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return Ue(t),null}e=ee.current,un(t)?If(t):(e=Rm(u,l,a),t.stateNode=e,xa(t))}return Ue(t),null;case 5:if(au(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&xa(t);else{if(!l){if(t.stateNode===null)throw Error(c(166));return Ue(t),null}if(s=ee.current,un(t))If(t);else{var o=us(fe.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":s=o.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?o.createElement(u,{is:l.is}):o.createElement(u)}}s[at]=t,s[mt]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)s.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=s;e:switch(ut(s,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&xa(t)}}return Ue(t),fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&xa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(c(166));if(e=fe.current,un(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,u=lt,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[at]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||vm(e.nodeValue,a)),e||Ha(t,!0)}else e=us(e).createTextNode(l),e[at]=t,t.stateNode=e}return Ue(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=un(t),a!==null){if(e===null){if(!l)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[at]=t}else Sl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else a=Sr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(At(t),t):(At(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Ue(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=un(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(c(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(c(317));u[at]=t}else Sl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),u=!1}else u=Sr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(At(t),t):(At(t),null)}return At(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==u&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ku(t,t.updateQueue),Ue(t),null);case 4:return Xe(),e===null&&Oc(t.stateNode.containerInfo),Ue(t),null;case 10:return va(t.type),Ue(t),null;case 19:if(B(Ke),l=t.memoizedState,l===null)return Ue(t),null;if(u=(t.flags&128)!==0,s=l.rendering,s===null)if(u)Si(l,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Mu(e),s!==null){for(t.flags|=128,Si(l,!1),e=s.updateQueue,t.updateQueue=e,Ku(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Jf(a,e),a=a.sibling;return $(Ke,Ke.current&1|2),pe&&ma(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&jt()>Fu&&(t.flags|=128,u=!0,Si(l,!1),t.lanes=4194304)}else{if(!u)if(e=Mu(s),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Ku(t,e),Si(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!pe)return Ue(t),null}else 2*jt()-l.renderingStartTime>Fu&&a!==536870912&&(t.flags|=128,u=!0,Si(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=jt(),e.sibling=null,a=Ke.current,$(Ke,u?a&1|2:a&1),pe&&ma(t,l.treeForkCount),e):(Ue(t),null);case 22:case 23:return At(t),Dr(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),a=t.updateQueue,a!==null&&Ku(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&B(Nl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),va(Ve),Ue(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Ip(e,t){switch(br(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return va(Ve),Xe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return au(t),null;case 31:if(t.memoizedState!==null){if(At(t),t.alternate===null)throw Error(c(340));Sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(At(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Sl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Ke),null;case 4:return Xe(),null;case 10:return va(t.type),null;case 22:case 23:return At(t),Dr(),e!==null&&B(Nl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return va(Ve),null;case 25:return null;default:return null}}function Sh(e,t){switch(br(t),t.tag){case 3:va(Ve),Xe();break;case 26:case 27:case 5:au(t);break;case 4:Xe();break;case 31:t.memoizedState!==null&&At(t);break;case 13:At(t);break;case 19:B(Ke);break;case 10:va(t.type);break;case 22:case 23:At(t),Dr(),e!==null&&B(Nl);break;case 24:va(Ve)}}function Ei(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&e)===e){l=void 0;var s=a.create,o=a.inst;l=s(),o.destroy=l}a=a.next}while(a!==u)}}catch(m){Te(t,t.return,m)}}function Xa(e,t,a){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var s=u.next;l=s;do{if((l.tag&e)===e){var o=l.inst,m=o.destroy;if(m!==void 0){o.destroy=void 0,u=t;var b=a,z=m;try{z()}catch(U){Te(u,b,U)}}}l=l.next}while(l!==s)}}catch(U){Te(t,t.return,U)}}function Eh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{dd(t,a)}catch(l){Te(e,e.return,l)}}}function jh(e,t,a){a.props=Al(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Te(e,t,l)}}function ji(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(u){Te(e,t,u)}}function ia(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){Te(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Te(e,t,u)}else a.current=null}function Nh(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){Te(e,e.return,u)}}function dc(e,t,a){try{var l=e.stateNode;Sg(l,e.type,a,t),l[mt]=t}catch(u){Te(e,e.return,u)}}function Ch(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wa(e.type)||e.tag===4}function hc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ch(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.tag===27&&Wa(e.type)||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 mc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=fa));else if(l!==4&&(l===27&&Wa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(mc(e,t,a),e=e.sibling;e!==null;)mc(e,t,a),e=e.sibling}function Zu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Wa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Zu(e,t,a),e=e.sibling;e!==null;)Zu(e,t,a),e=e.sibling}function Th(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ut(t,l,a),t[at]=e,t[mt]=a}catch(s){Te(e,e.return,s)}}var Sa=!1,Fe=!1,yc=!1,Rh=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function eg(e,t){if(e=e.containerInfo,qc=hs,e=kf(e),rr(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var o=0,m=-1,b=-1,z=0,U=0,k=e,A=null;t:for(;;){for(var M;k!==a||u!==0&&k.nodeType!==3||(m=o+u),k!==s||l!==0&&k.nodeType!==3||(b=o+l),k.nodeType===3&&(o+=k.nodeValue.length),(M=k.firstChild)!==null;)A=k,k=M;for(;;){if(k===e)break t;if(A===a&&++z===u&&(m=o),A===s&&++U===l&&(b=o),(M=k.nextSibling)!==null)break;k=A,A=k.parentNode}k=M}a=m===-1||b===-1?null:{start:m,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(Hc={focusedElem:e,selectionRange:a},hs=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,a=t,u=s.memoizedProps,s=s.memoizedState,l=a.stateNode;try{var P=Al(a.type,u);e=l.getSnapshotBeforeUpdate(P,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(ne){Te(a,a.return,ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Bc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function zh(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ja(e,a),l&4&&Ei(5,a);break;case 1:if(ja(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){Te(a,a.return,o)}else{var u=Al(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Te(a,a.return,o)}}l&64&&Eh(a),l&512&&ji(a,a.return);break;case 3:if(ja(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{dd(e,t)}catch(o){Te(a,a.return,o)}}break;case 27:t===null&&l&4&&Th(a);case 26:case 5:ja(e,a),t===null&&l&4&&Nh(a),l&512&&ji(a,a.return);break;case 12:ja(e,a);break;case 31:ja(e,a),l&4&&wh(e,a);break;case 13:ja(e,a),l&4&&Mh(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=cg.bind(null,a),Ag(e,a))));break;case 22:if(l=a.memoizedState!==null||Sa,!l){t=t!==null&&t.memoizedState!==null||Fe,u=Sa;var s=Fe;Sa=l,(Fe=t)&&!s?Na(e,a,(a.subtreeFlags&8772)!==0):ja(e,a),Sa=u,Fe=s}break;case 30:break;default:ja(e,a)}}function Ah(e){var t=e.alternate;t!==null&&(e.alternate=null,Ah(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ks(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var He=null,vt=!1;function Ea(e,t,a){for(a=a.child;a!==null;)_h(e,t,a),a=a.sibling}function _h(e,t,a){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Vn,a)}catch{}switch(a.tag){case 26:Fe||ia(a,t),Ea(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Fe||ia(a,t);var l=He,u=vt;Wa(a.type)&&(He=a.stateNode,vt=!1),Ea(e,t,a),Mi(a.stateNode),He=l,vt=u;break;case 5:Fe||ia(a,t);case 6:if(l=He,u=vt,He=null,Ea(e,t,a),He=l,vt=u,He!==null)if(vt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(a.stateNode)}catch(s){Te(a,t,s)}else try{He.removeChild(a.stateNode)}catch(s){Te(a,t,s)}break;case 18:He!==null&&(vt?(e=He,Em(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Rn(e)):Em(He,a.stateNode));break;case 4:l=He,u=vt,He=a.stateNode.containerInfo,vt=!0,Ea(e,t,a),He=l,vt=u;break;case 0:case 11:case 14:case 15:Xa(2,a,t),Fe||Xa(4,a,t),Ea(e,t,a);break;case 1:Fe||(ia(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&jh(a,t,l)),Ea(e,t,a);break;case 21:Ea(e,t,a);break;case 22:Fe=(l=Fe)||a.memoizedState!==null,Ea(e,t,a),Fe=l;break;default:Ea(e,t,a)}}function wh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Rn(e)}catch(a){Te(t,t.return,a)}}}function Mh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Rn(e)}catch(a){Te(t,t.return,a)}}function tg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Rh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Rh),t;default:throw Error(c(435,e.tag))}}function Vu(e,t){var a=tg(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var u=og.bind(null,e,l);l.then(u,u)}})}function pt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var u=a[l],s=e,o=t,m=o;e:for(;m!==null;){switch(m.tag){case 27:if(Wa(m.type)){He=m.stateNode,vt=!1;break e}break;case 5:He=m.stateNode,vt=!1;break e;case 3:case 4:He=m.stateNode.containerInfo,vt=!0;break e}m=m.return}if(He===null)throw Error(c(160));_h(s,o,u),He=null,vt=!1,s=u.alternate,s!==null&&(s.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Oh(t,e),t=t.sibling}var Pt=null;function Oh(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:pt(t,e),gt(e),l&4&&(Xa(3,e,e.return),Ei(3,e),Xa(5,e,e.return));break;case 1:pt(t,e),gt(e),l&512&&(Fe||a===null||ia(a,a.return)),l&64&&Sa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var u=Pt;if(pt(t,e),gt(e),l&512&&(Fe||a===null||ia(a,a.return)),l&4){var s=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":s=u.getElementsByTagName("title")[0],(!s||s[Fn]||s[at]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=u.createElement(l),u.head.insertBefore(s,u.querySelector("head > title"))),ut(s,l,a),s[at]=e,Pe(s),l=s;break e;case"link":var o=Om("link","href",u).get(l+(a.href||""));if(o){for(var m=0;m<o.length;m++)if(s=o[m],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(m,1);break t}}s=u.createElement(l),ut(s,l,a),u.head.appendChild(s);break;case"meta":if(o=Om("meta","content",u).get(l+(a.content||""))){for(m=0;m<o.length;m++)if(s=o[m],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(m,1);break t}}s=u.createElement(l),ut(s,l,a),u.head.appendChild(s);break;default:throw Error(c(468,l))}s[at]=e,Pe(s),l=s}e.stateNode=l}else Dm(u,e.type,e.stateNode);else e.stateNode=Mm(u,l,e.memoizedProps);else s!==l?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,l===null?Dm(u,e.type,e.stateNode):Mm(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&dc(e,e.memoizedProps,a.memoizedProps)}break;case 27:pt(t,e),gt(e),l&512&&(Fe||a===null||ia(a,a.return)),a!==null&&l&4&&dc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(pt(t,e),gt(e),l&512&&(Fe||a===null||ia(a,a.return)),e.flags&32){u=e.stateNode;try{$l(u,"")}catch(P){Te(e,e.return,P)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,dc(e,u,a!==null?a.memoizedProps:u)),l&1024&&(yc=!0);break;case 6:if(pt(t,e),gt(e),l&4){if(e.stateNode===null)throw Error(c(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(P){Te(e,e.return,P)}}break;case 3:if(cs=null,u=Pt,Pt=ss(t.containerInfo),pt(t,e),Pt=u,gt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Rn(t.containerInfo)}catch(P){Te(e,e.return,P)}yc&&(yc=!1,Dh(e));break;case 4:l=Pt,Pt=ss(e.stateNode.containerInfo),pt(t,e),gt(e),Pt=l;break;case 12:pt(t,e),gt(e);break;case 31:pt(t,e),gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Vu(e,l)));break;case 13:pt(t,e),gt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&($u=jt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Vu(e,l)));break;case 22:u=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,z=Sa,U=Fe;if(Sa=z||u,Fe=U||b,pt(t,e),Fe=U,Sa=z,gt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||b||Sa||Fe||_l(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){b=a=t;try{if(s=b.stateNode,u)o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{m=b.stateNode;var k=b.memoizedProps.style,A=k!=null&&k.hasOwnProperty("display")?k.display:null;m.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(P){Te(b,b.return,P)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=u?"":b.memoizedProps}catch(P){Te(b,b.return,P)}}}else if(t.tag===18){if(a===null){b=t;try{var M=b.stateNode;u?jm(M,!0):jm(b.stateNode,!1)}catch(P){Te(b,b.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Vu(e,a))));break;case 19:pt(t,e),gt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Vu(e,l)));break;case 30:break;case 21:break;default:pt(t,e),gt(e)}}function gt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Ch(l)){a=l;break}l=l.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var u=a.stateNode,s=hc(e);Zu(e,s,u);break;case 5:var o=a.stateNode;a.flags&32&&($l(o,""),a.flags&=-33);var m=hc(e);Zu(e,m,o);break;case 3:case 4:var b=a.stateNode.containerInfo,z=hc(e);mc(e,z,b);break;default:throw Error(c(161))}}catch(U){Te(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Dh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Dh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ja(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)zh(e,t.alternate,t),t=t.sibling}function _l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Xa(4,t,t.return),_l(t);break;case 1:ia(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&jh(t,t.return,a),_l(t);break;case 27:Mi(t.stateNode);case 26:case 5:ia(t,t.return),_l(t);break;case 22:t.memoizedState===null&&_l(t);break;case 30:_l(t);break;default:_l(t)}e=e.sibling}}function Na(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,s=t,o=s.flags;switch(s.tag){case 0:case 11:case 15:Na(u,s,a),Ei(4,s);break;case 1:if(Na(u,s,a),l=s,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(z){Te(l,l.return,z)}if(l=s,u=l.updateQueue,u!==null){var m=l.stateNode;try{var b=u.shared.hiddenCallbacks;if(b!==null)for(u.shared.hiddenCallbacks=null,u=0;u<b.length;u++)fd(b[u],m)}catch(z){Te(l,l.return,z)}}a&&o&64&&Eh(s),ji(s,s.return);break;case 27:Th(s);case 26:case 5:Na(u,s,a),a&&l===null&&o&4&&Nh(s),ji(s,s.return);break;case 12:Na(u,s,a);break;case 31:Na(u,s,a),a&&o&4&&wh(u,s);break;case 13:Na(u,s,a),a&&o&4&&Mh(u,s);break;case 22:s.memoizedState===null&&Na(u,s,a),ji(s,s.return);break;case 30:break;default:Na(u,s,a)}t=t.sibling}}function vc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ci(a))}function pc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e))}function It(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Uh(e,t,a,l),t=t.sibling}function Uh(e,t,a,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:It(e,t,a,l),u&2048&&Ei(9,t);break;case 1:It(e,t,a,l);break;case 3:It(e,t,a,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e)));break;case 12:if(u&2048){It(e,t,a,l),e=t.stateNode;try{var s=t.memoizedProps,o=s.id,m=s.onPostCommit;typeof m=="function"&&m(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Te(t,t.return,b)}}else It(e,t,a,l);break;case 31:It(e,t,a,l);break;case 13:It(e,t,a,l);break;case 23:break;case 22:s=t.stateNode,o=t.alternate,t.memoizedState!==null?s._visibility&2?It(e,t,a,l):Ni(e,t):s._visibility&2?It(e,t,a,l):(s._visibility|=2,vn(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),u&2048&&vc(o,t);break;case 24:It(e,t,a,l),u&2048&&pc(t.alternate,t);break;default:It(e,t,a,l)}}function vn(e,t,a,l,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,o=t,m=a,b=l,z=o.flags;switch(o.tag){case 0:case 11:case 15:vn(s,o,m,b,u),Ei(8,o);break;case 23:break;case 22:var U=o.stateNode;o.memoizedState!==null?U._visibility&2?vn(s,o,m,b,u):Ni(s,o):(U._visibility|=2,vn(s,o,m,b,u)),u&&z&2048&&vc(o.alternate,o);break;case 24:vn(s,o,m,b,u),u&&z&2048&&pc(o.alternate,o);break;default:vn(s,o,m,b,u)}t=t.sibling}}function Ni(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,u=l.flags;switch(l.tag){case 22:Ni(a,l),u&2048&&vc(l.alternate,l);break;case 24:Ni(a,l),u&2048&&pc(l.alternate,l);break;default:Ni(a,l)}t=t.sibling}}var Ci=8192;function pn(e,t,a){if(e.subtreeFlags&Ci)for(e=e.child;e!==null;)qh(e,t,a),e=e.sibling}function qh(e,t,a){switch(e.tag){case 26:pn(e,t,a),e.flags&Ci&&e.memoizedState!==null&&Qg(a,Pt,e.memoizedState,e.memoizedProps);break;case 5:pn(e,t,a);break;case 3:case 4:var l=Pt;Pt=ss(e.stateNode.containerInfo),pn(e,t,a),Pt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Ci,Ci=16777216,pn(e,t,a),Ci=l):pn(e,t,a));break;default:pn(e,t,a)}}function Hh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ti(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ie=l,kh(l,e)}Hh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Lh(e),e=e.sibling}function Lh(e){switch(e.tag){case 0:case 11:case 15:Ti(e),e.flags&2048&&Xa(9,e,e.return);break;case 3:Ti(e);break;case 12:Ti(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ju(e)):Ti(e);break;default:Ti(e)}}function Ju(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ie=l,kh(l,e)}Hh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xa(8,t,t.return),Ju(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ju(t));break;default:Ju(t)}e=e.sibling}}function kh(e,t){for(;Ie!==null;){var a=Ie;switch(a.tag){case 0:case 11:case 15:Xa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ci(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Ie=l;else e:for(a=e;Ie!==null;){l=Ie;var u=l.sibling,s=l.return;if(Ah(l),l===a){Ie=null;break e}if(u!==null){u.return=s,Ie=u;break e}Ie=s}}}var ag={getCacheForType:function(e){var t=nt(Ve),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return nt(Ve).controller.signal}},lg=typeof WeakMap=="function"?WeakMap:Map,Se=0,Me=null,de=null,me=0,Ce=0,_t=null,Ka=!1,gn=!1,gc=!1,Ca=0,Ye=0,Za=0,wl=0,bc=0,wt=0,bn=0,Ri=null,bt=null,xc=!1,$u=0,Bh=0,Fu=1/0,Wu=null,Va=null,We=0,Ja=null,xn=null,Ta=0,Sc=0,Ec=null,Qh=null,zi=0,jc=null;function Mt(){return(Se&2)!==0&&me!==0?me&-me:q.T!==null?Ac():af()}function Yh(){if(wt===0)if((me&536870912)===0||pe){var e=iu;iu<<=1,(iu&3932160)===0&&(iu=262144),wt=e}else wt=536870912;return e=zt.current,e!==null&&(e.flags|=32),wt}function xt(e,t,a){(e===Me&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(Sn(e,0),$a(e,me,wt,!1)),$n(e,a),((Se&2)===0||e!==Me)&&(e===Me&&((Se&2)===0&&(wl|=a),Ye===4&&$a(e,me,wt,!1)),ua(e))}function Gh(e,t,a){if((Se&6)!==0)throw Error(c(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Jn(e,t),u=l?ug(e,t):Cc(e,t,!0),s=l;do{if(u===0){gn&&!l&&$a(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!ng(a)){u=Cc(e,t,!1),s=!1;continue}if(u===2){if(s=t,e.errorRecoveryDisabledLanes&s)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var m=e;u=Ri;var b=m.current.memoizedState.isDehydrated;if(b&&(Sn(m,o).flags|=256),o=Cc(m,o,!1),o!==2){if(gc&&!b){m.errorRecoveryDisabledLanes|=s,wl|=s,u=4;break e}s=bt,bt=u,s!==null&&(bt===null?bt=s:bt.push.apply(bt,s))}u=o}if(s=!1,u!==2)continue}}if(u===1){Sn(e,0),$a(e,t,0,!0);break}e:{switch(l=e,s=u,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:$a(l,t,wt,!Ka);break e;case 2:bt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(u=$u+300-jt(),10<u)){if($a(l,t,wt,!Ka),su(l,0,!0)!==0)break e;Ta=t,l.timeoutHandle=xm(Xh.bind(null,l,a,bt,Wu,xc,t,wt,wl,bn,Ka,s,"Throttled",-0,0),u);break e}Xh(l,a,bt,Wu,xc,t,wt,wl,bn,Ka,s,null,-0,0)}}break}while(!0);ua(e)}function Xh(e,t,a,l,u,s,o,m,b,z,U,k,A,M){if(e.timeoutHandle=-1,k=t.subtreeFlags,k&8192||(k&16785408)===16785408){k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fa},qh(t,s,k);var P=(s&62914560)===s?$u-jt():(s&4194048)===s?Bh-jt():0;if(P=Yg(k,P),P!==null){Ta=s,e.cancelPendingCommit=P(Ph.bind(null,e,t,s,a,l,u,o,m,b,U,k,null,A,M)),$a(e,s,o,!z);return}}Ph(e,t,s,a,l,u,o,m,b)}function ng(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var u=a[l],s=u.getSnapshot;u=u.value;try{if(!Tt(s(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 $a(e,t,a,l){t&=~bc,t&=~wl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var s=31-Ct(u),o=1<<s;l[s]=-1,u&=~o}a!==0&&Io(e,a,t)}function Pu(){return(Se&6)===0?(Ai(0),!1):!0}function Nc(){if(de!==null){if(Ce===0)var e=de.return;else e=de,ya=El=null,Br(e),fn=null,fi=0,e=de;for(;e!==null;)Sh(e.alternate,e),e=e.return;de=null}}function Sn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Ng(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Ta=0,Nc(),Me=e,de=a=ha(e.current,null),me=t,Ce=0,_t=null,Ka=!1,gn=Jn(e,t),gc=!1,bn=wt=bc=wl=Za=Ye=0,bt=Ri=null,xc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-Ct(l),s=1<<u;t|=e[u],l&=~s}return Ca=t,bu(),a}function Kh(e,t){ce=null,q.H=bi,t===on||t===Ru?(t=sd(),Ce=3):t===zr?(t=sd(),Ce=4):Ce=t===ac?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,_t=t,de===null&&(Ye=1,Qu(e,Lt(t,e.current)))}function Zh(){var e=zt.current;return e===null?!0:(me&4194048)===me?Yt===null:(me&62914560)===me||(me&536870912)!==0?e===Yt:!1}function Vh(){var e=q.H;return q.H=bi,e===null?bi:e}function Jh(){var e=q.A;return q.A=ag,e}function Iu(){Ye=4,Ka||(me&4194048)!==me&&zt.current!==null||(gn=!0),(Za&134217727)===0&&(wl&134217727)===0||Me===null||$a(Me,me,wt,!1)}function Cc(e,t,a){var l=Se;Se|=2;var u=Vh(),s=Jh();(Me!==e||me!==t)&&(Wu=null,Sn(e,t)),t=!1;var o=Ye;e:do try{if(Ce!==0&&de!==null){var m=de,b=_t;switch(Ce){case 8:Nc(),o=6;break e;case 3:case 2:case 9:case 6:zt.current===null&&(t=!0);var z=Ce;if(Ce=0,_t=null,En(e,m,b,z),a&&gn){o=0;break e}break;default:z=Ce,Ce=0,_t=null,En(e,m,b,z)}}ig(),o=Ye;break}catch(U){Kh(e,U)}while(!0);return t&&e.shellSuspendCounter++,ya=El=null,Se=l,q.H=u,q.A=s,de===null&&(Me=null,me=0,bu()),o}function ig(){for(;de!==null;)$h(de)}function ug(e,t){var a=Se;Se|=2;var l=Vh(),u=Jh();Me!==e||me!==t?(Wu=null,Fu=jt()+500,Sn(e,t)):gn=Jn(e,t);e:do try{if(Ce!==0&&de!==null){t=de;var s=_t;t:switch(Ce){case 1:Ce=0,_t=null,En(e,t,s,1);break;case 2:case 9:if(id(s)){Ce=0,_t=null,Fh(t);break}t=function(){Ce!==2&&Ce!==9||Me!==e||(Ce=7),ua(e)},s.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:id(s)?(Ce=0,_t=null,Fh(t)):(Ce=0,_t=null,En(e,t,s,7));break;case 5:var o=null;switch(de.tag){case 26:o=de.memoizedState;case 5:case 27:var m=de;if(o?Um(o):m.stateNode.complete){Ce=0,_t=null;var b=m.sibling;if(b!==null)de=b;else{var z=m.return;z!==null?(de=z,es(z)):de=null}break t}}Ce=0,_t=null,En(e,t,s,5);break;case 6:Ce=0,_t=null,En(e,t,s,6);break;case 8:Nc(),Ye=6;break e;default:throw Error(c(462))}}sg();break}catch(U){Kh(e,U)}while(!0);return ya=El=null,q.H=l,q.A=u,Se=a,de!==null?0:(Me=null,me=0,bu(),Ye)}function sg(){for(;de!==null&&!_v();)$h(de)}function $h(e){var t=bh(e.alternate,e,Ca);e.memoizedProps=e.pendingProps,t===null?es(e):de=t}function Fh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=hh(a,t,t.pendingProps,t.type,void 0,me);break;case 11:t=hh(a,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Br(t);default:Sh(a,t),t=de=Jf(t,Ca),t=bh(a,t,Ca)}e.memoizedProps=e.pendingProps,t===null?es(e):de=t}function En(e,t,a,l){ya=El=null,Br(t),fn=null,fi=0;var u=t.return;try{if($p(e,u,t,a,me)){Ye=1,Qu(e,Lt(a,e.current)),de=null;return}}catch(s){if(u!==null)throw de=u,s;Ye=1,Qu(e,Lt(a,e.current)),de=null;return}t.flags&32768?(pe||l===1?e=!0:gn||(me&536870912)!==0?e=!1:(Ka=e=!0,(l===2||l===9||l===3||l===6)&&(l=zt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Wh(t,e)):es(t)}function es(e){var t=e;do{if((t.flags&32768)!==0){Wh(t,Ka);return}e=t.return;var a=Pp(t.alternate,t,Ca);if(a!==null){de=a;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Ye===0&&(Ye=5)}function Wh(e,t){do{var a=Ip(e.alternate,e);if(a!==null){a.flags&=32767,de=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=a}while(e!==null);Ye=6,de=null}function Ph(e,t,a,l,u,s,o,m,b){e.cancelPendingCommit=null;do ts();while(We!==0);if((Se&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(s=t.lanes|t.childLanes,s|=hr,Bv(e,a,s,o,m,b),e===Me&&(de=Me=null,me=0),xn=t,Ja=e,Ta=a,Sc=s,Ec=u,Qh=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,fg(lu,function(){return lm(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=q.T,q.T=null,u=J.p,J.p=2,o=Se,Se|=4;try{eg(e,t,a)}finally{Se=o,J.p=u,q.T=l}}We=1,Ih(),em(),tm()}}function Ih(){if(We===1){We=0;var e=Ja,t=xn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=q.T,q.T=null;var l=J.p;J.p=2;var u=Se;Se|=4;try{Oh(t,e);var s=Hc,o=kf(e.containerInfo),m=s.focusedElem,b=s.selectionRange;if(o!==m&&m&&m.ownerDocument&&Lf(m.ownerDocument.documentElement,m)){if(b!==null&&rr(m)){var z=b.start,U=b.end;if(U===void 0&&(U=z),"selectionStart"in m)m.selectionStart=z,m.selectionEnd=Math.min(U,m.value.length);else{var k=m.ownerDocument||document,A=k&&k.defaultView||window;if(A.getSelection){var M=A.getSelection(),P=m.textContent.length,ne=Math.min(b.start,P),_e=b.end===void 0?ne:Math.min(b.end,P);!M.extend&&ne>_e&&(o=_e,_e=ne,ne=o);var C=Hf(m,ne),x=Hf(m,_e);if(C&&x&&(M.rangeCount!==1||M.anchorNode!==C.node||M.anchorOffset!==C.offset||M.focusNode!==x.node||M.focusOffset!==x.offset)){var R=k.createRange();R.setStart(C.node,C.offset),M.removeAllRanges(),ne>_e?(M.addRange(R),M.extend(x.node,x.offset)):(R.setEnd(x.node,x.offset),M.addRange(R))}}}}for(k=[],M=m;M=M.parentNode;)M.nodeType===1&&k.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<k.length;m++){var L=k[m];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}hs=!!qc,Hc=qc=null}finally{Se=u,J.p=l,q.T=a}}e.current=t,We=2}}function em(){if(We===2){We=0;var e=Ja,t=xn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=q.T,q.T=null;var l=J.p;J.p=2;var u=Se;Se|=4;try{zh(e,t.alternate,t)}finally{Se=u,J.p=l,q.T=a}}We=3}}function tm(){if(We===4||We===3){We=0,wv();var e=Ja,t=xn,a=Ta,l=Qh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,xn=Ja=null,am(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Va=null),Gs(a),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Vn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=q.T,u=J.p,J.p=2,q.T=null;try{for(var s=e.onRecoverableError,o=0;o<l.length;o++){var m=l[o];s(m.value,{componentStack:m.stack})}}finally{q.T=t,J.p=u}}(Ta&3)!==0&&ts(),ua(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===jc?zi++:(zi=0,jc=e):zi=0,Ai(0)}}function am(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ci(t)))}function ts(){return Ih(),em(),tm(),lm()}function lm(){if(We!==5)return!1;var e=Ja,t=Sc;Sc=0;var a=Gs(Ta),l=q.T,u=J.p;try{J.p=32>a?32:a,q.T=null,a=Ec,Ec=null;var s=Ja,o=Ta;if(We=0,xn=Ja=null,Ta=0,(Se&6)!==0)throw Error(c(331));var m=Se;if(Se|=4,Lh(s.current),Uh(s,s.current,o,a),Se=m,Ai(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Vn,s)}catch{}return!0}finally{J.p=u,q.T=l,am(e,t)}}function nm(e,t,a){t=Lt(a,t),t=tc(e.stateNode,t,2),e=Qa(e,t,2),e!==null&&($n(e,2),ua(e))}function Te(e,t,a){if(e.tag===3)nm(e,e,a);else for(;t!==null;){if(t.tag===3){nm(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Va===null||!Va.has(l))){e=Lt(a,e),a=ih(2),l=Qa(t,a,2),l!==null&&(uh(a,l,t,e),$n(l,2),ua(l));break}}t=t.return}}function Tc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new lg;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(a)||(gc=!0,u.add(a),e=rg.bind(null,e,t,a),t.then(e,e))}function rg(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Me===e&&(me&a)===a&&(Ye===4||Ye===3&&(me&62914560)===me&&300>jt()-$u?(Se&2)===0&&Sn(e,0):bc|=a,bn===me&&(bn=0)),ua(e)}function im(e,t){t===0&&(t=Po()),e=bl(e,t),e!==null&&($n(e,t),ua(e))}function cg(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),im(e,a)}function og(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(t),im(e,a)}function fg(e,t){return ks(e,t)}var as=null,jn=null,Rc=!1,ls=!1,zc=!1,Fa=0;function ua(e){e!==jn&&e.next===null&&(jn===null?as=jn=e:jn=jn.next=e),ls=!0,Rc||(Rc=!0,hg())}function Ai(e,t){if(!zc&&ls){zc=!0;do for(var a=!1,l=as;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var s=0;else{var o=l.suspendedLanes,m=l.pingedLanes;s=(1<<31-Ct(42|e)+1)-1,s&=u&~(o&~m),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,cm(l,s))}else s=me,s=su(l,l===Me?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||Jn(l,s)||(a=!0,cm(l,s));l=l.next}while(a);zc=!1}}function dg(){um()}function um(){ls=Rc=!1;var e=0;Fa!==0&&jg()&&(e=Fa);for(var t=jt(),a=null,l=as;l!==null;){var u=l.next,s=sm(l,t);s===0?(l.next=null,a===null?as=u:a.next=u,u===null&&(jn=a)):(a=l,(e!==0||(s&3)!==0)&&(ls=!0)),l=u}We!==0&&We!==5||Ai(e),Fa!==0&&(Fa=0)}function sm(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var o=31-Ct(s),m=1<<o,b=u[o];b===-1?((m&a)===0||(m&l)!==0)&&(u[o]=kv(m,t)):b<=t&&(e.expiredLanes|=m),s&=~m}if(t=Me,a=me,a=su(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Bs(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Jn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Bs(l),Gs(a)){case 2:case 8:a=Fo;break;case 32:a=lu;break;case 268435456:a=Wo;break;default:a=lu}return l=rm.bind(null,e),a=ks(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Bs(l),e.callbackPriority=2,e.callbackNode=null,2}function rm(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ts()&&e.callbackNode!==a)return null;var l=me;return l=su(e,e===Me?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Gh(e,l,t),sm(e,jt()),e.callbackNode!=null&&e.callbackNode===a?rm.bind(null,e):null)}function cm(e,t){if(ts())return null;Gh(e,t,!0)}function hg(){Cg(function(){(Se&6)!==0?ks($o,dg):um()})}function Ac(){if(Fa===0){var e=rn;e===0&&(e=nu,nu<<=1,(nu&261888)===0&&(nu=256)),Fa=e}return Fa}function om(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fu(""+e)}function fm(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function mg(e,t,a,l,u){if(t==="submit"&&a&&a.stateNode===u){var s=om((u[mt]||null).action),o=l.submitter;o&&(t=(t=o[mt]||null)?om(t.formAction):o.getAttribute("formAction"),t!==null&&(s=t,o=null));var m=new yu("action","action",null,l,u);e.push({event:m,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Fa!==0){var b=o?fm(u,o):new FormData(u);$r(a,{pending:!0,data:b,method:u.method,action:s},null,b)}}else typeof s=="function"&&(m.preventDefault(),b=o?fm(u,o):new FormData(u),$r(a,{pending:!0,data:b,method:u.method,action:s},s,b))},currentTarget:u}]})}}for(var _c=0;_c<dr.length;_c++){var wc=dr[_c],yg=wc.toLowerCase(),vg=wc[0].toUpperCase()+wc.slice(1);Wt(yg,"on"+vg)}Wt(Yf,"onAnimationEnd"),Wt(Gf,"onAnimationIteration"),Wt(Xf,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(Mp,"onTransitionRun"),Wt(Op,"onTransitionStart"),Wt(Dp,"onTransitionCancel"),Wt(Kf,"onTransitionEnd"),Vl("onMouseEnter",["mouseout","mouseover"]),Vl("onMouseLeave",["mouseout","mouseover"]),Vl("onPointerEnter",["pointerout","pointerover"]),Vl("onPointerLeave",["pointerout","pointerover"]),yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),yl("onBeforeInput",["compositionend","keypress","textInput","paste"]),yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _i="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(" "),pg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_i));function dm(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],u=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var o=l.length-1;0<=o;o--){var m=l[o],b=m.instance,z=m.currentTarget;if(m=m.listener,b!==s&&u.isPropagationStopped())break e;s=m,u.currentTarget=z;try{s(u)}catch(U){gu(U)}u.currentTarget=null,s=b}else for(o=0;o<l.length;o++){if(m=l[o],b=m.instance,z=m.currentTarget,m=m.listener,b!==s&&u.isPropagationStopped())break e;s=m,u.currentTarget=z;try{s(u)}catch(U){gu(U)}u.currentTarget=null,s=b}}}}function he(e,t){var a=t[Xs];a===void 0&&(a=t[Xs]=new Set);var l=e+"__bubble";a.has(l)||(hm(t,e,2,!1),a.add(l))}function Mc(e,t,a){var l=0;t&&(l|=4),hm(a,e,l,t)}var ns="_reactListening"+Math.random().toString(36).slice(2);function Oc(e){if(!e[ns]){e[ns]=!0,uf.forEach(function(a){a!=="selectionchange"&&(pg.has(a)||Mc(a,!1,e),Mc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ns]||(t[ns]=!0,Mc("selectionchange",!1,t))}}function hm(e,t,a,l){switch(Ym(t)){case 2:var u=Kg;break;case 8:u=Zg;break;default:u=Jc}a=u.bind(null,t,a,e),u=void 0,!Is||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function Dc(e,t,a,l,u){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var m=l.stateNode.containerInfo;if(m===u)break;if(o===4)for(o=l.return;o!==null;){var b=o.tag;if((b===3||b===4)&&o.stateNode.containerInfo===u)return;o=o.return}for(;m!==null;){if(o=Xl(m),o===null)return;if(b=o.tag,b===5||b===6||b===26||b===27){l=s=o;continue e}m=m.parentNode}}l=l.return}gf(function(){var z=s,U=Ws(a),k=[];e:{var A=Zf.get(e);if(A!==void 0){var M=yu,P=e;switch(e){case"keypress":if(hu(a)===0)break e;case"keydown":case"keyup":M=op;break;case"focusin":P="focus",M=lr;break;case"focusout":P="blur",M=lr;break;case"beforeblur":case"afterblur":M=lr;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=Sf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Pv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=hp;break;case Yf:case Gf:case Xf:M=tp;break;case Kf:M=yp;break;case"scroll":case"scrollend":M=Fv;break;case"wheel":M=pp;break;case"copy":case"cut":case"paste":M=lp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=jf;break;case"toggle":case"beforetoggle":M=bp}var ne=(t&4)!==0,_e=!ne&&(e==="scroll"||e==="scrollend"),C=ne?A!==null?A+"Capture":null:A;ne=[];for(var x=z,R;x!==null;){var L=x;if(R=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||R===null||C===null||(L=Pn(x,C),L!=null&&ne.push(wi(x,L,R))),_e)break;x=x.return}0<ne.length&&(A=new M(A,P,null,a,U),k.push({event:A,listeners:ne}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",A&&a!==Fs&&(P=a.relatedTarget||a.fromElement)&&(Xl(P)||P[Gl]))break e;if((M||A)&&(A=U.window===U?U:(A=U.ownerDocument)?A.defaultView||A.parentWindow:window,M?(P=a.relatedTarget||a.toElement,M=z,P=P?Xl(P):null,P!==null&&(_e=h(P),ne=P.tag,P!==_e||ne!==5&&ne!==27&&ne!==6)&&(P=null)):(M=null,P=z),M!==P)){if(ne=Sf,L="onMouseLeave",C="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(ne=jf,L="onPointerLeave",C="onPointerEnter",x="pointer"),_e=M==null?A:Wn(M),R=P==null?A:Wn(P),A=new ne(L,x+"leave",M,a,U),A.target=_e,A.relatedTarget=R,L=null,Xl(U)===z&&(ne=new ne(C,x+"enter",P,a,U),ne.target=R,ne.relatedTarget=_e,L=ne),_e=L,M&&P)t:{for(ne=gg,C=M,x=P,R=0,L=C;L;L=ne(L))R++;L=0;for(var ae=x;ae;ae=ne(ae))L++;for(;0<R-L;)C=ne(C),R--;for(;0<L-R;)x=ne(x),L--;for(;R--;){if(C===x||x!==null&&C===x.alternate){ne=C;break t}C=ne(C),x=ne(x)}ne=null}else ne=null;M!==null&&mm(k,A,M,ne,!1),P!==null&&_e!==null&&mm(k,_e,P,ne,!0)}}e:{if(A=z?Wn(z):window,M=A.nodeName&&A.nodeName.toLowerCase(),M==="select"||M==="input"&&A.type==="file")var be=wf;else if(Af(A))if(Mf)be=Ap;else{be=Rp;var te=Tp}else M=A.nodeName,!M||M.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?z&&$s(z.elementType)&&(be=wf):be=zp;if(be&&(be=be(e,z))){_f(k,be,a,U);break e}te&&te(e,A,z),e==="focusout"&&z&&A.type==="number"&&z.memoizedProps.value!=null&&Js(A,"number",A.value)}switch(te=z?Wn(z):window,e){case"focusin":(Af(te)||te.contentEditable==="true")&&(Il=te,cr=z,ui=null);break;case"focusout":ui=cr=Il=null;break;case"mousedown":or=!0;break;case"contextmenu":case"mouseup":case"dragend":or=!1,Bf(k,a,U);break;case"selectionchange":if(wp)break;case"keydown":case"keyup":Bf(k,a,U)}var oe;if(ir)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Pl?Rf(e,a)&&(ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ye="onCompositionStart");ye&&(Nf&&a.locale!=="ko"&&(Pl||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Pl&&(oe=bf()):(Da=U,er="value"in Da?Da.value:Da.textContent,Pl=!0)),te=is(z,ye),0<te.length&&(ye=new Ef(ye,e,null,a,U),k.push({event:ye,listeners:te}),oe?ye.data=oe:(oe=zf(a),oe!==null&&(ye.data=oe)))),(oe=Sp?Ep(e,a):jp(e,a))&&(ye=is(z,"onBeforeInput"),0<ye.length&&(te=new Ef("onBeforeInput","beforeinput",null,a,U),k.push({event:te,listeners:ye}),te.data=oe)),mg(k,e,z,a,U)}dm(k,t)})}function wi(e,t,a){return{instance:e,listener:t,currentTarget:a}}function is(e,t){for(var a=t+"Capture",l=[];e!==null;){var u=e,s=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||s===null||(u=Pn(e,a),u!=null&&l.unshift(wi(e,u,s)),u=Pn(e,t),u!=null&&l.push(wi(e,u,s))),e.tag===3)return l;e=e.return}return[]}function gg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function mm(e,t,a,l,u){for(var s=t._reactName,o=[];a!==null&&a!==l;){var m=a,b=m.alternate,z=m.stateNode;if(m=m.tag,b!==null&&b===l)break;m!==5&&m!==26&&m!==27||z===null||(b=z,u?(z=Pn(a,s),z!=null&&o.unshift(wi(a,z,b))):u||(z=Pn(a,s),z!=null&&o.push(wi(a,z,b)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var bg=/\r\n?/g,xg=/\u0000|\uFFFD/g;function ym(e){return(typeof e=="string"?e:""+e).replace(bg,`
|
|
49
|
-
`).replace(xg,"")}function vm(e,t){return t=ym(t),ym(e)===t}function Ae(e,t,a,l,u,s){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||$l(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&$l(e,""+l);break;case"className":cu(e,"class",l);break;case"tabIndex":cu(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":cu(e,a,l);break;case"style":vf(e,l,s);break;case"data":if(t!=="object"){cu(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=fu(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(a==="formAction"?(t!=="input"&&Ae(e,t,"name",u.name,u,null),Ae(e,t,"formEncType",u.formEncType,u,null),Ae(e,t,"formMethod",u.formMethod,u,null),Ae(e,t,"formTarget",u.formTarget,u,null)):(Ae(e,t,"encType",u.encType,u,null),Ae(e,t,"method",u.method,u,null),Ae(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=fu(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=fa);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=fu(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),ru(e,"popover",l);break;case"xlinkActuate":oa(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":oa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":oa(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":oa(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":oa(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":oa(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":oa(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":oa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":oa(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ru(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Jv.get(a)||a,ru(e,a,l))}}function Uc(e,t,a,l,u,s){switch(a){case"style":vf(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(c(60));e.innerHTML=a}}break;case"children":typeof l=="string"?$l(e,l):(typeof l=="number"||typeof l=="bigint")&&$l(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=fa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),s=e[mt]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,u),typeof l=="function")){typeof s!="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,u);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):ru(e,a,l)}}}function ut(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,u=!1,s;for(s in a)if(a.hasOwnProperty(s)){var o=a[s];if(o!=null)switch(s){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ae(e,t,s,o,a,null)}}u&&Ae(e,t,"srcSet",a.srcSet,a,null),l&&Ae(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var m=s=o=u=null,b=null,z=null;for(l in a)if(a.hasOwnProperty(l)){var U=a[l];if(U!=null)switch(l){case"name":u=U;break;case"type":o=U;break;case"checked":b=U;break;case"defaultChecked":z=U;break;case"value":s=U;break;case"defaultValue":m=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(c(137,t));break;default:Ae(e,t,l,U,a,null)}}df(e,s,m,b,z,o,u,!1);return;case"select":he("invalid",e),l=o=s=null;for(u in a)if(a.hasOwnProperty(u)&&(m=a[u],m!=null))switch(u){case"value":s=m;break;case"defaultValue":o=m;break;case"multiple":l=m;default:Ae(e,t,u,m,a,null)}t=s,a=o,e.multiple=!!l,t!=null?Jl(e,!!l,t,!1):a!=null&&Jl(e,!!l,a,!0);return;case"textarea":he("invalid",e),s=u=l=null;for(o in a)if(a.hasOwnProperty(o)&&(m=a[o],m!=null))switch(o){case"value":l=m;break;case"defaultValue":u=m;break;case"children":s=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(c(91));break;default:Ae(e,t,o,m,a,null)}mf(e,l,u,s);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(l=a[b],l!=null))switch(b){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ae(e,t,b,l,a,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<_i.length;l++)he(_i[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in a)if(a.hasOwnProperty(z)&&(l=a[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Ae(e,t,z,l,a,null)}return;default:if($s(t)){for(U in a)a.hasOwnProperty(U)&&(l=a[U],l!==void 0&&Uc(e,t,U,l,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(l=a[m],l!=null&&Ae(e,t,m,l,a,null))}function Sg(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,s=null,o=null,m=null,b=null,z=null,U=null;for(M in a){var k=a[M];if(a.hasOwnProperty(M)&&k!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":b=k;default:l.hasOwnProperty(M)||Ae(e,t,M,null,l,k)}}for(var A in l){var M=l[A];if(k=a[A],l.hasOwnProperty(A)&&(M!=null||k!=null))switch(A){case"type":s=M;break;case"name":u=M;break;case"checked":z=M;break;case"defaultChecked":U=M;break;case"value":o=M;break;case"defaultValue":m=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,t));break;default:M!==k&&Ae(e,t,A,M,l,k)}}Vs(e,o,m,b,z,U,s,u);return;case"select":M=o=m=A=null;for(s in a)if(b=a[s],a.hasOwnProperty(s)&&b!=null)switch(s){case"value":break;case"multiple":M=b;default:l.hasOwnProperty(s)||Ae(e,t,s,null,l,b)}for(u in l)if(s=l[u],b=a[u],l.hasOwnProperty(u)&&(s!=null||b!=null))switch(u){case"value":A=s;break;case"defaultValue":m=s;break;case"multiple":o=s;default:s!==b&&Ae(e,t,u,s,l,b)}t=m,a=o,l=M,A!=null?Jl(e,!!a,A,!1):!!l!=!!a&&(t!=null?Jl(e,!!a,t,!0):Jl(e,!!a,a?[]:"",!1));return;case"textarea":M=A=null;for(m in a)if(u=a[m],a.hasOwnProperty(m)&&u!=null&&!l.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Ae(e,t,m,null,l,u)}for(o in l)if(u=l[o],s=a[o],l.hasOwnProperty(o)&&(u!=null||s!=null))switch(o){case"value":A=u;break;case"defaultValue":M=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(c(91));break;default:u!==s&&Ae(e,t,o,u,l,s)}hf(e,A,M);return;case"option":for(var P in a)if(A=a[P],a.hasOwnProperty(P)&&A!=null&&!l.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:Ae(e,t,P,null,l,A)}for(b in l)if(A=l[b],M=a[b],l.hasOwnProperty(b)&&A!==M&&(A!=null||M!=null))switch(b){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Ae(e,t,b,A,l,M)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ne in a)A=a[ne],a.hasOwnProperty(ne)&&A!=null&&!l.hasOwnProperty(ne)&&Ae(e,t,ne,null,l,A);for(z in l)if(A=l[z],M=a[z],l.hasOwnProperty(z)&&A!==M&&(A!=null||M!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,t));break;default:Ae(e,t,z,A,l,M)}return;default:if($s(t)){for(var _e in a)A=a[_e],a.hasOwnProperty(_e)&&A!==void 0&&!l.hasOwnProperty(_e)&&Uc(e,t,_e,void 0,l,A);for(U in l)A=l[U],M=a[U],!l.hasOwnProperty(U)||A===M||A===void 0&&M===void 0||Uc(e,t,U,A,l,M);return}}for(var C in a)A=a[C],a.hasOwnProperty(C)&&A!=null&&!l.hasOwnProperty(C)&&Ae(e,t,C,null,l,A);for(k in l)A=l[k],M=a[k],!l.hasOwnProperty(k)||A===M||A==null&&M==null||Ae(e,t,k,A,l,M)}function pm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Eg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var u=a[l],s=u.transferSize,o=u.initiatorType,m=u.duration;if(s&&m&&pm(o)){for(o=0,m=u.responseEnd,l+=1;l<a.length;l++){var b=a[l],z=b.startTime;if(z>m)break;var U=b.transferSize,k=b.initiatorType;U&&pm(k)&&(b=b.responseEnd,o+=U*(b<m?1:(m-z)/(b-z)))}if(--l,t+=8*(s+o)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var qc=null,Hc=null;function us(e){return e.nodeType===9?e:e.ownerDocument}function gm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function bm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Lc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var kc=null;function jg(){var e=window.event;return e&&e.type==="popstate"?e===kc?!1:(kc=e,!0):(kc=null,!1)}var xm=typeof setTimeout=="function"?setTimeout:void 0,Ng=typeof clearTimeout=="function"?clearTimeout:void 0,Sm=typeof Promise=="function"?Promise:void 0,Cg=typeof queueMicrotask=="function"?queueMicrotask:typeof Sm<"u"?function(e){return Sm.resolve(null).then(e).catch(Tg)}:xm;function Tg(e){setTimeout(function(){throw e})}function Wa(e){return e==="head"}function Em(e,t){var a=t,l=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(u),Rn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Mi(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Mi(a);for(var s=a.firstChild;s;){var o=s.nextSibling,m=s.nodeName;s[Fn]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=o}}else a==="body"&&Mi(e.ownerDocument.body);a=u}while(a);Rn(t)}function jm(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Bc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Bc(a),Ks(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Rg(e,t,a,l){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Fn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Gt(e.nextSibling),e===null)break}return null}function zg(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Gt(e.nextSibling),e===null))return null;return e}function Nm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gt(e.nextSibling),e===null))return null;return e}function Qc(e){return e.data==="$?"||e.data==="$~"}function Yc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Ag(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Gt(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Gc=null;function Cm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Gt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Tm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Rm(e,t,a){switch(t=us(a),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Mi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ks(e)}var Xt=new Map,zm=new Set;function ss(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ra=J.d;J.d={f:_g,r:wg,D:Mg,C:Og,L:Dg,m:Ug,X:Hg,S:qg,M:Lg};function _g(){var e=Ra.f(),t=Pu();return e||t}function wg(e){var t=Kl(e);t!==null&&t.tag===5&&t.type==="form"?Kd(t):Ra.r(e)}var Nn=typeof document>"u"?null:document;function Am(e,t,a){var l=Nn;if(l&&typeof t=="string"&&t){var u=qt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),zm.has(u)||(zm.add(u),e={rel:e,crossOrigin:a,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),ut(t,"link",e),Pe(t),l.head.appendChild(t)))}}function Mg(e){Ra.D(e),Am("dns-prefetch",e,null)}function Og(e,t){Ra.C(e,t),Am("preconnect",e,t)}function Dg(e,t,a){Ra.L(e,t,a);var l=Nn;if(l&&e&&t){var u='link[rel="preload"][as="'+qt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+qt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+qt(a.imageSizes)+'"]')):u+='[href="'+qt(e)+'"]';var s=u;switch(t){case"style":s=Cn(e);break;case"script":s=Tn(e)}Xt.has(s)||(e=S({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Xt.set(s,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(Oi(s))||t==="script"&&l.querySelector(Di(s))||(t=l.createElement("link"),ut(t,"link",e),Pe(t),l.head.appendChild(t)))}}function Ug(e,t){Ra.m(e,t);var a=Nn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+qt(l)+'"][href="'+qt(e)+'"]',s=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Tn(e)}if(!Xt.has(s)&&(e=S({rel:"modulepreload",href:e},t),Xt.set(s,e),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Di(s)))return}l=a.createElement("link"),ut(l,"link",e),Pe(l),a.head.appendChild(l)}}}function qg(e,t,a){Ra.S(e,t,a);var l=Nn;if(l&&e){var u=Zl(l).hoistableStyles,s=Cn(e);t=t||"default";var o=u.get(s);if(!o){var m={loading:0,preload:null};if(o=l.querySelector(Oi(s)))m.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Xt.get(s))&&Xc(e,a);var b=o=l.createElement("link");Pe(b),ut(b,"link",e),b._p=new Promise(function(z,U){b.onload=z,b.onerror=U}),b.addEventListener("load",function(){m.loading|=1}),b.addEventListener("error",function(){m.loading|=2}),m.loading|=4,rs(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:m},u.set(s,o)}}}function Hg(e,t){Ra.X(e,t);var a=Nn;if(a&&e){var l=Zl(a).hoistableScripts,u=Tn(e),s=l.get(u);s||(s=a.querySelector(Di(u)),s||(e=S({src:e,async:!0},t),(t=Xt.get(u))&&Kc(e,t),s=a.createElement("script"),Pe(s),ut(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(u,s))}}function Lg(e,t){Ra.M(e,t);var a=Nn;if(a&&e){var l=Zl(a).hoistableScripts,u=Tn(e),s=l.get(u);s||(s=a.querySelector(Di(u)),s||(e=S({src:e,async:!0,type:"module"},t),(t=Xt.get(u))&&Kc(e,t),s=a.createElement("script"),Pe(s),ut(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(u,s))}}function _m(e,t,a,l){var u=(u=fe.current)?ss(u):null;if(!u)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Cn(a.href),a=Zl(u).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Cn(a.href);var s=Zl(u).hoistableStyles,o=s.get(e);if(o||(u=u.ownerDocument||u,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,o),(s=u.querySelector(Oi(e)))&&!s._p&&(o.instance=s,o.state.loading=5),Xt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Xt.set(e,a),s||kg(u,e,a,o.state))),t&&l===null)throw Error(c(528,""));return o}if(t&&l!==null)throw Error(c(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Tn(a),a=Zl(u).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Cn(e){return'href="'+qt(e)+'"'}function Oi(e){return'link[rel="stylesheet"]['+e+"]"}function wm(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function kg(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ut(t,"link",a),Pe(t),e.head.appendChild(t))}function Tn(e){return'[src="'+qt(e)+'"]'}function Di(e){return"script[async]"+e}function Mm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+qt(a.href)+'"]');if(l)return t.instance=l,Pe(l),l;var u=S({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Pe(l),ut(l,"style",u),rs(l,a.precedence,e),t.instance=l;case"stylesheet":u=Cn(a.href);var s=e.querySelector(Oi(u));if(s)return t.state.loading|=4,t.instance=s,Pe(s),s;l=wm(a),(u=Xt.get(u))&&Xc(l,u),s=(e.ownerDocument||e).createElement("link"),Pe(s);var o=s;return o._p=new Promise(function(m,b){o.onload=m,o.onerror=b}),ut(s,"link",l),t.state.loading|=4,rs(s,a.precedence,e),t.instance=s;case"script":return s=Tn(a.src),(u=e.querySelector(Di(s)))?(t.instance=u,Pe(u),u):(l=a,(u=Xt.get(s))&&(l=S({},a),Kc(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),Pe(u),ut(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,rs(l,a.precedence,e));return t.instance}function rs(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,s=u,o=0;o<l.length;o++){var m=l[o];if(m.dataset.precedence===t)s=m;else if(s!==u)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Xc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var cs=null;function Om(e,t,a){if(cs===null){var l=new Map,u=cs=new Map;u.set(a,l)}else u=cs,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var s=a[u];if(!(s[Fn]||s[at]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var o=s.getAttribute(t)||"";o=e+o;var m=l.get(o);m?m.push(s):l.set(o,[s])}}return l}function Dm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Bg(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Um(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Qg(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Cn(l.href),s=t.querySelector(Oi(u));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=os.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,Pe(s);return}s=t.ownerDocument||t,l=wm(l),(u=Xt.get(u))&&Xc(l,u),s=s.createElement("link"),Pe(s);var o=s;o._p=new Promise(function(m,b){o.onload=m,o.onerror=b}),ut(s,"link",l),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=os.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Zc=0;function Yg(e,t){return e.stylesheets&&e.count===0&&ds(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&ds(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Zc===0&&(Zc=62500*Eg());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ds(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Zc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function os(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ds(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var fs=null;function ds(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fs=new Map,t.forEach(Gg,e),fs=null,os.call(e))}function Gg(e,t){if(!(t.state.loading&4)){var a=fs.get(e);if(a)var l=a.get(null);else{a=new Map,fs.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<u.length;s++){var o=u[s];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}u=t.instance,o=u.getAttribute("data-precedence"),s=a.get(o)||l,s===l&&a.set(null,u),a.set(o,u),this.count++,l=os.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),s?s.parentNode.insertBefore(u,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Ui={$$typeof:G,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function Xg(e,t,a,l,u,s,o,m,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qs(0),this.hiddenUpdates=Qs(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function qm(e,t,a,l,u,s,o,m,b,z,U,k){return e=new Xg(e,t,a,o,b,z,U,k,m),t=1,s===!0&&(t|=24),s=Rt(3,null,null,t),e.current=s,s.stateNode=e,t=Cr(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:a,cache:t},Ar(s),e}function Hm(e){return e?(e=an,e):an}function Lm(e,t,a,l,u,s){u=Hm(u),l.context===null?l.context=u:l.pendingContext=u,l=Ba(t),l.payload={element:a},s=s===void 0?null:s,s!==null&&(l.callback=s),a=Qa(e,l,t),a!==null&&(xt(a,e,t),hi(a,e,t))}function km(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Vc(e,t){km(e,t),(e=e.alternate)&&km(e,t)}function Bm(e){if(e.tag===13||e.tag===31){var t=bl(e,67108864);t!==null&&xt(t,e,67108864),Vc(e,67108864)}}function Qm(e){if(e.tag===13||e.tag===31){var t=Mt();t=Ys(t);var a=bl(e,t);a!==null&&xt(a,e,t),Vc(e,t)}}var hs=!0;function Kg(e,t,a,l){var u=q.T;q.T=null;var s=J.p;try{J.p=2,Jc(e,t,a,l)}finally{J.p=s,q.T=u}}function Zg(e,t,a,l){var u=q.T;q.T=null;var s=J.p;try{J.p=8,Jc(e,t,a,l)}finally{J.p=s,q.T=u}}function Jc(e,t,a,l){if(hs){var u=$c(l);if(u===null)Dc(e,t,l,ms,a),Gm(e,l);else if(Jg(u,e,t,a,l))l.stopPropagation();else if(Gm(e,l),t&4&&-1<Vg.indexOf(e)){for(;u!==null;){var s=Kl(u);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=ml(s.pendingLanes);if(o!==0){var m=s;for(m.pendingLanes|=2,m.entangledLanes|=2;o;){var b=1<<31-Ct(o);m.entanglements[1]|=b,o&=~b}ua(s),(Se&6)===0&&(Fu=jt()+500,Ai(0))}}break;case 31:case 13:m=bl(s,2),m!==null&&xt(m,s,2),Pu(),Vc(s,2)}if(s=$c(l),s===null&&Dc(e,t,l,ms,a),s===u)break;u=s}u!==null&&l.stopPropagation()}else Dc(e,t,l,null,a)}}function $c(e){return e=Ws(e),Fc(e)}var ms=null;function Fc(e){if(ms=null,e=Xl(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ms=e,null}function Ym(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Mv()){case $o:return 2;case Fo:return 8;case lu:case Ov:return 32;case Wo:return 268435456;default:return 32}default:return 32}}var Wc=!1,Pa=null,Ia=null,el=null,qi=new Map,Hi=new Map,tl=[],Vg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Gm(e,t){switch(e){case"focusin":case"focusout":Pa=null;break;case"dragenter":case"dragleave":Ia=null;break;case"mouseover":case"mouseout":el=null;break;case"pointerover":case"pointerout":qi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hi.delete(t.pointerId)}}function Li(e,t,a,l,u,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:s,targetContainers:[u]},t!==null&&(t=Kl(t),t!==null&&Bm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Jg(e,t,a,l,u){switch(t){case"focusin":return Pa=Li(Pa,e,t,a,l,u),!0;case"dragenter":return Ia=Li(Ia,e,t,a,l,u),!0;case"mouseover":return el=Li(el,e,t,a,l,u),!0;case"pointerover":var s=u.pointerId;return qi.set(s,Li(qi.get(s)||null,e,t,a,l,u)),!0;case"gotpointercapture":return s=u.pointerId,Hi.set(s,Li(Hi.get(s)||null,e,t,a,l,u)),!0}return!1}function Xm(e){var t=Xl(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,lf(e.priority,function(){Qm(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,lf(e.priority,function(){Qm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ys(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=$c(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Fs=l,a.target.dispatchEvent(l),Fs=null}else return t=Kl(a),t!==null&&Bm(t),e.blockedOn=a,!1;t.shift()}return!0}function Km(e,t,a){ys(e)&&a.delete(t)}function $g(){Wc=!1,Pa!==null&&ys(Pa)&&(Pa=null),Ia!==null&&ys(Ia)&&(Ia=null),el!==null&&ys(el)&&(el=null),qi.forEach(Km),Hi.forEach(Km)}function vs(e,t){e.blockedOn===t&&(e.blockedOn=null,Wc||(Wc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,$g)))}var ps=null;function Zm(e){ps!==e&&(ps=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ps===e&&(ps=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(Fc(l||a)===null)continue;break}var s=Kl(a);s!==null&&(e.splice(t,3),t-=3,$r(s,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function Rn(e){function t(b){return vs(b,e)}Pa!==null&&vs(Pa,e),Ia!==null&&vs(Ia,e),el!==null&&vs(el,e),qi.forEach(t),Hi.forEach(t);for(var a=0;a<tl.length;a++){var l=tl[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<tl.length&&(a=tl[0],a.blockedOn===null);)Xm(a),a.blockedOn===null&&tl.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],s=a[l+1],o=u[mt]||null;if(typeof s=="function")o||Zm(a);else if(o){var m=null;if(s&&s.hasAttribute("formAction")){if(u=s,o=s[mt]||null)m=o.formAction;else if(Fc(u)!==null)continue}else m=o.action;typeof m=="function"?a[l+1]=m:(a.splice(l,3),l-=3),Zm(a)}}}function Vm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(o){return u=o})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function Pc(e){this._internalRoot=e}gs.prototype.render=Pc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var a=t.current,l=Mt();Lm(a,l,e,t,null,null)},gs.prototype.unmount=Pc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lm(e.current,2,null,e,null,null),Pu(),t[Gl]=null}};function gs(e){this._internalRoot=e}gs.prototype.unstable_scheduleHydration=function(e){if(e){var t=af();e={blockedOn:null,target:e,priority:t};for(var a=0;a<tl.length&&t!==0&&t<tl[a].priority;a++);tl.splice(a,0,e),a===0&&Xm(e)}};var Jm=i.version;if(Jm!=="19.2.5")throw Error(c(527,Jm,"19.2.5"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=y(t),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var Fg={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bs.isDisabled&&bs.supportsFiber)try{Vn=bs.inject(Fg),Nt=bs}catch{}}return Bi.createRoot=function(e,t){if(!d(e))throw Error(c(299));var a=!1,l="",u=th,s=ah,o=lh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=qm(e,1,!1,null,null,a,l,null,u,s,o,Vm),e[Gl]=t.current,Oc(e),new Pc(t)},Bi.hydrateRoot=function(e,t,a){if(!d(e))throw Error(c(299));var l=!1,u="",s=th,o=ah,m=lh,b=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=qm(e,1,!0,t,a??null,l,u,b,s,o,m,Vm),t.context=Hm(null),a=t.current,l=Mt(),l=Ys(l),u=Ba(l),u.callback=null,Qa(a,u,l),a=l,t.current.lanes=a,$n(t,a),ua(t),e[Gl]=t.current,Oc(e),new gs(t)},Bi.version="19.2.5",Bi}var uy;function r0(){if(uy)return ao.exports;uy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),ao.exports=s0(),ao.exports}var c0=r0(),Pi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dl,nl,zn,_y,o0=(_y=class extends Pi{constructor(){super();ie(this,Dl);ie(this,nl);ie(this,zn);F(this,zn,i=>{if(typeof window<"u"&&window.addEventListener){const r=()=>i();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){E(this,nl)||this.setEventListener(E(this,zn))}onUnsubscribe(){var i;this.hasListeners()||((i=E(this,nl))==null||i.call(this),F(this,nl,void 0))}setEventListener(i){var r;F(this,zn,i),(r=E(this,nl))==null||r.call(this),F(this,nl,i(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(i){E(this,Dl)!==i&&(F(this,Dl,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(r=>{r(i)})}isFocused(){var i;return typeof E(this,Dl)=="boolean"?E(this,Dl):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Dl=new WeakMap,nl=new WeakMap,zn=new WeakMap,_y),_o=new o0,f0={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},il,zo,wy,d0=(wy=class{constructor(){ie(this,il,f0);ie(this,zo,!1)}setTimeoutProvider(n){F(this,il,n)}setTimeout(n,i){return E(this,il).setTimeout(n,i)}clearTimeout(n){E(this,il).clearTimeout(n)}setInterval(n,i){return E(this,il).setInterval(n,i)}clearInterval(n){E(this,il).clearInterval(n)}},il=new WeakMap,zo=new WeakMap,wy),Ol=new d0;function h0(n){setTimeout(n,0)}var m0=typeof window>"u"||"Deno"in globalThis;function Et(){}function y0(n,i){return typeof n=="function"?n(i):n}function oo(n){return typeof n=="number"&&n>=0&&n!==1/0}function By(n,i){return Math.max(n+(i||0)-Date.now(),0)}function dl(n,i){return typeof n=="function"?n(i):n}function Vt(n,i){return typeof n=="function"?n(i):n}function sy(n,i){const{type:r="all",exact:c,fetchStatus:d,predicate:h,queryKey:v,stale:g}=n;if(v){if(c){if(i.queryHash!==wo(v,i.options))return!1}else if(!Xi(i.queryKey,v))return!1}if(r!=="all"){const p=i.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof g=="boolean"&&i.isStale()!==g||d&&d!==i.state.fetchStatus||h&&!h(i))}function ry(n,i){const{exact:r,status:c,predicate:d,mutationKey:h}=n;if(h){if(!i.options.mutationKey)return!1;if(r){if(Gi(i.options.mutationKey)!==Gi(h))return!1}else if(!Xi(i.options.mutationKey,h))return!1}return!(c&&i.state.status!==c||d&&!d(i))}function wo(n,i){return((i==null?void 0:i.queryKeyHashFn)||Gi)(n)}function Gi(n){return JSON.stringify(n,(i,r)=>ho(r)?Object.keys(r).sort().reduce((c,d)=>(c[d]=r[d],c),{}):r)}function Xi(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(r=>Xi(n[r],i[r])):!1}var v0=Object.prototype.hasOwnProperty;function Qy(n,i,r=0){if(n===i)return n;if(r>500)return i;const c=cy(n)&&cy(i);if(!c&&!(ho(n)&&ho(i)))return i;const h=(c?n:Object.keys(n)).length,v=c?i:Object.keys(i),g=v.length,p=c?new Array(g):{};let y=0;for(let T=0;T<g;T++){const S=c?T:v[T],w=n[S],O=i[S];if(w===O){p[S]=w,(c?T<h:v0.call(n,S))&&y++;continue}if(w===null||O===null||typeof w!="object"||typeof O!="object"){p[S]=O;continue}const Q=Qy(w,O,r+1);p[S]=Q,Q===w&&y++}return h===g&&y===h?n:p}function fo(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const r in n)if(n[r]!==i[r])return!1;return!0}function cy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function ho(n){if(!oy(n))return!1;const i=n.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!oy(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function oy(n){return Object.prototype.toString.call(n)==="[object Object]"}function p0(n){return new Promise(i=>{Ol.setTimeout(i,n)})}function mo(n,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,i):r.structuralSharing!==!1?Qy(n,i):i}function g0(n,i,r=0){const c=[...n,i];return r&&c.length>r?c.slice(1):c}function b0(n,i,r=0){const c=[i,...n];return r&&c.length>r?c.slice(0,-1):c}var Mo=Symbol();function Yy(n,i){return!n.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!n.queryFn||n.queryFn===Mo?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Gy(n,i){return typeof n=="function"?n(...i):!!n}function x0(n,i,r){let c=!1,d;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(d??(d=i()),c||(c=!0,d.aborted?r():d.addEventListener("abort",r,{once:!0})),d)}),n}var Ki=(()=>{let n=()=>m0;return{isServer(){return n()},setIsServer(i){n=i}}})();function yo(){let n,i;const r=new Promise((d,h)=>{n=d,i=h});r.status="pending",r.catch(()=>{});function c(d){Object.assign(r,d),delete r.resolve,delete r.reject}return r.resolve=d=>{c({status:"fulfilled",value:d}),n(d)},r.reject=d=>{c({status:"rejected",reason:d}),i(d)},r}var S0=h0;function E0(){let n=[],i=0,r=g=>{g()},c=g=>{g()},d=S0;const h=g=>{i?n.push(g):d(()=>{r(g)})},v=()=>{const g=n;n=[],g.length&&d(()=>{c(()=>{g.forEach(p=>{r(p)})})})};return{batch:g=>{let p;i++;try{p=g()}finally{i--,i||v()}return p},batchCalls:g=>(...p)=>{h(()=>{g(...p)})},schedule:h,setNotifyFunction:g=>{r=g},setBatchNotifyFunction:g=>{c=g},setScheduler:g=>{d=g}}}var st=E0(),An,ul,_n,My,j0=(My=class extends Pi{constructor(){super();ie(this,An,!0);ie(this,ul);ie(this,_n);F(this,_n,i=>{if(typeof window<"u"&&window.addEventListener){const r=()=>i(!0),c=()=>i(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",c)}}})}onSubscribe(){E(this,ul)||this.setEventListener(E(this,_n))}onUnsubscribe(){var i;this.hasListeners()||((i=E(this,ul))==null||i.call(this),F(this,ul,void 0))}setEventListener(i){var r;F(this,_n,i),(r=E(this,ul))==null||r.call(this),F(this,ul,i(this.setOnline.bind(this)))}setOnline(i){E(this,An)!==i&&(F(this,An,i),this.listeners.forEach(c=>{c(i)}))}isOnline(){return E(this,An)}},An=new WeakMap,ul=new WeakMap,_n=new WeakMap,My),Cs=new j0;function N0(n){return Math.min(1e3*2**n,3e4)}function Xy(n){return(n??"online")==="online"?Cs.isOnline():!0}var vo=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function Ky(n){let i=!1,r=0,c;const d=yo(),h=()=>d.status!=="pending",v=_=>{var H;if(!h()){const D=new vo(_);w(D),(H=n.onCancel)==null||H.call(n,D)}},g=()=>{i=!0},p=()=>{i=!1},y=()=>_o.isFocused()&&(n.networkMode==="always"||Cs.isOnline())&&n.canRun(),T=()=>Xy(n.networkMode)&&n.canRun(),S=_=>{h()||(c==null||c(),d.resolve(_))},w=_=>{h()||(c==null||c(),d.reject(_))},O=()=>new Promise(_=>{var H;c=D=>{(h()||y())&&_(D)},(H=n.onPause)==null||H.call(n)}).then(()=>{var _;c=void 0,h()||(_=n.onContinue)==null||_.call(n)}),Q=()=>{if(h())return;let _;const H=r===0?n.initialPromise:void 0;try{_=H??n.fn()}catch(D){_=Promise.reject(D)}Promise.resolve(_).then(S).catch(D=>{var le;if(h())return;const K=n.retry??(Ki.isServer()?0:3),G=n.retryDelay??N0,X=typeof G=="function"?G(r,D):G,V=K===!0||typeof K=="number"&&r<K||typeof K=="function"&&K(r,D);if(i||!V){w(D);return}r++,(le=n.onFail)==null||le.call(n,r,D),p0(X).then(()=>y()?void 0:O()).then(()=>{i?w(D):Q()})})};return{promise:d,status:()=>d.status,cancel:v,continue:()=>(c==null||c(),d),cancelRetry:g,continueRetry:p,canStart:T,start:()=>(T()?Q():O().then(Q),d)}}var Ul,Oy,Zy=(Oy=class{constructor(){ie(this,Ul)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),oo(this.gcTime)&&F(this,Ul,Ol.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ki.isServer()?1/0:300*1e3))}clearGcTimeout(){E(this,Ul)!==void 0&&(Ol.clearTimeout(E(this,Ul)),F(this,Ul,void 0))}},Ul=new WeakMap,Oy),ql,wn,Zt,Hl,et,Vi,Ll,Ot,Vy,za,Dy,C0=(Dy=class extends Zy{constructor(i){super();ie(this,Ot);ie(this,ql);ie(this,wn);ie(this,Zt);ie(this,Hl);ie(this,et);ie(this,Vi);ie(this,Ll);F(this,Ll,!1),F(this,Vi,i.defaultOptions),this.setOptions(i.options),this.observers=[],F(this,Hl,i.client),F(this,Zt,E(this,Hl).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,F(this,ql,dy(this.options)),this.state=i.state??E(this,ql),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=E(this,et))==null?void 0:i.promise}setOptions(i){if(this.options={...E(this,Vi),...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=dy(this.options);r.data!==void 0&&(this.setState(fy(r.data,r.dataUpdatedAt)),F(this,ql,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,Zt).remove(this)}setData(i,r){const c=mo(this.state.data,i,this.options);return ve(this,Ot,za).call(this,{data:c,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),c}setState(i,r){ve(this,Ot,za).call(this,{type:"setState",state:i,setStateOptions:r})}cancel(i){var c,d;const r=(c=E(this,et))==null?void 0:c.promise;return(d=E(this,et))==null||d.cancel(i),r?r.then(Et).catch(Et):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,ql)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>Vt(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mo||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>dl(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!By(this.state.dataUpdatedAt,i)}onFocus(){var r;const i=this.observers.find(c=>c.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(r=E(this,et))==null||r.continue()}onOnline(){var r;const i=this.observers.find(c=>c.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(r=E(this,et))==null||r.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),E(this,Zt).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(r=>r!==i),this.observers.length||(E(this,et)&&(E(this,Ll)||ve(this,Ot,Vy).call(this)?E(this,et).cancel({revert:!0}):E(this,et).cancelRetry()),this.scheduleGc()),E(this,Zt).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ve(this,Ot,za).call(this,{type:"invalidate"})}async fetch(i,r){var p,y,T,S,w,O,Q,_,H,D,K,G;if(this.state.fetchStatus!=="idle"&&((p=E(this,et))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(E(this,et))return E(this,et).continueRetry(),E(this,et).promise}if(i&&this.setOptions(i),!this.options.queryFn){const X=this.observers.find(V=>V.options.queryFn);X&&this.setOptions(X.options)}const c=new AbortController,d=X=>{Object.defineProperty(X,"signal",{enumerable:!0,get:()=>(F(this,Ll,!0),c.signal)})},h=()=>{const X=Yy(this.options,r),le=(()=>{const Y={client:E(this,Hl),queryKey:this.queryKey,meta:this.meta};return d(Y),Y})();return F(this,Ll,!1),this.options.persister?this.options.persister(X,le,this):X(le)},g=(()=>{const X={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:E(this,Hl),state:this.state,fetchFn:h};return d(X),X})();(y=this.options.behavior)==null||y.onFetch(g,this),F(this,wn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((T=g.fetchOptions)==null?void 0:T.meta))&&ve(this,Ot,za).call(this,{type:"fetch",meta:(S=g.fetchOptions)==null?void 0:S.meta}),F(this,et,Ky({initialPromise:r==null?void 0:r.initialPromise,fn:g.fetchFn,onCancel:X=>{X instanceof vo&&X.revert&&this.setState({...E(this,wn),fetchStatus:"idle"}),c.abort()},onFail:(X,V)=>{ve(this,Ot,za).call(this,{type:"failed",failureCount:X,error:V})},onPause:()=>{ve(this,Ot,za).call(this,{type:"pause"})},onContinue:()=>{ve(this,Ot,za).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const X=await E(this,et).start();if(X===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(X),(O=(w=E(this,Zt).config).onSuccess)==null||O.call(w,X,this),(_=(Q=E(this,Zt).config).onSettled)==null||_.call(Q,X,this.state.error,this),X}catch(X){if(X instanceof vo){if(X.silent)return E(this,et).promise;if(X.revert){if(this.state.data===void 0)throw X;return this.state.data}}throw ve(this,Ot,za).call(this,{type:"error",error:X}),(D=(H=E(this,Zt).config).onError)==null||D.call(H,X,this),(G=(K=E(this,Zt).config).onSettled)==null||G.call(K,this.state.data,X,this),X}finally{this.scheduleGc()}}},ql=new WeakMap,wn=new WeakMap,Zt=new WeakMap,Hl=new WeakMap,et=new WeakMap,Vi=new WeakMap,Ll=new WeakMap,Ot=new WeakSet,Vy=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},za=function(i){const r=c=>{switch(i.type){case"failed":return{...c,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...Jy(c.data,this.options),fetchMeta:i.meta??null};case"success":const d={...c,...fy(i.data,i.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return F(this,wn,i.manual?d:void 0),d;case"error":const h=i.error;return{...c,error:h,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...i.state}}};this.state=r(this.state),st.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),E(this,Zt).notify({query:this,type:"updated",action:i})})},Dy);function Jy(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Xy(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function fy(n,i){return{data:n,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function dy(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,r=i!==void 0,c=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var St,ge,Ji,ht,kl,Mn,Aa,sl,$i,On,Dn,Bl,Ql,rl,Un,Ne,Yi,po,go,bo,xo,So,Eo,jo,$y,Uy,T0=(Uy=class extends Pi{constructor(i,r){super();ie(this,Ne);ie(this,St);ie(this,ge);ie(this,Ji);ie(this,ht);ie(this,kl);ie(this,Mn);ie(this,Aa);ie(this,sl);ie(this,$i);ie(this,On);ie(this,Dn);ie(this,Bl);ie(this,Ql);ie(this,rl);ie(this,Un,new Set);this.options=r,F(this,St,i),F(this,sl,null),F(this,Aa,yo()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,ge).addObserver(this),hy(E(this,ge),this.options)?ve(this,Ne,Yi).call(this):this.updateResult(),ve(this,Ne,xo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return No(E(this,ge),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return No(E(this,ge),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ve(this,Ne,So).call(this),ve(this,Ne,Eo).call(this),E(this,ge).removeObserver(this)}setOptions(i){const r=this.options,c=E(this,ge);if(this.options=E(this,St).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Vt(this.options.enabled,E(this,ge))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ve(this,Ne,jo).call(this),E(this,ge).setOptions(this.options),r._defaulted&&!fo(this.options,r)&&E(this,St).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,ge),observer:this});const d=this.hasListeners();d&&my(E(this,ge),c,this.options,r)&&ve(this,Ne,Yi).call(this),this.updateResult(),d&&(E(this,ge)!==c||Vt(this.options.enabled,E(this,ge))!==Vt(r.enabled,E(this,ge))||dl(this.options.staleTime,E(this,ge))!==dl(r.staleTime,E(this,ge)))&&ve(this,Ne,po).call(this);const h=ve(this,Ne,go).call(this);d&&(E(this,ge)!==c||Vt(this.options.enabled,E(this,ge))!==Vt(r.enabled,E(this,ge))||h!==E(this,rl))&&ve(this,Ne,bo).call(this,h)}getOptimisticResult(i){const r=E(this,St).getQueryCache().build(E(this,St),i),c=this.createResult(r,i);return z0(this,c)&&(F(this,ht,c),F(this,Mn,this.options),F(this,kl,E(this,ge).state)),c}getCurrentResult(){return E(this,ht)}trackResult(i,r){return new Proxy(i,{get:(c,d)=>(this.trackProp(d),r==null||r(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,Aa).status==="pending"&&E(this,Aa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,d))})}trackProp(i){E(this,Un).add(i)}getCurrentQuery(){return E(this,ge)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const r=E(this,St).defaultQueryOptions(i),c=E(this,St).getQueryCache().build(E(this,St),r);return c.fetch().then(()=>this.createResult(c,r))}fetch(i){return ve(this,Ne,Yi).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,ht)))}createResult(i,r){var W;const c=E(this,ge),d=this.options,h=E(this,ht),v=E(this,kl),g=E(this,Mn),y=i!==c?i.state:E(this,Ji),{state:T}=i;let S={...T},w=!1,O;if(r._optimisticResults){const I=this.hasListeners(),ke=!I&&hy(i,r),qe=I&&my(i,c,r,d);(ke||qe)&&(S={...S,...Jy(T.data,i.options)}),r._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:Q,errorUpdatedAt:_,status:H}=S;O=S.data;let D=!1;if(r.placeholderData!==void 0&&O===void 0&&H==="pending"){let I;h!=null&&h.isPlaceholderData&&r.placeholderData===(g==null?void 0:g.placeholderData)?(I=h.data,D=!0):I=typeof r.placeholderData=="function"?r.placeholderData((W=E(this,Dn))==null?void 0:W.state.data,E(this,Dn)):r.placeholderData,I!==void 0&&(H="success",O=mo(h==null?void 0:h.data,I,r),w=!0)}if(r.select&&O!==void 0&&!D)if(h&&O===(v==null?void 0:v.data)&&r.select===E(this,$i))O=E(this,On);else try{F(this,$i,r.select),O=r.select(O),O=mo(h==null?void 0:h.data,O,r),F(this,On,O),F(this,sl,null)}catch(I){F(this,sl,I)}E(this,sl)&&(Q=E(this,sl),O=E(this,On),_=Date.now(),H="error");const K=S.fetchStatus==="fetching",G=H==="pending",X=H==="error",V=G&&K,le=O!==void 0,Z={status:H,fetchStatus:S.fetchStatus,isPending:G,isSuccess:H==="success",isError:X,isInitialLoading:V,isLoading:V,data:O,dataUpdatedAt:S.dataUpdatedAt,error:Q,errorUpdatedAt:_,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:S.dataUpdateCount>y.dataUpdateCount||S.errorUpdateCount>y.errorUpdateCount,isFetching:K,isRefetching:K&&!G,isLoadingError:X&&!le,isPaused:S.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:X&&le,isStale:Oo(i,r),refetch:this.refetch,promise:E(this,Aa),isEnabled:Vt(r.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const I=Z.data!==void 0,ke=Z.status==="error"&&!I,qe=Oe=>{ke?Oe.reject(Z.error):I&&Oe.resolve(Z.data)},Be=()=>{const Oe=F(this,Aa,Z.promise=yo());qe(Oe)},tt=E(this,Aa);switch(tt.status){case"pending":i.queryHash===c.queryHash&&qe(tt);break;case"fulfilled":(ke||Z.data!==tt.value)&&Be();break;case"rejected":(!ke||Z.error!==tt.reason)&&Be();break}}return Z}updateResult(){const i=E(this,ht),r=this.createResult(E(this,ge),this.options);if(F(this,kl,E(this,ge).state),F(this,Mn,this.options),E(this,kl).data!==void 0&&F(this,Dn,E(this,ge)),fo(r,i))return;F(this,ht,r);const c=()=>{if(!i)return!0;const{notifyOnChangeProps:d}=this.options,h=typeof d=="function"?d():d;if(h==="all"||!h&&!E(this,Un).size)return!0;const v=new Set(h??E(this,Un));return this.options.throwOnError&&v.add("error"),Object.keys(E(this,ht)).some(g=>{const p=g;return E(this,ht)[p]!==i[p]&&v.has(p)})};ve(this,Ne,$y).call(this,{listeners:c()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ve(this,Ne,xo).call(this)}},St=new WeakMap,ge=new WeakMap,Ji=new WeakMap,ht=new WeakMap,kl=new WeakMap,Mn=new WeakMap,Aa=new WeakMap,sl=new WeakMap,$i=new WeakMap,On=new WeakMap,Dn=new WeakMap,Bl=new WeakMap,Ql=new WeakMap,rl=new WeakMap,Un=new WeakMap,Ne=new WeakSet,Yi=function(i){ve(this,Ne,jo).call(this);let r=E(this,ge).fetch(this.options,i);return i!=null&&i.throwOnError||(r=r.catch(Et)),r},po=function(){ve(this,Ne,So).call(this);const i=dl(this.options.staleTime,E(this,ge));if(Ki.isServer()||E(this,ht).isStale||!oo(i))return;const c=By(E(this,ht).dataUpdatedAt,i)+1;F(this,Bl,Ol.setTimeout(()=>{E(this,ht).isStale||this.updateResult()},c))},go=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,ge)):this.options.refetchInterval)??!1},bo=function(i){ve(this,Ne,Eo).call(this),F(this,rl,i),!(Ki.isServer()||Vt(this.options.enabled,E(this,ge))===!1||!oo(E(this,rl))||E(this,rl)===0)&&F(this,Ql,Ol.setInterval(()=>{(this.options.refetchIntervalInBackground||_o.isFocused())&&ve(this,Ne,Yi).call(this)},E(this,rl)))},xo=function(){ve(this,Ne,po).call(this),ve(this,Ne,bo).call(this,ve(this,Ne,go).call(this))},So=function(){E(this,Bl)!==void 0&&(Ol.clearTimeout(E(this,Bl)),F(this,Bl,void 0))},Eo=function(){E(this,Ql)!==void 0&&(Ol.clearInterval(E(this,Ql)),F(this,Ql,void 0))},jo=function(){const i=E(this,St).getQueryCache().build(E(this,St),this.options);if(i===E(this,ge))return;const r=E(this,ge);F(this,ge,i),F(this,Ji,i.state),this.hasListeners()&&(r==null||r.removeObserver(this),i.addObserver(this))},$y=function(i){st.batch(()=>{i.listeners&&this.listeners.forEach(r=>{r(E(this,ht))}),E(this,St).getQueryCache().notify({query:E(this,ge),type:"observerResultsUpdated"})})},Uy);function R0(n,i){return Vt(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function hy(n,i){return R0(n,i)||n.state.data!==void 0&&No(n,i,i.refetchOnMount)}function No(n,i,r){if(Vt(i.enabled,n)!==!1&&dl(i.staleTime,n)!=="static"){const c=typeof r=="function"?r(n):r;return c==="always"||c!==!1&&Oo(n,i)}return!1}function my(n,i,r,c){return(n!==i||Vt(c.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&Oo(n,r)}function Oo(n,i){return Vt(i.enabled,n)!==!1&&n.isStaleByTime(dl(i.staleTime,n))}function z0(n,i){return!fo(n.getCurrentResult(),i)}function yy(n){return{onFetch:(i,r)=>{var T,S,w,O,Q;const c=i.options,d=(w=(S=(T=i.fetchOptions)==null?void 0:T.meta)==null?void 0:S.fetchMore)==null?void 0:w.direction,h=((O=i.state.data)==null?void 0:O.pages)||[],v=((Q=i.state.data)==null?void 0:Q.pageParams)||[];let g={pages:[],pageParams:[]},p=0;const y=async()=>{let _=!1;const H=G=>{x0(G,()=>i.signal,()=>_=!0)},D=Yy(i.options,i.fetchOptions),K=async(G,X,V)=>{if(_)return Promise.reject();if(X==null&&G.pages.length)return Promise.resolve(G);const Y=(()=>{const ke={client:i.client,queryKey:i.queryKey,pageParam:X,direction:V?"backward":"forward",meta:i.options.meta};return H(ke),ke})(),Z=await D(Y),{maxPages:W}=i.options,I=V?b0:g0;return{pages:I(G.pages,Z,W),pageParams:I(G.pageParams,X,W)}};if(d&&h.length){const G=d==="backward",X=G?A0:vy,V={pages:h,pageParams:v},le=X(c,V);g=await K(V,le,G)}else{const G=n??h.length;do{const X=p===0?v[0]??c.initialPageParam:vy(c,g);if(p>0&&X==null)break;g=await K(g,X),p++}while(p<G)}return g};i.options.persister?i.fetchFn=()=>{var _,H;return(H=(_=i.options).persister)==null?void 0:H.call(_,y,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r)}:i.fetchFn=y}}}function vy(n,{pages:i,pageParams:r}){const c=i.length-1;return i.length>0?n.getNextPageParam(i[c],i,r[c],r):void 0}function A0(n,{pages:i,pageParams:r}){var c;return i.length>0?(c=n.getPreviousPageParam)==null?void 0:c.call(n,i[0],i,r[0],r):void 0}var Fi,sa,ct,Yl,ra,ll,qy,_0=(qy=class extends Zy{constructor(i){super();ie(this,ra);ie(this,Fi);ie(this,sa);ie(this,ct);ie(this,Yl);F(this,Fi,i.client),this.mutationId=i.mutationId,F(this,ct,i.mutationCache),F(this,sa,[]),this.state=i.state||w0(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){E(this,sa).includes(i)||(E(this,sa).push(i),this.clearGcTimeout(),E(this,ct).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){F(this,sa,E(this,sa).filter(r=>r!==i)),this.scheduleGc(),E(this,ct).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){E(this,sa).length||(this.state.status==="pending"?this.scheduleGc():E(this,ct).remove(this))}continue(){var i;return((i=E(this,Yl))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var v,g,p,y,T,S,w,O,Q,_,H,D,K,G,X,V,le,Y;const r=()=>{ve(this,ra,ll).call(this,{type:"continue"})},c={client:E(this,Fi),meta:this.options.meta,mutationKey:this.options.mutationKey};F(this,Yl,Ky({fn:()=>this.options.mutationFn?this.options.mutationFn(i,c):Promise.reject(new Error("No mutationFn found")),onFail:(Z,W)=>{ve(this,ra,ll).call(this,{type:"failed",failureCount:Z,error:W})},onPause:()=>{ve(this,ra,ll).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,ct).canRun(this)}));const d=this.state.status==="pending",h=!E(this,Yl).canStart();try{if(d)r();else{ve(this,ra,ll).call(this,{type:"pending",variables:i,isPaused:h}),E(this,ct).config.onMutate&&await E(this,ct).config.onMutate(i,this,c);const W=await((g=(v=this.options).onMutate)==null?void 0:g.call(v,i,c));W!==this.state.context&&ve(this,ra,ll).call(this,{type:"pending",context:W,variables:i,isPaused:h})}const Z=await E(this,Yl).start();return await((y=(p=E(this,ct).config).onSuccess)==null?void 0:y.call(p,Z,i,this.state.context,this,c)),await((S=(T=this.options).onSuccess)==null?void 0:S.call(T,Z,i,this.state.context,c)),await((O=(w=E(this,ct).config).onSettled)==null?void 0:O.call(w,Z,null,this.state.variables,this.state.context,this,c)),await((_=(Q=this.options).onSettled)==null?void 0:_.call(Q,Z,null,i,this.state.context,c)),ve(this,ra,ll).call(this,{type:"success",data:Z}),Z}catch(Z){try{await((D=(H=E(this,ct).config).onError)==null?void 0:D.call(H,Z,i,this.state.context,this,c))}catch(W){Promise.reject(W)}try{await((G=(K=this.options).onError)==null?void 0:G.call(K,Z,i,this.state.context,c))}catch(W){Promise.reject(W)}try{await((V=(X=E(this,ct).config).onSettled)==null?void 0:V.call(X,void 0,Z,this.state.variables,this.state.context,this,c))}catch(W){Promise.reject(W)}try{await((Y=(le=this.options).onSettled)==null?void 0:Y.call(le,void 0,Z,i,this.state.context,c))}catch(W){Promise.reject(W)}throw ve(this,ra,ll).call(this,{type:"error",error:Z}),Z}finally{E(this,ct).runNext(this)}}},Fi=new WeakMap,sa=new WeakMap,ct=new WeakMap,Yl=new WeakMap,ra=new WeakSet,ll=function(i){const r=c=>{switch(i.type){case"failed":return{...c,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...c,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:i.error,failureCount:c.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=r(this.state),st.batch(()=>{E(this,sa).forEach(c=>{c.onMutationUpdate(i)}),E(this,ct).notify({mutation:this,type:"updated",action:i})})},qy);function w0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _a,ea,Wi,Hy,M0=(Hy=class extends Pi{constructor(i={}){super();ie(this,_a);ie(this,ea);ie(this,Wi);this.config=i,F(this,_a,new Set),F(this,ea,new Map),F(this,Wi,0)}build(i,r,c){const d=new _0({client:i,mutationCache:this,mutationId:++xs(this,Wi)._,options:i.defaultMutationOptions(r),state:c});return this.add(d),d}add(i){E(this,_a).add(i);const r=Ss(i);if(typeof r=="string"){const c=E(this,ea).get(r);c?c.push(i):E(this,ea).set(r,[i])}this.notify({type:"added",mutation:i})}remove(i){if(E(this,_a).delete(i)){const r=Ss(i);if(typeof r=="string"){const c=E(this,ea).get(r);if(c)if(c.length>1){const d=c.indexOf(i);d!==-1&&c.splice(d,1)}else c[0]===i&&E(this,ea).delete(r)}}this.notify({type:"removed",mutation:i})}canRun(i){const r=Ss(i);if(typeof r=="string"){const c=E(this,ea).get(r),d=c==null?void 0:c.find(h=>h.state.status==="pending");return!d||d===i}else return!0}runNext(i){var c;const r=Ss(i);if(typeof r=="string"){const d=(c=E(this,ea).get(r))==null?void 0:c.find(h=>h!==i&&h.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){st.batch(()=>{E(this,_a).forEach(i=>{this.notify({type:"removed",mutation:i})}),E(this,_a).clear(),E(this,ea).clear()})}getAll(){return Array.from(E(this,_a))}find(i){const r={exact:!0,...i};return this.getAll().find(c=>ry(r,c))}findAll(i={}){return this.getAll().filter(r=>ry(i,r))}notify(i){st.batch(()=>{this.listeners.forEach(r=>{r(i)})})}resumePausedMutations(){const i=this.getAll().filter(r=>r.state.isPaused);return st.batch(()=>Promise.all(i.map(r=>r.continue().catch(Et))))}},_a=new WeakMap,ea=new WeakMap,Wi=new WeakMap,Hy);function Ss(n){var i;return(i=n.options.scope)==null?void 0:i.id}var ca,Ly,O0=(Ly=class extends Pi{constructor(i={}){super();ie(this,ca);this.config=i,F(this,ca,new Map)}build(i,r,c){const d=r.queryKey,h=r.queryHash??wo(d,r);let v=this.get(h);return v||(v=new C0({client:i,queryKey:d,queryHash:h,options:i.defaultQueryOptions(r),state:c,defaultOptions:i.getQueryDefaults(d)}),this.add(v)),v}add(i){E(this,ca).has(i.queryHash)||(E(this,ca).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const r=E(this,ca).get(i.queryHash);r&&(i.destroy(),r===i&&E(this,ca).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){st.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return E(this,ca).get(i)}getAll(){return[...E(this,ca).values()]}find(i){const r={exact:!0,...i};return this.getAll().find(c=>sy(r,c))}findAll(i={}){const r=this.getAll();return Object.keys(i).length>0?r.filter(c=>sy(i,c)):r}notify(i){st.batch(()=>{this.listeners.forEach(r=>{r(i)})})}onFocus(){st.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){st.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},ca=new WeakMap,Ly),Ge,cl,ol,qn,Hn,fl,Ln,kn,ky,D0=(ky=class{constructor(n={}){ie(this,Ge);ie(this,cl);ie(this,ol);ie(this,qn);ie(this,Hn);ie(this,fl);ie(this,Ln);ie(this,kn);F(this,Ge,n.queryCache||new O0),F(this,cl,n.mutationCache||new M0),F(this,ol,n.defaultOptions||{}),F(this,qn,new Map),F(this,Hn,new Map),F(this,fl,0)}mount(){xs(this,fl)._++,E(this,fl)===1&&(F(this,Ln,_o.subscribe(async n=>{n&&(await this.resumePausedMutations(),E(this,Ge).onFocus())})),F(this,kn,Cs.subscribe(async n=>{n&&(await this.resumePausedMutations(),E(this,Ge).onOnline())})))}unmount(){var n,i;xs(this,fl)._--,E(this,fl)===0&&((n=E(this,Ln))==null||n.call(this),F(this,Ln,void 0),(i=E(this,kn))==null||i.call(this),F(this,kn,void 0))}isFetching(n){return E(this,Ge).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return E(this,cl).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const i=this.defaultQueryOptions({queryKey:n});return(r=E(this,Ge).get(i.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),r=E(this,Ge).build(this,i),c=r.state.data;return c===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(dl(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(n){return E(this,Ge).findAll(n).map(({queryKey:i,state:r})=>{const c=r.data;return[i,c]})}setQueryData(n,i,r){const c=this.defaultQueryOptions({queryKey:n}),d=E(this,Ge).get(c.queryHash),h=d==null?void 0:d.state.data,v=y0(i,h);if(v!==void 0)return E(this,Ge).build(this,c).setData(v,{...r,manual:!0})}setQueriesData(n,i,r){return st.batch(()=>E(this,Ge).findAll(n).map(({queryKey:c})=>[c,this.setQueryData(c,i,r)]))}getQueryState(n){var r;const i=this.defaultQueryOptions({queryKey:n});return(r=E(this,Ge).get(i.queryHash))==null?void 0:r.state}removeQueries(n){const i=E(this,Ge);st.batch(()=>{i.findAll(n).forEach(r=>{i.remove(r)})})}resetQueries(n,i){const r=E(this,Ge);return st.batch(()=>(r.findAll(n).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const r={revert:!0,...i},c=st.batch(()=>E(this,Ge).findAll(n).map(d=>d.cancel(r)));return Promise.all(c).then(Et).catch(Et)}invalidateQueries(n,i={}){return st.batch(()=>(E(this,Ge).findAll(n).forEach(r=>{r.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},i)))}refetchQueries(n,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},c=st.batch(()=>E(this,Ge).findAll(n).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let h=d.fetch(void 0,r);return r.throwOnError||(h=h.catch(Et)),d.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(c).then(Et)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const r=E(this,Ge).build(this,i);return r.isStaleByTime(dl(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Et).catch(Et)}fetchInfiniteQuery(n){return n.behavior=yy(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Et).catch(Et)}ensureInfiniteQueryData(n){return n.behavior=yy(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Cs.isOnline()?E(this,cl).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Ge)}getMutationCache(){return E(this,cl)}getDefaultOptions(){return E(this,ol)}setDefaultOptions(n){F(this,ol,n)}setQueryDefaults(n,i){E(this,qn).set(Gi(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...E(this,qn).values()],r={};return i.forEach(c=>{Xi(n,c.queryKey)&&Object.assign(r,c.defaultOptions)}),r}setMutationDefaults(n,i){E(this,Hn).set(Gi(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...E(this,Hn).values()],r={};return i.forEach(c=>{Xi(n,c.mutationKey)&&Object.assign(r,c.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const i={...E(this,ol).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=wo(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Mo&&(i.enabled=!1),i}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...E(this,ol).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){E(this,Ge).clear(),E(this,cl).clear()}},Ge=new WeakMap,cl=new WeakMap,ol=new WeakMap,qn=new WeakMap,Hn=new WeakMap,fl=new WeakMap,Ln=new WeakMap,kn=new WeakMap,ky),Fy=j.createContext(void 0),Bn=n=>{const i=j.useContext(Fy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},U0=({client:n,children:i})=>(j.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),f.jsx(Fy.Provider,{value:n,children:i})),Wy=j.createContext(!1),q0=()=>j.useContext(Wy);Wy.Provider;function H0(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var L0=j.createContext(H0()),k0=()=>j.useContext(L0),B0=(n,i,r)=>{const c=r!=null&&r.state.error&&typeof n.throwOnError=="function"?Gy(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||c)&&(i.isReset()||(n.retryOnMount=!1))},Q0=n=>{j.useEffect(()=>{n.clearReset()},[n])},Y0=({result:n,errorResetBoundary:i,throwOnError:r,query:c,suspense:d})=>n.isError&&!i.isReset()&&!n.isFetching&&c&&(d&&n.data===void 0||Gy(r,[n.error,c])),G0=n=>{if(n.suspense){const r=d=>d==="static"?d:Math.max(d??1e3,1e3),c=n.staleTime;n.staleTime=typeof c=="function"?(...d)=>r(c(...d)):r(c),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},X0=(n,i)=>n.isLoading&&n.isFetching&&!i,K0=(n,i)=>(n==null?void 0:n.suspense)&&i.isPending,py=(n,i,r)=>i.fetchOptimistic(n).catch(()=>{r.clearReset()});function Z0(n,i,r){var w,O,Q,_;const c=q0(),d=k0(),h=Bn(),v=h.defaultQueryOptions(n);(O=(w=h.getDefaultOptions().queries)==null?void 0:w._experimental_beforeQuery)==null||O.call(w,v);const g=h.getQueryCache().get(v.queryHash);v._optimisticResults=c?"isRestoring":"optimistic",G0(v),B0(v,d,g),Q0(d);const p=!h.getQueryCache().get(v.queryHash),[y]=j.useState(()=>new i(h,v)),T=y.getOptimisticResult(v),S=!c&&n.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(H=>{const D=S?y.subscribe(st.batchCalls(H)):Et;return y.updateResult(),D},[y,S]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),j.useEffect(()=>{y.setOptions(v)},[v,y]),K0(v,T))throw py(v,y,d);if(Y0({result:T,errorResetBoundary:d,throwOnError:v.throwOnError,query:g,suspense:v.suspense}))throw T.error;if((_=(Q=h.getDefaultOptions().queries)==null?void 0:Q._experimental_afterQuery)==null||_.call(Q,v,T),v.experimental_prefetchInRender&&!Ki.isServer()&&X0(T,c)){const H=p?py(v,y,d):g==null?void 0:g.promise;H==null||H.catch(Et).finally(()=>{y.updateResult()})}return v.notifyOnChangeProps?T:y.trackResult(T)}function ot(n,i){return Z0(n,T0)}/**
|
|
50
|
-
* react-router v7.14.2
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var gy="popstate";function by(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function V0(n={}){function i(c,d){var y;let h=(y=d.state)==null?void 0:y.masked,{pathname:v,search:g,hash:p}=h||c.location;return Co("",{pathname:v,search:g,hash:p},d.state&&d.state.usr||null,d.state&&d.state.key||"default",h?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function r(c,d){return typeof d=="string"?d:Zi(d)}return $0(i,r,null,n)}function Le(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function Jt(n,i){if(!n){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function J0(){return Math.random().toString(36).substring(2,10)}function xy(n,i){return{usr:n.state,key:n.key,idx:i,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Co(n,i,r=null,c,d){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof i=="string"?Qn(i):i,state:r,key:i&&i.key||c||J0(),unstable_mask:d}}function Zi({pathname:n="/",search:i="",hash:r=""}){return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function Qn(n){let i={};if(n){let r=n.indexOf("#");r>=0&&(i.hash=n.substring(r),n=n.substring(0,r));let c=n.indexOf("?");c>=0&&(i.search=n.substring(c),n=n.substring(0,c)),n&&(i.pathname=n)}return i}function $0(n,i,r,c={}){let{window:d=document.defaultView,v5Compat:h=!1}=c,v=d.history,g="POP",p=null,y=T();y==null&&(y=0,v.replaceState({...v.state,idx:y},""));function T(){return(v.state||{idx:null}).idx}function S(){g="POP";let H=T(),D=H==null?null:H-y;y=H,p&&p({action:g,location:_.location,delta:D})}function w(H,D){g="PUSH";let K=by(H)?H:Co(_.location,H,D);y=T()+1;let G=xy(K,y),X=_.createHref(K.unstable_mask||K);try{v.pushState(G,"",X)}catch(V){if(V instanceof DOMException&&V.name==="DataCloneError")throw V;d.location.assign(X)}h&&p&&p({action:g,location:_.location,delta:1})}function O(H,D){g="REPLACE";let K=by(H)?H:Co(_.location,H,D);y=T();let G=xy(K,y),X=_.createHref(K.unstable_mask||K);v.replaceState(G,"",X),h&&p&&p({action:g,location:_.location,delta:0})}function Q(H){return F0(H)}let _={get action(){return g},get location(){return n(d,v)},listen(H){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(gy,S),p=H,()=>{d.removeEventListener(gy,S),p=null}},createHref(H){return i(d,H)},createURL:Q,encodeLocation(H){let D=Q(H);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:w,replace:O,go(H){return v.go(H)}};return _}function F0(n,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Le(r,"No window.location.(origin|href) available to create URL");let c=typeof n=="string"?n:Zi(n);return c=c.replace(/ $/,"%20"),!i&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function Py(n,i,r="/"){return W0(n,i,r,!1)}function W0(n,i,r,c){let d=typeof i=="string"?Qn(i):i,h=wa(d.pathname||"/",r);if(h==null)return null;let v=Iy(n);P0(v);let g=null;for(let p=0;g==null&&p<v.length;++p){let y=cb(h);g=sb(v[p],y,c)}return g}function Iy(n,i=[],r=[],c="",d=!1){let h=(v,g,p=d,y)=>{let T={relativePath:y===void 0?v.path||"":y,caseSensitive:v.caseSensitive===!0,childrenIndex:g,route:v};if(T.relativePath.startsWith("/")){if(!T.relativePath.startsWith(c)&&p)return;Le(T.relativePath.startsWith(c),`Absolute route path "${T.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),T.relativePath=T.relativePath.slice(c.length)}let S=ta([c,T.relativePath]),w=r.concat(T);v.children&&v.children.length>0&&(Le(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),Iy(v.children,i,w,S,p)),!(v.path==null&&!v.index)&&i.push({path:S,score:ib(S,v.index),routesMeta:w})};return n.forEach((v,g)=>{var p;if(v.path===""||!((p=v.path)!=null&&p.includes("?")))h(v,g);else for(let y of ev(v.path))h(v,g,!0,y)}),i}function ev(n){let i=n.split("/");if(i.length===0)return[];let[r,...c]=i,d=r.endsWith("?"),h=r.replace(/\?$/,"");if(c.length===0)return d?[h,""]:[h];let v=ev(c.join("/")),g=[];return g.push(...v.map(p=>p===""?h:[h,p].join("/"))),d&&g.push(...v),g.map(p=>n.startsWith("/")&&p===""?"/":p)}function P0(n){n.sort((i,r)=>i.score!==r.score?r.score-i.score:ub(i.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var I0=/^:[\w-]+$/,eb=3,tb=2,ab=1,lb=10,nb=-2,Sy=n=>n==="*";function ib(n,i){let r=n.split("/"),c=r.length;return r.some(Sy)&&(c+=nb),i&&(c+=tb),r.filter(d=>!Sy(d)).reduce((d,h)=>d+(I0.test(h)?eb:h===""?ab:lb),c)}function ub(n,i){return n.length===i.length&&n.slice(0,-1).every((c,d)=>c===i[d])?n[n.length-1]-i[i.length-1]:0}function sb(n,i,r=!1){let{routesMeta:c}=n,d={},h="/",v=[];for(let g=0;g<c.length;++g){let p=c[g],y=g===c.length-1,T=h==="/"?i:i.slice(h.length)||"/",S=Ts({path:p.relativePath,caseSensitive:p.caseSensitive,end:y},T),w=p.route;if(!S&&y&&r&&!c[c.length-1].route.index&&(S=Ts({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},T)),!S)return null;Object.assign(d,S.params),v.push({params:d,pathname:ta([h,S.pathname]),pathnameBase:hb(ta([h,S.pathnameBase])),route:w}),S.pathnameBase!=="/"&&(h=ta([h,S.pathnameBase]))}return v}function Ts(n,i){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,c]=rb(n.path,n.caseSensitive,n.end),d=i.match(r);if(!d)return null;let h=d[0],v=h.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:c.reduce((y,{paramName:T,isOptional:S},w)=>{if(T==="*"){let Q=g[w]||"";v=h.slice(0,h.length-Q.length).replace(/(.)\/+$/,"$1")}const O=g[w];return S&&!O?y[T]=void 0:y[T]=(O||"").replace(/%2F/g,"/"),y},{}),pathname:h,pathnameBase:v,pattern:n}}function rb(n,i=!1,r=!0){Jt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let c=[],d="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,g,p,y,T)=>{if(c.push({paramName:g,isOptional:p!=null}),p){let S=T.charAt(y+v.length);return S&&S!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(c.push({paramName:"*"}),d+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":n!==""&&n!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,i?void 0:"i"),c]}function cb(n){try{return n.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Jt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),n}}function wa(n,i){if(i==="/")return n;if(!n.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,c=n.charAt(r);return c&&c!=="/"?null:n.slice(r)||"/"}var ob=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function fb(n,i="/"){let{pathname:r,search:c="",hash:d=""}=typeof n=="string"?Qn(n):n,h;return r?(r=tv(r),r.startsWith("/")?h=Ey(r.substring(1),"/"):h=Ey(r,i)):h=i,{pathname:h,search:mb(c),hash:yb(d)}}function Ey(n,i){let r=Rs(i).split("/");return n.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function uo(n,i,r,c){return`Cannot include a '${n}' character in a manually specified \`to.${i}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function db(n){return n.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function Do(n){let i=db(n);return i.map((r,c)=>c===i.length-1?r.pathname:r.pathnameBase)}function zs(n,i,r,c=!1){let d;typeof n=="string"?d=Qn(n):(d={...n},Le(!d.pathname||!d.pathname.includes("?"),uo("?","pathname","search",d)),Le(!d.pathname||!d.pathname.includes("#"),uo("#","pathname","hash",d)),Le(!d.search||!d.search.includes("#"),uo("#","search","hash",d)));let h=n===""||d.pathname==="",v=h?"/":d.pathname,g;if(v==null)g=r;else{let S=i.length-1;if(!c&&v.startsWith("..")){let w=v.split("/");for(;w[0]==="..";)w.shift(),S-=1;d.pathname=w.join("/")}g=S>=0?i[S]:"/"}let p=fb(d,g),y=v&&v!=="/"&&v.endsWith("/"),T=(h||v===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(y||T)&&(p.pathname+="/"),p}var tv=n=>n.replace(/\/\/+/g,"/"),ta=n=>tv(n.join("/")),Rs=n=>n.replace(/\/+$/,""),hb=n=>Rs(n).replace(/^\/*/,"/"),mb=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,yb=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,vb=class{constructor(n,i,r,c=!1){this.status=n,this.statusText=i||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function pb(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function gb(n){let i=n.map(r=>r.route.path).filter(Boolean);return ta(i)||"/"}var av=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function lv(n,i){let r=n;if(typeof r!="string"||!ob.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,d=!1;if(av)try{let h=new URL(window.location.href),v=r.startsWith("//")?new URL(h.protocol+r):new URL(r),g=wa(v.pathname,i);v.origin===h.origin&&g!=null?r=g+v.search+v.hash:d=!0}catch{Jt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var nv=["POST","PUT","PATCH","DELETE"];new Set(nv);var bb=["GET",...nv];new Set(bb);var Yn=j.createContext(null);Yn.displayName="DataRouter";var As=j.createContext(null);As.displayName="DataRouterState";var iv=j.createContext(!1);function xb(){return j.useContext(iv)}var uv=j.createContext({isTransitioning:!1});uv.displayName="ViewTransition";var Sb=j.createContext(new Map);Sb.displayName="Fetchers";var Eb=j.createContext(null);Eb.displayName="Await";var Dt=j.createContext(null);Dt.displayName="Navigation";var Ii=j.createContext(null);Ii.displayName="Location";var $t=j.createContext({outlet:null,matches:[],isDataRoute:!1});$t.displayName="Route";var Uo=j.createContext(null);Uo.displayName="RouteError";var sv="REACT_ROUTER_ERROR",jb="REDIRECT",Nb="ROUTE_ERROR_RESPONSE";function Cb(n){if(n.startsWith(`${sv}:${jb}:{`))try{let i=JSON.parse(n.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Tb(n){if(n.startsWith(`${sv}:${Nb}:{`))try{let i=JSON.parse(n.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new vb(i.status,i.statusText,i.data)}catch{}}function Rb(n,{relative:i}={}){Le(Gn(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=j.useContext(Dt),{hash:d,pathname:h,search:v}=eu(n,{relative:i}),g=h;return r!=="/"&&(g=h==="/"?r:ta([r,h])),c.createHref({pathname:g,search:v,hash:d})}function Gn(){return j.useContext(Ii)!=null}function aa(){return Le(Gn(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Ii).location}var rv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function cv(n){j.useContext(Dt).static||j.useLayoutEffect(n)}function _s(){let{isDataRoute:n}=j.useContext($t);return n?Gb():zb()}function zb(){Le(Gn(),"useNavigate() may be used only in the context of a <Router> component.");let n=j.useContext(Yn),{basename:i,navigator:r}=j.useContext(Dt),{matches:c}=j.useContext($t),{pathname:d}=aa(),h=JSON.stringify(Do(c)),v=j.useRef(!1);return cv(()=>{v.current=!0}),j.useCallback((p,y={})=>{if(Jt(v.current,rv),!v.current)return;if(typeof p=="number"){r.go(p);return}let T=zs(p,JSON.parse(h),d,y.relative==="path");n==null&&i!=="/"&&(T.pathname=T.pathname==="/"?i:ta([i,T.pathname])),(y.replace?r.replace:r.push)(T,y.state,y)},[i,r,h,d,n])}var Ab=j.createContext(null);function _b(n){let i=j.useContext($t).outlet;return j.useMemo(()=>i&&j.createElement(Ab.Provider,{value:n},i),[i,n])}function wb(){let{matches:n}=j.useContext($t),i=n[n.length-1];return(i==null?void 0:i.params)??{}}function eu(n,{relative:i}={}){let{matches:r}=j.useContext($t),{pathname:c}=aa(),d=JSON.stringify(Do(r));return j.useMemo(()=>zs(n,JSON.parse(d),c,i==="path"),[n,d,c,i])}function Mb(n,i){return ov(n,i)}function ov(n,i,r){var H;Le(Gn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=j.useContext(Dt),{matches:d}=j.useContext($t),h=d[d.length-1],v=h?h.params:{},g=h?h.pathname:"/",p=h?h.pathnameBase:"/",y=h&&h.route;{let D=y&&y.path||"";dv(g,!y||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${D}">) 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.
|
|
59
|
-
|
|
60
|
-
Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let T=aa(),S;if(i){let D=typeof i=="string"?Qn(i):i;Le(p==="/"||((H=D.pathname)==null?void 0:H.startsWith(p)),`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 "${p}" but pathname "${D.pathname}" was given in the \`location\` prop.`),S=D}else S=T;let w=S.pathname||"/",O=w;if(p!=="/"){let D=p.replace(/^\//,"").split("/");O="/"+w.replace(/^\//,"").split("/").slice(D.length).join("/")}let Q=Py(n,{pathname:O});Jt(y||Q!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Jt(Q==null||Q[Q.length-1].route.element!==void 0||Q[Q.length-1].route.Component!==void 0||Q[Q.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.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 _=Hb(Q&&Q.map(D=>Object.assign({},D,{params:Object.assign({},v,D.params),pathname:ta([p,c.encodeLocation?c.encodeLocation(D.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?p:ta([p,c.encodeLocation?c.encodeLocation(D.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:D.pathnameBase])})),d,r);return i&&_?j.createElement(Ii.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...S},navigationType:"POP"}},_):_}function Ob(){let n=Yb(),i=pb(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},h={padding:"2px 4px",backgroundColor:c},v=null;return console.error("Error handled by React Router default ErrorBoundary:",n),v=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:h},"ErrorBoundary")," or"," ",j.createElement("code",{style:h},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},i),r?j.createElement("pre",{style:d},r):null,v)}var Db=j.createElement(Ob,null),fv=class extends j.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,i){return i.location!==n.location||i.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:i.error,location:i.location,revalidation:n.revalidation||i.revalidation}}componentDidCatch(n,i){this.props.onError?this.props.onError(n,i):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=Tb(n.digest);r&&(n=r)}let i=n!==void 0?j.createElement($t.Provider,{value:this.props.routeContext},j.createElement(Uo.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?j.createElement(Ub,{error:n},i):i}};fv.contextType=iv;var so=new WeakMap;function Ub({children:n,error:i}){let{basename:r}=j.useContext(Dt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let c=Cb(i.digest);if(c){let d=so.get(i);if(d)throw d;let h=lv(c.location,r);if(av&&!so.get(i))if(h.isExternal||c.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:c.replace}));throw so.set(i,v),v}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return n}function qb({routeContext:n,match:i,children:r}){let c=j.useContext(Yn);return c&&c.static&&c.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=i.route.id),j.createElement($t.Provider,{value:n},r)}function Hb(n,i=[],r){let c=r==null?void 0:r.state;if(n==null){if(!c)return null;if(c.errors)n=c.matches;else if(i.length===0&&!c.initialized&&c.matches.length>0)n=c.matches;else return null}let d=n,h=c==null?void 0:c.errors;if(h!=null){let T=d.findIndex(S=>S.route.id&&(h==null?void 0:h[S.route.id])!==void 0);Le(T>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),d=d.slice(0,Math.min(d.length,T+1))}let v=!1,g=-1;if(r&&c){v=c.renderFallback;for(let T=0;T<d.length;T++){let S=d[T];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(g=T),S.route.id){let{loaderData:w,errors:O}=c,Q=S.route.loader&&!w.hasOwnProperty(S.route.id)&&(!O||O[S.route.id]===void 0);if(S.route.lazy||Q){r.isStatic&&(v=!0),g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}}let p=r==null?void 0:r.onError,y=c&&p?(T,S)=>{var w,O;p(T,{location:c.location,params:((O=(w=c.matches)==null?void 0:w[0])==null?void 0:O.params)??{},unstable_pattern:gb(c.matches),errorInfo:S})}:void 0;return d.reduceRight((T,S,w)=>{let O,Q=!1,_=null,H=null;c&&(O=h&&S.route.id?h[S.route.id]:void 0,_=S.route.errorElement||Db,v&&(g<0&&w===0?(dv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Q=!0,H=null):g===w&&(Q=!0,H=S.route.hydrateFallbackElement||null)));let D=i.concat(d.slice(0,w+1)),K=()=>{let G;return O?G=_:Q?G=H:S.route.Component?G=j.createElement(S.route.Component,null):S.route.element?G=S.route.element:G=T,j.createElement(qb,{match:S,routeContext:{outlet:T,matches:D,isDataRoute:c!=null},children:G})};return c&&(S.route.ErrorBoundary||S.route.errorElement||w===0)?j.createElement(fv,{location:c.location,revalidation:c.revalidation,component:_,error:O,children:K(),routeContext:{outlet:null,matches:D,isDataRoute:!0},onError:y}):K()},null)}function qo(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Lb(n){let i=j.useContext(Yn);return Le(i,qo(n)),i}function kb(n){let i=j.useContext(As);return Le(i,qo(n)),i}function Bb(n){let i=j.useContext($t);return Le(i,qo(n)),i}function Ho(n){let i=Bb(n),r=i.matches[i.matches.length-1];return Le(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function Qb(){return Ho("useRouteId")}function Yb(){var c;let n=j.useContext(Uo),i=kb("useRouteError"),r=Ho("useRouteError");return n!==void 0?n:(c=i.errors)==null?void 0:c[r]}function Gb(){let{router:n}=Lb("useNavigate"),i=Ho("useNavigate"),r=j.useRef(!1);return cv(()=>{r.current=!0}),j.useCallback(async(d,h={})=>{Jt(r.current,rv),r.current&&(typeof d=="number"?await n.navigate(d):await n.navigate(d,{fromRouteId:i,...h}))},[n,i])}var jy={};function dv(n,i,r){!i&&!jy[n]&&(jy[n]=!0,Jt(!1,r))}j.memo(Xb);function Xb({routes:n,future:i,state:r,isStatic:c,onError:d}){return ov(n,void 0,{state:r,isStatic:c,onError:d})}function Kb({to:n,replace:i,state:r,relative:c}){Le(Gn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=j.useContext(Dt);Jt(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=j.useContext($t),{pathname:v}=aa(),g=_s(),p=zs(n,Do(h),v,c==="path"),y=JSON.stringify(p);return j.useEffect(()=>{g(JSON.parse(y),{replace:i,state:r,relative:c})},[g,y,c,i,r]),null}function Zb(n){return _b(n.context)}function Kt(n){Le(!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 Vb({basename:n="/",children:i=null,location:r,navigationType:c="POP",navigator:d,static:h=!1,unstable_useTransitions:v}){Le(!Gn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=n.replace(/^\/*/,"/"),p=j.useMemo(()=>({basename:g,navigator:d,static:h,unstable_useTransitions:v,future:{}}),[g,d,h,v]);typeof r=="string"&&(r=Qn(r));let{pathname:y="/",search:T="",hash:S="",state:w=null,key:O="default",unstable_mask:Q}=r,_=j.useMemo(()=>{let H=wa(y,g);return H==null?null:{location:{pathname:H,search:T,hash:S,state:w,key:O,unstable_mask:Q},navigationType:c}},[g,y,T,S,w,O,c,Q]);return Jt(_!=null,`<Router basename="${g}"> is not able to match the URL "${y}${T}${S}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:j.createElement(Dt.Provider,{value:p},j.createElement(Ii.Provider,{children:i,value:_}))}function Jb({children:n,location:i}){return Mb(To(n),i)}function To(n,i=[]){let r=[];return j.Children.forEach(n,(c,d)=>{if(!j.isValidElement(c))return;let h=[...i,d];if(c.type===j.Fragment){r.push.apply(r,To(c.props.children,h));return}Le(c.type===Kt,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Le(!c.props.index||!c.props.children,"An index route cannot have child routes.");let v={id:c.props.id||h.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(v.children=To(c.props.children,h)),r.push(v)}),r}var js="get",Ns="application/x-www-form-urlencoded";function ws(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function $b(n){return ws(n)&&n.tagName.toLowerCase()==="button"}function Fb(n){return ws(n)&&n.tagName.toLowerCase()==="form"}function Wb(n){return ws(n)&&n.tagName.toLowerCase()==="input"}function Pb(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Ib(n,i){return n.button===0&&(!i||i==="_self")&&!Pb(n)}function Ro(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((i,r)=>{let c=n[r];return i.concat(Array.isArray(c)?c.map(d=>[r,d]):[[r,c]])},[]))}function ex(n,i){let r=Ro(n);return i&&i.forEach((c,d)=>{r.has(d)||i.getAll(d).forEach(h=>{r.append(d,h)})}),r}var Es=null;function tx(){if(Es===null)try{new FormData(document.createElement("form"),0),Es=!1}catch{Es=!0}return Es}var ax=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ro(n){return n!=null&&!ax.has(n)?(Jt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ns}"`),null):n}function lx(n,i){let r,c,d,h,v;if(Fb(n)){let g=n.getAttribute("action");c=g?wa(g,i):null,r=n.getAttribute("method")||js,d=ro(n.getAttribute("enctype"))||Ns,h=new FormData(n)}else if($b(n)||Wb(n)&&(n.type==="submit"||n.type==="image")){let g=n.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||g.getAttribute("action");if(c=p?wa(p,i):null,r=n.getAttribute("formmethod")||g.getAttribute("method")||js,d=ro(n.getAttribute("formenctype"))||ro(g.getAttribute("enctype"))||Ns,h=new FormData(g,n),!tx()){let{name:y,type:T,value:S}=n;if(T==="image"){let w=y?`${y}.`:"";h.append(`${w}x`,"0"),h.append(`${w}y`,"0")}else y&&h.append(y,S)}}else{if(ws(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=js,c=null,d=Ns,v=n}return h&&d==="text/plain"&&(v=h,h=void 0),{action:c,method:r.toLowerCase(),encType:d,formData:h,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Lo(n,i){if(n===!1||n===null||typeof n>"u")throw new Error(i)}function hv(n,i,r,c){let d=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:i&&wa(d.pathname,i)==="/"?d.pathname=`${Rs(i)}/_root.${c}`:d.pathname=`${Rs(d.pathname)}.${c}`,d}async function nx(n,i){if(n.id in i)return i[n.id];try{let r=await import(n.module);return i[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ix(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function ux(n,i,r){let c=await Promise.all(n.map(async d=>{let h=i.routes[d.route.id];if(h){let v=await nx(h,r);return v.links?v.links():[]}return[]}));return ox(c.flat(1).filter(ix).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Ny(n,i,r,c,d,h){let v=(p,y)=>r[y]?p.route.id!==r[y].route.id:!0,g=(p,y)=>{var T;return r[y].pathname!==p.pathname||((T=r[y].route.path)==null?void 0:T.endsWith("*"))&&r[y].params["*"]!==p.params["*"]};return h==="assets"?i.filter((p,y)=>v(p,y)||g(p,y)):h==="data"?i.filter((p,y)=>{var S;let T=c.routes[p.route.id];if(!T||!T.hasLoader)return!1;if(v(p,y)||g(p,y))return!0;if(p.route.shouldRevalidate){let w=p.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((S=r[0])==null?void 0:S.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function sx(n,i,{includeHydrateFallback:r}={}){return rx(n.map(c=>{let d=i.routes[c.route.id];if(!d)return[];let h=[d.module];return d.clientActionModule&&(h=h.concat(d.clientActionModule)),d.clientLoaderModule&&(h=h.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(h=h.concat(d.hydrateFallbackModule)),d.imports&&(h=h.concat(d.imports)),h}).flat(1))}function rx(n){return[...new Set(n)]}function cx(n){let i={},r=Object.keys(n).sort();for(let c of r)i[c]=n[c];return i}function ox(n,i){let r=new Set;return new Set(i),n.reduce((c,d)=>{let h=JSON.stringify(cx(d));return r.has(h)||(r.add(h),c.push({key:h,link:d})),c},[])}function ko(){let n=j.useContext(Yn);return Lo(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function fx(){let n=j.useContext(As);return Lo(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Bo=j.createContext(void 0);Bo.displayName="FrameworkContext";function Qo(){let n=j.useContext(Bo);return Lo(n,"You must render this element inside a <HydratedRouter> element"),n}function dx(n,i){let r=j.useContext(Bo),[c,d]=j.useState(!1),[h,v]=j.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:y,onMouseLeave:T,onTouchStart:S}=i,w=j.useRef(null);j.useEffect(()=>{if(n==="render"&&v(!0),n==="viewport"){let _=D=>{D.forEach(K=>{v(K.isIntersecting)})},H=new IntersectionObserver(_,{threshold:.5});return w.current&&H.observe(w.current),()=>{H.disconnect()}}},[n]),j.useEffect(()=>{if(c){let _=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(_)}}},[c]);let O=()=>{d(!0)},Q=()=>{d(!1),v(!1)};return r?n!=="intent"?[h,w,{}]:[h,w,{onFocus:Qi(g,O),onBlur:Qi(p,Q),onMouseEnter:Qi(y,O),onMouseLeave:Qi(T,Q),onTouchStart:Qi(S,O)}]:[!1,w,{}]}function Qi(n,i){return r=>{n&&n(r),r.defaultPrevented||i(r)}}function hx({page:n,...i}){let r=xb(),{router:c}=ko(),d=j.useMemo(()=>Py(c.routes,n,c.basename),[c.routes,n,c.basename]);return d?r?j.createElement(yx,{page:n,matches:d,...i}):j.createElement(vx,{page:n,matches:d,...i}):null}function mx(n){let{manifest:i,routeModules:r}=Qo(),[c,d]=j.useState([]);return j.useEffect(()=>{let h=!1;return ux(n,i,r).then(v=>{h||d(v)}),()=>{h=!0}},[n,i,r]),c}function yx({page:n,matches:i,...r}){let c=aa(),{future:d}=Qo(),{basename:h}=ko(),v=j.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let g=hv(n,h,d.unstable_trailingSlashAwareDataRequests,"rsc"),p=!1,y=[];for(let T of i)typeof T.route.shouldRevalidate=="function"?p=!0:y.push(T.route.id);return p&&y.length>0&&g.searchParams.set("_routes",y.join(",")),[g.pathname+g.search]},[h,d.unstable_trailingSlashAwareDataRequests,n,c,i]);return j.createElement(j.Fragment,null,v.map(g=>j.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})))}function vx({page:n,matches:i,...r}){let c=aa(),{future:d,manifest:h,routeModules:v}=Qo(),{basename:g}=ko(),{loaderData:p,matches:y}=fx(),T=j.useMemo(()=>Ny(n,i,y,h,c,"data"),[n,i,y,h,c]),S=j.useMemo(()=>Ny(n,i,y,h,c,"assets"),[n,i,y,h,c]),w=j.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let _=new Set,H=!1;if(i.forEach(K=>{var X;let G=h.routes[K.route.id];!G||!G.hasLoader||(!T.some(V=>V.route.id===K.route.id)&&K.route.id in p&&((X=v[K.route.id])!=null&&X.shouldRevalidate)||G.hasClientLoader?H=!0:_.add(K.route.id))}),_.size===0)return[];let D=hv(n,g,d.unstable_trailingSlashAwareDataRequests,"data");return H&&_.size>0&&D.searchParams.set("_routes",i.filter(K=>_.has(K.route.id)).map(K=>K.route.id).join(",")),[D.pathname+D.search]},[g,d.unstable_trailingSlashAwareDataRequests,p,c,h,T,i,n,v]),O=j.useMemo(()=>sx(S,h),[S,h]),Q=mx(S);return j.createElement(j.Fragment,null,w.map(_=>j.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...r})),O.map(_=>j.createElement("link",{key:_,rel:"modulepreload",href:_,...r})),Q.map(({key:_,link:H})=>j.createElement("link",{key:_,nonce:r.nonce,...H,crossOrigin:H.crossOrigin??r.crossOrigin})))}function px(...n){return i=>{n.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var gx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{gx&&(window.__reactRouterVersion="7.14.2")}catch{}function bx({basename:n,children:i,unstable_useTransitions:r,window:c}){let d=j.useRef();d.current==null&&(d.current=V0({window:c,v5Compat:!0}));let h=d.current,[v,g]=j.useState({action:h.action,location:h.location}),p=j.useCallback(y=>{r===!1?g(y):j.startTransition(()=>g(y))},[r]);return j.useLayoutEffect(()=>h.listen(p),[h,p]),j.createElement(Vb,{basename:n,children:i,location:v.location,navigationType:v.action,navigator:h,unstable_useTransitions:r})}var mv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xn=j.forwardRef(function({onClick:i,discover:r="render",prefetch:c="none",relative:d,reloadDocument:h,replace:v,unstable_mask:g,state:p,target:y,to:T,preventScrollReset:S,viewTransition:w,unstable_defaultShouldRevalidate:O,...Q},_){let{basename:H,navigator:D,unstable_useTransitions:K}=j.useContext(Dt),G=typeof T=="string"&&mv.test(T),X=lv(T,H);T=X.to;let V=Rb(T,{relative:d}),le=aa(),Y=null;if(g){let Oe=zs(g,[],le.unstable_mask?le.unstable_mask.pathname:"/",!0);H!=="/"&&(Oe.pathname=Oe.pathname==="/"?H:ta([H,Oe.pathname])),Y=D.createHref(Oe)}let[Z,W,I]=dx(c,Q),ke=Ex(T,{replace:v,unstable_mask:g,state:p,target:y,preventScrollReset:S,relative:d,viewTransition:w,unstable_defaultShouldRevalidate:O,unstable_useTransitions:K});function qe(Oe){i&&i(Oe),Oe.defaultPrevented||ke(Oe)}let Be=!(X.isExternal||h),tt=j.createElement("a",{...Q,...I,href:(Be?Y:void 0)||X.absoluteURL||V,onClick:Be?qe:i,ref:px(_,W),target:y,"data-discover":!G&&r==="render"?"true":void 0});return Z&&!G?j.createElement(j.Fragment,null,tt,j.createElement(hx,{page:V})):tt});Xn.displayName="Link";var yv=j.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:c="",end:d=!1,style:h,to:v,viewTransition:g,children:p,...y},T){let S=eu(v,{relative:y.relative}),w=aa(),O=j.useContext(As),{navigator:Q,basename:_}=j.useContext(Dt),H=O!=null&&Rx(S)&&g===!0,D=Q.encodeLocation?Q.encodeLocation(S).pathname:S.pathname,K=w.pathname,G=O&&O.navigation&&O.navigation.location?O.navigation.location.pathname:null;r||(K=K.toLowerCase(),G=G?G.toLowerCase():null,D=D.toLowerCase()),G&&_&&(G=wa(G,_)||G);const X=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let V=K===D||!d&&K.startsWith(D)&&K.charAt(X)==="/",le=G!=null&&(G===D||!d&&G.startsWith(D)&&G.charAt(D.length)==="/"),Y={isActive:V,isPending:le,isTransitioning:H},Z=V?i:void 0,W;typeof c=="function"?W=c(Y):W=[c,V?"active":null,le?"pending":null,H?"transitioning":null].filter(Boolean).join(" ");let I=typeof h=="function"?h(Y):h;return j.createElement(Xn,{...y,"aria-current":Z,className:W,ref:T,style:I,to:v,viewTransition:g},typeof p=="function"?p(Y):p)});yv.displayName="NavLink";var xx=j.forwardRef(({discover:n="render",fetcherKey:i,navigate:r,reloadDocument:c,replace:d,state:h,method:v=js,action:g,onSubmit:p,relative:y,preventScrollReset:T,viewTransition:S,unstable_defaultShouldRevalidate:w,...O},Q)=>{let{unstable_useTransitions:_}=j.useContext(Dt),H=Cx(),D=Tx(g,{relative:y}),K=v.toLowerCase()==="get"?"get":"post",G=typeof g=="string"&&mv.test(g),X=V=>{if(p&&p(V),V.defaultPrevented)return;V.preventDefault();let le=V.nativeEvent.submitter,Y=(le==null?void 0:le.getAttribute("formmethod"))||v,Z=()=>H(le||V.currentTarget,{fetcherKey:i,method:Y,navigate:r,replace:d,state:h,relative:y,preventScrollReset:T,viewTransition:S,unstable_defaultShouldRevalidate:w});_&&r!==!1?j.startTransition(()=>Z()):Z()};return j.createElement("form",{ref:Q,method:K,action:D,onSubmit:c?p:X,...O,"data-discover":!G&&n==="render"?"true":void 0})});xx.displayName="Form";function Sx(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vv(n){let i=j.useContext(Yn);return Le(i,Sx(n)),i}function Ex(n,{target:i,replace:r,unstable_mask:c,state:d,preventScrollReset:h,relative:v,viewTransition:g,unstable_defaultShouldRevalidate:p,unstable_useTransitions:y}={}){let T=_s(),S=aa(),w=eu(n,{relative:v});return j.useCallback(O=>{if(Ib(O,i)){O.preventDefault();let Q=r!==void 0?r:Zi(S)===Zi(w),_=()=>T(n,{replace:Q,unstable_mask:c,state:d,preventScrollReset:h,relative:v,viewTransition:g,unstable_defaultShouldRevalidate:p});y?j.startTransition(()=>_()):_()}},[S,T,w,r,c,d,i,n,h,v,g,p,y])}function Yo(n){Jt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=j.useRef(Ro(n)),r=j.useRef(!1),c=aa(),d=j.useMemo(()=>ex(c.search,r.current?null:i.current),[c.search]),h=_s(),v=j.useCallback((g,p)=>{const y=Ro(typeof g=="function"?g(new URLSearchParams(d)):g);r.current=!0,h("?"+y,p)},[h,d]);return[d,v]}var jx=0,Nx=()=>`__${String(++jx)}__`;function Cx(){let{router:n}=vv("useSubmit"),{basename:i}=j.useContext(Dt),r=Qb(),c=n.fetch,d=n.navigate;return j.useCallback(async(h,v={})=>{let{action:g,method:p,encType:y,formData:T,body:S}=lx(h,i);if(v.navigate===!1){let w=v.fetcherKey||Nx();await c(w,r,v.action||g,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:T,body:S,formMethod:v.method||p,formEncType:v.encType||y,flushSync:v.flushSync})}else await d(v.action||g,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:T,body:S,formMethod:v.method||p,formEncType:v.encType||y,replace:v.replace,state:v.state,fromRouteId:r,flushSync:v.flushSync,viewTransition:v.viewTransition})},[c,d,i,r])}function Tx(n,{relative:i}={}){let{basename:r}=j.useContext(Dt),c=j.useContext($t);Le(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),h={...eu(n||".",{relative:i})},v=aa();if(n==null){h.search=v.search;let g=new URLSearchParams(h.search),p=g.getAll("index");if(p.some(T=>T==="")){g.delete("index"),p.filter(S=>S).forEach(S=>g.append("index",S));let T=g.toString();h.search=T?`?${T}`:""}}return(!n||n===".")&&d.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(h.pathname=h.pathname==="/"?r:ta([r,h.pathname])),Zi(h)}function Rx(n,{relative:i}={}){let r=j.useContext(uv);Le(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=vv("useViewTransitionState"),d=eu(n,{relative:i});if(!r.isTransitioning)return!1;let h=wa(r.currentLocation.pathname,c)||r.currentLocation.pathname,v=wa(r.nextLocation.pathname,c)||r.nextLocation.pathname;return Ts(d.pathname,v)!=null||Ts(d.pathname,h)!=null}/**
|
|
61
|
-
* @license lucide-react v0.544.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const zx=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ax=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,c)=>c?c.toUpperCase():r.toLowerCase()),Cy=n=>{const i=Ax(n);return i.charAt(0).toUpperCase()+i.slice(1)},pv=(...n)=>n.filter((i,r,c)=>!!i&&i.trim()!==""&&c.indexOf(i)===r).join(" ").trim(),_x=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
|
|
66
|
-
* @license lucide-react v0.544.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/var wx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
71
|
-
* @license lucide-react v0.544.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const Mx=j.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:c,className:d="",children:h,iconNode:v,...g},p)=>j.createElement("svg",{ref:p,...wx,width:i,height:i,stroke:n,strokeWidth:c?Number(r)*24/Number(i):r,className:pv("lucide",d),...!h&&!_x(g)&&{"aria-hidden":"true"},...g},[...v.map(([y,T])=>j.createElement(y,T)),...Array.isArray(h)?h:[h]]));/**
|
|
76
|
-
* @license lucide-react v0.544.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const Ee=(n,i)=>{const r=j.forwardRef(({className:c,...d},h)=>j.createElement(Mx,{ref:h,iconNode:i,className:pv(`lucide-${zx(Cy(n))}`,`lucide-${n}`,c),...d}));return r.displayName=Cy(n),r};/**
|
|
81
|
-
* @license lucide-react v0.544.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const Ox=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Dx=Ee("activity",Ox);/**
|
|
86
|
-
* @license lucide-react v0.544.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const Ux=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],qx=Ee("chevron-down",Ux);/**
|
|
91
|
-
* @license lucide-react v0.544.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const Hx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Lx=Ee("circle-alert",Hx);/**
|
|
96
|
-
* @license lucide-react v0.544.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const kx=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Bx=Ee("circle-check-big",kx);/**
|
|
101
|
-
* @license lucide-react v0.544.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const Qx=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Yx=Ee("download",Qx);/**
|
|
106
|
-
* @license lucide-react v0.544.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const Gx=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Xx=Ee("file-text",Gx);/**
|
|
111
|
-
* @license lucide-react v0.544.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const Kx=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],Zx=Ee("flame",Kx);/**
|
|
116
|
-
* @license lucide-react v0.544.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const Vx=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Jx=Ee("funnel",Vx);/**
|
|
121
|
-
* @license lucide-react v0.544.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const $x=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Fx=Ee("git-branch",$x);/**
|
|
126
|
-
* @license lucide-react v0.544.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const Wx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Px=Ee("globe",Wx);/**
|
|
131
|
-
* @license lucide-react v0.544.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const Ix=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],e1=Ee("kanban",Ix);/**
|
|
136
|
-
* @license lucide-react v0.544.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const t1=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],a1=Ee("layout-grid",t1);/**
|
|
141
|
-
* @license lucide-react v0.544.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const l1=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],n1=Ee("link",l1);/**
|
|
146
|
-
* @license lucide-react v0.544.0 - ISC
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the ISC license.
|
|
149
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const i1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],gv=Ee("loader-circle",i1);/**
|
|
151
|
-
* @license lucide-react v0.544.0 - ISC
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the ISC license.
|
|
154
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const u1=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Ty=Ee("message-circle",u1);/**
|
|
156
|
-
* @license lucide-react v0.544.0 - ISC
|
|
157
|
-
*
|
|
158
|
-
* This source code is licensed under the ISC license.
|
|
159
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const s1=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],r1=Ee("message-square",s1);/**
|
|
161
|
-
* @license lucide-react v0.544.0 - ISC
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the ISC license.
|
|
164
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const c1=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],o1=Ee("pause",c1);/**
|
|
166
|
-
* @license lucide-react v0.544.0 - ISC
|
|
167
|
-
*
|
|
168
|
-
* This source code is licensed under the ISC license.
|
|
169
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/const f1=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Go=Ee("play",f1);/**
|
|
171
|
-
* @license lucide-react v0.544.0 - ISC
|
|
172
|
-
*
|
|
173
|
-
* This source code is licensed under the ISC license.
|
|
174
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
-
*/const d1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ms=Ee("plus",d1);/**
|
|
176
|
-
* @license lucide-react v0.544.0 - ISC
|
|
177
|
-
*
|
|
178
|
-
* This source code is licensed under the ISC license.
|
|
179
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
-
*/const h1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],bv=Ee("refresh-cw",h1);/**
|
|
181
|
-
* @license lucide-react v0.544.0 - ISC
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the ISC license.
|
|
184
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/const m1=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Xo=Ee("rotate-ccw",m1);/**
|
|
186
|
-
* @license lucide-react v0.544.0 - ISC
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the ISC license.
|
|
189
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/const y1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ko=Ee("search",y1);/**
|
|
191
|
-
* @license lucide-react v0.544.0 - ISC
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the ISC license.
|
|
194
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/const v1=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],p1=Ee("send",v1);/**
|
|
196
|
-
* @license lucide-react v0.544.0 - ISC
|
|
197
|
-
*
|
|
198
|
-
* This source code is licensed under the ISC license.
|
|
199
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
-
*/const g1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],b1=Ee("settings",g1);/**
|
|
201
|
-
* @license lucide-react v0.544.0 - ISC
|
|
202
|
-
*
|
|
203
|
-
* This source code is licensed under the ISC license.
|
|
204
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
-
*/const x1=[["path",{d:"m10 20-1.25-2.5L6 18",key:"18frcb"}],["path",{d:"M10 4 8.75 6.5 6 6",key:"7mghy3"}],["path",{d:"m14 20 1.25-2.5L18 18",key:"1chtki"}],["path",{d:"m14 4 1.25 2.5L18 6",key:"1b4wsy"}],["path",{d:"m17 21-3-6h-4",key:"15hhxa"}],["path",{d:"m17 3-3 6 1.5 3",key:"11697g"}],["path",{d:"M2 12h6.5L10 9",key:"kv9z4n"}],["path",{d:"m20 10-1.5 2 1.5 2",key:"1swlpi"}],["path",{d:"M22 12h-6.5L14 15",key:"1mxi28"}],["path",{d:"m4 10 1.5 2L4 14",key:"k9enpj"}],["path",{d:"m7 21 3-6-1.5-3",key:"j8hb9u"}],["path",{d:"m7 3 3 6h4",key:"1otusx"}]],S1=Ee("snowflake",x1);/**
|
|
206
|
-
* @license lucide-react v0.544.0 - ISC
|
|
207
|
-
*
|
|
208
|
-
* This source code is licensed under the ISC license.
|
|
209
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
-
*/const E1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],j1=Ee("square",E1);/**
|
|
211
|
-
* @license lucide-react v0.544.0 - ISC
|
|
212
|
-
*
|
|
213
|
-
* This source code is licensed under the ISC license.
|
|
214
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
-
*/const N1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],C1=Ee("terminal",N1);/**
|
|
216
|
-
* @license lucide-react v0.544.0 - ISC
|
|
217
|
-
*
|
|
218
|
-
* This source code is licensed under the ISC license.
|
|
219
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
-
*/const T1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],R1=Ee("trash-2",T1);/**
|
|
221
|
-
* @license lucide-react v0.544.0 - ISC
|
|
222
|
-
*
|
|
223
|
-
* This source code is licensed under the ISC license.
|
|
224
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
-
*/const z1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],xv=Ee("users",z1);/**
|
|
226
|
-
* @license lucide-react v0.544.0 - ISC
|
|
227
|
-
*
|
|
228
|
-
* This source code is licensed under the ISC license.
|
|
229
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
-
*/const A1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Sv=Ee("x",A1);/**
|
|
231
|
-
* @license lucide-react v0.544.0 - ISC
|
|
232
|
-
*
|
|
233
|
-
* This source code is licensed under the ISC license.
|
|
234
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
-
*/const _1=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],w1=Ee("zap",_1),M1=[{to:"/chat",label:"对话",icon:r1},{to:"/projects",label:"项目",icon:a1},{to:"/board",label:"看板",icon:e1},{to:"/workers",label:"Workers",icon:xv},{to:"/logs",label:"Logs",icon:Xx},{to:"/skills",label:"Skills",icon:Px},{to:"/system",label:"系统",icon:b1}];function O1(){return f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"font-[family-name:var(--font-heading)] font-bold text-lg px-3 pt-2 pb-4 flex items-center gap-3 text-[var(--color-text)]",children:[f.jsx("span",{className:"w-5 h-5 rounded-md bg-[var(--color-accent-mint)] border-2 border-[var(--color-text)] shadow-[2px_2px_0_var(--color-text)]"}),"SPS Console",f.jsx("span",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] font-normal",children:"v0.44"})]}),f.jsx("nav",{className:"flex flex-col gap-1.5 mt-2","aria-label":"主导航",children:M1.map(n=>{const i=n.icon;return f.jsxs(yv,{to:n.to,className:({isActive:r})=>["flex items-center gap-3 px-3 py-2.5 rounded-xl font-semibold text-sm cursor-pointer transition-transform duration-150","border-2 border-transparent",r?"bg-[var(--color-accent-mint)] border-[var(--color-text)] shadow-[3px_3px_0_var(--color-text)] font-bold":"text-[var(--color-text)] hover:bg-[var(--color-bg-cream)] hover:border-[var(--color-text)] hover:shadow-[3px_3px_0_var(--color-text)] hover:-translate-x-px hover:-translate-y-px"].join(" "),children:[f.jsx(i,{size:18,strokeWidth:2.5}),n.label]},n.to)})})]})}class D1 extends Error{constructor(i,r,c){super(r),this.status=i,this.detail=c,this.name="ApiError"}}async function Ft(n){const i=await fetch(n,{headers:{Accept:"application/json"}});if(!i.ok){let r;try{r=await i.json()}catch{r=await i.text()}throw new D1(i.status,`${i.status} ${i.statusText}`,r)}return await i.json()}function Ev(){return Ft("/api/system/info")}function U1(){return Ft("/api/system/env")}function q1(){return Ft("/api/system/doctor/all")}function H1(){const{data:n,isError:i}=ot({queryKey:["system-info"],queryFn:Ev,refetchInterval:3e4});return f.jsxs("div",{className:"h-10 flex items-center gap-4 px-6 font-[family-name:var(--font-mono)] text-[11px] text-[var(--color-text-muted)]",children:[f.jsx("span",{className:"nb-status",style:{background:i?"var(--color-crashed-bg)":"var(--color-running-bg)",color:i?"var(--color-crashed)":"var(--color-running)",padding:"2px 8px 2px 7px"},children:i?"disconnected":"server"}),f.jsxs("span",{children:["localhost:",window.location.port]}),n&&f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),f.jsxs("span",{children:["v",n.version]}),f.jsx("span",{className:"text-[var(--color-text-subtle)]",children:"·"}),f.jsxs("span",{children:["node ",n.nodeVersion]})]}),f.jsx("span",{className:"ml-auto text-[var(--color-text-subtle)]",children:"Cmd+K"})]})}function L1(){return f.jsxs("div",{className:"grid grid-cols-[240px_1fr] grid-rows-[1fr_40px] min-h-screen",children:[f.jsx("aside",{className:"row-span-1 row-start-1 border-r-[3px] border-[var(--color-text)] bg-[var(--color-bg)] p-4 flex flex-col",children:f.jsx(O1,{})}),f.jsx("main",{className:"row-start-1 overflow-auto p-6 flex flex-col gap-4",children:f.jsx(Zb,{})}),f.jsx("footer",{className:"col-span-2 row-start-2 border-t-[3px] border-[var(--color-text)] bg-[var(--color-bg)]",children:f.jsx(H1,{})})]})}class k1 extends j.Component{constructor(){super(...arguments);Fm(this,"state",{error:null})}static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r,c){console.error("[ErrorBoundary]",r,c)}render(){return this.state.error?f.jsx("div",{className:"p-6",children:f.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-crashed-bg)]",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"💥 UI 崩了"}),f.jsx("p",{className:"text-sm mb-3 text-[var(--color-text-muted)]",children:this.state.error.message}),f.jsxs("details",{className:"text-xs mb-4",children:[f.jsx("summary",{className:"cursor-pointer font-semibold",children:"stack"}),f.jsx("pre",{className:"mt-2 font-[family-name:var(--font-mono)] overflow-auto max-h-60 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-md p-3",children:this.state.error.stack??"(no stack)"})]}),f.jsx("button",{className:"nb-btn nb-btn-mint",type:"button",onClick:()=>{this.setState({error:null}),window.location.reload()},children:"刷新页面"})]})}):this.props.children}}function Os(){return Ft("/api/projects")}function B1(){const{data:n,isLoading:i,isError:r,error:c,refetch:d}=ot({queryKey:["projects"],queryFn:Os});return f.jsxs("div",{className:"flex flex-col gap-6 max-w-6xl",children:[f.jsxs("header",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"项目 🎯"}),f.jsx("p",{className:"text-[var(--color-text-muted)] text-sm mt-1",children:n?`${n.data.length} 个本机项目`:i?"加载中…":"点击刷新重试"})]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsxs("button",{className:"nb-btn nb-btn-yellow",onClick:()=>d(),type:"button",children:[f.jsx(Dx,{size:16,strokeWidth:2.5}),"刷新"]}),f.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",children:[f.jsx(Ms,{size:16,strokeWidth:3}),"新建项目"]})]})]}),i&&f.jsx(G1,{}),r&&f.jsxs("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:"加载失败"}),f.jsx("p",{className:"text-sm text-[var(--color-text)]",children:c instanceof Error?c.message:String(c)}),f.jsx("button",{className:"nb-btn mt-4",onClick:()=>d(),type:"button",children:"重试"})]}),n&&n.data.length===0&&f.jsx(X1,{}),n&&n.data.length>0&&f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:n.data.map(h=>f.jsx(Q1,{project:h},h.name))})]})}function Q1({project:n}){const i=n.pipelineStatus==="running";return f.jsxs(Xn,{to:`/board?project=${encodeURIComponent(n.name)}`,className:"nb-card nb-card-interactive block no-underline text-[var(--color-text)]",children:[f.jsxs("div",{className:"flex items-center justify-between mb-3",children:[f.jsx("h3",{className:"font-[family-name:var(--font-heading)] font-bold text-xl truncate",children:n.name}),f.jsx(Y1,{status:n.pipelineStatus})]}),n.repoDir&&f.jsx("p",{className:"text-xs font-[family-name:var(--font-mono)] text-[var(--color-text-muted)] truncate mb-3",children:n.repoDir}),f.jsxs("div",{className:"grid grid-cols-3 gap-2 text-sm mt-4 pt-3 border-t-[1.5px] border-dashed border-[var(--color-border-light)]",children:[f.jsx(co,{label:"cards",value:n.cards.total,accent:"purple"}),f.jsx(co,{label:"inprogress",value:n.cards.inprogress,accent:n.cards.inprogress>0?"yellow":"idle"}),f.jsx(co,{label:"workers",value:`${n.workers.active}/${n.workers.total}`,accent:i?"mint":"idle"})]})]})}function co({label:n,value:i,accent:r}){const c={purple:"var(--color-accent-purple)",yellow:"var(--color-accent-yellow)",mint:"var(--color-accent-mint)",idle:"var(--color-bg-cream)"};return f.jsxs("div",{className:"flex flex-col items-center justify-center py-2 rounded-lg border-2 border-[var(--color-text)]",style:{background:c[r]},children:[f.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-lg",children:i}),f.jsx("span",{className:"text-[10px] uppercase tracking-wider text-[var(--color-text-muted)] font-semibold",children:n})]})}function Y1({status:n}){const i={running:{bg:"var(--color-running-bg)",label:"running"},idle:{bg:"var(--color-idle-bg)",label:"idle"},stopping:{bg:"var(--color-stuck-bg)",label:"stopping"},error:{bg:"var(--color-crashed-bg)",label:"error"}},{bg:r,label:c}=i[n],d=n==="running"?"var(--color-running)":n==="error"?"var(--color-crashed)":n==="stopping"?"var(--color-stuck)":"var(--color-idle)";return f.jsx("span",{className:"nb-status",style:{background:r,color:d},children:c})}function G1(){return f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[0,1,2].map(n=>f.jsxs("div",{className:"nb-card opacity-60 animate-pulse",children:[f.jsx("div",{className:"h-6 w-32 bg-[var(--color-border-light)] rounded-md mb-3"}),f.jsx("div",{className:"h-3 w-full bg-[var(--color-border-light)] rounded-md mb-2"}),f.jsx("div",{className:"h-3 w-2/3 bg-[var(--color-border-light)] rounded-md"})]},n))})}function X1(){return f.jsxs("div",{className:"nb-card bg-[var(--color-accent-yellow)] flex items-center gap-6 p-8",children:[f.jsx("div",{className:"w-20 h-20 rounded-2xl bg-[var(--color-accent-mint)] border-[3px] border-[var(--color-text)] shadow-[3px_3px_0_var(--color-text)] flex items-center justify-center",children:f.jsx(xv,{size:32,strokeWidth:2.5})}),f.jsxs("div",{className:"flex-1",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"还没有项目 ✨"}),f.jsxs("p",{className:"text-sm text-[var(--color-text)] mb-4",children:["运行 ",f.jsx("code",{className:"bg-[var(--color-bg)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded-md font-[family-name:var(--font-mono)]",children:"sps project init <name>"})," 创建第一个项目。"]}),f.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",children:[f.jsx(Ms,{size:16,strokeWidth:3}),"新建项目"]})]})]})}function K1(n){return Ft(`/api/projects/${encodeURIComponent(n)}/cards`)}function Z1(n,i){return Ft(`/api/projects/${encodeURIComponent(n)}/cards/${i}`)}async function Kn(n,i){const r=await fetch(n,{method:"POST",headers:i?{"Content-Type":"application/json"}:void 0,body:i?JSON.stringify(i):void 0});if(!r.ok){const c=await r.text();throw new Error(`${r.status} ${r.statusText}: ${c}`)}return r.json().catch(()=>({}))}function V1(n,i){return Kn(`/api/projects/${encodeURIComponent(n)}/cards/${i}/reset`)}function J1(n,i){return Kn(`/api/projects/${encodeURIComponent(n)}/cards/${i}/launch`)}function $1(n,i){return Kn(`/api/projects/${encodeURIComponent(n)}/cards`,{title:i})}function F1(n){return Kn(`/api/projects/${encodeURIComponent(n)}/pipeline/start`)}function W1(n){return Kn(`/api/projects/${encodeURIComponent(n)}/pipeline/stop`)}function P1(n,i){return Kn(`/api/projects/${encodeURIComponent(n)}/pipeline/reset`,i??{})}function jv(n){const i=Bn();j.useEffect(()=>{if(!n)return;const r=`/stream/projects/${encodeURIComponent(n)}`,c=new EventSource(r),d=g=>{try{const p=JSON.parse(g.data);i.invalidateQueries({queryKey:["cards",p.project]}),p.card&&i.setQueryData(["card",p.project,p.seq],{...i.getQueryData(["card",p.project,p.seq])??{},...p.card}),i.invalidateQueries({queryKey:["projects"]})}catch{}},h=g=>{try{const p=JSON.parse(g.data);i.invalidateQueries({queryKey:["workers",p.project]}),i.invalidateQueries({queryKey:["projects"]})}catch{}},v=g=>{try{const p=JSON.parse(g.data);i.invalidateQueries({queryKey:["pipeline-status",p.project]}),i.invalidateQueries({queryKey:["projects"]})}catch{}};return c.addEventListener("card.created",d),c.addEventListener("card.updated",d),c.addEventListener("card.deleted",d),c.addEventListener("worker.updated",h),c.addEventListener("worker.added",h),c.addEventListener("worker.deleted",h),c.addEventListener("pipeline.status",v),()=>c.close()},[n,i])}const I1=new Set(["python","typescript","golang","rust","kotlin","swift","java"]),e2=new Set(["frontend","backend","mobile","database","devops"]),t2=new Set(["backend-architect","frontend-developer","code-reviewer","database-optimizer","devops-automator","security-engineer","qa-tester","security","qa","architect","db-opt"]),a2=new Set(["coding-standards","tdd-workflow","git-workflow","architecture-decision-records","debugging-workflow"]);function l2(n){return I1.has(n)?"lang":e2.has(n)?"end":t2.has(n)?"persona":a2.has(n)?"workflow":"other"}const n2={lang:"var(--color-accent-purple)",end:"var(--color-secondary)",persona:"var(--color-primary)",workflow:"var(--color-accent-mint)",other:"var(--color-bg)"};function Nv({name:n}){const i=n2[l2(n)];return f.jsx("span",{className:"nb-badge",style:{background:i},children:n})}function Cv({label:n,kind:i="default"}){const r=i==="warn"?"var(--color-accent-pink)":i==="accent"?"var(--color-accent-yellow)":"var(--color-bg-cream)";return f.jsx("span",{className:"nb-badge",style:{background:r},children:n})}function i2({card:n,onClick:i,done:r}){const c=n.labels.some(d=>d.startsWith("STARTED-"))&&!r;return f.jsxs("article",{onClick:i,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),i())},tabIndex:0,role:"button","aria-label":`Card #${n.seq}: ${n.title}`,className:["bg-[var(--color-bg)] border-[3px] border-[var(--color-text)] rounded-xl p-3","shadow-[3px_3px_0_var(--color-text)] cursor-pointer","transition-[transform,box-shadow] duration-[180ms] ease-out","hover:-translate-x-0.5 hover:-translate-y-0.5 hover:shadow-[5px_5px_0_var(--color-text)]","focus:outline-none focus-visible:ring-[3px] focus-visible:ring-offset-2 focus-visible:ring-[var(--color-text)]",r?"opacity-60":""].join(" "),children:[f.jsxs("div",{className:"flex items-center justify-between gap-2 mb-2",children:[f.jsxs("span",{className:"font-[family-name:var(--font-mono)] font-bold text-[11px] px-2 py-0.5 bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-full",children:["#",n.seq]}),c&&f.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"running"})]}),f.jsx("p",{className:`font-bold text-sm leading-5 mb-2 line-clamp-2 ${r?"line-through decoration-2":""}`,children:n.title}),(n.skills.length>0||n.labels.length>0)&&f.jsxs("div",{className:"flex flex-wrap gap-1 mb-2",children:[n.skills.slice(0,3).map(d=>f.jsx(Nv,{name:d},d)),n.labels.filter(d=>d==="NEEDS-FIX").map(d=>f.jsx(Cv,{label:d,kind:"warn"},d))]}),f.jsxs("div",{className:"pt-2 border-t-[1.5px] border-dashed border-[var(--color-border-light)] flex items-center gap-2 text-[11px] font-[family-name:var(--font-mono)] text-[var(--color-text-subtle)]",children:[f.jsx("span",{children:u2(n.updatedAt??n.createdAt)}),n.branch&&f.jsxs("span",{className:"truncate",children:["· ",n.branch]})]})]})}function u2(n){if(!n)return"—";const i=new Date(n),r=Date.now()-i.getTime();return r<6e4?"刚才":r<36e5?`${Math.floor(r/6e4)}m ago`:r<864e5?`${Math.floor(r/36e5)}h ago`:i.toLocaleDateString()}function s2({label:n,bg:i,cards:r,onCardClick:c}){return f.jsxs("div",{className:"flex flex-col gap-2 p-3 rounded-2xl border-[3px] border-[var(--color-text)] min-h-[340px]",style:{background:i},children:[f.jsxs("div",{className:"flex items-center justify-between px-1 pb-2 border-b-2 border-[var(--color-text)]",children:[f.jsx("span",{className:"font-[family-name:var(--font-heading)] font-bold text-sm uppercase tracking-wider",children:n}),f.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-xs px-2 py-0.5 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-full",children:r.length})]}),f.jsxs("div",{className:"flex flex-col gap-2",children:[r.length===0&&f.jsx("div",{className:"text-xs text-[var(--color-text-muted)] text-center py-6 italic",children:"— 空 —"}),r.map(d=>f.jsx(i2,{card:d,onClick:()=>c(d),done:n==="Done"},d.seq))]})]})}function r2({title:n,body:i,confirm:r,onConfirm:c,onCancel:d,danger:h}){return j.useEffect(()=>{const v=g=>{g.key==="Escape"&&d()};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[d]),f.jsx("div",{role:"dialog","aria-modal":"true","aria-labelledby":"confirm-title",className:"fixed inset-0 z-50 flex items-center justify-center p-6 bg-black/30",onClick:d,children:f.jsxs("div",{onClick:v=>v.stopPropagation(),className:"nb-card max-w-md w-full",children:[f.jsx("h2",{id:"confirm-title",className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:n}),f.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-5",children:i}),f.jsxs("div",{className:"flex gap-3 justify-end",children:[f.jsx("button",{className:"nb-btn",onClick:d,type:"button",children:"取消"}),f.jsx("button",{className:h?"nb-btn nb-btn-danger":"nb-btn nb-btn-yellow",onClick:async()=>{await c()},type:"button",children:r})]})]})})}const Tv=j.createContext(null);function c2({children:n}){const[i,r]=j.useState(null),c=j.useCallback(v=>new Promise(g=>{r({kind:"confirm",opts:v,resolve:p=>{r(null),g(p)}})}),[]),d=j.useCallback(v=>new Promise(g=>{r({kind:"alert",opts:v,resolve:()=>{r(null),g()}})}),[]),h=j.useCallback(v=>new Promise(g=>{r({kind:"prompt",opts:v,resolve:p=>{r(null),g(p)}})}),[]);return f.jsxs(Tv.Provider,{value:{confirm:c,alert:d,prompt:h},children:[n,(i==null?void 0:i.kind)==="confirm"&&f.jsx(r2,{title:i.opts.title,body:i.opts.body,confirm:i.opts.confirm??"确定",danger:i.opts.danger,onConfirm:()=>i.resolve(!0),onCancel:()=>i.resolve(!1)}),(i==null?void 0:i.kind)==="alert"&&f.jsx(o2,{title:i.opts.title,body:i.opts.body,confirm:i.opts.confirm??"知道了",onClose:()=>i.resolve()}),(i==null?void 0:i.kind)==="prompt"&&f.jsx(f2,{title:i.opts.title,body:i.opts.body,placeholder:i.opts.placeholder,defaultValue:i.opts.defaultValue,confirm:i.opts.confirm??"确定",cancel:i.opts.cancel??"取消",onConfirm:v=>i.resolve(v),onCancel:()=>i.resolve(null)})]})}function tu(){const n=j.useContext(Tv);if(!n)throw new Error("useDialog must be used inside <DialogProvider>");return n}function o2({title:n,body:i,confirm:r,onClose:c}){return j.useEffect(()=>{const d=h=>{(h.key==="Escape"||h.key==="Enter")&&c()};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[c]),f.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-50 flex items-center justify-center p-6 bg-black/30",onClick:c,children:f.jsxs("div",{onClick:d=>d.stopPropagation(),className:"nb-card max-w-md w-full",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:n}),f.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-5 whitespace-pre-wrap break-words",children:i}),f.jsx("div",{className:"flex gap-3 justify-end",children:f.jsx("button",{className:"nb-btn nb-btn-primary",onClick:c,type:"button",autoFocus:!0,children:r})})]})})}function f2({title:n,body:i,placeholder:r,defaultValue:c,confirm:d,cancel:h,onConfirm:v,onCancel:g}){const[p,y]=j.useState(c??""),T=j.useRef(null);j.useEffect(()=>{var O,Q;(O=T.current)==null||O.focus(),(Q=T.current)==null||Q.select();const w=_=>{_.key==="Escape"&&g()};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[g]);const S=()=>{const w=p.trim();w&&v(w)};return f.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-50 flex items-center justify-center p-6 bg-black/30",onClick:g,children:f.jsxs("div",{onClick:w=>w.stopPropagation(),className:"nb-card max-w-md w-full",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-2",children:n}),i&&f.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-3 whitespace-pre-wrap break-words",children:i}),f.jsx("input",{ref:T,type:"text",className:"nb-input w-full mb-5",placeholder:r,value:p,onChange:w=>y(w.target.value),onKeyDown:w=>{w.key==="Enter"&&!w.nativeEvent.isComposing&&(w.preventDefault(),S())}}),f.jsxs("div",{className:"flex gap-3 justify-end",children:[f.jsx("button",{className:"nb-btn",onClick:g,type:"button",children:h}),f.jsx("button",{className:"nb-btn nb-btn-primary",onClick:S,type:"button",disabled:!p.trim(),children:d})]})]})})}function d2({project:n,seq:i,onClose:r,onChanged:c}){const{confirm:d}=tu(),{data:h,isLoading:v,isError:g,error:p}=ot({queryKey:["card",n,i],queryFn:()=>Z1(n,i)});return j.useEffect(()=>{const y=T=>{T.key==="Escape"&&r()};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[r]),f.jsx("div",{role:"dialog","aria-modal":"true","aria-labelledby":"card-modal-title",className:"fixed inset-0 z-40 flex items-start justify-center p-6 bg-black/30 overflow-auto",onClick:r,children:f.jsxs("div",{onClick:y=>y.stopPropagation(),className:"nb-card mt-12 w-full max-w-3xl bg-[var(--color-bg)]",children:[f.jsxs("header",{className:"flex items-start justify-between gap-4 mb-4",children:[f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[f.jsxs("span",{className:"font-[family-name:var(--font-mono)] font-bold text-xs px-2 py-0.5 bg-[var(--color-accent-purple)] border-2 border-[var(--color-text)] rounded-full",children:["#",i]}),(h==null?void 0:h.state)&&f.jsx("span",{className:"font-[family-name:var(--font-mono)] text-xs px-2 py-0.5 bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-full font-semibold",children:h.state})]}),f.jsx("h2",{id:"card-modal-title",className:"font-[family-name:var(--font-heading)] text-2xl font-bold",children:(h==null?void 0:h.title)??"加载中…"})]}),f.jsx("button",{onClick:r,className:"nb-btn nb-btn-mint p-2","aria-label":"关闭",type:"button",children:f.jsx(Sv,{size:16,strokeWidth:3})})]}),v&&f.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"}),g&&f.jsxs("p",{className:"text-[var(--color-crashed)]",children:["加载失败: ",p instanceof Error?p.message:String(p)]}),h&&f.jsxs("div",{className:"flex flex-col gap-4",children:[h.branch&&f.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[f.jsx(Fx,{size:14}),f.jsx("span",{className:"font-[family-name:var(--font-mono)]",children:h.branch})]}),(h.skills.length>0||h.labels.length>0)&&f.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[h.skills.map(y=>f.jsx(Nv,{name:y},y)),h.labels.map(y=>f.jsx(Cv,{label:y,kind:y==="NEEDS-FIX"?"warn":"default"},y))]}),h.checklist.total>0&&f.jsxs("div",{className:"nb-card bg-[var(--color-bg-cream)] p-3",children:[f.jsxs("div",{className:"flex items-center justify-between mb-2",children:[f.jsxs("span",{className:"font-bold text-sm",children:["检查清单 ",h.checklist.done,"/",h.checklist.total]}),f.jsx("div",{className:"w-24 h-2 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-full overflow-hidden",children:f.jsx("div",{className:"h-full bg-[var(--color-cta)]",style:{width:`${h.checklist.percent}%`}})})]}),f.jsx("ul",{className:"text-sm space-y-1",children:h.checklist.items.map((y,T)=>f.jsxs("li",{className:`flex items-start gap-2 ${y.done?"opacity-60 line-through":""}`,children:[f.jsx("span",{children:y.done?"✓":"○"}),f.jsx("span",{children:y.text})]},T))})]}),h.body&&f.jsxs("div",{children:[f.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"正文"}),f.jsx("pre",{className:"text-xs whitespace-pre-wrap font-[family-name:var(--font-mono)] bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg p-4 max-h-64 overflow-auto",children:h.body.trim()||"(空)"})]}),f.jsxs("div",{className:"flex gap-3 pt-2 border-t-2 border-[var(--color-border-light)]",children:[f.jsxs("button",{className:"nb-btn nb-btn-primary",type:"button",onClick:async()=>{await J1(n,i),c()},children:[f.jsx(Go,{size:14,strokeWidth:3}),"启动 worker"]}),f.jsxs("button",{className:"nb-btn nb-btn-yellow",type:"button",onClick:async()=>{await d({title:`重置卡片 #${i}`,body:"卡片状态会回到初始,已做的 checklist 会清空。",confirm:"重置",danger:!0})&&(await V1(n,i),c(),r())},children:[f.jsx(Xo,{size:14,strokeWidth:2.5}),"重置卡片"]})]})]})]})})}function Zo({current:n,onChange:i}){const[r,c]=j.useState(!1),d=j.useRef(null),{data:h}=ot({queryKey:["projects"],queryFn:Os});return j.useEffect(()=>{const v=g=>{var p;(p=d.current)!=null&&p.contains(g.target)||c(!1)};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[]),f.jsxs("div",{className:"relative",ref:d,children:[f.jsxs("button",{type:"button",className:"inline-flex items-center gap-2 px-3 py-2 bg-[var(--color-bg)] border-[3px] border-[var(--color-text)] rounded-xl shadow-[3px_3px_0_var(--color-text)] font-[family-name:var(--font-mono)] text-sm font-bold hover:-translate-x-px hover:-translate-y-px hover:shadow-[4px_4px_0_var(--color-text)] transition-[transform,box-shadow] duration-150",onClick:()=>c(v=>!v),children:[n,f.jsx(qx,{size:14,strokeWidth:2.5})]}),r&&h&&f.jsx("div",{className:"absolute right-0 mt-2 z-20 min-w-[200px] bg-[var(--color-bg)] border-[3px] border-[var(--color-text)] rounded-xl shadow-[5px_5px_0_var(--color-text)] overflow-hidden",children:h.data.map(v=>f.jsxs("button",{type:"button",onClick:()=>{i(v.name),c(!1)},className:["w-full text-left px-4 py-2 text-sm font-semibold",v.name===n?"bg-[var(--color-accent-mint)]":"hover:bg-[var(--color-bg-cream)]"].join(" "),children:[f.jsx("span",{className:"font-[family-name:var(--font-mono)]",children:v.name}),f.jsxs("span",{className:"ml-2 text-xs text-[var(--color-text-muted)]",children:[v.cards.total," cards"]})]},v.name))})]})}const h2=[{state:"Backlog",label:"Backlog",bg:"var(--color-accent-purple)"},{state:"Inprogress",label:"Inprogress",bg:"var(--color-accent-yellow)"},{state:"Review",label:"Review",bg:"var(--color-accent-pink)"},{state:"Done",label:"Done",bg:"var(--color-accent-mint)"}];function m2(){var K,G,X;const[n,i]=Yo(),r=n.get("project"),[c,d]=j.useState(null),[h,v]=j.useState(""),{confirm:g,prompt:p}=tu();jv(r);const y=ot({queryKey:["projects"],queryFn:Os}),T=ot({queryKey:["cards",r],queryFn:()=>K1(r??""),enabled:!!r}),S=Bn(),w=()=>{S.invalidateQueries({queryKey:["cards",r]}),S.invalidateQueries({queryKey:["projects"]}),S.invalidateQueries({queryKey:["pipeline-status",r]})},O=V=>{i({project:V})};if(!r)return f.jsxs("div",{className:"flex flex-col gap-6 max-w-4xl",children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"看板"}),f.jsxs("div",{className:"nb-card bg-[var(--color-accent-yellow)] max-w-2xl",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-3",children:"选择一个项目 🎯"}),f.jsx("p",{className:"text-sm mb-4 text-[var(--color-text-muted)]",children:"看板按项目分。挑一个开始:"}),f.jsx("div",{className:"flex flex-wrap gap-2",children:(K=y.data)==null?void 0:K.data.map(V=>f.jsx("button",{className:"nb-btn nb-btn-blue",onClick:()=>O(V.name),type:"button",children:V.name},V.name))})]})]});const Q=((G=T.data)==null?void 0:G.data)??[],_=h?Q.filter(V=>V.title.toLowerCase().includes(h.toLowerCase())||V.skills.some(le=>le.includes(h))||V.labels.some(le=>le.includes(h))):Q,H=(X=y.data)==null?void 0:X.data.find(V=>V.name===r),D=(H==null?void 0:H.pipelineStatus)==="running";return f.jsxs("div",{className:"flex flex-col gap-4 max-w-full",children:[f.jsxs("header",{className:"flex items-center justify-between flex-wrap gap-3",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"看板 ✨"}),f.jsx("p",{className:"text-[var(--color-text-muted)] text-sm mt-1",children:H?`${H.name} · ${H.cards.total} cards · ${H.workers.active} workers 活跃`:"加载中…"})]}),f.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[f.jsx(Zo,{current:r,onChange:O}),D?f.jsxs("button",{className:"nb-btn nb-btn-danger",onClick:async()=>{await W1(r),w()},type:"button",children:[f.jsx(j1,{size:14,strokeWidth:3})," 停止"]}):f.jsxs("button",{className:"nb-btn nb-btn-primary",onClick:async()=>{await F1(r),w()},type:"button",children:[f.jsx(Go,{size:14,strokeWidth:3})," 启动 pipeline"]}),f.jsxs("button",{className:"nb-btn nb-btn-yellow",type:"button",onClick:async()=>{await g({title:"重置整个流水线",body:"这会清空所有卡片的运行状态、worker marker、分支。不可撤销。",confirm:"重置全部",danger:!0})&&(await P1(r,{all:!0}),w())},children:[f.jsx(Xo,{size:14,strokeWidth:2.5})," 重置"]}),f.jsxs("button",{className:"nb-btn nb-btn-mint",type:"button",onClick:async()=>{const V=await p({title:"新建卡片",body:"输入卡片标题,会作为 markdown 文件的 title。",placeholder:"例如:接入 GitHub OAuth"});V&&(await $1(r,V),w())},children:[f.jsx(Ms,{size:14,strokeWidth:3})," 新卡片"]})]})]}),f.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[f.jsxs("div",{className:"relative flex-1 max-w-md",children:[f.jsx(Ko,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),f.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"搜索标题 / skill / label…",value:h,onChange:V=>v(V.target.value),"aria-label":"搜索卡片"})]}),f.jsxs("span",{className:"text-xs text-[var(--color-text-muted)] flex items-center gap-1 font-[family-name:var(--font-mono)]",children:[f.jsx(Jx,{size:12}),_.length," / ",Q.length]})]}),T.isError&&f.jsxs("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:[f.jsx("p",{className:"font-semibold",children:"加载卡片失败"}),f.jsx("p",{className:"text-sm mt-1 text-[var(--color-text-muted)]",children:T.error instanceof Error?T.error.message:String(T.error)})]}),!T.isError&&f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4",children:h2.map(V=>f.jsx(s2,{label:V.label,bg:V.bg,cards:_.filter(y2(V.state)),onCardClick:le=>d(le.seq)},V.state))}),c!==null&&f.jsx(d2,{project:r,seq:c,onClose:()=>d(null),onChanged:w})]})}function y2(n){return i=>n==="Backlog"?i.state==="Backlog"||i.state==="Planning":n==="Done"?i.state==="Done"||i.state==="Canceled":i.state===n}function v2(n){return Ft(`/api/projects/${encodeURIComponent(n)}/workers`)}async function p2(n,i){const r=await fetch(n,{method:"POST",headers:void 0,body:void 0});if(!r.ok)throw new Error(`${r.status}: ${await r.text()}`);return r.json().catch(()=>({}))}function g2(n,i){return p2(`/api/projects/${encodeURIComponent(n)}/workers/${i}/kill`)}function b2(){const[n,i]=Yo(),r=n.get("project");jv(r);const c=Bn(),{data:d,isLoading:h,isError:v,error:g,refetch:p}=ot({queryKey:["workers",r],queryFn:()=>v2(r??""),enabled:!!r,refetchInterval:5e3});if(!r)return f.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-accent-yellow)]",children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"Workers 👷"}),f.jsxs("p",{className:"text-sm text-[var(--color-text-muted)]",children:["在 URL 上加 ",f.jsx("code",{className:"bg-[var(--color-bg)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded",children:"?project=xx"}),",或从",f.jsx(Xn,{to:"/projects",className:"underline font-semibold",children:" 项目列表"})," 打开看板后跳转。"]})]});const y=(d==null?void 0:d.data)??[],T=y.filter(O=>O.state==="running").length,S=y.filter(O=>O.state==="stuck").length,w=y.filter(O=>O.state==="crashed").length;return f.jsxs("div",{className:"flex flex-col gap-4 max-w-6xl",children:[f.jsxs("header",{className:"flex items-center justify-between gap-3 flex-wrap",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"Workers 👷"}),f.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[y.length," 个 slot · ",T," running · ",S," stuck · ",w," crashed"]})]}),f.jsxs("div",{className:"flex gap-3 items-center",children:[f.jsx(Zo,{current:r,onChange:O=>i({project:O})}),f.jsxs("button",{className:"nb-btn nb-btn-yellow",onClick:()=>p(),type:"button",children:[f.jsx(Xo,{size:14,strokeWidth:2.5})," 刷新"]})]})]}),h&&f.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"}),v&&f.jsx("div",{className:"nb-card bg-[var(--color-crashed-bg)]",children:f.jsxs("p",{className:"font-semibold",children:["加载失败: ",g instanceof Error?g.message:String(g)]})}),!h&&y.length===0&&f.jsx("div",{className:"nb-card bg-[var(--color-bg-cream)]",children:f.jsx("p",{className:"text-[var(--color-text-muted)]",children:"当前没有 worker slot。启动一次 pipeline 就会出现。"})}),y.length>0&&f.jsx("div",{className:"nb-card p-0 overflow-hidden",children:f.jsxs("table",{className:"w-full text-sm",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"bg-[var(--color-bg-cream)] border-b-2 border-[var(--color-text)]",children:[f.jsx(Ml,{w:"70px",children:"Slot"}),f.jsx(Ml,{children:"Card"}),f.jsx(Ml,{w:"110px",children:"Status"}),f.jsx(Ml,{w:"90px",children:"Stage"}),f.jsx(Ml,{w:"90px",children:"PID"}),f.jsx(Ml,{w:"120px",children:"Runtime"}),f.jsx(Ml,{w:"200px",right:!0,children:"Action"})]})}),f.jsx("tbody",{children:y.map(O=>f.jsx(x2,{project:r,worker:O,onChange:()=>c.invalidateQueries({queryKey:["workers",r]})},O.slot))})]})})]})}function Ml({children:n,w:i,right:r}){return f.jsx("th",{className:["px-4 py-3 text-left font-[family-name:var(--font-heading)] font-bold text-[12px] uppercase tracking-wider text-[var(--color-text-muted)]",r?"text-right":""].join(" "),style:i?{width:i}:void 0,children:n})}function x2({project:n,worker:i,onChange:r}){const{confirm:c}=tu(),d=i.state==="idle";return f.jsxs("tr",{className:"border-b border-dashed border-[var(--color-border-light)] last:border-0 hover:bg-[var(--color-accent-yellow)] transition-colors",children:[f.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] font-bold",children:i.slot}),f.jsx("td",{className:"px-4 py-3",children:i.card?f.jsxs("span",{className:"font-semibold",children:[f.jsxs("span",{className:"inline-block px-2 py-0.5 text-xs bg-[var(--color-accent-purple)] border-2 border-[var(--color-text)] rounded-full font-[family-name:var(--font-mono)] mr-2",children:["#",i.card.seq]}),i.card.title]}):f.jsx("em",{className:"text-[var(--color-text-subtle)]",children:"— 空闲 —"})}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(S2,{state:i.state})}),f.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:i.stage||"—"}),f.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:i.pid??"—"}),f.jsx("td",{className:"px-4 py-3 font-[family-name:var(--font-mono)] text-[var(--color-text-muted)]",children:E2(i.runtimeMs)}),f.jsx("td",{className:"px-4 py-3 text-right space-x-2",children:!d&&f.jsxs(f.Fragment,{children:[f.jsxs(Xn,{to:`/logs?project=${encodeURIComponent(n)}&worker=${i.slot}`,className:"nb-btn nb-btn-sm",style:{display:"inline-flex",padding:"4px 10px",fontSize:11},children:[f.jsx(C1,{size:12,strokeWidth:2.5})," log"]}),f.jsxs("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:async()=>{await c({title:`终止 worker-${i.slot}`,body:"当前任务会被强制中断,未保存的工作可能丢失。",confirm:"终止",danger:!0})&&(await g2(n,i.slot),r())},type:"button",children:[f.jsx(w1,{size:12,strokeWidth:2.5})," 终止"]})]})})]})}function S2({state:n}){const i={running:{bg:"var(--color-running-bg)",color:"var(--color-running)"},stuck:{bg:"var(--color-stuck-bg)",color:"var(--color-stuck)"},crashed:{bg:"var(--color-crashed-bg)",color:"var(--color-crashed)"},idle:{bg:"var(--color-idle-bg)",color:"var(--color-idle)"}},{bg:r,color:c}=i[n];return f.jsx("span",{className:"nb-status",style:{background:r,color:c},children:n})}function E2(n){if(n==null||n<=0)return"—";const i=Math.floor(n/1e3),r=Math.floor(i/3600),c=Math.floor(i%3600/60),d=i%60,h=v=>v.toString().padStart(2,"0");return r>0?`${h(r)}:${h(c)}:${h(d)}`:`${h(c)}:${h(d)}`}function j2(n){const i=new URLSearchParams({project:n.project});return n.worker&&i.set("worker",n.worker),i.set("limit",String(n.limit)),Ft(`/api/logs?${i}`)}function N2(n){const i=new URLSearchParams({project:n.project});return n.worker&&i.set("worker",n.worker),`/stream/logs?${i}`}const C2=["error","warn","info","debug"],T2=["error","warn","info"];function R2(){const[n,i]=Yo(),r=n.get("project"),c=n.get("worker")??"",[d,h]=j.useState([]),[v,g]=j.useState(!1),[p,y]=j.useState(!0),[T,S]=j.useState(()=>new Set(T2)),[w,O]=j.useState(""),Q=j.useRef(null),{data:_}=ot({queryKey:["logs",r,c],queryFn:()=>j2({project:r??"",worker:c||void 0,limit:500}),enabled:!!r});j.useEffect(()=>{_!=null&&_.data&&h(_.data)},[_]),j.useEffect(()=>{if(!r)return;const D=N2({project:r,worker:c||void 0}),K=new EventSource(D);return K.addEventListener("log.line",G=>{if(!v)try{const X=JSON.parse(G.data);h(V=>{const le=[...V,X];return le.length>5e3&&le.splice(0,le.length-5e3),le})}catch{}}),()=>K.close()},[r,c,v]),j.useEffect(()=>{if(!p)return;const D=Q.current;D&&(D.scrollTop=D.scrollHeight)},[d,p]);const H=j.useMemo(()=>{const D=w.toLowerCase();return d.filter(K=>!(!T.has(K.level)||D&&!K.msg.toLowerCase().includes(D)))},[d,T,w]);return r?f.jsxs("div",{className:"flex flex-col gap-4 max-w-full",children:[f.jsxs("header",{className:"flex items-center justify-between gap-3 flex-wrap",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold tracking-tight",children:"Logs 📜"}),f.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[r,c&&` · worker-${c}`," · tail -f · ",d.length," lines",v&&f.jsx("span",{className:"text-[var(--color-stuck)] ml-2 font-bold",children:"⏸ PAUSED"})]})]}),f.jsx("div",{className:"flex gap-3 items-center",children:f.jsx(Zo,{current:r,onChange:D=>i({project:D})})})]}),f.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[f.jsxs("div",{className:"relative flex-1 max-w-md",children:[f.jsx(Ko,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),f.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"过滤关键字…",value:w,onChange:D=>O(D.target.value),"aria-label":"过滤日志"})]}),f.jsx("div",{className:"flex items-center gap-1 p-1 bg-[var(--color-bg)] border-[2px] border-[var(--color-text)] rounded-full shadow-[2px_2px_0_var(--color-text)]",children:C2.map(D=>f.jsx(z2,{level:D,enabled:T.has(D),onToggle:()=>{S(K=>{const G=new Set(K);return G.has(D)?G.delete(D):G.add(D),G})}},D))}),f.jsxs("div",{className:"ml-auto flex gap-2",children:[f.jsx("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>y(D=>!D),type:"button",children:p?"✓ Auto-scroll":"Auto-scroll"}),f.jsx("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>g(D=>!D),type:"button",children:v?f.jsxs(f.Fragment,{children:[f.jsx(Go,{size:12,strokeWidth:3})," Resume"]}):f.jsxs(f.Fragment,{children:[f.jsx(o1,{size:12,strokeWidth:3})," Pause"]})}),f.jsxs("button",{className:"nb-btn",style:{padding:"6px 12px",fontSize:12},onClick:()=>{const D=new Blob([H.map(X=>X.raw).join(`
|
|
236
|
-
`)],{type:"text/plain"}),K=URL.createObjectURL(D),G=document.createElement("a");G.href=K,G.download=`${r}-log-${Date.now()}.log`,G.click(),URL.revokeObjectURL(K)},type:"button",children:[f.jsx(Yx,{size:12,strokeWidth:2.5})," Export"]})]})]}),f.jsxs("div",{className:"nb-card p-0 overflow-hidden",children:[f.jsxs("div",{className:"px-4 py-2 bg-[var(--color-bg-cream)] border-b-2 border-[var(--color-text)] flex items-center justify-between font-[family-name:var(--font-mono)] text-xs",children:[f.jsx("span",{className:"text-[var(--color-text-muted)]",children:(_==null?void 0:_.file)??"~/.coral/projects/.../logs/*.log"}),f.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"live"})]}),f.jsxs("div",{ref:Q,className:"overflow-auto font-[family-name:var(--font-mono)] text-[12px] leading-[22px] max-h-[70vh] bg-[var(--color-bg)] p-2",onScroll:D=>{const K=D.currentTarget;!(K.scrollHeight-K.scrollTop-K.clientHeight<40)&&p&&y(!1)},children:[H.map((D,K)=>f.jsx(A2,{line:D},K)),H.length===0&&f.jsx("div",{className:"text-center py-12 text-[var(--color-text-subtle)]",children:"没有匹配的日志"})]})]})]}):f.jsxs("div",{className:"nb-card max-w-2xl bg-[var(--color-accent-yellow)]",children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"Logs 📜"}),f.jsxs("p",{className:"text-sm",children:["需要 ",f.jsx("code",{children:"?project=xx"}),"。"]})]})}function z2({level:n,enabled:i,onToggle:r}){const c={error:"var(--color-crashed-bg)",warn:"var(--color-stuck-bg)",info:"var(--color-secondary)",debug:"var(--color-accent-purple)"},d={error:"var(--color-crashed)",warn:"var(--color-stuck)",info:"var(--color-text)",debug:"var(--color-text)"};return f.jsx("button",{type:"button",onClick:r,"aria-pressed":i,className:["px-3 py-0.5 rounded-full font-[family-name:var(--font-mono)] text-[10px] font-bold tracking-widest cursor-pointer",i?"border-[1.5px] border-[var(--color-text)]":"text-[var(--color-text-subtle)]"].join(" "),style:i?{background:c[n],color:d[n]}:{},children:n.toUpperCase()})}function A2({line:n}){var r;const i={error:"bg-[var(--color-crashed)] text-[var(--color-text)]",warn:"bg-[var(--color-stuck)] text-[var(--color-text)]",info:"bg-[var(--color-secondary)] text-[var(--color-text)]",debug:"",trace:""};return f.jsxs("div",{className:"grid grid-cols-[100px_60px_1fr] gap-2 px-2 py-0.5 rounded hover:bg-[var(--color-bg-cream)]",children:[f.jsx("span",{className:"text-[var(--color-text-subtle)] whitespace-nowrap",children:n.ts?((r=n.ts.split("T")[1])==null?void 0:r.replace("Z",""))??n.ts:"--"}),f.jsx("span",{className:`text-center font-bold ${i[n.level]??""}`,style:{borderRadius:4,padding:"0 6px"},children:n.level.toUpperCase()}),f.jsx("span",{className:"truncate text-[var(--color-text)]",children:n.msg})]})}function _2(n){return Ft("/api/skills")}function w2(n){return Ft(`/api/skills/${encodeURIComponent(n)}`)}async function Ds(n,i){const r=await fetch(n,{method:"POST",headers:i?{"Content-Type":"application/json"}:void 0,body:i?JSON.stringify(i):void 0});if(!r.ok)throw new Error(`${r.status}: ${await r.text()}`);return r.json().catch(()=>({}))}function M2(n,i){return Ds(`/api/skills/${encodeURIComponent(n)}/link`,{project:i})}function O2(n,i){return fetch(`/api/skills/${encodeURIComponent(n)}/link?project=${encodeURIComponent(i)}`,{method:"DELETE"}).then(r=>{if(!r.ok)throw new Error(`${r.status}`);return r.json()})}function D2(n,i){return Ds(`/api/skills/${encodeURIComponent(n)}/freeze`,{project:i})}function U2(n,i){return Ds(`/api/skills/${encodeURIComponent(n)}/unfreeze`,{project:i})}function q2(){return Ds("/api/skills/sync")}function H2({name:n,projects:i,onClose:r,onChange:c}){const{confirm:d}=tu(),{data:h,isLoading:v,isError:g,error:p,refetch:y}=ot({queryKey:["skill",n],queryFn:()=>w2(n)});j.useEffect(()=>{const _=H=>{H.key==="Escape"&&r()};return window.addEventListener("keydown",_),()=>window.removeEventListener("keydown",_)},[r]);const T=async _=>{await M2(n,_),y(),c()},S=async _=>{await d({title:`从 ${_} 移除 ${n}`,body:"skill 链接会被解除,项目后续运行时将无法使用该 skill。",confirm:"移除",danger:!0})&&(await O2(n,_),y(),c())},w=async _=>{await D2(n,_),y(),c()},O=async _=>{await d({title:`解冻 ${n} @ ${_}`,body:"本地对这个 skill 的改动会被覆盖,回到最新共享版本。",confirm:"解冻",danger:!0})&&(await U2(n,_),y(),c())},Q=new Map(((h==null?void 0:h.linkedProjects)??[]).map(_=>[_.project,_.state]));return f.jsx("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-40 flex items-start justify-center p-6 bg-black/30 overflow-auto",onClick:r,children:f.jsxs("div",{onClick:_=>_.stopPropagation(),className:"nb-card mt-8 w-full max-w-4xl",children:[f.jsxs("header",{className:"flex items-start justify-between gap-4 mb-4",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-3xl font-bold",children:n}),h&&f.jsxs("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:[h.category," · ",h.origin||"local"]})]}),f.jsx("button",{onClick:r,className:"nb-btn nb-btn-mint p-2","aria-label":"关闭",type:"button",children:f.jsx(Sv,{size:16,strokeWidth:3})})]}),v&&f.jsx("p",{children:"加载中…"}),g&&f.jsxs("p",{className:"text-[var(--color-crashed)]",children:["加载失败: ",p instanceof Error?p.message:String(p)]}),h&&f.jsxs("div",{className:"flex flex-col gap-4",children:[f.jsxs("div",{className:"nb-card bg-[var(--color-bg-cream)] p-4",children:[f.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-3 uppercase tracking-wider",children:"项目链接状态"}),f.jsxs("div",{className:"flex flex-col gap-2",children:[i.map(_=>{const H=Q.get(_);return f.jsxs("div",{className:"flex items-center justify-between gap-3 p-2 bg-[var(--color-bg)] border-2 border-[var(--color-text)] rounded-lg",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("span",{className:"font-[family-name:var(--font-mono)] font-bold text-sm",children:_}),H==="linked"&&f.jsx("span",{className:"nb-status",style:{background:"var(--color-running-bg)",color:"var(--color-running)"},children:"linked"}),H==="frozen"&&f.jsx("span",{className:"nb-status",style:{background:"var(--color-stuck-bg)",color:"var(--color-stuck)"},children:"frozen"}),!H&&f.jsx("span",{className:"nb-status",style:{background:"var(--color-idle-bg)",color:"var(--color-idle)"},children:"absent"})]}),f.jsxs("div",{className:"flex gap-2",children:[!H&&f.jsxs("button",{className:"nb-btn nb-btn-primary",style:{padding:"4px 10px",fontSize:11},onClick:()=>T(_),type:"button",children:[f.jsx(n1,{size:11})," link"]}),H==="linked"&&f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:"nb-btn",style:{padding:"4px 10px",fontSize:11},onClick:()=>w(_),type:"button",children:[f.jsx(S1,{size:11})," freeze"]}),f.jsx("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:()=>S(_),type:"button",children:"unlink"})]}),H==="frozen"&&f.jsxs(f.Fragment,{children:[f.jsxs("button",{className:"nb-btn",style:{padding:"4px 10px",fontSize:11},onClick:()=>O(_),type:"button",children:[f.jsx(Zx,{size:11})," unfreeze"]}),f.jsx("button",{className:"nb-btn nb-btn-danger",style:{padding:"4px 10px",fontSize:11},onClick:()=>S(_),type:"button",children:"unlink"})]})]})]},_)}),i.length===0&&f.jsx("p",{className:"text-sm text-[var(--color-text-muted)] italic",children:"还没有任何项目。先去创建一个项目。"})]})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"SKILL.md 预览"}),f.jsx("pre",{className:"text-xs whitespace-pre-wrap font-[family-name:var(--font-mono)] bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg p-4 max-h-80 overflow-auto",children:h.body||"(empty)"})]}),h.references.length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"font-[family-name:var(--font-heading)] text-sm font-bold mb-2 uppercase tracking-wider",children:"References"}),f.jsx("ul",{className:"text-sm space-y-1 font-[family-name:var(--font-mono)]",children:h.references.map(_=>f.jsxs("li",{className:"flex items-center gap-3",children:[f.jsx("span",{children:_.name}),f.jsxs("span",{className:"text-xs text-[var(--color-text-subtle)]",children:[_.lines," lines"]})]},_.name))})]})]})]})})}const L2=[{value:"all",label:"全部"},{value:"language",label:"language"},{value:"end",label:"end"},{value:"persona",label:"persona"},{value:"workflow",label:"workflow"},{value:"other",label:"other"}],k2={language:"var(--color-accent-purple)",end:"var(--color-secondary)",persona:"var(--color-primary)",workflow:"var(--color-accent-mint)",other:"var(--color-bg-cream)"};function B2(){var w;const[n,i]=j.useState("all"),[r,c]=j.useState(""),[d,h]=j.useState(null),v=Bn(),{data:g,isLoading:p}=ot({queryKey:["skills"],queryFn:()=>_2()}),y=ot({queryKey:["projects"],queryFn:Os}),T=j.useMemo(()=>((g==null?void 0:g.data)??[]).filter(Q=>!(n!=="all"&&Q.category!==n||r&&!Q.name.toLowerCase().includes(r.toLowerCase()))),[g,n,r]),S=j.useMemo(()=>{const O=(g==null?void 0:g.data)??[],Q={all:O.length};for(const _ of O)Q[_.category]=(Q[_.category]??0)+1;return Q},[g]);return f.jsxs("div",{className:"flex flex-col gap-4 max-w-6xl",children:[f.jsxs("header",{className:"flex items-center justify-between flex-wrap gap-3",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"Skills 🎯"}),f.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mt-1",children:p?"加载中…":`${(g==null?void 0:g.data.length)??0} 个 user-level skill`})]}),f.jsx("div",{className:"flex gap-3 items-center",children:f.jsxs("button",{className:"nb-btn nb-btn-mint",onClick:async()=>{await q2(),v.invalidateQueries({queryKey:["skills"]})},type:"button",children:[f.jsx(bv,{size:14,strokeWidth:2.5}),"Sync bundled"]})})]}),f.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[f.jsxs("div",{className:"relative flex-1 max-w-md",children:[f.jsx(Ko,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-[var(--color-text-subtle)]"}),f.jsx("input",{className:"nb-input pl-9 w-full",placeholder:"搜索 skill…",value:r,onChange:O=>c(O.target.value),"aria-label":"搜索 skill"})]}),f.jsx("div",{className:"flex gap-1 p-1 bg-[var(--color-bg)] border-[2px] border-[var(--color-text)] rounded-full shadow-[2px_2px_0_var(--color-text)]",children:L2.map(O=>f.jsxs("button",{type:"button",onClick:()=>i(O.value),className:["px-3 py-1 rounded-full text-xs font-bold font-[family-name:var(--font-body)]",n===O.value?"bg-[var(--color-text)] text-[var(--color-bg)]":"text-[var(--color-text-muted)] hover:text-[var(--color-text)]"].join(" "),children:[O.label," ",S[O.value]]},O.value))})]}),f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:T.map(O=>{var Q;return f.jsx(Q2,{skill:O,projectCount:((Q=y.data)==null?void 0:Q.data.length)??0,onOpen:()=>h(O.name)},O.name)})}),d&&f.jsx(H2,{name:d,projects:((w=y.data)==null?void 0:w.data.map(O=>O.name))??[],onClose:()=>h(null),onChange:()=>v.invalidateQueries({queryKey:["skills"]})})]})}function Q2({skill:n,projectCount:i,onOpen:r}){const c=k2[n.category];return f.jsxs("article",{onClick:r,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),r())},tabIndex:0,role:"button","aria-label":`Open ${n.name}`,className:"nb-card nb-card-interactive flex flex-col gap-3",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h3",{className:"font-[family-name:var(--font-heading)] font-bold text-lg",children:n.name}),f.jsx("span",{className:"nb-badge text-[10px]",style:{background:c},children:n.category})]}),f.jsx("p",{className:"text-sm text-[var(--color-text-muted)] leading-5 line-clamp-3",children:n.description||"(no description)"}),f.jsxs("div",{className:"flex items-center justify-between text-xs font-[family-name:var(--font-mono)] pt-2 border-t-[1.5px] border-dashed border-[var(--color-border-light)]",children:[f.jsx("span",{className:"font-bold",children:n.linkedProjects.length>0?`● linked in ${n.linkedProjects.length}`:"○ not linked"}),f.jsxs("span",{className:"text-[var(--color-text-subtle)]",children:[i," projects"]})]})]})}function Y2(){const n=ot({queryKey:["system-info"],queryFn:Ev}),i=ot({queryKey:["system-env"],queryFn:U1}),r=ot({queryKey:["doctor"],queryFn:q1});return f.jsxs("div",{className:"flex flex-col gap-6 max-w-4xl",children:[f.jsx("header",{children:f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold",children:"系统 ⚙️"})}),f.jsxs("section",{className:"nb-card",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold mb-3",children:"版本与运行时"}),n.data?f.jsxs("dl",{className:"grid grid-cols-[160px_1fr] gap-y-2 text-sm",children:[f.jsx("dt",{className:"font-bold",children:"sps-cli"}),f.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:n.data.version}),f.jsx("dt",{className:"font-bold",children:"Node"}),f.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:n.data.nodeVersion}),f.jsx("dt",{className:"font-bold",children:"Platform"}),f.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:n.data.platform}),f.jsx("dt",{className:"font-bold",children:"PID"}),f.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:n.data.pid??"—"}),f.jsx("dt",{className:"font-bold",children:"Uptime"}),f.jsx("dd",{className:"font-[family-name:var(--font-mono)]",children:G2(n.data.uptimeMs)})]}):f.jsx("p",{className:"text-[var(--color-text-muted)]",children:"加载中…"})]}),f.jsxs("section",{className:"nb-card",children:[f.jsxs("div",{className:"flex items-center justify-between mb-3",children:[f.jsxs("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold",children:["全局配置 ",f.jsx("code",{className:"text-sm font-[family-name:var(--font-mono)] font-normal bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded",children:"~/.coral/env"})]}),f.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:"敏感值脱敏"})]}),i.data&&i.data.exists?f.jsx("dl",{className:"grid grid-cols-[220px_1fr] gap-y-1 text-sm font-[family-name:var(--font-mono)]",children:i.data.entries.map(c=>f.jsxs("div",{className:"contents",children:[f.jsxs("dt",{className:"font-bold flex items-center gap-2",children:[c.masked&&f.jsx("span",{className:"text-[var(--color-stuck)]",children:"🔒"}),c.key]}),f.jsx("dd",{className:"text-[var(--color-text-muted)] truncate",children:c.value})]},c.key))}):f.jsxs("p",{className:"text-[var(--color-text-muted)] text-sm",children:["env 文件不存在。运行 ",f.jsx("code",{className:"bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] px-2 py-0.5 rounded font-[family-name:var(--font-mono)]",children:"sps setup"})," 配置。"]})]}),f.jsxs("section",{className:"nb-card",children:[f.jsxs("div",{className:"flex items-center justify-between mb-3",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] text-xl font-bold",children:"项目健康检查"}),f.jsxs("button",{className:"nb-btn nb-btn-mint",style:{padding:"6px 12px",fontSize:12},onClick:()=>r.refetch(),type:"button",children:[f.jsx(bv,{size:12,strokeWidth:2.5}),"重跑"]})]}),r.data&&r.data.data.length>0?f.jsx("ul",{className:"flex flex-col gap-2",children:r.data.data.map(c=>f.jsxs("li",{className:"flex items-center gap-3 px-3 py-2 bg-[var(--color-bg-cream)] border-2 border-[var(--color-text)] rounded-lg",children:[c.ok?f.jsx(Bx,{size:16,className:"text-[var(--color-running)]",strokeWidth:2.5}):f.jsx(Lx,{size:16,className:"text-[var(--color-stuck)]",strokeWidth:2.5}),f.jsx("span",{className:"font-bold font-[family-name:var(--font-mono)]",children:c.project}),c.issues.length>0?f.jsx("span",{className:"text-xs text-[var(--color-text-muted)]",children:c.issues.join("; ")}):f.jsx("span",{className:"text-xs text-[var(--color-running)] font-semibold",children:"OK"})]},c.project))}):f.jsx("p",{className:"text-[var(--color-text-muted)] text-sm",children:"还没有项目。"})]})]})}function G2(n){const i=Math.floor(n/1e3),r=Math.floor(i/3600),c=Math.floor(i%3600/60),d=i%60;return r>0?`${r}h ${c}m ${d}s`:c>0?`${c}m ${d}s`:`${d}s`}function X2(){return Ft("/api/chat/sessions")}function K2(n){return Ft(`/api/chat/sessions/${n}`)}async function Ry(n={}){const i=await fetch("/api/chat/sessions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!i.ok)throw new Error(`${i.status}: ${await i.text()}`);return await i.json()}async function Z2(n){const i=await fetch(`/api/chat/sessions/${n}`,{method:"DELETE"});if(!i.ok)throw new Error(`${i.status}`)}async function V2(n,i){const r=await fetch(`/api/chat/sessions/${n}/messages`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:i})});if(!r.ok)throw new Error(`${r.status}: ${await r.text()}`);return await r.json()}function zy(){var D,K,G,X,V,le;const{sessionId:n}=wb(),i=_s(),r=Bn(),{confirm:c,alert:d}=tu(),h=ot({queryKey:["chat-sessions"],queryFn:X2}),v=ot({queryKey:["chat-session",n],queryFn:()=>K2(n??""),enabled:!!n}),[g,p]=j.useState(null),[y,T]=j.useState(""),[S,w]=j.useState(!1),O=j.useRef(null);j.useEffect(()=>{if(!n)return;const Y=new EventSource(`/stream/chat/${encodeURIComponent(n)}`);return Y.addEventListener("chat.message",Z=>{try{const W=JSON.parse(Z.data);r.setQueryData(["chat-session",n],I=>{if(!I||I.messages.some(Be=>Be.id===W.message.id))return I;const qe=I.messages.findIndex(Be=>Be.role==="user"&&Be.id.startsWith("optim-")&&Be.content===W.message.content);if(qe>=0){const Be=[...I.messages];return Be[qe]=W.message,{...I,messages:Be}}return{...I,messages:[...I.messages,W.message]}})}catch{}}),Y.addEventListener("chat.message.pending",Z=>{try{const W=JSON.parse(Z.data);p({id:W.assistantId,target:"",displayed:"",done:!1,finalMessage:null})}catch{}}),Y.addEventListener("chat.message.chunk",Z=>{try{const W=JSON.parse(Z.data);p(I=>I&&I.id===W.assistantId?{...I,target:W.accumulated}:I)}catch{}}),Y.addEventListener("chat.message.complete",Z=>{try{const W=JSON.parse(Z.data);p(I=>I&&I.id===W.assistantId?{...I,target:W.message.content||I.target,done:!0,finalMessage:W.message}:I)}catch{}}),()=>Y.close()},[n,r]),j.useEffect(()=>{if(!g)return;if(g.displayed.length>=g.target.length){if(g.done&&g.finalMessage){const Z=g.finalMessage;r.setQueryData(["chat-session",n],W=>!W||W.messages.some(I=>I.id===Z.id)?W:{...W,messages:[...W.messages,Z],lastMessageAt:Z.ts,messageCount:W.messageCount+1}),r.invalidateQueries({queryKey:["chat-sessions"]}),p(null),w(!1)}return}const Y=setTimeout(()=>{p(Z=>{if(!Z)return Z;const W=Z.target.length-Z.displayed.length;if(W<=0)return Z;const I=Math.max(1,Math.ceil(W/40));return{...Z,displayed:Z.target.slice(0,Z.displayed.length+I)}})},25);return()=>clearTimeout(Y)},[g,r,n]),j.useEffect(()=>{const Y=O.current;Y&&(Y.scrollTop=Y.scrollHeight)},[v.data,g]);const Q=j.useCallback(async()=>{const Y=await Ry();r.invalidateQueries({queryKey:["chat-sessions"]}),i(`/chat/${Y.id}`)},[r,i]),_=j.useCallback(async()=>{const Y=y.trim();if(!Y||S)return;let Z=n;if(!Z){const I=await Ry();r.invalidateQueries({queryKey:["chat-sessions"]}),Z=I.id,i(`/chat/${Z}`,{replace:!0})}const W={id:`optim-${Date.now()}`,role:"user",content:Y,ts:new Date().toISOString(),status:"complete"};r.setQueryData(["chat-session",Z],I=>I?{...I,messages:[...I.messages,W],lastMessageAt:W.ts,messageCount:I.messageCount+1}:{id:Z,createdAt:W.ts,lastMessageAt:W.ts,title:Y.slice(0,60),project:null,messageCount:1,messages:[W]}),T(""),w(!0);try{await V2(Z,Y)}catch(I){w(!1),console.error("sendMessage failed",I),d({title:"发送失败",body:I instanceof Error?I.message:String(I)})}},[y,S,n,r,i,d]),H=j.useCallback(async Y=>{await c({title:"删除对话",body:"对话记录会永久删除,不可恢复。",confirm:"删除",danger:!0})&&(await Z2(Y),r.invalidateQueries({queryKey:["chat-sessions"]}),n===Y&&i("/chat"))},[r,n,i,c]);return f.jsxs("div",{className:"grid grid-cols-[260px_1fr] gap-4 h-[calc(100vh-140px)]",children:[f.jsxs("aside",{className:"nb-card p-3 overflow-auto flex flex-col gap-2",children:[f.jsxs("button",{className:"nb-btn nb-btn-primary w-full justify-center",onClick:Q,type:"button",children:[f.jsx(Ms,{size:14,strokeWidth:3}),"新建对话"]}),f.jsxs("div",{className:"mt-2 text-xs font-[family-name:var(--font-heading)] uppercase tracking-wider text-[var(--color-text-muted)] px-2",children:["历史 ",((D=h.data)==null?void 0:D.data.length)??0]}),f.jsxs("div",{className:"flex flex-col gap-1.5 mt-1",children:[(((K=h.data)==null?void 0:K.data)??[]).map(Y=>f.jsxs("div",{className:["group flex items-start gap-2 p-2 rounded-lg border-2 border-transparent cursor-pointer",n===Y.id?"bg-[var(--color-accent-mint)] border-[var(--color-text)] shadow-[2px_2px_0_var(--color-text)]":"hover:bg-[var(--color-bg-cream)] hover:border-[var(--color-text)]"].join(" "),onClick:()=>i(`/chat/${Y.id}`),onKeyDown:Z=>{Z.key==="Enter"&&i(`/chat/${Y.id}`)},tabIndex:0,role:"button",children:[f.jsx(Ty,{size:14,strokeWidth:2.5,className:"mt-0.5 flex-shrink-0"}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsx("p",{className:"text-sm font-semibold truncate",children:Y.title}),f.jsxs("p",{className:"text-[10px] text-[var(--color-text-muted)] font-[family-name:var(--font-mono)] truncate",children:[Y.messageCount," msg · ",Rv(Y.lastMessageAt??Y.createdAt)]})]}),f.jsx("button",{type:"button","aria-label":"删除对话",className:"opacity-0 group-hover:opacity-100 p-1 hover:text-[var(--color-crashed)]",onClick:Z=>{Z.stopPropagation(),H(Y.id)},children:f.jsx(R1,{size:12})})]},Y.id)),(((G=h.data)==null?void 0:G.data)??[]).length===0&&f.jsx("p",{className:"text-xs text-[var(--color-text-subtle)] italic text-center py-4",children:"还没对话。点上面新建。"})]})]}),f.jsx("div",{className:"nb-card p-0 flex flex-col overflow-hidden",children:n?f.jsxs(f.Fragment,{children:[f.jsxs("header",{className:"px-4 py-3 border-b-2 border-[var(--color-text)] bg-[var(--color-bg-cream)]",children:[f.jsx("h2",{className:"font-[family-name:var(--font-heading)] font-bold text-lg",children:((X=v.data)==null?void 0:X.title)??"新对话"}),f.jsx("p",{className:"text-xs text-[var(--color-text-muted)] font-[family-name:var(--font-mono)]",children:n})]}),f.jsxs("div",{ref:O,className:"flex-1 overflow-auto p-4 flex flex-col gap-4",children:[(((V=v.data)==null?void 0:V.messages)??[]).map(Y=>f.jsx(Ay,{msg:Y},Y.id)),g&&f.jsx(Ay,{msg:{id:g.id,role:"assistant",content:g.displayed,ts:new Date().toISOString(),status:"streaming"},streaming:!0}),!v.isLoading&&(((le=v.data)==null?void 0:le.messages)??[]).length===0&&!g&&!S&&f.jsx("p",{className:"text-center text-[var(--color-text-subtle)] italic mt-12",children:"下方输入问题开始对话 · Enter 发送 · Shift+Enter 换行"})]}),f.jsx("div",{className:"border-t-2 border-[var(--color-text)] p-3 bg-[var(--color-bg-cream)]",children:f.jsxs("div",{className:"flex gap-2 items-end",children:[f.jsx("textarea",{className:"nb-input flex-1 resize-none",placeholder:"说点什么… (Enter 发送,Shift+Enter 换行)",rows:2,value:y,onChange:Y=>T(Y.target.value),onKeyDown:Y=>{Y.key==="Enter"&&!Y.shiftKey&&!Y.nativeEvent.isComposing&&(Y.preventDefault(),_())},"aria-label":"消息输入"}),f.jsxs("button",{className:"nb-btn nb-btn-primary",onClick:_,disabled:!y.trim()||S,type:"button","aria-label":"发送",children:[S?f.jsx(gv,{size:14,strokeWidth:3,className:"animate-spin"}):f.jsx(p1,{size:14,strokeWidth:3}),"发送"]})]})})]}):f.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:f.jsxs("div",{className:"text-center max-w-md",children:[f.jsx("div",{className:"w-20 h-20 rounded-2xl bg-[var(--color-accent-mint)] border-[3px] border-[var(--color-text)] shadow-[3px_3px_0_var(--color-text)] flex items-center justify-center mx-auto mb-4",children:f.jsx(Ty,{size:32,strokeWidth:2.5})}),f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-2xl font-bold mb-2",children:"对话 💬"}),f.jsx("p",{className:"text-sm text-[var(--color-text-muted)] mb-4",children:'点左上角"新建对话"开始一个 session。或直接在下方输入,会自动建 session。'}),f.jsx("p",{className:"text-xs text-[var(--color-text-subtle)] italic",children:"Enter 发送 · Shift+Enter 换行 · 内容流式返回"})]})})})]})}function Ay({msg:n,streaming:i}){const r=n.role==="user",c=n.role==="error";return f.jsx("div",{className:r?"self-end max-w-3xl":"self-start max-w-3xl",children:f.jsxs("div",{className:["nb-card",r?"bg-[var(--color-secondary)]":c?"bg-[var(--color-crashed-bg)]":"bg-[var(--color-bg)]"].join(" "),children:[f.jsxs("p",{className:"text-xs font-bold uppercase tracking-wider text-[var(--color-text-muted)] mb-1 flex items-center gap-2",children:[r?"你":c?"错误":"assistant",f.jsx("span",{className:"font-normal",children:"·"}),f.jsx("span",{className:"font-normal",children:Rv(n.ts)}),i&&f.jsxs("span",{className:"flex items-center gap-1 font-normal text-[var(--color-running)]",children:[f.jsx(gv,{size:10,strokeWidth:3,className:"animate-spin"}),"streaming"]})]}),f.jsxs("pre",{className:"text-sm font-[family-name:var(--font-body)] whitespace-pre-wrap break-words",children:[n.content||(i?"…":""),i&&f.jsx("span",{className:"inline-block w-2 h-4 ml-1 bg-[var(--color-text)] animate-pulse align-middle"})]})]})})}function Rv(n){if(!n)return"";const i=new Date(n),r=Date.now()-i.getTime();return r<6e4?"刚才":r<36e5?`${Math.floor(r/6e4)}m`:r<864e5?`${Math.floor(r/36e5)}h`:i.toLocaleDateString()}function J2(){return f.jsxs("div",{className:"nb-card max-w-2xl mt-12",children:[f.jsx("h1",{className:"font-[family-name:var(--font-heading)] text-4xl font-bold mb-2",children:"404 · 页面不存在"}),f.jsx("p",{className:"text-[var(--color-text-muted)] mb-6",children:"没找到这个页面。可能是链接过期了。"}),f.jsx(Xn,{to:"/",className:"nb-btn nb-btn-mint inline-flex",children:"返回首页"})]})}function $2(){return f.jsx(k1,{children:f.jsx(Jb,{children:f.jsxs(Kt,{element:f.jsx(L1,{}),children:[f.jsx(Kt,{index:!0,element:f.jsx(Kb,{to:"/board",replace:!0})}),f.jsx(Kt,{path:"/projects",element:f.jsx(B1,{})}),f.jsx(Kt,{path:"/board",element:f.jsx(m2,{})}),f.jsx(Kt,{path:"/workers",element:f.jsx(b2,{})}),f.jsx(Kt,{path:"/logs",element:f.jsx(R2,{})}),f.jsx(Kt,{path:"/skills",element:f.jsx(B2,{})}),f.jsx(Kt,{path:"/system",element:f.jsx(Y2,{})}),f.jsx(Kt,{path:"/chat",element:f.jsx(zy,{})}),f.jsx(Kt,{path:"/chat/:sessionId",element:f.jsx(zy,{})}),f.jsx(Kt,{path:"*",element:f.jsx(J2,{})})]})})})}const F2=new D0({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),zv=document.getElementById("root");if(!zv)throw new Error("#root not found");c0.createRoot(zv).render(f.jsx(j.StrictMode,{children:f.jsx(U0,{client:F2,children:f.jsx(bx,{children:f.jsx(c2,{children:f.jsx($2,{})})})})}));
|