@axlsdk/studio 0.11.5 → 0.11.6
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var W0=Object.defineProperty;var Wm=u=>{throw TypeError(u)};var I0=(u,i,r)=>i in u?W0(u,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[i]=r;var
|
|
1
|
+
var W0=Object.defineProperty;var Wm=u=>{throw TypeError(u)};var I0=(u,i,r)=>i in u?W0(u,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[i]=r;var ku=(u,i,r)=>I0(u,typeof i!="symbol"?i+"":i,r),ao=(u,i,r)=>i.has(u)||Wm("Cannot "+r);var S=(u,i,r)=>(ao(u,i,"read from private field"),r?r.call(u):i.get(u)),ee=(u,i,r)=>i.has(u)?Wm("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(u):i.set(u,r),F=(u,i,r,c)=>(ao(u,i,"write to private field"),c?c.call(u,r):i.set(u,r),r),ce=(u,i,r)=>(ao(u,i,"access private method"),r);var Ts=(u,i,r,c)=>({set _(d){F(u,i,d,r)},get _(){return S(u,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 m of d)if(m.type==="childList")for(const y of m.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function r(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(d){if(d.ep)return;d.ep=!0;const m=r(d);fetch(d.href,m)}})();var no={exports:{}},Ju={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var W0=Object.defineProperty;var Wm=u=>{throw TypeError(u)};var I0=(u,i,r)=>i in
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Im;function P0(){if(Im)return
|
|
9
|
+
*/var Im;function P0(){if(Im)return Ju;Im=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(c,d,m){var y=null;if(m!==void 0&&(y=""+m),d.key!==void 0&&(y=""+d.key),"key"in d){m={};for(var b in d)b!=="key"&&(m[b]=d[b])}else m=d;return d=m.ref,{$$typeof:u,type:c,key:y,ref:d!==void 0?d:null,props:m}}return Ju.Fragment=i,Ju.jsx=r,Ju.jsxs=r,Ju}var Pm;function eg(){return Pm||(Pm=1,no.exports=P0()),no.exports}var f=eg(),uo={exports:{}},ue={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var W0=Object.defineProperty;var Wm=u=>{throw TypeError(u)};var I0=(u,i,r)=>i in
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ey;function tg(){if(ey)return ue;ey=1;var u=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"),m=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),
|
|
17
|
+
*/var ey;function tg(){if(ey)return ue;ey=1;var u=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"),m=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),z=Symbol.iterator;function w(N){return N===null||typeof N!="object"?null:(N=z&&N[z]||N["@@iterator"],typeof N=="function"?N:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,L={};function U(N,X,J){this.props=N,this.context=X,this.refs=L,this.updater=J||Z}U.prototype.isReactComponent={},U.prototype.setState=function(N,X){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,X,"setState")},U.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function Y(){}Y.prototype=U.prototype;function q(N,X,J){this.props=N,this.context=X,this.refs=L,this.updater=J||Z}var O=q.prototype=new Y;O.constructor=q,R(O,U.prototype),O.isPureReactComponent=!0;var K=Array.isArray;function V(){}var $={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function he(N,X,J){var I=J.ref;return{$$typeof:u,type:N,key:X,ref:I!==void 0?I:null,props:J}}function Te(N,X){return he(N.type,X,N.props)}function ke(N){return typeof N=="object"&&N!==null&&N.$$typeof===u}function Je(N){var X={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(J){return X[J]})}var tl=/\/+/g;function dt(N,X){return typeof N=="object"&&N!==null&&N.key!=null?Je(""+N.key):X.toString(36)}function ut(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(V,V):(N.status="pending",N.then(function(X){N.status==="pending"&&(N.status="fulfilled",N.value=X)},function(X){N.status==="pending"&&(N.status="rejected",N.reason=X)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function B(N,X,J,I,ie){var oe=typeof N;(oe==="undefined"||oe==="boolean")&&(N=null);var Se=!1;if(N===null)Se=!0;else switch(oe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(N.$$typeof){case u:case i:Se=!0;break;case T:return Se=N._init,B(Se(N._payload),X,J,I,ie)}}if(Se)return ie=ie(N),Se=I===""?"."+dt(N,0):I,K(ie)?(J="",Se!=null&&(J=Se.replace(tl,"$&/")+"/"),B(ie,X,J,"",function(eu){return eu})):ie!=null&&(ke(ie)&&(ie=Te(ie,J+(ie.key==null||N&&N.key===ie.key?"":(""+ie.key).replace(tl,"$&/")+"/")+Se)),X.push(ie)),1;Se=0;var rt=I===""?".":I+":";if(K(N))for(var Qe=0;Qe<N.length;Qe++)I=N[Qe],oe=rt+dt(I,Qe),Se+=B(I,X,J,oe,ie);else if(Qe=w(N),typeof Qe=="function")for(N=Qe.call(N),Qe=0;!(I=N.next()).done;)I=I.value,oe=rt+dt(I,Qe++),Se+=B(I,X,J,oe,ie);else if(oe==="object"){if(typeof N.then=="function")return B(ut(N),X,J,I,ie);throw X=String(N),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Se}function k(N,X,J){if(N==null)return N;var I=[],ie=0;return B(N,I,"","",function(oe){return X.call(J,oe,ie++)}),I}function ne(N){if(N._status===-1){var X=N._result;X=X(),X.then(function(J){(N._status===0||N._status===-1)&&(N._status=1,N._result=J)},function(J){(N._status===0||N._status===-1)&&(N._status=2,N._result=J)}),N._status===-1&&(N._status=0,N._result=X)}if(N._status===1)return N._result.default;throw N._result}var Ce=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=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(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},Me={map:k,forEach:function(N,X,J){k(N,function(){X.apply(this,arguments)},J)},count:function(N){var X=0;return k(N,function(){X++}),X},toArray:function(N){return k(N,function(X){return X})||[]},only:function(N){if(!ke(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ue.Activity=g,ue.Children=Me,ue.Component=U,ue.Fragment=r,ue.Profiler=d,ue.PureComponent=q,ue.StrictMode=c,ue.Suspense=p,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,ue.__COMPILER_RUNTIME={__proto__:null,c:function(N){return $.H.useMemoCache(N)}},ue.cache=function(N){return function(){return N.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(N,X,J){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var I=R({},N.props),ie=N.key;if(X!=null)for(oe in X.key!==void 0&&(ie=""+X.key),X)!ae.call(X,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&X.ref===void 0||(I[oe]=X[oe]);var oe=arguments.length-2;if(oe===1)I.children=J;else if(1<oe){for(var Se=Array(oe),rt=0;rt<oe;rt++)Se[rt]=arguments[rt+2];I.children=Se}return he(N.type,ie,I)},ue.createContext=function(N){return N={$$typeof:y,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:m,_context:N},N},ue.createElement=function(N,X,J){var I,ie={},oe=null;if(X!=null)for(I in X.key!==void 0&&(oe=""+X.key),X)ae.call(X,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ie[I]=X[I]);var Se=arguments.length-2;if(Se===1)ie.children=J;else if(1<Se){for(var rt=Array(Se),Qe=0;Qe<Se;Qe++)rt[Qe]=arguments[Qe+2];ie.children=rt}if(N&&N.defaultProps)for(I in Se=N.defaultProps,Se)ie[I]===void 0&&(ie[I]=Se[I]);return he(N,oe,ie)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(N){return{$$typeof:b,render:N}},ue.isValidElement=ke,ue.lazy=function(N){return{$$typeof:T,_payload:{_status:-1,_result:N},_init:ne}},ue.memo=function(N,X){return{$$typeof:v,type:N,compare:X===void 0?null:X}},ue.startTransition=function(N){var X=$.T,J={};$.T=J;try{var I=N(),ie=$.S;ie!==null&&ie(J,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(V,Ce)}catch(oe){Ce(oe)}finally{X!==null&&J.types!==null&&(X.types=J.types),$.T=X}},ue.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},ue.use=function(N){return $.H.use(N)},ue.useActionState=function(N,X,J){return $.H.useActionState(N,X,J)},ue.useCallback=function(N,X){return $.H.useCallback(N,X)},ue.useContext=function(N){return $.H.useContext(N)},ue.useDebugValue=function(){},ue.useDeferredValue=function(N,X){return $.H.useDeferredValue(N,X)},ue.useEffect=function(N,X){return $.H.useEffect(N,X)},ue.useEffectEvent=function(N){return $.H.useEffectEvent(N)},ue.useId=function(){return $.H.useId()},ue.useImperativeHandle=function(N,X,J){return $.H.useImperativeHandle(N,X,J)},ue.useInsertionEffect=function(N,X){return $.H.useInsertionEffect(N,X)},ue.useLayoutEffect=function(N,X){return $.H.useLayoutEffect(N,X)},ue.useMemo=function(N,X){return $.H.useMemo(N,X)},ue.useOptimistic=function(N,X){return $.H.useOptimistic(N,X)},ue.useReducer=function(N,X,J){return $.H.useReducer(N,X,J)},ue.useRef=function(N){return $.H.useRef(N)},ue.useState=function(N){return $.H.useState(N)},ue.useSyncExternalStore=function(N,X,J){return $.H.useSyncExternalStore(N,X,J)},ue.useTransition=function(){return $.H.useTransition()},ue.version="19.2.4",ue}var ty;function wo(){return ty||(ty=1,uo.exports=tg()),uo.exports}var E=wo(),io={exports:{}},Fu={},so={exports:{}},ro={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var W0=Object.defineProperty;var Wm=u=>{throw TypeError(u)};var I0=(u,i,r)=>i in
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var ly;function lg(){return ly||(ly=1,(function(u){function i(B,
|
|
25
|
+
*/var ly;function lg(){return ly||(ly=1,(function(u){function i(B,k){var ne=B.length;B.push(k);e:for(;0<ne;){var Ce=ne-1>>>1,Me=B[Ce];if(0<d(Me,k))B[Ce]=k,B[ne]=Me,ne=Ce;else break e}}function r(B){return B.length===0?null:B[0]}function c(B){if(B.length===0)return null;var k=B[0],ne=B.pop();if(ne!==k){B[0]=ne;e:for(var Ce=0,Me=B.length,N=Me>>>1;Ce<N;){var X=2*(Ce+1)-1,J=B[X],I=X+1,ie=B[I];if(0>d(J,ne))I<Me&&0>d(ie,J)?(B[Ce]=ie,B[I]=ne,Ce=I):(B[Ce]=J,B[X]=ne,Ce=X);else if(I<Me&&0>d(ie,ne))B[Ce]=ie,B[I]=ne,Ce=I;else break e}}return k}function d(B,k){var ne=B.sortIndex-k.sortIndex;return ne!==0?ne:B.id-k.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;u.unstable_now=function(){return m.now()}}else{var y=Date,b=y.now();u.unstable_now=function(){return y.now()-b}}var p=[],v=[],T=1,g=null,z=3,w=!1,Z=!1,R=!1,L=!1,U=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function O(B){for(var k=r(v);k!==null;){if(k.callback===null)c(v);else if(k.startTime<=B)c(v),k.sortIndex=k.expirationTime,i(p,k);else break;k=r(v)}}function K(B){if(R=!1,O(B),!Z)if(r(p)!==null)Z=!0,V||(V=!0,Je());else{var k=r(v);k!==null&&ut(K,k.startTime-B)}}var V=!1,$=-1,ae=5,he=-1;function Te(){return L?!0:!(u.unstable_now()-he<ae)}function ke(){if(L=!1,V){var B=u.unstable_now();he=B;var k=!0;try{e:{Z=!1,R&&(R=!1,Y($),$=-1),w=!0;var ne=z;try{t:{for(O(B),g=r(p);g!==null&&!(g.expirationTime>B&&Te());){var Ce=g.callback;if(typeof Ce=="function"){g.callback=null,z=g.priorityLevel;var Me=Ce(g.expirationTime<=B);if(B=u.unstable_now(),typeof Me=="function"){g.callback=Me,O(B),k=!0;break t}g===r(p)&&c(p),O(B)}else c(p);g=r(p)}if(g!==null)k=!0;else{var N=r(v);N!==null&&ut(K,N.startTime-B),k=!1}}break e}finally{g=null,z=ne,w=!1}k=void 0}}finally{k?Je():V=!1}}}var Je;if(typeof q=="function")Je=function(){q(ke)};else if(typeof MessageChannel<"u"){var tl=new MessageChannel,dt=tl.port2;tl.port1.onmessage=ke,Je=function(){dt.postMessage(null)}}else Je=function(){U(ke,0)};function ut(B,k){$=U(function(){B(u.unstable_now())},k)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(B){B.callback=null},u.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<B?Math.floor(1e3/B):5},u.unstable_getCurrentPriorityLevel=function(){return z},u.unstable_next=function(B){switch(z){case 1:case 2:case 3:var k=3;break;default:k=z}var ne=z;z=k;try{return B()}finally{z=ne}},u.unstable_requestPaint=function(){L=!0},u.unstable_runWithPriority=function(B,k){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ne=z;z=B;try{return k()}finally{z=ne}},u.unstable_scheduleCallback=function(B,k,ne){var Ce=u.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Ce+ne:Ce):ne=Ce,B){case 1:var Me=-1;break;case 2:Me=250;break;case 5:Me=1073741823;break;case 4:Me=1e4;break;default:Me=5e3}return Me=ne+Me,B={id:T++,callback:k,priorityLevel:B,startTime:ne,expirationTime:Me,sortIndex:-1},ne>Ce?(B.sortIndex=ne,i(v,B),r(p)===null&&B===r(v)&&(R?(Y($),$=-1):R=!0,ut(K,ne-Ce))):(B.sortIndex=Me,i(p,B),Z||w||(Z=!0,V||(V=!0,Je()))),B},u.unstable_shouldYield=Te,u.unstable_wrapCallback=function(B){var k=z;return function(){var ne=z;z=k;try{return B.apply(this,arguments)}finally{z=ne}}}})(ro)),ro}var ay;function ag(){return ay||(ay=1,so.exports=lg()),so.exports}var co={exports:{}},it={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -30,7 +30,7 @@ var W0=Object.defineProperty;var Wm=u=>{throw TypeError(u)};var I0=(u,i,r)=>i in
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var ny;function ng(){if(ny)return it;ny=1;var u=wo();function i(
|
|
33
|
+
*/var ny;function ng(){if(ny)return it;ny=1;var u=wo();function i(p){var v="https://react.dev/errors/"+p;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)v+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+p+"; visit "+v+" 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 m(p,v,T){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:g==null?null:""+g,children:p,containerInfo:v,implementation:T}}var y=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(p,v){if(p==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,it.createPortal=function(p,v){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(i(299));return m(p,v,null,T)},it.flushSync=function(p){var v=y.T,T=c.p;try{if(y.T=null,c.p=2,p)return p()}finally{y.T=v,c.p=T,c.d.f()}},it.preconnect=function(p,v){typeof p=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,c.d.C(p,v))},it.prefetchDNS=function(p){typeof p=="string"&&c.d.D(p)},it.preinit=function(p,v){if(typeof p=="string"&&v&&typeof v.as=="string"){var T=v.as,g=b(T,v.crossOrigin),z=typeof v.integrity=="string"?v.integrity:void 0,w=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;T==="style"?c.d.S(p,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:g,integrity:z,fetchPriority:w}):T==="script"&&c.d.X(p,{crossOrigin:g,integrity:z,fetchPriority:w,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},it.preinitModule=function(p,v){if(typeof p=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var T=b(v.as,v.crossOrigin);c.d.M(p,{crossOrigin:T,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&c.d.M(p)},it.preload=function(p,v){if(typeof p=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var T=v.as,g=b(T,v.crossOrigin);c.d.L(p,T,{crossOrigin:g,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},it.preloadModule=function(p,v){if(typeof p=="string")if(v){var T=b(v.as,v.crossOrigin);c.d.m(p,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:T,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else c.d.m(p)},it.requestFormReset=function(p){c.d.r(p)},it.unstable_batchedUpdates=function(p,v){return p(v)},it.useFormState=function(p,v,T){return y.H.useFormState(p,v,T)},it.useFormStatus=function(){return y.H.useHostTransitionStatus()},it.version="19.2.4",it}var uy;function ug(){if(uy)return co.exports;uy=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),co.exports=ng(),co.exports}/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,15 +38,15 @@ var W0=Object.defineProperty;var Wm=u=>{throw TypeError(u)};var I0=(u,i,r)=>i in
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var iy;function ig(){if(iy)return Fu;iy=1;var u=ag(),i=wo(),r=ug();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 m(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function y(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 b(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
|
|
41
|
+
*/var iy;function ig(){if(iy)return Fu;iy=1;var u=ag(),i=wo(),r=ug();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 m(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function y(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 b(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(m(e)!==e)throw Error(c(188))}function v(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(c(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var s=n.alternate;if(s===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===l)return p(n),e;if(s===a)return p(n),t;s=s.sibling}throw Error(c(188))}if(l.return!==a.return)l=n,a=s;else{for(var o=!1,h=n.child;h;){if(h===l){o=!0,l=n,a=s;break}if(h===a){o=!0,a=n,l=s;break}h=h.sibling}if(!o){for(h=s.child;h;){if(h===l){o=!0,l=s,a=n;break}if(h===a){o=!0,a=s,l=n;break}h=h.sibling}if(!o)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?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 g=Object.assign,z=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),q=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),Te=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function Je(e){return e===null||typeof e!="object"?null:(e=ke&&e[ke]||e["@@iterator"],typeof e=="function"?e:null)}var tl=Symbol.for("react.client.reference");function dt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===tl?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case U:return"Profiler";case L:return"StrictMode";case K:return"Suspense";case V:return"SuspenseList";case he:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Z:return"Portal";case q:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case O:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:dt(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return dt(e(t))}catch{}}return null}var ut=Array.isArray,B=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},Ce=[],Me=-1;function N(e){return{current:e}}function X(e){0>Me||(e.current=Ce[Me],Ce[Me]=null,Me--)}function J(e,t){Me++,Ce[Me]=e.current,e.current=t}var I=N(null),ie=N(null),oe=N(null),Se=N(null);function rt(e,t){switch(J(oe,t),J(ie,e),J(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?xm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=xm(t),e=Sm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(I),J(I,e)}function Qe(){X(I),X(ie),X(oe)}function eu(e){e.memoizedState!==null&&J(Se,e);var t=I.current,l=Sm(t,e.type);t!==l&&(J(ie,e),J(I,l))}function si(e){ie.current===e&&(X(I),X(ie)),Se.current===e&&(X(Se),Xu._currentValue=ne)}var Qs,Fo;function Ea(e){if(Qs===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Qs=t&&t[1]||"",Fo=-1<l.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Qs+e+Fo}var Ls=!1;function Ys(e,t){if(!e||Ls)return"";Ls=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var
|
|
44
|
-
`),
|
|
45
|
-
`);for(n=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;n<
|
|
46
|
-
`+x[a].replace(" at new "," at ");return e.displayName&&
|
|
43
|
+
`+Qs+e+Fo}var Ls=!1;function Ys(e,t){if(!e||Ls)return"";Ls=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(D){var _=D}Reflect.construct(e,[],G)}else{try{G.call()}catch(D){_=D}e.call(G.prototype)}}else{try{throw Error()}catch(D){_=D}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(D){if(D&&_&&typeof D.stack=="string")return[D.stack,_.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),o=s[0],h=s[1];if(o&&h){var x=o.split(`
|
|
44
|
+
`),M=h.split(`
|
|
45
|
+
`);for(n=a=0;a<x.length&&!x[a].includes("DetermineComponentFrameRoot");)a++;for(;n<M.length&&!M[n].includes("DetermineComponentFrameRoot");)n++;if(a===x.length||n===M.length)for(a=x.length-1,n=M.length-1;1<=a&&0<=n&&x[a]!==M[n];)n--;for(;1<=a&&0<=n;a--,n--)if(x[a]!==M[n]){if(a!==1||n!==1)do if(a--,n--,0>n||x[a]!==M[n]){var H=`
|
|
46
|
+
`+x[a].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=a&&0<=n);break}}}finally{Ls=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ea(l):""}function Rv(e,t){switch(e.tag){case 26:case 27:case 5:return Ea(e.type);case 16:return Ea("Lazy");case 13:return e.child!==t&&t!==null?Ea("Suspense Fallback"):Ea("Suspense");case 19:return Ea("SuspenseList");case 0:case 15:return Ys(e.type,!1);case 11:return Ys(e.type.render,!1);case 1:return Ys(e.type,!0);case 31:return Ea("Activity");default:return""}}function $o(e){try{var t="",l=null;do t+=Rv(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
47
|
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var Gs=Object.prototype.hasOwnProperty,Xs=u.unstable_scheduleCallback,Zs=u.unstable_cancelCallback,Av=u.unstable_shouldYield,zv=u.unstable_requestPaint,Nt=u.unstable_now,Mv=u.unstable_getCurrentPriorityLevel,Wo=u.unstable_ImmediatePriority,Io=u.unstable_UserBlockingPriority,ri=u.unstable_NormalPriority,_v=u.unstable_LowPriority,Po=u.unstable_IdlePriority,Dv=u.log,Uv=u.unstable_setDisableYieldValue,tu=null,Tt=null;function Bl(e){if(typeof Dv=="function"&&Uv(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(tu,e)}catch{}}var Ct=Math.clz32?Math.clz32:qv,wv=Math.log,Hv=Math.LN2;function qv(e){return e>>>=0,e===0?32:31-(wv(e)/Hv|0)|0}var ci=256,oi=262144,fi=4194304;function ja(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 di(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,s=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var h=a&134217727;return h!==0?(a=h&~s,a!==0?n=ja(a):(o&=h,o!==0?n=ja(o):l||(l=h&~e,l!==0&&(n=ja(l))))):(h=a&~s,h!==0?n=ja(h):o!==0?n=ja(o):l||(l=a&~e,l!==0&&(n=ja(l)))),n===0?0:t!==0&&t!==n&&(t&s)===0&&(s=n&-n,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:n}function lu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Bv(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 ef(){var e=fi;return fi<<=1,(fi&62914560)===0&&(fi=4194304),e}function Ks(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function au(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qv(e,t,l,a,n,s){var o=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var h=e.entanglements,x=e.expirationTimes,z=e.hiddenUpdates;for(l=o&~l;0<l;){var q=31-Ct(l),Y=1<<q;h[q]=0,x[q]=-1;var M=z[q];if(M!==null)for(z[q]=null,q=0;q<M.length;q++){var D=M[q];D!==null&&(D.lane&=-536870913)}l&=~Y}a!==0&&tf(e,a,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(o&~t))}function tf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ct(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function lf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Ct(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function af(e,t){var l=t&-t;return l=(l&42)!==0?1:Vs(l),(l&(e.suspendedLanes|t))!==0?0:l}function Vs(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 Js(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function nf(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Zm(e.type))}function uf(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var Ql=Math.random().toString(36).slice(2),et="__reactFiber$"+Ql,ht="__reactProps$"+Ql,Pa="__reactContainer$"+Ql,ks="__reactEvents$"+Ql,Lv="__reactListeners$"+Ql,Yv="__reactHandles$"+Ql,sf="__reactResources$"+Ql,nu="__reactMarker$"+Ql;function Fs(e){delete e[et],delete e[ht],delete e[ks],delete e[Lv],delete e[Yv]}function en(e){var t=e[et];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Pa]||l[et]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Rm(e);e!==null;){if(l=e[et])return l;e=Rm(e)}return t}e=l,l=e.parentNode}return null}function tn(e){if(e=e[et]||e[Pa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function uu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function ln(e){var t=e[sf];return t||(t=e[sf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[nu]=!0}var rf=new Set,cf={};function Na(e,t){an(e,t),an(e+"Capture",t)}function an(e,t){for(cf[e]=t,e=0;e<t.length;e++)rf.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]*$"),of={},ff={};function Xv(e){return Gs.call(ff,e)?!0:Gs.call(of,e)?!1:Gv.test(e)?ff[e]=!0:(of[e]=!0,!1)}function hi(e,t,l){if(Xv(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function mi(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function fl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function df(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zv(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){l=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $s(e){if(!e._valueTracker){var t=df(e)?"checked":"value";e._valueTracker=Zv(e,t,""+e[t])}}function hf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=df(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function yi(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 Kv=/[\n"\\]/g;function Ht(e){return e.replace(Kv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ws(e,t,l,a,n,s,o,h){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=""+wt(t)):e.value!==""+wt(t)&&(e.value=""+wt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Is(e,o,wt(t)):l!=null?Is(e,o,wt(l)):a!=null&&e.removeAttribute("value"),n==null&&s!=null&&(e.defaultChecked=!!s),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+wt(h):e.removeAttribute("name")}function mf(e,t,l,a,n,s,o,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){$s(e);return}l=l!=null?""+wt(l):"",t=t!=null?""+wt(t):l,h||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=h?e.checked:!!a,e.defaultChecked=!!a,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),$s(e)}function Is(e,t,l){t==="number"&&yi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function nn(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+wt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function yf(e,t,l){if(t!=null&&(t=""+wt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+wt(l):""}function vf(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(ut(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=wt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),$s(e)}function un(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.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 pf(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Vv.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function gf(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&pf(e,n,a)}else for(var s in t)t.hasOwnProperty(s)&&pf(e,s,t[s])}function Ps(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"]]),kv=/^[\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 vi(e){return kv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function dl(){}var er=null;function tr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sn=null,rn=null;function bf(e){var t=tn(e);if(t&&(e=t.stateNode)){var l=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ws(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ht(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[ht]||null;if(!n)throw Error(c(90));Ws(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&hf(a)}break e;case"textarea":yf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&nn(e,!!l.multiple,t,!1)}}}var lr=!1;function xf(e,t,l){if(lr)return e(t,l);lr=!0;try{var a=e(t);return a}finally{if(lr=!1,(sn!==null||rn!==null)&&(as(),sn&&(t=sn,e=rn,rn=sn=null,bf(t),e)))for(t=0;t<e.length;t++)bf(e[t])}}function iu(e,t){var l=e.stateNode;if(l===null)return null;var a=l[ht]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var hl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ar=!1;if(hl)try{var su={};Object.defineProperty(su,"passive",{get:function(){ar=!0}}),window.addEventListener("test",su,su),window.removeEventListener("test",su,su)}catch{ar=!1}var Ll=null,nr=null,pi=null;function Sf(){if(pi)return pi;var e,t=nr,l=t.length,a,n="value"in Ll?Ll.value:Ll.textContent,s=n.length;for(e=0;e<l&&t[e]===n[e];e++);var o=l-e;for(a=1;a<=o&&t[l-a]===n[s-a];a++);return pi=n.slice(e,1<a?1-a:void 0)}function gi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bi(){return!0}function Ef(){return!1}function mt(e){function t(l,a,n,s,o){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(l=e[h],this[h]=l?l(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?bi:Ef,this.isPropagationStopped=Ef,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=bi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=bi)},persist:function(){},isPersistent:bi}),t}var Ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xi=mt(Ta),ru=p({},Ta,{view:0,detail:0}),Fv=mt(ru),ur,ir,cu,Si=p({},ru,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rr,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!==cu&&(cu&&e.type==="mousemove"?(ur=e.screenX-cu.screenX,ir=e.screenY-cu.screenY):ir=ur=0,cu=e),ur)},movementY:function(e){return"movementY"in e?e.movementY:ir}}),jf=mt(Si),$v=p({},Si,{dataTransfer:0}),Wv=mt($v),Iv=p({},ru,{relatedTarget:0}),sr=mt(Iv),Pv=p({},Ta,{animationName:0,elapsedTime:0,pseudoElement:0}),ep=mt(Pv),tp=p({},Ta,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lp=mt(tp),ap=p({},Ta,{data:0}),Nf=mt(ap),np={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"},ip={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ip[e])?!!t[e]:!1}function rr(){return sp}var rp=p({},ru,{key:function(e){if(e.key){var t=np[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gi(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:rr,charCode:function(e){return e.type==="keypress"?gi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cp=mt(rp),op=p({},Si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tf=mt(op),fp=p({},ru,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rr}),dp=mt(fp),hp=p({},Ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),mp=mt(hp),yp=p({},Si,{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}),vp=mt(yp),pp=p({},Ta,{newState:0,oldState:0}),gp=mt(pp),bp=[9,13,27,32],cr=hl&&"CompositionEvent"in window,ou=null;hl&&"documentMode"in document&&(ou=document.documentMode);var xp=hl&&"TextEvent"in window&&!ou,Cf=hl&&(!cr||ou&&8<ou&&11>=ou),Of=" ",Rf=!1;function Af(e,t){switch(e){case"keyup":return bp.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 cn=!1;function Sp(e,t){switch(e){case"compositionend":return zf(t);case"keypress":return t.which!==32?null:(Rf=!0,Of);case"textInput":return e=t.data,e===Of&&Rf?null:e;default:return null}}function Ep(e,t){if(cn)return e==="compositionend"||!cr&&Af(e,t)?(e=Sf(),pi=nr=Ll=null,cn=!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 Cf&&t.locale!=="ko"?null:t.data;default:return null}}var jp={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 Mf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jp[e.type]:t==="textarea"}function _f(e,t,l,a){sn?rn?rn.push(a):rn=[a]:sn=a,t=os(t,"onChange"),0<t.length&&(l=new xi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var fu=null,du=null;function Np(e){mm(e,0)}function Ei(e){var t=uu(e);if(hf(t))return e}function Df(e,t){if(e==="change")return t}var Uf=!1;if(hl){var or;if(hl){var fr="oninput"in document;if(!fr){var wf=document.createElement("div");wf.setAttribute("oninput","return;"),fr=typeof wf.oninput=="function"}or=fr}else or=!1;Uf=or&&(!document.documentMode||9<document.documentMode)}function Hf(){fu&&(fu.detachEvent("onpropertychange",qf),du=fu=null)}function qf(e){if(e.propertyName==="value"&&Ei(du)){var t=[];_f(t,du,e,tr(e)),xf(Np,t)}}function Tp(e,t,l){e==="focusin"?(Hf(),fu=t,du=l,fu.attachEvent("onpropertychange",qf)):e==="focusout"&&Hf()}function Cp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ei(du)}function Op(e,t){if(e==="click")return Ei(t)}function Rp(e,t){if(e==="input"||e==="change")return Ei(t)}function Ap(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:Ap;function hu(e,t){if(Ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Gs.call(t,n)||!Ot(e[n],t[n]))return!1}return!0}function Bf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qf(e,t){var l=Bf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Bf(l)}}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 Yf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=yi(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=yi(e.document)}return t}function dr(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 zp=hl&&"documentMode"in document&&11>=document.documentMode,on=null,hr=null,mu=null,mr=!1;function Gf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;mr||on==null||on!==yi(a)||(a=on,"selectionStart"in a&&dr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),mu&&hu(mu,a)||(mu=a,a=os(hr,"onSelect"),0<a.length&&(t=new xi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=on)))}function Ca(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var fn={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionrun:Ca("Transition","TransitionRun"),transitionstart:Ca("Transition","TransitionStart"),transitioncancel:Ca("Transition","TransitionCancel"),transitionend:Ca("Transition","TransitionEnd")},yr={},Xf={};hl&&(Xf=document.createElement("div").style,"AnimationEvent"in window||(delete fn.animationend.animation,delete fn.animationiteration.animation,delete fn.animationstart.animation),"TransitionEvent"in window||delete fn.transitionend.transition);function Oa(e){if(yr[e])return yr[e];if(!fn[e])return e;var t=fn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Xf)return yr[e]=t[l];return e}var Zf=Oa("animationend"),Kf=Oa("animationiteration"),Vf=Oa("animationstart"),Mp=Oa("transitionrun"),_p=Oa("transitionstart"),Dp=Oa("transitioncancel"),Jf=Oa("transitionend"),kf=new Map,vr="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(" ");vr.push("scrollEnd");function kt(e,t){kf.set(e,t),Na(t,[e])}var ji=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)},qt=[],dn=0,pr=0;function Ni(){for(var e=dn,t=pr=dn=0;t<e;){var l=qt[t];qt[t++]=null;var a=qt[t];qt[t++]=null;var n=qt[t];qt[t++]=null;var s=qt[t];if(qt[t++]=null,a!==null&&n!==null){var o=a.pending;o===null?n.next=n:(n.next=o.next,o.next=n),a.pending=n}s!==0&&Ff(l,n,s)}}function Ti(e,t,l,a){qt[dn++]=e,qt[dn++]=t,qt[dn++]=l,qt[dn++]=a,pr|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function gr(e,t,l,a){return Ti(e,t,l,a),Ci(e)}function Ra(e,t){return Ti(e,null,null,t),Ci(e)}function Ff(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,s=e.return;s!==null;)s.childLanes|=l,a=s.alternate,a!==null&&(a.childLanes|=l),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(n=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,n&&t!==null&&(n=31-Ct(l),e=s.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),s):null}function Ci(e){if(50<Hu)throw Hu=0,Oc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var hn={};function Up(e,t,l,a){this.tag=e,this.key=l,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,l,a){return new Up(e,t,l,a)}function br(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ml(e,t){var l=e.alternate;return l===null?(l=Rt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function $f(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Oi(e,t,l,a,n,s){var o=0;if(a=e,typeof e=="function")br(e)&&(o=1);else if(typeof e=="string")o=Q0(e,l,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case he:return e=Rt(31,l,t,n),e.elementType=he,e.lanes=s,e;case O:return Aa(l.children,n,s,t);case L:o=8,n|=24;break;case U:return e=Rt(12,l,t,n|2),e.elementType=U,e.lanes=s,e;case $:return e=Rt(13,l,t,n),e.elementType=$,e.lanes=s,e;case K:return e=Rt(19,l,t,n),e.elementType=K,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case w:o=10;break e;case R:o=9;break e;case G:o=11;break e;case F:o=14;break e;case ae:o=16,a=null;break e}o=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=Rt(o,l,t,n),t.elementType=e,t.type=a,t.lanes=s,t}function Aa(e,t,l,a){return e=Rt(7,e,a,t),e.lanes=l,e}function xr(e,t,l){return e=Rt(6,e,null,t),e.lanes=l,e}function Wf(e){var t=Rt(18,null,null,0);return t.stateNode=e,t}function Sr(e,t,l){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var If=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var l=If.get(e);return l!==void 0?l:(t={value:e,source:t,stack:$o(t)},If.set(e,t),t)}return{value:e,source:t,stack:$o(t)}}var mn=[],yn=0,Ri=null,yu=0,Qt=[],Lt=0,Yl=null,ll=1,al="";function yl(e,t){mn[yn++]=yu,mn[yn++]=Ri,Ri=e,yu=t}function Pf(e,t,l){Qt[Lt++]=ll,Qt[Lt++]=al,Qt[Lt++]=Yl,Yl=e;var a=ll;e=al;var n=32-Ct(a)-1;a&=~(1<<n),l+=1;var s=32-Ct(t)+n;if(30<s){var o=n-n%5;s=(a&(1<<o)-1).toString(32),a>>=o,n-=o,ll=1<<32-Ct(t)+n|l<<n|a,al=s+e}else ll=1<<s|l<<n|a,al=e}function Er(e){e.return!==null&&(yl(e,1),Pf(e,1,0))}function jr(e){for(;e===Ri;)Ri=mn[--yn],mn[yn]=null,yu=mn[--yn],mn[yn]=null;for(;e===Yl;)Yl=Qt[--Lt],Qt[Lt]=null,al=Qt[--Lt],Qt[Lt]=null,ll=Qt[--Lt],Qt[Lt]=null}function ed(e,t){Qt[Lt++]=ll,Qt[Lt++]=al,Qt[Lt++]=Yl,ll=t.id,al=t.overflow,Yl=e}var tt=null,_e=null,ve=!1,Gl=null,Yt=!1,Nr=Error(c(519));function Xl(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vu(Bt(t,e)),Nr}function td(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[et]=e,t[ht]=a,l){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(l=0;l<Bu.length;l++)de(Bu[l],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),mf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),vf(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||gm(t.textContent,l)?(a.popover!=null&&(de("beforetoggle",t),de("toggle",t)),a.onScroll!=null&&de("scroll",t),a.onScrollEnd!=null&&de("scrollend",t),a.onClick!=null&&(t.onclick=dl),t=!0):t=!1,t||Xl(e,!0)}function ld(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:tt=tt.return}}function vn(e){if(e!==tt)return!1;if(!ve)return ld(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Gc(e.type,e.memoizedProps)),l=!l),l&&_e&&Xl(e),ld(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));_e=Om(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));_e=Om(e)}else t===27?(t=_e,aa(e.type)?(e=Jc,Jc=null,_e=e):_e=t):_e=tt?Xt(e.stateNode.nextSibling):null;return!0}function za(){_e=tt=null,ve=!1}function Tr(){var e=Gl;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),Gl=null),e}function vu(e){Gl===null?Gl=[e]:Gl.push(e)}var Cr=N(null),Ma=null,vl=null;function Zl(e,t,l){J(Cr,t._currentValue),t._currentValue=l}function pl(e){e._currentValue=Cr.current,X(Cr)}function Or(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Rr(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var s=n.dependencies;if(s!==null){var o=n.child;s=s.firstContext;e:for(;s!==null;){var h=s;s=n;for(var x=0;x<t.length;x++)if(h.context===t[x]){s.lanes|=l,h=s.alternate,h!==null&&(h.lanes|=l),Or(s.return,l,e),a||(o=null);break e}s=h.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(c(341));o.lanes|=l,s=o.alternate,s!==null&&(s.lanes|=l),Or(o,l,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function pn(e,t,l,a){e=null;for(var n=t,s=!1;n!==null;){if(!s){if((n.flags&524288)!==0)s=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var h=n.type;Ot(n.pendingProps.value,o.value)||(e!==null?e.push(h):e=[h])}}else if(n===Se.current){if(o=n.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Xu):e=[Xu])}n=n.return}e!==null&&Rr(t,e,l,a),t.flags|=262144}function Ai(e){for(e=e.firstContext;e!==null;){if(!Ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){Ma=e,vl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return ad(Ma,e)}function zi(e,t){return Ma===null&&_a(e),ad(e,t)}function ad(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},vl===null){if(e===null)throw Error(c(308));vl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vl=vl.next=t;return l}var wp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Hp=u.unstable_scheduleCallback,qp=u.unstable_NormalPriority,Xe={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ar(){return{controller:new wp,data:new Map,refCount:0}}function pu(e){e.refCount--,e.refCount===0&&Hp(qp,function(){e.controller.abort()})}var gu=null,zr=0,gn=0,bn=null;function Bp(e,t){if(gu===null){var l=gu=[];zr=0,gn=Dc(),bn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return zr++,t.then(nd,nd),t}function nd(){if(--zr===0&&gu!==null){bn!==null&&(bn.status="fulfilled");var e=gu;gu=null,gn=0,bn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Qp(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var ud=B.S;B.S=function(e,t){Gh=Nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Bp(e,t),ud!==null&&ud(e,t)};var Da=N(null);function Mr(){var e=Da.current;return e!==null?e:Me.pooledCache}function Mi(e,t){t===null?J(Da,Da.current):J(Da,t.pool)}function id(){var e=Mr();return e===null?null:{parent:Xe._currentValue,pool:e}}var xn=Error(c(460)),_r=Error(c(474)),_i=Error(c(542)),Di={then:function(){}};function sd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function rd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(dl,dl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,od(e),e;default:if(typeof t.status=="string")t.then(dl,dl);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,od(e),e}throw wa=t,xn}}function Ua(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(wa=l,xn):l}}var wa=null;function cd(){if(wa===null)throw Error(c(459));var e=wa;return wa=null,e}function od(e){if(e===xn||e===_i)throw Error(c(483))}var Sn=null,bu=0;function Ui(e){var t=bu;return bu+=1,Sn===null&&(Sn=[]),rd(Sn,e,t)}function xu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function wi(e,t){throw t.$$typeof===_?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function fd(e){function t(C,j){if(e){var A=C.deletions;A===null?(C.deletions=[j],C.flags|=16):A.push(j)}}function l(C,j){if(!e)return null;for(;j!==null;)t(C,j),j=j.sibling;return null}function a(C){for(var j=new Map;C!==null;)C.key!==null?j.set(C.key,C):j.set(C.index,C),C=C.sibling;return j}function n(C,j){return C=ml(C,j),C.index=0,C.sibling=null,C}function s(C,j,A){return C.index=A,e?(A=C.alternate,A!==null?(A=A.index,A<j?(C.flags|=67108866,j):A):(C.flags|=67108866,j)):(C.flags|=1048576,j)}function o(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function h(C,j,A,Q){return j===null||j.tag!==6?(j=xr(A,C.mode,Q),j.return=C,j):(j=n(j,A),j.return=C,j)}function x(C,j,A,Q){var te=A.type;return te===O?q(C,j,A.props.children,Q,A.key):j!==null&&(j.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===ae&&Ua(te)===j.type)?(j=n(j,A.props),xu(j,A),j.return=C,j):(j=Oi(A.type,A.key,A.props,null,C.mode,Q),xu(j,A),j.return=C,j)}function z(C,j,A,Q){return j===null||j.tag!==4||j.stateNode.containerInfo!==A.containerInfo||j.stateNode.implementation!==A.implementation?(j=Sr(A,C.mode,Q),j.return=C,j):(j=n(j,A.children||[]),j.return=C,j)}function q(C,j,A,Q,te){return j===null||j.tag!==7?(j=Aa(A,C.mode,Q,te),j.return=C,j):(j=n(j,A),j.return=C,j)}function Y(C,j,A){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=xr(""+j,C.mode,A),j.return=C,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case H:return A=Oi(j.type,j.key,j.props,null,C.mode,A),xu(A,j),A.return=C,A;case Z:return j=Sr(j,C.mode,A),j.return=C,j;case ae:return j=Ua(j),Y(C,j,A)}if(ut(j)||ke(j))return j=Aa(j,C.mode,A,null),j.return=C,j;if(typeof j.then=="function")return Y(C,Ui(j),A);if(j.$$typeof===w)return Y(C,zi(C,j),A);wi(C,j)}return null}function M(C,j,A,Q){var te=j!==null?j.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return te!==null?null:h(C,j,""+A,Q);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case H:return A.key===te?x(C,j,A,Q):null;case Z:return A.key===te?z(C,j,A,Q):null;case ae:return A=Ua(A),M(C,j,A,Q)}if(ut(A)||ke(A))return te!==null?null:q(C,j,A,Q,null);if(typeof A.then=="function")return M(C,j,Ui(A),Q);if(A.$$typeof===w)return M(C,j,zi(C,A),Q);wi(C,A)}return null}function D(C,j,A,Q,te){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return C=C.get(A)||null,h(j,C,""+Q,te);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case H:return C=C.get(Q.key===null?A:Q.key)||null,x(j,C,Q,te);case Z:return C=C.get(Q.key===null?A:Q.key)||null,z(j,C,Q,te);case ae:return Q=Ua(Q),D(C,j,A,Q,te)}if(ut(Q)||ke(Q))return C=C.get(A)||null,q(j,C,Q,te,null);if(typeof Q.then=="function")return D(C,j,A,Ui(Q),te);if(Q.$$typeof===w)return D(C,j,A,zi(j,Q),te);wi(j,Q)}return null}function W(C,j,A,Q){for(var te=null,ge=null,P=j,re=j=0,ye=null;P!==null&&re<A.length;re++){P.index>re?(ye=P,P=null):ye=P.sibling;var be=M(C,P,A[re],Q);if(be===null){P===null&&(P=ye);break}e&&P&&be.alternate===null&&t(C,P),j=s(be,j,re),ge===null?te=be:ge.sibling=be,ge=be,P=ye}if(re===A.length)return l(C,P),ve&&yl(C,re),te;if(P===null){for(;re<A.length;re++)P=Y(C,A[re],Q),P!==null&&(j=s(P,j,re),ge===null?te=P:ge.sibling=P,ge=P);return ve&&yl(C,re),te}for(P=a(P);re<A.length;re++)ye=D(P,C,re,A[re],Q),ye!==null&&(e&&ye.alternate!==null&&P.delete(ye.key===null?re:ye.key),j=s(ye,j,re),ge===null?te=ye:ge.sibling=ye,ge=ye);return e&&P.forEach(function(ra){return t(C,ra)}),ve&&yl(C,re),te}function le(C,j,A,Q){if(A==null)throw Error(c(151));for(var te=null,ge=null,P=j,re=j=0,ye=null,be=A.next();P!==null&&!be.done;re++,be=A.next()){P.index>re?(ye=P,P=null):ye=P.sibling;var ra=M(C,P,be.value,Q);if(ra===null){P===null&&(P=ye);break}e&&P&&ra.alternate===null&&t(C,P),j=s(ra,j,re),ge===null?te=ra:ge.sibling=ra,ge=ra,P=ye}if(be.done)return l(C,P),ve&&yl(C,re),te;if(P===null){for(;!be.done;re++,be=A.next())be=Y(C,be.value,Q),be!==null&&(j=s(be,j,re),ge===null?te=be:ge.sibling=be,ge=be);return ve&&yl(C,re),te}for(P=a(P);!be.done;re++,be=A.next())be=D(P,C,re,be.value,Q),be!==null&&(e&&be.alternate!==null&&P.delete(be.key===null?re:be.key),j=s(be,j,re),ge===null?te=be:ge.sibling=be,ge=be);return e&&P.forEach(function($0){return t(C,$0)}),ve&&yl(C,re),te}function Ae(C,j,A,Q){if(typeof A=="object"&&A!==null&&A.type===O&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case H:e:{for(var te=A.key;j!==null;){if(j.key===te){if(te=A.type,te===O){if(j.tag===7){l(C,j.sibling),Q=n(j,A.props.children),Q.return=C,C=Q;break e}}else if(j.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===ae&&Ua(te)===j.type){l(C,j.sibling),Q=n(j,A.props),xu(Q,A),Q.return=C,C=Q;break e}l(C,j);break}else t(C,j);j=j.sibling}A.type===O?(Q=Aa(A.props.children,C.mode,Q,A.key),Q.return=C,C=Q):(Q=Oi(A.type,A.key,A.props,null,C.mode,Q),xu(Q,A),Q.return=C,C=Q)}return o(C);case Z:e:{for(te=A.key;j!==null;){if(j.key===te)if(j.tag===4&&j.stateNode.containerInfo===A.containerInfo&&j.stateNode.implementation===A.implementation){l(C,j.sibling),Q=n(j,A.children||[]),Q.return=C,C=Q;break e}else{l(C,j);break}else t(C,j);j=j.sibling}Q=Sr(A,C.mode,Q),Q.return=C,C=Q}return o(C);case ae:return A=Ua(A),Ae(C,j,A,Q)}if(ut(A))return W(C,j,A,Q);if(ke(A)){if(te=ke(A),typeof te!="function")throw Error(c(150));return A=te.call(A),le(C,j,A,Q)}if(typeof A.then=="function")return Ae(C,j,Ui(A),Q);if(A.$$typeof===w)return Ae(C,j,zi(C,A),Q);wi(C,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,j!==null&&j.tag===6?(l(C,j.sibling),Q=n(j,A),Q.return=C,C=Q):(l(C,j),Q=xr(A,C.mode,Q),Q.return=C,C=Q),o(C)):l(C,j)}return function(C,j,A,Q){try{bu=0;var te=Ae(C,j,A,Q);return Sn=null,te}catch(P){if(P===xn||P===_i)throw P;var ge=Rt(29,P,null,C.mode);return ge.lanes=Q,ge.return=C,ge}finally{}}}var Ha=fd(!0),dd=fd(!1),Kl=!1;function Dr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ur(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 Vl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(xe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Ci(e),Ff(e,null,l),t}return Ti(e,a,t,l),Ci(e)}function Su(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,lf(e,l)}}function wr(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?n=s=o:s=s.next=o,l=l.next}while(l!==null);s===null?n=s=t:s=s.next=t}else n=s=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Hr=!1;function Eu(){if(Hr){var e=bn;if(e!==null)throw e}}function ju(e,t,l,a){Hr=!1;var n=e.updateQueue;Kl=!1;var s=n.firstBaseUpdate,o=n.lastBaseUpdate,h=n.shared.pending;if(h!==null){n.shared.pending=null;var x=h,z=x.next;x.next=null,o===null?s=z:o.next=z,o=x;var q=e.alternate;q!==null&&(q=q.updateQueue,h=q.lastBaseUpdate,h!==o&&(h===null?q.firstBaseUpdate=z:h.next=z,q.lastBaseUpdate=x))}if(s!==null){var Y=n.baseState;o=0,q=z=x=null,h=s;do{var M=h.lane&-536870913,D=M!==h.lane;if(D?(me&M)===M:(a&M)===M){M!==0&&M===gn&&(Hr=!0),q!==null&&(q=q.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var W=e,le=h;M=t;var Ae=l;switch(le.tag){case 1:if(W=le.payload,typeof W=="function"){Y=W.call(Ae,Y,M);break e}Y=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=le.payload,M=typeof W=="function"?W.call(Ae,Y,M):W,M==null)break e;Y=p({},Y,M);break e;case 2:Kl=!0}}M=h.callback,M!==null&&(e.flags|=64,D&&(e.flags|=8192),D=n.callbacks,D===null?n.callbacks=[M]:D.push(M))}else D={lane:M,tag:h.tag,payload:h.payload,callback:h.callback,next:null},q===null?(z=q=D,x=Y):q=q.next=D,o|=M;if(h=h.next,h===null){if(h=n.shared.pending,h===null)break;D=h,h=D.next,D.next=null,n.lastBaseUpdate=D,n.shared.pending=null}}while(!0);q===null&&(x=Y),n.baseState=x,n.firstBaseUpdate=z,n.lastBaseUpdate=q,s===null&&(n.shared.lanes=0),Il|=o,e.lanes=o,e.memoizedState=Y}}function hd(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function md(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)hd(l[e],t)}var En=N(null),Hi=N(0);function yd(e,t){e=Cl,J(Hi,e),J(En,t),Cl=e|t.baseLanes}function qr(){J(Hi,Cl),J(En,En.current)}function Br(){Cl=Hi.current,X(En),X(Hi)}var At=N(null),Gt=null;function kl(e){var t=e.alternate;J(Le,Le.current&1),J(At,e),Gt===null&&(t===null||En.current!==null||t.memoizedState!==null)&&(Gt=e)}function Qr(e){J(Le,Le.current),J(At,e),Gt===null&&(Gt=e)}function vd(e){e.tag===22?(J(Le,Le.current),J(At,e),Gt===null&&(Gt=e)):Fl()}function Fl(){J(Le,Le.current),J(At,At.current)}function zt(e){X(At),Gt===e&&(Gt=null),X(Le)}var Le=N(0);function qi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Kc(l)||Vc(l)))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 gl=0,se=null,Oe=null,Ze=null,Bi=!1,jn=!1,qa=!1,Qi=0,Nu=0,Nn=null,Lp=0;function He(){throw Error(c(321))}function Lr(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ot(e[l],t[l]))return!1;return!0}function Yr(e,t,l,a,n,s){return gl=s,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Pd:lc,qa=!1,s=l(a,n),qa=!1,jn&&(s=gd(t,l,a,n)),pd(e),s}function pd(e){B.H=Ou;var t=Oe!==null&&Oe.next!==null;if(gl=0,Ze=Oe=se=null,Bi=!1,Nu=0,Nn=null,t)throw Error(c(300));e===null||Ke||(e=e.dependencies,e!==null&&Ai(e)&&(Ke=!0))}function gd(e,t,l,a){se=e;var n=0;do{if(jn&&(Nn=null),Nu=0,jn=!1,25<=n)throw Error(c(301));if(n+=1,Ze=Oe=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}B.H=eh,s=t(l,a)}while(jn);return s}function Yp(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Tu(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(se.flags|=1024),t}function Gr(){var e=Qi!==0;return Qi=0,e}function Xr(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Zr(e){if(Bi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bi=!1}gl=0,Ze=Oe=se=null,jn=!1,Nu=Qi=0,Nn=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?se.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Ye(){if(Oe===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Ze===null?se.memoizedState:Ze.next;if(t!==null)Ze=t,Oe=e;else{if(e===null)throw se.alternate===null?Error(c(467)):Error(c(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Ze===null?se.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Li(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tu(e){var t=Nu;return Nu+=1,Nn===null&&(Nn=[]),e=rd(Nn,e,t),t=se,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Pd:lc),e}function Yi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Tu(e);if(e.$$typeof===w)return lt(e)}throw Error(c(438,String(e)))}function Kr(e){var t=null,l=se.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=se.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Li(),se.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Te;return t.index++,l}function bl(e,t){return typeof t=="function"?t(e):t}function Gi(e){var t=Ye();return Vr(t,Oe,e)}function Vr(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var n=e.baseQueue,s=a.pending;if(s!==null){if(n!==null){var o=n.next;n.next=s.next,s.next=o}t.baseQueue=n=s,a.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var h=o=null,x=null,z=t,q=!1;do{var Y=z.lane&-536870913;if(Y!==z.lane?(me&Y)===Y:(gl&Y)===Y){var M=z.revertLane;if(M===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),Y===gn&&(q=!0);else if((gl&M)===M){z=z.next,M===gn&&(q=!0);continue}else Y={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(h=x=Y,o=s):x=x.next=Y,se.lanes|=M,Il|=M;Y=z.action,qa&&l(s,Y),s=z.hasEagerState?z.eagerState:l(s,Y)}else M={lane:Y,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},x===null?(h=x=M,o=s):x=x.next=M,se.lanes|=Y,Il|=Y;z=z.next}while(z!==null&&z!==t);if(x===null?o=s:x.next=h,!Ot(s,e.memoizedState)&&(Ke=!0,q&&(l=bn,l!==null)))throw l;e.memoizedState=s,e.baseState=o,e.baseQueue=x,a.lastRenderedState=s}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Jr(e){var t=Ye(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,s=t.memoizedState;if(n!==null){l.pending=null;var o=n=n.next;do s=e(s,o.action),o=o.next;while(o!==n);Ot(s,t.memoizedState)||(Ke=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,a]}function bd(e,t,l){var a=se,n=Ye(),s=ve;if(s){if(l===void 0)throw Error(c(407));l=l()}else l=t();var o=!Ot((Oe||n).memoizedState,l);if(o&&(n.memoizedState=l,Ke=!0),n=n.queue,$r(Ed.bind(null,a,n,e),[e]),n.getSnapshot!==t||o||Ze!==null&&Ze.memoizedState.tag&1){if(a.flags|=2048,Tn(9,{destroy:void 0},Sd.bind(null,a,n,l,t),null),Me===null)throw Error(c(349));s||(gl&127)!==0||xd(a,t,l)}return l}function xd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=se.updateQueue,t===null?(t=Li(),se.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Sd(e,t,l,a){t.value=l,t.getSnapshot=a,jd(t)&&Nd(e)}function Ed(e,t,l){return l(function(){jd(t)&&Nd(e)})}function jd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ot(e,l)}catch{return!0}}function Nd(e){var t=Ra(e,2);t!==null&&bt(t,e,2)}function kr(e){var t=ct();if(typeof e=="function"){var l=e;if(e=l(),qa){Bl(!0);try{l()}finally{Bl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:e},t}function Td(e,t,l,a){return e.baseState=l,Vr(e,Oe,typeof a=="function"?a:bl)}function Gp(e,t,l,a,n){if(Ki(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};B.T!==null?l(!0):s.isTransition=!1,a(s),l=t.pending,l===null?(s.next=t.pending=s,Cd(t,s)):(s.next=l.next,t.pending=l.next=s)}}function Cd(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var s=B.T,o={};B.T=o;try{var h=l(n,a),x=B.S;x!==null&&x(o,h),Od(e,t,h)}catch(z){Fr(e,t,z)}finally{s!==null&&o.types!==null&&(s.types=o.types),B.T=s}}else try{s=l(n,a),Od(e,t,s)}catch(z){Fr(e,t,z)}}function Od(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Rd(e,t,a)},function(a){return Fr(e,t,a)}):Rd(e,t,l)}function Rd(e,t,l){t.status="fulfilled",t.value=l,Ad(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Cd(e,l)))}function Fr(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Ad(t),t=t.next;while(t!==a)}e.action=null}function Ad(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function zd(e,t){return t}function Md(e,t){if(ve){var l=Me.formState;if(l!==null){e:{var a=se;if(ve){if(_e){t:{for(var n=_e,s=Yt;n.nodeType!==8;){if(!s){n=null;break t}if(n=Xt(n.nextSibling),n===null){n=null;break t}}s=n.data,n=s==="F!"||s==="F"?n:null}if(n){_e=Xt(n.nextSibling),a=n.data==="F!";break e}}Xl(a)}a=!1}a&&(t=l[0])}}return l=ct(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zd,lastRenderedState:t},l.queue=a,l=$d.bind(null,se,a),a.dispatch=l,a=kr(!1),s=tc.bind(null,se,!1,a.queue),a=ct(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Gp.bind(null,se,n,s,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function _d(e){var t=Ye();return Dd(t,Oe,e)}function Dd(e,t,l){if(t=Vr(e,t,zd)[0],e=Gi(bl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Tu(t)}catch(o){throw o===xn?_i:o}else a=t;t=Ye();var n=t.queue,s=n.dispatch;return l!==t.memoizedState&&(se.flags|=2048,Tn(9,{destroy:void 0},Xp.bind(null,n,l),null)),[a,s,e]}function Xp(e,t){e.action=t}function Ud(e){var t=Ye(),l=Oe;if(l!==null)return Dd(t,l,e);Ye(),t=t.memoizedState,l=Ye();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Tn(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=se.updateQueue,t===null&&(t=Li(),se.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function wd(){return Ye().memoizedState}function Xi(e,t,l,a){var n=ct();se.flags|=e,n.memoizedState=Tn(1|t,{destroy:void 0},l,a===void 0?null:a)}function Zi(e,t,l,a){var n=Ye();a=a===void 0?null:a;var s=n.memoizedState.inst;Oe!==null&&a!==null&&Lr(a,Oe.memoizedState.deps)?n.memoizedState=Tn(t,s,l,a):(se.flags|=e,n.memoizedState=Tn(1|t,s,l,a))}function Hd(e,t){Xi(8390656,8,e,t)}function $r(e,t){Zi(2048,8,e,t)}function Zp(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=Li(),se.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function qd(e){var t=Ye().memoizedState;return Zp({ref:t,nextImpl:e}),function(){if((xe&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Bd(e,t){return Zi(4,2,e,t)}function Qd(e,t){return Zi(4,4,e,t)}function Ld(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Yd(e,t,l){l=l!=null?l.concat([e]):null,Zi(4,4,Ld.bind(null,t,e),l)}function Wr(){}function Gd(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Lr(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Xd(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Lr(t,a[1]))return a[0];if(a=e(),qa){Bl(!0);try{e()}finally{Bl(!1)}}return l.memoizedState=[a,t],a}function Ir(e,t,l){return l===void 0||(gl&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Zh(),se.lanes|=e,Il|=e,l)}function Zd(e,t,l,a){return Ot(l,t)?l:En.current!==null?(e=Ir(e,l,a),Ot(e,t)||(Ke=!0),e):(gl&42)===0||(gl&1073741824)!==0&&(me&261930)===0?(Ke=!0,e.memoizedState=l):(e=Zh(),se.lanes|=e,Il|=e,t)}function Kd(e,t,l,a,n){var s=V.p;V.p=s!==0&&8>s?s:8;var o=B.T,h={};B.T=h,tc(e,!1,t,l);try{var x=n(),z=B.S;if(z!==null&&z(h,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var q=Qp(x,a);Cu(e,t,q,Dt(e))}else Cu(e,t,a,Dt(e))}catch(Y){Cu(e,t,{then:function(){},status:"rejected",reason:Y},Dt())}finally{V.p=s,o!==null&&h.types!==null&&(o.types=h.types),B.T=o}}function Kp(){}function Pr(e,t,l,a){if(e.tag!==5)throw Error(c(476));var n=Vd(e).queue;Kd(e,n,t,ne,l===null?Kp:function(){return Jd(e),l(a)})}function Vd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:ne},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Jd(e){var t=Vd(e);t.next===null&&(t=e.alternate.memoizedState),Cu(e,t.next.queue,{},Dt())}function ec(){return lt(Xu)}function kd(){return Ye().memoizedState}function Fd(){return Ye().memoizedState}function Vp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Dt();e=Vl(l);var a=Jl(t,e,l);a!==null&&(bt(a,t,l),Su(a,t,l)),t={cache:Ar()},e.payload=t;return}t=t.return}}function Jp(e,t,l){var a=Dt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ki(e)?Wd(t,l):(l=gr(e,t,l,a),l!==null&&(bt(l,e,a),Id(l,t,a)))}function $d(e,t,l){var a=Dt();Cu(e,t,l,a)}function Cu(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))Wd(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,h=s(o,l);if(n.hasEagerState=!0,n.eagerState=h,Ot(h,o))return Ti(e,t,n,0),Me===null&&Ni(),!1}catch{}finally{}if(l=gr(e,t,n,a),l!==null)return bt(l,e,a),Id(l,t,a),!0}return!1}function tc(e,t,l,a){if(a={lane:2,revertLane:Dc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(c(479))}else t=gr(e,l,a,2),t!==null&&bt(t,e,2)}function Ki(e){var t=e.alternate;return e===se||t!==null&&t===se}function Wd(e,t){jn=Bi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Id(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,lf(e,l)}}var Ou={readContext:lt,use:Yi,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};Ou.useEffectEvent=He;var Pd={readContext:lt,use:Yi,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Hd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Xi(4194308,4,Ld.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Xi(4194308,4,e,t)},useInsertionEffect:function(e,t){Xi(4,2,e,t)},useMemo:function(e,t){var l=ct();t=t===void 0?null:t;var a=e();if(qa){Bl(!0);try{e()}finally{Bl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ct();if(l!==void 0){var n=l(t);if(qa){Bl(!0);try{l(t)}finally{Bl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Jp.bind(null,se,e),[a.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=kr(e);var t=e.queue,l=$d.bind(null,se,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Wr,useDeferredValue:function(e,t){var l=ct();return Ir(l,e,t)},useTransition:function(){var e=kr(!1);return e=Kd.bind(null,se,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=se,n=ct();if(ve){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),Me===null)throw Error(c(349));(me&127)!==0||xd(a,t,l)}n.memoizedState=l;var s={value:l,getSnapshot:t};return n.queue=s,Hd(Ed.bind(null,a,s,e),[e]),a.flags|=2048,Tn(9,{destroy:void 0},Sd.bind(null,a,s,l,t),null),l},useId:function(){var e=ct(),t=Me.identifierPrefix;if(ve){var l=al,a=ll;l=(a&~(1<<32-Ct(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Qi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Lp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ec,useFormState:Md,useActionState:Md,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=tc.bind(null,se,!0,l),l.dispatch=t,[e,t]},useMemoCache:Kr,useCacheRefresh:function(){return ct().memoizedState=Vp.bind(null,se)},useEffectEvent:function(e){var t=ct(),l={impl:e};return t.memoizedState=l,function(){if((xe&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},lc={readContext:lt,use:Yi,useCallback:Gd,useContext:lt,useEffect:$r,useImperativeHandle:Yd,useInsertionEffect:Bd,useLayoutEffect:Qd,useMemo:Xd,useReducer:Gi,useRef:wd,useState:function(){return Gi(bl)},useDebugValue:Wr,useDeferredValue:function(e,t){var l=Ye();return Zd(l,Oe.memoizedState,e,t)},useTransition:function(){var e=Gi(bl)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Tu(e),t]},useSyncExternalStore:bd,useId:kd,useHostTransitionStatus:ec,useFormState:_d,useActionState:_d,useOptimistic:function(e,t){var l=Ye();return Td(l,Oe,e,t)},useMemoCache:Kr,useCacheRefresh:Fd};lc.useEffectEvent=qd;var eh={readContext:lt,use:Yi,useCallback:Gd,useContext:lt,useEffect:$r,useImperativeHandle:Yd,useInsertionEffect:Bd,useLayoutEffect:Qd,useMemo:Xd,useReducer:Jr,useRef:wd,useState:function(){return Jr(bl)},useDebugValue:Wr,useDeferredValue:function(e,t){var l=Ye();return Oe===null?Ir(l,e,t):Zd(l,Oe.memoizedState,e,t)},useTransition:function(){var e=Jr(bl)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Tu(e),t]},useSyncExternalStore:bd,useId:kd,useHostTransitionStatus:ec,useFormState:Ud,useActionState:Ud,useOptimistic:function(e,t){var l=Ye();return Oe!==null?Td(l,Oe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Kr,useCacheRefresh:Fd};eh.useEffectEvent=qd;function ac(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:p({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var nc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Dt(),n=Vl(a);n.payload=t,l!=null&&(n.callback=l),t=Jl(e,n,a),t!==null&&(bt(t,e,a),Su(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Dt(),n=Vl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Jl(e,n,a),t!==null&&(bt(t,e,a),Su(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Dt(),a=Vl(l);a.tag=2,t!=null&&(a.callback=t),t=Jl(e,a,l),t!==null&&(bt(t,e,l),Su(t,e,l))}};function th(e,t,l,a,n,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,o):t.prototype&&t.prototype.isPureReactComponent?!hu(l,a)||!hu(n,s):!0}function lh(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&nc.enqueueReplaceState(t,t.state,null)}function Ba(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=p({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function ah(e){ji(e)}function nh(e){console.error(e)}function uh(e){ji(e)}function Vi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ih(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function uc(e,t,l){return l=Vl(l),l.tag=3,l.payload={element:null},l.callback=function(){Vi(e,t)},l}function sh(e){return e=Vl(e),e.tag=3,e}function rh(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var s=a.value;e.payload=function(){return n(s)},e.callback=function(){ih(t,l,a)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){ih(t,l,a),typeof n!="function"&&(Pl===null?Pl=new Set([this]):Pl.add(this));var h=a.stack;this.componentDidCatch(a.value,{componentStack:h!==null?h:""})})}function kp(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pn(t,l,n,!0),l=At.current,l!==null){switch(l.tag){case 31:case 13:return Gt===null?ns():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Di?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),zc(e,a,n)),!1;case 22:return l.flags|=65536,a===Di?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),zc(e,a,n)),!1}throw Error(c(435,l.tag))}return zc(e,a,n),ns(),!1}if(ve)return t=At.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Nr&&(e=Error(c(422),{cause:a}),vu(Bt(e,l)))):(a!==Nr&&(t=Error(c(423),{cause:a}),vu(Bt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Bt(a,l),n=uc(e.stateNode,a,n),wr(e,n),qe!==4&&(qe=2)),!1;var s=Error(c(520),{cause:a});if(s=Bt(s,l),wu===null?wu=[s]:wu.push(s),qe!==4&&(qe=2),t===null)return!0;a=Bt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=uc(l.stateNode,a,e),wr(l,e),!1;case 1:if(t=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Pl===null||!Pl.has(s))))return l.flags|=65536,n&=-n,l.lanes|=n,n=sh(n),rh(n,e,l,a),wr(l,n),!1}l=l.return}while(l!==null);return!1}var ic=Error(c(461)),Ke=!1;function at(e,t,l,a){t.child=e===null?dd(t,null,l,a):Ha(t,e.child,l,a)}function ch(e,t,l,a,n){l=l.render;var s=t.ref;if("ref"in a){var o={};for(var h in a)h!=="ref"&&(o[h]=a[h])}else o=a;return _a(t),a=Yr(e,t,l,o,s,n),h=Gr(),e!==null&&!Ke?(Xr(e,t,n),xl(e,t,n)):(ve&&h&&Er(t),t.flags|=1,at(e,t,a,n),t.child)}function oh(e,t,l,a,n){if(e===null){var s=l.type;return typeof s=="function"&&!br(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,fh(e,t,s,a,n)):(e=Oi(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!mc(e,n)){var o=s.memoizedProps;if(l=l.compare,l=l!==null?l:hu,l(o,a)&&e.ref===t.ref)return xl(e,t,n)}return t.flags|=1,e=ml(s,a),e.ref=t.ref,e.return=t,t.child=e}function fh(e,t,l,a,n){if(e!==null){var s=e.memoizedProps;if(hu(s,a)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=a=s,mc(e,n))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,xl(e,t,n)}return sc(e,t,l,a,n)}function dh(e,t,l,a){var n=a.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~s}else a=0,t.child=null;return hh(e,t,s,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mi(t,s!==null?s.cachePool:null),s!==null?yd(t,s):qr(),vd(t);else return a=t.lanes=536870912,hh(e,t,s!==null?s.baseLanes|l:l,l,a)}else s!==null?(Mi(t,s.cachePool),yd(t,s),Fl(),t.memoizedState=null):(e!==null&&Mi(t,null),qr(),Fl());return at(e,t,n,l),t.child}function Ru(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function hh(e,t,l,a,n){var s=Mr();return s=s===null?null:{parent:Xe._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&Mi(t,null),qr(),vd(t),e!==null&&pn(e,t,a,!0),t.childLanes=n,null}function Ji(e,t){return t=Fi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mh(e,t,l){return Ha(t,e.child,null,l),e=Ji(t,t.pendingProps),e.flags|=2,zt(t),t.memoizedState=null,e}function Fp(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=Ji(t,a),t.lanes=536870912,Ru(null,e);if(Qr(t),(e=_e)?(e=Cm(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yl!==null?{id:ll,overflow:al}:null,retryLane:536870912,hydrationErrors:null},l=Wf(e),l.return=t,t.child=l,tt=t,_e=null)):e=null,e===null)throw Xl(t);return t.lanes=536870912,null}return Ji(t,a)}var s=e.memoizedState;if(s!==null){var o=s.dehydrated;if(Qr(t),n)if(t.flags&256)t.flags&=-257,t=mh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Ke||pn(e,t,l,!1),n=(l&e.childLanes)!==0,Ke||n){if(a=Me,a!==null&&(o=af(a,l),o!==0&&o!==s.retryLane))throw s.retryLane=o,Ra(e,o),bt(a,e,o),ic;ns(),t=mh(e,t,l)}else e=s.treeContext,_e=Xt(o.nextSibling),tt=t,ve=!0,Gl=null,Yt=!1,e!==null&&ed(t,e),t=Ji(t,a),t.flags|=4096;return t}return e=ml(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ki(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function sc(e,t,l,a,n){return _a(t),l=Yr(e,t,l,a,void 0,n),a=Gr(),e!==null&&!Ke?(Xr(e,t,n),xl(e,t,n)):(ve&&a&&Er(t),t.flags|=1,at(e,t,l,n),t.child)}function yh(e,t,l,a,n,s){return _a(t),t.updateQueue=null,l=gd(t,a,l,n),pd(e),a=Gr(),e!==null&&!Ke?(Xr(e,t,s),xl(e,t,s)):(ve&&a&&Er(t),t.flags|=1,at(e,t,l,s),t.child)}function vh(e,t,l,a,n){if(_a(t),t.stateNode===null){var s=hn,o=l.contextType;typeof o=="object"&&o!==null&&(s=lt(o)),s=new l(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=nc,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},Dr(t),o=l.contextType,s.context=typeof o=="object"&&o!==null?lt(o):hn,s.state=t.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(ac(t,l,o,a),s.state=t.memoizedState),typeof l.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&&nc.enqueueReplaceState(s,s.state,null),ju(t,a,s,n),Eu(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var h=t.memoizedProps,x=Ba(l,h);s.props=x;var z=s.context,q=l.contextType;o=hn,typeof q=="object"&&q!==null&&(o=lt(q));var Y=l.getDerivedStateFromProps;q=typeof Y=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,q||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||z!==o)&&lh(t,s,a,o),Kl=!1;var M=t.memoizedState;s.state=M,ju(t,a,s,n),Eu(),z=t.memoizedState,h||M!==z||Kl?(typeof Y=="function"&&(ac(t,l,Y,a),z=t.memoizedState),(x=Kl||th(t,l,x,a,M,z,o))?(q||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=a,t.memoizedState=z),s.props=a,s.state=z,s.context=o,a=x):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,Ur(e,t),o=t.memoizedProps,q=Ba(l,o),s.props=q,Y=t.pendingProps,M=s.context,z=l.contextType,x=hn,typeof z=="object"&&z!==null&&(x=lt(z)),h=l.getDerivedStateFromProps,(z=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==Y||M!==x)&&lh(t,s,a,x),Kl=!1,M=t.memoizedState,s.state=M,ju(t,a,s,n),Eu();var D=t.memoizedState;o!==Y||M!==D||Kl||e!==null&&e.dependencies!==null&&Ai(e.dependencies)?(typeof h=="function"&&(ac(t,l,h,a),D=t.memoizedState),(q=Kl||th(t,l,q,a,M,D,x)||e!==null&&e.dependencies!==null&&Ai(e.dependencies))?(z||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,D,x),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,D,x)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=D),s.props=a,s.state=D,s.context=x,a=q):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,ki(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=Ha(t,e.child,null,n),t.child=Ha(t,null,l,n)):at(e,t,l,n),t.memoizedState=s.state,e=t.child):e=xl(e,t,n),e}function ph(e,t,l,a){return za(),t.flags|=256,at(e,t,l,a),t.child}var rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cc(e){return{baseLanes:e,cachePool:id()}}function oc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=_t),e}function gh(e,t,l){var a=t.pendingProps,n=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(Le.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(n?kl(t):Fl(),(e=_e)?(e=Cm(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yl!==null?{id:ll,overflow:al}:null,retryLane:536870912,hydrationErrors:null},l=Wf(e),l.return=t,t.child=l,tt=t,_e=null)):e=null,e===null)throw Xl(t);return Vc(e)?t.lanes=32:t.lanes=536870912,null}var h=a.children;return a=a.fallback,n?(Fl(),n=t.mode,h=Fi({mode:"hidden",children:h},n),a=Aa(a,n,l,null),h.return=t,a.return=t,h.sibling=a,t.child=h,a=t.child,a.memoizedState=cc(l),a.childLanes=oc(e,o,l),t.memoizedState=rc,Ru(null,a)):(kl(t),fc(t,h))}var x=e.memoizedState;if(x!==null&&(h=x.dehydrated,h!==null)){if(s)t.flags&256?(kl(t),t.flags&=-257,t=dc(e,t,l)):t.memoizedState!==null?(Fl(),t.child=e.child,t.flags|=128,t=null):(Fl(),h=a.fallback,n=t.mode,a=Fi({mode:"visible",children:a.children},n),h=Aa(h,n,l,null),h.flags|=2,a.return=t,h.return=t,a.sibling=h,t.child=a,Ha(t,e.child,null,l),a=t.child,a.memoizedState=cc(l),a.childLanes=oc(e,o,l),t.memoizedState=rc,t=Ru(null,a));else if(kl(t),Vc(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var z=o.dgst;o=z,a=Error(c(419)),a.stack="",a.digest=o,vu({value:a,source:null,stack:null}),t=dc(e,t,l)}else if(Ke||pn(e,t,l,!1),o=(l&e.childLanes)!==0,Ke||o){if(o=Me,o!==null&&(a=af(o,l),a!==0&&a!==x.retryLane))throw x.retryLane=a,Ra(e,a),bt(o,e,a),ic;Kc(h)||ns(),t=dc(e,t,l)}else Kc(h)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,_e=Xt(h.nextSibling),tt=t,ve=!0,Gl=null,Yt=!1,e!==null&&ed(t,e),t=fc(t,a.children),t.flags|=4096);return t}return n?(Fl(),h=a.fallback,n=t.mode,x=e.child,z=x.sibling,a=ml(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,z!==null?h=ml(z,h):(h=Aa(h,n,l,null),h.flags|=2),h.return=t,a.return=t,a.sibling=h,t.child=a,Ru(null,a),a=t.child,h=e.child.memoizedState,h===null?h=cc(l):(n=h.cachePool,n!==null?(x=Xe._currentValue,n=n.parent!==x?{parent:x,pool:x}:n):n=id(),h={baseLanes:h.baseLanes|l,cachePool:n}),a.memoizedState=h,a.childLanes=oc(e,o,l),t.memoizedState=rc,Ru(e.child,a)):(kl(t),l=e.child,e=l.sibling,l=ml(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=l,t.memoizedState=null,l)}function fc(e,t){return t=Fi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fi(e,t){return e=Rt(22,e,null,t),e.lanes=0,e}function dc(e,t,l){return Ha(t,e.child,null,l),e=fc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bh(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Or(e.return,t,l)}function hc(e,t,l,a,n,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=l,o.tailMode=n,o.treeForkCount=s)}function xh(e,t,l){var a=t.pendingProps,n=a.revealOrder,s=a.tail;a=a.children;var o=Le.current,h=(o&2)!==0;if(h?(o=o&1|2,t.flags|=128):o&=1,J(Le,o),at(e,t,a,l),a=ve?yu:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bh(e,l,t);else if(e.tag===19)bh(e,l,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(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&qi(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),hc(t,!1,n,l,s,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&qi(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}hc(t,!0,l,null,s,a);break;case"together":hc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function xl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Il|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pn(e,t,l,!1),(l&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,l=ml(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ml(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function mc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ai(e)))}function $p(e,t,l){switch(t.tag){case 3:rt(t,t.stateNode.containerInfo),Zl(t,Xe,e.memoizedState.cache),za();break;case 27:case 5:eu(t);break;case 4:rt(t,t.stateNode.containerInfo);break;case 10:Zl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qr(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(kl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?gh(e,t,l):(kl(t),e=xl(e,t,l),e!==null?e.sibling:null);kl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(pn(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return xh(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),J(Le,Le.current),a)break;return null;case 22:return t.lanes=0,dh(e,t,l,t.pendingProps);case 24:Zl(t,Xe,e.memoizedState.cache)}return xl(e,t,l)}function Sh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!mc(e,l)&&(t.flags&128)===0)return Ke=!1,$p(e,t,l);Ke=(e.flags&131072)!==0}else Ke=!1,ve&&(t.flags&1048576)!==0&&Pf(t,yu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ua(t.elementType),t.type=e,typeof e=="function")br(e)?(a=Ba(e,a),t.tag=1,t=vh(null,t,e,a,l)):(t.tag=0,t=sc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===G){t.tag=11,t=ch(null,t,e,a,l);break e}else if(n===F){t.tag=14,t=oh(null,t,e,a,l);break e}}throw t=dt(e)||e,Error(c(306,t,""))}}return t;case 0:return sc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Ba(a,t.pendingProps),vh(e,t,a,n,l);case 3:e:{if(rt(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var s=t.memoizedState;n=s.element,Ur(e,t),ju(t,a,null,l);var o=t.memoizedState;if(a=o.cache,Zl(t,Xe,a),a!==s.cache&&Rr(t,[Xe],l,!0),Eu(),a=o.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=ph(e,t,a,l);break e}else if(a!==n){n=Bt(Error(c(424)),t),vu(n),t=ph(e,t,a,l);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(_e=Xt(e.firstChild),tt=t,ve=!0,Gl=null,Yt=!0,l=dd(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(za(),a===n){t=xl(e,t,l);break e}at(e,t,a,l)}t=t.child}return t;case 26:return ki(e,t),e===null?(l=_m(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(l=t.type,e=t.pendingProps,a=fs(oe.current).createElement(l),a[et]=t,a[ht]=e,nt(a,l,e),We(a),t.stateNode=a):t.memoizedState=_m(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return eu(t),e===null&&ve&&(a=t.stateNode=Am(t.type,t.pendingProps,oe.current),tt=t,Yt=!0,n=_e,aa(t.type)?(Jc=n,_e=Xt(a.firstChild)):_e=n),at(e,t,t.pendingProps.children,l),ki(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((n=a=_e)&&(a=C0(a,t.type,t.pendingProps,Yt),a!==null?(t.stateNode=a,tt=t,_e=Xt(a.firstChild),Yt=!1,n=!0):n=!1),n||Xl(t)),eu(t),n=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,a=s.children,Gc(n,s)?a=null:o!==null&&Gc(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=Yr(e,t,Yp,null,null,l),Xu._currentValue=n),ki(e,t),at(e,t,a,l),t.child;case 6:return e===null&&ve&&((e=l=_e)&&(l=O0(l,t.pendingProps,Yt),l!==null?(t.stateNode=l,tt=t,_e=null,e=!0):e=!1),e||Xl(t)),null;case 13:return gh(e,t,l);case 4:return rt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ha(t,null,a,l):at(e,t,a,l),t.child;case 11:return ch(e,t,t.type,t.pendingProps,l);case 7:return at(e,t,t.pendingProps,l),t.child;case 8:return at(e,t,t.pendingProps.children,l),t.child;case 12:return at(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Zl(t,t.type,a.value),at(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,_a(t),n=lt(n),a=a(n),t.flags|=1,at(e,t,a,l),t.child;case 14:return oh(e,t,t.type,t.pendingProps,l);case 15:return fh(e,t,t.type,t.pendingProps,l);case 19:return xh(e,t,l);case 31:return Fp(e,t,l);case 22:return dh(e,t,l,t.pendingProps);case 24:return _a(t),a=lt(Xe),e===null?(n=Mr(),n===null&&(n=Me,s=Ar(),n.pooledCache=s,s.refCount++,s!==null&&(n.pooledCacheLanes|=l),n=s),t.memoizedState={parent:a,cache:n},Dr(t),Zl(t,Xe,n)):((e.lanes&l)!==0&&(Ur(e,t),ju(t,null,null,l),Eu()),n=e.memoizedState,s=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Zl(t,Xe,a)):(a=s.cache,Zl(t,Xe,a),a!==n.cache&&Rr(t,[Xe],l,!0))),at(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Sl(e){e.flags|=4}function yc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(kh())e.flags|=8192;else throw wa=Di,_r}else e.flags&=-16777217}function Eh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!qm(t))if(kh())e.flags|=8192;else throw wa=Di,_r}function $i(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ef():536870912,e.lanes|=t,An|=t)}function Au(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Wp(e,t,l){var a=t.pendingProps;switch(jr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return De(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),pl(Xe),Qe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(vn(t)?Sl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Tr())),De(t),null;case 26:var n=t.type,s=t.memoizedState;return e===null?(Sl(t),s!==null?(De(t),Eh(t,s)):(De(t),yc(t,n,null,a,l))):s?s!==e.memoizedState?(Sl(t),De(t),Eh(t,s)):(De(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Sl(t),De(t),yc(t,n,e,a,l)),null;case 27:if(si(t),l=oe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return De(t),null}e=I.current,vn(t)?td(t):(e=Am(n,a,l),t.stateNode=e,Sl(t))}return De(t),null;case 5:if(si(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return De(t),null}if(s=I.current,vn(t))td(t);else{var o=fs(oe.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":s=o.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?o.createElement(n,{is:a.is}):o.createElement(n)}}s[et]=t,s[ht]=a;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(nt(s,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Sl(t)}}return De(t),yc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=oe.current,vn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=tt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[et]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||gm(e.nodeValue,l)),e||Xl(t,!0)}else e=fs(e).createTextNode(a),e[et]=t,t.stateNode=e}return De(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=vn(t),l!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[et]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),e=!1}else l=Tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(zt(t),t):(zt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return De(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=vn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(c(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));n[et]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),n=!1}else n=Tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(zt(t),t):(zt(t),null)}return zt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),$i(t,t.updateQueue),De(t),null);case 4:return Qe(),e===null&&qc(t.stateNode.containerInfo),De(t),null;case 10:return pl(t.type),De(t),null;case 19:if(X(Le),a=t.memoizedState,a===null)return De(t),null;if(n=(t.flags&128)!==0,s=a.rendering,s===null)if(n)Au(a,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=qi(e),s!==null){for(t.flags|=128,Au(a,!1),e=s.updateQueue,t.updateQueue=e,$i(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)$f(l,e),l=l.sibling;return J(Le,Le.current&1|2),ve&&yl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Nt()>ts&&(t.flags|=128,n=!0,Au(a,!1),t.lanes=4194304)}else{if(!n)if(e=qi(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,$i(t,e),Au(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!ve)return De(t),null}else 2*Nt()-a.renderingStartTime>ts&&l!==536870912&&(t.flags|=128,n=!0,Au(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Nt(),e.sibling=null,l=Le.current,J(Le,n?l&1|2:l&1),ve&&yl(t,a.treeForkCount),e):(De(t),null);case 22:case 23:return zt(t),Br(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),l=t.updateQueue,l!==null&&$i(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&X(Da),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),pl(Xe),De(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Ip(e,t){switch(jr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pl(Xe),Qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return si(t),null;case 31:if(t.memoizedState!==null){if(zt(t),t.alternate===null)throw Error(c(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(Le),null;case 4:return Qe(),null;case 10:return pl(t.type),null;case 22:case 23:return zt(t),Br(),e!==null&&X(Da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pl(Xe),null;case 25:return null;default:return null}}function jh(e,t){switch(jr(t),t.tag){case 3:pl(Xe),Qe();break;case 26:case 27:case 5:si(t);break;case 4:Qe();break;case 31:t.memoizedState!==null&&zt(t);break;case 13:zt(t);break;case 19:X(Le);break;case 10:pl(t.type);break;case 22:case 23:zt(t),Br(),e!==null&&X(Da);break;case 24:pl(Xe)}}function zu(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var s=l.create,o=l.inst;a=s(),o.destroy=a}l=l.next}while(l!==n)}}catch(h){Ne(t,t.return,h)}}function $l(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var s=n.next;a=s;do{if((a.tag&e)===e){var o=a.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,n=t;var x=l,z=h;try{z()}catch(q){Ne(n,x,q)}}}a=a.next}while(a!==s)}}catch(q){Ne(t,t.return,q)}}function Nh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{md(t,l)}catch(a){Ne(e,e.return,a)}}}function Th(e,t,l){l.props=Ba(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ne(e,t,a)}}function Mu(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Ne(e,t,n)}}function nl(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ne(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Ne(e,t,n)}else l.current=null}function Ch(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Ne(e,e.return,n)}}function vc(e,t,l){try{var a=e.stateNode;x0(a,e.type,l,t),a[ht]=t}catch(n){Ne(e,e.return,n)}}function Oh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&aa(e.type)||e.tag===4}function pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oh(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&&aa(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 gc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=dl));else if(a!==4&&(a===27&&aa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(gc(e,t,l),e=e.sibling;e!==null;)gc(e,t,l),e=e.sibling}function Wi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&aa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Wi(e,t,l),e=e.sibling;e!==null;)Wi(e,t,l),e=e.sibling}function Rh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);nt(t,a,l),t[et]=e,t[ht]=l}catch(s){Ne(e,e.return,s)}}var El=!1,Ve=!1,bc=!1,Ah=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function Pp(e,t){if(e=e.containerInfo,Lc=gs,e=Yf(e),dr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var o=0,h=-1,x=-1,z=0,q=0,Y=e,M=null;t:for(;;){for(var D;Y!==l||n!==0&&Y.nodeType!==3||(h=o+n),Y!==s||a!==0&&Y.nodeType!==3||(x=o+a),Y.nodeType===3&&(o+=Y.nodeValue.length),(D=Y.firstChild)!==null;)M=Y,Y=D;for(;;){if(Y===e)break t;if(M===l&&++z===n&&(h=o),M===s&&++q===a&&(x=o),(D=Y.nextSibling)!==null)break;Y=M,M=Y.parentNode}Y=D}l=h===-1||x===-1?null:{start:h,end:x}}else l=null}l=l||{start:0,end:0}}else l=null;for(Yc={focusedElem:e,selectionRange:l},gs=!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(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,l=t,n=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var W=Ba(l.type,n);e=a.getSnapshotBeforeUpdate(W,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(le){Ne(l,l.return,le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Zc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zc(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,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Nl(e,l),a&4&&zu(5,l);break;case 1:if(Nl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(o){Ne(l,l.return,o)}else{var n=Ba(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Ne(l,l.return,o)}}a&64&&Nh(l),a&512&&Mu(l,l.return);break;case 3:if(Nl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{md(e,t)}catch(o){Ne(l,l.return,o)}}break;case 27:t===null&&a&4&&Rh(l);case 26:case 5:Nl(e,l),t===null&&a&4&&Ch(l),a&512&&Mu(l,l.return);break;case 12:Nl(e,l);break;case 31:Nl(e,l),a&4&&Dh(e,l);break;case 13:Nl(e,l),a&4&&Uh(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=r0.bind(null,l),R0(e,l))));break;case 22:if(a=l.memoizedState!==null||El,!a){t=t!==null&&t.memoizedState!==null||Ve,n=El;var s=Ve;El=a,(Ve=t)&&!s?Tl(e,l,(l.subtreeFlags&8772)!==0):Nl(e,l),El=n,Ve=s}break;case 30:break;default:Nl(e,l)}}function Mh(e){var t=e.alternate;t!==null&&(e.alternate=null,Mh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Fs(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 Ue=null,yt=!1;function jl(e,t,l){for(l=l.child;l!==null;)_h(e,t,l),l=l.sibling}function _h(e,t,l){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(tu,l)}catch{}switch(l.tag){case 26:Ve||nl(l,t),jl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ve||nl(l,t);var a=Ue,n=yt;aa(l.type)&&(Ue=l.stateNode,yt=!1),jl(e,t,l),Lu(l.stateNode),Ue=a,yt=n;break;case 5:Ve||nl(l,t);case 6:if(a=Ue,n=yt,Ue=null,jl(e,t,l),Ue=a,yt=n,Ue!==null)if(yt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(l.stateNode)}catch(s){Ne(l,t,s)}else try{Ue.removeChild(l.stateNode)}catch(s){Ne(l,t,s)}break;case 18:Ue!==null&&(yt?(e=Ue,Nm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),qn(e)):Nm(Ue,l.stateNode));break;case 4:a=Ue,n=yt,Ue=l.stateNode.containerInfo,yt=!0,jl(e,t,l),Ue=a,yt=n;break;case 0:case 11:case 14:case 15:$l(2,l,t),Ve||$l(4,l,t),jl(e,t,l);break;case 1:Ve||(nl(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Th(l,t,a)),jl(e,t,l);break;case 21:jl(e,t,l);break;case 22:Ve=(a=Ve)||l.memoizedState!==null,jl(e,t,l),Ve=a;break;default:jl(e,t,l)}}function Dh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qn(e)}catch(l){Ne(t,t.return,l)}}}function Uh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qn(e)}catch(l){Ne(t,t.return,l)}}function e0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ah),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ah),t;default:throw Error(c(435,e.tag))}}function Ii(e,t){var l=e0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=c0.bind(null,e,a);a.then(n,n)}})}function vt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],s=e,o=t,h=o;e:for(;h!==null;){switch(h.tag){case 27:if(aa(h.type)){Ue=h.stateNode,yt=!1;break e}break;case 5:Ue=h.stateNode,yt=!1;break e;case 3:case 4:Ue=h.stateNode.containerInfo,yt=!0;break e}h=h.return}if(Ue===null)throw Error(c(160));_h(s,o,n),Ue=null,yt=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wh(t,e),t=t.sibling}var Ft=null;function wh(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),pt(e),a&4&&($l(3,e,e.return),zu(3,e),$l(5,e,e.return));break;case 1:vt(t,e),pt(e),a&512&&(Ve||l===null||nl(l,l.return)),a&64&&El&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ft;if(vt(t,e),pt(e),a&512&&(Ve||l===null||nl(l,l.return)),a&4){var s=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":s=n.getElementsByTagName("title")[0],(!s||s[nu]||s[et]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=n.createElement(a),n.head.insertBefore(s,n.querySelector("head > title"))),nt(s,a,l),s[et]=e,We(s),a=s;break e;case"link":var o=wm("link","href",n).get(a+(l.href||""));if(o){for(var h=0;h<o.length;h++)if(s=o[h],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){o.splice(h,1);break t}}s=n.createElement(a),nt(s,a,l),n.head.appendChild(s);break;case"meta":if(o=wm("meta","content",n).get(a+(l.content||""))){for(h=0;h<o.length;h++)if(s=o[h],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){o.splice(h,1);break t}}s=n.createElement(a),nt(s,a,l),n.head.appendChild(s);break;default:throw Error(c(468,a))}s[et]=e,We(s),a=s}e.stateNode=a}else Hm(n,e.type,e.stateNode);else e.stateNode=Um(n,a,e.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?Hm(n,e.type,e.stateNode):Um(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&vc(e,e.memoizedProps,l.memoizedProps)}break;case 27:vt(t,e),pt(e),a&512&&(Ve||l===null||nl(l,l.return)),l!==null&&a&4&&vc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(vt(t,e),pt(e),a&512&&(Ve||l===null||nl(l,l.return)),e.flags&32){n=e.stateNode;try{un(n,"")}catch(W){Ne(e,e.return,W)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,vc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(bc=!0);break;case 6:if(vt(t,e),pt(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(W){Ne(e,e.return,W)}}break;case 3:if(ms=null,n=Ft,Ft=ds(t.containerInfo),vt(t,e),Ft=n,pt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{qn(t.containerInfo)}catch(W){Ne(e,e.return,W)}bc&&(bc=!1,Hh(e));break;case 4:a=Ft,Ft=ds(e.stateNode.containerInfo),vt(t,e),pt(e),Ft=a;break;case 12:vt(t,e),pt(e);break;case 31:vt(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ii(e,a)));break;case 13:vt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(es=Nt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ii(e,a)));break;case 22:n=e.memoizedState!==null;var x=l!==null&&l.memoizedState!==null,z=El,q=Ve;if(El=z||n,Ve=q||x,vt(t,e),Ve=q,El=z,pt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||x||El||Ve||Qa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){x=l=t;try{if(s=x.stateNode,n)o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{h=x.stateNode;var Y=x.memoizedProps.style,M=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;h.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(W){Ne(x,x.return,W)}}}else if(t.tag===6){if(l===null){x=t;try{x.stateNode.nodeValue=n?"":x.memoizedProps}catch(W){Ne(x,x.return,W)}}}else if(t.tag===18){if(l===null){x=t;try{var D=x.stateNode;n?Tm(D,!0):Tm(x.stateNode,!1)}catch(W){Ne(x,x.return,W)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Ii(e,l))));break;case 19:vt(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ii(e,a)));break;case 30:break;case 21:break;default:vt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Oh(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var n=l.stateNode,s=pc(e);Wi(e,s,n);break;case 5:var o=l.stateNode;l.flags&32&&(un(o,""),l.flags&=-33);var h=pc(e);Wi(e,h,o);break;case 3:case 4:var x=l.stateNode.containerInfo,z=pc(e);gc(e,z,x);break;default:throw Error(c(161))}}catch(q){Ne(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Hh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Nl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)zh(e,t.alternate,t),t=t.sibling}function Qa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$l(4,t,t.return),Qa(t);break;case 1:nl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Th(t,t.return,l),Qa(t);break;case 27:Lu(t.stateNode);case 26:case 5:nl(t,t.return),Qa(t);break;case 22:t.memoizedState===null&&Qa(t);break;case 30:Qa(t);break;default:Qa(t)}e=e.sibling}}function Tl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,s=t,o=s.flags;switch(s.tag){case 0:case 11:case 15:Tl(n,s,l),zu(4,s);break;case 1:if(Tl(n,s,l),a=s,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(z){Ne(a,a.return,z)}if(a=s,n=a.updateQueue,n!==null){var h=a.stateNode;try{var x=n.shared.hiddenCallbacks;if(x!==null)for(n.shared.hiddenCallbacks=null,n=0;n<x.length;n++)hd(x[n],h)}catch(z){Ne(a,a.return,z)}}l&&o&64&&Nh(s),Mu(s,s.return);break;case 27:Rh(s);case 26:case 5:Tl(n,s,l),l&&a===null&&o&4&&Ch(s),Mu(s,s.return);break;case 12:Tl(n,s,l);break;case 31:Tl(n,s,l),l&&o&4&&Dh(n,s);break;case 13:Tl(n,s,l),l&&o&4&&Uh(n,s);break;case 22:s.memoizedState===null&&Tl(n,s,l),Mu(s,s.return);break;case 30:break;default:Tl(n,s,l)}t=t.sibling}}function xc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&pu(l))}function Sc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pu(e))}function $t(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qh(e,t,l,a),t=t.sibling}function qh(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:$t(e,t,l,a),n&2048&&zu(9,t);break;case 1:$t(e,t,l,a);break;case 3:$t(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pu(e)));break;case 12:if(n&2048){$t(e,t,l,a),e=t.stateNode;try{var s=t.memoizedProps,o=s.id,h=s.onPostCommit;typeof h=="function"&&h(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Ne(t,t.return,x)}}else $t(e,t,l,a);break;case 31:$t(e,t,l,a);break;case 13:$t(e,t,l,a);break;case 23:break;case 22:s=t.stateNode,o=t.alternate,t.memoizedState!==null?s._visibility&2?$t(e,t,l,a):_u(e,t):s._visibility&2?$t(e,t,l,a):(s._visibility|=2,Cn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&xc(o,t);break;case 24:$t(e,t,l,a),n&2048&&Sc(t.alternate,t);break;default:$t(e,t,l,a)}}function Cn(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,o=t,h=l,x=a,z=o.flags;switch(o.tag){case 0:case 11:case 15:Cn(s,o,h,x,n),zu(8,o);break;case 23:break;case 22:var q=o.stateNode;o.memoizedState!==null?q._visibility&2?Cn(s,o,h,x,n):_u(s,o):(q._visibility|=2,Cn(s,o,h,x,n)),n&&z&2048&&xc(o.alternate,o);break;case 24:Cn(s,o,h,x,n),n&&z&2048&&Sc(o.alternate,o);break;default:Cn(s,o,h,x,n)}t=t.sibling}}function _u(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:_u(l,a),n&2048&&xc(a.alternate,a);break;case 24:_u(l,a),n&2048&&Sc(a.alternate,a);break;default:_u(l,a)}t=t.sibling}}var Du=8192;function On(e,t,l){if(e.subtreeFlags&Du)for(e=e.child;e!==null;)Bh(e,t,l),e=e.sibling}function Bh(e,t,l){switch(e.tag){case 26:On(e,t,l),e.flags&Du&&e.memoizedState!==null&&L0(l,Ft,e.memoizedState,e.memoizedProps);break;case 5:On(e,t,l);break;case 3:case 4:var a=Ft;Ft=ds(e.stateNode.containerInfo),On(e,t,l),Ft=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Du,Du=16777216,On(e,t,l),Du=a):On(e,t,l));break;default:On(e,t,l)}}function Qh(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 Uu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,Yh(a,e)}Qh(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:Uu(e),e.flags&2048&&$l(9,e,e.return);break;case 3:Uu(e);break;case 12:Uu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Pi(e)):Uu(e);break;default:Uu(e)}}function Pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,Yh(a,e)}Qh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$l(8,t,t.return),Pi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Pi(t));break;default:Pi(t)}e=e.sibling}}function Yh(e,t){for(;Ie!==null;){var l=Ie;switch(l.tag){case 0:case 11:case 15:$l(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:pu(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ie=a;else e:for(l=e;Ie!==null;){a=Ie;var n=a.sibling,s=a.return;if(Mh(a),a===l){Ie=null;break e}if(n!==null){n.return=s,Ie=n;break e}Ie=s}}}var t0={getCacheForType:function(e){var t=lt(Xe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return lt(Xe).controller.signal}},l0=typeof WeakMap=="function"?WeakMap:Map,xe=0,Me=null,fe=null,me=0,je=0,Mt=null,Wl=!1,Rn=!1,Ec=!1,Cl=0,qe=0,Il=0,La=0,jc=0,_t=0,An=0,wu=null,gt=null,Nc=!1,es=0,Gh=0,ts=1/0,ls=null,Pl=null,Fe=0,ea=null,zn=null,Ol=0,Tc=0,Cc=null,Xh=null,Hu=0,Oc=null;function Dt(){return(xe&2)!==0&&me!==0?me&-me:B.T!==null?Dc():nf()}function Zh(){if(_t===0)if((me&536870912)===0||ve){var e=oi;oi<<=1,(oi&3932160)===0&&(oi=262144),_t=e}else _t=536870912;return e=At.current,e!==null&&(e.flags|=32),_t}function bt(e,t,l){(e===Me&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(Mn(e,0),ta(e,me,_t,!1)),au(e,l),((xe&2)===0||e!==Me)&&(e===Me&&((xe&2)===0&&(La|=l),qe===4&&ta(e,me,_t,!1)),ul(e))}function Kh(e,t,l){if((xe&6)!==0)throw Error(c(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||lu(e,t),n=a?u0(e,t):Ac(e,t,!0),s=a;do{if(n===0){Rn&&!a&&ta(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!a0(l)){n=Ac(e,t,!1),s=!1;continue}if(n===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 h=e;n=wu;var x=h.current.memoizedState.isDehydrated;if(x&&(Mn(h,o).flags|=256),o=Ac(h,o,!1),o!==2){if(Ec&&!x){h.errorRecoveryDisabledLanes|=s,La|=s,n=4;break e}s=gt,gt=n,s!==null&&(gt===null?gt=s:gt.push.apply(gt,s))}n=o}if(s=!1,n!==2)continue}}if(n===1){Mn(e,0),ta(e,t,0,!0);break}e:{switch(a=e,s=n,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:ta(a,t,_t,!Wl);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(n=es+300-Nt(),10<n)){if(ta(a,t,_t,!Wl),di(a,0,!0)!==0)break e;Ol=t,a.timeoutHandle=Em(Vh.bind(null,a,l,gt,ls,Nc,t,_t,La,An,Wl,s,"Throttled",-0,0),n);break e}Vh(a,l,gt,ls,Nc,t,_t,La,An,Wl,s,null,-0,0)}}break}while(!0);ul(e)}function Vh(e,t,l,a,n,s,o,h,x,z,q,Y,M,D){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dl},Bh(t,s,Y);var W=(s&62914560)===s?es-Nt():(s&4194048)===s?Gh-Nt():0;if(W=Y0(Y,W),W!==null){Ol=s,e.cancelPendingCommit=W(em.bind(null,e,t,s,l,a,n,o,h,x,q,Y,null,M,D)),ta(e,s,o,!z);return}}em(e,t,s,l,a,n,o,h,x)}function a0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],s=n.getSnapshot;n=n.value;try{if(!Ot(s(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 ta(e,t,l,a){t&=~jc,t&=~La,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var s=31-Ct(n),o=1<<s;a[s]=-1,n&=~o}l!==0&&tf(e,l,t)}function as(){return(xe&6)===0?(qu(0),!1):!0}function Rc(){if(fe!==null){if(je===0)var e=fe.return;else e=fe,vl=Ma=null,Zr(e),Sn=null,bu=0,e=fe;for(;e!==null;)jh(e.alternate,e),e=e.return;fe=null}}function Mn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,j0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ol=0,Rc(),Me=e,fe=l=ml(e.current,null),me=t,je=0,Mt=null,Wl=!1,Rn=lu(e,t),Ec=!1,An=_t=jc=La=Il=qe=0,gt=wu=null,Nc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-Ct(a),s=1<<n;t|=e[n],a&=~s}return Cl=t,Ni(),l}function Jh(e,t){se=null,B.H=Ou,t===xn||t===_i?(t=cd(),je=3):t===_r?(t=cd(),je=4):je=t===ic?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,fe===null&&(qe=1,Vi(e,Bt(t,e.current)))}function kh(){var e=At.current;return e===null?!0:(me&4194048)===me?Gt===null:(me&62914560)===me||(me&536870912)!==0?e===Gt:!1}function Fh(){var e=B.H;return B.H=Ou,e===null?Ou:e}function $h(){var e=B.A;return B.A=t0,e}function ns(){qe=4,Wl||(me&4194048)!==me&&At.current!==null||(Rn=!0),(Il&134217727)===0&&(La&134217727)===0||Me===null||ta(Me,me,_t,!1)}function Ac(e,t,l){var a=xe;xe|=2;var n=Fh(),s=$h();(Me!==e||me!==t)&&(ls=null,Mn(e,t)),t=!1;var o=qe;e:do try{if(je!==0&&fe!==null){var h=fe,x=Mt;switch(je){case 8:Rc(),o=6;break e;case 3:case 2:case 9:case 6:At.current===null&&(t=!0);var z=je;if(je=0,Mt=null,_n(e,h,x,z),l&&Rn){o=0;break e}break;default:z=je,je=0,Mt=null,_n(e,h,x,z)}}n0(),o=qe;break}catch(q){Jh(e,q)}while(!0);return t&&e.shellSuspendCounter++,vl=Ma=null,xe=a,B.H=n,B.A=s,fe===null&&(Me=null,me=0,Ni()),o}function n0(){for(;fe!==null;)Wh(fe)}function u0(e,t){var l=xe;xe|=2;var a=Fh(),n=$h();Me!==e||me!==t?(ls=null,ts=Nt()+500,Mn(e,t)):Rn=lu(e,t);e:do try{if(je!==0&&fe!==null){t=fe;var s=Mt;t:switch(je){case 1:je=0,Mt=null,_n(e,t,s,1);break;case 2:case 9:if(sd(s)){je=0,Mt=null,Ih(t);break}t=function(){je!==2&&je!==9||Me!==e||(je=7),ul(e)},s.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:sd(s)?(je=0,Mt=null,Ih(t)):(je=0,Mt=null,_n(e,t,s,7));break;case 5:var o=null;switch(fe.tag){case 26:o=fe.memoizedState;case 5:case 27:var h=fe;if(o?qm(o):h.stateNode.complete){je=0,Mt=null;var x=h.sibling;if(x!==null)fe=x;else{var z=h.return;z!==null?(fe=z,us(z)):fe=null}break t}}je=0,Mt=null,_n(e,t,s,5);break;case 6:je=0,Mt=null,_n(e,t,s,6);break;case 8:Rc(),qe=6;break e;default:throw Error(c(462))}}i0();break}catch(q){Jh(e,q)}while(!0);return vl=Ma=null,B.H=a,B.A=n,xe=l,fe!==null?0:(Me=null,me=0,Ni(),qe)}function i0(){for(;fe!==null&&!Av();)Wh(fe)}function Wh(e){var t=Sh(e.alternate,e,Cl);e.memoizedProps=e.pendingProps,t===null?us(e):fe=t}function Ih(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=yh(l,t,t.pendingProps,t.type,void 0,me);break;case 11:t=yh(l,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Zr(t);default:jh(l,t),t=fe=$f(t,Cl),t=Sh(l,t,Cl)}e.memoizedProps=e.pendingProps,t===null?us(e):fe=t}function _n(e,t,l,a){vl=Ma=null,Zr(t),Sn=null,bu=0;var n=t.return;try{if(kp(e,n,t,l,me)){qe=1,Vi(e,Bt(l,e.current)),fe=null;return}}catch(s){if(n!==null)throw fe=n,s;qe=1,Vi(e,Bt(l,e.current)),fe=null;return}t.flags&32768?(ve||a===1?e=!0:Rn||(me&536870912)!==0?e=!1:(Wl=e=!0,(a===2||a===9||a===3||a===6)&&(a=At.current,a!==null&&a.tag===13&&(a.flags|=16384))),Ph(t,e)):us(t)}function us(e){var t=e;do{if((t.flags&32768)!==0){Ph(t,Wl);return}e=t.return;var l=Wp(t.alternate,t,Cl);if(l!==null){fe=l;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);qe===0&&(qe=5)}function Ph(e,t){do{var l=Ip(e.alternate,e);if(l!==null){l.flags&=32767,fe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=l}while(e!==null);qe=6,fe=null}function em(e,t,l,a,n,s,o,h,x){e.cancelPendingCommit=null;do is();while(Fe!==0);if((xe&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(s=t.lanes|t.childLanes,s|=pr,Qv(e,l,s,o,h,x),e===Me&&(fe=Me=null,me=0),zn=t,ea=e,Ol=l,Tc=s,Cc=n,Xh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,o0(ri,function(){return um(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=B.T,B.T=null,n=V.p,V.p=2,o=xe,xe|=4;try{Pp(e,t,l)}finally{xe=o,V.p=n,B.T=a}}Fe=1,tm(),lm(),am()}}function tm(){if(Fe===1){Fe=0;var e=ea,t=zn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=B.T,B.T=null;var a=V.p;V.p=2;var n=xe;xe|=4;try{wh(t,e);var s=Yc,o=Yf(e.containerInfo),h=s.focusedElem,x=s.selectionRange;if(o!==h&&h&&h.ownerDocument&&Lf(h.ownerDocument.documentElement,h)){if(x!==null&&dr(h)){var z=x.start,q=x.end;if(q===void 0&&(q=z),"selectionStart"in h)h.selectionStart=z,h.selectionEnd=Math.min(q,h.value.length);else{var Y=h.ownerDocument||document,M=Y&&Y.defaultView||window;if(M.getSelection){var D=M.getSelection(),W=h.textContent.length,le=Math.min(x.start,W),Ae=x.end===void 0?le:Math.min(x.end,W);!D.extend&&le>Ae&&(o=Ae,Ae=le,le=o);var C=Qf(h,le),j=Qf(h,Ae);if(C&&j&&(D.rangeCount!==1||D.anchorNode!==C.node||D.anchorOffset!==C.offset||D.focusNode!==j.node||D.focusOffset!==j.offset)){var A=Y.createRange();A.setStart(C.node,C.offset),D.removeAllRanges(),le>Ae?(D.addRange(A),D.extend(j.node,j.offset)):(A.setEnd(j.node,j.offset),D.addRange(A))}}}}for(Y=[],D=h;D=D.parentNode;)D.nodeType===1&&Y.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<Y.length;h++){var Q=Y[h];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}gs=!!Lc,Yc=Lc=null}finally{xe=n,V.p=a,B.T=l}}e.current=t,Fe=2}}function lm(){if(Fe===2){Fe=0;var e=ea,t=zn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=B.T,B.T=null;var a=V.p;V.p=2;var n=xe;xe|=4;try{zh(e,t.alternate,t)}finally{xe=n,V.p=a,B.T=l}}Fe=3}}function am(){if(Fe===4||Fe===3){Fe=0,zv();var e=ea,t=zn,l=Ol,a=Xh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,zn=ea=null,nm(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Pl=null),Js(l),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(tu,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=B.T,n=V.p,V.p=2,B.T=null;try{for(var s=e.onRecoverableError,o=0;o<a.length;o++){var h=a[o];s(h.value,{componentStack:h.stack})}}finally{B.T=t,V.p=n}}(Ol&3)!==0&&is(),ul(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Oc?Hu++:(Hu=0,Oc=e):Hu=0,qu(0)}}function nm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pu(t)))}function is(){return tm(),lm(),am(),um()}function um(){if(Fe!==5)return!1;var e=ea,t=Tc;Tc=0;var l=Js(Ol),a=B.T,n=V.p;try{V.p=32>l?32:l,B.T=null,l=Cc,Cc=null;var s=ea,o=Ol;if(Fe=0,zn=ea=null,Ol=0,(xe&6)!==0)throw Error(c(331));var h=xe;if(xe|=4,Lh(s.current),qh(s,s.current,o,l),xe=h,qu(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(tu,s)}catch{}return!0}finally{V.p=n,B.T=a,nm(e,t)}}function im(e,t,l){t=Bt(l,t),t=uc(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(au(e,2),ul(e))}function Ne(e,t,l){if(e.tag===3)im(e,e,l);else for(;t!==null;){if(t.tag===3){im(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Pl===null||!Pl.has(a))){e=Bt(l,e),l=sh(2),a=Jl(t,l,2),a!==null&&(rh(l,a,t,e),au(a,2),ul(a));break}}t=t.return}}function zc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new l0;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Ec=!0,n.add(l),e=s0.bind(null,e,t,l),t.then(e,e))}function s0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Me===e&&(me&l)===l&&(qe===4||qe===3&&(me&62914560)===me&&300>Nt()-es?(xe&2)===0&&Mn(e,0):jc|=l,An===me&&(An=0)),ul(e)}function sm(e,t){t===0&&(t=ef()),e=Ra(e,t),e!==null&&(au(e,t),ul(e))}function r0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),sm(e,l)}function c0(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),sm(e,l)}function o0(e,t){return Xs(e,t)}var ss=null,Dn=null,Mc=!1,rs=!1,_c=!1,la=0;function ul(e){e!==Dn&&e.next===null&&(Dn===null?ss=Dn=e:Dn=Dn.next=e),rs=!0,Mc||(Mc=!0,d0())}function qu(e,t){if(!_c&&rs){_c=!0;do for(var l=!1,a=ss;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var s=0;else{var o=a.suspendedLanes,h=a.pingedLanes;s=(1<<31-Ct(42|e)+1)-1,s&=n&~(o&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,fm(a,s))}else s=me,s=di(a,a===Me?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||lu(a,s)||(l=!0,fm(a,s));a=a.next}while(l);_c=!1}}function f0(){rm()}function rm(){rs=Mc=!1;var e=0;la!==0&&E0()&&(e=la);for(var t=Nt(),l=null,a=ss;a!==null;){var n=a.next,s=cm(a,t);s===0?(a.next=null,l===null?ss=n:l.next=n,n===null&&(Dn=l)):(l=a,(e!==0||(s&3)!==0)&&(rs=!0)),a=n}Fe!==0&&Fe!==5||qu(e),la!==0&&(la=0)}function cm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var o=31-Ct(s),h=1<<o,x=n[o];x===-1?((h&l)===0||(h&a)!==0)&&(n[o]=Bv(h,t)):x<=t&&(e.expiredLanes|=h),s&=~h}if(t=Me,l=me,l=di(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Zs(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||lu(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Zs(a),Js(l)){case 2:case 8:l=Io;break;case 32:l=ri;break;case 268435456:l=Po;break;default:l=ri}return a=om.bind(null,e),l=Xs(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Zs(a),e.callbackPriority=2,e.callbackNode=null,2}function om(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(is()&&e.callbackNode!==l)return null;var a=me;return a=di(e,e===Me?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Kh(e,a,t),cm(e,Nt()),e.callbackNode!=null&&e.callbackNode===l?om.bind(null,e):null)}function fm(e,t){if(is())return null;Kh(e,t,!0)}function d0(){N0(function(){(xe&6)!==0?Xs(Wo,f0):rm()})}function Dc(){if(la===0){var e=gn;e===0&&(e=ci,ci<<=1,(ci&261888)===0&&(ci=256)),la=e}return la}function dm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vi(""+e)}function hm(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function h0(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var s=dm((n[ht]||null).action),o=a.submitter;o&&(t=(t=o[ht]||null)?dm(t.formAction):o.getAttribute("formAction"),t!==null&&(s=t,o=null));var h=new xi("action","action",null,a,n);e.push({event:h,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(la!==0){var x=o?hm(n,o):new FormData(n);Pr(l,{pending:!0,data:x,method:n.method,action:s},null,x)}}else typeof s=="function"&&(h.preventDefault(),x=o?hm(n,o):new FormData(n),Pr(l,{pending:!0,data:x,method:n.method,action:s},s,x))},currentTarget:n}]})}}for(var Uc=0;Uc<vr.length;Uc++){var wc=vr[Uc],m0=wc.toLowerCase(),y0=wc[0].toUpperCase()+wc.slice(1);kt(m0,"on"+y0)}kt(Zf,"onAnimationEnd"),kt(Kf,"onAnimationIteration"),kt(Vf,"onAnimationStart"),kt("dblclick","onDoubleClick"),kt("focusin","onFocus"),kt("focusout","onBlur"),kt(Mp,"onTransitionRun"),kt(_p,"onTransitionStart"),kt(Dp,"onTransitionCancel"),kt(Jf,"onTransitionEnd"),an("onMouseEnter",["mouseout","mouseover"]),an("onMouseLeave",["mouseout","mouseover"]),an("onPointerEnter",["pointerout","pointerover"]),an("onPointerLeave",["pointerout","pointerover"]),Na("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Na("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Na("onBeforeInput",["compositionend","keypress","textInput","paste"]),Na("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bu="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(" "),v0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bu));function mm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var o=a.length-1;0<=o;o--){var h=a[o],x=h.instance,z=h.currentTarget;if(h=h.listener,x!==s&&n.isPropagationStopped())break e;s=h,n.currentTarget=z;try{s(n)}catch(q){ji(q)}n.currentTarget=null,s=x}else for(o=0;o<a.length;o++){if(h=a[o],x=h.instance,z=h.currentTarget,h=h.listener,x!==s&&n.isPropagationStopped())break e;s=h,n.currentTarget=z;try{s(n)}catch(q){ji(q)}n.currentTarget=null,s=x}}}}function de(e,t){var l=t[ks];l===void 0&&(l=t[ks]=new Set);var a=e+"__bubble";l.has(a)||(ym(t,e,2,!1),l.add(a))}function Hc(e,t,l){var a=0;t&&(a|=4),ym(l,e,a,t)}var cs="_reactListening"+Math.random().toString(36).slice(2);function qc(e){if(!e[cs]){e[cs]=!0,rf.forEach(function(l){l!=="selectionchange"&&(v0.has(l)||Hc(l,!1,e),Hc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cs]||(t[cs]=!0,Hc("selectionchange",!1,t))}}function ym(e,t,l,a){switch(Zm(t)){case 2:var n=Z0;break;case 8:n=K0;break;default:n=Ic}l=n.bind(null,t,l,e),n=void 0,!ar||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Bc(e,t,l,a,n){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var o=a.tag;if(o===3||o===4){var h=a.stateNode.containerInfo;if(h===n)break;if(o===4)for(o=a.return;o!==null;){var x=o.tag;if((x===3||x===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;h!==null;){if(o=en(h),o===null)return;if(x=o.tag,x===5||x===6||x===26||x===27){a=s=o;continue e}h=h.parentNode}}a=a.return}xf(function(){var z=s,q=tr(l),Y=[];e:{var M=kf.get(e);if(M!==void 0){var D=xi,W=e;switch(e){case"keypress":if(gi(l)===0)break e;case"keydown":case"keyup":D=cp;break;case"focusin":W="focus",D=sr;break;case"focusout":W="blur",D=sr;break;case"beforeblur":case"afterblur":D=sr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=jf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=Wv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=dp;break;case Zf:case Kf:case Vf:D=ep;break;case Jf:D=mp;break;case"scroll":case"scrollend":D=Fv;break;case"wheel":D=vp;break;case"copy":case"cut":case"paste":D=lp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Tf;break;case"toggle":case"beforetoggle":D=gp}var le=(t&4)!==0,Ae=!le&&(e==="scroll"||e==="scrollend"),C=le?M!==null?M+"Capture":null:M;le=[];for(var j=z,A;j!==null;){var Q=j;if(A=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||A===null||C===null||(Q=iu(j,C),Q!=null&&le.push(Qu(j,Q,A))),Ae)break;j=j.return}0<le.length&&(M=new D(M,W,null,l,q),Y.push({event:M,listeners:le}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",M&&l!==er&&(W=l.relatedTarget||l.fromElement)&&(en(W)||W[Pa]))break e;if((D||M)&&(M=q.window===q?q:(M=q.ownerDocument)?M.defaultView||M.parentWindow:window,D?(W=l.relatedTarget||l.toElement,D=z,W=W?en(W):null,W!==null&&(Ae=m(W),le=W.tag,W!==Ae||le!==5&&le!==27&&le!==6)&&(W=null)):(D=null,W=z),D!==W)){if(le=jf,Q="onMouseLeave",C="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(le=Tf,Q="onPointerLeave",C="onPointerEnter",j="pointer"),Ae=D==null?M:uu(D),A=W==null?M:uu(W),M=new le(Q,j+"leave",D,l,q),M.target=Ae,M.relatedTarget=A,Q=null,en(q)===z&&(le=new le(C,j+"enter",W,l,q),le.target=A,le.relatedTarget=Ae,Q=le),Ae=Q,D&&W)t:{for(le=p0,C=D,j=W,A=0,Q=C;Q;Q=le(Q))A++;Q=0;for(var te=j;te;te=le(te))Q++;for(;0<A-Q;)C=le(C),A--;for(;0<Q-A;)j=le(j),Q--;for(;A--;){if(C===j||j!==null&&C===j.alternate){le=C;break t}C=le(C),j=le(j)}le=null}else le=null;D!==null&&vm(Y,M,D,le,!1),W!==null&&Ae!==null&&vm(Y,Ae,W,le,!0)}}e:{if(M=z?uu(z):window,D=M.nodeName&&M.nodeName.toLowerCase(),D==="select"||D==="input"&&M.type==="file")var ge=Df;else if(Mf(M))if(Uf)ge=Rp;else{ge=Cp;var P=Tp}else D=M.nodeName,!D||D.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?z&&Ps(z.elementType)&&(ge=Df):ge=Op;if(ge&&(ge=ge(e,z))){_f(Y,ge,l,q);break e}P&&P(e,M,z),e==="focusout"&&z&&M.type==="number"&&z.memoizedProps.value!=null&&Is(M,"number",M.value)}switch(P=z?uu(z):window,e){case"focusin":(Mf(P)||P.contentEditable==="true")&&(on=P,hr=z,mu=null);break;case"focusout":mu=hr=on=null;break;case"mousedown":mr=!0;break;case"contextmenu":case"mouseup":case"dragend":mr=!1,Gf(Y,l,q);break;case"selectionchange":if(zp)break;case"keydown":case"keyup":Gf(Y,l,q)}var re;if(cr)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 cn?Af(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(Cf&&l.locale!=="ko"&&(cn||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&cn&&(re=Sf()):(Ll=q,nr="value"in Ll?Ll.value:Ll.textContent,cn=!0)),P=os(z,ye),0<P.length&&(ye=new Nf(ye,e,null,l,q),Y.push({event:ye,listeners:P}),re?ye.data=re:(re=zf(l),re!==null&&(ye.data=re)))),(re=xp?Sp(e,l):Ep(e,l))&&(ye=os(z,"onBeforeInput"),0<ye.length&&(P=new Nf("onBeforeInput","beforeinput",null,l,q),Y.push({event:P,listeners:ye}),P.data=re)),h0(Y,e,z,l,q)}mm(Y,t)})}function Qu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function os(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=iu(e,l),n!=null&&a.unshift(Qu(e,n,s)),n=iu(e,t),n!=null&&a.push(Qu(e,n,s))),e.tag===3)return a;e=e.return}return[]}function p0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vm(e,t,l,a,n){for(var s=t._reactName,o=[];l!==null&&l!==a;){var h=l,x=h.alternate,z=h.stateNode;if(h=h.tag,x!==null&&x===a)break;h!==5&&h!==26&&h!==27||z===null||(x=z,n?(z=iu(l,s),z!=null&&o.unshift(Qu(l,z,x))):n||(z=iu(l,s),z!=null&&o.push(Qu(l,z,x)))),l=l.return}o.length!==0&&e.push({event:t,listeners:o})}var g0=/\r\n?/g,b0=/\u0000|\uFFFD/g;function pm(e){return(typeof e=="string"?e:""+e).replace(g0,`
|
|
49
|
-
`).replace(b0,"")}function gm(e,t){return t=pm(t),pm(e)===t}function Re(e,t,l,a,n,s){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||un(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&un(e,""+a);break;case"className":mi(e,"class",a);break;case"tabIndex":mi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":mi(e,l,a);break;case"style":gf(e,a,s);break;case"data":if(t!=="object"){mi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=vi(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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"&&(l==="formAction"?(t!=="input"&&Re(e,t,"name",n.name,n,null),Re(e,t,"formEncType",n.formEncType,n,null),Re(e,t,"formMethod",n.formMethod,n,null),Re(e,t,"formTarget",n.formTarget,n,null)):(Re(e,t,"encType",n.encType,n,null),Re(e,t,"method",n.method,n,null),Re(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=vi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=dl);break;case"onScroll":a!=null&&de("scroll",e);break;case"onScrollEnd":a!=null&&de("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=vi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":de("beforetoggle",e),de("toggle",e),hi(e,"popover",a);break;case"xlinkActuate":fl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":fl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":fl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":fl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":fl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":fl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":fl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":fl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":fl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":hi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Jv.get(l)||l,hi(e,l,a))}}function Qc(e,t,l,a,n,s){switch(l){case"style":gf(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"children":typeof a=="string"?un(e,a):(typeof a=="number"||typeof a=="bigint")&&un(e,""+a);break;case"onScroll":a!=null&&de("scroll",e);break;case"onScrollEnd":a!=null&&de("scrollend",e);break;case"onClick":a!=null&&(e.onclick=dl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!cf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),s=e[ht]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,n),typeof a=="function")){typeof s!="function"&&s!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):hi(e,l,a)}}}function nt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var a=!1,n=!1,s;for(s in l)if(l.hasOwnProperty(s)){var o=l[s];if(o!=null)switch(s){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,s,o,l,null)}}n&&Re(e,t,"srcSet",l.srcSet,l,null),a&&Re(e,t,"src",l.src,l,null);return;case"input":de("invalid",e);var h=s=o=n=null,x=null,z=null;for(a in l)if(l.hasOwnProperty(a)){var q=l[a];if(q!=null)switch(a){case"name":n=q;break;case"type":o=q;break;case"checked":x=q;break;case"defaultChecked":z=q;break;case"value":s=q;break;case"defaultValue":h=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(c(137,t));break;default:Re(e,t,a,q,l,null)}}mf(e,s,h,x,z,o,n,!1);return;case"select":de("invalid",e),a=o=s=null;for(n in l)if(l.hasOwnProperty(n)&&(h=l[n],h!=null))switch(n){case"value":s=h;break;case"defaultValue":o=h;break;case"multiple":a=h;default:Re(e,t,n,h,l,null)}t=s,l=o,e.multiple=!!a,t!=null?nn(e,!!a,t,!1):l!=null&&nn(e,!!a,l,!0);return;case"textarea":de("invalid",e),s=n=a=null;for(o in l)if(l.hasOwnProperty(o)&&(h=l[o],h!=null))switch(o){case"value":a=h;break;case"defaultValue":n=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:Re(e,t,o,h,l,null)}vf(e,a,n,s);return;case"option":for(x in l)if(l.hasOwnProperty(x)&&(a=l[x],a!=null))switch(x){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Re(e,t,x,a,l,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(a=0;a<Bu.length;a++)de(Bu[a],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("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 l)if(l.hasOwnProperty(z)&&(a=l[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,z,a,l,null)}return;default:if(Ps(t)){for(q in l)l.hasOwnProperty(q)&&(a=l[q],a!==void 0&&Qc(e,t,q,a,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!=null&&Re(e,t,h,a,l,null))}function x0(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,s=null,o=null,h=null,x=null,z=null,q=null;for(D in l){var Y=l[D];if(l.hasOwnProperty(D)&&Y!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":x=Y;default:a.hasOwnProperty(D)||Re(e,t,D,null,a,Y)}}for(var M in a){var D=a[M];if(Y=l[M],a.hasOwnProperty(M)&&(D!=null||Y!=null))switch(M){case"type":s=D;break;case"name":n=D;break;case"checked":z=D;break;case"defaultChecked":q=D;break;case"value":o=D;break;case"defaultValue":h=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(c(137,t));break;default:D!==Y&&Re(e,t,M,D,a,Y)}}Ws(e,o,h,x,z,q,s,n);return;case"select":D=o=h=M=null;for(s in l)if(x=l[s],l.hasOwnProperty(s)&&x!=null)switch(s){case"value":break;case"multiple":D=x;default:a.hasOwnProperty(s)||Re(e,t,s,null,a,x)}for(n in a)if(s=a[n],x=l[n],a.hasOwnProperty(n)&&(s!=null||x!=null))switch(n){case"value":M=s;break;case"defaultValue":h=s;break;case"multiple":o=s;default:s!==x&&Re(e,t,n,s,a,x)}t=h,l=o,a=D,M!=null?nn(e,!!l,M,!1):!!a!=!!l&&(t!=null?nn(e,!!l,t,!0):nn(e,!!l,l?[]:"",!1));return;case"textarea":D=M=null;for(h in l)if(n=l[h],l.hasOwnProperty(h)&&n!=null&&!a.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Re(e,t,h,null,a,n)}for(o in a)if(n=a[o],s=l[o],a.hasOwnProperty(o)&&(n!=null||s!=null))switch(o){case"value":M=n;break;case"defaultValue":D=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(c(91));break;default:n!==s&&Re(e,t,o,n,a,s)}yf(e,M,D);return;case"option":for(var W in l)if(M=l[W],l.hasOwnProperty(W)&&M!=null&&!a.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Re(e,t,W,null,a,M)}for(x in a)if(M=a[x],D=l[x],a.hasOwnProperty(x)&&M!==D&&(M!=null||D!=null))switch(x){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:Re(e,t,x,M,a,D)}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 le in l)M=l[le],l.hasOwnProperty(le)&&M!=null&&!a.hasOwnProperty(le)&&Re(e,t,le,null,a,M);for(z in a)if(M=a[z],D=l[z],a.hasOwnProperty(z)&&M!==D&&(M!=null||D!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(c(137,t));break;default:Re(e,t,z,M,a,D)}return;default:if(Ps(t)){for(var Ae in l)M=l[Ae],l.hasOwnProperty(Ae)&&M!==void 0&&!a.hasOwnProperty(Ae)&&Qc(e,t,Ae,void 0,a,M);for(q in a)M=a[q],D=l[q],!a.hasOwnProperty(q)||M===D||M===void 0&&D===void 0||Qc(e,t,q,M,a,D);return}}for(var C in l)M=l[C],l.hasOwnProperty(C)&&M!=null&&!a.hasOwnProperty(C)&&Re(e,t,C,null,a,M);for(Y in a)M=a[Y],D=l[Y],!a.hasOwnProperty(Y)||M===D||M==null&&D==null||Re(e,t,Y,M,a,D)}function bm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function S0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],s=n.transferSize,o=n.initiatorType,h=n.duration;if(s&&h&&bm(o)){for(o=0,h=n.responseEnd,a+=1;a<l.length;a++){var x=l[a],z=x.startTime;if(z>h)break;var q=x.transferSize,Y=x.initiatorType;q&&bm(Y)&&(x=x.responseEnd,o+=q*(x<h?1:(h-z)/(x-z)))}if(--a,t+=8*(s+o)/(n.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 Lc=null,Yc=null;function fs(e){return e.nodeType===9?e:e.ownerDocument}function xm(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 Sm(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 Gc(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 Xc=null;function E0(){var e=window.event;return e&&e.type==="popstate"?e===Xc?!1:(Xc=e,!0):(Xc=null,!1)}var Em=typeof setTimeout=="function"?setTimeout:void 0,j0=typeof clearTimeout=="function"?clearTimeout:void 0,jm=typeof Promise=="function"?Promise:void 0,N0=typeof queueMicrotask=="function"?queueMicrotask:typeof jm<"u"?function(e){return jm.resolve(null).then(e).catch(T0)}:Em;function T0(e){setTimeout(function(){throw e})}function aa(e){return e==="head"}function Nm(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),qn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Lu(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Lu(l);for(var s=l.firstChild;s;){var o=s.nextSibling,h=s.nodeName;s[nu]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=o}}else l==="body"&&Lu(e.ownerDocument.body);l=n}while(l);qn(t)}function Tm(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Zc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Zc(l),Fs(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function C0(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[nu])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!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function O0(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Xt(e.nextSibling),e===null))return null;return e}function Cm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xt(e.nextSibling),e===null))return null;return e}function Kc(e){return e.data==="$?"||e.data==="$~"}function Vc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function R0(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Xt(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 Jc=null;function Om(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Xt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Rm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Am(e,t,l){switch(t=fs(l),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 Lu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Fs(e)}var Zt=new Map,zm=new Set;function ds(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Rl=V.d;V.d={f:A0,r:z0,D:M0,C:_0,L:D0,m:U0,X:H0,S:w0,M:q0};function A0(){var e=Rl.f(),t=as();return e||t}function z0(e){var t=tn(e);t!==null&&t.tag===5&&t.type==="form"?Jd(t):Rl.r(e)}var Un=typeof document>"u"?null:document;function Mm(e,t,l){var a=Un;if(a&&typeof t=="string"&&t){var n=Ht(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),zm.has(n)||(zm.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),nt(t,"link",e),We(t),a.head.appendChild(t)))}}function M0(e){Rl.D(e),Mm("dns-prefetch",e,null)}function _0(e,t){Rl.C(e,t),Mm("preconnect",e,t)}function D0(e,t,l){Rl.L(e,t,l);var a=Un;if(a&&e&&t){var n='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Ht(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Ht(l.imageSizes)+'"]')):n+='[href="'+Ht(e)+'"]';var s=n;switch(t){case"style":s=wn(e);break;case"script":s=Hn(e)}Zt.has(s)||(e=p({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Zt.set(s,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Yu(s))||t==="script"&&a.querySelector(Gu(s))||(t=a.createElement("link"),nt(t,"link",e),We(t),a.head.appendChild(t)))}}function U0(e,t){Rl.m(e,t);var l=Un;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Ht(a)+'"][href="'+Ht(e)+'"]',s=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Hn(e)}if(!Zt.has(s)&&(e=p({rel:"modulepreload",href:e},t),Zt.set(s,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Gu(s)))return}a=l.createElement("link"),nt(a,"link",e),We(a),l.head.appendChild(a)}}}function w0(e,t,l){Rl.S(e,t,l);var a=Un;if(a&&e){var n=ln(a).hoistableStyles,s=wn(e);t=t||"default";var o=n.get(s);if(!o){var h={loading:0,preload:null};if(o=a.querySelector(Yu(s)))h.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Zt.get(s))&&kc(e,l);var x=o=a.createElement("link");We(x),nt(x,"link",e),x._p=new Promise(function(z,q){x.onload=z,x.onerror=q}),x.addEventListener("load",function(){h.loading|=1}),x.addEventListener("error",function(){h.loading|=2}),h.loading|=4,hs(o,t,a)}o={type:"stylesheet",instance:o,count:1,state:h},n.set(s,o)}}}function H0(e,t){Rl.X(e,t);var l=Un;if(l&&e){var a=ln(l).hoistableScripts,n=Hn(e),s=a.get(n);s||(s=l.querySelector(Gu(n)),s||(e=p({src:e,async:!0},t),(t=Zt.get(n))&&Fc(e,t),s=l.createElement("script"),We(s),nt(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function q0(e,t){Rl.M(e,t);var l=Un;if(l&&e){var a=ln(l).hoistableScripts,n=Hn(e),s=a.get(n);s||(s=l.querySelector(Gu(n)),s||(e=p({src:e,async:!0,type:"module"},t),(t=Zt.get(n))&&Fc(e,t),s=l.createElement("script"),We(s),nt(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function _m(e,t,l,a){var n=(n=oe.current)?ds(n):null;if(!n)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=ln(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var s=ln(n).hoistableStyles,o=s.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,o),(s=n.querySelector(Yu(e)))&&!s._p&&(o.instance=s,o.state.loading=5),Zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Zt.set(e,l),s||B0(n,e,l,o.state))),t&&a===null)throw Error(c(528,""));return o}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Hn(l),l=ln(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function wn(e){return'href="'+Ht(e)+'"'}function Yu(e){return'link[rel="stylesheet"]['+e+"]"}function Dm(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function B0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),nt(t,"link",l),We(t),e.head.appendChild(t))}function Hn(e){return'[src="'+Ht(e)+'"]'}function Gu(e){return"script[async]"+e}function Um(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ht(l.href)+'"]');if(a)return t.instance=a,We(a),a;var n=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),We(a),nt(a,"style",n),hs(a,l.precedence,e),t.instance=a;case"stylesheet":n=wn(l.href);var s=e.querySelector(Yu(n));if(s)return t.state.loading|=4,t.instance=s,We(s),s;a=Dm(l),(n=Zt.get(n))&&kc(a,n),s=(e.ownerDocument||e).createElement("link"),We(s);var o=s;return o._p=new Promise(function(h,x){o.onload=h,o.onerror=x}),nt(s,"link",a),t.state.loading|=4,hs(s,l.precedence,e),t.instance=s;case"script":return s=Hn(l.src),(n=e.querySelector(Gu(s)))?(t.instance=n,We(n),n):(a=l,(n=Zt.get(s))&&(a=p({},l),Fc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),We(n),nt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,hs(a,l.precedence,e));return t.instance}function hs(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,s=n,o=0;o<a.length;o++){var h=a[o];if(h.dataset.precedence===t)s=h;else if(s!==n)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ms=null;function wm(e,t,l){if(ms===null){var a=new Map,n=ms=new Map;n.set(l,a)}else n=ms,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var s=l[n];if(!(s[nu]||s[et]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var o=s.getAttribute(t)||"";o=e+o;var h=a.get(o);h?h.push(s):a.set(o,[s])}}return a}function Hm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Q0(e,t,l){if(l===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 qm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function L0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=wn(a.href),s=t.querySelector(Yu(n));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ys.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=s,We(s);return}s=t.ownerDocument||t,a=Dm(a),(n=Zt.get(n))&&kc(a,n),s=s.createElement("link"),We(s);var o=s;o._p=new Promise(function(h,x){o.onload=h,o.onerror=x}),nt(s,"link",a),l.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ys.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var $c=0;function Y0(e,t){return e.stylesheets&&e.count===0&&ps(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ps(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&$c===0&&($c=62500*S0());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ps(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>$c?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ys(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ps(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vs=null;function ps(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vs=new Map,t.forEach(G0,e),vs=null,ys.call(e))}function G0(e,t){if(!(t.state.loading&4)){var l=vs.get(e);if(l)var a=l.get(null);else{l=new Map,vs.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var o=n[s];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),a=o)}a&&l.set(null,a)}n=t.instance,o=n.getAttribute("data-precedence"),s=l.get(o)||a,s===a&&l.set(null,n),l.set(o,n),this.count++,a=ys.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),s?s.parentNode.insertBefore(n,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Xu={$$typeof:w,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function X0(e,t,l,a,n,s,o,h,x){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=Ks(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ks(0),this.hiddenUpdates=Ks(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Bm(e,t,l,a,n,s,o,h,x,z,q,Y){return e=new X0(e,t,l,o,x,z,q,Y,h),t=1,s===!0&&(t|=24),s=Rt(3,null,null,t),e.current=s,s.stateNode=e,t=Ar(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:t},Dr(s),e}function Qm(e){return e?(e=hn,e):hn}function Lm(e,t,l,a,n,s){n=Qm(n),a.context===null?a.context=n:a.pendingContext=n,a=Vl(t),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=Jl(e,a,t),l!==null&&(bt(l,e,t),Su(l,e,t))}function Ym(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Wc(e,t){Ym(e,t),(e=e.alternate)&&Ym(e,t)}function Gm(e){if(e.tag===13||e.tag===31){var t=Ra(e,67108864);t!==null&&bt(t,e,67108864),Wc(e,67108864)}}function Xm(e){if(e.tag===13||e.tag===31){var t=Dt();t=Vs(t);var l=Ra(e,t);l!==null&&bt(l,e,t),Wc(e,t)}}var gs=!0;function Z0(e,t,l,a){var n=B.T;B.T=null;var s=V.p;try{V.p=2,Ic(e,t,l,a)}finally{V.p=s,B.T=n}}function K0(e,t,l,a){var n=B.T;B.T=null;var s=V.p;try{V.p=8,Ic(e,t,l,a)}finally{V.p=s,B.T=n}}function Ic(e,t,l,a){if(gs){var n=Pc(a);if(n===null)Bc(e,t,a,bs,l),Km(e,a);else if(J0(n,e,t,l,a))a.stopPropagation();else if(Km(e,a),t&4&&-1<V0.indexOf(e)){for(;n!==null;){var s=tn(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=ja(s.pendingLanes);if(o!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var x=1<<31-Ct(o);h.entanglements[1]|=x,o&=~x}ul(s),(xe&6)===0&&(ts=Nt()+500,qu(0))}}break;case 31:case 13:h=Ra(s,2),h!==null&&bt(h,s,2),as(),Wc(s,2)}if(s=Pc(a),s===null&&Bc(e,t,a,bs,l),s===n)break;n=s}n!==null&&a.stopPropagation()}else Bc(e,t,a,null,l)}}function Pc(e){return e=tr(e),eo(e)}var bs=null;function eo(e){if(bs=null,e=en(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=b(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return bs=e,null}function Zm(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 Wo:return 2;case Io:return 8;case ri:case _v:return 32;case Po:return 268435456;default:return 32}default:return 32}}var to=!1,na=null,ua=null,ia=null,Zu=new Map,Ku=new Map,sa=[],V0="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 Km(e,t){switch(e){case"focusin":case"focusout":na=null;break;case"dragenter":case"dragleave":ua=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":Zu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ku.delete(t.pointerId)}}function Vu(e,t,l,a,n,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[n]},t!==null&&(t=tn(t),t!==null&&Gm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function J0(e,t,l,a,n){switch(t){case"focusin":return na=Vu(na,e,t,l,a,n),!0;case"dragenter":return ua=Vu(ua,e,t,l,a,n),!0;case"mouseover":return ia=Vu(ia,e,t,l,a,n),!0;case"pointerover":var s=n.pointerId;return Zu.set(s,Vu(Zu.get(s)||null,e,t,l,a,n)),!0;case"gotpointercapture":return s=n.pointerId,Ku.set(s,Vu(Ku.get(s)||null,e,t,l,a,n)),!0}return!1}function Vm(e){var t=en(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,uf(e.priority,function(){Xm(l)});return}}else if(t===31){if(t=b(l),t!==null){e.blockedOn=t,uf(e.priority,function(){Xm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Pc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);er=a,l.target.dispatchEvent(a),er=null}else return t=tn(l),t!==null&&Gm(t),e.blockedOn=l,!1;t.shift()}return!0}function Jm(e,t,l){xs(e)&&l.delete(t)}function k0(){to=!1,na!==null&&xs(na)&&(na=null),ua!==null&&xs(ua)&&(ua=null),ia!==null&&xs(ia)&&(ia=null),Zu.forEach(Jm),Ku.forEach(Jm)}function Ss(e,t){e.blockedOn===t&&(e.blockedOn=null,to||(to=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,k0)))}var Es=null;function km(e){Es!==e&&(Es=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Es===e&&(Es=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(eo(a||l)===null)continue;break}var s=tn(l);s!==null&&(e.splice(t,3),t-=3,Pr(s,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function qn(e){function t(x){return Ss(x,e)}na!==null&&Ss(na,e),ua!==null&&Ss(ua,e),ia!==null&&Ss(ia,e),Zu.forEach(t),Ku.forEach(t);for(var l=0;l<sa.length;l++){var a=sa[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<sa.length&&(l=sa[0],l.blockedOn===null);)Vm(l),l.blockedOn===null&&sa.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],s=l[a+1],o=n[ht]||null;if(typeof s=="function")o||km(l);else if(o){var h=null;if(s&&s.hasAttribute("formAction")){if(n=s,o=s[ht]||null)h=o.formAction;else if(eo(n)!==null)continue}else h=o.action;typeof h=="function"?l[a+1]=h:(l.splice(a,3),a-=3),km(l)}}}function Fm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!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 a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function lo(e){this._internalRoot=e}js.prototype.render=lo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=Dt();Lm(l,a,e,t,null,null)},js.prototype.unmount=lo.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),as(),t[Pa]=null}};function js(e){this._internalRoot=e}js.prototype.unstable_scheduleHydration=function(e){if(e){var t=nf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<sa.length&&t!==0&&t<sa[l].priority;l++);sa.splice(l,0,e),l===0&&Vm(e)}};var $m=i.version;if($m!=="19.2.4")throw Error(c(527,$m,"19.2.4"));V.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=v(t),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var F0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ns=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ns.isDisabled&&Ns.supportsFiber)try{tu=Ns.inject(F0),Tt=Ns}catch{}}return Fu.createRoot=function(e,t){if(!d(e))throw Error(c(299));var l=!1,a="",n=ah,s=nh,o=uh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Bm(e,1,!1,null,null,l,a,null,n,s,o,Fm),e[Pa]=t.current,qc(e),new lo(t)},Fu.hydrateRoot=function(e,t,l){if(!d(e))throw Error(c(299));var a=!1,n="",s=ah,o=nh,h=uh,x=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(x=l.formState)),t=Bm(e,1,!0,t,l??null,a,n,x,s,o,h,Fm),t.context=Qm(null),l=t.current,a=Dt(),a=Vs(a),n=Vl(a),n.callback=null,Jl(l,n,a),l=a,t.current.lanes=l,au(t,l),ul(t),e[Pa]=t.current,qc(e),new js(t)},Fu.version="19.2.4",Fu}var sy;function sg(){if(sy)return io.exports;sy=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),io.exports=ig(),io.exports}var rg=sg(),$n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(u){return this.listeners.add(u),this.onSubscribe(),()=>{this.listeners.delete(u),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},cg={setTimeout:(u,i)=>setTimeout(u,i),clearTimeout:u=>clearTimeout(u),setInterval:(u,i)=>setInterval(u,i),clearInterval:u=>clearInterval(u)},oa,Uo,Cy,og=(Cy=class{constructor(){ee(this,oa,cg);ee(this,Uo,!1)}setTimeoutProvider(u){k(this,oa,u)}setTimeout(u,i){return S(this,oa).setTimeout(u,i)}clearTimeout(u){S(this,oa).clearTimeout(u)}setInterval(u,i){return S(this,oa).setInterval(u,i)}clearInterval(u){S(this,oa).clearInterval(u)}},oa=new WeakMap,Uo=new WeakMap,Cy),Ya=new og;function fg(u){setTimeout(u,0)}var Wa=typeof window>"u"||"Deno"in globalThis;function ft(){}function dg(u,i){return typeof u=="function"?u(i):u}function mo(u){return typeof u=="number"&&u>=0&&u!==1/0}function qy(u,i){return Math.max(u+(i||0)-Date.now(),0)}function xa(u,i){return typeof u=="function"?u(i):u}function Vt(u,i){return typeof u=="function"?u(i):u}function ry(u,i){const{type:r="all",exact:c,fetchStatus:d,predicate:m,queryKey:y,stale:b}=u;if(y){if(c){if(i.queryHash!==Ho(y,i.options))return!1}else if(!Iu(i.queryKey,y))return!1}if(r!=="all"){const g=i.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof b=="boolean"&&i.isStale()!==b||d&&d!==i.state.fetchStatus||m&&!m(i))}function cy(u,i){const{exact:r,status:c,predicate:d,mutationKey:m}=u;if(m){if(!i.options.mutationKey)return!1;if(r){if(Ia(i.options.mutationKey)!==Ia(m))return!1}else if(!Iu(i.options.mutationKey,m))return!1}return!(c&&i.state.status!==c||d&&!d(i))}function Ho(u,i){return((i==null?void 0:i.queryKeyHashFn)||Ia)(u)}function Ia(u){return JSON.stringify(u,(i,r)=>yo(r)?Object.keys(r).sort().reduce((c,d)=>(c[d]=r[d],c),{}):r)}function Iu(u,i){return u===i?!0:typeof u!=typeof i?!1:u&&i&&typeof u=="object"&&typeof i=="object"?Object.keys(i).every(r=>Iu(u[r],i[r])):!1}var hg=Object.prototype.hasOwnProperty;function By(u,i,r=0){if(u===i)return u;if(r>500)return i;const c=oy(u)&&oy(i);if(!c&&!(yo(u)&&yo(i)))return i;const m=(c?u:Object.keys(u)).length,y=c?i:Object.keys(i),b=y.length,g=c?new Array(b):{};let v=0;for(let T=0;T<b;T++){const p=c?T:y[T],_=u[p],H=i[p];if(_===H){g[p]=_,(c?T<m:hg.call(u,p))&&v++;continue}if(_===null||H===null||typeof _!="object"||typeof H!="object"){g[p]=H;continue}const Z=By(_,H,r+1);g[p]=Z,Z===_&&v++}return m===b&&v===m?u:g}function Ds(u,i){if(!i||Object.keys(u).length!==Object.keys(i).length)return!1;for(const r in u)if(u[r]!==i[r])return!1;return!0}function oy(u){return Array.isArray(u)&&u.length===Object.keys(u).length}function yo(u){if(!fy(u))return!1;const i=u.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!fy(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(u)!==Object.prototype)}function fy(u){return Object.prototype.toString.call(u)==="[object Object]"}function mg(u){return new Promise(i=>{Ya.setTimeout(i,u)})}function vo(u,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(u,i):r.structuralSharing!==!1?By(u,i):i}function yg(u,i,r=0){const c=[...u,i];return r&&c.length>r?c.slice(1):c}function vg(u,i,r=0){const c=[i,...u];return r&&c.length>r?c.slice(0,-1):c}var qo=Symbol();function Qy(u,i){return!u.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!u.queryFn||u.queryFn===qo?()=>Promise.reject(new Error(`Missing queryFn: '${u.queryHash}'`)):u.queryFn}function Bo(u,i){return typeof u=="function"?u(...i):!!u}function pg(u,i,r){let c=!1,d;return Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(d??(d=i()),c||(c=!0,d.aborted?r():d.addEventListener("abort",r,{once:!0})),d)}),u}var Ga,fa,Bn,Oy,gg=(Oy=class extends $n{constructor(){super();ee(this,Ga);ee(this,fa);ee(this,Bn);k(this,Bn,i=>{if(!Wa&&window.addEventListener){const r=()=>i();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){S(this,fa)||this.setEventListener(S(this,Bn))}onUnsubscribe(){var i;this.hasListeners()||((i=S(this,fa))==null||i.call(this),k(this,fa,void 0))}setEventListener(i){var r;k(this,Bn,i),(r=S(this,fa))==null||r.call(this),k(this,fa,i(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(i){S(this,Ga)!==i&&(k(this,Ga,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(r=>{r(i)})}isFocused(){var i;return typeof S(this,Ga)=="boolean"?S(this,Ga):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Ga=new WeakMap,fa=new WeakMap,Bn=new WeakMap,Oy),Qo=new gg;function po(){let u,i;const r=new Promise((d,m)=>{u=d,i=m});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}),u(d)},r.reject=d=>{c({status:"rejected",reason:d}),i(d)},r}var bg=fg;function xg(){let u=[],i=0,r=b=>{b()},c=b=>{b()},d=bg;const m=b=>{i?u.push(b):d(()=>{r(b)})},y=()=>{const b=u;u=[],b.length&&d(()=>{c(()=>{b.forEach(g=>{r(g)})})})};return{batch:b=>{let g;i++;try{g=b()}finally{i--,i||y()}return g},batchCalls:b=>(...g)=>{m(()=>{b(...g)})},schedule:m,setNotifyFunction:b=>{r=b},setBatchNotifyFunction:b=>{c=b},setScheduler:b=>{d=b}}}var $e=xg(),Qn,da,Ln,Ry,Sg=(Ry=class extends $n{constructor(){super();ee(this,Qn,!0);ee(this,da);ee(this,Ln);k(this,Ln,i=>{if(!Wa&&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(){S(this,da)||this.setEventListener(S(this,Ln))}onUnsubscribe(){var i;this.hasListeners()||((i=S(this,da))==null||i.call(this),k(this,da,void 0))}setEventListener(i){var r;k(this,Ln,i),(r=S(this,da))==null||r.call(this),k(this,da,i(this.setOnline.bind(this)))}setOnline(i){S(this,Qn)!==i&&(k(this,Qn,i),this.listeners.forEach(c=>{c(i)}))}isOnline(){return S(this,Qn)}},Qn=new WeakMap,da=new WeakMap,Ln=new WeakMap,Ry),Us=new Sg;function Eg(u){return Math.min(1e3*2**u,3e4)}function Ly(u){return(u??"online")==="online"?Us.isOnline():!0}var go=class extends Error{constructor(u){super("CancelledError"),this.revert=u==null?void 0:u.revert,this.silent=u==null?void 0:u.silent}};function Yy(u){let i=!1,r=0,c;const d=po(),m=()=>d.status!=="pending",y=O=>{var L;if(!m()){const U=new go(O);_(U),(L=u.onCancel)==null||L.call(u,U)}},b=()=>{i=!0},g=()=>{i=!1},v=()=>Qo.isFocused()&&(u.networkMode==="always"||Us.isOnline())&&u.canRun(),T=()=>Ly(u.networkMode)&&u.canRun(),p=O=>{m()||(c==null||c(),d.resolve(O))},_=O=>{m()||(c==null||c(),d.reject(O))},H=()=>new Promise(O=>{var L;c=U=>{(m()||v())&&O(U)},(L=u.onPause)==null||L.call(u)}).then(()=>{var O;c=void 0,m()||(O=u.onContinue)==null||O.call(u)}),Z=()=>{if(m())return;let O;const L=r===0?u.initialPromise:void 0;try{O=L??u.fn()}catch(U){O=Promise.reject(U)}Promise.resolve(O).then(p).catch(U=>{var K;if(m())return;const R=u.retry??(Wa?0:3),w=u.retryDelay??Eg,G=typeof w=="function"?w(r,U):w,$=R===!0||typeof R=="number"&&r<R||typeof R=="function"&&R(r,U);if(i||!$){_(U);return}r++,(K=u.onFail)==null||K.call(u,r,U),mg(G).then(()=>v()?void 0:H()).then(()=>{i?_(U):Z()})})};return{promise:d,status:()=>d.status,cancel:y,continue:()=>(c==null||c(),d),cancelRetry:b,continueRetry:g,canStart:T,start:()=>(T()?Z():H().then(Z),d)}}var Xa,Ay,Gy=(Ay=class{constructor(){ee(this,Xa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mo(this.gcTime)&&k(this,Xa,Ya.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(u){this.gcTime=Math.max(this.gcTime||0,u??(Wa?1/0:300*1e3))}clearGcTimeout(){S(this,Xa)&&(Ya.clearTimeout(S(this,Xa)),k(this,Xa,void 0))}},Xa=new WeakMap,Ay),Za,Yn,Kt,Ka,Pe,ei,Va,Wt,Al,zy,jg=(zy=class extends Gy{constructor(i){super();ee(this,Wt);ee(this,Za);ee(this,Yn);ee(this,Kt);ee(this,Ka);ee(this,Pe);ee(this,ei);ee(this,Va);k(this,Va,!1),k(this,ei,i.defaultOptions),this.setOptions(i.options),this.observers=[],k(this,Ka,i.client),k(this,Kt,S(this,Ka).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,k(this,Za,hy(this.options)),this.state=i.state??S(this,Za),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=S(this,Pe))==null?void 0:i.promise}setOptions(i){if(this.options={...S(this,ei),...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=hy(this.options);r.data!==void 0&&(this.setState(dy(r.data,r.dataUpdatedAt)),k(this,Za,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Kt).remove(this)}setData(i,r){const c=vo(this.state.data,i,this.options);return ce(this,Wt,Al).call(this,{data:c,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),c}setState(i,r){ce(this,Wt,Al).call(this,{type:"setState",state:i,setStateOptions:r})}cancel(i){var c,d;const r=(c=S(this,Pe))==null?void 0:c.promise;return(d=S(this,Pe))==null||d.cancel(i),r?r.then(ft).catch(ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,Za))}isActive(){return this.observers.some(i=>Vt(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qo||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>xa(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:!qy(this.state.dataUpdatedAt,i)}onFocus(){var r;const i=this.observers.find(c=>c.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(r=S(this,Pe))==null||r.continue()}onOnline(){var r;const i=this.observers.find(c=>c.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(r=S(this,Pe))==null||r.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),S(this,Kt).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(r=>r!==i),this.observers.length||(S(this,Pe)&&(S(this,Va)?S(this,Pe).cancel({revert:!0}):S(this,Pe).cancelRetry()),this.scheduleGc()),S(this,Kt).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,Wt,Al).call(this,{type:"invalidate"})}async fetch(i,r){var g,v,T,p,_,H,Z,O,L,U,R,w;if(this.state.fetchStatus!=="idle"&&((g=S(this,Pe))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(S(this,Pe))return S(this,Pe).continueRetry(),S(this,Pe).promise}if(i&&this.setOptions(i),!this.options.queryFn){const G=this.observers.find($=>$.options.queryFn);G&&this.setOptions(G.options)}const c=new AbortController,d=G=>{Object.defineProperty(G,"signal",{enumerable:!0,get:()=>(k(this,Va,!0),c.signal)})},m=()=>{const G=Qy(this.options,r),K=(()=>{const F={client:S(this,Ka),queryKey:this.queryKey,meta:this.meta};return d(F),F})();return k(this,Va,!1),this.options.persister?this.options.persister(G,K,this):G(K)},b=(()=>{const G={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:S(this,Ka),state:this.state,fetchFn:m};return d(G),G})();(v=this.options.behavior)==null||v.onFetch(b,this),k(this,Yn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((T=b.fetchOptions)==null?void 0:T.meta))&&ce(this,Wt,Al).call(this,{type:"fetch",meta:(p=b.fetchOptions)==null?void 0:p.meta}),k(this,Pe,Yy({initialPromise:r==null?void 0:r.initialPromise,fn:b.fetchFn,onCancel:G=>{G instanceof go&&G.revert&&this.setState({...S(this,Yn),fetchStatus:"idle"}),c.abort()},onFail:(G,$)=>{ce(this,Wt,Al).call(this,{type:"failed",failureCount:G,error:$})},onPause:()=>{ce(this,Wt,Al).call(this,{type:"pause"})},onContinue:()=>{ce(this,Wt,Al).call(this,{type:"continue"})},retry:b.options.retry,retryDelay:b.options.retryDelay,networkMode:b.options.networkMode,canRun:()=>!0}));try{const G=await S(this,Pe).start();if(G===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(G),(H=(_=S(this,Kt).config).onSuccess)==null||H.call(_,G,this),(O=(Z=S(this,Kt).config).onSettled)==null||O.call(Z,G,this.state.error,this),G}catch(G){if(G instanceof go){if(G.silent)return S(this,Pe).promise;if(G.revert){if(this.state.data===void 0)throw G;return this.state.data}}throw ce(this,Wt,Al).call(this,{type:"error",error:G}),(U=(L=S(this,Kt).config).onError)==null||U.call(L,G,this),(w=(R=S(this,Kt).config).onSettled)==null||w.call(R,this.state.data,G,this),G}finally{this.scheduleGc()}}},Za=new WeakMap,Yn=new WeakMap,Kt=new WeakMap,Ka=new WeakMap,Pe=new WeakMap,ei=new WeakMap,Va=new WeakMap,Wt=new WeakSet,Al=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,...Xy(c.data,this.options),fetchMeta:i.meta??null};case"success":const d={...c,...dy(i.data,i.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return k(this,Yn,i.manual?d:void 0),d;case"error":const m=i.error;return{...c,error:m,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...i.state}}};this.state=r(this.state),$e.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),S(this,Kt).notify({query:this,type:"updated",action:i})})},zy);function Xy(u,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ly(i.networkMode)?"fetching":"paused",...u===void 0&&{error:null,status:"pending"}}}function dy(u,i){return{data:u,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function hy(u){const i=typeof u.initialData=="function"?u.initialData():u.initialData,r=i!==void 0,c=r?typeof u.initialDataUpdatedAt=="function"?u.initialDataUpdatedAt():u.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 xt,pe,ti,ot,Ja,Gn,zl,ha,li,Xn,Zn,ka,Fa,ma,Kn,Ee,Wu,bo,xo,So,Eo,jo,No,To,Zy,My,Ng=(My=class extends $n{constructor(i,r){super();ee(this,Ee);ee(this,xt);ee(this,pe);ee(this,ti);ee(this,ot);ee(this,Ja);ee(this,Gn);ee(this,zl);ee(this,ha);ee(this,li);ee(this,Xn);ee(this,Zn);ee(this,ka);ee(this,Fa);ee(this,ma);ee(this,Kn,new Set);this.options=r,k(this,xt,i),k(this,ha,null),k(this,zl,po()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,pe).addObserver(this),my(S(this,pe),this.options)?ce(this,Ee,Wu).call(this):this.updateResult(),ce(this,Ee,Eo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Co(S(this,pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Co(S(this,pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,Ee,jo).call(this),ce(this,Ee,No).call(this),S(this,pe).removeObserver(this)}setOptions(i){const r=this.options,c=S(this,pe);if(this.options=S(this,xt).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Vt(this.options.enabled,S(this,pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,Ee,To).call(this),S(this,pe).setOptions(this.options),r._defaulted&&!Ds(this.options,r)&&S(this,xt).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,pe),observer:this});const d=this.hasListeners();d&&yy(S(this,pe),c,this.options,r)&&ce(this,Ee,Wu).call(this),this.updateResult(),d&&(S(this,pe)!==c||Vt(this.options.enabled,S(this,pe))!==Vt(r.enabled,S(this,pe))||xa(this.options.staleTime,S(this,pe))!==xa(r.staleTime,S(this,pe)))&&ce(this,Ee,bo).call(this);const m=ce(this,Ee,xo).call(this);d&&(S(this,pe)!==c||Vt(this.options.enabled,S(this,pe))!==Vt(r.enabled,S(this,pe))||m!==S(this,ma))&&ce(this,Ee,So).call(this,m)}getOptimisticResult(i){const r=S(this,xt).getQueryCache().build(S(this,xt),i),c=this.createResult(r,i);return Cg(this,c)&&(k(this,ot,c),k(this,Gn,this.options),k(this,Ja,S(this,pe).state)),c}getCurrentResult(){return S(this,ot)}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&&S(this,zl).status==="pending"&&S(this,zl).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,d))})}trackProp(i){S(this,Kn).add(i)}getCurrentQuery(){return S(this,pe)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const r=S(this,xt).defaultQueryOptions(i),c=S(this,xt).getQueryCache().build(S(this,xt),r);return c.fetch().then(()=>this.createResult(c,r))}fetch(i){return ce(this,Ee,Wu).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,ot)))}createResult(i,r){var he;const c=S(this,pe),d=this.options,m=S(this,ot),y=S(this,Ja),b=S(this,Gn),v=i!==c?i.state:S(this,ti),{state:T}=i;let p={...T},_=!1,H;if(r._optimisticResults){const Te=this.hasListeners(),Je=!Te&&my(i,r),ke=Te&&yy(i,c,r,d);(Je||ke)&&(p={...p,...Xy(T.data,i.options)}),r._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:Z,errorUpdatedAt:O,status:L}=p;H=p.data;let U=!1;if(r.placeholderData!==void 0&&H===void 0&&L==="pending"){let Te;m!=null&&m.isPlaceholderData&&r.placeholderData===(b==null?void 0:b.placeholderData)?(Te=m.data,U=!0):Te=typeof r.placeholderData=="function"?r.placeholderData((he=S(this,Zn))==null?void 0:he.state.data,S(this,Zn)):r.placeholderData,Te!==void 0&&(L="success",H=vo(m==null?void 0:m.data,Te,r),_=!0)}if(r.select&&H!==void 0&&!U)if(m&&H===(y==null?void 0:y.data)&&r.select===S(this,li))H=S(this,Xn);else try{k(this,li,r.select),H=r.select(H),H=vo(m==null?void 0:m.data,H,r),k(this,Xn,H),k(this,ha,null)}catch(Te){k(this,ha,Te)}S(this,ha)&&(Z=S(this,ha),H=S(this,Xn),O=Date.now(),L="error");const R=p.fetchStatus==="fetching",w=L==="pending",G=L==="error",$=w&&R,K=H!==void 0,ae={status:L,fetchStatus:p.fetchStatus,isPending:w,isSuccess:L==="success",isError:G,isInitialLoading:$,isLoading:$,data:H,dataUpdatedAt:p.dataUpdatedAt,error:Z,errorUpdatedAt:O,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>v.dataUpdateCount||p.errorUpdateCount>v.errorUpdateCount,isFetching:R,isRefetching:R&&!w,isLoadingError:G&&!K,isPaused:p.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:G&&K,isStale:Lo(i,r),refetch:this.refetch,promise:S(this,zl),isEnabled:Vt(r.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const Te=ae.data!==void 0,Je=ae.status==="error"&&!Te,ke=ut=>{Je?ut.reject(ae.error):Te&&ut.resolve(ae.data)},tl=()=>{const ut=k(this,zl,ae.promise=po());ke(ut)},dt=S(this,zl);switch(dt.status){case"pending":i.queryHash===c.queryHash&&ke(dt);break;case"fulfilled":(Je||ae.data!==dt.value)&&tl();break;case"rejected":(!Je||ae.error!==dt.reason)&&tl();break}}return ae}updateResult(){const i=S(this,ot),r=this.createResult(S(this,pe),this.options);if(k(this,Ja,S(this,pe).state),k(this,Gn,this.options),S(this,Ja).data!==void 0&&k(this,Zn,S(this,pe)),Ds(r,i))return;k(this,ot,r);const c=()=>{if(!i)return!0;const{notifyOnChangeProps:d}=this.options,m=typeof d=="function"?d():d;if(m==="all"||!m&&!S(this,Kn).size)return!0;const y=new Set(m??S(this,Kn));return this.options.throwOnError&&y.add("error"),Object.keys(S(this,ot)).some(b=>{const g=b;return S(this,ot)[g]!==i[g]&&y.has(g)})};ce(this,Ee,Zy).call(this,{listeners:c()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,Ee,Eo).call(this)}},xt=new WeakMap,pe=new WeakMap,ti=new WeakMap,ot=new WeakMap,Ja=new WeakMap,Gn=new WeakMap,zl=new WeakMap,ha=new WeakMap,li=new WeakMap,Xn=new WeakMap,Zn=new WeakMap,ka=new WeakMap,Fa=new WeakMap,ma=new WeakMap,Kn=new WeakMap,Ee=new WeakSet,Wu=function(i){ce(this,Ee,To).call(this);let r=S(this,pe).fetch(this.options,i);return i!=null&&i.throwOnError||(r=r.catch(ft)),r},bo=function(){ce(this,Ee,jo).call(this);const i=xa(this.options.staleTime,S(this,pe));if(Wa||S(this,ot).isStale||!mo(i))return;const c=qy(S(this,ot).dataUpdatedAt,i)+1;k(this,ka,Ya.setTimeout(()=>{S(this,ot).isStale||this.updateResult()},c))},xo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,pe)):this.options.refetchInterval)??!1},So=function(i){ce(this,Ee,No).call(this),k(this,ma,i),!(Wa||Vt(this.options.enabled,S(this,pe))===!1||!mo(S(this,ma))||S(this,ma)===0)&&k(this,Fa,Ya.setInterval(()=>{(this.options.refetchIntervalInBackground||Qo.isFocused())&&ce(this,Ee,Wu).call(this)},S(this,ma)))},Eo=function(){ce(this,Ee,bo).call(this),ce(this,Ee,So).call(this,ce(this,Ee,xo).call(this))},jo=function(){S(this,ka)&&(Ya.clearTimeout(S(this,ka)),k(this,ka,void 0))},No=function(){S(this,Fa)&&(Ya.clearInterval(S(this,Fa)),k(this,Fa,void 0))},To=function(){const i=S(this,xt).getQueryCache().build(S(this,xt),this.options);if(i===S(this,pe))return;const r=S(this,pe);k(this,pe,i),k(this,ti,i.state),this.hasListeners()&&(r==null||r.removeObserver(this),i.addObserver(this))},Zy=function(i){$e.batch(()=>{i.listeners&&this.listeners.forEach(r=>{r(S(this,ot))}),S(this,xt).getQueryCache().notify({query:S(this,pe),type:"observerResultsUpdated"})})},My);function Tg(u,i){return Vt(i.enabled,u)!==!1&&u.state.data===void 0&&!(u.state.status==="error"&&i.retryOnMount===!1)}function my(u,i){return Tg(u,i)||u.state.data!==void 0&&Co(u,i,i.refetchOnMount)}function Co(u,i,r){if(Vt(i.enabled,u)!==!1&&xa(i.staleTime,u)!=="static"){const c=typeof r=="function"?r(u):r;return c==="always"||c!==!1&&Lo(u,i)}return!1}function yy(u,i,r,c){return(u!==i||Vt(c.enabled,u)===!1)&&(!r.suspense||u.state.status!=="error")&&Lo(u,r)}function Lo(u,i){return Vt(i.enabled,u)!==!1&&u.isStaleByTime(xa(i.staleTime,u))}function Cg(u,i){return!Ds(u.getCurrentResult(),i)}function vy(u){return{onFetch:(i,r)=>{var T,p,_,H,Z;const c=i.options,d=(_=(p=(T=i.fetchOptions)==null?void 0:T.meta)==null?void 0:p.fetchMore)==null?void 0:_.direction,m=((H=i.state.data)==null?void 0:H.pages)||[],y=((Z=i.state.data)==null?void 0:Z.pageParams)||[];let b={pages:[],pageParams:[]},g=0;const v=async()=>{let O=!1;const L=w=>{pg(w,()=>i.signal,()=>O=!0)},U=Qy(i.options,i.fetchOptions),R=async(w,G,$)=>{if(O)return Promise.reject();if(G==null&&w.pages.length)return Promise.resolve(w);const F=(()=>{const Je={client:i.client,queryKey:i.queryKey,pageParam:G,direction:$?"backward":"forward",meta:i.options.meta};return L(Je),Je})(),ae=await U(F),{maxPages:he}=i.options,Te=$?vg:yg;return{pages:Te(w.pages,ae,he),pageParams:Te(w.pageParams,G,he)}};if(d&&m.length){const w=d==="backward",G=w?Og:py,$={pages:m,pageParams:y},K=G(c,$);b=await R($,K,w)}else{const w=u??m.length;do{const G=g===0?y[0]??c.initialPageParam:py(c,b);if(g>0&&G==null)break;b=await R(b,G),g++}while(g<w)}return b};i.options.persister?i.fetchFn=()=>{var O,L;return(L=(O=i.options).persister)==null?void 0:L.call(O,v,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r)}:i.fetchFn=v}}}function py(u,{pages:i,pageParams:r}){const c=i.length-1;return i.length>0?u.getNextPageParam(i[c],i,r[c],r):void 0}function Og(u,{pages:i,pageParams:r}){var c;return i.length>0?(c=u.getPreviousPageParam)==null?void 0:c.call(u,i[0],i,r[0],r):void 0}var ai,sl,st,$a,rl,ca,_y,Rg=(_y=class extends Gy{constructor(i){super();ee(this,rl);ee(this,ai);ee(this,sl);ee(this,st);ee(this,$a);k(this,ai,i.client),this.mutationId=i.mutationId,k(this,st,i.mutationCache),k(this,sl,[]),this.state=i.state||Ky(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){S(this,sl).includes(i)||(S(this,sl).push(i),this.clearGcTimeout(),S(this,st).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){k(this,sl,S(this,sl).filter(r=>r!==i)),this.scheduleGc(),S(this,st).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){S(this,sl).length||(this.state.status==="pending"?this.scheduleGc():S(this,st).remove(this))}continue(){var i;return((i=S(this,$a))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var y,b,g,v,T,p,_,H,Z,O,L,U,R,w,G,$,K,F;const r=()=>{ce(this,rl,ca).call(this,{type:"continue"})},c={client:S(this,ai),meta:this.options.meta,mutationKey:this.options.mutationKey};k(this,$a,Yy({fn:()=>this.options.mutationFn?this.options.mutationFn(i,c):Promise.reject(new Error("No mutationFn found")),onFail:(ae,he)=>{ce(this,rl,ca).call(this,{type:"failed",failureCount:ae,error:he})},onPause:()=>{ce(this,rl,ca).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,st).canRun(this)}));const d=this.state.status==="pending",m=!S(this,$a).canStart();try{if(d)r();else{ce(this,rl,ca).call(this,{type:"pending",variables:i,isPaused:m}),S(this,st).config.onMutate&&await S(this,st).config.onMutate(i,this,c);const he=await((b=(y=this.options).onMutate)==null?void 0:b.call(y,i,c));he!==this.state.context&&ce(this,rl,ca).call(this,{type:"pending",context:he,variables:i,isPaused:m})}const ae=await S(this,$a).start();return await((v=(g=S(this,st).config).onSuccess)==null?void 0:v.call(g,ae,i,this.state.context,this,c)),await((p=(T=this.options).onSuccess)==null?void 0:p.call(T,ae,i,this.state.context,c)),await((H=(_=S(this,st).config).onSettled)==null?void 0:H.call(_,ae,null,this.state.variables,this.state.context,this,c)),await((O=(Z=this.options).onSettled)==null?void 0:O.call(Z,ae,null,i,this.state.context,c)),ce(this,rl,ca).call(this,{type:"success",data:ae}),ae}catch(ae){try{await((U=(L=S(this,st).config).onError)==null?void 0:U.call(L,ae,i,this.state.context,this,c))}catch(he){Promise.reject(he)}try{await((w=(R=this.options).onError)==null?void 0:w.call(R,ae,i,this.state.context,c))}catch(he){Promise.reject(he)}try{await(($=(G=S(this,st).config).onSettled)==null?void 0:$.call(G,void 0,ae,this.state.variables,this.state.context,this,c))}catch(he){Promise.reject(he)}try{await((F=(K=this.options).onSettled)==null?void 0:F.call(K,void 0,ae,i,this.state.context,c))}catch(he){Promise.reject(he)}throw ce(this,rl,ca).call(this,{type:"error",error:ae}),ae}finally{S(this,st).runNext(this)}}},ai=new WeakMap,sl=new WeakMap,st=new WeakMap,$a=new WeakMap,rl=new WeakSet,ca=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),$e.batch(()=>{S(this,sl).forEach(c=>{c.onMutationUpdate(i)}),S(this,st).notify({mutation:this,type:"updated",action:i})})},_y);function Ky(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ml,It,ni,Dy,Ag=(Dy=class extends $n{constructor(i={}){super();ee(this,Ml);ee(this,It);ee(this,ni);this.config=i,k(this,Ml,new Set),k(this,It,new Map),k(this,ni,0)}build(i,r,c){const d=new Rg({client:i,mutationCache:this,mutationId:++Ts(this,ni)._,options:i.defaultMutationOptions(r),state:c});return this.add(d),d}add(i){S(this,Ml).add(i);const r=Cs(i);if(typeof r=="string"){const c=S(this,It).get(r);c?c.push(i):S(this,It).set(r,[i])}this.notify({type:"added",mutation:i})}remove(i){if(S(this,Ml).delete(i)){const r=Cs(i);if(typeof r=="string"){const c=S(this,It).get(r);if(c)if(c.length>1){const d=c.indexOf(i);d!==-1&&c.splice(d,1)}else c[0]===i&&S(this,It).delete(r)}}this.notify({type:"removed",mutation:i})}canRun(i){const r=Cs(i);if(typeof r=="string"){const c=S(this,It).get(r),d=c==null?void 0:c.find(m=>m.state.status==="pending");return!d||d===i}else return!0}runNext(i){var c;const r=Cs(i);if(typeof r=="string"){const d=(c=S(this,It).get(r))==null?void 0:c.find(m=>m!==i&&m.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){$e.batch(()=>{S(this,Ml).forEach(i=>{this.notify({type:"removed",mutation:i})}),S(this,Ml).clear(),S(this,It).clear()})}getAll(){return Array.from(S(this,Ml))}find(i){const r={exact:!0,...i};return this.getAll().find(c=>cy(r,c))}findAll(i={}){return this.getAll().filter(r=>cy(i,r))}notify(i){$e.batch(()=>{this.listeners.forEach(r=>{r(i)})})}resumePausedMutations(){const i=this.getAll().filter(r=>r.state.isPaused);return $e.batch(()=>Promise.all(i.map(r=>r.continue().catch(ft))))}},Ml=new WeakMap,It=new WeakMap,ni=new WeakMap,Dy);function Cs(u){var i;return(i=u.options.scope)==null?void 0:i.id}var _l,ya,St,Dl,wl,As,Oo,Uy,zg=(Uy=class extends $n{constructor(r,c){super();ee(this,wl);ee(this,_l);ee(this,ya);ee(this,St);ee(this,Dl);k(this,_l,r),this.setOptions(c),this.bindMethods(),ce(this,wl,As).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var d;const c=this.options;this.options=S(this,_l).defaultMutationOptions(r),Ds(this.options,c)||S(this,_l).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,St),observer:this}),c!=null&&c.mutationKey&&this.options.mutationKey&&Ia(c.mutationKey)!==Ia(this.options.mutationKey)?this.reset():((d=S(this,St))==null?void 0:d.state.status)==="pending"&&S(this,St).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=S(this,St))==null||r.removeObserver(this)}onMutationUpdate(r){ce(this,wl,As).call(this),ce(this,wl,Oo).call(this,r)}getCurrentResult(){return S(this,ya)}reset(){var r;(r=S(this,St))==null||r.removeObserver(this),k(this,St,void 0),ce(this,wl,As).call(this),ce(this,wl,Oo).call(this)}mutate(r,c){var d;return k(this,Dl,c),(d=S(this,St))==null||d.removeObserver(this),k(this,St,S(this,_l).getMutationCache().build(S(this,_l),this.options)),S(this,St).addObserver(this),S(this,St).execute(r)}},_l=new WeakMap,ya=new WeakMap,St=new WeakMap,Dl=new WeakMap,wl=new WeakSet,As=function(){var c;const r=((c=S(this,St))==null?void 0:c.state)??Ky();k(this,ya,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Oo=function(r){$e.batch(()=>{var c,d,m,y,b,g,v,T;if(S(this,Dl)&&this.hasListeners()){const p=S(this,ya).variables,_=S(this,ya).context,H={client:S(this,_l),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(d=(c=S(this,Dl)).onSuccess)==null||d.call(c,r.data,p,_,H)}catch(Z){Promise.reject(Z)}try{(y=(m=S(this,Dl)).onSettled)==null||y.call(m,r.data,null,p,_,H)}catch(Z){Promise.reject(Z)}}else if((r==null?void 0:r.type)==="error"){try{(g=(b=S(this,Dl)).onError)==null||g.call(b,r.error,p,_,H)}catch(Z){Promise.reject(Z)}try{(T=(v=S(this,Dl)).onSettled)==null||T.call(v,void 0,r.error,p,_,H)}catch(Z){Promise.reject(Z)}}}this.listeners.forEach(p=>{p(S(this,ya))})})},Uy),cl,wy,Mg=(wy=class extends $n{constructor(i={}){super();ee(this,cl);this.config=i,k(this,cl,new Map)}build(i,r,c){const d=r.queryKey,m=r.queryHash??Ho(d,r);let y=this.get(m);return y||(y=new jg({client:i,queryKey:d,queryHash:m,options:i.defaultQueryOptions(r),state:c,defaultOptions:i.getQueryDefaults(d)}),this.add(y)),y}add(i){S(this,cl).has(i.queryHash)||(S(this,cl).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const r=S(this,cl).get(i.queryHash);r&&(i.destroy(),r===i&&S(this,cl).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){$e.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return S(this,cl).get(i)}getAll(){return[...S(this,cl).values()]}find(i){const r={exact:!0,...i};return this.getAll().find(c=>ry(r,c))}findAll(i={}){const r=this.getAll();return Object.keys(i).length>0?r.filter(c=>ry(i,c)):r}notify(i){$e.batch(()=>{this.listeners.forEach(r=>{r(i)})})}onFocus(){$e.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){$e.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},cl=new WeakMap,wy),Be,va,pa,Vn,Jn,ga,kn,Fn,Hy,_g=(Hy=class{constructor(u={}){ee(this,Be);ee(this,va);ee(this,pa);ee(this,Vn);ee(this,Jn);ee(this,ga);ee(this,kn);ee(this,Fn);k(this,Be,u.queryCache||new Mg),k(this,va,u.mutationCache||new Ag),k(this,pa,u.defaultOptions||{}),k(this,Vn,new Map),k(this,Jn,new Map),k(this,ga,0)}mount(){Ts(this,ga)._++,S(this,ga)===1&&(k(this,kn,Qo.subscribe(async u=>{u&&(await this.resumePausedMutations(),S(this,Be).onFocus())})),k(this,Fn,Us.subscribe(async u=>{u&&(await this.resumePausedMutations(),S(this,Be).onOnline())})))}unmount(){var u,i;Ts(this,ga)._--,S(this,ga)===0&&((u=S(this,kn))==null||u.call(this),k(this,kn,void 0),(i=S(this,Fn))==null||i.call(this),k(this,Fn,void 0))}isFetching(u){return S(this,Be).findAll({...u,fetchStatus:"fetching"}).length}isMutating(u){return S(this,va).findAll({...u,status:"pending"}).length}getQueryData(u){var r;const i=this.defaultQueryOptions({queryKey:u});return(r=S(this,Be).get(i.queryHash))==null?void 0:r.state.data}ensureQueryData(u){const i=this.defaultQueryOptions(u),r=S(this,Be).build(this,i),c=r.state.data;return c===void 0?this.fetchQuery(u):(u.revalidateIfStale&&r.isStaleByTime(xa(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(u){return S(this,Be).findAll(u).map(({queryKey:i,state:r})=>{const c=r.data;return[i,c]})}setQueryData(u,i,r){const c=this.defaultQueryOptions({queryKey:u}),d=S(this,Be).get(c.queryHash),m=d==null?void 0:d.state.data,y=dg(i,m);if(y!==void 0)return S(this,Be).build(this,c).setData(y,{...r,manual:!0})}setQueriesData(u,i,r){return $e.batch(()=>S(this,Be).findAll(u).map(({queryKey:c})=>[c,this.setQueryData(c,i,r)]))}getQueryState(u){var r;const i=this.defaultQueryOptions({queryKey:u});return(r=S(this,Be).get(i.queryHash))==null?void 0:r.state}removeQueries(u){const i=S(this,Be);$e.batch(()=>{i.findAll(u).forEach(r=>{i.remove(r)})})}resetQueries(u,i){const r=S(this,Be);return $e.batch(()=>(r.findAll(u).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...u},i)))}cancelQueries(u,i={}){const r={revert:!0,...i},c=$e.batch(()=>S(this,Be).findAll(u).map(d=>d.cancel(r)));return Promise.all(c).then(ft).catch(ft)}invalidateQueries(u,i={}){return $e.batch(()=>(S(this,Be).findAll(u).forEach(r=>{r.invalidate()}),(u==null?void 0:u.refetchType)==="none"?Promise.resolve():this.refetchQueries({...u,type:(u==null?void 0:u.refetchType)??(u==null?void 0:u.type)??"active"},i)))}refetchQueries(u,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},c=$e.batch(()=>S(this,Be).findAll(u).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,r);return r.throwOnError||(m=m.catch(ft)),d.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(c).then(ft)}fetchQuery(u){const i=this.defaultQueryOptions(u);i.retry===void 0&&(i.retry=!1);const r=S(this,Be).build(this,i);return r.isStaleByTime(xa(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(u){return this.fetchQuery(u).then(ft).catch(ft)}fetchInfiniteQuery(u){return u.behavior=vy(u.pages),this.fetchQuery(u)}prefetchInfiniteQuery(u){return this.fetchInfiniteQuery(u).then(ft).catch(ft)}ensureInfiniteQueryData(u){return u.behavior=vy(u.pages),this.ensureQueryData(u)}resumePausedMutations(){return Us.isOnline()?S(this,va).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Be)}getMutationCache(){return S(this,va)}getDefaultOptions(){return S(this,pa)}setDefaultOptions(u){k(this,pa,u)}setQueryDefaults(u,i){S(this,Vn).set(Ia(u),{queryKey:u,defaultOptions:i})}getQueryDefaults(u){const i=[...S(this,Vn).values()],r={};return i.forEach(c=>{Iu(u,c.queryKey)&&Object.assign(r,c.defaultOptions)}),r}setMutationDefaults(u,i){S(this,Jn).set(Ia(u),{mutationKey:u,defaultOptions:i})}getMutationDefaults(u){const i=[...S(this,Jn).values()],r={};return i.forEach(c=>{Iu(u,c.mutationKey)&&Object.assign(r,c.defaultOptions)}),r}defaultQueryOptions(u){if(u._defaulted)return u;const i={...S(this,pa).queries,...this.getQueryDefaults(u.queryKey),...u,_defaulted:!0};return i.queryHash||(i.queryHash=Ho(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===qo&&(i.enabled=!1),i}defaultMutationOptions(u){return u!=null&&u._defaulted?u:{...S(this,pa).mutations,...(u==null?void 0:u.mutationKey)&&this.getMutationDefaults(u.mutationKey),...u,_defaulted:!0}}clear(){S(this,Be).clear(),S(this,va).clear()}},Be=new WeakMap,va=new WeakMap,pa=new WeakMap,Vn=new WeakMap,Jn=new WeakMap,ga=new WeakMap,kn=new WeakMap,Fn=new WeakMap,Hy),Vy=E.createContext(void 0),Hs=u=>{const i=E.useContext(Vy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},Dg=({client:u,children:i})=>(E.useEffect(()=>(u.mount(),()=>{u.unmount()}),[u]),f.jsx(Vy.Provider,{value:u,children:i})),Jy=E.createContext(!1),Ug=()=>E.useContext(Jy);Jy.Provider;function wg(){let u=!1;return{clearReset:()=>{u=!1},reset:()=>{u=!0},isReset:()=>u}}var Hg=E.createContext(wg()),qg=()=>E.useContext(Hg),Bg=(u,i,r)=>{const c=r!=null&&r.state.error&&typeof u.throwOnError=="function"?Bo(u.throwOnError,[r.state.error,r]):u.throwOnError;(u.suspense||u.experimental_prefetchInRender||c)&&(i.isReset()||(u.retryOnMount=!1))},Qg=u=>{E.useEffect(()=>{u.clearReset()},[u])},Lg=({result:u,errorResetBoundary:i,throwOnError:r,query:c,suspense:d})=>u.isError&&!i.isReset()&&!u.isFetching&&c&&(d&&u.data===void 0||Bo(r,[u.error,c])),Yg=u=>{if(u.suspense){const r=d=>d==="static"?d:Math.max(d??1e3,1e3),c=u.staleTime;u.staleTime=typeof c=="function"?(...d)=>r(c(...d)):r(c),typeof u.gcTime=="number"&&(u.gcTime=Math.max(u.gcTime,1e3))}},Gg=(u,i)=>u.isLoading&&u.isFetching&&!i,Xg=(u,i)=>(u==null?void 0:u.suspense)&&i.isPending,gy=(u,i,r)=>i.fetchOptimistic(u).catch(()=>{r.clearReset()});function Zg(u,i,r){var _,H,Z,O;const c=Ug(),d=qg(),m=Hs(),y=m.defaultQueryOptions(u);(H=(_=m.getDefaultOptions().queries)==null?void 0:_._experimental_beforeQuery)==null||H.call(_,y);const b=m.getQueryCache().get(y.queryHash);y._optimisticResults=c?"isRestoring":"optimistic",Yg(y),Bg(y,d,b),Qg(d);const g=!m.getQueryCache().get(y.queryHash),[v]=E.useState(()=>new i(m,y)),T=v.getOptimisticResult(y),p=!c&&u.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(L=>{const U=p?v.subscribe($e.batchCalls(L)):ft;return v.updateResult(),U},[v,p]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),E.useEffect(()=>{v.setOptions(y)},[y,v]),Xg(y,T))throw gy(y,v,d);if(Lg({result:T,errorResetBoundary:d,throwOnError:y.throwOnError,query:b,suspense:y.suspense}))throw T.error;if((O=(Z=m.getDefaultOptions().queries)==null?void 0:Z._experimental_afterQuery)==null||O.call(Z,y,T),y.experimental_prefetchInRender&&!Wa&&Gg(T,c)){const L=g?gy(y,v,d):b==null?void 0:b.promise;L==null||L.catch(ft).finally(()=>{v.updateResult()})}return y.notifyOnChangeProps?T:v.trackResult(T)}function Pt(u,i){return Zg(u,Ng)}function Ro(u,i){const r=Hs(),[c]=E.useState(()=>new zg(r,u));E.useEffect(()=>{c.setOptions(u)},[c,u]);const d=E.useSyncExternalStore(E.useCallback(y=>c.subscribe($e.batchCalls(y)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m=E.useCallback((y,b)=>{c.mutate(y,b).catch(ft)},[c]);if(d.error&&Bo(c.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:m,mutateAsync:d.mutate}}const Kg=new _g({defaultOptions:{queries:{staleTime:5e3,retry:1}}});/**
|
|
48
|
+
`+a.stack}}var Gs=Object.prototype.hasOwnProperty,Xs=u.unstable_scheduleCallback,Zs=u.unstable_cancelCallback,Av=u.unstable_shouldYield,Mv=u.unstable_requestPaint,jt=u.unstable_now,zv=u.unstable_getCurrentPriorityLevel,Wo=u.unstable_ImmediatePriority,Io=u.unstable_UserBlockingPriority,ri=u.unstable_NormalPriority,_v=u.unstable_LowPriority,Po=u.unstable_IdlePriority,Dv=u.log,Uv=u.unstable_setDisableYieldValue,tu=null,Nt=null;function Bl(e){if(typeof Dv=="function"&&Uv(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(tu,e)}catch{}}var Tt=Math.clz32?Math.clz32:qv,wv=Math.log,Hv=Math.LN2;function qv(e){return e>>>=0,e===0?32:31-(wv(e)/Hv|0)|0}var ci=256,oi=262144,fi=4194304;function ja(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 di(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,s=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var h=a&134217727;return h!==0?(a=h&~s,a!==0?n=ja(a):(o&=h,o!==0?n=ja(o):l||(l=h&~e,l!==0&&(n=ja(l))))):(h=a&~s,h!==0?n=ja(h):o!==0?n=ja(o):l||(l=a&~e,l!==0&&(n=ja(l)))),n===0?0:t!==0&&t!==n&&(t&s)===0&&(s=n&-n,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:n}function lu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Bv(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 ef(){var e=fi;return fi<<=1,(fi&62914560)===0&&(fi=4194304),e}function Ks(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function au(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qv(e,t,l,a,n,s){var o=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var h=e.entanglements,x=e.expirationTimes,M=e.hiddenUpdates;for(l=o&~l;0<l;){var H=31-Tt(l),G=1<<H;h[H]=0,x[H]=-1;var _=M[H];if(_!==null)for(M[H]=null,H=0;H<_.length;H++){var D=_[H];D!==null&&(D.lane&=-536870913)}l&=~G}a!==0&&tf(e,a,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(o&~t))}function tf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Tt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function lf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Tt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function af(e,t){var l=t&-t;return l=(l&42)!==0?1:Vs(l),(l&(e.suspendedLanes|t))!==0?0:l}function Vs(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 ks(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function nf(){var e=k.p;return e!==0?e:(e=window.event,e===void 0?32:Zm(e.type))}function uf(e,t){var l=k.p;try{return k.p=e,t()}finally{k.p=l}}var Ql=Math.random().toString(36).slice(2),et="__reactFiber$"+Ql,ht="__reactProps$"+Ql,Pa="__reactContainer$"+Ql,Js="__reactEvents$"+Ql,Lv="__reactListeners$"+Ql,Yv="__reactHandles$"+Ql,sf="__reactResources$"+Ql,nu="__reactMarker$"+Ql;function Fs(e){delete e[et],delete e[ht],delete e[Js],delete e[Lv],delete e[Yv]}function en(e){var t=e[et];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Pa]||l[et]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Rm(e);e!==null;){if(l=e[et])return l;e=Rm(e)}return t}e=l,l=e.parentNode}return null}function tn(e){if(e=e[et]||e[Pa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function uu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function ln(e){var t=e[sf];return t||(t=e[sf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[nu]=!0}var rf=new Set,cf={};function Na(e,t){an(e,t),an(e+"Capture",t)}function an(e,t){for(cf[e]=t,e=0;e<t.length;e++)rf.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]*$"),of={},ff={};function Xv(e){return Gs.call(ff,e)?!0:Gs.call(of,e)?!1:Gv.test(e)?ff[e]=!0:(of[e]=!0,!1)}function hi(e,t,l){if(Xv(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function mi(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function fl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}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 df(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zv(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){l=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $s(e){if(!e._valueTracker){var t=df(e)?"checked":"value";e._valueTracker=Zv(e,t,""+e[t])}}function hf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=df(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function yi(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 Kv=/[\n"\\]/g;function wt(e){return e.replace(Kv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ws(e,t,l,a,n,s,o,h){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?Is(e,o,Ut(t)):l!=null?Is(e,o,Ut(l)):a!=null&&e.removeAttribute("value"),n==null&&s!=null&&(e.defaultChecked=!!s),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Ut(h):e.removeAttribute("name")}function mf(e,t,l,a,n,s,o,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){$s(e);return}l=l!=null?""+Ut(l):"",t=t!=null?""+Ut(t):l,h||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=h?e.checked:!!a,e.defaultChecked=!!a,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),$s(e)}function Is(e,t,l){t==="number"&&yi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function nn(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ut(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function yf(e,t,l){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ut(l):""}function vf(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(ut(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ut(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),$s(e)}function un(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.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 pf(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Vv.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function gf(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&pf(e,n,a)}else for(var s in t)t.hasOwnProperty(s)&&pf(e,s,t[s])}function Ps(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 kv=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"]]),Jv=/^[\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 vi(e){return Jv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function dl(){}var er=null;function tr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sn=null,rn=null;function bf(e){var t=tn(e);if(t&&(e=t.stateNode)){var l=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ws(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+wt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[ht]||null;if(!n)throw Error(c(90));Ws(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&hf(a)}break e;case"textarea":yf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&nn(e,!!l.multiple,t,!1)}}}var lr=!1;function xf(e,t,l){if(lr)return e(t,l);lr=!0;try{var a=e(t);return a}finally{if(lr=!1,(sn!==null||rn!==null)&&(as(),sn&&(t=sn,e=rn,rn=sn=null,bf(t),e)))for(t=0;t<e.length;t++)bf(e[t])}}function iu(e,t){var l=e.stateNode;if(l===null)return null;var a=l[ht]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var hl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ar=!1;if(hl)try{var su={};Object.defineProperty(su,"passive",{get:function(){ar=!0}}),window.addEventListener("test",su,su),window.removeEventListener("test",su,su)}catch{ar=!1}var Ll=null,nr=null,pi=null;function Sf(){if(pi)return pi;var e,t=nr,l=t.length,a,n="value"in Ll?Ll.value:Ll.textContent,s=n.length;for(e=0;e<l&&t[e]===n[e];e++);var o=l-e;for(a=1;a<=o&&t[l-a]===n[s-a];a++);return pi=n.slice(e,1<a?1-a:void 0)}function gi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bi(){return!0}function Ef(){return!1}function mt(e){function t(l,a,n,s,o){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(l=e[h],this[h]=l?l(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?bi:Ef,this.isPropagationStopped=Ef,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=bi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=bi)},persist:function(){},isPersistent:bi}),t}var Ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xi=mt(Ta),ru=g({},Ta,{view:0,detail:0}),Fv=mt(ru),ur,ir,cu,Si=g({},ru,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rr,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!==cu&&(cu&&e.type==="mousemove"?(ur=e.screenX-cu.screenX,ir=e.screenY-cu.screenY):ir=ur=0,cu=e),ur)},movementY:function(e){return"movementY"in e?e.movementY:ir}}),jf=mt(Si),$v=g({},Si,{dataTransfer:0}),Wv=mt($v),Iv=g({},ru,{relatedTarget:0}),sr=mt(Iv),Pv=g({},Ta,{animationName:0,elapsedTime:0,pseudoElement:0}),ep=mt(Pv),tp=g({},Ta,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lp=mt(tp),ap=g({},Ta,{data:0}),Nf=mt(ap),np={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"},ip={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ip[e])?!!t[e]:!1}function rr(){return sp}var rp=g({},ru,{key:function(e){if(e.key){var t=np[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gi(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:rr,charCode:function(e){return e.type==="keypress"?gi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cp=mt(rp),op=g({},Si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tf=mt(op),fp=g({},ru,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rr}),dp=mt(fp),hp=g({},Ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),mp=mt(hp),yp=g({},Si,{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}),vp=mt(yp),pp=g({},Ta,{newState:0,oldState:0}),gp=mt(pp),bp=[9,13,27,32],cr=hl&&"CompositionEvent"in window,ou=null;hl&&"documentMode"in document&&(ou=document.documentMode);var xp=hl&&"TextEvent"in window&&!ou,Cf=hl&&(!cr||ou&&8<ou&&11>=ou),Of=" ",Rf=!1;function Af(e,t){switch(e){case"keyup":return bp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cn=!1;function Sp(e,t){switch(e){case"compositionend":return Mf(t);case"keypress":return t.which!==32?null:(Rf=!0,Of);case"textInput":return e=t.data,e===Of&&Rf?null:e;default:return null}}function Ep(e,t){if(cn)return e==="compositionend"||!cr&&Af(e,t)?(e=Sf(),pi=nr=Ll=null,cn=!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 Cf&&t.locale!=="ko"?null:t.data;default:return null}}var jp={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 zf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jp[e.type]:t==="textarea"}function _f(e,t,l,a){sn?rn?rn.push(a):rn=[a]:sn=a,t=os(t,"onChange"),0<t.length&&(l=new xi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var fu=null,du=null;function Np(e){mm(e,0)}function Ei(e){var t=uu(e);if(hf(t))return e}function Df(e,t){if(e==="change")return t}var Uf=!1;if(hl){var or;if(hl){var fr="oninput"in document;if(!fr){var wf=document.createElement("div");wf.setAttribute("oninput","return;"),fr=typeof wf.oninput=="function"}or=fr}else or=!1;Uf=or&&(!document.documentMode||9<document.documentMode)}function Hf(){fu&&(fu.detachEvent("onpropertychange",qf),du=fu=null)}function qf(e){if(e.propertyName==="value"&&Ei(du)){var t=[];_f(t,du,e,tr(e)),xf(Np,t)}}function Tp(e,t,l){e==="focusin"?(Hf(),fu=t,du=l,fu.attachEvent("onpropertychange",qf)):e==="focusout"&&Hf()}function Cp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ei(du)}function Op(e,t){if(e==="click")return Ei(t)}function Rp(e,t){if(e==="input"||e==="change")return Ei(t)}function Ap(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Ap;function hu(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Gs.call(t,n)||!Ct(e[n],t[n]))return!1}return!0}function Bf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qf(e,t){var l=Bf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Bf(l)}}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 Yf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=yi(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=yi(e.document)}return t}function dr(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 Mp=hl&&"documentMode"in document&&11>=document.documentMode,on=null,hr=null,mu=null,mr=!1;function Gf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;mr||on==null||on!==yi(a)||(a=on,"selectionStart"in a&&dr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),mu&&hu(mu,a)||(mu=a,a=os(hr,"onSelect"),0<a.length&&(t=new xi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=on)))}function Ca(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var fn={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionrun:Ca("Transition","TransitionRun"),transitionstart:Ca("Transition","TransitionStart"),transitioncancel:Ca("Transition","TransitionCancel"),transitionend:Ca("Transition","TransitionEnd")},yr={},Xf={};hl&&(Xf=document.createElement("div").style,"AnimationEvent"in window||(delete fn.animationend.animation,delete fn.animationiteration.animation,delete fn.animationstart.animation),"TransitionEvent"in window||delete fn.transitionend.transition);function Oa(e){if(yr[e])return yr[e];if(!fn[e])return e;var t=fn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Xf)return yr[e]=t[l];return e}var Zf=Oa("animationend"),Kf=Oa("animationiteration"),Vf=Oa("animationstart"),zp=Oa("transitionrun"),_p=Oa("transitionstart"),Dp=Oa("transitioncancel"),kf=Oa("transitionend"),Jf=new Map,vr="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(" ");vr.push("scrollEnd");function Jt(e,t){Jf.set(e,t),Na(t,[e])}var ji=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=[],dn=0,pr=0;function Ni(){for(var e=dn,t=pr=dn=0;t<e;){var l=Ht[t];Ht[t++]=null;var a=Ht[t];Ht[t++]=null;var n=Ht[t];Ht[t++]=null;var s=Ht[t];if(Ht[t++]=null,a!==null&&n!==null){var o=a.pending;o===null?n.next=n:(n.next=o.next,o.next=n),a.pending=n}s!==0&&Ff(l,n,s)}}function Ti(e,t,l,a){Ht[dn++]=e,Ht[dn++]=t,Ht[dn++]=l,Ht[dn++]=a,pr|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function gr(e,t,l,a){return Ti(e,t,l,a),Ci(e)}function Ra(e,t){return Ti(e,null,null,t),Ci(e)}function Ff(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,s=e.return;s!==null;)s.childLanes|=l,a=s.alternate,a!==null&&(a.childLanes|=l),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(n=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,n&&t!==null&&(n=31-Tt(l),e=s.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),s):null}function Ci(e){if(50<Hu)throw Hu=0,Oc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var hn={};function Up(e,t,l,a){this.tag=e,this.key=l,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,t,l,a){return new Up(e,t,l,a)}function br(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ml(e,t){var l=e.alternate;return l===null?(l=Ot(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function $f(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Oi(e,t,l,a,n,s){var o=0;if(a=e,typeof e=="function")br(e)&&(o=1);else if(typeof e=="string")o=Q0(e,l,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case he:return e=Ot(31,l,t,n),e.elementType=he,e.lanes=s,e;case R:return Aa(l.children,n,s,t);case L:o=8,n|=24;break;case U:return e=Ot(12,l,t,n|2),e.elementType=U,e.lanes=s,e;case K:return e=Ot(13,l,t,n),e.elementType=K,e.lanes=s,e;case V:return e=Ot(19,l,t,n),e.elementType=V,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:o=10;break e;case Y:o=9;break e;case O:o=11;break e;case $:o=14;break e;case ae:o=16,a=null;break e}o=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=Ot(o,l,t,n),t.elementType=e,t.type=a,t.lanes=s,t}function Aa(e,t,l,a){return e=Ot(7,e,a,t),e.lanes=l,e}function xr(e,t,l){return e=Ot(6,e,null,t),e.lanes=l,e}function Wf(e){var t=Ot(18,null,null,0);return t.stateNode=e,t}function Sr(e,t,l){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var If=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var l=If.get(e);return l!==void 0?l:(t={value:e,source:t,stack:$o(t)},If.set(e,t),t)}return{value:e,source:t,stack:$o(t)}}var mn=[],yn=0,Ri=null,yu=0,Bt=[],Qt=0,Yl=null,ll=1,al="";function yl(e,t){mn[yn++]=yu,mn[yn++]=Ri,Ri=e,yu=t}function Pf(e,t,l){Bt[Qt++]=ll,Bt[Qt++]=al,Bt[Qt++]=Yl,Yl=e;var a=ll;e=al;var n=32-Tt(a)-1;a&=~(1<<n),l+=1;var s=32-Tt(t)+n;if(30<s){var o=n-n%5;s=(a&(1<<o)-1).toString(32),a>>=o,n-=o,ll=1<<32-Tt(t)+n|l<<n|a,al=s+e}else ll=1<<s|l<<n|a,al=e}function Er(e){e.return!==null&&(yl(e,1),Pf(e,1,0))}function jr(e){for(;e===Ri;)Ri=mn[--yn],mn[yn]=null,yu=mn[--yn],mn[yn]=null;for(;e===Yl;)Yl=Bt[--Qt],Bt[Qt]=null,al=Bt[--Qt],Bt[Qt]=null,ll=Bt[--Qt],Bt[Qt]=null}function ed(e,t){Bt[Qt++]=ll,Bt[Qt++]=al,Bt[Qt++]=Yl,ll=t.id,al=t.overflow,Yl=e}var tt=null,_e=null,ve=!1,Gl=null,Lt=!1,Nr=Error(c(519));function Xl(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vu(qt(t,e)),Nr}function td(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[et]=e,t[ht]=a,l){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(l=0;l<Bu.length;l++)de(Bu[l],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),mf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),vf(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||gm(t.textContent,l)?(a.popover!=null&&(de("beforetoggle",t),de("toggle",t)),a.onScroll!=null&&de("scroll",t),a.onScrollEnd!=null&&de("scrollend",t),a.onClick!=null&&(t.onclick=dl),t=!0):t=!1,t||Xl(e,!0)}function ld(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Lt=!1;return;case 27:case 3:Lt=!0;return;default:tt=tt.return}}function vn(e){if(e!==tt)return!1;if(!ve)return ld(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Gc(e.type,e.memoizedProps)),l=!l),l&&_e&&Xl(e),ld(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));_e=Om(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));_e=Om(e)}else t===27?(t=_e,aa(e.type)?(e=kc,kc=null,_e=e):_e=t):_e=tt?Gt(e.stateNode.nextSibling):null;return!0}function Ma(){_e=tt=null,ve=!1}function Tr(){var e=Gl;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),Gl=null),e}function vu(e){Gl===null?Gl=[e]:Gl.push(e)}var Cr=N(null),za=null,vl=null;function Zl(e,t,l){J(Cr,t._currentValue),t._currentValue=l}function pl(e){e._currentValue=Cr.current,X(Cr)}function Or(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Rr(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var s=n.dependencies;if(s!==null){var o=n.child;s=s.firstContext;e:for(;s!==null;){var h=s;s=n;for(var x=0;x<t.length;x++)if(h.context===t[x]){s.lanes|=l,h=s.alternate,h!==null&&(h.lanes|=l),Or(s.return,l,e),a||(o=null);break e}s=h.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(c(341));o.lanes|=l,s=o.alternate,s!==null&&(s.lanes|=l),Or(o,l,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function pn(e,t,l,a){e=null;for(var n=t,s=!1;n!==null;){if(!s){if((n.flags&524288)!==0)s=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var h=n.type;Ct(n.pendingProps.value,o.value)||(e!==null?e.push(h):e=[h])}}else if(n===Se.current){if(o=n.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Xu):e=[Xu])}n=n.return}e!==null&&Rr(t,e,l,a),t.flags|=262144}function Ai(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){za=e,vl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return ad(za,e)}function Mi(e,t){return za===null&&_a(e),ad(e,t)}function ad(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},vl===null){if(e===null)throw Error(c(308));vl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vl=vl.next=t;return l}var wp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Hp=u.unstable_scheduleCallback,qp=u.unstable_NormalPriority,Xe={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ar(){return{controller:new wp,data:new Map,refCount:0}}function pu(e){e.refCount--,e.refCount===0&&Hp(qp,function(){e.controller.abort()})}var gu=null,Mr=0,gn=0,bn=null;function Bp(e,t){if(gu===null){var l=gu=[];Mr=0,gn=Dc(),bn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Mr++,t.then(nd,nd),t}function nd(){if(--Mr===0&&gu!==null){bn!==null&&(bn.status="fulfilled");var e=gu;gu=null,gn=0,bn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Qp(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var ud=B.S;B.S=function(e,t){Gh=jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Bp(e,t),ud!==null&&ud(e,t)};var Da=N(null);function zr(){var e=Da.current;return e!==null?e:ze.pooledCache}function zi(e,t){t===null?J(Da,Da.current):J(Da,t.pool)}function id(){var e=zr();return e===null?null:{parent:Xe._currentValue,pool:e}}var xn=Error(c(460)),_r=Error(c(474)),_i=Error(c(542)),Di={then:function(){}};function sd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function rd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(dl,dl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,od(e),e;default:if(typeof t.status=="string")t.then(dl,dl);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,od(e),e}throw wa=t,xn}}function Ua(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(wa=l,xn):l}}var wa=null;function cd(){if(wa===null)throw Error(c(459));var e=wa;return wa=null,e}function od(e){if(e===xn||e===_i)throw Error(c(483))}var Sn=null,bu=0;function Ui(e){var t=bu;return bu+=1,Sn===null&&(Sn=[]),rd(Sn,e,t)}function xu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function wi(e,t){throw t.$$typeof===z?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function fd(e){function t(C,j){if(e){var A=C.deletions;A===null?(C.deletions=[j],C.flags|=16):A.push(j)}}function l(C,j){if(!e)return null;for(;j!==null;)t(C,j),j=j.sibling;return null}function a(C){for(var j=new Map;C!==null;)C.key!==null?j.set(C.key,C):j.set(C.index,C),C=C.sibling;return j}function n(C,j){return C=ml(C,j),C.index=0,C.sibling=null,C}function s(C,j,A){return C.index=A,e?(A=C.alternate,A!==null?(A=A.index,A<j?(C.flags|=67108866,j):A):(C.flags|=67108866,j)):(C.flags|=1048576,j)}function o(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function h(C,j,A,Q){return j===null||j.tag!==6?(j=xr(A,C.mode,Q),j.return=C,j):(j=n(j,A),j.return=C,j)}function x(C,j,A,Q){var te=A.type;return te===R?H(C,j,A.props.children,Q,A.key):j!==null&&(j.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===ae&&Ua(te)===j.type)?(j=n(j,A.props),xu(j,A),j.return=C,j):(j=Oi(A.type,A.key,A.props,null,C.mode,Q),xu(j,A),j.return=C,j)}function M(C,j,A,Q){return j===null||j.tag!==4||j.stateNode.containerInfo!==A.containerInfo||j.stateNode.implementation!==A.implementation?(j=Sr(A,C.mode,Q),j.return=C,j):(j=n(j,A.children||[]),j.return=C,j)}function H(C,j,A,Q,te){return j===null||j.tag!==7?(j=Aa(A,C.mode,Q,te),j.return=C,j):(j=n(j,A),j.return=C,j)}function G(C,j,A){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=xr(""+j,C.mode,A),j.return=C,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case w:return A=Oi(j.type,j.key,j.props,null,C.mode,A),xu(A,j),A.return=C,A;case Z:return j=Sr(j,C.mode,A),j.return=C,j;case ae:return j=Ua(j),G(C,j,A)}if(ut(j)||Je(j))return j=Aa(j,C.mode,A,null),j.return=C,j;if(typeof j.then=="function")return G(C,Ui(j),A);if(j.$$typeof===q)return G(C,Mi(C,j),A);wi(C,j)}return null}function _(C,j,A,Q){var te=j!==null?j.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return te!==null?null:h(C,j,""+A,Q);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case w:return A.key===te?x(C,j,A,Q):null;case Z:return A.key===te?M(C,j,A,Q):null;case ae:return A=Ua(A),_(C,j,A,Q)}if(ut(A)||Je(A))return te!==null?null:H(C,j,A,Q,null);if(typeof A.then=="function")return _(C,j,Ui(A),Q);if(A.$$typeof===q)return _(C,j,Mi(C,A),Q);wi(C,A)}return null}function D(C,j,A,Q,te){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return C=C.get(A)||null,h(j,C,""+Q,te);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case w:return C=C.get(Q.key===null?A:Q.key)||null,x(j,C,Q,te);case Z:return C=C.get(Q.key===null?A:Q.key)||null,M(j,C,Q,te);case ae:return Q=Ua(Q),D(C,j,A,Q,te)}if(ut(Q)||Je(Q))return C=C.get(A)||null,H(j,C,Q,te,null);if(typeof Q.then=="function")return D(C,j,A,Ui(Q),te);if(Q.$$typeof===q)return D(C,j,A,Mi(j,Q),te);wi(j,Q)}return null}function W(C,j,A,Q){for(var te=null,ge=null,P=j,re=j=0,ye=null;P!==null&&re<A.length;re++){P.index>re?(ye=P,P=null):ye=P.sibling;var be=_(C,P,A[re],Q);if(be===null){P===null&&(P=ye);break}e&&P&&be.alternate===null&&t(C,P),j=s(be,j,re),ge===null?te=be:ge.sibling=be,ge=be,P=ye}if(re===A.length)return l(C,P),ve&&yl(C,re),te;if(P===null){for(;re<A.length;re++)P=G(C,A[re],Q),P!==null&&(j=s(P,j,re),ge===null?te=P:ge.sibling=P,ge=P);return ve&&yl(C,re),te}for(P=a(P);re<A.length;re++)ye=D(P,C,re,A[re],Q),ye!==null&&(e&&ye.alternate!==null&&P.delete(ye.key===null?re:ye.key),j=s(ye,j,re),ge===null?te=ye:ge.sibling=ye,ge=ye);return e&&P.forEach(function(ra){return t(C,ra)}),ve&&yl(C,re),te}function le(C,j,A,Q){if(A==null)throw Error(c(151));for(var te=null,ge=null,P=j,re=j=0,ye=null,be=A.next();P!==null&&!be.done;re++,be=A.next()){P.index>re?(ye=P,P=null):ye=P.sibling;var ra=_(C,P,be.value,Q);if(ra===null){P===null&&(P=ye);break}e&&P&&ra.alternate===null&&t(C,P),j=s(ra,j,re),ge===null?te=ra:ge.sibling=ra,ge=ra,P=ye}if(be.done)return l(C,P),ve&&yl(C,re),te;if(P===null){for(;!be.done;re++,be=A.next())be=G(C,be.value,Q),be!==null&&(j=s(be,j,re),ge===null?te=be:ge.sibling=be,ge=be);return ve&&yl(C,re),te}for(P=a(P);!be.done;re++,be=A.next())be=D(P,C,re,be.value,Q),be!==null&&(e&&be.alternate!==null&&P.delete(be.key===null?re:be.key),j=s(be,j,re),ge===null?te=be:ge.sibling=be,ge=be);return e&&P.forEach(function($0){return t(C,$0)}),ve&&yl(C,re),te}function Ae(C,j,A,Q){if(typeof A=="object"&&A!==null&&A.type===R&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case w:e:{for(var te=A.key;j!==null;){if(j.key===te){if(te=A.type,te===R){if(j.tag===7){l(C,j.sibling),Q=n(j,A.props.children),Q.return=C,C=Q;break e}}else if(j.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===ae&&Ua(te)===j.type){l(C,j.sibling),Q=n(j,A.props),xu(Q,A),Q.return=C,C=Q;break e}l(C,j);break}else t(C,j);j=j.sibling}A.type===R?(Q=Aa(A.props.children,C.mode,Q,A.key),Q.return=C,C=Q):(Q=Oi(A.type,A.key,A.props,null,C.mode,Q),xu(Q,A),Q.return=C,C=Q)}return o(C);case Z:e:{for(te=A.key;j!==null;){if(j.key===te)if(j.tag===4&&j.stateNode.containerInfo===A.containerInfo&&j.stateNode.implementation===A.implementation){l(C,j.sibling),Q=n(j,A.children||[]),Q.return=C,C=Q;break e}else{l(C,j);break}else t(C,j);j=j.sibling}Q=Sr(A,C.mode,Q),Q.return=C,C=Q}return o(C);case ae:return A=Ua(A),Ae(C,j,A,Q)}if(ut(A))return W(C,j,A,Q);if(Je(A)){if(te=Je(A),typeof te!="function")throw Error(c(150));return A=te.call(A),le(C,j,A,Q)}if(typeof A.then=="function")return Ae(C,j,Ui(A),Q);if(A.$$typeof===q)return Ae(C,j,Mi(C,A),Q);wi(C,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,j!==null&&j.tag===6?(l(C,j.sibling),Q=n(j,A),Q.return=C,C=Q):(l(C,j),Q=xr(A,C.mode,Q),Q.return=C,C=Q),o(C)):l(C,j)}return function(C,j,A,Q){try{bu=0;var te=Ae(C,j,A,Q);return Sn=null,te}catch(P){if(P===xn||P===_i)throw P;var ge=Ot(29,P,null,C.mode);return ge.lanes=Q,ge.return=C,ge}finally{}}}var Ha=fd(!0),dd=fd(!1),Kl=!1;function Dr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ur(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 Vl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function kl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(xe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Ci(e),Ff(e,null,l),t}return Ti(e,a,t,l),Ci(e)}function Su(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,lf(e,l)}}function wr(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?n=s=o:s=s.next=o,l=l.next}while(l!==null);s===null?n=s=t:s=s.next=t}else n=s=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Hr=!1;function Eu(){if(Hr){var e=bn;if(e!==null)throw e}}function ju(e,t,l,a){Hr=!1;var n=e.updateQueue;Kl=!1;var s=n.firstBaseUpdate,o=n.lastBaseUpdate,h=n.shared.pending;if(h!==null){n.shared.pending=null;var x=h,M=x.next;x.next=null,o===null?s=M:o.next=M,o=x;var H=e.alternate;H!==null&&(H=H.updateQueue,h=H.lastBaseUpdate,h!==o&&(h===null?H.firstBaseUpdate=M:h.next=M,H.lastBaseUpdate=x))}if(s!==null){var G=n.baseState;o=0,H=M=x=null,h=s;do{var _=h.lane&-536870913,D=_!==h.lane;if(D?(me&_)===_:(a&_)===_){_!==0&&_===gn&&(Hr=!0),H!==null&&(H=H.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var W=e,le=h;_=t;var Ae=l;switch(le.tag){case 1:if(W=le.payload,typeof W=="function"){G=W.call(Ae,G,_);break e}G=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=le.payload,_=typeof W=="function"?W.call(Ae,G,_):W,_==null)break e;G=g({},G,_);break e;case 2:Kl=!0}}_=h.callback,_!==null&&(e.flags|=64,D&&(e.flags|=8192),D=n.callbacks,D===null?n.callbacks=[_]:D.push(_))}else D={lane:_,tag:h.tag,payload:h.payload,callback:h.callback,next:null},H===null?(M=H=D,x=G):H=H.next=D,o|=_;if(h=h.next,h===null){if(h=n.shared.pending,h===null)break;D=h,h=D.next,D.next=null,n.lastBaseUpdate=D,n.shared.pending=null}}while(!0);H===null&&(x=G),n.baseState=x,n.firstBaseUpdate=M,n.lastBaseUpdate=H,s===null&&(n.shared.lanes=0),Il|=o,e.lanes=o,e.memoizedState=G}}function hd(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function md(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)hd(l[e],t)}var En=N(null),Hi=N(0);function yd(e,t){e=Cl,J(Hi,e),J(En,t),Cl=e|t.baseLanes}function qr(){J(Hi,Cl),J(En,En.current)}function Br(){Cl=Hi.current,X(En),X(Hi)}var Rt=N(null),Yt=null;function Jl(e){var t=e.alternate;J(Le,Le.current&1),J(Rt,e),Yt===null&&(t===null||En.current!==null||t.memoizedState!==null)&&(Yt=e)}function Qr(e){J(Le,Le.current),J(Rt,e),Yt===null&&(Yt=e)}function vd(e){e.tag===22?(J(Le,Le.current),J(Rt,e),Yt===null&&(Yt=e)):Fl()}function Fl(){J(Le,Le.current),J(Rt,Rt.current)}function At(e){X(Rt),Yt===e&&(Yt=null),X(Le)}var Le=N(0);function qi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Kc(l)||Vc(l)))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 gl=0,se=null,Oe=null,Ze=null,Bi=!1,jn=!1,qa=!1,Qi=0,Nu=0,Nn=null,Lp=0;function He(){throw Error(c(321))}function Lr(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ct(e[l],t[l]))return!1;return!0}function Yr(e,t,l,a,n,s){return gl=s,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Pd:lc,qa=!1,s=l(a,n),qa=!1,jn&&(s=gd(t,l,a,n)),pd(e),s}function pd(e){B.H=Ou;var t=Oe!==null&&Oe.next!==null;if(gl=0,Ze=Oe=se=null,Bi=!1,Nu=0,Nn=null,t)throw Error(c(300));e===null||Ke||(e=e.dependencies,e!==null&&Ai(e)&&(Ke=!0))}function gd(e,t,l,a){se=e;var n=0;do{if(jn&&(Nn=null),Nu=0,jn=!1,25<=n)throw Error(c(301));if(n+=1,Ze=Oe=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}B.H=eh,s=t(l,a)}while(jn);return s}function Yp(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Tu(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(se.flags|=1024),t}function Gr(){var e=Qi!==0;return Qi=0,e}function Xr(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Zr(e){if(Bi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bi=!1}gl=0,Ze=Oe=se=null,jn=!1,Nu=Qi=0,Nn=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?se.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Ye(){if(Oe===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Ze===null?se.memoizedState:Ze.next;if(t!==null)Ze=t,Oe=e;else{if(e===null)throw se.alternate===null?Error(c(467)):Error(c(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Ze===null?se.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Li(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tu(e){var t=Nu;return Nu+=1,Nn===null&&(Nn=[]),e=rd(Nn,e,t),t=se,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Pd:lc),e}function Yi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Tu(e);if(e.$$typeof===q)return lt(e)}throw Error(c(438,String(e)))}function Kr(e){var t=null,l=se.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=se.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Li(),se.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Te;return t.index++,l}function bl(e,t){return typeof t=="function"?t(e):t}function Gi(e){var t=Ye();return Vr(t,Oe,e)}function Vr(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var n=e.baseQueue,s=a.pending;if(s!==null){if(n!==null){var o=n.next;n.next=s.next,s.next=o}t.baseQueue=n=s,a.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var h=o=null,x=null,M=t,H=!1;do{var G=M.lane&-536870913;if(G!==M.lane?(me&G)===G:(gl&G)===G){var _=M.revertLane;if(_===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),G===gn&&(H=!0);else if((gl&_)===_){M=M.next,_===gn&&(H=!0);continue}else G={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},x===null?(h=x=G,o=s):x=x.next=G,se.lanes|=_,Il|=_;G=M.action,qa&&l(s,G),s=M.hasEagerState?M.eagerState:l(s,G)}else _={lane:G,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},x===null?(h=x=_,o=s):x=x.next=_,se.lanes|=G,Il|=G;M=M.next}while(M!==null&&M!==t);if(x===null?o=s:x.next=h,!Ct(s,e.memoizedState)&&(Ke=!0,H&&(l=bn,l!==null)))throw l;e.memoizedState=s,e.baseState=o,e.baseQueue=x,a.lastRenderedState=s}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function kr(e){var t=Ye(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,s=t.memoizedState;if(n!==null){l.pending=null;var o=n=n.next;do s=e(s,o.action),o=o.next;while(o!==n);Ct(s,t.memoizedState)||(Ke=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,a]}function bd(e,t,l){var a=se,n=Ye(),s=ve;if(s){if(l===void 0)throw Error(c(407));l=l()}else l=t();var o=!Ct((Oe||n).memoizedState,l);if(o&&(n.memoizedState=l,Ke=!0),n=n.queue,$r(Ed.bind(null,a,n,e),[e]),n.getSnapshot!==t||o||Ze!==null&&Ze.memoizedState.tag&1){if(a.flags|=2048,Tn(9,{destroy:void 0},Sd.bind(null,a,n,l,t),null),ze===null)throw Error(c(349));s||(gl&127)!==0||xd(a,t,l)}return l}function xd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=se.updateQueue,t===null?(t=Li(),se.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Sd(e,t,l,a){t.value=l,t.getSnapshot=a,jd(t)&&Nd(e)}function Ed(e,t,l){return l(function(){jd(t)&&Nd(e)})}function jd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ct(e,l)}catch{return!0}}function Nd(e){var t=Ra(e,2);t!==null&&bt(t,e,2)}function Jr(e){var t=ct();if(typeof e=="function"){var l=e;if(e=l(),qa){Bl(!0);try{l()}finally{Bl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:e},t}function Td(e,t,l,a){return e.baseState=l,Vr(e,Oe,typeof a=="function"?a:bl)}function Gp(e,t,l,a,n){if(Ki(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){s.listeners.push(o)}};B.T!==null?l(!0):s.isTransition=!1,a(s),l=t.pending,l===null?(s.next=t.pending=s,Cd(t,s)):(s.next=l.next,t.pending=l.next=s)}}function Cd(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var s=B.T,o={};B.T=o;try{var h=l(n,a),x=B.S;x!==null&&x(o,h),Od(e,t,h)}catch(M){Fr(e,t,M)}finally{s!==null&&o.types!==null&&(s.types=o.types),B.T=s}}else try{s=l(n,a),Od(e,t,s)}catch(M){Fr(e,t,M)}}function Od(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Rd(e,t,a)},function(a){return Fr(e,t,a)}):Rd(e,t,l)}function Rd(e,t,l){t.status="fulfilled",t.value=l,Ad(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Cd(e,l)))}function Fr(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Ad(t),t=t.next;while(t!==a)}e.action=null}function Ad(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Md(e,t){return t}function zd(e,t){if(ve){var l=ze.formState;if(l!==null){e:{var a=se;if(ve){if(_e){t:{for(var n=_e,s=Lt;n.nodeType!==8;){if(!s){n=null;break t}if(n=Gt(n.nextSibling),n===null){n=null;break t}}s=n.data,n=s==="F!"||s==="F"?n:null}if(n){_e=Gt(n.nextSibling),a=n.data==="F!";break e}}Xl(a)}a=!1}a&&(t=l[0])}}return l=ct(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Md,lastRenderedState:t},l.queue=a,l=$d.bind(null,se,a),a.dispatch=l,a=Jr(!1),s=tc.bind(null,se,!1,a.queue),a=ct(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Gp.bind(null,se,n,s,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function _d(e){var t=Ye();return Dd(t,Oe,e)}function Dd(e,t,l){if(t=Vr(e,t,Md)[0],e=Gi(bl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Tu(t)}catch(o){throw o===xn?_i:o}else a=t;t=Ye();var n=t.queue,s=n.dispatch;return l!==t.memoizedState&&(se.flags|=2048,Tn(9,{destroy:void 0},Xp.bind(null,n,l),null)),[a,s,e]}function Xp(e,t){e.action=t}function Ud(e){var t=Ye(),l=Oe;if(l!==null)return Dd(t,l,e);Ye(),t=t.memoizedState,l=Ye();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Tn(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=se.updateQueue,t===null&&(t=Li(),se.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function wd(){return Ye().memoizedState}function Xi(e,t,l,a){var n=ct();se.flags|=e,n.memoizedState=Tn(1|t,{destroy:void 0},l,a===void 0?null:a)}function Zi(e,t,l,a){var n=Ye();a=a===void 0?null:a;var s=n.memoizedState.inst;Oe!==null&&a!==null&&Lr(a,Oe.memoizedState.deps)?n.memoizedState=Tn(t,s,l,a):(se.flags|=e,n.memoizedState=Tn(1|t,s,l,a))}function Hd(e,t){Xi(8390656,8,e,t)}function $r(e,t){Zi(2048,8,e,t)}function Zp(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=Li(),se.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function qd(e){var t=Ye().memoizedState;return Zp({ref:t,nextImpl:e}),function(){if((xe&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Bd(e,t){return Zi(4,2,e,t)}function Qd(e,t){return Zi(4,4,e,t)}function Ld(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Yd(e,t,l){l=l!=null?l.concat([e]):null,Zi(4,4,Ld.bind(null,t,e),l)}function Wr(){}function Gd(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Lr(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Xd(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Lr(t,a[1]))return a[0];if(a=e(),qa){Bl(!0);try{e()}finally{Bl(!1)}}return l.memoizedState=[a,t],a}function Ir(e,t,l){return l===void 0||(gl&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Zh(),se.lanes|=e,Il|=e,l)}function Zd(e,t,l,a){return Ct(l,t)?l:En.current!==null?(e=Ir(e,l,a),Ct(e,t)||(Ke=!0),e):(gl&42)===0||(gl&1073741824)!==0&&(me&261930)===0?(Ke=!0,e.memoizedState=l):(e=Zh(),se.lanes|=e,Il|=e,t)}function Kd(e,t,l,a,n){var s=k.p;k.p=s!==0&&8>s?s:8;var o=B.T,h={};B.T=h,tc(e,!1,t,l);try{var x=n(),M=B.S;if(M!==null&&M(h,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var H=Qp(x,a);Cu(e,t,H,_t(e))}else Cu(e,t,a,_t(e))}catch(G){Cu(e,t,{then:function(){},status:"rejected",reason:G},_t())}finally{k.p=s,o!==null&&h.types!==null&&(o.types=h.types),B.T=o}}function Kp(){}function Pr(e,t,l,a){if(e.tag!==5)throw Error(c(476));var n=Vd(e).queue;Kd(e,n,t,ne,l===null?Kp:function(){return kd(e),l(a)})}function Vd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:ne},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=Vd(e);t.next===null&&(t=e.alternate.memoizedState),Cu(e,t.next.queue,{},_t())}function ec(){return lt(Xu)}function Jd(){return Ye().memoizedState}function Fd(){return Ye().memoizedState}function Vp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=_t();e=Vl(l);var a=kl(t,e,l);a!==null&&(bt(a,t,l),Su(a,t,l)),t={cache:Ar()},e.payload=t;return}t=t.return}}function kp(e,t,l){var a=_t();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ki(e)?Wd(t,l):(l=gr(e,t,l,a),l!==null&&(bt(l,e,a),Id(l,t,a)))}function $d(e,t,l){var a=_t();Cu(e,t,l,a)}function Cu(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))Wd(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,h=s(o,l);if(n.hasEagerState=!0,n.eagerState=h,Ct(h,o))return Ti(e,t,n,0),ze===null&&Ni(),!1}catch{}finally{}if(l=gr(e,t,n,a),l!==null)return bt(l,e,a),Id(l,t,a),!0}return!1}function tc(e,t,l,a){if(a={lane:2,revertLane:Dc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(c(479))}else t=gr(e,l,a,2),t!==null&&bt(t,e,2)}function Ki(e){var t=e.alternate;return e===se||t!==null&&t===se}function Wd(e,t){jn=Bi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Id(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,lf(e,l)}}var Ou={readContext:lt,use:Yi,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};Ou.useEffectEvent=He;var Pd={readContext:lt,use:Yi,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Hd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Xi(4194308,4,Ld.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Xi(4194308,4,e,t)},useInsertionEffect:function(e,t){Xi(4,2,e,t)},useMemo:function(e,t){var l=ct();t=t===void 0?null:t;var a=e();if(qa){Bl(!0);try{e()}finally{Bl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ct();if(l!==void 0){var n=l(t);if(qa){Bl(!0);try{l(t)}finally{Bl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=kp.bind(null,se,e),[a.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Jr(e);var t=e.queue,l=$d.bind(null,se,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Wr,useDeferredValue:function(e,t){var l=ct();return Ir(l,e,t)},useTransition:function(){var e=Jr(!1);return e=Kd.bind(null,se,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=se,n=ct();if(ve){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),ze===null)throw Error(c(349));(me&127)!==0||xd(a,t,l)}n.memoizedState=l;var s={value:l,getSnapshot:t};return n.queue=s,Hd(Ed.bind(null,a,s,e),[e]),a.flags|=2048,Tn(9,{destroy:void 0},Sd.bind(null,a,s,l,t),null),l},useId:function(){var e=ct(),t=ze.identifierPrefix;if(ve){var l=al,a=ll;l=(a&~(1<<32-Tt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Qi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Lp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ec,useFormState:zd,useActionState:zd,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=tc.bind(null,se,!0,l),l.dispatch=t,[e,t]},useMemoCache:Kr,useCacheRefresh:function(){return ct().memoizedState=Vp.bind(null,se)},useEffectEvent:function(e){var t=ct(),l={impl:e};return t.memoizedState=l,function(){if((xe&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},lc={readContext:lt,use:Yi,useCallback:Gd,useContext:lt,useEffect:$r,useImperativeHandle:Yd,useInsertionEffect:Bd,useLayoutEffect:Qd,useMemo:Xd,useReducer:Gi,useRef:wd,useState:function(){return Gi(bl)},useDebugValue:Wr,useDeferredValue:function(e,t){var l=Ye();return Zd(l,Oe.memoizedState,e,t)},useTransition:function(){var e=Gi(bl)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Tu(e),t]},useSyncExternalStore:bd,useId:Jd,useHostTransitionStatus:ec,useFormState:_d,useActionState:_d,useOptimistic:function(e,t){var l=Ye();return Td(l,Oe,e,t)},useMemoCache:Kr,useCacheRefresh:Fd};lc.useEffectEvent=qd;var eh={readContext:lt,use:Yi,useCallback:Gd,useContext:lt,useEffect:$r,useImperativeHandle:Yd,useInsertionEffect:Bd,useLayoutEffect:Qd,useMemo:Xd,useReducer:kr,useRef:wd,useState:function(){return kr(bl)},useDebugValue:Wr,useDeferredValue:function(e,t){var l=Ye();return Oe===null?Ir(l,e,t):Zd(l,Oe.memoizedState,e,t)},useTransition:function(){var e=kr(bl)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Tu(e),t]},useSyncExternalStore:bd,useId:Jd,useHostTransitionStatus:ec,useFormState:Ud,useActionState:Ud,useOptimistic:function(e,t){var l=Ye();return Oe!==null?Td(l,Oe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Kr,useCacheRefresh:Fd};eh.useEffectEvent=qd;function ac(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:g({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var nc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=_t(),n=Vl(a);n.payload=t,l!=null&&(n.callback=l),t=kl(e,n,a),t!==null&&(bt(t,e,a),Su(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=_t(),n=Vl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=kl(e,n,a),t!==null&&(bt(t,e,a),Su(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=_t(),a=Vl(l);a.tag=2,t!=null&&(a.callback=t),t=kl(e,a,l),t!==null&&(bt(t,e,l),Su(t,e,l))}};function th(e,t,l,a,n,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,o):t.prototype&&t.prototype.isPureReactComponent?!hu(l,a)||!hu(n,s):!0}function lh(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&nc.enqueueReplaceState(t,t.state,null)}function Ba(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=g({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function ah(e){ji(e)}function nh(e){console.error(e)}function uh(e){ji(e)}function Vi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ih(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function uc(e,t,l){return l=Vl(l),l.tag=3,l.payload={element:null},l.callback=function(){Vi(e,t)},l}function sh(e){return e=Vl(e),e.tag=3,e}function rh(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var s=a.value;e.payload=function(){return n(s)},e.callback=function(){ih(t,l,a)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){ih(t,l,a),typeof n!="function"&&(Pl===null?Pl=new Set([this]):Pl.add(this));var h=a.stack;this.componentDidCatch(a.value,{componentStack:h!==null?h:""})})}function Jp(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pn(t,l,n,!0),l=Rt.current,l!==null){switch(l.tag){case 31:case 13:return Yt===null?ns():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Di?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Mc(e,a,n)),!1;case 22:return l.flags|=65536,a===Di?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Mc(e,a,n)),!1}throw Error(c(435,l.tag))}return Mc(e,a,n),ns(),!1}if(ve)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Nr&&(e=Error(c(422),{cause:a}),vu(qt(e,l)))):(a!==Nr&&(t=Error(c(423),{cause:a}),vu(qt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=qt(a,l),n=uc(e.stateNode,a,n),wr(e,n),qe!==4&&(qe=2)),!1;var s=Error(c(520),{cause:a});if(s=qt(s,l),wu===null?wu=[s]:wu.push(s),qe!==4&&(qe=2),t===null)return!0;a=qt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=uc(l.stateNode,a,e),wr(l,e),!1;case 1:if(t=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Pl===null||!Pl.has(s))))return l.flags|=65536,n&=-n,l.lanes|=n,n=sh(n),rh(n,e,l,a),wr(l,n),!1}l=l.return}while(l!==null);return!1}var ic=Error(c(461)),Ke=!1;function at(e,t,l,a){t.child=e===null?dd(t,null,l,a):Ha(t,e.child,l,a)}function ch(e,t,l,a,n){l=l.render;var s=t.ref;if("ref"in a){var o={};for(var h in a)h!=="ref"&&(o[h]=a[h])}else o=a;return _a(t),a=Yr(e,t,l,o,s,n),h=Gr(),e!==null&&!Ke?(Xr(e,t,n),xl(e,t,n)):(ve&&h&&Er(t),t.flags|=1,at(e,t,a,n),t.child)}function oh(e,t,l,a,n){if(e===null){var s=l.type;return typeof s=="function"&&!br(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,fh(e,t,s,a,n)):(e=Oi(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!mc(e,n)){var o=s.memoizedProps;if(l=l.compare,l=l!==null?l:hu,l(o,a)&&e.ref===t.ref)return xl(e,t,n)}return t.flags|=1,e=ml(s,a),e.ref=t.ref,e.return=t,t.child=e}function fh(e,t,l,a,n){if(e!==null){var s=e.memoizedProps;if(hu(s,a)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=a=s,mc(e,n))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,xl(e,t,n)}return sc(e,t,l,a,n)}function dh(e,t,l,a){var n=a.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~s}else a=0,t.child=null;return hh(e,t,s,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&zi(t,s!==null?s.cachePool:null),s!==null?yd(t,s):qr(),vd(t);else return a=t.lanes=536870912,hh(e,t,s!==null?s.baseLanes|l:l,l,a)}else s!==null?(zi(t,s.cachePool),yd(t,s),Fl(),t.memoizedState=null):(e!==null&&zi(t,null),qr(),Fl());return at(e,t,n,l),t.child}function Ru(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function hh(e,t,l,a,n){var s=zr();return s=s===null?null:{parent:Xe._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&zi(t,null),qr(),vd(t),e!==null&&pn(e,t,a,!0),t.childLanes=n,null}function ki(e,t){return t=Fi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mh(e,t,l){return Ha(t,e.child,null,l),e=ki(t,t.pendingProps),e.flags|=2,At(t),t.memoizedState=null,e}function Fp(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=ki(t,a),t.lanes=536870912,Ru(null,e);if(Qr(t),(e=_e)?(e=Cm(e,Lt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yl!==null?{id:ll,overflow:al}:null,retryLane:536870912,hydrationErrors:null},l=Wf(e),l.return=t,t.child=l,tt=t,_e=null)):e=null,e===null)throw Xl(t);return t.lanes=536870912,null}return ki(t,a)}var s=e.memoizedState;if(s!==null){var o=s.dehydrated;if(Qr(t),n)if(t.flags&256)t.flags&=-257,t=mh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Ke||pn(e,t,l,!1),n=(l&e.childLanes)!==0,Ke||n){if(a=ze,a!==null&&(o=af(a,l),o!==0&&o!==s.retryLane))throw s.retryLane=o,Ra(e,o),bt(a,e,o),ic;ns(),t=mh(e,t,l)}else e=s.treeContext,_e=Gt(o.nextSibling),tt=t,ve=!0,Gl=null,Lt=!1,e!==null&&ed(t,e),t=ki(t,a),t.flags|=4096;return t}return e=ml(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ji(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function sc(e,t,l,a,n){return _a(t),l=Yr(e,t,l,a,void 0,n),a=Gr(),e!==null&&!Ke?(Xr(e,t,n),xl(e,t,n)):(ve&&a&&Er(t),t.flags|=1,at(e,t,l,n),t.child)}function yh(e,t,l,a,n,s){return _a(t),t.updateQueue=null,l=gd(t,a,l,n),pd(e),a=Gr(),e!==null&&!Ke?(Xr(e,t,s),xl(e,t,s)):(ve&&a&&Er(t),t.flags|=1,at(e,t,l,s),t.child)}function vh(e,t,l,a,n){if(_a(t),t.stateNode===null){var s=hn,o=l.contextType;typeof o=="object"&&o!==null&&(s=lt(o)),s=new l(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=nc,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},Dr(t),o=l.contextType,s.context=typeof o=="object"&&o!==null?lt(o):hn,s.state=t.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(ac(t,l,o,a),s.state=t.memoizedState),typeof l.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&&nc.enqueueReplaceState(s,s.state,null),ju(t,a,s,n),Eu(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var h=t.memoizedProps,x=Ba(l,h);s.props=x;var M=s.context,H=l.contextType;o=hn,typeof H=="object"&&H!==null&&(o=lt(H));var G=l.getDerivedStateFromProps;H=typeof G=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,H||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||M!==o)&&lh(t,s,a,o),Kl=!1;var _=t.memoizedState;s.state=_,ju(t,a,s,n),Eu(),M=t.memoizedState,h||_!==M||Kl?(typeof G=="function"&&(ac(t,l,G,a),M=t.memoizedState),(x=Kl||th(t,l,x,a,_,M,o))?(H||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=a,t.memoizedState=M),s.props=a,s.state=M,s.context=o,a=x):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,Ur(e,t),o=t.memoizedProps,H=Ba(l,o),s.props=H,G=t.pendingProps,_=s.context,M=l.contextType,x=hn,typeof M=="object"&&M!==null&&(x=lt(M)),h=l.getDerivedStateFromProps,(M=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==G||_!==x)&&lh(t,s,a,x),Kl=!1,_=t.memoizedState,s.state=_,ju(t,a,s,n),Eu();var D=t.memoizedState;o!==G||_!==D||Kl||e!==null&&e.dependencies!==null&&Ai(e.dependencies)?(typeof h=="function"&&(ac(t,l,h,a),D=t.memoizedState),(H=Kl||th(t,l,H,a,_,D,x)||e!==null&&e.dependencies!==null&&Ai(e.dependencies))?(M||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,D,x),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,D,x)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=D),s.props=a,s.state=D,s.context=x,a=H):(typeof s.componentDidUpdate!="function"||o===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,Ji(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=Ha(t,e.child,null,n),t.child=Ha(t,null,l,n)):at(e,t,l,n),t.memoizedState=s.state,e=t.child):e=xl(e,t,n),e}function ph(e,t,l,a){return Ma(),t.flags|=256,at(e,t,l,a),t.child}var rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cc(e){return{baseLanes:e,cachePool:id()}}function oc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=zt),e}function gh(e,t,l){var a=t.pendingProps,n=!1,s=(t.flags&128)!==0,o;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(Le.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(n?Jl(t):Fl(),(e=_e)?(e=Cm(e,Lt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yl!==null?{id:ll,overflow:al}:null,retryLane:536870912,hydrationErrors:null},l=Wf(e),l.return=t,t.child=l,tt=t,_e=null)):e=null,e===null)throw Xl(t);return Vc(e)?t.lanes=32:t.lanes=536870912,null}var h=a.children;return a=a.fallback,n?(Fl(),n=t.mode,h=Fi({mode:"hidden",children:h},n),a=Aa(a,n,l,null),h.return=t,a.return=t,h.sibling=a,t.child=h,a=t.child,a.memoizedState=cc(l),a.childLanes=oc(e,o,l),t.memoizedState=rc,Ru(null,a)):(Jl(t),fc(t,h))}var x=e.memoizedState;if(x!==null&&(h=x.dehydrated,h!==null)){if(s)t.flags&256?(Jl(t),t.flags&=-257,t=dc(e,t,l)):t.memoizedState!==null?(Fl(),t.child=e.child,t.flags|=128,t=null):(Fl(),h=a.fallback,n=t.mode,a=Fi({mode:"visible",children:a.children},n),h=Aa(h,n,l,null),h.flags|=2,a.return=t,h.return=t,a.sibling=h,t.child=a,Ha(t,e.child,null,l),a=t.child,a.memoizedState=cc(l),a.childLanes=oc(e,o,l),t.memoizedState=rc,t=Ru(null,a));else if(Jl(t),Vc(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var M=o.dgst;o=M,a=Error(c(419)),a.stack="",a.digest=o,vu({value:a,source:null,stack:null}),t=dc(e,t,l)}else if(Ke||pn(e,t,l,!1),o=(l&e.childLanes)!==0,Ke||o){if(o=ze,o!==null&&(a=af(o,l),a!==0&&a!==x.retryLane))throw x.retryLane=a,Ra(e,a),bt(o,e,a),ic;Kc(h)||ns(),t=dc(e,t,l)}else Kc(h)?(t.flags|=192,t.child=e.child,t=null):(e=x.treeContext,_e=Gt(h.nextSibling),tt=t,ve=!0,Gl=null,Lt=!1,e!==null&&ed(t,e),t=fc(t,a.children),t.flags|=4096);return t}return n?(Fl(),h=a.fallback,n=t.mode,x=e.child,M=x.sibling,a=ml(x,{mode:"hidden",children:a.children}),a.subtreeFlags=x.subtreeFlags&65011712,M!==null?h=ml(M,h):(h=Aa(h,n,l,null),h.flags|=2),h.return=t,a.return=t,a.sibling=h,t.child=a,Ru(null,a),a=t.child,h=e.child.memoizedState,h===null?h=cc(l):(n=h.cachePool,n!==null?(x=Xe._currentValue,n=n.parent!==x?{parent:x,pool:x}:n):n=id(),h={baseLanes:h.baseLanes|l,cachePool:n}),a.memoizedState=h,a.childLanes=oc(e,o,l),t.memoizedState=rc,Ru(e.child,a)):(Jl(t),l=e.child,e=l.sibling,l=ml(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=l,t.memoizedState=null,l)}function fc(e,t){return t=Fi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fi(e,t){return e=Ot(22,e,null,t),e.lanes=0,e}function dc(e,t,l){return Ha(t,e.child,null,l),e=fc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bh(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Or(e.return,t,l)}function hc(e,t,l,a,n,s){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=l,o.tailMode=n,o.treeForkCount=s)}function xh(e,t,l){var a=t.pendingProps,n=a.revealOrder,s=a.tail;a=a.children;var o=Le.current,h=(o&2)!==0;if(h?(o=o&1|2,t.flags|=128):o&=1,J(Le,o),at(e,t,a,l),a=ve?yu:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bh(e,l,t);else if(e.tag===19)bh(e,l,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(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&qi(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),hc(t,!1,n,l,s,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&qi(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}hc(t,!0,l,null,s,a);break;case"together":hc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function xl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Il|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pn(e,t,l,!1),(l&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,l=ml(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ml(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function mc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ai(e)))}function $p(e,t,l){switch(t.tag){case 3:rt(t,t.stateNode.containerInfo),Zl(t,Xe,e.memoizedState.cache),Ma();break;case 27:case 5:eu(t);break;case 4:rt(t,t.stateNode.containerInfo);break;case 10:Zl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qr(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Jl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?gh(e,t,l):(Jl(t),e=xl(e,t,l),e!==null?e.sibling:null);Jl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(pn(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return xh(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),J(Le,Le.current),a)break;return null;case 22:return t.lanes=0,dh(e,t,l,t.pendingProps);case 24:Zl(t,Xe,e.memoizedState.cache)}return xl(e,t,l)}function Sh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!mc(e,l)&&(t.flags&128)===0)return Ke=!1,$p(e,t,l);Ke=(e.flags&131072)!==0}else Ke=!1,ve&&(t.flags&1048576)!==0&&Pf(t,yu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ua(t.elementType),t.type=e,typeof e=="function")br(e)?(a=Ba(e,a),t.tag=1,t=vh(null,t,e,a,l)):(t.tag=0,t=sc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===O){t.tag=11,t=ch(null,t,e,a,l);break e}else if(n===$){t.tag=14,t=oh(null,t,e,a,l);break e}}throw t=dt(e)||e,Error(c(306,t,""))}}return t;case 0:return sc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Ba(a,t.pendingProps),vh(e,t,a,n,l);case 3:e:{if(rt(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var s=t.memoizedState;n=s.element,Ur(e,t),ju(t,a,null,l);var o=t.memoizedState;if(a=o.cache,Zl(t,Xe,a),a!==s.cache&&Rr(t,[Xe],l,!0),Eu(),a=o.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=ph(e,t,a,l);break e}else if(a!==n){n=qt(Error(c(424)),t),vu(n),t=ph(e,t,a,l);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(_e=Gt(e.firstChild),tt=t,ve=!0,Gl=null,Lt=!0,l=dd(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ma(),a===n){t=xl(e,t,l);break e}at(e,t,a,l)}t=t.child}return t;case 26:return Ji(e,t),e===null?(l=_m(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(l=t.type,e=t.pendingProps,a=fs(oe.current).createElement(l),a[et]=t,a[ht]=e,nt(a,l,e),We(a),t.stateNode=a):t.memoizedState=_m(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return eu(t),e===null&&ve&&(a=t.stateNode=Am(t.type,t.pendingProps,oe.current),tt=t,Lt=!0,n=_e,aa(t.type)?(kc=n,_e=Gt(a.firstChild)):_e=n),at(e,t,t.pendingProps.children,l),Ji(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((n=a=_e)&&(a=C0(a,t.type,t.pendingProps,Lt),a!==null?(t.stateNode=a,tt=t,_e=Gt(a.firstChild),Lt=!1,n=!0):n=!1),n||Xl(t)),eu(t),n=t.type,s=t.pendingProps,o=e!==null?e.memoizedProps:null,a=s.children,Gc(n,s)?a=null:o!==null&&Gc(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=Yr(e,t,Yp,null,null,l),Xu._currentValue=n),Ji(e,t),at(e,t,a,l),t.child;case 6:return e===null&&ve&&((e=l=_e)&&(l=O0(l,t.pendingProps,Lt),l!==null?(t.stateNode=l,tt=t,_e=null,e=!0):e=!1),e||Xl(t)),null;case 13:return gh(e,t,l);case 4:return rt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ha(t,null,a,l):at(e,t,a,l),t.child;case 11:return ch(e,t,t.type,t.pendingProps,l);case 7:return at(e,t,t.pendingProps,l),t.child;case 8:return at(e,t,t.pendingProps.children,l),t.child;case 12:return at(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Zl(t,t.type,a.value),at(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,_a(t),n=lt(n),a=a(n),t.flags|=1,at(e,t,a,l),t.child;case 14:return oh(e,t,t.type,t.pendingProps,l);case 15:return fh(e,t,t.type,t.pendingProps,l);case 19:return xh(e,t,l);case 31:return Fp(e,t,l);case 22:return dh(e,t,l,t.pendingProps);case 24:return _a(t),a=lt(Xe),e===null?(n=zr(),n===null&&(n=ze,s=Ar(),n.pooledCache=s,s.refCount++,s!==null&&(n.pooledCacheLanes|=l),n=s),t.memoizedState={parent:a,cache:n},Dr(t),Zl(t,Xe,n)):((e.lanes&l)!==0&&(Ur(e,t),ju(t,null,null,l),Eu()),n=e.memoizedState,s=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Zl(t,Xe,a)):(a=s.cache,Zl(t,Xe,a),a!==n.cache&&Rr(t,[Xe],l,!0))),at(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Sl(e){e.flags|=4}function yc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Jh())e.flags|=8192;else throw wa=Di,_r}else e.flags&=-16777217}function Eh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!qm(t))if(Jh())e.flags|=8192;else throw wa=Di,_r}function $i(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ef():536870912,e.lanes|=t,An|=t)}function Au(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Wp(e,t,l){var a=t.pendingProps;switch(jr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return De(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),pl(Xe),Qe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(vn(t)?Sl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Tr())),De(t),null;case 26:var n=t.type,s=t.memoizedState;return e===null?(Sl(t),s!==null?(De(t),Eh(t,s)):(De(t),yc(t,n,null,a,l))):s?s!==e.memoizedState?(Sl(t),De(t),Eh(t,s)):(De(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Sl(t),De(t),yc(t,n,e,a,l)),null;case 27:if(si(t),l=oe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return De(t),null}e=I.current,vn(t)?td(t):(e=Am(n,a,l),t.stateNode=e,Sl(t))}return De(t),null;case 5:if(si(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return De(t),null}if(s=I.current,vn(t))td(t);else{var o=fs(oe.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":s=o.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?o.createElement(n,{is:a.is}):o.createElement(n)}}s[et]=t,s[ht]=a;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(nt(s,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Sl(t)}}return De(t),yc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=oe.current,vn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=tt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[et]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||gm(e.nodeValue,l)),e||Xl(t,!0)}else e=fs(e).createTextNode(a),e[et]=t,t.stateNode=e}return De(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=vn(t),l!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[et]=t}else Ma(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),e=!1}else l=Tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(At(t),t):(At(t),null);if((t.flags&128)!==0)throw Error(c(558))}return De(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=vn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(c(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));n[et]=t}else Ma(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),n=!1}else n=Tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(At(t),t):(At(t),null)}return At(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),$i(t,t.updateQueue),De(t),null);case 4:return Qe(),e===null&&qc(t.stateNode.containerInfo),De(t),null;case 10:return pl(t.type),De(t),null;case 19:if(X(Le),a=t.memoizedState,a===null)return De(t),null;if(n=(t.flags&128)!==0,s=a.rendering,s===null)if(n)Au(a,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=qi(e),s!==null){for(t.flags|=128,Au(a,!1),e=s.updateQueue,t.updateQueue=e,$i(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)$f(l,e),l=l.sibling;return J(Le,Le.current&1|2),ve&&yl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&jt()>ts&&(t.flags|=128,n=!0,Au(a,!1),t.lanes=4194304)}else{if(!n)if(e=qi(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,$i(t,e),Au(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!ve)return De(t),null}else 2*jt()-a.renderingStartTime>ts&&l!==536870912&&(t.flags|=128,n=!0,Au(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=jt(),e.sibling=null,l=Le.current,J(Le,n?l&1|2:l&1),ve&&yl(t,a.treeForkCount),e):(De(t),null);case 22:case 23:return At(t),Br(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),l=t.updateQueue,l!==null&&$i(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&X(Da),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),pl(Xe),De(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Ip(e,t){switch(jr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pl(Xe),Qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return si(t),null;case 31:if(t.memoizedState!==null){if(At(t),t.alternate===null)throw Error(c(340));Ma()}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));Ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(Le),null;case 4:return Qe(),null;case 10:return pl(t.type),null;case 22:case 23:return At(t),Br(),e!==null&&X(Da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pl(Xe),null;case 25:return null;default:return null}}function jh(e,t){switch(jr(t),t.tag){case 3:pl(Xe),Qe();break;case 26:case 27:case 5:si(t);break;case 4:Qe();break;case 31:t.memoizedState!==null&&At(t);break;case 13:At(t);break;case 19:X(Le);break;case 10:pl(t.type);break;case 22:case 23:At(t),Br(),e!==null&&X(Da);break;case 24:pl(Xe)}}function Mu(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var s=l.create,o=l.inst;a=s(),o.destroy=a}l=l.next}while(l!==n)}}catch(h){Ne(t,t.return,h)}}function $l(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var s=n.next;a=s;do{if((a.tag&e)===e){var o=a.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,n=t;var x=l,M=h;try{M()}catch(H){Ne(n,x,H)}}}a=a.next}while(a!==s)}}catch(H){Ne(t,t.return,H)}}function Nh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{md(t,l)}catch(a){Ne(e,e.return,a)}}}function Th(e,t,l){l.props=Ba(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ne(e,t,a)}}function zu(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Ne(e,t,n)}}function nl(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ne(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Ne(e,t,n)}else l.current=null}function Ch(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Ne(e,e.return,n)}}function vc(e,t,l){try{var a=e.stateNode;x0(a,e.type,l,t),a[ht]=t}catch(n){Ne(e,e.return,n)}}function Oh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&aa(e.type)||e.tag===4}function pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oh(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&&aa(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 gc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=dl));else if(a!==4&&(a===27&&aa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(gc(e,t,l),e=e.sibling;e!==null;)gc(e,t,l),e=e.sibling}function Wi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&aa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Wi(e,t,l),e=e.sibling;e!==null;)Wi(e,t,l),e=e.sibling}function Rh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);nt(t,a,l),t[et]=e,t[ht]=l}catch(s){Ne(e,e.return,s)}}var El=!1,Ve=!1,bc=!1,Ah=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function Pp(e,t){if(e=e.containerInfo,Lc=gs,e=Yf(e),dr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var o=0,h=-1,x=-1,M=0,H=0,G=e,_=null;t:for(;;){for(var D;G!==l||n!==0&&G.nodeType!==3||(h=o+n),G!==s||a!==0&&G.nodeType!==3||(x=o+a),G.nodeType===3&&(o+=G.nodeValue.length),(D=G.firstChild)!==null;)_=G,G=D;for(;;){if(G===e)break t;if(_===l&&++M===n&&(h=o),_===s&&++H===a&&(x=o),(D=G.nextSibling)!==null)break;G=_,_=G.parentNode}G=D}l=h===-1||x===-1?null:{start:h,end:x}}else l=null}l=l||{start:0,end:0}}else l=null;for(Yc={focusedElem:e,selectionRange:l},gs=!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(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,l=t,n=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var W=Ba(l.type,n);e=a.getSnapshotBeforeUpdate(W,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(le){Ne(l,l.return,le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Zc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zc(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 Mh(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Nl(e,l),a&4&&Mu(5,l);break;case 1:if(Nl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(o){Ne(l,l.return,o)}else{var n=Ba(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Ne(l,l.return,o)}}a&64&&Nh(l),a&512&&zu(l,l.return);break;case 3:if(Nl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{md(e,t)}catch(o){Ne(l,l.return,o)}}break;case 27:t===null&&a&4&&Rh(l);case 26:case 5:Nl(e,l),t===null&&a&4&&Ch(l),a&512&&zu(l,l.return);break;case 12:Nl(e,l);break;case 31:Nl(e,l),a&4&&Dh(e,l);break;case 13:Nl(e,l),a&4&&Uh(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=r0.bind(null,l),R0(e,l))));break;case 22:if(a=l.memoizedState!==null||El,!a){t=t!==null&&t.memoizedState!==null||Ve,n=El;var s=Ve;El=a,(Ve=t)&&!s?Tl(e,l,(l.subtreeFlags&8772)!==0):Nl(e,l),El=n,Ve=s}break;case 30:break;default:Nl(e,l)}}function zh(e){var t=e.alternate;t!==null&&(e.alternate=null,zh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Fs(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 Ue=null,yt=!1;function jl(e,t,l){for(l=l.child;l!==null;)_h(e,t,l),l=l.sibling}function _h(e,t,l){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(tu,l)}catch{}switch(l.tag){case 26:Ve||nl(l,t),jl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ve||nl(l,t);var a=Ue,n=yt;aa(l.type)&&(Ue=l.stateNode,yt=!1),jl(e,t,l),Lu(l.stateNode),Ue=a,yt=n;break;case 5:Ve||nl(l,t);case 6:if(a=Ue,n=yt,Ue=null,jl(e,t,l),Ue=a,yt=n,Ue!==null)if(yt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(l.stateNode)}catch(s){Ne(l,t,s)}else try{Ue.removeChild(l.stateNode)}catch(s){Ne(l,t,s)}break;case 18:Ue!==null&&(yt?(e=Ue,Nm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),qn(e)):Nm(Ue,l.stateNode));break;case 4:a=Ue,n=yt,Ue=l.stateNode.containerInfo,yt=!0,jl(e,t,l),Ue=a,yt=n;break;case 0:case 11:case 14:case 15:$l(2,l,t),Ve||$l(4,l,t),jl(e,t,l);break;case 1:Ve||(nl(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Th(l,t,a)),jl(e,t,l);break;case 21:jl(e,t,l);break;case 22:Ve=(a=Ve)||l.memoizedState!==null,jl(e,t,l),Ve=a;break;default:jl(e,t,l)}}function Dh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qn(e)}catch(l){Ne(t,t.return,l)}}}function Uh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qn(e)}catch(l){Ne(t,t.return,l)}}function e0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ah),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ah),t;default:throw Error(c(435,e.tag))}}function Ii(e,t){var l=e0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=c0.bind(null,e,a);a.then(n,n)}})}function vt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],s=e,o=t,h=o;e:for(;h!==null;){switch(h.tag){case 27:if(aa(h.type)){Ue=h.stateNode,yt=!1;break e}break;case 5:Ue=h.stateNode,yt=!1;break e;case 3:case 4:Ue=h.stateNode.containerInfo,yt=!0;break e}h=h.return}if(Ue===null)throw Error(c(160));_h(s,o,n),Ue=null,yt=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wh(t,e),t=t.sibling}var Ft=null;function wh(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),pt(e),a&4&&($l(3,e,e.return),Mu(3,e),$l(5,e,e.return));break;case 1:vt(t,e),pt(e),a&512&&(Ve||l===null||nl(l,l.return)),a&64&&El&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ft;if(vt(t,e),pt(e),a&512&&(Ve||l===null||nl(l,l.return)),a&4){var s=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":s=n.getElementsByTagName("title")[0],(!s||s[nu]||s[et]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=n.createElement(a),n.head.insertBefore(s,n.querySelector("head > title"))),nt(s,a,l),s[et]=e,We(s),a=s;break e;case"link":var o=wm("link","href",n).get(a+(l.href||""));if(o){for(var h=0;h<o.length;h++)if(s=o[h],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){o.splice(h,1);break t}}s=n.createElement(a),nt(s,a,l),n.head.appendChild(s);break;case"meta":if(o=wm("meta","content",n).get(a+(l.content||""))){for(h=0;h<o.length;h++)if(s=o[h],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){o.splice(h,1);break t}}s=n.createElement(a),nt(s,a,l),n.head.appendChild(s);break;default:throw Error(c(468,a))}s[et]=e,We(s),a=s}e.stateNode=a}else Hm(n,e.type,e.stateNode);else e.stateNode=Um(n,a,e.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?Hm(n,e.type,e.stateNode):Um(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&vc(e,e.memoizedProps,l.memoizedProps)}break;case 27:vt(t,e),pt(e),a&512&&(Ve||l===null||nl(l,l.return)),l!==null&&a&4&&vc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(vt(t,e),pt(e),a&512&&(Ve||l===null||nl(l,l.return)),e.flags&32){n=e.stateNode;try{un(n,"")}catch(W){Ne(e,e.return,W)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,vc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(bc=!0);break;case 6:if(vt(t,e),pt(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(W){Ne(e,e.return,W)}}break;case 3:if(ms=null,n=Ft,Ft=ds(t.containerInfo),vt(t,e),Ft=n,pt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{qn(t.containerInfo)}catch(W){Ne(e,e.return,W)}bc&&(bc=!1,Hh(e));break;case 4:a=Ft,Ft=ds(e.stateNode.containerInfo),vt(t,e),pt(e),Ft=a;break;case 12:vt(t,e),pt(e);break;case 31:vt(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ii(e,a)));break;case 13:vt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(es=jt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ii(e,a)));break;case 22:n=e.memoizedState!==null;var x=l!==null&&l.memoizedState!==null,M=El,H=Ve;if(El=M||n,Ve=H||x,vt(t,e),Ve=H,El=M,pt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||x||El||Ve||Qa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){x=l=t;try{if(s=x.stateNode,n)o=s.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{h=x.stateNode;var G=x.memoizedProps.style,_=G!=null&&G.hasOwnProperty("display")?G.display:null;h.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(W){Ne(x,x.return,W)}}}else if(t.tag===6){if(l===null){x=t;try{x.stateNode.nodeValue=n?"":x.memoizedProps}catch(W){Ne(x,x.return,W)}}}else if(t.tag===18){if(l===null){x=t;try{var D=x.stateNode;n?Tm(D,!0):Tm(x.stateNode,!1)}catch(W){Ne(x,x.return,W)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Ii(e,l))));break;case 19:vt(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ii(e,a)));break;case 30:break;case 21:break;default:vt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Oh(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var n=l.stateNode,s=pc(e);Wi(e,s,n);break;case 5:var o=l.stateNode;l.flags&32&&(un(o,""),l.flags&=-33);var h=pc(e);Wi(e,h,o);break;case 3:case 4:var x=l.stateNode.containerInfo,M=pc(e);gc(e,M,x);break;default:throw Error(c(161))}}catch(H){Ne(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Hh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Nl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Mh(e,t.alternate,t),t=t.sibling}function Qa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$l(4,t,t.return),Qa(t);break;case 1:nl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Th(t,t.return,l),Qa(t);break;case 27:Lu(t.stateNode);case 26:case 5:nl(t,t.return),Qa(t);break;case 22:t.memoizedState===null&&Qa(t);break;case 30:Qa(t);break;default:Qa(t)}e=e.sibling}}function Tl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,s=t,o=s.flags;switch(s.tag){case 0:case 11:case 15:Tl(n,s,l),Mu(4,s);break;case 1:if(Tl(n,s,l),a=s,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(M){Ne(a,a.return,M)}if(a=s,n=a.updateQueue,n!==null){var h=a.stateNode;try{var x=n.shared.hiddenCallbacks;if(x!==null)for(n.shared.hiddenCallbacks=null,n=0;n<x.length;n++)hd(x[n],h)}catch(M){Ne(a,a.return,M)}}l&&o&64&&Nh(s),zu(s,s.return);break;case 27:Rh(s);case 26:case 5:Tl(n,s,l),l&&a===null&&o&4&&Ch(s),zu(s,s.return);break;case 12:Tl(n,s,l);break;case 31:Tl(n,s,l),l&&o&4&&Dh(n,s);break;case 13:Tl(n,s,l),l&&o&4&&Uh(n,s);break;case 22:s.memoizedState===null&&Tl(n,s,l),zu(s,s.return);break;case 30:break;default:Tl(n,s,l)}t=t.sibling}}function xc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&pu(l))}function Sc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pu(e))}function $t(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qh(e,t,l,a),t=t.sibling}function qh(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:$t(e,t,l,a),n&2048&&Mu(9,t);break;case 1:$t(e,t,l,a);break;case 3:$t(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pu(e)));break;case 12:if(n&2048){$t(e,t,l,a),e=t.stateNode;try{var s=t.memoizedProps,o=s.id,h=s.onPostCommit;typeof h=="function"&&h(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(x){Ne(t,t.return,x)}}else $t(e,t,l,a);break;case 31:$t(e,t,l,a);break;case 13:$t(e,t,l,a);break;case 23:break;case 22:s=t.stateNode,o=t.alternate,t.memoizedState!==null?s._visibility&2?$t(e,t,l,a):_u(e,t):s._visibility&2?$t(e,t,l,a):(s._visibility|=2,Cn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&xc(o,t);break;case 24:$t(e,t,l,a),n&2048&&Sc(t.alternate,t);break;default:$t(e,t,l,a)}}function Cn(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,o=t,h=l,x=a,M=o.flags;switch(o.tag){case 0:case 11:case 15:Cn(s,o,h,x,n),Mu(8,o);break;case 23:break;case 22:var H=o.stateNode;o.memoizedState!==null?H._visibility&2?Cn(s,o,h,x,n):_u(s,o):(H._visibility|=2,Cn(s,o,h,x,n)),n&&M&2048&&xc(o.alternate,o);break;case 24:Cn(s,o,h,x,n),n&&M&2048&&Sc(o.alternate,o);break;default:Cn(s,o,h,x,n)}t=t.sibling}}function _u(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:_u(l,a),n&2048&&xc(a.alternate,a);break;case 24:_u(l,a),n&2048&&Sc(a.alternate,a);break;default:_u(l,a)}t=t.sibling}}var Du=8192;function On(e,t,l){if(e.subtreeFlags&Du)for(e=e.child;e!==null;)Bh(e,t,l),e=e.sibling}function Bh(e,t,l){switch(e.tag){case 26:On(e,t,l),e.flags&Du&&e.memoizedState!==null&&L0(l,Ft,e.memoizedState,e.memoizedProps);break;case 5:On(e,t,l);break;case 3:case 4:var a=Ft;Ft=ds(e.stateNode.containerInfo),On(e,t,l),Ft=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Du,Du=16777216,On(e,t,l),Du=a):On(e,t,l));break;default:On(e,t,l)}}function Qh(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 Uu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,Yh(a,e)}Qh(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:Uu(e),e.flags&2048&&$l(9,e,e.return);break;case 3:Uu(e);break;case 12:Uu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Pi(e)):Uu(e);break;default:Uu(e)}}function Pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,Yh(a,e)}Qh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$l(8,t,t.return),Pi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Pi(t));break;default:Pi(t)}e=e.sibling}}function Yh(e,t){for(;Ie!==null;){var l=Ie;switch(l.tag){case 0:case 11:case 15:$l(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:pu(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ie=a;else e:for(l=e;Ie!==null;){a=Ie;var n=a.sibling,s=a.return;if(zh(a),a===l){Ie=null;break e}if(n!==null){n.return=s,Ie=n;break e}Ie=s}}}var t0={getCacheForType:function(e){var t=lt(Xe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return lt(Xe).controller.signal}},l0=typeof WeakMap=="function"?WeakMap:Map,xe=0,ze=null,fe=null,me=0,je=0,Mt=null,Wl=!1,Rn=!1,Ec=!1,Cl=0,qe=0,Il=0,La=0,jc=0,zt=0,An=0,wu=null,gt=null,Nc=!1,es=0,Gh=0,ts=1/0,ls=null,Pl=null,Fe=0,ea=null,Mn=null,Ol=0,Tc=0,Cc=null,Xh=null,Hu=0,Oc=null;function _t(){return(xe&2)!==0&&me!==0?me&-me:B.T!==null?Dc():nf()}function Zh(){if(zt===0)if((me&536870912)===0||ve){var e=oi;oi<<=1,(oi&3932160)===0&&(oi=262144),zt=e}else zt=536870912;return e=Rt.current,e!==null&&(e.flags|=32),zt}function bt(e,t,l){(e===ze&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(zn(e,0),ta(e,me,zt,!1)),au(e,l),((xe&2)===0||e!==ze)&&(e===ze&&((xe&2)===0&&(La|=l),qe===4&&ta(e,me,zt,!1)),ul(e))}function Kh(e,t,l){if((xe&6)!==0)throw Error(c(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||lu(e,t),n=a?u0(e,t):Ac(e,t,!0),s=a;do{if(n===0){Rn&&!a&&ta(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!a0(l)){n=Ac(e,t,!1),s=!1;continue}if(n===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 h=e;n=wu;var x=h.current.memoizedState.isDehydrated;if(x&&(zn(h,o).flags|=256),o=Ac(h,o,!1),o!==2){if(Ec&&!x){h.errorRecoveryDisabledLanes|=s,La|=s,n=4;break e}s=gt,gt=n,s!==null&&(gt===null?gt=s:gt.push.apply(gt,s))}n=o}if(s=!1,n!==2)continue}}if(n===1){zn(e,0),ta(e,t,0,!0);break}e:{switch(a=e,s=n,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:ta(a,t,zt,!Wl);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(n=es+300-jt(),10<n)){if(ta(a,t,zt,!Wl),di(a,0,!0)!==0)break e;Ol=t,a.timeoutHandle=Em(Vh.bind(null,a,l,gt,ls,Nc,t,zt,La,An,Wl,s,"Throttled",-0,0),n);break e}Vh(a,l,gt,ls,Nc,t,zt,La,An,Wl,s,null,-0,0)}}break}while(!0);ul(e)}function Vh(e,t,l,a,n,s,o,h,x,M,H,G,_,D){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dl},Bh(t,s,G);var W=(s&62914560)===s?es-jt():(s&4194048)===s?Gh-jt():0;if(W=Y0(G,W),W!==null){Ol=s,e.cancelPendingCommit=W(em.bind(null,e,t,s,l,a,n,o,h,x,H,G,null,_,D)),ta(e,s,o,!M);return}}em(e,t,s,l,a,n,o,h,x)}function a0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],s=n.getSnapshot;n=n.value;try{if(!Ct(s(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 ta(e,t,l,a){t&=~jc,t&=~La,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var s=31-Tt(n),o=1<<s;a[s]=-1,n&=~o}l!==0&&tf(e,l,t)}function as(){return(xe&6)===0?(qu(0),!1):!0}function Rc(){if(fe!==null){if(je===0)var e=fe.return;else e=fe,vl=za=null,Zr(e),Sn=null,bu=0,e=fe;for(;e!==null;)jh(e.alternate,e),e=e.return;fe=null}}function zn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,j0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ol=0,Rc(),ze=e,fe=l=ml(e.current,null),me=t,je=0,Mt=null,Wl=!1,Rn=lu(e,t),Ec=!1,An=zt=jc=La=Il=qe=0,gt=wu=null,Nc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-Tt(a),s=1<<n;t|=e[n],a&=~s}return Cl=t,Ni(),l}function kh(e,t){se=null,B.H=Ou,t===xn||t===_i?(t=cd(),je=3):t===_r?(t=cd(),je=4):je=t===ic?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,fe===null&&(qe=1,Vi(e,qt(t,e.current)))}function Jh(){var e=Rt.current;return e===null?!0:(me&4194048)===me?Yt===null:(me&62914560)===me||(me&536870912)!==0?e===Yt:!1}function Fh(){var e=B.H;return B.H=Ou,e===null?Ou:e}function $h(){var e=B.A;return B.A=t0,e}function ns(){qe=4,Wl||(me&4194048)!==me&&Rt.current!==null||(Rn=!0),(Il&134217727)===0&&(La&134217727)===0||ze===null||ta(ze,me,zt,!1)}function Ac(e,t,l){var a=xe;xe|=2;var n=Fh(),s=$h();(ze!==e||me!==t)&&(ls=null,zn(e,t)),t=!1;var o=qe;e:do try{if(je!==0&&fe!==null){var h=fe,x=Mt;switch(je){case 8:Rc(),o=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var M=je;if(je=0,Mt=null,_n(e,h,x,M),l&&Rn){o=0;break e}break;default:M=je,je=0,Mt=null,_n(e,h,x,M)}}n0(),o=qe;break}catch(H){kh(e,H)}while(!0);return t&&e.shellSuspendCounter++,vl=za=null,xe=a,B.H=n,B.A=s,fe===null&&(ze=null,me=0,Ni()),o}function n0(){for(;fe!==null;)Wh(fe)}function u0(e,t){var l=xe;xe|=2;var a=Fh(),n=$h();ze!==e||me!==t?(ls=null,ts=jt()+500,zn(e,t)):Rn=lu(e,t);e:do try{if(je!==0&&fe!==null){t=fe;var s=Mt;t:switch(je){case 1:je=0,Mt=null,_n(e,t,s,1);break;case 2:case 9:if(sd(s)){je=0,Mt=null,Ih(t);break}t=function(){je!==2&&je!==9||ze!==e||(je=7),ul(e)},s.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:sd(s)?(je=0,Mt=null,Ih(t)):(je=0,Mt=null,_n(e,t,s,7));break;case 5:var o=null;switch(fe.tag){case 26:o=fe.memoizedState;case 5:case 27:var h=fe;if(o?qm(o):h.stateNode.complete){je=0,Mt=null;var x=h.sibling;if(x!==null)fe=x;else{var M=h.return;M!==null?(fe=M,us(M)):fe=null}break t}}je=0,Mt=null,_n(e,t,s,5);break;case 6:je=0,Mt=null,_n(e,t,s,6);break;case 8:Rc(),qe=6;break e;default:throw Error(c(462))}}i0();break}catch(H){kh(e,H)}while(!0);return vl=za=null,B.H=a,B.A=n,xe=l,fe!==null?0:(ze=null,me=0,Ni(),qe)}function i0(){for(;fe!==null&&!Av();)Wh(fe)}function Wh(e){var t=Sh(e.alternate,e,Cl);e.memoizedProps=e.pendingProps,t===null?us(e):fe=t}function Ih(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=yh(l,t,t.pendingProps,t.type,void 0,me);break;case 11:t=yh(l,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Zr(t);default:jh(l,t),t=fe=$f(t,Cl),t=Sh(l,t,Cl)}e.memoizedProps=e.pendingProps,t===null?us(e):fe=t}function _n(e,t,l,a){vl=za=null,Zr(t),Sn=null,bu=0;var n=t.return;try{if(Jp(e,n,t,l,me)){qe=1,Vi(e,qt(l,e.current)),fe=null;return}}catch(s){if(n!==null)throw fe=n,s;qe=1,Vi(e,qt(l,e.current)),fe=null;return}t.flags&32768?(ve||a===1?e=!0:Rn||(me&536870912)!==0?e=!1:(Wl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Rt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Ph(t,e)):us(t)}function us(e){var t=e;do{if((t.flags&32768)!==0){Ph(t,Wl);return}e=t.return;var l=Wp(t.alternate,t,Cl);if(l!==null){fe=l;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);qe===0&&(qe=5)}function Ph(e,t){do{var l=Ip(e.alternate,e);if(l!==null){l.flags&=32767,fe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=l}while(e!==null);qe=6,fe=null}function em(e,t,l,a,n,s,o,h,x){e.cancelPendingCommit=null;do is();while(Fe!==0);if((xe&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(s=t.lanes|t.childLanes,s|=pr,Qv(e,l,s,o,h,x),e===ze&&(fe=ze=null,me=0),Mn=t,ea=e,Ol=l,Tc=s,Cc=n,Xh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,o0(ri,function(){return um(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=B.T,B.T=null,n=k.p,k.p=2,o=xe,xe|=4;try{Pp(e,t,l)}finally{xe=o,k.p=n,B.T=a}}Fe=1,tm(),lm(),am()}}function tm(){if(Fe===1){Fe=0;var e=ea,t=Mn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=B.T,B.T=null;var a=k.p;k.p=2;var n=xe;xe|=4;try{wh(t,e);var s=Yc,o=Yf(e.containerInfo),h=s.focusedElem,x=s.selectionRange;if(o!==h&&h&&h.ownerDocument&&Lf(h.ownerDocument.documentElement,h)){if(x!==null&&dr(h)){var M=x.start,H=x.end;if(H===void 0&&(H=M),"selectionStart"in h)h.selectionStart=M,h.selectionEnd=Math.min(H,h.value.length);else{var G=h.ownerDocument||document,_=G&&G.defaultView||window;if(_.getSelection){var D=_.getSelection(),W=h.textContent.length,le=Math.min(x.start,W),Ae=x.end===void 0?le:Math.min(x.end,W);!D.extend&&le>Ae&&(o=Ae,Ae=le,le=o);var C=Qf(h,le),j=Qf(h,Ae);if(C&&j&&(D.rangeCount!==1||D.anchorNode!==C.node||D.anchorOffset!==C.offset||D.focusNode!==j.node||D.focusOffset!==j.offset)){var A=G.createRange();A.setStart(C.node,C.offset),D.removeAllRanges(),le>Ae?(D.addRange(A),D.extend(j.node,j.offset)):(A.setEnd(j.node,j.offset),D.addRange(A))}}}}for(G=[],D=h;D=D.parentNode;)D.nodeType===1&&G.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<G.length;h++){var Q=G[h];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}gs=!!Lc,Yc=Lc=null}finally{xe=n,k.p=a,B.T=l}}e.current=t,Fe=2}}function lm(){if(Fe===2){Fe=0;var e=ea,t=Mn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=B.T,B.T=null;var a=k.p;k.p=2;var n=xe;xe|=4;try{Mh(e,t.alternate,t)}finally{xe=n,k.p=a,B.T=l}}Fe=3}}function am(){if(Fe===4||Fe===3){Fe=0,Mv();var e=ea,t=Mn,l=Ol,a=Xh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,Mn=ea=null,nm(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Pl=null),ks(l),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(tu,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=B.T,n=k.p,k.p=2,B.T=null;try{for(var s=e.onRecoverableError,o=0;o<a.length;o++){var h=a[o];s(h.value,{componentStack:h.stack})}}finally{B.T=t,k.p=n}}(Ol&3)!==0&&is(),ul(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Oc?Hu++:(Hu=0,Oc=e):Hu=0,qu(0)}}function nm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pu(t)))}function is(){return tm(),lm(),am(),um()}function um(){if(Fe!==5)return!1;var e=ea,t=Tc;Tc=0;var l=ks(Ol),a=B.T,n=k.p;try{k.p=32>l?32:l,B.T=null,l=Cc,Cc=null;var s=ea,o=Ol;if(Fe=0,Mn=ea=null,Ol=0,(xe&6)!==0)throw Error(c(331));var h=xe;if(xe|=4,Lh(s.current),qh(s,s.current,o,l),xe=h,qu(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(tu,s)}catch{}return!0}finally{k.p=n,B.T=a,nm(e,t)}}function im(e,t,l){t=qt(l,t),t=uc(e.stateNode,t,2),e=kl(e,t,2),e!==null&&(au(e,2),ul(e))}function Ne(e,t,l){if(e.tag===3)im(e,e,l);else for(;t!==null;){if(t.tag===3){im(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Pl===null||!Pl.has(a))){e=qt(l,e),l=sh(2),a=kl(t,l,2),a!==null&&(rh(l,a,t,e),au(a,2),ul(a));break}}t=t.return}}function Mc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new l0;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Ec=!0,n.add(l),e=s0.bind(null,e,t,l),t.then(e,e))}function s0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ze===e&&(me&l)===l&&(qe===4||qe===3&&(me&62914560)===me&&300>jt()-es?(xe&2)===0&&zn(e,0):jc|=l,An===me&&(An=0)),ul(e)}function sm(e,t){t===0&&(t=ef()),e=Ra(e,t),e!==null&&(au(e,t),ul(e))}function r0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),sm(e,l)}function c0(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),sm(e,l)}function o0(e,t){return Xs(e,t)}var ss=null,Dn=null,zc=!1,rs=!1,_c=!1,la=0;function ul(e){e!==Dn&&e.next===null&&(Dn===null?ss=Dn=e:Dn=Dn.next=e),rs=!0,zc||(zc=!0,d0())}function qu(e,t){if(!_c&&rs){_c=!0;do for(var l=!1,a=ss;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var s=0;else{var o=a.suspendedLanes,h=a.pingedLanes;s=(1<<31-Tt(42|e)+1)-1,s&=n&~(o&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,fm(a,s))}else s=me,s=di(a,a===ze?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||lu(a,s)||(l=!0,fm(a,s));a=a.next}while(l);_c=!1}}function f0(){rm()}function rm(){rs=zc=!1;var e=0;la!==0&&E0()&&(e=la);for(var t=jt(),l=null,a=ss;a!==null;){var n=a.next,s=cm(a,t);s===0?(a.next=null,l===null?ss=n:l.next=n,n===null&&(Dn=l)):(l=a,(e!==0||(s&3)!==0)&&(rs=!0)),a=n}Fe!==0&&Fe!==5||qu(e),la!==0&&(la=0)}function cm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var o=31-Tt(s),h=1<<o,x=n[o];x===-1?((h&l)===0||(h&a)!==0)&&(n[o]=Bv(h,t)):x<=t&&(e.expiredLanes|=h),s&=~h}if(t=ze,l=me,l=di(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Zs(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||lu(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Zs(a),ks(l)){case 2:case 8:l=Io;break;case 32:l=ri;break;case 268435456:l=Po;break;default:l=ri}return a=om.bind(null,e),l=Xs(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Zs(a),e.callbackPriority=2,e.callbackNode=null,2}function om(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(is()&&e.callbackNode!==l)return null;var a=me;return a=di(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Kh(e,a,t),cm(e,jt()),e.callbackNode!=null&&e.callbackNode===l?om.bind(null,e):null)}function fm(e,t){if(is())return null;Kh(e,t,!0)}function d0(){N0(function(){(xe&6)!==0?Xs(Wo,f0):rm()})}function Dc(){if(la===0){var e=gn;e===0&&(e=ci,ci<<=1,(ci&261888)===0&&(ci=256)),la=e}return la}function dm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vi(""+e)}function hm(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function h0(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var s=dm((n[ht]||null).action),o=a.submitter;o&&(t=(t=o[ht]||null)?dm(t.formAction):o.getAttribute("formAction"),t!==null&&(s=t,o=null));var h=new xi("action","action",null,a,n);e.push({event:h,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(la!==0){var x=o?hm(n,o):new FormData(n);Pr(l,{pending:!0,data:x,method:n.method,action:s},null,x)}}else typeof s=="function"&&(h.preventDefault(),x=o?hm(n,o):new FormData(n),Pr(l,{pending:!0,data:x,method:n.method,action:s},s,x))},currentTarget:n}]})}}for(var Uc=0;Uc<vr.length;Uc++){var wc=vr[Uc],m0=wc.toLowerCase(),y0=wc[0].toUpperCase()+wc.slice(1);Jt(m0,"on"+y0)}Jt(Zf,"onAnimationEnd"),Jt(Kf,"onAnimationIteration"),Jt(Vf,"onAnimationStart"),Jt("dblclick","onDoubleClick"),Jt("focusin","onFocus"),Jt("focusout","onBlur"),Jt(zp,"onTransitionRun"),Jt(_p,"onTransitionStart"),Jt(Dp,"onTransitionCancel"),Jt(kf,"onTransitionEnd"),an("onMouseEnter",["mouseout","mouseover"]),an("onMouseLeave",["mouseout","mouseover"]),an("onPointerEnter",["pointerout","pointerover"]),an("onPointerLeave",["pointerout","pointerover"]),Na("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Na("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Na("onBeforeInput",["compositionend","keypress","textInput","paste"]),Na("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bu="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(" "),v0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bu));function mm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var o=a.length-1;0<=o;o--){var h=a[o],x=h.instance,M=h.currentTarget;if(h=h.listener,x!==s&&n.isPropagationStopped())break e;s=h,n.currentTarget=M;try{s(n)}catch(H){ji(H)}n.currentTarget=null,s=x}else for(o=0;o<a.length;o++){if(h=a[o],x=h.instance,M=h.currentTarget,h=h.listener,x!==s&&n.isPropagationStopped())break e;s=h,n.currentTarget=M;try{s(n)}catch(H){ji(H)}n.currentTarget=null,s=x}}}}function de(e,t){var l=t[Js];l===void 0&&(l=t[Js]=new Set);var a=e+"__bubble";l.has(a)||(ym(t,e,2,!1),l.add(a))}function Hc(e,t,l){var a=0;t&&(a|=4),ym(l,e,a,t)}var cs="_reactListening"+Math.random().toString(36).slice(2);function qc(e){if(!e[cs]){e[cs]=!0,rf.forEach(function(l){l!=="selectionchange"&&(v0.has(l)||Hc(l,!1,e),Hc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cs]||(t[cs]=!0,Hc("selectionchange",!1,t))}}function ym(e,t,l,a){switch(Zm(t)){case 2:var n=Z0;break;case 8:n=K0;break;default:n=Ic}l=n.bind(null,t,l,e),n=void 0,!ar||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Bc(e,t,l,a,n){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var o=a.tag;if(o===3||o===4){var h=a.stateNode.containerInfo;if(h===n)break;if(o===4)for(o=a.return;o!==null;){var x=o.tag;if((x===3||x===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;h!==null;){if(o=en(h),o===null)return;if(x=o.tag,x===5||x===6||x===26||x===27){a=s=o;continue e}h=h.parentNode}}a=a.return}xf(function(){var M=s,H=tr(l),G=[];e:{var _=Jf.get(e);if(_!==void 0){var D=xi,W=e;switch(e){case"keypress":if(gi(l)===0)break e;case"keydown":case"keyup":D=cp;break;case"focusin":W="focus",D=sr;break;case"focusout":W="blur",D=sr;break;case"beforeblur":case"afterblur":D=sr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=jf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=Wv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=dp;break;case Zf:case Kf:case Vf:D=ep;break;case kf:D=mp;break;case"scroll":case"scrollend":D=Fv;break;case"wheel":D=vp;break;case"copy":case"cut":case"paste":D=lp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Tf;break;case"toggle":case"beforetoggle":D=gp}var le=(t&4)!==0,Ae=!le&&(e==="scroll"||e==="scrollend"),C=le?_!==null?_+"Capture":null:_;le=[];for(var j=M,A;j!==null;){var Q=j;if(A=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||A===null||C===null||(Q=iu(j,C),Q!=null&&le.push(Qu(j,Q,A))),Ae)break;j=j.return}0<le.length&&(_=new D(_,W,null,l,H),G.push({event:_,listeners:le}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",_&&l!==er&&(W=l.relatedTarget||l.fromElement)&&(en(W)||W[Pa]))break e;if((D||_)&&(_=H.window===H?H:(_=H.ownerDocument)?_.defaultView||_.parentWindow:window,D?(W=l.relatedTarget||l.toElement,D=M,W=W?en(W):null,W!==null&&(Ae=m(W),le=W.tag,W!==Ae||le!==5&&le!==27&&le!==6)&&(W=null)):(D=null,W=M),D!==W)){if(le=jf,Q="onMouseLeave",C="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(le=Tf,Q="onPointerLeave",C="onPointerEnter",j="pointer"),Ae=D==null?_:uu(D),A=W==null?_:uu(W),_=new le(Q,j+"leave",D,l,H),_.target=Ae,_.relatedTarget=A,Q=null,en(H)===M&&(le=new le(C,j+"enter",W,l,H),le.target=A,le.relatedTarget=Ae,Q=le),Ae=Q,D&&W)t:{for(le=p0,C=D,j=W,A=0,Q=C;Q;Q=le(Q))A++;Q=0;for(var te=j;te;te=le(te))Q++;for(;0<A-Q;)C=le(C),A--;for(;0<Q-A;)j=le(j),Q--;for(;A--;){if(C===j||j!==null&&C===j.alternate){le=C;break t}C=le(C),j=le(j)}le=null}else le=null;D!==null&&vm(G,_,D,le,!1),W!==null&&Ae!==null&&vm(G,Ae,W,le,!0)}}e:{if(_=M?uu(M):window,D=_.nodeName&&_.nodeName.toLowerCase(),D==="select"||D==="input"&&_.type==="file")var ge=Df;else if(zf(_))if(Uf)ge=Rp;else{ge=Cp;var P=Tp}else D=_.nodeName,!D||D.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?M&&Ps(M.elementType)&&(ge=Df):ge=Op;if(ge&&(ge=ge(e,M))){_f(G,ge,l,H);break e}P&&P(e,_,M),e==="focusout"&&M&&_.type==="number"&&M.memoizedProps.value!=null&&Is(_,"number",_.value)}switch(P=M?uu(M):window,e){case"focusin":(zf(P)||P.contentEditable==="true")&&(on=P,hr=M,mu=null);break;case"focusout":mu=hr=on=null;break;case"mousedown":mr=!0;break;case"contextmenu":case"mouseup":case"dragend":mr=!1,Gf(G,l,H);break;case"selectionchange":if(Mp)break;case"keydown":case"keyup":Gf(G,l,H)}var re;if(cr)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 cn?Af(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(Cf&&l.locale!=="ko"&&(cn||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&cn&&(re=Sf()):(Ll=H,nr="value"in Ll?Ll.value:Ll.textContent,cn=!0)),P=os(M,ye),0<P.length&&(ye=new Nf(ye,e,null,l,H),G.push({event:ye,listeners:P}),re?ye.data=re:(re=Mf(l),re!==null&&(ye.data=re)))),(re=xp?Sp(e,l):Ep(e,l))&&(ye=os(M,"onBeforeInput"),0<ye.length&&(P=new Nf("onBeforeInput","beforeinput",null,l,H),G.push({event:P,listeners:ye}),P.data=re)),h0(G,e,M,l,H)}mm(G,t)})}function Qu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function os(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=iu(e,l),n!=null&&a.unshift(Qu(e,n,s)),n=iu(e,t),n!=null&&a.push(Qu(e,n,s))),e.tag===3)return a;e=e.return}return[]}function p0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vm(e,t,l,a,n){for(var s=t._reactName,o=[];l!==null&&l!==a;){var h=l,x=h.alternate,M=h.stateNode;if(h=h.tag,x!==null&&x===a)break;h!==5&&h!==26&&h!==27||M===null||(x=M,n?(M=iu(l,s),M!=null&&o.unshift(Qu(l,M,x))):n||(M=iu(l,s),M!=null&&o.push(Qu(l,M,x)))),l=l.return}o.length!==0&&e.push({event:t,listeners:o})}var g0=/\r\n?/g,b0=/\u0000|\uFFFD/g;function pm(e){return(typeof e=="string"?e:""+e).replace(g0,`
|
|
49
|
+
`).replace(b0,"")}function gm(e,t){return t=pm(t),pm(e)===t}function Re(e,t,l,a,n,s){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||un(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&un(e,""+a);break;case"className":mi(e,"class",a);break;case"tabIndex":mi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":mi(e,l,a);break;case"style":gf(e,a,s);break;case"data":if(t!=="object"){mi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=vi(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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"&&(l==="formAction"?(t!=="input"&&Re(e,t,"name",n.name,n,null),Re(e,t,"formEncType",n.formEncType,n,null),Re(e,t,"formMethod",n.formMethod,n,null),Re(e,t,"formTarget",n.formTarget,n,null)):(Re(e,t,"encType",n.encType,n,null),Re(e,t,"method",n.method,n,null),Re(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=vi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=dl);break;case"onScroll":a!=null&&de("scroll",e);break;case"onScrollEnd":a!=null&&de("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=vi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":de("beforetoggle",e),de("toggle",e),hi(e,"popover",a);break;case"xlinkActuate":fl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":fl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":fl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":fl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":fl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":fl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":fl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":fl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":fl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":hi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=kv.get(l)||l,hi(e,l,a))}}function Qc(e,t,l,a,n,s){switch(l){case"style":gf(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"children":typeof a=="string"?un(e,a):(typeof a=="number"||typeof a=="bigint")&&un(e,""+a);break;case"onScroll":a!=null&&de("scroll",e);break;case"onScrollEnd":a!=null&&de("scrollend",e);break;case"onClick":a!=null&&(e.onclick=dl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!cf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),s=e[ht]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,n),typeof a=="function")){typeof s!="function"&&s!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):hi(e,l,a)}}}function nt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var a=!1,n=!1,s;for(s in l)if(l.hasOwnProperty(s)){var o=l[s];if(o!=null)switch(s){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,s,o,l,null)}}n&&Re(e,t,"srcSet",l.srcSet,l,null),a&&Re(e,t,"src",l.src,l,null);return;case"input":de("invalid",e);var h=s=o=n=null,x=null,M=null;for(a in l)if(l.hasOwnProperty(a)){var H=l[a];if(H!=null)switch(a){case"name":n=H;break;case"type":o=H;break;case"checked":x=H;break;case"defaultChecked":M=H;break;case"value":s=H;break;case"defaultValue":h=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(c(137,t));break;default:Re(e,t,a,H,l,null)}}mf(e,s,h,x,M,o,n,!1);return;case"select":de("invalid",e),a=o=s=null;for(n in l)if(l.hasOwnProperty(n)&&(h=l[n],h!=null))switch(n){case"value":s=h;break;case"defaultValue":o=h;break;case"multiple":a=h;default:Re(e,t,n,h,l,null)}t=s,l=o,e.multiple=!!a,t!=null?nn(e,!!a,t,!1):l!=null&&nn(e,!!a,l,!0);return;case"textarea":de("invalid",e),s=n=a=null;for(o in l)if(l.hasOwnProperty(o)&&(h=l[o],h!=null))switch(o){case"value":a=h;break;case"defaultValue":n=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:Re(e,t,o,h,l,null)}vf(e,a,n,s);return;case"option":for(x in l)if(l.hasOwnProperty(x)&&(a=l[x],a!=null))switch(x){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Re(e,t,x,a,l,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(a=0;a<Bu.length;a++)de(Bu[a],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("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(M in l)if(l.hasOwnProperty(M)&&(a=l[M],a!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,M,a,l,null)}return;default:if(Ps(t)){for(H in l)l.hasOwnProperty(H)&&(a=l[H],a!==void 0&&Qc(e,t,H,a,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!=null&&Re(e,t,h,a,l,null))}function x0(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,s=null,o=null,h=null,x=null,M=null,H=null;for(D in l){var G=l[D];if(l.hasOwnProperty(D)&&G!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":x=G;default:a.hasOwnProperty(D)||Re(e,t,D,null,a,G)}}for(var _ in a){var D=a[_];if(G=l[_],a.hasOwnProperty(_)&&(D!=null||G!=null))switch(_){case"type":s=D;break;case"name":n=D;break;case"checked":M=D;break;case"defaultChecked":H=D;break;case"value":o=D;break;case"defaultValue":h=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(c(137,t));break;default:D!==G&&Re(e,t,_,D,a,G)}}Ws(e,o,h,x,M,H,s,n);return;case"select":D=o=h=_=null;for(s in l)if(x=l[s],l.hasOwnProperty(s)&&x!=null)switch(s){case"value":break;case"multiple":D=x;default:a.hasOwnProperty(s)||Re(e,t,s,null,a,x)}for(n in a)if(s=a[n],x=l[n],a.hasOwnProperty(n)&&(s!=null||x!=null))switch(n){case"value":_=s;break;case"defaultValue":h=s;break;case"multiple":o=s;default:s!==x&&Re(e,t,n,s,a,x)}t=h,l=o,a=D,_!=null?nn(e,!!l,_,!1):!!a!=!!l&&(t!=null?nn(e,!!l,t,!0):nn(e,!!l,l?[]:"",!1));return;case"textarea":D=_=null;for(h in l)if(n=l[h],l.hasOwnProperty(h)&&n!=null&&!a.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Re(e,t,h,null,a,n)}for(o in a)if(n=a[o],s=l[o],a.hasOwnProperty(o)&&(n!=null||s!=null))switch(o){case"value":_=n;break;case"defaultValue":D=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(c(91));break;default:n!==s&&Re(e,t,o,n,a,s)}yf(e,_,D);return;case"option":for(var W in l)if(_=l[W],l.hasOwnProperty(W)&&_!=null&&!a.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Re(e,t,W,null,a,_)}for(x in a)if(_=a[x],D=l[x],a.hasOwnProperty(x)&&_!==D&&(_!=null||D!=null))switch(x){case"selected":e.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:Re(e,t,x,_,a,D)}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 le in l)_=l[le],l.hasOwnProperty(le)&&_!=null&&!a.hasOwnProperty(le)&&Re(e,t,le,null,a,_);for(M in a)if(_=a[M],D=l[M],a.hasOwnProperty(M)&&_!==D&&(_!=null||D!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(c(137,t));break;default:Re(e,t,M,_,a,D)}return;default:if(Ps(t)){for(var Ae in l)_=l[Ae],l.hasOwnProperty(Ae)&&_!==void 0&&!a.hasOwnProperty(Ae)&&Qc(e,t,Ae,void 0,a,_);for(H in a)_=a[H],D=l[H],!a.hasOwnProperty(H)||_===D||_===void 0&&D===void 0||Qc(e,t,H,_,a,D);return}}for(var C in l)_=l[C],l.hasOwnProperty(C)&&_!=null&&!a.hasOwnProperty(C)&&Re(e,t,C,null,a,_);for(G in a)_=a[G],D=l[G],!a.hasOwnProperty(G)||_===D||_==null&&D==null||Re(e,t,G,_,a,D)}function bm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function S0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],s=n.transferSize,o=n.initiatorType,h=n.duration;if(s&&h&&bm(o)){for(o=0,h=n.responseEnd,a+=1;a<l.length;a++){var x=l[a],M=x.startTime;if(M>h)break;var H=x.transferSize,G=x.initiatorType;H&&bm(G)&&(x=x.responseEnd,o+=H*(x<h?1:(h-M)/(x-M)))}if(--a,t+=8*(s+o)/(n.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 Lc=null,Yc=null;function fs(e){return e.nodeType===9?e:e.ownerDocument}function xm(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 Sm(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 Gc(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 Xc=null;function E0(){var e=window.event;return e&&e.type==="popstate"?e===Xc?!1:(Xc=e,!0):(Xc=null,!1)}var Em=typeof setTimeout=="function"?setTimeout:void 0,j0=typeof clearTimeout=="function"?clearTimeout:void 0,jm=typeof Promise=="function"?Promise:void 0,N0=typeof queueMicrotask=="function"?queueMicrotask:typeof jm<"u"?function(e){return jm.resolve(null).then(e).catch(T0)}:Em;function T0(e){setTimeout(function(){throw e})}function aa(e){return e==="head"}function Nm(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),qn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Lu(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Lu(l);for(var s=l.firstChild;s;){var o=s.nextSibling,h=s.nodeName;s[nu]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=o}}else l==="body"&&Lu(e.ownerDocument.body);l=n}while(l);qn(t)}function Tm(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Zc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Zc(l),Fs(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function C0(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[nu])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!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Gt(e.nextSibling),e===null)break}return null}function O0(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Gt(e.nextSibling),e===null))return null;return e}function Cm(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 Kc(e){return e.data==="$?"||e.data==="$~"}function Vc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function R0(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}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 kc=null;function Om(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Gt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Rm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Am(e,t,l){switch(t=fs(l),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 Lu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Fs(e)}var Xt=new Map,Mm=new Set;function ds(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Rl=k.d;k.d={f:A0,r:M0,D:z0,C:_0,L:D0,m:U0,X:H0,S:w0,M:q0};function A0(){var e=Rl.f(),t=as();return e||t}function M0(e){var t=tn(e);t!==null&&t.tag===5&&t.type==="form"?kd(t):Rl.r(e)}var Un=typeof document>"u"?null:document;function zm(e,t,l){var a=Un;if(a&&typeof t=="string"&&t){var n=wt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Mm.has(n)||(Mm.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),nt(t,"link",e),We(t),a.head.appendChild(t)))}}function z0(e){Rl.D(e),zm("dns-prefetch",e,null)}function _0(e,t){Rl.C(e,t),zm("preconnect",e,t)}function D0(e,t,l){Rl.L(e,t,l);var a=Un;if(a&&e&&t){var n='link[rel="preload"][as="'+wt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+wt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+wt(l.imageSizes)+'"]')):n+='[href="'+wt(e)+'"]';var s=n;switch(t){case"style":s=wn(e);break;case"script":s=Hn(e)}Xt.has(s)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Xt.set(s,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Yu(s))||t==="script"&&a.querySelector(Gu(s))||(t=a.createElement("link"),nt(t,"link",e),We(t),a.head.appendChild(t)))}}function U0(e,t){Rl.m(e,t);var l=Un;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+wt(a)+'"][href="'+wt(e)+'"]',s=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Hn(e)}if(!Xt.has(s)&&(e=g({rel:"modulepreload",href:e},t),Xt.set(s,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Gu(s)))return}a=l.createElement("link"),nt(a,"link",e),We(a),l.head.appendChild(a)}}}function w0(e,t,l){Rl.S(e,t,l);var a=Un;if(a&&e){var n=ln(a).hoistableStyles,s=wn(e);t=t||"default";var o=n.get(s);if(!o){var h={loading:0,preload:null};if(o=a.querySelector(Yu(s)))h.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Xt.get(s))&&Jc(e,l);var x=o=a.createElement("link");We(x),nt(x,"link",e),x._p=new Promise(function(M,H){x.onload=M,x.onerror=H}),x.addEventListener("load",function(){h.loading|=1}),x.addEventListener("error",function(){h.loading|=2}),h.loading|=4,hs(o,t,a)}o={type:"stylesheet",instance:o,count:1,state:h},n.set(s,o)}}}function H0(e,t){Rl.X(e,t);var l=Un;if(l&&e){var a=ln(l).hoistableScripts,n=Hn(e),s=a.get(n);s||(s=l.querySelector(Gu(n)),s||(e=g({src:e,async:!0},t),(t=Xt.get(n))&&Fc(e,t),s=l.createElement("script"),We(s),nt(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function q0(e,t){Rl.M(e,t);var l=Un;if(l&&e){var a=ln(l).hoistableScripts,n=Hn(e),s=a.get(n);s||(s=l.querySelector(Gu(n)),s||(e=g({src:e,async:!0,type:"module"},t),(t=Xt.get(n))&&Fc(e,t),s=l.createElement("script"),We(s),nt(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function _m(e,t,l,a){var n=(n=oe.current)?ds(n):null;if(!n)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=ln(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var s=ln(n).hoistableStyles,o=s.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,o),(s=n.querySelector(Yu(e)))&&!s._p&&(o.instance=s,o.state.loading=5),Xt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Xt.set(e,l),s||B0(n,e,l,o.state))),t&&a===null)throw Error(c(528,""));return o}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Hn(l),l=ln(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function wn(e){return'href="'+wt(e)+'"'}function Yu(e){return'link[rel="stylesheet"]['+e+"]"}function Dm(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function B0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),nt(t,"link",l),We(t),e.head.appendChild(t))}function Hn(e){return'[src="'+wt(e)+'"]'}function Gu(e){return"script[async]"+e}function Um(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+wt(l.href)+'"]');if(a)return t.instance=a,We(a),a;var n=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),We(a),nt(a,"style",n),hs(a,l.precedence,e),t.instance=a;case"stylesheet":n=wn(l.href);var s=e.querySelector(Yu(n));if(s)return t.state.loading|=4,t.instance=s,We(s),s;a=Dm(l),(n=Xt.get(n))&&Jc(a,n),s=(e.ownerDocument||e).createElement("link"),We(s);var o=s;return o._p=new Promise(function(h,x){o.onload=h,o.onerror=x}),nt(s,"link",a),t.state.loading|=4,hs(s,l.precedence,e),t.instance=s;case"script":return s=Hn(l.src),(n=e.querySelector(Gu(s)))?(t.instance=n,We(n),n):(a=l,(n=Xt.get(s))&&(a=g({},l),Fc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),We(n),nt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,hs(a,l.precedence,e));return t.instance}function hs(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,s=n,o=0;o<a.length;o++){var h=a[o];if(h.dataset.precedence===t)s=h;else if(s!==n)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Jc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ms=null;function wm(e,t,l){if(ms===null){var a=new Map,n=ms=new Map;n.set(l,a)}else n=ms,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var s=l[n];if(!(s[nu]||s[et]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var o=s.getAttribute(t)||"";o=e+o;var h=a.get(o);h?h.push(s):a.set(o,[s])}}return a}function Hm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Q0(e,t,l){if(l===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 qm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function L0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=wn(a.href),s=t.querySelector(Yu(n));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ys.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=s,We(s);return}s=t.ownerDocument||t,a=Dm(a),(n=Xt.get(n))&&Jc(a,n),s=s.createElement("link"),We(s);var o=s;o._p=new Promise(function(h,x){o.onload=h,o.onerror=x}),nt(s,"link",a),l.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ys.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var $c=0;function Y0(e,t){return e.stylesheets&&e.count===0&&ps(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ps(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&$c===0&&($c=62500*S0());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ps(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>$c?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ys(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ps(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vs=null;function ps(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vs=new Map,t.forEach(G0,e),vs=null,ys.call(e))}function G0(e,t){if(!(t.state.loading&4)){var l=vs.get(e);if(l)var a=l.get(null);else{l=new Map,vs.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var o=n[s];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),a=o)}a&&l.set(null,a)}n=t.instance,o=n.getAttribute("data-precedence"),s=l.get(o)||a,s===a&&l.set(null,n),l.set(o,n),this.count++,a=ys.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),s?s.parentNode.insertBefore(n,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Xu={$$typeof:q,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function X0(e,t,l,a,n,s,o,h,x){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=Ks(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ks(0),this.hiddenUpdates=Ks(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Bm(e,t,l,a,n,s,o,h,x,M,H,G){return e=new X0(e,t,l,o,x,M,H,G,h),t=1,s===!0&&(t|=24),s=Ot(3,null,null,t),e.current=s,s.stateNode=e,t=Ar(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:t},Dr(s),e}function Qm(e){return e?(e=hn,e):hn}function Lm(e,t,l,a,n,s){n=Qm(n),a.context===null?a.context=n:a.pendingContext=n,a=Vl(t),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=kl(e,a,t),l!==null&&(bt(l,e,t),Su(l,e,t))}function Ym(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Wc(e,t){Ym(e,t),(e=e.alternate)&&Ym(e,t)}function Gm(e){if(e.tag===13||e.tag===31){var t=Ra(e,67108864);t!==null&&bt(t,e,67108864),Wc(e,67108864)}}function Xm(e){if(e.tag===13||e.tag===31){var t=_t();t=Vs(t);var l=Ra(e,t);l!==null&&bt(l,e,t),Wc(e,t)}}var gs=!0;function Z0(e,t,l,a){var n=B.T;B.T=null;var s=k.p;try{k.p=2,Ic(e,t,l,a)}finally{k.p=s,B.T=n}}function K0(e,t,l,a){var n=B.T;B.T=null;var s=k.p;try{k.p=8,Ic(e,t,l,a)}finally{k.p=s,B.T=n}}function Ic(e,t,l,a){if(gs){var n=Pc(a);if(n===null)Bc(e,t,a,bs,l),Km(e,a);else if(k0(n,e,t,l,a))a.stopPropagation();else if(Km(e,a),t&4&&-1<V0.indexOf(e)){for(;n!==null;){var s=tn(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var o=ja(s.pendingLanes);if(o!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var x=1<<31-Tt(o);h.entanglements[1]|=x,o&=~x}ul(s),(xe&6)===0&&(ts=jt()+500,qu(0))}}break;case 31:case 13:h=Ra(s,2),h!==null&&bt(h,s,2),as(),Wc(s,2)}if(s=Pc(a),s===null&&Bc(e,t,a,bs,l),s===n)break;n=s}n!==null&&a.stopPropagation()}else Bc(e,t,a,null,l)}}function Pc(e){return e=tr(e),eo(e)}var bs=null;function eo(e){if(bs=null,e=en(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=b(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return bs=e,null}function Zm(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(zv()){case Wo:return 2;case Io:return 8;case ri:case _v:return 32;case Po:return 268435456;default:return 32}default:return 32}}var to=!1,na=null,ua=null,ia=null,Zu=new Map,Ku=new Map,sa=[],V0="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 Km(e,t){switch(e){case"focusin":case"focusout":na=null;break;case"dragenter":case"dragleave":ua=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":Zu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ku.delete(t.pointerId)}}function Vu(e,t,l,a,n,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[n]},t!==null&&(t=tn(t),t!==null&&Gm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function k0(e,t,l,a,n){switch(t){case"focusin":return na=Vu(na,e,t,l,a,n),!0;case"dragenter":return ua=Vu(ua,e,t,l,a,n),!0;case"mouseover":return ia=Vu(ia,e,t,l,a,n),!0;case"pointerover":var s=n.pointerId;return Zu.set(s,Vu(Zu.get(s)||null,e,t,l,a,n)),!0;case"gotpointercapture":return s=n.pointerId,Ku.set(s,Vu(Ku.get(s)||null,e,t,l,a,n)),!0}return!1}function Vm(e){var t=en(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,uf(e.priority,function(){Xm(l)});return}}else if(t===31){if(t=b(l),t!==null){e.blockedOn=t,uf(e.priority,function(){Xm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Pc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);er=a,l.target.dispatchEvent(a),er=null}else return t=tn(l),t!==null&&Gm(t),e.blockedOn=l,!1;t.shift()}return!0}function km(e,t,l){xs(e)&&l.delete(t)}function J0(){to=!1,na!==null&&xs(na)&&(na=null),ua!==null&&xs(ua)&&(ua=null),ia!==null&&xs(ia)&&(ia=null),Zu.forEach(km),Ku.forEach(km)}function Ss(e,t){e.blockedOn===t&&(e.blockedOn=null,to||(to=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,J0)))}var Es=null;function Jm(e){Es!==e&&(Es=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Es===e&&(Es=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(eo(a||l)===null)continue;break}var s=tn(l);s!==null&&(e.splice(t,3),t-=3,Pr(s,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function qn(e){function t(x){return Ss(x,e)}na!==null&&Ss(na,e),ua!==null&&Ss(ua,e),ia!==null&&Ss(ia,e),Zu.forEach(t),Ku.forEach(t);for(var l=0;l<sa.length;l++){var a=sa[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<sa.length&&(l=sa[0],l.blockedOn===null);)Vm(l),l.blockedOn===null&&sa.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],s=l[a+1],o=n[ht]||null;if(typeof s=="function")o||Jm(l);else if(o){var h=null;if(s&&s.hasAttribute("formAction")){if(n=s,o=s[ht]||null)h=o.formAction;else if(eo(n)!==null)continue}else h=o.action;typeof h=="function"?l[a+1]=h:(l.splice(a,3),a-=3),Jm(l)}}}function Fm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!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 a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function lo(e){this._internalRoot=e}js.prototype.render=lo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=_t();Lm(l,a,e,t,null,null)},js.prototype.unmount=lo.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),as(),t[Pa]=null}};function js(e){this._internalRoot=e}js.prototype.unstable_scheduleHydration=function(e){if(e){var t=nf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<sa.length&&t!==0&&t<sa[l].priority;l++);sa.splice(l,0,e),l===0&&Vm(e)}};var $m=i.version;if($m!=="19.2.4")throw Error(c(527,$m,"19.2.4"));k.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=v(t),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var F0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ns=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ns.isDisabled&&Ns.supportsFiber)try{tu=Ns.inject(F0),Nt=Ns}catch{}}return Fu.createRoot=function(e,t){if(!d(e))throw Error(c(299));var l=!1,a="",n=ah,s=nh,o=uh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Bm(e,1,!1,null,null,l,a,null,n,s,o,Fm),e[Pa]=t.current,qc(e),new lo(t)},Fu.hydrateRoot=function(e,t,l){if(!d(e))throw Error(c(299));var a=!1,n="",s=ah,o=nh,h=uh,x=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(x=l.formState)),t=Bm(e,1,!0,t,l??null,a,n,x,s,o,h,Fm),t.context=Qm(null),l=t.current,a=_t(),a=Vs(a),n=Vl(a),n.callback=null,kl(l,n,a),l=a,t.current.lanes=l,au(t,l),ul(t),e[Pa]=t.current,qc(e),new js(t)},Fu.version="19.2.4",Fu}var sy;function sg(){if(sy)return io.exports;sy=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),io.exports=ig(),io.exports}var rg=sg(),$n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(u){return this.listeners.add(u),this.onSubscribe(),()=>{this.listeners.delete(u),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},cg={setTimeout:(u,i)=>setTimeout(u,i),clearTimeout:u=>clearTimeout(u),setInterval:(u,i)=>setInterval(u,i),clearInterval:u=>clearInterval(u)},oa,Uo,Cy,og=(Cy=class{constructor(){ee(this,oa,cg);ee(this,Uo,!1)}setTimeoutProvider(u){F(this,oa,u)}setTimeout(u,i){return S(this,oa).setTimeout(u,i)}clearTimeout(u){S(this,oa).clearTimeout(u)}setInterval(u,i){return S(this,oa).setInterval(u,i)}clearInterval(u){S(this,oa).clearInterval(u)}},oa=new WeakMap,Uo=new WeakMap,Cy),Ya=new og;function fg(u){setTimeout(u,0)}var Wa=typeof window>"u"||"Deno"in globalThis;function ft(){}function dg(u,i){return typeof u=="function"?u(i):u}function mo(u){return typeof u=="number"&&u>=0&&u!==1/0}function qy(u,i){return Math.max(u+(i||0)-Date.now(),0)}function xa(u,i){return typeof u=="function"?u(i):u}function Kt(u,i){return typeof u=="function"?u(i):u}function ry(u,i){const{type:r="all",exact:c,fetchStatus:d,predicate:m,queryKey:y,stale:b}=u;if(y){if(c){if(i.queryHash!==Ho(y,i.options))return!1}else if(!Iu(i.queryKey,y))return!1}if(r!=="all"){const p=i.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof b=="boolean"&&i.isStale()!==b||d&&d!==i.state.fetchStatus||m&&!m(i))}function cy(u,i){const{exact:r,status:c,predicate:d,mutationKey:m}=u;if(m){if(!i.options.mutationKey)return!1;if(r){if(Ia(i.options.mutationKey)!==Ia(m))return!1}else if(!Iu(i.options.mutationKey,m))return!1}return!(c&&i.state.status!==c||d&&!d(i))}function Ho(u,i){return((i==null?void 0:i.queryKeyHashFn)||Ia)(u)}function Ia(u){return JSON.stringify(u,(i,r)=>yo(r)?Object.keys(r).sort().reduce((c,d)=>(c[d]=r[d],c),{}):r)}function Iu(u,i){return u===i?!0:typeof u!=typeof i?!1:u&&i&&typeof u=="object"&&typeof i=="object"?Object.keys(i).every(r=>Iu(u[r],i[r])):!1}var hg=Object.prototype.hasOwnProperty;function By(u,i,r=0){if(u===i)return u;if(r>500)return i;const c=oy(u)&&oy(i);if(!c&&!(yo(u)&&yo(i)))return i;const m=(c?u:Object.keys(u)).length,y=c?i:Object.keys(i),b=y.length,p=c?new Array(b):{};let v=0;for(let T=0;T<b;T++){const g=c?T:y[T],z=u[g],w=i[g];if(z===w){p[g]=z,(c?T<m:hg.call(u,g))&&v++;continue}if(z===null||w===null||typeof z!="object"||typeof w!="object"){p[g]=w;continue}const Z=By(z,w,r+1);p[g]=Z,Z===z&&v++}return m===b&&v===m?u:p}function Ds(u,i){if(!i||Object.keys(u).length!==Object.keys(i).length)return!1;for(const r in u)if(u[r]!==i[r])return!1;return!0}function oy(u){return Array.isArray(u)&&u.length===Object.keys(u).length}function yo(u){if(!fy(u))return!1;const i=u.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!fy(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(u)!==Object.prototype)}function fy(u){return Object.prototype.toString.call(u)==="[object Object]"}function mg(u){return new Promise(i=>{Ya.setTimeout(i,u)})}function vo(u,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(u,i):r.structuralSharing!==!1?By(u,i):i}function yg(u,i,r=0){const c=[...u,i];return r&&c.length>r?c.slice(1):c}function vg(u,i,r=0){const c=[i,...u];return r&&c.length>r?c.slice(0,-1):c}var qo=Symbol();function Qy(u,i){return!u.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!u.queryFn||u.queryFn===qo?()=>Promise.reject(new Error(`Missing queryFn: '${u.queryHash}'`)):u.queryFn}function Bo(u,i){return typeof u=="function"?u(...i):!!u}function pg(u,i,r){let c=!1,d;return Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(d??(d=i()),c||(c=!0,d.aborted?r():d.addEventListener("abort",r,{once:!0})),d)}),u}var Ga,fa,Bn,Oy,gg=(Oy=class extends $n{constructor(){super();ee(this,Ga);ee(this,fa);ee(this,Bn);F(this,Bn,i=>{if(!Wa&&window.addEventListener){const r=()=>i();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){S(this,fa)||this.setEventListener(S(this,Bn))}onUnsubscribe(){var i;this.hasListeners()||((i=S(this,fa))==null||i.call(this),F(this,fa,void 0))}setEventListener(i){var r;F(this,Bn,i),(r=S(this,fa))==null||r.call(this),F(this,fa,i(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(i){S(this,Ga)!==i&&(F(this,Ga,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(r=>{r(i)})}isFocused(){var i;return typeof S(this,Ga)=="boolean"?S(this,Ga):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Ga=new WeakMap,fa=new WeakMap,Bn=new WeakMap,Oy),Qo=new gg;function po(){let u,i;const r=new Promise((d,m)=>{u=d,i=m});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}),u(d)},r.reject=d=>{c({status:"rejected",reason:d}),i(d)},r}var bg=fg;function xg(){let u=[],i=0,r=b=>{b()},c=b=>{b()},d=bg;const m=b=>{i?u.push(b):d(()=>{r(b)})},y=()=>{const b=u;u=[],b.length&&d(()=>{c(()=>{b.forEach(p=>{r(p)})})})};return{batch:b=>{let p;i++;try{p=b()}finally{i--,i||y()}return p},batchCalls:b=>(...p)=>{m(()=>{b(...p)})},schedule:m,setNotifyFunction:b=>{r=b},setBatchNotifyFunction:b=>{c=b},setScheduler:b=>{d=b}}}var $e=xg(),Qn,da,Ln,Ry,Sg=(Ry=class extends $n{constructor(){super();ee(this,Qn,!0);ee(this,da);ee(this,Ln);F(this,Ln,i=>{if(!Wa&&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(){S(this,da)||this.setEventListener(S(this,Ln))}onUnsubscribe(){var i;this.hasListeners()||((i=S(this,da))==null||i.call(this),F(this,da,void 0))}setEventListener(i){var r;F(this,Ln,i),(r=S(this,da))==null||r.call(this),F(this,da,i(this.setOnline.bind(this)))}setOnline(i){S(this,Qn)!==i&&(F(this,Qn,i),this.listeners.forEach(c=>{c(i)}))}isOnline(){return S(this,Qn)}},Qn=new WeakMap,da=new WeakMap,Ln=new WeakMap,Ry),Us=new Sg;function Eg(u){return Math.min(1e3*2**u,3e4)}function Ly(u){return(u??"online")==="online"?Us.isOnline():!0}var go=class extends Error{constructor(u){super("CancelledError"),this.revert=u==null?void 0:u.revert,this.silent=u==null?void 0:u.silent}};function Yy(u){let i=!1,r=0,c;const d=po(),m=()=>d.status!=="pending",y=R=>{var L;if(!m()){const U=new go(R);z(U),(L=u.onCancel)==null||L.call(u,U)}},b=()=>{i=!0},p=()=>{i=!1},v=()=>Qo.isFocused()&&(u.networkMode==="always"||Us.isOnline())&&u.canRun(),T=()=>Ly(u.networkMode)&&u.canRun(),g=R=>{m()||(c==null||c(),d.resolve(R))},z=R=>{m()||(c==null||c(),d.reject(R))},w=()=>new Promise(R=>{var L;c=U=>{(m()||v())&&R(U)},(L=u.onPause)==null||L.call(u)}).then(()=>{var R;c=void 0,m()||(R=u.onContinue)==null||R.call(u)}),Z=()=>{if(m())return;let R;const L=r===0?u.initialPromise:void 0;try{R=L??u.fn()}catch(U){R=Promise.reject(U)}Promise.resolve(R).then(g).catch(U=>{var V;if(m())return;const Y=u.retry??(Wa?0:3),q=u.retryDelay??Eg,O=typeof q=="function"?q(r,U):q,K=Y===!0||typeof Y=="number"&&r<Y||typeof Y=="function"&&Y(r,U);if(i||!K){z(U);return}r++,(V=u.onFail)==null||V.call(u,r,U),mg(O).then(()=>v()?void 0:w()).then(()=>{i?z(U):Z()})})};return{promise:d,status:()=>d.status,cancel:y,continue:()=>(c==null||c(),d),cancelRetry:b,continueRetry:p,canStart:T,start:()=>(T()?Z():w().then(Z),d)}}var Xa,Ay,Gy=(Ay=class{constructor(){ee(this,Xa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mo(this.gcTime)&&F(this,Xa,Ya.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(u){this.gcTime=Math.max(this.gcTime||0,u??(Wa?1/0:300*1e3))}clearGcTimeout(){S(this,Xa)&&(Ya.clearTimeout(S(this,Xa)),F(this,Xa,void 0))}},Xa=new WeakMap,Ay),Za,Yn,Zt,Ka,Pe,ei,Va,Wt,Al,My,jg=(My=class extends Gy{constructor(i){super();ee(this,Wt);ee(this,Za);ee(this,Yn);ee(this,Zt);ee(this,Ka);ee(this,Pe);ee(this,ei);ee(this,Va);F(this,Va,!1),F(this,ei,i.defaultOptions),this.setOptions(i.options),this.observers=[],F(this,Ka,i.client),F(this,Zt,S(this,Ka).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,F(this,Za,hy(this.options)),this.state=i.state??S(this,Za),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=S(this,Pe))==null?void 0:i.promise}setOptions(i){if(this.options={...S(this,ei),...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=hy(this.options);r.data!==void 0&&(this.setState(dy(r.data,r.dataUpdatedAt)),F(this,Za,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Zt).remove(this)}setData(i,r){const c=vo(this.state.data,i,this.options);return ce(this,Wt,Al).call(this,{data:c,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),c}setState(i,r){ce(this,Wt,Al).call(this,{type:"setState",state:i,setStateOptions:r})}cancel(i){var c,d;const r=(c=S(this,Pe))==null?void 0:c.promise;return(d=S(this,Pe))==null||d.cancel(i),r?r.then(ft).catch(ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,Za))}isActive(){return this.observers.some(i=>Kt(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qo||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>xa(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:!qy(this.state.dataUpdatedAt,i)}onFocus(){var r;const i=this.observers.find(c=>c.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(r=S(this,Pe))==null||r.continue()}onOnline(){var r;const i=this.observers.find(c=>c.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(r=S(this,Pe))==null||r.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),S(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||(S(this,Pe)&&(S(this,Va)?S(this,Pe).cancel({revert:!0}):S(this,Pe).cancelRetry()),this.scheduleGc()),S(this,Zt).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,Wt,Al).call(this,{type:"invalidate"})}async fetch(i,r){var p,v,T,g,z,w,Z,R,L,U,Y,q;if(this.state.fetchStatus!=="idle"&&((p=S(this,Pe))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(S(this,Pe))return S(this,Pe).continueRetry(),S(this,Pe).promise}if(i&&this.setOptions(i),!this.options.queryFn){const O=this.observers.find(K=>K.options.queryFn);O&&this.setOptions(O.options)}const c=new AbortController,d=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(F(this,Va,!0),c.signal)})},m=()=>{const O=Qy(this.options,r),V=(()=>{const $={client:S(this,Ka),queryKey:this.queryKey,meta:this.meta};return d($),$})();return F(this,Va,!1),this.options.persister?this.options.persister(O,V,this):O(V)},b=(()=>{const O={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:S(this,Ka),state:this.state,fetchFn:m};return d(O),O})();(v=this.options.behavior)==null||v.onFetch(b,this),F(this,Yn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((T=b.fetchOptions)==null?void 0:T.meta))&&ce(this,Wt,Al).call(this,{type:"fetch",meta:(g=b.fetchOptions)==null?void 0:g.meta}),F(this,Pe,Yy({initialPromise:r==null?void 0:r.initialPromise,fn:b.fetchFn,onCancel:O=>{O instanceof go&&O.revert&&this.setState({...S(this,Yn),fetchStatus:"idle"}),c.abort()},onFail:(O,K)=>{ce(this,Wt,Al).call(this,{type:"failed",failureCount:O,error:K})},onPause:()=>{ce(this,Wt,Al).call(this,{type:"pause"})},onContinue:()=>{ce(this,Wt,Al).call(this,{type:"continue"})},retry:b.options.retry,retryDelay:b.options.retryDelay,networkMode:b.options.networkMode,canRun:()=>!0}));try{const O=await S(this,Pe).start();if(O===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(O),(w=(z=S(this,Zt).config).onSuccess)==null||w.call(z,O,this),(R=(Z=S(this,Zt).config).onSettled)==null||R.call(Z,O,this.state.error,this),O}catch(O){if(O instanceof go){if(O.silent)return S(this,Pe).promise;if(O.revert){if(this.state.data===void 0)throw O;return this.state.data}}throw ce(this,Wt,Al).call(this,{type:"error",error:O}),(U=(L=S(this,Zt).config).onError)==null||U.call(L,O,this),(q=(Y=S(this,Zt).config).onSettled)==null||q.call(Y,this.state.data,O,this),O}finally{this.scheduleGc()}}},Za=new WeakMap,Yn=new WeakMap,Zt=new WeakMap,Ka=new WeakMap,Pe=new WeakMap,ei=new WeakMap,Va=new WeakMap,Wt=new WeakSet,Al=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,...Xy(c.data,this.options),fetchMeta:i.meta??null};case"success":const d={...c,...dy(i.data,i.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return F(this,Yn,i.manual?d:void 0),d;case"error":const m=i.error;return{...c,error:m,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...i.state}}};this.state=r(this.state),$e.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),S(this,Zt).notify({query:this,type:"updated",action:i})})},My);function Xy(u,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ly(i.networkMode)?"fetching":"paused",...u===void 0&&{error:null,status:"pending"}}}function dy(u,i){return{data:u,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function hy(u){const i=typeof u.initialData=="function"?u.initialData():u.initialData,r=i!==void 0,c=r?typeof u.initialDataUpdatedAt=="function"?u.initialDataUpdatedAt():u.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 xt,pe,ti,ot,ka,Gn,Ml,ha,li,Xn,Zn,Ja,Fa,ma,Kn,Ee,Wu,bo,xo,So,Eo,jo,No,To,Zy,zy,Ng=(zy=class extends $n{constructor(i,r){super();ee(this,Ee);ee(this,xt);ee(this,pe);ee(this,ti);ee(this,ot);ee(this,ka);ee(this,Gn);ee(this,Ml);ee(this,ha);ee(this,li);ee(this,Xn);ee(this,Zn);ee(this,Ja);ee(this,Fa);ee(this,ma);ee(this,Kn,new Set);this.options=r,F(this,xt,i),F(this,ha,null),F(this,Ml,po()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,pe).addObserver(this),my(S(this,pe),this.options)?ce(this,Ee,Wu).call(this):this.updateResult(),ce(this,Ee,Eo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Co(S(this,pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Co(S(this,pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,Ee,jo).call(this),ce(this,Ee,No).call(this),S(this,pe).removeObserver(this)}setOptions(i){const r=this.options,c=S(this,pe);if(this.options=S(this,xt).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kt(this.options.enabled,S(this,pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,Ee,To).call(this),S(this,pe).setOptions(this.options),r._defaulted&&!Ds(this.options,r)&&S(this,xt).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,pe),observer:this});const d=this.hasListeners();d&&yy(S(this,pe),c,this.options,r)&&ce(this,Ee,Wu).call(this),this.updateResult(),d&&(S(this,pe)!==c||Kt(this.options.enabled,S(this,pe))!==Kt(r.enabled,S(this,pe))||xa(this.options.staleTime,S(this,pe))!==xa(r.staleTime,S(this,pe)))&&ce(this,Ee,bo).call(this);const m=ce(this,Ee,xo).call(this);d&&(S(this,pe)!==c||Kt(this.options.enabled,S(this,pe))!==Kt(r.enabled,S(this,pe))||m!==S(this,ma))&&ce(this,Ee,So).call(this,m)}getOptimisticResult(i){const r=S(this,xt).getQueryCache().build(S(this,xt),i),c=this.createResult(r,i);return Cg(this,c)&&(F(this,ot,c),F(this,Gn,this.options),F(this,ka,S(this,pe).state)),c}getCurrentResult(){return S(this,ot)}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&&S(this,Ml).status==="pending"&&S(this,Ml).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,d))})}trackProp(i){S(this,Kn).add(i)}getCurrentQuery(){return S(this,pe)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const r=S(this,xt).defaultQueryOptions(i),c=S(this,xt).getQueryCache().build(S(this,xt),r);return c.fetch().then(()=>this.createResult(c,r))}fetch(i){return ce(this,Ee,Wu).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,ot)))}createResult(i,r){var he;const c=S(this,pe),d=this.options,m=S(this,ot),y=S(this,ka),b=S(this,Gn),v=i!==c?i.state:S(this,ti),{state:T}=i;let g={...T},z=!1,w;if(r._optimisticResults){const Te=this.hasListeners(),ke=!Te&&my(i,r),Je=Te&&yy(i,c,r,d);(ke||Je)&&(g={...g,...Xy(T.data,i.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:Z,errorUpdatedAt:R,status:L}=g;w=g.data;let U=!1;if(r.placeholderData!==void 0&&w===void 0&&L==="pending"){let Te;m!=null&&m.isPlaceholderData&&r.placeholderData===(b==null?void 0:b.placeholderData)?(Te=m.data,U=!0):Te=typeof r.placeholderData=="function"?r.placeholderData((he=S(this,Zn))==null?void 0:he.state.data,S(this,Zn)):r.placeholderData,Te!==void 0&&(L="success",w=vo(m==null?void 0:m.data,Te,r),z=!0)}if(r.select&&w!==void 0&&!U)if(m&&w===(y==null?void 0:y.data)&&r.select===S(this,li))w=S(this,Xn);else try{F(this,li,r.select),w=r.select(w),w=vo(m==null?void 0:m.data,w,r),F(this,Xn,w),F(this,ha,null)}catch(Te){F(this,ha,Te)}S(this,ha)&&(Z=S(this,ha),w=S(this,Xn),R=Date.now(),L="error");const Y=g.fetchStatus==="fetching",q=L==="pending",O=L==="error",K=q&&Y,V=w!==void 0,ae={status:L,fetchStatus:g.fetchStatus,isPending:q,isSuccess:L==="success",isError:O,isInitialLoading:K,isLoading:K,data:w,dataUpdatedAt:g.dataUpdatedAt,error:Z,errorUpdatedAt:R,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>v.dataUpdateCount||g.errorUpdateCount>v.errorUpdateCount,isFetching:Y,isRefetching:Y&&!q,isLoadingError:O&&!V,isPaused:g.fetchStatus==="paused",isPlaceholderData:z,isRefetchError:O&&V,isStale:Lo(i,r),refetch:this.refetch,promise:S(this,Ml),isEnabled:Kt(r.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const Te=ae.data!==void 0,ke=ae.status==="error"&&!Te,Je=ut=>{ke?ut.reject(ae.error):Te&&ut.resolve(ae.data)},tl=()=>{const ut=F(this,Ml,ae.promise=po());Je(ut)},dt=S(this,Ml);switch(dt.status){case"pending":i.queryHash===c.queryHash&&Je(dt);break;case"fulfilled":(ke||ae.data!==dt.value)&&tl();break;case"rejected":(!ke||ae.error!==dt.reason)&&tl();break}}return ae}updateResult(){const i=S(this,ot),r=this.createResult(S(this,pe),this.options);if(F(this,ka,S(this,pe).state),F(this,Gn,this.options),S(this,ka).data!==void 0&&F(this,Zn,S(this,pe)),Ds(r,i))return;F(this,ot,r);const c=()=>{if(!i)return!0;const{notifyOnChangeProps:d}=this.options,m=typeof d=="function"?d():d;if(m==="all"||!m&&!S(this,Kn).size)return!0;const y=new Set(m??S(this,Kn));return this.options.throwOnError&&y.add("error"),Object.keys(S(this,ot)).some(b=>{const p=b;return S(this,ot)[p]!==i[p]&&y.has(p)})};ce(this,Ee,Zy).call(this,{listeners:c()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,Ee,Eo).call(this)}},xt=new WeakMap,pe=new WeakMap,ti=new WeakMap,ot=new WeakMap,ka=new WeakMap,Gn=new WeakMap,Ml=new WeakMap,ha=new WeakMap,li=new WeakMap,Xn=new WeakMap,Zn=new WeakMap,Ja=new WeakMap,Fa=new WeakMap,ma=new WeakMap,Kn=new WeakMap,Ee=new WeakSet,Wu=function(i){ce(this,Ee,To).call(this);let r=S(this,pe).fetch(this.options,i);return i!=null&&i.throwOnError||(r=r.catch(ft)),r},bo=function(){ce(this,Ee,jo).call(this);const i=xa(this.options.staleTime,S(this,pe));if(Wa||S(this,ot).isStale||!mo(i))return;const c=qy(S(this,ot).dataUpdatedAt,i)+1;F(this,Ja,Ya.setTimeout(()=>{S(this,ot).isStale||this.updateResult()},c))},xo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,pe)):this.options.refetchInterval)??!1},So=function(i){ce(this,Ee,No).call(this),F(this,ma,i),!(Wa||Kt(this.options.enabled,S(this,pe))===!1||!mo(S(this,ma))||S(this,ma)===0)&&F(this,Fa,Ya.setInterval(()=>{(this.options.refetchIntervalInBackground||Qo.isFocused())&&ce(this,Ee,Wu).call(this)},S(this,ma)))},Eo=function(){ce(this,Ee,bo).call(this),ce(this,Ee,So).call(this,ce(this,Ee,xo).call(this))},jo=function(){S(this,Ja)&&(Ya.clearTimeout(S(this,Ja)),F(this,Ja,void 0))},No=function(){S(this,Fa)&&(Ya.clearInterval(S(this,Fa)),F(this,Fa,void 0))},To=function(){const i=S(this,xt).getQueryCache().build(S(this,xt),this.options);if(i===S(this,pe))return;const r=S(this,pe);F(this,pe,i),F(this,ti,i.state),this.hasListeners()&&(r==null||r.removeObserver(this),i.addObserver(this))},Zy=function(i){$e.batch(()=>{i.listeners&&this.listeners.forEach(r=>{r(S(this,ot))}),S(this,xt).getQueryCache().notify({query:S(this,pe),type:"observerResultsUpdated"})})},zy);function Tg(u,i){return Kt(i.enabled,u)!==!1&&u.state.data===void 0&&!(u.state.status==="error"&&i.retryOnMount===!1)}function my(u,i){return Tg(u,i)||u.state.data!==void 0&&Co(u,i,i.refetchOnMount)}function Co(u,i,r){if(Kt(i.enabled,u)!==!1&&xa(i.staleTime,u)!=="static"){const c=typeof r=="function"?r(u):r;return c==="always"||c!==!1&&Lo(u,i)}return!1}function yy(u,i,r,c){return(u!==i||Kt(c.enabled,u)===!1)&&(!r.suspense||u.state.status!=="error")&&Lo(u,r)}function Lo(u,i){return Kt(i.enabled,u)!==!1&&u.isStaleByTime(xa(i.staleTime,u))}function Cg(u,i){return!Ds(u.getCurrentResult(),i)}function vy(u){return{onFetch:(i,r)=>{var T,g,z,w,Z;const c=i.options,d=(z=(g=(T=i.fetchOptions)==null?void 0:T.meta)==null?void 0:g.fetchMore)==null?void 0:z.direction,m=((w=i.state.data)==null?void 0:w.pages)||[],y=((Z=i.state.data)==null?void 0:Z.pageParams)||[];let b={pages:[],pageParams:[]},p=0;const v=async()=>{let R=!1;const L=q=>{pg(q,()=>i.signal,()=>R=!0)},U=Qy(i.options,i.fetchOptions),Y=async(q,O,K)=>{if(R)return Promise.reject();if(O==null&&q.pages.length)return Promise.resolve(q);const $=(()=>{const ke={client:i.client,queryKey:i.queryKey,pageParam:O,direction:K?"backward":"forward",meta:i.options.meta};return L(ke),ke})(),ae=await U($),{maxPages:he}=i.options,Te=K?vg:yg;return{pages:Te(q.pages,ae,he),pageParams:Te(q.pageParams,O,he)}};if(d&&m.length){const q=d==="backward",O=q?Og:py,K={pages:m,pageParams:y},V=O(c,K);b=await Y(K,V,q)}else{const q=u??m.length;do{const O=p===0?y[0]??c.initialPageParam:py(c,b);if(p>0&&O==null)break;b=await Y(b,O),p++}while(p<q)}return b};i.options.persister?i.fetchFn=()=>{var R,L;return(L=(R=i.options).persister)==null?void 0:L.call(R,v,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r)}:i.fetchFn=v}}}function py(u,{pages:i,pageParams:r}){const c=i.length-1;return i.length>0?u.getNextPageParam(i[c],i,r[c],r):void 0}function Og(u,{pages:i,pageParams:r}){var c;return i.length>0?(c=u.getPreviousPageParam)==null?void 0:c.call(u,i[0],i,r[0],r):void 0}var ai,sl,st,$a,rl,ca,_y,Rg=(_y=class extends Gy{constructor(i){super();ee(this,rl);ee(this,ai);ee(this,sl);ee(this,st);ee(this,$a);F(this,ai,i.client),this.mutationId=i.mutationId,F(this,st,i.mutationCache),F(this,sl,[]),this.state=i.state||Ky(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){S(this,sl).includes(i)||(S(this,sl).push(i),this.clearGcTimeout(),S(this,st).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){F(this,sl,S(this,sl).filter(r=>r!==i)),this.scheduleGc(),S(this,st).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){S(this,sl).length||(this.state.status==="pending"?this.scheduleGc():S(this,st).remove(this))}continue(){var i;return((i=S(this,$a))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var y,b,p,v,T,g,z,w,Z,R,L,U,Y,q,O,K,V,$;const r=()=>{ce(this,rl,ca).call(this,{type:"continue"})},c={client:S(this,ai),meta:this.options.meta,mutationKey:this.options.mutationKey};F(this,$a,Yy({fn:()=>this.options.mutationFn?this.options.mutationFn(i,c):Promise.reject(new Error("No mutationFn found")),onFail:(ae,he)=>{ce(this,rl,ca).call(this,{type:"failed",failureCount:ae,error:he})},onPause:()=>{ce(this,rl,ca).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,st).canRun(this)}));const d=this.state.status==="pending",m=!S(this,$a).canStart();try{if(d)r();else{ce(this,rl,ca).call(this,{type:"pending",variables:i,isPaused:m}),S(this,st).config.onMutate&&await S(this,st).config.onMutate(i,this,c);const he=await((b=(y=this.options).onMutate)==null?void 0:b.call(y,i,c));he!==this.state.context&&ce(this,rl,ca).call(this,{type:"pending",context:he,variables:i,isPaused:m})}const ae=await S(this,$a).start();return await((v=(p=S(this,st).config).onSuccess)==null?void 0:v.call(p,ae,i,this.state.context,this,c)),await((g=(T=this.options).onSuccess)==null?void 0:g.call(T,ae,i,this.state.context,c)),await((w=(z=S(this,st).config).onSettled)==null?void 0:w.call(z,ae,null,this.state.variables,this.state.context,this,c)),await((R=(Z=this.options).onSettled)==null?void 0:R.call(Z,ae,null,i,this.state.context,c)),ce(this,rl,ca).call(this,{type:"success",data:ae}),ae}catch(ae){try{await((U=(L=S(this,st).config).onError)==null?void 0:U.call(L,ae,i,this.state.context,this,c))}catch(he){Promise.reject(he)}try{await((q=(Y=this.options).onError)==null?void 0:q.call(Y,ae,i,this.state.context,c))}catch(he){Promise.reject(he)}try{await((K=(O=S(this,st).config).onSettled)==null?void 0:K.call(O,void 0,ae,this.state.variables,this.state.context,this,c))}catch(he){Promise.reject(he)}try{await(($=(V=this.options).onSettled)==null?void 0:$.call(V,void 0,ae,i,this.state.context,c))}catch(he){Promise.reject(he)}throw ce(this,rl,ca).call(this,{type:"error",error:ae}),ae}finally{S(this,st).runNext(this)}}},ai=new WeakMap,sl=new WeakMap,st=new WeakMap,$a=new WeakMap,rl=new WeakSet,ca=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),$e.batch(()=>{S(this,sl).forEach(c=>{c.onMutationUpdate(i)}),S(this,st).notify({mutation:this,type:"updated",action:i})})},_y);function Ky(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zl,It,ni,Dy,Ag=(Dy=class extends $n{constructor(i={}){super();ee(this,zl);ee(this,It);ee(this,ni);this.config=i,F(this,zl,new Set),F(this,It,new Map),F(this,ni,0)}build(i,r,c){const d=new Rg({client:i,mutationCache:this,mutationId:++Ts(this,ni)._,options:i.defaultMutationOptions(r),state:c});return this.add(d),d}add(i){S(this,zl).add(i);const r=Cs(i);if(typeof r=="string"){const c=S(this,It).get(r);c?c.push(i):S(this,It).set(r,[i])}this.notify({type:"added",mutation:i})}remove(i){if(S(this,zl).delete(i)){const r=Cs(i);if(typeof r=="string"){const c=S(this,It).get(r);if(c)if(c.length>1){const d=c.indexOf(i);d!==-1&&c.splice(d,1)}else c[0]===i&&S(this,It).delete(r)}}this.notify({type:"removed",mutation:i})}canRun(i){const r=Cs(i);if(typeof r=="string"){const c=S(this,It).get(r),d=c==null?void 0:c.find(m=>m.state.status==="pending");return!d||d===i}else return!0}runNext(i){var c;const r=Cs(i);if(typeof r=="string"){const d=(c=S(this,It).get(r))==null?void 0:c.find(m=>m!==i&&m.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){$e.batch(()=>{S(this,zl).forEach(i=>{this.notify({type:"removed",mutation:i})}),S(this,zl).clear(),S(this,It).clear()})}getAll(){return Array.from(S(this,zl))}find(i){const r={exact:!0,...i};return this.getAll().find(c=>cy(r,c))}findAll(i={}){return this.getAll().filter(r=>cy(i,r))}notify(i){$e.batch(()=>{this.listeners.forEach(r=>{r(i)})})}resumePausedMutations(){const i=this.getAll().filter(r=>r.state.isPaused);return $e.batch(()=>Promise.all(i.map(r=>r.continue().catch(ft))))}},zl=new WeakMap,It=new WeakMap,ni=new WeakMap,Dy);function Cs(u){var i;return(i=u.options.scope)==null?void 0:i.id}var _l,ya,St,Dl,wl,As,Oo,Uy,Mg=(Uy=class extends $n{constructor(r,c){super();ee(this,wl);ee(this,_l);ee(this,ya);ee(this,St);ee(this,Dl);F(this,_l,r),this.setOptions(c),this.bindMethods(),ce(this,wl,As).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var d;const c=this.options;this.options=S(this,_l).defaultMutationOptions(r),Ds(this.options,c)||S(this,_l).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,St),observer:this}),c!=null&&c.mutationKey&&this.options.mutationKey&&Ia(c.mutationKey)!==Ia(this.options.mutationKey)?this.reset():((d=S(this,St))==null?void 0:d.state.status)==="pending"&&S(this,St).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=S(this,St))==null||r.removeObserver(this)}onMutationUpdate(r){ce(this,wl,As).call(this),ce(this,wl,Oo).call(this,r)}getCurrentResult(){return S(this,ya)}reset(){var r;(r=S(this,St))==null||r.removeObserver(this),F(this,St,void 0),ce(this,wl,As).call(this),ce(this,wl,Oo).call(this)}mutate(r,c){var d;return F(this,Dl,c),(d=S(this,St))==null||d.removeObserver(this),F(this,St,S(this,_l).getMutationCache().build(S(this,_l),this.options)),S(this,St).addObserver(this),S(this,St).execute(r)}},_l=new WeakMap,ya=new WeakMap,St=new WeakMap,Dl=new WeakMap,wl=new WeakSet,As=function(){var c;const r=((c=S(this,St))==null?void 0:c.state)??Ky();F(this,ya,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Oo=function(r){$e.batch(()=>{var c,d,m,y,b,p,v,T;if(S(this,Dl)&&this.hasListeners()){const g=S(this,ya).variables,z=S(this,ya).context,w={client:S(this,_l),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(d=(c=S(this,Dl)).onSuccess)==null||d.call(c,r.data,g,z,w)}catch(Z){Promise.reject(Z)}try{(y=(m=S(this,Dl)).onSettled)==null||y.call(m,r.data,null,g,z,w)}catch(Z){Promise.reject(Z)}}else if((r==null?void 0:r.type)==="error"){try{(p=(b=S(this,Dl)).onError)==null||p.call(b,r.error,g,z,w)}catch(Z){Promise.reject(Z)}try{(T=(v=S(this,Dl)).onSettled)==null||T.call(v,void 0,r.error,g,z,w)}catch(Z){Promise.reject(Z)}}}this.listeners.forEach(g=>{g(S(this,ya))})})},Uy),cl,wy,zg=(wy=class extends $n{constructor(i={}){super();ee(this,cl);this.config=i,F(this,cl,new Map)}build(i,r,c){const d=r.queryKey,m=r.queryHash??Ho(d,r);let y=this.get(m);return y||(y=new jg({client:i,queryKey:d,queryHash:m,options:i.defaultQueryOptions(r),state:c,defaultOptions:i.getQueryDefaults(d)}),this.add(y)),y}add(i){S(this,cl).has(i.queryHash)||(S(this,cl).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const r=S(this,cl).get(i.queryHash);r&&(i.destroy(),r===i&&S(this,cl).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){$e.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return S(this,cl).get(i)}getAll(){return[...S(this,cl).values()]}find(i){const r={exact:!0,...i};return this.getAll().find(c=>ry(r,c))}findAll(i={}){const r=this.getAll();return Object.keys(i).length>0?r.filter(c=>ry(i,c)):r}notify(i){$e.batch(()=>{this.listeners.forEach(r=>{r(i)})})}onFocus(){$e.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){$e.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},cl=new WeakMap,wy),Be,va,pa,Vn,kn,ga,Jn,Fn,Hy,_g=(Hy=class{constructor(u={}){ee(this,Be);ee(this,va);ee(this,pa);ee(this,Vn);ee(this,kn);ee(this,ga);ee(this,Jn);ee(this,Fn);F(this,Be,u.queryCache||new zg),F(this,va,u.mutationCache||new Ag),F(this,pa,u.defaultOptions||{}),F(this,Vn,new Map),F(this,kn,new Map),F(this,ga,0)}mount(){Ts(this,ga)._++,S(this,ga)===1&&(F(this,Jn,Qo.subscribe(async u=>{u&&(await this.resumePausedMutations(),S(this,Be).onFocus())})),F(this,Fn,Us.subscribe(async u=>{u&&(await this.resumePausedMutations(),S(this,Be).onOnline())})))}unmount(){var u,i;Ts(this,ga)._--,S(this,ga)===0&&((u=S(this,Jn))==null||u.call(this),F(this,Jn,void 0),(i=S(this,Fn))==null||i.call(this),F(this,Fn,void 0))}isFetching(u){return S(this,Be).findAll({...u,fetchStatus:"fetching"}).length}isMutating(u){return S(this,va).findAll({...u,status:"pending"}).length}getQueryData(u){var r;const i=this.defaultQueryOptions({queryKey:u});return(r=S(this,Be).get(i.queryHash))==null?void 0:r.state.data}ensureQueryData(u){const i=this.defaultQueryOptions(u),r=S(this,Be).build(this,i),c=r.state.data;return c===void 0?this.fetchQuery(u):(u.revalidateIfStale&&r.isStaleByTime(xa(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(u){return S(this,Be).findAll(u).map(({queryKey:i,state:r})=>{const c=r.data;return[i,c]})}setQueryData(u,i,r){const c=this.defaultQueryOptions({queryKey:u}),d=S(this,Be).get(c.queryHash),m=d==null?void 0:d.state.data,y=dg(i,m);if(y!==void 0)return S(this,Be).build(this,c).setData(y,{...r,manual:!0})}setQueriesData(u,i,r){return $e.batch(()=>S(this,Be).findAll(u).map(({queryKey:c})=>[c,this.setQueryData(c,i,r)]))}getQueryState(u){var r;const i=this.defaultQueryOptions({queryKey:u});return(r=S(this,Be).get(i.queryHash))==null?void 0:r.state}removeQueries(u){const i=S(this,Be);$e.batch(()=>{i.findAll(u).forEach(r=>{i.remove(r)})})}resetQueries(u,i){const r=S(this,Be);return $e.batch(()=>(r.findAll(u).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...u},i)))}cancelQueries(u,i={}){const r={revert:!0,...i},c=$e.batch(()=>S(this,Be).findAll(u).map(d=>d.cancel(r)));return Promise.all(c).then(ft).catch(ft)}invalidateQueries(u,i={}){return $e.batch(()=>(S(this,Be).findAll(u).forEach(r=>{r.invalidate()}),(u==null?void 0:u.refetchType)==="none"?Promise.resolve():this.refetchQueries({...u,type:(u==null?void 0:u.refetchType)??(u==null?void 0:u.type)??"active"},i)))}refetchQueries(u,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},c=$e.batch(()=>S(this,Be).findAll(u).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,r);return r.throwOnError||(m=m.catch(ft)),d.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(c).then(ft)}fetchQuery(u){const i=this.defaultQueryOptions(u);i.retry===void 0&&(i.retry=!1);const r=S(this,Be).build(this,i);return r.isStaleByTime(xa(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(u){return this.fetchQuery(u).then(ft).catch(ft)}fetchInfiniteQuery(u){return u.behavior=vy(u.pages),this.fetchQuery(u)}prefetchInfiniteQuery(u){return this.fetchInfiniteQuery(u).then(ft).catch(ft)}ensureInfiniteQueryData(u){return u.behavior=vy(u.pages),this.ensureQueryData(u)}resumePausedMutations(){return Us.isOnline()?S(this,va).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Be)}getMutationCache(){return S(this,va)}getDefaultOptions(){return S(this,pa)}setDefaultOptions(u){F(this,pa,u)}setQueryDefaults(u,i){S(this,Vn).set(Ia(u),{queryKey:u,defaultOptions:i})}getQueryDefaults(u){const i=[...S(this,Vn).values()],r={};return i.forEach(c=>{Iu(u,c.queryKey)&&Object.assign(r,c.defaultOptions)}),r}setMutationDefaults(u,i){S(this,kn).set(Ia(u),{mutationKey:u,defaultOptions:i})}getMutationDefaults(u){const i=[...S(this,kn).values()],r={};return i.forEach(c=>{Iu(u,c.mutationKey)&&Object.assign(r,c.defaultOptions)}),r}defaultQueryOptions(u){if(u._defaulted)return u;const i={...S(this,pa).queries,...this.getQueryDefaults(u.queryKey),...u,_defaulted:!0};return i.queryHash||(i.queryHash=Ho(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===qo&&(i.enabled=!1),i}defaultMutationOptions(u){return u!=null&&u._defaulted?u:{...S(this,pa).mutations,...(u==null?void 0:u.mutationKey)&&this.getMutationDefaults(u.mutationKey),...u,_defaulted:!0}}clear(){S(this,Be).clear(),S(this,va).clear()}},Be=new WeakMap,va=new WeakMap,pa=new WeakMap,Vn=new WeakMap,kn=new WeakMap,ga=new WeakMap,Jn=new WeakMap,Fn=new WeakMap,Hy),Vy=E.createContext(void 0),Hs=u=>{const i=E.useContext(Vy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},Dg=({client:u,children:i})=>(E.useEffect(()=>(u.mount(),()=>{u.unmount()}),[u]),f.jsx(Vy.Provider,{value:u,children:i})),ky=E.createContext(!1),Ug=()=>E.useContext(ky);ky.Provider;function wg(){let u=!1;return{clearReset:()=>{u=!1},reset:()=>{u=!0},isReset:()=>u}}var Hg=E.createContext(wg()),qg=()=>E.useContext(Hg),Bg=(u,i,r)=>{const c=r!=null&&r.state.error&&typeof u.throwOnError=="function"?Bo(u.throwOnError,[r.state.error,r]):u.throwOnError;(u.suspense||u.experimental_prefetchInRender||c)&&(i.isReset()||(u.retryOnMount=!1))},Qg=u=>{E.useEffect(()=>{u.clearReset()},[u])},Lg=({result:u,errorResetBoundary:i,throwOnError:r,query:c,suspense:d})=>u.isError&&!i.isReset()&&!u.isFetching&&c&&(d&&u.data===void 0||Bo(r,[u.error,c])),Yg=u=>{if(u.suspense){const r=d=>d==="static"?d:Math.max(d??1e3,1e3),c=u.staleTime;u.staleTime=typeof c=="function"?(...d)=>r(c(...d)):r(c),typeof u.gcTime=="number"&&(u.gcTime=Math.max(u.gcTime,1e3))}},Gg=(u,i)=>u.isLoading&&u.isFetching&&!i,Xg=(u,i)=>(u==null?void 0:u.suspense)&&i.isPending,gy=(u,i,r)=>i.fetchOptimistic(u).catch(()=>{r.clearReset()});function Zg(u,i,r){var z,w,Z,R;const c=Ug(),d=qg(),m=Hs(),y=m.defaultQueryOptions(u);(w=(z=m.getDefaultOptions().queries)==null?void 0:z._experimental_beforeQuery)==null||w.call(z,y);const b=m.getQueryCache().get(y.queryHash);y._optimisticResults=c?"isRestoring":"optimistic",Yg(y),Bg(y,d,b),Qg(d);const p=!m.getQueryCache().get(y.queryHash),[v]=E.useState(()=>new i(m,y)),T=v.getOptimisticResult(y),g=!c&&u.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(L=>{const U=g?v.subscribe($e.batchCalls(L)):ft;return v.updateResult(),U},[v,g]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),E.useEffect(()=>{v.setOptions(y)},[y,v]),Xg(y,T))throw gy(y,v,d);if(Lg({result:T,errorResetBoundary:d,throwOnError:y.throwOnError,query:b,suspense:y.suspense}))throw T.error;if((R=(Z=m.getDefaultOptions().queries)==null?void 0:Z._experimental_afterQuery)==null||R.call(Z,y,T),y.experimental_prefetchInRender&&!Wa&&Gg(T,c)){const L=p?gy(y,v,d):b==null?void 0:b.promise;L==null||L.catch(ft).finally(()=>{v.updateResult()})}return y.notifyOnChangeProps?T:v.trackResult(T)}function Pt(u,i){return Zg(u,Ng)}function Ro(u,i){const r=Hs(),[c]=E.useState(()=>new Mg(r,u));E.useEffect(()=>{c.setOptions(u)},[c,u]);const d=E.useSyncExternalStore(E.useCallback(y=>c.subscribe($e.batchCalls(y)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m=E.useCallback((y,b)=>{c.mutate(y,b).catch(ft)},[c]);if(d.error&&Bo(c.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:m,mutateAsync:d.mutate}}const Kg=new _g({defaultOptions:{queries:{staleTime:5e3,retry:1}}});/**
|
|
50
50
|
* react-router v7.13.0
|
|
51
51
|
*
|
|
52
52
|
* Copyright (c) Remix Software Inc.
|
|
@@ -55,9 +55,9 @@ Error generating stack: `+a.message+`
|
|
|
55
55
|
* LICENSE.md file in the root directory of this source tree.
|
|
56
56
|
*
|
|
57
57
|
* @license MIT
|
|
58
|
-
*/var by="popstate";function Vg(u={}){function i(c,d){let{pathname:m,search:y,hash:b}=c.location;return Ao("",{pathname:m,search:y,hash:b},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function r(c,d){return typeof d=="string"?d:Pu(d)}return kg(i,r,null,u)}function we(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function el(u,i){if(!u){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Jg(){return Math.random().toString(36).substring(2,10)}function xy(u,i){return{usr:u.state,key:u.key,idx:i}}function Ao(u,i,r=null,c){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof i=="string"?Wn(i):i,state:r,key:i&&i.key||c||Jg()}}function Pu({pathname:u="/",search:i="",hash:r=""}){return i&&i!=="?"&&(u+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(u+=r.charAt(0)==="#"?r:"#"+r),u}function Wn(u){let i={};if(u){let r=u.indexOf("#");r>=0&&(i.hash=u.substring(r),u=u.substring(0,r));let c=u.indexOf("?");c>=0&&(i.search=u.substring(c),u=u.substring(0,c)),u&&(i.pathname=u)}return i}function kg(u,i,r,c={}){let{window:d=document.defaultView,v5Compat:m=!1}=c,y=d.history,b="POP",g=null,v=T();v==null&&(v=0,y.replaceState({...y.state,idx:v},""));function T(){return(y.state||{idx:null}).idx}function p(){b="POP";let L=T(),U=L==null?null:L-v;v=L,g&&g({action:b,location:O.location,delta:U})}function _(L,U){b="PUSH";let R=Ao(O.location,L,U);v=T()+1;let w=xy(R,v),G=O.createHref(R);try{y.pushState(w,"",G)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;d.location.assign(G)}m&&g&&g({action:b,location:O.location,delta:1})}function H(L,U){b="REPLACE";let R=Ao(O.location,L,U);v=T();let w=xy(R,v),G=O.createHref(R);y.replaceState(w,"",G),m&&g&&g({action:b,location:O.location,delta:0})}function Z(L){return Fg(L)}let O={get action(){return b},get location(){return u(d,y)},listen(L){if(g)throw new Error("A history only accepts one active listener");return d.addEventListener(by,p),g=L,()=>{d.removeEventListener(by,p),g=null}},createHref(L){return i(d,L)},createURL:Z,encodeLocation(L){let U=Z(L);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:_,replace:H,go(L){return y.go(L)}};return O}function Fg(u,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),we(r,"No window.location.(origin|href) available to create URL");let c=typeof u=="string"?u:Pu(u);return c=c.replace(/ $/,"%20"),!i&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function ky(u,i,r="/"){return $g(u,i,r,!1)}function $g(u,i,r,c){let d=typeof i=="string"?Wn(i):i,m=Hl(d.pathname||"/",r);if(m==null)return null;let y=Fy(u);Wg(y);let b=null;for(let g=0;b==null&&g<y.length;++g){let v=rb(m);b=ib(y[g],v,c)}return b}function Fy(u,i=[],r=[],c="",d=!1){let m=(y,b,g=d,v)=>{let T={relativePath:v===void 0?y.path||"":v,caseSensitive:y.caseSensitive===!0,childrenIndex:b,route:y};if(T.relativePath.startsWith("/")){if(!T.relativePath.startsWith(c)&&g)return;we(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 p=Ul([c,T.relativePath]),_=r.concat(T);y.children&&y.children.length>0&&(we(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Fy(y.children,i,_,p,g)),!(y.path==null&&!y.index)&&i.push({path:p,score:nb(p,y.index),routesMeta:_})};return u.forEach((y,b)=>{var g;if(y.path===""||!((g=y.path)!=null&&g.includes("?")))m(y,b);else for(let v of $y(y.path))m(y,b,!0,v)}),i}function $y(u){let i=u.split("/");if(i.length===0)return[];let[r,...c]=i,d=r.endsWith("?"),m=r.replace(/\?$/,"");if(c.length===0)return d?[m,""]:[m];let y=$y(c.join("/")),b=[];return b.push(...y.map(g=>g===""?m:[m,g].join("/"))),d&&b.push(...y),b.map(g=>u.startsWith("/")&&g===""?"/":g)}function Wg(u){u.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 Ig=/^:[\w-]+$/,Pg=3,eb=2,tb=1,lb=10,ab=-2,Sy=u=>u==="*";function nb(u,i){let r=u.split("/"),c=r.length;return r.some(Sy)&&(c+=ab),i&&(c+=eb),r.filter(d=>!Sy(d)).reduce((d,m)=>d+(Ig.test(m)?Pg:m===""?tb:lb),c)}function ub(u,i){return u.length===i.length&&u.slice(0,-1).every((c,d)=>c===i[d])?u[u.length-1]-i[i.length-1]:0}function ib(u,i,r=!1){let{routesMeta:c}=u,d={},m="/",y=[];for(let b=0;b<c.length;++b){let g=c[b],v=b===c.length-1,T=m==="/"?i:i.slice(m.length)||"/",p=ws({path:g.relativePath,caseSensitive:g.caseSensitive,end:v},T),_=g.route;if(!p&&v&&r&&!c[c.length-1].route.index&&(p=ws({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},T)),!p)return null;Object.assign(d,p.params),y.push({params:d,pathname:Ul([m,p.pathname]),pathnameBase:db(Ul([m,p.pathnameBase])),route:_}),p.pathnameBase!=="/"&&(m=Ul([m,p.pathnameBase]))}return y}function ws(u,i){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[r,c]=sb(u.path,u.caseSensitive,u.end),d=i.match(r);if(!d)return null;let m=d[0],y=m.replace(/(.)\/+$/,"$1"),b=d.slice(1);return{params:c.reduce((v,{paramName:T,isOptional:p},_)=>{if(T==="*"){let Z=b[_]||"";y=m.slice(0,m.length-Z.length).replace(/(.)\/+$/,"$1")}const H=b[_];return p&&!H?v[T]=void 0:v[T]=(H||"").replace(/%2F/g,"/"),v},{}),pathname:m,pathnameBase:y,pattern:u}}function sb(u,i=!1,r=!0){el(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let c=[],d="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,b,g)=>(c.push({paramName:b,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(c.push({paramName:"*"}),d+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":u!==""&&u!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,i?void 0:"i"),c]}function rb(u){try{return u.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return el(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),u}}function Hl(u,i){if(i==="/")return u;if(!u.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,c=u.charAt(r);return c&&c!=="/"?null:u.slice(r)||"/"}var cb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ob(u,i="/"){let{pathname:r,search:c="",hash:d=""}=typeof u=="string"?Wn(u):u,m;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?m=Ey(r.substring(1),"/"):m=Ey(r,i)):m=i,{pathname:m,search:hb(c),hash:mb(d)}}function Ey(u,i){let r=i.replace(/\/+$/,"").split("/");return u.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function oo(u,i,r,c){return`Cannot include a '${u}' 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 fb(u){return u.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function Yo(u){let i=fb(u);return i.map((r,c)=>c===i.length-1?r.pathname:r.pathnameBase)}function Go(u,i,r,c=!1){let d;typeof u=="string"?d=Wn(u):(d={...u},we(!d.pathname||!d.pathname.includes("?"),oo("?","pathname","search",d)),we(!d.pathname||!d.pathname.includes("#"),oo("#","pathname","hash",d)),we(!d.search||!d.search.includes("#"),oo("#","search","hash",d)));let m=u===""||d.pathname==="",y=m?"/":d.pathname,b;if(y==null)b=r;else{let p=i.length-1;if(!c&&y.startsWith("..")){let _=y.split("/");for(;_[0]==="..";)_.shift(),p-=1;d.pathname=_.join("/")}b=p>=0?i[p]:"/"}let g=ob(d,b),v=y&&y!=="/"&&y.endsWith("/"),T=(m||y===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(v||T)&&(g.pathname+="/"),g}var Ul=u=>u.join("/").replace(/\/\/+/g,"/"),db=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),hb=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,mb=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,yb=class{constructor(u,i,r,c=!1){this.status=u,this.statusText=i||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function vb(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function pb(u){return u.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Wy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Iy(u,i){let r=u;if(typeof r!="string"||!cb.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,d=!1;if(Wy)try{let m=new URL(window.location.href),y=r.startsWith("//")?new URL(m.protocol+r):new URL(r),b=Hl(y.pathname,i);y.origin===m.origin&&b!=null?r=b+y.search+y.hash:d=!0}catch{el(!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 Py=["POST","PUT","PATCH","DELETE"];new Set(Py);var gb=["GET",...Py];new Set(gb);var In=E.createContext(null);In.displayName="DataRouter";var qs=E.createContext(null);qs.displayName="DataRouterState";var bb=E.createContext(!1),ev=E.createContext({isTransitioning:!1});ev.displayName="ViewTransition";var xb=E.createContext(new Map);xb.displayName="Fetchers";var Sb=E.createContext(null);Sb.displayName="Await";var Ut=E.createContext(null);Ut.displayName="Navigation";var ui=E.createContext(null);ui.displayName="Location";var ol=E.createContext({outlet:null,matches:[],isDataRoute:!1});ol.displayName="Route";var Xo=E.createContext(null);Xo.displayName="RouteError";var tv="REACT_ROUTER_ERROR",Eb="REDIRECT",jb="ROUTE_ERROR_RESPONSE";function Nb(u){if(u.startsWith(`${tv}:${Eb}:{`))try{let i=JSON.parse(u.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(u){if(u.startsWith(`${tv}:${jb}:{`))try{let i=JSON.parse(u.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new yb(i.status,i.statusText,i.data)}catch{}}function Cb(u,{relative:i}={}){we(Pn(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=E.useContext(Ut),{hash:d,pathname:m,search:y}=ii(u,{relative:i}),b=m;return r!=="/"&&(b=m==="/"?r:Ul([r,m])),c.createHref({pathname:b,search:y,hash:d})}function Pn(){return E.useContext(ui)!=null}function Sa(){return we(Pn(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(ui).location}var lv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function av(u){E.useContext(Ut).static||E.useLayoutEffect(u)}function nv(){let{isDataRoute:u}=E.useContext(ol);return u?Qb():Ob()}function Ob(){we(Pn(),"useNavigate() may be used only in the context of a <Router> component.");let u=E.useContext(In),{basename:i,navigator:r}=E.useContext(Ut),{matches:c}=E.useContext(ol),{pathname:d}=Sa(),m=JSON.stringify(Yo(c)),y=E.useRef(!1);return av(()=>{y.current=!0}),E.useCallback((g,v={})=>{if(el(y.current,lv),!y.current)return;if(typeof g=="number"){r.go(g);return}let T=Go(g,JSON.parse(m),d,v.relative==="path");u==null&&i!=="/"&&(T.pathname=T.pathname==="/"?i:Ul([i,T.pathname])),(v.replace?r.replace:r.push)(T,v.state,v)},[i,r,m,d,u])}E.createContext(null);function ii(u,{relative:i}={}){let{matches:r}=E.useContext(ol),{pathname:c}=Sa(),d=JSON.stringify(Yo(r));return E.useMemo(()=>Go(u,JSON.parse(d),c,i==="path"),[u,d,c,i])}function Rb(u,i){return uv(u,i)}function uv(u,i,r,c,d){var R;we(Pn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:m}=E.useContext(Ut),{matches:y}=E.useContext(ol),b=y[y.length-1],g=b?b.params:{},v=b?b.pathname:"/",T=b?b.pathnameBase:"/",p=b&&b.route;{let w=p&&p.path||"";sv(v,!p||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${w}">) 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.
|
|
58
|
+
*/var by="popstate";function Vg(u={}){function i(c,d){let{pathname:m,search:y,hash:b}=c.location;return Ao("",{pathname:m,search:y,hash:b},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function r(c,d){return typeof d=="string"?d:Pu(d)}return Jg(i,r,null,u)}function we(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function el(u,i){if(!u){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function kg(){return Math.random().toString(36).substring(2,10)}function xy(u,i){return{usr:u.state,key:u.key,idx:i}}function Ao(u,i,r=null,c){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof i=="string"?Wn(i):i,state:r,key:i&&i.key||c||kg()}}function Pu({pathname:u="/",search:i="",hash:r=""}){return i&&i!=="?"&&(u+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(u+=r.charAt(0)==="#"?r:"#"+r),u}function Wn(u){let i={};if(u){let r=u.indexOf("#");r>=0&&(i.hash=u.substring(r),u=u.substring(0,r));let c=u.indexOf("?");c>=0&&(i.search=u.substring(c),u=u.substring(0,c)),u&&(i.pathname=u)}return i}function Jg(u,i,r,c={}){let{window:d=document.defaultView,v5Compat:m=!1}=c,y=d.history,b="POP",p=null,v=T();v==null&&(v=0,y.replaceState({...y.state,idx:v},""));function T(){return(y.state||{idx:null}).idx}function g(){b="POP";let L=T(),U=L==null?null:L-v;v=L,p&&p({action:b,location:R.location,delta:U})}function z(L,U){b="PUSH";let Y=Ao(R.location,L,U);v=T()+1;let q=xy(Y,v),O=R.createHref(Y);try{y.pushState(q,"",O)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;d.location.assign(O)}m&&p&&p({action:b,location:R.location,delta:1})}function w(L,U){b="REPLACE";let Y=Ao(R.location,L,U);v=T();let q=xy(Y,v),O=R.createHref(Y);y.replaceState(q,"",O),m&&p&&p({action:b,location:R.location,delta:0})}function Z(L){return Fg(L)}let R={get action(){return b},get location(){return u(d,y)},listen(L){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(by,g),p=L,()=>{d.removeEventListener(by,g),p=null}},createHref(L){return i(d,L)},createURL:Z,encodeLocation(L){let U=Z(L);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:z,replace:w,go(L){return y.go(L)}};return R}function Fg(u,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),we(r,"No window.location.(origin|href) available to create URL");let c=typeof u=="string"?u:Pu(u);return c=c.replace(/ $/,"%20"),!i&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function Jy(u,i,r="/"){return $g(u,i,r,!1)}function $g(u,i,r,c){let d=typeof i=="string"?Wn(i):i,m=Hl(d.pathname||"/",r);if(m==null)return null;let y=Fy(u);Wg(y);let b=null;for(let p=0;b==null&&p<y.length;++p){let v=rb(m);b=ib(y[p],v,c)}return b}function Fy(u,i=[],r=[],c="",d=!1){let m=(y,b,p=d,v)=>{let T={relativePath:v===void 0?y.path||"":v,caseSensitive:y.caseSensitive===!0,childrenIndex:b,route:y};if(T.relativePath.startsWith("/")){if(!T.relativePath.startsWith(c)&&p)return;we(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 g=Ul([c,T.relativePath]),z=r.concat(T);y.children&&y.children.length>0&&(we(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Fy(y.children,i,z,g,p)),!(y.path==null&&!y.index)&&i.push({path:g,score:nb(g,y.index),routesMeta:z})};return u.forEach((y,b)=>{var p;if(y.path===""||!((p=y.path)!=null&&p.includes("?")))m(y,b);else for(let v of $y(y.path))m(y,b,!0,v)}),i}function $y(u){let i=u.split("/");if(i.length===0)return[];let[r,...c]=i,d=r.endsWith("?"),m=r.replace(/\?$/,"");if(c.length===0)return d?[m,""]:[m];let y=$y(c.join("/")),b=[];return b.push(...y.map(p=>p===""?m:[m,p].join("/"))),d&&b.push(...y),b.map(p=>u.startsWith("/")&&p===""?"/":p)}function Wg(u){u.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 Ig=/^:[\w-]+$/,Pg=3,eb=2,tb=1,lb=10,ab=-2,Sy=u=>u==="*";function nb(u,i){let r=u.split("/"),c=r.length;return r.some(Sy)&&(c+=ab),i&&(c+=eb),r.filter(d=>!Sy(d)).reduce((d,m)=>d+(Ig.test(m)?Pg:m===""?tb:lb),c)}function ub(u,i){return u.length===i.length&&u.slice(0,-1).every((c,d)=>c===i[d])?u[u.length-1]-i[i.length-1]:0}function ib(u,i,r=!1){let{routesMeta:c}=u,d={},m="/",y=[];for(let b=0;b<c.length;++b){let p=c[b],v=b===c.length-1,T=m==="/"?i:i.slice(m.length)||"/",g=ws({path:p.relativePath,caseSensitive:p.caseSensitive,end:v},T),z=p.route;if(!g&&v&&r&&!c[c.length-1].route.index&&(g=ws({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},T)),!g)return null;Object.assign(d,g.params),y.push({params:d,pathname:Ul([m,g.pathname]),pathnameBase:db(Ul([m,g.pathnameBase])),route:z}),g.pathnameBase!=="/"&&(m=Ul([m,g.pathnameBase]))}return y}function ws(u,i){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[r,c]=sb(u.path,u.caseSensitive,u.end),d=i.match(r);if(!d)return null;let m=d[0],y=m.replace(/(.)\/+$/,"$1"),b=d.slice(1);return{params:c.reduce((v,{paramName:T,isOptional:g},z)=>{if(T==="*"){let Z=b[z]||"";y=m.slice(0,m.length-Z.length).replace(/(.)\/+$/,"$1")}const w=b[z];return g&&!w?v[T]=void 0:v[T]=(w||"").replace(/%2F/g,"/"),v},{}),pathname:m,pathnameBase:y,pattern:u}}function sb(u,i=!1,r=!0){el(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let c=[],d="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,b,p)=>(c.push({paramName:b,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(c.push({paramName:"*"}),d+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":u!==""&&u!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,i?void 0:"i"),c]}function rb(u){try{return u.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return el(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),u}}function Hl(u,i){if(i==="/")return u;if(!u.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,c=u.charAt(r);return c&&c!=="/"?null:u.slice(r)||"/"}var cb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ob(u,i="/"){let{pathname:r,search:c="",hash:d=""}=typeof u=="string"?Wn(u):u,m;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?m=Ey(r.substring(1),"/"):m=Ey(r,i)):m=i,{pathname:m,search:hb(c),hash:mb(d)}}function Ey(u,i){let r=i.replace(/\/+$/,"").split("/");return u.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function oo(u,i,r,c){return`Cannot include a '${u}' 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 fb(u){return u.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function Yo(u){let i=fb(u);return i.map((r,c)=>c===i.length-1?r.pathname:r.pathnameBase)}function Go(u,i,r,c=!1){let d;typeof u=="string"?d=Wn(u):(d={...u},we(!d.pathname||!d.pathname.includes("?"),oo("?","pathname","search",d)),we(!d.pathname||!d.pathname.includes("#"),oo("#","pathname","hash",d)),we(!d.search||!d.search.includes("#"),oo("#","search","hash",d)));let m=u===""||d.pathname==="",y=m?"/":d.pathname,b;if(y==null)b=r;else{let g=i.length-1;if(!c&&y.startsWith("..")){let z=y.split("/");for(;z[0]==="..";)z.shift(),g-=1;d.pathname=z.join("/")}b=g>=0?i[g]:"/"}let p=ob(d,b),v=y&&y!=="/"&&y.endsWith("/"),T=(m||y===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(v||T)&&(p.pathname+="/"),p}var Ul=u=>u.join("/").replace(/\/\/+/g,"/"),db=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),hb=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,mb=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,yb=class{constructor(u,i,r,c=!1){this.status=u,this.statusText=i||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function vb(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function pb(u){return u.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Wy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Iy(u,i){let r=u;if(typeof r!="string"||!cb.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,d=!1;if(Wy)try{let m=new URL(window.location.href),y=r.startsWith("//")?new URL(m.protocol+r):new URL(r),b=Hl(y.pathname,i);y.origin===m.origin&&b!=null?r=b+y.search+y.hash:d=!0}catch{el(!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 Py=["POST","PUT","PATCH","DELETE"];new Set(Py);var gb=["GET",...Py];new Set(gb);var In=E.createContext(null);In.displayName="DataRouter";var qs=E.createContext(null);qs.displayName="DataRouterState";var bb=E.createContext(!1),ev=E.createContext({isTransitioning:!1});ev.displayName="ViewTransition";var xb=E.createContext(new Map);xb.displayName="Fetchers";var Sb=E.createContext(null);Sb.displayName="Await";var Dt=E.createContext(null);Dt.displayName="Navigation";var ui=E.createContext(null);ui.displayName="Location";var ol=E.createContext({outlet:null,matches:[],isDataRoute:!1});ol.displayName="Route";var Xo=E.createContext(null);Xo.displayName="RouteError";var tv="REACT_ROUTER_ERROR",Eb="REDIRECT",jb="ROUTE_ERROR_RESPONSE";function Nb(u){if(u.startsWith(`${tv}:${Eb}:{`))try{let i=JSON.parse(u.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(u){if(u.startsWith(`${tv}:${jb}:{`))try{let i=JSON.parse(u.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new yb(i.status,i.statusText,i.data)}catch{}}function Cb(u,{relative:i}={}){we(Pn(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=E.useContext(Dt),{hash:d,pathname:m,search:y}=ii(u,{relative:i}),b=m;return r!=="/"&&(b=m==="/"?r:Ul([r,m])),c.createHref({pathname:b,search:y,hash:d})}function Pn(){return E.useContext(ui)!=null}function Sa(){return we(Pn(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(ui).location}var lv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function av(u){E.useContext(Dt).static||E.useLayoutEffect(u)}function nv(){let{isDataRoute:u}=E.useContext(ol);return u?Qb():Ob()}function Ob(){we(Pn(),"useNavigate() may be used only in the context of a <Router> component.");let u=E.useContext(In),{basename:i,navigator:r}=E.useContext(Dt),{matches:c}=E.useContext(ol),{pathname:d}=Sa(),m=JSON.stringify(Yo(c)),y=E.useRef(!1);return av(()=>{y.current=!0}),E.useCallback((p,v={})=>{if(el(y.current,lv),!y.current)return;if(typeof p=="number"){r.go(p);return}let T=Go(p,JSON.parse(m),d,v.relative==="path");u==null&&i!=="/"&&(T.pathname=T.pathname==="/"?i:Ul([i,T.pathname])),(v.replace?r.replace:r.push)(T,v.state,v)},[i,r,m,d,u])}E.createContext(null);function ii(u,{relative:i}={}){let{matches:r}=E.useContext(ol),{pathname:c}=Sa(),d=JSON.stringify(Yo(r));return E.useMemo(()=>Go(u,JSON.parse(d),c,i==="path"),[u,d,c,i])}function Rb(u,i){return uv(u,i)}function uv(u,i,r,c,d){var Y;we(Pn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:m}=E.useContext(Dt),{matches:y}=E.useContext(ol),b=y[y.length-1],p=b?b.params:{},v=b?b.pathname:"/",T=b?b.pathnameBase:"/",g=b&&b.route;{let q=g&&g.path||"";sv(v,!g||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${q}">) 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
59
|
|
|
60
|
-
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let _=Sa(),H;if(i){let w=typeof i=="string"?Wn(i):i;we(T==="/"||((R=w.pathname)==null?void 0:R.startsWith(T)),`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 "${T}" but pathname "${w.pathname}" was given in the \`location\` prop.`),H=w}else H=_;let Z=H.pathname||"/",O=Z;if(T!=="/"){let w=T.replace(/^\//,"").split("/");O="/"+Z.replace(/^\//,"").split("/").slice(w.length).join("/")}let L=ky(u,{pathname:O});el(p||L!=null,`No routes matched location "${H.pathname}${H.search}${H.hash}" `),el(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${H.pathname}${H.search}${H.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 U=Db(L&&L.map(w=>Object.assign({},w,{params:Object.assign({},g,w.params),pathname:Ul([T,m.encodeLocation?m.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?T:Ul([T,m.encodeLocation?m.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),y,r,c,d);return i&&U?E.createElement(ui.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...H},navigationType:"POP"}},U):U}function Ab(){let u=Bb(),i=vb(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),r=u instanceof Error?u.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},y=null;return console.error("Error handled by React Router default ErrorBoundary:",u),y=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:m},"ErrorBoundary")," or"," ",E.createElement("code",{style:m},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},i),r?E.createElement("pre",{style:d},r):null,y)}var zb=E.createElement(Ab,null),iv=class extends E.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,i){return i.location!==u.location||i.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:i.error,location:i.location,revalidation:u.revalidation||i.revalidation}}componentDidCatch(u,i){this.props.onError?this.props.onError(u,i):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const r=Tb(u.digest);r&&(u=r)}let i=u!==void 0?E.createElement(ol.Provider,{value:this.props.routeContext},E.createElement(Xo.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?E.createElement(Mb,{error:u},i):i}};iv.contextType=bb;var fo=new WeakMap;function Mb({children:u,error:i}){let{basename:r}=E.useContext(Ut);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let c=Nb(i.digest);if(c){let d=fo.get(i);if(d)throw d;let m=Iy(c.location,r);if(Wy&&!fo.get(i))if(m.isExternal||c.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:c.replace}));throw fo.set(i,y),y}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return u}function _b({routeContext:u,match:i,children:r}){let c=E.useContext(In);return c&&c.static&&c.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=i.route.id),E.createElement(ol.Provider,{value:u},r)}function Db(u,i=[],r=null,c=null,d=null){if(u==null){if(!r)return null;if(r.errors)u=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)u=r.matches;else return null}let m=u,y=r==null?void 0:r.errors;if(y!=null){let T=m.findIndex(p=>p.route.id&&(y==null?void 0:y[p.route.id])!==void 0);we(T>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),m=m.slice(0,Math.min(m.length,T+1))}let b=!1,g=-1;if(r)for(let T=0;T<m.length;T++){let p=m[T];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(g=T),p.route.id){let{loaderData:_,errors:H}=r,Z=p.route.loader&&!_.hasOwnProperty(p.route.id)&&(!H||H[p.route.id]===void 0);if(p.route.lazy||Z){b=!0,g>=0?m=m.slice(0,g+1):m=[m[0]];break}}}let v=r&&c?(T,p)=>{var _,H;c(T,{location:r.location,params:((H=(_=r.matches)==null?void 0:_[0])==null?void 0:H.params)??{},unstable_pattern:pb(r.matches),errorInfo:p})}:void 0;return m.reduceRight((T,p,_)=>{let H,Z=!1,O=null,L=null;r&&(H=y&&p.route.id?y[p.route.id]:void 0,O=p.route.errorElement||zb,b&&(g<0&&_===0?(sv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Z=!0,L=null):g===_&&(Z=!0,L=p.route.hydrateFallbackElement||null)));let U=i.concat(m.slice(0,_+1)),R=()=>{let w;return H?w=O:Z?w=L:p.route.Component?w=E.createElement(p.route.Component,null):p.route.element?w=p.route.element:w=T,E.createElement(_b,{match:p,routeContext:{outlet:T,matches:U,isDataRoute:r!=null},children:w})};return r&&(p.route.ErrorBoundary||p.route.errorElement||_===0)?E.createElement(iv,{location:r.location,revalidation:r.revalidation,component:O,error:H,children:R(),routeContext:{outlet:null,matches:U,isDataRoute:!0},onError:v}):R()},null)}function Zo(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ub(u){let i=E.useContext(In);return we(i,Zo(u)),i}function wb(u){let i=E.useContext(qs);return we(i,Zo(u)),i}function Hb(u){let i=E.useContext(ol);return we(i,Zo(u)),i}function Ko(u){let i=Hb(u),r=i.matches[i.matches.length-1];return we(r.route.id,`${u} can only be used on routes that contain a unique "id"`),r.route.id}function qb(){return Ko("useRouteId")}function Bb(){var c;let u=E.useContext(Xo),i=wb("useRouteError"),r=Ko("useRouteError");return u!==void 0?u:(c=i.errors)==null?void 0:c[r]}function Qb(){let{router:u}=Ub("useNavigate"),i=Ko("useNavigate"),r=E.useRef(!1);return av(()=>{r.current=!0}),E.useCallback(async(d,m={})=>{el(r.current,lv),r.current&&(typeof d=="number"?await u.navigate(d):await u.navigate(d,{fromRouteId:i,...m}))},[u,i])}var jy={};function sv(u,i,r){!i&&!jy[u]&&(jy[u]=!0,el(!1,r))}E.memo(Lb);function Lb({routes:u,future:i,state:r,onError:c}){return uv(u,void 0,r,c,i)}function Yb({to:u,replace:i,state:r,relative:c}){we(Pn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=E.useContext(Ut);el(!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:m}=E.useContext(ol),{pathname:y}=Sa(),b=nv(),g=Go(u,Yo(m),y,c==="path"),v=JSON.stringify(g);return E.useEffect(()=>{b(JSON.parse(v),{replace:i,state:r,relative:c})},[b,v,c,i,r]),null}function il(u){we(!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 Gb({basename:u="/",children:i=null,location:r,navigationType:c="POP",navigator:d,static:m=!1,unstable_useTransitions:y}){we(!Pn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let b=u.replace(/^\/*/,"/"),g=E.useMemo(()=>({basename:b,navigator:d,static:m,unstable_useTransitions:y,future:{}}),[b,d,m,y]);typeof r=="string"&&(r=Wn(r));let{pathname:v="/",search:T="",hash:p="",state:_=null,key:H="default"}=r,Z=E.useMemo(()=>{let O=Hl(v,b);return O==null?null:{location:{pathname:O,search:T,hash:p,state:_,key:H},navigationType:c}},[b,v,T,p,_,H,c]);return el(Z!=null,`<Router basename="${b}"> is not able to match the URL "${v}${T}${p}" because it does not start with the basename, so the <Router> won't render anything.`),Z==null?null:E.createElement(Ut.Provider,{value:g},E.createElement(ui.Provider,{children:i,value:Z}))}function Xb({children:u,location:i}){return Rb(zo(u),i)}function zo(u,i=[]){let r=[];return E.Children.forEach(u,(c,d)=>{if(!E.isValidElement(c))return;let m=[...i,d];if(c.type===E.Fragment){r.push.apply(r,zo(c.props.children,m));return}we(c.type===il,`[${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>`),we(!c.props.index||!c.props.children,"An index route cannot have child routes.");let y={id:c.props.id||m.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&&(y.children=zo(c.props.children,m)),r.push(y)}),r}var zs="get",Ms="application/x-www-form-urlencoded";function Bs(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function Zb(u){return Bs(u)&&u.tagName.toLowerCase()==="button"}function Kb(u){return Bs(u)&&u.tagName.toLowerCase()==="form"}function Vb(u){return Bs(u)&&u.tagName.toLowerCase()==="input"}function Jb(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function kb(u,i){return u.button===0&&(!i||i==="_self")&&!Jb(u)}var Os=null;function Fb(){if(Os===null)try{new FormData(document.createElement("form"),0),Os=!1}catch{Os=!0}return Os}var $b=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ho(u){return u!=null&&!$b.has(u)?(el(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ms}"`),null):u}function Wb(u,i){let r,c,d,m,y;if(Kb(u)){let b=u.getAttribute("action");c=b?Hl(b,i):null,r=u.getAttribute("method")||zs,d=ho(u.getAttribute("enctype"))||Ms,m=new FormData(u)}else if(Zb(u)||Vb(u)&&(u.type==="submit"||u.type==="image")){let b=u.form;if(b==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=u.getAttribute("formaction")||b.getAttribute("action");if(c=g?Hl(g,i):null,r=u.getAttribute("formmethod")||b.getAttribute("method")||zs,d=ho(u.getAttribute("formenctype"))||ho(b.getAttribute("enctype"))||Ms,m=new FormData(b,u),!Fb()){let{name:v,type:T,value:p}=u;if(T==="image"){let _=v?`${v}.`:"";m.append(`${_}x`,"0"),m.append(`${_}y`,"0")}else v&&m.append(v,p)}}else{if(Bs(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=zs,c=null,d=Ms,y=u}return m&&d==="text/plain"&&(y=m,m=void 0),{action:c,method:r.toLowerCase(),encType:d,formData:m,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Vo(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function Ib(u,i,r,c){let d=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:i&&Hl(d.pathname,i)==="/"?d.pathname=`${i.replace(/\/$/,"")}/_root.${c}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${c}`,d}async function Pb(u,i){if(u.id in i)return i[u.id];try{let r=await import(u.module);return i[u.id]=r,r}catch(r){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ex(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function tx(u,i,r){let c=await Promise.all(u.map(async d=>{let m=i.routes[d.route.id];if(m){let y=await Pb(m,r);return y.links?y.links():[]}return[]}));return ux(c.flat(1).filter(ex).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Ny(u,i,r,c,d,m){let y=(g,v)=>r[v]?g.route.id!==r[v].route.id:!0,b=(g,v)=>{var T;return r[v].pathname!==g.pathname||((T=r[v].route.path)==null?void 0:T.endsWith("*"))&&r[v].params["*"]!==g.params["*"]};return m==="assets"?i.filter((g,v)=>y(g,v)||b(g,v)):m==="data"?i.filter((g,v)=>{var p;let T=c.routes[g.route.id];if(!T||!T.hasLoader)return!1;if(y(g,v)||b(g,v))return!0;if(g.route.shouldRevalidate){let _=g.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((p=r[0])==null?void 0:p.params)||{},nextUrl:new URL(u,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof _=="boolean")return _}return!0}):[]}function lx(u,i,{includeHydrateFallback:r}={}){return ax(u.map(c=>{let d=i.routes[c.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function ax(u){return[...new Set(u)]}function nx(u){let i={},r=Object.keys(u).sort();for(let c of r)i[c]=u[c];return i}function ux(u,i){let r=new Set;return new Set(i),u.reduce((c,d)=>{let m=JSON.stringify(nx(d));return r.has(m)||(r.add(m),c.push({key:m,link:d})),c},[])}function rv(){let u=E.useContext(In);return Vo(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function ix(){let u=E.useContext(qs);return Vo(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var Jo=E.createContext(void 0);Jo.displayName="FrameworkContext";function cv(){let u=E.useContext(Jo);return Vo(u,"You must render this element inside a <HydratedRouter> element"),u}function sx(u,i){let r=E.useContext(Jo),[c,d]=E.useState(!1),[m,y]=E.useState(!1),{onFocus:b,onBlur:g,onMouseEnter:v,onMouseLeave:T,onTouchStart:p}=i,_=E.useRef(null);E.useEffect(()=>{if(u==="render"&&y(!0),u==="viewport"){let O=U=>{U.forEach(R=>{y(R.isIntersecting)})},L=new IntersectionObserver(O,{threshold:.5});return _.current&&L.observe(_.current),()=>{L.disconnect()}}},[u]),E.useEffect(()=>{if(c){let O=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(O)}}},[c]);let H=()=>{d(!0)},Z=()=>{d(!1),y(!1)};return r?u!=="intent"?[m,_,{}]:[m,_,{onFocus:$u(b,H),onBlur:$u(g,Z),onMouseEnter:$u(v,H),onMouseLeave:$u(T,Z),onTouchStart:$u(p,H)}]:[!1,_,{}]}function $u(u,i){return r=>{u&&u(r),r.defaultPrevented||i(r)}}function rx({page:u,...i}){let{router:r}=rv(),c=E.useMemo(()=>ky(r.routes,u,r.basename),[r.routes,u,r.basename]);return c?E.createElement(ox,{page:u,matches:c,...i}):null}function cx(u){let{manifest:i,routeModules:r}=cv(),[c,d]=E.useState([]);return E.useEffect(()=>{let m=!1;return tx(u,i,r).then(y=>{m||d(y)}),()=>{m=!0}},[u,i,r]),c}function ox({page:u,matches:i,...r}){let c=Sa(),{future:d,manifest:m,routeModules:y}=cv(),{basename:b}=rv(),{loaderData:g,matches:v}=ix(),T=E.useMemo(()=>Ny(u,i,v,m,c,"data"),[u,i,v,m,c]),p=E.useMemo(()=>Ny(u,i,v,m,c,"assets"),[u,i,v,m,c]),_=E.useMemo(()=>{if(u===c.pathname+c.search+c.hash)return[];let O=new Set,L=!1;if(i.forEach(R=>{var G;let w=m.routes[R.route.id];!w||!w.hasLoader||(!T.some($=>$.route.id===R.route.id)&&R.route.id in g&&((G=y[R.route.id])!=null&&G.shouldRevalidate)||w.hasClientLoader?L=!0:O.add(R.route.id))}),O.size===0)return[];let U=Ib(u,b,d.unstable_trailingSlashAwareDataRequests,"data");return L&&O.size>0&&U.searchParams.set("_routes",i.filter(R=>O.has(R.route.id)).map(R=>R.route.id).join(",")),[U.pathname+U.search]},[b,d.unstable_trailingSlashAwareDataRequests,g,c,m,T,i,u,y]),H=E.useMemo(()=>lx(p,m),[p,m]),Z=cx(p);return E.createElement(E.Fragment,null,_.map(O=>E.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...r})),H.map(O=>E.createElement("link",{key:O,rel:"modulepreload",href:O,...r})),Z.map(({key:O,link:L})=>E.createElement("link",{key:O,nonce:r.nonce,...L,crossOrigin:L.crossOrigin??r.crossOrigin})))}function fx(...u){return i=>{u.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var dx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{dx&&(window.__reactRouterVersion="7.13.0")}catch{}function hx({basename:u,children:i,unstable_useTransitions:r,window:c}){let d=E.useRef();d.current==null&&(d.current=Vg({window:c,v5Compat:!0}));let m=d.current,[y,b]=E.useState({action:m.action,location:m.location}),g=E.useCallback(v=>{r===!1?b(v):E.startTransition(()=>b(v))},[r]);return E.useLayoutEffect(()=>m.listen(g),[m,g]),E.createElement(Gb,{basename:u,children:i,location:y.location,navigationType:y.action,navigator:m,unstable_useTransitions:r})}var ov=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fv=E.forwardRef(function({onClick:i,discover:r="render",prefetch:c="none",relative:d,reloadDocument:m,replace:y,state:b,target:g,to:v,preventScrollReset:T,viewTransition:p,unstable_defaultShouldRevalidate:_,...H},Z){let{basename:O,unstable_useTransitions:L}=E.useContext(Ut),U=typeof v=="string"&&ov.test(v),R=Iy(v,O);v=R.to;let w=Cb(v,{relative:d}),[G,$,K]=sx(c,H),F=vx(v,{replace:y,state:b,target:g,preventScrollReset:T,relative:d,viewTransition:p,unstable_defaultShouldRevalidate:_,unstable_useTransitions:L});function ae(Te){i&&i(Te),Te.defaultPrevented||F(Te)}let he=E.createElement("a",{...H,...K,href:R.absoluteURL||w,onClick:R.isExternal||m?i:ae,ref:fx(Z,$),target:g,"data-discover":!U&&r==="render"?"true":void 0});return G&&!U?E.createElement(E.Fragment,null,he,E.createElement(rx,{page:w})):he});fv.displayName="Link";var dv=E.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:c="",end:d=!1,style:m,to:y,viewTransition:b,children:g,...v},T){let p=ii(y,{relative:v.relative}),_=Sa(),H=E.useContext(qs),{navigator:Z,basename:O}=E.useContext(Ut),L=H!=null&&Sx(p)&&b===!0,U=Z.encodeLocation?Z.encodeLocation(p).pathname:p.pathname,R=_.pathname,w=H&&H.navigation&&H.navigation.location?H.navigation.location.pathname:null;r||(R=R.toLowerCase(),w=w?w.toLowerCase():null,U=U.toLowerCase()),w&&O&&(w=Hl(w,O)||w);const G=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let $=R===U||!d&&R.startsWith(U)&&R.charAt(G)==="/",K=w!=null&&(w===U||!d&&w.startsWith(U)&&w.charAt(U.length)==="/"),F={isActive:$,isPending:K,isTransitioning:L},ae=$?i:void 0,he;typeof c=="function"?he=c(F):he=[c,$?"active":null,K?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let Te=typeof m=="function"?m(F):m;return E.createElement(fv,{...v,"aria-current":ae,className:he,ref:T,style:Te,to:y,viewTransition:b},typeof g=="function"?g(F):g)});dv.displayName="NavLink";var mx=E.forwardRef(({discover:u="render",fetcherKey:i,navigate:r,reloadDocument:c,replace:d,state:m,method:y=zs,action:b,onSubmit:g,relative:v,preventScrollReset:T,viewTransition:p,unstable_defaultShouldRevalidate:_,...H},Z)=>{let{unstable_useTransitions:O}=E.useContext(Ut),L=bx(),U=xx(b,{relative:v}),R=y.toLowerCase()==="get"?"get":"post",w=typeof b=="string"&&ov.test(b),G=$=>{if(g&&g($),$.defaultPrevented)return;$.preventDefault();let K=$.nativeEvent.submitter,F=(K==null?void 0:K.getAttribute("formmethod"))||y,ae=()=>L(K||$.currentTarget,{fetcherKey:i,method:F,navigate:r,replace:d,state:m,relative:v,preventScrollReset:T,viewTransition:p,unstable_defaultShouldRevalidate:_});O&&r!==!1?E.startTransition(()=>ae()):ae()};return E.createElement("form",{ref:Z,method:R,action:U,onSubmit:c?g:G,...H,"data-discover":!w&&u==="render"?"true":void 0})});mx.displayName="Form";function yx(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hv(u){let i=E.useContext(In);return we(i,yx(u)),i}function vx(u,{target:i,replace:r,state:c,preventScrollReset:d,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:b,unstable_useTransitions:g}={}){let v=nv(),T=Sa(),p=ii(u,{relative:m});return E.useCallback(_=>{if(kb(_,i)){_.preventDefault();let H=r!==void 0?r:Pu(T)===Pu(p),Z=()=>v(u,{replace:H,state:c,preventScrollReset:d,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:b});g?E.startTransition(()=>Z()):Z()}},[T,v,p,r,c,i,u,d,m,y,b,g])}var px=0,gx=()=>`__${String(++px)}__`;function bx(){let{router:u}=hv("useSubmit"),{basename:i}=E.useContext(Ut),r=qb(),c=u.fetch,d=u.navigate;return E.useCallback(async(m,y={})=>{let{action:b,method:g,encType:v,formData:T,body:p}=Wb(m,i);if(y.navigate===!1){let _=y.fetcherKey||gx();await c(_,r,y.action||b,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:T,body:p,formMethod:y.method||g,formEncType:y.encType||v,flushSync:y.flushSync})}else await d(y.action||b,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:T,body:p,formMethod:y.method||g,formEncType:y.encType||v,replace:y.replace,state:y.state,fromRouteId:r,flushSync:y.flushSync,viewTransition:y.viewTransition})},[c,d,i,r])}function xx(u,{relative:i}={}){let{basename:r}=E.useContext(Ut),c=E.useContext(ol);we(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),m={...ii(u||".",{relative:i})},y=Sa();if(u==null){m.search=y.search;let b=new URLSearchParams(m.search),g=b.getAll("index");if(g.some(T=>T==="")){b.delete("index"),g.filter(p=>p).forEach(p=>b.append("index",p));let T=b.toString();m.search=T?`?${T}`:""}}return(!u||u===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(m.pathname=m.pathname==="/"?r:Ul([r,m.pathname])),Pu(m)}function Sx(u,{relative:i}={}){let r=E.useContext(ev);we(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=hv("useViewTransitionState"),d=ii(u,{relative:i});if(!r.isTransitioning)return!1;let m=Hl(r.currentLocation.pathname,c)||r.currentLocation.pathname,y=Hl(r.nextLocation.pathname,c)||r.nextLocation.pathname;return ws(d.pathname,y)!=null||ws(d.pathname,m)!=null}/**
|
|
60
|
+
Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let z=Sa(),w;if(i){let q=typeof i=="string"?Wn(i):i;we(T==="/"||((Y=q.pathname)==null?void 0:Y.startsWith(T)),`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 "${T}" but pathname "${q.pathname}" was given in the \`location\` prop.`),w=q}else w=z;let Z=w.pathname||"/",R=Z;if(T!=="/"){let q=T.replace(/^\//,"").split("/");R="/"+Z.replace(/^\//,"").split("/").slice(q.length).join("/")}let L=Jy(u,{pathname:R});el(g||L!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),el(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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 U=Db(L&&L.map(q=>Object.assign({},q,{params:Object.assign({},p,q.params),pathname:Ul([T,m.encodeLocation?m.encodeLocation(q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?T:Ul([T,m.encodeLocation?m.encodeLocation(q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),y,r,c,d);return i&&U?E.createElement(ui.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},U):U}function Ab(){let u=Bb(),i=vb(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),r=u instanceof Error?u.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},y=null;return console.error("Error handled by React Router default ErrorBoundary:",u),y=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:m},"ErrorBoundary")," or"," ",E.createElement("code",{style:m},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},i),r?E.createElement("pre",{style:d},r):null,y)}var Mb=E.createElement(Ab,null),iv=class extends E.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,i){return i.location!==u.location||i.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:i.error,location:i.location,revalidation:u.revalidation||i.revalidation}}componentDidCatch(u,i){this.props.onError?this.props.onError(u,i):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const r=Tb(u.digest);r&&(u=r)}let i=u!==void 0?E.createElement(ol.Provider,{value:this.props.routeContext},E.createElement(Xo.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?E.createElement(zb,{error:u},i):i}};iv.contextType=bb;var fo=new WeakMap;function zb({children:u,error:i}){let{basename:r}=E.useContext(Dt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let c=Nb(i.digest);if(c){let d=fo.get(i);if(d)throw d;let m=Iy(c.location,r);if(Wy&&!fo.get(i))if(m.isExternal||c.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:c.replace}));throw fo.set(i,y),y}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return u}function _b({routeContext:u,match:i,children:r}){let c=E.useContext(In);return c&&c.static&&c.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=i.route.id),E.createElement(ol.Provider,{value:u},r)}function Db(u,i=[],r=null,c=null,d=null){if(u==null){if(!r)return null;if(r.errors)u=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)u=r.matches;else return null}let m=u,y=r==null?void 0:r.errors;if(y!=null){let T=m.findIndex(g=>g.route.id&&(y==null?void 0:y[g.route.id])!==void 0);we(T>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),m=m.slice(0,Math.min(m.length,T+1))}let b=!1,p=-1;if(r)for(let T=0;T<m.length;T++){let g=m[T];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(p=T),g.route.id){let{loaderData:z,errors:w}=r,Z=g.route.loader&&!z.hasOwnProperty(g.route.id)&&(!w||w[g.route.id]===void 0);if(g.route.lazy||Z){b=!0,p>=0?m=m.slice(0,p+1):m=[m[0]];break}}}let v=r&&c?(T,g)=>{var z,w;c(T,{location:r.location,params:((w=(z=r.matches)==null?void 0:z[0])==null?void 0:w.params)??{},unstable_pattern:pb(r.matches),errorInfo:g})}:void 0;return m.reduceRight((T,g,z)=>{let w,Z=!1,R=null,L=null;r&&(w=y&&g.route.id?y[g.route.id]:void 0,R=g.route.errorElement||Mb,b&&(p<0&&z===0?(sv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Z=!0,L=null):p===z&&(Z=!0,L=g.route.hydrateFallbackElement||null)));let U=i.concat(m.slice(0,z+1)),Y=()=>{let q;return w?q=R:Z?q=L:g.route.Component?q=E.createElement(g.route.Component,null):g.route.element?q=g.route.element:q=T,E.createElement(_b,{match:g,routeContext:{outlet:T,matches:U,isDataRoute:r!=null},children:q})};return r&&(g.route.ErrorBoundary||g.route.errorElement||z===0)?E.createElement(iv,{location:r.location,revalidation:r.revalidation,component:R,error:w,children:Y(),routeContext:{outlet:null,matches:U,isDataRoute:!0},onError:v}):Y()},null)}function Zo(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ub(u){let i=E.useContext(In);return we(i,Zo(u)),i}function wb(u){let i=E.useContext(qs);return we(i,Zo(u)),i}function Hb(u){let i=E.useContext(ol);return we(i,Zo(u)),i}function Ko(u){let i=Hb(u),r=i.matches[i.matches.length-1];return we(r.route.id,`${u} can only be used on routes that contain a unique "id"`),r.route.id}function qb(){return Ko("useRouteId")}function Bb(){var c;let u=E.useContext(Xo),i=wb("useRouteError"),r=Ko("useRouteError");return u!==void 0?u:(c=i.errors)==null?void 0:c[r]}function Qb(){let{router:u}=Ub("useNavigate"),i=Ko("useNavigate"),r=E.useRef(!1);return av(()=>{r.current=!0}),E.useCallback(async(d,m={})=>{el(r.current,lv),r.current&&(typeof d=="number"?await u.navigate(d):await u.navigate(d,{fromRouteId:i,...m}))},[u,i])}var jy={};function sv(u,i,r){!i&&!jy[u]&&(jy[u]=!0,el(!1,r))}E.memo(Lb);function Lb({routes:u,future:i,state:r,onError:c}){return uv(u,void 0,r,c,i)}function Yb({to:u,replace:i,state:r,relative:c}){we(Pn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=E.useContext(Dt);el(!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:m}=E.useContext(ol),{pathname:y}=Sa(),b=nv(),p=Go(u,Yo(m),y,c==="path"),v=JSON.stringify(p);return E.useEffect(()=>{b(JSON.parse(v),{replace:i,state:r,relative:c})},[b,v,c,i,r]),null}function il(u){we(!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 Gb({basename:u="/",children:i=null,location:r,navigationType:c="POP",navigator:d,static:m=!1,unstable_useTransitions:y}){we(!Pn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let b=u.replace(/^\/*/,"/"),p=E.useMemo(()=>({basename:b,navigator:d,static:m,unstable_useTransitions:y,future:{}}),[b,d,m,y]);typeof r=="string"&&(r=Wn(r));let{pathname:v="/",search:T="",hash:g="",state:z=null,key:w="default"}=r,Z=E.useMemo(()=>{let R=Hl(v,b);return R==null?null:{location:{pathname:R,search:T,hash:g,state:z,key:w},navigationType:c}},[b,v,T,g,z,w,c]);return el(Z!=null,`<Router basename="${b}"> is not able to match the URL "${v}${T}${g}" because it does not start with the basename, so the <Router> won't render anything.`),Z==null?null:E.createElement(Dt.Provider,{value:p},E.createElement(ui.Provider,{children:i,value:Z}))}function Xb({children:u,location:i}){return Rb(Mo(u),i)}function Mo(u,i=[]){let r=[];return E.Children.forEach(u,(c,d)=>{if(!E.isValidElement(c))return;let m=[...i,d];if(c.type===E.Fragment){r.push.apply(r,Mo(c.props.children,m));return}we(c.type===il,`[${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>`),we(!c.props.index||!c.props.children,"An index route cannot have child routes.");let y={id:c.props.id||m.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&&(y.children=Mo(c.props.children,m)),r.push(y)}),r}var Ms="get",zs="application/x-www-form-urlencoded";function Bs(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function Zb(u){return Bs(u)&&u.tagName.toLowerCase()==="button"}function Kb(u){return Bs(u)&&u.tagName.toLowerCase()==="form"}function Vb(u){return Bs(u)&&u.tagName.toLowerCase()==="input"}function kb(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function Jb(u,i){return u.button===0&&(!i||i==="_self")&&!kb(u)}var Os=null;function Fb(){if(Os===null)try{new FormData(document.createElement("form"),0),Os=!1}catch{Os=!0}return Os}var $b=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ho(u){return u!=null&&!$b.has(u)?(el(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zs}"`),null):u}function Wb(u,i){let r,c,d,m,y;if(Kb(u)){let b=u.getAttribute("action");c=b?Hl(b,i):null,r=u.getAttribute("method")||Ms,d=ho(u.getAttribute("enctype"))||zs,m=new FormData(u)}else if(Zb(u)||Vb(u)&&(u.type==="submit"||u.type==="image")){let b=u.form;if(b==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=u.getAttribute("formaction")||b.getAttribute("action");if(c=p?Hl(p,i):null,r=u.getAttribute("formmethod")||b.getAttribute("method")||Ms,d=ho(u.getAttribute("formenctype"))||ho(b.getAttribute("enctype"))||zs,m=new FormData(b,u),!Fb()){let{name:v,type:T,value:g}=u;if(T==="image"){let z=v?`${v}.`:"";m.append(`${z}x`,"0"),m.append(`${z}y`,"0")}else v&&m.append(v,g)}}else{if(Bs(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ms,c=null,d=zs,y=u}return m&&d==="text/plain"&&(y=m,m=void 0),{action:c,method:r.toLowerCase(),encType:d,formData:m,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Vo(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function Ib(u,i,r,c){let d=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:i&&Hl(d.pathname,i)==="/"?d.pathname=`${i.replace(/\/$/,"")}/_root.${c}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${c}`,d}async function Pb(u,i){if(u.id in i)return i[u.id];try{let r=await import(u.module);return i[u.id]=r,r}catch(r){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ex(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function tx(u,i,r){let c=await Promise.all(u.map(async d=>{let m=i.routes[d.route.id];if(m){let y=await Pb(m,r);return y.links?y.links():[]}return[]}));return ux(c.flat(1).filter(ex).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Ny(u,i,r,c,d,m){let y=(p,v)=>r[v]?p.route.id!==r[v].route.id:!0,b=(p,v)=>{var T;return r[v].pathname!==p.pathname||((T=r[v].route.path)==null?void 0:T.endsWith("*"))&&r[v].params["*"]!==p.params["*"]};return m==="assets"?i.filter((p,v)=>y(p,v)||b(p,v)):m==="data"?i.filter((p,v)=>{var g;let T=c.routes[p.route.id];if(!T||!T.hasLoader)return!1;if(y(p,v)||b(p,v))return!0;if(p.route.shouldRevalidate){let z=p.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((g=r[0])==null?void 0:g.params)||{},nextUrl:new URL(u,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function lx(u,i,{includeHydrateFallback:r}={}){return ax(u.map(c=>{let d=i.routes[c.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function ax(u){return[...new Set(u)]}function nx(u){let i={},r=Object.keys(u).sort();for(let c of r)i[c]=u[c];return i}function ux(u,i){let r=new Set;return new Set(i),u.reduce((c,d)=>{let m=JSON.stringify(nx(d));return r.has(m)||(r.add(m),c.push({key:m,link:d})),c},[])}function rv(){let u=E.useContext(In);return Vo(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function ix(){let u=E.useContext(qs);return Vo(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var ko=E.createContext(void 0);ko.displayName="FrameworkContext";function cv(){let u=E.useContext(ko);return Vo(u,"You must render this element inside a <HydratedRouter> element"),u}function sx(u,i){let r=E.useContext(ko),[c,d]=E.useState(!1),[m,y]=E.useState(!1),{onFocus:b,onBlur:p,onMouseEnter:v,onMouseLeave:T,onTouchStart:g}=i,z=E.useRef(null);E.useEffect(()=>{if(u==="render"&&y(!0),u==="viewport"){let R=U=>{U.forEach(Y=>{y(Y.isIntersecting)})},L=new IntersectionObserver(R,{threshold:.5});return z.current&&L.observe(z.current),()=>{L.disconnect()}}},[u]),E.useEffect(()=>{if(c){let R=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(R)}}},[c]);let w=()=>{d(!0)},Z=()=>{d(!1),y(!1)};return r?u!=="intent"?[m,z,{}]:[m,z,{onFocus:$u(b,w),onBlur:$u(p,Z),onMouseEnter:$u(v,w),onMouseLeave:$u(T,Z),onTouchStart:$u(g,w)}]:[!1,z,{}]}function $u(u,i){return r=>{u&&u(r),r.defaultPrevented||i(r)}}function rx({page:u,...i}){let{router:r}=rv(),c=E.useMemo(()=>Jy(r.routes,u,r.basename),[r.routes,u,r.basename]);return c?E.createElement(ox,{page:u,matches:c,...i}):null}function cx(u){let{manifest:i,routeModules:r}=cv(),[c,d]=E.useState([]);return E.useEffect(()=>{let m=!1;return tx(u,i,r).then(y=>{m||d(y)}),()=>{m=!0}},[u,i,r]),c}function ox({page:u,matches:i,...r}){let c=Sa(),{future:d,manifest:m,routeModules:y}=cv(),{basename:b}=rv(),{loaderData:p,matches:v}=ix(),T=E.useMemo(()=>Ny(u,i,v,m,c,"data"),[u,i,v,m,c]),g=E.useMemo(()=>Ny(u,i,v,m,c,"assets"),[u,i,v,m,c]),z=E.useMemo(()=>{if(u===c.pathname+c.search+c.hash)return[];let R=new Set,L=!1;if(i.forEach(Y=>{var O;let q=m.routes[Y.route.id];!q||!q.hasLoader||(!T.some(K=>K.route.id===Y.route.id)&&Y.route.id in p&&((O=y[Y.route.id])!=null&&O.shouldRevalidate)||q.hasClientLoader?L=!0:R.add(Y.route.id))}),R.size===0)return[];let U=Ib(u,b,d.unstable_trailingSlashAwareDataRequests,"data");return L&&R.size>0&&U.searchParams.set("_routes",i.filter(Y=>R.has(Y.route.id)).map(Y=>Y.route.id).join(",")),[U.pathname+U.search]},[b,d.unstable_trailingSlashAwareDataRequests,p,c,m,T,i,u,y]),w=E.useMemo(()=>lx(g,m),[g,m]),Z=cx(g);return E.createElement(E.Fragment,null,z.map(R=>E.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...r})),w.map(R=>E.createElement("link",{key:R,rel:"modulepreload",href:R,...r})),Z.map(({key:R,link:L})=>E.createElement("link",{key:R,nonce:r.nonce,...L,crossOrigin:L.crossOrigin??r.crossOrigin})))}function fx(...u){return i=>{u.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var dx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{dx&&(window.__reactRouterVersion="7.13.0")}catch{}function hx({basename:u,children:i,unstable_useTransitions:r,window:c}){let d=E.useRef();d.current==null&&(d.current=Vg({window:c,v5Compat:!0}));let m=d.current,[y,b]=E.useState({action:m.action,location:m.location}),p=E.useCallback(v=>{r===!1?b(v):E.startTransition(()=>b(v))},[r]);return E.useLayoutEffect(()=>m.listen(p),[m,p]),E.createElement(Gb,{basename:u,children:i,location:y.location,navigationType:y.action,navigator:m,unstable_useTransitions:r})}var ov=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fv=E.forwardRef(function({onClick:i,discover:r="render",prefetch:c="none",relative:d,reloadDocument:m,replace:y,state:b,target:p,to:v,preventScrollReset:T,viewTransition:g,unstable_defaultShouldRevalidate:z,...w},Z){let{basename:R,unstable_useTransitions:L}=E.useContext(Dt),U=typeof v=="string"&&ov.test(v),Y=Iy(v,R);v=Y.to;let q=Cb(v,{relative:d}),[O,K,V]=sx(c,w),$=vx(v,{replace:y,state:b,target:p,preventScrollReset:T,relative:d,viewTransition:g,unstable_defaultShouldRevalidate:z,unstable_useTransitions:L});function ae(Te){i&&i(Te),Te.defaultPrevented||$(Te)}let he=E.createElement("a",{...w,...V,href:Y.absoluteURL||q,onClick:Y.isExternal||m?i:ae,ref:fx(Z,K),target:p,"data-discover":!U&&r==="render"?"true":void 0});return O&&!U?E.createElement(E.Fragment,null,he,E.createElement(rx,{page:q})):he});fv.displayName="Link";var dv=E.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:c="",end:d=!1,style:m,to:y,viewTransition:b,children:p,...v},T){let g=ii(y,{relative:v.relative}),z=Sa(),w=E.useContext(qs),{navigator:Z,basename:R}=E.useContext(Dt),L=w!=null&&Sx(g)&&b===!0,U=Z.encodeLocation?Z.encodeLocation(g).pathname:g.pathname,Y=z.pathname,q=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;r||(Y=Y.toLowerCase(),q=q?q.toLowerCase():null,U=U.toLowerCase()),q&&R&&(q=Hl(q,R)||q);const O=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let K=Y===U||!d&&Y.startsWith(U)&&Y.charAt(O)==="/",V=q!=null&&(q===U||!d&&q.startsWith(U)&&q.charAt(U.length)==="/"),$={isActive:K,isPending:V,isTransitioning:L},ae=K?i:void 0,he;typeof c=="function"?he=c($):he=[c,K?"active":null,V?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let Te=typeof m=="function"?m($):m;return E.createElement(fv,{...v,"aria-current":ae,className:he,ref:T,style:Te,to:y,viewTransition:b},typeof p=="function"?p($):p)});dv.displayName="NavLink";var mx=E.forwardRef(({discover:u="render",fetcherKey:i,navigate:r,reloadDocument:c,replace:d,state:m,method:y=Ms,action:b,onSubmit:p,relative:v,preventScrollReset:T,viewTransition:g,unstable_defaultShouldRevalidate:z,...w},Z)=>{let{unstable_useTransitions:R}=E.useContext(Dt),L=bx(),U=xx(b,{relative:v}),Y=y.toLowerCase()==="get"?"get":"post",q=typeof b=="string"&&ov.test(b),O=K=>{if(p&&p(K),K.defaultPrevented)return;K.preventDefault();let V=K.nativeEvent.submitter,$=(V==null?void 0:V.getAttribute("formmethod"))||y,ae=()=>L(V||K.currentTarget,{fetcherKey:i,method:$,navigate:r,replace:d,state:m,relative:v,preventScrollReset:T,viewTransition:g,unstable_defaultShouldRevalidate:z});R&&r!==!1?E.startTransition(()=>ae()):ae()};return E.createElement("form",{ref:Z,method:Y,action:U,onSubmit:c?p:O,...w,"data-discover":!q&&u==="render"?"true":void 0})});mx.displayName="Form";function yx(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hv(u){let i=E.useContext(In);return we(i,yx(u)),i}function vx(u,{target:i,replace:r,state:c,preventScrollReset:d,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:b,unstable_useTransitions:p}={}){let v=nv(),T=Sa(),g=ii(u,{relative:m});return E.useCallback(z=>{if(Jb(z,i)){z.preventDefault();let w=r!==void 0?r:Pu(T)===Pu(g),Z=()=>v(u,{replace:w,state:c,preventScrollReset:d,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:b});p?E.startTransition(()=>Z()):Z()}},[T,v,g,r,c,i,u,d,m,y,b,p])}var px=0,gx=()=>`__${String(++px)}__`;function bx(){let{router:u}=hv("useSubmit"),{basename:i}=E.useContext(Dt),r=qb(),c=u.fetch,d=u.navigate;return E.useCallback(async(m,y={})=>{let{action:b,method:p,encType:v,formData:T,body:g}=Wb(m,i);if(y.navigate===!1){let z=y.fetcherKey||gx();await c(z,r,y.action||b,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:T,body:g,formMethod:y.method||p,formEncType:y.encType||v,flushSync:y.flushSync})}else await d(y.action||b,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:T,body:g,formMethod:y.method||p,formEncType:y.encType||v,replace:y.replace,state:y.state,fromRouteId:r,flushSync:y.flushSync,viewTransition:y.viewTransition})},[c,d,i,r])}function xx(u,{relative:i}={}){let{basename:r}=E.useContext(Dt),c=E.useContext(ol);we(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),m={...ii(u||".",{relative:i})},y=Sa();if(u==null){m.search=y.search;let b=new URLSearchParams(m.search),p=b.getAll("index");if(p.some(T=>T==="")){b.delete("index"),p.filter(g=>g).forEach(g=>b.append("index",g));let T=b.toString();m.search=T?`?${T}`:""}}return(!u||u===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(m.pathname=m.pathname==="/"?r:Ul([r,m.pathname])),Pu(m)}function Sx(u,{relative:i}={}){let r=E.useContext(ev);we(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=hv("useViewTransitionState"),d=ii(u,{relative:i});if(!r.isTransitioning)return!1;let m=Hl(r.currentLocation.pathname,c)||r.currentLocation.pathname,y=Hl(r.nextLocation.pathname,c)||r.nextLocation.pathname;return ws(d.pathname,y)!=null||ws(d.pathname,m)!=null}/**
|
|
61
61
|
* @license lucide-react v0.474.0 - ISC
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the ISC license.
|
|
@@ -72,79 +72,79 @@ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}
|
|
|
72
72
|
*
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const Nx=E.forwardRef(({color:u="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:c,className:d="",children:m,iconNode:y,...b},
|
|
75
|
+
*/const Nx=E.forwardRef(({color:u="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:c,className:d="",children:m,iconNode:y,...b},p)=>E.createElement("svg",{ref:p,...jx,width:i,height:i,stroke:u,strokeWidth:c?Number(r)*24/Number(i):r,className:mv("lucide",d),...b},[...y.map(([v,T])=>E.createElement(v,T)),...Array.isArray(m)?m:[m]]));/**
|
|
76
76
|
* @license lucide-react v0.474.0 - ISC
|
|
77
77
|
*
|
|
78
78
|
* This source code is licensed under the ISC license.
|
|
79
79
|
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const
|
|
80
|
+
*/const Et=(u,i)=>{const r=E.forwardRef(({className:c,...d},m)=>E.createElement(Nx,{ref:m,iconNode:i,className:mv(`lucide-${Ex(u)}`,c),...d}));return r.displayName=`${u}`,r};/**
|
|
81
81
|
* @license lucide-react v0.474.0 - ISC
|
|
82
82
|
*
|
|
83
83
|
* This source code is licensed under the ISC license.
|
|
84
84
|
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const Tx=[["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"}]],yv=
|
|
85
|
+
*/const Tx=[["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"}]],yv=Et("Activity",Tx);/**
|
|
86
86
|
* @license lucide-react v0.474.0 - ISC
|
|
87
87
|
*
|
|
88
88
|
* This source code is licensed under the ISC license.
|
|
89
89
|
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const Cx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],
|
|
90
|
+
*/const Cx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],zo=Et("ArrowRight",Cx);/**
|
|
91
91
|
* @license lucide-react v0.474.0 - ISC
|
|
92
92
|
*
|
|
93
93
|
* This source code is licensed under the ISC license.
|
|
94
94
|
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const Ox=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],vv=
|
|
95
|
+
*/const Ox=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],vv=Et("Brain",Ox);/**
|
|
96
96
|
* @license lucide-react v0.474.0 - ISC
|
|
97
97
|
*
|
|
98
98
|
* This source code is licensed under the ISC license.
|
|
99
99
|
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const Rx=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],pv=
|
|
100
|
+
*/const Rx=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],pv=Et("DollarSign",Rx);/**
|
|
101
101
|
* @license lucide-react v0.474.0 - ISC
|
|
102
102
|
*
|
|
103
103
|
* This source code is licensed under the ISC license.
|
|
104
104
|
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const Ax=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],gv=
|
|
105
|
+
*/const Ax=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],gv=Et("FlaskConical",Ax);/**
|
|
106
106
|
* @license lucide-react v0.474.0 - ISC
|
|
107
107
|
*
|
|
108
108
|
* This source code is licensed under the ISC license.
|
|
109
109
|
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const
|
|
110
|
+
*/const Mx=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],zx=Et("MessageSquare",Mx);/**
|
|
111
111
|
* @license lucide-react v0.474.0 - ISC
|
|
112
112
|
*
|
|
113
113
|
* This source code is licensed under the ISC license.
|
|
114
114
|
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const _x=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],bv=
|
|
115
|
+
*/const _x=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],bv=Et("Play",_x);/**
|
|
116
116
|
* @license lucide-react v0.474.0 - ISC
|
|
117
117
|
*
|
|
118
118
|
* This source code is licensed under the ISC license.
|
|
119
119
|
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const Dx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ux=
|
|
120
|
+
*/const Dx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ux=Et("Plus",Dx);/**
|
|
121
121
|
* @license lucide-react v0.474.0 - ISC
|
|
122
122
|
*
|
|
123
123
|
* This source code is licensed under the ISC license.
|
|
124
124
|
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const wx=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Hx=
|
|
125
|
+
*/const wx=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Hx=Et("Search",wx);/**
|
|
126
126
|
* @license lucide-react v0.474.0 - ISC
|
|
127
127
|
*
|
|
128
128
|
* This source code is licensed under the ISC license.
|
|
129
129
|
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const qx=[["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"}]],Bx=
|
|
130
|
+
*/const qx=[["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"}]],Bx=Et("Send",qx);/**
|
|
131
131
|
* @license lucide-react v0.474.0 - ISC
|
|
132
132
|
*
|
|
133
133
|
* This source code is licensed under the ISC license.
|
|
134
134
|
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const Qx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Lx=
|
|
135
|
+
*/const Qx=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Lx=Et("ShieldCheck",Qx);/**
|
|
136
136
|
* @license lucide-react v0.474.0 - ISC
|
|
137
137
|
*
|
|
138
138
|
* This source code is licensed under the ISC license.
|
|
139
139
|
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const Yx=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],xv=
|
|
140
|
+
*/const Yx=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],xv=Et("Trash2",Yx);/**
|
|
141
141
|
* @license lucide-react v0.474.0 - ISC
|
|
142
142
|
*
|
|
143
143
|
* This source code is licensed under the ISC license.
|
|
144
144
|
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const Gx=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Sv=
|
|
145
|
+
*/const Gx=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Sv=Et("Users",Gx);/**
|
|
146
146
|
* @license lucide-react v0.474.0 - ISC
|
|
147
147
|
*
|
|
148
148
|
* This source code is licensed under the ISC license.
|
|
149
149
|
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const Xx=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],Ev=jt("Wrench",Xx);function _o(...u){return u.filter(Boolean).join(" ")}function jv(u){return u===0?"$0.00":u<.01?`$${u.toFixed(4)}`:`$${u.toFixed(2)}`}function Zx(u){return u<1e3?`${Math.round(u)}ms`:u<6e4?`${(u/1e3).toFixed(1)}s`:`${(u/6e4).toFixed(1)}m`}function _s(u){return u.toLocaleString()}function Kx(u){switch(u){case"running":return"text-blue-500";case"completed":return"text-green-500";case"failed":return"text-red-500";case"waiting":return"text-amber-500";default:return"text-gray-500"}}const Vx=[{to:"/playground",label:"Playground",icon:Mx},{to:"/workflows",label:"Workflows",icon:bv},{to:"/traces",label:"Traces",icon:yv},{to:"/costs",label:"Costs",icon:pv},{to:"/memory",label:"Memory",icon:vv},{to:"/sessions",label:"Sessions",icon:Sv},{to:"/tools",label:"Tools",icon:Ev},{to:"/evals",label:"Evals",icon:gv}];function Jx(){return f.jsxs("aside",{className:"w-56 border-r border-[hsl(var(--border))] bg-[hsl(var(--card))] flex flex-col h-screen",children:[f.jsx("div",{className:"p-4 border-b border-[hsl(var(--border))]",children:f.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:"Axl Studio"})}),f.jsx("nav",{className:"flex-1 p-2 space-y-0.5",children:Vx.map(({to:u,label:i,icon:r})=>f.jsxs(dv,{to:u,className:({isActive:c})=>_o("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm transition-colors",c?"bg-[hsl(var(--accent))] text-[hsl(var(--accent-foreground))] font-medium":"text-[hsl(var(--muted-foreground))] hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]"),children:[f.jsx(r,{size:16}),i]},u))}),f.jsx("div",{className:"p-4 border-t border-[hsl(var(--border))] text-xs text-[hsl(var(--muted-foreground))]",children:"@axlsdk/studio"})]})}function ql({title:u,description:i,actions:r,children:c}){return f.jsxs("div",{className:"flex flex-col h-screen",children:[f.jsxs("header",{className:"flex items-center justify-between px-6 py-4 border-b border-[hsl(var(--border))]",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-xl font-semibold",children:u}),i&&f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))] mt-0.5",children:i})]}),r&&f.jsx("div",{className:"flex items-center gap-2",children:r})]}),f.jsx("main",{className:"flex-1 overflow-auto p-6",children:c})]})}function Jt({title:u,description:i,icon:r}){return f.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[r&&f.jsx("div",{className:"mb-3 text-[hsl(var(--muted-foreground))]",children:r}),f.jsx("h3",{className:"text-sm font-medium text-[hsl(var(--foreground))]",children:u}),i&&f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))] mt-1 max-w-sm",children:i})]})}function kx({text:u,className:i}){return f.jsxs("div",{className:`whitespace-pre-wrap ${i??""}`,children:[u,f.jsx("span",{className:"animate-pulse",children:"|"})]})}function Et({data:u,collapsed:i=!1,className:r}){const[c,d]=E.useState(i),m=JSON.stringify(u,null,2),y=m.length>200;return f.jsxs("div",{className:`relative ${r??""}`,children:[y&&f.jsx("button",{onClick:()=>d(!c),className:"text-xs text-[hsl(var(--muted-foreground))] hover:text-[hsl(var(--foreground))] mb-1",children:c?"Expand":"Collapse"}),f.jsx("pre",{className:"text-xs font-mono p-3 rounded-md bg-[hsl(var(--secondary))] overflow-auto max-h-96",children:c?JSON.stringify(u):m})]})}const Fx=(window.__AXL_STUDIO_BASE__??"")+"/api";async function Ge(u,i){const c=await(await fetch(`${Fx}${u}`,{headers:{"Content-Type":"application/json",...i==null?void 0:i.headers},...i})).json();if(!c.ok)throw new Error(c.error.message);return c.data}const $x=()=>Ge("/workflows"),Wx=u=>Ge(`/workflows/${encodeURIComponent(u)}`),Ix=(u,i,r=!1)=>Ge(`/workflows/${encodeURIComponent(u)}/execute`,{method:"POST",body:JSON.stringify({input:i,stream:r})}),Px=()=>Ge("/executions"),e1=()=>Ge("/sessions"),t1=u=>Ge(`/sessions/${encodeURIComponent(u)}`),l1=u=>Ge(`/sessions/${encodeURIComponent(u)}`,{method:"DELETE"}),a1=()=>Ge("/agents"),n1=()=>Ge("/tools"),u1=u=>Ge(`/tools/${encodeURIComponent(u)}`),i1=(u,i)=>Ge(`/tools/${encodeURIComponent(u)}/test`,{method:"POST",body:JSON.stringify({input:i})}),s1=u=>Ge(`/memory/${encodeURIComponent(u)}`),r1=(u,i,r)=>Ge(`/memory/${encodeURIComponent(u)}/${encodeURIComponent(i)}`,{method:"PUT",body:JSON.stringify({value:r})}),c1=(u,i)=>Ge(`/memory/${encodeURIComponent(u)}/${encodeURIComponent(i)}`,{method:"DELETE"}),o1=(u,i,r)=>Ge("/memory/search",{method:"POST",body:JSON.stringify({query:u,scope:i,limit:r})}),f1=()=>Ge("/costs"),d1=()=>Ge("/costs/reset",{method:"POST"}),h1=()=>Ge("/evals"),m1=u=>Ge(`/evals/${encodeURIComponent(u)}/run`,{method:"POST"}),y1=(u,i)=>Ge("/evals/compare",{method:"POST",body:JSON.stringify({baseline:u,candidate:i})}),v1=(u,i,r)=>Ge("/playground/chat",{method:"POST",body:JSON.stringify({message:u,sessionId:i,agent:r})});class p1{constructor(){Ju(this,"ws",null);Ju(this,"listeners",new Map);Ju(this,"reconnectTimer",null);Ju(this,"url");const i=window.location.protocol==="https:"?"wss:":"ws:",r=window.__AXL_STUDIO_BASE__??"";this.url=`${i}//${window.location.host}${r}/ws`}connect(){var i;((i=this.ws)==null?void 0:i.readyState)!==WebSocket.OPEN&&(this.ws=new WebSocket(this.url),this.ws.onopen=()=>{for(const r of this.listeners.keys())this.send({type:"subscribe",channel:r})},this.ws.onmessage=r=>{try{const c=JSON.parse(r.data);if(c.type==="event"&&c.channel){const d=this.listeners.get(c.channel);if(d)for(const y of d)y(c.data);const m=c.channel.indexOf(":");if(m>0){const y=c.channel.substring(0,m)+":*",b=this.listeners.get(y);if(b)for(const g of b)g(c.data)}}}catch{}},this.ws.onclose=()=>{this.scheduleReconnect()},this.ws.onerror=()=>{var r;(r=this.ws)==null||r.close()})}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},2e3))}send(i){var r;((r=this.ws)==null?void 0:r.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify(i))}subscribe(i,r){let c=this.listeners.get(i);return c||(c=new Set,this.listeners.set(i,c),this.send({type:"subscribe",channel:i})),c.add(r),this.connect(),()=>{c.delete(r),c.size===0&&(this.listeners.delete(i),this.send({type:"unsubscribe",channel:i}))}}disconnect(){var i;this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(i=this.ws)==null||i.close(),this.ws=null}}const g1=new p1;function ko(u,i){const r=E.useRef(i);r.current=i,E.useEffect(()=>{if(u)return g1.subscribe(u,c=>r.current(c))},[u])}function Nv(u){const[i,r]=E.useState({tokens:"",events:[],done:!1,error:null,result:null}),c=E.useCallback(d=>{const m=d;r(y=>{switch(m.type){case"token":return{...y,tokens:y.tokens+m.data,events:[...y.events,m]};case"done":return{...y,done:!0,result:m.result,events:[...y.events,m]};case"error":return{...y,done:!0,error:m.message,events:[...y.events,m]};default:return{...y,events:[...y.events,m]}}})},[]);return ko(u?`execution:${u}`:null,c),i}function b1(){const[u,i]=E.useState([]),[r,c]=E.useState(""),[d,m]=E.useState(null),[y,b]=E.useState(null),[g,v]=E.useState(""),[T,p]=E.useState(!1),_=E.useRef(null),{data:H=[]}=Pt({queryKey:["agents"],queryFn:a1}),Z=Nv(y);E.useEffect(()=>{Z.tokens&&T&&i(U=>{const R=U[U.length-1];return(R==null?void 0:R.role)==="assistant"?[...U.slice(0,-1),{...R,content:Z.tokens}]:[...U,{role:"assistant",content:Z.tokens}]}),Z.done&&(p(!1),b(null))},[Z.tokens,Z.done,T]),E.useEffect(()=>{const U=[],R=[],w=[];for(const G of Z.events){if(G.type==="tool_call"&&U.push({name:G.name,args:G.args}),G.type==="tool_result"){const $=U.find(K=>K.name===G.name&&!K.result);$&&($.result=G.result)}G.type==="handoff"&&R.push({source:G.source,target:G.target,mode:G.mode??"oneway"}),G.type==="tool_approval"&&w.push({tool:G.name,approved:G.approved})}(U.length>0||R.length>0||w.length>0)&&i(G=>{const $=G[G.length-1];return($==null?void 0:$.role)==="assistant"?[...G.slice(0,-1),{...$,toolCalls:U.length>0?U:$.toolCalls,handoffs:R.length>0?R:$.handoffs,approvals:w.length>0?w:$.approvals}]:G})},[Z.events]),E.useEffect(()=>{var U;(U=_.current)==null||U.scrollIntoView({behavior:"smooth"})},[u]);const O=E.useCallback(async()=>{if(!r.trim()||T)return;const U=r.trim();c(""),i(R=>[...R,{role:"user",content:U}]),p(!0);try{const R=await v1(U,d??void 0,g||void 0);m(R.sessionId),b(R.executionId)}catch(R){p(!1),i(w=>[...w,{role:"assistant",content:`Error: ${R instanceof Error?R.message:String(R)}`}])}},[r,T,d,g]),L=U=>{U.key==="Enter"&&!U.shiftKey&&(U.preventDefault(),O())};return f.jsx(ql,{title:"Agent Playground",description:"Chat with registered agents in real-time",actions:f.jsxs("div",{className:"flex items-center gap-2",children:[H.length>0&&f.jsxs("select",{value:g,onChange:U=>v(U.target.value),className:"px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Default agent"}),H.map(U=>f.jsx("option",{value:U.name,children:U.name},U.name))]}),f.jsx("button",{onClick:()=>{i([]),m(null),b(null)},className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"New Chat"})]}),children:f.jsxs("div",{className:"flex flex-col h-full max-w-3xl mx-auto",children:[f.jsxs("div",{className:"flex-1 overflow-auto space-y-4 pb-4",children:[u.length===0&&f.jsx(Jt,{title:"Start a conversation",description:"Type a message below to chat with an agent. Tool calls, handoffs, and streaming responses will be displayed in real-time."}),u.map((U,R)=>f.jsx("div",{className:`flex ${U.role==="user"?"justify-end":"justify-start"}`,children:f.jsxs("div",{className:`max-w-[80%] rounded-lg px-4 py-2.5 text-sm ${U.role==="user"?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))]"}`,children:[U.role==="assistant"&&T&&R===u.length-1?f.jsx(kx,{text:U.content}):f.jsx("div",{className:"whitespace-pre-wrap",children:U.content}),U.handoffs&&U.handoffs.length>0&&f.jsx("div",{className:"mt-2 space-y-1 border-t border-[hsl(var(--border))] pt-2",children:U.handoffs.map((w,G)=>f.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[f.jsx(Mo,{size:12,className:"text-amber-500"}),f.jsx("span",{className:"font-medium",children:w.source}),f.jsx(Mo,{size:10}),f.jsx("span",{className:"font-medium",children:w.target}),f.jsxs("span",{className:"text-[hsl(var(--muted-foreground))]",children:["(",w.mode,")"]})]},G))}),U.approvals&&U.approvals.length>0&&f.jsx("div",{className:"mt-2 space-y-1 border-t border-[hsl(var(--border))] pt-2",children:U.approvals.map((w,G)=>f.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[f.jsx(Lx,{size:12,className:w.approved?"text-green-500":"text-red-500"}),f.jsxs("span",{children:["Tool ",f.jsx("span",{className:"font-mono",children:w.tool}),":"," ",w.approved?"approved":"denied"]})]},G))}),U.toolCalls&&U.toolCalls.length>0&&f.jsx("div",{className:"mt-2 space-y-2 border-t border-[hsl(var(--border))] pt-2",children:U.toolCalls.map((w,G)=>f.jsxs("details",{className:"text-xs",children:[f.jsxs("summary",{className:"cursor-pointer font-medium",children:["Tool: ",w.name]}),f.jsxs("div",{className:"mt-1 space-y-1",children:[f.jsx("div",{className:"text-[hsl(var(--muted-foreground))]",children:"Input:"}),f.jsx(Et,{data:w.args,collapsed:!0}),w.result!==void 0&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"text-[hsl(var(--muted-foreground))]",children:"Output:"}),f.jsx(Et,{data:w.result,collapsed:!0})]})]})]},G))})]})},R)),f.jsx("div",{ref:_})]}),f.jsx("div",{className:"border-t border-[hsl(var(--border))] pt-4",children:f.jsxs("div",{className:"flex items-end gap-2",children:[f.jsx("textarea",{value:r,onChange:U=>c(U.target.value),onKeyDown:L,placeholder:"Type a message...",rows:1,className:"flex-1 px-3 py-2.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] resize-none focus:outline-none focus:ring-2 focus:ring-[hsl(var(--ring))]"}),f.jsx("button",{onClick:O,disabled:!r.trim()||T,className:"p-2.5 rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50 transition-opacity",children:f.jsx(Bx,{size:16})})]})})]})})}function Tv({value:u,onChange:i,placeholder:r,className:c}){const[d,m]=E.useState(null),y=E.useCallback(b=>{const g=b.target.value;i(g);try{g.trim()&&JSON.parse(g),m(null)}catch(v){m(v instanceof Error?v.message:"Invalid JSON")}},[i]);return f.jsxs("div",{className:c,children:[f.jsx("textarea",{value:u,onChange:y,placeholder:r??"{}",className:"w-full h-32 p-3 text-xs font-mono rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] text-[hsl(var(--foreground))] resize-y focus:outline-none focus:ring-2 focus:ring-[hsl(var(--ring))]",spellCheck:!1}),d&&f.jsx("p",{className:"text-xs text-red-500 mt-1",children:d})]})}function Cv({schema:u,onSubmit:i,submitLabel:r="Submit",className:c}){const[d,m]=E.useState({}),y=u.properties??{},b=new Set(u.required??[]),g=E.useCallback(v=>{v.preventDefault();const T={};for(const[p,_]of Object.entries(y)){const H=d[p]??"";if(!(!H&&!b.has(p)))if(_.type==="number")T[p]=Number(H);else if(_.type==="boolean")T[p]=H==="true";else if(_.type==="object"||_.type==="array")try{T[p]=JSON.parse(H)}catch{T[p]=H}else T[p]=H}i(T)},[d,y,b,i]);return f.jsxs("form",{onSubmit:g,className:`space-y-3 ${c??""}`,children:[Object.entries(y).map(([v,T])=>f.jsxs("div",{children:[f.jsxs("label",{className:"block text-xs font-medium text-[hsl(var(--foreground))] mb-1",children:[v,b.has(v)&&f.jsx("span",{className:"text-red-500 ml-0.5",children:"*"}),T.description&&f.jsxs("span",{className:"text-[hsl(var(--muted-foreground))] font-normal ml-1",children:["- ",T.description]})]}),T.enum?f.jsxs("select",{value:d[v]??"",onChange:p=>m({...d,[v]:p.target.value}),className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select..."}),T.enum.map(p=>f.jsx("option",{value:p,children:p},p))]}):T.type==="boolean"?f.jsxs("select",{value:d[v]??"",onChange:p=>m({...d,[v]:p.target.value}),className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select..."}),f.jsx("option",{value:"true",children:"true"}),f.jsx("option",{value:"false",children:"false"})]}):f.jsx("input",{type:T.type==="number"?"number":"text",value:d[v]??"",onChange:p=>m({...d,[v]:p.target.value}),placeholder:T.type??"string",className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]"})]},v)),f.jsx("button",{type:"submit",className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 transition-opacity",children:r})]})}function Ov({status:u,className:i}){return f.jsxs("span",{className:_o("inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs font-medium",Kx(u),u==="running"&&"animate-pulse",i),children:[f.jsx("span",{className:_o("w-1.5 h-1.5 rounded-full",u==="running"&&"bg-blue-500",u==="completed"&&"bg-green-500",u==="failed"&&"bg-red-500",u==="waiting"&&"bg-amber-500")}),u]})}function ba({cost:u,className:i}){return f.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${i??""}`,children:jv(u)})}function Do({ms:u,className:i}){return f.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${i??""}`,children:Zx(u)})}function x1(){const[u,i]=E.useState(""),[r,c]=E.useState("{}"),[d,m]=E.useState(!0),[y,b]=E.useState(null),[g,v]=E.useState(null),[T,p]=E.useState(null),[_,H]=E.useState("idle"),{data:Z=[]}=Pt({queryKey:["workflows"],queryFn:$x}),{data:O}=Pt({queryKey:["workflow",u],queryFn:()=>Wx(u),enabled:!!u}),L=Nv(y),U=E.useCallback(async K=>{if(u){v(null),p(null),H("running");try{const F=await Ix(u,K,!0);F.streaming&&F.executionId?b(F.executionId):(v(F.result),H("completed"))}catch(F){p(F instanceof Error?F.message:String(F)),H("failed")}}},[u]),R=E.useCallback(()=>{try{const K=JSON.parse(r);U(K)}catch(K){p(K instanceof Error?K.message:String(K)),H("failed")}},[r,U]),w=E.useCallback(K=>{U(K)},[U]);E.useEffect(()=>{L.done&&_==="running"&&(H(L.error?"failed":"completed"),L.error&&p(L.error),L.result&&v(L.result),b(null))},[L.done,L.error,L.result,_]);const G=L.events.filter(K=>K.type==="step").map(K=>K.data),$=!!(O!=null&&O.inputSchema);return f.jsx(ql,{title:"Workflow Runner",description:"Execute and debug registered workflows",children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Workflow"}),f.jsxs("select",{value:u,onChange:K=>{i(K.target.value),c("{}"),v(null),p(null),H("idle")},className:"w-full px-3 py-2 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select a workflow..."}),Z.map(K=>f.jsx("option",{value:K.name,children:K.name},K.name))]})]}),(O==null?void 0:O.outputSchema)!=null&&f.jsxs("details",{className:"text-xs",children:[f.jsx("summary",{className:"cursor-pointer text-[hsl(var(--muted-foreground))]",children:"Output Schema"}),f.jsx("div",{className:"mt-1",children:f.jsx(Et,{data:O.outputSchema,collapsed:!0})})]}),$&&f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("label",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"Input mode:"}),f.jsx("button",{onClick:()=>m(!0),className:`px-2 py-0.5 text-xs rounded ${d?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))]"}`,children:"Form"}),f.jsx("button",{onClick:()=>m(!1),className:`px-2 py-0.5 text-xs rounded ${d?"border border-[hsl(var(--input))]":"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]"}`,children:"JSON"})]}),$&&d?f.jsx(Cv,{schema:O.inputSchema,onSubmit:w,submitLabel:_==="running"?"Running...":"Execute"}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Input (JSON)"}),f.jsx(Tv,{value:r,onChange:c})]}),f.jsxs("button",{onClick:R,disabled:!u||_==="running",className:"flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:[f.jsx(bv,{size:14}),"Execute"]})]})]}),f.jsxs("div",{className:"space-y-4",children:[_!=="idle"&&f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Ov,{status:_}),L.events.length>0&&f.jsxs(f.Fragment,{children:[G.some(K=>K.cost)&&f.jsx(ba,{cost:G.reduce((K,F)=>K+(F.cost??0),0)}),G.some(K=>K.duration)&&f.jsx(Do,{ms:G.reduce((K,F)=>K+(F.duration??0),0)})]})]}),G.length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Timeline"}),f.jsx("div",{className:"space-y-1.5",children:G.map((K,F)=>f.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 text-xs rounded bg-[hsl(var(--secondary))]",children:[f.jsxs("span",{className:"font-mono text-[hsl(var(--muted-foreground))]",children:["#",K.step]}),f.jsx("span",{className:"font-medium",children:K.type}),K.agent&&f.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:K.agent}),K.tool&&f.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:K.tool}),f.jsx("span",{className:"flex-1"}),K.duration&&f.jsx(Do,{ms:K.duration}),K.cost&&f.jsx(ba,{cost:K.cost})]},F))})]}),g!==null&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Result"}),f.jsx(Et,{data:g})]}),T&&f.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm",children:T}),_==="idle"&&f.jsx(Jt,{title:"No execution",description:"Select a workflow and click Execute to see results."})]})]})})}const S1={agent_call:"bg-blue-500",tool_call:"bg-purple-500",tool_call_complete:"bg-purple-400",workflow_start:"bg-green-500",workflow_complete:"bg-green-400",handoff:"bg-amber-500",await_human:"bg-red-500",vote_start:"bg-cyan-500",spawn:"bg-indigo-500"};function Ty(u){return S1[u]??"bg-slate-500"}function E1(u){const i=u.type;return i==="workflow_start"||i==="workflow_complete"?0:i==="agent_call"||i==="spawn"||i==="vote_start"?1:i==="tool_call"||i==="tool_call_complete"||i==="handoff"?2:1}function j1(){const[u,i]=E.useState(null),[r,c]=E.useState([]),[d,m]=E.useState(""),[y,b]=E.useState(""),{data:g=[],refetch:v}=Pt({queryKey:["executions"],queryFn:Px,refetchInterval:3e3});ko("trace:*",E.useCallback(O=>{c(L=>[...L.slice(-200),O])},[]));const T=u?u.steps:r;let p=T;d&&(p=p.filter(O=>O.type===d)),y&&(p=p.filter(O=>O.agent===y));const _=[...new Set(T.map(O=>O.type))],H=[...new Set(T.map(O=>O.agent).filter(Boolean))],Z=Math.max(...p.map(O=>O.duration??0),1);return f.jsx(ql,{title:"Trace Explorer",description:"Inspect execution traces with waterfall visualization",actions:f.jsx("button",{onClick:()=>{v(),c([])},className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Refresh"}),children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[f.jsxs("div",{className:"lg:col-span-1 space-y-2",children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Executions"}),f.jsxs("button",{onClick:()=>i(null),className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u?"border-[hsl(var(--border))]":"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]"}`,children:["Live Events (",r.length,")"]}),g.map(O=>f.jsxs("button",{onClick:()=>i(O),className:`w-full text-left px-3 py-2 text-xs rounded-md border ${(u==null?void 0:u.executionId)===O.executionId?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"font-medium truncate",children:O.workflow}),f.jsx(Ov,{status:O.status})]}),f.jsxs("div",{className:"flex items-center justify-between mt-0.5",children:[f.jsxs("span",{className:"text-[hsl(var(--muted-foreground))] truncate",children:[O.executionId.slice(0,8),"... | ",O.steps.length," steps"]}),O.totalCost>0&&f.jsx(ba,{cost:O.totalCost})]})]},O.executionId)),g.length===0&&f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No executions yet"})]}),f.jsxs("div",{className:"lg:col-span-3",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4 flex-wrap",children:[f.jsxs("select",{value:d,onChange:O=>m(O.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"All types"}),_.map(O=>f.jsx("option",{value:O,children:O},O))]}),H.length>0&&f.jsxs("select",{value:y,onChange:O=>b(O.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"All agents"}),H.map(O=>f.jsx("option",{value:O,children:O},O))]}),f.jsxs("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:[p.length," events"]})]}),p.length===0?f.jsx(Jt,{icon:f.jsx(yv,{size:32}),title:"No trace events",description:"Execute a workflow to see trace events here."}):f.jsx("div",{className:"space-y-1",children:p.map((O,L)=>{const U=E1(O);return f.jsxs("details",{className:"group",children:[f.jsxs("summary",{className:"flex items-center gap-2 px-3 py-1.5 text-xs rounded bg-[hsl(var(--secondary))] cursor-pointer hover:bg-[hsl(var(--accent))]",style:{marginLeft:`${U*16}px`},children:[f.jsxs("span",{className:"font-mono text-[hsl(var(--muted-foreground))] w-8",children:["#",O.step]}),f.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${Ty(O.type)}`}),f.jsx("span",{className:"font-medium w-28 truncate",children:O.type}),O.agent&&f.jsx("span",{className:"text-blue-600 dark:text-blue-400 w-28 truncate",children:O.agent}),O.tool&&f.jsx("span",{className:"text-purple-600 dark:text-purple-400 w-28 truncate",children:O.tool}),f.jsx("div",{className:"flex-1 h-3 bg-[hsl(var(--background))] rounded overflow-hidden",children:O.duration&&f.jsx("div",{className:`h-full rounded ${Ty(O.type)}`,style:{width:`${Math.max(O.duration/Z*100,2)}%`,opacity:.7}})}),O.duration&&f.jsx(Do,{ms:O.duration}),O.cost&&f.jsx(ba,{cost:O.cost})]}),f.jsxs("div",{className:"mt-1 mb-2 p-3 rounded bg-[hsl(var(--card))] border border-[hsl(var(--border))]",style:{marginLeft:`${U*16+32}px`},children:[O.model&&f.jsxs("p",{className:"text-xs mb-1",children:[f.jsx("strong",{children:"Model:"})," ",O.model]}),O.promptVersion&&f.jsxs("p",{className:"text-xs mb-1",children:[f.jsx("strong",{children:"Version:"})," ",O.promptVersion]}),O.tokens&&f.jsxs("p",{className:"text-xs mb-1",children:[f.jsx("strong",{children:"Tokens:"})," in=",O.tokens.input," out=",O.tokens.output,O.tokens.reasoning?` reasoning=${O.tokens.reasoning}`:""]}),O.data!=null&&f.jsx(Et,{data:O.data,collapsed:!0})]})]},L)})})]})]})})}function N1({tokens:u,label:i,className:r}){return f.jsxs("span",{className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${r??""}`,children:[i&&f.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:i}),_s(u)]})}function T1(){const[u,i]=E.useState(null),{data:r,refetch:c}=Pt({queryKey:["costs"],queryFn:f1});ko("costs",E.useCallback(y=>{i(y)},[]));const d=u??r,m=async()=>{await d1(),i(null),c()};return d?f.jsxs(ql,{title:"Cost Dashboard",description:"Track spending across agents, models, and workflows",actions:f.jsx("button",{onClick:m,className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Reset"}),children:[f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[f.jsx(Rs,{label:"Total Cost",value:jv(d.totalCost)}),f.jsx(Rs,{label:"Input Tokens",value:_s(d.totalTokens.input)}),f.jsx(Rs,{label:"Output Tokens",value:_s(d.totalTokens.output)}),f.jsx(Rs,{label:"Reasoning Tokens",value:_s(d.totalTokens.reasoning)})]}),f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Agent"}),Object.keys(d.byAgent).length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No agent data"}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Agent"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Calls"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"})]})}),f.jsx("tbody",{children:Object.entries(d.byAgent).sort(([,y],[,b])=>b.cost-y.cost).map(([y,b])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:y}),f.jsx("td",{className:"py-2 text-right",children:b.calls}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:b.cost})})]},y))})]})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Model"}),Object.keys(d.byModel).length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No model data"}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Model"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Calls"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Tokens"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"})]})}),f.jsx("tbody",{children:Object.entries(d.byModel).sort(([,y],[,b])=>b.cost-y.cost).map(([y,b])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:y}),f.jsx("td",{className:"py-2 text-right",children:b.calls}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(N1,{tokens:b.tokens.input+b.tokens.output})}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:b.cost})})]},y))})]})]}),f.jsxs("div",{className:"lg:col-span-2",children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Workflow"}),Object.keys(d.byWorkflow).length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No workflow data"}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Workflow"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Executions"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Total Cost"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Avg Cost"})]})}),f.jsx("tbody",{children:Object.entries(d.byWorkflow).sort(([,y],[,b])=>b.cost-y.cost).map(([y,b])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:y}),f.jsx("td",{className:"py-2 text-right",children:b.executions}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:b.cost})}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:b.executions>0?b.cost/b.executions:0})})]},y))})]})]})]})]}):f.jsx(ql,{title:"Cost Dashboard",description:"Track spending across agents, models, and workflows",children:f.jsx(Jt,{icon:f.jsx(pv,{size:32}),title:"No cost data",description:"Execute workflows to see cost data."})})}function Rs({label:u,value:i}){return f.jsxs("div",{className:"p-4 rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:u}),f.jsx("p",{className:"text-2xl font-semibold mt-1",children:i})]})}function C1(){const[u,i]=E.useState("session"),[r,c]=E.useState(""),[d,m]=E.useState("{}"),[y,b]=E.useState(!1),[g,v]=E.useState(""),[T,p]=E.useState(null),_=Hs(),{data:H=[]}=Pt({queryKey:["memory",u],queryFn:()=>s1(u)}),Z=Ro({mutationFn:({key:R,value:w})=>r1(u,R,w),onSuccess:()=>{_.invalidateQueries({queryKey:["memory",u]}),b(!1),c(""),m("{}")}}),O=Ro({mutationFn:R=>c1(u,R),onSuccess:()=>{_.invalidateQueries({queryKey:["memory",u]})}}),L=E.useCallback(async()=>{if(!g.trim())return;const R=await o1(g,u);p(R.results)},[g,u]),U=E.useCallback(()=>{if(r.trim())try{const R=JSON.parse(d);Z.mutate({key:r,value:R})}catch{Z.mutate({key:r,value:d})}},[r,d,Z]);return f.jsxs(ql,{title:"Memory Browser",description:"View and manage agent memory entries",actions:f.jsxs("button",{onClick:()=>b(!y),className:"flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90",children:[f.jsx(Ux,{size:14}),"Add Entry"]}),children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[["session","global"].map(R=>f.jsx("button",{onClick:()=>{i(R),p(null)},className:`px-3 py-1.5 text-sm rounded-md ${u===R?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]"}`,children:R.charAt(0).toUpperCase()+R.slice(1)},R)),f.jsx("div",{className:"flex-1"}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("input",{value:g,onChange:R=>v(R.target.value),onKeyDown:R=>R.key==="Enter"&&L(),placeholder:"Semantic search...",className:"px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] w-48"}),f.jsx("button",{onClick:L,className:"p-1.5 rounded-md hover:bg-[hsl(var(--accent))]",children:f.jsx(Hx,{size:14})})]})]}),y&&f.jsxs("div",{className:"mb-4 p-4 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] space-y-3",children:[f.jsx("input",{value:r,onChange:R=>c(R.target.value),placeholder:"Key",className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]"}),f.jsx(Tv,{value:d,onChange:m,placeholder:"Value (JSON)"}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("button",{onClick:U,disabled:!r.trim(),className:"px-3 py-1.5 text-sm rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:"Save"}),f.jsx("button",{onClick:()=>b(!1),className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Cancel"})]})]}),T&&f.jsxs("div",{className:"mb-4 p-4 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Search Results"}),T.length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No results found"}):f.jsx(Et,{data:T})]}),H.length===0?f.jsx(Jt,{icon:f.jsx(vv,{size:32}),title:"No memory entries",description:`No entries in the ${u} scope. Use ctx.remember() in workflows or add entries manually.`}):f.jsx("div",{className:"space-y-2",children:H.map(R=>f.jsxs("div",{className:"p-3 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[f.jsxs("div",{className:"flex items-center justify-between mb-2",children:[f.jsx("span",{className:"text-sm font-mono font-medium",children:R.key}),f.jsx("button",{onClick:()=>O.mutate(R.key),className:"p-1 rounded hover:bg-[hsl(var(--destructive))] hover:text-[hsl(var(--destructive-foreground))] text-[hsl(var(--muted-foreground))]",children:f.jsx(xv,{size:14})})]}),f.jsx(Et,{data:R.value,collapsed:!0})]},R.key))})]})}function O1(){const[u,i]=E.useState(null),[r,c]=E.useState(null),d=Hs(),{data:m=[]}=Pt({queryKey:["sessions"],queryFn:e1,refetchInterval:5e3}),{data:y}=Pt({queryKey:["session",u],queryFn:()=>t1(u),enabled:!!u}),b=Ro({mutationFn:l1,onSuccess:()=>{d.invalidateQueries({queryKey:["sessions"]}),i(null)}}),g=y!=null&&y.history?r!==null?y.history.slice(0,r+1):y.history:[];return f.jsx(ql,{title:"Session Manager",description:"Browse active sessions, replay conversations, and view handoff chains",children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Sessions (",m.length,")"]}),m.length===0?f.jsx(Jt,{icon:f.jsx(Sv,{size:24}),title:"No sessions",description:"Sessions are created when using runtime.session()"}):m.map(v=>f.jsxs("button",{onClick:()=>{i(v.id),c(null)},className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u===v.id?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[f.jsx("div",{className:"font-mono truncate",children:v.id}),f.jsxs("div",{className:"text-[hsl(var(--muted-foreground))] mt-0.5",children:[v.messageCount," messages"]})]},v.id))]}),f.jsx("div",{className:"lg:col-span-2",children:y?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium font-mono",children:y.id}),f.jsxs("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:[y.history.length," messages"]})]}),f.jsxs("button",{onClick:()=>b.mutate(y.id),className:"flex items-center gap-1 px-2 py-1 text-xs rounded-md border border-red-300 text-red-600 hover:bg-red-50 dark:border-red-800 dark:text-red-400 dark:hover:bg-red-950",children:[f.jsx(xv,{size:12}),"Delete"]})]}),y.handoffHistory&&y.handoffHistory.length>0&&f.jsxs("div",{children:[f.jsx("h4",{className:"text-xs font-medium mb-2",children:"Handoff Chain"}),f.jsx("div",{className:"flex items-center gap-1 flex-wrap",children:y.handoffHistory.map((v,T)=>f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:v.source}),f.jsx(Mo,{size:12,className:"text-[hsl(var(--muted-foreground))]"}),f.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:v.target}),f.jsxs("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:["(",v.mode,")"]}),T<y.handoffHistory.length-1&&f.jsx("span",{className:"mx-1 text-[hsl(var(--muted-foreground))]",children:"|"})]},T))})]}),y.history.length>1&&f.jsxs("div",{children:[f.jsxs("label",{className:"block text-xs font-medium mb-1",children:["Replay:"," ",r!==null?`${r+1} / ${y.history.length}`:"All"]}),f.jsx("input",{type:"range",min:0,max:y.history.length-1,value:r??y.history.length-1,onChange:v=>c(Number(v.target.value)),className:"w-full"})]}),f.jsx("div",{className:"space-y-3",children:g.map((v,T)=>f.jsxs("div",{className:`p-3 rounded-md text-sm ${v.role==="user"?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] ml-8":v.role==="assistant"?"bg-[hsl(var(--secondary))] mr-8":"bg-[hsl(var(--muted))] text-xs font-mono"}`,children:[f.jsx("div",{className:"text-xs font-medium mb-1 opacity-70",children:v.role}),f.jsx("div",{className:"whitespace-pre-wrap",children:v.content}),v.tool_calls&&v.tool_calls.length>0&&f.jsx("div",{className:"mt-2 space-y-1",children:v.tool_calls.map(p=>f.jsxs("details",{className:"text-xs",children:[f.jsx("summary",{className:"cursor-pointer font-mono",children:p.function.name}),f.jsx(Et,{data:JSON.parse(p.function.arguments),collapsed:!0})]},p.id))})]},T))})]}):f.jsx(Jt,{title:"Select a session",description:"Click a session to view its history"})})]})})}function R1(){const[u,i]=E.useState(null),[r,c]=E.useState(null),[d,m]=E.useState(null),[y,b]=E.useState(!1),{data:g=[]}=Pt({queryKey:["tools"],queryFn:n1}),{data:v}=Pt({queryKey:["tool",u],queryFn:()=>u1(u),enabled:!!u}),T=E.useCallback(async p=>{if(u){c(null),m(null),b(!0);try{const _=await i1(u,p);c(_.result)}catch(_){m(_ instanceof Error?_.message:String(_))}finally{b(!1)}}},[u]);return f.jsx(ql,{title:"Tool Inspector",description:"View tool schemas and test tools directly",children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Tools (",g.length,")"]}),g.length===0?f.jsx(Jt,{icon:f.jsx(Ev,{size:24}),title:"No tools",description:"Register tools with runtime.registerTool()"}):g.map(p=>f.jsxs("button",{onClick:()=>{i(p.name),c(null),m(null)},className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u===p.name?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[f.jsx("div",{className:"font-medium",children:p.name}),f.jsx("div",{className:"text-[hsl(var(--muted-foreground))] mt-0.5 truncate",children:p.description}),f.jsxs("div",{className:"flex items-center gap-1.5 mt-1",children:[p.sensitive&&f.jsx("span",{className:"px-1 py-0.5 rounded bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300 text-[10px]",children:"sensitive"}),p.requireApproval&&f.jsx("span",{className:"px-1 py-0.5 rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 text-[10px]",children:"approval"})]})]},p.name))]}),f.jsx("div",{className:"lg:col-span-2",children:u?v?f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-medium",children:v.name}),f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:v.description})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[v.sensitive&&f.jsx("span",{className:"px-2 py-1 text-xs rounded-md bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300",children:"Sensitive"}),v.requireApproval&&f.jsx("span",{className:"px-2 py-1 text-xs rounded-md bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:"Requires Approval"}),v.retry.attempts&&v.retry.attempts>1&&f.jsxs("span",{className:"px-2 py-1 text-xs rounded-md bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300",children:["Retry: ",v.retry.attempts,"x ",v.retry.backoff]}),v.hasHooks&&v.hooks&&f.jsxs("span",{className:"px-2 py-1 text-xs rounded-md bg-purple-100 dark:bg-purple-900 text-purple-700 dark:text-purple-300",children:["Hooks:"," ",[v.hooks.hasBefore&&"before",v.hooks.hasAfter&&"after"].filter(Boolean).join(" + ")]})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"text-sm font-medium mb-2",children:"Input Schema"}),f.jsx(Et,{data:v.inputSchema})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"text-sm font-medium mb-2",children:"Test Tool"}),f.jsx(Cv,{schema:v.inputSchema,onSubmit:T,submitLabel:y?"Running...":"Run Tool"})]}),r!==null&&f.jsxs("div",{children:[f.jsx("h4",{className:"text-sm font-medium mb-2",children:"Result"}),f.jsx(Et,{data:r})]}),d&&f.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm",children:d})]}):f.jsx("div",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Loading..."}):f.jsx(Jt,{title:"Select a tool",description:"Click a tool to view its schema and test it"})})]})})}function A1(){const[u,i]=E.useState("run"),[r,c]=E.useState(""),[d,m]=E.useState(!1),[y,b]=E.useState([]),[g,v]=E.useState(null),[T,p]=E.useState(null),[_,H]=E.useState(null),{data:Z=[]}=Pt({queryKey:["evals"],queryFn:h1}),O=Z.find(R=>R.name===r),L=E.useCallback(async()=>{if(r){m(!0),p(null),v(null);try{const R=await m1(r);v(R),b(w=>[{id:`eval-${Date.now()}`,timestamp:Date.now(),eval:r,data:R},...w])}catch(R){p(R instanceof Error?R.message:String(R))}finally{m(!1)}}},[r]),U=E.useCallback(async()=>{if(!(y.length<2))try{const R=await y1(y[1].data,y[0].data);H(R)}catch(R){p(R instanceof Error?R.message:String(R))}},[y]);return f.jsxs(ql,{title:"Eval Runner",description:"Run evaluations, view results, and compare runs",children:[f.jsx("div",{className:"flex items-center gap-1 mb-6",children:["run","history","compare"].map(R=>f.jsx("button",{onClick:()=>i(R),className:`px-3 py-1.5 text-sm rounded-md ${u===R?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]"}`,children:R.charAt(0).toUpperCase()+R.slice(1)},R))}),u==="run"&&f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Eval"}),Z.length===0?f.jsxs("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:["No evals registered. Define evals with"," ",f.jsx("code",{className:"text-xs bg-[hsl(var(--muted))] px-1 py-0.5 rounded",children:"defineEval()"})," ","and load them via the"," ",f.jsx("code",{className:"text-xs bg-[hsl(var(--muted))] px-1 py-0.5 rounded",children:"evals"})," ","middleware option or"," ",f.jsx("code",{className:"text-xs bg-[hsl(var(--muted))] px-1 py-0.5 rounded",children:"runtime.registerEval()"}),"."]}):f.jsxs("select",{value:r,onChange:R=>c(R.target.value),className:"w-full px-3 py-2 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select an eval..."}),Z.map(R=>f.jsx("option",{value:R.name,children:R.name},R.name))]})]}),O&&f.jsxs("div",{className:"space-y-2 text-xs",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Workflow:"}),f.jsx("span",{className:"font-mono",children:O.workflow})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Dataset:"}),f.jsx("span",{className:"font-mono",children:O.dataset})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Scorers:"}),f.jsx("div",{className:"flex flex-wrap gap-1",children:O.scorers.map(R=>f.jsx("span",{className:"px-1.5 py-0.5 rounded bg-[hsl(var(--muted))] font-mono",children:R},R))})]})]}),f.jsx("button",{onClick:L,disabled:!r||d,className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:d?"Running...":"Run Eval"})]}),f.jsxs("div",{children:[T&&f.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm mb-4",children:T}),g?f.jsxs("div",{className:"space-y-4",children:[g.summary&&Object.keys(g.summary).length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Summary"}),f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Scorer"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Mean"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Min"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Max"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Count"})]})}),f.jsx("tbody",{children:Object.entries(g.summary).map(([R,w])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:R}),f.jsx("td",{className:"py-2 text-right font-mono",children:w.mean.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:w.min.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:w.max.toFixed(3)}),f.jsx("td",{className:"py-2 text-right",children:w.count})]},R))})]})]}),g.items&&g.items.length>0&&f.jsxs("div",{children:[f.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Items (",g.items.length,")"]}),f.jsx("div",{className:"space-y-2",children:g.items.map((R,w)=>f.jsxs("details",{className:"border border-[hsl(var(--border))] rounded-md",children:[f.jsxs("summary",{className:"flex items-center justify-between px-3 py-2 text-xs cursor-pointer hover:bg-[hsl(var(--accent))]",children:[f.jsxs("span",{className:"font-mono",children:["Item #",w+1]}),f.jsx("div",{className:"flex items-center gap-2",children:Object.entries(R.scores).map(([G,$])=>f.jsxs("span",{className:`px-1.5 py-0.5 rounded font-mono ${$>=.8?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":$>=.5?"bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300":"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300"}`,children:[G,": ",$.toFixed(2)]},G))})]}),f.jsxs("div",{className:"px-3 py-2 border-t border-[hsl(var(--border))] space-y-2 text-xs",children:[f.jsxs("div",{children:[f.jsx("span",{className:"font-medium",children:"Input:"}),f.jsx(Et,{data:R.input,collapsed:!0})]}),f.jsxs("div",{children:[f.jsx("span",{className:"font-medium",children:"Output:"}),f.jsx(Et,{data:R.output,collapsed:!0})]})]})]},w))})]}),!g.summary&&!g.items&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Results"}),f.jsx(Et,{data:g})]})]}):f.jsx(Jt,{icon:f.jsx(gv,{size:32}),title:"No results",description:"Select an eval and run it to see results."})]})]}),u==="history"&&f.jsx("div",{children:y.length===0?f.jsx(Jt,{title:"No eval history",description:"Run evaluations to build history."}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Eval"}),f.jsx("th",{className:"text-left py-2 font-medium",children:"Timestamp"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Items"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Scorers"})]})}),f.jsx("tbody",{children:y.map(R=>{var w;return f.jsxs("tr",{className:"border-b border-[hsl(var(--border))] cursor-pointer hover:bg-[hsl(var(--accent))]",onClick:()=>{v(R.data),i("run")},children:[f.jsx("td",{className:"py-2 font-mono",children:R.eval}),f.jsx("td",{className:"py-2",children:new Date(R.timestamp).toLocaleString()}),f.jsx("td",{className:"py-2 text-right",children:((w=R.data.items)==null?void 0:w.length)??"?"}),f.jsx("td",{className:"py-2 text-right",children:R.data.summary?Object.keys(R.data.summary).length:"?"})]},R.id)})})]})}),u==="compare"&&f.jsx("div",{className:"space-y-4",children:y.length<2?f.jsx(Jt,{title:"Need at least 2 eval runs",description:"Run evaluations to compare results."}):f.jsxs(f.Fragment,{children:[f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Comparing most recent run against previous run."}),f.jsx("button",{onClick:U,className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90",children:"Compare"}),_&&f.jsxs("div",{className:"space-y-4",children:[_.regressions&&_.regressions.length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2 text-red-600 dark:text-red-400",children:"Regressions"}),f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Scorer"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Baseline"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Candidate"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Delta"})]})}),f.jsx("tbody",{children:_.regressions.map(R=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:R.scorer}),f.jsx("td",{className:"py-2 text-right font-mono",children:R.baseline.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:R.candidate.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono text-red-600 dark:text-red-400",children:R.delta.toFixed(3)})]},R.scorer))})]})]}),_.improvements&&_.improvements.length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2 text-green-600 dark:text-green-400",children:"Improvements"}),f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Scorer"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Baseline"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Candidate"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Delta"})]})}),f.jsx("tbody",{children:_.improvements.map(R=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:R.scorer}),f.jsx("td",{className:"py-2 text-right font-mono",children:R.baseline.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:R.candidate.toFixed(3)}),f.jsxs("td",{className:"py-2 text-right font-mono text-green-600 dark:text-green-400",children:["+",R.delta.toFixed(3)]})]},R.scorer))})]})]}),!_.regressions&&!_.improvements&&f.jsx(Et,{data:_})]})]})})]})}function z1(){return f.jsx(hx,{basename:window.__AXL_STUDIO_BASE__||"/",children:f.jsxs("div",{className:"flex h-screen overflow-hidden",children:[f.jsx(Jx,{}),f.jsx("div",{className:"flex-1 overflow-hidden",children:f.jsxs(Xb,{children:[f.jsx(il,{path:"/playground",element:f.jsx(b1,{})}),f.jsx(il,{path:"/workflows",element:f.jsx(x1,{})}),f.jsx(il,{path:"/traces",element:f.jsx(j1,{})}),f.jsx(il,{path:"/costs",element:f.jsx(T1,{})}),f.jsx(il,{path:"/memory",element:f.jsx(C1,{})}),f.jsx(il,{path:"/sessions",element:f.jsx(O1,{})}),f.jsx(il,{path:"/tools",element:f.jsx(R1,{})}),f.jsx(il,{path:"/evals",element:f.jsx(A1,{})}),f.jsx(il,{path:"*",element:f.jsx(Yb,{to:"/playground",replace:!0})})]})})]})})}rg.createRoot(document.getElementById("root")).render(f.jsx(E.StrictMode,{children:f.jsx(Dg,{client:Kg,children:f.jsx(z1,{})})}));
|
|
150
|
+
*/const Xx=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],Ev=Et("Wrench",Xx);function _o(...u){return u.filter(Boolean).join(" ")}function jv(u){return u===0?"$0.00":u<.01?`$${u.toFixed(4)}`:`$${u.toFixed(2)}`}function Zx(u){return u<1e3?`${Math.round(u)}ms`:u<6e4?`${(u/1e3).toFixed(1)}s`:`${(u/6e4).toFixed(1)}m`}function _s(u){return u.toLocaleString()}function Kx(u){switch(u){case"running":return"text-blue-500";case"completed":return"text-green-500";case"failed":return"text-red-500";case"waiting":return"text-amber-500";default:return"text-gray-500"}}const Vx=[{to:"/playground",label:"Playground",icon:zx},{to:"/workflows",label:"Workflows",icon:bv},{to:"/traces",label:"Traces",icon:yv},{to:"/costs",label:"Costs",icon:pv},{to:"/memory",label:"Memory",icon:vv},{to:"/sessions",label:"Sessions",icon:Sv},{to:"/tools",label:"Tools",icon:Ev},{to:"/evals",label:"Evals",icon:gv}];function kx(){return f.jsxs("aside",{className:"w-56 border-r border-[hsl(var(--border))] bg-[hsl(var(--card))] flex flex-col h-screen",children:[f.jsx("div",{className:"p-4 border-b border-[hsl(var(--border))]",children:f.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:"Axl Studio"})}),f.jsx("nav",{className:"flex-1 p-2 space-y-0.5",children:Vx.map(({to:u,label:i,icon:r})=>f.jsxs(dv,{to:u,className:({isActive:c})=>_o("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm transition-colors",c?"bg-[hsl(var(--accent))] text-[hsl(var(--accent-foreground))] font-medium":"text-[hsl(var(--muted-foreground))] hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]"),children:[f.jsx(r,{size:16}),i]},u))}),f.jsx("div",{className:"p-4 border-t border-[hsl(var(--border))] text-xs text-[hsl(var(--muted-foreground))]",children:"@axlsdk/studio"})]})}function ql({title:u,description:i,actions:r,children:c}){return f.jsxs("div",{className:"flex flex-col h-screen",children:[f.jsxs("header",{className:"flex items-center justify-between px-6 py-4 border-b border-[hsl(var(--border))]",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-xl font-semibold",children:u}),i&&f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))] mt-0.5",children:i})]}),r&&f.jsx("div",{className:"flex items-center gap-2",children:r})]}),f.jsx("main",{className:"flex-1 overflow-auto p-6",children:c})]})}function Vt({title:u,description:i,icon:r}){return f.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[r&&f.jsx("div",{className:"mb-3 text-[hsl(var(--muted-foreground))]",children:r}),f.jsx("h3",{className:"text-sm font-medium text-[hsl(var(--foreground))]",children:u}),i&&f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))] mt-1 max-w-sm",children:i})]})}function Jx({text:u,className:i}){return f.jsxs("div",{className:`whitespace-pre-wrap ${i??""}`,children:[u,f.jsx("span",{className:"animate-pulse",children:"|"})]})}function kt({data:u,collapsed:i=!1,className:r}){const[c,d]=E.useState(i),m=JSON.stringify(u,null,2),y=m.length>200;return f.jsxs("div",{className:`relative ${r??""}`,children:[y&&f.jsx("button",{onClick:()=>d(!c),className:"text-xs text-[hsl(var(--muted-foreground))] hover:text-[hsl(var(--foreground))] mb-1",children:c?"Expand":"Collapse"}),f.jsx("pre",{className:"text-xs font-mono p-3 rounded-md bg-[hsl(var(--secondary))] overflow-auto max-h-96",children:c?JSON.stringify(u):m})]})}const Fx=(window.__AXL_STUDIO_BASE__??"")+"/api";async function Ge(u,i){const c=await(await fetch(`${Fx}${u}`,{headers:{"Content-Type":"application/json",...i==null?void 0:i.headers},...i})).json();if(!c.ok)throw new Error(c.error.message);return c.data}const $x=()=>Ge("/workflows"),Wx=u=>Ge(`/workflows/${encodeURIComponent(u)}`),Ix=(u,i,r=!1)=>Ge(`/workflows/${encodeURIComponent(u)}/execute`,{method:"POST",body:JSON.stringify({input:i,stream:r})}),Px=()=>Ge("/executions"),e1=()=>Ge("/sessions"),t1=u=>Ge(`/sessions/${encodeURIComponent(u)}`),l1=u=>Ge(`/sessions/${encodeURIComponent(u)}`,{method:"DELETE"}),a1=()=>Ge("/agents"),n1=()=>Ge("/tools"),u1=u=>Ge(`/tools/${encodeURIComponent(u)}`),i1=(u,i)=>Ge(`/tools/${encodeURIComponent(u)}/test`,{method:"POST",body:JSON.stringify({input:i})}),s1=u=>Ge(`/memory/${encodeURIComponent(u)}`),r1=(u,i,r)=>Ge(`/memory/${encodeURIComponent(u)}/${encodeURIComponent(i)}`,{method:"PUT",body:JSON.stringify({value:r})}),c1=(u,i)=>Ge(`/memory/${encodeURIComponent(u)}/${encodeURIComponent(i)}`,{method:"DELETE"}),o1=(u,i,r)=>Ge("/memory/search",{method:"POST",body:JSON.stringify({query:u,scope:i,limit:r})}),f1=()=>Ge("/costs"),d1=()=>Ge("/costs/reset",{method:"POST"}),h1=()=>Ge("/evals"),m1=u=>Ge(`/evals/${encodeURIComponent(u)}/run`,{method:"POST"}),y1=(u,i)=>Ge("/evals/compare",{method:"POST",body:JSON.stringify({baseline:u,candidate:i})}),v1=(u,i,r)=>Ge("/playground/chat",{method:"POST",body:JSON.stringify({message:u,sessionId:i,agent:r})});class p1{constructor(){ku(this,"ws",null);ku(this,"listeners",new Map);ku(this,"reconnectTimer",null);ku(this,"url");const i=window.location.protocol==="https:"?"wss:":"ws:",r=window.__AXL_STUDIO_BASE__??"";this.url=`${i}//${window.location.host}${r}/ws`}connect(){var i;((i=this.ws)==null?void 0:i.readyState)!==WebSocket.OPEN&&(this.ws=new WebSocket(this.url),this.ws.onopen=()=>{for(const r of this.listeners.keys())this.send({type:"subscribe",channel:r})},this.ws.onmessage=r=>{try{const c=JSON.parse(r.data);if(c.type==="event"&&c.channel){const d=this.listeners.get(c.channel);if(d)for(const y of d)y(c.data);const m=c.channel.indexOf(":");if(m>0){const y=c.channel.substring(0,m)+":*",b=this.listeners.get(y);if(b)for(const p of b)p(c.data)}}}catch{}},this.ws.onclose=()=>{this.scheduleReconnect()},this.ws.onerror=()=>{var r;(r=this.ws)==null||r.close()})}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},2e3))}send(i){var r;((r=this.ws)==null?void 0:r.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify(i))}subscribe(i,r){let c=this.listeners.get(i);return c||(c=new Set,this.listeners.set(i,c),this.send({type:"subscribe",channel:i})),c.add(r),this.connect(),()=>{c.delete(r),c.size===0&&(this.listeners.delete(i),this.send({type:"unsubscribe",channel:i}))}}disconnect(){var i;this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(i=this.ws)==null||i.close(),this.ws=null}}const g1=new p1;function Jo(u,i){const r=E.useRef(i);r.current=i,E.useEffect(()=>{if(u)return g1.subscribe(u,c=>r.current(c))},[u])}function Nv(u){const[i,r]=E.useState({tokens:"",events:[],done:!1,error:null,result:null}),c=E.useCallback(d=>{const m=d;r(y=>{switch(m.type){case"token":return{...y,tokens:y.tokens+m.data,events:[...y.events,m]};case"done":return{...y,done:!0,result:m.result,events:[...y.events,m]};case"error":return{...y,done:!0,error:m.message,events:[...y.events,m]};default:return{...y,events:[...y.events,m]}}})},[]);return Jo(u?`execution:${u}`:null,c),i}function b1(){const[u,i]=E.useState([]),[r,c]=E.useState(""),[d,m]=E.useState(null),[y,b]=E.useState(null),[p,v]=E.useState(""),[T,g]=E.useState(!1),z=E.useRef(null),{data:w=[]}=Pt({queryKey:["agents"],queryFn:a1}),Z=Nv(y);E.useEffect(()=>{Z.tokens&&T&&i(U=>{const Y=U[U.length-1];return(Y==null?void 0:Y.role)==="assistant"?[...U.slice(0,-1),{...Y,content:Z.tokens}]:[...U,{role:"assistant",content:Z.tokens}]}),Z.done&&(g(!1),b(null))},[Z.tokens,Z.done,T]),E.useEffect(()=>{const U=[],Y=[],q=[];for(const O of Z.events){if(O.type==="tool_call"&&U.push({name:O.name,args:O.args}),O.type==="tool_result"){const K=U.find(V=>V.name===O.name&&!V.result);K&&(K.result=O.result)}O.type==="handoff"&&Y.push({source:O.source,target:O.target,mode:O.mode??"oneway"}),O.type==="tool_approval"&&q.push({tool:O.name,approved:O.approved})}(U.length>0||Y.length>0||q.length>0)&&i(O=>{const K=O[O.length-1];return(K==null?void 0:K.role)==="assistant"?[...O.slice(0,-1),{...K,toolCalls:U.length>0?U:K.toolCalls,handoffs:Y.length>0?Y:K.handoffs,approvals:q.length>0?q:K.approvals}]:O})},[Z.events]),E.useEffect(()=>{var U;(U=z.current)==null||U.scrollIntoView({behavior:"smooth"})},[u]);const R=E.useCallback(async()=>{if(!r.trim()||T)return;const U=r.trim();c(""),i(Y=>[...Y,{role:"user",content:U}]),g(!0);try{const Y=await v1(U,d??void 0,p||void 0);m(Y.sessionId),b(Y.executionId)}catch(Y){g(!1),i(q=>[...q,{role:"assistant",content:`Error: ${Y instanceof Error?Y.message:String(Y)}`}])}},[r,T,d,p]),L=U=>{U.key==="Enter"&&!U.shiftKey&&(U.preventDefault(),R())};return f.jsx(ql,{title:"Agent Playground",description:"Chat with registered agents in real-time",actions:f.jsxs("div",{className:"flex items-center gap-2",children:[w.length>0&&f.jsxs("select",{value:p,onChange:U=>v(U.target.value),className:"px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Default agent"}),w.map(U=>f.jsx("option",{value:U.name,children:U.name},U.name))]}),f.jsx("button",{onClick:()=>{i([]),m(null),b(null)},className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"New Chat"})]}),children:f.jsxs("div",{className:"flex flex-col h-full max-w-3xl mx-auto",children:[f.jsxs("div",{className:"flex-1 overflow-auto space-y-4 pb-4",children:[u.length===0&&f.jsx(Vt,{title:"Start a conversation",description:"Type a message below to chat with an agent. Tool calls, handoffs, and streaming responses will be displayed in real-time."}),u.map((U,Y)=>f.jsx("div",{className:`flex ${U.role==="user"?"justify-end":"justify-start"}`,children:f.jsxs("div",{className:`max-w-[80%] rounded-lg px-4 py-2.5 text-sm ${U.role==="user"?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))]"}`,children:[U.role==="assistant"&&T&&Y===u.length-1?f.jsx(Jx,{text:U.content}):f.jsx("div",{className:"whitespace-pre-wrap",children:U.content}),U.handoffs&&U.handoffs.length>0&&f.jsx("div",{className:"mt-2 space-y-1 border-t border-[hsl(var(--border))] pt-2",children:U.handoffs.map((q,O)=>f.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[f.jsx(zo,{size:12,className:"text-amber-500"}),f.jsx("span",{className:"font-medium",children:q.source}),f.jsx(zo,{size:10}),f.jsx("span",{className:"font-medium",children:q.target}),f.jsxs("span",{className:"text-[hsl(var(--muted-foreground))]",children:["(",q.mode,")"]})]},O))}),U.approvals&&U.approvals.length>0&&f.jsx("div",{className:"mt-2 space-y-1 border-t border-[hsl(var(--border))] pt-2",children:U.approvals.map((q,O)=>f.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[f.jsx(Lx,{size:12,className:q.approved?"text-green-500":"text-red-500"}),f.jsxs("span",{children:["Tool ",f.jsx("span",{className:"font-mono",children:q.tool}),":"," ",q.approved?"approved":"denied"]})]},O))}),U.toolCalls&&U.toolCalls.length>0&&f.jsx("div",{className:"mt-2 space-y-2 border-t border-[hsl(var(--border))] pt-2",children:U.toolCalls.map((q,O)=>f.jsxs("details",{className:"text-xs",children:[f.jsxs("summary",{className:"cursor-pointer font-medium",children:["Tool: ",q.name]}),f.jsxs("div",{className:"mt-1 space-y-1",children:[f.jsx("div",{className:"text-[hsl(var(--muted-foreground))]",children:"Input:"}),f.jsx(kt,{data:q.args,collapsed:!0}),q.result!==void 0&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"text-[hsl(var(--muted-foreground))]",children:"Output:"}),f.jsx(kt,{data:q.result,collapsed:!0})]})]})]},O))})]})},Y)),f.jsx("div",{ref:z})]}),f.jsx("div",{className:"border-t border-[hsl(var(--border))] pt-4",children:f.jsxs("div",{className:"flex items-end gap-2",children:[f.jsx("textarea",{value:r,onChange:U=>c(U.target.value),onKeyDown:L,placeholder:"Type a message...",rows:1,className:"flex-1 px-3 py-2.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] resize-none focus:outline-none focus:ring-2 focus:ring-[hsl(var(--ring))]"}),f.jsx("button",{onClick:R,disabled:!r.trim()||T,className:"p-2.5 rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50 transition-opacity",children:f.jsx(Bx,{size:16})})]})})]})})}function Tv({value:u,onChange:i,placeholder:r,className:c}){const[d,m]=E.useState(null),y=E.useCallback(b=>{const p=b.target.value;i(p);try{p.trim()&&JSON.parse(p),m(null)}catch(v){m(v instanceof Error?v.message:"Invalid JSON")}},[i]);return f.jsxs("div",{className:c,children:[f.jsx("textarea",{value:u,onChange:y,placeholder:r??"{}",className:"w-full h-32 p-3 text-xs font-mono rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] text-[hsl(var(--foreground))] resize-y focus:outline-none focus:ring-2 focus:ring-[hsl(var(--ring))]",spellCheck:!1}),d&&f.jsx("p",{className:"text-xs text-red-500 mt-1",children:d})]})}function Cv({schema:u,onSubmit:i,submitLabel:r="Submit",className:c}){const[d,m]=E.useState({}),y=u.properties??{},b=new Set(u.required??[]),p=E.useCallback(v=>{v.preventDefault();const T={};for(const[g,z]of Object.entries(y)){const w=d[g]??"";if(!(!w&&!b.has(g)))if(z.type==="number")T[g]=Number(w);else if(z.type==="boolean")T[g]=w==="true";else if(z.type==="object"||z.type==="array")try{T[g]=JSON.parse(w)}catch{T[g]=w}else T[g]=w}i(T)},[d,y,b,i]);return f.jsxs("form",{onSubmit:p,className:`space-y-3 ${c??""}`,children:[Object.entries(y).map(([v,T])=>f.jsxs("div",{children:[f.jsxs("label",{className:"block text-xs font-medium text-[hsl(var(--foreground))] mb-1",children:[v,b.has(v)&&f.jsx("span",{className:"text-red-500 ml-0.5",children:"*"}),T.description&&f.jsxs("span",{className:"text-[hsl(var(--muted-foreground))] font-normal ml-1",children:["- ",T.description]})]}),T.enum?f.jsxs("select",{value:d[v]??"",onChange:g=>m({...d,[v]:g.target.value}),className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select..."}),T.enum.map(g=>f.jsx("option",{value:g,children:g},g))]}):T.type==="boolean"?f.jsxs("select",{value:d[v]??"",onChange:g=>m({...d,[v]:g.target.value}),className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select..."}),f.jsx("option",{value:"true",children:"true"}),f.jsx("option",{value:"false",children:"false"})]}):f.jsx("input",{type:T.type==="number"?"number":"text",value:d[v]??"",onChange:g=>m({...d,[v]:g.target.value}),placeholder:T.type??"string",className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]"})]},v)),f.jsx("button",{type:"submit",className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 transition-opacity",children:r})]})}function Ov({status:u,className:i}){return f.jsxs("span",{className:_o("inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs font-medium",Kx(u),u==="running"&&"animate-pulse",i),children:[f.jsx("span",{className:_o("w-1.5 h-1.5 rounded-full",u==="running"&&"bg-blue-500",u==="completed"&&"bg-green-500",u==="failed"&&"bg-red-500",u==="waiting"&&"bg-amber-500")}),u]})}function ba({cost:u,className:i}){return f.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${i??""}`,children:jv(u)})}function Do({ms:u,className:i}){return f.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${i??""}`,children:Zx(u)})}function x1(){const[u,i]=E.useState(""),[r,c]=E.useState("{}"),[d,m]=E.useState(!0),[y,b]=E.useState(null),[p,v]=E.useState(null),[T,g]=E.useState(null),[z,w]=E.useState("idle"),{data:Z=[]}=Pt({queryKey:["workflows"],queryFn:$x}),{data:R}=Pt({queryKey:["workflow",u],queryFn:()=>Wx(u),enabled:!!u}),L=Nv(y),U=E.useCallback(async V=>{if(u){v(null),g(null),w("running");try{const $=await Ix(u,V,!0);$.streaming&&$.executionId?b($.executionId):(v($.result),w("completed"))}catch($){g($ instanceof Error?$.message:String($)),w("failed")}}},[u]),Y=E.useCallback(()=>{try{const V=JSON.parse(r);U(V)}catch(V){g(V instanceof Error?V.message:String(V)),w("failed")}},[r,U]),q=E.useCallback(V=>{U(V)},[U]);E.useEffect(()=>{L.done&&z==="running"&&(w(L.error?"failed":"completed"),L.error&&g(L.error),L.result&&v(L.result),b(null))},[L.done,L.error,L.result,z]);const O=L.events.filter(V=>V.type==="step").map(V=>V.data),K=!!(R!=null&&R.inputSchema);return f.jsx(ql,{title:"Workflow Runner",description:"Execute and debug registered workflows",children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Workflow"}),f.jsxs("select",{value:u,onChange:V=>{i(V.target.value),c("{}"),v(null),g(null),w("idle")},className:"w-full px-3 py-2 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select a workflow..."}),Z.map(V=>f.jsx("option",{value:V.name,children:V.name},V.name))]})]}),(R==null?void 0:R.outputSchema)!=null&&f.jsxs("details",{className:"text-xs",children:[f.jsx("summary",{className:"cursor-pointer text-[hsl(var(--muted-foreground))]",children:"Output Schema"}),f.jsx("div",{className:"mt-1",children:f.jsx(kt,{data:R.outputSchema,collapsed:!0})})]}),K&&f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("label",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"Input mode:"}),f.jsx("button",{onClick:()=>m(!0),className:`px-2 py-0.5 text-xs rounded ${d?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))]"}`,children:"Form"}),f.jsx("button",{onClick:()=>m(!1),className:`px-2 py-0.5 text-xs rounded ${d?"border border-[hsl(var(--input))]":"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]"}`,children:"JSON"})]}),K&&d?f.jsx(Cv,{schema:R.inputSchema,onSubmit:q,submitLabel:z==="running"?"Running...":"Execute"}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Input (JSON)"}),f.jsx(Tv,{value:r,onChange:c})]}),f.jsxs("button",{onClick:Y,disabled:!u||z==="running",className:"flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:[f.jsx(bv,{size:14}),"Execute"]})]})]}),f.jsxs("div",{className:"space-y-4",children:[z!=="idle"&&f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx(Ov,{status:z}),L.events.length>0&&f.jsxs(f.Fragment,{children:[O.some(V=>V.cost)&&f.jsx(ba,{cost:O.reduce((V,$)=>V+($.cost??0),0)}),O.some(V=>V.duration)&&f.jsx(Do,{ms:O.reduce((V,$)=>V+($.duration??0),0)})]})]}),O.length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Timeline"}),f.jsx("div",{className:"space-y-1.5",children:O.map((V,$)=>f.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 text-xs rounded bg-[hsl(var(--secondary))]",children:[f.jsxs("span",{className:"font-mono text-[hsl(var(--muted-foreground))]",children:["#",V.step]}),f.jsx("span",{className:"font-medium",children:V.type}),V.agent&&f.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:V.agent}),V.tool&&f.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:V.tool}),f.jsx("span",{className:"flex-1"}),V.duration&&f.jsx(Do,{ms:V.duration}),V.cost&&f.jsx(ba,{cost:V.cost})]},$))})]}),p!==null&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Result"}),f.jsx(kt,{data:p})]}),T&&f.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm",children:T}),z==="idle"&&f.jsx(Vt,{title:"No execution",description:"Select a workflow and click Execute to see results."})]})]})})}const S1={agent_call:"bg-blue-500",tool_call:"bg-purple-500",tool_call_complete:"bg-purple-400",workflow_start:"bg-green-500",workflow_complete:"bg-green-400",handoff:"bg-amber-500",await_human:"bg-red-500",vote_start:"bg-cyan-500",spawn:"bg-indigo-500"};function Ty(u){return S1[u]??"bg-slate-500"}function E1(u){const i=u.type;return i==="workflow_start"||i==="workflow_complete"?0:i==="agent_call"||i==="spawn"||i==="vote_start"?1:i==="tool_call"||i==="tool_call_complete"||i==="handoff"?2:1}function j1(){const[u,i]=E.useState(null),[r,c]=E.useState([]),[d,m]=E.useState(""),[y,b]=E.useState(""),{data:p=[],refetch:v}=Pt({queryKey:["executions"],queryFn:Px,refetchInterval:3e3});Jo("trace:*",E.useCallback(R=>{c(L=>[...L.slice(-200),R])},[]));const T=u?u.steps:r;let g=T;d&&(g=g.filter(R=>R.type===d)),y&&(g=g.filter(R=>R.agent===y));const z=[...new Set(T.map(R=>R.type))],w=[...new Set(T.map(R=>R.agent).filter(Boolean))],Z=Math.max(...g.map(R=>R.duration??0),1);return f.jsx(ql,{title:"Trace Explorer",description:"Inspect execution traces with waterfall visualization",actions:f.jsx("button",{onClick:()=>{v(),c([])},className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Refresh"}),children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[f.jsxs("div",{className:"lg:col-span-1 space-y-2",children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Executions"}),f.jsxs("button",{onClick:()=>i(null),className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u?"border-[hsl(var(--border))]":"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]"}`,children:["Live Events (",r.length,")"]}),p.map(R=>f.jsxs("button",{onClick:()=>i(R),className:`w-full text-left px-3 py-2 text-xs rounded-md border ${(u==null?void 0:u.executionId)===R.executionId?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"font-medium truncate",children:R.workflow}),f.jsx(Ov,{status:R.status})]}),f.jsxs("div",{className:"flex items-center justify-between mt-0.5",children:[f.jsxs("span",{className:"text-[hsl(var(--muted-foreground))] truncate",children:[R.executionId.slice(0,8),"... | ",R.steps.length," steps"]}),R.totalCost>0&&f.jsx(ba,{cost:R.totalCost})]})]},R.executionId)),p.length===0&&f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No executions yet"})]}),f.jsxs("div",{className:"lg:col-span-3",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4 flex-wrap",children:[f.jsxs("select",{value:d,onChange:R=>m(R.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"All types"}),z.map(R=>f.jsx("option",{value:R,children:R},R))]}),w.length>0&&f.jsxs("select",{value:y,onChange:R=>b(R.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"All agents"}),w.map(R=>f.jsx("option",{value:R,children:R},R))]}),f.jsxs("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:[g.length," events"]})]}),g.length===0?f.jsx(Vt,{icon:f.jsx(yv,{size:32}),title:"No trace events",description:"Execute a workflow to see trace events here."}):f.jsx("div",{className:"space-y-1",children:g.map((R,L)=>{const U=E1(R);return f.jsxs("details",{className:"group",children:[f.jsxs("summary",{className:"flex items-center gap-2 px-3 py-1.5 text-xs rounded bg-[hsl(var(--secondary))] cursor-pointer hover:bg-[hsl(var(--accent))]",style:{marginLeft:`${U*16}px`},children:[f.jsxs("span",{className:"font-mono text-[hsl(var(--muted-foreground))] w-8",children:["#",R.step]}),f.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${Ty(R.type)}`}),f.jsx("span",{className:"font-medium w-28 truncate",children:R.type}),R.agent&&f.jsx("span",{className:"text-blue-600 dark:text-blue-400 w-28 truncate",children:R.agent}),R.tool&&f.jsx("span",{className:"text-purple-600 dark:text-purple-400 w-28 truncate",children:R.tool}),f.jsx("div",{className:"flex-1 h-3 bg-[hsl(var(--background))] rounded overflow-hidden",children:R.duration&&f.jsx("div",{className:`h-full rounded ${Ty(R.type)}`,style:{width:`${Math.max(R.duration/Z*100,2)}%`,opacity:.7}})}),R.duration&&f.jsx(Do,{ms:R.duration}),R.cost&&f.jsx(ba,{cost:R.cost})]}),f.jsxs("div",{className:"mt-1 mb-2 p-3 rounded bg-[hsl(var(--card))] border border-[hsl(var(--border))]",style:{marginLeft:`${U*16+32}px`},children:[R.model&&f.jsxs("p",{className:"text-xs mb-1",children:[f.jsx("strong",{children:"Model:"})," ",R.model]}),R.promptVersion&&f.jsxs("p",{className:"text-xs mb-1",children:[f.jsx("strong",{children:"Version:"})," ",R.promptVersion]}),R.tokens&&f.jsxs("p",{className:"text-xs mb-1",children:[f.jsx("strong",{children:"Tokens:"})," in=",R.tokens.input," out=",R.tokens.output,R.tokens.reasoning?` reasoning=${R.tokens.reasoning}`:""]}),R.data!=null&&f.jsx(kt,{data:R.data,collapsed:!0})]})]},L)})})]})]})})}function N1({tokens:u,label:i,className:r}){return f.jsxs("span",{className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${r??""}`,children:[i&&f.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:i}),_s(u)]})}function T1(){const[u,i]=E.useState(null),{data:r,refetch:c}=Pt({queryKey:["costs"],queryFn:f1});Jo("costs",E.useCallback(y=>{i(y)},[]));const d=u??r,m=async()=>{await d1(),i(null),c()};return d?f.jsxs(ql,{title:"Cost Dashboard",description:"Track spending across agents, models, and workflows",actions:f.jsx("button",{onClick:m,className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Reset"}),children:[f.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[f.jsx(Rs,{label:"Total Cost",value:jv(d.totalCost)}),f.jsx(Rs,{label:"Input Tokens",value:_s(d.totalTokens.input)}),f.jsx(Rs,{label:"Output Tokens",value:_s(d.totalTokens.output)}),f.jsx(Rs,{label:"Reasoning Tokens",value:_s(d.totalTokens.reasoning)})]}),f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Agent"}),Object.keys(d.byAgent).length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No agent data"}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Agent"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Calls"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"})]})}),f.jsx("tbody",{children:Object.entries(d.byAgent).sort(([,y],[,b])=>b.cost-y.cost).map(([y,b])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:y}),f.jsx("td",{className:"py-2 text-right",children:b.calls}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:b.cost})})]},y))})]})]}),f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Model"}),Object.keys(d.byModel).length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No model data"}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Model"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Calls"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Tokens"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"})]})}),f.jsx("tbody",{children:Object.entries(d.byModel).sort(([,y],[,b])=>b.cost-y.cost).map(([y,b])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:y}),f.jsx("td",{className:"py-2 text-right",children:b.calls}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(N1,{tokens:b.tokens.input+b.tokens.output})}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:b.cost})})]},y))})]})]}),f.jsxs("div",{className:"lg:col-span-2",children:[f.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Workflow"}),Object.keys(d.byWorkflow).length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No workflow data"}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Workflow"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Executions"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Total Cost"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Avg Cost"})]})}),f.jsx("tbody",{children:Object.entries(d.byWorkflow).sort(([,y],[,b])=>b.cost-y.cost).map(([y,b])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:y}),f.jsx("td",{className:"py-2 text-right",children:b.executions}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:b.cost})}),f.jsx("td",{className:"py-2 text-right",children:f.jsx(ba,{cost:b.executions>0?b.cost/b.executions:0})})]},y))})]})]})]})]}):f.jsx(ql,{title:"Cost Dashboard",description:"Track spending across agents, models, and workflows",children:f.jsx(Vt,{icon:f.jsx(pv,{size:32}),title:"No cost data",description:"Execute workflows to see cost data."})})}function Rs({label:u,value:i}){return f.jsxs("div",{className:"p-4 rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:u}),f.jsx("p",{className:"text-2xl font-semibold mt-1",children:i})]})}function C1(){const[u,i]=E.useState("session"),[r,c]=E.useState(""),[d,m]=E.useState("{}"),[y,b]=E.useState(!1),[p,v]=E.useState(""),[T,g]=E.useState(null),z=Hs(),{data:w=[]}=Pt({queryKey:["memory",u],queryFn:()=>s1(u)}),Z=Ro({mutationFn:({key:Y,value:q})=>r1(u,Y,q),onSuccess:()=>{z.invalidateQueries({queryKey:["memory",u]}),b(!1),c(""),m("{}")}}),R=Ro({mutationFn:Y=>c1(u,Y),onSuccess:()=>{z.invalidateQueries({queryKey:["memory",u]})}}),L=E.useCallback(async()=>{if(!p.trim())return;const Y=await o1(p,u);g(Y.results)},[p,u]),U=E.useCallback(()=>{if(r.trim())try{const Y=JSON.parse(d);Z.mutate({key:r,value:Y})}catch{Z.mutate({key:r,value:d})}},[r,d,Z]);return f.jsxs(ql,{title:"Memory Browser",description:"View and manage agent memory entries",actions:f.jsxs("button",{onClick:()=>b(!y),className:"flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90",children:[f.jsx(Ux,{size:14}),"Add Entry"]}),children:[f.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[["session","global"].map(Y=>f.jsx("button",{onClick:()=>{i(Y),g(null)},className:`px-3 py-1.5 text-sm rounded-md ${u===Y?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]"}`,children:Y.charAt(0).toUpperCase()+Y.slice(1)},Y)),f.jsx("div",{className:"flex-1"}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("input",{value:p,onChange:Y=>v(Y.target.value),onKeyDown:Y=>Y.key==="Enter"&&L(),placeholder:"Semantic search...",className:"px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] w-48"}),f.jsx("button",{onClick:L,className:"p-1.5 rounded-md hover:bg-[hsl(var(--accent))]",children:f.jsx(Hx,{size:14})})]})]}),y&&f.jsxs("div",{className:"mb-4 p-4 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] space-y-3",children:[f.jsx("input",{value:r,onChange:Y=>c(Y.target.value),placeholder:"Key",className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]"}),f.jsx(Tv,{value:d,onChange:m,placeholder:"Value (JSON)"}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("button",{onClick:U,disabled:!r.trim(),className:"px-3 py-1.5 text-sm rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:"Save"}),f.jsx("button",{onClick:()=>b(!1),className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Cancel"})]})]}),T&&f.jsxs("div",{className:"mb-4 p-4 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Search Results"}),T.length===0?f.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No results found"}):f.jsx(kt,{data:T})]}),w.length===0?f.jsx(Vt,{icon:f.jsx(vv,{size:32}),title:"No memory entries",description:`No entries in the ${u} scope. Use ctx.remember() in workflows or add entries manually.`}):f.jsx("div",{className:"space-y-2",children:w.map(Y=>f.jsxs("div",{className:"p-3 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[f.jsxs("div",{className:"flex items-center justify-between mb-2",children:[f.jsx("span",{className:"text-sm font-mono font-medium",children:Y.key}),f.jsx("button",{onClick:()=>R.mutate(Y.key),className:"p-1 rounded hover:bg-[hsl(var(--destructive))] hover:text-[hsl(var(--destructive-foreground))] text-[hsl(var(--muted-foreground))]",children:f.jsx(xv,{size:14})})]}),f.jsx(kt,{data:Y.value,collapsed:!0})]},Y.key))})]})}function O1(){const[u,i]=E.useState(null),[r,c]=E.useState(null),d=Hs(),{data:m=[]}=Pt({queryKey:["sessions"],queryFn:e1,refetchInterval:5e3}),{data:y}=Pt({queryKey:["session",u],queryFn:()=>t1(u),enabled:!!u}),b=Ro({mutationFn:l1,onSuccess:()=>{d.invalidateQueries({queryKey:["sessions"]}),i(null)}}),p=y!=null&&y.history?r!==null?y.history.slice(0,r+1):y.history:[];return f.jsx(ql,{title:"Session Manager",description:"Browse active sessions, replay conversations, and view handoff chains",children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Sessions (",m.length,")"]}),m.length===0?f.jsx(Vt,{icon:f.jsx(Sv,{size:24}),title:"No sessions",description:"Sessions are created when using runtime.session()"}):m.map(v=>f.jsxs("button",{onClick:()=>{i(v.id),c(null)},className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u===v.id?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[f.jsx("div",{className:"font-mono truncate",children:v.id}),f.jsxs("div",{className:"text-[hsl(var(--muted-foreground))] mt-0.5",children:[v.messageCount," messages"]})]},v.id))]}),f.jsx("div",{className:"lg:col-span-2",children:y?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium font-mono",children:y.id}),f.jsxs("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:[y.history.length," messages"]})]}),f.jsxs("button",{onClick:()=>b.mutate(y.id),className:"flex items-center gap-1 px-2 py-1 text-xs rounded-md border border-red-300 text-red-600 hover:bg-red-50 dark:border-red-800 dark:text-red-400 dark:hover:bg-red-950",children:[f.jsx(xv,{size:12}),"Delete"]})]}),y.handoffHistory&&y.handoffHistory.length>0&&f.jsxs("div",{children:[f.jsx("h4",{className:"text-xs font-medium mb-2",children:"Handoff Chain"}),f.jsx("div",{className:"flex items-center gap-1 flex-wrap",children:y.handoffHistory.map((v,T)=>f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:v.source}),f.jsx(zo,{size:12,className:"text-[hsl(var(--muted-foreground))]"}),f.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:v.target}),f.jsxs("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:["(",v.mode,")"]}),T<y.handoffHistory.length-1&&f.jsx("span",{className:"mx-1 text-[hsl(var(--muted-foreground))]",children:"|"})]},T))})]}),y.history.length>1&&f.jsxs("div",{children:[f.jsxs("label",{className:"block text-xs font-medium mb-1",children:["Replay:"," ",r!==null?`${r+1} / ${y.history.length}`:"All"]}),f.jsx("input",{type:"range",min:0,max:y.history.length-1,value:r??y.history.length-1,onChange:v=>c(Number(v.target.value)),className:"w-full"})]}),f.jsx("div",{className:"space-y-3",children:p.map((v,T)=>f.jsxs("div",{className:`p-3 rounded-md text-sm ${v.role==="user"?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] ml-8":v.role==="assistant"?"bg-[hsl(var(--secondary))] mr-8":"bg-[hsl(var(--muted))] text-xs font-mono"}`,children:[f.jsx("div",{className:"text-xs font-medium mb-1 opacity-70",children:v.role}),f.jsx("div",{className:"whitespace-pre-wrap",children:v.content}),v.tool_calls&&v.tool_calls.length>0&&f.jsx("div",{className:"mt-2 space-y-1",children:v.tool_calls.map(g=>f.jsxs("details",{className:"text-xs",children:[f.jsx("summary",{className:"cursor-pointer font-mono",children:g.function.name}),f.jsx(kt,{data:JSON.parse(g.function.arguments),collapsed:!0})]},g.id))})]},T))})]}):f.jsx(Vt,{title:"Select a session",description:"Click a session to view its history"})})]})})}function R1(){const[u,i]=E.useState(null),[r,c]=E.useState(null),[d,m]=E.useState(null),[y,b]=E.useState(!1),{data:p=[]}=Pt({queryKey:["tools"],queryFn:n1}),{data:v}=Pt({queryKey:["tool",u],queryFn:()=>u1(u),enabled:!!u}),T=E.useCallback(async g=>{if(u){c(null),m(null),b(!0);try{const z=await i1(u,g);c(z.result)}catch(z){m(z instanceof Error?z.message:String(z))}finally{b(!1)}}},[u]);return f.jsx(ql,{title:"Tool Inspector",description:"View tool schemas and test tools directly",children:f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Tools (",p.length,")"]}),p.length===0?f.jsx(Vt,{icon:f.jsx(Ev,{size:24}),title:"No tools",description:"Register tools with runtime.registerTool()"}):p.map(g=>f.jsxs("button",{onClick:()=>{i(g.name),c(null),m(null)},className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u===g.name?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[f.jsx("div",{className:"font-medium",children:g.name}),f.jsx("div",{className:"text-[hsl(var(--muted-foreground))] mt-0.5 truncate",children:g.description}),f.jsxs("div",{className:"flex items-center gap-1.5 mt-1",children:[g.sensitive&&f.jsx("span",{className:"px-1 py-0.5 rounded bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300 text-[10px]",children:"sensitive"}),g.requireApproval&&f.jsx("span",{className:"px-1 py-0.5 rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 text-[10px]",children:"approval"})]})]},g.name))]}),f.jsx("div",{className:"lg:col-span-2",children:u?v?f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-medium",children:v.name}),f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:v.description})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[v.sensitive&&f.jsx("span",{className:"px-2 py-1 text-xs rounded-md bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300",children:"Sensitive"}),v.requireApproval&&f.jsx("span",{className:"px-2 py-1 text-xs rounded-md bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:"Requires Approval"}),v.retry.attempts&&v.retry.attempts>1&&f.jsxs("span",{className:"px-2 py-1 text-xs rounded-md bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300",children:["Retry: ",v.retry.attempts,"x ",v.retry.backoff]}),v.hasHooks&&v.hooks&&f.jsxs("span",{className:"px-2 py-1 text-xs rounded-md bg-purple-100 dark:bg-purple-900 text-purple-700 dark:text-purple-300",children:["Hooks:"," ",[v.hooks.hasBefore&&"before",v.hooks.hasAfter&&"after"].filter(Boolean).join(" + ")]})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"text-sm font-medium mb-2",children:"Input Schema"}),f.jsx(kt,{data:v.inputSchema})]}),f.jsxs("div",{children:[f.jsx("h4",{className:"text-sm font-medium mb-2",children:"Test Tool"}),f.jsx(Cv,{schema:v.inputSchema,onSubmit:T,submitLabel:y?"Running...":"Run Tool"})]}),r!==null&&f.jsxs("div",{children:[f.jsx("h4",{className:"text-sm font-medium mb-2",children:"Result"}),f.jsx(kt,{data:r})]}),d&&f.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm",children:d})]}):f.jsx("div",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Loading..."}):f.jsx(Vt,{title:"Select a tool",description:"Click a tool to view its schema and test it"})})]})})}function A1(){var q;const[u,i]=E.useState("run"),[r,c]=E.useState(""),[d,m]=E.useState(!1),[y,b]=E.useState([]),[p,v]=E.useState(null),[T,g]=E.useState(null),[z,w]=E.useState(null),{data:Z=[]}=Pt({queryKey:["evals"],queryFn:h1}),R=Z.find(O=>O.name===r),L=E.useCallback(async()=>{if(r){m(!0),g(null),v(null);try{const O=await m1(r);v(O),b(K=>[{id:O.id??`eval-${Date.now()}`,timestamp:Date.now(),eval:r,data:O},...K])}catch(O){g(O instanceof Error?O.message:String(O))}finally{m(!1)}}},[r]),U=E.useCallback(async()=>{if(!(y.length<2))try{const O=await y1(y[1].data,y[0].data);w(O)}catch(O){g(O instanceof Error?O.message:String(O))}},[y]),Y=(q=p==null?void 0:p.summary)!=null&&q.scorers?Object.entries(p.summary.scorers):[];return f.jsxs(ql,{title:"Eval Runner",description:"Run evaluations, view results, and compare runs",children:[f.jsx("div",{className:"flex items-center gap-1 mb-6",children:["run","history","compare"].map(O=>f.jsx("button",{onClick:()=>i(O),className:`px-3 py-1.5 text-sm rounded-md ${u===O?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]"}`,children:O.charAt(0).toUpperCase()+O.slice(1)},O))}),u==="run"&&f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{className:"block text-sm font-medium mb-1",children:"Eval"}),Z.length===0?f.jsxs("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:["No evals registered. Define evals with"," ",f.jsx("code",{className:"text-xs bg-[hsl(var(--muted))] px-1 py-0.5 rounded",children:"defineEval()"})," ","and load them via the"," ",f.jsx("code",{className:"text-xs bg-[hsl(var(--muted))] px-1 py-0.5 rounded",children:"evals"})," ","middleware option or"," ",f.jsx("code",{className:"text-xs bg-[hsl(var(--muted))] px-1 py-0.5 rounded",children:"runtime.registerEval()"}),"."]}):f.jsxs("select",{value:r,onChange:O=>c(O.target.value),className:"w-full px-3 py-2 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[f.jsx("option",{value:"",children:"Select an eval..."}),Z.map(O=>f.jsx("option",{value:O.name,children:O.name},O.name))]})]}),R&&f.jsxs("div",{className:"space-y-2 text-xs",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Workflow:"}),f.jsx("span",{className:"font-mono",children:R.workflow})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Dataset:"}),f.jsx("span",{className:"font-mono",children:R.dataset})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Scorers:"}),f.jsx("div",{className:"flex flex-wrap gap-1",children:R.scorers.map(O=>f.jsx("span",{className:"px-1.5 py-0.5 rounded bg-[hsl(var(--muted))] font-mono",children:O},O))})]})]}),f.jsx("button",{onClick:L,disabled:!r||d,className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:d?"Running...":"Run Eval"})]}),f.jsxs("div",{children:[T&&f.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm mb-4",children:T}),p?f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex items-center gap-4 text-xs text-[hsl(var(--muted-foreground))]",children:[f.jsxs("span",{children:[p.summary.count," items, ",p.summary.failures," failures"]}),p.duration>0&&f.jsxs("span",{children:[(p.duration/1e3).toFixed(1),"s"]}),p.totalCost>0&&f.jsxs("span",{children:["$",p.totalCost.toFixed(4)]})]}),Y.length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Summary"}),f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Scorer"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Mean"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"P50"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"P95"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Min"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Max"})]})}),f.jsx("tbody",{children:Y.map(([O,K])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:O}),f.jsx("td",{className:"py-2 text-right font-mono",children:K.mean.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:K.p50.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:K.p95.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:K.min.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:K.max.toFixed(3)})]},O))})]})]}),p.items&&p.items.length>0&&f.jsxs("div",{children:[f.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Items (",p.items.length,")"]}),f.jsx("div",{className:"space-y-2",children:p.items.map((O,K)=>f.jsxs("details",{className:"border border-[hsl(var(--border))] rounded-md",children:[f.jsxs("summary",{className:"flex items-center justify-between px-3 py-2 text-xs cursor-pointer hover:bg-[hsl(var(--accent))]",children:[f.jsxs("span",{className:"font-mono",children:["Item #",K+1,O.error&&f.jsx("span",{className:"ml-2 text-red-600 dark:text-red-400",children:"(error)"})]}),f.jsx("div",{className:"flex items-center gap-2",children:Object.entries(O.scores).map(([V,$])=>f.jsxs("span",{className:`px-1.5 py-0.5 rounded font-mono ${$>=.8?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":$>=.5?"bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300":"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300"}`,children:[V,": ",$.toFixed(2)]},V))})]}),f.jsxs("div",{className:"px-3 py-2 border-t border-[hsl(var(--border))] space-y-2 text-xs",children:[f.jsxs("div",{children:[f.jsx("span",{className:"font-medium",children:"Input:"}),f.jsx(kt,{data:O.input,collapsed:!0})]}),f.jsxs("div",{children:[f.jsx("span",{className:"font-medium",children:"Output:"}),f.jsx(kt,{data:O.output,collapsed:!0})]}),O.error&&f.jsxs("div",{children:[f.jsx("span",{className:"font-medium text-red-600 dark:text-red-400",children:"Error:"}),f.jsx("span",{className:"ml-1",children:O.error})]})]})]},K))})]})]}):f.jsx(Vt,{icon:f.jsx(gv,{size:32}),title:"No results",description:"Select an eval and run it to see results."})]})]}),u==="history"&&f.jsx("div",{children:y.length===0?f.jsx(Vt,{title:"No eval history",description:"Run evaluations to build history."}):f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Eval"}),f.jsx("th",{className:"text-left py-2 font-medium",children:"Timestamp"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Items"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Failures"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"})]})}),f.jsx("tbody",{children:y.map(O=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))] cursor-pointer hover:bg-[hsl(var(--accent))]",onClick:()=>{v(O.data),i("run")},children:[f.jsx("td",{className:"py-2 font-mono",children:O.eval}),f.jsx("td",{className:"py-2",children:new Date(O.timestamp).toLocaleString()}),f.jsx("td",{className:"py-2 text-right",children:O.data.summary.count}),f.jsx("td",{className:"py-2 text-right",children:O.data.summary.failures>0?f.jsx("span",{className:"text-red-600 dark:text-red-400",children:O.data.summary.failures}):0}),f.jsx("td",{className:"py-2 text-right font-mono",children:O.data.totalCost>0?`$${O.data.totalCost.toFixed(4)}`:"-"})]},O.id))})]})}),u==="compare"&&f.jsx("div",{className:"space-y-4",children:y.length<2?f.jsx(Vt,{title:"Need at least 2 eval runs",description:"Run evaluations to compare results."}):f.jsxs(f.Fragment,{children:[f.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Comparing most recent run against previous run."}),f.jsx("button",{onClick:U,className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90",children:"Compare"}),z&&f.jsxs("div",{className:"space-y-4",children:[z.summary&&f.jsx("p",{className:"text-sm",children:z.summary}),z.scorers&&Object.keys(z.scorers).length>0&&f.jsxs("div",{children:[f.jsx("h3",{className:"text-sm font-medium mb-2",children:"Scorer Comparison"}),f.jsxs("table",{className:"w-full text-xs",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("th",{className:"text-left py-2 font-medium",children:"Scorer"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Baseline"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Candidate"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"Delta"}),f.jsx("th",{className:"text-right py-2 font-medium",children:"%"})]})}),f.jsx("tbody",{children:Object.entries(z.scorers).map(([O,K])=>f.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[f.jsx("td",{className:"py-2 font-mono",children:O}),f.jsx("td",{className:"py-2 text-right font-mono",children:K.baselineMean.toFixed(3)}),f.jsx("td",{className:"py-2 text-right font-mono",children:K.candidateMean.toFixed(3)}),f.jsxs("td",{className:`py-2 text-right font-mono ${K.delta>0?"text-green-600 dark:text-green-400":K.delta<0?"text-red-600 dark:text-red-400":""}`,children:[K.delta>0?"+":"",K.delta.toFixed(3)]}),f.jsxs("td",{className:`py-2 text-right font-mono ${K.deltaPercent>0?"text-green-600 dark:text-green-400":K.deltaPercent<0?"text-red-600 dark:text-red-400":""}`,children:[K.deltaPercent>0?"+":"",K.deltaPercent.toFixed(1),"%"]})]},O))})]})]}),z.regressions&&z.regressions.length>0&&f.jsxs("div",{children:[f.jsxs("h3",{className:"text-sm font-medium mb-2 text-red-600 dark:text-red-400",children:["Regressions (",z.regressions.length,")"]}),f.jsx("div",{className:"space-y-1",children:z.regressions.map((O,K)=>f.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 text-xs border border-[hsl(var(--border))] rounded",children:[f.jsx("span",{className:"font-mono",children:O.scorer}),f.jsxs("span",{className:"font-mono text-red-600 dark:text-red-400",children:[O.baseline.toFixed(2)," → ",O.candidate.toFixed(2)," (",O.delta.toFixed(2),")"]})]},K))})]}),z.improvements&&z.improvements.length>0&&f.jsxs("div",{children:[f.jsxs("h3",{className:"text-sm font-medium mb-2 text-green-600 dark:text-green-400",children:["Improvements (",z.improvements.length,")"]}),f.jsx("div",{className:"space-y-1",children:z.improvements.map((O,K)=>f.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 text-xs border border-[hsl(var(--border))] rounded",children:[f.jsx("span",{className:"font-mono",children:O.scorer}),f.jsxs("span",{className:"font-mono text-green-600 dark:text-green-400",children:[O.baseline.toFixed(2)," → ",O.candidate.toFixed(2)," (+",O.delta.toFixed(2),")"]})]},K))})]})]})]})})]})}function M1(){return f.jsx(hx,{basename:window.__AXL_STUDIO_BASE__||"/",children:f.jsxs("div",{className:"flex h-screen overflow-hidden",children:[f.jsx(kx,{}),f.jsx("div",{className:"flex-1 overflow-hidden",children:f.jsxs(Xb,{children:[f.jsx(il,{path:"/playground",element:f.jsx(b1,{})}),f.jsx(il,{path:"/workflows",element:f.jsx(x1,{})}),f.jsx(il,{path:"/traces",element:f.jsx(j1,{})}),f.jsx(il,{path:"/costs",element:f.jsx(T1,{})}),f.jsx(il,{path:"/memory",element:f.jsx(C1,{})}),f.jsx(il,{path:"/sessions",element:f.jsx(O1,{})}),f.jsx(il,{path:"/tools",element:f.jsx(R1,{})}),f.jsx(il,{path:"/evals",element:f.jsx(A1,{})}),f.jsx(il,{path:"*",element:f.jsx(Yb,{to:"/playground",replace:!0})})]})})]})})}rg.createRoot(document.getElementById("root")).render(f.jsx(E.StrictMode,{children:f.jsx(Dg,{client:Kg,children:f.jsx(M1,{})})}));
|