@getaegis/cli 0.9.5 → 0.9.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.
@@ -6,7 +6,7 @@ var hm=c=>{throw TypeError(c)};var zf=(c,i,f)=>i.has(c)||hm("Cannot "+f);var p=(
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 mm;function Yv(){if(mm)return Du;mm=1;var c=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function f(r,h,y){var T=null;if(y!==void 0&&(T=""+y),h.key!==void 0&&(T=""+h.key),"key"in h){y={};for(var j in h)j!=="key"&&(y[j]=h[j])}else y=h;return h=y.ref,{$$typeof:c,type:r,key:T,ref:h!==void 0?h:null,props:y}}return Du.Fragment=i,Du.jsx=f,Du.jsxs=f,Du}var ym;function Xv(){return ym||(ym=1,Df.exports=Yv()),Df.exports}var d=Xv(),Cf={exports:{}},tt={};/**
9
+ */var mm;function Yv(){if(mm)return Du;mm=1;var c=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function f(r,h,y){var T=null;if(y!==void 0&&(T=""+y),h.key!==void 0&&(T=""+h.key),"key"in h){y={};for(var O in h)O!=="key"&&(y[O]=h[O])}else y=h;return h=y.ref,{$$typeof:c,type:r,key:T,ref:h!==void 0?h:null,props:y}}return Du.Fragment=i,Du.jsx=f,Du.jsxs=f,Du}var ym;function Xv(){return ym||(ym=1,Df.exports=Yv()),Df.exports}var d=Xv(),Cf={exports:{}},tt={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@ var hm=c=>{throw TypeError(c)};var zf=(c,i,f)=>i.has(c)||hm("Cannot "+f);var p=(
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 vm;function Zv(){if(vm)return tt;vm=1;var c=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),T=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),X=Symbol.iterator;function V(g){return g===null||typeof g!="object"?null:(g=X&&g[X]||g["@@iterator"],typeof g=="function"?g:null)}var at={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,I={};function U(g,M,w){this.props=g,this.context=M,this.refs=I,this.updater=w||at}U.prototype.isReactComponent={},U.prototype.setState=function(g,M){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,M,"setState")},U.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function $(){}$.prototype=U.prototype;function K(g,M,w){this.props=g,this.context=M,this.refs=I,this.updater=w||at}var Q=K.prototype=new $;Q.constructor=K,F(Q,U.prototype),Q.isPureReactComponent=!0;var pt=Array.isArray;function St(){}var P={H:null,A:null,T:null,S:null},nt=Object.prototype.hasOwnProperty;function _t(g,M,w){var G=w.ref;return{$$typeof:c,type:g,key:M,ref:G!==void 0?G:null,props:w}}function Ut(g,M){return _t(g.type,M,g.props)}function Vt(g){return typeof g=="object"&&g!==null&&g.$$typeof===c}function Kt(g){var M={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(w){return M[w]})}var ke=/\/+/g;function fe(g,M){return typeof g=="object"&&g!==null&&g.key!=null?Kt(""+g.key):M.toString(36)}function ae(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(St,St):(g.status="pending",g.then(function(M){g.status==="pending"&&(g.status="fulfilled",g.value=M)},function(M){g.status==="pending"&&(g.status="rejected",g.reason=M)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function z(g,M,w,G,et){var it=typeof g;(it==="undefined"||it==="boolean")&&(g=null);var bt=!1;if(g===null)bt=!0;else switch(it){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(g.$$typeof){case c:case i:bt=!0;break;case H:return bt=g._init,z(bt(g._payload),M,w,G,et)}}if(bt)return et=et(g),bt=G===""?"."+fe(g,0):G,pt(et)?(w="",bt!=null&&(w=bt.replace(ke,"$&/")+"/"),z(et,M,w,"",function(Hn){return Hn})):et!=null&&(Vt(et)&&(et=Ut(et,w+(et.key==null||g&&g.key===et.key?"":(""+et.key).replace(ke,"$&/")+"/")+bt)),M.push(et)),1;bt=0;var ie=G===""?".":G+":";if(pt(g))for(var Bt=0;Bt<g.length;Bt++)G=g[Bt],it=ie+fe(G,Bt),bt+=z(G,M,w,it,et);else if(Bt=V(g),typeof Bt=="function")for(g=Bt.call(g),Bt=0;!(G=g.next()).done;)G=G.value,it=ie+fe(G,Bt++),bt+=z(G,M,w,it,et);else if(it==="object"){if(typeof g.then=="function")return z(ae(g),M,w,G,et);throw M=String(g),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return bt}function q(g,M,w){if(g==null)return g;var G=[],et=0;return z(g,G,"","",function(it){return M.call(w,it,et++)}),G}function W(g){if(g._status===-1){var M=g._result;M=M(),M.then(function(w){(g._status===0||g._status===-1)&&(g._status=1,g._result=w)},function(w){(g._status===0||g._status===-1)&&(g._status=2,g._result=w)}),g._status===-1&&(g._status=0,g._result=M)}if(g._status===1)return g._result.default;throw g._result}var Nt=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},zt={map:q,forEach:function(g,M,w){q(g,function(){M.apply(this,arguments)},w)},count:function(g){var M=0;return q(g,function(){M++}),M},toArray:function(g){return q(g,function(M){return M})||[]},only:function(g){if(!Vt(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return tt.Activity=R,tt.Children=zt,tt.Component=U,tt.Fragment=f,tt.Profiler=h,tt.PureComponent=K,tt.StrictMode=r,tt.Suspense=A,tt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,tt.__COMPILER_RUNTIME={__proto__:null,c:function(g){return P.H.useMemoCache(g)}},tt.cache=function(g){return function(){return g.apply(null,arguments)}},tt.cacheSignal=function(){return null},tt.cloneElement=function(g,M,w){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var G=F({},g.props),et=g.key;if(M!=null)for(it in M.key!==void 0&&(et=""+M.key),M)!nt.call(M,it)||it==="key"||it==="__self"||it==="__source"||it==="ref"&&M.ref===void 0||(G[it]=M[it]);var it=arguments.length-2;if(it===1)G.children=w;else if(1<it){for(var bt=Array(it),ie=0;ie<it;ie++)bt[ie]=arguments[ie+2];G.children=bt}return _t(g.type,et,G)},tt.createContext=function(g){return g={$$typeof:T,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:y,_context:g},g},tt.createElement=function(g,M,w){var G,et={},it=null;if(M!=null)for(G in M.key!==void 0&&(it=""+M.key),M)nt.call(M,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(et[G]=M[G]);var bt=arguments.length-2;if(bt===1)et.children=w;else if(1<bt){for(var ie=Array(bt),Bt=0;Bt<bt;Bt++)ie[Bt]=arguments[Bt+2];et.children=ie}if(g&&g.defaultProps)for(G in bt=g.defaultProps,bt)et[G]===void 0&&(et[G]=bt[G]);return _t(g,it,et)},tt.createRef=function(){return{current:null}},tt.forwardRef=function(g){return{$$typeof:j,render:g}},tt.isValidElement=Vt,tt.lazy=function(g){return{$$typeof:H,_payload:{_status:-1,_result:g},_init:W}},tt.memo=function(g,M){return{$$typeof:x,type:g,compare:M===void 0?null:M}},tt.startTransition=function(g){var M=P.T,w={};P.T=w;try{var G=g(),et=P.S;et!==null&&et(w,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(St,Nt)}catch(it){Nt(it)}finally{M!==null&&w.types!==null&&(M.types=w.types),P.T=M}},tt.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},tt.use=function(g){return P.H.use(g)},tt.useActionState=function(g,M,w){return P.H.useActionState(g,M,w)},tt.useCallback=function(g,M){return P.H.useCallback(g,M)},tt.useContext=function(g){return P.H.useContext(g)},tt.useDebugValue=function(){},tt.useDeferredValue=function(g,M){return P.H.useDeferredValue(g,M)},tt.useEffect=function(g,M){return P.H.useEffect(g,M)},tt.useEffectEvent=function(g){return P.H.useEffectEvent(g)},tt.useId=function(){return P.H.useId()},tt.useImperativeHandle=function(g,M,w){return P.H.useImperativeHandle(g,M,w)},tt.useInsertionEffect=function(g,M){return P.H.useInsertionEffect(g,M)},tt.useLayoutEffect=function(g,M){return P.H.useLayoutEffect(g,M)},tt.useMemo=function(g,M){return P.H.useMemo(g,M)},tt.useOptimistic=function(g,M){return P.H.useOptimistic(g,M)},tt.useReducer=function(g,M,w){return P.H.useReducer(g,M,w)},tt.useRef=function(g){return P.H.useRef(g)},tt.useState=function(g){return P.H.useState(g)},tt.useSyncExternalStore=function(g,M,w){return P.H.useSyncExternalStore(g,M,w)},tt.useTransition=function(){return P.H.useTransition()},tt.version="19.2.4",tt}var pm;function Pf(){return pm||(pm=1,Cf.exports=Zv()),Cf.exports}var ft=Pf();const $m=Gv(ft);var Mf={exports:{}},Cu={},Rf={exports:{}},Uf={};/**
17
+ */var vm;function Zv(){if(vm)return tt;vm=1;var c=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),T=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),X=Symbol.iterator;function V(g){return g===null||typeof g!="object"?null:(g=X&&g[X]||g["@@iterator"],typeof g=="function"?g:null)}var at={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,I={};function U(g,M,w){this.props=g,this.context=M,this.refs=I,this.updater=w||at}U.prototype.isReactComponent={},U.prototype.setState=function(g,M){if(typeof g!="object"&&typeof g!="function"&&g!=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,g,M,"setState")},U.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function $(){}$.prototype=U.prototype;function K(g,M,w){this.props=g,this.context=M,this.refs=I,this.updater=w||at}var Q=K.prototype=new $;Q.constructor=K,F(Q,U.prototype),Q.isPureReactComponent=!0;var pt=Array.isArray;function St(){}var P={H:null,A:null,T:null,S:null},nt=Object.prototype.hasOwnProperty;function _t(g,M,w){var G=w.ref;return{$$typeof:c,type:g,key:M,ref:G!==void 0?G:null,props:w}}function Ut(g,M){return _t(g.type,M,g.props)}function Vt(g){return typeof g=="object"&&g!==null&&g.$$typeof===c}function Kt(g){var M={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(w){return M[w]})}var ke=/\/+/g;function fe(g,M){return typeof g=="object"&&g!==null&&g.key!=null?Kt(""+g.key):M.toString(36)}function ae(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(St,St):(g.status="pending",g.then(function(M){g.status==="pending"&&(g.status="fulfilled",g.value=M)},function(M){g.status==="pending"&&(g.status="rejected",g.reason=M)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function z(g,M,w,G,et){var it=typeof g;(it==="undefined"||it==="boolean")&&(g=null);var bt=!1;if(g===null)bt=!0;else switch(it){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(g.$$typeof){case c:case i:bt=!0;break;case H:return bt=g._init,z(bt(g._payload),M,w,G,et)}}if(bt)return et=et(g),bt=G===""?"."+fe(g,0):G,pt(et)?(w="",bt!=null&&(w=bt.replace(ke,"$&/")+"/"),z(et,M,w,"",function(Hn){return Hn})):et!=null&&(Vt(et)&&(et=Ut(et,w+(et.key==null||g&&g.key===et.key?"":(""+et.key).replace(ke,"$&/")+"/")+bt)),M.push(et)),1;bt=0;var ie=G===""?".":G+":";if(pt(g))for(var Bt=0;Bt<g.length;Bt++)G=g[Bt],it=ie+fe(G,Bt),bt+=z(G,M,w,it,et);else if(Bt=V(g),typeof Bt=="function")for(g=Bt.call(g),Bt=0;!(G=g.next()).done;)G=G.value,it=ie+fe(G,Bt++),bt+=z(G,M,w,it,et);else if(it==="object"){if(typeof g.then=="function")return z(ae(g),M,w,G,et);throw M=String(g),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return bt}function q(g,M,w){if(g==null)return g;var G=[],et=0;return z(g,G,"","",function(it){return M.call(w,it,et++)}),G}function W(g){if(g._status===-1){var M=g._result;M=M(),M.then(function(w){(g._status===0||g._status===-1)&&(g._status=1,g._result=w)},function(w){(g._status===0||g._status===-1)&&(g._status=2,g._result=w)}),g._status===-1&&(g._status=0,g._result=M)}if(g._status===1)return g._result.default;throw g._result}var At=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},zt={map:q,forEach:function(g,M,w){q(g,function(){M.apply(this,arguments)},w)},count:function(g){var M=0;return q(g,function(){M++}),M},toArray:function(g){return q(g,function(M){return M})||[]},only:function(g){if(!Vt(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return tt.Activity=R,tt.Children=zt,tt.Component=U,tt.Fragment=f,tt.Profiler=h,tt.PureComponent=K,tt.StrictMode=r,tt.Suspense=N,tt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,tt.__COMPILER_RUNTIME={__proto__:null,c:function(g){return P.H.useMemoCache(g)}},tt.cache=function(g){return function(){return g.apply(null,arguments)}},tt.cacheSignal=function(){return null},tt.cloneElement=function(g,M,w){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var G=F({},g.props),et=g.key;if(M!=null)for(it in M.key!==void 0&&(et=""+M.key),M)!nt.call(M,it)||it==="key"||it==="__self"||it==="__source"||it==="ref"&&M.ref===void 0||(G[it]=M[it]);var it=arguments.length-2;if(it===1)G.children=w;else if(1<it){for(var bt=Array(it),ie=0;ie<it;ie++)bt[ie]=arguments[ie+2];G.children=bt}return _t(g.type,et,G)},tt.createContext=function(g){return g={$$typeof:T,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:y,_context:g},g},tt.createElement=function(g,M,w){var G,et={},it=null;if(M!=null)for(G in M.key!==void 0&&(it=""+M.key),M)nt.call(M,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(et[G]=M[G]);var bt=arguments.length-2;if(bt===1)et.children=w;else if(1<bt){for(var ie=Array(bt),Bt=0;Bt<bt;Bt++)ie[Bt]=arguments[Bt+2];et.children=ie}if(g&&g.defaultProps)for(G in bt=g.defaultProps,bt)et[G]===void 0&&(et[G]=bt[G]);return _t(g,it,et)},tt.createRef=function(){return{current:null}},tt.forwardRef=function(g){return{$$typeof:O,render:g}},tt.isValidElement=Vt,tt.lazy=function(g){return{$$typeof:H,_payload:{_status:-1,_result:g},_init:W}},tt.memo=function(g,M){return{$$typeof:x,type:g,compare:M===void 0?null:M}},tt.startTransition=function(g){var M=P.T,w={};P.T=w;try{var G=g(),et=P.S;et!==null&&et(w,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(St,At)}catch(it){At(it)}finally{M!==null&&w.types!==null&&(M.types=w.types),P.T=M}},tt.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},tt.use=function(g){return P.H.use(g)},tt.useActionState=function(g,M,w){return P.H.useActionState(g,M,w)},tt.useCallback=function(g,M){return P.H.useCallback(g,M)},tt.useContext=function(g){return P.H.useContext(g)},tt.useDebugValue=function(){},tt.useDeferredValue=function(g,M){return P.H.useDeferredValue(g,M)},tt.useEffect=function(g,M){return P.H.useEffect(g,M)},tt.useEffectEvent=function(g){return P.H.useEffectEvent(g)},tt.useId=function(){return P.H.useId()},tt.useImperativeHandle=function(g,M,w){return P.H.useImperativeHandle(g,M,w)},tt.useInsertionEffect=function(g,M){return P.H.useInsertionEffect(g,M)},tt.useLayoutEffect=function(g,M){return P.H.useLayoutEffect(g,M)},tt.useMemo=function(g,M){return P.H.useMemo(g,M)},tt.useOptimistic=function(g,M){return P.H.useOptimistic(g,M)},tt.useReducer=function(g,M,w){return P.H.useReducer(g,M,w)},tt.useRef=function(g){return P.H.useRef(g)},tt.useState=function(g){return P.H.useState(g)},tt.useSyncExternalStore=function(g,M,w){return P.H.useSyncExternalStore(g,M,w)},tt.useTransition=function(){return P.H.useTransition()},tt.version="19.2.4",tt}var pm;function Pf(){return pm||(pm=1,Cf.exports=Zv()),Cf.exports}var ft=Pf();const $m=Gv(ft);var Mf={exports:{}},Cu={},Rf={exports:{}},Uf={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@ var hm=c=>{throw TypeError(c)};var zf=(c,i,f)=>i.has(c)||hm("Cannot "+f);var p=(
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 gm;function Vv(){return gm||(gm=1,(function(c){function i(z,q){var W=z.length;z.push(q);t:for(;0<W;){var Nt=W-1>>>1,zt=z[Nt];if(0<h(zt,q))z[Nt]=q,z[W]=zt,W=Nt;else break t}}function f(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var q=z[0],W=z.pop();if(W!==q){z[0]=W;t:for(var Nt=0,zt=z.length,g=zt>>>1;Nt<g;){var M=2*(Nt+1)-1,w=z[M],G=M+1,et=z[G];if(0>h(w,W))G<zt&&0>h(et,w)?(z[Nt]=et,z[G]=W,Nt=G):(z[Nt]=w,z[M]=W,Nt=M);else if(G<zt&&0>h(et,W))z[Nt]=et,z[G]=W,Nt=G;else break t}}return q}function h(z,q){var W=z.sortIndex-q.sortIndex;return W!==0?W:z.id-q.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;c.unstable_now=function(){return y.now()}}else{var T=Date,j=T.now();c.unstable_now=function(){return T.now()-j}}var A=[],x=[],H=1,R=null,X=3,V=!1,at=!1,F=!1,I=!1,U=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function Q(z){for(var q=f(x);q!==null;){if(q.callback===null)r(x);else if(q.startTime<=z)r(x),q.sortIndex=q.expirationTime,i(A,q);else break;q=f(x)}}function pt(z){if(F=!1,Q(z),!at)if(f(A)!==null)at=!0,St||(St=!0,Kt());else{var q=f(x);q!==null&&ae(pt,q.startTime-z)}}var St=!1,P=-1,nt=5,_t=-1;function Ut(){return I?!0:!(c.unstable_now()-_t<nt)}function Vt(){if(I=!1,St){var z=c.unstable_now();_t=z;var q=!0;try{t:{at=!1,F&&(F=!1,$(P),P=-1),V=!0;var W=X;try{e:{for(Q(z),R=f(A);R!==null&&!(R.expirationTime>z&&Ut());){var Nt=R.callback;if(typeof Nt=="function"){R.callback=null,X=R.priorityLevel;var zt=Nt(R.expirationTime<=z);if(z=c.unstable_now(),typeof zt=="function"){R.callback=zt,Q(z),q=!0;break e}R===f(A)&&r(A),Q(z)}else r(A);R=f(A)}if(R!==null)q=!0;else{var g=f(x);g!==null&&ae(pt,g.startTime-z),q=!1}}break t}finally{R=null,X=W,V=!1}q=void 0}}finally{q?Kt():St=!1}}}var Kt;if(typeof K=="function")Kt=function(){K(Vt)};else if(typeof MessageChannel<"u"){var ke=new MessageChannel,fe=ke.port2;ke.port1.onmessage=Vt,Kt=function(){fe.postMessage(null)}}else Kt=function(){U(Vt,0)};function ae(z,q){P=U(function(){z(c.unstable_now())},q)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(z){z.callback=null},c.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):nt=0<z?Math.floor(1e3/z):5},c.unstable_getCurrentPriorityLevel=function(){return X},c.unstable_next=function(z){switch(X){case 1:case 2:case 3:var q=3;break;default:q=X}var W=X;X=q;try{return z()}finally{X=W}},c.unstable_requestPaint=function(){I=!0},c.unstable_runWithPriority=function(z,q){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=X;X=z;try{return q()}finally{X=W}},c.unstable_scheduleCallback=function(z,q,W){var Nt=c.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?Nt+W:Nt):W=Nt,z){case 1:var zt=-1;break;case 2:zt=250;break;case 5:zt=1073741823;break;case 4:zt=1e4;break;default:zt=5e3}return zt=W+zt,z={id:H++,callback:q,priorityLevel:z,startTime:W,expirationTime:zt,sortIndex:-1},W>Nt?(z.sortIndex=W,i(x,z),f(A)===null&&z===f(x)&&(F?($(P),P=-1):F=!0,ae(pt,W-Nt))):(z.sortIndex=zt,i(A,z),at||V||(at=!0,St||(St=!0,Kt()))),z},c.unstable_shouldYield=Ut,c.unstable_wrapCallback=function(z){var q=X;return function(){var W=X;X=q;try{return z.apply(this,arguments)}finally{X=W}}}})(Uf)),Uf}var bm;function Kv(){return bm||(bm=1,Rf.exports=Vv()),Rf.exports}var qf={exports:{}},ne={};/**
25
+ */var gm;function Vv(){return gm||(gm=1,(function(c){function i(z,q){var W=z.length;z.push(q);t:for(;0<W;){var At=W-1>>>1,zt=z[At];if(0<h(zt,q))z[At]=q,z[W]=zt,W=At;else break t}}function f(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var q=z[0],W=z.pop();if(W!==q){z[0]=W;t:for(var At=0,zt=z.length,g=zt>>>1;At<g;){var M=2*(At+1)-1,w=z[M],G=M+1,et=z[G];if(0>h(w,W))G<zt&&0>h(et,w)?(z[At]=et,z[G]=W,At=G):(z[At]=w,z[M]=W,At=M);else if(G<zt&&0>h(et,W))z[At]=et,z[G]=W,At=G;else break t}}return q}function h(z,q){var W=z.sortIndex-q.sortIndex;return W!==0?W:z.id-q.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;c.unstable_now=function(){return y.now()}}else{var T=Date,O=T.now();c.unstable_now=function(){return T.now()-O}}var N=[],x=[],H=1,R=null,X=3,V=!1,at=!1,F=!1,I=!1,U=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function Q(z){for(var q=f(x);q!==null;){if(q.callback===null)r(x);else if(q.startTime<=z)r(x),q.sortIndex=q.expirationTime,i(N,q);else break;q=f(x)}}function pt(z){if(F=!1,Q(z),!at)if(f(N)!==null)at=!0,St||(St=!0,Kt());else{var q=f(x);q!==null&&ae(pt,q.startTime-z)}}var St=!1,P=-1,nt=5,_t=-1;function Ut(){return I?!0:!(c.unstable_now()-_t<nt)}function Vt(){if(I=!1,St){var z=c.unstable_now();_t=z;var q=!0;try{t:{at=!1,F&&(F=!1,$(P),P=-1),V=!0;var W=X;try{e:{for(Q(z),R=f(N);R!==null&&!(R.expirationTime>z&&Ut());){var At=R.callback;if(typeof At=="function"){R.callback=null,X=R.priorityLevel;var zt=At(R.expirationTime<=z);if(z=c.unstable_now(),typeof zt=="function"){R.callback=zt,Q(z),q=!0;break e}R===f(N)&&r(N),Q(z)}else r(N);R=f(N)}if(R!==null)q=!0;else{var g=f(x);g!==null&&ae(pt,g.startTime-z),q=!1}}break t}finally{R=null,X=W,V=!1}q=void 0}}finally{q?Kt():St=!1}}}var Kt;if(typeof K=="function")Kt=function(){K(Vt)};else if(typeof MessageChannel<"u"){var ke=new MessageChannel,fe=ke.port2;ke.port1.onmessage=Vt,Kt=function(){fe.postMessage(null)}}else Kt=function(){U(Vt,0)};function ae(z,q){P=U(function(){z(c.unstable_now())},q)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(z){z.callback=null},c.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):nt=0<z?Math.floor(1e3/z):5},c.unstable_getCurrentPriorityLevel=function(){return X},c.unstable_next=function(z){switch(X){case 1:case 2:case 3:var q=3;break;default:q=X}var W=X;X=q;try{return z()}finally{X=W}},c.unstable_requestPaint=function(){I=!0},c.unstable_runWithPriority=function(z,q){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=X;X=z;try{return q()}finally{X=W}},c.unstable_scheduleCallback=function(z,q,W){var At=c.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?At+W:At):W=At,z){case 1:var zt=-1;break;case 2:zt=250;break;case 5:zt=1073741823;break;case 4:zt=1e4;break;default:zt=5e3}return zt=W+zt,z={id:H++,callback:q,priorityLevel:z,startTime:W,expirationTime:zt,sortIndex:-1},W>At?(z.sortIndex=W,i(x,z),f(N)===null&&z===f(x)&&(F?($(P),P=-1):F=!0,ae(pt,W-At))):(z.sortIndex=zt,i(N,z),at||V||(at=!0,St||(St=!0,Kt()))),z},c.unstable_shouldYield=Ut,c.unstable_wrapCallback=function(z){var q=X;return function(){var W=X;X=q;try{return z.apply(this,arguments)}finally{X=W}}}})(Uf)),Uf}var bm;function Kv(){return bm||(bm=1,Rf.exports=Vv()),Rf.exports}var qf={exports:{}},ne={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ var hm=c=>{throw TypeError(c)};var zf=(c,i,f)=>i.has(c)||hm("Cannot "+f);var p=(
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 xm;function Jv(){if(xm)return ne;xm=1;var c=Pf();function i(A){var x="https://react.dev/errors/"+A;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var H=2;H<arguments.length;H++)x+="&args[]="+encodeURIComponent(arguments[H])}return"Minified React error #"+A+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(i(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},h=Symbol.for("react.portal");function y(A,x,H){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:R==null?null:""+R,children:A,containerInfo:x,implementation:H}}var T=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(A,x){if(A==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ne.createPortal=function(A,x){var H=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(i(299));return y(A,x,null,H)},ne.flushSync=function(A){var x=T.T,H=r.p;try{if(T.T=null,r.p=2,A)return A()}finally{T.T=x,r.p=H,r.d.f()}},ne.preconnect=function(A,x){typeof A=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,r.d.C(A,x))},ne.prefetchDNS=function(A){typeof A=="string"&&r.d.D(A)},ne.preinit=function(A,x){if(typeof A=="string"&&x&&typeof x.as=="string"){var H=x.as,R=j(H,x.crossOrigin),X=typeof x.integrity=="string"?x.integrity:void 0,V=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;H==="style"?r.d.S(A,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:R,integrity:X,fetchPriority:V}):H==="script"&&r.d.X(A,{crossOrigin:R,integrity:X,fetchPriority:V,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},ne.preinitModule=function(A,x){if(typeof A=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var H=j(x.as,x.crossOrigin);r.d.M(A,{crossOrigin:H,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&r.d.M(A)},ne.preload=function(A,x){if(typeof A=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var H=x.as,R=j(H,x.crossOrigin);r.d.L(A,H,{crossOrigin:R,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},ne.preloadModule=function(A,x){if(typeof A=="string")if(x){var H=j(x.as,x.crossOrigin);r.d.m(A,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:H,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else r.d.m(A)},ne.requestFormReset=function(A){r.d.r(A)},ne.unstable_batchedUpdates=function(A,x){return A(x)},ne.useFormState=function(A,x,H){return T.H.useFormState(A,x,H)},ne.useFormStatus=function(){return T.H.useHostTransitionStatus()},ne.version="19.2.4",ne}var Sm;function kv(){if(Sm)return qf.exports;Sm=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(i){console.error(i)}}return c(),qf.exports=Jv(),qf.exports}/**
33
+ */var xm;function Jv(){if(xm)return ne;xm=1;var c=Pf();function i(N){var x="https://react.dev/errors/"+N;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var H=2;H<arguments.length;H++)x+="&args[]="+encodeURIComponent(arguments[H])}return"Minified React error #"+N+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(i(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},h=Symbol.for("react.portal");function y(N,x,H){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:R==null?null:""+R,children:N,containerInfo:x,implementation:H}}var T=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function O(N,x){if(N==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ne.createPortal=function(N,x){var H=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(i(299));return y(N,x,null,H)},ne.flushSync=function(N){var x=T.T,H=r.p;try{if(T.T=null,r.p=2,N)return N()}finally{T.T=x,r.p=H,r.d.f()}},ne.preconnect=function(N,x){typeof N=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,r.d.C(N,x))},ne.prefetchDNS=function(N){typeof N=="string"&&r.d.D(N)},ne.preinit=function(N,x){if(typeof N=="string"&&x&&typeof x.as=="string"){var H=x.as,R=O(H,x.crossOrigin),X=typeof x.integrity=="string"?x.integrity:void 0,V=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;H==="style"?r.d.S(N,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:R,integrity:X,fetchPriority:V}):H==="script"&&r.d.X(N,{crossOrigin:R,integrity:X,fetchPriority:V,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},ne.preinitModule=function(N,x){if(typeof N=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var H=O(x.as,x.crossOrigin);r.d.M(N,{crossOrigin:H,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&r.d.M(N)},ne.preload=function(N,x){if(typeof N=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var H=x.as,R=O(H,x.crossOrigin);r.d.L(N,H,{crossOrigin:R,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},ne.preloadModule=function(N,x){if(typeof N=="string")if(x){var H=O(x.as,x.crossOrigin);r.d.m(N,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:H,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else r.d.m(N)},ne.requestFormReset=function(N){r.d.r(N)},ne.unstable_batchedUpdates=function(N,x){return N(x)},ne.useFormState=function(N,x,H){return T.H.useFormState(N,x,H)},ne.useFormStatus=function(){return T.H.useHostTransitionStatus()},ne.version="19.2.4",ne}var Sm;function kv(){if(Sm)return qf.exports;Sm=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(i){console.error(i)}}return c(),qf.exports=Jv(),qf.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,95 +38,95 @@ var hm=c=>{throw TypeError(c)};var zf=(c,i,f)=>i.has(c)||hm("Cannot "+f);var p=(
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 _m;function Fv(){if(_m)return Cu;_m=1;var c=Kv(),i=Pf(),f=kv();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function y(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function T(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function j(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function A(t){if(y(t)!==t)throw Error(r(188))}function x(t){var e=t.alternate;if(!e){if(e=y(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return A(n),t;if(u===a)return A(n),e;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var s=!1,o=n.child;o;){if(o===l){s=!0,l=n,a=u;break}if(o===a){s=!0,a=n,l=u;break}o=o.sibling}if(!s){for(o=u.child;o;){if(o===l){s=!0,l=u,a=n;break}if(o===a){s=!0,a=u,l=n;break}o=o.sibling}if(!s)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function H(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=H(t),e!==null)return e;t=t.sibling}return null}var R=Object.assign,X=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),at=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),K=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),pt=Symbol.for("react.suspense"),St=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),_t=Symbol.for("react.activity"),Ut=Symbol.for("react.memo_cache_sentinel"),Vt=Symbol.iterator;function Kt(t){return t===null||typeof t!="object"?null:(t=Vt&&t[Vt]||t["@@iterator"],typeof t=="function"?t:null)}var ke=Symbol.for("react.client.reference");function fe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ke?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case F:return"Fragment";case U:return"Profiler";case I:return"StrictMode";case pt:return"Suspense";case St:return"SuspenseList";case _t:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case at:return"Portal";case K:return t.displayName||"Context";case $:return(t._context.displayName||"Context")+".Consumer";case Q:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case P:return e=t.displayName||null,e!==null?e:fe(t.type)||"Memo";case nt:e=t._payload,t=t._init;try{return fe(t(e))}catch{}}return null}var ae=Array.isArray,z=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},Nt=[],zt=-1;function g(t){return{current:t}}function M(t){0>zt||(t.current=Nt[zt],Nt[zt]=null,zt--)}function w(t,e){zt++,Nt[zt]=t.current,t.current=e}var G=g(null),et=g(null),it=g(null),bt=g(null);function ie(t,e){switch(w(it,e),w(et,t),w(G,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?wh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=wh(e),t=Hh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}M(G),w(G,t)}function Bt(){M(G),M(et),M(it)}function Hn(t){t.memoizedState!==null&&w(bt,t);var e=G.current,l=Hh(e,t.type);e!==l&&(w(et,t),w(G,l))}function Yu(t){et.current===t&&(M(G),M(et)),bt.current===t&&(M(bt),Au._currentValue=W)}var rc,or;function na(t){if(rc===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);rc=e&&e[1]||"",or=-1<l.stack.indexOf(`
41
+ */var _m;function Fv(){if(_m)return Cu;_m=1;var c=Kv(),i=Pf(),f=kv();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function y(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function T(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function O(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function N(t){if(y(t)!==t)throw Error(r(188))}function x(t){var e=t.alternate;if(!e){if(e=y(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return N(n),t;if(u===a)return N(n),e;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var s=!1,o=n.child;o;){if(o===l){s=!0,l=n,a=u;break}if(o===a){s=!0,a=n,l=u;break}o=o.sibling}if(!s){for(o=u.child;o;){if(o===l){s=!0,l=u,a=n;break}if(o===a){s=!0,a=u,l=n;break}o=o.sibling}if(!s)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function H(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=H(t),e!==null)return e;t=t.sibling}return null}var R=Object.assign,X=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),at=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),K=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),pt=Symbol.for("react.suspense"),St=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),_t=Symbol.for("react.activity"),Ut=Symbol.for("react.memo_cache_sentinel"),Vt=Symbol.iterator;function Kt(t){return t===null||typeof t!="object"?null:(t=Vt&&t[Vt]||t["@@iterator"],typeof t=="function"?t:null)}var ke=Symbol.for("react.client.reference");function fe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ke?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case F:return"Fragment";case U:return"Profiler";case I:return"StrictMode";case pt:return"Suspense";case St:return"SuspenseList";case _t:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case at:return"Portal";case K:return t.displayName||"Context";case $:return(t._context.displayName||"Context")+".Consumer";case Q:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case P:return e=t.displayName||null,e!==null?e:fe(t.type)||"Memo";case nt:e=t._payload,t=t._init;try{return fe(t(e))}catch{}}return null}var ae=Array.isArray,z=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},At=[],zt=-1;function g(t){return{current:t}}function M(t){0>zt||(t.current=At[zt],At[zt]=null,zt--)}function w(t,e){zt++,At[zt]=t.current,t.current=e}var G=g(null),et=g(null),it=g(null),bt=g(null);function ie(t,e){switch(w(it,e),w(et,t),w(G,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?wh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=wh(e),t=Hh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}M(G),w(G,t)}function Bt(){M(G),M(et),M(it)}function Hn(t){t.memoizedState!==null&&w(bt,t);var e=G.current,l=Hh(e,t.type);e!==l&&(w(et,t),w(G,l))}function Yu(t){et.current===t&&(M(G),M(et)),bt.current===t&&(M(bt),Nu._currentValue=W)}var rc,or;function na(t){if(rc===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);rc=e&&e[1]||"",or=-1<l.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+rc+t+or}var oc=!1;function dc(t,e){if(!t||oc)return"";oc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(N){var E=N}Reflect.construct(t,[],C)}else{try{C.call()}catch(N){E=N}t.call(C.prototype)}}else{try{throw Error()}catch(N){E=N}(C=t())&&typeof C.catch=="function"&&C.catch(function(){})}}catch(N){if(N&&E&&typeof N.stack=="string")return[N.stack,E.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 u=a.DetermineComponentFrameRoot(),s=u[0],o=u[1];if(s&&o){var m=s.split(`
43
+ `+rc+t+or}var oc=!1;function dc(t,e){if(!t||oc)return"";oc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(A){var E=A}Reflect.construct(t,[],C)}else{try{C.call()}catch(A){E=A}t.call(C.prototype)}}else{try{throw Error()}catch(A){E=A}(C=t())&&typeof C.catch=="function"&&C.catch(function(){})}}catch(A){if(A&&E&&typeof A.stack=="string")return[A.stack,E.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 u=a.DetermineComponentFrameRoot(),s=u[0],o=u[1];if(s&&o){var m=s.split(`
44
44
  `),_=o.split(`
45
- `);for(n=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;n<_.length&&!_[n].includes("DetermineComponentFrameRoot");)n++;if(a===m.length||n===_.length)for(a=m.length-1,n=_.length-1;1<=a&&0<=n&&m[a]!==_[n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==_[n]){if(a!==1||n!==1)do if(a--,n--,0>n||m[a]!==_[n]){var O=`
46
- `+m[a].replace(" at new "," at ");return t.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",t.displayName)),O}while(1<=a&&0<=n);break}}}finally{oc=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?na(l):""}function gy(t,e){switch(t.tag){case 26:case 27:case 5:return na(t.type);case 16:return na("Lazy");case 13:return t.child!==e&&e!==null?na("Suspense Fallback"):na("Suspense");case 19:return na("SuspenseList");case 0:case 15:return dc(t.type,!1);case 11:return dc(t.type.render,!1);case 1:return dc(t.type,!0);case 31:return na("Activity");default:return""}}function dr(t){try{var e="",l=null;do e+=gy(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
45
+ `);for(n=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;n<_.length&&!_[n].includes("DetermineComponentFrameRoot");)n++;if(a===m.length||n===_.length)for(a=m.length-1,n=_.length-1;1<=a&&0<=n&&m[a]!==_[n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==_[n]){if(a!==1||n!==1)do if(a--,n--,0>n||m[a]!==_[n]){var j=`
46
+ `+m[a].replace(" at new "," at ");return t.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",t.displayName)),j}while(1<=a&&0<=n);break}}}finally{oc=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?na(l):""}function gy(t,e){switch(t.tag){case 26:case 27:case 5:return na(t.type);case 16:return na("Lazy");case 13:return t.child!==e&&e!==null?na("Suspense Fallback"):na("Suspense");case 19:return na("SuspenseList");case 0:case 15:return dc(t.type,!1);case 11:return dc(t.type.render,!1);case 1:return dc(t.type,!0);case 31:return na("Activity");default:return""}}function dr(t){try{var e="",l=null;do e+=gy(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
47
47
  Error generating stack: `+a.message+`
48
- `+a.stack}}var hc=Object.prototype.hasOwnProperty,mc=c.unstable_scheduleCallback,yc=c.unstable_cancelCallback,by=c.unstable_shouldYield,xy=c.unstable_requestPaint,be=c.unstable_now,Sy=c.unstable_getCurrentPriorityLevel,hr=c.unstable_ImmediatePriority,mr=c.unstable_UserBlockingPriority,Xu=c.unstable_NormalPriority,_y=c.unstable_LowPriority,yr=c.unstable_IdlePriority,Ey=c.log,Ty=c.unstable_setDisableYieldValue,Bn=null,xe=null;function El(t){if(typeof Ey=="function"&&Ty(t),xe&&typeof xe.setStrictMode=="function")try{xe.setStrictMode(Bn,t)}catch{}}var Se=Math.clz32?Math.clz32:jy,Ny=Math.log,Ay=Math.LN2;function jy(t){return t>>>=0,t===0?32:31-(Ny(t)/Ay|0)|0}var Zu=256,Vu=262144,Ku=4194304;function ua(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Ju(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,s=t.pingedLanes;t=t.warmLanes;var o=a&134217727;return o!==0?(a=o&~u,a!==0?n=ua(a):(s&=o,s!==0?n=ua(s):l||(l=o&~t,l!==0&&(n=ua(l))))):(o=a&~u,o!==0?n=ua(o):s!==0?n=ua(s):l||(l=a&~t,l!==0&&(n=ua(l)))),n===0?0:e!==0&&e!==n&&(e&u)===0&&(u=n&-n,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:n}function Qn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Oy(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vr(){var t=Ku;return Ku<<=1,(Ku&62914560)===0&&(Ku=4194304),t}function vc(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Ln(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function zy(t,e,l,a,n,u){var s=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var o=t.entanglements,m=t.expirationTimes,_=t.hiddenUpdates;for(l=s&~l;0<l;){var O=31-Se(l),C=1<<O;o[O]=0,m[O]=-1;var E=_[O];if(E!==null)for(_[O]=null,O=0;O<E.length;O++){var N=E[O];N!==null&&(N.lane&=-536870913)}l&=~C}a!==0&&pr(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(s&~e))}function pr(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Se(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function gr(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-Se(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function br(t,e){var l=e&-e;return l=(l&42)!==0?1:pc(l),(l&(t.suspendedLanes|e))!==0?0:l}function pc(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function gc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function xr(){var t=q.p;return t!==0?t:(t=window.event,t===void 0?32:im(t.type))}function Sr(t,e){var l=q.p;try{return q.p=t,e()}finally{q.p=l}}var Tl=Math.random().toString(36).slice(2),$t="__reactFiber$"+Tl,re="__reactProps$"+Tl,qa="__reactContainer$"+Tl,bc="__reactEvents$"+Tl,Dy="__reactListeners$"+Tl,Cy="__reactHandles$"+Tl,_r="__reactResources$"+Tl,Gn="__reactMarker$"+Tl;function xc(t){delete t[$t],delete t[re],delete t[bc],delete t[Dy],delete t[Cy]}function wa(t){var e=t[$t];if(e)return e;for(var l=t.parentNode;l;){if(e=l[qa]||l[$t]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Zh(t);t!==null;){if(l=t[$t])return l;t=Zh(t)}return e}t=l,l=t.parentNode}return null}function Ha(t){if(t=t[$t]||t[qa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Yn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Ba(t){var e=t[_r];return e||(e=t[_r]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[Gn]=!0}var Er=new Set,Tr={};function ia(t,e){Qa(t,e),Qa(t+"Capture",e)}function Qa(t,e){for(Tr[t]=e,t=0;t<e.length;t++)Er.add(e[t])}var My=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]*$"),Nr={},Ar={};function Ry(t){return hc.call(Ar,t)?!0:hc.call(Nr,t)?!1:My.test(t)?Ar[t]=!0:(Nr[t]=!0,!1)}function ku(t,e,l){if(Ry(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Fu(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function ll(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function ze(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function jr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Uy(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(s){l=""+s,u.call(this,s)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Sc(t){if(!t._valueTracker){var e=jr(t)?"checked":"value";t._valueTracker=Uy(t,e,""+t[e])}}function Or(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=jr(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function Wu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var qy=/[\n"\\]/g;function De(t){return t.replace(qy,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function _c(t,e,l,a,n,u,s,o){t.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.type=s:t.removeAttribute("type"),e!=null?s==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ze(e)):t.value!==""+ze(e)&&(t.value=""+ze(e)):s!=="submit"&&s!=="reset"||t.removeAttribute("value"),e!=null?Ec(t,s,ze(e)):l!=null?Ec(t,s,ze(l)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+ze(o):t.removeAttribute("name")}function zr(t,e,l,a,n,u,s,o){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Sc(t);return}l=l!=null?""+ze(l):"",e=e!=null?""+ze(e):l,o||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=o?t.checked:!!a,t.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.name=s),Sc(t)}function Ec(t,e,l){e==="number"&&Wu(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function La(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+ze(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function Dr(t,e,l){if(e!=null&&(e=""+ze(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+ze(l):""}function Cr(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(r(92));if(ae(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=ze(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Sc(t)}function Ga(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var wy=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 Mr(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||wy.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Rr(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&Mr(t,n,a)}else for(var u in e)e.hasOwnProperty(u)&&Mr(t,u,e[u])}function Tc(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hy=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"]]),By=/^[\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 $u(t){return By.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function al(){}var Nc=null;function Ac(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ya=null,Xa=null;function Ur(t){var e=Ha(t);if(e&&(t=e.stateNode)){var l=t[re]||null;t:switch(t=e.stateNode,e.type){case"input":if(_c(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+De(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[re]||null;if(!n)throw Error(r(90));_c(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&Or(a)}break t;case"textarea":Dr(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&La(t,!!l.multiple,e,!1)}}}var jc=!1;function qr(t,e,l){if(jc)return t(e,l);jc=!0;try{var a=t(e);return a}finally{if(jc=!1,(Ya!==null||Xa!==null)&&(Bi(),Ya&&(e=Ya,t=Xa,Xa=Ya=null,Ur(e),t)))for(e=0;e<t.length;e++)Ur(t[e])}}function Xn(t,e){var l=t.stateNode;if(l===null)return null;var a=l[re]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,e,typeof l));return l}var nl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oc=!1;if(nl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){Oc=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{Oc=!1}var Nl=null,zc=null,Iu=null;function wr(){if(Iu)return Iu;var t,e=zc,l=e.length,a,n="value"in Nl?Nl.value:Nl.textContent,u=n.length;for(t=0;t<l&&e[t]===n[t];t++);var s=l-t;for(a=1;a<=s&&e[l-a]===n[u-a];a++);return Iu=n.slice(t,1<a?1-a:void 0)}function Pu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ti(){return!0}function Hr(){return!1}function oe(t){function e(l,a,n,u,s){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=s,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(l=t[o],this[o]=l?l(u):u[o]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ti:Hr,this.isPropagationStopped=Hr,this}return R(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ti)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ti)},persist:function(){},isPersistent:ti}),e}var ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ei=oe(ca),Vn=R({},ca,{view:0,detail:0}),Qy=oe(Vn),Dc,Cc,Kn,li=R({},Vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Kn&&(Kn&&t.type==="mousemove"?(Dc=t.screenX-Kn.screenX,Cc=t.screenY-Kn.screenY):Cc=Dc=0,Kn=t),Dc)},movementY:function(t){return"movementY"in t?t.movementY:Cc}}),Br=oe(li),Ly=R({},li,{dataTransfer:0}),Gy=oe(Ly),Yy=R({},Vn,{relatedTarget:0}),Mc=oe(Yy),Xy=R({},ca,{animationName:0,elapsedTime:0,pseudoElement:0}),Zy=oe(Xy),Vy=R({},ca,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ky=oe(Vy),Jy=R({},ca,{data:0}),Qr=oe(Jy),ky={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fy={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"},Wy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $y(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Wy[t])?!!e[t]:!1}function Rc(){return $y}var Iy=R({},Vn,{key:function(t){if(t.key){var e=ky[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Pu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Fy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rc,charCode:function(t){return t.type==="keypress"?Pu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Pu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Py=oe(Iy),t0=R({},li,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lr=oe(t0),e0=R({},Vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rc}),l0=oe(e0),a0=R({},ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),n0=oe(a0),u0=R({},li,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),i0=oe(u0),c0=R({},ca,{newState:0,oldState:0}),s0=oe(c0),f0=[9,13,27,32],Uc=nl&&"CompositionEvent"in window,Jn=null;nl&&"documentMode"in document&&(Jn=document.documentMode);var r0=nl&&"TextEvent"in window&&!Jn,Gr=nl&&(!Uc||Jn&&8<Jn&&11>=Jn),Yr=" ",Xr=!1;function Zr(t,e){switch(t){case"keyup":return f0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Za=!1;function o0(t,e){switch(t){case"compositionend":return Vr(e);case"keypress":return e.which!==32?null:(Xr=!0,Yr);case"textInput":return t=e.data,t===Yr&&Xr?null:t;default:return null}}function d0(t,e){if(Za)return t==="compositionend"||!Uc&&Zr(t,e)?(t=wr(),Iu=zc=Nl=null,Za=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Gr&&e.locale!=="ko"?null:e.data;default:return null}}var h0={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 Kr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!h0[t.type]:e==="textarea"}function Jr(t,e,l,a){Ya?Xa?Xa.push(a):Xa=[a]:Ya=a,e=Vi(e,"onChange"),0<e.length&&(l=new ei("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var kn=null,Fn=null;function m0(t){Dh(t,0)}function ai(t){var e=Yn(t);if(Or(e))return t}function kr(t,e){if(t==="change")return e}var Fr=!1;if(nl){var qc;if(nl){var wc="oninput"in document;if(!wc){var Wr=document.createElement("div");Wr.setAttribute("oninput","return;"),wc=typeof Wr.oninput=="function"}qc=wc}else qc=!1;Fr=qc&&(!document.documentMode||9<document.documentMode)}function $r(){kn&&(kn.detachEvent("onpropertychange",Ir),Fn=kn=null)}function Ir(t){if(t.propertyName==="value"&&ai(Fn)){var e=[];Jr(e,Fn,t,Ac(t)),qr(m0,e)}}function y0(t,e,l){t==="focusin"?($r(),kn=e,Fn=l,kn.attachEvent("onpropertychange",Ir)):t==="focusout"&&$r()}function v0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ai(Fn)}function p0(t,e){if(t==="click")return ai(e)}function g0(t,e){if(t==="input"||t==="change")return ai(e)}function b0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var _e=typeof Object.is=="function"?Object.is:b0;function Wn(t,e){if(_e(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!hc.call(e,n)||!_e(t[n],e[n]))return!1}return!0}function Pr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function to(t,e){var l=Pr(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Pr(l)}}function eo(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?eo(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function lo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Wu(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Wu(t.document)}return e}function Hc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var x0=nl&&"documentMode"in document&&11>=document.documentMode,Va=null,Bc=null,$n=null,Qc=!1;function ao(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Qc||Va==null||Va!==Wu(a)||(a=Va,"selectionStart"in a&&Hc(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}),$n&&Wn($n,a)||($n=a,a=Vi(Bc,"onSelect"),0<a.length&&(e=new ei("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=Va)))}function sa(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var Ka={animationend:sa("Animation","AnimationEnd"),animationiteration:sa("Animation","AnimationIteration"),animationstart:sa("Animation","AnimationStart"),transitionrun:sa("Transition","TransitionRun"),transitionstart:sa("Transition","TransitionStart"),transitioncancel:sa("Transition","TransitionCancel"),transitionend:sa("Transition","TransitionEnd")},Lc={},no={};nl&&(no=document.createElement("div").style,"AnimationEvent"in window||(delete Ka.animationend.animation,delete Ka.animationiteration.animation,delete Ka.animationstart.animation),"TransitionEvent"in window||delete Ka.transitionend.transition);function fa(t){if(Lc[t])return Lc[t];if(!Ka[t])return t;var e=Ka[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in no)return Lc[t]=e[l];return t}var uo=fa("animationend"),io=fa("animationiteration"),co=fa("animationstart"),S0=fa("transitionrun"),_0=fa("transitionstart"),E0=fa("transitioncancel"),so=fa("transitionend"),fo=new Map,Gc="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(" ");Gc.push("scrollEnd");function Ye(t,e){fo.set(t,e),ia(e,[t])}var ni=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ce=[],Ja=0,Yc=0;function ui(){for(var t=Ja,e=Yc=Ja=0;e<t;){var l=Ce[e];Ce[e++]=null;var a=Ce[e];Ce[e++]=null;var n=Ce[e];Ce[e++]=null;var u=Ce[e];if(Ce[e++]=null,a!==null&&n!==null){var s=a.pending;s===null?n.next=n:(n.next=s.next,s.next=n),a.pending=n}u!==0&&ro(l,n,u)}}function ii(t,e,l,a){Ce[Ja++]=t,Ce[Ja++]=e,Ce[Ja++]=l,Ce[Ja++]=a,Yc|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Xc(t,e,l,a){return ii(t,e,l,a),ci(t)}function ra(t,e){return ii(t,null,null,e),ci(t)}function ro(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=t.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(n=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,n&&e!==null&&(n=31-Se(l),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),u):null}function ci(t){if(50<bu)throw bu=0,Is=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ka={};function T0(t,e,l,a){this.tag=t,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=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(t,e,l,a){return new T0(t,e,l,a)}function Zc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ul(t,e){var l=t.alternate;return l===null?(l=Ee(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function oo(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function si(t,e,l,a,n,u){var s=0;if(a=t,typeof t=="function")Zc(t)&&(s=1);else if(typeof t=="string")s=zv(t,l,G.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case _t:return t=Ee(31,l,e,n),t.elementType=_t,t.lanes=u,t;case F:return oa(l.children,n,u,e);case I:s=8,n|=24;break;case U:return t=Ee(12,l,e,n|2),t.elementType=U,t.lanes=u,t;case pt:return t=Ee(13,l,e,n),t.elementType=pt,t.lanes=u,t;case St:return t=Ee(19,l,e,n),t.elementType=St,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:s=10;break t;case $:s=9;break t;case Q:s=11;break t;case P:s=14;break t;case nt:s=16,a=null;break t}s=29,l=Error(r(130,t===null?"null":typeof t,"")),a=null}return e=Ee(s,l,e,n),e.elementType=t,e.type=a,e.lanes=u,e}function oa(t,e,l,a){return t=Ee(7,t,a,e),t.lanes=l,t}function Vc(t,e,l){return t=Ee(6,t,null,e),t.lanes=l,t}function ho(t){var e=Ee(18,null,null,0);return e.stateNode=t,e}function Kc(t,e,l){return e=Ee(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var mo=new WeakMap;function Me(t,e){if(typeof t=="object"&&t!==null){var l=mo.get(t);return l!==void 0?l:(e={value:t,source:e,stack:dr(e)},mo.set(t,e),e)}return{value:t,source:e,stack:dr(e)}}var Fa=[],Wa=0,fi=null,In=0,Re=[],Ue=0,Al=null,Fe=1,We="";function il(t,e){Fa[Wa++]=In,Fa[Wa++]=fi,fi=t,In=e}function yo(t,e,l){Re[Ue++]=Fe,Re[Ue++]=We,Re[Ue++]=Al,Al=t;var a=Fe;t=We;var n=32-Se(a)-1;a&=~(1<<n),l+=1;var u=32-Se(e)+n;if(30<u){var s=n-n%5;u=(a&(1<<s)-1).toString(32),a>>=s,n-=s,Fe=1<<32-Se(e)+n|l<<n|a,We=u+t}else Fe=1<<u|l<<n|a,We=t}function Jc(t){t.return!==null&&(il(t,1),yo(t,1,0))}function kc(t){for(;t===fi;)fi=Fa[--Wa],Fa[Wa]=null,In=Fa[--Wa],Fa[Wa]=null;for(;t===Al;)Al=Re[--Ue],Re[Ue]=null,We=Re[--Ue],Re[Ue]=null,Fe=Re[--Ue],Re[Ue]=null}function vo(t,e){Re[Ue++]=Fe,Re[Ue++]=We,Re[Ue++]=Al,Fe=e.id,We=e.overflow,Al=t}var It=null,Ct=null,dt=!1,jl=null,qe=!1,Fc=Error(r(519));function Ol(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Pn(Me(e,t)),Fc}function po(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[$t]=t,e[re]=a,l){case"dialog":st("cancel",e),st("close",e);break;case"iframe":case"object":case"embed":st("load",e);break;case"video":case"audio":for(l=0;l<Su.length;l++)st(Su[l],e);break;case"source":st("error",e);break;case"img":case"image":case"link":st("error",e),st("load",e);break;case"details":st("toggle",e);break;case"input":st("invalid",e),zr(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":st("invalid",e);break;case"textarea":st("invalid",e),Cr(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||Uh(e.textContent,l)?(a.popover!=null&&(st("beforetoggle",e),st("toggle",e)),a.onScroll!=null&&st("scroll",e),a.onScrollEnd!=null&&st("scrollend",e),a.onClick!=null&&(e.onclick=al),e=!0):e=!1,e||Ol(t,!0)}function go(t){for(It=t.return;It;)switch(It.tag){case 5:case 31:case 13:qe=!1;return;case 27:case 3:qe=!0;return;default:It=It.return}}function $a(t){if(t!==It)return!1;if(!dt)return go(t),dt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||mf(t.type,t.memoizedProps)),l=!l),l&&Ct&&Ol(t),go(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Ct=Xh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Ct=Xh(t)}else e===27?(e=Ct,Yl(t.type)?(t=bf,bf=null,Ct=t):Ct=e):Ct=It?He(t.stateNode.nextSibling):null;return!0}function da(){Ct=It=null,dt=!1}function Wc(){var t=jl;return t!==null&&(ye===null?ye=t:ye.push.apply(ye,t),jl=null),t}function Pn(t){jl===null?jl=[t]:jl.push(t)}var $c=g(null),ha=null,cl=null;function zl(t,e,l){w($c,e._currentValue),e._currentValue=l}function sl(t){t._currentValue=$c.current,M($c)}function Ic(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function Pc(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var u=n.dependencies;if(u!==null){var s=n.child;u=u.firstContext;t:for(;u!==null;){var o=u;u=n;for(var m=0;m<e.length;m++)if(o.context===e[m]){u.lanes|=l,o=u.alternate,o!==null&&(o.lanes|=l),Ic(u.return,l,t),a||(s=null);break t}u=o.next}}else if(n.tag===18){if(s=n.return,s===null)throw Error(r(341));s.lanes|=l,u=s.alternate,u!==null&&(u.lanes|=l),Ic(s,l,t),s=null}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}}function Ia(t,e,l,a){t=null;for(var n=e,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var s=n.alternate;if(s===null)throw Error(r(387));if(s=s.memoizedProps,s!==null){var o=n.type;_e(n.pendingProps.value,s.value)||(t!==null?t.push(o):t=[o])}}else if(n===bt.current){if(s=n.alternate,s===null)throw Error(r(387));s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Au):t=[Au])}n=n.return}t!==null&&Pc(e,t,l,a),e.flags|=262144}function ri(t){for(t=t.firstContext;t!==null;){if(!_e(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ma(t){ha=t,cl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Pt(t){return bo(ha,t)}function oi(t,e){return ha===null&&ma(t),bo(t,e)}function bo(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},cl===null){if(t===null)throw Error(r(308));cl=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else cl=cl.next=e;return l}var N0=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},A0=c.unstable_scheduleCallback,j0=c.unstable_NormalPriority,Gt={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ts(){return{controller:new N0,data:new Map,refCount:0}}function tu(t){t.refCount--,t.refCount===0&&A0(j0,function(){t.controller.abort()})}var eu=null,es=0,Pa=0,tn=null;function O0(t,e){if(eu===null){var l=eu=[];es=0,Pa=nf(),tn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return es++,e.then(xo,xo),e}function xo(){if(--es===0&&eu!==null){tn!==null&&(tn.status="fulfilled");var t=eu;eu=null,Pa=0,tn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function z0(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var So=z.S;z.S=function(t,e){nh=be(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&O0(t,e),So!==null&&So(t,e)};var ya=g(null);function ls(){var t=ya.current;return t!==null?t:Dt.pooledCache}function di(t,e){e===null?w(ya,ya.current):w(ya,e.pool)}function _o(){var t=ls();return t===null?null:{parent:Gt._currentValue,pool:t}}var en=Error(r(460)),as=Error(r(474)),hi=Error(r(542)),mi={then:function(){}};function Eo(t){return t=t.status,t==="fulfilled"||t==="rejected"}function To(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(al,al),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Ao(t),t;default:if(typeof e.status=="string")e.then(al,al);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Ao(t),t}throw pa=e,en}}function va(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(pa=l,en):l}}var pa=null;function No(){if(pa===null)throw Error(r(459));var t=pa;return pa=null,t}function Ao(t){if(t===en||t===hi)throw Error(r(483))}var ln=null,lu=0;function yi(t){var e=lu;return lu+=1,ln===null&&(ln=[]),To(ln,t,e)}function au(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function vi(t,e){throw e.$$typeof===X?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function jo(t){function e(b,v){if(t){var S=b.deletions;S===null?(b.deletions=[v],b.flags|=16):S.push(v)}}function l(b,v){if(!t)return null;for(;v!==null;)e(b,v),v=v.sibling;return null}function a(b){for(var v=new Map;b!==null;)b.key!==null?v.set(b.key,b):v.set(b.index,b),b=b.sibling;return v}function n(b,v){return b=ul(b,v),b.index=0,b.sibling=null,b}function u(b,v,S){return b.index=S,t?(S=b.alternate,S!==null?(S=S.index,S<v?(b.flags|=67108866,v):S):(b.flags|=67108866,v)):(b.flags|=1048576,v)}function s(b){return t&&b.alternate===null&&(b.flags|=67108866),b}function o(b,v,S,D){return v===null||v.tag!==6?(v=Vc(S,b.mode,D),v.return=b,v):(v=n(v,S),v.return=b,v)}function m(b,v,S,D){var Z=S.type;return Z===F?O(b,v,S.props.children,D,S.key):v!==null&&(v.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===nt&&va(Z)===v.type)?(v=n(v,S.props),au(v,S),v.return=b,v):(v=si(S.type,S.key,S.props,null,b.mode,D),au(v,S),v.return=b,v)}function _(b,v,S,D){return v===null||v.tag!==4||v.stateNode.containerInfo!==S.containerInfo||v.stateNode.implementation!==S.implementation?(v=Kc(S,b.mode,D),v.return=b,v):(v=n(v,S.children||[]),v.return=b,v)}function O(b,v,S,D,Z){return v===null||v.tag!==7?(v=oa(S,b.mode,D,Z),v.return=b,v):(v=n(v,S),v.return=b,v)}function C(b,v,S){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Vc(""+v,b.mode,S),v.return=b,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case V:return S=si(v.type,v.key,v.props,null,b.mode,S),au(S,v),S.return=b,S;case at:return v=Kc(v,b.mode,S),v.return=b,v;case nt:return v=va(v),C(b,v,S)}if(ae(v)||Kt(v))return v=oa(v,b.mode,S,null),v.return=b,v;if(typeof v.then=="function")return C(b,yi(v),S);if(v.$$typeof===K)return C(b,oi(b,v),S);vi(b,v)}return null}function E(b,v,S,D){var Z=v!==null?v.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return Z!==null?null:o(b,v,""+S,D);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case V:return S.key===Z?m(b,v,S,D):null;case at:return S.key===Z?_(b,v,S,D):null;case nt:return S=va(S),E(b,v,S,D)}if(ae(S)||Kt(S))return Z!==null?null:O(b,v,S,D,null);if(typeof S.then=="function")return E(b,v,yi(S),D);if(S.$$typeof===K)return E(b,v,oi(b,S),D);vi(b,S)}return null}function N(b,v,S,D,Z){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return b=b.get(S)||null,o(v,b,""+D,Z);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case V:return b=b.get(D.key===null?S:D.key)||null,m(v,b,D,Z);case at:return b=b.get(D.key===null?S:D.key)||null,_(v,b,D,Z);case nt:return D=va(D),N(b,v,S,D,Z)}if(ae(D)||Kt(D))return b=b.get(S)||null,O(v,b,D,Z,null);if(typeof D.then=="function")return N(b,v,S,yi(D),Z);if(D.$$typeof===K)return N(b,v,S,oi(v,D),Z);vi(v,D)}return null}function L(b,v,S,D){for(var Z=null,yt=null,Y=v,ut=v=0,ot=null;Y!==null&&ut<S.length;ut++){Y.index>ut?(ot=Y,Y=null):ot=Y.sibling;var vt=E(b,Y,S[ut],D);if(vt===null){Y===null&&(Y=ot);break}t&&Y&&vt.alternate===null&&e(b,Y),v=u(vt,v,ut),yt===null?Z=vt:yt.sibling=vt,yt=vt,Y=ot}if(ut===S.length)return l(b,Y),dt&&il(b,ut),Z;if(Y===null){for(;ut<S.length;ut++)Y=C(b,S[ut],D),Y!==null&&(v=u(Y,v,ut),yt===null?Z=Y:yt.sibling=Y,yt=Y);return dt&&il(b,ut),Z}for(Y=a(Y);ut<S.length;ut++)ot=N(Y,b,ut,S[ut],D),ot!==null&&(t&&ot.alternate!==null&&Y.delete(ot.key===null?ut:ot.key),v=u(ot,v,ut),yt===null?Z=ot:yt.sibling=ot,yt=ot);return t&&Y.forEach(function(Jl){return e(b,Jl)}),dt&&il(b,ut),Z}function J(b,v,S,D){if(S==null)throw Error(r(151));for(var Z=null,yt=null,Y=v,ut=v=0,ot=null,vt=S.next();Y!==null&&!vt.done;ut++,vt=S.next()){Y.index>ut?(ot=Y,Y=null):ot=Y.sibling;var Jl=E(b,Y,vt.value,D);if(Jl===null){Y===null&&(Y=ot);break}t&&Y&&Jl.alternate===null&&e(b,Y),v=u(Jl,v,ut),yt===null?Z=Jl:yt.sibling=Jl,yt=Jl,Y=ot}if(vt.done)return l(b,Y),dt&&il(b,ut),Z;if(Y===null){for(;!vt.done;ut++,vt=S.next())vt=C(b,vt.value,D),vt!==null&&(v=u(vt,v,ut),yt===null?Z=vt:yt.sibling=vt,yt=vt);return dt&&il(b,ut),Z}for(Y=a(Y);!vt.done;ut++,vt=S.next())vt=N(Y,b,ut,vt.value,D),vt!==null&&(t&&vt.alternate!==null&&Y.delete(vt.key===null?ut:vt.key),v=u(vt,v,ut),yt===null?Z=vt:yt.sibling=vt,yt=vt);return t&&Y.forEach(function(Lv){return e(b,Lv)}),dt&&il(b,ut),Z}function Ot(b,v,S,D){if(typeof S=="object"&&S!==null&&S.type===F&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case V:t:{for(var Z=S.key;v!==null;){if(v.key===Z){if(Z=S.type,Z===F){if(v.tag===7){l(b,v.sibling),D=n(v,S.props.children),D.return=b,b=D;break t}}else if(v.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===nt&&va(Z)===v.type){l(b,v.sibling),D=n(v,S.props),au(D,S),D.return=b,b=D;break t}l(b,v);break}else e(b,v);v=v.sibling}S.type===F?(D=oa(S.props.children,b.mode,D,S.key),D.return=b,b=D):(D=si(S.type,S.key,S.props,null,b.mode,D),au(D,S),D.return=b,b=D)}return s(b);case at:t:{for(Z=S.key;v!==null;){if(v.key===Z)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){l(b,v.sibling),D=n(v,S.children||[]),D.return=b,b=D;break t}else{l(b,v);break}else e(b,v);v=v.sibling}D=Kc(S,b.mode,D),D.return=b,b=D}return s(b);case nt:return S=va(S),Ot(b,v,S,D)}if(ae(S))return L(b,v,S,D);if(Kt(S)){if(Z=Kt(S),typeof Z!="function")throw Error(r(150));return S=Z.call(S),J(b,v,S,D)}if(typeof S.then=="function")return Ot(b,v,yi(S),D);if(S.$$typeof===K)return Ot(b,v,oi(b,S),D);vi(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,v!==null&&v.tag===6?(l(b,v.sibling),D=n(v,S),D.return=b,b=D):(l(b,v),D=Vc(S,b.mode,D),D.return=b,b=D),s(b)):l(b,v)}return function(b,v,S,D){try{lu=0;var Z=Ot(b,v,S,D);return ln=null,Z}catch(Y){if(Y===en||Y===hi)throw Y;var yt=Ee(29,Y,null,b.mode);return yt.lanes=D,yt.return=b,yt}finally{}}}var ga=jo(!0),Oo=jo(!1),Dl=!1;function ns(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function us(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Cl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ml(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(gt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=ci(t),ro(t,null,l),e}return ii(t,a,e,l),ci(t)}function nu(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,gr(t,l)}}function is(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=s:u=u.next=s,l=l.next}while(l!==null);u===null?n=u=e:u=u.next=e}else n=u=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var cs=!1;function uu(){if(cs){var t=tn;if(t!==null)throw t}}function iu(t,e,l,a){cs=!1;var n=t.updateQueue;Dl=!1;var u=n.firstBaseUpdate,s=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var m=o,_=m.next;m.next=null,s===null?u=_:s.next=_,s=m;var O=t.alternate;O!==null&&(O=O.updateQueue,o=O.lastBaseUpdate,o!==s&&(o===null?O.firstBaseUpdate=_:o.next=_,O.lastBaseUpdate=m))}if(u!==null){var C=n.baseState;s=0,O=_=m=null,o=u;do{var E=o.lane&-536870913,N=E!==o.lane;if(N?(rt&E)===E:(a&E)===E){E!==0&&E===Pa&&(cs=!0),O!==null&&(O=O.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var L=t,J=o;E=e;var Ot=l;switch(J.tag){case 1:if(L=J.payload,typeof L=="function"){C=L.call(Ot,C,E);break t}C=L;break t;case 3:L.flags=L.flags&-65537|128;case 0:if(L=J.payload,E=typeof L=="function"?L.call(Ot,C,E):L,E==null)break t;C=R({},C,E);break t;case 2:Dl=!0}}E=o.callback,E!==null&&(t.flags|=64,N&&(t.flags|=8192),N=n.callbacks,N===null?n.callbacks=[E]:N.push(E))}else N={lane:E,tag:o.tag,payload:o.payload,callback:o.callback,next:null},O===null?(_=O=N,m=C):O=O.next=N,s|=E;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;N=o,o=N.next,N.next=null,n.lastBaseUpdate=N,n.shared.pending=null}}while(!0);O===null&&(m=C),n.baseState=m,n.firstBaseUpdate=_,n.lastBaseUpdate=O,u===null&&(n.shared.lanes=0),Hl|=s,t.lanes=s,t.memoizedState=C}}function zo(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Do(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)zo(l[t],e)}var an=g(null),pi=g(0);function Co(t,e){t=pl,w(pi,t),w(an,e),pl=t|e.baseLanes}function ss(){w(pi,pl),w(an,an.current)}function fs(){pl=pi.current,M(an),M(pi)}var Te=g(null),we=null;function Rl(t){var e=t.alternate;w(Qt,Qt.current&1),w(Te,t),we===null&&(e===null||an.current!==null||e.memoizedState!==null)&&(we=t)}function rs(t){w(Qt,Qt.current),w(Te,t),we===null&&(we=t)}function Mo(t){t.tag===22?(w(Qt,Qt.current),w(Te,t),we===null&&(we=t)):Ul()}function Ul(){w(Qt,Qt.current),w(Te,Te.current)}function Ne(t){M(Te),we===t&&(we=null),M(Qt)}var Qt=g(0);function gi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||pf(l)||gf(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var fl=0,lt=null,At=null,Yt=null,bi=!1,nn=!1,ba=!1,xi=0,cu=0,un=null,D0=0;function qt(){throw Error(r(321))}function os(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!_e(t[l],e[l]))return!1;return!0}function ds(t,e,l,a,n,u){return fl=u,lt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,z.H=t===null||t.memoizedState===null?yd:js,ba=!1,u=l(a,n),ba=!1,nn&&(u=Uo(e,l,a,n)),Ro(t),u}function Ro(t){z.H=ru;var e=At!==null&&At.next!==null;if(fl=0,Yt=At=lt=null,bi=!1,cu=0,un=null,e)throw Error(r(300));t===null||Xt||(t=t.dependencies,t!==null&&ri(t)&&(Xt=!0))}function Uo(t,e,l,a){lt=t;var n=0;do{if(nn&&(un=null),cu=0,nn=!1,25<=n)throw Error(r(301));if(n+=1,Yt=At=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}z.H=vd,u=e(l,a)}while(nn);return u}function C0(){var t=z.H,e=t.useState()[0];return e=typeof e.then=="function"?su(e):e,t=t.useState()[0],(At!==null?At.memoizedState:null)!==t&&(lt.flags|=1024),e}function hs(){var t=xi!==0;return xi=0,t}function ms(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function ys(t){if(bi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}bi=!1}fl=0,Yt=At=lt=null,nn=!1,cu=xi=0,un=null}function ce(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?lt.memoizedState=Yt=t:Yt=Yt.next=t,Yt}function Lt(){if(At===null){var t=lt.alternate;t=t!==null?t.memoizedState:null}else t=At.next;var e=Yt===null?lt.memoizedState:Yt.next;if(e!==null)Yt=e,At=t;else{if(t===null)throw lt.alternate===null?Error(r(467)):Error(r(310));At=t,t={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},Yt===null?lt.memoizedState=Yt=t:Yt=Yt.next=t}return Yt}function Si(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function su(t){var e=cu;return cu+=1,un===null&&(un=[]),t=To(un,t,e),e=lt,(Yt===null?e.memoizedState:Yt.next)===null&&(e=e.alternate,z.H=e===null||e.memoizedState===null?yd:js),t}function _i(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return su(t);if(t.$$typeof===K)return Pt(t)}throw Error(r(438,String(t)))}function vs(t){var e=null,l=lt.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=lt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Si(),lt.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=Ut;return e.index++,l}function rl(t,e){return typeof e=="function"?e(t):e}function Ei(t){var e=Lt();return ps(e,At,t)}function ps(t,e,l){var a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var s=n.next;n.next=u.next,u.next=s}e.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{e=n.next;var o=s=null,m=null,_=e,O=!1;do{var C=_.lane&-536870913;if(C!==_.lane?(rt&C)===C:(fl&C)===C){var E=_.revertLane;if(E===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),C===Pa&&(O=!0);else if((fl&E)===E){_=_.next,E===Pa&&(O=!0);continue}else C={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(o=m=C,s=u):m=m.next=C,lt.lanes|=E,Hl|=E;C=_.action,ba&&l(u,C),u=_.hasEagerState?_.eagerState:l(u,C)}else E={lane:C,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(o=m=E,s=u):m=m.next=E,lt.lanes|=C,Hl|=C;_=_.next}while(_!==null&&_!==e);if(m===null?s=u:m.next=o,!_e(u,t.memoizedState)&&(Xt=!0,O&&(l=tn,l!==null)))throw l;t.memoizedState=u,t.baseState=s,t.baseQueue=m,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function gs(t){var e=Lt(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,u=e.memoizedState;if(n!==null){l.pending=null;var s=n=n.next;do u=t(u,s.action),s=s.next;while(s!==n);_e(u,e.memoizedState)||(Xt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,a]}function qo(t,e,l){var a=lt,n=Lt(),u=dt;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=e();var s=!_e((At||n).memoizedState,l);if(s&&(n.memoizedState=l,Xt=!0),n=n.queue,Ss(Bo.bind(null,a,n,t),[t]),n.getSnapshot!==e||s||Yt!==null&&Yt.memoizedState.tag&1){if(a.flags|=2048,cn(9,{destroy:void 0},Ho.bind(null,a,n,l,e),null),Dt===null)throw Error(r(349));u||(fl&127)!==0||wo(a,e,l)}return l}function wo(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=lt.updateQueue,e===null?(e=Si(),lt.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Ho(t,e,l,a){e.value=l,e.getSnapshot=a,Qo(e)&&Lo(t)}function Bo(t,e,l){return l(function(){Qo(e)&&Lo(t)})}function Qo(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!_e(t,l)}catch{return!0}}function Lo(t){var e=ra(t,2);e!==null&&ve(e,t,2)}function bs(t){var e=ce();if(typeof t=="function"){var l=t;if(t=l(),ba){El(!0);try{l()}finally{El(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:t},e}function Go(t,e,l,a){return t.baseState=l,ps(t,At,typeof a=="function"?a:rl)}function M0(t,e,l,a,n){if(Ai(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){u.listeners.push(s)}};z.T!==null?l(!0):u.isTransition=!1,a(u),l=e.pending,l===null?(u.next=e.pending=u,Yo(e,u)):(u.next=l.next,e.pending=l.next=u)}}function Yo(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var u=z.T,s={};z.T=s;try{var o=l(n,a),m=z.S;m!==null&&m(s,o),Xo(t,e,o)}catch(_){xs(t,e,_)}finally{u!==null&&s.types!==null&&(u.types=s.types),z.T=u}}else try{u=l(n,a),Xo(t,e,u)}catch(_){xs(t,e,_)}}function Xo(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Zo(t,e,a)},function(a){return xs(t,e,a)}):Zo(t,e,l)}function Zo(t,e,l){e.status="fulfilled",e.value=l,Vo(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Yo(t,l)))}function xs(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,Vo(e),e=e.next;while(e!==a)}t.action=null}function Vo(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Ko(t,e){return e}function Jo(t,e){if(dt){var l=Dt.formState;if(l!==null){t:{var a=lt;if(dt){if(Ct){e:{for(var n=Ct,u=qe;n.nodeType!==8;){if(!u){n=null;break e}if(n=He(n.nextSibling),n===null){n=null;break e}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ct=He(n.nextSibling),a=n.data==="F!";break t}}Ol(a)}a=!1}a&&(e=l[0])}}return l=ce(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ko,lastRenderedState:e},l.queue=a,l=dd.bind(null,lt,a),a.dispatch=l,a=bs(!1),u=As.bind(null,lt,!1,a.queue),a=ce(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=M0.bind(null,lt,n,u,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function ko(t){var e=Lt();return Fo(e,At,t)}function Fo(t,e,l){if(e=ps(t,e,Ko)[0],t=Ei(rl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=su(e)}catch(s){throw s===en?hi:s}else a=e;e=Lt();var n=e.queue,u=n.dispatch;return l!==e.memoizedState&&(lt.flags|=2048,cn(9,{destroy:void 0},R0.bind(null,n,l),null)),[a,u,t]}function R0(t,e){t.action=e}function Wo(t){var e=Lt(),l=At;if(l!==null)return Fo(e,l,t);Lt(),e=e.memoizedState,l=Lt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function cn(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=lt.updateQueue,e===null&&(e=Si(),lt.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function $o(){return Lt().memoizedState}function Ti(t,e,l,a){var n=ce();lt.flags|=t,n.memoizedState=cn(1|e,{destroy:void 0},l,a===void 0?null:a)}function Ni(t,e,l,a){var n=Lt();a=a===void 0?null:a;var u=n.memoizedState.inst;At!==null&&a!==null&&os(a,At.memoizedState.deps)?n.memoizedState=cn(e,u,l,a):(lt.flags|=t,n.memoizedState=cn(1|e,u,l,a))}function Io(t,e){Ti(8390656,8,t,e)}function Ss(t,e){Ni(2048,8,t,e)}function U0(t){lt.flags|=4;var e=lt.updateQueue;if(e===null)e=Si(),lt.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Po(t){var e=Lt().memoizedState;return U0({ref:e,nextImpl:t}),function(){if((gt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function td(t,e){return Ni(4,2,t,e)}function ed(t,e){return Ni(4,4,t,e)}function ld(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function ad(t,e,l){l=l!=null?l.concat([t]):null,Ni(4,4,ld.bind(null,e,t),l)}function _s(){}function nd(t,e){var l=Lt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&os(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function ud(t,e){var l=Lt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&os(e,a[1]))return a[0];if(a=t(),ba){El(!0);try{t()}finally{El(!1)}}return l.memoizedState=[a,e],a}function Es(t,e,l){return l===void 0||(fl&1073741824)!==0&&(rt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=ih(),lt.lanes|=t,Hl|=t,l)}function id(t,e,l,a){return _e(l,e)?l:an.current!==null?(t=Es(t,l,a),_e(t,e)||(Xt=!0),t):(fl&42)===0||(fl&1073741824)!==0&&(rt&261930)===0?(Xt=!0,t.memoizedState=l):(t=ih(),lt.lanes|=t,Hl|=t,e)}function cd(t,e,l,a,n){var u=q.p;q.p=u!==0&&8>u?u:8;var s=z.T,o={};z.T=o,As(t,!1,e,l);try{var m=n(),_=z.S;if(_!==null&&_(o,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var O=z0(m,a);fu(t,e,O,Oe(t))}else fu(t,e,a,Oe(t))}catch(C){fu(t,e,{then:function(){},status:"rejected",reason:C},Oe())}finally{q.p=u,s!==null&&o.types!==null&&(s.types=o.types),z.T=s}}function q0(){}function Ts(t,e,l,a){if(t.tag!==5)throw Error(r(476));var n=sd(t).queue;cd(t,n,e,W,l===null?q0:function(){return fd(t),l(a)})}function sd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:W},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function fd(t){var e=sd(t);e.next===null&&(e=t.alternate.memoizedState),fu(t,e.next.queue,{},Oe())}function Ns(){return Pt(Au)}function rd(){return Lt().memoizedState}function od(){return Lt().memoizedState}function w0(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Oe();t=Cl(l);var a=Ml(e,t,l);a!==null&&(ve(a,e,l),nu(a,e,l)),e={cache:ts()},t.payload=e;return}e=e.return}}function H0(t,e,l){var a=Oe();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ai(t)?hd(e,l):(l=Xc(t,e,l,a),l!==null&&(ve(l,t,a),md(l,e,a)))}function dd(t,e,l){var a=Oe();fu(t,e,l,a)}function fu(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ai(t))hd(e,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var s=e.lastRenderedState,o=u(s,l);if(n.hasEagerState=!0,n.eagerState=o,_e(o,s))return ii(t,e,n,0),Dt===null&&ui(),!1}catch{}finally{}if(l=Xc(t,e,n,a),l!==null)return ve(l,t,a),md(l,e,a),!0}return!1}function As(t,e,l,a){if(a={lane:2,revertLane:nf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ai(t)){if(e)throw Error(r(479))}else e=Xc(t,l,a,2),e!==null&&ve(e,t,2)}function Ai(t){var e=t.alternate;return t===lt||e!==null&&e===lt}function hd(t,e){nn=bi=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function md(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,gr(t,l)}}var ru={readContext:Pt,use:_i,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};ru.useEffectEvent=qt;var yd={readContext:Pt,use:_i,useCallback:function(t,e){return ce().memoizedState=[t,e===void 0?null:e],t},useContext:Pt,useEffect:Io,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Ti(4194308,4,ld.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Ti(4194308,4,t,e)},useInsertionEffect:function(t,e){Ti(4,2,t,e)},useMemo:function(t,e){var l=ce();e=e===void 0?null:e;var a=t();if(ba){El(!0);try{t()}finally{El(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=ce();if(l!==void 0){var n=l(e);if(ba){El(!0);try{l(e)}finally{El(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=H0.bind(null,lt,t),[a.memoizedState,t]},useRef:function(t){var e=ce();return t={current:t},e.memoizedState=t},useState:function(t){t=bs(t);var e=t.queue,l=dd.bind(null,lt,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:_s,useDeferredValue:function(t,e){var l=ce();return Es(l,t,e)},useTransition:function(){var t=bs(!1);return t=cd.bind(null,lt,t.queue,!0,!1),ce().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=lt,n=ce();if(dt){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),Dt===null)throw Error(r(349));(rt&127)!==0||wo(a,e,l)}n.memoizedState=l;var u={value:l,getSnapshot:e};return n.queue=u,Io(Bo.bind(null,a,u,t),[t]),a.flags|=2048,cn(9,{destroy:void 0},Ho.bind(null,a,u,l,e),null),l},useId:function(){var t=ce(),e=Dt.identifierPrefix;if(dt){var l=We,a=Fe;l=(a&~(1<<32-Se(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=xi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=D0++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Ns,useFormState:Jo,useActionState:Jo,useOptimistic:function(t){var e=ce();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=As.bind(null,lt,!0,l),l.dispatch=e,[t,e]},useMemoCache:vs,useCacheRefresh:function(){return ce().memoizedState=w0.bind(null,lt)},useEffectEvent:function(t){var e=ce(),l={impl:t};return e.memoizedState=l,function(){if((gt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},js={readContext:Pt,use:_i,useCallback:nd,useContext:Pt,useEffect:Ss,useImperativeHandle:ad,useInsertionEffect:td,useLayoutEffect:ed,useMemo:ud,useReducer:Ei,useRef:$o,useState:function(){return Ei(rl)},useDebugValue:_s,useDeferredValue:function(t,e){var l=Lt();return id(l,At.memoizedState,t,e)},useTransition:function(){var t=Ei(rl)[0],e=Lt().memoizedState;return[typeof t=="boolean"?t:su(t),e]},useSyncExternalStore:qo,useId:rd,useHostTransitionStatus:Ns,useFormState:ko,useActionState:ko,useOptimistic:function(t,e){var l=Lt();return Go(l,At,t,e)},useMemoCache:vs,useCacheRefresh:od};js.useEffectEvent=Po;var vd={readContext:Pt,use:_i,useCallback:nd,useContext:Pt,useEffect:Ss,useImperativeHandle:ad,useInsertionEffect:td,useLayoutEffect:ed,useMemo:ud,useReducer:gs,useRef:$o,useState:function(){return gs(rl)},useDebugValue:_s,useDeferredValue:function(t,e){var l=Lt();return At===null?Es(l,t,e):id(l,At.memoizedState,t,e)},useTransition:function(){var t=gs(rl)[0],e=Lt().memoizedState;return[typeof t=="boolean"?t:su(t),e]},useSyncExternalStore:qo,useId:rd,useHostTransitionStatus:Ns,useFormState:Wo,useActionState:Wo,useOptimistic:function(t,e){var l=Lt();return At!==null?Go(l,At,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:vs,useCacheRefresh:od};vd.useEffectEvent=Po;function Os(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:R({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var zs={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=Oe(),n=Cl(a);n.payload=e,l!=null&&(n.callback=l),e=Ml(t,n,a),e!==null&&(ve(e,t,a),nu(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=Oe(),n=Cl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=Ml(t,n,a),e!==null&&(ve(e,t,a),nu(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Oe(),a=Cl(l);a.tag=2,e!=null&&(a.callback=e),e=Ml(t,a,l),e!==null&&(ve(e,t,l),nu(e,t,l))}};function pd(t,e,l,a,n,u,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,s):e.prototype&&e.prototype.isPureReactComponent?!Wn(l,a)||!Wn(n,u):!0}function gd(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&zs.enqueueReplaceState(e,e.state,null)}function xa(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=R({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function bd(t){ni(t)}function xd(t){console.error(t)}function Sd(t){ni(t)}function ji(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function _d(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Ds(t,e,l){return l=Cl(l),l.tag=3,l.payload={element:null},l.callback=function(){ji(t,e)},l}function Ed(t){return t=Cl(t),t.tag=3,t}function Td(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){_d(e,l,a)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(t.callback=function(){_d(e,l,a),typeof n!="function"&&(Bl===null?Bl=new Set([this]):Bl.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function B0(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&Ia(e,l,n,!0),l=Te.current,l!==null){switch(l.tag){case 31:case 13:return we===null?Qi():l.alternate===null&&wt===0&&(wt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===mi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),ef(t,a,n)),!1;case 22:return l.flags|=65536,a===mi?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),ef(t,a,n)),!1}throw Error(r(435,l.tag))}return ef(t,a,n),Qi(),!1}if(dt)return e=Te.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==Fc&&(t=Error(r(422),{cause:a}),Pn(Me(t,l)))):(a!==Fc&&(e=Error(r(423),{cause:a}),Pn(Me(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=Me(a,l),n=Ds(t.stateNode,a,n),is(t,n),wt!==4&&(wt=2)),!1;var u=Error(r(520),{cause:a});if(u=Me(u,l),gu===null?gu=[u]:gu.push(u),wt!==4&&(wt=2),e===null)return!0;a=Me(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Ds(l.stateNode,a,t),is(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Bl===null||!Bl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Ed(n),Td(n,t,l,a),is(l,n),!1}l=l.return}while(l!==null);return!1}var Cs=Error(r(461)),Xt=!1;function te(t,e,l,a){e.child=t===null?Oo(e,null,l,a):ga(e,t.child,l,a)}function Nd(t,e,l,a,n){l=l.render;var u=e.ref;if("ref"in a){var s={};for(var o in a)o!=="ref"&&(s[o]=a[o])}else s=a;return ma(e),a=ds(t,e,l,s,u,n),o=hs(),t!==null&&!Xt?(ms(t,e,n),ol(t,e,n)):(dt&&o&&Jc(e),e.flags|=1,te(t,e,a,n),e.child)}function Ad(t,e,l,a,n){if(t===null){var u=l.type;return typeof u=="function"&&!Zc(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,jd(t,e,u,a,n)):(t=si(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Qs(t,n)){var s=u.memoizedProps;if(l=l.compare,l=l!==null?l:Wn,l(s,a)&&t.ref===e.ref)return ol(t,e,n)}return e.flags|=1,t=ul(u,a),t.ref=e.ref,t.return=e,e.child=t}function jd(t,e,l,a,n){if(t!==null){var u=t.memoizedProps;if(Wn(u,a)&&t.ref===e.ref)if(Xt=!1,e.pendingProps=a=u,Qs(t,n))(t.flags&131072)!==0&&(Xt=!0);else return e.lanes=t.lanes,ol(t,e,n)}return Ms(t,e,l,a,n)}function Od(t,e,l,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,e.child=null;return zd(t,e,u,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&di(e,u!==null?u.cachePool:null),u!==null?Co(e,u):ss(),Mo(e);else return a=e.lanes=536870912,zd(t,e,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(di(e,u.cachePool),Co(e,u),Ul(),e.memoizedState=null):(t!==null&&di(e,null),ss(),Ul());return te(t,e,n,l),e.child}function ou(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function zd(t,e,l,a,n){var u=ls();return u=u===null?null:{parent:Gt._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&di(e,null),ss(),Mo(e),t!==null&&Ia(t,e,a,!0),e.childLanes=n,null}function Oi(t,e){return e=Di({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Dd(t,e,l){return ga(e,t.child,null,l),t=Oi(e,e.pendingProps),t.flags|=2,Ne(e),e.memoizedState=null,t}function Q0(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(dt){if(a.mode==="hidden")return t=Oi(e,a),e.lanes=536870912,ou(null,t);if(rs(e),(t=Ct)?(t=Yh(t,qe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Al!==null?{id:Fe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},l=ho(t),l.return=e,e.child=l,It=e,Ct=null)):t=null,t===null)throw Ol(e);return e.lanes=536870912,null}return Oi(e,a)}var u=t.memoizedState;if(u!==null){var s=u.dehydrated;if(rs(e),n)if(e.flags&256)e.flags&=-257,e=Dd(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Xt||Ia(t,e,l,!1),n=(l&t.childLanes)!==0,Xt||n){if(a=Dt,a!==null&&(s=br(a,l),s!==0&&s!==u.retryLane))throw u.retryLane=s,ra(t,s),ve(a,t,s),Cs;Qi(),e=Dd(t,e,l)}else t=u.treeContext,Ct=He(s.nextSibling),It=e,dt=!0,jl=null,qe=!1,t!==null&&vo(e,t),e=Oi(e,a),e.flags|=4096;return e}return t=ul(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function zi(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Ms(t,e,l,a,n){return ma(e),l=ds(t,e,l,a,void 0,n),a=hs(),t!==null&&!Xt?(ms(t,e,n),ol(t,e,n)):(dt&&a&&Jc(e),e.flags|=1,te(t,e,l,n),e.child)}function Cd(t,e,l,a,n,u){return ma(e),e.updateQueue=null,l=Uo(e,a,l,n),Ro(t),a=hs(),t!==null&&!Xt?(ms(t,e,u),ol(t,e,u)):(dt&&a&&Jc(e),e.flags|=1,te(t,e,l,u),e.child)}function Md(t,e,l,a,n){if(ma(e),e.stateNode===null){var u=ka,s=l.contextType;typeof s=="object"&&s!==null&&(u=Pt(s)),u=new l(a,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=zs,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=a,u.state=e.memoizedState,u.refs={},ns(e),s=l.contextType,u.context=typeof s=="object"&&s!==null?Pt(s):ka,u.state=e.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(Os(e,l,s,a),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(s=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),s!==u.state&&zs.enqueueReplaceState(u,u.state,null),iu(e,a,u,n),uu(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){u=e.stateNode;var o=e.memoizedProps,m=xa(l,o);u.props=m;var _=u.context,O=l.contextType;s=ka,typeof O=="object"&&O!==null&&(s=Pt(O));var C=l.getDerivedStateFromProps;O=typeof C=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,O||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||_!==s)&&gd(e,u,a,s),Dl=!1;var E=e.memoizedState;u.state=E,iu(e,a,u,n),uu(),_=e.memoizedState,o||E!==_||Dl?(typeof C=="function"&&(Os(e,l,C,a),_=e.memoizedState),(m=Dl||pd(e,l,m,a,E,_,s))?(O||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=_),u.props=a,u.state=_,u.context=s,a=m):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{u=e.stateNode,us(t,e),s=e.memoizedProps,O=xa(l,s),u.props=O,C=e.pendingProps,E=u.context,_=l.contextType,m=ka,typeof _=="object"&&_!==null&&(m=Pt(_)),o=l.getDerivedStateFromProps,(_=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==C||E!==m)&&gd(e,u,a,m),Dl=!1,E=e.memoizedState,u.state=E,iu(e,a,u,n),uu();var N=e.memoizedState;s!==C||E!==N||Dl||t!==null&&t.dependencies!==null&&ri(t.dependencies)?(typeof o=="function"&&(Os(e,l,o,a),N=e.memoizedState),(O=Dl||pd(e,l,O,a,E,N,m)||t!==null&&t.dependencies!==null&&ri(t.dependencies))?(_||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,N,m),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,N,m)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||s===t.memoizedProps&&E===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&E===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=N),u.props=a,u.state=N,u.context=m,a=O):(typeof u.componentDidUpdate!="function"||s===t.memoizedProps&&E===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&E===t.memoizedState||(e.flags|=1024),a=!1)}return u=a,zi(t,e),a=(e.flags&128)!==0,u||a?(u=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&a?(e.child=ga(e,t.child,null,n),e.child=ga(e,null,l,n)):te(t,e,l,n),e.memoizedState=u.state,t=e.child):t=ol(t,e,n),t}function Rd(t,e,l,a){return da(),e.flags|=256,te(t,e,l,a),e.child}var Rs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Us(t){return{baseLanes:t,cachePool:_o()}}function qs(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=je),t}function Ud(t,e,l){var a=e.pendingProps,n=!1,u=(e.flags&128)!==0,s;if((s=u)||(s=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),s&&(n=!0,e.flags&=-129),s=(e.flags&32)!==0,e.flags&=-33,t===null){if(dt){if(n?Rl(e):Ul(),(t=Ct)?(t=Yh(t,qe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Al!==null?{id:Fe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},l=ho(t),l.return=e,e.child=l,It=e,Ct=null)):t=null,t===null)throw Ol(e);return gf(t)?e.lanes=32:e.lanes=536870912,null}var o=a.children;return a=a.fallback,n?(Ul(),n=e.mode,o=Di({mode:"hidden",children:o},n),a=oa(a,n,l,null),o.return=e,a.return=e,o.sibling=a,e.child=o,a=e.child,a.memoizedState=Us(l),a.childLanes=qs(t,s,l),e.memoizedState=Rs,ou(null,a)):(Rl(e),ws(e,o))}var m=t.memoizedState;if(m!==null&&(o=m.dehydrated,o!==null)){if(u)e.flags&256?(Rl(e),e.flags&=-257,e=Hs(t,e,l)):e.memoizedState!==null?(Ul(),e.child=t.child,e.flags|=128,e=null):(Ul(),o=a.fallback,n=e.mode,a=Di({mode:"visible",children:a.children},n),o=oa(o,n,l,null),o.flags|=2,a.return=e,o.return=e,a.sibling=o,e.child=a,ga(e,t.child,null,l),a=e.child,a.memoizedState=Us(l),a.childLanes=qs(t,s,l),e.memoizedState=Rs,e=ou(null,a));else if(Rl(e),gf(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var _=s.dgst;s=_,a=Error(r(419)),a.stack="",a.digest=s,Pn({value:a,source:null,stack:null}),e=Hs(t,e,l)}else if(Xt||Ia(t,e,l,!1),s=(l&t.childLanes)!==0,Xt||s){if(s=Dt,s!==null&&(a=br(s,l),a!==0&&a!==m.retryLane))throw m.retryLane=a,ra(t,a),ve(s,t,a),Cs;pf(o)||Qi(),e=Hs(t,e,l)}else pf(o)?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,Ct=He(o.nextSibling),It=e,dt=!0,jl=null,qe=!1,t!==null&&vo(e,t),e=ws(e,a.children),e.flags|=4096);return e}return n?(Ul(),o=a.fallback,n=e.mode,m=t.child,_=m.sibling,a=ul(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,_!==null?o=ul(_,o):(o=oa(o,n,l,null),o.flags|=2),o.return=e,a.return=e,a.sibling=o,e.child=a,ou(null,a),a=e.child,o=t.child.memoizedState,o===null?o=Us(l):(n=o.cachePool,n!==null?(m=Gt._currentValue,n=n.parent!==m?{parent:m,pool:m}:n):n=_o(),o={baseLanes:o.baseLanes|l,cachePool:n}),a.memoizedState=o,a.childLanes=qs(t,s,l),e.memoizedState=Rs,ou(t.child,a)):(Rl(e),l=t.child,t=l.sibling,l=ul(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(s=e.deletions,s===null?(e.deletions=[t],e.flags|=16):s.push(t)),e.child=l,e.memoizedState=null,l)}function ws(t,e){return e=Di({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Di(t,e){return t=Ee(22,t,null,e),t.lanes=0,t}function Hs(t,e,l){return ga(e,t.child,null,l),t=ws(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function qd(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Ic(t.return,e,l)}function Bs(t,e,l,a,n,u){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=l,s.tailMode=n,s.treeForkCount=u)}function wd(t,e,l){var a=e.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var s=Qt.current,o=(s&2)!==0;if(o?(s=s&1|2,e.flags|=128):s&=1,w(Qt,s),te(t,e,a,l),a=dt?In:0,!o&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&qd(t,l,e);else if(t.tag===19)qd(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&gi(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Bs(e,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&gi(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Bs(e,!0,l,null,u,a);break;case"together":Bs(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function ol(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Hl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Ia(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,l=ul(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=ul(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Qs(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ri(t)))}function L0(t,e,l){switch(e.tag){case 3:ie(e,e.stateNode.containerInfo),zl(e,Gt,t.memoizedState.cache),da();break;case 27:case 5:Hn(e);break;case 4:ie(e,e.stateNode.containerInfo);break;case 10:zl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,rs(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Rl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Ud(t,e,l):(Rl(e),t=ol(t,e,l),t!==null?t.sibling:null);Rl(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(Ia(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return wd(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),w(Qt,Qt.current),a)break;return null;case 22:return e.lanes=0,Od(t,e,l,e.pendingProps);case 24:zl(e,Gt,t.memoizedState.cache)}return ol(t,e,l)}function Hd(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Xt=!0;else{if(!Qs(t,l)&&(e.flags&128)===0)return Xt=!1,L0(t,e,l);Xt=(t.flags&131072)!==0}else Xt=!1,dt&&(e.flags&1048576)!==0&&yo(e,In,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=va(e.elementType),e.type=t,typeof t=="function")Zc(t)?(a=xa(t,a),e.tag=1,e=Md(null,e,t,a,l)):(e.tag=0,e=Ms(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===Q){e.tag=11,e=Nd(null,e,t,a,l);break t}else if(n===P){e.tag=14,e=Ad(null,e,t,a,l);break t}}throw e=fe(t)||t,Error(r(306,e,""))}}return e;case 0:return Ms(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=xa(a,e.pendingProps),Md(t,e,a,n,l);case 3:t:{if(ie(e,e.stateNode.containerInfo),t===null)throw Error(r(387));a=e.pendingProps;var u=e.memoizedState;n=u.element,us(t,e),iu(e,a,null,l);var s=e.memoizedState;if(a=s.cache,zl(e,Gt,a),a!==u.cache&&Pc(e,[Gt],l,!0),uu(),a=s.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:s.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Rd(t,e,a,l);break t}else if(a!==n){n=Me(Error(r(424)),e),Pn(n),e=Rd(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Ct=He(t.firstChild),It=e,dt=!0,jl=null,qe=!0,l=Oo(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(da(),a===n){e=ol(t,e,l);break t}te(t,e,a,l)}e=e.child}return e;case 26:return zi(t,e),t===null?(l=kh(e.type,null,e.pendingProps,null))?e.memoizedState=l:dt||(l=e.type,t=e.pendingProps,a=Ki(it.current).createElement(l),a[$t]=e,a[re]=t,ee(a,l,t),kt(a),e.stateNode=a):e.memoizedState=kh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Hn(e),t===null&&dt&&(a=e.stateNode=Vh(e.type,e.pendingProps,it.current),It=e,qe=!0,n=Ct,Yl(e.type)?(bf=n,Ct=He(a.firstChild)):Ct=n),te(t,e,e.pendingProps.children,l),zi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&dt&&((n=a=Ct)&&(a=vv(a,e.type,e.pendingProps,qe),a!==null?(e.stateNode=a,It=e,Ct=He(a.firstChild),qe=!1,n=!0):n=!1),n||Ol(e)),Hn(e),n=e.type,u=e.pendingProps,s=t!==null?t.memoizedProps:null,a=u.children,mf(n,u)?a=null:s!==null&&mf(n,s)&&(e.flags|=32),e.memoizedState!==null&&(n=ds(t,e,C0,null,null,l),Au._currentValue=n),zi(t,e),te(t,e,a,l),e.child;case 6:return t===null&&dt&&((t=l=Ct)&&(l=pv(l,e.pendingProps,qe),l!==null?(e.stateNode=l,It=e,Ct=null,t=!0):t=!1),t||Ol(e)),null;case 13:return Ud(t,e,l);case 4:return ie(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ga(e,null,a,l):te(t,e,a,l),e.child;case 11:return Nd(t,e,e.type,e.pendingProps,l);case 7:return te(t,e,e.pendingProps,l),e.child;case 8:return te(t,e,e.pendingProps.children,l),e.child;case 12:return te(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,zl(e,e.type,a.value),te(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,ma(e),n=Pt(n),a=a(n),e.flags|=1,te(t,e,a,l),e.child;case 14:return Ad(t,e,e.type,e.pendingProps,l);case 15:return jd(t,e,e.type,e.pendingProps,l);case 19:return wd(t,e,l);case 31:return Q0(t,e,l);case 22:return Od(t,e,l,e.pendingProps);case 24:return ma(e),a=Pt(Gt),t===null?(n=ls(),n===null&&(n=Dt,u=ts(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),e.memoizedState={parent:a,cache:n},ns(e),zl(e,Gt,n)):((t.lanes&l)!==0&&(us(t,e),iu(e,null,null,l),uu()),n=t.memoizedState,u=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),zl(e,Gt,a)):(a=u.cache,zl(e,Gt,a),a!==n.cache&&Pc(e,[Gt],l,!0))),te(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function dl(t){t.flags|=4}function Ls(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(rh())t.flags|=8192;else throw pa=mi,as}else t.flags&=-16777217}function Bd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ph(e))if(rh())t.flags|=8192;else throw pa=mi,as}function Ci(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?vr():536870912,t.lanes|=e,on|=e)}function du(t,e){if(!dt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Mt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function G0(t,e,l){var a=e.pendingProps;switch(kc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mt(e),null;case 1:return Mt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),sl(Gt),Bt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&($a(e)?dl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Wc())),Mt(e),null;case 26:var n=e.type,u=e.memoizedState;return t===null?(dl(e),u!==null?(Mt(e),Bd(e,u)):(Mt(e),Ls(e,n,null,a,l))):u?u!==t.memoizedState?(dl(e),Mt(e),Bd(e,u)):(Mt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&dl(e),Mt(e),Ls(e,n,t,a,l)),null;case 27:if(Yu(e),l=it.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&dl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Mt(e),null}t=G.current,$a(e)?po(e):(t=Vh(n,a,l),e.stateNode=t,dl(e))}return Mt(e),null;case 5:if(Yu(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&dl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Mt(e),null}if(u=G.current,$a(e))po(e);else{var s=Ki(it.current);switch(u){case 1:u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=s.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}u[$t]=e,u[re]=a;t:for(s=e.child;s!==null;){if(s.tag===5||s.tag===6)u.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break t;for(;s.sibling===null;){if(s.return===null||s.return===e)break t;s=s.return}s.sibling.return=s.return,s=s.sibling}e.stateNode=u;t:switch(ee(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&dl(e)}}return Mt(e),Ls(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&dl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(t=it.current,$a(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=It,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[$t]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Uh(t.nodeValue,l)),t||Ol(e,!0)}else t=Ki(t).createTextNode(a),t[$t]=e,e.stateNode=t}return Mt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=$a(e),l!==null){if(t===null){if(!a)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[$t]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Mt(e),t=!1}else l=Wc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Ne(e),e):(Ne(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Mt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=$a(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(r(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[$t]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Mt(e),n=!1}else n=Wc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(Ne(e),e):(Ne(e),null)}return Ne(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Ci(e,e.updateQueue),Mt(e),null);case 4:return Bt(),t===null&&ff(e.stateNode.containerInfo),Mt(e),null;case 10:return sl(e.type),Mt(e),null;case 19:if(M(Qt),a=e.memoizedState,a===null)return Mt(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)du(a,!1);else{if(wt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=gi(t),u!==null){for(e.flags|=128,du(a,!1),t=u.updateQueue,e.updateQueue=t,Ci(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)oo(l,t),l=l.sibling;return w(Qt,Qt.current&1|2),dt&&il(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&be()>wi&&(e.flags|=128,n=!0,du(a,!1),e.lanes=4194304)}else{if(!n)if(t=gi(u),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Ci(e,t),du(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!dt)return Mt(e),null}else 2*be()-a.renderingStartTime>wi&&l!==536870912&&(e.flags|=128,n=!0,du(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=be(),t.sibling=null,l=Qt.current,w(Qt,n?l&1|2:l&1),dt&&il(e,a.treeForkCount),t):(Mt(e),null);case 22:case 23:return Ne(e),fs(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Mt(e),e.subtreeFlags&6&&(e.flags|=8192)):Mt(e),l=e.updateQueue,l!==null&&Ci(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&M(ya),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),sl(Gt),Mt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Y0(t,e){switch(kc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return sl(Gt),Bt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Yu(e),null;case 31:if(e.memoizedState!==null){if(Ne(e),e.alternate===null)throw Error(r(340));da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ne(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return M(Qt),null;case 4:return Bt(),null;case 10:return sl(e.type),null;case 22:case 23:return Ne(e),fs(),t!==null&&M(ya),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return sl(Gt),null;case 25:return null;default:return null}}function Qd(t,e){switch(kc(e),e.tag){case 3:sl(Gt),Bt();break;case 26:case 27:case 5:Yu(e);break;case 4:Bt();break;case 31:e.memoizedState!==null&&Ne(e);break;case 13:Ne(e);break;case 19:M(Qt);break;case 10:sl(e.type);break;case 22:case 23:Ne(e),fs(),t!==null&&M(ya);break;case 24:sl(Gt)}}function hu(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var u=l.create,s=l.inst;a=u(),s.destroy=a}l=l.next}while(l!==n)}}catch(o){Tt(e,e.return,o)}}function ql(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var s=a.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,n=e;var m=l,_=o;try{_()}catch(O){Tt(n,m,O)}}}a=a.next}while(a!==u)}}catch(O){Tt(e,e.return,O)}}function Ld(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Do(e,l)}catch(a){Tt(t,t.return,a)}}}function Gd(t,e,l){l.props=xa(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){Tt(t,e,a)}}function mu(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){Tt(t,e,n)}}function $e(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Tt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Tt(t,e,n)}else l.current=null}function Yd(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Tt(t,t.return,n)}}function Gs(t,e,l){try{var a=t.stateNode;rv(a,t.type,l,e),a[re]=e}catch(n){Tt(t,t.return,n)}}function Xd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yl(t.type)||t.tag===4}function Ys(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Xd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Yl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Xs(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=al));else if(a!==4&&(a===27&&Yl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Xs(t,e,l),t=t.sibling;t!==null;)Xs(t,e,l),t=t.sibling}function Mi(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Yl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Mi(t,e,l),t=t.sibling;t!==null;)Mi(t,e,l),t=t.sibling}function Zd(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ee(e,a,l),e[$t]=t,e[re]=l}catch(u){Tt(t,t.return,u)}}var hl=!1,Zt=!1,Zs=!1,Vd=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function X0(t,e){if(t=t.containerInfo,df=Pi,t=lo(t),Hc(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var s=0,o=-1,m=-1,_=0,O=0,C=t,E=null;e:for(;;){for(var N;C!==l||n!==0&&C.nodeType!==3||(o=s+n),C!==u||a!==0&&C.nodeType!==3||(m=s+a),C.nodeType===3&&(s+=C.nodeValue.length),(N=C.firstChild)!==null;)E=C,C=N;for(;;){if(C===t)break e;if(E===l&&++_===n&&(o=s),E===u&&++O===a&&(m=s),(N=C.nextSibling)!==null)break;C=E,E=C.parentNode}C=N}l=o===-1||m===-1?null:{start:o,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(hf={focusedElem:t,selectionRange:l},Pi=!1,Ft=e;Ft!==null;)if(e=Ft,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ft=t;else for(;Ft!==null;){switch(e=Ft,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var L=xa(l.type,n);t=a.getSnapshotBeforeUpdate(L,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(J){Tt(l,l.return,J)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)vf(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":vf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,Ft=t;break}Ft=e.return}}function Kd(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:yl(t,l),a&4&&hu(5,l);break;case 1:if(yl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(s){Tt(l,l.return,s)}else{var n=xa(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(s){Tt(l,l.return,s)}}a&64&&Ld(l),a&512&&mu(l,l.return);break;case 3:if(yl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Do(t,e)}catch(s){Tt(l,l.return,s)}}break;case 27:e===null&&a&4&&Zd(l);case 26:case 5:yl(t,l),e===null&&a&4&&Yd(l),a&512&&mu(l,l.return);break;case 12:yl(t,l);break;case 31:yl(t,l),a&4&&Fd(t,l);break;case 13:yl(t,l),a&4&&Wd(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=I0.bind(null,l),gv(t,l))));break;case 22:if(a=l.memoizedState!==null||hl,!a){e=e!==null&&e.memoizedState!==null||Zt,n=hl;var u=Zt;hl=a,(Zt=e)&&!u?vl(t,l,(l.subtreeFlags&8772)!==0):yl(t,l),hl=n,Zt=u}break;case 30:break;default:yl(t,l)}}function Jd(t){var e=t.alternate;e!==null&&(t.alternate=null,Jd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&xc(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Rt=null,de=!1;function ml(t,e,l){for(l=l.child;l!==null;)kd(t,e,l),l=l.sibling}function kd(t,e,l){if(xe&&typeof xe.onCommitFiberUnmount=="function")try{xe.onCommitFiberUnmount(Bn,l)}catch{}switch(l.tag){case 26:Zt||$e(l,e),ml(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Zt||$e(l,e);var a=Rt,n=de;Yl(l.type)&&(Rt=l.stateNode,de=!1),ml(t,e,l),Eu(l.stateNode),Rt=a,de=n;break;case 5:Zt||$e(l,e);case 6:if(a=Rt,n=de,Rt=null,ml(t,e,l),Rt=a,de=n,Rt!==null)if(de)try{(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt).removeChild(l.stateNode)}catch(u){Tt(l,e,u)}else try{Rt.removeChild(l.stateNode)}catch(u){Tt(l,e,u)}break;case 18:Rt!==null&&(de?(t=Rt,Lh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),bn(t)):Lh(Rt,l.stateNode));break;case 4:a=Rt,n=de,Rt=l.stateNode.containerInfo,de=!0,ml(t,e,l),Rt=a,de=n;break;case 0:case 11:case 14:case 15:ql(2,l,e),Zt||ql(4,l,e),ml(t,e,l);break;case 1:Zt||($e(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Gd(l,e,a)),ml(t,e,l);break;case 21:ml(t,e,l);break;case 22:Zt=(a=Zt)||l.memoizedState!==null,ml(t,e,l),Zt=a;break;default:ml(t,e,l)}}function Fd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{bn(t)}catch(l){Tt(e,e.return,l)}}}function Wd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{bn(t)}catch(l){Tt(e,e.return,l)}}function Z0(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Vd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Vd),e;default:throw Error(r(435,t.tag))}}function Ri(t,e){var l=Z0(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=P0.bind(null,t,a);a.then(n,n)}})}function he(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=t,s=e,o=s;t:for(;o!==null;){switch(o.tag){case 27:if(Yl(o.type)){Rt=o.stateNode,de=!1;break t}break;case 5:Rt=o.stateNode,de=!1;break t;case 3:case 4:Rt=o.stateNode.containerInfo,de=!0;break t}o=o.return}if(Rt===null)throw Error(r(160));kd(u,s,n),Rt=null,de=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)$d(e,t),e=e.sibling}var Xe=null;function $d(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:he(e,t),me(t),a&4&&(ql(3,t,t.return),hu(3,t),ql(5,t,t.return));break;case 1:he(e,t),me(t),a&512&&(Zt||l===null||$e(l,l.return)),a&64&&hl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Xe;if(he(e,t),me(t),a&512&&(Zt||l===null||$e(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Gn]||u[$t]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),ee(u,a,l),u[$t]=t,kt(u),a=u;break t;case"link":var s=$h("link","href",n).get(a+(l.href||""));if(s){for(var o=0;o<s.length;o++)if(u=s[o],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){s.splice(o,1);break e}}u=n.createElement(a),ee(u,a,l),n.head.appendChild(u);break;case"meta":if(s=$h("meta","content",n).get(a+(l.content||""))){for(o=0;o<s.length;o++)if(u=s[o],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){s.splice(o,1);break e}}u=n.createElement(a),ee(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[$t]=t,kt(u),a=u}t.stateNode=a}else Ih(n,t.type,t.stateNode);else t.stateNode=Wh(n,a,t.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Ih(n,t.type,t.stateNode):Wh(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Gs(t,t.memoizedProps,l.memoizedProps)}break;case 27:he(e,t),me(t),a&512&&(Zt||l===null||$e(l,l.return)),l!==null&&a&4&&Gs(t,t.memoizedProps,l.memoizedProps);break;case 5:if(he(e,t),me(t),a&512&&(Zt||l===null||$e(l,l.return)),t.flags&32){n=t.stateNode;try{Ga(n,"")}catch(L){Tt(t,t.return,L)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Gs(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Zs=!0);break;case 6:if(he(e,t),me(t),a&4){if(t.stateNode===null)throw Error(r(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(L){Tt(t,t.return,L)}}break;case 3:if(Fi=null,n=Xe,Xe=Ji(e.containerInfo),he(e,t),Xe=n,me(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{bn(e.containerInfo)}catch(L){Tt(t,t.return,L)}Zs&&(Zs=!1,Id(t));break;case 4:a=Xe,Xe=Ji(t.stateNode.containerInfo),he(e,t),me(t),Xe=a;break;case 12:he(e,t),me(t);break;case 31:he(e,t),me(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ri(t,a)));break;case 13:he(e,t),me(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(qi=be()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ri(t,a)));break;case 22:n=t.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,_=hl,O=Zt;if(hl=_||n,Zt=O||m,he(e,t),Zt=O,hl=_,me(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||m||hl||Zt||Sa(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){m=l=e;try{if(u=m.stateNode,n)s=u.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{o=m.stateNode;var C=m.memoizedProps.style,E=C!=null&&C.hasOwnProperty("display")?C.display:null;o.style.display=E==null||typeof E=="boolean"?"":(""+E).trim()}}catch(L){Tt(m,m.return,L)}}}else if(e.tag===6){if(l===null){m=e;try{m.stateNode.nodeValue=n?"":m.memoizedProps}catch(L){Tt(m,m.return,L)}}}else if(e.tag===18){if(l===null){m=e;try{var N=m.stateNode;n?Gh(N,!0):Gh(m.stateNode,!1)}catch(L){Tt(m,m.return,L)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Ri(t,l))));break;case 19:he(e,t),me(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ri(t,a)));break;case 30:break;case 21:break;default:he(e,t),me(t)}}function me(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(Xd(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=Ys(t);Mi(t,u,n);break;case 5:var s=l.stateNode;l.flags&32&&(Ga(s,""),l.flags&=-33);var o=Ys(t);Mi(t,o,s);break;case 3:case 4:var m=l.stateNode.containerInfo,_=Ys(t);Xs(t,_,m);break;default:throw Error(r(161))}}catch(O){Tt(t,t.return,O)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Id(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Id(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function yl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Kd(t,e.alternate,e),e=e.sibling}function Sa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ql(4,e,e.return),Sa(e);break;case 1:$e(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Gd(e,e.return,l),Sa(e);break;case 27:Eu(e.stateNode);case 26:case 5:$e(e,e.return),Sa(e);break;case 22:e.memoizedState===null&&Sa(e);break;case 30:Sa(e);break;default:Sa(e)}t=t.sibling}}function vl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,u=e,s=u.flags;switch(u.tag){case 0:case 11:case 15:vl(n,u,l),hu(4,u);break;case 1:if(vl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(_){Tt(a,a.return,_)}if(a=u,n=a.updateQueue,n!==null){var o=a.stateNode;try{var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)zo(m[n],o)}catch(_){Tt(a,a.return,_)}}l&&s&64&&Ld(u),mu(u,u.return);break;case 27:Zd(u);case 26:case 5:vl(n,u,l),l&&a===null&&s&4&&Yd(u),mu(u,u.return);break;case 12:vl(n,u,l);break;case 31:vl(n,u,l),l&&s&4&&Fd(n,u);break;case 13:vl(n,u,l),l&&s&4&&Wd(n,u);break;case 22:u.memoizedState===null&&vl(n,u,l),mu(u,u.return);break;case 30:break;default:vl(n,u,l)}e=e.sibling}}function Vs(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&tu(l))}function Ks(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&tu(t))}function Ze(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pd(t,e,l,a),e=e.sibling}function Pd(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Ze(t,e,l,a),n&2048&&hu(9,e);break;case 1:Ze(t,e,l,a);break;case 3:Ze(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&tu(t)));break;case 12:if(n&2048){Ze(t,e,l,a),t=e.stateNode;try{var u=e.memoizedProps,s=u.id,o=u.onPostCommit;typeof o=="function"&&o(s,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){Tt(e,e.return,m)}}else Ze(t,e,l,a);break;case 31:Ze(t,e,l,a);break;case 13:Ze(t,e,l,a);break;case 23:break;case 22:u=e.stateNode,s=e.alternate,e.memoizedState!==null?u._visibility&2?Ze(t,e,l,a):yu(t,e):u._visibility&2?Ze(t,e,l,a):(u._visibility|=2,sn(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&Vs(s,e);break;case 24:Ze(t,e,l,a),n&2048&&Ks(e.alternate,e);break;default:Ze(t,e,l,a)}}function sn(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,s=e,o=l,m=a,_=s.flags;switch(s.tag){case 0:case 11:case 15:sn(u,s,o,m,n),hu(8,s);break;case 23:break;case 22:var O=s.stateNode;s.memoizedState!==null?O._visibility&2?sn(u,s,o,m,n):yu(u,s):(O._visibility|=2,sn(u,s,o,m,n)),n&&_&2048&&Vs(s.alternate,s);break;case 24:sn(u,s,o,m,n),n&&_&2048&&Ks(s.alternate,s);break;default:sn(u,s,o,m,n)}e=e.sibling}}function yu(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:yu(l,a),n&2048&&Vs(a.alternate,a);break;case 24:yu(l,a),n&2048&&Ks(a.alternate,a);break;default:yu(l,a)}e=e.sibling}}var vu=8192;function fn(t,e,l){if(t.subtreeFlags&vu)for(t=t.child;t!==null;)th(t,e,l),t=t.sibling}function th(t,e,l){switch(t.tag){case 26:fn(t,e,l),t.flags&vu&&t.memoizedState!==null&&Dv(l,Xe,t.memoizedState,t.memoizedProps);break;case 5:fn(t,e,l);break;case 3:case 4:var a=Xe;Xe=Ji(t.stateNode.containerInfo),fn(t,e,l),Xe=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=vu,vu=16777216,fn(t,e,l),vu=a):fn(t,e,l));break;default:fn(t,e,l)}}function eh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function pu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Ft=a,ah(a,t)}eh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)lh(t),t=t.sibling}function lh(t){switch(t.tag){case 0:case 11:case 15:pu(t),t.flags&2048&&ql(9,t,t.return);break;case 3:pu(t);break;case 12:pu(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ui(t)):pu(t);break;default:pu(t)}}function Ui(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Ft=a,ah(a,t)}eh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ql(8,e,e.return),Ui(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Ui(e));break;default:Ui(e)}t=t.sibling}}function ah(t,e){for(;Ft!==null;){var l=Ft;switch(l.tag){case 0:case 11:case 15:ql(8,l,e);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:tu(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ft=a;else t:for(l=t;Ft!==null;){a=Ft;var n=a.sibling,u=a.return;if(Jd(a),a===l){Ft=null;break t}if(n!==null){n.return=u,Ft=n;break t}Ft=u}}}var V0={getCacheForType:function(t){var e=Pt(Gt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Pt(Gt).controller.signal}},K0=typeof WeakMap=="function"?WeakMap:Map,gt=0,Dt=null,ct=null,rt=0,Et=0,Ae=null,wl=!1,rn=!1,Js=!1,pl=0,wt=0,Hl=0,_a=0,ks=0,je=0,on=0,gu=null,ye=null,Fs=!1,qi=0,nh=0,wi=1/0,Hi=null,Bl=null,Jt=0,Ql=null,dn=null,gl=0,Ws=0,$s=null,uh=null,bu=0,Is=null;function Oe(){return(gt&2)!==0&&rt!==0?rt&-rt:z.T!==null?nf():xr()}function ih(){if(je===0)if((rt&536870912)===0||dt){var t=Vu;Vu<<=1,(Vu&3932160)===0&&(Vu=262144),je=t}else je=536870912;return t=Te.current,t!==null&&(t.flags|=32),je}function ve(t,e,l){(t===Dt&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(hn(t,0),Ll(t,rt,je,!1)),Ln(t,l),((gt&2)===0||t!==Dt)&&(t===Dt&&((gt&2)===0&&(_a|=l),wt===4&&Ll(t,rt,je,!1)),Ie(t))}function ch(t,e,l){if((gt&6)!==0)throw Error(r(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Qn(t,e),n=a?F0(t,e):tf(t,e,!0),u=a;do{if(n===0){rn&&!a&&Ll(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!J0(l)){n=tf(t,e,!1),u=!1;continue}if(n===2){if(u=e,t.errorRecoveryDisabledLanes&u)var s=0;else s=t.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){e=s;t:{var o=t;n=gu;var m=o.current.memoizedState.isDehydrated;if(m&&(hn(o,s).flags|=256),s=tf(o,s,!1),s!==2){if(Js&&!m){o.errorRecoveryDisabledLanes|=u,_a|=u,n=4;break t}u=ye,ye=n,u!==null&&(ye===null?ye=u:ye.push.apply(ye,u))}n=s}if(u=!1,n!==2)continue}}if(n===1){hn(t,0),Ll(t,e,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Ll(a,e,je,!wl);break t;case 2:ye=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(n=qi+300-be(),10<n)){if(Ll(a,e,je,!wl),Ju(a,0,!0)!==0)break t;gl=e,a.timeoutHandle=Bh(sh.bind(null,a,l,ye,Hi,Fs,e,je,_a,on,wl,u,"Throttled",-0,0),n);break t}sh(a,l,ye,Hi,Fs,e,je,_a,on,wl,u,null,-0,0)}}break}while(!0);Ie(t)}function sh(t,e,l,a,n,u,s,o,m,_,O,C,E,N){if(t.timeoutHandle=-1,C=e.subtreeFlags,C&8192||(C&16785408)===16785408){C={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:al},th(e,u,C);var L=(u&62914560)===u?qi-be():(u&4194048)===u?nh-be():0;if(L=Cv(C,L),L!==null){gl=u,t.cancelPendingCommit=L(vh.bind(null,t,e,u,l,a,n,s,o,m,O,C,null,E,N)),Ll(t,u,s,!_);return}}vh(t,e,u,l,a,n,s,o,m)}function J0(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!_e(u(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ll(t,e,l,a){e&=~ks,e&=~_a,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var u=31-Se(n),s=1<<u;a[u]=-1,n&=~s}l!==0&&pr(t,l,e)}function Bi(){return(gt&6)===0?(xu(0),!1):!0}function Ps(){if(ct!==null){if(Et===0)var t=ct.return;else t=ct,cl=ha=null,ys(t),ln=null,lu=0,t=ct;for(;t!==null;)Qd(t.alternate,t),t=t.return;ct=null}}function hn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,hv(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),gl=0,Ps(),Dt=t,ct=l=ul(t.current,null),rt=e,Et=0,Ae=null,wl=!1,rn=Qn(t,e),Js=!1,on=je=ks=_a=Hl=wt=0,ye=gu=null,Fs=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-Se(a),u=1<<n;e|=t[n],a&=~u}return pl=e,ui(),l}function fh(t,e){lt=null,z.H=ru,e===en||e===hi?(e=No(),Et=3):e===as?(e=No(),Et=4):Et=e===Cs?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ae=e,ct===null&&(wt=1,ji(t,Me(e,t.current)))}function rh(){var t=Te.current;return t===null?!0:(rt&4194048)===rt?we===null:(rt&62914560)===rt||(rt&536870912)!==0?t===we:!1}function oh(){var t=z.H;return z.H=ru,t===null?ru:t}function dh(){var t=z.A;return z.A=V0,t}function Qi(){wt=4,wl||(rt&4194048)!==rt&&Te.current!==null||(rn=!0),(Hl&134217727)===0&&(_a&134217727)===0||Dt===null||Ll(Dt,rt,je,!1)}function tf(t,e,l){var a=gt;gt|=2;var n=oh(),u=dh();(Dt!==t||rt!==e)&&(Hi=null,hn(t,e)),e=!1;var s=wt;t:do try{if(Et!==0&&ct!==null){var o=ct,m=Ae;switch(Et){case 8:Ps(),s=6;break t;case 3:case 2:case 9:case 6:Te.current===null&&(e=!0);var _=Et;if(Et=0,Ae=null,mn(t,o,m,_),l&&rn){s=0;break t}break;default:_=Et,Et=0,Ae=null,mn(t,o,m,_)}}k0(),s=wt;break}catch(O){fh(t,O)}while(!0);return e&&t.shellSuspendCounter++,cl=ha=null,gt=a,z.H=n,z.A=u,ct===null&&(Dt=null,rt=0,ui()),s}function k0(){for(;ct!==null;)hh(ct)}function F0(t,e){var l=gt;gt|=2;var a=oh(),n=dh();Dt!==t||rt!==e?(Hi=null,wi=be()+500,hn(t,e)):rn=Qn(t,e);t:do try{if(Et!==0&&ct!==null){e=ct;var u=Ae;e:switch(Et){case 1:Et=0,Ae=null,mn(t,e,u,1);break;case 2:case 9:if(Eo(u)){Et=0,Ae=null,mh(e);break}e=function(){Et!==2&&Et!==9||Dt!==t||(Et=7),Ie(t)},u.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:Eo(u)?(Et=0,Ae=null,mh(e)):(Et=0,Ae=null,mn(t,e,u,7));break;case 5:var s=null;switch(ct.tag){case 26:s=ct.memoizedState;case 5:case 27:var o=ct;if(s?Ph(s):o.stateNode.complete){Et=0,Ae=null;var m=o.sibling;if(m!==null)ct=m;else{var _=o.return;_!==null?(ct=_,Li(_)):ct=null}break e}}Et=0,Ae=null,mn(t,e,u,5);break;case 6:Et=0,Ae=null,mn(t,e,u,6);break;case 8:Ps(),wt=6;break t;default:throw Error(r(462))}}W0();break}catch(O){fh(t,O)}while(!0);return cl=ha=null,z.H=a,z.A=n,gt=l,ct!==null?0:(Dt=null,rt=0,ui(),wt)}function W0(){for(;ct!==null&&!by();)hh(ct)}function hh(t){var e=Hd(t.alternate,t,pl);t.memoizedProps=t.pendingProps,e===null?Li(t):ct=e}function mh(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Cd(l,e,e.pendingProps,e.type,void 0,rt);break;case 11:e=Cd(l,e,e.pendingProps,e.type.render,e.ref,rt);break;case 5:ys(e);default:Qd(l,e),e=ct=oo(e,pl),e=Hd(l,e,pl)}t.memoizedProps=t.pendingProps,e===null?Li(t):ct=e}function mn(t,e,l,a){cl=ha=null,ys(e),ln=null,lu=0;var n=e.return;try{if(B0(t,n,e,l,rt)){wt=1,ji(t,Me(l,t.current)),ct=null;return}}catch(u){if(n!==null)throw ct=n,u;wt=1,ji(t,Me(l,t.current)),ct=null;return}e.flags&32768?(dt||a===1?t=!0:rn||(rt&536870912)!==0?t=!1:(wl=t=!0,(a===2||a===9||a===3||a===6)&&(a=Te.current,a!==null&&a.tag===13&&(a.flags|=16384))),yh(e,t)):Li(e)}function Li(t){var e=t;do{if((e.flags&32768)!==0){yh(e,wl);return}t=e.return;var l=G0(e.alternate,e,pl);if(l!==null){ct=l;return}if(e=e.sibling,e!==null){ct=e;return}ct=e=t}while(e!==null);wt===0&&(wt=5)}function yh(t,e){do{var l=Y0(t.alternate,t);if(l!==null){l.flags&=32767,ct=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){ct=t;return}ct=t=l}while(t!==null);wt=6,ct=null}function vh(t,e,l,a,n,u,s,o,m){t.cancelPendingCommit=null;do Gi();while(Jt!==0);if((gt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=Yc,zy(t,l,u,s,o,m),t===Dt&&(ct=Dt=null,rt=0),dn=e,Ql=t,gl=l,Ws=u,$s=n,uh=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,tv(Xu,function(){return Sh(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,n=q.p,q.p=2,s=gt,gt|=4;try{X0(t,e,l)}finally{gt=s,q.p=n,z.T=a}}Jt=1,ph(),gh(),bh()}}function ph(){if(Jt===1){Jt=0;var t=Ql,e=dn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var a=q.p;q.p=2;var n=gt;gt|=4;try{$d(e,t);var u=hf,s=lo(t.containerInfo),o=u.focusedElem,m=u.selectionRange;if(s!==o&&o&&o.ownerDocument&&eo(o.ownerDocument.documentElement,o)){if(m!==null&&Hc(o)){var _=m.start,O=m.end;if(O===void 0&&(O=_),"selectionStart"in o)o.selectionStart=_,o.selectionEnd=Math.min(O,o.value.length);else{var C=o.ownerDocument||document,E=C&&C.defaultView||window;if(E.getSelection){var N=E.getSelection(),L=o.textContent.length,J=Math.min(m.start,L),Ot=m.end===void 0?J:Math.min(m.end,L);!N.extend&&J>Ot&&(s=Ot,Ot=J,J=s);var b=to(o,J),v=to(o,Ot);if(b&&v&&(N.rangeCount!==1||N.anchorNode!==b.node||N.anchorOffset!==b.offset||N.focusNode!==v.node||N.focusOffset!==v.offset)){var S=C.createRange();S.setStart(b.node,b.offset),N.removeAllRanges(),J>Ot?(N.addRange(S),N.extend(v.node,v.offset)):(S.setEnd(v.node,v.offset),N.addRange(S))}}}}for(C=[],N=o;N=N.parentNode;)N.nodeType===1&&C.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<C.length;o++){var D=C[o];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}Pi=!!df,hf=df=null}finally{gt=n,q.p=a,z.T=l}}t.current=e,Jt=2}}function gh(){if(Jt===2){Jt=0;var t=Ql,e=dn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var a=q.p;q.p=2;var n=gt;gt|=4;try{Kd(t,e.alternate,e)}finally{gt=n,q.p=a,z.T=l}}Jt=3}}function bh(){if(Jt===4||Jt===3){Jt=0,xy();var t=Ql,e=dn,l=gl,a=uh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,dn=Ql=null,xh(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(Bl=null),gc(l),e=e.stateNode,xe&&typeof xe.onCommitFiberRoot=="function")try{xe.onCommitFiberRoot(Bn,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=z.T,n=q.p,q.p=2,z.T=null;try{for(var u=t.onRecoverableError,s=0;s<a.length;s++){var o=a[s];u(o.value,{componentStack:o.stack})}}finally{z.T=e,q.p=n}}(gl&3)!==0&&Gi(),Ie(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===Is?bu++:(bu=0,Is=t):bu=0,xu(0)}}function xh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,tu(e)))}function Gi(){return ph(),gh(),bh(),Sh()}function Sh(){if(Jt!==5)return!1;var t=Ql,e=Ws;Ws=0;var l=gc(gl),a=z.T,n=q.p;try{q.p=32>l?32:l,z.T=null,l=$s,$s=null;var u=Ql,s=gl;if(Jt=0,dn=Ql=null,gl=0,(gt&6)!==0)throw Error(r(331));var o=gt;if(gt|=4,lh(u.current),Pd(u,u.current,s,l),gt=o,xu(0,!1),xe&&typeof xe.onPostCommitFiberRoot=="function")try{xe.onPostCommitFiberRoot(Bn,u)}catch{}return!0}finally{q.p=n,z.T=a,xh(t,e)}}function _h(t,e,l){e=Me(l,e),e=Ds(t.stateNode,e,2),t=Ml(t,e,2),t!==null&&(Ln(t,2),Ie(t))}function Tt(t,e,l){if(t.tag===3)_h(t,t,l);else for(;e!==null;){if(e.tag===3){_h(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Bl===null||!Bl.has(a))){t=Me(l,t),l=Ed(2),a=Ml(e,l,2),a!==null&&(Td(l,a,e,t),Ln(a,2),Ie(a));break}}e=e.return}}function ef(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new K0;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(Js=!0,n.add(l),t=$0.bind(null,t,e,l),e.then(t,t))}function $0(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Dt===t&&(rt&l)===l&&(wt===4||wt===3&&(rt&62914560)===rt&&300>be()-qi?(gt&2)===0&&hn(t,0):ks|=l,on===rt&&(on=0)),Ie(t)}function Eh(t,e){e===0&&(e=vr()),t=ra(t,e),t!==null&&(Ln(t,e),Ie(t))}function I0(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Eh(t,l)}function P0(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(e),Eh(t,l)}function tv(t,e){return mc(t,e)}var Yi=null,yn=null,lf=!1,Xi=!1,af=!1,Gl=0;function Ie(t){t!==yn&&t.next===null&&(yn===null?Yi=yn=t:yn=yn.next=t),Xi=!0,lf||(lf=!0,lv())}function xu(t,e){if(!af&&Xi){af=!0;do for(var l=!1,a=Yi;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var s=a.suspendedLanes,o=a.pingedLanes;u=(1<<31-Se(42|t)+1)-1,u&=n&~(s&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,jh(a,u))}else u=rt,u=Ju(a,a===Dt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Qn(a,u)||(l=!0,jh(a,u));a=a.next}while(l);af=!1}}function ev(){Th()}function Th(){Xi=lf=!1;var t=0;Gl!==0&&dv()&&(t=Gl);for(var e=be(),l=null,a=Yi;a!==null;){var n=a.next,u=Nh(a,e);u===0?(a.next=null,l===null?Yi=n:l.next=n,n===null&&(yn=l)):(l=a,(t!==0||(u&3)!==0)&&(Xi=!0)),a=n}Jt!==0&&Jt!==5||xu(t),Gl!==0&&(Gl=0)}function Nh(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var s=31-Se(u),o=1<<s,m=n[s];m===-1?((o&l)===0||(o&a)!==0)&&(n[s]=Oy(o,e)):m<=e&&(t.expiredLanes|=o),u&=~o}if(e=Dt,l=rt,l=Ju(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(Et===2||Et===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&yc(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Qn(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&yc(a),gc(l)){case 2:case 8:l=mr;break;case 32:l=Xu;break;case 268435456:l=yr;break;default:l=Xu}return a=Ah.bind(null,t),l=mc(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&yc(a),t.callbackPriority=2,t.callbackNode=null,2}function Ah(t,e){if(Jt!==0&&Jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Gi()&&t.callbackNode!==l)return null;var a=rt;return a=Ju(t,t===Dt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(ch(t,a,e),Nh(t,be()),t.callbackNode!=null&&t.callbackNode===l?Ah.bind(null,t):null)}function jh(t,e){if(Gi())return null;ch(t,e,!0)}function lv(){mv(function(){(gt&6)!==0?mc(hr,ev):Th()})}function nf(){if(Gl===0){var t=Pa;t===0&&(t=Zu,Zu<<=1,(Zu&261888)===0&&(Zu=256)),Gl=t}return Gl}function Oh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:$u(""+t)}function zh(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function av(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var u=Oh((n[re]||null).action),s=a.submitter;s&&(e=(e=s[re]||null)?Oh(e.formAction):s.getAttribute("formAction"),e!==null&&(u=e,s=null));var o=new ei("action","action",null,a,n);t.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Gl!==0){var m=s?zh(n,s):new FormData(n);Ts(l,{pending:!0,data:m,method:n.method,action:u},null,m)}}else typeof u=="function"&&(o.preventDefault(),m=s?zh(n,s):new FormData(n),Ts(l,{pending:!0,data:m,method:n.method,action:u},u,m))},currentTarget:n}]})}}for(var uf=0;uf<Gc.length;uf++){var cf=Gc[uf],nv=cf.toLowerCase(),uv=cf[0].toUpperCase()+cf.slice(1);Ye(nv,"on"+uv)}Ye(uo,"onAnimationEnd"),Ye(io,"onAnimationIteration"),Ye(co,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(S0,"onTransitionRun"),Ye(_0,"onTransitionStart"),Ye(E0,"onTransitionCancel"),Ye(so,"onTransitionEnd"),Qa("onMouseEnter",["mouseout","mouseover"]),Qa("onMouseLeave",["mouseout","mouseover"]),Qa("onPointerEnter",["pointerout","pointerover"]),Qa("onPointerLeave",["pointerout","pointerover"]),ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Su="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(" "),iv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Su));function Dh(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var u=void 0;if(e)for(var s=a.length-1;0<=s;s--){var o=a[s],m=o.instance,_=o.currentTarget;if(o=o.listener,m!==u&&n.isPropagationStopped())break t;u=o,n.currentTarget=_;try{u(n)}catch(O){ni(O)}n.currentTarget=null,u=m}else for(s=0;s<a.length;s++){if(o=a[s],m=o.instance,_=o.currentTarget,o=o.listener,m!==u&&n.isPropagationStopped())break t;u=o,n.currentTarget=_;try{u(n)}catch(O){ni(O)}n.currentTarget=null,u=m}}}}function st(t,e){var l=e[bc];l===void 0&&(l=e[bc]=new Set);var a=t+"__bubble";l.has(a)||(Ch(e,t,2,!1),l.add(a))}function sf(t,e,l){var a=0;e&&(a|=4),Ch(l,t,a,e)}var Zi="_reactListening"+Math.random().toString(36).slice(2);function ff(t){if(!t[Zi]){t[Zi]=!0,Er.forEach(function(l){l!=="selectionchange"&&(iv.has(l)||sf(l,!1,t),sf(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Zi]||(e[Zi]=!0,sf("selectionchange",!1,e))}}function Ch(t,e,l,a){switch(im(e)){case 2:var n=Uv;break;case 8:n=qv;break;default:n=Tf}l=n.bind(null,e,l,t),n=void 0,!Oc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function rf(t,e,l,a,n){var u=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var o=a.stateNode.containerInfo;if(o===n)break;if(s===4)for(s=a.return;s!==null;){var m=s.tag;if((m===3||m===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;o!==null;){if(s=wa(o),s===null)return;if(m=s.tag,m===5||m===6||m===26||m===27){a=u=s;continue t}o=o.parentNode}}a=a.return}qr(function(){var _=u,O=Ac(l),C=[];t:{var E=fo.get(t);if(E!==void 0){var N=ei,L=t;switch(t){case"keypress":if(Pu(l)===0)break t;case"keydown":case"keyup":N=Py;break;case"focusin":L="focus",N=Mc;break;case"focusout":L="blur",N=Mc;break;case"beforeblur":case"afterblur":N=Mc;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=Br;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=Gy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=l0;break;case uo:case io:case co:N=Zy;break;case so:N=n0;break;case"scroll":case"scrollend":N=Qy;break;case"wheel":N=i0;break;case"copy":case"cut":case"paste":N=Ky;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=Lr;break;case"toggle":case"beforetoggle":N=s0}var J=(e&4)!==0,Ot=!J&&(t==="scroll"||t==="scrollend"),b=J?E!==null?E+"Capture":null:E;J=[];for(var v=_,S;v!==null;){var D=v;if(S=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||S===null||b===null||(D=Xn(v,b),D!=null&&J.push(_u(v,D,S))),Ot)break;v=v.return}0<J.length&&(E=new N(E,L,null,l,O),C.push({event:E,listeners:J}))}}if((e&7)===0){t:{if(E=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",E&&l!==Nc&&(L=l.relatedTarget||l.fromElement)&&(wa(L)||L[qa]))break t;if((N||E)&&(E=O.window===O?O:(E=O.ownerDocument)?E.defaultView||E.parentWindow:window,N?(L=l.relatedTarget||l.toElement,N=_,L=L?wa(L):null,L!==null&&(Ot=y(L),J=L.tag,L!==Ot||J!==5&&J!==27&&J!==6)&&(L=null)):(N=null,L=_),N!==L)){if(J=Br,D="onMouseLeave",b="onMouseEnter",v="mouse",(t==="pointerout"||t==="pointerover")&&(J=Lr,D="onPointerLeave",b="onPointerEnter",v="pointer"),Ot=N==null?E:Yn(N),S=L==null?E:Yn(L),E=new J(D,v+"leave",N,l,O),E.target=Ot,E.relatedTarget=S,D=null,wa(O)===_&&(J=new J(b,v+"enter",L,l,O),J.target=S,J.relatedTarget=Ot,D=J),Ot=D,N&&L)e:{for(J=cv,b=N,v=L,S=0,D=b;D;D=J(D))S++;D=0;for(var Z=v;Z;Z=J(Z))D++;for(;0<S-D;)b=J(b),S--;for(;0<D-S;)v=J(v),D--;for(;S--;){if(b===v||v!==null&&b===v.alternate){J=b;break e}b=J(b),v=J(v)}J=null}else J=null;N!==null&&Mh(C,E,N,J,!1),L!==null&&Ot!==null&&Mh(C,Ot,L,J,!0)}}t:{if(E=_?Yn(_):window,N=E.nodeName&&E.nodeName.toLowerCase(),N==="select"||N==="input"&&E.type==="file")var yt=kr;else if(Kr(E))if(Fr)yt=g0;else{yt=v0;var Y=y0}else N=E.nodeName,!N||N.toLowerCase()!=="input"||E.type!=="checkbox"&&E.type!=="radio"?_&&Tc(_.elementType)&&(yt=kr):yt=p0;if(yt&&(yt=yt(t,_))){Jr(C,yt,l,O);break t}Y&&Y(t,E,_),t==="focusout"&&_&&E.type==="number"&&_.memoizedProps.value!=null&&Ec(E,"number",E.value)}switch(Y=_?Yn(_):window,t){case"focusin":(Kr(Y)||Y.contentEditable==="true")&&(Va=Y,Bc=_,$n=null);break;case"focusout":$n=Bc=Va=null;break;case"mousedown":Qc=!0;break;case"contextmenu":case"mouseup":case"dragend":Qc=!1,ao(C,l,O);break;case"selectionchange":if(x0)break;case"keydown":case"keyup":ao(C,l,O)}var ut;if(Uc)t:{switch(t){case"compositionstart":var ot="onCompositionStart";break t;case"compositionend":ot="onCompositionEnd";break t;case"compositionupdate":ot="onCompositionUpdate";break t}ot=void 0}else Za?Zr(t,l)&&(ot="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(ot="onCompositionStart");ot&&(Gr&&l.locale!=="ko"&&(Za||ot!=="onCompositionStart"?ot==="onCompositionEnd"&&Za&&(ut=wr()):(Nl=O,zc="value"in Nl?Nl.value:Nl.textContent,Za=!0)),Y=Vi(_,ot),0<Y.length&&(ot=new Qr(ot,t,null,l,O),C.push({event:ot,listeners:Y}),ut?ot.data=ut:(ut=Vr(l),ut!==null&&(ot.data=ut)))),(ut=r0?o0(t,l):d0(t,l))&&(ot=Vi(_,"onBeforeInput"),0<ot.length&&(Y=new Qr("onBeforeInput","beforeinput",null,l,O),C.push({event:Y,listeners:ot}),Y.data=ut)),av(C,t,_,l,O)}Dh(C,e)})}function _u(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Vi(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Xn(t,l),n!=null&&a.unshift(_u(t,n,u)),n=Xn(t,e),n!=null&&a.push(_u(t,n,u))),t.tag===3)return a;t=t.return}return[]}function cv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Mh(t,e,l,a,n){for(var u=e._reactName,s=[];l!==null&&l!==a;){var o=l,m=o.alternate,_=o.stateNode;if(o=o.tag,m!==null&&m===a)break;o!==5&&o!==26&&o!==27||_===null||(m=_,n?(_=Xn(l,u),_!=null&&s.unshift(_u(l,_,m))):n||(_=Xn(l,u),_!=null&&s.push(_u(l,_,m)))),l=l.return}s.length!==0&&t.push({event:e,listeners:s})}var sv=/\r\n?/g,fv=/\u0000|\uFFFD/g;function Rh(t){return(typeof t=="string"?t:""+t).replace(sv,`
49
- `).replace(fv,"")}function Uh(t,e){return e=Rh(e),Rh(t)===e}function jt(t,e,l,a,n,u){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ga(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ga(t,""+a);break;case"className":Fu(t,"class",a);break;case"tabIndex":Fu(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Fu(t,l,a);break;case"style":Rr(t,a,u);break;case"data":if(e!=="object"){Fu(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=$u(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.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 u=="function"&&(l==="formAction"?(e!=="input"&&jt(t,e,"name",n.name,n,null),jt(t,e,"formEncType",n.formEncType,n,null),jt(t,e,"formMethod",n.formMethod,n,null),jt(t,e,"formTarget",n.formTarget,n,null)):(jt(t,e,"encType",n.encType,n,null),jt(t,e,"method",n.method,n,null),jt(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=$u(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=al);break;case"onScroll":a!=null&&st("scroll",t);break;case"onScrollEnd":a!=null&&st("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=$u(""+a),t.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"?t.setAttribute(l,""+a):t.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"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":st("beforetoggle",t),st("toggle",t),ku(t,"popover",a);break;case"xlinkActuate":ll(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ll(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ll(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ll(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ll(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ll(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ll(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ll(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ll(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ku(t,"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=Hy.get(l)||l,ku(t,l,a))}}function of(t,e,l,a,n,u){switch(l){case"style":Rr(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof a=="string"?Ga(t,a):(typeof a=="number"||typeof a=="bigint")&&Ga(t,""+a);break;case"onScroll":a!=null&&st("scroll",t);break;case"onScrollEnd":a!=null&&st("scrollend",t);break;case"onClick":a!=null&&(t.onclick=al);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tr.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),u=t[re]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):ku(t,l,a)}}}function ee(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":st("error",t),st("load",t);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var s=l[u];if(s!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:jt(t,e,u,s,l,null)}}n&&jt(t,e,"srcSet",l.srcSet,l,null),a&&jt(t,e,"src",l.src,l,null);return;case"input":st("invalid",t);var o=u=s=n=null,m=null,_=null;for(a in l)if(l.hasOwnProperty(a)){var O=l[a];if(O!=null)switch(a){case"name":n=O;break;case"type":s=O;break;case"checked":m=O;break;case"defaultChecked":_=O;break;case"value":u=O;break;case"defaultValue":o=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,e));break;default:jt(t,e,a,O,l,null)}}zr(t,u,o,m,_,s,n,!1);return;case"select":st("invalid",t),a=s=u=null;for(n in l)if(l.hasOwnProperty(n)&&(o=l[n],o!=null))switch(n){case"value":u=o;break;case"defaultValue":s=o;break;case"multiple":a=o;default:jt(t,e,n,o,l,null)}e=u,l=s,t.multiple=!!a,e!=null?La(t,!!a,e,!1):l!=null&&La(t,!!a,l,!0);return;case"textarea":st("invalid",t),u=n=a=null;for(s in l)if(l.hasOwnProperty(s)&&(o=l[s],o!=null))switch(s){case"value":a=o;break;case"defaultValue":n=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:jt(t,e,s,o,l,null)}Cr(t,a,n,u);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(a=l[m],a!=null))switch(m){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:jt(t,e,m,a,l,null)}return;case"dialog":st("beforetoggle",t),st("toggle",t),st("cancel",t),st("close",t);break;case"iframe":case"object":st("load",t);break;case"video":case"audio":for(a=0;a<Su.length;a++)st(Su[a],t);break;case"image":st("error",t),st("load",t);break;case"details":st("toggle",t);break;case"embed":case"source":case"link":st("error",t),st("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in l)if(l.hasOwnProperty(_)&&(a=l[_],a!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:jt(t,e,_,a,l,null)}return;default:if(Tc(e)){for(O in l)l.hasOwnProperty(O)&&(a=l[O],a!==void 0&&of(t,e,O,a,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&jt(t,e,o,a,l,null))}function rv(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,s=null,o=null,m=null,_=null,O=null;for(N in l){var C=l[N];if(l.hasOwnProperty(N)&&C!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":m=C;default:a.hasOwnProperty(N)||jt(t,e,N,null,a,C)}}for(var E in a){var N=a[E];if(C=l[E],a.hasOwnProperty(E)&&(N!=null||C!=null))switch(E){case"type":u=N;break;case"name":n=N;break;case"checked":_=N;break;case"defaultChecked":O=N;break;case"value":s=N;break;case"defaultValue":o=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(137,e));break;default:N!==C&&jt(t,e,E,N,a,C)}}_c(t,s,o,m,_,O,u,n);return;case"select":N=s=o=E=null;for(u in l)if(m=l[u],l.hasOwnProperty(u)&&m!=null)switch(u){case"value":break;case"multiple":N=m;default:a.hasOwnProperty(u)||jt(t,e,u,null,a,m)}for(n in a)if(u=a[n],m=l[n],a.hasOwnProperty(n)&&(u!=null||m!=null))switch(n){case"value":E=u;break;case"defaultValue":o=u;break;case"multiple":s=u;default:u!==m&&jt(t,e,n,u,a,m)}e=o,l=s,a=N,E!=null?La(t,!!l,E,!1):!!a!=!!l&&(e!=null?La(t,!!l,e,!0):La(t,!!l,l?[]:"",!1));return;case"textarea":N=E=null;for(o in l)if(n=l[o],l.hasOwnProperty(o)&&n!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:jt(t,e,o,null,a,n)}for(s in a)if(n=a[s],u=l[s],a.hasOwnProperty(s)&&(n!=null||u!=null))switch(s){case"value":E=n;break;case"defaultValue":N=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&jt(t,e,s,n,a,u)}Dr(t,E,N);return;case"option":for(var L in l)if(E=l[L],l.hasOwnProperty(L)&&E!=null&&!a.hasOwnProperty(L))switch(L){case"selected":t.selected=!1;break;default:jt(t,e,L,null,a,E)}for(m in a)if(E=a[m],N=l[m],a.hasOwnProperty(m)&&E!==N&&(E!=null||N!=null))switch(m){case"selected":t.selected=E&&typeof E!="function"&&typeof E!="symbol";break;default:jt(t,e,m,E,a,N)}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 J in l)E=l[J],l.hasOwnProperty(J)&&E!=null&&!a.hasOwnProperty(J)&&jt(t,e,J,null,a,E);for(_ in a)if(E=a[_],N=l[_],a.hasOwnProperty(_)&&E!==N&&(E!=null||N!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(137,e));break;default:jt(t,e,_,E,a,N)}return;default:if(Tc(e)){for(var Ot in l)E=l[Ot],l.hasOwnProperty(Ot)&&E!==void 0&&!a.hasOwnProperty(Ot)&&of(t,e,Ot,void 0,a,E);for(O in a)E=a[O],N=l[O],!a.hasOwnProperty(O)||E===N||E===void 0&&N===void 0||of(t,e,O,E,a,N);return}}for(var b in l)E=l[b],l.hasOwnProperty(b)&&E!=null&&!a.hasOwnProperty(b)&&jt(t,e,b,null,a,E);for(C in a)E=a[C],N=l[C],!a.hasOwnProperty(C)||E===N||E==null&&N==null||jt(t,e,C,E,a,N)}function qh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ov(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,s=n.initiatorType,o=n.duration;if(u&&o&&qh(s)){for(s=0,o=n.responseEnd,a+=1;a<l.length;a++){var m=l[a],_=m.startTime;if(_>o)break;var O=m.transferSize,C=m.initiatorType;O&&qh(C)&&(m=m.responseEnd,s+=O*(m<o?1:(o-_)/(m-_)))}if(--a,e+=8*(u+s)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var df=null,hf=null;function Ki(t){return t.nodeType===9?t:t.ownerDocument}function wh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Hh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function mf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var yf=null;function dv(){var t=window.event;return t&&t.type==="popstate"?t===yf?!1:(yf=t,!0):(yf=null,!1)}var Bh=typeof setTimeout=="function"?setTimeout:void 0,hv=typeof clearTimeout=="function"?clearTimeout:void 0,Qh=typeof Promise=="function"?Promise:void 0,mv=typeof queueMicrotask=="function"?queueMicrotask:typeof Qh<"u"?function(t){return Qh.resolve(null).then(t).catch(yv)}:Bh;function yv(t){setTimeout(function(){throw t})}function Yl(t){return t==="head"}function Lh(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),bn(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Eu(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Eu(l);for(var u=l.firstChild;u;){var s=u.nextSibling,o=u.nodeName;u[Gn]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=s}}else l==="body"&&Eu(t.ownerDocument.body);l=n}while(l);bn(e)}function Gh(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function vf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":vf(l),xc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function vv(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Gn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=He(t.nextSibling),t===null)break}return null}function pv(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=He(t.nextSibling),t===null))return null;return t}function Yh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=He(t.nextSibling),t===null))return null;return t}function pf(t){return t.data==="$?"||t.data==="$~"}function gf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function gv(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function He(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var bf=null;function Xh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return He(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Zh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Vh(t,e,l){switch(e=Ki(l),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Eu(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);xc(t)}var Be=new Map,Kh=new Set;function Ji(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var bl=q.d;q.d={f:bv,r:xv,D:Sv,C:_v,L:Ev,m:Tv,X:Av,S:Nv,M:jv};function bv(){var t=bl.f(),e=Bi();return t||e}function xv(t){var e=Ha(t);e!==null&&e.tag===5&&e.type==="form"?fd(e):bl.r(t)}var vn=typeof document>"u"?null:document;function Jh(t,e,l){var a=vn;if(a&&typeof e=="string"&&e){var n=De(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Kh.has(n)||(Kh.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),ee(e,"link",t),kt(e),a.head.appendChild(e)))}}function Sv(t){bl.D(t),Jh("dns-prefetch",t,null)}function _v(t,e){bl.C(t,e),Jh("preconnect",t,e)}function Ev(t,e,l){bl.L(t,e,l);var a=vn;if(a&&t&&e){var n='link[rel="preload"][as="'+De(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+De(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+De(l.imageSizes)+'"]')):n+='[href="'+De(t)+'"]';var u=n;switch(e){case"style":u=pn(t);break;case"script":u=gn(t)}Be.has(u)||(t=R({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Be.set(u,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(Tu(u))||e==="script"&&a.querySelector(Nu(u))||(e=a.createElement("link"),ee(e,"link",t),kt(e),a.head.appendChild(e)))}}function Tv(t,e){bl.m(t,e);var l=vn;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+De(a)+'"][href="'+De(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=gn(t)}if(!Be.has(u)&&(t=R({rel:"modulepreload",href:t},e),Be.set(u,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Nu(u)))return}a=l.createElement("link"),ee(a,"link",t),kt(a),l.head.appendChild(a)}}}function Nv(t,e,l){bl.S(t,e,l);var a=vn;if(a&&t){var n=Ba(a).hoistableStyles,u=pn(t);e=e||"default";var s=n.get(u);if(!s){var o={loading:0,preload:null};if(s=a.querySelector(Tu(u)))o.loading=5;else{t=R({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Be.get(u))&&xf(t,l);var m=s=a.createElement("link");kt(m),ee(m,"link",t),m._p=new Promise(function(_,O){m.onload=_,m.onerror=O}),m.addEventListener("load",function(){o.loading|=1}),m.addEventListener("error",function(){o.loading|=2}),o.loading|=4,ki(s,e,a)}s={type:"stylesheet",instance:s,count:1,state:o},n.set(u,s)}}}function Av(t,e){bl.X(t,e);var l=vn;if(l&&t){var a=Ba(l).hoistableScripts,n=gn(t),u=a.get(n);u||(u=l.querySelector(Nu(n)),u||(t=R({src:t,async:!0},e),(e=Be.get(n))&&Sf(t,e),u=l.createElement("script"),kt(u),ee(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function jv(t,e){bl.M(t,e);var l=vn;if(l&&t){var a=Ba(l).hoistableScripts,n=gn(t),u=a.get(n);u||(u=l.querySelector(Nu(n)),u||(t=R({src:t,async:!0,type:"module"},e),(e=Be.get(n))&&Sf(t,e),u=l.createElement("script"),kt(u),ee(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function kh(t,e,l,a){var n=(n=it.current)?Ji(n):null;if(!n)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=pn(l.href),l=Ba(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=pn(l.href);var u=Ba(n).hoistableStyles,s=u.get(t);if(s||(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,s),(u=n.querySelector(Tu(t)))&&!u._p&&(s.instance=u,s.state.loading=5),Be.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Be.set(t,l),u||Ov(n,t,l,s.state))),e&&a===null)throw Error(r(528,""));return s}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=gn(l),l=Ba(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function pn(t){return'href="'+De(t)+'"'}function Tu(t){return'link[rel="stylesheet"]['+t+"]"}function Fh(t){return R({},t,{"data-precedence":t.precedence,precedence:null})}function Ov(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ee(e,"link",l),kt(e),t.head.appendChild(e))}function gn(t){return'[src="'+De(t)+'"]'}function Nu(t){return"script[async]"+t}function Wh(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+De(l.href)+'"]');if(a)return e.instance=a,kt(a),a;var n=R({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),kt(a),ee(a,"style",n),ki(a,l.precedence,t),e.instance=a;case"stylesheet":n=pn(l.href);var u=t.querySelector(Tu(n));if(u)return e.state.loading|=4,e.instance=u,kt(u),u;a=Fh(l),(n=Be.get(n))&&xf(a,n),u=(t.ownerDocument||t).createElement("link"),kt(u);var s=u;return s._p=new Promise(function(o,m){s.onload=o,s.onerror=m}),ee(u,"link",a),e.state.loading|=4,ki(u,l.precedence,t),e.instance=u;case"script":return u=gn(l.src),(n=t.querySelector(Nu(u)))?(e.instance=n,kt(n),n):(a=l,(n=Be.get(u))&&(a=R({},l),Sf(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),kt(n),ee(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,ki(a,l.precedence,t));return e.instance}function ki(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,s=0;s<a.length;s++){var o=a[s];if(o.dataset.precedence===e)u=o;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function xf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Sf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Fi=null;function $h(t,e,l){if(Fi===null){var a=new Map,n=Fi=new Map;n.set(l,a)}else n=Fi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var u=l[n];if(!(u[Gn]||u[$t]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var s=u.getAttribute(e)||"";s=t+s;var o=a.get(s);o?o.push(u):a.set(s,[u])}}return a}function Ih(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function zv(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Ph(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Dv(t,e,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=pn(a.href),u=e.querySelector(Tu(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Wi.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,kt(u);return}u=e.ownerDocument||e,a=Fh(a),(n=Be.get(n))&&xf(a,n),u=u.createElement("link"),kt(u);var s=u;s._p=new Promise(function(o,m){s.onload=o,s.onerror=m}),ee(u,"link",a),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Wi.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var _f=0;function Cv(t,e){return t.stylesheets&&t.count===0&&Ii(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&Ii(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&_f===0&&(_f=62500*ov());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ii(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>_f?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Wi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ii(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var $i=null;function Ii(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,$i=new Map,e.forEach(Mv,t),$i=null,Wi.call(t))}function Mv(t,e){if(!(e.state.loading&4)){var l=$i.get(t);if(l)var a=l.get(null);else{l=new Map,$i.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var s=n[u];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),a=s)}a&&l.set(null,a)}n=e.instance,s=n.getAttribute("data-precedence"),u=l.get(s)||a,u===a&&l.set(null,n),l.set(s,n),this.count++,a=Wi.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Au={$$typeof:K,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Rv(t,e,l,a,n,u,s,o,m){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=vc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vc(0),this.hiddenUpdates=vc(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function tm(t,e,l,a,n,u,s,o,m,_,O,C){return t=new Rv(t,e,l,s,m,_,O,C,o),e=1,u===!0&&(e|=24),u=Ee(3,null,null,e),t.current=u,u.stateNode=t,e=ts(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:e},ns(u),t}function em(t){return t?(t=ka,t):ka}function lm(t,e,l,a,n,u){n=em(n),a.context===null?a.context=n:a.pendingContext=n,a=Cl(e),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Ml(t,a,e),l!==null&&(ve(l,t,e),nu(l,t,e))}function am(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Ef(t,e){am(t,e),(t=t.alternate)&&am(t,e)}function nm(t){if(t.tag===13||t.tag===31){var e=ra(t,67108864);e!==null&&ve(e,t,67108864),Ef(t,67108864)}}function um(t){if(t.tag===13||t.tag===31){var e=Oe();e=pc(e);var l=ra(t,e);l!==null&&ve(l,t,e),Ef(t,e)}}var Pi=!0;function Uv(t,e,l,a){var n=z.T;z.T=null;var u=q.p;try{q.p=2,Tf(t,e,l,a)}finally{q.p=u,z.T=n}}function qv(t,e,l,a){var n=z.T;z.T=null;var u=q.p;try{q.p=8,Tf(t,e,l,a)}finally{q.p=u,z.T=n}}function Tf(t,e,l,a){if(Pi){var n=Nf(a);if(n===null)rf(t,e,a,tc,l),cm(t,a);else if(Hv(n,t,e,l,a))a.stopPropagation();else if(cm(t,a),e&4&&-1<wv.indexOf(t)){for(;n!==null;){var u=Ha(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var s=ua(u.pendingLanes);if(s!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var m=1<<31-Se(s);o.entanglements[1]|=m,s&=~m}Ie(u),(gt&6)===0&&(wi=be()+500,xu(0))}}break;case 31:case 13:o=ra(u,2),o!==null&&ve(o,u,2),Bi(),Ef(u,2)}if(u=Nf(a),u===null&&rf(t,e,a,tc,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else rf(t,e,a,null,l)}}function Nf(t){return t=Ac(t),Af(t)}var tc=null;function Af(t){if(tc=null,t=wa(t),t!==null){var e=y(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=T(e),t!==null)return t;t=null}else if(l===31){if(t=j(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return tc=t,null}function im(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Sy()){case hr:return 2;case mr:return 8;case Xu:case _y:return 32;case yr:return 268435456;default:return 32}default:return 32}}var jf=!1,Xl=null,Zl=null,Vl=null,ju=new Map,Ou=new Map,Kl=[],wv="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 cm(t,e){switch(t){case"focusin":case"focusout":Xl=null;break;case"dragenter":case"dragleave":Zl=null;break;case"mouseover":case"mouseout":Vl=null;break;case"pointerover":case"pointerout":ju.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ou.delete(e.pointerId)}}function zu(t,e,l,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},e!==null&&(e=Ha(e),e!==null&&nm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function Hv(t,e,l,a,n){switch(e){case"focusin":return Xl=zu(Xl,t,e,l,a,n),!0;case"dragenter":return Zl=zu(Zl,t,e,l,a,n),!0;case"mouseover":return Vl=zu(Vl,t,e,l,a,n),!0;case"pointerover":var u=n.pointerId;return ju.set(u,zu(ju.get(u)||null,t,e,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Ou.set(u,zu(Ou.get(u)||null,t,e,l,a,n)),!0}return!1}function sm(t){var e=wa(t.target);if(e!==null){var l=y(e);if(l!==null){if(e=l.tag,e===13){if(e=T(l),e!==null){t.blockedOn=e,Sr(t.priority,function(){um(l)});return}}else if(e===31){if(e=j(l),e!==null){t.blockedOn=e,Sr(t.priority,function(){um(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ec(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Nf(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Nc=a,l.target.dispatchEvent(a),Nc=null}else return e=Ha(l),e!==null&&nm(e),t.blockedOn=l,!1;e.shift()}return!0}function fm(t,e,l){ec(t)&&l.delete(e)}function Bv(){jf=!1,Xl!==null&&ec(Xl)&&(Xl=null),Zl!==null&&ec(Zl)&&(Zl=null),Vl!==null&&ec(Vl)&&(Vl=null),ju.forEach(fm),Ou.forEach(fm)}function lc(t,e){t.blockedOn===e&&(t.blockedOn=null,jf||(jf=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,Bv)))}var ac=null;function rm(t){ac!==t&&(ac=t,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){ac===t&&(ac=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Af(a||l)===null)continue;break}var u=Ha(l);u!==null&&(t.splice(e,3),e-=3,Ts(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function bn(t){function e(m){return lc(m,t)}Xl!==null&&lc(Xl,t),Zl!==null&&lc(Zl,t),Vl!==null&&lc(Vl,t),ju.forEach(e),Ou.forEach(e);for(var l=0;l<Kl.length;l++){var a=Kl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Kl.length&&(l=Kl[0],l.blockedOn===null);)sm(l),l.blockedOn===null&&Kl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],s=n[re]||null;if(typeof u=="function")s||rm(l);else if(s){var o=null;if(u&&u.hasAttribute("formAction")){if(n=u,s=u[re]||null)o=s.formAction;else if(Af(n)!==null)continue}else o=s.action;typeof o=="function"?l[a+1]=o:(l.splice(a,3),a-=3),rm(l)}}}function om(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(s){return n=s})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Of(t){this._internalRoot=t}nc.prototype.render=Of.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,a=Oe();lm(l,a,t,e,null,null)},nc.prototype.unmount=Of.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;lm(t.current,2,null,t,null,null),Bi(),e[qa]=null}};function nc(t){this._internalRoot=t}nc.prototype.unstable_scheduleHydration=function(t){if(t){var e=xr();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Kl.length&&e!==0&&e<Kl[l].priority;l++);Kl.splice(l,0,t),l===0&&sm(t)}};var dm=i.version;if(dm!=="19.2.4")throw Error(r(527,dm,"19.2.4"));q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=x(e),t=t!==null?H(t):null,t=t===null?null:t.stateNode,t};var Qv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{Bn=uc.inject(Qv),xe=uc}catch{}}return Cu.createRoot=function(t,e){if(!h(t))throw Error(r(299));var l=!1,a="",n=bd,u=xd,s=Sd;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=tm(t,1,!1,null,null,l,a,null,n,u,s,om),t[qa]=e.current,ff(t),new Of(e)},Cu.hydrateRoot=function(t,e,l){if(!h(t))throw Error(r(299));var a=!1,n="",u=bd,s=xd,o=Sd,m=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),e=tm(t,1,!0,e,l??null,a,n,m,u,s,o,om),e.context=em(null),l=e.current,a=Oe(),a=pc(a),n=Cl(a),n.callback=null,Ml(l,n,a),l=a,e.current.lanes=l,Ln(e,l),Ie(e),t[qa]=e.current,ff(t),new nc(e)},Cu.version="19.2.4",Cu}var Em;function Wv(){if(Em)return Mf.exports;Em=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(i){console.error(i)}}return c(),Mf.exports=Fv(),Mf.exports}var $v=Wv(),Lu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(c){return this.listeners.add(c),this.onSubscribe(),()=>{this.listeners.delete(c),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Iv={setTimeout:(c,i)=>setTimeout(c,i),clearTimeout:c=>clearTimeout(c),setInterval:(c,i)=>setInterval(c,i),clearInterval:c=>clearInterval(c)},Fl,If,Gm,Pv=(Gm=class{constructor(){k(this,Fl,Iv);k(this,If,!1)}setTimeoutProvider(c){B(this,Fl,c)}setTimeout(c,i){return p(this,Fl).setTimeout(c,i)}clearTimeout(c){p(this,Fl).clearTimeout(c)}setInterval(c,i){return p(this,Fl).setInterval(c,i)}clearInterval(c){p(this,Fl).clearInterval(c)}},Fl=new WeakMap,If=new WeakMap,Gm),Ta=new Pv;function tp(c){setTimeout(c,0)}var Ua=typeof window>"u"||"Deno"in globalThis;function ge(){}function ep(c,i){return typeof c=="function"?c(i):c}function wf(c){return typeof c=="number"&&c>=0&&c!==1/0}function Im(c,i){return Math.max(c+(i||0)-Date.now(),0)}function aa(c,i){return typeof c=="function"?c(i):c}function Le(c,i){return typeof c=="function"?c(i):c}function Tm(c,i){const{type:f="all",exact:r,fetchStatus:h,predicate:y,queryKey:T,stale:j}=c;if(T){if(r){if(i.queryHash!==tr(T,i.options))return!1}else if(!Uu(i.queryKey,T))return!1}if(f!=="all"){const A=i.isActive();if(f==="active"&&!A||f==="inactive"&&A)return!1}return!(typeof j=="boolean"&&i.isStale()!==j||h&&h!==i.state.fetchStatus||y&&!y(i))}function Nm(c,i){const{exact:f,status:r,predicate:h,mutationKey:y}=c;if(y){if(!i.options.mutationKey)return!1;if(f){if(Ru(i.options.mutationKey)!==Ru(y))return!1}else if(!Uu(i.options.mutationKey,y))return!1}return!(r&&i.state.status!==r||h&&!h(i))}function tr(c,i){return((i==null?void 0:i.queryKeyHashFn)||Ru)(c)}function Ru(c){return JSON.stringify(c,(i,f)=>Bf(f)?Object.keys(f).sort().reduce((r,h)=>(r[h]=f[h],r),{}):f)}function Uu(c,i){return c===i?!0:typeof c!=typeof i?!1:c&&i&&typeof c=="object"&&typeof i=="object"?Object.keys(i).every(f=>Uu(c[f],i[f])):!1}var lp=Object.prototype.hasOwnProperty;function Pm(c,i,f=0){if(c===i)return c;if(f>500)return i;const r=Am(c)&&Am(i);if(!r&&!(Bf(c)&&Bf(i)))return i;const y=(r?c:Object.keys(c)).length,T=r?i:Object.keys(i),j=T.length,A=r?new Array(j):{};let x=0;for(let H=0;H<j;H++){const R=r?H:T[H],X=c[R],V=i[R];if(X===V){A[R]=X,(r?H<y:lp.call(c,R))&&x++;continue}if(X===null||V===null||typeof X!="object"||typeof V!="object"){A[R]=V;continue}const at=Pm(X,V,f+1);A[R]=at,at===X&&x++}return y===j&&x===y?c:A}function Hf(c,i){if(!i||Object.keys(c).length!==Object.keys(i).length)return!1;for(const f in c)if(c[f]!==i[f])return!1;return!0}function Am(c){return Array.isArray(c)&&c.length===Object.keys(c).length}function Bf(c){if(!jm(c))return!1;const i=c.constructor;if(i===void 0)return!0;const f=i.prototype;return!(!jm(f)||!f.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(c)!==Object.prototype)}function jm(c){return Object.prototype.toString.call(c)==="[object Object]"}function ap(c){return new Promise(i=>{Ta.setTimeout(i,c)})}function Qf(c,i,f){return typeof f.structuralSharing=="function"?f.structuralSharing(c,i):f.structuralSharing!==!1?Pm(c,i):i}function np(c,i,f=0){const r=[...c,i];return f&&r.length>f?r.slice(1):r}function up(c,i,f=0){const r=[i,...c];return f&&r.length>f?r.slice(0,-1):r}var er=Symbol();function ty(c,i){return!c.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!c.queryFn||c.queryFn===er?()=>Promise.reject(new Error(`Missing queryFn: '${c.queryHash}'`)):c.queryFn}function ey(c,i){return typeof c=="function"?c(...i):!!c}function ip(c,i,f){let r=!1,h;return Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(h??(h=i()),r||(r=!0,h.aborted?f():h.addEventListener("abort",f,{once:!0})),h)}),c}var Na,Wl,Sn,Ym,cp=(Ym=class extends Lu{constructor(){super();k(this,Na);k(this,Wl);k(this,Sn);B(this,Sn,i=>{if(!Ua&&window.addEventListener){const f=()=>i();return window.addEventListener("visibilitychange",f,!1),()=>{window.removeEventListener("visibilitychange",f)}}})}onSubscribe(){p(this,Wl)||this.setEventListener(p(this,Sn))}onUnsubscribe(){var i;this.hasListeners()||((i=p(this,Wl))==null||i.call(this),B(this,Wl,void 0))}setEventListener(i){var f;B(this,Sn,i),(f=p(this,Wl))==null||f.call(this),B(this,Wl,i(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(i){p(this,Na)!==i&&(B(this,Na,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(f=>{f(i)})}isFocused(){var i;return typeof p(this,Na)=="boolean"?p(this,Na):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Na=new WeakMap,Wl=new WeakMap,Sn=new WeakMap,Ym),lr=new cp;function Lf(){let c,i;const f=new Promise((h,y)=>{c=h,i=y});f.status="pending",f.catch(()=>{});function r(h){Object.assign(f,h),delete f.resolve,delete f.reject}return f.resolve=h=>{r({status:"fulfilled",value:h}),c(h)},f.reject=h=>{r({status:"rejected",reason:h}),i(h)},f}var sp=tp;function fp(){let c=[],i=0,f=j=>{j()},r=j=>{j()},h=sp;const y=j=>{i?c.push(j):h(()=>{f(j)})},T=()=>{const j=c;c=[],j.length&&h(()=>{r(()=>{j.forEach(A=>{f(A)})})})};return{batch:j=>{let A;i++;try{A=j()}finally{i--,i||T()}return A},batchCalls:j=>(...A)=>{y(()=>{j(...A)})},schedule:y,setNotifyFunction:j=>{f=j},setBatchNotifyFunction:j=>{r=j},setScheduler:j=>{h=j}}}var le=fp(),_n,$l,En,Xm,rp=(Xm=class extends Lu{constructor(){super();k(this,_n,!0);k(this,$l);k(this,En);B(this,En,i=>{if(!Ua&&window.addEventListener){const f=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",f,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",f),window.removeEventListener("offline",r)}}})}onSubscribe(){p(this,$l)||this.setEventListener(p(this,En))}onUnsubscribe(){var i;this.hasListeners()||((i=p(this,$l))==null||i.call(this),B(this,$l,void 0))}setEventListener(i){var f;B(this,En,i),(f=p(this,$l))==null||f.call(this),B(this,$l,i(this.setOnline.bind(this)))}setOnline(i){p(this,_n)!==i&&(B(this,_n,i),this.listeners.forEach(r=>{r(i)}))}isOnline(){return p(this,_n)}},_n=new WeakMap,$l=new WeakMap,En=new WeakMap,Xm),fc=new rp;function op(c){return Math.min(1e3*2**c,3e4)}function ly(c){return(c??"online")==="online"?fc.isOnline():!0}var Gf=class extends Error{constructor(c){super("CancelledError"),this.revert=c==null?void 0:c.revert,this.silent=c==null?void 0:c.silent}};function ay(c){let i=!1,f=0,r;const h=Lf(),y=()=>h.status!=="pending",T=F=>{var I;if(!y()){const U=new Gf(F);X(U),(I=c.onCancel)==null||I.call(c,U)}},j=()=>{i=!0},A=()=>{i=!1},x=()=>lr.isFocused()&&(c.networkMode==="always"||fc.isOnline())&&c.canRun(),H=()=>ly(c.networkMode)&&c.canRun(),R=F=>{y()||(r==null||r(),h.resolve(F))},X=F=>{y()||(r==null||r(),h.reject(F))},V=()=>new Promise(F=>{var I;r=U=>{(y()||x())&&F(U)},(I=c.onPause)==null||I.call(c)}).then(()=>{var F;r=void 0,y()||(F=c.onContinue)==null||F.call(c)}),at=()=>{if(y())return;let F;const I=f===0?c.initialPromise:void 0;try{F=I??c.fn()}catch(U){F=Promise.reject(U)}Promise.resolve(F).then(R).catch(U=>{var St;if(y())return;const $=c.retry??(Ua?0:3),K=c.retryDelay??op,Q=typeof K=="function"?K(f,U):K,pt=$===!0||typeof $=="number"&&f<$||typeof $=="function"&&$(f,U);if(i||!pt){X(U);return}f++,(St=c.onFail)==null||St.call(c,f,U),ap(Q).then(()=>x()?void 0:V()).then(()=>{i?X(U):at()})})};return{promise:h,status:()=>h.status,cancel:T,continue:()=>(r==null||r(),h),cancelRetry:j,continueRetry:A,canStart:H,start:()=>(H()?at():V().then(at),h)}}var Aa,Zm,ny=(Zm=class{constructor(){k(this,Aa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wf(this.gcTime)&&B(this,Aa,Ta.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(c){this.gcTime=Math.max(this.gcTime||0,c??(Ua?1/0:300*1e3))}clearGcTimeout(){p(this,Aa)&&(Ta.clearTimeout(p(this,Aa)),B(this,Aa,void 0))}},Aa=new WeakMap,Zm),ja,Tn,Qe,Oa,Wt,qu,za,Ve,xl,Vm,dp=(Vm=class extends ny{constructor(i){super();k(this,Ve);k(this,ja);k(this,Tn);k(this,Qe);k(this,Oa);k(this,Wt);k(this,qu);k(this,za);B(this,za,!1),B(this,qu,i.defaultOptions),this.setOptions(i.options),this.observers=[],B(this,Oa,i.client),B(this,Qe,p(this,Oa).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,B(this,ja,zm(this.options)),this.state=i.state??p(this,ja),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=p(this,Wt))==null?void 0:i.promise}setOptions(i){if(this.options={...p(this,qu),...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const f=zm(this.options);f.data!==void 0&&(this.setState(Om(f.data,f.dataUpdatedAt)),B(this,ja,f))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&p(this,Qe).remove(this)}setData(i,f){const r=Qf(this.state.data,i,this.options);return ht(this,Ve,xl).call(this,{data:r,type:"success",dataUpdatedAt:f==null?void 0:f.updatedAt,manual:f==null?void 0:f.manual}),r}setState(i,f){ht(this,Ve,xl).call(this,{type:"setState",state:i,setStateOptions:f})}cancel(i){var r,h;const f=(r=p(this,Wt))==null?void 0:r.promise;return(h=p(this,Wt))==null||h.cancel(i),f?f.then(ge).catch(ge):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(p(this,ja))}isActive(){return this.observers.some(i=>Le(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===er||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>aa(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:!Im(this.state.dataUpdatedAt,i)}onFocus(){var f;const i=this.observers.find(r=>r.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(f=p(this,Wt))==null||f.continue()}onOnline(){var f;const i=this.observers.find(r=>r.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(f=p(this,Wt))==null||f.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),p(this,Qe).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(f=>f!==i),this.observers.length||(p(this,Wt)&&(p(this,za)?p(this,Wt).cancel({revert:!0}):p(this,Wt).cancelRetry()),this.scheduleGc()),p(this,Qe).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ht(this,Ve,xl).call(this,{type:"invalidate"})}async fetch(i,f){var A,x,H,R,X,V,at,F,I,U,$,K;if(this.state.fetchStatus!=="idle"&&((A=p(this,Wt))==null?void 0:A.status())!=="rejected"){if(this.state.data!==void 0&&(f!=null&&f.cancelRefetch))this.cancel({silent:!0});else if(p(this,Wt))return p(this,Wt).continueRetry(),p(this,Wt).promise}if(i&&this.setOptions(i),!this.options.queryFn){const Q=this.observers.find(pt=>pt.options.queryFn);Q&&this.setOptions(Q.options)}const r=new AbortController,h=Q=>{Object.defineProperty(Q,"signal",{enumerable:!0,get:()=>(B(this,za,!0),r.signal)})},y=()=>{const Q=ty(this.options,f),St=(()=>{const P={client:p(this,Oa),queryKey:this.queryKey,meta:this.meta};return h(P),P})();return B(this,za,!1),this.options.persister?this.options.persister(Q,St,this):Q(St)},j=(()=>{const Q={fetchOptions:f,options:this.options,queryKey:this.queryKey,client:p(this,Oa),state:this.state,fetchFn:y};return h(Q),Q})();(x=this.options.behavior)==null||x.onFetch(j,this),B(this,Tn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((H=j.fetchOptions)==null?void 0:H.meta))&&ht(this,Ve,xl).call(this,{type:"fetch",meta:(R=j.fetchOptions)==null?void 0:R.meta}),B(this,Wt,ay({initialPromise:f==null?void 0:f.initialPromise,fn:j.fetchFn,onCancel:Q=>{Q instanceof Gf&&Q.revert&&this.setState({...p(this,Tn),fetchStatus:"idle"}),r.abort()},onFail:(Q,pt)=>{ht(this,Ve,xl).call(this,{type:"failed",failureCount:Q,error:pt})},onPause:()=>{ht(this,Ve,xl).call(this,{type:"pause"})},onContinue:()=>{ht(this,Ve,xl).call(this,{type:"continue"})},retry:j.options.retry,retryDelay:j.options.retryDelay,networkMode:j.options.networkMode,canRun:()=>!0}));try{const Q=await p(this,Wt).start();if(Q===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(Q),(V=(X=p(this,Qe).config).onSuccess)==null||V.call(X,Q,this),(F=(at=p(this,Qe).config).onSettled)==null||F.call(at,Q,this.state.error,this),Q}catch(Q){if(Q instanceof Gf){if(Q.silent)return p(this,Wt).promise;if(Q.revert){if(this.state.data===void 0)throw Q;return this.state.data}}throw ht(this,Ve,xl).call(this,{type:"error",error:Q}),(U=(I=p(this,Qe).config).onError)==null||U.call(I,Q,this),(K=($=p(this,Qe).config).onSettled)==null||K.call($,this.state.data,Q,this),Q}finally{this.scheduleGc()}}},ja=new WeakMap,Tn=new WeakMap,Qe=new WeakMap,Oa=new WeakMap,Wt=new WeakMap,qu=new WeakMap,za=new WeakMap,Ve=new WeakSet,xl=function(i){const f=r=>{switch(i.type){case"failed":return{...r,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...uy(r.data,this.options),fetchMeta:i.meta??null};case"success":const h={...r,...Om(i.data,i.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return B(this,Tn,i.manual?h:void 0),h;case"error":const y=i.error;return{...r,error:y,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:y,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...i.state}}};this.state=f(this.state),le.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),p(this,Qe).notify({query:this,type:"updated",action:i})})},Vm);function uy(c,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ly(i.networkMode)?"fetching":"paused",...c===void 0&&{error:null,status:"pending"}}}function Om(c,i){return{data:c,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function zm(c){const i=typeof c.initialData=="function"?c.initialData():c.initialData,f=i!==void 0,r=f?typeof c.initialDataUpdatedAt=="function"?c.initialDataUpdatedAt():c.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:f?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:f?"success":"pending",fetchStatus:"idle"}}var pe,mt,wu,se,Da,Nn,Sl,Il,Hu,An,jn,Ca,Ma,Pl,On,xt,Mu,Yf,Xf,Zf,Vf,Kf,Jf,kf,iy,Km,hp=(Km=class extends Lu{constructor(i,f){super();k(this,xt);k(this,pe);k(this,mt);k(this,wu);k(this,se);k(this,Da);k(this,Nn);k(this,Sl);k(this,Il);k(this,Hu);k(this,An);k(this,jn);k(this,Ca);k(this,Ma);k(this,Pl);k(this,On,new Set);this.options=f,B(this,pe,i),B(this,Il,null),B(this,Sl,Lf()),this.bindMethods(),this.setOptions(f)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(p(this,mt).addObserver(this),Dm(p(this,mt),this.options)?ht(this,xt,Mu).call(this):this.updateResult(),ht(this,xt,Vf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ff(p(this,mt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ff(p(this,mt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ht(this,xt,Kf).call(this),ht(this,xt,Jf).call(this),p(this,mt).removeObserver(this)}setOptions(i){const f=this.options,r=p(this,mt);if(this.options=p(this,pe).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Le(this.options.enabled,p(this,mt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ht(this,xt,kf).call(this),p(this,mt).setOptions(this.options),f._defaulted&&!Hf(this.options,f)&&p(this,pe).getQueryCache().notify({type:"observerOptionsUpdated",query:p(this,mt),observer:this});const h=this.hasListeners();h&&Cm(p(this,mt),r,this.options,f)&&ht(this,xt,Mu).call(this),this.updateResult(),h&&(p(this,mt)!==r||Le(this.options.enabled,p(this,mt))!==Le(f.enabled,p(this,mt))||aa(this.options.staleTime,p(this,mt))!==aa(f.staleTime,p(this,mt)))&&ht(this,xt,Yf).call(this);const y=ht(this,xt,Xf).call(this);h&&(p(this,mt)!==r||Le(this.options.enabled,p(this,mt))!==Le(f.enabled,p(this,mt))||y!==p(this,Pl))&&ht(this,xt,Zf).call(this,y)}getOptimisticResult(i){const f=p(this,pe).getQueryCache().build(p(this,pe),i),r=this.createResult(f,i);return yp(this,r)&&(B(this,se,r),B(this,Nn,this.options),B(this,Da,p(this,mt).state)),r}getCurrentResult(){return p(this,se)}trackResult(i,f){return new Proxy(i,{get:(r,h)=>(this.trackProp(h),f==null||f(h),h==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&p(this,Sl).status==="pending"&&p(this,Sl).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,h))})}trackProp(i){p(this,On).add(i)}getCurrentQuery(){return p(this,mt)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const f=p(this,pe).defaultQueryOptions(i),r=p(this,pe).getQueryCache().build(p(this,pe),f);return r.fetch().then(()=>this.createResult(r,f))}fetch(i){return ht(this,xt,Mu).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),p(this,se)))}createResult(i,f){var _t;const r=p(this,mt),h=this.options,y=p(this,se),T=p(this,Da),j=p(this,Nn),x=i!==r?i.state:p(this,wu),{state:H}=i;let R={...H},X=!1,V;if(f._optimisticResults){const Ut=this.hasListeners(),Vt=!Ut&&Dm(i,f),Kt=Ut&&Cm(i,r,f,h);(Vt||Kt)&&(R={...R,...uy(H.data,i.options)}),f._optimisticResults==="isRestoring"&&(R.fetchStatus="idle")}let{error:at,errorUpdatedAt:F,status:I}=R;V=R.data;let U=!1;if(f.placeholderData!==void 0&&V===void 0&&I==="pending"){let Ut;y!=null&&y.isPlaceholderData&&f.placeholderData===(j==null?void 0:j.placeholderData)?(Ut=y.data,U=!0):Ut=typeof f.placeholderData=="function"?f.placeholderData((_t=p(this,jn))==null?void 0:_t.state.data,p(this,jn)):f.placeholderData,Ut!==void 0&&(I="success",V=Qf(y==null?void 0:y.data,Ut,f),X=!0)}if(f.select&&V!==void 0&&!U)if(y&&V===(T==null?void 0:T.data)&&f.select===p(this,Hu))V=p(this,An);else try{B(this,Hu,f.select),V=f.select(V),V=Qf(y==null?void 0:y.data,V,f),B(this,An,V),B(this,Il,null)}catch(Ut){B(this,Il,Ut)}p(this,Il)&&(at=p(this,Il),V=p(this,An),F=Date.now(),I="error");const $=R.fetchStatus==="fetching",K=I==="pending",Q=I==="error",pt=K&&$,St=V!==void 0,nt={status:I,fetchStatus:R.fetchStatus,isPending:K,isSuccess:I==="success",isError:Q,isInitialLoading:pt,isLoading:pt,data:V,dataUpdatedAt:R.dataUpdatedAt,error:at,errorUpdatedAt:F,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdateCount:R.errorUpdateCount,isFetched:R.dataUpdateCount>0||R.errorUpdateCount>0,isFetchedAfterMount:R.dataUpdateCount>x.dataUpdateCount||R.errorUpdateCount>x.errorUpdateCount,isFetching:$,isRefetching:$&&!K,isLoadingError:Q&&!St,isPaused:R.fetchStatus==="paused",isPlaceholderData:X,isRefetchError:Q&&St,isStale:ar(i,f),refetch:this.refetch,promise:p(this,Sl),isEnabled:Le(f.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const Ut=nt.data!==void 0,Vt=nt.status==="error"&&!Ut,Kt=ae=>{Vt?ae.reject(nt.error):Ut&&ae.resolve(nt.data)},ke=()=>{const ae=B(this,Sl,nt.promise=Lf());Kt(ae)},fe=p(this,Sl);switch(fe.status){case"pending":i.queryHash===r.queryHash&&Kt(fe);break;case"fulfilled":(Vt||nt.data!==fe.value)&&ke();break;case"rejected":(!Vt||nt.error!==fe.reason)&&ke();break}}return nt}updateResult(){const i=p(this,se),f=this.createResult(p(this,mt),this.options);if(B(this,Da,p(this,mt).state),B(this,Nn,this.options),p(this,Da).data!==void 0&&B(this,jn,p(this,mt)),Hf(f,i))return;B(this,se,f);const r=()=>{if(!i)return!0;const{notifyOnChangeProps:h}=this.options,y=typeof h=="function"?h():h;if(y==="all"||!y&&!p(this,On).size)return!0;const T=new Set(y??p(this,On));return this.options.throwOnError&&T.add("error"),Object.keys(p(this,se)).some(j=>{const A=j;return p(this,se)[A]!==i[A]&&T.has(A)})};ht(this,xt,iy).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ht(this,xt,Vf).call(this)}},pe=new WeakMap,mt=new WeakMap,wu=new WeakMap,se=new WeakMap,Da=new WeakMap,Nn=new WeakMap,Sl=new WeakMap,Il=new WeakMap,Hu=new WeakMap,An=new WeakMap,jn=new WeakMap,Ca=new WeakMap,Ma=new WeakMap,Pl=new WeakMap,On=new WeakMap,xt=new WeakSet,Mu=function(i){ht(this,xt,kf).call(this);let f=p(this,mt).fetch(this.options,i);return i!=null&&i.throwOnError||(f=f.catch(ge)),f},Yf=function(){ht(this,xt,Kf).call(this);const i=aa(this.options.staleTime,p(this,mt));if(Ua||p(this,se).isStale||!wf(i))return;const r=Im(p(this,se).dataUpdatedAt,i)+1;B(this,Ca,Ta.setTimeout(()=>{p(this,se).isStale||this.updateResult()},r))},Xf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(p(this,mt)):this.options.refetchInterval)??!1},Zf=function(i){ht(this,xt,Jf).call(this),B(this,Pl,i),!(Ua||Le(this.options.enabled,p(this,mt))===!1||!wf(p(this,Pl))||p(this,Pl)===0)&&B(this,Ma,Ta.setInterval(()=>{(this.options.refetchIntervalInBackground||lr.isFocused())&&ht(this,xt,Mu).call(this)},p(this,Pl)))},Vf=function(){ht(this,xt,Yf).call(this),ht(this,xt,Zf).call(this,ht(this,xt,Xf).call(this))},Kf=function(){p(this,Ca)&&(Ta.clearTimeout(p(this,Ca)),B(this,Ca,void 0))},Jf=function(){p(this,Ma)&&(Ta.clearInterval(p(this,Ma)),B(this,Ma,void 0))},kf=function(){const i=p(this,pe).getQueryCache().build(p(this,pe),this.options);if(i===p(this,mt))return;const f=p(this,mt);B(this,mt,i),B(this,wu,i.state),this.hasListeners()&&(f==null||f.removeObserver(this),i.addObserver(this))},iy=function(i){le.batch(()=>{i.listeners&&this.listeners.forEach(f=>{f(p(this,se))}),p(this,pe).getQueryCache().notify({query:p(this,mt),type:"observerResultsUpdated"})})},Km);function mp(c,i){return Le(i.enabled,c)!==!1&&c.state.data===void 0&&!(c.state.status==="error"&&i.retryOnMount===!1)}function Dm(c,i){return mp(c,i)||c.state.data!==void 0&&Ff(c,i,i.refetchOnMount)}function Ff(c,i,f){if(Le(i.enabled,c)!==!1&&aa(i.staleTime,c)!=="static"){const r=typeof f=="function"?f(c):f;return r==="always"||r!==!1&&ar(c,i)}return!1}function Cm(c,i,f,r){return(c!==i||Le(r.enabled,c)===!1)&&(!f.suspense||c.state.status!=="error")&&ar(c,f)}function ar(c,i){return Le(i.enabled,c)!==!1&&c.isStaleByTime(aa(i.staleTime,c))}function yp(c,i){return!Hf(c.getCurrentResult(),i)}function Mm(c){return{onFetch:(i,f)=>{var H,R,X,V,at;const r=i.options,h=(X=(R=(H=i.fetchOptions)==null?void 0:H.meta)==null?void 0:R.fetchMore)==null?void 0:X.direction,y=((V=i.state.data)==null?void 0:V.pages)||[],T=((at=i.state.data)==null?void 0:at.pageParams)||[];let j={pages:[],pageParams:[]},A=0;const x=async()=>{let F=!1;const I=K=>{ip(K,()=>i.signal,()=>F=!0)},U=ty(i.options,i.fetchOptions),$=async(K,Q,pt)=>{if(F)return Promise.reject();if(Q==null&&K.pages.length)return Promise.resolve(K);const P=(()=>{const Vt={client:i.client,queryKey:i.queryKey,pageParam:Q,direction:pt?"backward":"forward",meta:i.options.meta};return I(Vt),Vt})(),nt=await U(P),{maxPages:_t}=i.options,Ut=pt?up:np;return{pages:Ut(K.pages,nt,_t),pageParams:Ut(K.pageParams,Q,_t)}};if(h&&y.length){const K=h==="backward",Q=K?vp:Rm,pt={pages:y,pageParams:T},St=Q(r,pt);j=await $(pt,St,K)}else{const K=c??y.length;do{const Q=A===0?T[0]??r.initialPageParam:Rm(r,j);if(A>0&&Q==null)break;j=await $(j,Q),A++}while(A<K)}return j};i.options.persister?i.fetchFn=()=>{var F,I;return(I=(F=i.options).persister)==null?void 0:I.call(F,x,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},f)}:i.fetchFn=x}}}function Rm(c,{pages:i,pageParams:f}){const r=i.length-1;return i.length>0?c.getNextPageParam(i[r],i,f[r],f):void 0}function vp(c,{pages:i,pageParams:f}){var r;return i.length>0?(r=c.getPreviousPageParam)==null?void 0:r.call(c,i[0],i,f[0],f):void 0}var Bu,Pe,ue,Ra,tl,kl,Jm,pp=(Jm=class extends ny{constructor(i){super();k(this,tl);k(this,Bu);k(this,Pe);k(this,ue);k(this,Ra);B(this,Bu,i.client),this.mutationId=i.mutationId,B(this,ue,i.mutationCache),B(this,Pe,[]),this.state=i.state||gp(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){p(this,Pe).includes(i)||(p(this,Pe).push(i),this.clearGcTimeout(),p(this,ue).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){B(this,Pe,p(this,Pe).filter(f=>f!==i)),this.scheduleGc(),p(this,ue).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){p(this,Pe).length||(this.state.status==="pending"?this.scheduleGc():p(this,ue).remove(this))}continue(){var i;return((i=p(this,Ra))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var T,j,A,x,H,R,X,V,at,F,I,U,$,K,Q,pt,St,P;const f=()=>{ht(this,tl,kl).call(this,{type:"continue"})},r={client:p(this,Bu),meta:this.options.meta,mutationKey:this.options.mutationKey};B(this,Ra,ay({fn:()=>this.options.mutationFn?this.options.mutationFn(i,r):Promise.reject(new Error("No mutationFn found")),onFail:(nt,_t)=>{ht(this,tl,kl).call(this,{type:"failed",failureCount:nt,error:_t})},onPause:()=>{ht(this,tl,kl).call(this,{type:"pause"})},onContinue:f,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>p(this,ue).canRun(this)}));const h=this.state.status==="pending",y=!p(this,Ra).canStart();try{if(h)f();else{ht(this,tl,kl).call(this,{type:"pending",variables:i,isPaused:y}),p(this,ue).config.onMutate&&await p(this,ue).config.onMutate(i,this,r);const _t=await((j=(T=this.options).onMutate)==null?void 0:j.call(T,i,r));_t!==this.state.context&&ht(this,tl,kl).call(this,{type:"pending",context:_t,variables:i,isPaused:y})}const nt=await p(this,Ra).start();return await((x=(A=p(this,ue).config).onSuccess)==null?void 0:x.call(A,nt,i,this.state.context,this,r)),await((R=(H=this.options).onSuccess)==null?void 0:R.call(H,nt,i,this.state.context,r)),await((V=(X=p(this,ue).config).onSettled)==null?void 0:V.call(X,nt,null,this.state.variables,this.state.context,this,r)),await((F=(at=this.options).onSettled)==null?void 0:F.call(at,nt,null,i,this.state.context,r)),ht(this,tl,kl).call(this,{type:"success",data:nt}),nt}catch(nt){try{await((U=(I=p(this,ue).config).onError)==null?void 0:U.call(I,nt,i,this.state.context,this,r))}catch(_t){Promise.reject(_t)}try{await((K=($=this.options).onError)==null?void 0:K.call($,nt,i,this.state.context,r))}catch(_t){Promise.reject(_t)}try{await((pt=(Q=p(this,ue).config).onSettled)==null?void 0:pt.call(Q,void 0,nt,this.state.variables,this.state.context,this,r))}catch(_t){Promise.reject(_t)}try{await((P=(St=this.options).onSettled)==null?void 0:P.call(St,void 0,nt,i,this.state.context,r))}catch(_t){Promise.reject(_t)}throw ht(this,tl,kl).call(this,{type:"error",error:nt}),nt}finally{p(this,ue).runNext(this)}}},Bu=new WeakMap,Pe=new WeakMap,ue=new WeakMap,Ra=new WeakMap,tl=new WeakSet,kl=function(i){const f=r=>{switch(i.type){case"failed":return{...r,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:i.error,failureCount:r.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=f(this.state),le.batch(()=>{p(this,Pe).forEach(r=>{r.onMutationUpdate(i)}),p(this,ue).notify({mutation:this,type:"updated",action:i})})},Jm);function gp(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _l,Ke,Qu,km,bp=(km=class extends Lu{constructor(i={}){super();k(this,_l);k(this,Ke);k(this,Qu);this.config=i,B(this,_l,new Set),B(this,Ke,new Map),B(this,Qu,0)}build(i,f,r){const h=new pp({client:i,mutationCache:this,mutationId:++ic(this,Qu)._,options:i.defaultMutationOptions(f),state:r});return this.add(h),h}add(i){p(this,_l).add(i);const f=cc(i);if(typeof f=="string"){const r=p(this,Ke).get(f);r?r.push(i):p(this,Ke).set(f,[i])}this.notify({type:"added",mutation:i})}remove(i){if(p(this,_l).delete(i)){const f=cc(i);if(typeof f=="string"){const r=p(this,Ke).get(f);if(r)if(r.length>1){const h=r.indexOf(i);h!==-1&&r.splice(h,1)}else r[0]===i&&p(this,Ke).delete(f)}}this.notify({type:"removed",mutation:i})}canRun(i){const f=cc(i);if(typeof f=="string"){const r=p(this,Ke).get(f),h=r==null?void 0:r.find(y=>y.state.status==="pending");return!h||h===i}else return!0}runNext(i){var r;const f=cc(i);if(typeof f=="string"){const h=(r=p(this,Ke).get(f))==null?void 0:r.find(y=>y!==i&&y.state.isPaused);return(h==null?void 0:h.continue())??Promise.resolve()}else return Promise.resolve()}clear(){le.batch(()=>{p(this,_l).forEach(i=>{this.notify({type:"removed",mutation:i})}),p(this,_l).clear(),p(this,Ke).clear()})}getAll(){return Array.from(p(this,_l))}find(i){const f={exact:!0,...i};return this.getAll().find(r=>Nm(f,r))}findAll(i={}){return this.getAll().filter(f=>Nm(i,f))}notify(i){le.batch(()=>{this.listeners.forEach(f=>{f(i)})})}resumePausedMutations(){const i=this.getAll().filter(f=>f.state.isPaused);return le.batch(()=>Promise.all(i.map(f=>f.continue().catch(ge))))}},_l=new WeakMap,Ke=new WeakMap,Qu=new WeakMap,km);function cc(c){var i;return(i=c.options.scope)==null?void 0:i.id}var el,Fm,xp=(Fm=class extends Lu{constructor(i={}){super();k(this,el);this.config=i,B(this,el,new Map)}build(i,f,r){const h=f.queryKey,y=f.queryHash??tr(h,f);let T=this.get(y);return T||(T=new dp({client:i,queryKey:h,queryHash:y,options:i.defaultQueryOptions(f),state:r,defaultOptions:i.getQueryDefaults(h)}),this.add(T)),T}add(i){p(this,el).has(i.queryHash)||(p(this,el).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const f=p(this,el).get(i.queryHash);f&&(i.destroy(),f===i&&p(this,el).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){le.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return p(this,el).get(i)}getAll(){return[...p(this,el).values()]}find(i){const f={exact:!0,...i};return this.getAll().find(r=>Tm(f,r))}findAll(i={}){const f=this.getAll();return Object.keys(i).length>0?f.filter(r=>Tm(i,r)):f}notify(i){le.batch(()=>{this.listeners.forEach(f=>{f(i)})})}onFocus(){le.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){le.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},el=new WeakMap,Fm),Ht,ta,ea,zn,Dn,la,Cn,Mn,Wm,Sp=(Wm=class{constructor(c={}){k(this,Ht);k(this,ta);k(this,ea);k(this,zn);k(this,Dn);k(this,la);k(this,Cn);k(this,Mn);B(this,Ht,c.queryCache||new xp),B(this,ta,c.mutationCache||new bp),B(this,ea,c.defaultOptions||{}),B(this,zn,new Map),B(this,Dn,new Map),B(this,la,0)}mount(){ic(this,la)._++,p(this,la)===1&&(B(this,Cn,lr.subscribe(async c=>{c&&(await this.resumePausedMutations(),p(this,Ht).onFocus())})),B(this,Mn,fc.subscribe(async c=>{c&&(await this.resumePausedMutations(),p(this,Ht).onOnline())})))}unmount(){var c,i;ic(this,la)._--,p(this,la)===0&&((c=p(this,Cn))==null||c.call(this),B(this,Cn,void 0),(i=p(this,Mn))==null||i.call(this),B(this,Mn,void 0))}isFetching(c){return p(this,Ht).findAll({...c,fetchStatus:"fetching"}).length}isMutating(c){return p(this,ta).findAll({...c,status:"pending"}).length}getQueryData(c){var f;const i=this.defaultQueryOptions({queryKey:c});return(f=p(this,Ht).get(i.queryHash))==null?void 0:f.state.data}ensureQueryData(c){const i=this.defaultQueryOptions(c),f=p(this,Ht).build(this,i),r=f.state.data;return r===void 0?this.fetchQuery(c):(c.revalidateIfStale&&f.isStaleByTime(aa(i.staleTime,f))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(c){return p(this,Ht).findAll(c).map(({queryKey:i,state:f})=>{const r=f.data;return[i,r]})}setQueryData(c,i,f){const r=this.defaultQueryOptions({queryKey:c}),h=p(this,Ht).get(r.queryHash),y=h==null?void 0:h.state.data,T=ep(i,y);if(T!==void 0)return p(this,Ht).build(this,r).setData(T,{...f,manual:!0})}setQueriesData(c,i,f){return le.batch(()=>p(this,Ht).findAll(c).map(({queryKey:r})=>[r,this.setQueryData(r,i,f)]))}getQueryState(c){var f;const i=this.defaultQueryOptions({queryKey:c});return(f=p(this,Ht).get(i.queryHash))==null?void 0:f.state}removeQueries(c){const i=p(this,Ht);le.batch(()=>{i.findAll(c).forEach(f=>{i.remove(f)})})}resetQueries(c,i){const f=p(this,Ht);return le.batch(()=>(f.findAll(c).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...c},i)))}cancelQueries(c,i={}){const f={revert:!0,...i},r=le.batch(()=>p(this,Ht).findAll(c).map(h=>h.cancel(f)));return Promise.all(r).then(ge).catch(ge)}invalidateQueries(c,i={}){return le.batch(()=>(p(this,Ht).findAll(c).forEach(f=>{f.invalidate()}),(c==null?void 0:c.refetchType)==="none"?Promise.resolve():this.refetchQueries({...c,type:(c==null?void 0:c.refetchType)??(c==null?void 0:c.type)??"active"},i)))}refetchQueries(c,i={}){const f={...i,cancelRefetch:i.cancelRefetch??!0},r=le.batch(()=>p(this,Ht).findAll(c).filter(h=>!h.isDisabled()&&!h.isStatic()).map(h=>{let y=h.fetch(void 0,f);return f.throwOnError||(y=y.catch(ge)),h.state.fetchStatus==="paused"?Promise.resolve():y}));return Promise.all(r).then(ge)}fetchQuery(c){const i=this.defaultQueryOptions(c);i.retry===void 0&&(i.retry=!1);const f=p(this,Ht).build(this,i);return f.isStaleByTime(aa(i.staleTime,f))?f.fetch(i):Promise.resolve(f.state.data)}prefetchQuery(c){return this.fetchQuery(c).then(ge).catch(ge)}fetchInfiniteQuery(c){return c.behavior=Mm(c.pages),this.fetchQuery(c)}prefetchInfiniteQuery(c){return this.fetchInfiniteQuery(c).then(ge).catch(ge)}ensureInfiniteQueryData(c){return c.behavior=Mm(c.pages),this.ensureQueryData(c)}resumePausedMutations(){return fc.isOnline()?p(this,ta).resumePausedMutations():Promise.resolve()}getQueryCache(){return p(this,Ht)}getMutationCache(){return p(this,ta)}getDefaultOptions(){return p(this,ea)}setDefaultOptions(c){B(this,ea,c)}setQueryDefaults(c,i){p(this,zn).set(Ru(c),{queryKey:c,defaultOptions:i})}getQueryDefaults(c){const i=[...p(this,zn).values()],f={};return i.forEach(r=>{Uu(c,r.queryKey)&&Object.assign(f,r.defaultOptions)}),f}setMutationDefaults(c,i){p(this,Dn).set(Ru(c),{mutationKey:c,defaultOptions:i})}getMutationDefaults(c){const i=[...p(this,Dn).values()],f={};return i.forEach(r=>{Uu(c,r.mutationKey)&&Object.assign(f,r.defaultOptions)}),f}defaultQueryOptions(c){if(c._defaulted)return c;const i={...p(this,ea).queries,...this.getQueryDefaults(c.queryKey),...c,_defaulted:!0};return i.queryHash||(i.queryHash=tr(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===er&&(i.enabled=!1),i}defaultMutationOptions(c){return c!=null&&c._defaulted?c:{...p(this,ea).mutations,...(c==null?void 0:c.mutationKey)&&this.getMutationDefaults(c.mutationKey),...c,_defaulted:!0}}clear(){p(this,Ht).clear(),p(this,ta).clear()}},Ht=new WeakMap,ta=new WeakMap,ea=new WeakMap,zn=new WeakMap,Dn=new WeakMap,la=new WeakMap,Cn=new WeakMap,Mn=new WeakMap,Wm),cy=ft.createContext(void 0),_p=c=>{const i=ft.useContext(cy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},Ep=({client:c,children:i})=>(ft.useEffect(()=>(c.mount(),()=>{c.unmount()}),[c]),d.jsx(cy.Provider,{value:c,children:i})),sy=ft.createContext(!1),Tp=()=>ft.useContext(sy);sy.Provider;function Np(){let c=!1;return{clearReset:()=>{c=!1},reset:()=>{c=!0},isReset:()=>c}}var Ap=ft.createContext(Np()),jp=()=>ft.useContext(Ap),Op=(c,i,f)=>{const r=f!=null&&f.state.error&&typeof c.throwOnError=="function"?ey(c.throwOnError,[f.state.error,f]):c.throwOnError;(c.suspense||c.experimental_prefetchInRender||r)&&(i.isReset()||(c.retryOnMount=!1))},zp=c=>{ft.useEffect(()=>{c.clearReset()},[c])},Dp=({result:c,errorResetBoundary:i,throwOnError:f,query:r,suspense:h})=>c.isError&&!i.isReset()&&!c.isFetching&&r&&(h&&c.data===void 0||ey(f,[c.error,r])),Cp=c=>{if(c.suspense){const f=h=>h==="static"?h:Math.max(h??1e3,1e3),r=c.staleTime;c.staleTime=typeof r=="function"?(...h)=>f(r(...h)):f(r),typeof c.gcTime=="number"&&(c.gcTime=Math.max(c.gcTime,1e3))}},Mp=(c,i)=>c.isLoading&&c.isFetching&&!i,Rp=(c,i)=>(c==null?void 0:c.suspense)&&i.isPending,Um=(c,i,f)=>i.fetchOptimistic(c).catch(()=>{f.clearReset()});function Up(c,i,f){var X,V,at,F;const r=Tp(),h=jp(),y=_p(),T=y.defaultQueryOptions(c);(V=(X=y.getDefaultOptions().queries)==null?void 0:X._experimental_beforeQuery)==null||V.call(X,T);const j=y.getQueryCache().get(T.queryHash);T._optimisticResults=r?"isRestoring":"optimistic",Cp(T),Op(T,h,j),zp(h);const A=!y.getQueryCache().get(T.queryHash),[x]=ft.useState(()=>new i(y,T)),H=x.getOptimisticResult(T),R=!r&&c.subscribed!==!1;if(ft.useSyncExternalStore(ft.useCallback(I=>{const U=R?x.subscribe(le.batchCalls(I)):ge;return x.updateResult(),U},[x,R]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),ft.useEffect(()=>{x.setOptions(T)},[T,x]),Rp(T,H))throw Um(T,x,h);if(Dp({result:H,errorResetBoundary:h,throwOnError:T.throwOnError,query:j,suspense:T.suspense}))throw H.error;if((F=(at=y.getDefaultOptions().queries)==null?void 0:at._experimental_afterQuery)==null||F.call(at,T,H),T.experimental_prefetchInRender&&!Ua&&Mp(H,r)){const I=A?Um(T,x,h):j==null?void 0:j.promise;I==null||I.catch(ge).finally(()=>{x.updateResult()})}return T.notifyOnChangeProps?H:x.trackResult(H)}function Rn(c,i){return Up(c,hp)}const qp=new Sp({defaultOptions:{queries:{staleTime:15*1e3,gcTime:300*1e3,retry:2,retryDelay:c=>Math.min(1e3*2**c,1e4),refetchOnWindowFocus:!0,refetchOnReconnect:!0}}});/**
48
+ `+a.stack}}var hc=Object.prototype.hasOwnProperty,mc=c.unstable_scheduleCallback,yc=c.unstable_cancelCallback,by=c.unstable_shouldYield,xy=c.unstable_requestPaint,be=c.unstable_now,Sy=c.unstable_getCurrentPriorityLevel,hr=c.unstable_ImmediatePriority,mr=c.unstable_UserBlockingPriority,Xu=c.unstable_NormalPriority,_y=c.unstable_LowPriority,yr=c.unstable_IdlePriority,Ey=c.log,Ty=c.unstable_setDisableYieldValue,Bn=null,xe=null;function El(t){if(typeof Ey=="function"&&Ty(t),xe&&typeof xe.setStrictMode=="function")try{xe.setStrictMode(Bn,t)}catch{}}var Se=Math.clz32?Math.clz32:Oy,Ay=Math.log,Ny=Math.LN2;function Oy(t){return t>>>=0,t===0?32:31-(Ay(t)/Ny|0)|0}var Zu=256,Vu=262144,Ku=4194304;function ua(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Ju(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,s=t.pingedLanes;t=t.warmLanes;var o=a&134217727;return o!==0?(a=o&~u,a!==0?n=ua(a):(s&=o,s!==0?n=ua(s):l||(l=o&~t,l!==0&&(n=ua(l))))):(o=a&~u,o!==0?n=ua(o):s!==0?n=ua(s):l||(l=a&~t,l!==0&&(n=ua(l)))),n===0?0:e!==0&&e!==n&&(e&u)===0&&(u=n&-n,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:n}function Qn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function jy(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vr(){var t=Ku;return Ku<<=1,(Ku&62914560)===0&&(Ku=4194304),t}function vc(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Ln(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function zy(t,e,l,a,n,u){var s=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var o=t.entanglements,m=t.expirationTimes,_=t.hiddenUpdates;for(l=s&~l;0<l;){var j=31-Se(l),C=1<<j;o[j]=0,m[j]=-1;var E=_[j];if(E!==null)for(_[j]=null,j=0;j<E.length;j++){var A=E[j];A!==null&&(A.lane&=-536870913)}l&=~C}a!==0&&pr(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(s&~e))}function pr(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Se(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function gr(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-Se(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function br(t,e){var l=e&-e;return l=(l&42)!==0?1:pc(l),(l&(t.suspendedLanes|e))!==0?0:l}function pc(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function gc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function xr(){var t=q.p;return t!==0?t:(t=window.event,t===void 0?32:im(t.type))}function Sr(t,e){var l=q.p;try{return q.p=t,e()}finally{q.p=l}}var Tl=Math.random().toString(36).slice(2),$t="__reactFiber$"+Tl,re="__reactProps$"+Tl,qa="__reactContainer$"+Tl,bc="__reactEvents$"+Tl,Dy="__reactListeners$"+Tl,Cy="__reactHandles$"+Tl,_r="__reactResources$"+Tl,Gn="__reactMarker$"+Tl;function xc(t){delete t[$t],delete t[re],delete t[bc],delete t[Dy],delete t[Cy]}function wa(t){var e=t[$t];if(e)return e;for(var l=t.parentNode;l;){if(e=l[qa]||l[$t]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Zh(t);t!==null;){if(l=t[$t])return l;t=Zh(t)}return e}t=l,l=t.parentNode}return null}function Ha(t){if(t=t[$t]||t[qa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Yn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Ba(t){var e=t[_r];return e||(e=t[_r]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[Gn]=!0}var Er=new Set,Tr={};function ia(t,e){Qa(t,e),Qa(t+"Capture",e)}function Qa(t,e){for(Tr[t]=e,t=0;t<e.length;t++)Er.add(e[t])}var My=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]*$"),Ar={},Nr={};function Ry(t){return hc.call(Nr,t)?!0:hc.call(Ar,t)?!1:My.test(t)?Nr[t]=!0:(Ar[t]=!0,!1)}function ku(t,e,l){if(Ry(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Fu(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function ll(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function ze(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Or(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Uy(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(s){l=""+s,u.call(this,s)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Sc(t){if(!t._valueTracker){var e=Or(t)?"checked":"value";t._valueTracker=Uy(t,e,""+t[e])}}function jr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=Or(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function Wu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var qy=/[\n"\\]/g;function De(t){return t.replace(qy,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function _c(t,e,l,a,n,u,s,o){t.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.type=s:t.removeAttribute("type"),e!=null?s==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ze(e)):t.value!==""+ze(e)&&(t.value=""+ze(e)):s!=="submit"&&s!=="reset"||t.removeAttribute("value"),e!=null?Ec(t,s,ze(e)):l!=null?Ec(t,s,ze(l)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+ze(o):t.removeAttribute("name")}function zr(t,e,l,a,n,u,s,o){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Sc(t);return}l=l!=null?""+ze(l):"",e=e!=null?""+ze(e):l,o||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=o?t.checked:!!a,t.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.name=s),Sc(t)}function Ec(t,e,l){e==="number"&&Wu(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function La(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+ze(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function Dr(t,e,l){if(e!=null&&(e=""+ze(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+ze(l):""}function Cr(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(r(92));if(ae(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=ze(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Sc(t)}function Ga(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var wy=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 Mr(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||wy.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Rr(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&Mr(t,n,a)}else for(var u in e)e.hasOwnProperty(u)&&Mr(t,u,e[u])}function Tc(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hy=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"]]),By=/^[\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 $u(t){return By.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function al(){}var Ac=null;function Nc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ya=null,Xa=null;function Ur(t){var e=Ha(t);if(e&&(t=e.stateNode)){var l=t[re]||null;t:switch(t=e.stateNode,e.type){case"input":if(_c(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+De(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[re]||null;if(!n)throw Error(r(90));_c(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&jr(a)}break t;case"textarea":Dr(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&La(t,!!l.multiple,e,!1)}}}var Oc=!1;function qr(t,e,l){if(Oc)return t(e,l);Oc=!0;try{var a=t(e);return a}finally{if(Oc=!1,(Ya!==null||Xa!==null)&&(Bi(),Ya&&(e=Ya,t=Xa,Xa=Ya=null,Ur(e),t)))for(e=0;e<t.length;e++)Ur(t[e])}}function Xn(t,e){var l=t.stateNode;if(l===null)return null;var a=l[re]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,e,typeof l));return l}var nl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jc=!1;if(nl)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){jc=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{jc=!1}var Al=null,zc=null,Iu=null;function wr(){if(Iu)return Iu;var t,e=zc,l=e.length,a,n="value"in Al?Al.value:Al.textContent,u=n.length;for(t=0;t<l&&e[t]===n[t];t++);var s=l-t;for(a=1;a<=s&&e[l-a]===n[u-a];a++);return Iu=n.slice(t,1<a?1-a:void 0)}function Pu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ti(){return!0}function Hr(){return!1}function oe(t){function e(l,a,n,u,s){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=s,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(l=t[o],this[o]=l?l(u):u[o]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ti:Hr,this.isPropagationStopped=Hr,this}return R(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ti)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ti)},persist:function(){},isPersistent:ti}),e}var ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ei=oe(ca),Vn=R({},ca,{view:0,detail:0}),Qy=oe(Vn),Dc,Cc,Kn,li=R({},Vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Kn&&(Kn&&t.type==="mousemove"?(Dc=t.screenX-Kn.screenX,Cc=t.screenY-Kn.screenY):Cc=Dc=0,Kn=t),Dc)},movementY:function(t){return"movementY"in t?t.movementY:Cc}}),Br=oe(li),Ly=R({},li,{dataTransfer:0}),Gy=oe(Ly),Yy=R({},Vn,{relatedTarget:0}),Mc=oe(Yy),Xy=R({},ca,{animationName:0,elapsedTime:0,pseudoElement:0}),Zy=oe(Xy),Vy=R({},ca,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ky=oe(Vy),Jy=R({},ca,{data:0}),Qr=oe(Jy),ky={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fy={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"},Wy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $y(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Wy[t])?!!e[t]:!1}function Rc(){return $y}var Iy=R({},Vn,{key:function(t){if(t.key){var e=ky[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Pu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Fy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rc,charCode:function(t){return t.type==="keypress"?Pu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Pu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Py=oe(Iy),t0=R({},li,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lr=oe(t0),e0=R({},Vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rc}),l0=oe(e0),a0=R({},ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),n0=oe(a0),u0=R({},li,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),i0=oe(u0),c0=R({},ca,{newState:0,oldState:0}),s0=oe(c0),f0=[9,13,27,32],Uc=nl&&"CompositionEvent"in window,Jn=null;nl&&"documentMode"in document&&(Jn=document.documentMode);var r0=nl&&"TextEvent"in window&&!Jn,Gr=nl&&(!Uc||Jn&&8<Jn&&11>=Jn),Yr=" ",Xr=!1;function Zr(t,e){switch(t){case"keyup":return f0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Za=!1;function o0(t,e){switch(t){case"compositionend":return Vr(e);case"keypress":return e.which!==32?null:(Xr=!0,Yr);case"textInput":return t=e.data,t===Yr&&Xr?null:t;default:return null}}function d0(t,e){if(Za)return t==="compositionend"||!Uc&&Zr(t,e)?(t=wr(),Iu=zc=Al=null,Za=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Gr&&e.locale!=="ko"?null:e.data;default:return null}}var h0={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 Kr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!h0[t.type]:e==="textarea"}function Jr(t,e,l,a){Ya?Xa?Xa.push(a):Xa=[a]:Ya=a,e=Vi(e,"onChange"),0<e.length&&(l=new ei("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var kn=null,Fn=null;function m0(t){Dh(t,0)}function ai(t){var e=Yn(t);if(jr(e))return t}function kr(t,e){if(t==="change")return e}var Fr=!1;if(nl){var qc;if(nl){var wc="oninput"in document;if(!wc){var Wr=document.createElement("div");Wr.setAttribute("oninput","return;"),wc=typeof Wr.oninput=="function"}qc=wc}else qc=!1;Fr=qc&&(!document.documentMode||9<document.documentMode)}function $r(){kn&&(kn.detachEvent("onpropertychange",Ir),Fn=kn=null)}function Ir(t){if(t.propertyName==="value"&&ai(Fn)){var e=[];Jr(e,Fn,t,Nc(t)),qr(m0,e)}}function y0(t,e,l){t==="focusin"?($r(),kn=e,Fn=l,kn.attachEvent("onpropertychange",Ir)):t==="focusout"&&$r()}function v0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ai(Fn)}function p0(t,e){if(t==="click")return ai(e)}function g0(t,e){if(t==="input"||t==="change")return ai(e)}function b0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var _e=typeof Object.is=="function"?Object.is:b0;function Wn(t,e){if(_e(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!hc.call(e,n)||!_e(t[n],e[n]))return!1}return!0}function Pr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function to(t,e){var l=Pr(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Pr(l)}}function eo(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?eo(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function lo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Wu(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Wu(t.document)}return e}function Hc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var x0=nl&&"documentMode"in document&&11>=document.documentMode,Va=null,Bc=null,$n=null,Qc=!1;function ao(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Qc||Va==null||Va!==Wu(a)||(a=Va,"selectionStart"in a&&Hc(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}),$n&&Wn($n,a)||($n=a,a=Vi(Bc,"onSelect"),0<a.length&&(e=new ei("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=Va)))}function sa(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var Ka={animationend:sa("Animation","AnimationEnd"),animationiteration:sa("Animation","AnimationIteration"),animationstart:sa("Animation","AnimationStart"),transitionrun:sa("Transition","TransitionRun"),transitionstart:sa("Transition","TransitionStart"),transitioncancel:sa("Transition","TransitionCancel"),transitionend:sa("Transition","TransitionEnd")},Lc={},no={};nl&&(no=document.createElement("div").style,"AnimationEvent"in window||(delete Ka.animationend.animation,delete Ka.animationiteration.animation,delete Ka.animationstart.animation),"TransitionEvent"in window||delete Ka.transitionend.transition);function fa(t){if(Lc[t])return Lc[t];if(!Ka[t])return t;var e=Ka[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in no)return Lc[t]=e[l];return t}var uo=fa("animationend"),io=fa("animationiteration"),co=fa("animationstart"),S0=fa("transitionrun"),_0=fa("transitionstart"),E0=fa("transitioncancel"),so=fa("transitionend"),fo=new Map,Gc="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(" ");Gc.push("scrollEnd");function Ye(t,e){fo.set(t,e),ia(e,[t])}var ni=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ce=[],Ja=0,Yc=0;function ui(){for(var t=Ja,e=Yc=Ja=0;e<t;){var l=Ce[e];Ce[e++]=null;var a=Ce[e];Ce[e++]=null;var n=Ce[e];Ce[e++]=null;var u=Ce[e];if(Ce[e++]=null,a!==null&&n!==null){var s=a.pending;s===null?n.next=n:(n.next=s.next,s.next=n),a.pending=n}u!==0&&ro(l,n,u)}}function ii(t,e,l,a){Ce[Ja++]=t,Ce[Ja++]=e,Ce[Ja++]=l,Ce[Ja++]=a,Yc|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Xc(t,e,l,a){return ii(t,e,l,a),ci(t)}function ra(t,e){return ii(t,null,null,e),ci(t)}function ro(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=t.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(n=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,n&&e!==null&&(n=31-Se(l),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),u):null}function ci(t){if(50<bu)throw bu=0,Is=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ka={};function T0(t,e,l,a){this.tag=t,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=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(t,e,l,a){return new T0(t,e,l,a)}function Zc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ul(t,e){var l=t.alternate;return l===null?(l=Ee(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function oo(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function si(t,e,l,a,n,u){var s=0;if(a=t,typeof t=="function")Zc(t)&&(s=1);else if(typeof t=="string")s=zv(t,l,G.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case _t:return t=Ee(31,l,e,n),t.elementType=_t,t.lanes=u,t;case F:return oa(l.children,n,u,e);case I:s=8,n|=24;break;case U:return t=Ee(12,l,e,n|2),t.elementType=U,t.lanes=u,t;case pt:return t=Ee(13,l,e,n),t.elementType=pt,t.lanes=u,t;case St:return t=Ee(19,l,e,n),t.elementType=St,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:s=10;break t;case $:s=9;break t;case Q:s=11;break t;case P:s=14;break t;case nt:s=16,a=null;break t}s=29,l=Error(r(130,t===null?"null":typeof t,"")),a=null}return e=Ee(s,l,e,n),e.elementType=t,e.type=a,e.lanes=u,e}function oa(t,e,l,a){return t=Ee(7,t,a,e),t.lanes=l,t}function Vc(t,e,l){return t=Ee(6,t,null,e),t.lanes=l,t}function ho(t){var e=Ee(18,null,null,0);return e.stateNode=t,e}function Kc(t,e,l){return e=Ee(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var mo=new WeakMap;function Me(t,e){if(typeof t=="object"&&t!==null){var l=mo.get(t);return l!==void 0?l:(e={value:t,source:e,stack:dr(e)},mo.set(t,e),e)}return{value:t,source:e,stack:dr(e)}}var Fa=[],Wa=0,fi=null,In=0,Re=[],Ue=0,Nl=null,Fe=1,We="";function il(t,e){Fa[Wa++]=In,Fa[Wa++]=fi,fi=t,In=e}function yo(t,e,l){Re[Ue++]=Fe,Re[Ue++]=We,Re[Ue++]=Nl,Nl=t;var a=Fe;t=We;var n=32-Se(a)-1;a&=~(1<<n),l+=1;var u=32-Se(e)+n;if(30<u){var s=n-n%5;u=(a&(1<<s)-1).toString(32),a>>=s,n-=s,Fe=1<<32-Se(e)+n|l<<n|a,We=u+t}else Fe=1<<u|l<<n|a,We=t}function Jc(t){t.return!==null&&(il(t,1),yo(t,1,0))}function kc(t){for(;t===fi;)fi=Fa[--Wa],Fa[Wa]=null,In=Fa[--Wa],Fa[Wa]=null;for(;t===Nl;)Nl=Re[--Ue],Re[Ue]=null,We=Re[--Ue],Re[Ue]=null,Fe=Re[--Ue],Re[Ue]=null}function vo(t,e){Re[Ue++]=Fe,Re[Ue++]=We,Re[Ue++]=Nl,Fe=e.id,We=e.overflow,Nl=t}var It=null,Ct=null,dt=!1,Ol=null,qe=!1,Fc=Error(r(519));function jl(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Pn(Me(e,t)),Fc}function po(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[$t]=t,e[re]=a,l){case"dialog":st("cancel",e),st("close",e);break;case"iframe":case"object":case"embed":st("load",e);break;case"video":case"audio":for(l=0;l<Su.length;l++)st(Su[l],e);break;case"source":st("error",e);break;case"img":case"image":case"link":st("error",e),st("load",e);break;case"details":st("toggle",e);break;case"input":st("invalid",e),zr(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":st("invalid",e);break;case"textarea":st("invalid",e),Cr(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||Uh(e.textContent,l)?(a.popover!=null&&(st("beforetoggle",e),st("toggle",e)),a.onScroll!=null&&st("scroll",e),a.onScrollEnd!=null&&st("scrollend",e),a.onClick!=null&&(e.onclick=al),e=!0):e=!1,e||jl(t,!0)}function go(t){for(It=t.return;It;)switch(It.tag){case 5:case 31:case 13:qe=!1;return;case 27:case 3:qe=!0;return;default:It=It.return}}function $a(t){if(t!==It)return!1;if(!dt)return go(t),dt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||mf(t.type,t.memoizedProps)),l=!l),l&&Ct&&jl(t),go(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Ct=Xh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Ct=Xh(t)}else e===27?(e=Ct,Yl(t.type)?(t=bf,bf=null,Ct=t):Ct=e):Ct=It?He(t.stateNode.nextSibling):null;return!0}function da(){Ct=It=null,dt=!1}function Wc(){var t=Ol;return t!==null&&(ye===null?ye=t:ye.push.apply(ye,t),Ol=null),t}function Pn(t){Ol===null?Ol=[t]:Ol.push(t)}var $c=g(null),ha=null,cl=null;function zl(t,e,l){w($c,e._currentValue),e._currentValue=l}function sl(t){t._currentValue=$c.current,M($c)}function Ic(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function Pc(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var u=n.dependencies;if(u!==null){var s=n.child;u=u.firstContext;t:for(;u!==null;){var o=u;u=n;for(var m=0;m<e.length;m++)if(o.context===e[m]){u.lanes|=l,o=u.alternate,o!==null&&(o.lanes|=l),Ic(u.return,l,t),a||(s=null);break t}u=o.next}}else if(n.tag===18){if(s=n.return,s===null)throw Error(r(341));s.lanes|=l,u=s.alternate,u!==null&&(u.lanes|=l),Ic(s,l,t),s=null}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}}function Ia(t,e,l,a){t=null;for(var n=e,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var s=n.alternate;if(s===null)throw Error(r(387));if(s=s.memoizedProps,s!==null){var o=n.type;_e(n.pendingProps.value,s.value)||(t!==null?t.push(o):t=[o])}}else if(n===bt.current){if(s=n.alternate,s===null)throw Error(r(387));s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Nu):t=[Nu])}n=n.return}t!==null&&Pc(e,t,l,a),e.flags|=262144}function ri(t){for(t=t.firstContext;t!==null;){if(!_e(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ma(t){ha=t,cl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Pt(t){return bo(ha,t)}function oi(t,e){return ha===null&&ma(t),bo(t,e)}function bo(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},cl===null){if(t===null)throw Error(r(308));cl=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else cl=cl.next=e;return l}var A0=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},N0=c.unstable_scheduleCallback,O0=c.unstable_NormalPriority,Gt={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ts(){return{controller:new A0,data:new Map,refCount:0}}function tu(t){t.refCount--,t.refCount===0&&N0(O0,function(){t.controller.abort()})}var eu=null,es=0,Pa=0,tn=null;function j0(t,e){if(eu===null){var l=eu=[];es=0,Pa=nf(),tn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return es++,e.then(xo,xo),e}function xo(){if(--es===0&&eu!==null){tn!==null&&(tn.status="fulfilled");var t=eu;eu=null,Pa=0,tn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function z0(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var So=z.S;z.S=function(t,e){nh=be(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&j0(t,e),So!==null&&So(t,e)};var ya=g(null);function ls(){var t=ya.current;return t!==null?t:Dt.pooledCache}function di(t,e){e===null?w(ya,ya.current):w(ya,e.pool)}function _o(){var t=ls();return t===null?null:{parent:Gt._currentValue,pool:t}}var en=Error(r(460)),as=Error(r(474)),hi=Error(r(542)),mi={then:function(){}};function Eo(t){return t=t.status,t==="fulfilled"||t==="rejected"}function To(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(al,al),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,No(t),t;default:if(typeof e.status=="string")e.then(al,al);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,No(t),t}throw pa=e,en}}function va(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(pa=l,en):l}}var pa=null;function Ao(){if(pa===null)throw Error(r(459));var t=pa;return pa=null,t}function No(t){if(t===en||t===hi)throw Error(r(483))}var ln=null,lu=0;function yi(t){var e=lu;return lu+=1,ln===null&&(ln=[]),To(ln,t,e)}function au(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function vi(t,e){throw e.$$typeof===X?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Oo(t){function e(b,v){if(t){var S=b.deletions;S===null?(b.deletions=[v],b.flags|=16):S.push(v)}}function l(b,v){if(!t)return null;for(;v!==null;)e(b,v),v=v.sibling;return null}function a(b){for(var v=new Map;b!==null;)b.key!==null?v.set(b.key,b):v.set(b.index,b),b=b.sibling;return v}function n(b,v){return b=ul(b,v),b.index=0,b.sibling=null,b}function u(b,v,S){return b.index=S,t?(S=b.alternate,S!==null?(S=S.index,S<v?(b.flags|=67108866,v):S):(b.flags|=67108866,v)):(b.flags|=1048576,v)}function s(b){return t&&b.alternate===null&&(b.flags|=67108866),b}function o(b,v,S,D){return v===null||v.tag!==6?(v=Vc(S,b.mode,D),v.return=b,v):(v=n(v,S),v.return=b,v)}function m(b,v,S,D){var Z=S.type;return Z===F?j(b,v,S.props.children,D,S.key):v!==null&&(v.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===nt&&va(Z)===v.type)?(v=n(v,S.props),au(v,S),v.return=b,v):(v=si(S.type,S.key,S.props,null,b.mode,D),au(v,S),v.return=b,v)}function _(b,v,S,D){return v===null||v.tag!==4||v.stateNode.containerInfo!==S.containerInfo||v.stateNode.implementation!==S.implementation?(v=Kc(S,b.mode,D),v.return=b,v):(v=n(v,S.children||[]),v.return=b,v)}function j(b,v,S,D,Z){return v===null||v.tag!==7?(v=oa(S,b.mode,D,Z),v.return=b,v):(v=n(v,S),v.return=b,v)}function C(b,v,S){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Vc(""+v,b.mode,S),v.return=b,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case V:return S=si(v.type,v.key,v.props,null,b.mode,S),au(S,v),S.return=b,S;case at:return v=Kc(v,b.mode,S),v.return=b,v;case nt:return v=va(v),C(b,v,S)}if(ae(v)||Kt(v))return v=oa(v,b.mode,S,null),v.return=b,v;if(typeof v.then=="function")return C(b,yi(v),S);if(v.$$typeof===K)return C(b,oi(b,v),S);vi(b,v)}return null}function E(b,v,S,D){var Z=v!==null?v.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return Z!==null?null:o(b,v,""+S,D);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case V:return S.key===Z?m(b,v,S,D):null;case at:return S.key===Z?_(b,v,S,D):null;case nt:return S=va(S),E(b,v,S,D)}if(ae(S)||Kt(S))return Z!==null?null:j(b,v,S,D,null);if(typeof S.then=="function")return E(b,v,yi(S),D);if(S.$$typeof===K)return E(b,v,oi(b,S),D);vi(b,S)}return null}function A(b,v,S,D,Z){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return b=b.get(S)||null,o(v,b,""+D,Z);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case V:return b=b.get(D.key===null?S:D.key)||null,m(v,b,D,Z);case at:return b=b.get(D.key===null?S:D.key)||null,_(v,b,D,Z);case nt:return D=va(D),A(b,v,S,D,Z)}if(ae(D)||Kt(D))return b=b.get(S)||null,j(v,b,D,Z,null);if(typeof D.then=="function")return A(b,v,S,yi(D),Z);if(D.$$typeof===K)return A(b,v,S,oi(v,D),Z);vi(v,D)}return null}function L(b,v,S,D){for(var Z=null,yt=null,Y=v,ut=v=0,ot=null;Y!==null&&ut<S.length;ut++){Y.index>ut?(ot=Y,Y=null):ot=Y.sibling;var vt=E(b,Y,S[ut],D);if(vt===null){Y===null&&(Y=ot);break}t&&Y&&vt.alternate===null&&e(b,Y),v=u(vt,v,ut),yt===null?Z=vt:yt.sibling=vt,yt=vt,Y=ot}if(ut===S.length)return l(b,Y),dt&&il(b,ut),Z;if(Y===null){for(;ut<S.length;ut++)Y=C(b,S[ut],D),Y!==null&&(v=u(Y,v,ut),yt===null?Z=Y:yt.sibling=Y,yt=Y);return dt&&il(b,ut),Z}for(Y=a(Y);ut<S.length;ut++)ot=A(Y,b,ut,S[ut],D),ot!==null&&(t&&ot.alternate!==null&&Y.delete(ot.key===null?ut:ot.key),v=u(ot,v,ut),yt===null?Z=ot:yt.sibling=ot,yt=ot);return t&&Y.forEach(function(Jl){return e(b,Jl)}),dt&&il(b,ut),Z}function J(b,v,S,D){if(S==null)throw Error(r(151));for(var Z=null,yt=null,Y=v,ut=v=0,ot=null,vt=S.next();Y!==null&&!vt.done;ut++,vt=S.next()){Y.index>ut?(ot=Y,Y=null):ot=Y.sibling;var Jl=E(b,Y,vt.value,D);if(Jl===null){Y===null&&(Y=ot);break}t&&Y&&Jl.alternate===null&&e(b,Y),v=u(Jl,v,ut),yt===null?Z=Jl:yt.sibling=Jl,yt=Jl,Y=ot}if(vt.done)return l(b,Y),dt&&il(b,ut),Z;if(Y===null){for(;!vt.done;ut++,vt=S.next())vt=C(b,vt.value,D),vt!==null&&(v=u(vt,v,ut),yt===null?Z=vt:yt.sibling=vt,yt=vt);return dt&&il(b,ut),Z}for(Y=a(Y);!vt.done;ut++,vt=S.next())vt=A(Y,b,ut,vt.value,D),vt!==null&&(t&&vt.alternate!==null&&Y.delete(vt.key===null?ut:vt.key),v=u(vt,v,ut),yt===null?Z=vt:yt.sibling=vt,yt=vt);return t&&Y.forEach(function(Lv){return e(b,Lv)}),dt&&il(b,ut),Z}function jt(b,v,S,D){if(typeof S=="object"&&S!==null&&S.type===F&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case V:t:{for(var Z=S.key;v!==null;){if(v.key===Z){if(Z=S.type,Z===F){if(v.tag===7){l(b,v.sibling),D=n(v,S.props.children),D.return=b,b=D;break t}}else if(v.elementType===Z||typeof Z=="object"&&Z!==null&&Z.$$typeof===nt&&va(Z)===v.type){l(b,v.sibling),D=n(v,S.props),au(D,S),D.return=b,b=D;break t}l(b,v);break}else e(b,v);v=v.sibling}S.type===F?(D=oa(S.props.children,b.mode,D,S.key),D.return=b,b=D):(D=si(S.type,S.key,S.props,null,b.mode,D),au(D,S),D.return=b,b=D)}return s(b);case at:t:{for(Z=S.key;v!==null;){if(v.key===Z)if(v.tag===4&&v.stateNode.containerInfo===S.containerInfo&&v.stateNode.implementation===S.implementation){l(b,v.sibling),D=n(v,S.children||[]),D.return=b,b=D;break t}else{l(b,v);break}else e(b,v);v=v.sibling}D=Kc(S,b.mode,D),D.return=b,b=D}return s(b);case nt:return S=va(S),jt(b,v,S,D)}if(ae(S))return L(b,v,S,D);if(Kt(S)){if(Z=Kt(S),typeof Z!="function")throw Error(r(150));return S=Z.call(S),J(b,v,S,D)}if(typeof S.then=="function")return jt(b,v,yi(S),D);if(S.$$typeof===K)return jt(b,v,oi(b,S),D);vi(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,v!==null&&v.tag===6?(l(b,v.sibling),D=n(v,S),D.return=b,b=D):(l(b,v),D=Vc(S,b.mode,D),D.return=b,b=D),s(b)):l(b,v)}return function(b,v,S,D){try{lu=0;var Z=jt(b,v,S,D);return ln=null,Z}catch(Y){if(Y===en||Y===hi)throw Y;var yt=Ee(29,Y,null,b.mode);return yt.lanes=D,yt.return=b,yt}finally{}}}var ga=Oo(!0),jo=Oo(!1),Dl=!1;function ns(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function us(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Cl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ml(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(gt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=ci(t),ro(t,null,l),e}return ii(t,a,e,l),ci(t)}function nu(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,gr(t,l)}}function is(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=s:u=u.next=s,l=l.next}while(l!==null);u===null?n=u=e:u=u.next=e}else n=u=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var cs=!1;function uu(){if(cs){var t=tn;if(t!==null)throw t}}function iu(t,e,l,a){cs=!1;var n=t.updateQueue;Dl=!1;var u=n.firstBaseUpdate,s=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var m=o,_=m.next;m.next=null,s===null?u=_:s.next=_,s=m;var j=t.alternate;j!==null&&(j=j.updateQueue,o=j.lastBaseUpdate,o!==s&&(o===null?j.firstBaseUpdate=_:o.next=_,j.lastBaseUpdate=m))}if(u!==null){var C=n.baseState;s=0,j=_=m=null,o=u;do{var E=o.lane&-536870913,A=E!==o.lane;if(A?(rt&E)===E:(a&E)===E){E!==0&&E===Pa&&(cs=!0),j!==null&&(j=j.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var L=t,J=o;E=e;var jt=l;switch(J.tag){case 1:if(L=J.payload,typeof L=="function"){C=L.call(jt,C,E);break t}C=L;break t;case 3:L.flags=L.flags&-65537|128;case 0:if(L=J.payload,E=typeof L=="function"?L.call(jt,C,E):L,E==null)break t;C=R({},C,E);break t;case 2:Dl=!0}}E=o.callback,E!==null&&(t.flags|=64,A&&(t.flags|=8192),A=n.callbacks,A===null?n.callbacks=[E]:A.push(E))}else A={lane:E,tag:o.tag,payload:o.payload,callback:o.callback,next:null},j===null?(_=j=A,m=C):j=j.next=A,s|=E;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;A=o,o=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);j===null&&(m=C),n.baseState=m,n.firstBaseUpdate=_,n.lastBaseUpdate=j,u===null&&(n.shared.lanes=0),Hl|=s,t.lanes=s,t.memoizedState=C}}function zo(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Do(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)zo(l[t],e)}var an=g(null),pi=g(0);function Co(t,e){t=pl,w(pi,t),w(an,e),pl=t|e.baseLanes}function ss(){w(pi,pl),w(an,an.current)}function fs(){pl=pi.current,M(an),M(pi)}var Te=g(null),we=null;function Rl(t){var e=t.alternate;w(Qt,Qt.current&1),w(Te,t),we===null&&(e===null||an.current!==null||e.memoizedState!==null)&&(we=t)}function rs(t){w(Qt,Qt.current),w(Te,t),we===null&&(we=t)}function Mo(t){t.tag===22?(w(Qt,Qt.current),w(Te,t),we===null&&(we=t)):Ul()}function Ul(){w(Qt,Qt.current),w(Te,Te.current)}function Ae(t){M(Te),we===t&&(we=null),M(Qt)}var Qt=g(0);function gi(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||pf(l)||gf(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var fl=0,lt=null,Nt=null,Yt=null,bi=!1,nn=!1,ba=!1,xi=0,cu=0,un=null,D0=0;function qt(){throw Error(r(321))}function os(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!_e(t[l],e[l]))return!1;return!0}function ds(t,e,l,a,n,u){return fl=u,lt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,z.H=t===null||t.memoizedState===null?yd:Os,ba=!1,u=l(a,n),ba=!1,nn&&(u=Uo(e,l,a,n)),Ro(t),u}function Ro(t){z.H=ru;var e=Nt!==null&&Nt.next!==null;if(fl=0,Yt=Nt=lt=null,bi=!1,cu=0,un=null,e)throw Error(r(300));t===null||Xt||(t=t.dependencies,t!==null&&ri(t)&&(Xt=!0))}function Uo(t,e,l,a){lt=t;var n=0;do{if(nn&&(un=null),cu=0,nn=!1,25<=n)throw Error(r(301));if(n+=1,Yt=Nt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}z.H=vd,u=e(l,a)}while(nn);return u}function C0(){var t=z.H,e=t.useState()[0];return e=typeof e.then=="function"?su(e):e,t=t.useState()[0],(Nt!==null?Nt.memoizedState:null)!==t&&(lt.flags|=1024),e}function hs(){var t=xi!==0;return xi=0,t}function ms(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function ys(t){if(bi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}bi=!1}fl=0,Yt=Nt=lt=null,nn=!1,cu=xi=0,un=null}function ce(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?lt.memoizedState=Yt=t:Yt=Yt.next=t,Yt}function Lt(){if(Nt===null){var t=lt.alternate;t=t!==null?t.memoizedState:null}else t=Nt.next;var e=Yt===null?lt.memoizedState:Yt.next;if(e!==null)Yt=e,Nt=t;else{if(t===null)throw lt.alternate===null?Error(r(467)):Error(r(310));Nt=t,t={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},Yt===null?lt.memoizedState=Yt=t:Yt=Yt.next=t}return Yt}function Si(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function su(t){var e=cu;return cu+=1,un===null&&(un=[]),t=To(un,t,e),e=lt,(Yt===null?e.memoizedState:Yt.next)===null&&(e=e.alternate,z.H=e===null||e.memoizedState===null?yd:Os),t}function _i(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return su(t);if(t.$$typeof===K)return Pt(t)}throw Error(r(438,String(t)))}function vs(t){var e=null,l=lt.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=lt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Si(),lt.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=Ut;return e.index++,l}function rl(t,e){return typeof e=="function"?e(t):e}function Ei(t){var e=Lt();return ps(e,Nt,t)}function ps(t,e,l){var a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var s=n.next;n.next=u.next,u.next=s}e.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{e=n.next;var o=s=null,m=null,_=e,j=!1;do{var C=_.lane&-536870913;if(C!==_.lane?(rt&C)===C:(fl&C)===C){var E=_.revertLane;if(E===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),C===Pa&&(j=!0);else if((fl&E)===E){_=_.next,E===Pa&&(j=!0);continue}else C={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(o=m=C,s=u):m=m.next=C,lt.lanes|=E,Hl|=E;C=_.action,ba&&l(u,C),u=_.hasEagerState?_.eagerState:l(u,C)}else E={lane:C,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},m===null?(o=m=E,s=u):m=m.next=E,lt.lanes|=C,Hl|=C;_=_.next}while(_!==null&&_!==e);if(m===null?s=u:m.next=o,!_e(u,t.memoizedState)&&(Xt=!0,j&&(l=tn,l!==null)))throw l;t.memoizedState=u,t.baseState=s,t.baseQueue=m,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function gs(t){var e=Lt(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,u=e.memoizedState;if(n!==null){l.pending=null;var s=n=n.next;do u=t(u,s.action),s=s.next;while(s!==n);_e(u,e.memoizedState)||(Xt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,a]}function qo(t,e,l){var a=lt,n=Lt(),u=dt;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=e();var s=!_e((Nt||n).memoizedState,l);if(s&&(n.memoizedState=l,Xt=!0),n=n.queue,Ss(Bo.bind(null,a,n,t),[t]),n.getSnapshot!==e||s||Yt!==null&&Yt.memoizedState.tag&1){if(a.flags|=2048,cn(9,{destroy:void 0},Ho.bind(null,a,n,l,e),null),Dt===null)throw Error(r(349));u||(fl&127)!==0||wo(a,e,l)}return l}function wo(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=lt.updateQueue,e===null?(e=Si(),lt.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Ho(t,e,l,a){e.value=l,e.getSnapshot=a,Qo(e)&&Lo(t)}function Bo(t,e,l){return l(function(){Qo(e)&&Lo(t)})}function Qo(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!_e(t,l)}catch{return!0}}function Lo(t){var e=ra(t,2);e!==null&&ve(e,t,2)}function bs(t){var e=ce();if(typeof t=="function"){var l=t;if(t=l(),ba){El(!0);try{l()}finally{El(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:t},e}function Go(t,e,l,a){return t.baseState=l,ps(t,Nt,typeof a=="function"?a:rl)}function M0(t,e,l,a,n){if(Ni(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){u.listeners.push(s)}};z.T!==null?l(!0):u.isTransition=!1,a(u),l=e.pending,l===null?(u.next=e.pending=u,Yo(e,u)):(u.next=l.next,e.pending=l.next=u)}}function Yo(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var u=z.T,s={};z.T=s;try{var o=l(n,a),m=z.S;m!==null&&m(s,o),Xo(t,e,o)}catch(_){xs(t,e,_)}finally{u!==null&&s.types!==null&&(u.types=s.types),z.T=u}}else try{u=l(n,a),Xo(t,e,u)}catch(_){xs(t,e,_)}}function Xo(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Zo(t,e,a)},function(a){return xs(t,e,a)}):Zo(t,e,l)}function Zo(t,e,l){e.status="fulfilled",e.value=l,Vo(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Yo(t,l)))}function xs(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,Vo(e),e=e.next;while(e!==a)}t.action=null}function Vo(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Ko(t,e){return e}function Jo(t,e){if(dt){var l=Dt.formState;if(l!==null){t:{var a=lt;if(dt){if(Ct){e:{for(var n=Ct,u=qe;n.nodeType!==8;){if(!u){n=null;break e}if(n=He(n.nextSibling),n===null){n=null;break e}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ct=He(n.nextSibling),a=n.data==="F!";break t}}jl(a)}a=!1}a&&(e=l[0])}}return l=ce(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ko,lastRenderedState:e},l.queue=a,l=dd.bind(null,lt,a),a.dispatch=l,a=bs(!1),u=Ns.bind(null,lt,!1,a.queue),a=ce(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=M0.bind(null,lt,n,u,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function ko(t){var e=Lt();return Fo(e,Nt,t)}function Fo(t,e,l){if(e=ps(t,e,Ko)[0],t=Ei(rl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=su(e)}catch(s){throw s===en?hi:s}else a=e;e=Lt();var n=e.queue,u=n.dispatch;return l!==e.memoizedState&&(lt.flags|=2048,cn(9,{destroy:void 0},R0.bind(null,n,l),null)),[a,u,t]}function R0(t,e){t.action=e}function Wo(t){var e=Lt(),l=Nt;if(l!==null)return Fo(e,l,t);Lt(),e=e.memoizedState,l=Lt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function cn(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=lt.updateQueue,e===null&&(e=Si(),lt.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function $o(){return Lt().memoizedState}function Ti(t,e,l,a){var n=ce();lt.flags|=t,n.memoizedState=cn(1|e,{destroy:void 0},l,a===void 0?null:a)}function Ai(t,e,l,a){var n=Lt();a=a===void 0?null:a;var u=n.memoizedState.inst;Nt!==null&&a!==null&&os(a,Nt.memoizedState.deps)?n.memoizedState=cn(e,u,l,a):(lt.flags|=t,n.memoizedState=cn(1|e,u,l,a))}function Io(t,e){Ti(8390656,8,t,e)}function Ss(t,e){Ai(2048,8,t,e)}function U0(t){lt.flags|=4;var e=lt.updateQueue;if(e===null)e=Si(),lt.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Po(t){var e=Lt().memoizedState;return U0({ref:e,nextImpl:t}),function(){if((gt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function td(t,e){return Ai(4,2,t,e)}function ed(t,e){return Ai(4,4,t,e)}function ld(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function ad(t,e,l){l=l!=null?l.concat([t]):null,Ai(4,4,ld.bind(null,e,t),l)}function _s(){}function nd(t,e){var l=Lt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&os(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function ud(t,e){var l=Lt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&os(e,a[1]))return a[0];if(a=t(),ba){El(!0);try{t()}finally{El(!1)}}return l.memoizedState=[a,e],a}function Es(t,e,l){return l===void 0||(fl&1073741824)!==0&&(rt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=ih(),lt.lanes|=t,Hl|=t,l)}function id(t,e,l,a){return _e(l,e)?l:an.current!==null?(t=Es(t,l,a),_e(t,e)||(Xt=!0),t):(fl&42)===0||(fl&1073741824)!==0&&(rt&261930)===0?(Xt=!0,t.memoizedState=l):(t=ih(),lt.lanes|=t,Hl|=t,e)}function cd(t,e,l,a,n){var u=q.p;q.p=u!==0&&8>u?u:8;var s=z.T,o={};z.T=o,Ns(t,!1,e,l);try{var m=n(),_=z.S;if(_!==null&&_(o,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var j=z0(m,a);fu(t,e,j,je(t))}else fu(t,e,a,je(t))}catch(C){fu(t,e,{then:function(){},status:"rejected",reason:C},je())}finally{q.p=u,s!==null&&o.types!==null&&(s.types=o.types),z.T=s}}function q0(){}function Ts(t,e,l,a){if(t.tag!==5)throw Error(r(476));var n=sd(t).queue;cd(t,n,e,W,l===null?q0:function(){return fd(t),l(a)})}function sd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:W},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function fd(t){var e=sd(t);e.next===null&&(e=t.alternate.memoizedState),fu(t,e.next.queue,{},je())}function As(){return Pt(Nu)}function rd(){return Lt().memoizedState}function od(){return Lt().memoizedState}function w0(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=je();t=Cl(l);var a=Ml(e,t,l);a!==null&&(ve(a,e,l),nu(a,e,l)),e={cache:ts()},t.payload=e;return}e=e.return}}function H0(t,e,l){var a=je();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ni(t)?hd(e,l):(l=Xc(t,e,l,a),l!==null&&(ve(l,t,a),md(l,e,a)))}function dd(t,e,l){var a=je();fu(t,e,l,a)}function fu(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ni(t))hd(e,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var s=e.lastRenderedState,o=u(s,l);if(n.hasEagerState=!0,n.eagerState=o,_e(o,s))return ii(t,e,n,0),Dt===null&&ui(),!1}catch{}finally{}if(l=Xc(t,e,n,a),l!==null)return ve(l,t,a),md(l,e,a),!0}return!1}function Ns(t,e,l,a){if(a={lane:2,revertLane:nf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ni(t)){if(e)throw Error(r(479))}else e=Xc(t,l,a,2),e!==null&&ve(e,t,2)}function Ni(t){var e=t.alternate;return t===lt||e!==null&&e===lt}function hd(t,e){nn=bi=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function md(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,gr(t,l)}}var ru={readContext:Pt,use:_i,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};ru.useEffectEvent=qt;var yd={readContext:Pt,use:_i,useCallback:function(t,e){return ce().memoizedState=[t,e===void 0?null:e],t},useContext:Pt,useEffect:Io,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Ti(4194308,4,ld.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Ti(4194308,4,t,e)},useInsertionEffect:function(t,e){Ti(4,2,t,e)},useMemo:function(t,e){var l=ce();e=e===void 0?null:e;var a=t();if(ba){El(!0);try{t()}finally{El(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=ce();if(l!==void 0){var n=l(e);if(ba){El(!0);try{l(e)}finally{El(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=H0.bind(null,lt,t),[a.memoizedState,t]},useRef:function(t){var e=ce();return t={current:t},e.memoizedState=t},useState:function(t){t=bs(t);var e=t.queue,l=dd.bind(null,lt,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:_s,useDeferredValue:function(t,e){var l=ce();return Es(l,t,e)},useTransition:function(){var t=bs(!1);return t=cd.bind(null,lt,t.queue,!0,!1),ce().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=lt,n=ce();if(dt){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),Dt===null)throw Error(r(349));(rt&127)!==0||wo(a,e,l)}n.memoizedState=l;var u={value:l,getSnapshot:e};return n.queue=u,Io(Bo.bind(null,a,u,t),[t]),a.flags|=2048,cn(9,{destroy:void 0},Ho.bind(null,a,u,l,e),null),l},useId:function(){var t=ce(),e=Dt.identifierPrefix;if(dt){var l=We,a=Fe;l=(a&~(1<<32-Se(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=xi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=D0++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:As,useFormState:Jo,useActionState:Jo,useOptimistic:function(t){var e=ce();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Ns.bind(null,lt,!0,l),l.dispatch=e,[t,e]},useMemoCache:vs,useCacheRefresh:function(){return ce().memoizedState=w0.bind(null,lt)},useEffectEvent:function(t){var e=ce(),l={impl:t};return e.memoizedState=l,function(){if((gt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Os={readContext:Pt,use:_i,useCallback:nd,useContext:Pt,useEffect:Ss,useImperativeHandle:ad,useInsertionEffect:td,useLayoutEffect:ed,useMemo:ud,useReducer:Ei,useRef:$o,useState:function(){return Ei(rl)},useDebugValue:_s,useDeferredValue:function(t,e){var l=Lt();return id(l,Nt.memoizedState,t,e)},useTransition:function(){var t=Ei(rl)[0],e=Lt().memoizedState;return[typeof t=="boolean"?t:su(t),e]},useSyncExternalStore:qo,useId:rd,useHostTransitionStatus:As,useFormState:ko,useActionState:ko,useOptimistic:function(t,e){var l=Lt();return Go(l,Nt,t,e)},useMemoCache:vs,useCacheRefresh:od};Os.useEffectEvent=Po;var vd={readContext:Pt,use:_i,useCallback:nd,useContext:Pt,useEffect:Ss,useImperativeHandle:ad,useInsertionEffect:td,useLayoutEffect:ed,useMemo:ud,useReducer:gs,useRef:$o,useState:function(){return gs(rl)},useDebugValue:_s,useDeferredValue:function(t,e){var l=Lt();return Nt===null?Es(l,t,e):id(l,Nt.memoizedState,t,e)},useTransition:function(){var t=gs(rl)[0],e=Lt().memoizedState;return[typeof t=="boolean"?t:su(t),e]},useSyncExternalStore:qo,useId:rd,useHostTransitionStatus:As,useFormState:Wo,useActionState:Wo,useOptimistic:function(t,e){var l=Lt();return Nt!==null?Go(l,Nt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:vs,useCacheRefresh:od};vd.useEffectEvent=Po;function js(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:R({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var zs={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=je(),n=Cl(a);n.payload=e,l!=null&&(n.callback=l),e=Ml(t,n,a),e!==null&&(ve(e,t,a),nu(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=je(),n=Cl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=Ml(t,n,a),e!==null&&(ve(e,t,a),nu(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=je(),a=Cl(l);a.tag=2,e!=null&&(a.callback=e),e=Ml(t,a,l),e!==null&&(ve(e,t,l),nu(e,t,l))}};function pd(t,e,l,a,n,u,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,s):e.prototype&&e.prototype.isPureReactComponent?!Wn(l,a)||!Wn(n,u):!0}function gd(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&zs.enqueueReplaceState(e,e.state,null)}function xa(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=R({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function bd(t){ni(t)}function xd(t){console.error(t)}function Sd(t){ni(t)}function Oi(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function _d(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Ds(t,e,l){return l=Cl(l),l.tag=3,l.payload={element:null},l.callback=function(){Oi(t,e)},l}function Ed(t){return t=Cl(t),t.tag=3,t}function Td(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){_d(e,l,a)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(t.callback=function(){_d(e,l,a),typeof n!="function"&&(Bl===null?Bl=new Set([this]):Bl.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function B0(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&Ia(e,l,n,!0),l=Te.current,l!==null){switch(l.tag){case 31:case 13:return we===null?Qi():l.alternate===null&&wt===0&&(wt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===mi?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),ef(t,a,n)),!1;case 22:return l.flags|=65536,a===mi?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),ef(t,a,n)),!1}throw Error(r(435,l.tag))}return ef(t,a,n),Qi(),!1}if(dt)return e=Te.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==Fc&&(t=Error(r(422),{cause:a}),Pn(Me(t,l)))):(a!==Fc&&(e=Error(r(423),{cause:a}),Pn(Me(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=Me(a,l),n=Ds(t.stateNode,a,n),is(t,n),wt!==4&&(wt=2)),!1;var u=Error(r(520),{cause:a});if(u=Me(u,l),gu===null?gu=[u]:gu.push(u),wt!==4&&(wt=2),e===null)return!0;a=Me(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Ds(l.stateNode,a,t),is(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Bl===null||!Bl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Ed(n),Td(n,t,l,a),is(l,n),!1}l=l.return}while(l!==null);return!1}var Cs=Error(r(461)),Xt=!1;function te(t,e,l,a){e.child=t===null?jo(e,null,l,a):ga(e,t.child,l,a)}function Ad(t,e,l,a,n){l=l.render;var u=e.ref;if("ref"in a){var s={};for(var o in a)o!=="ref"&&(s[o]=a[o])}else s=a;return ma(e),a=ds(t,e,l,s,u,n),o=hs(),t!==null&&!Xt?(ms(t,e,n),ol(t,e,n)):(dt&&o&&Jc(e),e.flags|=1,te(t,e,a,n),e.child)}function Nd(t,e,l,a,n){if(t===null){var u=l.type;return typeof u=="function"&&!Zc(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,Od(t,e,u,a,n)):(t=si(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Qs(t,n)){var s=u.memoizedProps;if(l=l.compare,l=l!==null?l:Wn,l(s,a)&&t.ref===e.ref)return ol(t,e,n)}return e.flags|=1,t=ul(u,a),t.ref=e.ref,t.return=e,e.child=t}function Od(t,e,l,a,n){if(t!==null){var u=t.memoizedProps;if(Wn(u,a)&&t.ref===e.ref)if(Xt=!1,e.pendingProps=a=u,Qs(t,n))(t.flags&131072)!==0&&(Xt=!0);else return e.lanes=t.lanes,ol(t,e,n)}return Ms(t,e,l,a,n)}function jd(t,e,l,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,e.child=null;return zd(t,e,u,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&di(e,u!==null?u.cachePool:null),u!==null?Co(e,u):ss(),Mo(e);else return a=e.lanes=536870912,zd(t,e,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(di(e,u.cachePool),Co(e,u),Ul(),e.memoizedState=null):(t!==null&&di(e,null),ss(),Ul());return te(t,e,n,l),e.child}function ou(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function zd(t,e,l,a,n){var u=ls();return u=u===null?null:{parent:Gt._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&di(e,null),ss(),Mo(e),t!==null&&Ia(t,e,a,!0),e.childLanes=n,null}function ji(t,e){return e=Di({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Dd(t,e,l){return ga(e,t.child,null,l),t=ji(e,e.pendingProps),t.flags|=2,Ae(e),e.memoizedState=null,t}function Q0(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(dt){if(a.mode==="hidden")return t=ji(e,a),e.lanes=536870912,ou(null,t);if(rs(e),(t=Ct)?(t=Yh(t,qe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Nl!==null?{id:Fe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},l=ho(t),l.return=e,e.child=l,It=e,Ct=null)):t=null,t===null)throw jl(e);return e.lanes=536870912,null}return ji(e,a)}var u=t.memoizedState;if(u!==null){var s=u.dehydrated;if(rs(e),n)if(e.flags&256)e.flags&=-257,e=Dd(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Xt||Ia(t,e,l,!1),n=(l&t.childLanes)!==0,Xt||n){if(a=Dt,a!==null&&(s=br(a,l),s!==0&&s!==u.retryLane))throw u.retryLane=s,ra(t,s),ve(a,t,s),Cs;Qi(),e=Dd(t,e,l)}else t=u.treeContext,Ct=He(s.nextSibling),It=e,dt=!0,Ol=null,qe=!1,t!==null&&vo(e,t),e=ji(e,a),e.flags|=4096;return e}return t=ul(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function zi(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Ms(t,e,l,a,n){return ma(e),l=ds(t,e,l,a,void 0,n),a=hs(),t!==null&&!Xt?(ms(t,e,n),ol(t,e,n)):(dt&&a&&Jc(e),e.flags|=1,te(t,e,l,n),e.child)}function Cd(t,e,l,a,n,u){return ma(e),e.updateQueue=null,l=Uo(e,a,l,n),Ro(t),a=hs(),t!==null&&!Xt?(ms(t,e,u),ol(t,e,u)):(dt&&a&&Jc(e),e.flags|=1,te(t,e,l,u),e.child)}function Md(t,e,l,a,n){if(ma(e),e.stateNode===null){var u=ka,s=l.contextType;typeof s=="object"&&s!==null&&(u=Pt(s)),u=new l(a,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=zs,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=a,u.state=e.memoizedState,u.refs={},ns(e),s=l.contextType,u.context=typeof s=="object"&&s!==null?Pt(s):ka,u.state=e.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(js(e,l,s,a),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(s=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),s!==u.state&&zs.enqueueReplaceState(u,u.state,null),iu(e,a,u,n),uu(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){u=e.stateNode;var o=e.memoizedProps,m=xa(l,o);u.props=m;var _=u.context,j=l.contextType;s=ka,typeof j=="object"&&j!==null&&(s=Pt(j));var C=l.getDerivedStateFromProps;j=typeof C=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,j||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||_!==s)&&gd(e,u,a,s),Dl=!1;var E=e.memoizedState;u.state=E,iu(e,a,u,n),uu(),_=e.memoizedState,o||E!==_||Dl?(typeof C=="function"&&(js(e,l,C,a),_=e.memoizedState),(m=Dl||pd(e,l,m,a,E,_,s))?(j||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=_),u.props=a,u.state=_,u.context=s,a=m):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{u=e.stateNode,us(t,e),s=e.memoizedProps,j=xa(l,s),u.props=j,C=e.pendingProps,E=u.context,_=l.contextType,m=ka,typeof _=="object"&&_!==null&&(m=Pt(_)),o=l.getDerivedStateFromProps,(_=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==C||E!==m)&&gd(e,u,a,m),Dl=!1,E=e.memoizedState,u.state=E,iu(e,a,u,n),uu();var A=e.memoizedState;s!==C||E!==A||Dl||t!==null&&t.dependencies!==null&&ri(t.dependencies)?(typeof o=="function"&&(js(e,l,o,a),A=e.memoizedState),(j=Dl||pd(e,l,j,a,E,A,m)||t!==null&&t.dependencies!==null&&ri(t.dependencies))?(_||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,A,m),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,A,m)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||s===t.memoizedProps&&E===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&E===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=A),u.props=a,u.state=A,u.context=m,a=j):(typeof u.componentDidUpdate!="function"||s===t.memoizedProps&&E===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&E===t.memoizedState||(e.flags|=1024),a=!1)}return u=a,zi(t,e),a=(e.flags&128)!==0,u||a?(u=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&a?(e.child=ga(e,t.child,null,n),e.child=ga(e,null,l,n)):te(t,e,l,n),e.memoizedState=u.state,t=e.child):t=ol(t,e,n),t}function Rd(t,e,l,a){return da(),e.flags|=256,te(t,e,l,a),e.child}var Rs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Us(t){return{baseLanes:t,cachePool:_o()}}function qs(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Oe),t}function Ud(t,e,l){var a=e.pendingProps,n=!1,u=(e.flags&128)!==0,s;if((s=u)||(s=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),s&&(n=!0,e.flags&=-129),s=(e.flags&32)!==0,e.flags&=-33,t===null){if(dt){if(n?Rl(e):Ul(),(t=Ct)?(t=Yh(t,qe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Nl!==null?{id:Fe,overflow:We}:null,retryLane:536870912,hydrationErrors:null},l=ho(t),l.return=e,e.child=l,It=e,Ct=null)):t=null,t===null)throw jl(e);return gf(t)?e.lanes=32:e.lanes=536870912,null}var o=a.children;return a=a.fallback,n?(Ul(),n=e.mode,o=Di({mode:"hidden",children:o},n),a=oa(a,n,l,null),o.return=e,a.return=e,o.sibling=a,e.child=o,a=e.child,a.memoizedState=Us(l),a.childLanes=qs(t,s,l),e.memoizedState=Rs,ou(null,a)):(Rl(e),ws(e,o))}var m=t.memoizedState;if(m!==null&&(o=m.dehydrated,o!==null)){if(u)e.flags&256?(Rl(e),e.flags&=-257,e=Hs(t,e,l)):e.memoizedState!==null?(Ul(),e.child=t.child,e.flags|=128,e=null):(Ul(),o=a.fallback,n=e.mode,a=Di({mode:"visible",children:a.children},n),o=oa(o,n,l,null),o.flags|=2,a.return=e,o.return=e,a.sibling=o,e.child=a,ga(e,t.child,null,l),a=e.child,a.memoizedState=Us(l),a.childLanes=qs(t,s,l),e.memoizedState=Rs,e=ou(null,a));else if(Rl(e),gf(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var _=s.dgst;s=_,a=Error(r(419)),a.stack="",a.digest=s,Pn({value:a,source:null,stack:null}),e=Hs(t,e,l)}else if(Xt||Ia(t,e,l,!1),s=(l&t.childLanes)!==0,Xt||s){if(s=Dt,s!==null&&(a=br(s,l),a!==0&&a!==m.retryLane))throw m.retryLane=a,ra(t,a),ve(s,t,a),Cs;pf(o)||Qi(),e=Hs(t,e,l)}else pf(o)?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,Ct=He(o.nextSibling),It=e,dt=!0,Ol=null,qe=!1,t!==null&&vo(e,t),e=ws(e,a.children),e.flags|=4096);return e}return n?(Ul(),o=a.fallback,n=e.mode,m=t.child,_=m.sibling,a=ul(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,_!==null?o=ul(_,o):(o=oa(o,n,l,null),o.flags|=2),o.return=e,a.return=e,a.sibling=o,e.child=a,ou(null,a),a=e.child,o=t.child.memoizedState,o===null?o=Us(l):(n=o.cachePool,n!==null?(m=Gt._currentValue,n=n.parent!==m?{parent:m,pool:m}:n):n=_o(),o={baseLanes:o.baseLanes|l,cachePool:n}),a.memoizedState=o,a.childLanes=qs(t,s,l),e.memoizedState=Rs,ou(t.child,a)):(Rl(e),l=t.child,t=l.sibling,l=ul(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(s=e.deletions,s===null?(e.deletions=[t],e.flags|=16):s.push(t)),e.child=l,e.memoizedState=null,l)}function ws(t,e){return e=Di({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Di(t,e){return t=Ee(22,t,null,e),t.lanes=0,t}function Hs(t,e,l){return ga(e,t.child,null,l),t=ws(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function qd(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Ic(t.return,e,l)}function Bs(t,e,l,a,n,u){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=l,s.tailMode=n,s.treeForkCount=u)}function wd(t,e,l){var a=e.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var s=Qt.current,o=(s&2)!==0;if(o?(s=s&1|2,e.flags|=128):s&=1,w(Qt,s),te(t,e,a,l),a=dt?In:0,!o&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&qd(t,l,e);else if(t.tag===19)qd(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&gi(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Bs(e,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&gi(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Bs(e,!0,l,null,u,a);break;case"together":Bs(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function ol(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Hl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Ia(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,l=ul(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=ul(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Qs(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ri(t)))}function L0(t,e,l){switch(e.tag){case 3:ie(e,e.stateNode.containerInfo),zl(e,Gt,t.memoizedState.cache),da();break;case 27:case 5:Hn(e);break;case 4:ie(e,e.stateNode.containerInfo);break;case 10:zl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,rs(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Rl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Ud(t,e,l):(Rl(e),t=ol(t,e,l),t!==null?t.sibling:null);Rl(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(Ia(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return wd(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),w(Qt,Qt.current),a)break;return null;case 22:return e.lanes=0,jd(t,e,l,e.pendingProps);case 24:zl(e,Gt,t.memoizedState.cache)}return ol(t,e,l)}function Hd(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Xt=!0;else{if(!Qs(t,l)&&(e.flags&128)===0)return Xt=!1,L0(t,e,l);Xt=(t.flags&131072)!==0}else Xt=!1,dt&&(e.flags&1048576)!==0&&yo(e,In,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=va(e.elementType),e.type=t,typeof t=="function")Zc(t)?(a=xa(t,a),e.tag=1,e=Md(null,e,t,a,l)):(e.tag=0,e=Ms(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===Q){e.tag=11,e=Ad(null,e,t,a,l);break t}else if(n===P){e.tag=14,e=Nd(null,e,t,a,l);break t}}throw e=fe(t)||t,Error(r(306,e,""))}}return e;case 0:return Ms(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=xa(a,e.pendingProps),Md(t,e,a,n,l);case 3:t:{if(ie(e,e.stateNode.containerInfo),t===null)throw Error(r(387));a=e.pendingProps;var u=e.memoizedState;n=u.element,us(t,e),iu(e,a,null,l);var s=e.memoizedState;if(a=s.cache,zl(e,Gt,a),a!==u.cache&&Pc(e,[Gt],l,!0),uu(),a=s.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:s.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Rd(t,e,a,l);break t}else if(a!==n){n=Me(Error(r(424)),e),Pn(n),e=Rd(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Ct=He(t.firstChild),It=e,dt=!0,Ol=null,qe=!0,l=jo(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(da(),a===n){e=ol(t,e,l);break t}te(t,e,a,l)}e=e.child}return e;case 26:return zi(t,e),t===null?(l=kh(e.type,null,e.pendingProps,null))?e.memoizedState=l:dt||(l=e.type,t=e.pendingProps,a=Ki(it.current).createElement(l),a[$t]=e,a[re]=t,ee(a,l,t),kt(a),e.stateNode=a):e.memoizedState=kh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Hn(e),t===null&&dt&&(a=e.stateNode=Vh(e.type,e.pendingProps,it.current),It=e,qe=!0,n=Ct,Yl(e.type)?(bf=n,Ct=He(a.firstChild)):Ct=n),te(t,e,e.pendingProps.children,l),zi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&dt&&((n=a=Ct)&&(a=vv(a,e.type,e.pendingProps,qe),a!==null?(e.stateNode=a,It=e,Ct=He(a.firstChild),qe=!1,n=!0):n=!1),n||jl(e)),Hn(e),n=e.type,u=e.pendingProps,s=t!==null?t.memoizedProps:null,a=u.children,mf(n,u)?a=null:s!==null&&mf(n,s)&&(e.flags|=32),e.memoizedState!==null&&(n=ds(t,e,C0,null,null,l),Nu._currentValue=n),zi(t,e),te(t,e,a,l),e.child;case 6:return t===null&&dt&&((t=l=Ct)&&(l=pv(l,e.pendingProps,qe),l!==null?(e.stateNode=l,It=e,Ct=null,t=!0):t=!1),t||jl(e)),null;case 13:return Ud(t,e,l);case 4:return ie(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ga(e,null,a,l):te(t,e,a,l),e.child;case 11:return Ad(t,e,e.type,e.pendingProps,l);case 7:return te(t,e,e.pendingProps,l),e.child;case 8:return te(t,e,e.pendingProps.children,l),e.child;case 12:return te(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,zl(e,e.type,a.value),te(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,ma(e),n=Pt(n),a=a(n),e.flags|=1,te(t,e,a,l),e.child;case 14:return Nd(t,e,e.type,e.pendingProps,l);case 15:return Od(t,e,e.type,e.pendingProps,l);case 19:return wd(t,e,l);case 31:return Q0(t,e,l);case 22:return jd(t,e,l,e.pendingProps);case 24:return ma(e),a=Pt(Gt),t===null?(n=ls(),n===null&&(n=Dt,u=ts(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),e.memoizedState={parent:a,cache:n},ns(e),zl(e,Gt,n)):((t.lanes&l)!==0&&(us(t,e),iu(e,null,null,l),uu()),n=t.memoizedState,u=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),zl(e,Gt,a)):(a=u.cache,zl(e,Gt,a),a!==n.cache&&Pc(e,[Gt],l,!0))),te(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function dl(t){t.flags|=4}function Ls(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(rh())t.flags|=8192;else throw pa=mi,as}else t.flags&=-16777217}function Bd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ph(e))if(rh())t.flags|=8192;else throw pa=mi,as}function Ci(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?vr():536870912,t.lanes|=e,on|=e)}function du(t,e){if(!dt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Mt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function G0(t,e,l){var a=e.pendingProps;switch(kc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mt(e),null;case 1:return Mt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),sl(Gt),Bt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&($a(e)?dl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Wc())),Mt(e),null;case 26:var n=e.type,u=e.memoizedState;return t===null?(dl(e),u!==null?(Mt(e),Bd(e,u)):(Mt(e),Ls(e,n,null,a,l))):u?u!==t.memoizedState?(dl(e),Mt(e),Bd(e,u)):(Mt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&dl(e),Mt(e),Ls(e,n,t,a,l)),null;case 27:if(Yu(e),l=it.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&dl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Mt(e),null}t=G.current,$a(e)?po(e):(t=Vh(n,a,l),e.stateNode=t,dl(e))}return Mt(e),null;case 5:if(Yu(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&dl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Mt(e),null}if(u=G.current,$a(e))po(e);else{var s=Ki(it.current);switch(u){case 1:u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=s.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}u[$t]=e,u[re]=a;t:for(s=e.child;s!==null;){if(s.tag===5||s.tag===6)u.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break t;for(;s.sibling===null;){if(s.return===null||s.return===e)break t;s=s.return}s.sibling.return=s.return,s=s.sibling}e.stateNode=u;t:switch(ee(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&dl(e)}}return Mt(e),Ls(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&dl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(t=it.current,$a(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=It,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[$t]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Uh(t.nodeValue,l)),t||jl(e,!0)}else t=Ki(t).createTextNode(a),t[$t]=e,e.stateNode=t}return Mt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=$a(e),l!==null){if(t===null){if(!a)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[$t]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Mt(e),t=!1}else l=Wc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Ae(e),e):(Ae(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Mt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=$a(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(r(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[$t]=e}else da(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Mt(e),n=!1}else n=Wc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(Ae(e),e):(Ae(e),null)}return Ae(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Ci(e,e.updateQueue),Mt(e),null);case 4:return Bt(),t===null&&ff(e.stateNode.containerInfo),Mt(e),null;case 10:return sl(e.type),Mt(e),null;case 19:if(M(Qt),a=e.memoizedState,a===null)return Mt(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)du(a,!1);else{if(wt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=gi(t),u!==null){for(e.flags|=128,du(a,!1),t=u.updateQueue,e.updateQueue=t,Ci(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)oo(l,t),l=l.sibling;return w(Qt,Qt.current&1|2),dt&&il(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&be()>wi&&(e.flags|=128,n=!0,du(a,!1),e.lanes=4194304)}else{if(!n)if(t=gi(u),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Ci(e,t),du(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!dt)return Mt(e),null}else 2*be()-a.renderingStartTime>wi&&l!==536870912&&(e.flags|=128,n=!0,du(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=be(),t.sibling=null,l=Qt.current,w(Qt,n?l&1|2:l&1),dt&&il(e,a.treeForkCount),t):(Mt(e),null);case 22:case 23:return Ae(e),fs(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Mt(e),e.subtreeFlags&6&&(e.flags|=8192)):Mt(e),l=e.updateQueue,l!==null&&Ci(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&M(ya),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),sl(Gt),Mt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Y0(t,e){switch(kc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return sl(Gt),Bt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Yu(e),null;case 31:if(e.memoizedState!==null){if(Ae(e),e.alternate===null)throw Error(r(340));da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ae(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));da()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return M(Qt),null;case 4:return Bt(),null;case 10:return sl(e.type),null;case 22:case 23:return Ae(e),fs(),t!==null&&M(ya),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return sl(Gt),null;case 25:return null;default:return null}}function Qd(t,e){switch(kc(e),e.tag){case 3:sl(Gt),Bt();break;case 26:case 27:case 5:Yu(e);break;case 4:Bt();break;case 31:e.memoizedState!==null&&Ae(e);break;case 13:Ae(e);break;case 19:M(Qt);break;case 10:sl(e.type);break;case 22:case 23:Ae(e),fs(),t!==null&&M(ya);break;case 24:sl(Gt)}}function hu(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var u=l.create,s=l.inst;a=u(),s.destroy=a}l=l.next}while(l!==n)}}catch(o){Tt(e,e.return,o)}}function ql(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var s=a.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,n=e;var m=l,_=o;try{_()}catch(j){Tt(n,m,j)}}}a=a.next}while(a!==u)}}catch(j){Tt(e,e.return,j)}}function Ld(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Do(e,l)}catch(a){Tt(t,t.return,a)}}}function Gd(t,e,l){l.props=xa(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){Tt(t,e,a)}}function mu(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){Tt(t,e,n)}}function $e(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Tt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Tt(t,e,n)}else l.current=null}function Yd(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Tt(t,t.return,n)}}function Gs(t,e,l){try{var a=t.stateNode;rv(a,t.type,l,e),a[re]=e}catch(n){Tt(t,t.return,n)}}function Xd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yl(t.type)||t.tag===4}function Ys(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Xd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Yl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Xs(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=al));else if(a!==4&&(a===27&&Yl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Xs(t,e,l),t=t.sibling;t!==null;)Xs(t,e,l),t=t.sibling}function Mi(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Yl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Mi(t,e,l),t=t.sibling;t!==null;)Mi(t,e,l),t=t.sibling}function Zd(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ee(e,a,l),e[$t]=t,e[re]=l}catch(u){Tt(t,t.return,u)}}var hl=!1,Zt=!1,Zs=!1,Vd=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function X0(t,e){if(t=t.containerInfo,df=Pi,t=lo(t),Hc(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var s=0,o=-1,m=-1,_=0,j=0,C=t,E=null;e:for(;;){for(var A;C!==l||n!==0&&C.nodeType!==3||(o=s+n),C!==u||a!==0&&C.nodeType!==3||(m=s+a),C.nodeType===3&&(s+=C.nodeValue.length),(A=C.firstChild)!==null;)E=C,C=A;for(;;){if(C===t)break e;if(E===l&&++_===n&&(o=s),E===u&&++j===a&&(m=s),(A=C.nextSibling)!==null)break;C=E,E=C.parentNode}C=A}l=o===-1||m===-1?null:{start:o,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(hf={focusedElem:t,selectionRange:l},Pi=!1,Ft=e;Ft!==null;)if(e=Ft,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ft=t;else for(;Ft!==null;){switch(e=Ft,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var L=xa(l.type,n);t=a.getSnapshotBeforeUpdate(L,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(J){Tt(l,l.return,J)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)vf(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":vf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,Ft=t;break}Ft=e.return}}function Kd(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:yl(t,l),a&4&&hu(5,l);break;case 1:if(yl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(s){Tt(l,l.return,s)}else{var n=xa(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(s){Tt(l,l.return,s)}}a&64&&Ld(l),a&512&&mu(l,l.return);break;case 3:if(yl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Do(t,e)}catch(s){Tt(l,l.return,s)}}break;case 27:e===null&&a&4&&Zd(l);case 26:case 5:yl(t,l),e===null&&a&4&&Yd(l),a&512&&mu(l,l.return);break;case 12:yl(t,l);break;case 31:yl(t,l),a&4&&Fd(t,l);break;case 13:yl(t,l),a&4&&Wd(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=I0.bind(null,l),gv(t,l))));break;case 22:if(a=l.memoizedState!==null||hl,!a){e=e!==null&&e.memoizedState!==null||Zt,n=hl;var u=Zt;hl=a,(Zt=e)&&!u?vl(t,l,(l.subtreeFlags&8772)!==0):yl(t,l),hl=n,Zt=u}break;case 30:break;default:yl(t,l)}}function Jd(t){var e=t.alternate;e!==null&&(t.alternate=null,Jd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&xc(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Rt=null,de=!1;function ml(t,e,l){for(l=l.child;l!==null;)kd(t,e,l),l=l.sibling}function kd(t,e,l){if(xe&&typeof xe.onCommitFiberUnmount=="function")try{xe.onCommitFiberUnmount(Bn,l)}catch{}switch(l.tag){case 26:Zt||$e(l,e),ml(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Zt||$e(l,e);var a=Rt,n=de;Yl(l.type)&&(Rt=l.stateNode,de=!1),ml(t,e,l),Eu(l.stateNode),Rt=a,de=n;break;case 5:Zt||$e(l,e);case 6:if(a=Rt,n=de,Rt=null,ml(t,e,l),Rt=a,de=n,Rt!==null)if(de)try{(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt).removeChild(l.stateNode)}catch(u){Tt(l,e,u)}else try{Rt.removeChild(l.stateNode)}catch(u){Tt(l,e,u)}break;case 18:Rt!==null&&(de?(t=Rt,Lh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),bn(t)):Lh(Rt,l.stateNode));break;case 4:a=Rt,n=de,Rt=l.stateNode.containerInfo,de=!0,ml(t,e,l),Rt=a,de=n;break;case 0:case 11:case 14:case 15:ql(2,l,e),Zt||ql(4,l,e),ml(t,e,l);break;case 1:Zt||($e(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Gd(l,e,a)),ml(t,e,l);break;case 21:ml(t,e,l);break;case 22:Zt=(a=Zt)||l.memoizedState!==null,ml(t,e,l),Zt=a;break;default:ml(t,e,l)}}function Fd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{bn(t)}catch(l){Tt(e,e.return,l)}}}function Wd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{bn(t)}catch(l){Tt(e,e.return,l)}}function Z0(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Vd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Vd),e;default:throw Error(r(435,t.tag))}}function Ri(t,e){var l=Z0(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=P0.bind(null,t,a);a.then(n,n)}})}function he(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=t,s=e,o=s;t:for(;o!==null;){switch(o.tag){case 27:if(Yl(o.type)){Rt=o.stateNode,de=!1;break t}break;case 5:Rt=o.stateNode,de=!1;break t;case 3:case 4:Rt=o.stateNode.containerInfo,de=!0;break t}o=o.return}if(Rt===null)throw Error(r(160));kd(u,s,n),Rt=null,de=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)$d(e,t),e=e.sibling}var Xe=null;function $d(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:he(e,t),me(t),a&4&&(ql(3,t,t.return),hu(3,t),ql(5,t,t.return));break;case 1:he(e,t),me(t),a&512&&(Zt||l===null||$e(l,l.return)),a&64&&hl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Xe;if(he(e,t),me(t),a&512&&(Zt||l===null||$e(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Gn]||u[$t]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),ee(u,a,l),u[$t]=t,kt(u),a=u;break t;case"link":var s=$h("link","href",n).get(a+(l.href||""));if(s){for(var o=0;o<s.length;o++)if(u=s[o],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){s.splice(o,1);break e}}u=n.createElement(a),ee(u,a,l),n.head.appendChild(u);break;case"meta":if(s=$h("meta","content",n).get(a+(l.content||""))){for(o=0;o<s.length;o++)if(u=s[o],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){s.splice(o,1);break e}}u=n.createElement(a),ee(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[$t]=t,kt(u),a=u}t.stateNode=a}else Ih(n,t.type,t.stateNode);else t.stateNode=Wh(n,a,t.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Ih(n,t.type,t.stateNode):Wh(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Gs(t,t.memoizedProps,l.memoizedProps)}break;case 27:he(e,t),me(t),a&512&&(Zt||l===null||$e(l,l.return)),l!==null&&a&4&&Gs(t,t.memoizedProps,l.memoizedProps);break;case 5:if(he(e,t),me(t),a&512&&(Zt||l===null||$e(l,l.return)),t.flags&32){n=t.stateNode;try{Ga(n,"")}catch(L){Tt(t,t.return,L)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Gs(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Zs=!0);break;case 6:if(he(e,t),me(t),a&4){if(t.stateNode===null)throw Error(r(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(L){Tt(t,t.return,L)}}break;case 3:if(Fi=null,n=Xe,Xe=Ji(e.containerInfo),he(e,t),Xe=n,me(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{bn(e.containerInfo)}catch(L){Tt(t,t.return,L)}Zs&&(Zs=!1,Id(t));break;case 4:a=Xe,Xe=Ji(t.stateNode.containerInfo),he(e,t),me(t),Xe=a;break;case 12:he(e,t),me(t);break;case 31:he(e,t),me(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ri(t,a)));break;case 13:he(e,t),me(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(qi=be()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ri(t,a)));break;case 22:n=t.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,_=hl,j=Zt;if(hl=_||n,Zt=j||m,he(e,t),Zt=j,hl=_,me(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||m||hl||Zt||Sa(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){m=l=e;try{if(u=m.stateNode,n)s=u.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{o=m.stateNode;var C=m.memoizedProps.style,E=C!=null&&C.hasOwnProperty("display")?C.display:null;o.style.display=E==null||typeof E=="boolean"?"":(""+E).trim()}}catch(L){Tt(m,m.return,L)}}}else if(e.tag===6){if(l===null){m=e;try{m.stateNode.nodeValue=n?"":m.memoizedProps}catch(L){Tt(m,m.return,L)}}}else if(e.tag===18){if(l===null){m=e;try{var A=m.stateNode;n?Gh(A,!0):Gh(m.stateNode,!1)}catch(L){Tt(m,m.return,L)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Ri(t,l))));break;case 19:he(e,t),me(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Ri(t,a)));break;case 30:break;case 21:break;default:he(e,t),me(t)}}function me(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(Xd(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=Ys(t);Mi(t,u,n);break;case 5:var s=l.stateNode;l.flags&32&&(Ga(s,""),l.flags&=-33);var o=Ys(t);Mi(t,o,s);break;case 3:case 4:var m=l.stateNode.containerInfo,_=Ys(t);Xs(t,_,m);break;default:throw Error(r(161))}}catch(j){Tt(t,t.return,j)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Id(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Id(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function yl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Kd(t,e.alternate,e),e=e.sibling}function Sa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ql(4,e,e.return),Sa(e);break;case 1:$e(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Gd(e,e.return,l),Sa(e);break;case 27:Eu(e.stateNode);case 26:case 5:$e(e,e.return),Sa(e);break;case 22:e.memoizedState===null&&Sa(e);break;case 30:Sa(e);break;default:Sa(e)}t=t.sibling}}function vl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,u=e,s=u.flags;switch(u.tag){case 0:case 11:case 15:vl(n,u,l),hu(4,u);break;case 1:if(vl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(_){Tt(a,a.return,_)}if(a=u,n=a.updateQueue,n!==null){var o=a.stateNode;try{var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)zo(m[n],o)}catch(_){Tt(a,a.return,_)}}l&&s&64&&Ld(u),mu(u,u.return);break;case 27:Zd(u);case 26:case 5:vl(n,u,l),l&&a===null&&s&4&&Yd(u),mu(u,u.return);break;case 12:vl(n,u,l);break;case 31:vl(n,u,l),l&&s&4&&Fd(n,u);break;case 13:vl(n,u,l),l&&s&4&&Wd(n,u);break;case 22:u.memoizedState===null&&vl(n,u,l),mu(u,u.return);break;case 30:break;default:vl(n,u,l)}e=e.sibling}}function Vs(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&tu(l))}function Ks(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&tu(t))}function Ze(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pd(t,e,l,a),e=e.sibling}function Pd(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Ze(t,e,l,a),n&2048&&hu(9,e);break;case 1:Ze(t,e,l,a);break;case 3:Ze(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&tu(t)));break;case 12:if(n&2048){Ze(t,e,l,a),t=e.stateNode;try{var u=e.memoizedProps,s=u.id,o=u.onPostCommit;typeof o=="function"&&o(s,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){Tt(e,e.return,m)}}else Ze(t,e,l,a);break;case 31:Ze(t,e,l,a);break;case 13:Ze(t,e,l,a);break;case 23:break;case 22:u=e.stateNode,s=e.alternate,e.memoizedState!==null?u._visibility&2?Ze(t,e,l,a):yu(t,e):u._visibility&2?Ze(t,e,l,a):(u._visibility|=2,sn(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&Vs(s,e);break;case 24:Ze(t,e,l,a),n&2048&&Ks(e.alternate,e);break;default:Ze(t,e,l,a)}}function sn(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,s=e,o=l,m=a,_=s.flags;switch(s.tag){case 0:case 11:case 15:sn(u,s,o,m,n),hu(8,s);break;case 23:break;case 22:var j=s.stateNode;s.memoizedState!==null?j._visibility&2?sn(u,s,o,m,n):yu(u,s):(j._visibility|=2,sn(u,s,o,m,n)),n&&_&2048&&Vs(s.alternate,s);break;case 24:sn(u,s,o,m,n),n&&_&2048&&Ks(s.alternate,s);break;default:sn(u,s,o,m,n)}e=e.sibling}}function yu(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:yu(l,a),n&2048&&Vs(a.alternate,a);break;case 24:yu(l,a),n&2048&&Ks(a.alternate,a);break;default:yu(l,a)}e=e.sibling}}var vu=8192;function fn(t,e,l){if(t.subtreeFlags&vu)for(t=t.child;t!==null;)th(t,e,l),t=t.sibling}function th(t,e,l){switch(t.tag){case 26:fn(t,e,l),t.flags&vu&&t.memoizedState!==null&&Dv(l,Xe,t.memoizedState,t.memoizedProps);break;case 5:fn(t,e,l);break;case 3:case 4:var a=Xe;Xe=Ji(t.stateNode.containerInfo),fn(t,e,l),Xe=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=vu,vu=16777216,fn(t,e,l),vu=a):fn(t,e,l));break;default:fn(t,e,l)}}function eh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function pu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Ft=a,ah(a,t)}eh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)lh(t),t=t.sibling}function lh(t){switch(t.tag){case 0:case 11:case 15:pu(t),t.flags&2048&&ql(9,t,t.return);break;case 3:pu(t);break;case 12:pu(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ui(t)):pu(t);break;default:pu(t)}}function Ui(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Ft=a,ah(a,t)}eh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ql(8,e,e.return),Ui(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Ui(e));break;default:Ui(e)}t=t.sibling}}function ah(t,e){for(;Ft!==null;){var l=Ft;switch(l.tag){case 0:case 11:case 15:ql(8,l,e);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:tu(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ft=a;else t:for(l=t;Ft!==null;){a=Ft;var n=a.sibling,u=a.return;if(Jd(a),a===l){Ft=null;break t}if(n!==null){n.return=u,Ft=n;break t}Ft=u}}}var V0={getCacheForType:function(t){var e=Pt(Gt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Pt(Gt).controller.signal}},K0=typeof WeakMap=="function"?WeakMap:Map,gt=0,Dt=null,ct=null,rt=0,Et=0,Ne=null,wl=!1,rn=!1,Js=!1,pl=0,wt=0,Hl=0,_a=0,ks=0,Oe=0,on=0,gu=null,ye=null,Fs=!1,qi=0,nh=0,wi=1/0,Hi=null,Bl=null,Jt=0,Ql=null,dn=null,gl=0,Ws=0,$s=null,uh=null,bu=0,Is=null;function je(){return(gt&2)!==0&&rt!==0?rt&-rt:z.T!==null?nf():xr()}function ih(){if(Oe===0)if((rt&536870912)===0||dt){var t=Vu;Vu<<=1,(Vu&3932160)===0&&(Vu=262144),Oe=t}else Oe=536870912;return t=Te.current,t!==null&&(t.flags|=32),Oe}function ve(t,e,l){(t===Dt&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(hn(t,0),Ll(t,rt,Oe,!1)),Ln(t,l),((gt&2)===0||t!==Dt)&&(t===Dt&&((gt&2)===0&&(_a|=l),wt===4&&Ll(t,rt,Oe,!1)),Ie(t))}function ch(t,e,l){if((gt&6)!==0)throw Error(r(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Qn(t,e),n=a?F0(t,e):tf(t,e,!0),u=a;do{if(n===0){rn&&!a&&Ll(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!J0(l)){n=tf(t,e,!1),u=!1;continue}if(n===2){if(u=e,t.errorRecoveryDisabledLanes&u)var s=0;else s=t.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){e=s;t:{var o=t;n=gu;var m=o.current.memoizedState.isDehydrated;if(m&&(hn(o,s).flags|=256),s=tf(o,s,!1),s!==2){if(Js&&!m){o.errorRecoveryDisabledLanes|=u,_a|=u,n=4;break t}u=ye,ye=n,u!==null&&(ye===null?ye=u:ye.push.apply(ye,u))}n=s}if(u=!1,n!==2)continue}}if(n===1){hn(t,0),Ll(t,e,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Ll(a,e,Oe,!wl);break t;case 2:ye=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(n=qi+300-be(),10<n)){if(Ll(a,e,Oe,!wl),Ju(a,0,!0)!==0)break t;gl=e,a.timeoutHandle=Bh(sh.bind(null,a,l,ye,Hi,Fs,e,Oe,_a,on,wl,u,"Throttled",-0,0),n);break t}sh(a,l,ye,Hi,Fs,e,Oe,_a,on,wl,u,null,-0,0)}}break}while(!0);Ie(t)}function sh(t,e,l,a,n,u,s,o,m,_,j,C,E,A){if(t.timeoutHandle=-1,C=e.subtreeFlags,C&8192||(C&16785408)===16785408){C={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:al},th(e,u,C);var L=(u&62914560)===u?qi-be():(u&4194048)===u?nh-be():0;if(L=Cv(C,L),L!==null){gl=u,t.cancelPendingCommit=L(vh.bind(null,t,e,u,l,a,n,s,o,m,j,C,null,E,A)),Ll(t,u,s,!_);return}}vh(t,e,u,l,a,n,s,o,m)}function J0(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!_e(u(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ll(t,e,l,a){e&=~ks,e&=~_a,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var u=31-Se(n),s=1<<u;a[u]=-1,n&=~s}l!==0&&pr(t,l,e)}function Bi(){return(gt&6)===0?(xu(0),!1):!0}function Ps(){if(ct!==null){if(Et===0)var t=ct.return;else t=ct,cl=ha=null,ys(t),ln=null,lu=0,t=ct;for(;t!==null;)Qd(t.alternate,t),t=t.return;ct=null}}function hn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,hv(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),gl=0,Ps(),Dt=t,ct=l=ul(t.current,null),rt=e,Et=0,Ne=null,wl=!1,rn=Qn(t,e),Js=!1,on=Oe=ks=_a=Hl=wt=0,ye=gu=null,Fs=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-Se(a),u=1<<n;e|=t[n],a&=~u}return pl=e,ui(),l}function fh(t,e){lt=null,z.H=ru,e===en||e===hi?(e=Ao(),Et=3):e===as?(e=Ao(),Et=4):Et=e===Cs?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ne=e,ct===null&&(wt=1,Oi(t,Me(e,t.current)))}function rh(){var t=Te.current;return t===null?!0:(rt&4194048)===rt?we===null:(rt&62914560)===rt||(rt&536870912)!==0?t===we:!1}function oh(){var t=z.H;return z.H=ru,t===null?ru:t}function dh(){var t=z.A;return z.A=V0,t}function Qi(){wt=4,wl||(rt&4194048)!==rt&&Te.current!==null||(rn=!0),(Hl&134217727)===0&&(_a&134217727)===0||Dt===null||Ll(Dt,rt,Oe,!1)}function tf(t,e,l){var a=gt;gt|=2;var n=oh(),u=dh();(Dt!==t||rt!==e)&&(Hi=null,hn(t,e)),e=!1;var s=wt;t:do try{if(Et!==0&&ct!==null){var o=ct,m=Ne;switch(Et){case 8:Ps(),s=6;break t;case 3:case 2:case 9:case 6:Te.current===null&&(e=!0);var _=Et;if(Et=0,Ne=null,mn(t,o,m,_),l&&rn){s=0;break t}break;default:_=Et,Et=0,Ne=null,mn(t,o,m,_)}}k0(),s=wt;break}catch(j){fh(t,j)}while(!0);return e&&t.shellSuspendCounter++,cl=ha=null,gt=a,z.H=n,z.A=u,ct===null&&(Dt=null,rt=0,ui()),s}function k0(){for(;ct!==null;)hh(ct)}function F0(t,e){var l=gt;gt|=2;var a=oh(),n=dh();Dt!==t||rt!==e?(Hi=null,wi=be()+500,hn(t,e)):rn=Qn(t,e);t:do try{if(Et!==0&&ct!==null){e=ct;var u=Ne;e:switch(Et){case 1:Et=0,Ne=null,mn(t,e,u,1);break;case 2:case 9:if(Eo(u)){Et=0,Ne=null,mh(e);break}e=function(){Et!==2&&Et!==9||Dt!==t||(Et=7),Ie(t)},u.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:Eo(u)?(Et=0,Ne=null,mh(e)):(Et=0,Ne=null,mn(t,e,u,7));break;case 5:var s=null;switch(ct.tag){case 26:s=ct.memoizedState;case 5:case 27:var o=ct;if(s?Ph(s):o.stateNode.complete){Et=0,Ne=null;var m=o.sibling;if(m!==null)ct=m;else{var _=o.return;_!==null?(ct=_,Li(_)):ct=null}break e}}Et=0,Ne=null,mn(t,e,u,5);break;case 6:Et=0,Ne=null,mn(t,e,u,6);break;case 8:Ps(),wt=6;break t;default:throw Error(r(462))}}W0();break}catch(j){fh(t,j)}while(!0);return cl=ha=null,z.H=a,z.A=n,gt=l,ct!==null?0:(Dt=null,rt=0,ui(),wt)}function W0(){for(;ct!==null&&!by();)hh(ct)}function hh(t){var e=Hd(t.alternate,t,pl);t.memoizedProps=t.pendingProps,e===null?Li(t):ct=e}function mh(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Cd(l,e,e.pendingProps,e.type,void 0,rt);break;case 11:e=Cd(l,e,e.pendingProps,e.type.render,e.ref,rt);break;case 5:ys(e);default:Qd(l,e),e=ct=oo(e,pl),e=Hd(l,e,pl)}t.memoizedProps=t.pendingProps,e===null?Li(t):ct=e}function mn(t,e,l,a){cl=ha=null,ys(e),ln=null,lu=0;var n=e.return;try{if(B0(t,n,e,l,rt)){wt=1,Oi(t,Me(l,t.current)),ct=null;return}}catch(u){if(n!==null)throw ct=n,u;wt=1,Oi(t,Me(l,t.current)),ct=null;return}e.flags&32768?(dt||a===1?t=!0:rn||(rt&536870912)!==0?t=!1:(wl=t=!0,(a===2||a===9||a===3||a===6)&&(a=Te.current,a!==null&&a.tag===13&&(a.flags|=16384))),yh(e,t)):Li(e)}function Li(t){var e=t;do{if((e.flags&32768)!==0){yh(e,wl);return}t=e.return;var l=G0(e.alternate,e,pl);if(l!==null){ct=l;return}if(e=e.sibling,e!==null){ct=e;return}ct=e=t}while(e!==null);wt===0&&(wt=5)}function yh(t,e){do{var l=Y0(t.alternate,t);if(l!==null){l.flags&=32767,ct=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){ct=t;return}ct=t=l}while(t!==null);wt=6,ct=null}function vh(t,e,l,a,n,u,s,o,m){t.cancelPendingCommit=null;do Gi();while(Jt!==0);if((gt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=Yc,zy(t,l,u,s,o,m),t===Dt&&(ct=Dt=null,rt=0),dn=e,Ql=t,gl=l,Ws=u,$s=n,uh=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,tv(Xu,function(){return Sh(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,n=q.p,q.p=2,s=gt,gt|=4;try{X0(t,e,l)}finally{gt=s,q.p=n,z.T=a}}Jt=1,ph(),gh(),bh()}}function ph(){if(Jt===1){Jt=0;var t=Ql,e=dn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var a=q.p;q.p=2;var n=gt;gt|=4;try{$d(e,t);var u=hf,s=lo(t.containerInfo),o=u.focusedElem,m=u.selectionRange;if(s!==o&&o&&o.ownerDocument&&eo(o.ownerDocument.documentElement,o)){if(m!==null&&Hc(o)){var _=m.start,j=m.end;if(j===void 0&&(j=_),"selectionStart"in o)o.selectionStart=_,o.selectionEnd=Math.min(j,o.value.length);else{var C=o.ownerDocument||document,E=C&&C.defaultView||window;if(E.getSelection){var A=E.getSelection(),L=o.textContent.length,J=Math.min(m.start,L),jt=m.end===void 0?J:Math.min(m.end,L);!A.extend&&J>jt&&(s=jt,jt=J,J=s);var b=to(o,J),v=to(o,jt);if(b&&v&&(A.rangeCount!==1||A.anchorNode!==b.node||A.anchorOffset!==b.offset||A.focusNode!==v.node||A.focusOffset!==v.offset)){var S=C.createRange();S.setStart(b.node,b.offset),A.removeAllRanges(),J>jt?(A.addRange(S),A.extend(v.node,v.offset)):(S.setEnd(v.node,v.offset),A.addRange(S))}}}}for(C=[],A=o;A=A.parentNode;)A.nodeType===1&&C.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<C.length;o++){var D=C[o];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}Pi=!!df,hf=df=null}finally{gt=n,q.p=a,z.T=l}}t.current=e,Jt=2}}function gh(){if(Jt===2){Jt=0;var t=Ql,e=dn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var a=q.p;q.p=2;var n=gt;gt|=4;try{Kd(t,e.alternate,e)}finally{gt=n,q.p=a,z.T=l}}Jt=3}}function bh(){if(Jt===4||Jt===3){Jt=0,xy();var t=Ql,e=dn,l=gl,a=uh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,dn=Ql=null,xh(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(Bl=null),gc(l),e=e.stateNode,xe&&typeof xe.onCommitFiberRoot=="function")try{xe.onCommitFiberRoot(Bn,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=z.T,n=q.p,q.p=2,z.T=null;try{for(var u=t.onRecoverableError,s=0;s<a.length;s++){var o=a[s];u(o.value,{componentStack:o.stack})}}finally{z.T=e,q.p=n}}(gl&3)!==0&&Gi(),Ie(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===Is?bu++:(bu=0,Is=t):bu=0,xu(0)}}function xh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,tu(e)))}function Gi(){return ph(),gh(),bh(),Sh()}function Sh(){if(Jt!==5)return!1;var t=Ql,e=Ws;Ws=0;var l=gc(gl),a=z.T,n=q.p;try{q.p=32>l?32:l,z.T=null,l=$s,$s=null;var u=Ql,s=gl;if(Jt=0,dn=Ql=null,gl=0,(gt&6)!==0)throw Error(r(331));var o=gt;if(gt|=4,lh(u.current),Pd(u,u.current,s,l),gt=o,xu(0,!1),xe&&typeof xe.onPostCommitFiberRoot=="function")try{xe.onPostCommitFiberRoot(Bn,u)}catch{}return!0}finally{q.p=n,z.T=a,xh(t,e)}}function _h(t,e,l){e=Me(l,e),e=Ds(t.stateNode,e,2),t=Ml(t,e,2),t!==null&&(Ln(t,2),Ie(t))}function Tt(t,e,l){if(t.tag===3)_h(t,t,l);else for(;e!==null;){if(e.tag===3){_h(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Bl===null||!Bl.has(a))){t=Me(l,t),l=Ed(2),a=Ml(e,l,2),a!==null&&(Td(l,a,e,t),Ln(a,2),Ie(a));break}}e=e.return}}function ef(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new K0;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(Js=!0,n.add(l),t=$0.bind(null,t,e,l),e.then(t,t))}function $0(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Dt===t&&(rt&l)===l&&(wt===4||wt===3&&(rt&62914560)===rt&&300>be()-qi?(gt&2)===0&&hn(t,0):ks|=l,on===rt&&(on=0)),Ie(t)}function Eh(t,e){e===0&&(e=vr()),t=ra(t,e),t!==null&&(Ln(t,e),Ie(t))}function I0(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Eh(t,l)}function P0(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(e),Eh(t,l)}function tv(t,e){return mc(t,e)}var Yi=null,yn=null,lf=!1,Xi=!1,af=!1,Gl=0;function Ie(t){t!==yn&&t.next===null&&(yn===null?Yi=yn=t:yn=yn.next=t),Xi=!0,lf||(lf=!0,lv())}function xu(t,e){if(!af&&Xi){af=!0;do for(var l=!1,a=Yi;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var s=a.suspendedLanes,o=a.pingedLanes;u=(1<<31-Se(42|t)+1)-1,u&=n&~(s&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Oh(a,u))}else u=rt,u=Ju(a,a===Dt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Qn(a,u)||(l=!0,Oh(a,u));a=a.next}while(l);af=!1}}function ev(){Th()}function Th(){Xi=lf=!1;var t=0;Gl!==0&&dv()&&(t=Gl);for(var e=be(),l=null,a=Yi;a!==null;){var n=a.next,u=Ah(a,e);u===0?(a.next=null,l===null?Yi=n:l.next=n,n===null&&(yn=l)):(l=a,(t!==0||(u&3)!==0)&&(Xi=!0)),a=n}Jt!==0&&Jt!==5||xu(t),Gl!==0&&(Gl=0)}function Ah(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var s=31-Se(u),o=1<<s,m=n[s];m===-1?((o&l)===0||(o&a)!==0)&&(n[s]=jy(o,e)):m<=e&&(t.expiredLanes|=o),u&=~o}if(e=Dt,l=rt,l=Ju(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(Et===2||Et===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&yc(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Qn(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&yc(a),gc(l)){case 2:case 8:l=mr;break;case 32:l=Xu;break;case 268435456:l=yr;break;default:l=Xu}return a=Nh.bind(null,t),l=mc(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&yc(a),t.callbackPriority=2,t.callbackNode=null,2}function Nh(t,e){if(Jt!==0&&Jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Gi()&&t.callbackNode!==l)return null;var a=rt;return a=Ju(t,t===Dt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(ch(t,a,e),Ah(t,be()),t.callbackNode!=null&&t.callbackNode===l?Nh.bind(null,t):null)}function Oh(t,e){if(Gi())return null;ch(t,e,!0)}function lv(){mv(function(){(gt&6)!==0?mc(hr,ev):Th()})}function nf(){if(Gl===0){var t=Pa;t===0&&(t=Zu,Zu<<=1,(Zu&261888)===0&&(Zu=256)),Gl=t}return Gl}function jh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:$u(""+t)}function zh(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function av(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var u=jh((n[re]||null).action),s=a.submitter;s&&(e=(e=s[re]||null)?jh(e.formAction):s.getAttribute("formAction"),e!==null&&(u=e,s=null));var o=new ei("action","action",null,a,n);t.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Gl!==0){var m=s?zh(n,s):new FormData(n);Ts(l,{pending:!0,data:m,method:n.method,action:u},null,m)}}else typeof u=="function"&&(o.preventDefault(),m=s?zh(n,s):new FormData(n),Ts(l,{pending:!0,data:m,method:n.method,action:u},u,m))},currentTarget:n}]})}}for(var uf=0;uf<Gc.length;uf++){var cf=Gc[uf],nv=cf.toLowerCase(),uv=cf[0].toUpperCase()+cf.slice(1);Ye(nv,"on"+uv)}Ye(uo,"onAnimationEnd"),Ye(io,"onAnimationIteration"),Ye(co,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(S0,"onTransitionRun"),Ye(_0,"onTransitionStart"),Ye(E0,"onTransitionCancel"),Ye(so,"onTransitionEnd"),Qa("onMouseEnter",["mouseout","mouseover"]),Qa("onMouseLeave",["mouseout","mouseover"]),Qa("onPointerEnter",["pointerout","pointerover"]),Qa("onPointerLeave",["pointerout","pointerover"]),ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Su="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(" "),iv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Su));function Dh(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var u=void 0;if(e)for(var s=a.length-1;0<=s;s--){var o=a[s],m=o.instance,_=o.currentTarget;if(o=o.listener,m!==u&&n.isPropagationStopped())break t;u=o,n.currentTarget=_;try{u(n)}catch(j){ni(j)}n.currentTarget=null,u=m}else for(s=0;s<a.length;s++){if(o=a[s],m=o.instance,_=o.currentTarget,o=o.listener,m!==u&&n.isPropagationStopped())break t;u=o,n.currentTarget=_;try{u(n)}catch(j){ni(j)}n.currentTarget=null,u=m}}}}function st(t,e){var l=e[bc];l===void 0&&(l=e[bc]=new Set);var a=t+"__bubble";l.has(a)||(Ch(e,t,2,!1),l.add(a))}function sf(t,e,l){var a=0;e&&(a|=4),Ch(l,t,a,e)}var Zi="_reactListening"+Math.random().toString(36).slice(2);function ff(t){if(!t[Zi]){t[Zi]=!0,Er.forEach(function(l){l!=="selectionchange"&&(iv.has(l)||sf(l,!1,t),sf(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Zi]||(e[Zi]=!0,sf("selectionchange",!1,e))}}function Ch(t,e,l,a){switch(im(e)){case 2:var n=Uv;break;case 8:n=qv;break;default:n=Tf}l=n.bind(null,e,l,t),n=void 0,!jc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function rf(t,e,l,a,n){var u=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var o=a.stateNode.containerInfo;if(o===n)break;if(s===4)for(s=a.return;s!==null;){var m=s.tag;if((m===3||m===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;o!==null;){if(s=wa(o),s===null)return;if(m=s.tag,m===5||m===6||m===26||m===27){a=u=s;continue t}o=o.parentNode}}a=a.return}qr(function(){var _=u,j=Nc(l),C=[];t:{var E=fo.get(t);if(E!==void 0){var A=ei,L=t;switch(t){case"keypress":if(Pu(l)===0)break t;case"keydown":case"keyup":A=Py;break;case"focusin":L="focus",A=Mc;break;case"focusout":L="blur",A=Mc;break;case"beforeblur":case"afterblur":A=Mc;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Br;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Gy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=l0;break;case uo:case io:case co:A=Zy;break;case so:A=n0;break;case"scroll":case"scrollend":A=Qy;break;case"wheel":A=i0;break;case"copy":case"cut":case"paste":A=Ky;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Lr;break;case"toggle":case"beforetoggle":A=s0}var J=(e&4)!==0,jt=!J&&(t==="scroll"||t==="scrollend"),b=J?E!==null?E+"Capture":null:E;J=[];for(var v=_,S;v!==null;){var D=v;if(S=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||S===null||b===null||(D=Xn(v,b),D!=null&&J.push(_u(v,D,S))),jt)break;v=v.return}0<J.length&&(E=new A(E,L,null,l,j),C.push({event:E,listeners:J}))}}if((e&7)===0){t:{if(E=t==="mouseover"||t==="pointerover",A=t==="mouseout"||t==="pointerout",E&&l!==Ac&&(L=l.relatedTarget||l.fromElement)&&(wa(L)||L[qa]))break t;if((A||E)&&(E=j.window===j?j:(E=j.ownerDocument)?E.defaultView||E.parentWindow:window,A?(L=l.relatedTarget||l.toElement,A=_,L=L?wa(L):null,L!==null&&(jt=y(L),J=L.tag,L!==jt||J!==5&&J!==27&&J!==6)&&(L=null)):(A=null,L=_),A!==L)){if(J=Br,D="onMouseLeave",b="onMouseEnter",v="mouse",(t==="pointerout"||t==="pointerover")&&(J=Lr,D="onPointerLeave",b="onPointerEnter",v="pointer"),jt=A==null?E:Yn(A),S=L==null?E:Yn(L),E=new J(D,v+"leave",A,l,j),E.target=jt,E.relatedTarget=S,D=null,wa(j)===_&&(J=new J(b,v+"enter",L,l,j),J.target=S,J.relatedTarget=jt,D=J),jt=D,A&&L)e:{for(J=cv,b=A,v=L,S=0,D=b;D;D=J(D))S++;D=0;for(var Z=v;Z;Z=J(Z))D++;for(;0<S-D;)b=J(b),S--;for(;0<D-S;)v=J(v),D--;for(;S--;){if(b===v||v!==null&&b===v.alternate){J=b;break e}b=J(b),v=J(v)}J=null}else J=null;A!==null&&Mh(C,E,A,J,!1),L!==null&&jt!==null&&Mh(C,jt,L,J,!0)}}t:{if(E=_?Yn(_):window,A=E.nodeName&&E.nodeName.toLowerCase(),A==="select"||A==="input"&&E.type==="file")var yt=kr;else if(Kr(E))if(Fr)yt=g0;else{yt=v0;var Y=y0}else A=E.nodeName,!A||A.toLowerCase()!=="input"||E.type!=="checkbox"&&E.type!=="radio"?_&&Tc(_.elementType)&&(yt=kr):yt=p0;if(yt&&(yt=yt(t,_))){Jr(C,yt,l,j);break t}Y&&Y(t,E,_),t==="focusout"&&_&&E.type==="number"&&_.memoizedProps.value!=null&&Ec(E,"number",E.value)}switch(Y=_?Yn(_):window,t){case"focusin":(Kr(Y)||Y.contentEditable==="true")&&(Va=Y,Bc=_,$n=null);break;case"focusout":$n=Bc=Va=null;break;case"mousedown":Qc=!0;break;case"contextmenu":case"mouseup":case"dragend":Qc=!1,ao(C,l,j);break;case"selectionchange":if(x0)break;case"keydown":case"keyup":ao(C,l,j)}var ut;if(Uc)t:{switch(t){case"compositionstart":var ot="onCompositionStart";break t;case"compositionend":ot="onCompositionEnd";break t;case"compositionupdate":ot="onCompositionUpdate";break t}ot=void 0}else Za?Zr(t,l)&&(ot="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(ot="onCompositionStart");ot&&(Gr&&l.locale!=="ko"&&(Za||ot!=="onCompositionStart"?ot==="onCompositionEnd"&&Za&&(ut=wr()):(Al=j,zc="value"in Al?Al.value:Al.textContent,Za=!0)),Y=Vi(_,ot),0<Y.length&&(ot=new Qr(ot,t,null,l,j),C.push({event:ot,listeners:Y}),ut?ot.data=ut:(ut=Vr(l),ut!==null&&(ot.data=ut)))),(ut=r0?o0(t,l):d0(t,l))&&(ot=Vi(_,"onBeforeInput"),0<ot.length&&(Y=new Qr("onBeforeInput","beforeinput",null,l,j),C.push({event:Y,listeners:ot}),Y.data=ut)),av(C,t,_,l,j)}Dh(C,e)})}function _u(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Vi(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Xn(t,l),n!=null&&a.unshift(_u(t,n,u)),n=Xn(t,e),n!=null&&a.push(_u(t,n,u))),t.tag===3)return a;t=t.return}return[]}function cv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Mh(t,e,l,a,n){for(var u=e._reactName,s=[];l!==null&&l!==a;){var o=l,m=o.alternate,_=o.stateNode;if(o=o.tag,m!==null&&m===a)break;o!==5&&o!==26&&o!==27||_===null||(m=_,n?(_=Xn(l,u),_!=null&&s.unshift(_u(l,_,m))):n||(_=Xn(l,u),_!=null&&s.push(_u(l,_,m)))),l=l.return}s.length!==0&&t.push({event:e,listeners:s})}var sv=/\r\n?/g,fv=/\u0000|\uFFFD/g;function Rh(t){return(typeof t=="string"?t:""+t).replace(sv,`
49
+ `).replace(fv,"")}function Uh(t,e){return e=Rh(e),Rh(t)===e}function Ot(t,e,l,a,n,u){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ga(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ga(t,""+a);break;case"className":Fu(t,"class",a);break;case"tabIndex":Fu(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Fu(t,l,a);break;case"style":Rr(t,a,u);break;case"data":if(e!=="object"){Fu(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=$u(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.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 u=="function"&&(l==="formAction"?(e!=="input"&&Ot(t,e,"name",n.name,n,null),Ot(t,e,"formEncType",n.formEncType,n,null),Ot(t,e,"formMethod",n.formMethod,n,null),Ot(t,e,"formTarget",n.formTarget,n,null)):(Ot(t,e,"encType",n.encType,n,null),Ot(t,e,"method",n.method,n,null),Ot(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=$u(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=al);break;case"onScroll":a!=null&&st("scroll",t);break;case"onScrollEnd":a!=null&&st("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=$u(""+a),t.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"?t.setAttribute(l,""+a):t.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"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":st("beforetoggle",t),st("toggle",t),ku(t,"popover",a);break;case"xlinkActuate":ll(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ll(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ll(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ll(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ll(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ll(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ll(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ll(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ll(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ku(t,"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=Hy.get(l)||l,ku(t,l,a))}}function of(t,e,l,a,n,u){switch(l){case"style":Rr(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof a=="string"?Ga(t,a):(typeof a=="number"||typeof a=="bigint")&&Ga(t,""+a);break;case"onScroll":a!=null&&st("scroll",t);break;case"onScrollEnd":a!=null&&st("scrollend",t);break;case"onClick":a!=null&&(t.onclick=al);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tr.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),u=t[re]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):ku(t,l,a)}}}function ee(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":st("error",t),st("load",t);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var s=l[u];if(s!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ot(t,e,u,s,l,null)}}n&&Ot(t,e,"srcSet",l.srcSet,l,null),a&&Ot(t,e,"src",l.src,l,null);return;case"input":st("invalid",t);var o=u=s=n=null,m=null,_=null;for(a in l)if(l.hasOwnProperty(a)){var j=l[a];if(j!=null)switch(a){case"name":n=j;break;case"type":s=j;break;case"checked":m=j;break;case"defaultChecked":_=j;break;case"value":u=j;break;case"defaultValue":o=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,e));break;default:Ot(t,e,a,j,l,null)}}zr(t,u,o,m,_,s,n,!1);return;case"select":st("invalid",t),a=s=u=null;for(n in l)if(l.hasOwnProperty(n)&&(o=l[n],o!=null))switch(n){case"value":u=o;break;case"defaultValue":s=o;break;case"multiple":a=o;default:Ot(t,e,n,o,l,null)}e=u,l=s,t.multiple=!!a,e!=null?La(t,!!a,e,!1):l!=null&&La(t,!!a,l,!0);return;case"textarea":st("invalid",t),u=n=a=null;for(s in l)if(l.hasOwnProperty(s)&&(o=l[s],o!=null))switch(s){case"value":a=o;break;case"defaultValue":n=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:Ot(t,e,s,o,l,null)}Cr(t,a,n,u);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(a=l[m],a!=null))switch(m){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ot(t,e,m,a,l,null)}return;case"dialog":st("beforetoggle",t),st("toggle",t),st("cancel",t),st("close",t);break;case"iframe":case"object":st("load",t);break;case"video":case"audio":for(a=0;a<Su.length;a++)st(Su[a],t);break;case"image":st("error",t),st("load",t);break;case"details":st("toggle",t);break;case"embed":case"source":case"link":st("error",t),st("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in l)if(l.hasOwnProperty(_)&&(a=l[_],a!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ot(t,e,_,a,l,null)}return;default:if(Tc(e)){for(j in l)l.hasOwnProperty(j)&&(a=l[j],a!==void 0&&of(t,e,j,a,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&Ot(t,e,o,a,l,null))}function rv(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,s=null,o=null,m=null,_=null,j=null;for(A in l){var C=l[A];if(l.hasOwnProperty(A)&&C!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":m=C;default:a.hasOwnProperty(A)||Ot(t,e,A,null,a,C)}}for(var E in a){var A=a[E];if(C=l[E],a.hasOwnProperty(E)&&(A!=null||C!=null))switch(E){case"type":u=A;break;case"name":n=A;break;case"checked":_=A;break;case"defaultChecked":j=A;break;case"value":s=A;break;case"defaultValue":o=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,e));break;default:A!==C&&Ot(t,e,E,A,a,C)}}_c(t,s,o,m,_,j,u,n);return;case"select":A=s=o=E=null;for(u in l)if(m=l[u],l.hasOwnProperty(u)&&m!=null)switch(u){case"value":break;case"multiple":A=m;default:a.hasOwnProperty(u)||Ot(t,e,u,null,a,m)}for(n in a)if(u=a[n],m=l[n],a.hasOwnProperty(n)&&(u!=null||m!=null))switch(n){case"value":E=u;break;case"defaultValue":o=u;break;case"multiple":s=u;default:u!==m&&Ot(t,e,n,u,a,m)}e=o,l=s,a=A,E!=null?La(t,!!l,E,!1):!!a!=!!l&&(e!=null?La(t,!!l,e,!0):La(t,!!l,l?[]:"",!1));return;case"textarea":A=E=null;for(o in l)if(n=l[o],l.hasOwnProperty(o)&&n!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Ot(t,e,o,null,a,n)}for(s in a)if(n=a[s],u=l[s],a.hasOwnProperty(s)&&(n!=null||u!=null))switch(s){case"value":E=n;break;case"defaultValue":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&Ot(t,e,s,n,a,u)}Dr(t,E,A);return;case"option":for(var L in l)if(E=l[L],l.hasOwnProperty(L)&&E!=null&&!a.hasOwnProperty(L))switch(L){case"selected":t.selected=!1;break;default:Ot(t,e,L,null,a,E)}for(m in a)if(E=a[m],A=l[m],a.hasOwnProperty(m)&&E!==A&&(E!=null||A!=null))switch(m){case"selected":t.selected=E&&typeof E!="function"&&typeof E!="symbol";break;default:Ot(t,e,m,E,a,A)}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 J in l)E=l[J],l.hasOwnProperty(J)&&E!=null&&!a.hasOwnProperty(J)&&Ot(t,e,J,null,a,E);for(_ in a)if(E=a[_],A=l[_],a.hasOwnProperty(_)&&E!==A&&(E!=null||A!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(137,e));break;default:Ot(t,e,_,E,a,A)}return;default:if(Tc(e)){for(var jt in l)E=l[jt],l.hasOwnProperty(jt)&&E!==void 0&&!a.hasOwnProperty(jt)&&of(t,e,jt,void 0,a,E);for(j in a)E=a[j],A=l[j],!a.hasOwnProperty(j)||E===A||E===void 0&&A===void 0||of(t,e,j,E,a,A);return}}for(var b in l)E=l[b],l.hasOwnProperty(b)&&E!=null&&!a.hasOwnProperty(b)&&Ot(t,e,b,null,a,E);for(C in a)E=a[C],A=l[C],!a.hasOwnProperty(C)||E===A||E==null&&A==null||Ot(t,e,C,E,a,A)}function qh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ov(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,s=n.initiatorType,o=n.duration;if(u&&o&&qh(s)){for(s=0,o=n.responseEnd,a+=1;a<l.length;a++){var m=l[a],_=m.startTime;if(_>o)break;var j=m.transferSize,C=m.initiatorType;j&&qh(C)&&(m=m.responseEnd,s+=j*(m<o?1:(o-_)/(m-_)))}if(--a,e+=8*(u+s)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var df=null,hf=null;function Ki(t){return t.nodeType===9?t:t.ownerDocument}function wh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Hh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function mf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var yf=null;function dv(){var t=window.event;return t&&t.type==="popstate"?t===yf?!1:(yf=t,!0):(yf=null,!1)}var Bh=typeof setTimeout=="function"?setTimeout:void 0,hv=typeof clearTimeout=="function"?clearTimeout:void 0,Qh=typeof Promise=="function"?Promise:void 0,mv=typeof queueMicrotask=="function"?queueMicrotask:typeof Qh<"u"?function(t){return Qh.resolve(null).then(t).catch(yv)}:Bh;function yv(t){setTimeout(function(){throw t})}function Yl(t){return t==="head"}function Lh(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),bn(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Eu(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Eu(l);for(var u=l.firstChild;u;){var s=u.nextSibling,o=u.nodeName;u[Gn]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=s}}else l==="body"&&Eu(t.ownerDocument.body);l=n}while(l);bn(e)}function Gh(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function vf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":vf(l),xc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function vv(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Gn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=He(t.nextSibling),t===null)break}return null}function pv(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=He(t.nextSibling),t===null))return null;return t}function Yh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=He(t.nextSibling),t===null))return null;return t}function pf(t){return t.data==="$?"||t.data==="$~"}function gf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function gv(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function He(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var bf=null;function Xh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return He(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Zh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Vh(t,e,l){switch(e=Ki(l),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Eu(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);xc(t)}var Be=new Map,Kh=new Set;function Ji(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var bl=q.d;q.d={f:bv,r:xv,D:Sv,C:_v,L:Ev,m:Tv,X:Nv,S:Av,M:Ov};function bv(){var t=bl.f(),e=Bi();return t||e}function xv(t){var e=Ha(t);e!==null&&e.tag===5&&e.type==="form"?fd(e):bl.r(t)}var vn=typeof document>"u"?null:document;function Jh(t,e,l){var a=vn;if(a&&typeof e=="string"&&e){var n=De(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Kh.has(n)||(Kh.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),ee(e,"link",t),kt(e),a.head.appendChild(e)))}}function Sv(t){bl.D(t),Jh("dns-prefetch",t,null)}function _v(t,e){bl.C(t,e),Jh("preconnect",t,e)}function Ev(t,e,l){bl.L(t,e,l);var a=vn;if(a&&t&&e){var n='link[rel="preload"][as="'+De(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+De(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+De(l.imageSizes)+'"]')):n+='[href="'+De(t)+'"]';var u=n;switch(e){case"style":u=pn(t);break;case"script":u=gn(t)}Be.has(u)||(t=R({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Be.set(u,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(Tu(u))||e==="script"&&a.querySelector(Au(u))||(e=a.createElement("link"),ee(e,"link",t),kt(e),a.head.appendChild(e)))}}function Tv(t,e){bl.m(t,e);var l=vn;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+De(a)+'"][href="'+De(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=gn(t)}if(!Be.has(u)&&(t=R({rel:"modulepreload",href:t},e),Be.set(u,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Au(u)))return}a=l.createElement("link"),ee(a,"link",t),kt(a),l.head.appendChild(a)}}}function Av(t,e,l){bl.S(t,e,l);var a=vn;if(a&&t){var n=Ba(a).hoistableStyles,u=pn(t);e=e||"default";var s=n.get(u);if(!s){var o={loading:0,preload:null};if(s=a.querySelector(Tu(u)))o.loading=5;else{t=R({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Be.get(u))&&xf(t,l);var m=s=a.createElement("link");kt(m),ee(m,"link",t),m._p=new Promise(function(_,j){m.onload=_,m.onerror=j}),m.addEventListener("load",function(){o.loading|=1}),m.addEventListener("error",function(){o.loading|=2}),o.loading|=4,ki(s,e,a)}s={type:"stylesheet",instance:s,count:1,state:o},n.set(u,s)}}}function Nv(t,e){bl.X(t,e);var l=vn;if(l&&t){var a=Ba(l).hoistableScripts,n=gn(t),u=a.get(n);u||(u=l.querySelector(Au(n)),u||(t=R({src:t,async:!0},e),(e=Be.get(n))&&Sf(t,e),u=l.createElement("script"),kt(u),ee(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Ov(t,e){bl.M(t,e);var l=vn;if(l&&t){var a=Ba(l).hoistableScripts,n=gn(t),u=a.get(n);u||(u=l.querySelector(Au(n)),u||(t=R({src:t,async:!0,type:"module"},e),(e=Be.get(n))&&Sf(t,e),u=l.createElement("script"),kt(u),ee(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function kh(t,e,l,a){var n=(n=it.current)?Ji(n):null;if(!n)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=pn(l.href),l=Ba(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=pn(l.href);var u=Ba(n).hoistableStyles,s=u.get(t);if(s||(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,s),(u=n.querySelector(Tu(t)))&&!u._p&&(s.instance=u,s.state.loading=5),Be.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Be.set(t,l),u||jv(n,t,l,s.state))),e&&a===null)throw Error(r(528,""));return s}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=gn(l),l=Ba(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function pn(t){return'href="'+De(t)+'"'}function Tu(t){return'link[rel="stylesheet"]['+t+"]"}function Fh(t){return R({},t,{"data-precedence":t.precedence,precedence:null})}function jv(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ee(e,"link",l),kt(e),t.head.appendChild(e))}function gn(t){return'[src="'+De(t)+'"]'}function Au(t){return"script[async]"+t}function Wh(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+De(l.href)+'"]');if(a)return e.instance=a,kt(a),a;var n=R({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),kt(a),ee(a,"style",n),ki(a,l.precedence,t),e.instance=a;case"stylesheet":n=pn(l.href);var u=t.querySelector(Tu(n));if(u)return e.state.loading|=4,e.instance=u,kt(u),u;a=Fh(l),(n=Be.get(n))&&xf(a,n),u=(t.ownerDocument||t).createElement("link"),kt(u);var s=u;return s._p=new Promise(function(o,m){s.onload=o,s.onerror=m}),ee(u,"link",a),e.state.loading|=4,ki(u,l.precedence,t),e.instance=u;case"script":return u=gn(l.src),(n=t.querySelector(Au(u)))?(e.instance=n,kt(n),n):(a=l,(n=Be.get(u))&&(a=R({},l),Sf(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),kt(n),ee(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,ki(a,l.precedence,t));return e.instance}function ki(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,s=0;s<a.length;s++){var o=a[s];if(o.dataset.precedence===e)u=o;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function xf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Sf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Fi=null;function $h(t,e,l){if(Fi===null){var a=new Map,n=Fi=new Map;n.set(l,a)}else n=Fi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var u=l[n];if(!(u[Gn]||u[$t]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var s=u.getAttribute(e)||"";s=t+s;var o=a.get(s);o?o.push(u):a.set(s,[u])}}return a}function Ih(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function zv(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Ph(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Dv(t,e,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=pn(a.href),u=e.querySelector(Tu(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Wi.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,kt(u);return}u=e.ownerDocument||e,a=Fh(a),(n=Be.get(n))&&xf(a,n),u=u.createElement("link"),kt(u);var s=u;s._p=new Promise(function(o,m){s.onload=o,s.onerror=m}),ee(u,"link",a),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Wi.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var _f=0;function Cv(t,e){return t.stylesheets&&t.count===0&&Ii(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&Ii(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&_f===0&&(_f=62500*ov());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ii(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>_f?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Wi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ii(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var $i=null;function Ii(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,$i=new Map,e.forEach(Mv,t),$i=null,Wi.call(t))}function Mv(t,e){if(!(e.state.loading&4)){var l=$i.get(t);if(l)var a=l.get(null);else{l=new Map,$i.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var s=n[u];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),a=s)}a&&l.set(null,a)}n=e.instance,s=n.getAttribute("data-precedence"),u=l.get(s)||a,u===a&&l.set(null,n),l.set(s,n),this.count++,a=Wi.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Nu={$$typeof:K,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Rv(t,e,l,a,n,u,s,o,m){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=vc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vc(0),this.hiddenUpdates=vc(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function tm(t,e,l,a,n,u,s,o,m,_,j,C){return t=new Rv(t,e,l,s,m,_,j,C,o),e=1,u===!0&&(e|=24),u=Ee(3,null,null,e),t.current=u,u.stateNode=t,e=ts(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:e},ns(u),t}function em(t){return t?(t=ka,t):ka}function lm(t,e,l,a,n,u){n=em(n),a.context===null?a.context=n:a.pendingContext=n,a=Cl(e),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Ml(t,a,e),l!==null&&(ve(l,t,e),nu(l,t,e))}function am(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Ef(t,e){am(t,e),(t=t.alternate)&&am(t,e)}function nm(t){if(t.tag===13||t.tag===31){var e=ra(t,67108864);e!==null&&ve(e,t,67108864),Ef(t,67108864)}}function um(t){if(t.tag===13||t.tag===31){var e=je();e=pc(e);var l=ra(t,e);l!==null&&ve(l,t,e),Ef(t,e)}}var Pi=!0;function Uv(t,e,l,a){var n=z.T;z.T=null;var u=q.p;try{q.p=2,Tf(t,e,l,a)}finally{q.p=u,z.T=n}}function qv(t,e,l,a){var n=z.T;z.T=null;var u=q.p;try{q.p=8,Tf(t,e,l,a)}finally{q.p=u,z.T=n}}function Tf(t,e,l,a){if(Pi){var n=Af(a);if(n===null)rf(t,e,a,tc,l),cm(t,a);else if(Hv(n,t,e,l,a))a.stopPropagation();else if(cm(t,a),e&4&&-1<wv.indexOf(t)){for(;n!==null;){var u=Ha(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var s=ua(u.pendingLanes);if(s!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var m=1<<31-Se(s);o.entanglements[1]|=m,s&=~m}Ie(u),(gt&6)===0&&(wi=be()+500,xu(0))}}break;case 31:case 13:o=ra(u,2),o!==null&&ve(o,u,2),Bi(),Ef(u,2)}if(u=Af(a),u===null&&rf(t,e,a,tc,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else rf(t,e,a,null,l)}}function Af(t){return t=Nc(t),Nf(t)}var tc=null;function Nf(t){if(tc=null,t=wa(t),t!==null){var e=y(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=T(e),t!==null)return t;t=null}else if(l===31){if(t=O(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return tc=t,null}function im(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Sy()){case hr:return 2;case mr:return 8;case Xu:case _y:return 32;case yr:return 268435456;default:return 32}default:return 32}}var Of=!1,Xl=null,Zl=null,Vl=null,Ou=new Map,ju=new Map,Kl=[],wv="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 cm(t,e){switch(t){case"focusin":case"focusout":Xl=null;break;case"dragenter":case"dragleave":Zl=null;break;case"mouseover":case"mouseout":Vl=null;break;case"pointerover":case"pointerout":Ou.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ju.delete(e.pointerId)}}function zu(t,e,l,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},e!==null&&(e=Ha(e),e!==null&&nm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function Hv(t,e,l,a,n){switch(e){case"focusin":return Xl=zu(Xl,t,e,l,a,n),!0;case"dragenter":return Zl=zu(Zl,t,e,l,a,n),!0;case"mouseover":return Vl=zu(Vl,t,e,l,a,n),!0;case"pointerover":var u=n.pointerId;return Ou.set(u,zu(Ou.get(u)||null,t,e,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,ju.set(u,zu(ju.get(u)||null,t,e,l,a,n)),!0}return!1}function sm(t){var e=wa(t.target);if(e!==null){var l=y(e);if(l!==null){if(e=l.tag,e===13){if(e=T(l),e!==null){t.blockedOn=e,Sr(t.priority,function(){um(l)});return}}else if(e===31){if(e=O(l),e!==null){t.blockedOn=e,Sr(t.priority,function(){um(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ec(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Af(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Ac=a,l.target.dispatchEvent(a),Ac=null}else return e=Ha(l),e!==null&&nm(e),t.blockedOn=l,!1;e.shift()}return!0}function fm(t,e,l){ec(t)&&l.delete(e)}function Bv(){Of=!1,Xl!==null&&ec(Xl)&&(Xl=null),Zl!==null&&ec(Zl)&&(Zl=null),Vl!==null&&ec(Vl)&&(Vl=null),Ou.forEach(fm),ju.forEach(fm)}function lc(t,e){t.blockedOn===e&&(t.blockedOn=null,Of||(Of=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,Bv)))}var ac=null;function rm(t){ac!==t&&(ac=t,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){ac===t&&(ac=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Nf(a||l)===null)continue;break}var u=Ha(l);u!==null&&(t.splice(e,3),e-=3,Ts(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function bn(t){function e(m){return lc(m,t)}Xl!==null&&lc(Xl,t),Zl!==null&&lc(Zl,t),Vl!==null&&lc(Vl,t),Ou.forEach(e),ju.forEach(e);for(var l=0;l<Kl.length;l++){var a=Kl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Kl.length&&(l=Kl[0],l.blockedOn===null);)sm(l),l.blockedOn===null&&Kl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],s=n[re]||null;if(typeof u=="function")s||rm(l);else if(s){var o=null;if(u&&u.hasAttribute("formAction")){if(n=u,s=u[re]||null)o=s.formAction;else if(Nf(n)!==null)continue}else o=s.action;typeof o=="function"?l[a+1]=o:(l.splice(a,3),a-=3),rm(l)}}}function om(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(s){return n=s})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function jf(t){this._internalRoot=t}nc.prototype.render=jf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,a=je();lm(l,a,t,e,null,null)},nc.prototype.unmount=jf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;lm(t.current,2,null,t,null,null),Bi(),e[qa]=null}};function nc(t){this._internalRoot=t}nc.prototype.unstable_scheduleHydration=function(t){if(t){var e=xr();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Kl.length&&e!==0&&e<Kl[l].priority;l++);Kl.splice(l,0,t),l===0&&sm(t)}};var dm=i.version;if(dm!=="19.2.4")throw Error(r(527,dm,"19.2.4"));q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=x(e),t=t!==null?H(t):null,t=t===null?null:t.stateNode,t};var Qv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{Bn=uc.inject(Qv),xe=uc}catch{}}return Cu.createRoot=function(t,e){if(!h(t))throw Error(r(299));var l=!1,a="",n=bd,u=xd,s=Sd;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=tm(t,1,!1,null,null,l,a,null,n,u,s,om),t[qa]=e.current,ff(t),new jf(e)},Cu.hydrateRoot=function(t,e,l){if(!h(t))throw Error(r(299));var a=!1,n="",u=bd,s=xd,o=Sd,m=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),e=tm(t,1,!0,e,l??null,a,n,m,u,s,o,om),e.context=em(null),l=e.current,a=je(),a=pc(a),n=Cl(a),n.callback=null,Ml(l,n,a),l=a,e.current.lanes=l,Ln(e,l),Ie(e),t[qa]=e.current,ff(t),new nc(e)},Cu.version="19.2.4",Cu}var Em;function Wv(){if(Em)return Mf.exports;Em=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(i){console.error(i)}}return c(),Mf.exports=Fv(),Mf.exports}var $v=Wv(),Lu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(c){return this.listeners.add(c),this.onSubscribe(),()=>{this.listeners.delete(c),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Iv={setTimeout:(c,i)=>setTimeout(c,i),clearTimeout:c=>clearTimeout(c),setInterval:(c,i)=>setInterval(c,i),clearInterval:c=>clearInterval(c)},Fl,If,Gm,Pv=(Gm=class{constructor(){k(this,Fl,Iv);k(this,If,!1)}setTimeoutProvider(c){B(this,Fl,c)}setTimeout(c,i){return p(this,Fl).setTimeout(c,i)}clearTimeout(c){p(this,Fl).clearTimeout(c)}setInterval(c,i){return p(this,Fl).setInterval(c,i)}clearInterval(c){p(this,Fl).clearInterval(c)}},Fl=new WeakMap,If=new WeakMap,Gm),Ta=new Pv;function t2(c){setTimeout(c,0)}var Ua=typeof window>"u"||"Deno"in globalThis;function ge(){}function e2(c,i){return typeof c=="function"?c(i):c}function wf(c){return typeof c=="number"&&c>=0&&c!==1/0}function Im(c,i){return Math.max(c+(i||0)-Date.now(),0)}function aa(c,i){return typeof c=="function"?c(i):c}function Le(c,i){return typeof c=="function"?c(i):c}function Tm(c,i){const{type:f="all",exact:r,fetchStatus:h,predicate:y,queryKey:T,stale:O}=c;if(T){if(r){if(i.queryHash!==tr(T,i.options))return!1}else if(!Uu(i.queryKey,T))return!1}if(f!=="all"){const N=i.isActive();if(f==="active"&&!N||f==="inactive"&&N)return!1}return!(typeof O=="boolean"&&i.isStale()!==O||h&&h!==i.state.fetchStatus||y&&!y(i))}function Am(c,i){const{exact:f,status:r,predicate:h,mutationKey:y}=c;if(y){if(!i.options.mutationKey)return!1;if(f){if(Ru(i.options.mutationKey)!==Ru(y))return!1}else if(!Uu(i.options.mutationKey,y))return!1}return!(r&&i.state.status!==r||h&&!h(i))}function tr(c,i){return((i==null?void 0:i.queryKeyHashFn)||Ru)(c)}function Ru(c){return JSON.stringify(c,(i,f)=>Bf(f)?Object.keys(f).sort().reduce((r,h)=>(r[h]=f[h],r),{}):f)}function Uu(c,i){return c===i?!0:typeof c!=typeof i?!1:c&&i&&typeof c=="object"&&typeof i=="object"?Object.keys(i).every(f=>Uu(c[f],i[f])):!1}var l2=Object.prototype.hasOwnProperty;function Pm(c,i,f=0){if(c===i)return c;if(f>500)return i;const r=Nm(c)&&Nm(i);if(!r&&!(Bf(c)&&Bf(i)))return i;const y=(r?c:Object.keys(c)).length,T=r?i:Object.keys(i),O=T.length,N=r?new Array(O):{};let x=0;for(let H=0;H<O;H++){const R=r?H:T[H],X=c[R],V=i[R];if(X===V){N[R]=X,(r?H<y:l2.call(c,R))&&x++;continue}if(X===null||V===null||typeof X!="object"||typeof V!="object"){N[R]=V;continue}const at=Pm(X,V,f+1);N[R]=at,at===X&&x++}return y===O&&x===y?c:N}function Hf(c,i){if(!i||Object.keys(c).length!==Object.keys(i).length)return!1;for(const f in c)if(c[f]!==i[f])return!1;return!0}function Nm(c){return Array.isArray(c)&&c.length===Object.keys(c).length}function Bf(c){if(!Om(c))return!1;const i=c.constructor;if(i===void 0)return!0;const f=i.prototype;return!(!Om(f)||!f.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(c)!==Object.prototype)}function Om(c){return Object.prototype.toString.call(c)==="[object Object]"}function a2(c){return new Promise(i=>{Ta.setTimeout(i,c)})}function Qf(c,i,f){return typeof f.structuralSharing=="function"?f.structuralSharing(c,i):f.structuralSharing!==!1?Pm(c,i):i}function n2(c,i,f=0){const r=[...c,i];return f&&r.length>f?r.slice(1):r}function u2(c,i,f=0){const r=[i,...c];return f&&r.length>f?r.slice(0,-1):r}var er=Symbol();function ty(c,i){return!c.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!c.queryFn||c.queryFn===er?()=>Promise.reject(new Error(`Missing queryFn: '${c.queryHash}'`)):c.queryFn}function ey(c,i){return typeof c=="function"?c(...i):!!c}function i2(c,i,f){let r=!1,h;return Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(h??(h=i()),r||(r=!0,h.aborted?f():h.addEventListener("abort",f,{once:!0})),h)}),c}var Aa,Wl,Sn,Ym,c2=(Ym=class extends Lu{constructor(){super();k(this,Aa);k(this,Wl);k(this,Sn);B(this,Sn,i=>{if(!Ua&&window.addEventListener){const f=()=>i();return window.addEventListener("visibilitychange",f,!1),()=>{window.removeEventListener("visibilitychange",f)}}})}onSubscribe(){p(this,Wl)||this.setEventListener(p(this,Sn))}onUnsubscribe(){var i;this.hasListeners()||((i=p(this,Wl))==null||i.call(this),B(this,Wl,void 0))}setEventListener(i){var f;B(this,Sn,i),(f=p(this,Wl))==null||f.call(this),B(this,Wl,i(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(i){p(this,Aa)!==i&&(B(this,Aa,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(f=>{f(i)})}isFocused(){var i;return typeof p(this,Aa)=="boolean"?p(this,Aa):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Aa=new WeakMap,Wl=new WeakMap,Sn=new WeakMap,Ym),lr=new c2;function Lf(){let c,i;const f=new Promise((h,y)=>{c=h,i=y});f.status="pending",f.catch(()=>{});function r(h){Object.assign(f,h),delete f.resolve,delete f.reject}return f.resolve=h=>{r({status:"fulfilled",value:h}),c(h)},f.reject=h=>{r({status:"rejected",reason:h}),i(h)},f}var s2=t2;function f2(){let c=[],i=0,f=O=>{O()},r=O=>{O()},h=s2;const y=O=>{i?c.push(O):h(()=>{f(O)})},T=()=>{const O=c;c=[],O.length&&h(()=>{r(()=>{O.forEach(N=>{f(N)})})})};return{batch:O=>{let N;i++;try{N=O()}finally{i--,i||T()}return N},batchCalls:O=>(...N)=>{y(()=>{O(...N)})},schedule:y,setNotifyFunction:O=>{f=O},setBatchNotifyFunction:O=>{r=O},setScheduler:O=>{h=O}}}var le=f2(),_n,$l,En,Xm,r2=(Xm=class extends Lu{constructor(){super();k(this,_n,!0);k(this,$l);k(this,En);B(this,En,i=>{if(!Ua&&window.addEventListener){const f=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",f,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",f),window.removeEventListener("offline",r)}}})}onSubscribe(){p(this,$l)||this.setEventListener(p(this,En))}onUnsubscribe(){var i;this.hasListeners()||((i=p(this,$l))==null||i.call(this),B(this,$l,void 0))}setEventListener(i){var f;B(this,En,i),(f=p(this,$l))==null||f.call(this),B(this,$l,i(this.setOnline.bind(this)))}setOnline(i){p(this,_n)!==i&&(B(this,_n,i),this.listeners.forEach(r=>{r(i)}))}isOnline(){return p(this,_n)}},_n=new WeakMap,$l=new WeakMap,En=new WeakMap,Xm),fc=new r2;function o2(c){return Math.min(1e3*2**c,3e4)}function ly(c){return(c??"online")==="online"?fc.isOnline():!0}var Gf=class extends Error{constructor(c){super("CancelledError"),this.revert=c==null?void 0:c.revert,this.silent=c==null?void 0:c.silent}};function ay(c){let i=!1,f=0,r;const h=Lf(),y=()=>h.status!=="pending",T=F=>{var I;if(!y()){const U=new Gf(F);X(U),(I=c.onCancel)==null||I.call(c,U)}},O=()=>{i=!0},N=()=>{i=!1},x=()=>lr.isFocused()&&(c.networkMode==="always"||fc.isOnline())&&c.canRun(),H=()=>ly(c.networkMode)&&c.canRun(),R=F=>{y()||(r==null||r(),h.resolve(F))},X=F=>{y()||(r==null||r(),h.reject(F))},V=()=>new Promise(F=>{var I;r=U=>{(y()||x())&&F(U)},(I=c.onPause)==null||I.call(c)}).then(()=>{var F;r=void 0,y()||(F=c.onContinue)==null||F.call(c)}),at=()=>{if(y())return;let F;const I=f===0?c.initialPromise:void 0;try{F=I??c.fn()}catch(U){F=Promise.reject(U)}Promise.resolve(F).then(R).catch(U=>{var St;if(y())return;const $=c.retry??(Ua?0:3),K=c.retryDelay??o2,Q=typeof K=="function"?K(f,U):K,pt=$===!0||typeof $=="number"&&f<$||typeof $=="function"&&$(f,U);if(i||!pt){X(U);return}f++,(St=c.onFail)==null||St.call(c,f,U),a2(Q).then(()=>x()?void 0:V()).then(()=>{i?X(U):at()})})};return{promise:h,status:()=>h.status,cancel:T,continue:()=>(r==null||r(),h),cancelRetry:O,continueRetry:N,canStart:H,start:()=>(H()?at():V().then(at),h)}}var Na,Zm,ny=(Zm=class{constructor(){k(this,Na)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wf(this.gcTime)&&B(this,Na,Ta.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(c){this.gcTime=Math.max(this.gcTime||0,c??(Ua?1/0:300*1e3))}clearGcTimeout(){p(this,Na)&&(Ta.clearTimeout(p(this,Na)),B(this,Na,void 0))}},Na=new WeakMap,Zm),Oa,Tn,Qe,ja,Wt,qu,za,Ve,xl,Vm,d2=(Vm=class extends ny{constructor(i){super();k(this,Ve);k(this,Oa);k(this,Tn);k(this,Qe);k(this,ja);k(this,Wt);k(this,qu);k(this,za);B(this,za,!1),B(this,qu,i.defaultOptions),this.setOptions(i.options),this.observers=[],B(this,ja,i.client),B(this,Qe,p(this,ja).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,B(this,Oa,zm(this.options)),this.state=i.state??p(this,Oa),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=p(this,Wt))==null?void 0:i.promise}setOptions(i){if(this.options={...p(this,qu),...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const f=zm(this.options);f.data!==void 0&&(this.setState(jm(f.data,f.dataUpdatedAt)),B(this,Oa,f))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&p(this,Qe).remove(this)}setData(i,f){const r=Qf(this.state.data,i,this.options);return ht(this,Ve,xl).call(this,{data:r,type:"success",dataUpdatedAt:f==null?void 0:f.updatedAt,manual:f==null?void 0:f.manual}),r}setState(i,f){ht(this,Ve,xl).call(this,{type:"setState",state:i,setStateOptions:f})}cancel(i){var r,h;const f=(r=p(this,Wt))==null?void 0:r.promise;return(h=p(this,Wt))==null||h.cancel(i),f?f.then(ge).catch(ge):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(p(this,Oa))}isActive(){return this.observers.some(i=>Le(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===er||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>aa(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:!Im(this.state.dataUpdatedAt,i)}onFocus(){var f;const i=this.observers.find(r=>r.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(f=p(this,Wt))==null||f.continue()}onOnline(){var f;const i=this.observers.find(r=>r.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(f=p(this,Wt))==null||f.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),p(this,Qe).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(f=>f!==i),this.observers.length||(p(this,Wt)&&(p(this,za)?p(this,Wt).cancel({revert:!0}):p(this,Wt).cancelRetry()),this.scheduleGc()),p(this,Qe).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ht(this,Ve,xl).call(this,{type:"invalidate"})}async fetch(i,f){var N,x,H,R,X,V,at,F,I,U,$,K;if(this.state.fetchStatus!=="idle"&&((N=p(this,Wt))==null?void 0:N.status())!=="rejected"){if(this.state.data!==void 0&&(f!=null&&f.cancelRefetch))this.cancel({silent:!0});else if(p(this,Wt))return p(this,Wt).continueRetry(),p(this,Wt).promise}if(i&&this.setOptions(i),!this.options.queryFn){const Q=this.observers.find(pt=>pt.options.queryFn);Q&&this.setOptions(Q.options)}const r=new AbortController,h=Q=>{Object.defineProperty(Q,"signal",{enumerable:!0,get:()=>(B(this,za,!0),r.signal)})},y=()=>{const Q=ty(this.options,f),St=(()=>{const P={client:p(this,ja),queryKey:this.queryKey,meta:this.meta};return h(P),P})();return B(this,za,!1),this.options.persister?this.options.persister(Q,St,this):Q(St)},O=(()=>{const Q={fetchOptions:f,options:this.options,queryKey:this.queryKey,client:p(this,ja),state:this.state,fetchFn:y};return h(Q),Q})();(x=this.options.behavior)==null||x.onFetch(O,this),B(this,Tn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((H=O.fetchOptions)==null?void 0:H.meta))&&ht(this,Ve,xl).call(this,{type:"fetch",meta:(R=O.fetchOptions)==null?void 0:R.meta}),B(this,Wt,ay({initialPromise:f==null?void 0:f.initialPromise,fn:O.fetchFn,onCancel:Q=>{Q instanceof Gf&&Q.revert&&this.setState({...p(this,Tn),fetchStatus:"idle"}),r.abort()},onFail:(Q,pt)=>{ht(this,Ve,xl).call(this,{type:"failed",failureCount:Q,error:pt})},onPause:()=>{ht(this,Ve,xl).call(this,{type:"pause"})},onContinue:()=>{ht(this,Ve,xl).call(this,{type:"continue"})},retry:O.options.retry,retryDelay:O.options.retryDelay,networkMode:O.options.networkMode,canRun:()=>!0}));try{const Q=await p(this,Wt).start();if(Q===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(Q),(V=(X=p(this,Qe).config).onSuccess)==null||V.call(X,Q,this),(F=(at=p(this,Qe).config).onSettled)==null||F.call(at,Q,this.state.error,this),Q}catch(Q){if(Q instanceof Gf){if(Q.silent)return p(this,Wt).promise;if(Q.revert){if(this.state.data===void 0)throw Q;return this.state.data}}throw ht(this,Ve,xl).call(this,{type:"error",error:Q}),(U=(I=p(this,Qe).config).onError)==null||U.call(I,Q,this),(K=($=p(this,Qe).config).onSettled)==null||K.call($,this.state.data,Q,this),Q}finally{this.scheduleGc()}}},Oa=new WeakMap,Tn=new WeakMap,Qe=new WeakMap,ja=new WeakMap,Wt=new WeakMap,qu=new WeakMap,za=new WeakMap,Ve=new WeakSet,xl=function(i){const f=r=>{switch(i.type){case"failed":return{...r,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...uy(r.data,this.options),fetchMeta:i.meta??null};case"success":const h={...r,...jm(i.data,i.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return B(this,Tn,i.manual?h:void 0),h;case"error":const y=i.error;return{...r,error:y,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:y,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...i.state}}};this.state=f(this.state),le.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),p(this,Qe).notify({query:this,type:"updated",action:i})})},Vm);function uy(c,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ly(i.networkMode)?"fetching":"paused",...c===void 0&&{error:null,status:"pending"}}}function jm(c,i){return{data:c,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function zm(c){const i=typeof c.initialData=="function"?c.initialData():c.initialData,f=i!==void 0,r=f?typeof c.initialDataUpdatedAt=="function"?c.initialDataUpdatedAt():c.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:f?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:f?"success":"pending",fetchStatus:"idle"}}var pe,mt,wu,se,Da,An,Sl,Il,Hu,Nn,On,Ca,Ma,Pl,jn,xt,Mu,Yf,Xf,Zf,Vf,Kf,Jf,kf,iy,Km,h2=(Km=class extends Lu{constructor(i,f){super();k(this,xt);k(this,pe);k(this,mt);k(this,wu);k(this,se);k(this,Da);k(this,An);k(this,Sl);k(this,Il);k(this,Hu);k(this,Nn);k(this,On);k(this,Ca);k(this,Ma);k(this,Pl);k(this,jn,new Set);this.options=f,B(this,pe,i),B(this,Il,null),B(this,Sl,Lf()),this.bindMethods(),this.setOptions(f)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(p(this,mt).addObserver(this),Dm(p(this,mt),this.options)?ht(this,xt,Mu).call(this):this.updateResult(),ht(this,xt,Vf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ff(p(this,mt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ff(p(this,mt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ht(this,xt,Kf).call(this),ht(this,xt,Jf).call(this),p(this,mt).removeObserver(this)}setOptions(i){const f=this.options,r=p(this,mt);if(this.options=p(this,pe).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Le(this.options.enabled,p(this,mt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ht(this,xt,kf).call(this),p(this,mt).setOptions(this.options),f._defaulted&&!Hf(this.options,f)&&p(this,pe).getQueryCache().notify({type:"observerOptionsUpdated",query:p(this,mt),observer:this});const h=this.hasListeners();h&&Cm(p(this,mt),r,this.options,f)&&ht(this,xt,Mu).call(this),this.updateResult(),h&&(p(this,mt)!==r||Le(this.options.enabled,p(this,mt))!==Le(f.enabled,p(this,mt))||aa(this.options.staleTime,p(this,mt))!==aa(f.staleTime,p(this,mt)))&&ht(this,xt,Yf).call(this);const y=ht(this,xt,Xf).call(this);h&&(p(this,mt)!==r||Le(this.options.enabled,p(this,mt))!==Le(f.enabled,p(this,mt))||y!==p(this,Pl))&&ht(this,xt,Zf).call(this,y)}getOptimisticResult(i){const f=p(this,pe).getQueryCache().build(p(this,pe),i),r=this.createResult(f,i);return y2(this,r)&&(B(this,se,r),B(this,An,this.options),B(this,Da,p(this,mt).state)),r}getCurrentResult(){return p(this,se)}trackResult(i,f){return new Proxy(i,{get:(r,h)=>(this.trackProp(h),f==null||f(h),h==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&p(this,Sl).status==="pending"&&p(this,Sl).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,h))})}trackProp(i){p(this,jn).add(i)}getCurrentQuery(){return p(this,mt)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const f=p(this,pe).defaultQueryOptions(i),r=p(this,pe).getQueryCache().build(p(this,pe),f);return r.fetch().then(()=>this.createResult(r,f))}fetch(i){return ht(this,xt,Mu).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),p(this,se)))}createResult(i,f){var _t;const r=p(this,mt),h=this.options,y=p(this,se),T=p(this,Da),O=p(this,An),x=i!==r?i.state:p(this,wu),{state:H}=i;let R={...H},X=!1,V;if(f._optimisticResults){const Ut=this.hasListeners(),Vt=!Ut&&Dm(i,f),Kt=Ut&&Cm(i,r,f,h);(Vt||Kt)&&(R={...R,...uy(H.data,i.options)}),f._optimisticResults==="isRestoring"&&(R.fetchStatus="idle")}let{error:at,errorUpdatedAt:F,status:I}=R;V=R.data;let U=!1;if(f.placeholderData!==void 0&&V===void 0&&I==="pending"){let Ut;y!=null&&y.isPlaceholderData&&f.placeholderData===(O==null?void 0:O.placeholderData)?(Ut=y.data,U=!0):Ut=typeof f.placeholderData=="function"?f.placeholderData((_t=p(this,On))==null?void 0:_t.state.data,p(this,On)):f.placeholderData,Ut!==void 0&&(I="success",V=Qf(y==null?void 0:y.data,Ut,f),X=!0)}if(f.select&&V!==void 0&&!U)if(y&&V===(T==null?void 0:T.data)&&f.select===p(this,Hu))V=p(this,Nn);else try{B(this,Hu,f.select),V=f.select(V),V=Qf(y==null?void 0:y.data,V,f),B(this,Nn,V),B(this,Il,null)}catch(Ut){B(this,Il,Ut)}p(this,Il)&&(at=p(this,Il),V=p(this,Nn),F=Date.now(),I="error");const $=R.fetchStatus==="fetching",K=I==="pending",Q=I==="error",pt=K&&$,St=V!==void 0,nt={status:I,fetchStatus:R.fetchStatus,isPending:K,isSuccess:I==="success",isError:Q,isInitialLoading:pt,isLoading:pt,data:V,dataUpdatedAt:R.dataUpdatedAt,error:at,errorUpdatedAt:F,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdateCount:R.errorUpdateCount,isFetched:R.dataUpdateCount>0||R.errorUpdateCount>0,isFetchedAfterMount:R.dataUpdateCount>x.dataUpdateCount||R.errorUpdateCount>x.errorUpdateCount,isFetching:$,isRefetching:$&&!K,isLoadingError:Q&&!St,isPaused:R.fetchStatus==="paused",isPlaceholderData:X,isRefetchError:Q&&St,isStale:ar(i,f),refetch:this.refetch,promise:p(this,Sl),isEnabled:Le(f.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const Ut=nt.data!==void 0,Vt=nt.status==="error"&&!Ut,Kt=ae=>{Vt?ae.reject(nt.error):Ut&&ae.resolve(nt.data)},ke=()=>{const ae=B(this,Sl,nt.promise=Lf());Kt(ae)},fe=p(this,Sl);switch(fe.status){case"pending":i.queryHash===r.queryHash&&Kt(fe);break;case"fulfilled":(Vt||nt.data!==fe.value)&&ke();break;case"rejected":(!Vt||nt.error!==fe.reason)&&ke();break}}return nt}updateResult(){const i=p(this,se),f=this.createResult(p(this,mt),this.options);if(B(this,Da,p(this,mt).state),B(this,An,this.options),p(this,Da).data!==void 0&&B(this,On,p(this,mt)),Hf(f,i))return;B(this,se,f);const r=()=>{if(!i)return!0;const{notifyOnChangeProps:h}=this.options,y=typeof h=="function"?h():h;if(y==="all"||!y&&!p(this,jn).size)return!0;const T=new Set(y??p(this,jn));return this.options.throwOnError&&T.add("error"),Object.keys(p(this,se)).some(O=>{const N=O;return p(this,se)[N]!==i[N]&&T.has(N)})};ht(this,xt,iy).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ht(this,xt,Vf).call(this)}},pe=new WeakMap,mt=new WeakMap,wu=new WeakMap,se=new WeakMap,Da=new WeakMap,An=new WeakMap,Sl=new WeakMap,Il=new WeakMap,Hu=new WeakMap,Nn=new WeakMap,On=new WeakMap,Ca=new WeakMap,Ma=new WeakMap,Pl=new WeakMap,jn=new WeakMap,xt=new WeakSet,Mu=function(i){ht(this,xt,kf).call(this);let f=p(this,mt).fetch(this.options,i);return i!=null&&i.throwOnError||(f=f.catch(ge)),f},Yf=function(){ht(this,xt,Kf).call(this);const i=aa(this.options.staleTime,p(this,mt));if(Ua||p(this,se).isStale||!wf(i))return;const r=Im(p(this,se).dataUpdatedAt,i)+1;B(this,Ca,Ta.setTimeout(()=>{p(this,se).isStale||this.updateResult()},r))},Xf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(p(this,mt)):this.options.refetchInterval)??!1},Zf=function(i){ht(this,xt,Jf).call(this),B(this,Pl,i),!(Ua||Le(this.options.enabled,p(this,mt))===!1||!wf(p(this,Pl))||p(this,Pl)===0)&&B(this,Ma,Ta.setInterval(()=>{(this.options.refetchIntervalInBackground||lr.isFocused())&&ht(this,xt,Mu).call(this)},p(this,Pl)))},Vf=function(){ht(this,xt,Yf).call(this),ht(this,xt,Zf).call(this,ht(this,xt,Xf).call(this))},Kf=function(){p(this,Ca)&&(Ta.clearTimeout(p(this,Ca)),B(this,Ca,void 0))},Jf=function(){p(this,Ma)&&(Ta.clearInterval(p(this,Ma)),B(this,Ma,void 0))},kf=function(){const i=p(this,pe).getQueryCache().build(p(this,pe),this.options);if(i===p(this,mt))return;const f=p(this,mt);B(this,mt,i),B(this,wu,i.state),this.hasListeners()&&(f==null||f.removeObserver(this),i.addObserver(this))},iy=function(i){le.batch(()=>{i.listeners&&this.listeners.forEach(f=>{f(p(this,se))}),p(this,pe).getQueryCache().notify({query:p(this,mt),type:"observerResultsUpdated"})})},Km);function m2(c,i){return Le(i.enabled,c)!==!1&&c.state.data===void 0&&!(c.state.status==="error"&&i.retryOnMount===!1)}function Dm(c,i){return m2(c,i)||c.state.data!==void 0&&Ff(c,i,i.refetchOnMount)}function Ff(c,i,f){if(Le(i.enabled,c)!==!1&&aa(i.staleTime,c)!=="static"){const r=typeof f=="function"?f(c):f;return r==="always"||r!==!1&&ar(c,i)}return!1}function Cm(c,i,f,r){return(c!==i||Le(r.enabled,c)===!1)&&(!f.suspense||c.state.status!=="error")&&ar(c,f)}function ar(c,i){return Le(i.enabled,c)!==!1&&c.isStaleByTime(aa(i.staleTime,c))}function y2(c,i){return!Hf(c.getCurrentResult(),i)}function Mm(c){return{onFetch:(i,f)=>{var H,R,X,V,at;const r=i.options,h=(X=(R=(H=i.fetchOptions)==null?void 0:H.meta)==null?void 0:R.fetchMore)==null?void 0:X.direction,y=((V=i.state.data)==null?void 0:V.pages)||[],T=((at=i.state.data)==null?void 0:at.pageParams)||[];let O={pages:[],pageParams:[]},N=0;const x=async()=>{let F=!1;const I=K=>{i2(K,()=>i.signal,()=>F=!0)},U=ty(i.options,i.fetchOptions),$=async(K,Q,pt)=>{if(F)return Promise.reject();if(Q==null&&K.pages.length)return Promise.resolve(K);const P=(()=>{const Vt={client:i.client,queryKey:i.queryKey,pageParam:Q,direction:pt?"backward":"forward",meta:i.options.meta};return I(Vt),Vt})(),nt=await U(P),{maxPages:_t}=i.options,Ut=pt?u2:n2;return{pages:Ut(K.pages,nt,_t),pageParams:Ut(K.pageParams,Q,_t)}};if(h&&y.length){const K=h==="backward",Q=K?v2:Rm,pt={pages:y,pageParams:T},St=Q(r,pt);O=await $(pt,St,K)}else{const K=c??y.length;do{const Q=N===0?T[0]??r.initialPageParam:Rm(r,O);if(N>0&&Q==null)break;O=await $(O,Q),N++}while(N<K)}return O};i.options.persister?i.fetchFn=()=>{var F,I;return(I=(F=i.options).persister)==null?void 0:I.call(F,x,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},f)}:i.fetchFn=x}}}function Rm(c,{pages:i,pageParams:f}){const r=i.length-1;return i.length>0?c.getNextPageParam(i[r],i,f[r],f):void 0}function v2(c,{pages:i,pageParams:f}){var r;return i.length>0?(r=c.getPreviousPageParam)==null?void 0:r.call(c,i[0],i,f[0],f):void 0}var Bu,Pe,ue,Ra,tl,kl,Jm,p2=(Jm=class extends ny{constructor(i){super();k(this,tl);k(this,Bu);k(this,Pe);k(this,ue);k(this,Ra);B(this,Bu,i.client),this.mutationId=i.mutationId,B(this,ue,i.mutationCache),B(this,Pe,[]),this.state=i.state||g2(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){p(this,Pe).includes(i)||(p(this,Pe).push(i),this.clearGcTimeout(),p(this,ue).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){B(this,Pe,p(this,Pe).filter(f=>f!==i)),this.scheduleGc(),p(this,ue).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){p(this,Pe).length||(this.state.status==="pending"?this.scheduleGc():p(this,ue).remove(this))}continue(){var i;return((i=p(this,Ra))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var T,O,N,x,H,R,X,V,at,F,I,U,$,K,Q,pt,St,P;const f=()=>{ht(this,tl,kl).call(this,{type:"continue"})},r={client:p(this,Bu),meta:this.options.meta,mutationKey:this.options.mutationKey};B(this,Ra,ay({fn:()=>this.options.mutationFn?this.options.mutationFn(i,r):Promise.reject(new Error("No mutationFn found")),onFail:(nt,_t)=>{ht(this,tl,kl).call(this,{type:"failed",failureCount:nt,error:_t})},onPause:()=>{ht(this,tl,kl).call(this,{type:"pause"})},onContinue:f,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>p(this,ue).canRun(this)}));const h=this.state.status==="pending",y=!p(this,Ra).canStart();try{if(h)f();else{ht(this,tl,kl).call(this,{type:"pending",variables:i,isPaused:y}),p(this,ue).config.onMutate&&await p(this,ue).config.onMutate(i,this,r);const _t=await((O=(T=this.options).onMutate)==null?void 0:O.call(T,i,r));_t!==this.state.context&&ht(this,tl,kl).call(this,{type:"pending",context:_t,variables:i,isPaused:y})}const nt=await p(this,Ra).start();return await((x=(N=p(this,ue).config).onSuccess)==null?void 0:x.call(N,nt,i,this.state.context,this,r)),await((R=(H=this.options).onSuccess)==null?void 0:R.call(H,nt,i,this.state.context,r)),await((V=(X=p(this,ue).config).onSettled)==null?void 0:V.call(X,nt,null,this.state.variables,this.state.context,this,r)),await((F=(at=this.options).onSettled)==null?void 0:F.call(at,nt,null,i,this.state.context,r)),ht(this,tl,kl).call(this,{type:"success",data:nt}),nt}catch(nt){try{await((U=(I=p(this,ue).config).onError)==null?void 0:U.call(I,nt,i,this.state.context,this,r))}catch(_t){Promise.reject(_t)}try{await((K=($=this.options).onError)==null?void 0:K.call($,nt,i,this.state.context,r))}catch(_t){Promise.reject(_t)}try{await((pt=(Q=p(this,ue).config).onSettled)==null?void 0:pt.call(Q,void 0,nt,this.state.variables,this.state.context,this,r))}catch(_t){Promise.reject(_t)}try{await((P=(St=this.options).onSettled)==null?void 0:P.call(St,void 0,nt,i,this.state.context,r))}catch(_t){Promise.reject(_t)}throw ht(this,tl,kl).call(this,{type:"error",error:nt}),nt}finally{p(this,ue).runNext(this)}}},Bu=new WeakMap,Pe=new WeakMap,ue=new WeakMap,Ra=new WeakMap,tl=new WeakSet,kl=function(i){const f=r=>{switch(i.type){case"failed":return{...r,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:i.error,failureCount:r.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=f(this.state),le.batch(()=>{p(this,Pe).forEach(r=>{r.onMutationUpdate(i)}),p(this,ue).notify({mutation:this,type:"updated",action:i})})},Jm);function g2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _l,Ke,Qu,km,b2=(km=class extends Lu{constructor(i={}){super();k(this,_l);k(this,Ke);k(this,Qu);this.config=i,B(this,_l,new Set),B(this,Ke,new Map),B(this,Qu,0)}build(i,f,r){const h=new p2({client:i,mutationCache:this,mutationId:++ic(this,Qu)._,options:i.defaultMutationOptions(f),state:r});return this.add(h),h}add(i){p(this,_l).add(i);const f=cc(i);if(typeof f=="string"){const r=p(this,Ke).get(f);r?r.push(i):p(this,Ke).set(f,[i])}this.notify({type:"added",mutation:i})}remove(i){if(p(this,_l).delete(i)){const f=cc(i);if(typeof f=="string"){const r=p(this,Ke).get(f);if(r)if(r.length>1){const h=r.indexOf(i);h!==-1&&r.splice(h,1)}else r[0]===i&&p(this,Ke).delete(f)}}this.notify({type:"removed",mutation:i})}canRun(i){const f=cc(i);if(typeof f=="string"){const r=p(this,Ke).get(f),h=r==null?void 0:r.find(y=>y.state.status==="pending");return!h||h===i}else return!0}runNext(i){var r;const f=cc(i);if(typeof f=="string"){const h=(r=p(this,Ke).get(f))==null?void 0:r.find(y=>y!==i&&y.state.isPaused);return(h==null?void 0:h.continue())??Promise.resolve()}else return Promise.resolve()}clear(){le.batch(()=>{p(this,_l).forEach(i=>{this.notify({type:"removed",mutation:i})}),p(this,_l).clear(),p(this,Ke).clear()})}getAll(){return Array.from(p(this,_l))}find(i){const f={exact:!0,...i};return this.getAll().find(r=>Am(f,r))}findAll(i={}){return this.getAll().filter(f=>Am(i,f))}notify(i){le.batch(()=>{this.listeners.forEach(f=>{f(i)})})}resumePausedMutations(){const i=this.getAll().filter(f=>f.state.isPaused);return le.batch(()=>Promise.all(i.map(f=>f.continue().catch(ge))))}},_l=new WeakMap,Ke=new WeakMap,Qu=new WeakMap,km);function cc(c){var i;return(i=c.options.scope)==null?void 0:i.id}var el,Fm,x2=(Fm=class extends Lu{constructor(i={}){super();k(this,el);this.config=i,B(this,el,new Map)}build(i,f,r){const h=f.queryKey,y=f.queryHash??tr(h,f);let T=this.get(y);return T||(T=new d2({client:i,queryKey:h,queryHash:y,options:i.defaultQueryOptions(f),state:r,defaultOptions:i.getQueryDefaults(h)}),this.add(T)),T}add(i){p(this,el).has(i.queryHash)||(p(this,el).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const f=p(this,el).get(i.queryHash);f&&(i.destroy(),f===i&&p(this,el).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){le.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return p(this,el).get(i)}getAll(){return[...p(this,el).values()]}find(i){const f={exact:!0,...i};return this.getAll().find(r=>Tm(f,r))}findAll(i={}){const f=this.getAll();return Object.keys(i).length>0?f.filter(r=>Tm(i,r)):f}notify(i){le.batch(()=>{this.listeners.forEach(f=>{f(i)})})}onFocus(){le.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){le.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},el=new WeakMap,Fm),Ht,ta,ea,zn,Dn,la,Cn,Mn,Wm,S2=(Wm=class{constructor(c={}){k(this,Ht);k(this,ta);k(this,ea);k(this,zn);k(this,Dn);k(this,la);k(this,Cn);k(this,Mn);B(this,Ht,c.queryCache||new x2),B(this,ta,c.mutationCache||new b2),B(this,ea,c.defaultOptions||{}),B(this,zn,new Map),B(this,Dn,new Map),B(this,la,0)}mount(){ic(this,la)._++,p(this,la)===1&&(B(this,Cn,lr.subscribe(async c=>{c&&(await this.resumePausedMutations(),p(this,Ht).onFocus())})),B(this,Mn,fc.subscribe(async c=>{c&&(await this.resumePausedMutations(),p(this,Ht).onOnline())})))}unmount(){var c,i;ic(this,la)._--,p(this,la)===0&&((c=p(this,Cn))==null||c.call(this),B(this,Cn,void 0),(i=p(this,Mn))==null||i.call(this),B(this,Mn,void 0))}isFetching(c){return p(this,Ht).findAll({...c,fetchStatus:"fetching"}).length}isMutating(c){return p(this,ta).findAll({...c,status:"pending"}).length}getQueryData(c){var f;const i=this.defaultQueryOptions({queryKey:c});return(f=p(this,Ht).get(i.queryHash))==null?void 0:f.state.data}ensureQueryData(c){const i=this.defaultQueryOptions(c),f=p(this,Ht).build(this,i),r=f.state.data;return r===void 0?this.fetchQuery(c):(c.revalidateIfStale&&f.isStaleByTime(aa(i.staleTime,f))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(c){return p(this,Ht).findAll(c).map(({queryKey:i,state:f})=>{const r=f.data;return[i,r]})}setQueryData(c,i,f){const r=this.defaultQueryOptions({queryKey:c}),h=p(this,Ht).get(r.queryHash),y=h==null?void 0:h.state.data,T=e2(i,y);if(T!==void 0)return p(this,Ht).build(this,r).setData(T,{...f,manual:!0})}setQueriesData(c,i,f){return le.batch(()=>p(this,Ht).findAll(c).map(({queryKey:r})=>[r,this.setQueryData(r,i,f)]))}getQueryState(c){var f;const i=this.defaultQueryOptions({queryKey:c});return(f=p(this,Ht).get(i.queryHash))==null?void 0:f.state}removeQueries(c){const i=p(this,Ht);le.batch(()=>{i.findAll(c).forEach(f=>{i.remove(f)})})}resetQueries(c,i){const f=p(this,Ht);return le.batch(()=>(f.findAll(c).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...c},i)))}cancelQueries(c,i={}){const f={revert:!0,...i},r=le.batch(()=>p(this,Ht).findAll(c).map(h=>h.cancel(f)));return Promise.all(r).then(ge).catch(ge)}invalidateQueries(c,i={}){return le.batch(()=>(p(this,Ht).findAll(c).forEach(f=>{f.invalidate()}),(c==null?void 0:c.refetchType)==="none"?Promise.resolve():this.refetchQueries({...c,type:(c==null?void 0:c.refetchType)??(c==null?void 0:c.type)??"active"},i)))}refetchQueries(c,i={}){const f={...i,cancelRefetch:i.cancelRefetch??!0},r=le.batch(()=>p(this,Ht).findAll(c).filter(h=>!h.isDisabled()&&!h.isStatic()).map(h=>{let y=h.fetch(void 0,f);return f.throwOnError||(y=y.catch(ge)),h.state.fetchStatus==="paused"?Promise.resolve():y}));return Promise.all(r).then(ge)}fetchQuery(c){const i=this.defaultQueryOptions(c);i.retry===void 0&&(i.retry=!1);const f=p(this,Ht).build(this,i);return f.isStaleByTime(aa(i.staleTime,f))?f.fetch(i):Promise.resolve(f.state.data)}prefetchQuery(c){return this.fetchQuery(c).then(ge).catch(ge)}fetchInfiniteQuery(c){return c.behavior=Mm(c.pages),this.fetchQuery(c)}prefetchInfiniteQuery(c){return this.fetchInfiniteQuery(c).then(ge).catch(ge)}ensureInfiniteQueryData(c){return c.behavior=Mm(c.pages),this.ensureQueryData(c)}resumePausedMutations(){return fc.isOnline()?p(this,ta).resumePausedMutations():Promise.resolve()}getQueryCache(){return p(this,Ht)}getMutationCache(){return p(this,ta)}getDefaultOptions(){return p(this,ea)}setDefaultOptions(c){B(this,ea,c)}setQueryDefaults(c,i){p(this,zn).set(Ru(c),{queryKey:c,defaultOptions:i})}getQueryDefaults(c){const i=[...p(this,zn).values()],f={};return i.forEach(r=>{Uu(c,r.queryKey)&&Object.assign(f,r.defaultOptions)}),f}setMutationDefaults(c,i){p(this,Dn).set(Ru(c),{mutationKey:c,defaultOptions:i})}getMutationDefaults(c){const i=[...p(this,Dn).values()],f={};return i.forEach(r=>{Uu(c,r.mutationKey)&&Object.assign(f,r.defaultOptions)}),f}defaultQueryOptions(c){if(c._defaulted)return c;const i={...p(this,ea).queries,...this.getQueryDefaults(c.queryKey),...c,_defaulted:!0};return i.queryHash||(i.queryHash=tr(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===er&&(i.enabled=!1),i}defaultMutationOptions(c){return c!=null&&c._defaulted?c:{...p(this,ea).mutations,...(c==null?void 0:c.mutationKey)&&this.getMutationDefaults(c.mutationKey),...c,_defaulted:!0}}clear(){p(this,Ht).clear(),p(this,ta).clear()}},Ht=new WeakMap,ta=new WeakMap,ea=new WeakMap,zn=new WeakMap,Dn=new WeakMap,la=new WeakMap,Cn=new WeakMap,Mn=new WeakMap,Wm),cy=ft.createContext(void 0),_2=c=>{const i=ft.useContext(cy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},E2=({client:c,children:i})=>(ft.useEffect(()=>(c.mount(),()=>{c.unmount()}),[c]),d.jsx(cy.Provider,{value:c,children:i})),sy=ft.createContext(!1),T2=()=>ft.useContext(sy);sy.Provider;function A2(){let c=!1;return{clearReset:()=>{c=!1},reset:()=>{c=!0},isReset:()=>c}}var N2=ft.createContext(A2()),O2=()=>ft.useContext(N2),j2=(c,i,f)=>{const r=f!=null&&f.state.error&&typeof c.throwOnError=="function"?ey(c.throwOnError,[f.state.error,f]):c.throwOnError;(c.suspense||c.experimental_prefetchInRender||r)&&(i.isReset()||(c.retryOnMount=!1))},z2=c=>{ft.useEffect(()=>{c.clearReset()},[c])},D2=({result:c,errorResetBoundary:i,throwOnError:f,query:r,suspense:h})=>c.isError&&!i.isReset()&&!c.isFetching&&r&&(h&&c.data===void 0||ey(f,[c.error,r])),C2=c=>{if(c.suspense){const f=h=>h==="static"?h:Math.max(h??1e3,1e3),r=c.staleTime;c.staleTime=typeof r=="function"?(...h)=>f(r(...h)):f(r),typeof c.gcTime=="number"&&(c.gcTime=Math.max(c.gcTime,1e3))}},M2=(c,i)=>c.isLoading&&c.isFetching&&!i,R2=(c,i)=>(c==null?void 0:c.suspense)&&i.isPending,Um=(c,i,f)=>i.fetchOptimistic(c).catch(()=>{f.clearReset()});function U2(c,i,f){var X,V,at,F;const r=T2(),h=O2(),y=_2(),T=y.defaultQueryOptions(c);(V=(X=y.getDefaultOptions().queries)==null?void 0:X._experimental_beforeQuery)==null||V.call(X,T);const O=y.getQueryCache().get(T.queryHash);T._optimisticResults=r?"isRestoring":"optimistic",C2(T),j2(T,h,O),z2(h);const N=!y.getQueryCache().get(T.queryHash),[x]=ft.useState(()=>new i(y,T)),H=x.getOptimisticResult(T),R=!r&&c.subscribed!==!1;if(ft.useSyncExternalStore(ft.useCallback(I=>{const U=R?x.subscribe(le.batchCalls(I)):ge;return x.updateResult(),U},[x,R]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),ft.useEffect(()=>{x.setOptions(T)},[T,x]),R2(T,H))throw Um(T,x,h);if(D2({result:H,errorResetBoundary:h,throwOnError:T.throwOnError,query:O,suspense:T.suspense}))throw H.error;if((F=(at=y.getDefaultOptions().queries)==null?void 0:at._experimental_afterQuery)==null||F.call(at,T,H),T.experimental_prefetchInRender&&!Ua&&M2(H,r)){const I=N?Um(T,x,h):O==null?void 0:O.promise;I==null||I.catch(ge).finally(()=>{x.updateResult()})}return T.notifyOnChangeProps?H:x.trackResult(H)}function Rn(c,i){return U2(c,h2)}const q2=new S2({defaultOptions:{queries:{staleTime:15*1e3,gcTime:300*1e3,retry:2,retryDelay:c=>Math.min(1e3*2**c,1e4),refetchOnWindowFocus:!0,refetchOnReconnect:!0}}}),w2="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20width='100'%20height='100'%3e%3c!--%20Aegis%20Shield%20Mark%20Concentric%20circles%20evoking%20a%20Greek%20aspis%20(round%20shield)%20with%20central%20boss.%20Use:%20standalone%20mark,%20avatar,%20documentation.%20Color:%20Aegis%20Gold%20(%23C8973E)%20on%20transparent.%20--%3e%3c!--%20Outer%20shield%20circle%20(the%20aspis%20body)%20--%3e%3ccircle%20fill='none'%20stroke='%23C8973E'%20cx='50'%20cy='50'%20r='44'%20stroke-width='2.5'/%3e%3c!--%20Inner%20rim%20ring%20(close%20to%20outer%20—%20creates%20a%20thick%20rim%20band)%20--%3e%3ccircle%20fill='none'%20stroke='%23C8973E'%20cx='50'%20cy='50'%20r='36'%20stroke-width='1.2'/%3e%3c!--%20Boss%20ring%20--%3e%3ccircle%20fill='none'%20stroke='%23C8973E'%20cx='50'%20cy='50'%20r='14'%20stroke-width='1.5'/%3e%3c!--%20Central%20dot%20--%3e%3ccircle%20fill='%23C8973E'%20cx='50'%20cy='50'%20r='5.5'/%3e%3c!--%20Orbital%20dots%20(just%20inside%20the%20inner%20rim%20ring)%20--%3e%3ccircle%20fill='%23C8973E'%20cx='50'%20cy='18'%20r='2.2'/%3e%3c!--%20top%20--%3e%3ccircle%20fill='%23C8973E'%20cx='18'%20cy='50'%20r='2.2'/%3e%3c!--%20left%20--%3e%3ccircle%20fill='%23C8973E'%20cx='82'%20cy='50'%20r='2.2'/%3e%3c!--%20right%20--%3e%3ccircle%20fill='%23C8973E'%20cx='50'%20cy='82'%20r='2.2'/%3e%3c!--%20bottom%20--%3e%3c/svg%3e";/**
50
50
  * @license lucide-react v0.511.0 - ISC
51
51
  *
52
52
  * This source code is licensed under the ISC license.
53
53
  * See the LICENSE file in the root directory of this source tree.
54
- */const wp=c=>c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hp=c=>c.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,f,r)=>r?r.toUpperCase():f.toLowerCase()),qm=c=>{const i=Hp(c);return i.charAt(0).toUpperCase()+i.slice(1)},fy=(...c)=>c.filter((i,f,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===f).join(" ").trim(),Bp=c=>{for(const i in c)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
54
+ */const H2=c=>c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),B2=c=>c.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,f,r)=>r?r.toUpperCase():f.toLowerCase()),qm=c=>{const i=B2(c);return i.charAt(0).toUpperCase()+i.slice(1)},fy=(...c)=>c.filter((i,f,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===f).join(" ").trim(),Q2=c=>{for(const i in c)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
55
55
  * @license lucide-react v0.511.0 - ISC
56
56
  *
57
57
  * This source code is licensed under the ISC license.
58
58
  * See the LICENSE file in the root directory of this source tree.
59
- */var Qp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
59
+ */var L2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
60
60
  * @license lucide-react v0.511.0 - ISC
61
61
  *
62
62
  * This source code is licensed under the ISC license.
63
63
  * See the LICENSE file in the root directory of this source tree.
64
- */const Lp=ft.forwardRef(({color:c="currentColor",size:i=24,strokeWidth:f=2,absoluteStrokeWidth:r,className:h="",children:y,iconNode:T,...j},A)=>ft.createElement("svg",{ref:A,...Qp,width:i,height:i,stroke:c,strokeWidth:r?Number(f)*24/Number(i):f,className:fy("lucide",h),...!y&&!Bp(j)&&{"aria-hidden":"true"},...j},[...T.map(([x,H])=>ft.createElement(x,H)),...Array.isArray(y)?y:[y]]));/**
64
+ */const G2=ft.forwardRef(({color:c="currentColor",size:i=24,strokeWidth:f=2,absoluteStrokeWidth:r,className:h="",children:y,iconNode:T,...O},N)=>ft.createElement("svg",{ref:N,...L2,width:i,height:i,stroke:c,strokeWidth:r?Number(f)*24/Number(i):f,className:fy("lucide",h),...!y&&!Q2(O)&&{"aria-hidden":"true"},...O},[...T.map(([x,H])=>ft.createElement(x,H)),...Array.isArray(y)?y:[y]]));/**
65
65
  * @license lucide-react v0.511.0 - ISC
66
66
  *
67
67
  * This source code is licensed under the ISC license.
68
68
  * See the LICENSE file in the root directory of this source tree.
69
- */const Ge=(c,i)=>{const f=ft.forwardRef(({className:r,...h},y)=>ft.createElement(Lp,{ref:y,iconNode:i,className:fy(`lucide-${wp(qm(c))}`,`lucide-${c}`,r),...h}));return f.displayName=qm(c),f};/**
69
+ */const Ge=(c,i)=>{const f=ft.forwardRef(({className:r,...h},y)=>ft.createElement(G2,{ref:y,iconNode:i,className:fy(`lucide-${H2(qm(c))}`,`lucide-${c}`,r),...h}));return f.displayName=qm(c),f};/**
70
70
  * @license lucide-react v0.511.0 - ISC
71
71
  *
72
72
  * This source code is licensed under the ISC license.
73
73
  * See the LICENSE file in the root directory of this source tree.
74
- */const Gp=[["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"}]],Yp=Ge("activity",Gp);/**
74
+ */const Y2=[["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"}]],X2=Ge("activity",Y2);/**
75
75
  * @license lucide-react v0.511.0 - ISC
76
76
  *
77
77
  * This source code is licensed under the ISC license.
78
78
  * See the LICENSE file in the root directory of this source tree.
79
- */const Xp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Zp=Ge("clock",Xp);/**
79
+ */const Z2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],V2=Ge("clock",Z2);/**
80
80
  * @license lucide-react v0.511.0 - ISC
81
81
  *
82
82
  * This source code is licensed under the ISC license.
83
83
  * See the LICENSE file in the root directory of this source tree.
84
- */const Vp=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],wm=Ge("download",Vp);/**
84
+ */const K2=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],wm=Ge("download",K2);/**
85
85
  * @license lucide-react v0.511.0 - ISC
86
86
  *
87
87
  * This source code is licensed under the ISC license.
88
88
  * See the LICENSE file in the root directory of this source tree.
89
- */const Kp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Jp=Ge("globe",Kp);/**
89
+ */const J2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],k2=Ge("globe",J2);/**
90
90
  * @license lucide-react v0.511.0 - ISC
91
91
  *
92
92
  * This source code is licensed under the ISC license.
93
93
  * See the LICENSE file in the root directory of this source tree.
94
- */const kp=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],nr=Ge("key-round",kp);/**
94
+ */const F2=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],nr=Ge("key-round",F2);/**
95
95
  * @license lucide-react v0.511.0 - ISC
96
96
  *
97
97
  * This source code is licensed under the ISC license.
98
98
  * See the LICENSE file in the root directory of this source tree.
99
- */const Fp=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Wp=Ge("layout-dashboard",Fp);/**
99
+ */const W2=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],$2=Ge("layout-dashboard",W2);/**
100
100
  * @license lucide-react v0.511.0 - ISC
101
101
  *
102
102
  * This source code is licensed under the ISC license.
103
103
  * See the LICENSE file in the root directory of this source tree.
104
- */const $p=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],Ip=Ge("pause",$p);/**
104
+ */const I2=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],P2=Ge("pause",I2);/**
105
105
  * @license lucide-react v0.511.0 - ISC
106
106
  *
107
107
  * This source code is licensed under the ISC license.
108
108
  * See the LICENSE file in the root directory of this source tree.
109
- */const Pp=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],tg=Ge("play",Pp);/**
109
+ */const tp=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],ep=Ge("play",tp);/**
110
110
  * @license lucide-react v0.511.0 - ISC
111
111
  *
112
112
  * This source code is licensed under the ISC license.
113
113
  * See the LICENSE file in the root directory of this source tree.
114
- */const eg=[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]],ry=Ge("radio",eg);/**
114
+ */const lp=[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]],ry=Ge("radio",lp);/**
115
115
  * @license lucide-react v0.511.0 - ISC
116
116
  *
117
117
  * This source code is licensed under the ISC license.
118
118
  * See the LICENSE file in the root directory of this source tree.
119
- */const lg=[["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:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],ur=Ge("shield-alert",lg);/**
119
+ */const ap=[["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:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],ur=Ge("shield-alert",ap);/**
120
120
  * @license lucide-react v0.511.0 - ISC
121
121
  *
122
122
  * This source code is licensed under the ISC license.
123
123
  * See the LICENSE file in the root directory of this source tree.
124
- */const ag=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],oy=Ge("user-cog",ag);/**
124
+ */const np=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],oy=Ge("user-cog",np);/**
125
125
  * @license lucide-react v0.511.0 - ISC
126
126
  *
127
127
  * This source code is licensed under the ISC license.
128
128
  * See the LICENSE file in the root directory of this source tree.
129
- */const ng=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],ir=Ge("users",ng),ug=[{view:"overview",label:"Overview",icon:Wp},{view:"requests",label:"Request Feed",icon:ry},{view:"credentials",label:"Credentials",icon:nr},{view:"agents",label:"Agents",icon:ir},{view:"users",label:"Users",icon:oy},{view:"blocked",label:"Blocked",icon:ur}];function ig({currentView:c,onNavigate:i}){return d.jsxs("aside",{className:"flex flex-col border-r border-border bg-surface-0",style:{width:"var(--sidebar-width)"},role:"navigation","aria-label":"Main navigation",children:[d.jsxs("div",{className:"flex items-center gap-3 border-b border-border px-5",style:{height:"var(--header-height)"},children:[d.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 100 100","aria-hidden":"true",children:[d.jsx("circle",{cx:"50",cy:"50",r:"45",fill:"none",stroke:"#C8973E",strokeWidth:"5"}),d.jsx("circle",{cx:"50",cy:"50",r:"32",fill:"none",stroke:"#C8973E",strokeWidth:"4"}),d.jsx("circle",{cx:"50",cy:"50",r:"18",fill:"none",stroke:"#C8973E",strokeWidth:"3"}),d.jsx("circle",{cx:"50",cy:"50",r:"5",fill:"#C8973E"})]}),d.jsx("span",{className:"text-[15px] font-semibold text-primary",children:"Aegis"})]}),d.jsxs("nav",{className:"flex-1 px-3 py-4",children:[d.jsx("div",{className:"mb-3 px-2 text-[11px] font-medium uppercase tracking-wider text-tertiary",children:"Navigation"}),d.jsx("ul",{className:"flex flex-col gap-1",children:ug.map(({view:f,label:r,icon:h})=>{const y=c===f;return d.jsx("li",{children:d.jsxs("button",{type:"button",onClick:()=>i(f),className:`flex w-full items-center gap-3 rounded-md px-3 py-2 text-[13px] font-medium transition-[color,background-color,border-color] duration-100 ease-in ${y?"border-l-2 border-gold bg-gold-muted text-primary":"border-l-2 border-transparent text-secondary hover:bg-surface-3 hover:text-primary"}`,"aria-current":y?"page":void 0,children:[d.jsx(h,{size:20,"aria-hidden":"true"}),r]})},f)})})]}),d.jsx("div",{className:"border-t border-border px-5 py-3",children:d.jsx("span",{className:"text-[11px] text-tertiary",children:"Aegis Dashboard"})})]})}const cg="/api";async function xn(c){const i=await fetch(`${cg}${c}`);if(!i.ok)throw new Error(`API error: ${i.status} ${i.statusText}`);return i.json()}const Un={health(){return xn("/health")},stats(c){const i=c?`?since=${encodeURIComponent(c)}`:"";return xn(`/stats${i}`)},credentials(){return xn("/credentials")},agents(){return xn("/agents")},users(){return xn("/users")},requests(c){const i=new URLSearchParams;c!=null&&c.status&&i.set("status",c.status),c!=null&&c.service&&i.set("service",c.service),c!=null&&c.limit&&i.set("limit",String(c.limit)),c!=null&&c.since&&i.set("since",c.since);const f=i.toString();return xn(`/requests${f?`?${f}`:""}`)}},qn={health:["health"],stats:{all:["stats"],since:c=>["stats",{since:c}]},credentials:{all:["credentials"]},agents:{all:["agents"]},users:{all:["users"]},requests:{all:["requests"],list:c=>["requests","list",c]}};function sg(){return Rn({queryKey:qn.health,queryFn:()=>Un.health(),refetchInterval:1e4})}const fg={overview:"Overview",requests:"Request Feed",credentials:"Credentials",agents:"Agents",users:"Users",blocked:"Blocked Requests"};function rg({currentView:c}){const{data:i,isError:f}=sg(),r=i!==void 0&&!f;return d.jsxs("header",{className:"flex items-center justify-between border-b border-border bg-surface-0 px-6",style:{height:"var(--header-height)",minHeight:"var(--header-height)"},children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-[13px] text-tertiary",children:"Aegis"}),d.jsx("span",{className:"text-[13px] text-tertiary",children:"/"}),d.jsx("span",{className:"text-[13px] font-medium text-primary",children:fg[c]})]}),d.jsxs("div",{className:"flex items-center gap-4",children:[(i==null?void 0:i.version)&&d.jsxs("span",{className:"font-mono text-[12px] text-tertiary",children:["v",i.version]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:`inline-block h-2 w-2 rounded-full ${r?"bg-allowed":"bg-blocked"}`,"aria-hidden":"true"}),d.jsx("span",{className:`text-[13px] font-medium ${r?"text-allowed":"text-blocked"}`,"aria-label":`Connection status: ${r?"Connected":"Disconnected"}`,children:r?"Connected":"Disconnected"})]})]})]})}function Je({title:c,description:i,action:f,children:r,className:h=""}){return d.jsxs("div",{className:`rounded-md border border-border bg-surface-1 p-5 ${h}`,children:[(c||f)&&d.jsxs("div",{className:"mb-4 flex items-start justify-between",children:[d.jsxs("div",{children:[c&&d.jsx("h3",{className:"text-[15px] font-medium text-primary",children:c}),i&&d.jsx("p",{className:"mt-0.5 text-[13px] text-secondary",children:i})]}),f&&d.jsx("div",{className:"ml-4 flex-shrink-0",children:f})]}),r]})}const og={allowed:"bg-allowed-bg text-allowed",active:"bg-allowed-bg text-allowed",blocked:"bg-blocked-bg text-blocked",expired:"bg-blocked-bg text-blocked",warning:"bg-warning-bg text-warning",expiring:"bg-warning-bg text-warning",info:"bg-info-bg text-info",system:"bg-info-bg text-info"};function wn({variant:c,label:i}){const f=i??c.toUpperCase();return d.jsx("span",{className:`inline-block rounded-sm px-2 py-0.5 text-[11px] font-medium uppercase tracking-wide ${og[c]}`,"aria-label":`Status: ${f}`,children:f})}function dg(c){return Rn({queryKey:qn.stats.since(c),queryFn:()=>Un.stats(c),refetchInterval:15e3})}function cr(){return Rn({queryKey:qn.credentials.all,queryFn:()=>Un.credentials(),refetchInterval:3e4})}function sr(){return Rn({queryKey:qn.agents.all,queryFn:()=>Un.agents(),refetchInterval:3e4})}function fr(c){const{refetchInterval:i=5e3,...f}=c??{};return Rn({queryKey:qn.requests.list(f),queryFn:()=>Un.requests(f),refetchInterval:i})}function Wf(c){return c.toLocaleString("en-US")}function dy(c,i=!1){const f=new Date(c),r=f.toLocaleTimeString("en-US",{hour12:!1});return i?`${f.toLocaleDateString("en-US",{month:"short",day:"numeric"})}, ${r}`:r}function rr(c){const i=Date.now(),f=new Date(c).getTime(),r=i-f,h=Math.floor(r/6e4);if(h<1)return"just now";if(h<60)return`${h}m ago`;const y=Math.floor(h/60);return y<24?`${y}h ago`:`${Math.floor(y/24)}d ago`}function sc({icon:c,label:i,value:f,iconColor:r="text-secondary"}){return d.jsx(Je,{children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:`rounded-md bg-surface-2 p-2 ${r}`,children:d.jsx(c,{size:20,"aria-hidden":"true"})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-[12px] uppercase tracking-wider text-secondary",children:i}),d.jsx("p",{className:"text-[24px] font-semibold leading-8 text-primary",children:f})]})]})})}const Hm=["#4A90D9","#C8973E","#34A853","#9B6DB7","#D97B3A","#5BB5A2","#D4616E","#7B8FA1"];function hg({byService:c}){var r;const i=Object.entries(c).sort((h,y)=>y[1]-h[1]),f=((r=i[0])==null?void 0:r[1])??1;return d.jsxs("div",{className:"flex flex-col gap-2",children:[i.map(([h,y],T)=>d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("span",{className:"w-24 text-right font-mono text-[12px] text-secondary truncate",children:h}),d.jsx("div",{className:"flex-1 h-5 rounded-sm bg-surface-2 overflow-hidden",children:d.jsx("div",{className:"h-full rounded-sm transition-all duration-150",style:{width:`${y/f*100}%`,backgroundColor:Hm[T%Hm.length]}})}),d.jsx("span",{className:"w-12 text-right font-mono text-[12px] text-tertiary",children:Wf(y)})]},h)),i.length===0&&d.jsx("p",{className:"py-4 text-center text-[13px] text-tertiary",children:"No traffic yet"})]})}function mg(){const{data:c}=cr(),i=c??[],f=Date.now(),r=10080*60*1e3;let h=0,y=0,T=0;for(const A of i)if(!A.expiresAt)h++;else{const x=new Date(A.expiresAt).getTime();x<f?T++:x-f<r?y++:h++}const j=h+y+T;return j===0?d.jsx("p",{className:"text-[13px] text-tertiary",children:"No credentials stored"}):d.jsxs("div",{children:[d.jsxs("div",{className:"flex h-3 gap-0.5 overflow-hidden rounded-sm",children:[h>0&&d.jsx("div",{className:"bg-allowed",style:{width:`${h/j*100}%`}}),y>0&&d.jsx("div",{className:"bg-warning",style:{width:`${y/j*100}%`}}),T>0&&d.jsx("div",{className:"bg-blocked",style:{width:`${T/j*100}%`}})]}),d.jsxs("div",{className:"mt-2 flex gap-4 text-[12px]",children:[d.jsxs("span",{className:"text-allowed",children:[h," active"]}),y>0&&d.jsxs("span",{className:"text-warning",children:[y," expiring"]}),T>0&&d.jsxs("span",{className:"text-blocked",children:[T," expired"]})]})]})}function yg(){const{data:c,isLoading:i}=dg(),{data:f}=cr(),{data:r}=sr(),{data:h}=fr({limit:8,refetchInterval:5e3}),y=h??[];return d.jsxs("div",{className:i?"opacity-60":"",children:[d.jsxs("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(200px,1fr))] gap-4",children:[d.jsx(sc,{icon:nr,label:"Active Creds",value:(f==null?void 0:f.length)??"—",iconColor:"text-gold"}),d.jsx(sc,{icon:ir,label:"Agents",value:(r==null?void 0:r.length)??"—",iconColor:"text-info"}),d.jsx(sc,{icon:Yp,label:"Total Requests",value:c?Wf(c.total):"—"}),d.jsx(sc,{icon:ur,label:"Blocked",value:c?Wf(c.blocked):"—",iconColor:"text-blocked"})]}),d.jsx(Je,{title:"Traffic by Service",className:"mt-4",children:c!=null&&c.byService?d.jsx(hg,{byService:c.byService}):d.jsx("p",{className:"py-4 text-center text-[13px] text-tertiary",children:"Loading..."})}),d.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-4 lg:grid-cols-2",children:[d.jsx(Je,{title:"Recent Requests",children:d.jsxs("div",{className:"flex flex-col",children:[y.length===0&&d.jsx("p",{className:"py-4 text-center text-[13px] text-tertiary",children:"No requests yet"}),y.map(T=>d.jsxs("div",{className:`flex items-center gap-3 border-t border-border-sub px-1 py-2 first:border-t-0 ${T.status==="blocked"?"bg-blocked-bg":""}`,children:[d.jsx("span",{className:"w-12 font-mono text-[12px] font-medium text-primary",children:T.method}),d.jsx("span",{className:"flex-1 truncate font-mono text-[12px] text-secondary",children:T.path}),d.jsx("span",{className:"font-mono text-[12px] text-tertiary",children:T.service}),d.jsx(wn,{variant:T.status==="allowed"?"allowed":T.status==="system"?"system":"blocked"})]},T.id))]})}),d.jsxs("div",{className:"flex flex-col gap-4",children:[d.jsx(Je,{title:"Credential Health",children:d.jsx(mg,{})}),d.jsx(Je,{title:"Top Agents",children:r&&r.length>0?d.jsx("div",{className:"flex flex-col gap-2",children:r.slice(0,5).map(T=>d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"font-mono text-[13px] text-primary",children:T.name}),d.jsxs("span",{className:"text-[12px] text-tertiary",children:[T.grants.length," grant",T.grants.length!==1?"s":""]})]},T.id))}):d.jsx("p",{className:"text-[13px] text-tertiary",children:"No agents registered"})})]})]})]})}function Gu({icon:c,title:i,description:f}){return d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[d.jsx(c,{size:32,className:"mb-3 text-tertiary","aria-hidden":"true"}),d.jsx("p",{className:"text-[14px] font-medium text-secondary",children:i}),f&&d.jsx("p",{className:"mt-1 text-[13px] text-tertiary",children:f})]})}function vg({status:c,onReconnect:i}){return c==="connected"||c==="connecting"?null:d.jsxs("div",{className:"flex items-center justify-center gap-3 bg-warning-bg px-4 py-1.5 text-[13px] font-medium text-warning",role:"alert","aria-live":"polite",children:[c==="reconnecting"?"Reconnecting...":"Disconnected from live feed",c==="disconnected"&&i&&d.jsx("button",{type:"button",onClick:i,className:"rounded border border-warning/30 px-2 py-0.5 text-[12px] hover:bg-warning/10",children:"Retry"})]})}const pg=[{key:"1h",label:"1h"},{key:"24h",label:"24h"},{key:"7d",label:"7d"},{key:"all",label:"All"}];function gg(c){if(c==="all")return null;const i=Date.now(),f={"1h":3600*1e3,"24h":1440*60*1e3,"7d":10080*60*1e3};return new Date(i-f[c])}function hy(c,i){if(i==="all")return!0;const f=gg(i);return f?new Date(c)>=f:!0}function my({value:c,onChange:i}){return d.jsxs("div",{className:"flex items-center gap-1 rounded-md border border-border bg-surface-0 p-0.5",role:"group","aria-label":"Filter by time range",children:[d.jsx(Zp,{size:13,className:"ml-1.5 text-tertiary"}),pg.map(({key:f,label:r})=>d.jsx("button",{type:"button",onClick:()=>i(f),className:`rounded px-2 py-0.5 text-[12px] font-medium transition-colors ${c===f?"bg-gold/15 text-gold":"text-secondary hover:text-primary"}`,"aria-pressed":c===f,children:r},f))]})}/*! *****************************************************************************
129
+ */const up=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],ir=Ge("users",up),ip=[{view:"overview",label:"Overview",icon:$2},{view:"requests",label:"Request Feed",icon:ry},{view:"credentials",label:"Credentials",icon:nr},{view:"agents",label:"Agents",icon:ir},{view:"users",label:"Users",icon:oy},{view:"blocked",label:"Blocked",icon:ur}];function cp({currentView:c,onNavigate:i}){return d.jsxs("aside",{className:"flex flex-col border-r border-border bg-surface-0",style:{width:"var(--sidebar-width)"},role:"navigation","aria-label":"Main navigation",children:[d.jsxs("div",{className:"flex items-center gap-3 border-b border-border px-5",style:{height:"var(--header-height)"},children:[d.jsx("img",{src:w2,width:"36",height:"36",alt:"","aria-hidden":"true"}),d.jsx("span",{className:"text-[15px] font-semibold text-primary",children:"Aegis"})]}),d.jsxs("nav",{className:"flex-1 px-3 py-4",children:[d.jsx("div",{className:"mb-3 px-2 text-[11px] font-medium uppercase tracking-wider text-tertiary",children:"Navigation"}),d.jsx("ul",{className:"flex flex-col gap-1",children:ip.map(({view:f,label:r,icon:h})=>{const y=c===f;return d.jsx("li",{children:d.jsxs("button",{type:"button",onClick:()=>i(f),className:`flex w-full items-center gap-3 rounded-md px-3 py-2 text-[13px] font-medium transition-[color,background-color,border-color] duration-100 ease-in ${y?"border-l-2 border-gold bg-gold-muted text-primary":"border-l-2 border-transparent text-secondary hover:bg-surface-3 hover:text-primary"}`,"aria-current":y?"page":void 0,children:[d.jsx(h,{size:20,"aria-hidden":"true"}),r]})},f)})})]}),d.jsx("div",{className:"border-t border-border px-5 py-3",children:d.jsx("span",{className:"text-[11px] text-tertiary",children:"Aegis Dashboard"})})]})}const sp="/api";async function xn(c){const i=await fetch(`${sp}${c}`);if(!i.ok)throw new Error(`API error: ${i.status} ${i.statusText}`);return i.json()}const Un={health(){return xn("/health")},stats(c){const i=c?`?since=${encodeURIComponent(c)}`:"";return xn(`/stats${i}`)},credentials(){return xn("/credentials")},agents(){return xn("/agents")},users(){return xn("/users")},requests(c){const i=new URLSearchParams;c!=null&&c.status&&i.set("status",c.status),c!=null&&c.service&&i.set("service",c.service),c!=null&&c.limit&&i.set("limit",String(c.limit)),c!=null&&c.since&&i.set("since",c.since);const f=i.toString();return xn(`/requests${f?`?${f}`:""}`)}},qn={health:["health"],stats:{all:["stats"],since:c=>["stats",{since:c}]},credentials:{all:["credentials"]},agents:{all:["agents"]},users:{all:["users"]},requests:{all:["requests"],list:c=>["requests","list",c]}};function fp(){return Rn({queryKey:qn.health,queryFn:()=>Un.health(),refetchInterval:1e4})}const rp={overview:"Overview",requests:"Request Feed",credentials:"Credentials",agents:"Agents",users:"Users",blocked:"Blocked Requests"};function op({currentView:c}){const{data:i,isError:f}=fp(),r=i!==void 0&&!f;return d.jsxs("header",{className:"flex items-center justify-between border-b border-border bg-surface-0 px-6",style:{height:"var(--header-height)",minHeight:"var(--header-height)"},children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"text-[13px] text-tertiary",children:"Aegis"}),d.jsx("span",{className:"text-[13px] text-tertiary",children:"/"}),d.jsx("span",{className:"text-[13px] font-medium text-primary",children:rp[c]})]}),d.jsxs("div",{className:"flex items-center gap-4",children:[(i==null?void 0:i.version)&&d.jsxs("span",{className:"font-mono text-[12px] text-tertiary",children:["v",i.version]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:`inline-block h-2 w-2 rounded-full ${r?"bg-allowed":"bg-blocked"}`,"aria-hidden":"true"}),d.jsx("span",{className:`text-[13px] font-medium ${r?"text-allowed":"text-blocked"}`,"aria-label":`Connection status: ${r?"Connected":"Disconnected"}`,children:r?"Connected":"Disconnected"})]})]})]})}function Je({title:c,description:i,action:f,children:r,className:h=""}){return d.jsxs("div",{className:`rounded-md border border-border bg-surface-1 p-5 ${h}`,children:[(c||f)&&d.jsxs("div",{className:"mb-4 flex items-start justify-between",children:[d.jsxs("div",{children:[c&&d.jsx("h3",{className:"text-[15px] font-medium text-primary",children:c}),i&&d.jsx("p",{className:"mt-0.5 text-[13px] text-secondary",children:i})]}),f&&d.jsx("div",{className:"ml-4 flex-shrink-0",children:f})]}),r]})}const dp={allowed:"bg-allowed-bg text-allowed",active:"bg-allowed-bg text-allowed",blocked:"bg-blocked-bg text-blocked",expired:"bg-blocked-bg text-blocked",warning:"bg-warning-bg text-warning",expiring:"bg-warning-bg text-warning",info:"bg-info-bg text-info",system:"bg-info-bg text-info"};function wn({variant:c,label:i}){const f=i??c.toUpperCase();return d.jsx("span",{className:`inline-block rounded-sm px-2 py-0.5 text-[11px] font-medium uppercase tracking-wide ${dp[c]}`,"aria-label":`Status: ${f}`,children:f})}function hp(c){return Rn({queryKey:qn.stats.since(c),queryFn:()=>Un.stats(c),refetchInterval:15e3})}function cr(){return Rn({queryKey:qn.credentials.all,queryFn:()=>Un.credentials(),refetchInterval:3e4})}function sr(){return Rn({queryKey:qn.agents.all,queryFn:()=>Un.agents(),refetchInterval:3e4})}function fr(c){const{refetchInterval:i=5e3,...f}=c??{};return Rn({queryKey:qn.requests.list(f),queryFn:()=>Un.requests(f),refetchInterval:i})}function Wf(c){return c.toLocaleString("en-US")}function dy(c,i=!1){const f=new Date(c),r=f.toLocaleTimeString("en-US",{hour12:!1});return i?`${f.toLocaleDateString("en-US",{month:"short",day:"numeric"})}, ${r}`:r}function rr(c){const i=Date.now(),f=new Date(c).getTime(),r=i-f,h=Math.floor(r/6e4);if(h<1)return"just now";if(h<60)return`${h}m ago`;const y=Math.floor(h/60);return y<24?`${y}h ago`:`${Math.floor(y/24)}d ago`}function sc({icon:c,label:i,value:f,iconColor:r="text-secondary"}){return d.jsx(Je,{children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:`rounded-md bg-surface-2 p-2 ${r}`,children:d.jsx(c,{size:20,"aria-hidden":"true"})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-[12px] uppercase tracking-wider text-secondary",children:i}),d.jsx("p",{className:"text-[24px] font-semibold leading-8 text-primary",children:f})]})]})})}const Hm=["#4A90D9","#C8973E","#34A853","#9B6DB7","#D97B3A","#5BB5A2","#D4616E","#7B8FA1"];function mp({byService:c}){var r;const i=Object.entries(c).sort((h,y)=>y[1]-h[1]),f=((r=i[0])==null?void 0:r[1])??1;return d.jsxs("div",{className:"flex flex-col gap-2",children:[i.map(([h,y],T)=>d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("span",{className:"w-24 text-right font-mono text-[12px] text-secondary truncate",children:h}),d.jsx("div",{className:"flex-1 h-5 rounded-sm bg-surface-2 overflow-hidden",children:d.jsx("div",{className:"h-full rounded-sm transition-all duration-150",style:{width:`${y/f*100}%`,backgroundColor:Hm[T%Hm.length]}})}),d.jsx("span",{className:"w-12 text-right font-mono text-[12px] text-tertiary",children:Wf(y)})]},h)),i.length===0&&d.jsx("p",{className:"py-4 text-center text-[13px] text-tertiary",children:"No traffic yet"})]})}function yp(){const{data:c}=cr(),i=c??[],f=Date.now(),r=10080*60*1e3;let h=0,y=0,T=0;for(const N of i)if(!N.expiresAt)h++;else{const x=new Date(N.expiresAt).getTime();x<f?T++:x-f<r?y++:h++}const O=h+y+T;return O===0?d.jsx("p",{className:"text-[13px] text-tertiary",children:"No credentials stored"}):d.jsxs("div",{children:[d.jsxs("div",{className:"flex h-3 gap-0.5 overflow-hidden rounded-sm",children:[h>0&&d.jsx("div",{className:"bg-allowed",style:{width:`${h/O*100}%`}}),y>0&&d.jsx("div",{className:"bg-warning",style:{width:`${y/O*100}%`}}),T>0&&d.jsx("div",{className:"bg-blocked",style:{width:`${T/O*100}%`}})]}),d.jsxs("div",{className:"mt-2 flex gap-4 text-[12px]",children:[d.jsxs("span",{className:"text-allowed",children:[h," active"]}),y>0&&d.jsxs("span",{className:"text-warning",children:[y," expiring"]}),T>0&&d.jsxs("span",{className:"text-blocked",children:[T," expired"]})]})]})}function vp(){const{data:c,isLoading:i}=hp(),{data:f}=cr(),{data:r}=sr(),{data:h}=fr({limit:8,refetchInterval:5e3}),y=h??[];return d.jsxs("div",{className:i?"opacity-60":"",children:[d.jsxs("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(200px,1fr))] gap-4",children:[d.jsx(sc,{icon:nr,label:"Active Creds",value:(f==null?void 0:f.length)??"—",iconColor:"text-gold"}),d.jsx(sc,{icon:ir,label:"Agents",value:(r==null?void 0:r.length)??"—",iconColor:"text-info"}),d.jsx(sc,{icon:X2,label:"Total Requests",value:c?Wf(c.total):"—"}),d.jsx(sc,{icon:ur,label:"Blocked",value:c?Wf(c.blocked):"—",iconColor:"text-blocked"})]}),d.jsx(Je,{title:"Traffic by Service",className:"mt-4",children:c!=null&&c.byService?d.jsx(mp,{byService:c.byService}):d.jsx("p",{className:"py-4 text-center text-[13px] text-tertiary",children:"Loading..."})}),d.jsxs("div",{className:"mt-4 grid grid-cols-1 gap-4 lg:grid-cols-2",children:[d.jsx(Je,{title:"Recent Requests",children:d.jsxs("div",{className:"flex flex-col",children:[y.length===0&&d.jsx("p",{className:"py-4 text-center text-[13px] text-tertiary",children:"No requests yet"}),y.map(T=>d.jsxs("div",{className:`flex items-center gap-3 border-t border-border-sub px-1 py-2 first:border-t-0 ${T.status==="blocked"?"bg-blocked-bg":""}`,children:[d.jsx("span",{className:"w-12 font-mono text-[12px] font-medium text-primary",children:T.method}),d.jsx("span",{className:"flex-1 truncate font-mono text-[12px] text-secondary",children:T.path}),d.jsx("span",{className:"font-mono text-[12px] text-tertiary",children:T.service}),d.jsx(wn,{variant:T.status==="allowed"?"allowed":T.status==="system"?"system":"blocked"})]},T.id))]})}),d.jsxs("div",{className:"flex flex-col gap-4",children:[d.jsx(Je,{title:"Credential Health",children:d.jsx(yp,{})}),d.jsx(Je,{title:"Top Agents",children:r&&r.length>0?d.jsx("div",{className:"flex flex-col gap-2",children:r.slice(0,5).map(T=>d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"font-mono text-[13px] text-primary",children:T.name}),d.jsxs("span",{className:"text-[12px] text-tertiary",children:[T.grants.length," grant",T.grants.length!==1?"s":""]})]},T.id))}):d.jsx("p",{className:"text-[13px] text-tertiary",children:"No agents registered"})})]})]})]})}function Gu({icon:c,title:i,description:f}){return d.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[d.jsx(c,{size:32,className:"mb-3 text-tertiary","aria-hidden":"true"}),d.jsx("p",{className:"text-[14px] font-medium text-secondary",children:i}),f&&d.jsx("p",{className:"mt-1 text-[13px] text-tertiary",children:f})]})}function pp({status:c,onReconnect:i}){return c==="connected"||c==="connecting"?null:d.jsxs("div",{className:"flex items-center justify-center gap-3 bg-warning-bg px-4 py-1.5 text-[13px] font-medium text-warning",role:"alert","aria-live":"polite",children:[c==="reconnecting"?"Reconnecting...":"Disconnected from live feed",c==="disconnected"&&i&&d.jsx("button",{type:"button",onClick:i,className:"rounded border border-warning/30 px-2 py-0.5 text-[12px] hover:bg-warning/10",children:"Retry"})]})}const gp=[{key:"1h",label:"1h"},{key:"24h",label:"24h"},{key:"7d",label:"7d"},{key:"all",label:"All"}];function bp(c){if(c==="all")return null;const i=Date.now(),f={"1h":3600*1e3,"24h":1440*60*1e3,"7d":10080*60*1e3};return new Date(i-f[c])}function hy(c,i){if(i==="all")return!0;const f=bp(i);return f?new Date(c)>=f:!0}function my({value:c,onChange:i}){return d.jsxs("div",{className:"flex items-center gap-1 rounded-md border border-border bg-surface-0 p-0.5",role:"group","aria-label":"Filter by time range",children:[d.jsx(V2,{size:13,className:"ml-1.5 text-tertiary"}),gp.map(({key:f,label:r})=>d.jsx("button",{type:"button",onClick:()=>i(f),className:`rounded px-2 py-0.5 text-[12px] font-medium transition-colors ${c===f?"bg-gold/15 text-gold":"text-secondary hover:text-primary"}`,"aria-pressed":c===f,children:r},f))]})}/*! *****************************************************************************
130
130
  Copyright (c) Microsoft Corporation. All rights reserved.
131
131
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
132
132
  this file except in compliance with the License. You may obtain a copy of the
@@ -139,10 +139,10 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
139
139
 
140
140
  See the Apache Version 2.0 License for specific language governing permissions
141
141
  and limitations under the License.
142
- ***************************************************************************** */var $f=function(c,i){return $f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,r){f.__proto__=r}||function(f,r){for(var h in r)r.hasOwnProperty(h)&&(f[h]=r[h])},$f(c,i)};function yy(c,i){$f(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}function bg(c){var i=typeof Symbol=="function"&&c[Symbol.iterator],f=0;return i?i.call(c):{next:function(){return c&&f>=c.length&&(c=void 0),{value:c&&c[f++],done:!c}}}}function xg(c,i){var f=typeof Symbol=="function"&&c[Symbol.iterator];if(!f)return c;var r=f.call(c),h,y=[],T;try{for(;(i===void 0||i-- >0)&&!(h=r.next()).done;)y.push(h.value)}catch(j){T={error:j}}finally{try{h&&!h.done&&(f=r.return)&&f.call(r)}finally{if(T)throw T.error}}return y}function Sg(){for(var c=[],i=0;i<arguments.length;i++)c=c.concat(xg(arguments[i]));return c}var vy=(function(){function c(i,f){this.target=f,this.type=i}return c})(),_g=(function(c){yy(i,c);function i(f,r){var h=c.call(this,"error",r)||this;return h.message=f.message,h.error=f,h}return i})(vy),Eg=(function(c){yy(i,c);function i(f,r,h){f===void 0&&(f=1e3),r===void 0&&(r="");var y=c.call(this,"close",h)||this;return y.wasClean=!0,y.code=f,y.reason=r,y}return i})(vy);/*!
142
+ ***************************************************************************** */var $f=function(c,i){return $f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,r){f.__proto__=r}||function(f,r){for(var h in r)r.hasOwnProperty(h)&&(f[h]=r[h])},$f(c,i)};function yy(c,i){$f(c,i);function f(){this.constructor=c}c.prototype=i===null?Object.create(i):(f.prototype=i.prototype,new f)}function xp(c){var i=typeof Symbol=="function"&&c[Symbol.iterator],f=0;return i?i.call(c):{next:function(){return c&&f>=c.length&&(c=void 0),{value:c&&c[f++],done:!c}}}}function Sp(c,i){var f=typeof Symbol=="function"&&c[Symbol.iterator];if(!f)return c;var r=f.call(c),h,y=[],T;try{for(;(i===void 0||i-- >0)&&!(h=r.next()).done;)y.push(h.value)}catch(O){T={error:O}}finally{try{h&&!h.done&&(f=r.return)&&f.call(r)}finally{if(T)throw T.error}}return y}function _p(){for(var c=[],i=0;i<arguments.length;i++)c=c.concat(Sp(arguments[i]));return c}var vy=(function(){function c(i,f){this.target=f,this.type=i}return c})(),Ep=(function(c){yy(i,c);function i(f,r){var h=c.call(this,"error",r)||this;return h.message=f.message,h.error=f,h}return i})(vy),Tp=(function(c){yy(i,c);function i(f,r,h){f===void 0&&(f=1e3),r===void 0&&(r="");var y=c.call(this,"close",h)||this;return y.wasClean=!0,y.code=f,y.reason=r,y}return i})(vy);/*!
143
143
  * Reconnecting WebSocket
144
144
  * by Pedro Ladaria <pedro.ladaria@gmail.com>
145
145
  * https://github.com/pladaria/reconnecting-websocket
146
146
  * License MIT
147
- */var Tg=function(){if(typeof WebSocket<"u")return WebSocket},Ng=function(c){return typeof c<"u"&&!!c&&c.CLOSING===2},Ea={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Ag=(function(){function c(i,f,r){var h=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(y){h._debug("open event");var T=h._options.minUptime,j=T===void 0?Ea.minUptime:T;clearTimeout(h._connectTimeout),h._uptimeTimeout=setTimeout(function(){return h._acceptOpen()},j),h._ws.binaryType=h._binaryType,h._messageQueue.forEach(function(A){return h._ws.send(A)}),h._messageQueue=[],h.onopen&&h.onopen(y),h._listeners.open.forEach(function(A){return h._callEventListener(y,A)})},this._handleMessage=function(y){h._debug("message event"),h.onmessage&&h.onmessage(y),h._listeners.message.forEach(function(T){return h._callEventListener(y,T)})},this._handleError=function(y){h._debug("error event",y.message),h._disconnect(void 0,y.message==="TIMEOUT"?"timeout":void 0),h.onerror&&h.onerror(y),h._debug("exec error listeners"),h._listeners.error.forEach(function(T){return h._callEventListener(y,T)}),h._connect()},this._handleClose=function(y){h._debug("close event"),h._clearTimeouts(),h._shouldReconnect&&h._connect(),h.onclose&&h.onclose(y),h._listeners.close.forEach(function(T){return h._callEventListener(y,T)})},this._url=i,this._protocols=f,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(c,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(c,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(c,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(c,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"CONNECTING",{get:function(){return c.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"OPEN",{get:function(){return c.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"CLOSING",{get:function(){return c.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"CLOSED",{get:function(){return c.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(i){this._binaryType=i,this._ws&&(this._ws.binaryType=i)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"bufferedAmount",{get:function(){var i=this._messageQueue.reduce(function(f,r){return typeof r=="string"?f+=r.length:r instanceof Blob?f+=r.size:f+=r.byteLength,f},0);return i+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?c.CLOSED:c.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),c.prototype.close=function(i,f){if(i===void 0&&(i=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(i,f)},c.prototype.reconnect=function(i,f){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(i,f),this._connect())},c.prototype.send=function(i){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",i),this._ws.send(i);else{var f=this._options.maxEnqueuedMessages,r=f===void 0?Ea.maxEnqueuedMessages:f;this._messageQueue.length<r&&(this._debug("enqueue",i),this._messageQueue.push(i))}},c.prototype.addEventListener=function(i,f){this._listeners[i]&&this._listeners[i].push(f)},c.prototype.dispatchEvent=function(i){var f,r,h=this._listeners[i.type];if(h)try{for(var y=bg(h),T=y.next();!T.done;T=y.next()){var j=T.value;this._callEventListener(i,j)}}catch(A){f={error:A}}finally{try{T&&!T.done&&(r=y.return)&&r.call(y)}finally{if(f)throw f.error}}return!0},c.prototype.removeEventListener=function(i,f){this._listeners[i]&&(this._listeners[i]=this._listeners[i].filter(function(r){return r!==f}))},c.prototype._debug=function(){for(var i=[],f=0;f<arguments.length;f++)i[f]=arguments[f];this._options.debug&&console.log.apply(console,Sg(["RWS>"],i))},c.prototype._getNextDelay=function(){var i=this._options,f=i.reconnectionDelayGrowFactor,r=f===void 0?Ea.reconnectionDelayGrowFactor:f,h=i.minReconnectionDelay,y=h===void 0?Ea.minReconnectionDelay:h,T=i.maxReconnectionDelay,j=T===void 0?Ea.maxReconnectionDelay:T,A=0;return this._retryCount>0&&(A=y*Math.pow(r,this._retryCount-1),A>j&&(A=j)),this._debug("next delay",A),A},c.prototype._wait=function(){var i=this;return new Promise(function(f){setTimeout(f,i._getNextDelay())})},c.prototype._getNextUrl=function(i){if(typeof i=="string")return Promise.resolve(i);if(typeof i=="function"){var f=i();if(typeof f=="string")return Promise.resolve(f);if(f.then)return f}throw Error("Invalid URL")},c.prototype._connect=function(){var i=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var f=this._options,r=f.maxRetries,h=r===void 0?Ea.maxRetries:r,y=f.connectionTimeout,T=y===void 0?Ea.connectionTimeout:y,j=f.WebSocket,A=j===void 0?Tg():j;if(this._retryCount>=h){this._debug("max retries reached",this._retryCount,">=",h);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!Ng(A))throw Error("No valid WebSocket class provided");this._wait().then(function(){return i._getNextUrl(i._url)}).then(function(x){i._closeCalled||(i._debug("connect",{url:x,protocols:i._protocols}),i._ws=i._protocols?new A(x,i._protocols):new A(x),i._ws.binaryType=i._binaryType,i._connectLock=!1,i._addListeners(),i._connectTimeout=setTimeout(function(){return i._handleTimeout()},T))})}},c.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new _g(Error("TIMEOUT"),this))},c.prototype._disconnect=function(i,f){if(i===void 0&&(i=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(i,f),this._handleClose(new Eg(i,f,this))}catch{}}},c.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},c.prototype._callEventListener=function(i,f){"handleEvent"in f?f.handleEvent(i):f(i)},c.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},c.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},c.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},c})();const jg=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;function Og(c={}){const{onMessage:i,enabled:f=!0}=c,[r,h]=ft.useState("connecting"),y=ft.useRef(null),T=ft.useRef(i);T.current=i,ft.useEffect(()=>{if(!f){h("disconnected");return}const A=new Ag(jg,[],{maxReconnectionDelay:15e3,minReconnectionDelay:1e3,reconnectionDelayGrowFactor:2,maxRetries:10});y.current=A;let x=!1;return A.addEventListener("open",()=>{x=!0,h("connected")}),A.addEventListener("close",()=>{A.readyState===WebSocket.CLOSED?h("disconnected"):h("reconnecting")}),A.addEventListener("message",H=>{var R;try{const X=JSON.parse(H.data);(R=T.current)==null||R.call(T,X)}catch{}}),()=>{A.close(),y.current=null,h("disconnected")}},[f]);const j=ft.useCallback(()=>{var A;(A=y.current)==null||A.reconnect()},[]);return{status:r,reconnect:j}}const zg={status:"",service:"",method:"",pathSearch:"",timeRange:"all"};function Dg(c,i){return!(!hy(c.timestamp,i.timeRange)||i.status&&c.status!==i.status||i.service&&c.service!==i.service||i.method&&c.method!==i.method||i.pathSearch&&!c.path.toLowerCase().includes(i.pathSearch.toLowerCase()))}function Cg({entry:c}){return d.jsx("div",{className:"border-t border-border-sub bg-surface-2 px-4 py-3 text-[12px]",children:d.jsxs("div",{className:"grid grid-cols-2 gap-x-6 gap-y-1",children:[d.jsxs("div",{children:[d.jsx("span",{className:"text-tertiary",children:"Target Domain: "}),d.jsx("span",{className:"font-mono text-primary",children:c.targetDomain})]}),d.jsxs("div",{children:[d.jsx("span",{className:"text-tertiary",children:"Response: "}),d.jsx("span",{className:"font-mono text-primary",children:c.responseCode??"—"})]}),c.credentialName&&d.jsxs("div",{children:[d.jsx("span",{className:"text-tertiary",children:"Credential: "}),d.jsx("span",{className:"font-mono text-primary",children:c.credentialName})]}),c.agentName&&d.jsxs("div",{children:[d.jsx("span",{className:"text-tertiary",children:"Agent: "}),d.jsx("span",{className:"font-mono text-primary",children:c.agentName}),c.agentTokenPrefix&&d.jsxs("span",{className:"ml-1 text-tertiary",children:["(",c.agentTokenPrefix,"...)"]})]}),c.channel==="mcp"&&d.jsxs("div",{children:[d.jsx("span",{className:"text-tertiary",children:"Channel: "}),d.jsx("span",{className:"font-mono text-gold",children:"MCP"})]}),c.blockedReason&&d.jsxs("div",{className:"col-span-2",children:[d.jsx("span",{className:"text-tertiary",children:"Block Reason: "}),d.jsx("span",{className:"font-mono text-blocked",children:c.blockedReason})]})]})})}function Mg(){const[c,i]=ft.useState([]),[f,r]=ft.useState(zg),[h,y]=ft.useState(!1),[T,j]=ft.useState(null),A=ft.useRef(null),{data:x}=fr({limit:200,refetchInterval:3e3});ft.useEffect(()=>{x&&x.length>0&&i(U=>{const $=new Set(U.map(Q=>Q.id)),K=x.filter(Q=>!$.has(Q.id));return K.length===0?U:[...K,...U].sort((Q,pt)=>new Date(pt.timestamp).getTime()-new Date(Q.timestamp).getTime()).slice(0,500)})},[x]);const H=ft.useCallback(U=>{i($=>$.some(K=>K.id===U.id)?$:[U,...$].slice(0,500))},[]),{status:R,reconnect:X}=Og({onMessage:H,enabled:!0});ft.useEffect(()=>{!h&&A.current&&(A.current.scrollTop=0)},[c.length,h]);const V=ft.useCallback(()=>{A.current&&A.current.scrollTop>50&&y(!0)},[]),at=c.filter(U=>Dg(U,f)),F=[...new Set(c.map(U=>U.service))].sort(),I=[...new Set(c.map(U=>U.method))].sort();return d.jsxs("div",{className:"flex flex-col gap-4",children:[d.jsx(vg,{status:R,onReconnect:X}),d.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[d.jsx(my,{value:f.timeRange,onChange:U=>r($=>({...$,timeRange:U}))}),d.jsxs("select",{className:"appearance-none rounded-md border border-border bg-surface-0 bg-[url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239ca3af%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E')] bg-[length:12px] bg-[right_8px_center] bg-no-repeat pl-3 pr-8 py-1.5 text-[13px] text-primary focus:border-gold focus:outline-none",value:f.status,onChange:U=>r($=>({...$,status:U.target.value})),"aria-label":"Filter by status",children:[d.jsx("option",{value:"",children:"All Status"}),d.jsx("option",{value:"allowed",children:"Allowed"}),d.jsx("option",{value:"blocked",children:"Blocked"})]}),d.jsxs("select",{className:"appearance-none rounded-md border border-border bg-surface-0 bg-[url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239ca3af%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E')] bg-[length:12px] bg-[right_8px_center] bg-no-repeat pl-3 pr-8 py-1.5 text-[13px] text-primary focus:border-gold focus:outline-none",value:f.service,onChange:U=>r($=>({...$,service:U.target.value})),"aria-label":"Filter by service",children:[d.jsx("option",{value:"",children:"All Services"}),F.map(U=>d.jsx("option",{value:U,children:U},U))]}),d.jsxs("select",{className:"appearance-none rounded-md border border-border bg-surface-0 bg-[url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239ca3af%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E')] bg-[length:12px] bg-[right_8px_center] bg-no-repeat pl-3 pr-8 py-1.5 text-[13px] text-primary focus:border-gold focus:outline-none",value:f.method,onChange:U=>r($=>({...$,method:U.target.value})),"aria-label":"Filter by method",children:[d.jsx("option",{value:"",children:"All Methods"}),I.map(U=>d.jsx("option",{value:U,children:U},U))]}),d.jsx("input",{type:"text",placeholder:"Search path...",className:"rounded-md border border-border bg-surface-0 px-3 py-1.5 font-mono text-[13px] text-primary placeholder:text-tertiary focus:border-gold focus:outline-none",value:f.pathSearch,onChange:U=>r($=>({...$,pathSearch:U.target.value})),"aria-label":"Search by path"}),d.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[h&&d.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wider text-warning",children:"Paused"}),d.jsxs("button",{type:"button",onClick:()=>y(U=>!U),className:"flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-[13px] font-medium text-primary hover:bg-surface-3","aria-label":h?"Resume auto-scroll":"Pause auto-scroll",children:[h?d.jsx(tg,{size:14}):d.jsx(Ip,{size:14}),h?"Resume":"Pause"]})]})]}),d.jsx(Je,{children:d.jsx("div",{ref:A,className:"max-h-[calc(100vh-240px)] overflow-y-auto",onScroll:V,"aria-live":"polite","aria-label":"Request feed",children:at.length===0?d.jsx(Gu,{icon:ry,title:"No requests",description:"Requests will appear here in real-time"}):d.jsxs("table",{className:"w-full table-fixed","aria-label":"Request feed table",children:[d.jsx("thead",{className:"sticky top-0 z-10",children:d.jsxs("tr",{className:"bg-surface-2",children:[d.jsx("th",{className:"w-[100px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Time"}),d.jsx("th",{className:"w-[80px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Method"}),d.jsx("th",{className:"px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Path"}),d.jsx("th",{className:"w-[110px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Service"}),d.jsx("th",{className:"w-[60px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Source"}),d.jsx("th",{className:"w-[90px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Status"})]})}),d.jsx("tbody",{children:at.map((U,$)=>d.jsxs($m.Fragment,{children:[d.jsxs("tr",{className:`cursor-pointer border-t border-border-sub transition-colors duration-100 ${U.status==="blocked"?"bg-blocked-bg hover:bg-surface-3":$%2===0?"bg-surface-1 hover:bg-surface-3":"bg-surface-0 hover:bg-surface-3"}`,onClick:()=>j(T===U.id?null:U.id),onKeyDown:K=>{(K.key==="Enter"||K.key===" ")&&(K.preventDefault(),j(T===U.id?null:U.id))},tabIndex:0,role:"button","aria-expanded":T===U.id,children:[d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-tertiary",children:dy(U.timestamp)}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] font-medium text-primary",children:U.method}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-secondary",title:U.path,children:U.path}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-secondary",title:U.service,children:U.service}),d.jsx("td",{className:"px-3 py-2 text-[11px] uppercase tracking-wider text-tertiary",children:U.channel==="mcp"?d.jsx("span",{className:"rounded bg-surface-3 px-1.5 py-0.5 text-[10px] font-medium text-gold",children:"MCP"}):d.jsx("span",{className:"text-tertiary",children:"gate"})}),d.jsx("td",{className:"px-3 py-2",children:d.jsx(wn,{variant:U.status==="allowed"?"allowed":U.status==="system"?"system":"blocked"})})]}),T===U.id&&d.jsx("tr",{children:d.jsx("td",{colSpan:6,className:"p-0",children:d.jsx(Cg,{entry:U})})})]},U.id))})]})})})]})}function Bm(c){if(!c.expiresAt)return"active";const i=new Date(c.expiresAt).getTime(),f=Date.now();return i<f?"expired":i-f<10080*60*1e3?"expiring":"active"}function Rg(c){if(!c.expiresAt)return null;const i=new Date(c.expiresAt).getTime(),f=Date.now();if(i<f)return"Expired";const r=Math.ceil((i-f)/(1440*60*1e3));return r<=1?"Expires today":`Expires in ${r}d`}function Ug(){const{data:c,isLoading:i}=cr(),{data:f}=sr(),r=c??[],h=new Map;if(f)for(const j of f)for(const A of j.grants)h.set(A,(h.get(A)??0)+1);const y={active:0,expiring:0,expired:0};for(const j of r)y[Bm(j)]++;const T=r.length;return d.jsxs("div",{className:i?"opacity-60":"",children:[T>0&&d.jsxs(Je,{className:"mb-4",children:[d.jsxs("div",{className:"flex h-3 gap-0.5 overflow-hidden rounded-sm",children:[y.active>0&&d.jsx("div",{className:"bg-allowed",style:{width:`${y.active/T*100}%`}}),y.expiring>0&&d.jsx("div",{className:"bg-warning",style:{width:`${y.expiring/T*100}%`}}),y.expired>0&&d.jsx("div",{className:"bg-blocked",style:{width:`${y.expired/T*100}%`}})]}),d.jsxs("div",{className:"mt-2 flex gap-4 text-[12px]",children:[d.jsxs("span",{className:"text-allowed",children:[y.active," active"]}),y.expiring>0&&d.jsxs("span",{className:"text-warning",children:[y.expiring," expiring"]}),y.expired>0&&d.jsxs("span",{className:"text-blocked",children:[y.expired," expired"]})]})]}),r.length===0?d.jsx(Gu,{icon:nr,title:"No credentials stored",description:"Add credentials via the CLI to see them here"}):d.jsx("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(320px,1fr))] gap-4",children:r.map(j=>{const A=Bm(j),x=Rg(j),H=h.get(j.id)??0;return d.jsxs(Je,{children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{children:[d.jsx("h4",{className:"font-mono text-[14px] font-medium text-primary",children:j.name}),d.jsx("p",{className:"mt-0.5 text-[12px] text-secondary",children:j.service})]}),d.jsx(wn,{variant:A})]}),d.jsxs("div",{className:"mt-3 flex flex-col gap-1.5 text-[12px]",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Jp,{size:14,className:"text-tertiary","aria-hidden":"true"}),d.jsx("span",{className:"font-mono text-secondary",children:j.domains.length>0?j.domains.join(", "):"No domains"})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("span",{className:"text-tertiary",children:[j.authType," · ",H," agent",H!==1?"s":""]}),x&&d.jsx("span",{className:A==="expired"?"text-blocked":A==="expiring"?"text-warning":"text-tertiary",children:x})]}),d.jsxs("div",{className:"text-tertiary",children:["Created ",rr(j.createdAt)]})]})]},j.id)})})]})}function qg({agent:c}){return d.jsxs("div",{className:"border-t border-border-sub bg-surface-2 px-4 py-3 text-[12px]",children:[d.jsx("div",{className:"mb-2 text-[11px] font-medium uppercase tracking-wider text-secondary",children:"Granted Credentials"}),c.grants.length>0?d.jsx("div",{className:"flex flex-wrap gap-2",children:c.grants.map(i=>d.jsx("span",{className:"rounded-sm bg-surface-3 px-2 py-0.5 font-mono text-[12px] text-primary",children:i},i))}):d.jsx("span",{className:"text-tertiary",children:"No credential grants"}),c.rateLimit&&d.jsxs("div",{className:"mt-2",children:[d.jsx("span",{className:"text-tertiary",children:"Rate Limit: "}),d.jsx("span",{className:"font-mono text-primary",children:c.rateLimit})]})]})}function wg(){const{data:c,isLoading:i}=sr(),[f,r]=ft.useState(null),h=c??[];return!i&&h.length===0?d.jsx(Gu,{icon:ir,title:"No agents registered",description:"Register agents via the CLI to see them here"}):d.jsx(Je,{className:i?"opacity-60":"",children:d.jsx("div",{className:"overflow-x-auto",children:d.jsxs("table",{className:"w-full table-fixed border-collapse","aria-label":"Registered agents",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"bg-surface-2",children:[d.jsx("th",{className:"w-[180px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Agent"}),d.jsx("th",{className:"w-[140px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Token Prefix"}),d.jsx("th",{className:"w-[90px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Status"}),d.jsx("th",{className:"w-[80px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Grants"}),d.jsx("th",{className:"px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Created"})]})}),d.jsx("tbody",{children:h.map((y,T)=>d.jsxs($m.Fragment,{children:[d.jsxs("tr",{className:`cursor-pointer border-t border-border-sub transition-colors duration-100 ${T%2===0?"bg-surface-1 hover:bg-surface-3":"bg-surface-0 hover:bg-surface-3"}`,onClick:()=>r(f===y.id?null:y.id),onKeyDown:j=>{(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),r(f===y.id?null:y.id))},tabIndex:0,role:"button","aria-expanded":f===y.id,children:[d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[13px] font-medium text-primary",title:y.name,children:y.name}),d.jsxs("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-tertiary",children:[y.tokenPrefix,"..."]}),d.jsx("td",{className:"px-3 py-2",children:d.jsx(wn,{variant:"active"})}),d.jsx("td",{className:"px-3 py-2 text-[13px] text-secondary",children:y.grants.length}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 text-[12px] text-tertiary",children:rr(y.createdAt)})]}),f===y.id&&d.jsx("tr",{children:d.jsx("td",{colSpan:5,className:"p-0",children:d.jsx(qg,{agent:y})})})]},y.id))})]})})})}const Hg={no_credential:"No Credential",credential_expired:"Expired",credential_scope:"Scope Denied",agent_auth_missing:"No Auth",agent_auth_invalid:"Auth Failed",agent_scope:"No Grant",policy_violation:"Policy",policy_rate_limit:"Policy Rate Limit",agent_rate_limit:"Agent Rate Limit",credential_rate_limit:"Rate Limit",domain_guard:"Domain Guard",body_inspection:"Body Scan",body_too_large:"Body Too Large",agent_connection_limit:"Connection Limit"};function Bg({reason:c}){const i=Hg[c]??c;return d.jsx(wn,{variant:"warning",label:i})}function py(c,i,f){const r=new Blob([c],{type:f}),h=URL.createObjectURL(r),y=document.createElement("a");y.href=h,y.download=i,y.click(),URL.revokeObjectURL(h)}function Qg(c){const i=["timestamp","agent","service","method","path","block_reason","target_domain"],f=c.map(r=>[r.timestamp,r.agentName??"",r.service,r.method,r.path,r.blockedReason??"",r.targetDomain].join(","));py([i.join(","),...f].join(`
148
- `),"aegis-blocked.csv","text/csv")}function Lg(c){py(JSON.stringify(c,null,2),"aegis-blocked.json","application/json")}function Gg(){const{data:c,isLoading:i}=fr({status:"blocked",limit:200,refetchInterval:1e4}),[f,r]=ft.useState(""),[h,y]=ft.useState("all"),T=c??[],j=T.filter(x=>hy(x.timestamp,h)).filter(x=>!f||x.service===f),A=[...new Set(T.map(x=>x.service))].sort();return d.jsxs("div",{className:"flex flex-col gap-4",children:[d.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[d.jsx(my,{value:h,onChange:y}),d.jsxs("select",{className:"appearance-none rounded-md border border-border bg-surface-0 bg-[url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239ca3af%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E')] bg-[length:12px] bg-[right_8px_center] bg-no-repeat pl-3 pr-8 py-1.5 text-[13px] text-primary focus:border-gold focus:outline-none",value:f,onChange:x=>r(x.target.value),"aria-label":"Filter by service",children:[d.jsx("option",{value:"",children:"All Services"}),A.map(x=>d.jsx("option",{value:x,children:x},x))]}),d.jsxs("span",{className:"text-[13px] text-secondary",children:[j.length," blocked request",j.length!==1?"s":""]}),d.jsxs("div",{className:"ml-auto flex gap-2",children:[d.jsxs("button",{type:"button",onClick:()=>Qg(j),disabled:j.length===0,className:"flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-[13px] font-medium text-primary hover:bg-surface-3 disabled:text-disabled disabled:hover:bg-transparent","aria-label":"Export as CSV",children:[d.jsx(wm,{size:14,"aria-hidden":"true"}),"CSV"]}),d.jsxs("button",{type:"button",onClick:()=>Lg(j),disabled:j.length===0,className:"flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-[13px] font-medium text-primary hover:bg-surface-3 disabled:text-disabled disabled:hover:bg-transparent","aria-label":"Export as JSON",children:[d.jsx(wm,{size:14,"aria-hidden":"true"}),"JSON"]})]})]}),d.jsx(Je,{className:i?"opacity-60":"",children:j.length===0?d.jsx(Gu,{icon:ur,title:"No blocked requests",description:"Blocked requests will appear here when Gate denies a request"}):d.jsx("div",{className:"overflow-x-auto",children:d.jsxs("table",{className:"w-full table-fixed border-collapse","aria-label":"Blocked requests",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"bg-surface-2",children:[d.jsx("th",{className:"w-[140px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Time"}),d.jsx("th",{className:"w-[100px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Agent"}),d.jsx("th",{className:"w-[100px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Service"}),d.jsx("th",{className:"w-[80px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Method"}),d.jsx("th",{className:"px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Path"}),d.jsx("th",{className:"w-[160px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Reason"})]})}),d.jsx("tbody",{children:j.map((x,H)=>d.jsxs("tr",{className:`border-t border-border-sub transition-colors duration-100 ${H%2===0?"bg-blocked-bg hover:bg-surface-3":"bg-surface-0 hover:bg-surface-3"}`,children:[d.jsx("td",{className:"overflow-hidden truncate whitespace-nowrap px-3 py-2 font-mono text-[12px] text-tertiary",children:dy(x.timestamp,!0)}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-secondary",children:x.agentName??"—"}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-secondary",title:x.service,children:x.service}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] font-medium text-primary",children:x.method}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-secondary",title:x.path,children:x.path}),d.jsx("td",{className:"px-3 py-2",children:x.blockedReason?d.jsx(Bg,{reason:x.blockedReason}):d.jsx("span",{className:"text-[12px] text-tertiary",children:"—"})})]},x.id))})]})})})]})}function Yg(){return Rn({queryKey:qn.users.all,queryFn:()=>Un.users(),refetchInterval:3e4})}const Qm={admin:{variant:"warning",label:"ADMIN"},operator:{variant:"info",label:"OPERATOR"},viewer:{variant:"allowed",label:"VIEWER"}};function Xg(){const{data:c,isLoading:i}=Yg(),f=c??[];return!i&&f.length===0?d.jsx(Gu,{icon:oy,title:"No users registered",description:"RBAC is in bootstrap mode — add a user via the CLI to enable access control"}):d.jsx(Je,{className:i?"opacity-60":"",children:d.jsx("div",{className:"overflow-x-auto",children:d.jsxs("table",{className:"w-full table-fixed border-collapse","aria-label":"RBAC users",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"bg-surface-2",children:[d.jsx("th",{className:"w-[180px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Name"}),d.jsx("th",{className:"w-[120px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Role"}),d.jsx("th",{className:"w-[160px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Token Prefix"}),d.jsx("th",{className:"px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Created"})]})}),d.jsx("tbody",{children:f.map((r,h)=>d.jsxs("tr",{className:`border-t border-border-sub transition-colors duration-100 ${h%2===0?"bg-surface-1 hover:bg-surface-3":"bg-surface-0 hover:bg-surface-3"}`,children:[d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[13px] font-medium text-primary",title:r.name,children:r.name}),d.jsx("td",{className:"px-3 py-2",children:d.jsx(wn,{variant:Qm[r.role].variant,label:Qm[r.role].label})}),d.jsxs("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-tertiary",children:[r.tokenPrefix,"..."]}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 text-[12px] text-tertiary",children:rr(r.createdAt)})]},r.id))})]})})})}function Zg(){const[c,i]=ft.useState("overview");function f(){switch(c){case"overview":return d.jsx(yg,{});case"requests":return d.jsx(Mg,{});case"credentials":return d.jsx(Ug,{});case"agents":return d.jsx(wg,{});case"users":return d.jsx(Xg,{});case"blocked":return d.jsx(Gg,{})}}return d.jsxs("div",{className:"flex h-screen bg-surface-0 text-primary",children:[d.jsx(ig,{currentView:c,onNavigate:i}),d.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[d.jsx(rg,{currentView:c}),d.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:d.jsx("div",{className:"mx-auto",style:{maxWidth:"var(--content-max-width)"},children:f()})})]})]})}const Lm=document.getElementById("root");Lm&&$v.createRoot(Lm).render(d.jsx(ft.StrictMode,{children:d.jsx(Ep,{client:qp,children:d.jsx(Zg,{})})}));
147
+ */var Ap=function(){if(typeof WebSocket<"u")return WebSocket},Np=function(c){return typeof c<"u"&&!!c&&c.CLOSING===2},Ea={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Op=(function(){function c(i,f,r){var h=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(y){h._debug("open event");var T=h._options.minUptime,O=T===void 0?Ea.minUptime:T;clearTimeout(h._connectTimeout),h._uptimeTimeout=setTimeout(function(){return h._acceptOpen()},O),h._ws.binaryType=h._binaryType,h._messageQueue.forEach(function(N){return h._ws.send(N)}),h._messageQueue=[],h.onopen&&h.onopen(y),h._listeners.open.forEach(function(N){return h._callEventListener(y,N)})},this._handleMessage=function(y){h._debug("message event"),h.onmessage&&h.onmessage(y),h._listeners.message.forEach(function(T){return h._callEventListener(y,T)})},this._handleError=function(y){h._debug("error event",y.message),h._disconnect(void 0,y.message==="TIMEOUT"?"timeout":void 0),h.onerror&&h.onerror(y),h._debug("exec error listeners"),h._listeners.error.forEach(function(T){return h._callEventListener(y,T)}),h._connect()},this._handleClose=function(y){h._debug("close event"),h._clearTimeouts(),h._shouldReconnect&&h._connect(),h.onclose&&h.onclose(y),h._listeners.close.forEach(function(T){return h._callEventListener(y,T)})},this._url=i,this._protocols=f,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(c,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(c,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(c,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(c,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"CONNECTING",{get:function(){return c.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"OPEN",{get:function(){return c.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"CLOSING",{get:function(){return c.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"CLOSED",{get:function(){return c.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(i){this._binaryType=i,this._ws&&(this._ws.binaryType=i)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"bufferedAmount",{get:function(){var i=this._messageQueue.reduce(function(f,r){return typeof r=="string"?f+=r.length:r instanceof Blob?f+=r.size:f+=r.byteLength,f},0);return i+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?c.CLOSED:c.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),c.prototype.close=function(i,f){if(i===void 0&&(i=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(i,f)},c.prototype.reconnect=function(i,f){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(i,f),this._connect())},c.prototype.send=function(i){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",i),this._ws.send(i);else{var f=this._options.maxEnqueuedMessages,r=f===void 0?Ea.maxEnqueuedMessages:f;this._messageQueue.length<r&&(this._debug("enqueue",i),this._messageQueue.push(i))}},c.prototype.addEventListener=function(i,f){this._listeners[i]&&this._listeners[i].push(f)},c.prototype.dispatchEvent=function(i){var f,r,h=this._listeners[i.type];if(h)try{for(var y=xp(h),T=y.next();!T.done;T=y.next()){var O=T.value;this._callEventListener(i,O)}}catch(N){f={error:N}}finally{try{T&&!T.done&&(r=y.return)&&r.call(y)}finally{if(f)throw f.error}}return!0},c.prototype.removeEventListener=function(i,f){this._listeners[i]&&(this._listeners[i]=this._listeners[i].filter(function(r){return r!==f}))},c.prototype._debug=function(){for(var i=[],f=0;f<arguments.length;f++)i[f]=arguments[f];this._options.debug&&console.log.apply(console,_p(["RWS>"],i))},c.prototype._getNextDelay=function(){var i=this._options,f=i.reconnectionDelayGrowFactor,r=f===void 0?Ea.reconnectionDelayGrowFactor:f,h=i.minReconnectionDelay,y=h===void 0?Ea.minReconnectionDelay:h,T=i.maxReconnectionDelay,O=T===void 0?Ea.maxReconnectionDelay:T,N=0;return this._retryCount>0&&(N=y*Math.pow(r,this._retryCount-1),N>O&&(N=O)),this._debug("next delay",N),N},c.prototype._wait=function(){var i=this;return new Promise(function(f){setTimeout(f,i._getNextDelay())})},c.prototype._getNextUrl=function(i){if(typeof i=="string")return Promise.resolve(i);if(typeof i=="function"){var f=i();if(typeof f=="string")return Promise.resolve(f);if(f.then)return f}throw Error("Invalid URL")},c.prototype._connect=function(){var i=this;if(!(this._connectLock||!this._shouldReconnect)){this._connectLock=!0;var f=this._options,r=f.maxRetries,h=r===void 0?Ea.maxRetries:r,y=f.connectionTimeout,T=y===void 0?Ea.connectionTimeout:y,O=f.WebSocket,N=O===void 0?Ap():O;if(this._retryCount>=h){this._debug("max retries reached",this._retryCount,">=",h);return}if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!Np(N))throw Error("No valid WebSocket class provided");this._wait().then(function(){return i._getNextUrl(i._url)}).then(function(x){i._closeCalled||(i._debug("connect",{url:x,protocols:i._protocols}),i._ws=i._protocols?new N(x,i._protocols):new N(x),i._ws.binaryType=i._binaryType,i._connectLock=!1,i._addListeners(),i._connectTimeout=setTimeout(function(){return i._handleTimeout()},T))})}},c.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new Ep(Error("TIMEOUT"),this))},c.prototype._disconnect=function(i,f){if(i===void 0&&(i=1e3),this._clearTimeouts(),!!this._ws){this._removeListeners();try{this._ws.close(i,f),this._handleClose(new Tp(i,f,this))}catch{}}},c.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},c.prototype._callEventListener=function(i,f){"handleEvent"in f?f.handleEvent(i):f(i)},c.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},c.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},c.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},c})();const jp=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;function zp(c={}){const{onMessage:i,enabled:f=!0}=c,[r,h]=ft.useState("connecting"),y=ft.useRef(null),T=ft.useRef(i);T.current=i,ft.useEffect(()=>{if(!f){h("disconnected");return}const N=new Op(jp,[],{maxReconnectionDelay:15e3,minReconnectionDelay:1e3,reconnectionDelayGrowFactor:2,maxRetries:10});y.current=N;let x=!1;return N.addEventListener("open",()=>{x=!0,h("connected")}),N.addEventListener("close",()=>{N.readyState===WebSocket.CLOSED?h("disconnected"):h("reconnecting")}),N.addEventListener("message",H=>{var R;try{const X=JSON.parse(H.data);(R=T.current)==null||R.call(T,X)}catch{}}),()=>{N.close(),y.current=null,h("disconnected")}},[f]);const O=ft.useCallback(()=>{var N;(N=y.current)==null||N.reconnect()},[]);return{status:r,reconnect:O}}const Dp={status:"",service:"",method:"",pathSearch:"",timeRange:"all"};function Cp(c,i){return!(!hy(c.timestamp,i.timeRange)||i.status&&c.status!==i.status||i.service&&c.service!==i.service||i.method&&c.method!==i.method||i.pathSearch&&!c.path.toLowerCase().includes(i.pathSearch.toLowerCase()))}function Mp({entry:c}){return d.jsx("div",{className:"border-t border-border-sub bg-surface-2 px-4 py-3 text-[12px]",children:d.jsxs("div",{className:"grid grid-cols-2 gap-x-6 gap-y-1",children:[d.jsxs("div",{children:[d.jsx("span",{className:"text-tertiary",children:"Target Domain: "}),d.jsx("span",{className:"font-mono text-primary",children:c.targetDomain})]}),d.jsxs("div",{children:[d.jsx("span",{className:"text-tertiary",children:"Response: "}),d.jsx("span",{className:"font-mono text-primary",children:c.responseCode??"—"})]}),c.credentialName&&d.jsxs("div",{children:[d.jsx("span",{className:"text-tertiary",children:"Credential: "}),d.jsx("span",{className:"font-mono text-primary",children:c.credentialName})]}),c.agentName&&d.jsxs("div",{children:[d.jsx("span",{className:"text-tertiary",children:"Agent: "}),d.jsx("span",{className:"font-mono text-primary",children:c.agentName}),c.agentTokenPrefix&&d.jsxs("span",{className:"ml-1 text-tertiary",children:["(",c.agentTokenPrefix,"...)"]})]}),c.channel==="mcp"&&d.jsxs("div",{children:[d.jsx("span",{className:"text-tertiary",children:"Channel: "}),d.jsx("span",{className:"font-mono text-gold",children:"MCP"})]}),c.blockedReason&&d.jsxs("div",{className:"col-span-2",children:[d.jsx("span",{className:"text-tertiary",children:"Block Reason: "}),d.jsx("span",{className:"font-mono text-blocked",children:c.blockedReason})]})]})})}function Rp(){const[c,i]=ft.useState([]),[f,r]=ft.useState(Dp),[h,y]=ft.useState(!1),[T,O]=ft.useState(null),N=ft.useRef(null),{data:x}=fr({limit:200,refetchInterval:3e3});ft.useEffect(()=>{x&&x.length>0&&i(U=>{const $=new Set(U.map(Q=>Q.id)),K=x.filter(Q=>!$.has(Q.id));return K.length===0?U:[...K,...U].sort((Q,pt)=>new Date(pt.timestamp).getTime()-new Date(Q.timestamp).getTime()).slice(0,500)})},[x]);const H=ft.useCallback(U=>{i($=>$.some(K=>K.id===U.id)?$:[U,...$].slice(0,500))},[]),{status:R,reconnect:X}=zp({onMessage:H,enabled:!0});ft.useEffect(()=>{!h&&N.current&&(N.current.scrollTop=0)},[c.length,h]);const V=ft.useCallback(()=>{N.current&&N.current.scrollTop>50&&y(!0)},[]),at=c.filter(U=>Cp(U,f)),F=[...new Set(c.map(U=>U.service))].sort(),I=[...new Set(c.map(U=>U.method))].sort();return d.jsxs("div",{className:"flex flex-col gap-4",children:[d.jsx(pp,{status:R,onReconnect:X}),d.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[d.jsx(my,{value:f.timeRange,onChange:U=>r($=>({...$,timeRange:U}))}),d.jsxs("select",{className:"appearance-none rounded-md border border-border bg-surface-0 bg-[url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239ca3af%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E')] bg-[length:12px] bg-[right_8px_center] bg-no-repeat pl-3 pr-8 py-1.5 text-[13px] text-primary focus:border-gold focus:outline-none",value:f.status,onChange:U=>r($=>({...$,status:U.target.value})),"aria-label":"Filter by status",children:[d.jsx("option",{value:"",children:"All Status"}),d.jsx("option",{value:"allowed",children:"Allowed"}),d.jsx("option",{value:"blocked",children:"Blocked"})]}),d.jsxs("select",{className:"appearance-none rounded-md border border-border bg-surface-0 bg-[url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239ca3af%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E')] bg-[length:12px] bg-[right_8px_center] bg-no-repeat pl-3 pr-8 py-1.5 text-[13px] text-primary focus:border-gold focus:outline-none",value:f.service,onChange:U=>r($=>({...$,service:U.target.value})),"aria-label":"Filter by service",children:[d.jsx("option",{value:"",children:"All Services"}),F.map(U=>d.jsx("option",{value:U,children:U},U))]}),d.jsxs("select",{className:"appearance-none rounded-md border border-border bg-surface-0 bg-[url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239ca3af%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E')] bg-[length:12px] bg-[right_8px_center] bg-no-repeat pl-3 pr-8 py-1.5 text-[13px] text-primary focus:border-gold focus:outline-none",value:f.method,onChange:U=>r($=>({...$,method:U.target.value})),"aria-label":"Filter by method",children:[d.jsx("option",{value:"",children:"All Methods"}),I.map(U=>d.jsx("option",{value:U,children:U},U))]}),d.jsx("input",{type:"text",placeholder:"Search path...",className:"rounded-md border border-border bg-surface-0 px-3 py-1.5 font-mono text-[13px] text-primary placeholder:text-tertiary focus:border-gold focus:outline-none",value:f.pathSearch,onChange:U=>r($=>({...$,pathSearch:U.target.value})),"aria-label":"Search by path"}),d.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[h&&d.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wider text-warning",children:"Paused"}),d.jsxs("button",{type:"button",onClick:()=>y(U=>!U),className:"flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-[13px] font-medium text-primary hover:bg-surface-3","aria-label":h?"Resume auto-scroll":"Pause auto-scroll",children:[h?d.jsx(ep,{size:14}):d.jsx(P2,{size:14}),h?"Resume":"Pause"]})]})]}),d.jsx(Je,{children:d.jsx("div",{ref:N,className:"max-h-[calc(100vh-240px)] overflow-y-auto",onScroll:V,"aria-live":"polite","aria-label":"Request feed",children:at.length===0?d.jsx(Gu,{icon:ry,title:"No requests",description:"Requests will appear here in real-time"}):d.jsxs("table",{className:"w-full table-fixed","aria-label":"Request feed table",children:[d.jsx("thead",{className:"sticky top-0 z-10",children:d.jsxs("tr",{className:"bg-surface-2",children:[d.jsx("th",{className:"w-[100px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Time"}),d.jsx("th",{className:"w-[80px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Method"}),d.jsx("th",{className:"px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Path"}),d.jsx("th",{className:"w-[110px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Service"}),d.jsx("th",{className:"w-[60px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Source"}),d.jsx("th",{className:"w-[90px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Status"})]})}),d.jsx("tbody",{children:at.map((U,$)=>d.jsxs($m.Fragment,{children:[d.jsxs("tr",{className:`cursor-pointer border-t border-border-sub transition-colors duration-100 ${U.status==="blocked"?"bg-blocked-bg hover:bg-surface-3":$%2===0?"bg-surface-1 hover:bg-surface-3":"bg-surface-0 hover:bg-surface-3"}`,onClick:()=>O(T===U.id?null:U.id),onKeyDown:K=>{(K.key==="Enter"||K.key===" ")&&(K.preventDefault(),O(T===U.id?null:U.id))},tabIndex:0,role:"button","aria-expanded":T===U.id,children:[d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-tertiary",children:dy(U.timestamp)}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] font-medium text-primary",children:U.method}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-secondary",title:U.path,children:U.path}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-secondary",title:U.service,children:U.service}),d.jsx("td",{className:"px-3 py-2 text-[11px] uppercase tracking-wider text-tertiary",children:U.channel==="mcp"?d.jsx("span",{className:"rounded bg-surface-3 px-1.5 py-0.5 text-[10px] font-medium text-gold",children:"MCP"}):d.jsx("span",{className:"text-tertiary",children:"gate"})}),d.jsx("td",{className:"px-3 py-2",children:d.jsx(wn,{variant:U.status==="allowed"?"allowed":U.status==="system"?"system":"blocked"})})]}),T===U.id&&d.jsx("tr",{children:d.jsx("td",{colSpan:6,className:"p-0",children:d.jsx(Mp,{entry:U})})})]},U.id))})]})})})]})}function Bm(c){if(!c.expiresAt)return"active";const i=new Date(c.expiresAt).getTime(),f=Date.now();return i<f?"expired":i-f<10080*60*1e3?"expiring":"active"}function Up(c){if(!c.expiresAt)return null;const i=new Date(c.expiresAt).getTime(),f=Date.now();if(i<f)return"Expired";const r=Math.ceil((i-f)/(1440*60*1e3));return r<=1?"Expires today":`Expires in ${r}d`}function qp(){const{data:c,isLoading:i}=cr(),{data:f}=sr(),r=c??[],h=new Map;if(f)for(const O of f)for(const N of O.grants)h.set(N,(h.get(N)??0)+1);const y={active:0,expiring:0,expired:0};for(const O of r)y[Bm(O)]++;const T=r.length;return d.jsxs("div",{className:i?"opacity-60":"",children:[T>0&&d.jsxs(Je,{className:"mb-4",children:[d.jsxs("div",{className:"flex h-3 gap-0.5 overflow-hidden rounded-sm",children:[y.active>0&&d.jsx("div",{className:"bg-allowed",style:{width:`${y.active/T*100}%`}}),y.expiring>0&&d.jsx("div",{className:"bg-warning",style:{width:`${y.expiring/T*100}%`}}),y.expired>0&&d.jsx("div",{className:"bg-blocked",style:{width:`${y.expired/T*100}%`}})]}),d.jsxs("div",{className:"mt-2 flex gap-4 text-[12px]",children:[d.jsxs("span",{className:"text-allowed",children:[y.active," active"]}),y.expiring>0&&d.jsxs("span",{className:"text-warning",children:[y.expiring," expiring"]}),y.expired>0&&d.jsxs("span",{className:"text-blocked",children:[y.expired," expired"]})]})]}),r.length===0?d.jsx(Gu,{icon:nr,title:"No credentials stored",description:"Add credentials via the CLI to see them here"}):d.jsx("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(320px,1fr))] gap-4",children:r.map(O=>{const N=Bm(O),x=Up(O),H=h.get(O.id)??0;return d.jsxs(Je,{children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{children:[d.jsx("h4",{className:"font-mono text-[14px] font-medium text-primary",children:O.name}),d.jsx("p",{className:"mt-0.5 text-[12px] text-secondary",children:O.service})]}),d.jsx(wn,{variant:N})]}),d.jsxs("div",{className:"mt-3 flex flex-col gap-1.5 text-[12px]",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(k2,{size:14,className:"text-tertiary","aria-hidden":"true"}),d.jsx("span",{className:"font-mono text-secondary",children:O.domains.length>0?O.domains.join(", "):"No domains"})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("span",{className:"text-tertiary",children:[O.authType," · ",H," agent",H!==1?"s":""]}),x&&d.jsx("span",{className:N==="expired"?"text-blocked":N==="expiring"?"text-warning":"text-tertiary",children:x})]}),d.jsxs("div",{className:"text-tertiary",children:["Created ",rr(O.createdAt)]})]})]},O.id)})})]})}function wp({agent:c}){return d.jsxs("div",{className:"border-t border-border-sub bg-surface-2 px-4 py-3 text-[12px]",children:[d.jsx("div",{className:"mb-2 text-[11px] font-medium uppercase tracking-wider text-secondary",children:"Granted Credentials"}),c.grants.length>0?d.jsx("div",{className:"flex flex-wrap gap-2",children:c.grants.map(i=>d.jsx("span",{className:"rounded-sm bg-surface-3 px-2 py-0.5 font-mono text-[12px] text-primary",children:i},i))}):d.jsx("span",{className:"text-tertiary",children:"No credential grants"}),c.rateLimit&&d.jsxs("div",{className:"mt-2",children:[d.jsx("span",{className:"text-tertiary",children:"Rate Limit: "}),d.jsx("span",{className:"font-mono text-primary",children:c.rateLimit})]})]})}function Hp(){const{data:c,isLoading:i}=sr(),[f,r]=ft.useState(null),h=c??[];return!i&&h.length===0?d.jsx(Gu,{icon:ir,title:"No agents registered",description:"Register agents via the CLI to see them here"}):d.jsx(Je,{className:i?"opacity-60":"",children:d.jsx("div",{className:"overflow-x-auto",children:d.jsxs("table",{className:"w-full table-fixed border-collapse","aria-label":"Registered agents",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"bg-surface-2",children:[d.jsx("th",{className:"w-[180px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Agent"}),d.jsx("th",{className:"w-[140px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Token Prefix"}),d.jsx("th",{className:"w-[90px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Status"}),d.jsx("th",{className:"w-[80px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Grants"}),d.jsx("th",{className:"px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Created"})]})}),d.jsx("tbody",{children:h.map((y,T)=>d.jsxs($m.Fragment,{children:[d.jsxs("tr",{className:`cursor-pointer border-t border-border-sub transition-colors duration-100 ${T%2===0?"bg-surface-1 hover:bg-surface-3":"bg-surface-0 hover:bg-surface-3"}`,onClick:()=>r(f===y.id?null:y.id),onKeyDown:O=>{(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),r(f===y.id?null:y.id))},tabIndex:0,role:"button","aria-expanded":f===y.id,children:[d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[13px] font-medium text-primary",title:y.name,children:y.name}),d.jsxs("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-tertiary",children:[y.tokenPrefix,"..."]}),d.jsx("td",{className:"px-3 py-2",children:d.jsx(wn,{variant:"active"})}),d.jsx("td",{className:"px-3 py-2 text-[13px] text-secondary",children:y.grants.length}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 text-[12px] text-tertiary",children:rr(y.createdAt)})]}),f===y.id&&d.jsx("tr",{children:d.jsx("td",{colSpan:5,className:"p-0",children:d.jsx(wp,{agent:y})})})]},y.id))})]})})})}const Bp={no_credential:"No Credential",credential_expired:"Expired",credential_scope:"Scope Denied",agent_auth_missing:"No Auth",agent_auth_invalid:"Auth Failed",agent_scope:"No Grant",policy_violation:"Policy",policy_rate_limit:"Policy Rate Limit",agent_rate_limit:"Agent Rate Limit",credential_rate_limit:"Rate Limit",domain_guard:"Domain Guard",body_inspection:"Body Scan",body_too_large:"Body Too Large",agent_connection_limit:"Connection Limit"};function Qp({reason:c}){const i=Bp[c]??c;return d.jsx(wn,{variant:"warning",label:i})}function py(c,i,f){const r=new Blob([c],{type:f}),h=URL.createObjectURL(r),y=document.createElement("a");y.href=h,y.download=i,y.click(),URL.revokeObjectURL(h)}function Lp(c){const i=["timestamp","agent","service","method","path","block_reason","target_domain"],f=c.map(r=>[r.timestamp,r.agentName??"",r.service,r.method,r.path,r.blockedReason??"",r.targetDomain].join(","));py([i.join(","),...f].join(`
148
+ `),"aegis-blocked.csv","text/csv")}function Gp(c){py(JSON.stringify(c,null,2),"aegis-blocked.json","application/json")}function Yp(){const{data:c,isLoading:i}=fr({status:"blocked",limit:200,refetchInterval:1e4}),[f,r]=ft.useState(""),[h,y]=ft.useState("all"),T=c??[],O=T.filter(x=>hy(x.timestamp,h)).filter(x=>!f||x.service===f),N=[...new Set(T.map(x=>x.service))].sort();return d.jsxs("div",{className:"flex flex-col gap-4",children:[d.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[d.jsx(my,{value:h,onChange:y}),d.jsxs("select",{className:"appearance-none rounded-md border border-border bg-surface-0 bg-[url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%239ca3af%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E')] bg-[length:12px] bg-[right_8px_center] bg-no-repeat pl-3 pr-8 py-1.5 text-[13px] text-primary focus:border-gold focus:outline-none",value:f,onChange:x=>r(x.target.value),"aria-label":"Filter by service",children:[d.jsx("option",{value:"",children:"All Services"}),N.map(x=>d.jsx("option",{value:x,children:x},x))]}),d.jsxs("span",{className:"text-[13px] text-secondary",children:[O.length," blocked request",O.length!==1?"s":""]}),d.jsxs("div",{className:"ml-auto flex gap-2",children:[d.jsxs("button",{type:"button",onClick:()=>Lp(O),disabled:O.length===0,className:"flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-[13px] font-medium text-primary hover:bg-surface-3 disabled:text-disabled disabled:hover:bg-transparent","aria-label":"Export as CSV",children:[d.jsx(wm,{size:14,"aria-hidden":"true"}),"CSV"]}),d.jsxs("button",{type:"button",onClick:()=>Gp(O),disabled:O.length===0,className:"flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 text-[13px] font-medium text-primary hover:bg-surface-3 disabled:text-disabled disabled:hover:bg-transparent","aria-label":"Export as JSON",children:[d.jsx(wm,{size:14,"aria-hidden":"true"}),"JSON"]})]})]}),d.jsx(Je,{className:i?"opacity-60":"",children:O.length===0?d.jsx(Gu,{icon:ur,title:"No blocked requests",description:"Blocked requests will appear here when Gate denies a request"}):d.jsx("div",{className:"overflow-x-auto",children:d.jsxs("table",{className:"w-full table-fixed border-collapse","aria-label":"Blocked requests",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"bg-surface-2",children:[d.jsx("th",{className:"w-[140px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Time"}),d.jsx("th",{className:"w-[100px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Agent"}),d.jsx("th",{className:"w-[100px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Service"}),d.jsx("th",{className:"w-[80px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Method"}),d.jsx("th",{className:"px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Path"}),d.jsx("th",{className:"w-[160px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Reason"})]})}),d.jsx("tbody",{children:O.map((x,H)=>d.jsxs("tr",{className:`border-t border-border-sub transition-colors duration-100 ${H%2===0?"bg-blocked-bg hover:bg-surface-3":"bg-surface-0 hover:bg-surface-3"}`,children:[d.jsx("td",{className:"overflow-hidden truncate whitespace-nowrap px-3 py-2 font-mono text-[12px] text-tertiary",children:dy(x.timestamp,!0)}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-secondary",children:x.agentName??"—"}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-secondary",title:x.service,children:x.service}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] font-medium text-primary",children:x.method}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-secondary",title:x.path,children:x.path}),d.jsx("td",{className:"px-3 py-2",children:x.blockedReason?d.jsx(Qp,{reason:x.blockedReason}):d.jsx("span",{className:"text-[12px] text-tertiary",children:"—"})})]},x.id))})]})})})]})}function Xp(){return Rn({queryKey:qn.users.all,queryFn:()=>Un.users(),refetchInterval:3e4})}const Qm={admin:{variant:"warning",label:"ADMIN"},operator:{variant:"info",label:"OPERATOR"},viewer:{variant:"allowed",label:"VIEWER"}};function Zp(){const{data:c,isLoading:i}=Xp(),f=c??[];return!i&&f.length===0?d.jsx(Gu,{icon:oy,title:"No users registered",description:"RBAC is in bootstrap mode — add a user via the CLI to enable access control"}):d.jsx(Je,{className:i?"opacity-60":"",children:d.jsx("div",{className:"overflow-x-auto",children:d.jsxs("table",{className:"w-full table-fixed border-collapse","aria-label":"RBAC users",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"bg-surface-2",children:[d.jsx("th",{className:"w-[180px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Name"}),d.jsx("th",{className:"w-[120px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Role"}),d.jsx("th",{className:"w-[160px] px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Token Prefix"}),d.jsx("th",{className:"px-3 py-2 text-left text-[12px] font-normal uppercase tracking-wider text-secondary",children:"Created"})]})}),d.jsx("tbody",{children:f.map((r,h)=>d.jsxs("tr",{className:`border-t border-border-sub transition-colors duration-100 ${h%2===0?"bg-surface-1 hover:bg-surface-3":"bg-surface-0 hover:bg-surface-3"}`,children:[d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[13px] font-medium text-primary",title:r.name,children:r.name}),d.jsx("td",{className:"px-3 py-2",children:d.jsx(wn,{variant:Qm[r.role].variant,label:Qm[r.role].label})}),d.jsxs("td",{className:"overflow-hidden truncate px-3 py-2 font-mono text-[12px] text-tertiary",children:[r.tokenPrefix,"..."]}),d.jsx("td",{className:"overflow-hidden truncate px-3 py-2 text-[12px] text-tertiary",children:rr(r.createdAt)})]},r.id))})]})})})}function Vp(){const[c,i]=ft.useState("overview");function f(){switch(c){case"overview":return d.jsx(vp,{});case"requests":return d.jsx(Rp,{});case"credentials":return d.jsx(qp,{});case"agents":return d.jsx(Hp,{});case"users":return d.jsx(Zp,{});case"blocked":return d.jsx(Yp,{})}}return d.jsxs("div",{className:"flex h-screen bg-surface-0 text-primary",children:[d.jsx(cp,{currentView:c,onNavigate:i}),d.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[d.jsx(op,{currentView:c}),d.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:d.jsx("div",{className:"mx-auto",style:{maxWidth:"var(--content-max-width)"},children:f()})})]})]})}const Lm=document.getElementById("root");Lm&&$v.createRoot(Lm).render(d.jsx(ft.StrictMode,{children:d.jsx(E2,{client:q2,children:d.jsx(Vp,{})})}));