(function(){const M=document.createElement("link").relList;if(M&&M.supports&&M.supports("modulepreload"))return;for(const N of document.querySelectorAll('link[rel="modulepreload"]'))h(N);new MutationObserver(N=>{for(const _ of N)if(_.type==="childList")for(const R of _.addedNodes)R.tagName==="LINK"&&R.rel==="modulepreload"&&h(R)}).observe(document,{childList:!0,subtree:!0});function E(N){const _={};return N.integrity&&(_.integrity=N.integrity),N.referrerPolicy&&(_.referrerPolicy=N.referrerPolicy),N.crossOrigin==="use-credentials"?_.credentials="include":N.crossOrigin==="anonymous"?_.credentials="omit":_.credentials="same-origin",_}function h(N){if(N.ep)return;N.ep=!0;const _=E(N);fetch(N.href,_)}})();function Md(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var ff={exports:{}},jn={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gd;function ey(){if(gd)return jn;gd=1;var o=Symbol.for("react.transitional.element"),M=Symbol.for("react.fragment");function E(h,N,_){var R=null;if(_!==void 0&&(R=""+_),N.key!==void 0&&(R=""+N.key),"key"in N){_={};for(var K in N)K!=="key"&&(_[K]=N[K])}else _=N;return N=_.ref,{$$typeof:o,type:h,key:R,ref:N!==void 0?N:null,props:_}}return jn.Fragment=M,jn.jsx=E,jn.jsxs=E,jn}var Sd;function ay(){return Sd||(Sd=1,ff.exports=ey()),ff.exports}var c=ay(),sf={exports:{}},k={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var pd;function ny(){if(pd)return k;pd=1;var o=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),R=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),O=Symbol.iterator;function Q(d){return d===null||typeof d!="object"?null:(d=O&&d[O]||d["@@iterator"],typeof d=="function"?d:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},it=Object.assign,gt={};function ut(d,z,U){this.props=d,this.context=z,this.refs=gt,this.updater=U||V}ut.prototype.isReactComponent={},ut.prototype.setState=function(d,z){if(typeof d!="object"&&typeof d!="function"&&d!=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,d,z,"setState")},ut.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function w(){}w.prototype=ut.prototype;function X(d,z,U){this.props=d,this.context=z,this.refs=gt,this.updater=U||V}var Xt=X.prototype=new w;Xt.constructor=X,it(Xt,ut.prototype),Xt.isPureReactComponent=!0;var Vt=Array.isArray;function Qt(){}var at={H:null,A:null,T:null,S:null},kt=Object.prototype.hasOwnProperty;function El(d,z,U){var q=U.ref;return{$$typeof:o,type:d,key:z,ref:q!==void 0?q:null,props:U}}function Le(d,z){return El(d.type,z,d.props)}function Ol(d){return typeof d=="object"&&d!==null&&d.$$typeof===o}function $t(d){var z={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(U){return z[U]})}var Te=/\/+/g;function Ul(d,z){return typeof d=="object"&&d!==null&&d.key!=null?$t(""+d.key):z.toString(36)}function Tl(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(Qt,Qt):(d.status="pending",d.then(function(z){d.status==="pending"&&(d.status="fulfilled",d.value=z)},function(z){d.status==="pending"&&(d.status="rejected",d.reason=z)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function x(d,z,U,q,$){var I=typeof d;(I==="undefined"||I==="boolean")&&(d=null);var ot=!1;if(d===null)ot=!0;else switch(I){case"bigint":case"string":case"number":ot=!0;break;case"object":switch(d.$$typeof){case o:case M:ot=!0;break;case B:return ot=d._init,x(ot(d._payload),z,U,q,$)}}if(ot)return $=$(d),ot=q===""?"."+Ul(d,0):q,Vt($)?(U="",ot!=null&&(U=ot.replace(Te,"$&/")+"/"),x($,z,U,"",function(Oa){return Oa})):$!=null&&(Ol($)&&($=Le($,U+($.key==null||d&&d.key===$.key?"":(""+$.key).replace(Te,"$&/")+"/")+ot)),z.push($)),1;ot=0;var Kt=q===""?".":q+":";if(Vt(d))for(var At=0;At<d.length;At++)q=d[At],I=Kt+Ul(q,At),ot+=x(q,z,U,I,$);else if(At=Q(d),typeof At=="function")for(d=At.call(d),At=0;!(q=d.next()).done;)q=q.value,I=Kt+Ul(q,At++),ot+=x(q,z,U,I,$);else if(I==="object"){if(typeof d.then=="function")return x(Tl(d),z,U,q,$);throw z=String(d),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.")}return ot}function C(d,z,U){if(d==null)return d;var q=[],$=0;return x(d,q,"","",function(I){return z.call(U,I,$++)}),q}function J(d){if(d._status===-1){var z=d._result;z=z(),z.then(function(U){(d._status===0||d._status===-1)&&(d._status=1,d._result=U)},function(U){(d._status===0||d._status===-1)&&(d._status=2,d._result=U)}),d._status===-1&&(d._status=0,d._result=z)}if(d._status===1)return d._result.default;throw d._result}var ht=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},St={map:C,forEach:function(d,z,U){C(d,function(){z.apply(this,arguments)},U)},count:function(d){var z=0;return C(d,function(){z++}),z},toArray:function(d){return C(d,function(z){return z})||[]},only:function(d){if(!Ol(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return k.Activity=D,k.Children=St,k.Component=ut,k.Fragment=E,k.Profiler=N,k.PureComponent=X,k.StrictMode=h,k.Suspense=A,k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=at,k.__COMPILER_RUNTIME={__proto__:null,c:function(d){return at.H.useMemoCache(d)}},k.cache=function(d){return function(){return d.apply(null,arguments)}},k.cacheSignal=function(){return null},k.cloneElement=function(d,z,U){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var q=it({},d.props),$=d.key;if(z!=null)for(I in z.key!==void 0&&($=""+z.key),z)!kt.call(z,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&z.ref===void 0||(q[I]=z[I]);var I=arguments.length-2;if(I===1)q.children=U;else if(1<I){for(var ot=Array(I),Kt=0;Kt<I;Kt++)ot[Kt]=arguments[Kt+2];q.children=ot}return El(d.type,$,q)},k.createContext=function(d){return d={$$typeof:R,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:_,_context:d},d},k.createElement=function(d,z,U){var q,$={},I=null;if(z!=null)for(q in z.key!==void 0&&(I=""+z.key),z)kt.call(z,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&($[q]=z[q]);var ot=arguments.length-2;if(ot===1)$.children=U;else if(1<ot){for(var Kt=Array(ot),At=0;At<ot;At++)Kt[At]=arguments[At+2];$.children=Kt}if(d&&d.defaultProps)for(q in ot=d.defaultProps,ot)$[q]===void 0&&($[q]=ot[q]);return El(d,I,$)},k.createRef=function(){return{current:null}},k.forwardRef=function(d){return{$$typeof:K,render:d}},k.isValidElement=Ol,k.lazy=function(d){return{$$typeof:B,_payload:{_status:-1,_result:d},_init:J}},k.memo=function(d,z){return{$$typeof:p,type:d,compare:z===void 0?null:z}},k.startTransition=function(d){var z=at.T,U={};at.T=U;try{var q=d(),$=at.S;$!==null&&$(U,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(Qt,ht)}catch(I){ht(I)}finally{z!==null&&U.types!==null&&(z.types=U.types),at.T=z}},k.unstable_useCacheRefresh=function(){return at.H.useCacheRefresh()},k.use=function(d){return at.H.use(d)},k.useActionState=function(d,z,U){return at.H.useActionState(d,z,U)},k.useCallback=function(d,z){return at.H.useCallback(d,z)},k.useContext=function(d){return at.H.useContext(d)},k.useDebugValue=function(){},k.useDeferredValue=function(d,z){return at.H.useDeferredValue(d,z)},k.useEffect=function(d,z){return at.H.useEffect(d,z)},k.useEffectEvent=function(d){return at.H.useEffectEvent(d)},k.useId=function(){return at.H.useId()},k.useImperativeHandle=function(d,z,U){return at.H.useImperativeHandle(d,z,U)},k.useInsertionEffect=function(d,z){return at.H.useInsertionEffect(d,z)},k.useLayoutEffect=function(d,z){return at.H.useLayoutEffect(d,z)},k.useMemo=function(d,z){return at.H.useMemo(d,z)},k.useOptimistic=function(d,z){return at.H.useOptimistic(d,z)},k.useReducer=function(d,z,U){return at.H.useReducer(d,z,U)},k.useRef=function(d){return at.H.useRef(d)},k.useState=function(d){return at.H.useState(d)},k.useSyncExternalStore=function(d,z,U){return at.H.useSyncExternalStore(d,z,U)},k.useTransition=function(){return at.H.useTransition()},k.version="19.2.5",k}var bd;function mf(){return bd||(bd=1,sf.exports=ny()),sf.exports}var L=mf();const Dd=Md(L);var of={exports:{}},Tn={},rf={exports:{}},df={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var xd;function uy(){return xd||(xd=1,(function(o){function M(x,C){var J=x.length;x.push(C);t:for(;0<J;){var ht=J-1>>>1,St=x[ht];if(0<N(St,C))x[ht]=C,x[J]=St,J=ht;else break t}}function E(x){return x.length===0?null:x[0]}function h(x){if(x.length===0)return null;var C=x[0],J=x.pop();if(J!==C){x[0]=J;t:for(var ht=0,St=x.length,d=St>>>1;ht<d;){var z=2*(ht+1)-1,U=x[z],q=z+1,$=x[q];if(0>N(U,J))q<St&&0>N($,U)?(x[ht]=$,x[q]=J,ht=q):(x[ht]=U,x[z]=J,ht=z);else if(q<St&&0>N($,J))x[ht]=$,x[q]=J,ht=q;else break t}}return C}function N(x,C){var J=x.sortIndex-C.sortIndex;return J!==0?J:x.id-C.id}if(o.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var _=performance;o.unstable_now=function(){return _.now()}}else{var R=Date,K=R.now();o.unstable_now=function(){return R.now()-K}}var A=[],p=[],B=1,D=null,O=3,Q=!1,V=!1,it=!1,gt=!1,ut=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function Xt(x){for(var C=E(p);C!==null;){if(C.callback===null)h(p);else if(C.startTime<=x)h(p),C.sortIndex=C.expirationTime,M(A,C);else break;C=E(p)}}function Vt(x){if(it=!1,Xt(x),!V)if(E(A)!==null)V=!0,Qt||(Qt=!0,$t());else{var C=E(p);C!==null&&Tl(Vt,C.startTime-x)}}var Qt=!1,at=-1,kt=5,El=-1;function Le(){return gt?!0:!(o.unstable_now()-El<kt)}function Ol(){if(gt=!1,Qt){var x=o.unstable_now();El=x;var C=!0;try{t:{V=!1,it&&(it=!1,w(at),at=-1),Q=!0;var J=O;try{l:{for(Xt(x),D=E(A);D!==null&&!(D.expirationTime>x&&Le());){var ht=D.callback;if(typeof ht=="function"){D.callback=null,O=D.priorityLevel;var St=ht(D.expirationTime<=x);if(x=o.unstable_now(),typeof St=="function"){D.callback=St,Xt(x),C=!0;break l}D===E(A)&&h(A),Xt(x)}else h(A);D=E(A)}if(D!==null)C=!0;else{var d=E(p);d!==null&&Tl(Vt,d.startTime-x),C=!1}}break t}finally{D=null,O=J,Q=!1}C=void 0}}finally{C?$t():Qt=!1}}}var $t;if(typeof X=="function")$t=function(){X(Ol)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,Ul=Te.port2;Te.port1.onmessage=Ol,$t=function(){Ul.postMessage(null)}}else $t=function(){ut(Ol,0)};function Tl(x,C){at=ut(function(){x(o.unstable_now())},C)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(x){x.callback=null},o.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):kt=0<x?Math.floor(1e3/x):5},o.unstable_getCurrentPriorityLevel=function(){return O},o.unstable_next=function(x){switch(O){case 1:case 2:case 3:var C=3;break;default:C=O}var J=O;O=C;try{return x()}finally{O=J}},o.unstable_requestPaint=function(){gt=!0},o.unstable_runWithPriority=function(x,C){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var J=O;O=x;try{return C()}finally{O=J}},o.unstable_scheduleCallback=function(x,C,J){var ht=o.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ht+J:ht):J=ht,x){case 1:var St=-1;break;case 2:St=250;break;case 5:St=1073741823;break;case 4:St=1e4;break;default:St=5e3}return St=J+St,x={id:B++,callback:C,priorityLevel:x,startTime:J,expirationTime:St,sortIndex:-1},J>ht?(x.sortIndex=J,M(p,x),E(A)===null&&x===E(p)&&(it?(w(at),at=-1):it=!0,Tl(Vt,J-ht))):(x.sortIndex=St,M(A,x),V||Q||(V=!0,Qt||(Qt=!0,$t()))),x},o.unstable_shouldYield=Le,o.unstable_wrapCallback=function(x){var C=O;return function(){var J=O;O=C;try{return x.apply(this,arguments)}finally{O=J}}}})(df)),df}var jd;function iy(){return jd||(jd=1,rf.exports=uy()),rf.exports}var hf={exports:{}},Zt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Td;function cy(){if(Td)return Zt;Td=1;var o=mf();function M(A){var p="https://react.dev/errors/"+A;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var B=2;B<arguments.length;B++)p+="&args[]="+encodeURIComponent(arguments[B])}return"Minified React error #"+A+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function E(){}var h={d:{f:E,r:function(){throw Error(M(522))},D:E,C:E,L:E,m:E,X:E,S:E,M:E},p:0,findDOMNode:null},N=Symbol.for("react.portal");function _(A,p,B){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:N,key:D==null?null:""+D,children:A,containerInfo:p,implementation:B}}var R=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function K(A,p){if(A==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=h,Zt.createPortal=function(A,p){var B=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(M(299));return _(A,p,null,B)},Zt.flushSync=function(A){var p=R.T,B=h.p;try{if(R.T=null,h.p=2,A)return A()}finally{R.T=p,h.p=B,h.d.f()}},Zt.preconnect=function(A,p){typeof A=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,h.d.C(A,p))},Zt.prefetchDNS=function(A){typeof A=="string"&&h.d.D(A)},Zt.preinit=function(A,p){if(typeof A=="string"&&p&&typeof p.as=="string"){var B=p.as,D=K(B,p.crossOrigin),O=typeof p.integrity=="string"?p.integrity:void 0,Q=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;B==="style"?h.d.S(A,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:D,integrity:O,fetchPriority:Q}):B==="script"&&h.d.X(A,{crossOrigin:D,integrity:O,fetchPriority:Q,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Zt.preinitModule=function(A,p){if(typeof A=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var B=K(p.as,p.crossOrigin);h.d.M(A,{crossOrigin:B,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&h.d.M(A)},Zt.preload=function(A,p){if(typeof A=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var B=p.as,D=K(B,p.crossOrigin);h.d.L(A,B,{crossOrigin:D,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Zt.preloadModule=function(A,p){if(typeof A=="string")if(p){var B=K(p.as,p.crossOrigin);h.d.m(A,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:B,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else h.d.m(A)},Zt.requestFormReset=function(A){h.d.r(A)},Zt.unstable_batchedUpdates=function(A,p){return A(p)},Zt.useFormState=function(A,p,B){return R.H.useFormState(A,p,B)},Zt.useFormStatus=function(){return R.H.useHostTransitionStatus()},Zt.version="19.2.5",Zt}var zd;function fy(){if(zd)return hf.exports;zd=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(M){console.error(M)}}return o(),hf.exports=cy(),hf.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ad;function sy(){if(Ad)return Tn;Ad=1;var o=iy(),M=mf(),E=fy();function h(t){var l="https://react.dev/errors/"+t;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)l+="&args[]="+encodeURIComponent(arguments[e])}return"Minified React error #"+t+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function N(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function _(t){var l=t,e=t;if(t.alternate)for(;l.return;)l=l.return;else{t=l;do l=t,(l.flags&4098)!==0&&(e=l.return),t=l.return;while(t)}return l.tag===3?e:null}function R(t){if(t.tag===13){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function K(t){if(t.tag===31){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function A(t){if(_(t)!==t)throw Error(h(188))}function p(t){var l=t.alternate;if(!l){if(l=_(t),l===null)throw Error(h(188));return l!==t?null:t}for(var e=t,a=l;;){var n=e.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){e=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===e)return A(n),t;if(u===a)return A(n),l;u=u.sibling}throw Error(h(188))}if(e.return!==a.return)e=n,a=u;else{for(var i=!1,f=n.child;f;){if(f===e){i=!0,e=n,a=u;break}if(f===a){i=!0,a=n,e=u;break}f=f.sibling}if(!i){for(f=u.child;f;){if(f===e){i=!0,e=u,a=n;break}if(f===a){i=!0,a=u,e=n;break}f=f.sibling}if(!i)throw Error(h(189))}}if(e.alternate!==a)throw Error(h(190))}if(e.tag!==3)throw Error(h(188));return e.stateNode.current===e?t:l}function B(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t;for(t=t.child;t!==null;){if(l=B(t),l!==null)return l;t=t.sibling}return null}var D=Object.assign,O=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),it=Symbol.for("react.fragment"),gt=Symbol.for("react.strict_mode"),ut=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),X=Symbol.for("react.context"),Xt=Symbol.for("react.forward_ref"),Vt=Symbol.for("react.suspense"),Qt=Symbol.for("react.suspense_list"),at=Symbol.for("react.memo"),kt=Symbol.for("react.lazy"),El=Symbol.for("react.activity"),Le=Symbol.for("react.memo_cache_sentinel"),Ol=Symbol.iterator;function $t(t){return t===null||typeof t!="object"?null:(t=Ol&&t[Ol]||t["@@iterator"],typeof t=="function"?t:null)}var Te=Symbol.for("react.client.reference");function Ul(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Te?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case it:return"Fragment";case ut:return"Profiler";case gt:return"StrictMode";case Vt:return"Suspense";case Qt:return"SuspenseList";case El:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case V:return"Portal";case X:return t.displayName||"Context";case w:return(t._context.displayName||"Context")+".Consumer";case Xt:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case at:return l=t.displayName||null,l!==null?l:Ul(t.type)||"Memo";case kt:l=t._payload,t=t._init;try{return Ul(t(l))}catch{}}return null}var Tl=Array.isArray,x=M.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=E.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},ht=[],St=-1;function d(t){return{current:t}}function z(t){0>St||(t.current=ht[St],ht[St]=null,St--)}function U(t,l){St++,ht[St]=t.current,t.current=l}var q=d(null),$=d(null),I=d(null),ot=d(null);function Kt(t,l){switch(U(I,l),U($,t),U(q,null),l.nodeType){case 9:case 11:t=(t=l.documentElement)&&(t=t.namespaceURI)?Xr(t):0;break;default:if(t=l.tagName,l=l.namespaceURI)l=Xr(l),t=Qr(l,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}z(q),U(q,t)}function At(){z(q),z($),z(I)}function Oa(t){t.memoizedState!==null&&U(ot,t);var l=q.current,e=Qr(l,t.type);l!==e&&(U($,t),U(q,e))}function zn(t){$.current===t&&(z(q),z($)),ot.current===t&&(z(ot),Sn._currentValue=J)}var Lu,yf;function ze(t){if(Lu===void 0)try{throw Error()}catch(e){var l=e.stack.trim().match(/\n( *(at )?)/);Lu=l&&l[1]||"",yf=-1<e.stack.indexOf(`
    at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Lu+t+yf}var Vu=!1;function Ku(t,l){if(!t||Vu)return"";Vu=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(l){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(S){var g=S}Reflect.construct(t,[],T)}else{try{T.call()}catch(S){g=S}t.call(T.prototype)}}else{try{throw Error()}catch(S){g=S}(T=t())&&typeof T.catch=="function"&&T.catch(function(){})}}catch(S){if(S&&g&&typeof S.stack=="string")return[S.stack,g.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(),i=u[0],f=u[1];if(i&&f){var s=i.split(`
`),v=f.split(`
`);for(n=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;n<v.length&&!v[n].includes("DetermineComponentFrameRoot");)n++;if(a===s.length||n===v.length)for(a=s.length-1,n=v.length-1;1<=a&&0<=n&&s[a]!==v[n];)n--;for(;1<=a&&0<=n;a--,n--)if(s[a]!==v[n]){if(a!==1||n!==1)do if(a--,n--,0>n||s[a]!==v[n]){var b=`
`+s[a].replace(" at new "," at ");return t.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",t.displayName)),b}while(1<=a&&0<=n);break}}}finally{Vu=!1,Error.prepareStackTrace=e}return(e=t?t.displayName||t.name:"")?ze(e):""}function Ud(t,l){switch(t.tag){case 26:case 27:case 5:return ze(t.type);case 16:return ze("Lazy");case 13:return t.child!==l&&l!==null?ze("Suspense Fallback"):ze("Suspense");case 19:return ze("SuspenseList");case 0:case 15:return Ku(t.type,!1);case 11:return Ku(t.type.render,!1);case 1:return Ku(t.type,!0);case 31:return ze("Activity");default:return""}}function vf(t){try{var l="",e=null;do l+=Ud(t,e),e=t,t=t.return;while(t);return l}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Ju=Object.prototype.hasOwnProperty,wu=o.unstable_scheduleCallback,ku=o.unstable_cancelCallback,Rd=o.unstable_shouldYield,Bd=o.unstable_requestPaint,al=o.unstable_now,Hd=o.unstable_getCurrentPriorityLevel,gf=o.unstable_ImmediatePriority,Sf=o.unstable_UserBlockingPriority,An=o.unstable_NormalPriority,qd=o.unstable_LowPriority,pf=o.unstable_IdlePriority,Yd=o.log,Gd=o.unstable_setDisableYieldValue,Na=null,nl=null;function Il(t){if(typeof Yd=="function"&&Gd(t),nl&&typeof nl.setStrictMode=="function")try{nl.setStrictMode(Na,t)}catch{}}var ul=Math.clz32?Math.clz32:Zd,Xd=Math.log,Qd=Math.LN2;function Zd(t){return t>>>=0,t===0?32:31-(Xd(t)/Qd|0)|0}var _n=256,En=262144,On=4194304;function Ae(t){var l=t&42;if(l!==0)return l;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 Nn(t,l,e){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var f=a&134217727;return f!==0?(a=f&~u,a!==0?n=Ae(a):(i&=f,i!==0?n=Ae(i):e||(e=f&~t,e!==0&&(n=Ae(e))))):(f=a&~u,f!==0?n=Ae(f):i!==0?n=Ae(i):e||(e=a&~t,e!==0&&(n=Ae(e)))),n===0?0:l!==0&&l!==n&&(l&u)===0&&(u=n&-n,e=l&-l,u>=e||u===32&&(e&4194048)!==0)?l:n}function Ma(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function Ld(t,l){switch(t){case 1:case 2:case 4:case 8:case 64:return l+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 l+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 bf(){var t=On;return On<<=1,(On&62914560)===0&&(On=4194304),t}function $u(t){for(var l=[],e=0;31>e;e++)l.push(t);return l}function Da(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Vd(t,l,e,a,n,u){var i=t.pendingLanes;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=e,t.entangledLanes&=e,t.errorRecoveryDisabledLanes&=e,t.shellSuspendCounter=0;var f=t.entanglements,s=t.expirationTimes,v=t.hiddenUpdates;for(e=i&~e;0<e;){var b=31-ul(e),T=1<<b;f[b]=0,s[b]=-1;var g=v[b];if(g!==null)for(v[b]=null,b=0;b<g.length;b++){var S=g[b];S!==null&&(S.lane&=-536870913)}e&=~T}a!==0&&xf(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~l))}function xf(t,l,e){t.pendingLanes|=l,t.suspendedLanes&=~l;var a=31-ul(l);t.entangledLanes|=l,t.entanglements[a]=t.entanglements[a]|1073741824|e&261930}function jf(t,l){var e=t.entangledLanes|=l;for(t=t.entanglements;e;){var a=31-ul(e),n=1<<a;n&l|t[a]&l&&(t[a]|=l),e&=~n}}function Tf(t,l){var e=l&-l;return e=(e&42)!==0?1:Wu(e),(e&(t.suspendedLanes|l))!==0?0:e}function Wu(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 Fu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function zf(){var t=C.p;return t!==0?t:(t=window.event,t===void 0?32:od(t.type))}function Af(t,l){var e=C.p;try{return C.p=t,l()}finally{C.p=e}}var Pl=Math.random().toString(36).slice(2),Bt="__reactFiber$"+Pl,Wt="__reactProps$"+Pl,Ve="__reactContainer$"+Pl,Iu="__reactEvents$"+Pl,Kd="__reactListeners$"+Pl,Jd="__reactHandles$"+Pl,_f="__reactResources$"+Pl,Ca="__reactMarker$"+Pl;function Pu(t){delete t[Bt],delete t[Wt],delete t[Iu],delete t[Kd],delete t[Jd]}function Ke(t){var l=t[Bt];if(l)return l;for(var e=t.parentNode;e;){if(l=e[Ve]||e[Bt]){if(e=l.alternate,l.child!==null||e!==null&&e.child!==null)for(t=kr(t);t!==null;){if(e=t[Bt])return e;t=kr(t)}return l}t=e,e=t.parentNode}return null}function Je(t){if(t=t[Bt]||t[Ve]){var l=t.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return t}return null}function Ua(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t.stateNode;throw Error(h(33))}function we(t){var l=t[_f];return l||(l=t[_f]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Ut(t){t[Ca]=!0}var Ef=new Set,Of={};function _e(t,l){ke(t,l),ke(t+"Capture",l)}function ke(t,l){for(Of[t]=l,t=0;t<l.length;t++)Ef.add(l[t])}var wd=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]*$"),Nf={},Mf={};function kd(t){return Ju.call(Mf,t)?!0:Ju.call(Nf,t)?!1:wd.test(t)?Mf[t]=!0:(Nf[t]=!0,!1)}function Mn(t,l,e){if(kd(l))if(e===null)t.removeAttribute(l);else{switch(typeof e){case"undefined":case"function":case"symbol":t.removeAttribute(l);return;case"boolean":var a=l.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(l);return}}t.setAttribute(l,""+e)}}function Dn(t,l,e){if(e===null)t.removeAttribute(l);else{switch(typeof e){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttribute(l,""+e)}}function Rl(t,l,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttributeNS(l,e,""+a)}}function hl(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Df(t){var l=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function $d(t,l,e){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,l);if(!t.hasOwnProperty(l)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,l,{configurable:!0,get:function(){return n.call(this)},set:function(i){e=""+i,u.call(this,i)}}),Object.defineProperty(t,l,{enumerable:a.enumerable}),{getValue:function(){return e},setValue:function(i){e=""+i},stopTracking:function(){t._valueTracker=null,delete t[l]}}}}function ti(t){if(!t._valueTracker){var l=Df(t)?"checked":"value";t._valueTracker=$d(t,l,""+t[l])}}function Cf(t){if(!t)return!1;var l=t._valueTracker;if(!l)return!0;var e=l.getValue(),a="";return t&&(a=Df(t)?t.checked?"true":"false":t.value),t=a,t!==e?(l.setValue(t),!0):!1}function Cn(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 Wd=/[\n"\\]/g;function ml(t){return t.replace(Wd,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function li(t,l,e,a,n,u,i,f){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),l!=null?i==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+hl(l)):t.value!==""+hl(l)&&(t.value=""+hl(l)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),l!=null?ei(t,i,hl(l)):e!=null?ei(t,i,hl(e)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+hl(f):t.removeAttribute("name")}function Uf(t,l,e,a,n,u,i,f){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),l!=null||e!=null){if(!(u!=="submit"&&u!=="reset"||l!=null)){ti(t);return}e=e!=null?""+hl(e):"",l=l!=null?""+hl(l):e,f||l===t.value||(t.value=l),t.defaultValue=l}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=f?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i),ti(t)}function ei(t,l,e){l==="number"&&Cn(t.ownerDocument)===t||t.defaultValue===""+e||(t.defaultValue=""+e)}function $e(t,l,e,a){if(t=t.options,l){l={};for(var n=0;n<e.length;n++)l["$"+e[n]]=!0;for(e=0;e<t.length;e++)n=l.hasOwnProperty("$"+t[e].value),t[e].selected!==n&&(t[e].selected=n),n&&a&&(t[e].defaultSelected=!0)}else{for(e=""+hl(e),l=null,n=0;n<t.length;n++){if(t[n].value===e){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}l!==null||t[n].disabled||(l=t[n])}l!==null&&(l.selected=!0)}}function Rf(t,l,e){if(l!=null&&(l=""+hl(l),l!==t.value&&(t.value=l),e==null)){t.defaultValue!==l&&(t.defaultValue=l);return}t.defaultValue=e!=null?""+hl(e):""}function Bf(t,l,e,a){if(l==null){if(a!=null){if(e!=null)throw Error(h(92));if(Tl(a)){if(1<a.length)throw Error(h(93));a=a[0]}e=a}e==null&&(e=""),l=e}e=hl(l),t.defaultValue=e,a=t.textContent,a===e&&a!==""&&a!==null&&(t.value=a),ti(t)}function We(t,l){if(l){var e=t.firstChild;if(e&&e===t.lastChild&&e.nodeType===3){e.nodeValue=l;return}}t.textContent=l}var Fd=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 Hf(t,l,e){var a=l.indexOf("--")===0;e==null||typeof e=="boolean"||e===""?a?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="":a?t.setProperty(l,e):typeof e!="number"||e===0||Fd.has(l)?l==="float"?t.cssFloat=e:t[l]=(""+e).trim():t[l]=e+"px"}function qf(t,l,e){if(l!=null&&typeof l!="object")throw Error(h(62));if(t=t.style,e!=null){for(var a in e)!e.hasOwnProperty(a)||l!=null&&l.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in l)a=l[n],l.hasOwnProperty(n)&&e[n]!==a&&Hf(t,n,a)}else for(var u in l)l.hasOwnProperty(u)&&Hf(t,u,l[u])}function ai(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 Id=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"]]),Pd=/^[\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 Un(t){return Pd.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Bl(){}var ni=null;function ui(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Fe=null,Ie=null;function Yf(t){var l=Je(t);if(l&&(t=l.stateNode)){var e=t[Wt]||null;t:switch(t=l.stateNode,l.type){case"input":if(li(t,e.value,e.defaultValue,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name),l=e.name,e.type==="radio"&&l!=null){for(e=t;e.parentNode;)e=e.parentNode;for(e=e.querySelectorAll('input[name="'+ml(""+l)+'"][type="radio"]'),l=0;l<e.length;l++){var a=e[l];if(a!==t&&a.form===t.form){var n=a[Wt]||null;if(!n)throw Error(h(90));li(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(l=0;l<e.length;l++)a=e[l],a.form===t.form&&Cf(a)}break t;case"textarea":Rf(t,e.value,e.defaultValue);break t;case"select":l=e.value,l!=null&&$e(t,!!e.multiple,l,!1)}}}var ii=!1;function Gf(t,l,e){if(ii)return t(l,e);ii=!0;try{var a=t(l);return a}finally{if(ii=!1,(Fe!==null||Ie!==null)&&(bu(),Fe&&(l=Fe,t=Ie,Ie=Fe=null,Yf(l),t)))for(l=0;l<t.length;l++)Yf(t[l])}}function Ra(t,l){var e=t.stateNode;if(e===null)return null;var a=e[Wt]||null;if(a===null)return null;e=a[l];t:switch(l){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(e&&typeof e!="function")throw Error(h(231,l,typeof e));return e}var Hl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ci=!1;if(Hl)try{var Ba={};Object.defineProperty(Ba,"passive",{get:function(){ci=!0}}),window.addEventListener("test",Ba,Ba),window.removeEventListener("test",Ba,Ba)}catch{ci=!1}var te=null,fi=null,Rn=null;function Xf(){if(Rn)return Rn;var t,l=fi,e=l.length,a,n="value"in te?te.value:te.textContent,u=n.length;for(t=0;t<e&&l[t]===n[t];t++);var i=e-t;for(a=1;a<=i&&l[e-a]===n[u-a];a++);return Rn=n.slice(t,1<a?1-a:void 0)}function Bn(t){var l=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&l===13&&(t=13)):t=l,t===10&&(t=13),32<=t||t===13?t:0}function Hn(){return!0}function Qf(){return!1}function Ft(t){function l(e,a,n,u,i){this._reactName=e,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var f in t)t.hasOwnProperty(f)&&(e=t[f],this[f]=e?e(u):u[f]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Hn:Qf,this.isPropagationStopped=Qf,this}return D(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!="unknown"&&(e.returnValue=!1),this.isDefaultPrevented=Hn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=Hn)},persist:function(){},isPersistent:Hn}),l}var Ee={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qn=Ft(Ee),Ha=D({},Ee,{view:0,detail:0}),th=Ft(Ha),si,oi,qa,Yn=D({},Ha,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:di,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!==qa&&(qa&&t.type==="mousemove"?(si=t.screenX-qa.screenX,oi=t.screenY-qa.screenY):oi=si=0,qa=t),si)},movementY:function(t){return"movementY"in t?t.movementY:oi}}),Zf=Ft(Yn),lh=D({},Yn,{dataTransfer:0}),eh=Ft(lh),ah=D({},Ha,{relatedTarget:0}),ri=Ft(ah),nh=D({},Ee,{animationName:0,elapsedTime:0,pseudoElement:0}),uh=Ft(nh),ih=D({},Ee,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ch=Ft(ih),fh=D({},Ee,{data:0}),Lf=Ft(fh),sh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oh={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"},rh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dh(t){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(t):(t=rh[t])?!!l[t]:!1}function di(){return dh}var hh=D({},Ha,{key:function(t){if(t.key){var l=sh[t.key]||t.key;if(l!=="Unidentified")return l}return t.type==="keypress"?(t=Bn(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?oh[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:di,charCode:function(t){return t.type==="keypress"?Bn(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Bn(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),mh=Ft(hh),yh=D({},Yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vf=Ft(yh),vh=D({},Ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:di}),gh=Ft(vh),Sh=D({},Ee,{propertyName:0,elapsedTime:0,pseudoElement:0}),ph=Ft(Sh),bh=D({},Yn,{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}),xh=Ft(bh),jh=D({},Ee,{newState:0,oldState:0}),Th=Ft(jh),zh=[9,13,27,32],hi=Hl&&"CompositionEvent"in window,Ya=null;Hl&&"documentMode"in document&&(Ya=document.documentMode);var Ah=Hl&&"TextEvent"in window&&!Ya,Kf=Hl&&(!hi||Ya&&8<Ya&&11>=Ya),Jf=" ",wf=!1;function kf(t,l){switch(t){case"keyup":return zh.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $f(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pe=!1;function _h(t,l){switch(t){case"compositionend":return $f(l);case"keypress":return l.which!==32?null:(wf=!0,Jf);case"textInput":return t=l.data,t===Jf&&wf?null:t;default:return null}}function Eh(t,l){if(Pe)return t==="compositionend"||!hi&&kf(t,l)?(t=Xf(),Rn=fi=te=null,Pe=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Kf&&l.locale!=="ko"?null:l.data;default:return null}}var Oh={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 Wf(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l==="input"?!!Oh[t.type]:l==="textarea"}function Ff(t,l,e,a){Fe?Ie?Ie.push(a):Ie=[a]:Fe=a,l=Eu(l,"onChange"),0<l.length&&(e=new qn("onChange","change",null,e,a),t.push({event:e,listeners:l}))}var Ga=null,Xa=null;function Nh(t){Rr(t,0)}function Gn(t){var l=Ua(t);if(Cf(l))return t}function If(t,l){if(t==="change")return l}var Pf=!1;if(Hl){var mi;if(Hl){var yi="oninput"in document;if(!yi){var ts=document.createElement("div");ts.setAttribute("oninput","return;"),yi=typeof ts.oninput=="function"}mi=yi}else mi=!1;Pf=mi&&(!document.documentMode||9<document.documentMode)}function ls(){Ga&&(Ga.detachEvent("onpropertychange",es),Xa=Ga=null)}function es(t){if(t.propertyName==="value"&&Gn(Xa)){var l=[];Ff(l,Xa,t,ui(t)),Gf(Nh,l)}}function Mh(t,l,e){t==="focusin"?(ls(),Ga=l,Xa=e,Ga.attachEvent("onpropertychange",es)):t==="focusout"&&ls()}function Dh(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Gn(Xa)}function Ch(t,l){if(t==="click")return Gn(l)}function Uh(t,l){if(t==="input"||t==="change")return Gn(l)}function Rh(t,l){return t===l&&(t!==0||1/t===1/l)||t!==t&&l!==l}var il=typeof Object.is=="function"?Object.is:Rh;function Qa(t,l){if(il(t,l))return!0;if(typeof t!="object"||t===null||typeof l!="object"||l===null)return!1;var e=Object.keys(t),a=Object.keys(l);if(e.length!==a.length)return!1;for(a=0;a<e.length;a++){var n=e[a];if(!Ju.call(l,n)||!il(t[n],l[n]))return!1}return!0}function as(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ns(t,l){var e=as(t);t=0;for(var a;e;){if(e.nodeType===3){if(a=t+e.textContent.length,t<=l&&a>=l)return{node:e,offset:l-t};t=a}t:{for(;e;){if(e.nextSibling){e=e.nextSibling;break t}e=e.parentNode}e=void 0}e=as(e)}}function us(t,l){return t&&l?t===l?!0:t&&t.nodeType===3?!1:l&&l.nodeType===3?us(t,l.parentNode):"contains"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):!1:!1}function is(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=Cn(t.document);l instanceof t.HTMLIFrameElement;){try{var e=typeof l.contentWindow.location.href=="string"}catch{e=!1}if(e)t=l.contentWindow;else break;l=Cn(t.document)}return l}function vi(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l&&(l==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||l==="textarea"||t.contentEditable==="true")}var Bh=Hl&&"documentMode"in document&&11>=document.documentMode,ta=null,gi=null,Za=null,Si=!1;function cs(t,l,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;Si||ta==null||ta!==Cn(a)||(a=ta,"selectionStart"in a&&vi(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}),Za&&Qa(Za,a)||(Za=a,a=Eu(gi,"onSelect"),0<a.length&&(l=new qn("onSelect","select",null,l,e),t.push({event:l,listeners:a}),l.target=ta)))}function Oe(t,l){var e={};return e[t.toLowerCase()]=l.toLowerCase(),e["Webkit"+t]="webkit"+l,e["Moz"+t]="moz"+l,e}var la={animationend:Oe("Animation","AnimationEnd"),animationiteration:Oe("Animation","AnimationIteration"),animationstart:Oe("Animation","AnimationStart"),transitionrun:Oe("Transition","TransitionRun"),transitionstart:Oe("Transition","TransitionStart"),transitioncancel:Oe("Transition","TransitionCancel"),transitionend:Oe("Transition","TransitionEnd")},pi={},fs={};Hl&&(fs=document.createElement("div").style,"AnimationEvent"in window||(delete la.animationend.animation,delete la.animationiteration.animation,delete la.animationstart.animation),"TransitionEvent"in window||delete la.transitionend.transition);function Ne(t){if(pi[t])return pi[t];if(!la[t])return t;var l=la[t],e;for(e in l)if(l.hasOwnProperty(e)&&e in fs)return pi[t]=l[e];return t}var ss=Ne("animationend"),os=Ne("animationiteration"),rs=Ne("animationstart"),Hh=Ne("transitionrun"),qh=Ne("transitionstart"),Yh=Ne("transitioncancel"),ds=Ne("transitionend"),hs=new Map,bi="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(" ");bi.push("scrollEnd");function zl(t,l){hs.set(t,l),_e(l,[t])}var Xn=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=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(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},yl=[],ea=0,xi=0;function Qn(){for(var t=ea,l=xi=ea=0;l<t;){var e=yl[l];yl[l++]=null;var a=yl[l];yl[l++]=null;var n=yl[l];yl[l++]=null;var u=yl[l];if(yl[l++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&ms(e,n,u)}}function Zn(t,l,e,a){yl[ea++]=t,yl[ea++]=l,yl[ea++]=e,yl[ea++]=a,xi|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function ji(t,l,e,a){return Zn(t,l,e,a),Ln(t)}function Me(t,l){return Zn(t,null,null,l),Ln(t)}function ms(t,l,e){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e);for(var n=!1,u=t.return;u!==null;)u.childLanes|=e,a=u.alternate,a!==null&&(a.childLanes|=e),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&&l!==null&&(n=31-ul(e),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[l]:a.push(l),l.lane=e|536870912),u):null}function Ln(t){if(50<rn)throw rn=0,Dc=null,Error(h(185));for(var l=t.return;l!==null;)t=l,l=t.return;return t.tag===3?t.stateNode:null}var aa={};function Gh(t,l,e,a){this.tag=t,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,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 cl(t,l,e,a){return new Gh(t,l,e,a)}function Ti(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ql(t,l){var e=t.alternate;return e===null?(e=cl(t.tag,l,t.key,t.mode),e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.alternate=t,t.alternate=e):(e.pendingProps=l,e.type=t.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=t.flags&65011712,e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,l=t.dependencies,e.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.refCleanup=t.refCleanup,e}function ys(t,l){t.flags&=65011714;var e=t.alternate;return e===null?(t.childLanes=0,t.lanes=l,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,t.type=e.type,l=e.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),t}function Vn(t,l,e,a,n,u){var i=0;if(a=t,typeof t=="function")Ti(t)&&(i=1);else if(typeof t=="string")i=Vm(t,e,q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case El:return t=cl(31,e,l,n),t.elementType=El,t.lanes=u,t;case it:return De(e.children,n,u,l);case gt:i=8,n|=24;break;case ut:return t=cl(12,e,l,n|2),t.elementType=ut,t.lanes=u,t;case Vt:return t=cl(13,e,l,n),t.elementType=Vt,t.lanes=u,t;case Qt:return t=cl(19,e,l,n),t.elementType=Qt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:i=10;break t;case w:i=9;break t;case Xt:i=11;break t;case at:i=14;break t;case kt:i=16,a=null;break t}i=29,e=Error(h(130,t===null?"null":typeof t,"")),a=null}return l=cl(i,e,l,n),l.elementType=t,l.type=a,l.lanes=u,l}function De(t,l,e,a){return t=cl(7,t,a,l),t.lanes=e,t}function zi(t,l,e){return t=cl(6,t,null,l),t.lanes=e,t}function vs(t){var l=cl(18,null,null,0);return l.stateNode=t,l}function Ai(t,l,e){return l=cl(4,t.children!==null?t.children:[],t.key,l),l.lanes=e,l.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},l}var gs=new WeakMap;function vl(t,l){if(typeof t=="object"&&t!==null){var e=gs.get(t);return e!==void 0?e:(l={value:t,source:l,stack:vf(l)},gs.set(t,l),l)}return{value:t,source:l,stack:vf(l)}}var na=[],ua=0,Kn=null,La=0,gl=[],Sl=0,le=null,Nl=1,Ml="";function Yl(t,l){na[ua++]=La,na[ua++]=Kn,Kn=t,La=l}function Ss(t,l,e){gl[Sl++]=Nl,gl[Sl++]=Ml,gl[Sl++]=le,le=t;var a=Nl;t=Ml;var n=32-ul(a)-1;a&=~(1<<n),e+=1;var u=32-ul(l)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Nl=1<<32-ul(l)+n|e<<n|a,Ml=u+t}else Nl=1<<u|e<<n|a,Ml=t}function _i(t){t.return!==null&&(Yl(t,1),Ss(t,1,0))}function Ei(t){for(;t===Kn;)Kn=na[--ua],na[ua]=null,La=na[--ua],na[ua]=null;for(;t===le;)le=gl[--Sl],gl[Sl]=null,Ml=gl[--Sl],gl[Sl]=null,Nl=gl[--Sl],gl[Sl]=null}function ps(t,l){gl[Sl++]=Nl,gl[Sl++]=Ml,gl[Sl++]=le,Nl=l.id,Ml=l.overflow,le=t}var Ht=null,bt=null,nt=!1,ee=null,pl=!1,Oi=Error(h(519));function ae(t){var l=Error(h(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Va(vl(l,t)),Oi}function bs(t){var l=t.stateNode,e=t.type,a=t.memoizedProps;switch(l[Bt]=t,l[Wt]=a,e){case"dialog":tt("cancel",l),tt("close",l);break;case"iframe":case"object":case"embed":tt("load",l);break;case"video":case"audio":for(e=0;e<hn.length;e++)tt(hn[e],l);break;case"source":tt("error",l);break;case"img":case"image":case"link":tt("error",l),tt("load",l);break;case"details":tt("toggle",l);break;case"input":tt("invalid",l),Uf(l,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":tt("invalid",l);break;case"textarea":tt("invalid",l),Bf(l,a.value,a.defaultValue,a.children)}e=a.children,typeof e!="string"&&typeof e!="number"&&typeof e!="bigint"||l.textContent===""+e||a.suppressHydrationWarning===!0||Yr(l.textContent,e)?(a.popover!=null&&(tt("beforetoggle",l),tt("toggle",l)),a.onScroll!=null&&tt("scroll",l),a.onScrollEnd!=null&&tt("scrollend",l),a.onClick!=null&&(l.onclick=Bl),l=!0):l=!1,l||ae(t,!0)}function xs(t){for(Ht=t.return;Ht;)switch(Ht.tag){case 5:case 31:case 13:pl=!1;return;case 27:case 3:pl=!0;return;default:Ht=Ht.return}}function ia(t){if(t!==Ht)return!1;if(!nt)return xs(t),nt=!0,!1;var l=t.tag,e;if((e=l!==3&&l!==27)&&((e=l===5)&&(e=t.type,e=!(e!=="form"&&e!=="button")||Jc(t.type,t.memoizedProps)),e=!e),e&&bt&&ae(t),xs(t),l===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(h(317));bt=wr(t)}else if(l===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(h(317));bt=wr(t)}else l===27?(l=bt,ge(t.type)?(t=Fc,Fc=null,bt=t):bt=l):bt=Ht?xl(t.stateNode.nextSibling):null;return!0}function Ce(){bt=Ht=null,nt=!1}function Ni(){var t=ee;return t!==null&&(ll===null?ll=t:ll.push.apply(ll,t),ee=null),t}function Va(t){ee===null?ee=[t]:ee.push(t)}var Mi=d(null),Ue=null,Gl=null;function ne(t,l,e){U(Mi,l._currentValue),l._currentValue=e}function Xl(t){t._currentValue=Mi.current,z(Mi)}function Di(t,l,e){for(;t!==null;){var a=t.alternate;if((t.childLanes&l)!==l?(t.childLanes|=l,a!==null&&(a.childLanes|=l)):a!==null&&(a.childLanes&l)!==l&&(a.childLanes|=l),t===e)break;t=t.return}}function Ci(t,l,e,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;t:for(;u!==null;){var f=u;u=n;for(var s=0;s<l.length;s++)if(f.context===l[s]){u.lanes|=e,f=u.alternate,f!==null&&(f.lanes|=e),Di(u.return,e,t),a||(i=null);break t}u=f.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(h(341));i.lanes|=e,u=i.alternate,u!==null&&(u.lanes|=e),Di(i,e,t),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===t){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function ca(t,l,e,a){t=null;for(var n=l,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 i=n.alternate;if(i===null)throw Error(h(387));if(i=i.memoizedProps,i!==null){var f=n.type;il(n.pendingProps.value,i.value)||(t!==null?t.push(f):t=[f])}}else if(n===ot.current){if(i=n.alternate,i===null)throw Error(h(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Sn):t=[Sn])}n=n.return}t!==null&&Ci(l,t,e,a),l.flags|=262144}function Jn(t){for(t=t.firstContext;t!==null;){if(!il(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Re(t){Ue=t,Gl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function qt(t){return js(Ue,t)}function wn(t,l){return Ue===null&&Re(t),js(t,l)}function js(t,l){var e=l._currentValue;if(l={context:l,memoizedValue:e,next:null},Gl===null){if(t===null)throw Error(h(308));Gl=l,t.dependencies={lanes:0,firstContext:l},t.flags|=524288}else Gl=Gl.next=l;return e}var Xh=typeof AbortController<"u"?AbortController:function(){var t=[],l=this.signal={aborted:!1,addEventListener:function(e,a){t.push(a)}};this.abort=function(){l.aborted=!0,t.forEach(function(e){return e()})}},Qh=o.unstable_scheduleCallback,Zh=o.unstable_NormalPriority,Ot={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ui(){return{controller:new Xh,data:new Map,refCount:0}}function Ka(t){t.refCount--,t.refCount===0&&Qh(Zh,function(){t.controller.abort()})}var Ja=null,Ri=0,fa=0,sa=null;function Lh(t,l){if(Ja===null){var e=Ja=[];Ri=0,fa=qc(),sa={status:"pending",value:void 0,then:function(a){e.push(a)}}}return Ri++,l.then(Ts,Ts),l}function Ts(){if(--Ri===0&&Ja!==null){sa!==null&&(sa.status="fulfilled");var t=Ja;Ja=null,fa=0,sa=null;for(var l=0;l<t.length;l++)(0,t[l])()}}function Vh(t,l){var e=[],a={status:"pending",value:null,reason:null,then:function(n){e.push(n)}};return t.then(function(){a.status="fulfilled",a.value=l;for(var n=0;n<e.length;n++)(0,e[n])(l)},function(n){for(a.status="rejected",a.reason=n,n=0;n<e.length;n++)(0,e[n])(void 0)}),a}var zs=x.S;x.S=function(t,l){fr=al(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&Lh(t,l),zs!==null&&zs(t,l)};var Be=d(null);function Bi(){var t=Be.current;return t!==null?t:pt.pooledCache}function kn(t,l){l===null?U(Be,Be.current):U(Be,l.pool)}function As(){var t=Bi();return t===null?null:{parent:Ot._currentValue,pool:t}}var oa=Error(h(460)),Hi=Error(h(474)),$n=Error(h(542)),Wn={then:function(){}};function _s(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Es(t,l,e){switch(e=t[e],e===void 0?t.push(l):e!==l&&(l.then(Bl,Bl),l=e),l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,Ns(t),t;default:if(typeof l.status=="string")l.then(Bl,Bl);else{if(t=pt,t!==null&&100<t.shellSuspendCounter)throw Error(h(482));t=l,t.status="pending",t.then(function(a){if(l.status==="pending"){var n=l;n.status="fulfilled",n.value=a}},function(a){if(l.status==="pending"){var n=l;n.status="rejected",n.reason=a}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,Ns(t),t}throw qe=l,oa}}function He(t){try{var l=t._init;return l(t._payload)}catch(e){throw e!==null&&typeof e=="object"&&typeof e.then=="function"?(qe=e,oa):e}}var qe=null;function Os(){if(qe===null)throw Error(h(459));var t=qe;return qe=null,t}function Ns(t){if(t===oa||t===$n)throw Error(h(483))}var ra=null,wa=0;function Fn(t){var l=wa;return wa+=1,ra===null&&(ra=[]),Es(ra,t,l)}function ka(t,l){l=l.props.ref,t.ref=l!==void 0?l:null}function In(t,l){throw l.$$typeof===O?Error(h(525)):(t=Object.prototype.toString.call(l),Error(h(31,t==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":t)))}function Ms(t){function l(m,r){if(t){var y=m.deletions;y===null?(m.deletions=[r],m.flags|=16):y.push(r)}}function e(m,r){if(!t)return null;for(;r!==null;)l(m,r),r=r.sibling;return null}function a(m){for(var r=new Map;m!==null;)m.key!==null?r.set(m.key,m):r.set(m.index,m),m=m.sibling;return r}function n(m,r){return m=ql(m,r),m.index=0,m.sibling=null,m}function u(m,r,y){return m.index=y,t?(y=m.alternate,y!==null?(y=y.index,y<r?(m.flags|=67108866,r):y):(m.flags|=67108866,r)):(m.flags|=1048576,r)}function i(m){return t&&m.alternate===null&&(m.flags|=67108866),m}function f(m,r,y,j){return r===null||r.tag!==6?(r=zi(y,m.mode,j),r.return=m,r):(r=n(r,y),r.return=m,r)}function s(m,r,y,j){var G=y.type;return G===it?b(m,r,y.props.children,j,y.key):r!==null&&(r.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===kt&&He(G)===r.type)?(r=n(r,y.props),ka(r,y),r.return=m,r):(r=Vn(y.type,y.key,y.props,null,m.mode,j),ka(r,y),r.return=m,r)}function v(m,r,y,j){return r===null||r.tag!==4||r.stateNode.containerInfo!==y.containerInfo||r.stateNode.implementation!==y.implementation?(r=Ai(y,m.mode,j),r.return=m,r):(r=n(r,y.children||[]),r.return=m,r)}function b(m,r,y,j,G){return r===null||r.tag!==7?(r=De(y,m.mode,j,G),r.return=m,r):(r=n(r,y),r.return=m,r)}function T(m,r,y){if(typeof r=="string"&&r!==""||typeof r=="number"||typeof r=="bigint")return r=zi(""+r,m.mode,y),r.return=m,r;if(typeof r=="object"&&r!==null){switch(r.$$typeof){case Q:return y=Vn(r.type,r.key,r.props,null,m.mode,y),ka(y,r),y.return=m,y;case V:return r=Ai(r,m.mode,y),r.return=m,r;case kt:return r=He(r),T(m,r,y)}if(Tl(r)||$t(r))return r=De(r,m.mode,y,null),r.return=m,r;if(typeof r.then=="function")return T(m,Fn(r),y);if(r.$$typeof===X)return T(m,wn(m,r),y);In(m,r)}return null}function g(m,r,y,j){var G=r!==null?r.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return G!==null?null:f(m,r,""+y,j);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Q:return y.key===G?s(m,r,y,j):null;case V:return y.key===G?v(m,r,y,j):null;case kt:return y=He(y),g(m,r,y,j)}if(Tl(y)||$t(y))return G!==null?null:b(m,r,y,j,null);if(typeof y.then=="function")return g(m,r,Fn(y),j);if(y.$$typeof===X)return g(m,r,wn(m,y),j);In(m,y)}return null}function S(m,r,y,j,G){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return m=m.get(y)||null,f(r,m,""+j,G);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Q:return m=m.get(j.key===null?y:j.key)||null,s(r,m,j,G);case V:return m=m.get(j.key===null?y:j.key)||null,v(r,m,j,G);case kt:return j=He(j),S(m,r,y,j,G)}if(Tl(j)||$t(j))return m=m.get(y)||null,b(r,m,j,G,null);if(typeof j.then=="function")return S(m,r,y,Fn(j),G);if(j.$$typeof===X)return S(m,r,y,wn(r,j),G);In(r,j)}return null}function H(m,r,y,j){for(var G=null,ct=null,Y=r,F=r=0,et=null;Y!==null&&F<y.length;F++){Y.index>F?(et=Y,Y=null):et=Y.sibling;var ft=g(m,Y,y[F],j);if(ft===null){Y===null&&(Y=et);break}t&&Y&&ft.alternate===null&&l(m,Y),r=u(ft,r,F),ct===null?G=ft:ct.sibling=ft,ct=ft,Y=et}if(F===y.length)return e(m,Y),nt&&Yl(m,F),G;if(Y===null){for(;F<y.length;F++)Y=T(m,y[F],j),Y!==null&&(r=u(Y,r,F),ct===null?G=Y:ct.sibling=Y,ct=Y);return nt&&Yl(m,F),G}for(Y=a(Y);F<y.length;F++)et=S(Y,m,F,y[F],j),et!==null&&(t&&et.alternate!==null&&Y.delete(et.key===null?F:et.key),r=u(et,r,F),ct===null?G=et:ct.sibling=et,ct=et);return t&&Y.forEach(function(je){return l(m,je)}),nt&&Yl(m,F),G}function Z(m,r,y,j){if(y==null)throw Error(h(151));for(var G=null,ct=null,Y=r,F=r=0,et=null,ft=y.next();Y!==null&&!ft.done;F++,ft=y.next()){Y.index>F?(et=Y,Y=null):et=Y.sibling;var je=g(m,Y,ft.value,j);if(je===null){Y===null&&(Y=et);break}t&&Y&&je.alternate===null&&l(m,Y),r=u(je,r,F),ct===null?G=je:ct.sibling=je,ct=je,Y=et}if(ft.done)return e(m,Y),nt&&Yl(m,F),G;if(Y===null){for(;!ft.done;F++,ft=y.next())ft=T(m,ft.value,j),ft!==null&&(r=u(ft,r,F),ct===null?G=ft:ct.sibling=ft,ct=ft);return nt&&Yl(m,F),G}for(Y=a(Y);!ft.done;F++,ft=y.next())ft=S(Y,m,F,ft.value,j),ft!==null&&(t&&ft.alternate!==null&&Y.delete(ft.key===null?F:ft.key),r=u(ft,r,F),ct===null?G=ft:ct.sibling=ft,ct=ft);return t&&Y.forEach(function(ly){return l(m,ly)}),nt&&Yl(m,F),G}function vt(m,r,y,j){if(typeof y=="object"&&y!==null&&y.type===it&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Q:t:{for(var G=y.key;r!==null;){if(r.key===G){if(G=y.type,G===it){if(r.tag===7){e(m,r.sibling),j=n(r,y.props.children),j.return=m,m=j;break t}}else if(r.elementType===G||typeof G=="object"&&G!==null&&G.$$typeof===kt&&He(G)===r.type){e(m,r.sibling),j=n(r,y.props),ka(j,y),j.return=m,m=j;break t}e(m,r);break}else l(m,r);r=r.sibling}y.type===it?(j=De(y.props.children,m.mode,j,y.key),j.return=m,m=j):(j=Vn(y.type,y.key,y.props,null,m.mode,j),ka(j,y),j.return=m,m=j)}return i(m);case V:t:{for(G=y.key;r!==null;){if(r.key===G)if(r.tag===4&&r.stateNode.containerInfo===y.containerInfo&&r.stateNode.implementation===y.implementation){e(m,r.sibling),j=n(r,y.children||[]),j.return=m,m=j;break t}else{e(m,r);break}else l(m,r);r=r.sibling}j=Ai(y,m.mode,j),j.return=m,m=j}return i(m);case kt:return y=He(y),vt(m,r,y,j)}if(Tl(y))return H(m,r,y,j);if($t(y)){if(G=$t(y),typeof G!="function")throw Error(h(150));return y=G.call(y),Z(m,r,y,j)}if(typeof y.then=="function")return vt(m,r,Fn(y),j);if(y.$$typeof===X)return vt(m,r,wn(m,y),j);In(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,r!==null&&r.tag===6?(e(m,r.sibling),j=n(r,y),j.return=m,m=j):(e(m,r),j=zi(y,m.mode,j),j.return=m,m=j),i(m)):e(m,r)}return function(m,r,y,j){try{wa=0;var G=vt(m,r,y,j);return ra=null,G}catch(Y){if(Y===oa||Y===$n)throw Y;var ct=cl(29,Y,null,m.mode);return ct.lanes=j,ct.return=m,ct}finally{}}}var Ye=Ms(!0),Ds=Ms(!1),ue=!1;function qi(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yi(t,l){t=t.updateQueue,l.updateQueue===t&&(l.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ie(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ce(t,l,e){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(st&2)!==0){var n=a.pending;return n===null?l.next=l:(l.next=n.next,n.next=l),a.pending=l,l=Ln(t),ms(t,null,e),l}return Zn(t,a,l,e),Ln(t)}function $a(t,l,e){if(l=l.updateQueue,l!==null&&(l=l.shared,(e&4194048)!==0)){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,jf(t,e)}}function Gi(t,l){var e=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,e===a)){var n=null,u=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,e=e.next}while(e!==null);u===null?n=u=l:u=u.next=l}else n=u=l;e={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=e;return}t=e.lastBaseUpdate,t===null?e.firstBaseUpdate=l:t.next=l,e.lastBaseUpdate=l}var Xi=!1;function Wa(){if(Xi){var t=sa;if(t!==null)throw t}}function Fa(t,l,e,a){Xi=!1;var n=t.updateQueue;ue=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var s=f,v=s.next;s.next=null,i===null?u=v:i.next=v,i=s;var b=t.alternate;b!==null&&(b=b.updateQueue,f=b.lastBaseUpdate,f!==i&&(f===null?b.firstBaseUpdate=v:f.next=v,b.lastBaseUpdate=s))}if(u!==null){var T=n.baseState;i=0,b=v=s=null,f=u;do{var g=f.lane&-536870913,S=g!==f.lane;if(S?(lt&g)===g:(a&g)===g){g!==0&&g===fa&&(Xi=!0),b!==null&&(b=b.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var H=t,Z=f;g=l;var vt=e;switch(Z.tag){case 1:if(H=Z.payload,typeof H=="function"){T=H.call(vt,T,g);break t}T=H;break t;case 3:H.flags=H.flags&-65537|128;case 0:if(H=Z.payload,g=typeof H=="function"?H.call(vt,T,g):H,g==null)break t;T=D({},T,g);break t;case 2:ue=!0}}g=f.callback,g!==null&&(t.flags|=64,S&&(t.flags|=8192),S=n.callbacks,S===null?n.callbacks=[g]:S.push(g))}else S={lane:g,tag:f.tag,payload:f.payload,callback:f.callback,next:null},b===null?(v=b=S,s=T):b=b.next=S,i|=g;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;S=f,f=S.next,S.next=null,n.lastBaseUpdate=S,n.shared.pending=null}}while(!0);b===null&&(s=T),n.baseState=s,n.firstBaseUpdate=v,n.lastBaseUpdate=b,u===null&&(n.shared.lanes=0),de|=i,t.lanes=i,t.memoizedState=T}}function Cs(t,l){if(typeof t!="function")throw Error(h(191,t));t.call(l)}function Us(t,l){var e=t.callbacks;if(e!==null)for(t.callbacks=null,t=0;t<e.length;t++)Cs(e[t],l)}var da=d(null),Pn=d(0);function Rs(t,l){t=$l,U(Pn,t),U(da,l),$l=t|l.baseLanes}function Qi(){U(Pn,$l),U(da,da.current)}function Zi(){$l=Pn.current,z(da),z(Pn)}var fl=d(null),bl=null;function fe(t){var l=t.alternate;U(_t,_t.current&1),U(fl,t),bl===null&&(l===null||da.current!==null||l.memoizedState!==null)&&(bl=t)}function Li(t){U(_t,_t.current),U(fl,t),bl===null&&(bl=t)}function Bs(t){t.tag===22?(U(_t,_t.current),U(fl,t),bl===null&&(bl=t)):se()}function se(){U(_t,_t.current),U(fl,fl.current)}function sl(t){z(fl),bl===t&&(bl=null),z(_t)}var _t=d(0);function tu(t){for(var l=t;l!==null;){if(l.tag===13){var e=l.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||$c(e)||Wc(e)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Ql=0,W=null,mt=null,Nt=null,lu=!1,ha=!1,Ge=!1,eu=0,Ia=0,ma=null,Kh=0;function Tt(){throw Error(h(321))}function Vi(t,l){if(l===null)return!1;for(var e=0;e<l.length&&e<t.length;e++)if(!il(t[e],l[e]))return!1;return!0}function Ki(t,l,e,a,n,u){return Ql=u,W=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,x.H=t===null||t.memoizedState===null?po:ic,Ge=!1,u=e(a,n),Ge=!1,ha&&(u=qs(l,e,a,n)),Hs(t),u}function Hs(t){x.H=ln;var l=mt!==null&&mt.next!==null;if(Ql=0,Nt=mt=W=null,lu=!1,Ia=0,ma=null,l)throw Error(h(300));t===null||Mt||(t=t.dependencies,t!==null&&Jn(t)&&(Mt=!0))}function qs(t,l,e,a){W=t;var n=0;do{if(ha&&(ma=null),Ia=0,ha=!1,25<=n)throw Error(h(301));if(n+=1,Nt=mt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}x.H=bo,u=l(e,a)}while(ha);return u}function Jh(){var t=x.H,l=t.useState()[0];return l=typeof l.then=="function"?Pa(l):l,t=t.useState()[0],(mt!==null?mt.memoizedState:null)!==t&&(W.flags|=1024),l}function Ji(){var t=eu!==0;return eu=0,t}function wi(t,l,e){l.updateQueue=t.updateQueue,l.flags&=-2053,t.lanes&=~e}function ki(t){if(lu){for(t=t.memoizedState;t!==null;){var l=t.queue;l!==null&&(l.pending=null),t=t.next}lu=!1}Ql=0,Nt=mt=W=null,ha=!1,Ia=eu=0,ma=null}function Jt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?W.memoizedState=Nt=t:Nt=Nt.next=t,Nt}function Et(){if(mt===null){var t=W.alternate;t=t!==null?t.memoizedState:null}else t=mt.next;var l=Nt===null?W.memoizedState:Nt.next;if(l!==null)Nt=l,mt=t;else{if(t===null)throw W.alternate===null?Error(h(467)):Error(h(310));mt=t,t={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},Nt===null?W.memoizedState=Nt=t:Nt=Nt.next=t}return Nt}function au(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pa(t){var l=Ia;return Ia+=1,ma===null&&(ma=[]),t=Es(ma,t,l),l=W,(Nt===null?l.memoizedState:Nt.next)===null&&(l=l.alternate,x.H=l===null||l.memoizedState===null?po:ic),t}function nu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Pa(t);if(t.$$typeof===X)return qt(t)}throw Error(h(438,String(t)))}function $i(t){var l=null,e=W.updateQueue;if(e!==null&&(l=e.memoCache),l==null){var a=W.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(l={data:a.data.map(function(n){return n.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),e===null&&(e=au(),W.updateQueue=e),e.memoCache=l,e=l.data[l.index],e===void 0)for(e=l.data[l.index]=Array(t),a=0;a<t;a++)e[a]=Le;return l.index++,e}function Zl(t,l){return typeof l=="function"?l(t):l}function uu(t){var l=Et();return Wi(l,mt,t)}function Wi(t,l,e){var a=t.queue;if(a===null)throw Error(h(311));a.lastRenderedReducer=e;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}l.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{l=n.next;var f=i=null,s=null,v=l,b=!1;do{var T=v.lane&-536870913;if(T!==v.lane?(lt&T)===T:(Ql&T)===T){var g=v.revertLane;if(g===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null}),T===fa&&(b=!0);else if((Ql&g)===g){v=v.next,g===fa&&(b=!0);continue}else T={lane:0,revertLane:v.revertLane,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},s===null?(f=s=T,i=u):s=s.next=T,W.lanes|=g,de|=g;T=v.action,Ge&&e(u,T),u=v.hasEagerState?v.eagerState:e(u,T)}else g={lane:T,revertLane:v.revertLane,gesture:v.gesture,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},s===null?(f=s=g,i=u):s=s.next=g,W.lanes|=T,de|=T;v=v.next}while(v!==null&&v!==l);if(s===null?i=u:s.next=f,!il(u,t.memoizedState)&&(Mt=!0,b&&(e=sa,e!==null)))throw e;t.memoizedState=u,t.baseState=i,t.baseQueue=s,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Fi(t){var l=Et(),e=l.queue;if(e===null)throw Error(h(311));e.lastRenderedReducer=t;var a=e.dispatch,n=e.pending,u=l.memoizedState;if(n!==null){e.pending=null;var i=n=n.next;do u=t(u,i.action),i=i.next;while(i!==n);il(u,l.memoizedState)||(Mt=!0),l.memoizedState=u,l.baseQueue===null&&(l.baseState=u),e.lastRenderedState=u}return[u,a]}function Ys(t,l,e){var a=W,n=Et(),u=nt;if(u){if(e===void 0)throw Error(h(407));e=e()}else e=l();var i=!il((mt||n).memoizedState,e);if(i&&(n.memoizedState=e,Mt=!0),n=n.queue,tc(Qs.bind(null,a,n,t),[t]),n.getSnapshot!==l||i||Nt!==null&&Nt.memoizedState.tag&1){if(a.flags|=2048,ya(9,{destroy:void 0},Xs.bind(null,a,n,e,l),null),pt===null)throw Error(h(349));u||(Ql&127)!==0||Gs(a,l,e)}return e}function Gs(t,l,e){t.flags|=16384,t={getSnapshot:l,value:e},l=W.updateQueue,l===null?(l=au(),W.updateQueue=l,l.stores=[t]):(e=l.stores,e===null?l.stores=[t]:e.push(t))}function Xs(t,l,e,a){l.value=e,l.getSnapshot=a,Zs(l)&&Ls(t)}function Qs(t,l,e){return e(function(){Zs(l)&&Ls(t)})}function Zs(t){var l=t.getSnapshot;t=t.value;try{var e=l();return!il(t,e)}catch{return!0}}function Ls(t){var l=Me(t,2);l!==null&&el(l,t,2)}function Ii(t){var l=Jt();if(typeof t=="function"){var e=t;if(t=e(),Ge){Il(!0);try{e()}finally{Il(!1)}}}return l.memoizedState=l.baseState=t,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:t},l}function Vs(t,l,e,a){return t.baseState=e,Wi(t,mt,typeof a=="function"?a:Zl)}function wh(t,l,e,a,n){if(fu(t))throw Error(h(485));if(t=l.action,t!==null){var u={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};x.T!==null?e(!0):u.isTransition=!1,a(u),e=l.pending,e===null?(u.next=l.pending=u,Ks(l,u)):(u.next=e.next,l.pending=e.next=u)}}function Ks(t,l){var e=l.action,a=l.payload,n=t.state;if(l.isTransition){var u=x.T,i={};x.T=i;try{var f=e(n,a),s=x.S;s!==null&&s(i,f),Js(t,l,f)}catch(v){Pi(t,l,v)}finally{u!==null&&i.types!==null&&(u.types=i.types),x.T=u}}else try{u=e(n,a),Js(t,l,u)}catch(v){Pi(t,l,v)}}function Js(t,l,e){e!==null&&typeof e=="object"&&typeof e.then=="function"?e.then(function(a){ws(t,l,a)},function(a){return Pi(t,l,a)}):ws(t,l,e)}function ws(t,l,e){l.status="fulfilled",l.value=e,ks(l),t.state=e,l=t.pending,l!==null&&(e=l.next,e===l?t.pending=null:(e=e.next,l.next=e,Ks(t,e)))}function Pi(t,l,e){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do l.status="rejected",l.reason=e,ks(l),l=l.next;while(l!==a)}t.action=null}function ks(t){t=t.listeners;for(var l=0;l<t.length;l++)(0,t[l])()}function $s(t,l){return l}function Ws(t,l){if(nt){var e=pt.formState;if(e!==null){t:{var a=W;if(nt){if(bt){l:{for(var n=bt,u=pl;n.nodeType!==8;){if(!u){n=null;break l}if(n=xl(n.nextSibling),n===null){n=null;break l}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){bt=xl(n.nextSibling),a=n.data==="F!";break t}}ae(a)}a=!1}a&&(l=e[0])}}return e=Jt(),e.memoizedState=e.baseState=l,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$s,lastRenderedState:l},e.queue=a,e=vo.bind(null,W,a),a.dispatch=e,a=Ii(!1),u=uc.bind(null,W,!1,a.queue),a=Jt(),n={state:l,dispatch:null,action:t,pending:null},a.queue=n,e=wh.bind(null,W,n,u,e),n.dispatch=e,a.memoizedState=t,[l,e,!1]}function Fs(t){var l=Et();return Is(l,mt,t)}function Is(t,l,e){if(l=Wi(t,l,$s)[0],t=uu(Zl)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var a=Pa(l)}catch(i){throw i===oa?$n:i}else a=l;l=Et();var n=l.queue,u=n.dispatch;return e!==l.memoizedState&&(W.flags|=2048,ya(9,{destroy:void 0},kh.bind(null,n,e),null)),[a,u,t]}function kh(t,l){t.action=l}function Ps(t){var l=Et(),e=mt;if(e!==null)return Is(l,e,t);Et(),l=l.memoizedState,e=Et();var a=e.queue.dispatch;return e.memoizedState=t,[l,a,!1]}function ya(t,l,e,a){return t={tag:t,create:e,deps:a,inst:l,next:null},l=W.updateQueue,l===null&&(l=au(),W.updateQueue=l),e=l.lastEffect,e===null?l.lastEffect=t.next=t:(a=e.next,e.next=t,t.next=a,l.lastEffect=t),t}function to(){return Et().memoizedState}function iu(t,l,e,a){var n=Jt();W.flags|=t,n.memoizedState=ya(1|l,{destroy:void 0},e,a===void 0?null:a)}function cu(t,l,e,a){var n=Et();a=a===void 0?null:a;var u=n.memoizedState.inst;mt!==null&&a!==null&&Vi(a,mt.memoizedState.deps)?n.memoizedState=ya(l,u,e,a):(W.flags|=t,n.memoizedState=ya(1|l,u,e,a))}function lo(t,l){iu(8390656,8,t,l)}function tc(t,l){cu(2048,8,t,l)}function $h(t){W.flags|=4;var l=W.updateQueue;if(l===null)l=au(),W.updateQueue=l,l.events=[t];else{var e=l.events;e===null?l.events=[t]:e.push(t)}}function eo(t){var l=Et().memoizedState;return $h({ref:l,nextImpl:t}),function(){if((st&2)!==0)throw Error(h(440));return l.impl.apply(void 0,arguments)}}function ao(t,l){return cu(4,2,t,l)}function no(t,l){return cu(4,4,t,l)}function uo(t,l){if(typeof l=="function"){t=t();var e=l(t);return function(){typeof e=="function"?e():l(null)}}if(l!=null)return t=t(),l.current=t,function(){l.current=null}}function io(t,l,e){e=e!=null?e.concat([t]):null,cu(4,4,uo.bind(null,l,t),e)}function lc(){}function co(t,l){var e=Et();l=l===void 0?null:l;var a=e.memoizedState;return l!==null&&Vi(l,a[1])?a[0]:(e.memoizedState=[t,l],t)}function fo(t,l){var e=Et();l=l===void 0?null:l;var a=e.memoizedState;if(l!==null&&Vi(l,a[1]))return a[0];if(a=t(),Ge){Il(!0);try{t()}finally{Il(!1)}}return e.memoizedState=[a,l],a}function ec(t,l,e){return e===void 0||(Ql&1073741824)!==0&&(lt&261930)===0?t.memoizedState=l:(t.memoizedState=e,t=or(),W.lanes|=t,de|=t,e)}function so(t,l,e,a){return il(e,l)?e:da.current!==null?(t=ec(t,e,a),il(t,l)||(Mt=!0),t):(Ql&42)===0||(Ql&1073741824)!==0&&(lt&261930)===0?(Mt=!0,t.memoizedState=e):(t=or(),W.lanes|=t,de|=t,l)}function oo(t,l,e,a,n){var u=C.p;C.p=u!==0&&8>u?u:8;var i=x.T,f={};x.T=f,uc(t,!1,l,e);try{var s=n(),v=x.S;if(v!==null&&v(f,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var b=Vh(s,a);tn(t,l,b,dl(t))}else tn(t,l,a,dl(t))}catch(T){tn(t,l,{then:function(){},status:"rejected",reason:T},dl())}finally{C.p=u,i!==null&&f.types!==null&&(i.types=f.types),x.T=i}}function Wh(){}function ac(t,l,e,a){if(t.tag!==5)throw Error(h(476));var n=ro(t).queue;oo(t,n,l,J,e===null?Wh:function(){return ho(t),e(a)})}function ro(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:J},next:null};var e={};return l.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zl,lastRenderedState:e},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function ho(t){var l=ro(t);l.next===null&&(l=t.alternate.memoizedState),tn(t,l.next.queue,{},dl())}function nc(){return qt(Sn)}function mo(){return Et().memoizedState}function yo(){return Et().memoizedState}function Fh(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var e=dl();t=ie(e);var a=ce(l,t,e);a!==null&&(el(a,l,e),$a(a,l,e)),l={cache:Ui()},t.payload=l;return}l=l.return}}function Ih(t,l,e){var a=dl();e={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},fu(t)?go(l,e):(e=ji(t,l,e,a),e!==null&&(el(e,t,a),So(e,l,a)))}function vo(t,l,e){var a=dl();tn(t,l,e,a)}function tn(t,l,e,a){var n={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(fu(t))go(l,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=l.lastRenderedReducer,u!==null))try{var i=l.lastRenderedState,f=u(i,e);if(n.hasEagerState=!0,n.eagerState=f,il(f,i))return Zn(t,l,n,0),pt===null&&Qn(),!1}catch{}finally{}if(e=ji(t,l,n,a),e!==null)return el(e,t,a),So(e,l,a),!0}return!1}function uc(t,l,e,a){if(a={lane:2,revertLane:qc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fu(t)){if(l)throw Error(h(479))}else l=ji(t,e,a,2),l!==null&&el(l,t,2)}function fu(t){var l=t.alternate;return t===W||l!==null&&l===W}function go(t,l){ha=lu=!0;var e=t.pending;e===null?l.next=l:(l.next=e.next,e.next=l),t.pending=l}function So(t,l,e){if((e&4194048)!==0){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,jf(t,e)}}var ln={readContext:qt,use:nu,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useInsertionEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useSyncExternalStore:Tt,useId:Tt,useHostTransitionStatus:Tt,useFormState:Tt,useActionState:Tt,useOptimistic:Tt,useMemoCache:Tt,useCacheRefresh:Tt};ln.useEffectEvent=Tt;var po={readContext:qt,use:nu,useCallback:function(t,l){return Jt().memoizedState=[t,l===void 0?null:l],t},useContext:qt,useEffect:lo,useImperativeHandle:function(t,l,e){e=e!=null?e.concat([t]):null,iu(4194308,4,uo.bind(null,l,t),e)},useLayoutEffect:function(t,l){return iu(4194308,4,t,l)},useInsertionEffect:function(t,l){iu(4,2,t,l)},useMemo:function(t,l){var e=Jt();l=l===void 0?null:l;var a=t();if(Ge){Il(!0);try{t()}finally{Il(!1)}}return e.memoizedState=[a,l],a},useReducer:function(t,l,e){var a=Jt();if(e!==void 0){var n=e(l);if(Ge){Il(!0);try{e(l)}finally{Il(!1)}}}else n=l;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=Ih.bind(null,W,t),[a.memoizedState,t]},useRef:function(t){var l=Jt();return t={current:t},l.memoizedState=t},useState:function(t){t=Ii(t);var l=t.queue,e=vo.bind(null,W,l);return l.dispatch=e,[t.memoizedState,e]},useDebugValue:lc,useDeferredValue:function(t,l){var e=Jt();return ec(e,t,l)},useTransition:function(){var t=Ii(!1);return t=oo.bind(null,W,t.queue,!0,!1),Jt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,l,e){var a=W,n=Jt();if(nt){if(e===void 0)throw Error(h(407));e=e()}else{if(e=l(),pt===null)throw Error(h(349));(lt&127)!==0||Gs(a,l,e)}n.memoizedState=e;var u={value:e,getSnapshot:l};return n.queue=u,lo(Qs.bind(null,a,u,t),[t]),a.flags|=2048,ya(9,{destroy:void 0},Xs.bind(null,a,u,e,l),null),e},useId:function(){var t=Jt(),l=pt.identifierPrefix;if(nt){var e=Ml,a=Nl;e=(a&~(1<<32-ul(a)-1)).toString(32)+e,l="_"+l+"R_"+e,e=eu++,0<e&&(l+="H"+e.toString(32)),l+="_"}else e=Kh++,l="_"+l+"r_"+e.toString(32)+"_";return t.memoizedState=l},useHostTransitionStatus:nc,useFormState:Ws,useActionState:Ws,useOptimistic:function(t){var l=Jt();l.memoizedState=l.baseState=t;var e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=e,l=uc.bind(null,W,!0,e),e.dispatch=l,[t,l]},useMemoCache:$i,useCacheRefresh:function(){return Jt().memoizedState=Fh.bind(null,W)},useEffectEvent:function(t){var l=Jt(),e={impl:t};return l.memoizedState=e,function(){if((st&2)!==0)throw Error(h(440));return e.impl.apply(void 0,arguments)}}},ic={readContext:qt,use:nu,useCallback:co,useContext:qt,useEffect:tc,useImperativeHandle:io,useInsertionEffect:ao,useLayoutEffect:no,useMemo:fo,useReducer:uu,useRef:to,useState:function(){return uu(Zl)},useDebugValue:lc,useDeferredValue:function(t,l){var e=Et();return so(e,mt.memoizedState,t,l)},useTransition:function(){var t=uu(Zl)[0],l=Et().memoizedState;return[typeof t=="boolean"?t:Pa(t),l]},useSyncExternalStore:Ys,useId:mo,useHostTransitionStatus:nc,useFormState:Fs,useActionState:Fs,useOptimistic:function(t,l){var e=Et();return Vs(e,mt,t,l)},useMemoCache:$i,useCacheRefresh:yo};ic.useEffectEvent=eo;var bo={readContext:qt,use:nu,useCallback:co,useContext:qt,useEffect:tc,useImperativeHandle:io,useInsertionEffect:ao,useLayoutEffect:no,useMemo:fo,useReducer:Fi,useRef:to,useState:function(){return Fi(Zl)},useDebugValue:lc,useDeferredValue:function(t,l){var e=Et();return mt===null?ec(e,t,l):so(e,mt.memoizedState,t,l)},useTransition:function(){var t=Fi(Zl)[0],l=Et().memoizedState;return[typeof t=="boolean"?t:Pa(t),l]},useSyncExternalStore:Ys,useId:mo,useHostTransitionStatus:nc,useFormState:Ps,useActionState:Ps,useOptimistic:function(t,l){var e=Et();return mt!==null?Vs(e,mt,t,l):(e.baseState=t,[t,e.queue.dispatch])},useMemoCache:$i,useCacheRefresh:yo};bo.useEffectEvent=eo;function cc(t,l,e,a){l=t.memoizedState,e=e(a,l),e=e==null?l:D({},l,e),t.memoizedState=e,t.lanes===0&&(t.updateQueue.baseState=e)}var fc={enqueueSetState:function(t,l,e){t=t._reactInternals;var a=dl(),n=ie(a);n.payload=l,e!=null&&(n.callback=e),l=ce(t,n,a),l!==null&&(el(l,t,a),$a(l,t,a))},enqueueReplaceState:function(t,l,e){t=t._reactInternals;var a=dl(),n=ie(a);n.tag=1,n.payload=l,e!=null&&(n.callback=e),l=ce(t,n,a),l!==null&&(el(l,t,a),$a(l,t,a))},enqueueForceUpdate:function(t,l){t=t._reactInternals;var e=dl(),a=ie(e);a.tag=2,l!=null&&(a.callback=l),l=ce(t,a,e),l!==null&&(el(l,t,e),$a(l,t,e))}};function xo(t,l,e,a,n,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,i):l.prototype&&l.prototype.isPureReactComponent?!Qa(e,a)||!Qa(n,u):!0}function jo(t,l,e,a){t=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(e,a),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(e,a),l.state!==t&&fc.enqueueReplaceState(l,l.state,null)}function Xe(t,l){var e=l;if("ref"in l){e={};for(var a in l)a!=="ref"&&(e[a]=l[a])}if(t=t.defaultProps){e===l&&(e=D({},e));for(var n in t)e[n]===void 0&&(e[n]=t[n])}return e}function To(t){Xn(t)}function zo(t){console.error(t)}function Ao(t){Xn(t)}function su(t,l){try{var e=t.onUncaughtError;e(l.value,{componentStack:l.stack})}catch(a){setTimeout(function(){throw a})}}function _o(t,l,e){try{var a=t.onCaughtError;a(e.value,{componentStack:e.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function sc(t,l,e){return e=ie(e),e.tag=3,e.payload={element:null},e.callback=function(){su(t,l)},e}function Eo(t){return t=ie(t),t.tag=3,t}function Oo(t,l,e,a){var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){_o(l,e,a)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){_o(l,e,a),typeof n!="function"&&(he===null?he=new Set([this]):he.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function Ph(t,l,e,a,n){if(e.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(l=e.alternate,l!==null&&ca(l,e,n,!0),e=fl.current,e!==null){switch(e.tag){case 31:case 13:return bl===null?xu():e.alternate===null&&zt===0&&(zt=3),e.flags&=-257,e.flags|=65536,e.lanes=n,a===Wn?e.flags|=16384:(l=e.updateQueue,l===null?e.updateQueue=new Set([a]):l.add(a),Rc(t,a,n)),!1;case 22:return e.flags|=65536,a===Wn?e.flags|=16384:(l=e.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([a])},e.updateQueue=l):(e=l.retryQueue,e===null?l.retryQueue=new Set([a]):e.add(a)),Rc(t,a,n)),!1}throw Error(h(435,e.tag))}return Rc(t,a,n),xu(),!1}if(nt)return l=fl.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=n,a!==Oi&&(t=Error(h(422),{cause:a}),Va(vl(t,e)))):(a!==Oi&&(l=Error(h(423),{cause:a}),Va(vl(l,e))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=vl(a,e),n=sc(t.stateNode,a,n),Gi(t,n),zt!==4&&(zt=2)),!1;var u=Error(h(520),{cause:a});if(u=vl(u,e),on===null?on=[u]:on.push(u),zt!==4&&(zt=2),l===null)return!0;a=vl(a,e),e=l;do{switch(e.tag){case 3:return e.flags|=65536,t=n&-n,e.lanes|=t,t=sc(e.stateNode,a,t),Gi(e,t),!1;case 1:if(l=e.type,u=e.stateNode,(e.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(he===null||!he.has(u))))return e.flags|=65536,n&=-n,e.lanes|=n,n=Eo(n),Oo(n,t,e,a),Gi(e,n),!1}e=e.return}while(e!==null);return!1}var oc=Error(h(461)),Mt=!1;function Yt(t,l,e,a){l.child=t===null?Ds(l,null,e,a):Ye(l,t.child,e,a)}function No(t,l,e,a,n){e=e.render;var u=l.ref;if("ref"in a){var i={};for(var f in a)f!=="ref"&&(i[f]=a[f])}else i=a;return Re(l),a=Ki(t,l,e,i,u,n),f=Ji(),t!==null&&!Mt?(wi(t,l,n),Ll(t,l,n)):(nt&&f&&_i(l),l.flags|=1,Yt(t,l,a,n),l.child)}function Mo(t,l,e,a,n){if(t===null){var u=e.type;return typeof u=="function"&&!Ti(u)&&u.defaultProps===void 0&&e.compare===null?(l.tag=15,l.type=u,Do(t,l,u,a,n)):(t=Vn(e.type,null,a,l,l.mode,n),t.ref=l.ref,t.return=l,l.child=t)}if(u=t.child,!Sc(t,n)){var i=u.memoizedProps;if(e=e.compare,e=e!==null?e:Qa,e(i,a)&&t.ref===l.ref)return Ll(t,l,n)}return l.flags|=1,t=ql(u,a),t.ref=l.ref,t.return=l,l.child=t}function Do(t,l,e,a,n){if(t!==null){var u=t.memoizedProps;if(Qa(u,a)&&t.ref===l.ref)if(Mt=!1,l.pendingProps=a=u,Sc(t,n))(t.flags&131072)!==0&&(Mt=!0);else return l.lanes=t.lanes,Ll(t,l,n)}return rc(t,l,e,a,n)}function Co(t,l,e,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((l.flags&128)!==0){if(u=u!==null?u.baseLanes|e:e,t!==null){for(a=l.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,l.child=null;return Uo(t,l,u,e,a)}if((e&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},t!==null&&kn(l,u!==null?u.cachePool:null),u!==null?Rs(l,u):Qi(),Bs(l);else return a=l.lanes=536870912,Uo(t,l,u!==null?u.baseLanes|e:e,e,a)}else u!==null?(kn(l,u.cachePool),Rs(l,u),se(),l.memoizedState=null):(t!==null&&kn(l,null),Qi(),se());return Yt(t,l,n,e),l.child}function en(t,l){return t!==null&&t.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Uo(t,l,e,a,n){var u=Bi();return u=u===null?null:{parent:Ot._currentValue,pool:u},l.memoizedState={baseLanes:e,cachePool:u},t!==null&&kn(l,null),Qi(),Bs(l),t!==null&&ca(t,l,a,!0),l.childLanes=n,null}function ou(t,l){return l=du({mode:l.mode,children:l.children},t.mode),l.ref=t.ref,t.child=l,l.return=t,l}function Ro(t,l,e){return Ye(l,t.child,null,e),t=ou(l,l.pendingProps),t.flags|=2,sl(l),l.memoizedState=null,t}function tm(t,l,e){var a=l.pendingProps,n=(l.flags&128)!==0;if(l.flags&=-129,t===null){if(nt){if(a.mode==="hidden")return t=ou(l,a),l.lanes=536870912,en(null,t);if(Li(l),(t=bt)?(t=Jr(t,pl),t=t!==null&&t.data==="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:le!==null?{id:Nl,overflow:Ml}:null,retryLane:536870912,hydrationErrors:null},e=vs(t),e.return=l,l.child=e,Ht=l,bt=null)):t=null,t===null)throw ae(l);return l.lanes=536870912,null}return ou(l,a)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(Li(l),n)if(l.flags&256)l.flags&=-257,l=Ro(t,l,e);else if(l.memoizedState!==null)l.child=t.child,l.flags|=128,l=null;else throw Error(h(558));else if(Mt||ca(t,l,e,!1),n=(e&t.childLanes)!==0,Mt||n){if(a=pt,a!==null&&(i=Tf(a,e),i!==0&&i!==u.retryLane))throw u.retryLane=i,Me(t,i),el(a,t,i),oc;xu(),l=Ro(t,l,e)}else t=u.treeContext,bt=xl(i.nextSibling),Ht=l,nt=!0,ee=null,pl=!1,t!==null&&ps(l,t),l=ou(l,a),l.flags|=4096;return l}return t=ql(t.child,{mode:a.mode,children:a.children}),t.ref=l.ref,l.child=t,t.return=l,t}function ru(t,l){var e=l.ref;if(e===null)t!==null&&t.ref!==null&&(l.flags|=4194816);else{if(typeof e!="function"&&typeof e!="object")throw Error(h(284));(t===null||t.ref!==e)&&(l.flags|=4194816)}}function rc(t,l,e,a,n){return Re(l),e=Ki(t,l,e,a,void 0,n),a=Ji(),t!==null&&!Mt?(wi(t,l,n),Ll(t,l,n)):(nt&&a&&_i(l),l.flags|=1,Yt(t,l,e,n),l.child)}function Bo(t,l,e,a,n,u){return Re(l),l.updateQueue=null,e=qs(l,a,e,n),Hs(t),a=Ji(),t!==null&&!Mt?(wi(t,l,u),Ll(t,l,u)):(nt&&a&&_i(l),l.flags|=1,Yt(t,l,e,u),l.child)}function Ho(t,l,e,a,n){if(Re(l),l.stateNode===null){var u=aa,i=e.contextType;typeof i=="object"&&i!==null&&(u=qt(i)),u=new e(a,u),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=fc,l.stateNode=u,u._reactInternals=l,u=l.stateNode,u.props=a,u.state=l.memoizedState,u.refs={},qi(l),i=e.contextType,u.context=typeof i=="object"&&i!==null?qt(i):aa,u.state=l.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(cc(l,e,i,a),u.state=l.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&fc.enqueueReplaceState(u,u.state,null),Fa(l,a,u,n),Wa(),u.state=l.memoizedState),typeof u.componentDidMount=="function"&&(l.flags|=4194308),a=!0}else if(t===null){u=l.stateNode;var f=l.memoizedProps,s=Xe(e,f);u.props=s;var v=u.context,b=e.contextType;i=aa,typeof b=="object"&&b!==null&&(i=qt(b));var T=e.getDerivedStateFromProps;b=typeof T=="function"||typeof u.getSnapshotBeforeUpdate=="function",f=l.pendingProps!==f,b||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f||v!==i)&&jo(l,u,a,i),ue=!1;var g=l.memoizedState;u.state=g,Fa(l,a,u,n),Wa(),v=l.memoizedState,f||g!==v||ue?(typeof T=="function"&&(cc(l,e,T,a),v=l.memoizedState),(s=ue||xo(l,e,s,a,g,v,i))?(b||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"&&(l.flags|=4194308)):(typeof u.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=a,l.memoizedState=v),u.props=a,u.state=v,u.context=i,a=s):(typeof u.componentDidMount=="function"&&(l.flags|=4194308),a=!1)}else{u=l.stateNode,Yi(t,l),i=l.memoizedProps,b=Xe(e,i),u.props=b,T=l.pendingProps,g=u.context,v=e.contextType,s=aa,typeof v=="object"&&v!==null&&(s=qt(v)),f=e.getDerivedStateFromProps,(v=typeof f=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==T||g!==s)&&jo(l,u,a,s),ue=!1,g=l.memoizedState,u.state=g,Fa(l,a,u,n),Wa();var S=l.memoizedState;i!==T||g!==S||ue||t!==null&&t.dependencies!==null&&Jn(t.dependencies)?(typeof f=="function"&&(cc(l,e,f,a),S=l.memoizedState),(b=ue||xo(l,e,b,a,g,S,s)||t!==null&&t.dependencies!==null&&Jn(t.dependencies))?(v||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,S,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,S,s)),typeof u.componentDidUpdate=="function"&&(l.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&g===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&g===t.memoizedState||(l.flags|=1024),l.memoizedProps=a,l.memoizedState=S),u.props=a,u.state=S,u.context=s,a=b):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&g===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&g===t.memoizedState||(l.flags|=1024),a=!1)}return u=a,ru(t,l),a=(l.flags&128)!==0,u||a?(u=l.stateNode,e=a&&typeof e.getDerivedStateFromError!="function"?null:u.render(),l.flags|=1,t!==null&&a?(l.child=Ye(l,t.child,null,n),l.child=Ye(l,null,e,n)):Yt(t,l,e,n),l.memoizedState=u.state,t=l.child):t=Ll(t,l,n),t}function qo(t,l,e,a){return Ce(),l.flags|=256,Yt(t,l,e,a),l.child}var dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hc(t){return{baseLanes:t,cachePool:As()}}function mc(t,l,e){return t=t!==null?t.childLanes&~e:0,l&&(t|=rl),t}function Yo(t,l,e){var a=l.pendingProps,n=!1,u=(l.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(_t.current&2)!==0),i&&(n=!0,l.flags&=-129),i=(l.flags&32)!==0,l.flags&=-33,t===null){if(nt){if(n?fe(l):se(),(t=bt)?(t=Jr(t,pl),t=t!==null&&t.data!=="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:le!==null?{id:Nl,overflow:Ml}:null,retryLane:536870912,hydrationErrors:null},e=vs(t),e.return=l,l.child=e,Ht=l,bt=null)):t=null,t===null)throw ae(l);return Wc(t)?l.lanes=32:l.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(se(),n=l.mode,f=du({mode:"hidden",children:f},n),a=De(a,n,e,null),f.return=l,a.return=l,f.sibling=a,l.child=f,a=l.child,a.memoizedState=hc(e),a.childLanes=mc(t,i,e),l.memoizedState=dc,en(null,a)):(fe(l),yc(l,f))}var s=t.memoizedState;if(s!==null&&(f=s.dehydrated,f!==null)){if(u)l.flags&256?(fe(l),l.flags&=-257,l=vc(t,l,e)):l.memoizedState!==null?(se(),l.child=t.child,l.flags|=128,l=null):(se(),f=a.fallback,n=l.mode,a=du({mode:"visible",children:a.children},n),f=De(f,n,e,null),f.flags|=2,a.return=l,f.return=l,a.sibling=f,l.child=a,Ye(l,t.child,null,e),a=l.child,a.memoizedState=hc(e),a.childLanes=mc(t,i,e),l.memoizedState=dc,l=en(null,a));else if(fe(l),Wc(f)){if(i=f.nextSibling&&f.nextSibling.dataset,i)var v=i.dgst;i=v,a=Error(h(419)),a.stack="",a.digest=i,Va({value:a,source:null,stack:null}),l=vc(t,l,e)}else if(Mt||ca(t,l,e,!1),i=(e&t.childLanes)!==0,Mt||i){if(i=pt,i!==null&&(a=Tf(i,e),a!==0&&a!==s.retryLane))throw s.retryLane=a,Me(t,a),el(i,t,a),oc;$c(f)||xu(),l=vc(t,l,e)}else $c(f)?(l.flags|=192,l.child=t.child,l=null):(t=s.treeContext,bt=xl(f.nextSibling),Ht=l,nt=!0,ee=null,pl=!1,t!==null&&ps(l,t),l=yc(l,a.children),l.flags|=4096);return l}return n?(se(),f=a.fallback,n=l.mode,s=t.child,v=s.sibling,a=ql(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,v!==null?f=ql(v,f):(f=De(f,n,e,null),f.flags|=2),f.return=l,a.return=l,a.sibling=f,l.child=a,en(null,a),a=l.child,f=t.child.memoizedState,f===null?f=hc(e):(n=f.cachePool,n!==null?(s=Ot._currentValue,n=n.parent!==s?{parent:s,pool:s}:n):n=As(),f={baseLanes:f.baseLanes|e,cachePool:n}),a.memoizedState=f,a.childLanes=mc(t,i,e),l.memoizedState=dc,en(t.child,a)):(fe(l),e=t.child,t=e.sibling,e=ql(e,{mode:"visible",children:a.children}),e.return=l,e.sibling=null,t!==null&&(i=l.deletions,i===null?(l.deletions=[t],l.flags|=16):i.push(t)),l.child=e,l.memoizedState=null,e)}function yc(t,l){return l=du({mode:"visible",children:l},t.mode),l.return=t,t.child=l}function du(t,l){return t=cl(22,t,null,l),t.lanes=0,t}function vc(t,l,e){return Ye(l,t.child,null,e),t=yc(l,l.pendingProps.children),t.flags|=2,l.memoizedState=null,t}function Go(t,l,e){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l),Di(t.return,l,e)}function gc(t,l,e,a,n,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:a,tail:e,tailMode:n,treeForkCount:u}:(i.isBackwards=l,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=e,i.tailMode=n,i.treeForkCount=u)}function Xo(t,l,e){var a=l.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=_t.current,f=(i&2)!==0;if(f?(i=i&1|2,l.flags|=128):i&=1,U(_t,i),Yt(t,l,a,e),a=nt?La:0,!f&&t!==null&&(t.flags&128)!==0)t:for(t=l.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Go(t,e,l);else if(t.tag===19)Go(t,e,l);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break t;for(;t.sibling===null;){if(t.return===null||t.return===l)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(e=l.child,n=null;e!==null;)t=e.alternate,t!==null&&tu(t)===null&&(n=e),e=e.sibling;e=n,e===null?(n=l.child,l.child=null):(n=e.sibling,e.sibling=null),gc(l,!1,n,e,u,a);break;case"backwards":case"unstable_legacy-backwards":for(e=null,n=l.child,l.child=null;n!==null;){if(t=n.alternate,t!==null&&tu(t)===null){l.child=n;break}t=n.sibling,n.sibling=e,e=n,n=t}gc(l,!0,e,null,u,a);break;case"together":gc(l,!1,null,null,void 0,a);break;default:l.memoizedState=null}return l.child}function Ll(t,l,e){if(t!==null&&(l.dependencies=t.dependencies),de|=l.lanes,(e&l.childLanes)===0)if(t!==null){if(ca(t,l,e,!1),(e&l.childLanes)===0)return null}else return null;if(t!==null&&l.child!==t.child)throw Error(h(153));if(l.child!==null){for(t=l.child,e=ql(t,t.pendingProps),l.child=e,e.return=l;t.sibling!==null;)t=t.sibling,e=e.sibling=ql(t,t.pendingProps),e.return=l;e.sibling=null}return l.child}function Sc(t,l){return(t.lanes&l)!==0?!0:(t=t.dependencies,!!(t!==null&&Jn(t)))}function lm(t,l,e){switch(l.tag){case 3:Kt(l,l.stateNode.containerInfo),ne(l,Ot,t.memoizedState.cache),Ce();break;case 27:case 5:Oa(l);break;case 4:Kt(l,l.stateNode.containerInfo);break;case 10:ne(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Li(l),null;break;case 13:var a=l.memoizedState;if(a!==null)return a.dehydrated!==null?(fe(l),l.flags|=128,null):(e&l.child.childLanes)!==0?Yo(t,l,e):(fe(l),t=Ll(t,l,e),t!==null?t.sibling:null);fe(l);break;case 19:var n=(t.flags&128)!==0;if(a=(e&l.childLanes)!==0,a||(ca(t,l,e,!1),a=(e&l.childLanes)!==0),n){if(a)return Xo(t,l,e);l.flags|=128}if(n=l.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),U(_t,_t.current),a)break;return null;case 22:return l.lanes=0,Co(t,l,e,l.pendingProps);case 24:ne(l,Ot,t.memoizedState.cache)}return Ll(t,l,e)}function Qo(t,l,e){if(t!==null)if(t.memoizedProps!==l.pendingProps)Mt=!0;else{if(!Sc(t,e)&&(l.flags&128)===0)return Mt=!1,lm(t,l,e);Mt=(t.flags&131072)!==0}else Mt=!1,nt&&(l.flags&1048576)!==0&&Ss(l,La,l.index);switch(l.lanes=0,l.tag){case 16:t:{var a=l.pendingProps;if(t=He(l.elementType),l.type=t,typeof t=="function")Ti(t)?(a=Xe(t,a),l.tag=1,l=Ho(null,l,t,a,e)):(l.tag=0,l=rc(null,l,t,a,e));else{if(t!=null){var n=t.$$typeof;if(n===Xt){l.tag=11,l=No(null,l,t,a,e);break t}else if(n===at){l.tag=14,l=Mo(null,l,t,a,e);break t}}throw l=Ul(t)||t,Error(h(306,l,""))}}return l;case 0:return rc(t,l,l.type,l.pendingProps,e);case 1:return a=l.type,n=Xe(a,l.pendingProps),Ho(t,l,a,n,e);case 3:t:{if(Kt(l,l.stateNode.containerInfo),t===null)throw Error(h(387));a=l.pendingProps;var u=l.memoizedState;n=u.element,Yi(t,l),Fa(l,a,null,e);var i=l.memoizedState;if(a=i.cache,ne(l,Ot,a),a!==u.cache&&Ci(l,[Ot],e,!0),Wa(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},l.updateQueue.baseState=u,l.memoizedState=u,l.flags&256){l=qo(t,l,a,e);break t}else if(a!==n){n=vl(Error(h(424)),l),Va(n),l=qo(t,l,a,e);break t}else{switch(t=l.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(bt=xl(t.firstChild),Ht=l,nt=!0,ee=null,pl=!0,e=Ds(l,null,a,e),l.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(Ce(),a===n){l=Ll(t,l,e);break t}Yt(t,l,a,e)}l=l.child}return l;case 26:return ru(t,l),t===null?(e=Ir(l.type,null,l.pendingProps,null))?l.memoizedState=e:nt||(e=l.type,t=l.pendingProps,a=Ou(I.current).createElement(e),a[Bt]=l,a[Wt]=t,Gt(a,e,t),Ut(a),l.stateNode=a):l.memoizedState=Ir(l.type,t.memoizedProps,l.pendingProps,t.memoizedState),null;case 27:return Oa(l),t===null&&nt&&(a=l.stateNode=$r(l.type,l.pendingProps,I.current),Ht=l,pl=!0,n=bt,ge(l.type)?(Fc=n,bt=xl(a.firstChild)):bt=n),Yt(t,l,l.pendingProps.children,e),ru(t,l),t===null&&(l.flags|=4194304),l.child;case 5:return t===null&&nt&&((n=a=bt)&&(a=Dm(a,l.type,l.pendingProps,pl),a!==null?(l.stateNode=a,Ht=l,bt=xl(a.firstChild),pl=!1,n=!0):n=!1),n||ae(l)),Oa(l),n=l.type,u=l.pendingProps,i=t!==null?t.memoizedProps:null,a=u.children,Jc(n,u)?a=null:i!==null&&Jc(n,i)&&(l.flags|=32),l.memoizedState!==null&&(n=Ki(t,l,Jh,null,null,e),Sn._currentValue=n),ru(t,l),Yt(t,l,a,e),l.child;case 6:return t===null&&nt&&((t=e=bt)&&(e=Cm(e,l.pendingProps,pl),e!==null?(l.stateNode=e,Ht=l,bt=null,t=!0):t=!1),t||ae(l)),null;case 13:return Yo(t,l,e);case 4:return Kt(l,l.stateNode.containerInfo),a=l.pendingProps,t===null?l.child=Ye(l,null,a,e):Yt(t,l,a,e),l.child;case 11:return No(t,l,l.type,l.pendingProps,e);case 7:return Yt(t,l,l.pendingProps,e),l.child;case 8:return Yt(t,l,l.pendingProps.children,e),l.child;case 12:return Yt(t,l,l.pendingProps.children,e),l.child;case 10:return a=l.pendingProps,ne(l,l.type,a.value),Yt(t,l,a.children,e),l.child;case 9:return n=l.type._context,a=l.pendingProps.children,Re(l),n=qt(n),a=a(n),l.flags|=1,Yt(t,l,a,e),l.child;case 14:return Mo(t,l,l.type,l.pendingProps,e);case 15:return Do(t,l,l.type,l.pendingProps,e);case 19:return Xo(t,l,e);case 31:return tm(t,l,e);case 22:return Co(t,l,e,l.pendingProps);case 24:return Re(l),a=qt(Ot),t===null?(n=Bi(),n===null&&(n=pt,u=Ui(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=e),n=u),l.memoizedState={parent:a,cache:n},qi(l),ne(l,Ot,n)):((t.lanes&e)!==0&&(Yi(t,l),Fa(l,null,null,e),Wa()),n=t.memoizedState,u=l.memoizedState,n.parent!==a?(n={parent:a,cache:a},l.memoizedState=n,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=n),ne(l,Ot,a)):(a=u.cache,ne(l,Ot,a),a!==n.cache&&Ci(l,[Ot],e,!0))),Yt(t,l,l.pendingProps.children,e),l.child;case 29:throw l.pendingProps}throw Error(h(156,l.tag))}function Vl(t){t.flags|=4}function pc(t,l,e,a,n){if((l=(t.mode&32)!==0)&&(l=!1),l){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(mr())t.flags|=8192;else throw qe=Wn,Hi}else t.flags&=-16777217}function Zo(t,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!ad(l))if(mr())t.flags|=8192;else throw qe=Wn,Hi}function hu(t,l){l!==null&&(t.flags|=4),t.flags&16384&&(l=t.tag!==22?bf():536870912,t.lanes|=l,pa|=l)}function an(t,l){if(!nt)switch(t.tailMode){case"hidden":l=t.tail;for(var e=null;l!==null;)l.alternate!==null&&(e=l),l=l.sibling;e===null?t.tail=null:e.sibling=null;break;case"collapsed":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?l||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function xt(t){var l=t.alternate!==null&&t.alternate.child===t.child,e=0,a=0;if(l)for(var n=t.child;n!==null;)e|=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;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=e,l}function em(t,l,e){var a=l.pendingProps;switch(Ei(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(l),null;case 1:return xt(l),null;case 3:return e=l.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),l.memoizedState.cache!==a&&(l.flags|=2048),Xl(Ot),At(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(t===null||t.child===null)&&(ia(l)?Vl(l):t===null||t.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Ni())),xt(l),null;case 26:var n=l.type,u=l.memoizedState;return t===null?(Vl(l),u!==null?(xt(l),Zo(l,u)):(xt(l),pc(l,n,null,a,e))):u?u!==t.memoizedState?(Vl(l),xt(l),Zo(l,u)):(xt(l),l.flags&=-16777217):(t=t.memoizedProps,t!==a&&Vl(l),xt(l),pc(l,n,t,a,e)),null;case 27:if(zn(l),e=I.current,n=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==a&&Vl(l);else{if(!a){if(l.stateNode===null)throw Error(h(166));return xt(l),null}t=q.current,ia(l)?bs(l):(t=$r(n,a,e),l.stateNode=t,Vl(l))}return xt(l),null;case 5:if(zn(l),n=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==a&&Vl(l);else{if(!a){if(l.stateNode===null)throw Error(h(166));return xt(l),null}if(u=q.current,ia(l))bs(l);else{var i=Ou(I.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[Bt]=l,u[Wt]=a;t:for(i=l.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break t;for(;i.sibling===null;){if(i.return===null||i.return===l)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}l.stateNode=u;t:switch(Gt(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&&Vl(l)}}return xt(l),pc(l,l.type,t===null?null:t.memoizedProps,l.pendingProps,e),null;case 6:if(t&&l.stateNode!=null)t.memoizedProps!==a&&Vl(l);else{if(typeof a!="string"&&l.stateNode===null)throw Error(h(166));if(t=I.current,ia(l)){if(t=l.stateNode,e=l.memoizedProps,a=null,n=Ht,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[Bt]=l,t=!!(t.nodeValue===e||a!==null&&a.suppressHydrationWarning===!0||Yr(t.nodeValue,e)),t||ae(l,!0)}else t=Ou(t).createTextNode(a),t[Bt]=l,l.stateNode=t}return xt(l),null;case 31:if(e=l.memoizedState,t===null||t.memoizedState!==null){if(a=ia(l),e!==null){if(t===null){if(!a)throw Error(h(318));if(t=l.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(h(557));t[Bt]=l}else Ce(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;xt(l),t=!1}else e=Ni(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=e),t=!0;if(!t)return l.flags&256?(sl(l),l):(sl(l),null);if((l.flags&128)!==0)throw Error(h(558))}return xt(l),null;case 13:if(a=l.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=ia(l),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(h(318));if(n=l.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(h(317));n[Bt]=l}else Ce(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;xt(l),n=!1}else n=Ni(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return l.flags&256?(sl(l),l):(sl(l),null)}return sl(l),(l.flags&128)!==0?(l.lanes=e,l):(e=a!==null,t=t!==null&&t.memoizedState!==null,e&&(a=l.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)),e!==t&&e&&(l.child.flags|=8192),hu(l,l.updateQueue),xt(l),null);case 4:return At(),t===null&&Qc(l.stateNode.containerInfo),xt(l),null;case 10:return Xl(l.type),xt(l),null;case 19:if(z(_t),a=l.memoizedState,a===null)return xt(l),null;if(n=(l.flags&128)!==0,u=a.rendering,u===null)if(n)an(a,!1);else{if(zt!==0||t!==null&&(t.flags&128)!==0)for(t=l.child;t!==null;){if(u=tu(t),u!==null){for(l.flags|=128,an(a,!1),t=u.updateQueue,l.updateQueue=t,hu(l,t),l.subtreeFlags=0,t=e,e=l.child;e!==null;)ys(e,t),e=e.sibling;return U(_t,_t.current&1|2),nt&&Yl(l,a.treeForkCount),l.child}t=t.sibling}a.tail!==null&&al()>Su&&(l.flags|=128,n=!0,an(a,!1),l.lanes=4194304)}else{if(!n)if(t=tu(u),t!==null){if(l.flags|=128,n=!0,t=t.updateQueue,l.updateQueue=t,hu(l,t),an(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!nt)return xt(l),null}else 2*al()-a.renderingStartTime>Su&&e!==536870912&&(l.flags|=128,n=!0,an(a,!1),l.lanes=4194304);a.isBackwards?(u.sibling=l.child,l.child=u):(t=a.last,t!==null?t.sibling=u:l.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=al(),t.sibling=null,e=_t.current,U(_t,n?e&1|2:e&1),nt&&Yl(l,a.treeForkCount),t):(xt(l),null);case 22:case 23:return sl(l),Zi(),a=l.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(l.flags|=8192):a&&(l.flags|=8192),a?(e&536870912)!==0&&(l.flags&128)===0&&(xt(l),l.subtreeFlags&6&&(l.flags|=8192)):xt(l),e=l.updateQueue,e!==null&&hu(l,e.retryQueue),e=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==e&&(l.flags|=2048),t!==null&&z(Be),null;case 24:return e=null,t!==null&&(e=t.memoizedState.cache),l.memoizedState.cache!==e&&(l.flags|=2048),Xl(Ot),xt(l),null;case 25:return null;case 30:return null}throw Error(h(156,l.tag))}function am(t,l){switch(Ei(l),l.tag){case 1:return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 3:return Xl(Ot),At(),t=l.flags,(t&65536)!==0&&(t&128)===0?(l.flags=t&-65537|128,l):null;case 26:case 27:case 5:return zn(l),null;case 31:if(l.memoizedState!==null){if(sl(l),l.alternate===null)throw Error(h(340));Ce()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 13:if(sl(l),t=l.memoizedState,t!==null&&t.dehydrated!==null){if(l.alternate===null)throw Error(h(340));Ce()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 19:return z(_t),null;case 4:return At(),null;case 10:return Xl(l.type),null;case 22:case 23:return sl(l),Zi(),t!==null&&z(Be),t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 24:return Xl(Ot),null;case 25:return null;default:return null}}function Lo(t,l){switch(Ei(l),l.tag){case 3:Xl(Ot),At();break;case 26:case 27:case 5:zn(l);break;case 4:At();break;case 31:l.memoizedState!==null&&sl(l);break;case 13:sl(l);break;case 19:z(_t);break;case 10:Xl(l.type);break;case 22:case 23:sl(l),Zi(),t!==null&&z(Be);break;case 24:Xl(Ot)}}function nn(t,l){try{var e=l.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var n=a.next;e=n;do{if((e.tag&t)===t){a=void 0;var u=e.create,i=e.inst;a=u(),i.destroy=a}e=e.next}while(e!==n)}}catch(f){dt(l,l.return,f)}}function oe(t,l,e){try{var a=l.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var i=a.inst,f=i.destroy;if(f!==void 0){i.destroy=void 0,n=l;var s=e,v=f;try{v()}catch(b){dt(n,s,b)}}}a=a.next}while(a!==u)}}catch(b){dt(l,l.return,b)}}function Vo(t){var l=t.updateQueue;if(l!==null){var e=t.stateNode;try{Us(l,e)}catch(a){dt(t,t.return,a)}}}function Ko(t,l,e){e.props=Xe(t.type,t.memoizedProps),e.state=t.memoizedState;try{e.componentWillUnmount()}catch(a){dt(t,l,a)}}function un(t,l){try{var e=t.ref;if(e!==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 e=="function"?t.refCleanup=e(a):e.current=a}}catch(n){dt(t,l,n)}}function Dl(t,l){var e=t.ref,a=t.refCleanup;if(e!==null)if(typeof a=="function")try{a()}catch(n){dt(t,l,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(n){dt(t,l,n)}else e.current=null}function Jo(t){var l=t.type,e=t.memoizedProps,a=t.stateNode;try{t:switch(l){case"button":case"input":case"select":case"textarea":e.autoFocus&&a.focus();break t;case"img":e.src?a.src=e.src:e.srcSet&&(a.srcset=e.srcSet)}}catch(n){dt(t,t.return,n)}}function bc(t,l,e){try{var a=t.stateNode;Am(a,t.type,e,l),a[Wt]=l}catch(n){dt(t,t.return,n)}}function wo(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ge(t.type)||t.tag===4}function xc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||wo(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&&ge(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 jc(t,l,e){var a=t.tag;if(a===5||a===6)t=t.stateNode,l?(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).insertBefore(t,l):(l=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.appendChild(t),e=e._reactRootContainer,e!=null||l.onclick!==null||(l.onclick=Bl));else if(a!==4&&(a===27&&ge(t.type)&&(e=t.stateNode,l=null),t=t.child,t!==null))for(jc(t,l,e),t=t.sibling;t!==null;)jc(t,l,e),t=t.sibling}function mu(t,l,e){var a=t.tag;if(a===5||a===6)t=t.stateNode,l?e.insertBefore(t,l):e.appendChild(t);else if(a!==4&&(a===27&&ge(t.type)&&(e=t.stateNode),t=t.child,t!==null))for(mu(t,l,e),t=t.sibling;t!==null;)mu(t,l,e),t=t.sibling}function ko(t){var l=t.stateNode,e=t.memoizedProps;try{for(var a=t.type,n=l.attributes;n.length;)l.removeAttributeNode(n[0]);Gt(l,a,e),l[Bt]=t,l[Wt]=e}catch(u){dt(t,t.return,u)}}var Kl=!1,Dt=!1,Tc=!1,$o=typeof WeakSet=="function"?WeakSet:Set,Rt=null;function nm(t,l){if(t=t.containerInfo,Vc=Bu,t=is(t),vi(t)){if("selectionStart"in t)var e={start:t.selectionStart,end:t.selectionEnd};else t:{e=(e=t.ownerDocument)&&e.defaultView||window;var a=e.getSelection&&e.getSelection();if(a&&a.rangeCount!==0){e=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{e.nodeType,u.nodeType}catch{e=null;break t}var i=0,f=-1,s=-1,v=0,b=0,T=t,g=null;l:for(;;){for(var S;T!==e||n!==0&&T.nodeType!==3||(f=i+n),T!==u||a!==0&&T.nodeType!==3||(s=i+a),T.nodeType===3&&(i+=T.nodeValue.length),(S=T.firstChild)!==null;)g=T,T=S;for(;;){if(T===t)break l;if(g===e&&++v===n&&(f=i),g===u&&++b===a&&(s=i),(S=T.nextSibling)!==null)break;T=g,g=T.parentNode}T=S}e=f===-1||s===-1?null:{start:f,end:s}}else e=null}e=e||{start:0,end:0}}else e=null;for(Kc={focusedElem:t,selectionRange:e},Bu=!1,Rt=l;Rt!==null;)if(l=Rt,t=l.child,(l.subtreeFlags&1028)!==0&&t!==null)t.return=l,Rt=t;else for(;Rt!==null;){switch(l=Rt,u=l.alternate,t=l.flags,l.tag){case 0:if((t&4)!==0&&(t=l.updateQueue,t=t!==null?t.events:null,t!==null))for(e=0;e<t.length;e++)n=t[e],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,e=l,n=u.memoizedProps,u=u.memoizedState,a=e.stateNode;try{var H=Xe(e.type,n);t=a.getSnapshotBeforeUpdate(H,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(Z){dt(e,e.return,Z)}}break;case 3:if((t&1024)!==0){if(t=l.stateNode.containerInfo,e=t.nodeType,e===9)kc(t);else if(e===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":kc(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(h(163))}if(t=l.sibling,t!==null){t.return=l.return,Rt=t;break}Rt=l.return}}function Wo(t,l,e){var a=e.flags;switch(e.tag){case 0:case 11:case 15:wl(t,e),a&4&&nn(5,e);break;case 1:if(wl(t,e),a&4)if(t=e.stateNode,l===null)try{t.componentDidMount()}catch(i){dt(e,e.return,i)}else{var n=Xe(e.type,l.memoizedProps);l=l.memoizedState;try{t.componentDidUpdate(n,l,t.__reactInternalSnapshotBeforeUpdate)}catch(i){dt(e,e.return,i)}}a&64&&Vo(e),a&512&&un(e,e.return);break;case 3:if(wl(t,e),a&64&&(t=e.updateQueue,t!==null)){if(l=null,e.child!==null)switch(e.child.tag){case 27:case 5:l=e.child.stateNode;break;case 1:l=e.child.stateNode}try{Us(t,l)}catch(i){dt(e,e.return,i)}}break;case 27:l===null&&a&4&&ko(e);case 26:case 5:wl(t,e),l===null&&a&4&&Jo(e),a&512&&un(e,e.return);break;case 12:wl(t,e);break;case 31:wl(t,e),a&4&&Po(t,e);break;case 13:wl(t,e),a&4&&tr(t,e),a&64&&(t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(e=hm.bind(null,e),Um(t,e))));break;case 22:if(a=e.memoizedState!==null||Kl,!a){l=l!==null&&l.memoizedState!==null||Dt,n=Kl;var u=Dt;Kl=a,(Dt=l)&&!u?kl(t,e,(e.subtreeFlags&8772)!==0):wl(t,e),Kl=n,Dt=u}break;case 30:break;default:wl(t,e)}}function Fo(t){var l=t.alternate;l!==null&&(t.alternate=null,Fo(l)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(l=t.stateNode,l!==null&&Pu(l)),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 jt=null,It=!1;function Jl(t,l,e){for(e=e.child;e!==null;)Io(t,l,e),e=e.sibling}function Io(t,l,e){if(nl&&typeof nl.onCommitFiberUnmount=="function")try{nl.onCommitFiberUnmount(Na,e)}catch{}switch(e.tag){case 26:Dt||Dl(e,l),Jl(t,l,e),e.memoizedState?e.memoizedState.count--:e.stateNode&&(e=e.stateNode,e.parentNode.removeChild(e));break;case 27:Dt||Dl(e,l);var a=jt,n=It;ge(e.type)&&(jt=e.stateNode,It=!1),Jl(t,l,e),yn(e.stateNode),jt=a,It=n;break;case 5:Dt||Dl(e,l);case 6:if(a=jt,n=It,jt=null,Jl(t,l,e),jt=a,It=n,jt!==null)if(It)try{(jt.nodeType===9?jt.body:jt.nodeName==="HTML"?jt.ownerDocument.body:jt).removeChild(e.stateNode)}catch(u){dt(e,l,u)}else try{jt.removeChild(e.stateNode)}catch(u){dt(e,l,u)}break;case 18:jt!==null&&(It?(t=jt,Vr(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,e.stateNode),Ea(t)):Vr(jt,e.stateNode));break;case 4:a=jt,n=It,jt=e.stateNode.containerInfo,It=!0,Jl(t,l,e),jt=a,It=n;break;case 0:case 11:case 14:case 15:oe(2,e,l),Dt||oe(4,e,l),Jl(t,l,e);break;case 1:Dt||(Dl(e,l),a=e.stateNode,typeof a.componentWillUnmount=="function"&&Ko(e,l,a)),Jl(t,l,e);break;case 21:Jl(t,l,e);break;case 22:Dt=(a=Dt)||e.memoizedState!==null,Jl(t,l,e),Dt=a;break;default:Jl(t,l,e)}}function Po(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ea(t)}catch(e){dt(l,l.return,e)}}}function tr(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ea(t)}catch(e){dt(l,l.return,e)}}function um(t){switch(t.tag){case 31:case 13:case 19:var l=t.stateNode;return l===null&&(l=t.stateNode=new $o),l;case 22:return t=t.stateNode,l=t._retryCache,l===null&&(l=t._retryCache=new $o),l;default:throw Error(h(435,t.tag))}}function yu(t,l){var e=um(t);l.forEach(function(a){if(!e.has(a)){e.add(a);var n=mm.bind(null,t,a);a.then(n,n)}})}function Pt(t,l){var e=l.deletions;if(e!==null)for(var a=0;a<e.length;a++){var n=e[a],u=t,i=l,f=i;t:for(;f!==null;){switch(f.tag){case 27:if(ge(f.type)){jt=f.stateNode,It=!1;break t}break;case 5:jt=f.stateNode,It=!1;break t;case 3:case 4:jt=f.stateNode.containerInfo,It=!0;break t}f=f.return}if(jt===null)throw Error(h(160));Io(u,i,n),jt=null,It=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)lr(l,t),l=l.sibling}var Al=null;function lr(t,l){var e=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Pt(l,t),tl(t),a&4&&(oe(3,t,t.return),nn(3,t),oe(5,t,t.return));break;case 1:Pt(l,t),tl(t),a&512&&(Dt||e===null||Dl(e,e.return)),a&64&&Kl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(e=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=e===null?a:e.concat(a))));break;case 26:var n=Al;if(Pt(l,t),tl(t),a&512&&(Dt||e===null||Dl(e,e.return)),a&4){var u=e!==null?e.memoizedState:null;if(a=t.memoizedState,e===null)if(a===null)if(t.stateNode===null){t:{a=t.type,e=t.memoizedProps,n=n.ownerDocument||n;l:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ca]||u[Bt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Gt(u,a,e),u[Bt]=t,Ut(u),a=u;break t;case"link":var i=ld("link","href",n).get(a+(e.href||""));if(i){for(var f=0;f<i.length;f++)if(u=i[f],u.getAttribute("href")===(e.href==null||e.href===""?null:e.href)&&u.getAttribute("rel")===(e.rel==null?null:e.rel)&&u.getAttribute("title")===(e.title==null?null:e.title)&&u.getAttribute("crossorigin")===(e.crossOrigin==null?null:e.crossOrigin)){i.splice(f,1);break l}}u=n.createElement(a),Gt(u,a,e),n.head.appendChild(u);break;case"meta":if(i=ld("meta","content",n).get(a+(e.content||""))){for(f=0;f<i.length;f++)if(u=i[f],u.getAttribute("content")===(e.content==null?null:""+e.content)&&u.getAttribute("name")===(e.name==null?null:e.name)&&u.getAttribute("property")===(e.property==null?null:e.property)&&u.getAttribute("http-equiv")===(e.httpEquiv==null?null:e.httpEquiv)&&u.getAttribute("charset")===(e.charSet==null?null:e.charSet)){i.splice(f,1);break l}}u=n.createElement(a),Gt(u,a,e),n.head.appendChild(u);break;default:throw Error(h(468,a))}u[Bt]=t,Ut(u),a=u}t.stateNode=a}else ed(n,t.type,t.stateNode);else t.stateNode=td(n,a,t.memoizedProps);else u!==a?(u===null?e.stateNode!==null&&(e=e.stateNode,e.parentNode.removeChild(e)):u.count--,a===null?ed(n,t.type,t.stateNode):td(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&bc(t,t.memoizedProps,e.memoizedProps)}break;case 27:Pt(l,t),tl(t),a&512&&(Dt||e===null||Dl(e,e.return)),e!==null&&a&4&&bc(t,t.memoizedProps,e.memoizedProps);break;case 5:if(Pt(l,t),tl(t),a&512&&(Dt||e===null||Dl(e,e.return)),t.flags&32){n=t.stateNode;try{We(n,"")}catch(H){dt(t,t.return,H)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,bc(t,n,e!==null?e.memoizedProps:n)),a&1024&&(Tc=!0);break;case 6:if(Pt(l,t),tl(t),a&4){if(t.stateNode===null)throw Error(h(162));a=t.memoizedProps,e=t.stateNode;try{e.nodeValue=a}catch(H){dt(t,t.return,H)}}break;case 3:if(Du=null,n=Al,Al=Nu(l.containerInfo),Pt(l,t),Al=n,tl(t),a&4&&e!==null&&e.memoizedState.isDehydrated)try{Ea(l.containerInfo)}catch(H){dt(t,t.return,H)}Tc&&(Tc=!1,er(t));break;case 4:a=Al,Al=Nu(t.stateNode.containerInfo),Pt(l,t),tl(t),Al=a;break;case 12:Pt(l,t),tl(t);break;case 31:Pt(l,t),tl(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,yu(t,a)));break;case 13:Pt(l,t),tl(t),t.child.flags&8192&&t.memoizedState!==null!=(e!==null&&e.memoizedState!==null)&&(gu=al()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,yu(t,a)));break;case 22:n=t.memoizedState!==null;var s=e!==null&&e.memoizedState!==null,v=Kl,b=Dt;if(Kl=v||n,Dt=b||s,Pt(l,t),Dt=b,Kl=v,tl(t),a&8192)t:for(l=t.stateNode,l._visibility=n?l._visibility&-2:l._visibility|1,n&&(e===null||s||Kl||Dt||Qe(t)),e=null,l=t;;){if(l.tag===5||l.tag===26){if(e===null){s=e=l;try{if(u=s.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{f=s.stateNode;var T=s.memoizedProps.style,g=T!=null&&T.hasOwnProperty("display")?T.display:null;f.style.display=g==null||typeof g=="boolean"?"":(""+g).trim()}}catch(H){dt(s,s.return,H)}}}else if(l.tag===6){if(e===null){s=l;try{s.stateNode.nodeValue=n?"":s.memoizedProps}catch(H){dt(s,s.return,H)}}}else if(l.tag===18){if(e===null){s=l;try{var S=s.stateNode;n?Kr(S,!0):Kr(s.stateNode,!1)}catch(H){dt(s,s.return,H)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===t)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break t;for(;l.sibling===null;){if(l.return===null||l.return===t)break t;e===l&&(e=null),l=l.return}e===l&&(e=null),l.sibling.return=l.return,l=l.sibling}a&4&&(a=t.updateQueue,a!==null&&(e=a.retryQueue,e!==null&&(a.retryQueue=null,yu(t,e))));break;case 19:Pt(l,t),tl(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,yu(t,a)));break;case 30:break;case 21:break;default:Pt(l,t),tl(t)}}function tl(t){var l=t.flags;if(l&2){try{for(var e,a=t.return;a!==null;){if(wo(a)){e=a;break}a=a.return}if(e==null)throw Error(h(160));switch(e.tag){case 27:var n=e.stateNode,u=xc(t);mu(t,u,n);break;case 5:var i=e.stateNode;e.flags&32&&(We(i,""),e.flags&=-33);var f=xc(t);mu(t,f,i);break;case 3:case 4:var s=e.stateNode.containerInfo,v=xc(t);jc(t,v,s);break;default:throw Error(h(161))}}catch(b){dt(t,t.return,b)}t.flags&=-3}l&4096&&(t.flags&=-4097)}function er(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var l=t;er(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),t=t.sibling}}function wl(t,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)Wo(t,l.alternate,l),l=l.sibling}function Qe(t){for(t=t.child;t!==null;){var l=t;switch(l.tag){case 0:case 11:case 14:case 15:oe(4,l,l.return),Qe(l);break;case 1:Dl(l,l.return);var e=l.stateNode;typeof e.componentWillUnmount=="function"&&Ko(l,l.return,e),Qe(l);break;case 27:yn(l.stateNode);case 26:case 5:Dl(l,l.return),Qe(l);break;case 22:l.memoizedState===null&&Qe(l);break;case 30:Qe(l);break;default:Qe(l)}t=t.sibling}}function kl(t,l,e){for(e=e&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var a=l.alternate,n=t,u=l,i=u.flags;switch(u.tag){case 0:case 11:case 15:kl(n,u,e),nn(4,u);break;case 1:if(kl(n,u,e),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(v){dt(a,a.return,v)}if(a=u,n=a.updateQueue,n!==null){var f=a.stateNode;try{var s=n.shared.hiddenCallbacks;if(s!==null)for(n.shared.hiddenCallbacks=null,n=0;n<s.length;n++)Cs(s[n],f)}catch(v){dt(a,a.return,v)}}e&&i&64&&Vo(u),un(u,u.return);break;case 27:ko(u);case 26:case 5:kl(n,u,e),e&&a===null&&i&4&&Jo(u),un(u,u.return);break;case 12:kl(n,u,e);break;case 31:kl(n,u,e),e&&i&4&&Po(n,u);break;case 13:kl(n,u,e),e&&i&4&&tr(n,u);break;case 22:u.memoizedState===null&&kl(n,u,e),un(u,u.return);break;case 30:break;default:kl(n,u,e)}l=l.sibling}}function zc(t,l){var e=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),t=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),t!==e&&(t!=null&&t.refCount++,e!=null&&Ka(e))}function Ac(t,l){t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Ka(t))}function _l(t,l,e,a){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)ar(t,l,e,a),l=l.sibling}function ar(t,l,e,a){var n=l.flags;switch(l.tag){case 0:case 11:case 15:_l(t,l,e,a),n&2048&&nn(9,l);break;case 1:_l(t,l,e,a);break;case 3:_l(t,l,e,a),n&2048&&(t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Ka(t)));break;case 12:if(n&2048){_l(t,l,e,a),t=l.stateNode;try{var u=l.memoizedProps,i=u.id,f=u.onPostCommit;typeof f=="function"&&f(i,l.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(s){dt(l,l.return,s)}}else _l(t,l,e,a);break;case 31:_l(t,l,e,a);break;case 13:_l(t,l,e,a);break;case 23:break;case 22:u=l.stateNode,i=l.alternate,l.memoizedState!==null?u._visibility&2?_l(t,l,e,a):cn(t,l):u._visibility&2?_l(t,l,e,a):(u._visibility|=2,va(t,l,e,a,(l.subtreeFlags&10256)!==0||!1)),n&2048&&zc(i,l);break;case 24:_l(t,l,e,a),n&2048&&Ac(l.alternate,l);break;default:_l(t,l,e,a)}}function va(t,l,e,a,n){for(n=n&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var u=t,i=l,f=e,s=a,v=i.flags;switch(i.tag){case 0:case 11:case 15:va(u,i,f,s,n),nn(8,i);break;case 23:break;case 22:var b=i.stateNode;i.memoizedState!==null?b._visibility&2?va(u,i,f,s,n):cn(u,i):(b._visibility|=2,va(u,i,f,s,n)),n&&v&2048&&zc(i.alternate,i);break;case 24:va(u,i,f,s,n),n&&v&2048&&Ac(i.alternate,i);break;default:va(u,i,f,s,n)}l=l.sibling}}function cn(t,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var e=t,a=l,n=a.flags;switch(a.tag){case 22:cn(e,a),n&2048&&zc(a.alternate,a);break;case 24:cn(e,a),n&2048&&Ac(a.alternate,a);break;default:cn(e,a)}l=l.sibling}}var fn=8192;function ga(t,l,e){if(t.subtreeFlags&fn)for(t=t.child;t!==null;)nr(t,l,e),t=t.sibling}function nr(t,l,e){switch(t.tag){case 26:ga(t,l,e),t.flags&fn&&t.memoizedState!==null&&Km(e,Al,t.memoizedState,t.memoizedProps);break;case 5:ga(t,l,e);break;case 3:case 4:var a=Al;Al=Nu(t.stateNode.containerInfo),ga(t,l,e),Al=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=fn,fn=16777216,ga(t,l,e),fn=a):ga(t,l,e));break;default:ga(t,l,e)}}function ur(t){var l=t.alternate;if(l!==null&&(t=l.child,t!==null)){l.child=null;do l=t.sibling,t.sibling=null,t=l;while(t!==null)}}function sn(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var a=l[e];Rt=a,cr(a,t)}ur(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ir(t),t=t.sibling}function ir(t){switch(t.tag){case 0:case 11:case 15:sn(t),t.flags&2048&&oe(9,t,t.return);break;case 3:sn(t);break;case 12:sn(t);break;case 22:var l=t.stateNode;t.memoizedState!==null&&l._visibility&2&&(t.return===null||t.return.tag!==13)?(l._visibility&=-3,vu(t)):sn(t);break;default:sn(t)}}function vu(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var a=l[e];Rt=a,cr(a,t)}ur(t)}for(t=t.child;t!==null;){switch(l=t,l.tag){case 0:case 11:case 15:oe(8,l,l.return),vu(l);break;case 22:e=l.stateNode,e._visibility&2&&(e._visibility&=-3,vu(l));break;default:vu(l)}t=t.sibling}}function cr(t,l){for(;Rt!==null;){var e=Rt;switch(e.tag){case 0:case 11:case 15:oe(8,e,l);break;case 23:case 22:if(e.memoizedState!==null&&e.memoizedState.cachePool!==null){var a=e.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ka(e.memoizedState.cache)}if(a=e.child,a!==null)a.return=e,Rt=a;else t:for(e=t;Rt!==null;){a=Rt;var n=a.sibling,u=a.return;if(Fo(a),a===e){Rt=null;break t}if(n!==null){n.return=u,Rt=n;break t}Rt=u}}}var im={getCacheForType:function(t){var l=qt(Ot),e=l.data.get(t);return e===void 0&&(e=t(),l.data.set(t,e)),e},cacheSignal:function(){return qt(Ot).controller.signal}},cm=typeof WeakMap=="function"?WeakMap:Map,st=0,pt=null,P=null,lt=0,rt=0,ol=null,re=!1,Sa=!1,_c=!1,$l=0,zt=0,de=0,Ze=0,Ec=0,rl=0,pa=0,on=null,ll=null,Oc=!1,gu=0,fr=0,Su=1/0,pu=null,he=null,Ct=0,me=null,ba=null,Wl=0,Nc=0,Mc=null,sr=null,rn=0,Dc=null;function dl(){return(st&2)!==0&&lt!==0?lt&-lt:x.T!==null?qc():zf()}function or(){if(rl===0)if((lt&536870912)===0||nt){var t=En;En<<=1,(En&3932160)===0&&(En=262144),rl=t}else rl=536870912;return t=fl.current,t!==null&&(t.flags|=32),rl}function el(t,l,e){(t===pt&&(rt===2||rt===9)||t.cancelPendingCommit!==null)&&(xa(t,0),ye(t,lt,rl,!1)),Da(t,e),((st&2)===0||t!==pt)&&(t===pt&&((st&2)===0&&(Ze|=e),zt===4&&ye(t,lt,rl,!1)),Cl(t))}function rr(t,l,e){if((st&6)!==0)throw Error(h(327));var a=!e&&(l&127)===0&&(l&t.expiredLanes)===0||Ma(t,l),n=a?om(t,l):Uc(t,l,!0),u=a;do{if(n===0){Sa&&!a&&ye(t,l,0,!1);break}else{if(e=t.current.alternate,u&&!fm(e)){n=Uc(t,l,!1),u=!1;continue}if(n===2){if(u=l,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){l=i;t:{var f=t;n=on;var s=f.current.memoizedState.isDehydrated;if(s&&(xa(f,i).flags|=256),i=Uc(f,i,!1),i!==2){if(_c&&!s){f.errorRecoveryDisabledLanes|=u,Ze|=u,n=4;break t}u=ll,ll=n,u!==null&&(ll===null?ll=u:ll.push.apply(ll,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){xa(t,0),ye(t,l,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(h(345));case 4:if((l&4194048)!==l)break;case 6:ye(a,l,rl,!re);break t;case 2:ll=null;break;case 3:case 5:break;default:throw Error(h(329))}if((l&62914560)===l&&(n=gu+300-al(),10<n)){if(ye(a,l,rl,!re),Nn(a,0,!0)!==0)break t;Wl=l,a.timeoutHandle=Zr(dr.bind(null,a,e,ll,pu,Oc,l,rl,Ze,pa,re,u,"Throttled",-0,0),n);break t}dr(a,e,ll,pu,Oc,l,rl,Ze,pa,re,u,null,-0,0)}}break}while(!0);Cl(t)}function dr(t,l,e,a,n,u,i,f,s,v,b,T,g,S){if(t.timeoutHandle=-1,T=l.subtreeFlags,T&8192||(T&16785408)===16785408){T={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bl},nr(l,u,T);var H=(u&62914560)===u?gu-al():(u&4194048)===u?fr-al():0;if(H=Jm(T,H),H!==null){Wl=u,t.cancelPendingCommit=H(br.bind(null,t,l,u,e,a,n,i,f,s,b,T,null,g,S)),ye(t,u,i,!v);return}}br(t,l,u,e,a,n,i,f,s)}function fm(t){for(var l=t;;){var e=l.tag;if((e===0||e===11||e===15)&&l.flags&16384&&(e=l.updateQueue,e!==null&&(e=e.stores,e!==null)))for(var a=0;a<e.length;a++){var n=e[a],u=n.getSnapshot;n=n.value;try{if(!il(u(),n))return!1}catch{return!1}}if(e=l.child,l.subtreeFlags&16384&&e!==null)e.return=l,l=e;else{if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function ye(t,l,e,a){l&=~Ec,l&=~Ze,t.suspendedLanes|=l,t.pingedLanes&=~l,a&&(t.warmLanes|=l),a=t.expirationTimes;for(var n=l;0<n;){var u=31-ul(n),i=1<<u;a[u]=-1,n&=~i}e!==0&&xf(t,e,l)}function bu(){return(st&6)===0?(dn(0),!1):!0}function Cc(){if(P!==null){if(rt===0)var t=P.return;else t=P,Gl=Ue=null,ki(t),ra=null,wa=0,t=P;for(;t!==null;)Lo(t.alternate,t),t=t.return;P=null}}function xa(t,l){var e=t.timeoutHandle;e!==-1&&(t.timeoutHandle=-1,Om(e)),e=t.cancelPendingCommit,e!==null&&(t.cancelPendingCommit=null,e()),Wl=0,Cc(),pt=t,P=e=ql(t.current,null),lt=l,rt=0,ol=null,re=!1,Sa=Ma(t,l),_c=!1,pa=rl=Ec=Ze=de=zt=0,ll=on=null,Oc=!1,(l&8)!==0&&(l|=l&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=l;0<a;){var n=31-ul(a),u=1<<n;l|=t[n],a&=~u}return $l=l,Qn(),e}function hr(t,l){W=null,x.H=ln,l===oa||l===$n?(l=Os(),rt=3):l===Hi?(l=Os(),rt=4):rt=l===oc?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,ol=l,P===null&&(zt=1,su(t,vl(l,t.current)))}function mr(){var t=fl.current;return t===null?!0:(lt&4194048)===lt?bl===null:(lt&62914560)===lt||(lt&536870912)!==0?t===bl:!1}function yr(){var t=x.H;return x.H=ln,t===null?ln:t}function vr(){var t=x.A;return x.A=im,t}function xu(){zt=4,re||(lt&4194048)!==lt&&fl.current!==null||(Sa=!0),(de&134217727)===0&&(Ze&134217727)===0||pt===null||ye(pt,lt,rl,!1)}function Uc(t,l,e){var a=st;st|=2;var n=yr(),u=vr();(pt!==t||lt!==l)&&(pu=null,xa(t,l)),l=!1;var i=zt;t:do try{if(rt!==0&&P!==null){var f=P,s=ol;switch(rt){case 8:Cc(),i=6;break t;case 3:case 2:case 9:case 6:fl.current===null&&(l=!0);var v=rt;if(rt=0,ol=null,ja(t,f,s,v),e&&Sa){i=0;break t}break;default:v=rt,rt=0,ol=null,ja(t,f,s,v)}}sm(),i=zt;break}catch(b){hr(t,b)}while(!0);return l&&t.shellSuspendCounter++,Gl=Ue=null,st=a,x.H=n,x.A=u,P===null&&(pt=null,lt=0,Qn()),i}function sm(){for(;P!==null;)gr(P)}function om(t,l){var e=st;st|=2;var a=yr(),n=vr();pt!==t||lt!==l?(pu=null,Su=al()+500,xa(t,l)):Sa=Ma(t,l);t:do try{if(rt!==0&&P!==null){l=P;var u=ol;l:switch(rt){case 1:rt=0,ol=null,ja(t,l,u,1);break;case 2:case 9:if(_s(u)){rt=0,ol=null,Sr(l);break}l=function(){rt!==2&&rt!==9||pt!==t||(rt=7),Cl(t)},u.then(l,l);break t;case 3:rt=7;break t;case 4:rt=5;break t;case 7:_s(u)?(rt=0,ol=null,Sr(l)):(rt=0,ol=null,ja(t,l,u,7));break;case 5:var i=null;switch(P.tag){case 26:i=P.memoizedState;case 5:case 27:var f=P;if(i?ad(i):f.stateNode.complete){rt=0,ol=null;var s=f.sibling;if(s!==null)P=s;else{var v=f.return;v!==null?(P=v,ju(v)):P=null}break l}}rt=0,ol=null,ja(t,l,u,5);break;case 6:rt=0,ol=null,ja(t,l,u,6);break;case 8:Cc(),zt=6;break t;default:throw Error(h(462))}}rm();break}catch(b){hr(t,b)}while(!0);return Gl=Ue=null,x.H=a,x.A=n,st=e,P!==null?0:(pt=null,lt=0,Qn(),zt)}function rm(){for(;P!==null&&!Rd();)gr(P)}function gr(t){var l=Qo(t.alternate,t,$l);t.memoizedProps=t.pendingProps,l===null?ju(t):P=l}function Sr(t){var l=t,e=l.alternate;switch(l.tag){case 15:case 0:l=Bo(e,l,l.pendingProps,l.type,void 0,lt);break;case 11:l=Bo(e,l,l.pendingProps,l.type.render,l.ref,lt);break;case 5:ki(l);default:Lo(e,l),l=P=ys(l,$l),l=Qo(e,l,$l)}t.memoizedProps=t.pendingProps,l===null?ju(t):P=l}function ja(t,l,e,a){Gl=Ue=null,ki(l),ra=null,wa=0;var n=l.return;try{if(Ph(t,n,l,e,lt)){zt=1,su(t,vl(e,t.current)),P=null;return}}catch(u){if(n!==null)throw P=n,u;zt=1,su(t,vl(e,t.current)),P=null;return}l.flags&32768?(nt||a===1?t=!0:Sa||(lt&536870912)!==0?t=!1:(re=t=!0,(a===2||a===9||a===3||a===6)&&(a=fl.current,a!==null&&a.tag===13&&(a.flags|=16384))),pr(l,t)):ju(l)}function ju(t){var l=t;do{if((l.flags&32768)!==0){pr(l,re);return}t=l.return;var e=em(l.alternate,l,$l);if(e!==null){P=e;return}if(l=l.sibling,l!==null){P=l;return}P=l=t}while(l!==null);zt===0&&(zt=5)}function pr(t,l){do{var e=am(t.alternate,t);if(e!==null){e.flags&=32767,P=e;return}if(e=t.return,e!==null&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),!l&&(t=t.sibling,t!==null)){P=t;return}P=t=e}while(t!==null);zt=6,P=null}function br(t,l,e,a,n,u,i,f,s){t.cancelPendingCommit=null;do Tu();while(Ct!==0);if((st&6)!==0)throw Error(h(327));if(l!==null){if(l===t.current)throw Error(h(177));if(u=l.lanes|l.childLanes,u|=xi,Vd(t,e,u,i,f,s),t===pt&&(P=pt=null,lt=0),ba=l,me=t,Wl=e,Nc=u,Mc=n,sr=a,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,ym(An,function(){return Ar(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||a){a=x.T,x.T=null,n=C.p,C.p=2,i=st,st|=4;try{nm(t,l,e)}finally{st=i,C.p=n,x.T=a}}Ct=1,xr(),jr(),Tr()}}function xr(){if(Ct===1){Ct=0;var t=me,l=ba,e=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||e){e=x.T,x.T=null;var a=C.p;C.p=2;var n=st;st|=4;try{lr(l,t);var u=Kc,i=is(t.containerInfo),f=u.focusedElem,s=u.selectionRange;if(i!==f&&f&&f.ownerDocument&&us(f.ownerDocument.documentElement,f)){if(s!==null&&vi(f)){var v=s.start,b=s.end;if(b===void 0&&(b=v),"selectionStart"in f)f.selectionStart=v,f.selectionEnd=Math.min(b,f.value.length);else{var T=f.ownerDocument||document,g=T&&T.defaultView||window;if(g.getSelection){var S=g.getSelection(),H=f.textContent.length,Z=Math.min(s.start,H),vt=s.end===void 0?Z:Math.min(s.end,H);!S.extend&&Z>vt&&(i=vt,vt=Z,Z=i);var m=ns(f,Z),r=ns(f,vt);if(m&&r&&(S.rangeCount!==1||S.anchorNode!==m.node||S.anchorOffset!==m.offset||S.focusNode!==r.node||S.focusOffset!==r.offset)){var y=T.createRange();y.setStart(m.node,m.offset),S.removeAllRanges(),Z>vt?(S.addRange(y),S.extend(r.node,r.offset)):(y.setEnd(r.node,r.offset),S.addRange(y))}}}}for(T=[],S=f;S=S.parentNode;)S.nodeType===1&&T.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<T.length;f++){var j=T[f];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}Bu=!!Vc,Kc=Vc=null}finally{st=n,C.p=a,x.T=e}}t.current=l,Ct=2}}function jr(){if(Ct===2){Ct=0;var t=me,l=ba,e=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||e){e=x.T,x.T=null;var a=C.p;C.p=2;var n=st;st|=4;try{Wo(t,l.alternate,l)}finally{st=n,C.p=a,x.T=e}}Ct=3}}function Tr(){if(Ct===4||Ct===3){Ct=0,Bd();var t=me,l=ba,e=Wl,a=sr;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Ct=5:(Ct=0,ba=me=null,zr(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(he=null),Fu(e),l=l.stateNode,nl&&typeof nl.onCommitFiberRoot=="function")try{nl.onCommitFiberRoot(Na,l,void 0,(l.current.flags&128)===128)}catch{}if(a!==null){l=x.T,n=C.p,C.p=2,x.T=null;try{for(var u=t.onRecoverableError,i=0;i<a.length;i++){var f=a[i];u(f.value,{componentStack:f.stack})}}finally{x.T=l,C.p=n}}(Wl&3)!==0&&Tu(),Cl(t),n=t.pendingLanes,(e&261930)!==0&&(n&42)!==0?t===Dc?rn++:(rn=0,Dc=t):rn=0,dn(0)}}function zr(t,l){(t.pooledCacheLanes&=l)===0&&(l=t.pooledCache,l!=null&&(t.pooledCache=null,Ka(l)))}function Tu(){return xr(),jr(),Tr(),Ar()}function Ar(){if(Ct!==5)return!1;var t=me,l=Nc;Nc=0;var e=Fu(Wl),a=x.T,n=C.p;try{C.p=32>e?32:e,x.T=null,e=Mc,Mc=null;var u=me,i=Wl;if(Ct=0,ba=me=null,Wl=0,(st&6)!==0)throw Error(h(331));var f=st;if(st|=4,ir(u.current),ar(u,u.current,i,e),st=f,dn(0,!1),nl&&typeof nl.onPostCommitFiberRoot=="function")try{nl.onPostCommitFiberRoot(Na,u)}catch{}return!0}finally{C.p=n,x.T=a,zr(t,l)}}function _r(t,l,e){l=vl(e,l),l=sc(t.stateNode,l,2),t=ce(t,l,2),t!==null&&(Da(t,2),Cl(t))}function dt(t,l,e){if(t.tag===3)_r(t,t,e);else for(;l!==null;){if(l.tag===3){_r(l,t,e);break}else if(l.tag===1){var a=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(he===null||!he.has(a))){t=vl(e,t),e=Eo(2),a=ce(l,e,2),a!==null&&(Oo(e,a,l,t),Da(a,2),Cl(a));break}}l=l.return}}function Rc(t,l,e){var a=t.pingCache;if(a===null){a=t.pingCache=new cm;var n=new Set;a.set(l,n)}else n=a.get(l),n===void 0&&(n=new Set,a.set(l,n));n.has(e)||(_c=!0,n.add(e),t=dm.bind(null,t,l,e),l.then(t,t))}function dm(t,l,e){var a=t.pingCache;a!==null&&a.delete(l),t.pingedLanes|=t.suspendedLanes&e,t.warmLanes&=~e,pt===t&&(lt&e)===e&&(zt===4||zt===3&&(lt&62914560)===lt&&300>al()-gu?(st&2)===0&&xa(t,0):Ec|=e,pa===lt&&(pa=0)),Cl(t)}function Er(t,l){l===0&&(l=bf()),t=Me(t,l),t!==null&&(Da(t,l),Cl(t))}function hm(t){var l=t.memoizedState,e=0;l!==null&&(e=l.retryLane),Er(t,e)}function mm(t,l){var e=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(e=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(h(314))}a!==null&&a.delete(l),Er(t,e)}function ym(t,l){return wu(t,l)}var zu=null,Ta=null,Bc=!1,Au=!1,Hc=!1,ve=0;function Cl(t){t!==Ta&&t.next===null&&(Ta===null?zu=Ta=t:Ta=Ta.next=t),Au=!0,Bc||(Bc=!0,gm())}function dn(t,l){if(!Hc&&Au){Hc=!0;do for(var e=!1,a=zu;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,f=a.pingedLanes;u=(1<<31-ul(42|t)+1)-1,u&=n&~(i&~f),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(e=!0,Dr(a,u))}else u=lt,u=Nn(a,a===pt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ma(a,u)||(e=!0,Dr(a,u));a=a.next}while(e);Hc=!1}}function vm(){Or()}function Or(){Au=Bc=!1;var t=0;ve!==0&&Em()&&(t=ve);for(var l=al(),e=null,a=zu;a!==null;){var n=a.next,u=Nr(a,l);u===0?(a.next=null,e===null?zu=n:e.next=n,n===null&&(Ta=e)):(e=a,(t!==0||(u&3)!==0)&&(Au=!0)),a=n}Ct!==0&&Ct!==5||dn(t),ve!==0&&(ve=0)}function Nr(t,l){for(var e=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-ul(u),f=1<<i,s=n[i];s===-1?((f&e)===0||(f&a)!==0)&&(n[i]=Ld(f,l)):s<=l&&(t.expiredLanes|=f),u&=~f}if(l=pt,e=lt,e=Nn(t,t===l?e:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,e===0||t===l&&(rt===2||rt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&ku(a),t.callbackNode=null,t.callbackPriority=0;if((e&3)===0||Ma(t,e)){if(l=e&-e,l===t.callbackPriority)return l;switch(a!==null&&ku(a),Fu(e)){case 2:case 8:e=Sf;break;case 32:e=An;break;case 268435456:e=pf;break;default:e=An}return a=Mr.bind(null,t),e=wu(e,a),t.callbackPriority=l,t.callbackNode=e,l}return a!==null&&a!==null&&ku(a),t.callbackPriority=2,t.callbackNode=null,2}function Mr(t,l){if(Ct!==0&&Ct!==5)return t.callbackNode=null,t.callbackPriority=0,null;var e=t.callbackNode;if(Tu()&&t.callbackNode!==e)return null;var a=lt;return a=Nn(t,t===pt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(rr(t,a,l),Nr(t,al()),t.callbackNode!=null&&t.callbackNode===e?Mr.bind(null,t):null)}function Dr(t,l){if(Tu())return null;rr(t,l,!0)}function gm(){Nm(function(){(st&6)!==0?wu(gf,vm):Or()})}function qc(){if(ve===0){var t=fa;t===0&&(t=_n,_n<<=1,(_n&261888)===0&&(_n=256)),ve=t}return ve}function Cr(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Un(""+t)}function Ur(t,l){var e=l.ownerDocument.createElement("input");return e.name=l.name,e.value=l.value,t.id&&e.setAttribute("form",t.id),l.parentNode.insertBefore(e,l),t=new FormData(t),e.parentNode.removeChild(e),t}function Sm(t,l,e,a,n){if(l==="submit"&&e&&e.stateNode===n){var u=Cr((n[Wt]||null).action),i=a.submitter;i&&(l=(l=i[Wt]||null)?Cr(l.formAction):i.getAttribute("formAction"),l!==null&&(u=l,i=null));var f=new qn("action","action",null,a,n);t.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ve!==0){var s=i?Ur(n,i):new FormData(n);ac(e,{pending:!0,data:s,method:n.method,action:u},null,s)}}else typeof u=="function"&&(f.preventDefault(),s=i?Ur(n,i):new FormData(n),ac(e,{pending:!0,data:s,method:n.method,action:u},u,s))},currentTarget:n}]})}}for(var Yc=0;Yc<bi.length;Yc++){var Gc=bi[Yc],pm=Gc.toLowerCase(),bm=Gc[0].toUpperCase()+Gc.slice(1);zl(pm,"on"+bm)}zl(ss,"onAnimationEnd"),zl(os,"onAnimationIteration"),zl(rs,"onAnimationStart"),zl("dblclick","onDoubleClick"),zl("focusin","onFocus"),zl("focusout","onBlur"),zl(Hh,"onTransitionRun"),zl(qh,"onTransitionStart"),zl(Yh,"onTransitionCancel"),zl(ds,"onTransitionEnd"),ke("onMouseEnter",["mouseout","mouseover"]),ke("onMouseLeave",["mouseout","mouseover"]),ke("onPointerEnter",["pointerout","pointerover"]),ke("onPointerLeave",["pointerout","pointerover"]),_e("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),_e("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),_e("onBeforeInput",["compositionend","keypress","textInput","paste"]),_e("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),_e("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),_e("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hn="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(" "),xm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hn));function Rr(t,l){l=(l&4)!==0;for(var e=0;e<t.length;e++){var a=t[e],n=a.event;a=a.listeners;t:{var u=void 0;if(l)for(var i=a.length-1;0<=i;i--){var f=a[i],s=f.instance,v=f.currentTarget;if(f=f.listener,s!==u&&n.isPropagationStopped())break t;u=f,n.currentTarget=v;try{u(n)}catch(b){Xn(b)}n.currentTarget=null,u=s}else for(i=0;i<a.length;i++){if(f=a[i],s=f.instance,v=f.currentTarget,f=f.listener,s!==u&&n.isPropagationStopped())break t;u=f,n.currentTarget=v;try{u(n)}catch(b){Xn(b)}n.currentTarget=null,u=s}}}}function tt(t,l){var e=l[Iu];e===void 0&&(e=l[Iu]=new Set);var a=t+"__bubble";e.has(a)||(Br(l,t,2,!1),e.add(a))}function Xc(t,l,e){var a=0;l&&(a|=4),Br(e,t,a,l)}var _u="_reactListening"+Math.random().toString(36).slice(2);function Qc(t){if(!t[_u]){t[_u]=!0,Ef.forEach(function(e){e!=="selectionchange"&&(xm.has(e)||Xc(e,!1,t),Xc(e,!0,t))});var l=t.nodeType===9?t:t.ownerDocument;l===null||l[_u]||(l[_u]=!0,Xc("selectionchange",!1,l))}}function Br(t,l,e,a){switch(od(l)){case 2:var n=$m;break;case 8:n=Wm;break;default:n=ef}e=n.bind(null,l,e,t),n=void 0,!ci||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(l,e,{capture:!0,passive:n}):t.addEventListener(l,e,!0):n!==void 0?t.addEventListener(l,e,{passive:n}):t.addEventListener(l,e,!1)}function Zc(t,l,e,a,n){var u=a;if((l&1)===0&&(l&2)===0&&a!==null)t:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var f=a.stateNode.containerInfo;if(f===n)break;if(i===4)for(i=a.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;f!==null;){if(i=Ke(f),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){a=u=i;continue t}f=f.parentNode}}a=a.return}Gf(function(){var v=u,b=ui(e),T=[];t:{var g=hs.get(t);if(g!==void 0){var S=qn,H=t;switch(t){case"keypress":if(Bn(e)===0)break t;case"keydown":case"keyup":S=mh;break;case"focusin":H="focus",S=ri;break;case"focusout":H="blur",S=ri;break;case"beforeblur":case"afterblur":S=ri;break;case"click":if(e.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":S=Zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=eh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=gh;break;case ss:case os:case rs:S=uh;break;case ds:S=ph;break;case"scroll":case"scrollend":S=th;break;case"wheel":S=xh;break;case"copy":case"cut":case"paste":S=ch;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=Vf;break;case"toggle":case"beforetoggle":S=Th}var Z=(l&4)!==0,vt=!Z&&(t==="scroll"||t==="scrollend"),m=Z?g!==null?g+"Capture":null:g;Z=[];for(var r=v,y;r!==null;){var j=r;if(y=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||y===null||m===null||(j=Ra(r,m),j!=null&&Z.push(mn(r,j,y))),vt)break;r=r.return}0<Z.length&&(g=new S(g,H,null,e,b),T.push({event:g,listeners:Z}))}}if((l&7)===0){t:{if(g=t==="mouseover"||t==="pointerover",S=t==="mouseout"||t==="pointerout",g&&e!==ni&&(H=e.relatedTarget||e.fromElement)&&(Ke(H)||H[Ve]))break t;if((S||g)&&(g=b.window===b?b:(g=b.ownerDocument)?g.defaultView||g.parentWindow:window,S?(H=e.relatedTarget||e.toElement,S=v,H=H?Ke(H):null,H!==null&&(vt=_(H),Z=H.tag,H!==vt||Z!==5&&Z!==27&&Z!==6)&&(H=null)):(S=null,H=v),S!==H)){if(Z=Zf,j="onMouseLeave",m="onMouseEnter",r="mouse",(t==="pointerout"||t==="pointerover")&&(Z=Vf,j="onPointerLeave",m="onPointerEnter",r="pointer"),vt=S==null?g:Ua(S),y=H==null?g:Ua(H),g=new Z(j,r+"leave",S,e,b),g.target=vt,g.relatedTarget=y,j=null,Ke(b)===v&&(Z=new Z(m,r+"enter",H,e,b),Z.target=y,Z.relatedTarget=vt,j=Z),vt=j,S&&H)l:{for(Z=jm,m=S,r=H,y=0,j=m;j;j=Z(j))y++;j=0;for(var G=r;G;G=Z(G))j++;for(;0<y-j;)m=Z(m),y--;for(;0<j-y;)r=Z(r),j--;for(;y--;){if(m===r||r!==null&&m===r.alternate){Z=m;break l}m=Z(m),r=Z(r)}Z=null}else Z=null;S!==null&&Hr(T,g,S,Z,!1),H!==null&&vt!==null&&Hr(T,vt,H,Z,!0)}}t:{if(g=v?Ua(v):window,S=g.nodeName&&g.nodeName.toLowerCase(),S==="select"||S==="input"&&g.type==="file")var ct=If;else if(Wf(g))if(Pf)ct=Uh;else{ct=Dh;var Y=Mh}else S=g.nodeName,!S||S.toLowerCase()!=="input"||g.type!=="checkbox"&&g.type!=="radio"?v&&ai(v.elementType)&&(ct=If):ct=Ch;if(ct&&(ct=ct(t,v))){Ff(T,ct,e,b);break t}Y&&Y(t,g,v),t==="focusout"&&v&&g.type==="number"&&v.memoizedProps.value!=null&&ei(g,"number",g.value)}switch(Y=v?Ua(v):window,t){case"focusin":(Wf(Y)||Y.contentEditable==="true")&&(ta=Y,gi=v,Za=null);break;case"focusout":Za=gi=ta=null;break;case"mousedown":Si=!0;break;case"contextmenu":case"mouseup":case"dragend":Si=!1,cs(T,e,b);break;case"selectionchange":if(Bh)break;case"keydown":case"keyup":cs(T,e,b)}var F;if(hi)t:{switch(t){case"compositionstart":var et="onCompositionStart";break t;case"compositionend":et="onCompositionEnd";break t;case"compositionupdate":et="onCompositionUpdate";break t}et=void 0}else Pe?kf(t,e)&&(et="onCompositionEnd"):t==="keydown"&&e.keyCode===229&&(et="onCompositionStart");et&&(Kf&&e.locale!=="ko"&&(Pe||et!=="onCompositionStart"?et==="onCompositionEnd"&&Pe&&(F=Xf()):(te=b,fi="value"in te?te.value:te.textContent,Pe=!0)),Y=Eu(v,et),0<Y.length&&(et=new Lf(et,t,null,e,b),T.push({event:et,listeners:Y}),F?et.data=F:(F=$f(e),F!==null&&(et.data=F)))),(F=Ah?_h(t,e):Eh(t,e))&&(et=Eu(v,"onBeforeInput"),0<et.length&&(Y=new Lf("onBeforeInput","beforeinput",null,e,b),T.push({event:Y,listeners:et}),Y.data=F)),Sm(T,t,v,e,b)}Rr(T,l)})}function mn(t,l,e){return{instance:t,listener:l,currentTarget:e}}function Eu(t,l){for(var e=l+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Ra(t,e),n!=null&&a.unshift(mn(t,n,u)),n=Ra(t,l),n!=null&&a.push(mn(t,n,u))),t.tag===3)return a;t=t.return}return[]}function jm(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Hr(t,l,e,a,n){for(var u=l._reactName,i=[];e!==null&&e!==a;){var f=e,s=f.alternate,v=f.stateNode;if(f=f.tag,s!==null&&s===a)break;f!==5&&f!==26&&f!==27||v===null||(s=v,n?(v=Ra(e,u),v!=null&&i.unshift(mn(e,v,s))):n||(v=Ra(e,u),v!=null&&i.push(mn(e,v,s)))),e=e.return}i.length!==0&&t.push({event:l,listeners:i})}var Tm=/\r\n?/g,zm=/\u0000|\uFFFD/g;function qr(t){return(typeof t=="string"?t:""+t).replace(Tm,`
`).replace(zm,"")}function Yr(t,l){return l=qr(l),qr(t)===l}function yt(t,l,e,a,n,u){switch(e){case"children":typeof a=="string"?l==="body"||l==="textarea"&&a===""||We(t,a):(typeof a=="number"||typeof a=="bigint")&&l!=="body"&&We(t,""+a);break;case"className":Dn(t,"class",a);break;case"tabIndex":Dn(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Dn(t,e,a);break;case"style":qf(t,a,u);break;case"data":if(l!=="object"){Dn(t,"data",a);break}case"src":case"href":if(a===""&&(l!=="a"||e!=="href")){t.removeAttribute(e);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(e);break}a=Un(""+a),t.setAttribute(e,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(e,"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"&&(e==="formAction"?(l!=="input"&&yt(t,l,"name",n.name,n,null),yt(t,l,"formEncType",n.formEncType,n,null),yt(t,l,"formMethod",n.formMethod,n,null),yt(t,l,"formTarget",n.formTarget,n,null)):(yt(t,l,"encType",n.encType,n,null),yt(t,l,"method",n.method,n,null),yt(t,l,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(e);break}a=Un(""+a),t.setAttribute(e,a);break;case"onClick":a!=null&&(t.onclick=Bl);break;case"onScroll":a!=null&&tt("scroll",t);break;case"onScrollEnd":a!=null&&tt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(h(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(h(60));t.innerHTML=e}}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}e=Un(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e);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(e,""+a):t.removeAttribute(e);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(e,""):t.removeAttribute(e);break;case"capture":case"download":a===!0?t.setAttribute(e,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,a):t.removeAttribute(e);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(e,a):t.removeAttribute(e);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(e):t.setAttribute(e,a);break;case"popover":tt("beforetoggle",t),tt("toggle",t),Mn(t,"popover",a);break;case"xlinkActuate":Rl(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Rl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Rl(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Rl(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Rl(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Rl(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Rl(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Rl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Rl(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Mn(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(e=Id.get(e)||e,Mn(t,e,a))}}function Lc(t,l,e,a,n,u){switch(e){case"style":qf(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(h(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(h(60));t.innerHTML=e}}break;case"children":typeof a=="string"?We(t,a):(typeof a=="number"||typeof a=="bigint")&&We(t,""+a);break;case"onScroll":a!=null&&tt("scroll",t);break;case"onScrollEnd":a!=null&&tt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Bl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Of.hasOwnProperty(e))t:{if(e[0]==="o"&&e[1]==="n"&&(n=e.endsWith("Capture"),l=e.slice(2,n?e.length-7:void 0),u=t[Wt]||null,u=u!=null?u[e]:null,typeof u=="function"&&t.removeEventListener(l,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(e in t?t[e]=null:t.hasAttribute(e)&&t.removeAttribute(e)),t.addEventListener(l,a,n);break t}e in t?t[e]=a:a===!0?t.setAttribute(e,""):Mn(t,e,a)}}}function Gt(t,l,e){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",t),tt("load",t);var a=!1,n=!1,u;for(u in e)if(e.hasOwnProperty(u)){var i=e[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(h(137,l));default:yt(t,l,u,i,e,null)}}n&&yt(t,l,"srcSet",e.srcSet,e,null),a&&yt(t,l,"src",e.src,e,null);return;case"input":tt("invalid",t);var f=u=i=n=null,s=null,v=null;for(a in e)if(e.hasOwnProperty(a)){var b=e[a];if(b!=null)switch(a){case"name":n=b;break;case"type":i=b;break;case"checked":s=b;break;case"defaultChecked":v=b;break;case"value":u=b;break;case"defaultValue":f=b;break;case"children":case"dangerouslySetInnerHTML":if(b!=null)throw Error(h(137,l));break;default:yt(t,l,a,b,e,null)}}Uf(t,u,f,s,v,i,n,!1);return;case"select":tt("invalid",t),a=i=u=null;for(n in e)if(e.hasOwnProperty(n)&&(f=e[n],f!=null))switch(n){case"value":u=f;break;case"defaultValue":i=f;break;case"multiple":a=f;default:yt(t,l,n,f,e,null)}l=u,e=i,t.multiple=!!a,l!=null?$e(t,!!a,l,!1):e!=null&&$e(t,!!a,e,!0);return;case"textarea":tt("invalid",t),u=n=a=null;for(i in e)if(e.hasOwnProperty(i)&&(f=e[i],f!=null))switch(i){case"value":a=f;break;case"defaultValue":n=f;break;case"children":u=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(h(91));break;default:yt(t,l,i,f,e,null)}Bf(t,a,n,u);return;case"option":for(s in e)if(e.hasOwnProperty(s)&&(a=e[s],a!=null))switch(s){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:yt(t,l,s,a,e,null)}return;case"dialog":tt("beforetoggle",t),tt("toggle",t),tt("cancel",t),tt("close",t);break;case"iframe":case"object":tt("load",t);break;case"video":case"audio":for(a=0;a<hn.length;a++)tt(hn[a],t);break;case"image":tt("error",t),tt("load",t);break;case"details":tt("toggle",t);break;case"embed":case"source":case"link":tt("error",t),tt("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(v in e)if(e.hasOwnProperty(v)&&(a=e[v],a!=null))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(h(137,l));default:yt(t,l,v,a,e,null)}return;default:if(ai(l)){for(b in e)e.hasOwnProperty(b)&&(a=e[b],a!==void 0&&Lc(t,l,b,a,e,void 0));return}}for(f in e)e.hasOwnProperty(f)&&(a=e[f],a!=null&&yt(t,l,f,a,e,null))}function Am(t,l,e,a){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,f=null,s=null,v=null,b=null;for(S in e){var T=e[S];if(e.hasOwnProperty(S)&&T!=null)switch(S){case"checked":break;case"value":break;case"defaultValue":s=T;default:a.hasOwnProperty(S)||yt(t,l,S,null,a,T)}}for(var g in a){var S=a[g];if(T=e[g],a.hasOwnProperty(g)&&(S!=null||T!=null))switch(g){case"type":u=S;break;case"name":n=S;break;case"checked":v=S;break;case"defaultChecked":b=S;break;case"value":i=S;break;case"defaultValue":f=S;break;case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(h(137,l));break;default:S!==T&&yt(t,l,g,S,a,T)}}li(t,i,f,s,v,b,u,n);return;case"select":S=i=f=g=null;for(u in e)if(s=e[u],e.hasOwnProperty(u)&&s!=null)switch(u){case"value":break;case"multiple":S=s;default:a.hasOwnProperty(u)||yt(t,l,u,null,a,s)}for(n in a)if(u=a[n],s=e[n],a.hasOwnProperty(n)&&(u!=null||s!=null))switch(n){case"value":g=u;break;case"defaultValue":f=u;break;case"multiple":i=u;default:u!==s&&yt(t,l,n,u,a,s)}l=f,e=i,a=S,g!=null?$e(t,!!e,g,!1):!!a!=!!e&&(l!=null?$e(t,!!e,l,!0):$e(t,!!e,e?[]:"",!1));return;case"textarea":S=g=null;for(f in e)if(n=e[f],e.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:yt(t,l,f,null,a,n)}for(i in a)if(n=a[i],u=e[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":g=n;break;case"defaultValue":S=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(h(91));break;default:n!==u&&yt(t,l,i,n,a,u)}Rf(t,g,S);return;case"option":for(var H in e)if(g=e[H],e.hasOwnProperty(H)&&g!=null&&!a.hasOwnProperty(H))switch(H){case"selected":t.selected=!1;break;default:yt(t,l,H,null,a,g)}for(s in a)if(g=a[s],S=e[s],a.hasOwnProperty(s)&&g!==S&&(g!=null||S!=null))switch(s){case"selected":t.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:yt(t,l,s,g,a,S)}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 Z in e)g=e[Z],e.hasOwnProperty(Z)&&g!=null&&!a.hasOwnProperty(Z)&&yt(t,l,Z,null,a,g);for(v in a)if(g=a[v],S=e[v],a.hasOwnProperty(v)&&g!==S&&(g!=null||S!=null))switch(v){case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(h(137,l));break;default:yt(t,l,v,g,a,S)}return;default:if(ai(l)){for(var vt in e)g=e[vt],e.hasOwnProperty(vt)&&g!==void 0&&!a.hasOwnProperty(vt)&&Lc(t,l,vt,void 0,a,g);for(b in a)g=a[b],S=e[b],!a.hasOwnProperty(b)||g===S||g===void 0&&S===void 0||Lc(t,l,b,g,a,S);return}}for(var m in e)g=e[m],e.hasOwnProperty(m)&&g!=null&&!a.hasOwnProperty(m)&&yt(t,l,m,null,a,g);for(T in a)g=a[T],S=e[T],!a.hasOwnProperty(T)||g===S||g==null&&S==null||yt(t,l,T,g,a,S)}function Gr(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _m(){if(typeof performance.getEntriesByType=="function"){for(var t=0,l=0,e=performance.getEntriesByType("resource"),a=0;a<e.length;a++){var n=e[a],u=n.transferSize,i=n.initiatorType,f=n.duration;if(u&&f&&Gr(i)){for(i=0,f=n.responseEnd,a+=1;a<e.length;a++){var s=e[a],v=s.startTime;if(v>f)break;var b=s.transferSize,T=s.initiatorType;b&&Gr(T)&&(s=s.responseEnd,i+=b*(s<f?1:(f-v)/(s-v)))}if(--a,l+=8*(u+i)/(n.duration/1e3),t++,10<t)break}}if(0<t)return l/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Vc=null,Kc=null;function Ou(t){return t.nodeType===9?t:t.ownerDocument}function Xr(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 Qr(t,l){if(t===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&l==="foreignObject"?0:t}function Jc(t,l){return t==="textarea"||t==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var wc=null;function Em(){var t=window.event;return t&&t.type==="popstate"?t===wc?!1:(wc=t,!0):(wc=null,!1)}var Zr=typeof setTimeout=="function"?setTimeout:void 0,Om=typeof clearTimeout=="function"?clearTimeout:void 0,Lr=typeof Promise=="function"?Promise:void 0,Nm=typeof queueMicrotask=="function"?queueMicrotask:typeof Lr<"u"?function(t){return Lr.resolve(null).then(t).catch(Mm)}:Zr;function Mm(t){setTimeout(function(){throw t})}function ge(t){return t==="head"}function Vr(t,l){var e=l,a=0;do{var n=e.nextSibling;if(t.removeChild(e),n&&n.nodeType===8)if(e=n.data,e==="/$"||e==="/&"){if(a===0){t.removeChild(n),Ea(l);return}a--}else if(e==="$"||e==="$?"||e==="$~"||e==="$!"||e==="&")a++;else if(e==="html")yn(t.ownerDocument.documentElement);else if(e==="head"){e=t.ownerDocument.head,yn(e);for(var u=e.firstChild;u;){var i=u.nextSibling,f=u.nodeName;u[Ca]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&u.rel.toLowerCase()==="stylesheet"||e.removeChild(u),u=i}}else e==="body"&&yn(t.ownerDocument.body);e=n}while(e);Ea(l)}function Kr(t,l){var e=t;t=0;do{var a=e.nextSibling;if(e.nodeType===1?l?(e._stashedDisplay=e.style.display,e.style.display="none"):(e.style.display=e._stashedDisplay||"",e.getAttribute("style")===""&&e.removeAttribute("style")):e.nodeType===3&&(l?(e._stashedText=e.nodeValue,e.nodeValue=""):e.nodeValue=e._stashedText||""),a&&a.nodeType===8)if(e=a.data,e==="/$"){if(t===0)break;t--}else e!=="$"&&e!=="$?"&&e!=="$~"&&e!=="$!"||t++;e=a}while(e)}function kc(t){var l=t.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var e=l;switch(l=l.nextSibling,e.nodeName){case"HTML":case"HEAD":case"BODY":kc(e),Pu(e);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(e.rel.toLowerCase()==="stylesheet")continue}t.removeChild(e)}}function Dm(t,l,e,a){for(;t.nodeType===1;){var n=e;if(t.nodeName.toLowerCase()!==l.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Ca])switch(l){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(l==="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=xl(t.nextSibling),t===null)break}return null}function Cm(t,l,e){if(l==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=xl(t.nextSibling),t===null))return null;return t}function Jr(t,l){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=xl(t.nextSibling),t===null))return null;return t}function $c(t){return t.data==="$?"||t.data==="$~"}function Wc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Um(t,l){var e=t.ownerDocument;if(t.data==="$~")t._reactRetry=l;else if(t.data!=="$?"||e.readyState!=="loading")l();else{var a=function(){l(),e.removeEventListener("DOMContentLoaded",a)};e.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function xl(t){for(;t!=null;t=t.nextSibling){var l=t.nodeType;if(l===1||l===3)break;if(l===8){if(l=t.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return t}var Fc=null;function wr(t){t=t.nextSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e==="/$"||e==="/&"){if(l===0)return xl(t.nextSibling);l--}else e!=="$"&&e!=="$!"&&e!=="$?"&&e!=="$~"&&e!=="&"||l++}t=t.nextSibling}return null}function kr(t){t=t.previousSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"){if(l===0)return t;l--}else e!=="/$"&&e!=="/&"||l++}t=t.previousSibling}return null}function $r(t,l,e){switch(l=Ou(e),t){case"html":if(t=l.documentElement,!t)throw Error(h(452));return t;case"head":if(t=l.head,!t)throw Error(h(453));return t;case"body":if(t=l.body,!t)throw Error(h(454));return t;default:throw Error(h(451))}}function yn(t){for(var l=t.attributes;l.length;)t.removeAttributeNode(l[0]);Pu(t)}var jl=new Map,Wr=new Set;function Nu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Fl=C.d;C.d={f:Rm,r:Bm,D:Hm,C:qm,L:Ym,m:Gm,X:Qm,S:Xm,M:Zm};function Rm(){var t=Fl.f(),l=bu();return t||l}function Bm(t){var l=Je(t);l!==null&&l.tag===5&&l.type==="form"?ho(l):Fl.r(t)}var za=typeof document>"u"?null:document;function Fr(t,l,e){var a=za;if(a&&typeof l=="string"&&l){var n=ml(l);n='link[rel="'+t+'"][href="'+n+'"]',typeof e=="string"&&(n+='[crossorigin="'+e+'"]'),Wr.has(n)||(Wr.add(n),t={rel:t,crossOrigin:e,href:l},a.querySelector(n)===null&&(l=a.createElement("link"),Gt(l,"link",t),Ut(l),a.head.appendChild(l)))}}function Hm(t){Fl.D(t),Fr("dns-prefetch",t,null)}function qm(t,l){Fl.C(t,l),Fr("preconnect",t,l)}function Ym(t,l,e){Fl.L(t,l,e);var a=za;if(a&&t&&l){var n='link[rel="preload"][as="'+ml(l)+'"]';l==="image"&&e&&e.imageSrcSet?(n+='[imagesrcset="'+ml(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(n+='[imagesizes="'+ml(e.imageSizes)+'"]')):n+='[href="'+ml(t)+'"]';var u=n;switch(l){case"style":u=Aa(t);break;case"script":u=_a(t)}jl.has(u)||(t=D({rel:"preload",href:l==="image"&&e&&e.imageSrcSet?void 0:t,as:l},e),jl.set(u,t),a.querySelector(n)!==null||l==="style"&&a.querySelector(vn(u))||l==="script"&&a.querySelector(gn(u))||(l=a.createElement("link"),Gt(l,"link",t),Ut(l),a.head.appendChild(l)))}}function Gm(t,l){Fl.m(t,l);var e=za;if(e&&t){var a=l&&typeof l.as=="string"?l.as:"script",n='link[rel="modulepreload"][as="'+ml(a)+'"][href="'+ml(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=_a(t)}if(!jl.has(u)&&(t=D({rel:"modulepreload",href:t},l),jl.set(u,t),e.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(gn(u)))return}a=e.createElement("link"),Gt(a,"link",t),Ut(a),e.head.appendChild(a)}}}function Xm(t,l,e){Fl.S(t,l,e);var a=za;if(a&&t){var n=we(a).hoistableStyles,u=Aa(t);l=l||"default";var i=n.get(u);if(!i){var f={loading:0,preload:null};if(i=a.querySelector(vn(u)))f.loading=5;else{t=D({rel:"stylesheet",href:t,"data-precedence":l},e),(e=jl.get(u))&&Ic(t,e);var s=i=a.createElement("link");Ut(s),Gt(s,"link",t),s._p=new Promise(function(v,b){s.onload=v,s.onerror=b}),s.addEventListener("load",function(){f.loading|=1}),s.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Mu(i,l,a)}i={type:"stylesheet",instance:i,count:1,state:f},n.set(u,i)}}}function Qm(t,l){Fl.X(t,l);var e=za;if(e&&t){var a=we(e).hoistableScripts,n=_a(t),u=a.get(n);u||(u=e.querySelector(gn(n)),u||(t=D({src:t,async:!0},l),(l=jl.get(n))&&Pc(t,l),u=e.createElement("script"),Ut(u),Gt(u,"link",t),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Zm(t,l){Fl.M(t,l);var e=za;if(e&&t){var a=we(e).hoistableScripts,n=_a(t),u=a.get(n);u||(u=e.querySelector(gn(n)),u||(t=D({src:t,async:!0,type:"module"},l),(l=jl.get(n))&&Pc(t,l),u=e.createElement("script"),Ut(u),Gt(u,"link",t),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Ir(t,l,e,a){var n=(n=I.current)?Nu(n):null;if(!n)throw Error(h(446));switch(t){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(l=Aa(e.href),e=we(n).hoistableStyles,a=e.get(l),a||(a={type:"style",instance:null,count:0,state:null},e.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){t=Aa(e.href);var u=we(n).hoistableStyles,i=u.get(t);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,i),(u=n.querySelector(vn(t)))&&!u._p&&(i.instance=u,i.state.loading=5),jl.has(t)||(e={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},jl.set(t,e),u||Lm(n,t,e,i.state))),l&&a===null)throw Error(h(528,""));return i}if(l&&a!==null)throw Error(h(529,""));return null;case"script":return l=e.async,e=e.src,typeof e=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=_a(e),e=we(n).hoistableScripts,a=e.get(l),a||(a={type:"script",instance:null,count:0,state:null},e.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(h(444,t))}}function Aa(t){return'href="'+ml(t)+'"'}function vn(t){return'link[rel="stylesheet"]['+t+"]"}function Pr(t){return D({},t,{"data-precedence":t.precedence,precedence:null})}function Lm(t,l,e,a){t.querySelector('link[rel="preload"][as="style"]['+l+"]")?a.loading=1:(l=t.createElement("link"),a.preload=l,l.addEventListener("load",function(){return a.loading|=1}),l.addEventListener("error",function(){return a.loading|=2}),Gt(l,"link",e),Ut(l),t.head.appendChild(l))}function _a(t){return'[src="'+ml(t)+'"]'}function gn(t){return"script[async]"+t}function td(t,l,e){if(l.count++,l.instance===null)switch(l.type){case"style":var a=t.querySelector('style[data-href~="'+ml(e.href)+'"]');if(a)return l.instance=a,Ut(a),a;var n=D({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Ut(a),Gt(a,"style",n),Mu(a,e.precedence,t),l.instance=a;case"stylesheet":n=Aa(e.href);var u=t.querySelector(vn(n));if(u)return l.state.loading|=4,l.instance=u,Ut(u),u;a=Pr(e),(n=jl.get(n))&&Ic(a,n),u=(t.ownerDocument||t).createElement("link"),Ut(u);var i=u;return i._p=new Promise(function(f,s){i.onload=f,i.onerror=s}),Gt(u,"link",a),l.state.loading|=4,Mu(u,e.precedence,t),l.instance=u;case"script":return u=_a(e.src),(n=t.querySelector(gn(u)))?(l.instance=n,Ut(n),n):(a=e,(n=jl.get(u))&&(a=D({},e),Pc(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Ut(n),Gt(n,"link",a),t.head.appendChild(n),l.instance=n);case"void":return null;default:throw Error(h(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(a=l.instance,l.state.loading|=4,Mu(a,e.precedence,t));return l.instance}function Mu(t,l,e){for(var a=e.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var f=a[i];if(f.dataset.precedence===l)u=f;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(l=e.nodeType===9?e.head:e,l.insertBefore(t,l.firstChild))}function Ic(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.title==null&&(t.title=l.title)}function Pc(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.integrity==null&&(t.integrity=l.integrity)}var Du=null;function ld(t,l,e){if(Du===null){var a=new Map,n=Du=new Map;n.set(e,a)}else n=Du,a=n.get(e),a||(a=new Map,n.set(e,a));if(a.has(t))return a;for(a.set(t,null),e=e.getElementsByTagName(t),n=0;n<e.length;n++){var u=e[n];if(!(u[Ca]||u[Bt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(l)||"";i=t+i;var f=a.get(i);f?f.push(u):a.set(i,[u])}}return a}function ed(t,l,e){t=t.ownerDocument||t,t.head.insertBefore(e,l==="title"?t.querySelector("head > title"):null)}function Vm(t,l,e){if(e===1||l.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return t=l.disabled,typeof l.precedence=="string"&&t==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function ad(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Km(t,l,e,a){if(e.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var n=Aa(a.href),u=l.querySelector(vn(n));if(u){l=u._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(t.count++,t=Cu.bind(t),l.then(t,t)),e.state.loading|=4,e.instance=u,Ut(u);return}u=l.ownerDocument||l,a=Pr(a),(n=jl.get(n))&&Ic(a,n),u=u.createElement("link"),Ut(u);var i=u;i._p=new Promise(function(f,s){i.onload=f,i.onerror=s}),Gt(u,"link",a),e.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(e,l),(l=e.state.preload)&&(e.state.loading&3)===0&&(t.count++,e=Cu.bind(t),l.addEventListener("load",e),l.addEventListener("error",e))}}var tf=0;function Jm(t,l){return t.stylesheets&&t.count===0&&Ru(t,t.stylesheets),0<t.count||0<t.imgCount?function(e){var a=setTimeout(function(){if(t.stylesheets&&Ru(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+l);0<t.imgBytes&&tf===0&&(tf=62500*_m());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ru(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>tf?50:800)+l);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Cu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ru(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Uu=null;function Ru(t,l){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Uu=new Map,l.forEach(wm,t),Uu=null,Cu.call(t))}function wm(t,l){if(!(l.state.loading&4)){var e=Uu.get(t);if(e)var a=e.get(null);else{e=new Map,Uu.set(t,e);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(e.set(i.dataset.precedence,i),a=i)}a&&e.set(null,a)}n=l.instance,i=n.getAttribute("data-precedence"),u=e.get(i)||a,u===a&&e.set(null,n),e.set(i,n),this.count++,a=Cu.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)),l.state.loading|=4}}var Sn={$$typeof:X,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function km(t,l,e,a,n,u,i,f,s){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=$u(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$u(0),this.hiddenUpdates=$u(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function nd(t,l,e,a,n,u,i,f,s,v,b,T){return t=new km(t,l,e,i,s,v,b,T,f),l=1,u===!0&&(l|=24),u=cl(3,null,null,l),t.current=u,u.stateNode=t,l=Ui(),l.refCount++,t.pooledCache=l,l.refCount++,u.memoizedState={element:a,isDehydrated:e,cache:l},qi(u),t}function ud(t){return t?(t=aa,t):aa}function id(t,l,e,a,n,u){n=ud(n),a.context===null?a.context=n:a.pendingContext=n,a=ie(l),a.payload={element:e},u=u===void 0?null:u,u!==null&&(a.callback=u),e=ce(t,a,l),e!==null&&(el(e,t,l),$a(e,t,l))}function cd(t,l){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var e=t.retryLane;t.retryLane=e!==0&&e<l?e:l}}function lf(t,l){cd(t,l),(t=t.alternate)&&cd(t,l)}function fd(t){if(t.tag===13||t.tag===31){var l=Me(t,67108864);l!==null&&el(l,t,67108864),lf(t,67108864)}}function sd(t){if(t.tag===13||t.tag===31){var l=dl();l=Wu(l);var e=Me(t,l);e!==null&&el(e,t,l),lf(t,l)}}var Bu=!0;function $m(t,l,e,a){var n=x.T;x.T=null;var u=C.p;try{C.p=2,ef(t,l,e,a)}finally{C.p=u,x.T=n}}function Wm(t,l,e,a){var n=x.T;x.T=null;var u=C.p;try{C.p=8,ef(t,l,e,a)}finally{C.p=u,x.T=n}}function ef(t,l,e,a){if(Bu){var n=af(a);if(n===null)Zc(t,l,a,Hu,e),rd(t,a);else if(Im(n,t,l,e,a))a.stopPropagation();else if(rd(t,a),l&4&&-1<Fm.indexOf(t)){for(;n!==null;){var u=Je(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Ae(u.pendingLanes);if(i!==0){var f=u;for(f.pendingLanes|=2,f.entangledLanes|=2;i;){var s=1<<31-ul(i);f.entanglements[1]|=s,i&=~s}Cl(u),(st&6)===0&&(Su=al()+500,dn(0))}}break;case 31:case 13:f=Me(u,2),f!==null&&el(f,u,2),bu(),lf(u,2)}if(u=af(a),u===null&&Zc(t,l,a,Hu,e),u===n)break;n=u}n!==null&&a.stopPropagation()}else Zc(t,l,a,null,e)}}function af(t){return t=ui(t),nf(t)}var Hu=null;function nf(t){if(Hu=null,t=Ke(t),t!==null){var l=_(t);if(l===null)t=null;else{var e=l.tag;if(e===13){if(t=R(l),t!==null)return t;t=null}else if(e===31){if(t=K(l),t!==null)return t;t=null}else if(e===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;t=null}else l!==t&&(t=null)}}return Hu=t,null}function od(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(Hd()){case gf:return 2;case Sf:return 8;case An:case qd:return 32;case pf:return 268435456;default:return 32}default:return 32}}var uf=!1,Se=null,pe=null,be=null,pn=new Map,bn=new Map,xe=[],Fm="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 rd(t,l){switch(t){case"focusin":case"focusout":Se=null;break;case"dragenter":case"dragleave":pe=null;break;case"mouseover":case"mouseout":be=null;break;case"pointerover":case"pointerout":pn.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":bn.delete(l.pointerId)}}function xn(t,l,e,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:l,domEventName:e,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},l!==null&&(l=Je(l),l!==null&&fd(l)),t):(t.eventSystemFlags|=a,l=t.targetContainers,n!==null&&l.indexOf(n)===-1&&l.push(n),t)}function Im(t,l,e,a,n){switch(l){case"focusin":return Se=xn(Se,t,l,e,a,n),!0;case"dragenter":return pe=xn(pe,t,l,e,a,n),!0;case"mouseover":return be=xn(be,t,l,e,a,n),!0;case"pointerover":var u=n.pointerId;return pn.set(u,xn(pn.get(u)||null,t,l,e,a,n)),!0;case"gotpointercapture":return u=n.pointerId,bn.set(u,xn(bn.get(u)||null,t,l,e,a,n)),!0}return!1}function dd(t){var l=Ke(t.target);if(l!==null){var e=_(l);if(e!==null){if(l=e.tag,l===13){if(l=R(e),l!==null){t.blockedOn=l,Af(t.priority,function(){sd(e)});return}}else if(l===31){if(l=K(e),l!==null){t.blockedOn=l,Af(t.priority,function(){sd(e)});return}}else if(l===3&&e.stateNode.current.memoizedState.isDehydrated){t.blockedOn=e.tag===3?e.stateNode.containerInfo:null;return}}}t.blockedOn=null}function qu(t){if(t.blockedOn!==null)return!1;for(var l=t.targetContainers;0<l.length;){var e=af(t.nativeEvent);if(e===null){e=t.nativeEvent;var a=new e.constructor(e.type,e);ni=a,e.target.dispatchEvent(a),ni=null}else return l=Je(e),l!==null&&fd(l),t.blockedOn=e,!1;l.shift()}return!0}function hd(t,l,e){qu(t)&&e.delete(l)}function Pm(){uf=!1,Se!==null&&qu(Se)&&(Se=null),pe!==null&&qu(pe)&&(pe=null),be!==null&&qu(be)&&(be=null),pn.forEach(hd),bn.forEach(hd)}function Yu(t,l){t.blockedOn===l&&(t.blockedOn=null,uf||(uf=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Pm)))}var Gu=null;function md(t){Gu!==t&&(Gu=t,o.unstable_scheduleCallback(o.unstable_NormalPriority,function(){Gu===t&&(Gu=null);for(var l=0;l<t.length;l+=3){var e=t[l],a=t[l+1],n=t[l+2];if(typeof a!="function"){if(nf(a||e)===null)continue;break}var u=Je(e);u!==null&&(t.splice(l,3),l-=3,ac(u,{pending:!0,data:n,method:e.method,action:a},a,n))}}))}function Ea(t){function l(s){return Yu(s,t)}Se!==null&&Yu(Se,t),pe!==null&&Yu(pe,t),be!==null&&Yu(be,t),pn.forEach(l),bn.forEach(l);for(var e=0;e<xe.length;e++){var a=xe[e];a.blockedOn===t&&(a.blockedOn=null)}for(;0<xe.length&&(e=xe[0],e.blockedOn===null);)dd(e),e.blockedOn===null&&xe.shift();if(e=(t.ownerDocument||t).$$reactFormReplay,e!=null)for(a=0;a<e.length;a+=3){var n=e[a],u=e[a+1],i=n[Wt]||null;if(typeof u=="function")i||md(e);else if(i){var f=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[Wt]||null)f=i.formAction;else if(nf(n)!==null)continue}else f=i.action;typeof f=="function"?e[a+1]=f:(e.splice(a,3),a-=3),md(e)}}}function yd(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function l(){n!==null&&(n(),n=null),a||setTimeout(e,20)}function e(){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",l),navigation.addEventListener("navigateerror",l),setTimeout(e,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),n!==null&&(n(),n=null)}}}function cf(t){this._internalRoot=t}Xu.prototype.render=cf.prototype.render=function(t){var l=this._internalRoot;if(l===null)throw Error(h(409));var e=l.current,a=dl();id(e,a,t,l,null,null)},Xu.prototype.unmount=cf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var l=t.containerInfo;id(t.current,2,null,t,null,null),bu(),l[Ve]=null}};function Xu(t){this._internalRoot=t}Xu.prototype.unstable_scheduleHydration=function(t){if(t){var l=zf();t={blockedOn:null,target:t,priority:l};for(var e=0;e<xe.length&&l!==0&&l<xe[e].priority;e++);xe.splice(e,0,t),e===0&&dd(t)}};var vd=M.version;if(vd!=="19.2.5")throw Error(h(527,vd,"19.2.5"));C.findDOMNode=function(t){var l=t._reactInternals;if(l===void 0)throw typeof t.render=="function"?Error(h(188)):(t=Object.keys(t).join(","),Error(h(268,t)));return t=p(l),t=t!==null?B(t):null,t=t===null?null:t.stateNode,t};var ty={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:x,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qu.isDisabled&&Qu.supportsFiber)try{Na=Qu.inject(ty),nl=Qu}catch{}}return Tn.createRoot=function(t,l){if(!N(t))throw Error(h(299));var e=!1,a="",n=To,u=zo,i=Ao;return l!=null&&(l.unstable_strictMode===!0&&(e=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(n=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(i=l.onRecoverableError)),l=nd(t,1,!1,null,null,e,a,null,n,u,i,yd),t[Ve]=l.current,Qc(t),new cf(l)},Tn.hydrateRoot=function(t,l,e){if(!N(t))throw Error(h(299));var a=!1,n="",u=To,i=zo,f=Ao,s=null;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError),e.formState!==void 0&&(s=e.formState)),l=nd(t,1,!0,l,e??null,a,n,s,u,i,f,yd),l.context=ud(null),e=l.current,a=dl(),a=Wu(a),n=ie(a),n.callback=null,ce(e,n,a),e=a,l.current.lanes=e,Da(l,e),Cl(l),t[Ve]=l.current,Qc(t),new Xu(l)},Tn.version="19.2.5",Tn}var _d;function oy(){if(_d)return of.exports;_d=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(M){console.error(M)}}return o(),of.exports=sy(),of.exports}var ry=oy();const dy=Md(ry),Cd="";async function wt(o,M){const E=await fetch(`${Cd}${o}`,{...M,credentials:"same-origin",headers:{"Content-Type":"application/json",...M==null?void 0:M.headers}});if(E.status===401)throw window.location.hash="#login",new Error("Unauthorized");if(!E.ok){const h=await E.json().catch(()=>({}));throw new Error(h.error||`HTTP ${E.status}`)}return E.json()}async function hy(o){const M=await fetch(`${Cd}${o}`,{credentials:"same-origin"});if(M.status===401)throw window.location.hash="#login",new Error("Unauthorized");if(!M.ok)throw new Error(`HTTP ${M.status}`);return M.text()}const Lt={login:o=>wt("/admin/login",{method:"POST",body:JSON.stringify({token:o})}),signOutEverywhere:()=>wt("/admin/api/sign-out-everywhere",{method:"POST"}),stats:()=>wt("/admin/api/stats"),health:()=>wt("/admin/api/health-indicators"),agents:()=>wt("/admin/api/agents"),sources:()=>wt("/admin/api/sources"),requests:(o=1,M="")=>wt(`/admin/api/requests?page=${o}${M}`),apiKeys:()=>wt("/admin/api/api-keys"),createApiKey(o){return wt("/admin/api/api-keys",{method:"POST",body:JSON.stringify({name:o})})},revokeApiKey(o){return wt("/admin/api/api-keys/revoke",{method:"POST",body:JSON.stringify({name:o})})},updateClientTtl:(o,M)=>wt("/admin/api/update-client-ttl",{method:"POST",body:JSON.stringify({clientId:o,tokenTtl:M})}),rescopeClient:(o,M,E)=>wt("/admin/api/rescope-client",{method:"POST",body:JSON.stringify({clientId:o,sourceId:M,federatedRead:E})}),revokeClient:o=>wt("/admin/api/revoke-client",{method:"POST",body:JSON.stringify({clientId:o})}),calibrationProfile:o=>wt(`/admin/api/calibration/profile${o?`?holder=${encodeURIComponent(o)}`:""}`),calibrationChart:(o,M)=>hy(`/admin/api/calibration/charts/${encodeURIComponent(o)}${M?`?holder=${encodeURIComponent(M)}`:""}`),jobsWatch:()=>wt("/admin/api/jobs/watch")};function my({onLogin:o}){const[M,E]=L.useState(""),[h,N]=L.useState(""),[_,R]=L.useState(!1),K=async A=>{A.preventDefault(),N(""),R(!0);try{await Lt.login(M),E(""),o()}catch{N("Invalid token.")}finally{R(!1)}};return c.jsx("div",{className:"login-page",children:c.jsxs("div",{className:"login-box",children:[c.jsx("div",{className:"login-logo",children:"GBrain"}),c.jsxs("div",{style:{background:"rgba(136, 170, 255, 0.08)",border:"1px solid rgba(136, 170, 255, 0.2)",borderRadius:8,padding:"14px 16px",marginBottom:20,fontSize:13,lineHeight:1.5,color:"var(--text-secondary)"},children:[c.jsx("div",{style:{fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"🔒 This is a protected dashboard"}),"Ask your AI agent for the admin login link:",c.jsx("div",{style:{background:"rgba(0,0,0,0.3)",borderRadius:6,padding:"8px 12px",marginTop:8,fontFamily:"var(--font-mono)",fontSize:12,color:"#88aaff",wordBreak:"break-all"},children:'"Give me the GBrain admin login link"'}),c.jsx("div",{style:{marginTop:8,fontSize:12,color:"var(--text-muted)"},children:"Each link is single-use. Your agent generates a fresh one each time."})]}),c.jsxs("details",{style:{marginBottom:16},children:[c.jsx("summary",{style:{cursor:"pointer",fontSize:13,color:"var(--text-muted)"},children:"Or paste bootstrap token manually"}),c.jsxs("form",{onSubmit:K,style:{marginTop:12},children:[c.jsx("div",{style:{marginBottom:12},children:c.jsx("input",{type:"password",placeholder:"Admin Token",value:M,onChange:A=>E(A.target.value)})}),c.jsx("button",{className:"btn btn-primary",style:{width:"100%"},disabled:_,children:_?"Authenticating...":"Submit"}),h&&c.jsx("div",{className:"login-error",children:h})]})]})]})})}function yy(){const[o,M]=L.useState({connected_agents:0,requests_today:0,active_tokens:0}),[E,h]=L.useState({expiring_soon:0,error_rate:"0%"}),[N,_]=L.useState([]),[R,K]=L.useState("connecting"),A=L.useRef(null);L.useEffect(()=>{Lt.stats().then(M).catch(()=>{}),Lt.health().then(h).catch(()=>{});const B=new EventSource("/admin/events",{withCredentials:!0});A.current=B,B.onopen=()=>K("connected"),B.onmessage=O=>{try{const Q=JSON.parse(O.data);_(V=>[Q,...V].slice(0,50))}catch{}},B.onerror=()=>{K("disconnected"),setTimeout(()=>{K("connecting"),B.close()},3e3)};const D=setInterval(()=>{Lt.stats().then(M).catch(()=>{}),Lt.health().then(h).catch(()=>{})},3e4);return()=>{B.close(),clearInterval(D)}},[]);const p=B=>{const D=Date.now()-new Date(B).getTime();return D<6e4?`${Math.floor(D/1e3)}s ago`:D<36e5?`${Math.floor(D/6e4)} min ago`:`${Math.floor(D/36e5)}h ago`};return c.jsxs(c.Fragment,{children:[c.jsx("h1",{className:"page-title",children:"Dashboard"}),c.jsxs("div",{style:{display:"flex",gap:24},children:[c.jsxs("div",{style:{flex:1},children:[c.jsxs("div",{className:"metrics",children:[c.jsxs("div",{className:"metric",children:[c.jsx("div",{className:"metric-value",children:o.connected_agents}),c.jsx("div",{className:"metric-label",children:"Connected Agents"})]}),c.jsxs("div",{className:"metric",children:[c.jsx("div",{className:"metric-value",children:o.requests_today}),c.jsx("div",{className:"metric-label",children:"Requests Today"})]}),c.jsxs("div",{className:"metric",children:[c.jsx("div",{className:"metric-value",children:o.active_tokens}),c.jsx("div",{className:"metric-label",children:"Active Tokens"})]})]}),c.jsxs("h2",{className:"section-title",children:["Live Activity",c.jsx("span",{style:{marginLeft:8,fontSize:10,color:R==="connected"?"var(--success)":R==="connecting"?"var(--warning)":"var(--error)"},children:R==="connected"?"● connected":R==="connecting"?"● connecting...":"● disconnected"})]}),c.jsx("div",{className:"feed",children:N.length===0?c.jsx("div",{className:"feed-empty",children:R==="connected"?"No requests yet. Agents will appear when they connect.":"Connecting..."}):c.jsxs("table",{children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Agent"}),c.jsx("th",{children:"Operation"}),c.jsx("th",{children:"Scopes"}),c.jsx("th",{children:"Latency"}),c.jsx("th",{children:"Status"}),c.jsx("th",{children:"Time"})]})}),c.jsx("tbody",{children:N.map((B,D)=>c.jsxs("tr",{children:[c.jsx("td",{className:"mono",children:B.agent}),c.jsx("td",{className:"mono",children:B.operation}),c.jsx("td",{children:B.scopes.split(",").map(O=>c.jsx("span",{className:`badge badge-${O.trim()}`,style:{marginRight:4},children:O.trim()},O))}),c.jsxs("td",{className:"mono",children:[B.latency_ms," ms"]}),c.jsx("td",{children:c.jsx("span",{className:`badge badge-${B.status}`,children:B.status})}),c.jsx("td",{style:{color:"var(--text-secondary)"},children:p(B.timestamp)})]},D))})]})})]}),c.jsxs("div",{style:{width:220},children:[c.jsx("h2",{className:"section-title",children:"Token Health"}),c.jsxs("div",{className:"health-panel",children:[c.jsxs("div",{className:"health-row",children:[c.jsx("span",{style:{color:"var(--warning)"},children:"Expiring Soon"}),c.jsx("span",{className:"mono",children:E.expiring_soon})]}),c.jsxs("div",{className:"health-row",children:[c.jsx("span",{style:{color:"var(--error)"},children:"Error Rate"}),c.jsx("span",{className:"mono",children:E.error_rate})]})]})]})]})]})}const Ed=["admin","agent","read","sources_admin","users_admin","write"];function vy(o){const M=Math.floor((Date.now()-o.getTime())/1e3);return M<60?"just now":M<3600?`${Math.floor(M/60)}m ago`:M<86400?`${Math.floor(M/3600)}h ago`:`${Math.floor(M/86400)}d ago`}function gy(){const[o,M]=L.useState([]),[E,h]=L.useState([]),[N,_]=L.useState(!0),[R,K]=L.useState(!1),[A,p]=L.useState(null),[B,D]=L.useState(!1),[O,Q]=L.useState(null),[V,it]=L.useState(null);L.useEffect(()=>{gt(),Lt.sources().then(h).catch(()=>{})},[]);const gt=()=>{Lt.agents().then(M).catch(()=>{})};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:24},children:[c.jsx("h1",{className:"page-title",style:{marginBottom:0},children:"Agents"}),c.jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[c.jsxs("label",{style:{fontSize:13,color:"var(--text-secondary)",display:"flex",alignItems:"center",gap:6,cursor:"pointer"},children:[c.jsx("input",{type:"checkbox",checked:N,onChange:ut=>_(ut.target.checked)})," Hide revoked"]}),c.jsx("button",{className:"btn btn-secondary",onClick:()=>D(!0),children:"+ API Key"}),c.jsx("button",{className:"btn btn-primary",onClick:()=>K(!0),children:"+ OAuth Client"})]})]}),(()=>{const ut=o.filter(w=>!N||w.status!=="revoked");return o.length===0?c.jsx("div",{style:{textAlign:"center",padding:48,color:"var(--text-muted)"},children:"No agents registered. Register your first agent to get started."}):ut.length===0?c.jsx("div",{style:{textAlign:"center",padding:48,color:"var(--text-muted)"},children:'All agents are revoked. Uncheck "Hide revoked" to view them.'}):c.jsxs(c.Fragment,{children:[c.jsxs("table",{children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Name"}),c.jsx("th",{children:"Type"}),c.jsx("th",{children:"Scopes"}),c.jsx("th",{children:"Sources"}),c.jsx("th",{children:"Status"}),c.jsx("th",{children:"Requests"}),c.jsx("th",{children:"Last Used"})]})}),c.jsx("tbody",{children:ut.map(w=>c.jsxs("tr",{onClick:()=>it(w),style:{cursor:"pointer"},children:[c.jsx("td",{style:{fontWeight:500},children:w.name||w.client_name}),c.jsx("td",{children:c.jsx("span",{className:`badge ${w.auth_type==="oauth"?"badge-read":"badge-write"}`,style:{fontSize:11},children:w.auth_type==="oauth"?"OAuth":"API Key"})}),c.jsx("td",{children:(w.scope||"").split(" ").filter(Boolean).map(X=>c.jsx("span",{className:`badge badge-${X}`,style:{marginRight:4},children:X},X))}),c.jsx("td",{style:{color:"var(--text-secondary)",fontSize:12},children:w.auth_type==="oauth"?`${w.source_id||"none"} · ${(w.federated_read||[]).length} readable`:"Unscoped"}),c.jsx("td",{children:c.jsx("span",{className:`badge ${w.status==="active"?"badge-success":"badge-danger"}`,children:w.status})}),c.jsxs("td",{children:[c.jsx("span",{style:{fontWeight:500},children:w.requests_today||0}),c.jsxs("span",{style:{color:"var(--text-muted)",fontSize:12},children:[" / ",w.total_requests||0]})]}),c.jsx("td",{style:{color:"var(--text-secondary)"},children:w.last_used_at?vy(new Date(w.last_used_at)):"Never"})]},w.id))})]}),c.jsxs("div",{style:{color:"var(--text-muted)",fontSize:13,marginTop:12},children:[o.filter(w=>w.status==="active").length," active / ",o.length," total"]})]})})(),R&&c.jsx(by,{onClose:()=>K(!1),onRegistered:ut=>{K(!1),p(ut),gt()}}),A&&c.jsx(xy,{credentials:A,onClose:()=>p(null)}),V&&c.jsx(Ty,{agent:V,sources:E,onClose:()=>it(null),onRevoked:gt,onRescoped:({sourceId:ut,federatedRead:w})=>{it(X=>X&&{...X,source_id:ut,federated_read:w}),gt()}},V.id),B&&c.jsx(Sy,{onClose:()=>D(!1),onCreated:ut=>{D(!1),Q(ut),gt()}}),O&&c.jsx(py,{token:O,onClose:()=>Q(null)})]})}function Sy({onClose:o,onCreated:M}){const[E,h]=L.useState(""),[N,_]=L.useState(!1),[R,K]=L.useState(""),A=async p=>{if(p.preventDefault(),!E.trim()){K("Name required");return}_(!0);try{const B=await Lt.createApiKey(E.trim());M({name:B.name,token:B.token})}catch(B){K(B instanceof Error?B.message:"Failed")}finally{_(!1)}};return c.jsx("div",{className:"modal-overlay",onClick:o,children:c.jsxs("form",{className:"modal",onClick:p=>p.stopPropagation(),onSubmit:A,children:[c.jsx("div",{className:"modal-title",children:"Create API Key"}),c.jsx("p",{style:{color:"var(--text-secondary)",fontSize:13,marginBottom:16},children:"API keys use simple bearer token auth. They grant full read+write+admin access. For scoped access, use OAuth clients instead."}),c.jsxs("div",{style:{marginBottom:16},children:[c.jsx("label",{children:"Key Name"}),c.jsx("input",{placeholder:"e.g. claude-code-local",value:E,onChange:p=>h(p.target.value),autoFocus:!0})]}),R&&c.jsx("div",{style:{color:"var(--error)",fontSize:13,marginBottom:12},children:R}),c.jsxs("div",{style:{display:"flex",gap:12,justifyContent:"flex-end"},children:[c.jsx("button",{type:"button",className:"btn btn-secondary",onClick:o,children:"Cancel"}),c.jsx("button",{type:"submit",className:"btn btn-primary",disabled:N,children:N?"Creating...":"Create Key"})]})]})})}function py({token:o,onClose:M}){const E=h=>navigator.clipboard.writeText(h);return c.jsx("div",{className:"modal-overlay",children:c.jsxs("div",{className:"modal",style:{maxWidth:560},children:[c.jsxs("div",{style:{textAlign:"center",marginBottom:16},children:[c.jsx("div",{style:{fontSize:36,color:"var(--success)",marginBottom:8},children:"✓"}),c.jsx("div",{style:{fontSize:20,fontWeight:600},children:"API Key Created"})]}),c.jsxs("div",{style:{marginBottom:12},children:[c.jsx("label",{style:{fontSize:12},children:"Name"}),c.jsx("div",{className:"code-block",children:c.jsx("span",{children:o.name})})]}),c.jsxs("div",{style:{marginBottom:12},children:[c.jsx("label",{style:{fontSize:12},children:"Bearer Token"}),c.jsxs("div",{className:"code-block",children:[c.jsx("span",{children:o.token}),c.jsx("button",{className:"copy-btn",onClick:()=>E(o.token),children:"Copy"})]})]}),c.jsxs("div",{style:{marginBottom:12},children:[c.jsx("label",{style:{fontSize:12},children:"Usage"}),c.jsxs("div",{className:"code-block",children:[c.jsx("pre",{style:{whiteSpace:"pre-wrap",margin:0,fontSize:12},children:`Authorization: Bearer ${o.token}`}),c.jsx("button",{className:"copy-btn",onClick:()=>E(`Authorization: Bearer ${o.token}`),children:"Copy"})]})]}),c.jsx("div",{className:"warning-bar",children:"Save this token now. It will not be shown again."}),c.jsx("div",{style:{display:"flex",gap:12,justifyContent:"flex-end",marginTop:20},children:c.jsx("button",{className:"btn btn-primary",onClick:M,children:"Done"})})]})})}function by({onClose:o,onRegistered:M}){const[E,h]=L.useState(""),[N,_]=L.useState(()=>Object.fromEntries(Ed.map(V=>[V,V==="read"]))),[R,K]=L.useState("86400"),[A,p]=L.useState(!1),[B,D]=L.useState(""),O=[{label:"1 hour",value:"3600"},{label:"24 hours",value:"86400"},{label:"7 days",value:"604800"},{label:"30 days",value:"2592000"},{label:"1 year",value:"31536000"},{label:"No expiry",value:"0"}],Q=async V=>{if(V.preventDefault(),!E.trim()){D("Name required");return}p(!0),D("");try{const it=Object.entries(N).filter(([,w])=>w).map(([w])=>w).join(" "),gt=await fetch("/admin/api/register-client",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:E.trim(),scopes:it,tokenTtl:R==="0"?31536e4:Number(R)})});if(!gt.ok)throw new Error("Registration failed");const ut=await gt.json();M({clientId:ut.clientId,clientSecret:ut.clientSecret,name:E.trim()})}catch(it){D(it instanceof Error?it.message:"Registration failed")}finally{p(!1)}};return c.jsx("div",{className:"modal-overlay",onClick:o,children:c.jsxs("form",{className:"modal",onClick:V=>V.stopPropagation(),onSubmit:Q,children:[c.jsx("div",{className:"modal-title",children:"Register Agent"}),c.jsxs("div",{style:{marginBottom:16},children:[c.jsx("label",{children:"Agent Name"}),c.jsx("input",{placeholder:"e.g. perplexity-production",value:E,onChange:V=>h(V.target.value),autoFocus:!0})]}),c.jsxs("div",{style:{marginBottom:16},children:[c.jsx("label",{children:"Scopes"}),c.jsx("div",{className:"checkbox-group",children:Ed.map(V=>c.jsxs("label",{className:"checkbox-label",children:[c.jsx("input",{type:"checkbox",checked:N[V],onChange:it=>_(gt=>({...gt,[V]:it.target.checked}))}),V]},V))})]}),c.jsxs("div",{style:{marginBottom:20},children:[c.jsx("label",{children:"Token Lifetime"}),c.jsx("select",{value:R,onChange:V=>K(V.target.value),style:{width:"100%",background:"var(--bg-secondary)",color:"var(--text-primary)",border:"1px solid var(--border)",borderRadius:6,padding:"6px 10px",fontSize:14},children:O.map(V=>c.jsx("option",{value:V.value,children:V.label},V.value))})]}),B&&c.jsx("div",{style:{color:"var(--error)",fontSize:13,marginBottom:12},children:B}),c.jsxs("div",{style:{display:"flex",gap:12,justifyContent:"flex-end"},children:[c.jsx("button",{type:"button",className:"btn btn-secondary",onClick:o,children:"Cancel"}),c.jsx("button",{type:"submit",className:"btn btn-primary",disabled:A,children:A?"Registering...":"Register"})]})]})})}function xy({credentials:o,onClose:M}){const E=N=>navigator.clipboard.writeText(N),h=()=>{const N=new Blob([JSON.stringify(o,null,2)],{type:"application/json"}),_=URL.createObjectURL(N),R=document.createElement("a");R.href=_,R.download=`${o.name}-credentials.json`,R.click(),URL.revokeObjectURL(_)};return c.jsx("div",{className:"modal-overlay",children:c.jsxs("div",{className:"modal",style:{maxWidth:560},children:[c.jsxs("div",{style:{textAlign:"center",marginBottom:16},children:[c.jsx("div",{style:{fontSize:36,color:"var(--success)",marginBottom:8},children:"✓"}),c.jsx("div",{style:{fontSize:20,fontWeight:600},children:"Agent Registered"})]}),c.jsxs("div",{style:{marginBottom:12},children:[c.jsx("label",{style:{fontSize:12},children:"Client ID"}),c.jsxs("div",{className:"code-block",children:[c.jsx("span",{children:o.clientId}),c.jsx("button",{className:"copy-btn",onClick:()=>E(o.clientId),children:"Copy"})]})]}),c.jsxs("div",{style:{marginBottom:12},children:[c.jsx("label",{style:{fontSize:12},children:"Client Secret"}),c.jsxs("div",{className:"code-block",children:[c.jsx("span",{children:o.clientSecret}),c.jsx("button",{className:"copy-btn",onClick:()=>E(o.clientSecret),children:"Copy"})]})]}),c.jsx("div",{className:"warning-bar",children:"Save this secret now. It will not be shown again."}),c.jsxs("div",{style:{display:"flex",gap:12,justifyContent:"flex-end",marginTop:20},children:[c.jsx("button",{className:"btn btn-secondary",onClick:h,children:"Download as JSON"}),c.jsx("button",{className:"btn btn-primary",onClick:M,children:"Done"})]})]})})}function jy({clientId:o,agent:M,sources:E,onRescoped:h}){const[N,_]=L.useState(M.source_id||"default"),[R,K]=L.useState(M.federated_read||[]),[A,p]=L.useState(!1),[B,D]=L.useState(""),[O,Q]=L.useState(!1),V=new Set(R),it=new Set(E.map(X=>X.id)),gt=R.filter(X=>!it.has(X)),ut=!it.has(N),w=async()=>{if(R.length===0){D("Select at least one readable source.");return}p(!0),D(""),Q(!1);try{const X=await Lt.rescopeClient(o,N,R);_(X.sourceId),K(X.federatedRead),Q(!0),h(X)}catch(X){D(X instanceof Error?X.message:"Failed to save source access")}finally{p(!1)}};return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"section-title",children:"Source Access"}),c.jsx("div",{style:{color:"var(--text-secondary)",fontSize:12,lineHeight:1.5,marginBottom:12},children:"The primary source is the write destination. Read access is an explicit allowlist and does not widen automatically."}),c.jsxs("div",{style:{marginBottom:14},children:[c.jsx("label",{htmlFor:"agent-write-source",children:"Primary / write source"}),c.jsxs("select",{id:"agent-write-source",value:N,onChange:X=>{_(X.target.value),Q(!1)},style:{width:"100%",background:"var(--bg-secondary)",color:"var(--text-primary)",border:"1px solid var(--border)",borderRadius:6,padding:"6px 10px",fontSize:14},children:[ut&&c.jsxs("option",{value:N,disabled:!0,children:[N," · unavailable"]}),E.map(X=>c.jsxs("option",{value:X.id,children:[X.name," (",X.id,")"]},X.id))]})]}),c.jsxs("fieldset",{style:{border:0,padding:0,margin:"0 0 14px"},children:[c.jsx("legend",{children:"Readable sources"}),c.jsxs("div",{className:"checkbox-group",style:{marginTop:6},children:[E.map(X=>c.jsxs("label",{className:"checkbox-label",children:[c.jsx("input",{type:"checkbox",checked:V.has(X.id),onChange:Xt=>{Q(!1),K(Vt=>Xt.target.checked?[...Vt,X.id]:Vt.filter(Qt=>Qt!==X.id))}}),X.name," (",X.id,")",X.federated?" · federated":" · private"]},X.id)),gt.map(X=>c.jsxs("label",{className:"checkbox-label",style:{color:"var(--warning)"},children:[c.jsx("input",{type:"checkbox",checked:!0,onChange:()=>{Q(!1),K(Xt=>Xt.filter(Vt=>Vt!==X))}}),X," · unavailable (clear to remove grant)"]},X))]})]}),(ut||gt.length>0)&&c.jsx("div",{style:{color:"var(--warning)",fontSize:13,marginBottom:10},children:"This client references unavailable or archived sources. Choose an active primary source and clear unavailable read grants before saving."}),B&&c.jsx("div",{style:{color:"var(--error)",fontSize:13,marginBottom:10},children:B}),O&&c.jsx("div",{style:{color:"var(--success)",fontSize:13,marginBottom:10},children:"Source access saved."}),c.jsx("button",{type:"button",className:"btn btn-primary",disabled:A||R.length===0||E.length===0||ut||gt.length>0,onClick:w,children:A?"Saving...":"Save Source Access"})]})}function Ty({agent:o,sources:M,onClose:E,onRevoked:h,onRescoped:N}){const[_,R]=L.useState("claude-code"),K=Q=>navigator.clipboard.writeText(Q),A=window.location.origin,p=o.id||o.client_id||"",B=o.auth_type==="oauth",D=o.name||o.client_name||"unknown",O={"claude-code":B?["The user wants to connect GBrain MCP to your context. Here's how.","","# Step 1 — read the client secret from the operator without putting it in shell history.","# read -s suppresses the echo; export keeps it scoped to this shell session.",'read -rs -p "Client Secret: " GBRAIN_CS && echo',"","# Step 2 — mint a token and register GBrain in one go.",`claude mcp add --transport http gbrain ${A}/mcp \\`,`  --header "Authorization: Bearer $(curl -s -X POST ${A}/token \\`,"    -d 'grant_type=client_credentials' \\",`    -d 'client_id=${p}' \\`,'    --data-urlencode "client_secret=$GBRAIN_CS" \\',`    -d 'scope=${o.scope||"read write"}' | jq -r .access_token)"`,"","# Step 3 — clear the secret from this shell.","unset GBRAIN_CS","",`The token will last ${o.token_ttl?o.token_ttl>=86400?Math.floor(o.token_ttl/86400)+" days":Math.floor(o.token_ttl/3600)+" hours":"1 hour (default)"}.`,"","─── Fallback: 2-step curl + paste ───","","If your shell doesn't support read -s, mint the token first, then paste:","",`curl -s -X POST ${A}/token \\`,"  -d 'grant_type=client_credentials' \\",`  -d 'client_id=${p}' \\`,"  -d 'client_secret=PASTE_YOUR_CLIENT_SECRET_HERE' \\",`  -d 'scope=${o.scope||"read write"}' | jq -r .access_token`,"",`claude mcp add --transport http gbrain ${A}/mcp \\`,'  --header "Authorization: Bearer PASTE_TOKEN_FROM_ABOVE"',"","# Then run: history -d $((HISTCMD-1))   # zsh: print -s -- '' && fc -p"].join(`
`):["The user wants to connect GBrain MCP to your context. Here's how.","","Run this command in terminal to register GBrain:","",`claude mcp add --transport http gbrain ${A}/mcp \\`,'  --header "Authorization: Bearer PASTE_YOUR_API_KEY_HERE"',"",`Replace PASTE_YOUR_API_KEY_HERE with the API key shown when "${D}" was created.`,"API keys never expire."].join(`
`),chatgpt:["The user wants to connect GBrain MCP to ChatGPT.","","1. Open ChatGPT > Settings > Tools & Integrations > Add MCP Server","2. Enter this URL — ChatGPT will auto-discover the OAuth configuration:","",`   ${A}/.well-known/oauth-authorization-server`,"","3. When prompted for credentials:",`   Client ID: ${p}`,"   Client Secret: (the secret from agent registration)","   Grant Type: client_credentials",`   Scope: ${o.scope||"read write"}`].join(`
`),"claude-cowork":["The user wants to connect GBrain MCP to Claude.ai.","","1. Open claude.ai > Settings > Connected Apps > Add MCP Server",`2. Server URL: ${A}/mcp`,"3. When prompted for auth:",`   Token endpoint: ${A}/token`,`   Client ID: ${p}`,"   Client Secret: (the secret from agent registration)",`   Scope: ${o.scope||"read write"}`,"",`Discovery URL: ${A}/.well-known/oauth-authorization-server`].join(`
`),cursor:B?["The user wants to connect GBrain MCP to Cursor.","","Cursor supports OAuth for remote MCP. Add to .cursor/mcp.json:","","{",'  "mcpServers": {','    "gbrain": {',`      "url": "${A}/mcp",`,'      "transport": "sse"',"    }","  }","}","","Cursor will auto-discover OAuth via:",`${A}/.well-known/oauth-authorization-server`,"",`When prompted: Client ID ${p}, use the secret from registration.`].join(`
`):["The user wants to connect GBrain MCP to Cursor.","","Add to .cursor/mcp.json:","","{",'  "mcpServers": {','    "gbrain": {',`      "url": "${A}/mcp",`,'      "transport": "sse",','      "headers": {','        "Authorization": "Bearer PASTE_YOUR_API_KEY_HERE"',"      }","    }","  }","}","",`Replace PASTE_YOUR_API_KEY_HERE with the API key shown when "${D}" was created.`].join(`
`),perplexity:["The user wants to connect GBrain MCP to Perplexity.","","1. Go to Settings > Connectors > Add MCP",`2. Server URL: ${A}/mcp`,`3. Client ID: ${p}`,"4. Client Secret: (the secret from agent registration)"].join(`
`),json:JSON.stringify({server_url:A+"/mcp",token_url:A+"/token",discovery_url:A+"/.well-known/oauth-authorization-server",client_id:p,client_name:D,auth_type:o.auth_type,scope:o.scope},null,2)};return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"drawer-overlay",onClick:E}),c.jsxs("div",{className:"drawer",children:[c.jsx("button",{className:"drawer-close",onClick:E,children:"✕"}),c.jsx("div",{style:{fontSize:18,fontWeight:600,marginBottom:4},children:o.name||o.client_name}),c.jsx("span",{className:`badge ${o.status==="active"?"badge-success":"badge-danger"}`,children:o.status}),c.jsx("div",{className:"section-title",children:"Details"}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"100px 1fr",gap:"6px 12px",fontSize:13},children:[c.jsx("span",{style:{color:"var(--text-secondary)"},children:"Client ID"}),c.jsxs("span",{className:"mono",children:[(o.id||o.id||o.client_id||"").substring(0,24),"..."]}),c.jsx("span",{style:{color:"var(--text-secondary)"},children:"Scopes"}),c.jsx("span",{children:(o.scope||"").split(" ").filter(Boolean).map(Q=>c.jsx("span",{className:`badge badge-${Q}`,style:{marginRight:4},children:Q},Q))}),c.jsx("span",{style:{color:"var(--text-secondary)"},children:"Registered"}),c.jsx("span",{children:new Date(o.created_at).toLocaleDateString()}),c.jsx("span",{style:{color:"var(--text-secondary)"},children:"Token TTL"}),c.jsx("span",{children:o.token_ttl?o.token_ttl>=31536e3?"No expiry":o.token_ttl>=86400?`${Math.floor(o.token_ttl/86400)}d`:o.token_ttl>=3600?`${Math.floor(o.token_ttl/3600)}h`:`${o.token_ttl}s`:"1h (default)"})]}),B&&c.jsx(jy,{clientId:p,agent:o,sources:M,onRescoped:N}),c.jsx("div",{className:"section-title",children:"Config Export"}),c.jsxs("div",{className:"tabs",style:{flexWrap:"wrap"},children:[c.jsx("div",{className:`tab ${_==="claude-code"?"active":""}`,onClick:()=>R("claude-code"),children:"Claude Code"}),c.jsx("div",{className:`tab ${_==="chatgpt"?"active":""}`,onClick:()=>R("chatgpt"),children:"ChatGPT"}),c.jsx("div",{className:`tab ${_==="claude-cowork"?"active":""}`,onClick:()=>R("claude-cowork"),children:"Claude.ai"}),c.jsx("div",{className:`tab ${_==="cursor"?"active":""}`,onClick:()=>R("cursor"),children:"Cursor"}),c.jsx("div",{className:`tab ${_==="perplexity"?"active":""}`,onClick:()=>R("perplexity"),children:"Perplexity"}),c.jsx("div",{className:`tab ${_==="json"?"active":""}`,onClick:()=>R("json"),children:"JSON"})]}),(()=>{if(!B&&new Set(["chatgpt","claude-cowork","perplexity"]).has(_)){const V=_==="chatgpt"?"ChatGPT":_==="claude-cowork"?"Claude.ai":"Perplexity";return c.jsxs("div",{style:{background:"rgba(255, 200, 100, 0.08)",border:"1px solid rgba(255, 200, 100, 0.2)",borderRadius:8,padding:"14px 16px",marginTop:12,fontSize:13,lineHeight:1.6,color:"var(--text-secondary)"},children:[c.jsxs("div",{style:{fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:[V," requires an OAuth client"]}),V," only supports OAuth 2.0 (client_credentials). API keys use raw bearer tokens, which ",V," does not accept. Register a separate OAuth client and use that to connect this AI."]})}return c.jsxs("div",{className:"code-block",children:[c.jsx("pre",{style:{whiteSpace:"pre-wrap",margin:0},children:O[_]}),c.jsx("button",{className:"copy-btn",onClick:()=>K(O[_]),children:"Copy"})]})})(),c.jsxs("div",{style:{marginTop:32},children:[o.status==="active"&&c.jsx("button",{className:"btn btn-danger",onClick:async()=>{if(confirm(`Revoke ${o.name||o.client_name}? All active tokens will be invalidated.`))try{o.auth_type==="oauth"?await Lt.revokeClient(o.id||o.client_id||""):await Lt.revokeApiKey(o.name||""),h(),E()}catch(Q){alert("Revoke failed: "+(Q instanceof Error?Q.message:"unknown error"))}},children:"Revoke Agent"}),o.status==="revoked"&&c.jsx("span",{style:{color:"var(--text-muted)",fontSize:13},children:"This agent has been revoked."})]})]})]})}function zy(){const[o,M]=L.useState({rows:[],total:0,page:1,pages:1}),[E,h]=L.useState(1),[N,_]=L.useState("all"),[R,K]=L.useState(null);L.useEffect(()=>{A(E)},[E,N]);const A=O=>{const Q=N!=="all"?`&agent=${encodeURIComponent(N)}`:"";Lt.requests(O,Q).then(M).catch(()=>{})},p=O=>{const Q=Date.now()-new Date(O).getTime();return Q<6e4?`${Math.floor(Q/1e3)}s ago`:Q<36e5?`${Math.floor(Q/6e4)} min ago`:Q<864e5?`${Math.floor(Q/36e5)}h ago`:new Date(O).toLocaleDateString()},B=O=>{if(!O)return null;const{query:Q,slug:V,partial:it,limit:gt,...ut}=O,w=[];return Q&&w.push(`"${Q}"`),V&&w.push(V),it&&w.push(`~${it}`),gt&&w.push(`limit=${gt}`),Object.keys(ut).length>0&&w.push(`+${Object.keys(ut).length} params`),w.join(" ")},D=new Map;return o.rows.forEach(O=>{O.token_name&&D.set(O.token_name,O.agent_name||O.token_name)}),c.jsxs(c.Fragment,{children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:24},children:[c.jsx("h1",{className:"page-title",style:{marginBottom:0},children:"Request Log"}),c.jsxs("select",{value:N,onChange:O=>{_(O.target.value),h(1)},style:{background:"var(--bg-secondary)",color:"var(--text-primary)",border:"1px solid var(--border)",borderRadius:6,padding:"4px 8px",fontSize:13},children:[c.jsx("option",{value:"all",children:"All agents"}),[...D.entries()].map(([O,Q])=>c.jsx("option",{value:O,children:Q},O))]})]}),o.rows.length===0?c.jsx("div",{style:{textAlign:"center",padding:48,color:"var(--text-muted)"},children:"No requests yet."}):c.jsxs(c.Fragment,{children:[c.jsxs("table",{children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{children:"Time"}),c.jsx("th",{children:"Agent"}),c.jsx("th",{children:"Operation"}),c.jsx("th",{children:"Params"}),c.jsx("th",{children:"Latency"}),c.jsx("th",{children:"Status"})]})}),c.jsx("tbody",{children:o.rows.map(O=>c.jsxs(Dd.Fragment,{children:[c.jsxs("tr",{onClick:()=>K(R===O.id?null:O.id),style:{cursor:"pointer"},children:[c.jsx("td",{style:{color:"var(--text-secondary)",whiteSpace:"nowrap"},children:p(O.created_at)}),c.jsx("td",{children:c.jsx("a",{style:{color:"var(--text-link, #88aaff)",cursor:"pointer",textDecoration:"none",fontWeight:500},onClick:Q=>{Q.stopPropagation(),_(O.token_name),h(1)},children:O.agent_name||O.token_name})}),c.jsx("td",{className:"mono",children:O.operation}),c.jsx("td",{style:{color:"var(--text-secondary)",fontSize:12,maxWidth:200,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:B(O.params)}),c.jsxs("td",{className:"mono",children:[O.latency_ms,"ms"]}),c.jsx("td",{children:c.jsx("span",{className:`badge badge-${O.status}`,children:O.status})})]}),R===O.id&&c.jsx("tr",{children:c.jsx("td",{colSpan:6,style:{background:"var(--bg-secondary, #0f0f1a)",padding:16},children:c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"100px 1fr",gap:"6px 12px",fontSize:13},children:[c.jsx("span",{style:{color:"var(--text-muted)"},children:"Time"}),c.jsx("span",{children:new Date(O.created_at).toLocaleString()}),c.jsx("span",{style:{color:"var(--text-muted)"},children:"Agent"}),c.jsx("span",{className:"mono",children:O.token_name}),c.jsx("span",{style:{color:"var(--text-muted)"},children:"Operation"}),c.jsx("span",{className:"mono",children:O.operation}),c.jsx("span",{style:{color:"var(--text-muted)"},children:"Latency"}),c.jsxs("span",{children:[O.latency_ms,"ms"]}),O.params&&c.jsxs(c.Fragment,{children:[c.jsx("span",{style:{color:"var(--text-muted)"},children:"Params"}),c.jsx("pre",{className:"mono",style:{margin:0,whiteSpace:"pre-wrap",fontSize:12},children:JSON.stringify(O.params,null,2)})]}),O.error_message&&c.jsxs(c.Fragment,{children:[c.jsx("span",{style:{color:"var(--error, #ff6b6b)"},children:"Error"}),c.jsx("span",{style:{color:"var(--error, #ff6b6b)"},children:O.error_message})]})]})})})]},O.id))})]}),c.jsxs("div",{className:"pagination",children:[c.jsxs("span",{children:["Page ",o.page," of ",o.pages," (",o.total," total)"]}),c.jsxs("div",{style:{display:"flex",gap:8},children:[c.jsx("button",{disabled:o.page<=1,onClick:()=>h(O=>O-1),children:"Previous"}),c.jsx("button",{disabled:o.page>=o.pages,onClick:()=>h(O=>O+1),children:"Next"})]})]})]})]})}function Ay({markup:o}){return c.jsx("div",{style:{width:"100%",overflow:"auto"},dangerouslySetInnerHTML:{__html:o}})}function Zu({type:o,ariaLabel:M}){const[E,h]=L.useState(""),[N,_]=L.useState("");return L.useEffect(()=>{let R=!1;return Lt.calibrationChart(o).then(K=>{R||h(K)}).catch(K=>{R||_(K.message??"fetch failed")}),()=>{R=!0}},[o]),N?c.jsxs("div",{style:{padding:16,color:"var(--error)"},role:"alert",children:[M,": ",N]}):E?c.jsx(Ay,{markup:E}):c.jsxs("div",{style:{padding:16,color:"var(--text-muted)"},children:[M," loading..."]})}function _y(){const[o,M]=L.useState(null),[E,h]=L.useState(!0),[N,_]=L.useState("");if(L.useEffect(()=>{Lt.calibrationProfile().then(A=>{M(A),h(!1)}).catch(A=>{_(A.message??"fetch failed"),h(!1)})},[]),E)return c.jsx("div",{style:{padding:24,color:"var(--text-secondary)"},children:"Loading calibration profile…"});if(N)return c.jsxs("div",{style:{padding:24,color:"var(--error)"},role:"alert",children:["Could not load calibration profile: ",N]});if(!o)return c.jsxs("div",{style:{padding:24,maxWidth:700},children:[c.jsx("h1",{style:{marginBottom:16},children:"Calibration"}),c.jsx("p",{style:{color:"var(--text-secondary)"},children:"No calibration profile yet. Builds after 5+ resolved takes."}),c.jsx("pre",{style:{background:"var(--bg-secondary)",padding:12,borderRadius:4,color:"var(--text-primary)",marginTop:12,fontFamily:"var(--font-mono)"},children:"gbrain dream --phase calibration_profile"})]});const R=new Date(o.generated_at),K=Math.floor((Date.now()-R.getTime())/(1e3*60*60*24));return c.jsxs("div",{style:{padding:32,maxWidth:720},children:[c.jsx("h1",{style:{marginBottom:8},children:"Calibration"}),c.jsxs("div",{style:{color:"var(--text-muted)",fontSize:13,marginBottom:24},children:["Holder: ",o.holder," · ","Updated ",K===0?"today":`${K}d ago`,o.published&&" · published",o.grade_completion<.9&&` · ~${Math.round(o.grade_completion*100)}% graded`,!o.voice_gate_passed&&" · voice gate fell back to template"]}),c.jsx("section",{style:{marginBottom:32},children:c.jsx(Zu,{type:"brier-trend",ariaLabel:"Brier trend"})}),c.jsxs("section",{style:{marginBottom:32},children:[c.jsx("h2",{style:{fontSize:14,color:"var(--text-secondary)",marginBottom:12,fontWeight:400},children:"Pattern statements"}),c.jsx(Zu,{type:"pattern-statements",ariaLabel:"Pattern statements"})]}),c.jsx("section",{style:{marginBottom:32},children:c.jsx(Zu,{type:"domain-bars",ariaLabel:"Per-domain accuracy"})}),c.jsx("section",{style:{marginBottom:32},children:c.jsx(Zu,{type:"abandoned-threads",ariaLabel:"Abandoned threads"})}),o.active_bias_tags.length>0&&c.jsxs("section",{style:{marginBottom:32,color:"var(--text-muted)",fontSize:13},children:["Active bias tags: ",o.active_bias_tags.join(", ")]})]})}function Ey(o){return o===0?"var(--accent-success, #2ea043)":o>=100?"var(--accent-danger, #f85149)":"var(--accent-warn, #d29922)"}function Od(o){return`$${(o/100).toFixed(2)}`}function Oy(){const[o,M]=L.useState(null),[E,h]=L.useState(null);if(L.useEffect(()=>{let _=!0,R=null;const K=async()=>{try{const A=await Lt.jobsWatch();_&&(M(A),h(null))}catch(A){_&&h(A instanceof Error?A.message:String(A))}_&&(R=setTimeout(K,1e3))};return K(),()=>{_=!1,R&&clearTimeout(R)}},[]),E)return c.jsxs("div",{style:{padding:24,color:"var(--accent-danger, #f85149)"},children:[c.jsx("h2",{children:"Jobs Watch — error"}),c.jsx("pre",{style:{whiteSpace:"pre-wrap"},children:E})]});if(!o)return c.jsx("div",{style:{padding:24,color:"var(--text-muted, #777)"},children:"Loading jobs watch…"});const N=new Date(o.ts_ms).toLocaleTimeString();return c.jsxs("div",{style:{padding:24,fontFamily:'var(--font-mono, "JetBrains Mono", monospace)'},children:[c.jsxs("h1",{style:{fontSize:18,marginBottom:4},children:["Jobs Watch",c.jsxs("span",{style:{marginLeft:12,color:"var(--text-muted, #777)",fontSize:12,fontWeight:"normal"},children:["updated ",N]})]}),c.jsxs("section",{style:{marginTop:24},children:[c.jsx("h2",{style:{fontSize:14,marginBottom:8},children:"Queue"}),c.jsxs("div",{children:["waiting=",c.jsx("b",{children:o.queue_health.waiting}),"  ","active=",c.jsx("b",{children:o.queue_health.active}),"  ","stalled=",c.jsx("b",{style:{color:o.queue_health.stalled>0?"var(--accent-warn, #d29922)":void 0},children:o.queue_health.stalled})]})]}),o.by_type.length>0&&c.jsxs("section",{style:{marginTop:24},children:[c.jsx("h2",{style:{fontSize:14,marginBottom:8},children:"By type (24h)"}),c.jsxs("table",{style:{borderCollapse:"collapse"},children:[c.jsx("thead",{children:c.jsxs("tr",{style:{color:"var(--text-muted, #777)",fontSize:12},children:[c.jsx("th",{style:{textAlign:"left",padding:"4px 12px 4px 0"},children:"name"}),c.jsx("th",{style:{textAlign:"right",padding:"4px 12px"},children:"total"}),c.jsx("th",{style:{textAlign:"right",padding:"4px 12px"},children:"done"}),c.jsx("th",{style:{textAlign:"right",padding:"4px 12px"},children:"fail"}),c.jsx("th",{style:{textAlign:"right",padding:"4px 12px"},children:"dead"})]})}),c.jsx("tbody",{children:o.by_type.slice(0,6).map(_=>c.jsxs("tr",{children:[c.jsx("td",{style:{padding:"4px 12px 4px 0"},children:_.name}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:_.total}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:_.completed}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:_.failed}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:_.dead})]},_.name))})]})]}),c.jsxs("section",{style:{marginTop:24},children:[c.jsx("h2",{style:{fontSize:14,marginBottom:8},children:"Lease pressure (1h)"}),c.jsxs("div",{style:{color:Ey(o.lease_pressure_1h)},children:[o.lease_pressure_1h," bounce",o.lease_pressure_1h===1?"":"s"]})]}),o.top_errors.length>0&&c.jsxs("section",{style:{marginTop:24},children:[c.jsx("h2",{style:{fontSize:14,marginBottom:8},children:"Top errors (24h)"}),c.jsx("table",{style:{borderCollapse:"collapse"},children:c.jsx("tbody",{children:o.top_errors.slice(0,5).map(_=>c.jsxs("tr",{children:[c.jsxs("td",{style:{textAlign:"right",padding:"4px 12px 4px 0",color:"var(--text-muted, #777)"},children:[_.count,"×"]}),c.jsx("td",{style:{padding:"4px 12px 4px 0"},children:_.cluster})]},_.cluster))})})]}),o.budget_owners.length>0&&c.jsxs("section",{style:{marginTop:24},children:[c.jsx("h2",{style:{fontSize:14,marginBottom:8},children:"Budget owners"}),c.jsxs("table",{style:{borderCollapse:"collapse"},children:[c.jsx("thead",{children:c.jsxs("tr",{style:{color:"var(--text-muted, #777)",fontSize:12},children:[c.jsx("th",{style:{textAlign:"left",padding:"4px 12px 4px 0"},children:"owner"}),c.jsx("th",{style:{textAlign:"right",padding:"4px 12px"},children:"spent"}),c.jsx("th",{style:{textAlign:"right",padding:"4px 12px"},children:"remaining"})]})}),c.jsx("tbody",{children:o.budget_owners.slice(0,5).map(_=>c.jsxs("tr",{children:[c.jsx("td",{style:{padding:"4px 12px 4px 0"},children:_.owner_id}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:Od(_.total_spent_cents)}),c.jsx("td",{style:{textAlign:"right",padding:"4px 12px"},children:Od(_.remaining_cents)})]},_.owner_id))})]})]})]})}function Nd(){const o=window.location.hash.replace("#","")||"dashboard";return["login","dashboard","agents","log","calibration","jobs"].includes(o)?o:"dashboard"}function Ny(){const[o,M]=L.useState(Nd);L.useEffect(()=>{const N=()=>M(Nd());return window.addEventListener("hashchange",N),()=>window.removeEventListener("hashchange",N)},[]);const E=N=>{window.location.hash=N,M(N)};if(o==="login")return c.jsx(my,{onLogin:()=>E("dashboard")});const h=async()=>{if(confirm("Sign out every active admin session, including other browsers and tabs? Each one will need to re-authenticate via a fresh magic link.")){try{await Lt.signOutEverywhere()}catch{}E("login")}};return c.jsxs("div",{className:"app",children:[c.jsxs("nav",{className:"sidebar",children:[c.jsx("div",{className:"sidebar-logo",children:"GBrain"}),c.jsxs("div",{className:"sidebar-nav",children:[c.jsx("a",{className:`nav-item ${o==="dashboard"?"active":""}`,onClick:()=>E("dashboard"),children:"Dashboard"}),c.jsx("a",{className:`nav-item ${o==="agents"?"active":""}`,onClick:()=>E("agents"),children:"Agents"}),c.jsx("a",{className:`nav-item ${o==="log"?"active":""}`,onClick:()=>E("log"),children:"Request Log"}),c.jsx("a",{className:`nav-item ${o==="calibration"?"active":""}`,onClick:()=>E("calibration"),children:"Calibration"}),c.jsx("a",{className:`nav-item ${o==="jobs"?"active":""}`,onClick:()=>E("jobs"),children:"Jobs Watch"})]}),c.jsx("div",{style:{marginTop:"auto",padding:"16px 12px",borderTop:"1px solid var(--border)"},children:c.jsx("button",{onClick:h,style:{background:"transparent",border:"1px solid var(--border)",color:"var(--text-secondary)",padding:"6px 10px",borderRadius:6,fontSize:12,cursor:"pointer",width:"100%"},title:"Revoke every active admin session — every browser, every tab",children:"Sign out everywhere"})})]}),c.jsxs("main",{className:"main",children:[o==="dashboard"&&c.jsx(yy,{}),o==="agents"&&c.jsx(gy,{}),o==="log"&&c.jsx(zy,{}),o==="calibration"&&c.jsx(_y,{}),o==="jobs"&&c.jsx(Oy,{})]})]})}dy.createRoot(document.getElementById("root")).render(c.jsx(Dd.StrictMode,{children:c.jsx(Ny,{})}));
