(function(){const d=document.createElement("link").relList;if(d&&d.supports&&d.supports("modulepreload"))return;for(const E of document.querySelectorAll('link[rel="modulepreload"]'))r(E);new MutationObserver(E=>{for(const N of E)if(N.type==="childList")for(const x of N.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&r(x)}).observe(document,{childList:!0,subtree:!0});function h(E){const N={};return E.integrity&&(N.integrity=E.integrity),E.referrerPolicy&&(N.referrerPolicy=E.referrerPolicy),E.crossOrigin==="use-credentials"?N.credentials="include":E.crossOrigin==="anonymous"?N.credentials="omit":N.credentials="same-origin",N}function r(E){if(E.ep)return;E.ep=!0;const N=h(E);fetch(E.href,N)}})();var Hf={exports:{}},In={};/**
 * @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 wd;function Hv(){if(wd)return In;wd=1;var c=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");function h(r,E,N){var x=null;if(N!==void 0&&(x=""+N),E.key!==void 0&&(x=""+E.key),"key"in E){N={};for(var q in E)q!=="key"&&(N[q]=E[q])}else N=E;return E=N.ref,{$$typeof:c,type:r,key:x,ref:E!==void 0?E:null,props:N}}return In.Fragment=d,In.jsx=h,In.jsxs=h,In}var Jd;function qv(){return Jd||(Jd=1,Hf.exports=Hv()),Hf.exports}var s=qv(),qf={exports:{}},W={};/**
 * @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 kd;function Bv(){if(kd)return W;kd=1;var c=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),x=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),D=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),et=Symbol.iterator;function Ht(v){return v===null||typeof v!="object"?null:(v=et&&v[et]||v["@@iterator"],typeof v=="function"?v:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,qt={};function jt(v,M,H){this.props=v,this.context=M,this.refs=qt,this.updater=H||L}jt.prototype.isReactComponent={},jt.prototype.setState=function(v,M){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,M,"setState")},jt.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function It(){}It.prototype=jt.prototype;function Et(v,M,H){this.props=v,this.context=M,this.refs=qt,this.updater=H||L}var Pt=Et.prototype=new It;Pt.constructor=Et,C(Pt,jt.prototype),Pt.isPureReactComponent=!0;var Kt=Array.isArray;function Dt(){}var tt={H:null,A:null,T:null,S:null},bt=Object.prototype.hasOwnProperty;function k(v,M,H){var R=H.ref;return{$$typeof:c,type:v,key:M,ref:R!==void 0?R:null,props:H}}function Nt(v,M){return k(v.type,M,v.props)}function wt(v){return typeof v=="object"&&v!==null&&v.$$typeof===c}function xt(v){var M={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(H){return M[H]})}var Bt=/\/+/g;function oe(v,M){return typeof v=="object"&&v!==null&&v.key!=null?xt(""+v.key):M.toString(36)}function Yt(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(Dt,Dt):(v.status="pending",v.then(function(M){v.status==="pending"&&(v.status="fulfilled",v.value=M)},function(M){v.status==="pending"&&(v.status="rejected",v.reason=M)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function A(v,M,H,R,$){var P=typeof v;(P==="undefined"||P==="boolean")&&(v=null);var ct=!1;if(v===null)ct=!0;else switch(P){case"bigint":case"string":case"number":ct=!0;break;case"object":switch(v.$$typeof){case c:case d:ct=!0;break;case w:return ct=v._init,A(ct(v._payload),M,H,R,$)}}if(ct)return $=$(v),ct=R===""?"."+oe(v,0):R,Kt($)?(H="",ct!=null&&(H=ct.replace(Bt,"$&/")+"/"),A($,M,H,"",function(wl){return wl})):$!=null&&(wt($)&&($=Nt($,H+($.key==null||v&&v.key===$.key?"":(""+$.key).replace(Bt,"$&/")+"/")+ct)),M.push($)),1;ct=0;var kt=R===""?".":R+":";if(Kt(v))for(var _t=0;_t<v.length;_t++)R=v[_t],P=kt+oe(R,_t),ct+=A(R,M,H,P,$);else if(_t=Ht(v),typeof _t=="function")for(v=_t.call(v),_t=0;!(R=v.next()).done;)R=R.value,P=kt+oe(R,_t++),ct+=A(R,M,H,P,$);else if(P==="object"){if(typeof v.then=="function")return A(Yt(v),M,H,R,$);throw M=String(v),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return ct}function b(v,M,H){if(v==null)return v;var R=[],$=0;return A(v,R,"","",function(P){return M.call(H,P,$++)}),R}function Z(v){if(v._status===-1){var M=v._result;M=M(),M.then(function(H){(v._status===0||v._status===-1)&&(v._status=1,v._result=H)},function(H){(v._status===0||v._status===-1)&&(v._status=2,v._result=H)}),v._status===-1&&(v._status=0,v._result=M)}if(v._status===1)return v._result.default;throw v._result}var ot=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},dt={map:b,forEach:function(v,M,H){b(v,function(){M.apply(this,arguments)},H)},count:function(v){var M=0;return b(v,function(){M++}),M},toArray:function(v){return b(v,function(M){return M})||[]},only:function(v){if(!wt(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return W.Activity=B,W.Children=dt,W.Component=jt,W.Fragment=h,W.Profiler=E,W.PureComponent=Et,W.StrictMode=r,W.Suspense=U,W.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=tt,W.__COMPILER_RUNTIME={__proto__:null,c:function(v){return tt.H.useMemoCache(v)}},W.cache=function(v){return function(){return v.apply(null,arguments)}},W.cacheSignal=function(){return null},W.cloneElement=function(v,M,H){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var R=C({},v.props),$=v.key;if(M!=null)for(P in M.key!==void 0&&($=""+M.key),M)!bt.call(M,P)||P==="key"||P==="__self"||P==="__source"||P==="ref"&&M.ref===void 0||(R[P]=M[P]);var P=arguments.length-2;if(P===1)R.children=H;else if(1<P){for(var ct=Array(P),kt=0;kt<P;kt++)ct[kt]=arguments[kt+2];R.children=ct}return k(v.type,$,R)},W.createContext=function(v){return v={$$typeof:x,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:N,_context:v},v},W.createElement=function(v,M,H){var R,$={},P=null;if(M!=null)for(R in M.key!==void 0&&(P=""+M.key),M)bt.call(M,R)&&R!=="key"&&R!=="__self"&&R!=="__source"&&($[R]=M[R]);var ct=arguments.length-2;if(ct===1)$.children=H;else if(1<ct){for(var kt=Array(ct),_t=0;_t<ct;_t++)kt[_t]=arguments[_t+2];$.children=kt}if(v&&v.defaultProps)for(R in ct=v.defaultProps,ct)$[R]===void 0&&($[R]=ct[R]);return k(v,P,$)},W.createRef=function(){return{current:null}},W.forwardRef=function(v){return{$$typeof:q,render:v}},W.isValidElement=wt,W.lazy=function(v){return{$$typeof:w,_payload:{_status:-1,_result:v},_init:Z}},W.memo=function(v,M){return{$$typeof:D,type:v,compare:M===void 0?null:M}},W.startTransition=function(v){var M=tt.T,H={};tt.T=H;try{var R=v(),$=tt.S;$!==null&&$(H,R),typeof R=="object"&&R!==null&&typeof R.then=="function"&&R.then(Dt,ot)}catch(P){ot(P)}finally{M!==null&&H.types!==null&&(M.types=H.types),tt.T=M}},W.unstable_useCacheRefresh=function(){return tt.H.useCacheRefresh()},W.use=function(v){return tt.H.use(v)},W.useActionState=function(v,M,H){return tt.H.useActionState(v,M,H)},W.useCallback=function(v,M){return tt.H.useCallback(v,M)},W.useContext=function(v){return tt.H.useContext(v)},W.useDebugValue=function(){},W.useDeferredValue=function(v,M){return tt.H.useDeferredValue(v,M)},W.useEffect=function(v,M){return tt.H.useEffect(v,M)},W.useEffectEvent=function(v){return tt.H.useEffectEvent(v)},W.useId=function(){return tt.H.useId()},W.useImperativeHandle=function(v,M,H){return tt.H.useImperativeHandle(v,M,H)},W.useInsertionEffect=function(v,M){return tt.H.useInsertionEffect(v,M)},W.useLayoutEffect=function(v,M){return tt.H.useLayoutEffect(v,M)},W.useMemo=function(v,M){return tt.H.useMemo(v,M)},W.useOptimistic=function(v,M){return tt.H.useOptimistic(v,M)},W.useReducer=function(v,M,H){return tt.H.useReducer(v,M,H)},W.useRef=function(v){return tt.H.useRef(v)},W.useState=function(v){return tt.H.useState(v)},W.useSyncExternalStore=function(v,M,H){return tt.H.useSyncExternalStore(v,M,H)},W.useTransition=function(){return tt.H.useTransition()},W.version="19.2.4",W}var $d;function Kf(){return $d||($d=1,qf.exports=Bv()),qf.exports}var Q=Kf(),Bf={exports:{}},Pn={},Yf={exports:{}},Xf={};/**
 * @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 Wd;function Yv(){return Wd||(Wd=1,(function(c){function d(A,b){var Z=A.length;A.push(b);t:for(;0<Z;){var ot=Z-1>>>1,dt=A[ot];if(0<E(dt,b))A[ot]=b,A[Z]=dt,Z=ot;else break t}}function h(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var b=A[0],Z=A.pop();if(Z!==b){A[0]=Z;t:for(var ot=0,dt=A.length,v=dt>>>1;ot<v;){var M=2*(ot+1)-1,H=A[M],R=M+1,$=A[R];if(0>E(H,Z))R<dt&&0>E($,H)?(A[ot]=$,A[R]=Z,ot=R):(A[ot]=H,A[M]=Z,ot=M);else if(R<dt&&0>E($,Z))A[ot]=$,A[R]=Z,ot=R;else break t}}return b}function E(A,b){var Z=A.sortIndex-b.sortIndex;return Z!==0?Z:A.id-b.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var N=performance;c.unstable_now=function(){return N.now()}}else{var x=Date,q=x.now();c.unstable_now=function(){return x.now()-q}}var U=[],D=[],w=1,B=null,et=3,Ht=!1,L=!1,C=!1,qt=!1,jt=typeof setTimeout=="function"?setTimeout:null,It=typeof clearTimeout=="function"?clearTimeout:null,Et=typeof setImmediate<"u"?setImmediate:null;function Pt(A){for(var b=h(D);b!==null;){if(b.callback===null)r(D);else if(b.startTime<=A)r(D),b.sortIndex=b.expirationTime,d(U,b);else break;b=h(D)}}function Kt(A){if(C=!1,Pt(A),!L)if(h(U)!==null)L=!0,Dt||(Dt=!0,xt());else{var b=h(D);b!==null&&Yt(Kt,b.startTime-A)}}var Dt=!1,tt=-1,bt=5,k=-1;function Nt(){return qt?!0:!(c.unstable_now()-k<bt)}function wt(){if(qt=!1,Dt){var A=c.unstable_now();k=A;var b=!0;try{t:{L=!1,C&&(C=!1,It(tt),tt=-1),Ht=!0;var Z=et;try{e:{for(Pt(A),B=h(U);B!==null&&!(B.expirationTime>A&&Nt());){var ot=B.callback;if(typeof ot=="function"){B.callback=null,et=B.priorityLevel;var dt=ot(B.expirationTime<=A);if(A=c.unstable_now(),typeof dt=="function"){B.callback=dt,Pt(A),b=!0;break e}B===h(U)&&r(U),Pt(A)}else r(U);B=h(U)}if(B!==null)b=!0;else{var v=h(D);v!==null&&Yt(Kt,v.startTime-A),b=!1}}break t}finally{B=null,et=Z,Ht=!1}b=void 0}}finally{b?xt():Dt=!1}}}var xt;if(typeof Et=="function")xt=function(){Et(wt)};else if(typeof MessageChannel<"u"){var Bt=new MessageChannel,oe=Bt.port2;Bt.port1.onmessage=wt,xt=function(){oe.postMessage(null)}}else xt=function(){jt(wt,0)};function Yt(A,b){tt=jt(function(){A(c.unstable_now())},b)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(A){A.callback=null},c.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):bt=0<A?Math.floor(1e3/A):5},c.unstable_getCurrentPriorityLevel=function(){return et},c.unstable_next=function(A){switch(et){case 1:case 2:case 3:var b=3;break;default:b=et}var Z=et;et=b;try{return A()}finally{et=Z}},c.unstable_requestPaint=function(){qt=!0},c.unstable_runWithPriority=function(A,b){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var Z=et;et=A;try{return b()}finally{et=Z}},c.unstable_scheduleCallback=function(A,b,Z){var ot=c.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ot+Z:ot):Z=ot,A){case 1:var dt=-1;break;case 2:dt=250;break;case 5:dt=1073741823;break;case 4:dt=1e4;break;default:dt=5e3}return dt=Z+dt,A={id:w++,callback:b,priorityLevel:A,startTime:Z,expirationTime:dt,sortIndex:-1},Z>ot?(A.sortIndex=Z,d(D,A),h(U)===null&&A===h(D)&&(C?(It(tt),tt=-1):C=!0,Yt(Kt,Z-ot))):(A.sortIndex=dt,d(U,A),L||Ht||(L=!0,Dt||(Dt=!0,xt()))),A},c.unstable_shouldYield=Nt,c.unstable_wrapCallback=function(A){var b=et;return function(){var Z=et;et=b;try{return A.apply(this,arguments)}finally{et=Z}}}})(Xf)),Xf}var Fd;function Xv(){return Fd||(Fd=1,Yf.exports=Yv()),Yf.exports}var Gf={exports:{}},ce={};/**
 * @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 Id;function Gv(){if(Id)return ce;Id=1;var c=Kf();function d(U){var D="https://react.dev/errors/"+U;if(1<arguments.length){D+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)D+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+U+"; visit "+D+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(){}var r={d:{f:h,r:function(){throw Error(d(522))},D:h,C:h,L:h,m:h,X:h,S:h,M:h},p:0,findDOMNode:null},E=Symbol.for("react.portal");function N(U,D,w){var B=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:B==null?null:""+B,children:U,containerInfo:D,implementation:w}}var x=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function q(U,D){if(U==="font")return"";if(typeof D=="string")return D==="use-credentials"?D:""}return ce.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ce.createPortal=function(U,D){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!D||D.nodeType!==1&&D.nodeType!==9&&D.nodeType!==11)throw Error(d(299));return N(U,D,null,w)},ce.flushSync=function(U){var D=x.T,w=r.p;try{if(x.T=null,r.p=2,U)return U()}finally{x.T=D,r.p=w,r.d.f()}},ce.preconnect=function(U,D){typeof U=="string"&&(D?(D=D.crossOrigin,D=typeof D=="string"?D==="use-credentials"?D:"":void 0):D=null,r.d.C(U,D))},ce.prefetchDNS=function(U){typeof U=="string"&&r.d.D(U)},ce.preinit=function(U,D){if(typeof U=="string"&&D&&typeof D.as=="string"){var w=D.as,B=q(w,D.crossOrigin),et=typeof D.integrity=="string"?D.integrity:void 0,Ht=typeof D.fetchPriority=="string"?D.fetchPriority:void 0;w==="style"?r.d.S(U,typeof D.precedence=="string"?D.precedence:void 0,{crossOrigin:B,integrity:et,fetchPriority:Ht}):w==="script"&&r.d.X(U,{crossOrigin:B,integrity:et,fetchPriority:Ht,nonce:typeof D.nonce=="string"?D.nonce:void 0})}},ce.preinitModule=function(U,D){if(typeof U=="string")if(typeof D=="object"&&D!==null){if(D.as==null||D.as==="script"){var w=q(D.as,D.crossOrigin);r.d.M(U,{crossOrigin:w,integrity:typeof D.integrity=="string"?D.integrity:void 0,nonce:typeof D.nonce=="string"?D.nonce:void 0})}}else D==null&&r.d.M(U)},ce.preload=function(U,D){if(typeof U=="string"&&typeof D=="object"&&D!==null&&typeof D.as=="string"){var w=D.as,B=q(w,D.crossOrigin);r.d.L(U,w,{crossOrigin:B,integrity:typeof D.integrity=="string"?D.integrity:void 0,nonce:typeof D.nonce=="string"?D.nonce:void 0,type:typeof D.type=="string"?D.type:void 0,fetchPriority:typeof D.fetchPriority=="string"?D.fetchPriority:void 0,referrerPolicy:typeof D.referrerPolicy=="string"?D.referrerPolicy:void 0,imageSrcSet:typeof D.imageSrcSet=="string"?D.imageSrcSet:void 0,imageSizes:typeof D.imageSizes=="string"?D.imageSizes:void 0,media:typeof D.media=="string"?D.media:void 0})}},ce.preloadModule=function(U,D){if(typeof U=="string")if(D){var w=q(D.as,D.crossOrigin);r.d.m(U,{as:typeof D.as=="string"&&D.as!=="script"?D.as:void 0,crossOrigin:w,integrity:typeof D.integrity=="string"?D.integrity:void 0})}else r.d.m(U)},ce.requestFormReset=function(U){r.d.r(U)},ce.unstable_batchedUpdates=function(U,D){return U(D)},ce.useFormState=function(U,D,w){return x.H.useFormState(U,D,w)},ce.useFormStatus=function(){return x.H.useHostTransitionStatus()},ce.version="19.2.4",ce}var Pd;function Qv(){if(Pd)return Gf.exports;Pd=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(d){console.error(d)}}return c(),Gf.exports=Gv(),Gf.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 th;function Zv(){if(th)return Pn;th=1;var c=Xv(),d=Kf(),h=Qv();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function E(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function N(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function x(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function q(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function U(t){if(N(t)!==t)throw Error(r(188))}function D(t){var e=t.alternate;if(!e){if(e=N(t),e===null)throw Error(r(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return U(n),t;if(u===a)return U(n),e;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var i=!1,f=n.child;f;){if(f===l){i=!0,l=n,a=u;break}if(f===a){i=!0,a=n,l=u;break}f=f.sibling}if(!i){for(f=u.child;f;){if(f===l){i=!0,l=u,a=n;break}if(f===a){i=!0,a=u,l=n;break}f=f.sibling}if(!i)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:e}function w(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=w(t),e!==null)return e;t=t.sibling}return null}var B=Object.assign,et=Symbol.for("react.element"),Ht=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),qt=Symbol.for("react.strict_mode"),jt=Symbol.for("react.profiler"),It=Symbol.for("react.consumer"),Et=Symbol.for("react.context"),Pt=Symbol.for("react.forward_ref"),Kt=Symbol.for("react.suspense"),Dt=Symbol.for("react.suspense_list"),tt=Symbol.for("react.memo"),bt=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),Nt=Symbol.for("react.memo_cache_sentinel"),wt=Symbol.iterator;function xt(t){return t===null||typeof t!="object"?null:(t=wt&&t[wt]||t["@@iterator"],typeof t=="function"?t:null)}var Bt=Symbol.for("react.client.reference");function oe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Bt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case jt:return"Profiler";case qt:return"StrictMode";case Kt:return"Suspense";case Dt:return"SuspenseList";case k:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case L:return"Portal";case Et:return t.displayName||"Context";case It:return(t._context.displayName||"Context")+".Consumer";case Pt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case tt:return e=t.displayName||null,e!==null?e:oe(t.type)||"Memo";case bt:e=t._payload,t=t._init;try{return oe(t(e))}catch{}}return null}var Yt=Array.isArray,A=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,b=h.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ot=[],dt=-1;function v(t){return{current:t}}function M(t){0>dt||(t.current=ot[dt],ot[dt]=null,dt--)}function H(t,e){dt++,ot[dt]=t.current,t.current=e}var R=v(null),$=v(null),P=v(null),ct=v(null);function kt(t,e){switch(H(P,e),H($,t),H(R,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?vd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=vd(e),t=md(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}M(R),H(R,t)}function _t(){M(R),M($),M(P)}function wl(t){t.memoizedState!==null&&H(ct,t);var e=R.current,l=md(e,t.type);e!==l&&(H($,t),H(R,l))}function ya(t){$.current===t&&(M(R),M($)),ct.current===t&&(M(ct),kn._currentValue=Z)}var bl,lu;function We(t){if(bl===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);bl=e&&e[1]||"",lu=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+bl+t+lu}var $t=!1;function va(t,e){if(!t||$t)return"";$t=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(z){var p=z}Reflect.construct(t,[],O)}else{try{O.call()}catch(z){p=z}t.call(O.prototype)}}else{try{throw Error()}catch(z){p=z}(O=t())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(z){if(z&&p&&typeof z.stack=="string")return[z.stack,p.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 o=i.split(`
`),g=f.split(`
`);for(n=a=0;a<o.length&&!o[a].includes("DetermineComponentFrameRoot");)a++;for(;n<g.length&&!g[n].includes("DetermineComponentFrameRoot");)n++;if(a===o.length||n===g.length)for(a=o.length-1,n=g.length-1;1<=a&&0<=n&&o[a]!==g[n];)n--;for(;1<=a&&0<=n;a--,n--)if(o[a]!==g[n]){if(a!==1||n!==1)do if(a--,n--,0>n||o[a]!==g[n]){var j=`
`+o[a].replace(" at new "," at ");return t.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",t.displayName)),j}while(1<=a&&0<=n);break}}}finally{$t=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?We(l):""}function J(t,e){switch(t.tag){case 26:case 27:case 5:return We(t.type);case 16:return We("Lazy");case 13:return t.child!==e&&e!==null?We("Suspense Fallback"):We("Suspense");case 19:return We("SuspenseList");case 0:case 15:return va(t.type,!1);case 11:return va(t.type.render,!1);case 1:return va(t.type,!0);case 31:return We("Activity");default:return""}}function Fe(t){try{var e="",l=null;do e+=J(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var ue=Object.prototype.hasOwnProperty,ma=c.unstable_scheduleCallback,De=c.unstable_cancelCallback,El=c.unstable_shouldYield,Ve=c.unstable_requestPaint,Xt=c.unstable_now,_e=c.unstable_getCurrentPriorityLevel,pe=c.unstable_ImmediatePriority,Ie=c.unstable_UserBlockingPriority,Ge=c.unstable_NormalPriority,au=c.unstable_LowPriority,Sa=c.unstable_IdlePriority,Pe=c.log,un=c.unstable_setDisableYieldValue,Ot=null,ie=null;function Ke(t){if(typeof Pe=="function"&&un(t),ie&&typeof ie.setStrictMode=="function")try{ie.setStrictMode(Ot,t)}catch{}}var T=Math.clz32?Math.clz32:vt,G=Math.log,Gt=Math.LN2;function vt(t){return t>>>=0,t===0?32:31-(G(t)/Gt|0)|0}var ga=256,nu=262144,uu=4194304;function Jl(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function iu(t,e,l){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=Jl(a):(i&=f,i!==0?n=Jl(i):l||(l=f&~t,l!==0&&(n=Jl(l))))):(f=a&~u,f!==0?n=Jl(f):i!==0?n=Jl(i):l||(l=a&~t,l!==0&&(n=Jl(l)))),n===0?0:e!==0&&e!==n&&(e&u)===0&&(u=n&-n,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:n}function cn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function zh(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $f(){var t=uu;return uu<<=1,(uu&62914560)===0&&(uu=4194304),t}function zi(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function fn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Th(t,e,l,a,n,u){var i=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var f=t.entanglements,o=t.expirationTimes,g=t.hiddenUpdates;for(l=i&~l;0<l;){var j=31-T(l),O=1<<j;f[j]=0,o[j]=-1;var p=g[j];if(p!==null)for(g[j]=null,j=0;j<p.length;j++){var z=p[j];z!==null&&(z.lane&=-536870913)}l&=~O}a!==0&&Wf(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~e))}function Wf(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-T(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function Ff(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-T(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function If(t,e){var l=e&-e;return l=(l&42)!==0?1:Ti(l),(l&(t.suspendedLanes|e))!==0?0:l}function Ti(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 xi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Pf(){var t=b.p;return t!==0?t:(t=window.event,t===void 0?32:Xd(t.type))}function ts(t,e){var l=b.p;try{return b.p=t,e()}finally{b.p=l}}var zl=Math.random().toString(36).slice(2),te="__reactFiber$"+zl,de="__reactProps$"+zl,pa="__reactContainer$"+zl,Ai="__reactEvents$"+zl,xh="__reactListeners$"+zl,Ah="__reactHandles$"+zl,es="__reactResources$"+zl,sn="__reactMarker$"+zl;function ji(t){delete t[te],delete t[de],delete t[Ai],delete t[xh],delete t[Ah]}function ba(t){var e=t[te];if(e)return e;for(var l=t.parentNode;l;){if(e=l[pa]||l[te]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Td(t);t!==null;){if(l=t[te])return l;t=Td(t)}return e}t=l,l=t.parentNode}return null}function Ea(t){if(t=t[te]||t[pa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function rn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function za(t){var e=t[es];return e||(e=t[es]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Wt(t){t[sn]=!0}var ls=new Set,as={};function kl(t,e){Ta(t,e),Ta(t+"Capture",e)}function Ta(t,e){for(as[t]=e,t=0;t<e.length;t++)ls.add(e[t])}var jh=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]*$"),ns={},us={};function Dh(t){return ue.call(us,t)?!0:ue.call(ns,t)?!1:jh.test(t)?us[t]=!0:(ns[t]=!0,!1)}function cu(t,e,l){if(Dh(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function fu(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function tl(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function Oe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function is(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _h(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Di(t){if(!t._valueTracker){var e=is(t)?"checked":"value";t._valueTracker=_h(t,e,""+t[e])}}function cs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=is(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function su(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 Oh=/[\n"\\]/g;function Me(t){return t.replace(Oh,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function _i(t,e,l,a,n,u,i,f){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),e!=null?i==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Oe(e)):t.value!==""+Oe(e)&&(t.value=""+Oe(e)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),e!=null?Oi(t,i,Oe(e)):l!=null?Oi(t,i,Oe(l)):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=""+Oe(f):t.removeAttribute("name")}function fs(t,e,l,a,n,u,i,f){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Di(t);return}l=l!=null?""+Oe(l):"",e=e!=null?""+Oe(e):l,f||e===t.value||(t.value=e),t.defaultValue=e}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),Di(t)}function Oi(t,e,l){e==="number"&&su(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function xa(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Oe(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function ss(t,e,l){if(e!=null&&(e=""+Oe(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Oe(l):""}function rs(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(r(92));if(Yt(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=Oe(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Di(t)}function Aa(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Mh=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 os(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||Mh.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function ds(t,e,l){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&os(t,n,a)}else for(var u in e)e.hasOwnProperty(u)&&os(t,u,e[u])}function Mi(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 Ch=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"]]),Nh=/^[\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 ru(t){return Nh.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function el(){}var Ci=null;function Ni(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ja=null,Da=null;function hs(t){var e=Ea(t);if(e&&(t=e.stateNode)){var l=t[de]||null;t:switch(t=e.stateNode,e.type){case"input":if(_i(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Me(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[de]||null;if(!n)throw Error(r(90));_i(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&cs(a)}break t;case"textarea":ss(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&xa(t,!!l.multiple,e,!1)}}}var Ui=!1;function ys(t,e,l){if(Ui)return t(e,l);Ui=!0;try{var a=t(e);return a}finally{if(Ui=!1,(ja!==null||Da!==null)&&(Fu(),ja&&(e=ja,t=Da,Da=ja=null,hs(e),t)))for(e=0;e<t.length;e++)hs(t[e])}}function on(t,e){var l=t.stateNode;if(l===null)return null;var a=l[de]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,e,typeof l));return l}var ll=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ri=!1;if(ll)try{var dn={};Object.defineProperty(dn,"passive",{get:function(){Ri=!0}}),window.addEventListener("test",dn,dn),window.removeEventListener("test",dn,dn)}catch{Ri=!1}var Tl=null,Hi=null,ou=null;function vs(){if(ou)return ou;var t,e=Hi,l=e.length,a,n="value"in Tl?Tl.value:Tl.textContent,u=n.length;for(t=0;t<l&&e[t]===n[t];t++);var i=l-t;for(a=1;a<=i&&e[l-a]===n[u-a];a++);return ou=n.slice(t,1<a?1-a:void 0)}function du(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function hu(){return!0}function ms(){return!1}function he(t){function e(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var f in t)t.hasOwnProperty(f)&&(l=t[f],this[f]=l?l(u):u[f]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?hu:ms,this.isPropagationStopped=ms,this}return B(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=hu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=hu)},persist:function(){},isPersistent:hu}),e}var $l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yu=he($l),hn=B({},$l,{view:0,detail:0}),Uh=he(hn),qi,Bi,yn,vu=B({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xi,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!==yn&&(yn&&t.type==="mousemove"?(qi=t.screenX-yn.screenX,Bi=t.screenY-yn.screenY):Bi=qi=0,yn=t),qi)},movementY:function(t){return"movementY"in t?t.movementY:Bi}}),Ss=he(vu),Rh=B({},vu,{dataTransfer:0}),Hh=he(Rh),qh=B({},hn,{relatedTarget:0}),Yi=he(qh),Bh=B({},$l,{animationName:0,elapsedTime:0,pseudoElement:0}),Yh=he(Bh),Xh=B({},$l,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Gh=he(Xh),Qh=B({},$l,{data:0}),gs=he(Qh),Zh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lh={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"},Vh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kh(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Vh[t])?!!e[t]:!1}function Xi(){return Kh}var wh=B({},hn,{key:function(t){if(t.key){var e=Zh[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=du(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Lh[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xi,charCode:function(t){return t.type==="keypress"?du(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?du(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Jh=he(wh),kh=B({},vu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ps=he(kh),$h=B({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xi}),Wh=he($h),Fh=B({},$l,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ih=he(Fh),Ph=B({},vu,{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}),ty=he(Ph),ey=B({},$l,{newState:0,oldState:0}),ly=he(ey),ay=[9,13,27,32],Gi=ll&&"CompositionEvent"in window,vn=null;ll&&"documentMode"in document&&(vn=document.documentMode);var ny=ll&&"TextEvent"in window&&!vn,bs=ll&&(!Gi||vn&&8<vn&&11>=vn),Es=" ",zs=!1;function Ts(t,e){switch(t){case"keyup":return ay.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xs(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var _a=!1;function uy(t,e){switch(t){case"compositionend":return xs(e);case"keypress":return e.which!==32?null:(zs=!0,Es);case"textInput":return t=e.data,t===Es&&zs?null:t;default:return null}}function iy(t,e){if(_a)return t==="compositionend"||!Gi&&Ts(t,e)?(t=vs(),ou=Hi=Tl=null,_a=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return bs&&e.locale!=="ko"?null:e.data;default:return null}}var cy={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 As(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!cy[t.type]:e==="textarea"}function js(t,e,l,a){ja?Da?Da.push(a):Da=[a]:ja=a,e=ni(e,"onChange"),0<e.length&&(l=new yu("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var mn=null,Sn=null;function fy(t){sd(t,0)}function mu(t){var e=rn(t);if(cs(e))return t}function Ds(t,e){if(t==="change")return e}var _s=!1;if(ll){var Qi;if(ll){var Zi="oninput"in document;if(!Zi){var Os=document.createElement("div");Os.setAttribute("oninput","return;"),Zi=typeof Os.oninput=="function"}Qi=Zi}else Qi=!1;_s=Qi&&(!document.documentMode||9<document.documentMode)}function Ms(){mn&&(mn.detachEvent("onpropertychange",Cs),Sn=mn=null)}function Cs(t){if(t.propertyName==="value"&&mu(Sn)){var e=[];js(e,Sn,t,Ni(t)),ys(fy,e)}}function sy(t,e,l){t==="focusin"?(Ms(),mn=e,Sn=l,mn.attachEvent("onpropertychange",Cs)):t==="focusout"&&Ms()}function ry(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return mu(Sn)}function oy(t,e){if(t==="click")return mu(e)}function dy(t,e){if(t==="input"||t==="change")return mu(e)}function hy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var be=typeof Object.is=="function"?Object.is:hy;function gn(t,e){if(be(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!ue.call(e,n)||!be(t[n],e[n]))return!1}return!0}function Ns(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Us(t,e){var l=Ns(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Ns(l)}}function Rs(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Rs(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Hs(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=su(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=su(t.document)}return e}function Li(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var yy=ll&&"documentMode"in document&&11>=document.documentMode,Oa=null,Vi=null,pn=null,Ki=!1;function qs(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ki||Oa==null||Oa!==su(a)||(a=Oa,"selectionStart"in a&&Li(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}),pn&&gn(pn,a)||(pn=a,a=ni(Vi,"onSelect"),0<a.length&&(e=new yu("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=Oa)))}function Wl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var Ma={animationend:Wl("Animation","AnimationEnd"),animationiteration:Wl("Animation","AnimationIteration"),animationstart:Wl("Animation","AnimationStart"),transitionrun:Wl("Transition","TransitionRun"),transitionstart:Wl("Transition","TransitionStart"),transitioncancel:Wl("Transition","TransitionCancel"),transitionend:Wl("Transition","TransitionEnd")},wi={},Bs={};ll&&(Bs=document.createElement("div").style,"AnimationEvent"in window||(delete Ma.animationend.animation,delete Ma.animationiteration.animation,delete Ma.animationstart.animation),"TransitionEvent"in window||delete Ma.transitionend.transition);function Fl(t){if(wi[t])return wi[t];if(!Ma[t])return t;var e=Ma[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Bs)return wi[t]=e[l];return t}var Ys=Fl("animationend"),Xs=Fl("animationiteration"),Gs=Fl("animationstart"),vy=Fl("transitionrun"),my=Fl("transitionstart"),Sy=Fl("transitioncancel"),Qs=Fl("transitionend"),Zs=new Map,Ji="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(" ");Ji.push("scrollEnd");function Qe(t,e){Zs.set(t,e),kl(e,[t])}var Su=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ce=[],Ca=0,ki=0;function gu(){for(var t=Ca,e=ki=Ca=0;e<t;){var l=Ce[e];Ce[e++]=null;var a=Ce[e];Ce[e++]=null;var n=Ce[e];Ce[e++]=null;var u=Ce[e];if(Ce[e++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&Ls(l,n,u)}}function pu(t,e,l,a){Ce[Ca++]=t,Ce[Ca++]=e,Ce[Ca++]=l,Ce[Ca++]=a,ki|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function $i(t,e,l,a){return pu(t,e,l,a),bu(t)}function Il(t,e){return pu(t,null,null,e),bu(t)}function Ls(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=t.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(n=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,n&&e!==null&&(n=31-T(l),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),u):null}function bu(t){if(50<Qn)throw Qn=0,nf=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Na={};function gy(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(t,e,l,a){return new gy(t,e,l,a)}function Wi(t){return t=t.prototype,!(!t||!t.isReactComponent)}function al(t,e){var l=t.alternate;return l===null?(l=Ee(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Vs(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Eu(t,e,l,a,n,u){var i=0;if(a=t,typeof t=="function")Wi(t)&&(i=1);else if(typeof t=="string")i=Tv(t,l,R.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case k:return t=Ee(31,l,e,n),t.elementType=k,t.lanes=u,t;case C:return Pl(l.children,n,u,e);case qt:i=8,n|=24;break;case jt:return t=Ee(12,l,e,n|2),t.elementType=jt,t.lanes=u,t;case Kt:return t=Ee(13,l,e,n),t.elementType=Kt,t.lanes=u,t;case Dt:return t=Ee(19,l,e,n),t.elementType=Dt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Et:i=10;break t;case It:i=9;break t;case Pt:i=11;break t;case tt:i=14;break t;case bt:i=16,a=null;break t}i=29,l=Error(r(130,t===null?"null":typeof t,"")),a=null}return e=Ee(i,l,e,n),e.elementType=t,e.type=a,e.lanes=u,e}function Pl(t,e,l,a){return t=Ee(7,t,a,e),t.lanes=l,t}function Fi(t,e,l){return t=Ee(6,t,null,e),t.lanes=l,t}function Ks(t){var e=Ee(18,null,null,0);return e.stateNode=t,e}function Ii(t,e,l){return e=Ee(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var ws=new WeakMap;function Ne(t,e){if(typeof t=="object"&&t!==null){var l=ws.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Fe(e)},ws.set(t,e),e)}return{value:t,source:e,stack:Fe(e)}}var Ua=[],Ra=0,zu=null,bn=0,Ue=[],Re=0,xl=null,we=1,Je="";function nl(t,e){Ua[Ra++]=bn,Ua[Ra++]=zu,zu=t,bn=e}function Js(t,e,l){Ue[Re++]=we,Ue[Re++]=Je,Ue[Re++]=xl,xl=t;var a=we;t=Je;var n=32-T(a)-1;a&=~(1<<n),l+=1;var u=32-T(e)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,we=1<<32-T(e)+n|l<<n|a,Je=u+t}else we=1<<u|l<<n|a,Je=t}function Pi(t){t.return!==null&&(nl(t,1),Js(t,1,0))}function tc(t){for(;t===zu;)zu=Ua[--Ra],Ua[Ra]=null,bn=Ua[--Ra],Ua[Ra]=null;for(;t===xl;)xl=Ue[--Re],Ue[Re]=null,Je=Ue[--Re],Ue[Re]=null,we=Ue[--Re],Ue[Re]=null}function ks(t,e){Ue[Re++]=we,Ue[Re++]=Je,Ue[Re++]=xl,we=e.id,Je=e.overflow,xl=t}var ee=null,zt=null,it=!1,Al=null,He=!1,ec=Error(r(519));function jl(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw En(Ne(e,t)),ec}function $s(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[te]=t,e[de]=a,l){case"dialog":at("cancel",e),at("close",e);break;case"iframe":case"object":case"embed":at("load",e);break;case"video":case"audio":for(l=0;l<Ln.length;l++)at(Ln[l],e);break;case"source":at("error",e);break;case"img":case"image":case"link":at("error",e),at("load",e);break;case"details":at("toggle",e);break;case"input":at("invalid",e),fs(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":at("invalid",e);break;case"textarea":at("invalid",e),rs(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||hd(e.textContent,l)?(a.popover!=null&&(at("beforetoggle",e),at("toggle",e)),a.onScroll!=null&&at("scroll",e),a.onScrollEnd!=null&&at("scrollend",e),a.onClick!=null&&(e.onclick=el),e=!0):e=!1,e||jl(t,!0)}function Ws(t){for(ee=t.return;ee;)switch(ee.tag){case 5:case 31:case 13:He=!1;return;case 27:case 3:He=!0;return;default:ee=ee.return}}function Ha(t){if(t!==ee)return!1;if(!it)return Ws(t),it=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||bf(t.type,t.memoizedProps)),l=!l),l&&zt&&jl(t),Ws(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));zt=zd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));zt=zd(t)}else e===27?(e=zt,Gl(t.type)?(t=Af,Af=null,zt=t):zt=e):zt=ee?Be(t.stateNode.nextSibling):null;return!0}function ta(){zt=ee=null,it=!1}function lc(){var t=Al;return t!==null&&(Se===null?Se=t:Se.push.apply(Se,t),Al=null),t}function En(t){Al===null?Al=[t]:Al.push(t)}var ac=v(null),ea=null,ul=null;function Dl(t,e,l){H(ac,e._currentValue),e._currentValue=l}function il(t){t._currentValue=ac.current,M(ac)}function nc(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function uc(t,e,l,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 o=0;o<e.length;o++)if(f.context===e[o]){u.lanes|=l,f=u.alternate,f!==null&&(f.lanes|=l),nc(u.return,l,t),a||(i=null);break t}u=f.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(r(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),nc(i,l,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 qa(t,e,l,a){t=null;for(var n=e,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(r(387));if(i=i.memoizedProps,i!==null){var f=n.type;be(n.pendingProps.value,i.value)||(t!==null?t.push(f):t=[f])}}else if(n===ct.current){if(i=n.alternate,i===null)throw Error(r(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(kn):t=[kn])}n=n.return}t!==null&&uc(e,t,l,a),e.flags|=262144}function Tu(t){for(t=t.firstContext;t!==null;){if(!be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function la(t){ea=t,ul=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function le(t){return Fs(ea,t)}function xu(t,e){return ea===null&&la(t),Fs(t,e)}function Fs(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},ul===null){if(t===null)throw Error(r(308));ul=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ul=ul.next=e;return l}var py=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},by=c.unstable_scheduleCallback,Ey=c.unstable_NormalPriority,Qt={$$typeof:Et,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ic(){return{controller:new py,data:new Map,refCount:0}}function zn(t){t.refCount--,t.refCount===0&&by(Ey,function(){t.controller.abort()})}var Tn=null,cc=0,Ba=0,Ya=null;function zy(t,e){if(Tn===null){var l=Tn=[];cc=0,Ba=of(),Ya={status:"pending",value:void 0,then:function(a){l.push(a)}}}return cc++,e.then(Is,Is),e}function Is(){if(--cc===0&&Tn!==null){Ya!==null&&(Ya.status="fulfilled");var t=Tn;Tn=null,Ba=0,Ya=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Ty(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Ps=A.S;A.S=function(t,e){Bo=Xt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&zy(t,e),Ps!==null&&Ps(t,e)};var aa=v(null);function fc(){var t=aa.current;return t!==null?t:pt.pooledCache}function Au(t,e){e===null?H(aa,aa.current):H(aa,e.pool)}function tr(){var t=fc();return t===null?null:{parent:Qt._currentValue,pool:t}}var Xa=Error(r(460)),sc=Error(r(474)),ju=Error(r(542)),Du={then:function(){}};function er(t){return t=t.status,t==="fulfilled"||t==="rejected"}function lr(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(el,el),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,nr(t),t;default:if(typeof e.status=="string")e.then(el,el);else{if(t=pt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,nr(t),t}throw ua=e,Xa}}function na(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ua=l,Xa):l}}var ua=null;function ar(){if(ua===null)throw Error(r(459));var t=ua;return ua=null,t}function nr(t){if(t===Xa||t===ju)throw Error(r(483))}var Ga=null,xn=0;function _u(t){var e=xn;return xn+=1,Ga===null&&(Ga=[]),lr(Ga,t,e)}function An(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ou(t,e){throw e.$$typeof===et?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function ur(t){function e(m,y){if(t){var S=m.deletions;S===null?(m.deletions=[y],m.flags|=16):S.push(y)}}function l(m,y){if(!t)return null;for(;y!==null;)e(m,y),y=y.sibling;return null}function a(m){for(var y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function n(m,y){return m=al(m,y),m.index=0,m.sibling=null,m}function u(m,y,S){return m.index=S,t?(S=m.alternate,S!==null?(S=S.index,S<y?(m.flags|=67108866,y):S):(m.flags|=67108866,y)):(m.flags|=1048576,y)}function i(m){return t&&m.alternate===null&&(m.flags|=67108866),m}function f(m,y,S,_){return y===null||y.tag!==6?(y=Fi(S,m.mode,_),y.return=m,y):(y=n(y,S),y.return=m,y)}function o(m,y,S,_){var V=S.type;return V===C?j(m,y,S.props.children,_,S.key):y!==null&&(y.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===bt&&na(V)===y.type)?(y=n(y,S.props),An(y,S),y.return=m,y):(y=Eu(S.type,S.key,S.props,null,m.mode,_),An(y,S),y.return=m,y)}function g(m,y,S,_){return y===null||y.tag!==4||y.stateNode.containerInfo!==S.containerInfo||y.stateNode.implementation!==S.implementation?(y=Ii(S,m.mode,_),y.return=m,y):(y=n(y,S.children||[]),y.return=m,y)}function j(m,y,S,_,V){return y===null||y.tag!==7?(y=Pl(S,m.mode,_,V),y.return=m,y):(y=n(y,S),y.return=m,y)}function O(m,y,S){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=Fi(""+y,m.mode,S),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ht:return S=Eu(y.type,y.key,y.props,null,m.mode,S),An(S,y),S.return=m,S;case L:return y=Ii(y,m.mode,S),y.return=m,y;case bt:return y=na(y),O(m,y,S)}if(Yt(y)||xt(y))return y=Pl(y,m.mode,S,null),y.return=m,y;if(typeof y.then=="function")return O(m,_u(y),S);if(y.$$typeof===Et)return O(m,xu(m,y),S);Ou(m,y)}return null}function p(m,y,S,_){var V=y!==null?y.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return V!==null?null:f(m,y,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ht:return S.key===V?o(m,y,S,_):null;case L:return S.key===V?g(m,y,S,_):null;case bt:return S=na(S),p(m,y,S,_)}if(Yt(S)||xt(S))return V!==null?null:j(m,y,S,_,null);if(typeof S.then=="function")return p(m,y,_u(S),_);if(S.$$typeof===Et)return p(m,y,xu(m,S),_);Ou(m,S)}return null}function z(m,y,S,_,V){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return m=m.get(S)||null,f(y,m,""+_,V);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Ht:return m=m.get(_.key===null?S:_.key)||null,o(y,m,_,V);case L:return m=m.get(_.key===null?S:_.key)||null,g(y,m,_,V);case bt:return _=na(_),z(m,y,S,_,V)}if(Yt(_)||xt(_))return m=m.get(S)||null,j(y,m,_,V,null);if(typeof _.then=="function")return z(m,y,S,_u(_),V);if(_.$$typeof===Et)return z(m,y,S,xu(y,_),V);Ou(y,_)}return null}function Y(m,y,S,_){for(var V=null,ft=null,X=y,I=y=0,ut=null;X!==null&&I<S.length;I++){X.index>I?(ut=X,X=null):ut=X.sibling;var st=p(m,X,S[I],_);if(st===null){X===null&&(X=ut);break}t&&X&&st.alternate===null&&e(m,X),y=u(st,y,I),ft===null?V=st:ft.sibling=st,ft=st,X=ut}if(I===S.length)return l(m,X),it&&nl(m,I),V;if(X===null){for(;I<S.length;I++)X=O(m,S[I],_),X!==null&&(y=u(X,y,I),ft===null?V=X:ft.sibling=X,ft=X);return it&&nl(m,I),V}for(X=a(X);I<S.length;I++)ut=z(X,m,I,S[I],_),ut!==null&&(t&&ut.alternate!==null&&X.delete(ut.key===null?I:ut.key),y=u(ut,y,I),ft===null?V=ut:ft.sibling=ut,ft=ut);return t&&X.forEach(function(Kl){return e(m,Kl)}),it&&nl(m,I),V}function K(m,y,S,_){if(S==null)throw Error(r(151));for(var V=null,ft=null,X=y,I=y=0,ut=null,st=S.next();X!==null&&!st.done;I++,st=S.next()){X.index>I?(ut=X,X=null):ut=X.sibling;var Kl=p(m,X,st.value,_);if(Kl===null){X===null&&(X=ut);break}t&&X&&Kl.alternate===null&&e(m,X),y=u(Kl,y,I),ft===null?V=Kl:ft.sibling=Kl,ft=Kl,X=ut}if(st.done)return l(m,X),it&&nl(m,I),V;if(X===null){for(;!st.done;I++,st=S.next())st=O(m,st.value,_),st!==null&&(y=u(st,y,I),ft===null?V=st:ft.sibling=st,ft=st);return it&&nl(m,I),V}for(X=a(X);!st.done;I++,st=S.next())st=z(X,m,I,st.value,_),st!==null&&(t&&st.alternate!==null&&X.delete(st.key===null?I:st.key),y=u(st,y,I),ft===null?V=st:ft.sibling=st,ft=st);return t&&X.forEach(function(Rv){return e(m,Rv)}),it&&nl(m,I),V}function gt(m,y,S,_){if(typeof S=="object"&&S!==null&&S.type===C&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Ht:t:{for(var V=S.key;y!==null;){if(y.key===V){if(V=S.type,V===C){if(y.tag===7){l(m,y.sibling),_=n(y,S.props.children),_.return=m,m=_;break t}}else if(y.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===bt&&na(V)===y.type){l(m,y.sibling),_=n(y,S.props),An(_,S),_.return=m,m=_;break t}l(m,y);break}else e(m,y);y=y.sibling}S.type===C?(_=Pl(S.props.children,m.mode,_,S.key),_.return=m,m=_):(_=Eu(S.type,S.key,S.props,null,m.mode,_),An(_,S),_.return=m,m=_)}return i(m);case L:t:{for(V=S.key;y!==null;){if(y.key===V)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){l(m,y.sibling),_=n(y,S.children||[]),_.return=m,m=_;break t}else{l(m,y);break}else e(m,y);y=y.sibling}_=Ii(S,m.mode,_),_.return=m,m=_}return i(m);case bt:return S=na(S),gt(m,y,S,_)}if(Yt(S))return Y(m,y,S,_);if(xt(S)){if(V=xt(S),typeof V!="function")throw Error(r(150));return S=V.call(S),K(m,y,S,_)}if(typeof S.then=="function")return gt(m,y,_u(S),_);if(S.$$typeof===Et)return gt(m,y,xu(m,S),_);Ou(m,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,y!==null&&y.tag===6?(l(m,y.sibling),_=n(y,S),_.return=m,m=_):(l(m,y),_=Fi(S,m.mode,_),_.return=m,m=_),i(m)):l(m,y)}return function(m,y,S,_){try{xn=0;var V=gt(m,y,S,_);return Ga=null,V}catch(X){if(X===Xa||X===ju)throw X;var ft=Ee(29,X,null,m.mode);return ft.lanes=_,ft.return=m,ft}finally{}}}var ia=ur(!0),ir=ur(!1),_l=!1;function rc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ol(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ml(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(rt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=bu(t),Ls(t,null,l),e}return pu(t,a,e,l),bu(t)}function jn(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Ff(t,l)}}function dc(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?n=u=e:u=u.next=e}else n=u=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var hc=!1;function Dn(){if(hc){var t=Ya;if(t!==null)throw t}}function _n(t,e,l,a){hc=!1;var n=t.updateQueue;_l=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var o=f,g=o.next;o.next=null,i===null?u=g:i.next=g,i=o;var j=t.alternate;j!==null&&(j=j.updateQueue,f=j.lastBaseUpdate,f!==i&&(f===null?j.firstBaseUpdate=g:f.next=g,j.lastBaseUpdate=o))}if(u!==null){var O=n.baseState;i=0,j=g=o=null,f=u;do{var p=f.lane&-536870913,z=p!==f.lane;if(z?(nt&p)===p:(a&p)===p){p!==0&&p===Ba&&(hc=!0),j!==null&&(j=j.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var Y=t,K=f;p=e;var gt=l;switch(K.tag){case 1:if(Y=K.payload,typeof Y=="function"){O=Y.call(gt,O,p);break t}O=Y;break t;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=K.payload,p=typeof Y=="function"?Y.call(gt,O,p):Y,p==null)break t;O=B({},O,p);break t;case 2:_l=!0}}p=f.callback,p!==null&&(t.flags|=64,z&&(t.flags|=8192),z=n.callbacks,z===null?n.callbacks=[p]:z.push(p))}else z={lane:p,tag:f.tag,payload:f.payload,callback:f.callback,next:null},j===null?(g=j=z,o=O):j=j.next=z,i|=p;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;z=f,f=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}}while(!0);j===null&&(o=O),n.baseState=o,n.firstBaseUpdate=g,n.lastBaseUpdate=j,u===null&&(n.shared.lanes=0),Hl|=i,t.lanes=i,t.memoizedState=O}}function cr(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function fr(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)cr(l[t],e)}var Qa=v(null),Mu=v(0);function sr(t,e){t=vl,H(Mu,t),H(Qa,e),vl=t|e.baseLanes}function yc(){H(Mu,vl),H(Qa,Qa.current)}function vc(){vl=Mu.current,M(Qa),M(Mu)}var ze=v(null),qe=null;function Cl(t){var e=t.alternate;H(Ut,Ut.current&1),H(ze,t),qe===null&&(e===null||Qa.current!==null||e.memoizedState!==null)&&(qe=t)}function mc(t){H(Ut,Ut.current),H(ze,t),qe===null&&(qe=t)}function rr(t){t.tag===22?(H(Ut,Ut.current),H(ze,t),qe===null&&(qe=t)):Nl()}function Nl(){H(Ut,Ut.current),H(ze,ze.current)}function Te(t){M(ze),qe===t&&(qe=null),M(Ut)}var Ut=v(0);function Cu(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Tf(l)||xf(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var cl=0,F=null,mt=null,Zt=null,Nu=!1,Za=!1,ca=!1,Uu=0,On=0,La=null,xy=0;function Mt(){throw Error(r(321))}function Sc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!be(t[l],e[l]))return!1;return!0}function gc(t,e,l,a,n,u){return cl=u,F=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,A.H=t===null||t.memoizedState===null?Jr:Uc,ca=!1,u=l(a,n),ca=!1,Za&&(u=dr(e,l,a,n)),or(t),u}function or(t){A.H=Nn;var e=mt!==null&&mt.next!==null;if(cl=0,Zt=mt=F=null,Nu=!1,On=0,La=null,e)throw Error(r(300));t===null||Lt||(t=t.dependencies,t!==null&&Tu(t)&&(Lt=!0))}function dr(t,e,l,a){F=t;var n=0;do{if(Za&&(La=null),On=0,Za=!1,25<=n)throw Error(r(301));if(n+=1,Zt=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)}A.H=kr,u=e(l,a)}while(Za);return u}function Ay(){var t=A.H,e=t.useState()[0];return e=typeof e.then=="function"?Mn(e):e,t=t.useState()[0],(mt!==null?mt.memoizedState:null)!==t&&(F.flags|=1024),e}function pc(){var t=Uu!==0;return Uu=0,t}function bc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Ec(t){if(Nu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Nu=!1}cl=0,Zt=mt=F=null,Za=!1,On=Uu=0,La=null}function se(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?F.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function Rt(){if(mt===null){var t=F.alternate;t=t!==null?t.memoizedState:null}else t=mt.next;var e=Zt===null?F.memoizedState:Zt.next;if(e!==null)Zt=e,mt=t;else{if(t===null)throw F.alternate===null?Error(r(467)):Error(r(310));mt=t,t={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},Zt===null?F.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function Ru(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mn(t){var e=On;return On+=1,La===null&&(La=[]),t=lr(La,t,e),e=F,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,A.H=e===null||e.memoizedState===null?Jr:Uc),t}function Hu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Mn(t);if(t.$$typeof===Et)return le(t)}throw Error(r(438,String(t)))}function zc(t){var e=null,l=F.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=F.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Ru(),F.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=Nt;return e.index++,l}function fl(t,e){return typeof e=="function"?e(t):e}function qu(t){var e=Rt();return Tc(e,mt,t)}function Tc(t,e,l){var a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}e.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{e=n.next;var f=i=null,o=null,g=e,j=!1;do{var O=g.lane&-536870913;if(O!==g.lane?(nt&O)===O:(cl&O)===O){var p=g.revertLane;if(p===0)o!==null&&(o=o.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),O===Ba&&(j=!0);else if((cl&p)===p){g=g.next,p===Ba&&(j=!0);continue}else O={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},o===null?(f=o=O,i=u):o=o.next=O,F.lanes|=p,Hl|=p;O=g.action,ca&&l(u,O),u=g.hasEagerState?g.eagerState:l(u,O)}else p={lane:O,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},o===null?(f=o=p,i=u):o=o.next=p,F.lanes|=O,Hl|=O;g=g.next}while(g!==null&&g!==e);if(o===null?i=u:o.next=f,!be(u,t.memoizedState)&&(Lt=!0,j&&(l=Ya,l!==null)))throw l;t.memoizedState=u,t.baseState=i,t.baseQueue=o,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function xc(t){var e=Rt(),l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,u=e.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=t(u,i.action),i=i.next;while(i!==n);be(u,e.memoizedState)||(Lt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,a]}function hr(t,e,l){var a=F,n=Rt(),u=it;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=e();var i=!be((mt||n).memoizedState,l);if(i&&(n.memoizedState=l,Lt=!0),n=n.queue,Dc(mr.bind(null,a,n,t),[t]),n.getSnapshot!==e||i||Zt!==null&&Zt.memoizedState.tag&1){if(a.flags|=2048,Va(9,{destroy:void 0},vr.bind(null,a,n,l,e),null),pt===null)throw Error(r(349));u||(cl&127)!==0||yr(a,e,l)}return l}function yr(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=F.updateQueue,e===null?(e=Ru(),F.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function vr(t,e,l,a){e.value=l,e.getSnapshot=a,Sr(e)&&gr(t)}function mr(t,e,l){return l(function(){Sr(e)&&gr(t)})}function Sr(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!be(t,l)}catch{return!0}}function gr(t){var e=Il(t,2);e!==null&&ge(e,t,2)}function Ac(t){var e=se();if(typeof t=="function"){var l=t;if(t=l(),ca){Ke(!0);try{l()}finally{Ke(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fl,lastRenderedState:t},e}function pr(t,e,l,a){return t.baseState=l,Tc(t,mt,typeof a=="function"?a:fl)}function jy(t,e,l,a,n){if(Xu(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};A.T!==null?l(!0):u.isTransition=!1,a(u),l=e.pending,l===null?(u.next=e.pending=u,br(e,u)):(u.next=l.next,e.pending=l.next=u)}}function br(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var u=A.T,i={};A.T=i;try{var f=l(n,a),o=A.S;o!==null&&o(i,f),Er(t,e,f)}catch(g){jc(t,e,g)}finally{u!==null&&i.types!==null&&(u.types=i.types),A.T=u}}else try{u=l(n,a),Er(t,e,u)}catch(g){jc(t,e,g)}}function Er(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){zr(t,e,a)},function(a){return jc(t,e,a)}):zr(t,e,l)}function zr(t,e,l){e.status="fulfilled",e.value=l,Tr(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,br(t,l)))}function jc(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,Tr(e),e=e.next;while(e!==a)}t.action=null}function Tr(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function xr(t,e){return e}function Ar(t,e){if(it){var l=pt.formState;if(l!==null){t:{var a=F;if(it){if(zt){e:{for(var n=zt,u=He;n.nodeType!==8;){if(!u){n=null;break e}if(n=Be(n.nextSibling),n===null){n=null;break e}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){zt=Be(n.nextSibling),a=n.data==="F!";break t}}jl(a)}a=!1}a&&(e=l[0])}}return l=se(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xr,lastRenderedState:e},l.queue=a,l=Vr.bind(null,F,a),a.dispatch=l,a=Ac(!1),u=Nc.bind(null,F,!1,a.queue),a=se(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=jy.bind(null,F,n,u,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function jr(t){var e=Rt();return Dr(e,mt,t)}function Dr(t,e,l){if(e=Tc(t,e,xr)[0],t=qu(fl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Mn(e)}catch(i){throw i===Xa?ju:i}else a=e;e=Rt();var n=e.queue,u=n.dispatch;return l!==e.memoizedState&&(F.flags|=2048,Va(9,{destroy:void 0},Dy.bind(null,n,l),null)),[a,u,t]}function Dy(t,e){t.action=e}function _r(t){var e=Rt(),l=mt;if(l!==null)return Dr(e,l,t);Rt(),e=e.memoizedState,l=Rt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function Va(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=F.updateQueue,e===null&&(e=Ru(),F.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function Or(){return Rt().memoizedState}function Bu(t,e,l,a){var n=se();F.flags|=t,n.memoizedState=Va(1|e,{destroy:void 0},l,a===void 0?null:a)}function Yu(t,e,l,a){var n=Rt();a=a===void 0?null:a;var u=n.memoizedState.inst;mt!==null&&a!==null&&Sc(a,mt.memoizedState.deps)?n.memoizedState=Va(e,u,l,a):(F.flags|=t,n.memoizedState=Va(1|e,u,l,a))}function Mr(t,e){Bu(8390656,8,t,e)}function Dc(t,e){Yu(2048,8,t,e)}function _y(t){F.flags|=4;var e=F.updateQueue;if(e===null)e=Ru(),F.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Cr(t){var e=Rt().memoizedState;return _y({ref:e,nextImpl:t}),function(){if((rt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Nr(t,e){return Yu(4,2,t,e)}function Ur(t,e){return Yu(4,4,t,e)}function Rr(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Hr(t,e,l){l=l!=null?l.concat([t]):null,Yu(4,4,Rr.bind(null,e,t),l)}function _c(){}function qr(t,e){var l=Rt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&Sc(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Br(t,e){var l=Rt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&Sc(e,a[1]))return a[0];if(a=t(),ca){Ke(!0);try{t()}finally{Ke(!1)}}return l.memoizedState=[a,e],a}function Oc(t,e,l){return l===void 0||(cl&1073741824)!==0&&(nt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Xo(),F.lanes|=t,Hl|=t,l)}function Yr(t,e,l,a){return be(l,e)?l:Qa.current!==null?(t=Oc(t,l,a),be(t,e)||(Lt=!0),t):(cl&42)===0||(cl&1073741824)!==0&&(nt&261930)===0?(Lt=!0,t.memoizedState=l):(t=Xo(),F.lanes|=t,Hl|=t,e)}function Xr(t,e,l,a,n){var u=b.p;b.p=u!==0&&8>u?u:8;var i=A.T,f={};A.T=f,Nc(t,!1,e,l);try{var o=n(),g=A.S;if(g!==null&&g(f,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var j=Ty(o,a);Cn(t,e,j,je(t))}else Cn(t,e,a,je(t))}catch(O){Cn(t,e,{then:function(){},status:"rejected",reason:O},je())}finally{b.p=u,i!==null&&f.types!==null&&(i.types=f.types),A.T=i}}function Oy(){}function Mc(t,e,l,a){if(t.tag!==5)throw Error(r(476));var n=Gr(t).queue;Xr(t,n,e,Z,l===null?Oy:function(){return Qr(t),l(a)})}function Gr(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fl,lastRenderedState:Z},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Qr(t){var e=Gr(t);e.next===null&&(e=t.alternate.memoizedState),Cn(t,e.next.queue,{},je())}function Cc(){return le(kn)}function Zr(){return Rt().memoizedState}function Lr(){return Rt().memoizedState}function My(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=je();t=Ol(l);var a=Ml(e,t,l);a!==null&&(ge(a,e,l),jn(a,e,l)),e={cache:ic()},t.payload=e;return}e=e.return}}function Cy(t,e,l){var a=je();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Xu(t)?Kr(e,l):(l=$i(t,e,l,a),l!==null&&(ge(l,t,a),wr(l,e,a)))}function Vr(t,e,l){var a=je();Cn(t,e,l,a)}function Cn(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Xu(t))Kr(e,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var i=e.lastRenderedState,f=u(i,l);if(n.hasEagerState=!0,n.eagerState=f,be(f,i))return pu(t,e,n,0),pt===null&&gu(),!1}catch{}finally{}if(l=$i(t,e,n,a),l!==null)return ge(l,t,a),wr(l,e,a),!0}return!1}function Nc(t,e,l,a){if(a={lane:2,revertLane:of(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Xu(t)){if(e)throw Error(r(479))}else e=$i(t,l,a,2),e!==null&&ge(e,t,2)}function Xu(t){var e=t.alternate;return t===F||e!==null&&e===F}function Kr(t,e){Za=Nu=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function wr(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Ff(t,l)}}var Nn={readContext:le,use:Hu,useCallback:Mt,useContext:Mt,useEffect:Mt,useImperativeHandle:Mt,useLayoutEffect:Mt,useInsertionEffect:Mt,useMemo:Mt,useReducer:Mt,useRef:Mt,useState:Mt,useDebugValue:Mt,useDeferredValue:Mt,useTransition:Mt,useSyncExternalStore:Mt,useId:Mt,useHostTransitionStatus:Mt,useFormState:Mt,useActionState:Mt,useOptimistic:Mt,useMemoCache:Mt,useCacheRefresh:Mt};Nn.useEffectEvent=Mt;var Jr={readContext:le,use:Hu,useCallback:function(t,e){return se().memoizedState=[t,e===void 0?null:e],t},useContext:le,useEffect:Mr,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Bu(4194308,4,Rr.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Bu(4194308,4,t,e)},useInsertionEffect:function(t,e){Bu(4,2,t,e)},useMemo:function(t,e){var l=se();e=e===void 0?null:e;var a=t();if(ca){Ke(!0);try{t()}finally{Ke(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=se();if(l!==void 0){var n=l(e);if(ca){Ke(!0);try{l(e)}finally{Ke(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=Cy.bind(null,F,t),[a.memoizedState,t]},useRef:function(t){var e=se();return t={current:t},e.memoizedState=t},useState:function(t){t=Ac(t);var e=t.queue,l=Vr.bind(null,F,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:_c,useDeferredValue:function(t,e){var l=se();return Oc(l,t,e)},useTransition:function(){var t=Ac(!1);return t=Xr.bind(null,F,t.queue,!0,!1),se().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=F,n=se();if(it){if(l===void 0)throw Error(r(407));l=l()}else{if(l=e(),pt===null)throw Error(r(349));(nt&127)!==0||yr(a,e,l)}n.memoizedState=l;var u={value:l,getSnapshot:e};return n.queue=u,Mr(mr.bind(null,a,u,t),[t]),a.flags|=2048,Va(9,{destroy:void 0},vr.bind(null,a,u,l,e),null),l},useId:function(){var t=se(),e=pt.identifierPrefix;if(it){var l=Je,a=we;l=(a&~(1<<32-T(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Uu++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=xy++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Cc,useFormState:Ar,useActionState:Ar,useOptimistic:function(t){var e=se();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Nc.bind(null,F,!0,l),l.dispatch=e,[t,e]},useMemoCache:zc,useCacheRefresh:function(){return se().memoizedState=My.bind(null,F)},useEffectEvent:function(t){var e=se(),l={impl:t};return e.memoizedState=l,function(){if((rt&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Uc={readContext:le,use:Hu,useCallback:qr,useContext:le,useEffect:Dc,useImperativeHandle:Hr,useInsertionEffect:Nr,useLayoutEffect:Ur,useMemo:Br,useReducer:qu,useRef:Or,useState:function(){return qu(fl)},useDebugValue:_c,useDeferredValue:function(t,e){var l=Rt();return Yr(l,mt.memoizedState,t,e)},useTransition:function(){var t=qu(fl)[0],e=Rt().memoizedState;return[typeof t=="boolean"?t:Mn(t),e]},useSyncExternalStore:hr,useId:Zr,useHostTransitionStatus:Cc,useFormState:jr,useActionState:jr,useOptimistic:function(t,e){var l=Rt();return pr(l,mt,t,e)},useMemoCache:zc,useCacheRefresh:Lr};Uc.useEffectEvent=Cr;var kr={readContext:le,use:Hu,useCallback:qr,useContext:le,useEffect:Dc,useImperativeHandle:Hr,useInsertionEffect:Nr,useLayoutEffect:Ur,useMemo:Br,useReducer:xc,useRef:Or,useState:function(){return xc(fl)},useDebugValue:_c,useDeferredValue:function(t,e){var l=Rt();return mt===null?Oc(l,t,e):Yr(l,mt.memoizedState,t,e)},useTransition:function(){var t=xc(fl)[0],e=Rt().memoizedState;return[typeof t=="boolean"?t:Mn(t),e]},useSyncExternalStore:hr,useId:Zr,useHostTransitionStatus:Cc,useFormState:_r,useActionState:_r,useOptimistic:function(t,e){var l=Rt();return mt!==null?pr(l,mt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:zc,useCacheRefresh:Lr};kr.useEffectEvent=Cr;function Rc(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:B({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Hc={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=je(),n=Ol(a);n.payload=e,l!=null&&(n.callback=l),e=Ml(t,n,a),e!==null&&(ge(e,t,a),jn(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=je(),n=Ol(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=Ml(t,n,a),e!==null&&(ge(e,t,a),jn(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=je(),a=Ol(l);a.tag=2,e!=null&&(a.callback=e),e=Ml(t,a,l),e!==null&&(ge(e,t,l),jn(e,t,l))}};function $r(t,e,l,a,n,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,i):e.prototype&&e.prototype.isPureReactComponent?!gn(l,a)||!gn(n,u):!0}function Wr(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&Hc.enqueueReplaceState(e,e.state,null)}function fa(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=B({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function Fr(t){Su(t)}function Ir(t){console.error(t)}function Pr(t){Su(t)}function Gu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function to(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function qc(t,e,l){return l=Ol(l),l.tag=3,l.payload={element:null},l.callback=function(){Gu(t,e)},l}function eo(t){return t=Ol(t),t.tag=3,t}function lo(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){to(e,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){to(e,l,a),typeof n!="function"&&(ql===null?ql=new Set([this]):ql.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function Ny(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&qa(e,l,n,!0),l=ze.current,l!==null){switch(l.tag){case 31:case 13:return qe===null?Iu():l.alternate===null&&Ct===0&&(Ct=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Du?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),ff(t,a,n)),!1;case 22:return l.flags|=65536,a===Du?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),ff(t,a,n)),!1}throw Error(r(435,l.tag))}return ff(t,a,n),Iu(),!1}if(it)return e=ze.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==ec&&(t=Error(r(422),{cause:a}),En(Ne(t,l)))):(a!==ec&&(e=Error(r(423),{cause:a}),En(Ne(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=Ne(a,l),n=qc(t.stateNode,a,n),dc(t,n),Ct!==4&&(Ct=2)),!1;var u=Error(r(520),{cause:a});if(u=Ne(u,l),Gn===null?Gn=[u]:Gn.push(u),Ct!==4&&(Ct=2),e===null)return!0;a=Ne(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=qc(l.stateNode,a,t),dc(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ql===null||!ql.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=eo(n),lo(n,t,l,a),dc(l,n),!1}l=l.return}while(l!==null);return!1}var Bc=Error(r(461)),Lt=!1;function ae(t,e,l,a){e.child=t===null?ir(e,null,l,a):ia(e,t.child,l,a)}function ao(t,e,l,a,n){l=l.render;var u=e.ref;if("ref"in a){var i={};for(var f in a)f!=="ref"&&(i[f]=a[f])}else i=a;return la(e),a=gc(t,e,l,i,u,n),f=pc(),t!==null&&!Lt?(bc(t,e,n),sl(t,e,n)):(it&&f&&Pi(e),e.flags|=1,ae(t,e,a,n),e.child)}function no(t,e,l,a,n){if(t===null){var u=l.type;return typeof u=="function"&&!Wi(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,uo(t,e,u,a,n)):(t=Eu(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Kc(t,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:gn,l(i,a)&&t.ref===e.ref)return sl(t,e,n)}return e.flags|=1,t=al(u,a),t.ref=e.ref,t.return=e,e.child=t}function uo(t,e,l,a,n){if(t!==null){var u=t.memoizedProps;if(gn(u,a)&&t.ref===e.ref)if(Lt=!1,e.pendingProps=a=u,Kc(t,n))(t.flags&131072)!==0&&(Lt=!0);else return e.lanes=t.lanes,sl(t,e,n)}return Yc(t,e,l,a,n)}function io(t,e,l,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,e.child=null;return co(t,e,u,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Au(e,u!==null?u.cachePool:null),u!==null?sr(e,u):yc(),rr(e);else return a=e.lanes=536870912,co(t,e,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(Au(e,u.cachePool),sr(e,u),Nl(),e.memoizedState=null):(t!==null&&Au(e,null),yc(),Nl());return ae(t,e,n,l),e.child}function Un(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function co(t,e,l,a,n){var u=fc();return u=u===null?null:{parent:Qt._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&Au(e,null),yc(),rr(e),t!==null&&qa(t,e,a,!0),e.childLanes=n,null}function Qu(t,e){return e=Lu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function fo(t,e,l){return ia(e,t.child,null,l),t=Qu(e,e.pendingProps),t.flags|=2,Te(e),e.memoizedState=null,t}function Uy(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(it){if(a.mode==="hidden")return t=Qu(e,a),e.lanes=536870912,Un(null,t);if(mc(e),(t=zt)?(t=Ed(t,He),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:xl!==null?{id:we,overflow:Je}:null,retryLane:536870912,hydrationErrors:null},l=Ks(t),l.return=e,e.child=l,ee=e,zt=null)):t=null,t===null)throw jl(e);return e.lanes=536870912,null}return Qu(e,a)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(mc(e),n)if(e.flags&256)e.flags&=-257,e=fo(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Lt||qa(t,e,l,!1),n=(l&t.childLanes)!==0,Lt||n){if(a=pt,a!==null&&(i=If(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,Il(t,i),ge(a,t,i),Bc;Iu(),e=fo(t,e,l)}else t=u.treeContext,zt=Be(i.nextSibling),ee=e,it=!0,Al=null,He=!1,t!==null&&ks(e,t),e=Qu(e,a),e.flags|=4096;return e}return t=al(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Zu(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Yc(t,e,l,a,n){return la(e),l=gc(t,e,l,a,void 0,n),a=pc(),t!==null&&!Lt?(bc(t,e,n),sl(t,e,n)):(it&&a&&Pi(e),e.flags|=1,ae(t,e,l,n),e.child)}function so(t,e,l,a,n,u){return la(e),e.updateQueue=null,l=dr(e,a,l,n),or(t),a=pc(),t!==null&&!Lt?(bc(t,e,u),sl(t,e,u)):(it&&a&&Pi(e),e.flags|=1,ae(t,e,l,u),e.child)}function ro(t,e,l,a,n){if(la(e),e.stateNode===null){var u=Na,i=l.contextType;typeof i=="object"&&i!==null&&(u=le(i)),u=new l(a,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Hc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=a,u.state=e.memoizedState,u.refs={},rc(e),i=l.contextType,u.context=typeof i=="object"&&i!==null?le(i):Na,u.state=e.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(Rc(e,l,i,a),u.state=e.memoizedState),typeof l.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&&Hc.enqueueReplaceState(u,u.state,null),_n(e,a,u,n),Dn(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){u=e.stateNode;var f=e.memoizedProps,o=fa(l,f);u.props=o;var g=u.context,j=l.contextType;i=Na,typeof j=="object"&&j!==null&&(i=le(j));var O=l.getDerivedStateFromProps;j=typeof O=="function"||typeof u.getSnapshotBeforeUpdate=="function",f=e.pendingProps!==f,j||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f||g!==i)&&Wr(e,u,a,i),_l=!1;var p=e.memoizedState;u.state=p,_n(e,a,u,n),Dn(),g=e.memoizedState,f||p!==g||_l?(typeof O=="function"&&(Rc(e,l,O,a),g=e.memoizedState),(o=_l||$r(e,l,o,a,p,g,i))?(j||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=g),u.props=a,u.state=g,u.context=i,a=o):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{u=e.stateNode,oc(t,e),i=e.memoizedProps,j=fa(l,i),u.props=j,O=e.pendingProps,p=u.context,g=l.contextType,o=Na,typeof g=="object"&&g!==null&&(o=le(g)),f=l.getDerivedStateFromProps,(g=typeof f=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==O||p!==o)&&Wr(e,u,a,o),_l=!1,p=e.memoizedState,u.state=p,_n(e,a,u,n),Dn();var z=e.memoizedState;i!==O||p!==z||_l||t!==null&&t.dependencies!==null&&Tu(t.dependencies)?(typeof f=="function"&&(Rc(e,l,f,a),z=e.memoizedState),(j=_l||$r(e,l,j,a,p,z,o)||t!==null&&t.dependencies!==null&&Tu(t.dependencies))?(g||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,z,o),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,z,o)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=z),u.props=a,u.state=z,u.context=o,a=j):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&p===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&p===t.memoizedState||(e.flags|=1024),a=!1)}return u=a,Zu(t,e),a=(e.flags&128)!==0,u||a?(u=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&a?(e.child=ia(e,t.child,null,n),e.child=ia(e,null,l,n)):ae(t,e,l,n),e.memoizedState=u.state,t=e.child):t=sl(t,e,n),t}function oo(t,e,l,a){return ta(),e.flags|=256,ae(t,e,l,a),e.child}var Xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(t){return{baseLanes:t,cachePool:tr()}}function Qc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Ae),t}function ho(t,e,l){var a=e.pendingProps,n=!1,u=(e.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(Ut.current&2)!==0),i&&(n=!0,e.flags&=-129),i=(e.flags&32)!==0,e.flags&=-33,t===null){if(it){if(n?Cl(e):Nl(),(t=zt)?(t=Ed(t,He),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:xl!==null?{id:we,overflow:Je}:null,retryLane:536870912,hydrationErrors:null},l=Ks(t),l.return=e,e.child=l,ee=e,zt=null)):t=null,t===null)throw jl(e);return xf(t)?e.lanes=32:e.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(Nl(),n=e.mode,f=Lu({mode:"hidden",children:f},n),a=Pl(a,n,l,null),f.return=e,a.return=e,f.sibling=a,e.child=f,a=e.child,a.memoizedState=Gc(l),a.childLanes=Qc(t,i,l),e.memoizedState=Xc,Un(null,a)):(Cl(e),Zc(e,f))}var o=t.memoizedState;if(o!==null&&(f=o.dehydrated,f!==null)){if(u)e.flags&256?(Cl(e),e.flags&=-257,e=Lc(t,e,l)):e.memoizedState!==null?(Nl(),e.child=t.child,e.flags|=128,e=null):(Nl(),f=a.fallback,n=e.mode,a=Lu({mode:"visible",children:a.children},n),f=Pl(f,n,l,null),f.flags|=2,a.return=e,f.return=e,a.sibling=f,e.child=a,ia(e,t.child,null,l),a=e.child,a.memoizedState=Gc(l),a.childLanes=Qc(t,i,l),e.memoizedState=Xc,e=Un(null,a));else if(Cl(e),xf(f)){if(i=f.nextSibling&&f.nextSibling.dataset,i)var g=i.dgst;i=g,a=Error(r(419)),a.stack="",a.digest=i,En({value:a,source:null,stack:null}),e=Lc(t,e,l)}else if(Lt||qa(t,e,l,!1),i=(l&t.childLanes)!==0,Lt||i){if(i=pt,i!==null&&(a=If(i,l),a!==0&&a!==o.retryLane))throw o.retryLane=a,Il(t,a),ge(i,t,a),Bc;Tf(f)||Iu(),e=Lc(t,e,l)}else Tf(f)?(e.flags|=192,e.child=t.child,e=null):(t=o.treeContext,zt=Be(f.nextSibling),ee=e,it=!0,Al=null,He=!1,t!==null&&ks(e,t),e=Zc(e,a.children),e.flags|=4096);return e}return n?(Nl(),f=a.fallback,n=e.mode,o=t.child,g=o.sibling,a=al(o,{mode:"hidden",children:a.children}),a.subtreeFlags=o.subtreeFlags&65011712,g!==null?f=al(g,f):(f=Pl(f,n,l,null),f.flags|=2),f.return=e,a.return=e,a.sibling=f,e.child=a,Un(null,a),a=e.child,f=t.child.memoizedState,f===null?f=Gc(l):(n=f.cachePool,n!==null?(o=Qt._currentValue,n=n.parent!==o?{parent:o,pool:o}:n):n=tr(),f={baseLanes:f.baseLanes|l,cachePool:n}),a.memoizedState=f,a.childLanes=Qc(t,i,l),e.memoizedState=Xc,Un(t.child,a)):(Cl(e),l=t.child,t=l.sibling,l=al(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(i=e.deletions,i===null?(e.deletions=[t],e.flags|=16):i.push(t)),e.child=l,e.memoizedState=null,l)}function Zc(t,e){return e=Lu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Lu(t,e){return t=Ee(22,t,null,e),t.lanes=0,t}function Lc(t,e,l){return ia(e,t.child,null,l),t=Zc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function yo(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),nc(t.return,e,l)}function Vc(t,e,l,a,n,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function vo(t,e,l){var a=e.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=Ut.current,f=(i&2)!==0;if(f?(i=i&1|2,e.flags|=128):i&=1,H(Ut,i),ae(t,e,a,l),a=it?bn:0,!f&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&yo(t,l,e);else if(t.tag===19)yo(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&Cu(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Vc(e,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&Cu(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Vc(e,!0,l,null,u,a);break;case"together":Vc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function sl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Hl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(qa(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,l=al(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=al(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Kc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Tu(t)))}function Ry(t,e,l){switch(e.tag){case 3:kt(e,e.stateNode.containerInfo),Dl(e,Qt,t.memoizedState.cache),ta();break;case 27:case 5:wl(e);break;case 4:kt(e,e.stateNode.containerInfo);break;case 10:Dl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,mc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Cl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?ho(t,e,l):(Cl(e),t=sl(t,e,l),t!==null?t.sibling:null);Cl(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(qa(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return vo(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),H(Ut,Ut.current),a)break;return null;case 22:return e.lanes=0,io(t,e,l,e.pendingProps);case 24:Dl(e,Qt,t.memoizedState.cache)}return sl(t,e,l)}function mo(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Lt=!0;else{if(!Kc(t,l)&&(e.flags&128)===0)return Lt=!1,Ry(t,e,l);Lt=(t.flags&131072)!==0}else Lt=!1,it&&(e.flags&1048576)!==0&&Js(e,bn,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=na(e.elementType),e.type=t,typeof t=="function")Wi(t)?(a=fa(t,a),e.tag=1,e=ro(null,e,t,a,l)):(e.tag=0,e=Yc(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===Pt){e.tag=11,e=ao(null,e,t,a,l);break t}else if(n===tt){e.tag=14,e=no(null,e,t,a,l);break t}}throw e=oe(t)||t,Error(r(306,e,""))}}return e;case 0:return Yc(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=fa(a,e.pendingProps),ro(t,e,a,n,l);case 3:t:{if(kt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));a=e.pendingProps;var u=e.memoizedState;n=u.element,oc(t,e),_n(e,a,null,l);var i=e.memoizedState;if(a=i.cache,Dl(e,Qt,a),a!==u.cache&&uc(e,[Qt],l,!0),Dn(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=oo(t,e,a,l);break t}else if(a!==n){n=Ne(Error(r(424)),e),En(n),e=oo(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(zt=Be(t.firstChild),ee=e,it=!0,Al=null,He=!0,l=ir(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ta(),a===n){e=sl(t,e,l);break t}ae(t,e,a,l)}e=e.child}return e;case 26:return Zu(t,e),t===null?(l=Dd(e.type,null,e.pendingProps,null))?e.memoizedState=l:it||(l=e.type,t=e.pendingProps,a=ui(P.current).createElement(l),a[te]=e,a[de]=t,ne(a,l,t),Wt(a),e.stateNode=a):e.memoizedState=Dd(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return wl(e),t===null&&it&&(a=e.stateNode=xd(e.type,e.pendingProps,P.current),ee=e,He=!0,n=zt,Gl(e.type)?(Af=n,zt=Be(a.firstChild)):zt=n),ae(t,e,e.pendingProps.children,l),Zu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&it&&((n=a=zt)&&(a=rv(a,e.type,e.pendingProps,He),a!==null?(e.stateNode=a,ee=e,zt=Be(a.firstChild),He=!1,n=!0):n=!1),n||jl(e)),wl(e),n=e.type,u=e.pendingProps,i=t!==null?t.memoizedProps:null,a=u.children,bf(n,u)?a=null:i!==null&&bf(n,i)&&(e.flags|=32),e.memoizedState!==null&&(n=gc(t,e,Ay,null,null,l),kn._currentValue=n),Zu(t,e),ae(t,e,a,l),e.child;case 6:return t===null&&it&&((t=l=zt)&&(l=ov(l,e.pendingProps,He),l!==null?(e.stateNode=l,ee=e,zt=null,t=!0):t=!1),t||jl(e)),null;case 13:return ho(t,e,l);case 4:return kt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ia(e,null,a,l):ae(t,e,a,l),e.child;case 11:return ao(t,e,e.type,e.pendingProps,l);case 7:return ae(t,e,e.pendingProps,l),e.child;case 8:return ae(t,e,e.pendingProps.children,l),e.child;case 12:return ae(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,Dl(e,e.type,a.value),ae(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,la(e),n=le(n),a=a(n),e.flags|=1,ae(t,e,a,l),e.child;case 14:return no(t,e,e.type,e.pendingProps,l);case 15:return uo(t,e,e.type,e.pendingProps,l);case 19:return vo(t,e,l);case 31:return Uy(t,e,l);case 22:return io(t,e,l,e.pendingProps);case 24:return la(e),a=le(Qt),t===null?(n=fc(),n===null&&(n=pt,u=ic(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),e.memoizedState={parent:a,cache:n},rc(e),Dl(e,Qt,n)):((t.lanes&l)!==0&&(oc(t,e),_n(e,null,null,l),Dn()),n=t.memoizedState,u=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),Dl(e,Qt,a)):(a=u.cache,Dl(e,Qt,a),a!==n.cache&&uc(e,[Qt],l,!0))),ae(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function rl(t){t.flags|=4}function wc(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(Lo())t.flags|=8192;else throw ua=Du,sc}else t.flags&=-16777217}function So(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Nd(e))if(Lo())t.flags|=8192;else throw ua=Du,sc}function Vu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?$f():536870912,t.lanes|=e,ka|=e)}function Rn(t,e){if(!it)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Tt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function Hy(t,e,l){var a=e.pendingProps;switch(tc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Tt(e),null;case 1:return Tt(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),il(Qt),_t(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Ha(e)?rl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,lc())),Tt(e),null;case 26:var n=e.type,u=e.memoizedState;return t===null?(rl(e),u!==null?(Tt(e),So(e,u)):(Tt(e),wc(e,n,null,a,l))):u?u!==t.memoizedState?(rl(e),Tt(e),So(e,u)):(Tt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&rl(e),Tt(e),wc(e,n,t,a,l)),null;case 27:if(ya(e),l=P.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&rl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Tt(e),null}t=R.current,Ha(e)?$s(e):(t=xd(n,a,l),e.stateNode=t,rl(e))}return Tt(e),null;case 5:if(ya(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&rl(e);else{if(!a){if(e.stateNode===null)throw Error(r(166));return Tt(e),null}if(u=R.current,Ha(e))$s(e);else{var i=ui(P.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[te]=e,u[de]=a;t:for(i=e.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===e)break t;for(;i.sibling===null;){if(i.return===null||i.return===e)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}e.stateNode=u;t:switch(ne(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&&rl(e)}}return Tt(e),wc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&rl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(r(166));if(t=P.current,Ha(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=ee,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[te]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||hd(t.nodeValue,l)),t||jl(e,!0)}else t=ui(t).createTextNode(a),t[te]=e,e.stateNode=t}return Tt(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=Ha(e),l!==null){if(t===null){if(!a)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[te]=e}else ta(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Tt(e),t=!1}else l=lc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Te(e),e):(Te(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Tt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=Ha(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(r(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[te]=e}else ta(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Tt(e),n=!1}else n=lc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(Te(e),e):(Te(e),null)}return Te(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Vu(e,e.updateQueue),Tt(e),null);case 4:return _t(),t===null&&vf(e.stateNode.containerInfo),Tt(e),null;case 10:return il(e.type),Tt(e),null;case 19:if(M(Ut),a=e.memoizedState,a===null)return Tt(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)Rn(a,!1);else{if(Ct!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Cu(t),u!==null){for(e.flags|=128,Rn(a,!1),t=u.updateQueue,e.updateQueue=t,Vu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Vs(l,t),l=l.sibling;return H(Ut,Ut.current&1|2),it&&nl(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&Xt()>$u&&(e.flags|=128,n=!0,Rn(a,!1),e.lanes=4194304)}else{if(!n)if(t=Cu(u),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Vu(e,t),Rn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!it)return Tt(e),null}else 2*Xt()-a.renderingStartTime>$u&&l!==536870912&&(e.flags|=128,n=!0,Rn(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xt(),t.sibling=null,l=Ut.current,H(Ut,n?l&1|2:l&1),it&&nl(e,a.treeForkCount),t):(Tt(e),null);case 22:case 23:return Te(e),vc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Tt(e),e.subtreeFlags&6&&(e.flags|=8192)):Tt(e),l=e.updateQueue,l!==null&&Vu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&M(aa),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),il(Qt),Tt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function qy(t,e){switch(tc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return il(Qt),_t(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ya(e),null;case 31:if(e.memoizedState!==null){if(Te(e),e.alternate===null)throw Error(r(340));ta()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Te(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));ta()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return M(Ut),null;case 4:return _t(),null;case 10:return il(e.type),null;case 22:case 23:return Te(e),vc(),t!==null&&M(aa),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return il(Qt),null;case 25:return null;default:return null}}function go(t,e){switch(tc(e),e.tag){case 3:il(Qt),_t();break;case 26:case 27:case 5:ya(e);break;case 4:_t();break;case 31:e.memoizedState!==null&&Te(e);break;case 13:Te(e);break;case 19:M(Ut);break;case 10:il(e.type);break;case 22:case 23:Te(e),vc(),t!==null&&M(aa);break;case 24:il(Qt)}}function Hn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var u=l.create,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(f){yt(e,e.return,f)}}function Ul(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var i=a.inst,f=i.destroy;if(f!==void 0){i.destroy=void 0,n=e;var o=l,g=f;try{g()}catch(j){yt(n,o,j)}}}a=a.next}while(a!==u)}}catch(j){yt(e,e.return,j)}}function po(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{fr(e,l)}catch(a){yt(t,t.return,a)}}}function bo(t,e,l){l.props=fa(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){yt(t,e,a)}}function qn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){yt(t,e,n)}}function ke(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){yt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){yt(t,e,n)}else l.current=null}function Eo(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){yt(t,t.return,n)}}function Jc(t,e,l){try{var a=t.stateNode;nv(a,t.type,l,e),a[de]=e}catch(n){yt(t,t.return,n)}}function zo(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Gl(t.type)||t.tag===4}function kc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||zo(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&&Gl(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 $c(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=el));else if(a!==4&&(a===27&&Gl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for($c(t,e,l),t=t.sibling;t!==null;)$c(t,e,l),t=t.sibling}function Ku(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Gl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Ku(t,e,l),t=t.sibling;t!==null;)Ku(t,e,l),t=t.sibling}function To(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ne(e,a,l),e[te]=t,e[de]=l}catch(u){yt(t,t.return,u)}}var ol=!1,Vt=!1,Wc=!1,xo=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function By(t,e){if(t=t.containerInfo,gf=di,t=Hs(t),Li(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var i=0,f=-1,o=-1,g=0,j=0,O=t,p=null;e:for(;;){for(var z;O!==l||n!==0&&O.nodeType!==3||(f=i+n),O!==u||a!==0&&O.nodeType!==3||(o=i+a),O.nodeType===3&&(i+=O.nodeValue.length),(z=O.firstChild)!==null;)p=O,O=z;for(;;){if(O===t)break e;if(p===l&&++g===n&&(f=i),p===u&&++j===a&&(o=i),(z=O.nextSibling)!==null)break;O=p,p=O.parentNode}O=z}l=f===-1||o===-1?null:{start:f,end:o}}else l=null}l=l||{start:0,end:0}}else l=null;for(pf={focusedElem:t,selectionRange:l},di=!1,Ft=e;Ft!==null;)if(e=Ft,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ft=t;else for(;Ft!==null;){switch(e=Ft,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var Y=fa(l.type,n);t=a.getSnapshotBeforeUpdate(Y,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(K){yt(l,l.return,K)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)zf(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":zf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,Ft=t;break}Ft=e.return}}function Ao(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:hl(t,l),a&4&&Hn(5,l);break;case 1:if(hl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(i){yt(l,l.return,i)}else{var n=fa(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(i){yt(l,l.return,i)}}a&64&&po(l),a&512&&qn(l,l.return);break;case 3:if(hl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{fr(t,e)}catch(i){yt(l,l.return,i)}}break;case 27:e===null&&a&4&&To(l);case 26:case 5:hl(t,l),e===null&&a&4&&Eo(l),a&512&&qn(l,l.return);break;case 12:hl(t,l);break;case 31:hl(t,l),a&4&&_o(t,l);break;case 13:hl(t,l),a&4&&Oo(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=wy.bind(null,l),dv(t,l))));break;case 22:if(a=l.memoizedState!==null||ol,!a){e=e!==null&&e.memoizedState!==null||Vt,n=ol;var u=Vt;ol=a,(Vt=e)&&!u?yl(t,l,(l.subtreeFlags&8772)!==0):hl(t,l),ol=n,Vt=u}break;case 30:break;default:hl(t,l)}}function jo(t){var e=t.alternate;e!==null&&(t.alternate=null,jo(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ji(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var At=null,ye=!1;function dl(t,e,l){for(l=l.child;l!==null;)Do(t,e,l),l=l.sibling}function Do(t,e,l){if(ie&&typeof ie.onCommitFiberUnmount=="function")try{ie.onCommitFiberUnmount(Ot,l)}catch{}switch(l.tag){case 26:Vt||ke(l,e),dl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Vt||ke(l,e);var a=At,n=ye;Gl(l.type)&&(At=l.stateNode,ye=!1),dl(t,e,l),Kn(l.stateNode),At=a,ye=n;break;case 5:Vt||ke(l,e);case 6:if(a=At,n=ye,At=null,dl(t,e,l),At=a,ye=n,At!==null)if(ye)try{(At.nodeType===9?At.body:At.nodeName==="HTML"?At.ownerDocument.body:At).removeChild(l.stateNode)}catch(u){yt(l,e,u)}else try{At.removeChild(l.stateNode)}catch(u){yt(l,e,u)}break;case 18:At!==null&&(ye?(t=At,pd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),ln(t)):pd(At,l.stateNode));break;case 4:a=At,n=ye,At=l.stateNode.containerInfo,ye=!0,dl(t,e,l),At=a,ye=n;break;case 0:case 11:case 14:case 15:Ul(2,l,e),Vt||Ul(4,l,e),dl(t,e,l);break;case 1:Vt||(ke(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&bo(l,e,a)),dl(t,e,l);break;case 21:dl(t,e,l);break;case 22:Vt=(a=Vt)||l.memoizedState!==null,dl(t,e,l),Vt=a;break;default:dl(t,e,l)}}function _o(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ln(t)}catch(l){yt(e,e.return,l)}}}function Oo(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ln(t)}catch(l){yt(e,e.return,l)}}function Yy(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new xo),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new xo),e;default:throw Error(r(435,t.tag))}}function wu(t,e){var l=Yy(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=Jy.bind(null,t,a);a.then(n,n)}})}function ve(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=t,i=e,f=i;t:for(;f!==null;){switch(f.tag){case 27:if(Gl(f.type)){At=f.stateNode,ye=!1;break t}break;case 5:At=f.stateNode,ye=!1;break t;case 3:case 4:At=f.stateNode.containerInfo,ye=!0;break t}f=f.return}if(At===null)throw Error(r(160));Do(u,i,n),At=null,ye=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Mo(e,t),e=e.sibling}var Ze=null;function Mo(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ve(e,t),me(t),a&4&&(Ul(3,t,t.return),Hn(3,t),Ul(5,t,t.return));break;case 1:ve(e,t),me(t),a&512&&(Vt||l===null||ke(l,l.return)),a&64&&ol&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ze;if(ve(e,t),me(t),a&512&&(Vt||l===null||ke(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[sn]||u[te]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),ne(u,a,l),u[te]=t,Wt(u),a=u;break t;case"link":var i=Md("link","href",n).get(a+(l.href||""));if(i){for(var f=0;f<i.length;f++)if(u=i[f],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(f,1);break e}}u=n.createElement(a),ne(u,a,l),n.head.appendChild(u);break;case"meta":if(i=Md("meta","content",n).get(a+(l.content||""))){for(f=0;f<i.length;f++)if(u=i[f],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(f,1);break e}}u=n.createElement(a),ne(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[te]=t,Wt(u),a=u}t.stateNode=a}else Cd(n,t.type,t.stateNode);else t.stateNode=Od(n,a,t.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Cd(n,t.type,t.stateNode):Od(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Jc(t,t.memoizedProps,l.memoizedProps)}break;case 27:ve(e,t),me(t),a&512&&(Vt||l===null||ke(l,l.return)),l!==null&&a&4&&Jc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ve(e,t),me(t),a&512&&(Vt||l===null||ke(l,l.return)),t.flags&32){n=t.stateNode;try{Aa(n,"")}catch(Y){yt(t,t.return,Y)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Jc(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Wc=!0);break;case 6:if(ve(e,t),me(t),a&4){if(t.stateNode===null)throw Error(r(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(Y){yt(t,t.return,Y)}}break;case 3:if(fi=null,n=Ze,Ze=ii(e.containerInfo),ve(e,t),Ze=n,me(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{ln(e.containerInfo)}catch(Y){yt(t,t.return,Y)}Wc&&(Wc=!1,Co(t));break;case 4:a=Ze,Ze=ii(t.stateNode.containerInfo),ve(e,t),me(t),Ze=a;break;case 12:ve(e,t),me(t);break;case 31:ve(e,t),me(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,wu(t,a)));break;case 13:ve(e,t),me(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ku=Xt()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,wu(t,a)));break;case 22:n=t.memoizedState!==null;var o=l!==null&&l.memoizedState!==null,g=ol,j=Vt;if(ol=g||n,Vt=j||o,ve(e,t),Vt=j,ol=g,me(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||o||ol||Vt||sa(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){o=l=e;try{if(u=o.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{f=o.stateNode;var O=o.memoizedProps.style,p=O!=null&&O.hasOwnProperty("display")?O.display:null;f.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(Y){yt(o,o.return,Y)}}}else if(e.tag===6){if(l===null){o=e;try{o.stateNode.nodeValue=n?"":o.memoizedProps}catch(Y){yt(o,o.return,Y)}}}else if(e.tag===18){if(l===null){o=e;try{var z=o.stateNode;n?bd(z,!0):bd(o.stateNode,!1)}catch(Y){yt(o,o.return,Y)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,wu(t,l))));break;case 19:ve(e,t),me(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,wu(t,a)));break;case 30:break;case 21:break;default:ve(e,t),me(t)}}function me(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(zo(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=kc(t);Ku(t,u,n);break;case 5:var i=l.stateNode;l.flags&32&&(Aa(i,""),l.flags&=-33);var f=kc(t);Ku(t,f,i);break;case 3:case 4:var o=l.stateNode.containerInfo,g=kc(t);$c(t,g,o);break;default:throw Error(r(161))}}catch(j){yt(t,t.return,j)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Co(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Co(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function hl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Ao(t,e.alternate,e),e=e.sibling}function sa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ul(4,e,e.return),sa(e);break;case 1:ke(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&bo(e,e.return,l),sa(e);break;case 27:Kn(e.stateNode);case 26:case 5:ke(e,e.return),sa(e);break;case 22:e.memoizedState===null&&sa(e);break;case 30:sa(e);break;default:sa(e)}t=t.sibling}}function yl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,u=e,i=u.flags;switch(u.tag){case 0:case 11:case 15:yl(n,u,l),Hn(4,u);break;case 1:if(yl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(g){yt(a,a.return,g)}if(a=u,n=a.updateQueue,n!==null){var f=a.stateNode;try{var o=n.shared.hiddenCallbacks;if(o!==null)for(n.shared.hiddenCallbacks=null,n=0;n<o.length;n++)cr(o[n],f)}catch(g){yt(a,a.return,g)}}l&&i&64&&po(u),qn(u,u.return);break;case 27:To(u);case 26:case 5:yl(n,u,l),l&&a===null&&i&4&&Eo(u),qn(u,u.return);break;case 12:yl(n,u,l);break;case 31:yl(n,u,l),l&&i&4&&_o(n,u);break;case 13:yl(n,u,l),l&&i&4&&Oo(n,u);break;case 22:u.memoizedState===null&&yl(n,u,l),qn(u,u.return);break;case 30:break;default:yl(n,u,l)}e=e.sibling}}function Fc(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&zn(l))}function Ic(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&zn(t))}function Le(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)No(t,e,l,a),e=e.sibling}function No(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Le(t,e,l,a),n&2048&&Hn(9,e);break;case 1:Le(t,e,l,a);break;case 3:Le(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&zn(t)));break;case 12:if(n&2048){Le(t,e,l,a),t=e.stateNode;try{var u=e.memoizedProps,i=u.id,f=u.onPostCommit;typeof f=="function"&&f(i,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(o){yt(e,e.return,o)}}else Le(t,e,l,a);break;case 31:Le(t,e,l,a);break;case 13:Le(t,e,l,a);break;case 23:break;case 22:u=e.stateNode,i=e.alternate,e.memoizedState!==null?u._visibility&2?Le(t,e,l,a):Bn(t,e):u._visibility&2?Le(t,e,l,a):(u._visibility|=2,Ka(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&Fc(i,e);break;case 24:Le(t,e,l,a),n&2048&&Ic(e.alternate,e);break;default:Le(t,e,l,a)}}function Ka(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,i=e,f=l,o=a,g=i.flags;switch(i.tag){case 0:case 11:case 15:Ka(u,i,f,o,n),Hn(8,i);break;case 23:break;case 22:var j=i.stateNode;i.memoizedState!==null?j._visibility&2?Ka(u,i,f,o,n):Bn(u,i):(j._visibility|=2,Ka(u,i,f,o,n)),n&&g&2048&&Fc(i.alternate,i);break;case 24:Ka(u,i,f,o,n),n&&g&2048&&Ic(i.alternate,i);break;default:Ka(u,i,f,o,n)}e=e.sibling}}function Bn(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:Bn(l,a),n&2048&&Fc(a.alternate,a);break;case 24:Bn(l,a),n&2048&&Ic(a.alternate,a);break;default:Bn(l,a)}e=e.sibling}}var Yn=8192;function wa(t,e,l){if(t.subtreeFlags&Yn)for(t=t.child;t!==null;)Uo(t,e,l),t=t.sibling}function Uo(t,e,l){switch(t.tag){case 26:wa(t,e,l),t.flags&Yn&&t.memoizedState!==null&&xv(l,Ze,t.memoizedState,t.memoizedProps);break;case 5:wa(t,e,l);break;case 3:case 4:var a=Ze;Ze=ii(t.stateNode.containerInfo),wa(t,e,l),Ze=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Yn,Yn=16777216,wa(t,e,l),Yn=a):wa(t,e,l));break;default:wa(t,e,l)}}function Ro(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Xn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Ft=a,qo(a,t)}Ro(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ho(t),t=t.sibling}function Ho(t){switch(t.tag){case 0:case 11:case 15:Xn(t),t.flags&2048&&Ul(9,t,t.return);break;case 3:Xn(t);break;case 12:Xn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ju(t)):Xn(t);break;default:Xn(t)}}function Ju(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Ft=a,qo(a,t)}Ro(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ul(8,e,e.return),Ju(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Ju(e));break;default:Ju(e)}t=t.sibling}}function qo(t,e){for(;Ft!==null;){var l=Ft;switch(l.tag){case 0:case 11:case 15:Ul(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:zn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ft=a;else t:for(l=t;Ft!==null;){a=Ft;var n=a.sibling,u=a.return;if(jo(a),a===l){Ft=null;break t}if(n!==null){n.return=u,Ft=n;break t}Ft=u}}}var Xy={getCacheForType:function(t){var e=le(Qt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return le(Qt).controller.signal}},Gy=typeof WeakMap=="function"?WeakMap:Map,rt=0,pt=null,lt=null,nt=0,ht=0,xe=null,Rl=!1,Ja=!1,Pc=!1,vl=0,Ct=0,Hl=0,ra=0,tf=0,Ae=0,ka=0,Gn=null,Se=null,ef=!1,ku=0,Bo=0,$u=1/0,Wu=null,ql=null,Jt=0,Bl=null,$a=null,ml=0,lf=0,af=null,Yo=null,Qn=0,nf=null;function je(){return(rt&2)!==0&&nt!==0?nt&-nt:A.T!==null?of():Pf()}function Xo(){if(Ae===0)if((nt&536870912)===0||it){var t=nu;nu<<=1,(nu&3932160)===0&&(nu=262144),Ae=t}else Ae=536870912;return t=ze.current,t!==null&&(t.flags|=32),Ae}function ge(t,e,l){(t===pt&&(ht===2||ht===9)||t.cancelPendingCommit!==null)&&(Wa(t,0),Yl(t,nt,Ae,!1)),fn(t,l),((rt&2)===0||t!==pt)&&(t===pt&&((rt&2)===0&&(ra|=l),Ct===4&&Yl(t,nt,Ae,!1)),$e(t))}function Go(t,e,l){if((rt&6)!==0)throw Error(r(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||cn(t,e),n=a?Ly(t,e):cf(t,e,!0),u=a;do{if(n===0){Ja&&!a&&Yl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!Qy(l)){n=cf(t,e,!1),u=!1;continue}if(n===2){if(u=e,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){e=i;t:{var f=t;n=Gn;var o=f.current.memoizedState.isDehydrated;if(o&&(Wa(f,i).flags|=256),i=cf(f,i,!1),i!==2){if(Pc&&!o){f.errorRecoveryDisabledLanes|=u,ra|=u,n=4;break t}u=Se,Se=n,u!==null&&(Se===null?Se=u:Se.push.apply(Se,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){Wa(t,0),Yl(t,e,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Yl(a,e,Ae,!Rl);break t;case 2:Se=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(n=ku+300-Xt(),10<n)){if(Yl(a,e,Ae,!Rl),iu(a,0,!0)!==0)break t;ml=e,a.timeoutHandle=Sd(Qo.bind(null,a,l,Se,Wu,ef,e,Ae,ra,ka,Rl,u,"Throttled",-0,0),n);break t}Qo(a,l,Se,Wu,ef,e,Ae,ra,ka,Rl,u,null,-0,0)}}break}while(!0);$e(t)}function Qo(t,e,l,a,n,u,i,f,o,g,j,O,p,z){if(t.timeoutHandle=-1,O=e.subtreeFlags,O&8192||(O&16785408)===16785408){O={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:el},Uo(e,u,O);var Y=(u&62914560)===u?ku-Xt():(u&4194048)===u?Bo-Xt():0;if(Y=Av(O,Y),Y!==null){ml=u,t.cancelPendingCommit=Y($o.bind(null,t,e,u,l,a,n,i,f,o,j,O,null,p,z)),Yl(t,u,i,!g);return}}$o(t,e,u,l,a,n,i,f,o)}function Qy(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!be(u(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Yl(t,e,l,a){e&=~tf,e&=~ra,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var u=31-T(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&Wf(t,l,e)}function Fu(){return(rt&6)===0?(Zn(0),!1):!0}function uf(){if(lt!==null){if(ht===0)var t=lt.return;else t=lt,ul=ea=null,Ec(t),Ga=null,xn=0,t=lt;for(;t!==null;)go(t.alternate,t),t=t.return;lt=null}}function Wa(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,cv(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),ml=0,uf(),pt=t,lt=l=al(t.current,null),nt=e,ht=0,xe=null,Rl=!1,Ja=cn(t,e),Pc=!1,ka=Ae=tf=ra=Hl=Ct=0,Se=Gn=null,ef=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-T(a),u=1<<n;e|=t[n],a&=~u}return vl=e,gu(),l}function Zo(t,e){F=null,A.H=Nn,e===Xa||e===ju?(e=ar(),ht=3):e===sc?(e=ar(),ht=4):ht=e===Bc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,xe=e,lt===null&&(Ct=1,Gu(t,Ne(e,t.current)))}function Lo(){var t=ze.current;return t===null?!0:(nt&4194048)===nt?qe===null:(nt&62914560)===nt||(nt&536870912)!==0?t===qe:!1}function Vo(){var t=A.H;return A.H=Nn,t===null?Nn:t}function Ko(){var t=A.A;return A.A=Xy,t}function Iu(){Ct=4,Rl||(nt&4194048)!==nt&&ze.current!==null||(Ja=!0),(Hl&134217727)===0&&(ra&134217727)===0||pt===null||Yl(pt,nt,Ae,!1)}function cf(t,e,l){var a=rt;rt|=2;var n=Vo(),u=Ko();(pt!==t||nt!==e)&&(Wu=null,Wa(t,e)),e=!1;var i=Ct;t:do try{if(ht!==0&&lt!==null){var f=lt,o=xe;switch(ht){case 8:uf(),i=6;break t;case 3:case 2:case 9:case 6:ze.current===null&&(e=!0);var g=ht;if(ht=0,xe=null,Fa(t,f,o,g),l&&Ja){i=0;break t}break;default:g=ht,ht=0,xe=null,Fa(t,f,o,g)}}Zy(),i=Ct;break}catch(j){Zo(t,j)}while(!0);return e&&t.shellSuspendCounter++,ul=ea=null,rt=a,A.H=n,A.A=u,lt===null&&(pt=null,nt=0,gu()),i}function Zy(){for(;lt!==null;)wo(lt)}function Ly(t,e){var l=rt;rt|=2;var a=Vo(),n=Ko();pt!==t||nt!==e?(Wu=null,$u=Xt()+500,Wa(t,e)):Ja=cn(t,e);t:do try{if(ht!==0&&lt!==null){e=lt;var u=xe;e:switch(ht){case 1:ht=0,xe=null,Fa(t,e,u,1);break;case 2:case 9:if(er(u)){ht=0,xe=null,Jo(e);break}e=function(){ht!==2&&ht!==9||pt!==t||(ht=7),$e(t)},u.then(e,e);break t;case 3:ht=7;break t;case 4:ht=5;break t;case 7:er(u)?(ht=0,xe=null,Jo(e)):(ht=0,xe=null,Fa(t,e,u,7));break;case 5:var i=null;switch(lt.tag){case 26:i=lt.memoizedState;case 5:case 27:var f=lt;if(i?Nd(i):f.stateNode.complete){ht=0,xe=null;var o=f.sibling;if(o!==null)lt=o;else{var g=f.return;g!==null?(lt=g,Pu(g)):lt=null}break e}}ht=0,xe=null,Fa(t,e,u,5);break;case 6:ht=0,xe=null,Fa(t,e,u,6);break;case 8:uf(),Ct=6;break t;default:throw Error(r(462))}}Vy();break}catch(j){Zo(t,j)}while(!0);return ul=ea=null,A.H=a,A.A=n,rt=l,lt!==null?0:(pt=null,nt=0,gu(),Ct)}function Vy(){for(;lt!==null&&!El();)wo(lt)}function wo(t){var e=mo(t.alternate,t,vl);t.memoizedProps=t.pendingProps,e===null?Pu(t):lt=e}function Jo(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=so(l,e,e.pendingProps,e.type,void 0,nt);break;case 11:e=so(l,e,e.pendingProps,e.type.render,e.ref,nt);break;case 5:Ec(e);default:go(l,e),e=lt=Vs(e,vl),e=mo(l,e,vl)}t.memoizedProps=t.pendingProps,e===null?Pu(t):lt=e}function Fa(t,e,l,a){ul=ea=null,Ec(e),Ga=null,xn=0;var n=e.return;try{if(Ny(t,n,e,l,nt)){Ct=1,Gu(t,Ne(l,t.current)),lt=null;return}}catch(u){if(n!==null)throw lt=n,u;Ct=1,Gu(t,Ne(l,t.current)),lt=null;return}e.flags&32768?(it||a===1?t=!0:Ja||(nt&536870912)!==0?t=!1:(Rl=t=!0,(a===2||a===9||a===3||a===6)&&(a=ze.current,a!==null&&a.tag===13&&(a.flags|=16384))),ko(e,t)):Pu(e)}function Pu(t){var e=t;do{if((e.flags&32768)!==0){ko(e,Rl);return}t=e.return;var l=Hy(e.alternate,e,vl);if(l!==null){lt=l;return}if(e=e.sibling,e!==null){lt=e;return}lt=e=t}while(e!==null);Ct===0&&(Ct=5)}function ko(t,e){do{var l=qy(t.alternate,t);if(l!==null){l.flags&=32767,lt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){lt=t;return}lt=t=l}while(t!==null);Ct=6,lt=null}function $o(t,e,l,a,n,u,i,f,o){t.cancelPendingCommit=null;do ti();while(Jt!==0);if((rt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=ki,Th(t,l,u,i,f,o),t===pt&&(lt=pt=null,nt=0),$a=e,Bl=t,ml=l,lf=u,af=n,Yo=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,ky(Ge,function(){return td(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=A.T,A.T=null,n=b.p,b.p=2,i=rt,rt|=4;try{By(t,e,l)}finally{rt=i,b.p=n,A.T=a}}Jt=1,Wo(),Fo(),Io()}}function Wo(){if(Jt===1){Jt=0;var t=Bl,e=$a,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var a=b.p;b.p=2;var n=rt;rt|=4;try{Mo(e,t);var u=pf,i=Hs(t.containerInfo),f=u.focusedElem,o=u.selectionRange;if(i!==f&&f&&f.ownerDocument&&Rs(f.ownerDocument.documentElement,f)){if(o!==null&&Li(f)){var g=o.start,j=o.end;if(j===void 0&&(j=g),"selectionStart"in f)f.selectionStart=g,f.selectionEnd=Math.min(j,f.value.length);else{var O=f.ownerDocument||document,p=O&&O.defaultView||window;if(p.getSelection){var z=p.getSelection(),Y=f.textContent.length,K=Math.min(o.start,Y),gt=o.end===void 0?K:Math.min(o.end,Y);!z.extend&&K>gt&&(i=gt,gt=K,K=i);var m=Us(f,K),y=Us(f,gt);if(m&&y&&(z.rangeCount!==1||z.anchorNode!==m.node||z.anchorOffset!==m.offset||z.focusNode!==y.node||z.focusOffset!==y.offset)){var S=O.createRange();S.setStart(m.node,m.offset),z.removeAllRanges(),K>gt?(z.addRange(S),z.extend(y.node,y.offset)):(S.setEnd(y.node,y.offset),z.addRange(S))}}}}for(O=[],z=f;z=z.parentNode;)z.nodeType===1&&O.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<O.length;f++){var _=O[f];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}di=!!gf,pf=gf=null}finally{rt=n,b.p=a,A.T=l}}t.current=e,Jt=2}}function Fo(){if(Jt===2){Jt=0;var t=Bl,e=$a,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var a=b.p;b.p=2;var n=rt;rt|=4;try{Ao(t,e.alternate,e)}finally{rt=n,b.p=a,A.T=l}}Jt=3}}function Io(){if(Jt===4||Jt===3){Jt=0,Ve();var t=Bl,e=$a,l=ml,a=Yo;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,$a=Bl=null,Po(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(ql=null),xi(l),e=e.stateNode,ie&&typeof ie.onCommitFiberRoot=="function")try{ie.onCommitFiberRoot(Ot,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=A.T,n=b.p,b.p=2,A.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{A.T=e,b.p=n}}(ml&3)!==0&&ti(),$e(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===nf?Qn++:(Qn=0,nf=t):Qn=0,Zn(0)}}function Po(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,zn(e)))}function ti(){return Wo(),Fo(),Io(),td()}function td(){if(Jt!==5)return!1;var t=Bl,e=lf;lf=0;var l=xi(ml),a=A.T,n=b.p;try{b.p=32>l?32:l,A.T=null,l=af,af=null;var u=Bl,i=ml;if(Jt=0,$a=Bl=null,ml=0,(rt&6)!==0)throw Error(r(331));var f=rt;if(rt|=4,Ho(u.current),No(u,u.current,i,l),rt=f,Zn(0,!1),ie&&typeof ie.onPostCommitFiberRoot=="function")try{ie.onPostCommitFiberRoot(Ot,u)}catch{}return!0}finally{b.p=n,A.T=a,Po(t,e)}}function ed(t,e,l){e=Ne(l,e),e=qc(t.stateNode,e,2),t=Ml(t,e,2),t!==null&&(fn(t,2),$e(t))}function yt(t,e,l){if(t.tag===3)ed(t,t,l);else for(;e!==null;){if(e.tag===3){ed(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ql===null||!ql.has(a))){t=Ne(l,t),l=eo(2),a=Ml(e,l,2),a!==null&&(lo(l,a,e,t),fn(a,2),$e(a));break}}e=e.return}}function ff(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new Gy;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(Pc=!0,n.add(l),t=Ky.bind(null,t,e,l),e.then(t,t))}function Ky(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,pt===t&&(nt&l)===l&&(Ct===4||Ct===3&&(nt&62914560)===nt&&300>Xt()-ku?(rt&2)===0&&Wa(t,0):tf|=l,ka===nt&&(ka=0)),$e(t)}function ld(t,e){e===0&&(e=$f()),t=Il(t,e),t!==null&&(fn(t,e),$e(t))}function wy(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),ld(t,l)}function Jy(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(e),ld(t,l)}function ky(t,e){return ma(t,e)}var ei=null,Ia=null,sf=!1,li=!1,rf=!1,Xl=0;function $e(t){t!==Ia&&t.next===null&&(Ia===null?ei=Ia=t:Ia=Ia.next=t),li=!0,sf||(sf=!0,Wy())}function Zn(t,e){if(!rf&&li){rf=!0;do for(var l=!1,a=ei;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-T(42|t)+1)-1,u&=n&~(i&~f),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,id(a,u))}else u=nt,u=iu(a,a===pt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||cn(a,u)||(l=!0,id(a,u));a=a.next}while(l);rf=!1}}function $y(){ad()}function ad(){li=sf=!1;var t=0;Xl!==0&&iv()&&(t=Xl);for(var e=Xt(),l=null,a=ei;a!==null;){var n=a.next,u=nd(a,e);u===0?(a.next=null,l===null?ei=n:l.next=n,n===null&&(Ia=l)):(l=a,(t!==0||(u&3)!==0)&&(li=!0)),a=n}Jt!==0&&Jt!==5||Zn(t),Xl!==0&&(Xl=0)}function nd(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-T(u),f=1<<i,o=n[i];o===-1?((f&l)===0||(f&a)!==0)&&(n[i]=zh(f,e)):o<=e&&(t.expiredLanes|=f),u&=~f}if(e=pt,l=nt,l=iu(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(ht===2||ht===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&De(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||cn(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&De(a),xi(l)){case 2:case 8:l=Ie;break;case 32:l=Ge;break;case 268435456:l=Sa;break;default:l=Ge}return a=ud.bind(null,t),l=ma(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&De(a),t.callbackPriority=2,t.callbackNode=null,2}function ud(t,e){if(Jt!==0&&Jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(ti()&&t.callbackNode!==l)return null;var a=nt;return a=iu(t,t===pt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Go(t,a,e),nd(t,Xt()),t.callbackNode!=null&&t.callbackNode===l?ud.bind(null,t):null)}function id(t,e){if(ti())return null;Go(t,e,!0)}function Wy(){fv(function(){(rt&6)!==0?ma(pe,$y):ad()})}function of(){if(Xl===0){var t=Ba;t===0&&(t=ga,ga<<=1,(ga&261888)===0&&(ga=256)),Xl=t}return Xl}function cd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ru(""+t)}function fd(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Fy(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var u=cd((n[de]||null).action),i=a.submitter;i&&(e=(e=i[de]||null)?cd(e.formAction):i.getAttribute("formAction"),e!==null&&(u=e,i=null));var f=new yu("action","action",null,a,n);t.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Xl!==0){var o=i?fd(n,i):new FormData(n);Mc(l,{pending:!0,data:o,method:n.method,action:u},null,o)}}else typeof u=="function"&&(f.preventDefault(),o=i?fd(n,i):new FormData(n),Mc(l,{pending:!0,data:o,method:n.method,action:u},u,o))},currentTarget:n}]})}}for(var df=0;df<Ji.length;df++){var hf=Ji[df],Iy=hf.toLowerCase(),Py=hf[0].toUpperCase()+hf.slice(1);Qe(Iy,"on"+Py)}Qe(Ys,"onAnimationEnd"),Qe(Xs,"onAnimationIteration"),Qe(Gs,"onAnimationStart"),Qe("dblclick","onDoubleClick"),Qe("focusin","onFocus"),Qe("focusout","onBlur"),Qe(vy,"onTransitionRun"),Qe(my,"onTransitionStart"),Qe(Sy,"onTransitionCancel"),Qe(Qs,"onTransitionEnd"),Ta("onMouseEnter",["mouseout","mouseover"]),Ta("onMouseLeave",["mouseout","mouseover"]),Ta("onPointerEnter",["pointerout","pointerover"]),Ta("onPointerLeave",["pointerout","pointerover"]),kl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),kl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),kl("onBeforeInput",["compositionend","keypress","textInput","paste"]),kl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),kl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),kl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ln="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(" "),tv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ln));function sd(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var u=void 0;if(e)for(var i=a.length-1;0<=i;i--){var f=a[i],o=f.instance,g=f.currentTarget;if(f=f.listener,o!==u&&n.isPropagationStopped())break t;u=f,n.currentTarget=g;try{u(n)}catch(j){Su(j)}n.currentTarget=null,u=o}else for(i=0;i<a.length;i++){if(f=a[i],o=f.instance,g=f.currentTarget,f=f.listener,o!==u&&n.isPropagationStopped())break t;u=f,n.currentTarget=g;try{u(n)}catch(j){Su(j)}n.currentTarget=null,u=o}}}}function at(t,e){var l=e[Ai];l===void 0&&(l=e[Ai]=new Set);var a=t+"__bubble";l.has(a)||(rd(e,t,2,!1),l.add(a))}function yf(t,e,l){var a=0;e&&(a|=4),rd(l,t,a,e)}var ai="_reactListening"+Math.random().toString(36).slice(2);function vf(t){if(!t[ai]){t[ai]=!0,ls.forEach(function(l){l!=="selectionchange"&&(tv.has(l)||yf(l,!1,t),yf(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ai]||(e[ai]=!0,yf("selectionchange",!1,e))}}function rd(t,e,l,a){switch(Xd(e)){case 2:var n=_v;break;case 8:n=Ov;break;default:n=Mf}l=n.bind(null,e,l,t),n=void 0,!Ri||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function mf(t,e,l,a,n){var u=a;if((e&1)===0&&(e&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 o=i.tag;if((o===3||o===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;f!==null;){if(i=ba(f),i===null)return;if(o=i.tag,o===5||o===6||o===26||o===27){a=u=i;continue t}f=f.parentNode}}a=a.return}ys(function(){var g=u,j=Ni(l),O=[];t:{var p=Zs.get(t);if(p!==void 0){var z=yu,Y=t;switch(t){case"keypress":if(du(l)===0)break t;case"keydown":case"keyup":z=Jh;break;case"focusin":Y="focus",z=Yi;break;case"focusout":Y="blur",z=Yi;break;case"beforeblur":case"afterblur":z=Yi;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Ss;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Hh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=Wh;break;case Ys:case Xs:case Gs:z=Yh;break;case Qs:z=Ih;break;case"scroll":case"scrollend":z=Uh;break;case"wheel":z=ty;break;case"copy":case"cut":case"paste":z=Gh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=ps;break;case"toggle":case"beforetoggle":z=ly}var K=(e&4)!==0,gt=!K&&(t==="scroll"||t==="scrollend"),m=K?p!==null?p+"Capture":null:p;K=[];for(var y=g,S;y!==null;){var _=y;if(S=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||S===null||m===null||(_=on(y,m),_!=null&&K.push(Vn(y,_,S))),gt)break;y=y.return}0<K.length&&(p=new z(p,Y,null,l,j),O.push({event:p,listeners:K}))}}if((e&7)===0){t:{if(p=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",p&&l!==Ci&&(Y=l.relatedTarget||l.fromElement)&&(ba(Y)||Y[pa]))break t;if((z||p)&&(p=j.window===j?j:(p=j.ownerDocument)?p.defaultView||p.parentWindow:window,z?(Y=l.relatedTarget||l.toElement,z=g,Y=Y?ba(Y):null,Y!==null&&(gt=N(Y),K=Y.tag,Y!==gt||K!==5&&K!==27&&K!==6)&&(Y=null)):(z=null,Y=g),z!==Y)){if(K=Ss,_="onMouseLeave",m="onMouseEnter",y="mouse",(t==="pointerout"||t==="pointerover")&&(K=ps,_="onPointerLeave",m="onPointerEnter",y="pointer"),gt=z==null?p:rn(z),S=Y==null?p:rn(Y),p=new K(_,y+"leave",z,l,j),p.target=gt,p.relatedTarget=S,_=null,ba(j)===g&&(K=new K(m,y+"enter",Y,l,j),K.target=S,K.relatedTarget=gt,_=K),gt=_,z&&Y)e:{for(K=ev,m=z,y=Y,S=0,_=m;_;_=K(_))S++;_=0;for(var V=y;V;V=K(V))_++;for(;0<S-_;)m=K(m),S--;for(;0<_-S;)y=K(y),_--;for(;S--;){if(m===y||y!==null&&m===y.alternate){K=m;break e}m=K(m),y=K(y)}K=null}else K=null;z!==null&&od(O,p,z,K,!1),Y!==null&&gt!==null&&od(O,gt,Y,K,!0)}}t:{if(p=g?rn(g):window,z=p.nodeName&&p.nodeName.toLowerCase(),z==="select"||z==="input"&&p.type==="file")var ft=Ds;else if(As(p))if(_s)ft=dy;else{ft=ry;var X=sy}else z=p.nodeName,!z||z.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?g&&Mi(g.elementType)&&(ft=Ds):ft=oy;if(ft&&(ft=ft(t,g))){js(O,ft,l,j);break t}X&&X(t,p,g),t==="focusout"&&g&&p.type==="number"&&g.memoizedProps.value!=null&&Oi(p,"number",p.value)}switch(X=g?rn(g):window,t){case"focusin":(As(X)||X.contentEditable==="true")&&(Oa=X,Vi=g,pn=null);break;case"focusout":pn=Vi=Oa=null;break;case"mousedown":Ki=!0;break;case"contextmenu":case"mouseup":case"dragend":Ki=!1,qs(O,l,j);break;case"selectionchange":if(yy)break;case"keydown":case"keyup":qs(O,l,j)}var I;if(Gi)t:{switch(t){case"compositionstart":var ut="onCompositionStart";break t;case"compositionend":ut="onCompositionEnd";break t;case"compositionupdate":ut="onCompositionUpdate";break t}ut=void 0}else _a?Ts(t,l)&&(ut="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(ut="onCompositionStart");ut&&(bs&&l.locale!=="ko"&&(_a||ut!=="onCompositionStart"?ut==="onCompositionEnd"&&_a&&(I=vs()):(Tl=j,Hi="value"in Tl?Tl.value:Tl.textContent,_a=!0)),X=ni(g,ut),0<X.length&&(ut=new gs(ut,t,null,l,j),O.push({event:ut,listeners:X}),I?ut.data=I:(I=xs(l),I!==null&&(ut.data=I)))),(I=ny?uy(t,l):iy(t,l))&&(ut=ni(g,"onBeforeInput"),0<ut.length&&(X=new gs("onBeforeInput","beforeinput",null,l,j),O.push({event:X,listeners:ut}),X.data=I)),Fy(O,t,g,l,j)}sd(O,e)})}function Vn(t,e,l){return{instance:t,listener:e,currentTarget:l}}function ni(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=on(t,l),n!=null&&a.unshift(Vn(t,n,u)),n=on(t,e),n!=null&&a.push(Vn(t,n,u))),t.tag===3)return a;t=t.return}return[]}function ev(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function od(t,e,l,a,n){for(var u=e._reactName,i=[];l!==null&&l!==a;){var f=l,o=f.alternate,g=f.stateNode;if(f=f.tag,o!==null&&o===a)break;f!==5&&f!==26&&f!==27||g===null||(o=g,n?(g=on(l,u),g!=null&&i.unshift(Vn(l,g,o))):n||(g=on(l,u),g!=null&&i.push(Vn(l,g,o)))),l=l.return}i.length!==0&&t.push({event:e,listeners:i})}var lv=/\r\n?/g,av=/\u0000|\uFFFD/g;function dd(t){return(typeof t=="string"?t:""+t).replace(lv,`
`).replace(av,"")}function hd(t,e){return e=dd(e),dd(t)===e}function St(t,e,l,a,n,u){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Aa(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Aa(t,""+a);break;case"className":fu(t,"class",a);break;case"tabIndex":fu(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":fu(t,l,a);break;case"style":ds(t,a,u);break;case"data":if(e!=="object"){fu(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=ru(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&St(t,e,"name",n.name,n,null),St(t,e,"formEncType",n.formEncType,n,null),St(t,e,"formMethod",n.formMethod,n,null),St(t,e,"formTarget",n.formTarget,n,null)):(St(t,e,"encType",n.encType,n,null),St(t,e,"method",n.method,n,null),St(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=ru(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=el);break;case"onScroll":a!=null&&at("scroll",t);break;case"onScrollEnd":a!=null&&at("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=ru(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":at("beforetoggle",t),at("toggle",t),cu(t,"popover",a);break;case"xlinkActuate":tl(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":tl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":tl(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":tl(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":tl(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":tl(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":tl(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":tl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":tl(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":cu(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Ch.get(l)||l,cu(t,l,a))}}function Sf(t,e,l,a,n,u){switch(l){case"style":ds(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));t.innerHTML=l}}break;case"children":typeof a=="string"?Aa(t,a):(typeof a=="number"||typeof a=="bigint")&&Aa(t,""+a);break;case"onScroll":a!=null&&at("scroll",t);break;case"onScrollEnd":a!=null&&at("scrollend",t);break;case"onClick":a!=null&&(t.onclick=el);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!as.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),u=t[de]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):cu(t,l,a)}}}function ne(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":at("error",t),at("load",t);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:St(t,e,u,i,l,null)}}n&&St(t,e,"srcSet",l.srcSet,l,null),a&&St(t,e,"src",l.src,l,null);return;case"input":at("invalid",t);var f=u=i=n=null,o=null,g=null;for(a in l)if(l.hasOwnProperty(a)){var j=l[a];if(j!=null)switch(a){case"name":n=j;break;case"type":i=j;break;case"checked":o=j;break;case"defaultChecked":g=j;break;case"value":u=j;break;case"defaultValue":f=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,e));break;default:St(t,e,a,j,l,null)}}fs(t,u,f,o,g,i,n,!1);return;case"select":at("invalid",t),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(f=l[n],f!=null))switch(n){case"value":u=f;break;case"defaultValue":i=f;break;case"multiple":a=f;default:St(t,e,n,f,l,null)}e=u,l=i,t.multiple=!!a,e!=null?xa(t,!!a,e,!1):l!=null&&xa(t,!!a,l,!0);return;case"textarea":at("invalid",t),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(f=l[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(r(91));break;default:St(t,e,i,f,l,null)}rs(t,a,n,u);return;case"option":for(o in l)if(l.hasOwnProperty(o)&&(a=l[o],a!=null))switch(o){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:St(t,e,o,a,l,null)}return;case"dialog":at("beforetoggle",t),at("toggle",t),at("cancel",t),at("close",t);break;case"iframe":case"object":at("load",t);break;case"video":case"audio":for(a=0;a<Ln.length;a++)at(Ln[a],t);break;case"image":at("error",t),at("load",t);break;case"details":at("toggle",t);break;case"embed":case"source":case"link":at("error",t),at("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(g in l)if(l.hasOwnProperty(g)&&(a=l[g],a!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:St(t,e,g,a,l,null)}return;default:if(Mi(e)){for(j in l)l.hasOwnProperty(j)&&(a=l[j],a!==void 0&&Sf(t,e,j,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&St(t,e,f,a,l,null))}function nv(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,f=null,o=null,g=null,j=null;for(z in l){var O=l[z];if(l.hasOwnProperty(z)&&O!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":o=O;default:a.hasOwnProperty(z)||St(t,e,z,null,a,O)}}for(var p in a){var z=a[p];if(O=l[p],a.hasOwnProperty(p)&&(z!=null||O!=null))switch(p){case"type":u=z;break;case"name":n=z;break;case"checked":g=z;break;case"defaultChecked":j=z;break;case"value":i=z;break;case"defaultValue":f=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:z!==O&&St(t,e,p,z,a,O)}}_i(t,i,f,o,g,j,u,n);return;case"select":z=i=f=p=null;for(u in l)if(o=l[u],l.hasOwnProperty(u)&&o!=null)switch(u){case"value":break;case"multiple":z=o;default:a.hasOwnProperty(u)||St(t,e,u,null,a,o)}for(n in a)if(u=a[n],o=l[n],a.hasOwnProperty(n)&&(u!=null||o!=null))switch(n){case"value":p=u;break;case"defaultValue":f=u;break;case"multiple":i=u;default:u!==o&&St(t,e,n,u,a,o)}e=f,l=i,a=z,p!=null?xa(t,!!l,p,!1):!!a!=!!l&&(e!=null?xa(t,!!l,e,!0):xa(t,!!l,l?[]:"",!1));return;case"textarea":z=p=null;for(f in l)if(n=l[f],l.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:St(t,e,f,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":p=n;break;case"defaultValue":z=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&St(t,e,i,n,a,u)}ss(t,p,z);return;case"option":for(var Y in l)if(p=l[Y],l.hasOwnProperty(Y)&&p!=null&&!a.hasOwnProperty(Y))switch(Y){case"selected":t.selected=!1;break;default:St(t,e,Y,null,a,p)}for(o in a)if(p=a[o],z=l[o],a.hasOwnProperty(o)&&p!==z&&(p!=null||z!=null))switch(o){case"selected":t.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:St(t,e,o,p,a,z)}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 K in l)p=l[K],l.hasOwnProperty(K)&&p!=null&&!a.hasOwnProperty(K)&&St(t,e,K,null,a,p);for(g in a)if(p=a[g],z=l[g],a.hasOwnProperty(g)&&p!==z&&(p!=null||z!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(137,e));break;default:St(t,e,g,p,a,z)}return;default:if(Mi(e)){for(var gt in l)p=l[gt],l.hasOwnProperty(gt)&&p!==void 0&&!a.hasOwnProperty(gt)&&Sf(t,e,gt,void 0,a,p);for(j in a)p=a[j],z=l[j],!a.hasOwnProperty(j)||p===z||p===void 0&&z===void 0||Sf(t,e,j,p,a,z);return}}for(var m in l)p=l[m],l.hasOwnProperty(m)&&p!=null&&!a.hasOwnProperty(m)&&St(t,e,m,null,a,p);for(O in a)p=a[O],z=l[O],!a.hasOwnProperty(O)||p===z||p==null&&z==null||St(t,e,O,p,a,z)}function yd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,f=n.duration;if(u&&f&&yd(i)){for(i=0,f=n.responseEnd,a+=1;a<l.length;a++){var o=l[a],g=o.startTime;if(g>f)break;var j=o.transferSize,O=o.initiatorType;j&&yd(O)&&(o=o.responseEnd,i+=j*(o<f?1:(f-g)/(o-g)))}if(--a,e+=8*(u+i)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var gf=null,pf=null;function ui(t){return t.nodeType===9?t:t.ownerDocument}function vd(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 md(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function bf(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Ef=null;function iv(){var t=window.event;return t&&t.type==="popstate"?t===Ef?!1:(Ef=t,!0):(Ef=null,!1)}var Sd=typeof setTimeout=="function"?setTimeout:void 0,cv=typeof clearTimeout=="function"?clearTimeout:void 0,gd=typeof Promise=="function"?Promise:void 0,fv=typeof queueMicrotask=="function"?queueMicrotask:typeof gd<"u"?function(t){return gd.resolve(null).then(t).catch(sv)}:Sd;function sv(t){setTimeout(function(){throw t})}function Gl(t){return t==="head"}function pd(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),ln(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Kn(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Kn(l);for(var u=l.firstChild;u;){var i=u.nextSibling,f=u.nodeName;u[sn]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&Kn(t.ownerDocument.body);l=n}while(l);ln(e)}function bd(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function zf(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":zf(l),ji(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function rv(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[sn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Be(t.nextSibling),t===null)break}return null}function ov(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Be(t.nextSibling),t===null))return null;return t}function Ed(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Be(t.nextSibling),t===null))return null;return t}function Tf(t){return t.data==="$?"||t.data==="$~"}function xf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function dv(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Be(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Af=null;function zd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Be(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Td(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function xd(t,e,l){switch(e=ui(l),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Kn(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ji(t)}var Ye=new Map,Ad=new Set;function ii(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Sl=b.d;b.d={f:hv,r:yv,D:vv,C:mv,L:Sv,m:gv,X:bv,S:pv,M:Ev};function hv(){var t=Sl.f(),e=Fu();return t||e}function yv(t){var e=Ea(t);e!==null&&e.tag===5&&e.type==="form"?Qr(e):Sl.r(t)}var Pa=typeof document>"u"?null:document;function jd(t,e,l){var a=Pa;if(a&&typeof e=="string"&&e){var n=Me(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Ad.has(n)||(Ad.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),ne(e,"link",t),Wt(e),a.head.appendChild(e)))}}function vv(t){Sl.D(t),jd("dns-prefetch",t,null)}function mv(t,e){Sl.C(t,e),jd("preconnect",t,e)}function Sv(t,e,l){Sl.L(t,e,l);var a=Pa;if(a&&t&&e){var n='link[rel="preload"][as="'+Me(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Me(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Me(l.imageSizes)+'"]')):n+='[href="'+Me(t)+'"]';var u=n;switch(e){case"style":u=tn(t);break;case"script":u=en(t)}Ye.has(u)||(t=B({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Ye.set(u,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(wn(u))||e==="script"&&a.querySelector(Jn(u))||(e=a.createElement("link"),ne(e,"link",t),Wt(e),a.head.appendChild(e)))}}function gv(t,e){Sl.m(t,e);var l=Pa;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+Me(a)+'"][href="'+Me(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=en(t)}if(!Ye.has(u)&&(t=B({rel:"modulepreload",href:t},e),Ye.set(u,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Jn(u)))return}a=l.createElement("link"),ne(a,"link",t),Wt(a),l.head.appendChild(a)}}}function pv(t,e,l){Sl.S(t,e,l);var a=Pa;if(a&&t){var n=za(a).hoistableStyles,u=tn(t);e=e||"default";var i=n.get(u);if(!i){var f={loading:0,preload:null};if(i=a.querySelector(wn(u)))f.loading=5;else{t=B({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Ye.get(u))&&jf(t,l);var o=i=a.createElement("link");Wt(o),ne(o,"link",t),o._p=new Promise(function(g,j){o.onload=g,o.onerror=j}),o.addEventListener("load",function(){f.loading|=1}),o.addEventListener("error",function(){f.loading|=2}),f.loading|=4,ci(i,e,a)}i={type:"stylesheet",instance:i,count:1,state:f},n.set(u,i)}}}function bv(t,e){Sl.X(t,e);var l=Pa;if(l&&t){var a=za(l).hoistableScripts,n=en(t),u=a.get(n);u||(u=l.querySelector(Jn(n)),u||(t=B({src:t,async:!0},e),(e=Ye.get(n))&&Df(t,e),u=l.createElement("script"),Wt(u),ne(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Ev(t,e){Sl.M(t,e);var l=Pa;if(l&&t){var a=za(l).hoistableScripts,n=en(t),u=a.get(n);u||(u=l.querySelector(Jn(n)),u||(t=B({src:t,async:!0,type:"module"},e),(e=Ye.get(n))&&Df(t,e),u=l.createElement("script"),Wt(u),ne(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Dd(t,e,l,a){var n=(n=P.current)?ii(n):null;if(!n)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=tn(l.href),l=za(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=tn(l.href);var u=za(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(wn(t)))&&!u._p&&(i.instance=u,i.state.loading=5),Ye.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ye.set(t,l),u||zv(n,t,l,i.state))),e&&a===null)throw Error(r(528,""));return i}if(e&&a!==null)throw Error(r(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=en(l),l=za(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function tn(t){return'href="'+Me(t)+'"'}function wn(t){return'link[rel="stylesheet"]['+t+"]"}function _d(t){return B({},t,{"data-precedence":t.precedence,precedence:null})}function zv(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ne(e,"link",l),Wt(e),t.head.appendChild(e))}function en(t){return'[src="'+Me(t)+'"]'}function Jn(t){return"script[async]"+t}function Od(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Me(l.href)+'"]');if(a)return e.instance=a,Wt(a),a;var n=B({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Wt(a),ne(a,"style",n),ci(a,l.precedence,t),e.instance=a;case"stylesheet":n=tn(l.href);var u=t.querySelector(wn(n));if(u)return e.state.loading|=4,e.instance=u,Wt(u),u;a=_d(l),(n=Ye.get(n))&&jf(a,n),u=(t.ownerDocument||t).createElement("link"),Wt(u);var i=u;return i._p=new Promise(function(f,o){i.onload=f,i.onerror=o}),ne(u,"link",a),e.state.loading|=4,ci(u,l.precedence,t),e.instance=u;case"script":return u=en(l.src),(n=t.querySelector(Jn(u)))?(e.instance=n,Wt(n),n):(a=l,(n=Ye.get(u))&&(a=B({},l),Df(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Wt(n),ne(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,ci(a,l.precedence,t));return e.instance}function ci(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var f=a[i];if(f.dataset.precedence===e)u=f;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function jf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Df(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var fi=null;function Md(t,e,l){if(fi===null){var a=new Map,n=fi=new Map;n.set(l,a)}else n=fi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var u=l[n];if(!(u[sn]||u[te]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(e)||"";i=t+i;var f=a.get(i);f?f.push(u):a.set(i,[u])}}return a}function Cd(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Tv(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Nd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function xv(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=tn(a.href),u=e.querySelector(wn(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=si.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,Wt(u);return}u=e.ownerDocument||e,a=_d(a),(n=Ye.get(n))&&jf(a,n),u=u.createElement("link"),Wt(u);var i=u;i._p=new Promise(function(f,o){i.onload=f,i.onerror=o}),ne(u,"link",a),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=si.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var _f=0;function Av(t,e){return t.stylesheets&&t.count===0&&oi(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&oi(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&_f===0&&(_f=62500*uv());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&oi(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>_f?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function si(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)oi(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ri=null;function oi(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ri=new Map,e.forEach(jv,t),ri=null,si.call(t))}function jv(t,e){if(!(e.state.loading&4)){var l=ri.get(t);if(l)var a=l.get(null);else{l=new Map,ri.set(t,l);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")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=e.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=si.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var kn={$$typeof:Et,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Dv(t,e,l,a,n,u,i,f,o){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=zi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zi(0),this.hiddenUpdates=zi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Ud(t,e,l,a,n,u,i,f,o,g,j,O){return t=new Dv(t,e,l,i,o,g,j,O,f),e=1,u===!0&&(e|=24),u=Ee(3,null,null,e),t.current=u,u.stateNode=t,e=ic(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:e},rc(u),t}function Rd(t){return t?(t=Na,t):Na}function Hd(t,e,l,a,n,u){n=Rd(n),a.context===null?a.context=n:a.pendingContext=n,a=Ol(e),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Ml(t,a,e),l!==null&&(ge(l,t,e),jn(l,t,e))}function qd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Of(t,e){qd(t,e),(t=t.alternate)&&qd(t,e)}function Bd(t){if(t.tag===13||t.tag===31){var e=Il(t,67108864);e!==null&&ge(e,t,67108864),Of(t,67108864)}}function Yd(t){if(t.tag===13||t.tag===31){var e=je();e=Ti(e);var l=Il(t,e);l!==null&&ge(l,t,e),Of(t,e)}}var di=!0;function _v(t,e,l,a){var n=A.T;A.T=null;var u=b.p;try{b.p=2,Mf(t,e,l,a)}finally{b.p=u,A.T=n}}function Ov(t,e,l,a){var n=A.T;A.T=null;var u=b.p;try{b.p=8,Mf(t,e,l,a)}finally{b.p=u,A.T=n}}function Mf(t,e,l,a){if(di){var n=Cf(a);if(n===null)mf(t,e,a,hi,l),Gd(t,a);else if(Cv(n,t,e,l,a))a.stopPropagation();else if(Gd(t,a),e&4&&-1<Mv.indexOf(t)){for(;n!==null;){var u=Ea(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Jl(u.pendingLanes);if(i!==0){var f=u;for(f.pendingLanes|=2,f.entangledLanes|=2;i;){var o=1<<31-T(i);f.entanglements[1]|=o,i&=~o}$e(u),(rt&6)===0&&($u=Xt()+500,Zn(0))}}break;case 31:case 13:f=Il(u,2),f!==null&&ge(f,u,2),Fu(),Of(u,2)}if(u=Cf(a),u===null&&mf(t,e,a,hi,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else mf(t,e,a,null,l)}}function Cf(t){return t=Ni(t),Nf(t)}var hi=null;function Nf(t){if(hi=null,t=ba(t),t!==null){var e=N(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=x(e),t!==null)return t;t=null}else if(l===31){if(t=q(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return hi=t,null}function Xd(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(_e()){case pe:return 2;case Ie:return 8;case Ge:case au:return 32;case Sa:return 268435456;default:return 32}default:return 32}}var Uf=!1,Ql=null,Zl=null,Ll=null,$n=new Map,Wn=new Map,Vl=[],Mv="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 Gd(t,e){switch(t){case"focusin":case"focusout":Ql=null;break;case"dragenter":case"dragleave":Zl=null;break;case"mouseover":case"mouseout":Ll=null;break;case"pointerover":case"pointerout":$n.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wn.delete(e.pointerId)}}function Fn(t,e,l,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},e!==null&&(e=Ea(e),e!==null&&Bd(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function Cv(t,e,l,a,n){switch(e){case"focusin":return Ql=Fn(Ql,t,e,l,a,n),!0;case"dragenter":return Zl=Fn(Zl,t,e,l,a,n),!0;case"mouseover":return Ll=Fn(Ll,t,e,l,a,n),!0;case"pointerover":var u=n.pointerId;return $n.set(u,Fn($n.get(u)||null,t,e,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Wn.set(u,Fn(Wn.get(u)||null,t,e,l,a,n)),!0}return!1}function Qd(t){var e=ba(t.target);if(e!==null){var l=N(e);if(l!==null){if(e=l.tag,e===13){if(e=x(l),e!==null){t.blockedOn=e,ts(t.priority,function(){Yd(l)});return}}else if(e===31){if(e=q(l),e!==null){t.blockedOn=e,ts(t.priority,function(){Yd(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function yi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Cf(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Ci=a,l.target.dispatchEvent(a),Ci=null}else return e=Ea(l),e!==null&&Bd(e),t.blockedOn=l,!1;e.shift()}return!0}function Zd(t,e,l){yi(t)&&l.delete(e)}function Nv(){Uf=!1,Ql!==null&&yi(Ql)&&(Ql=null),Zl!==null&&yi(Zl)&&(Zl=null),Ll!==null&&yi(Ll)&&(Ll=null),$n.forEach(Zd),Wn.forEach(Zd)}function vi(t,e){t.blockedOn===e&&(t.blockedOn=null,Uf||(Uf=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,Nv)))}var mi=null;function Ld(t){mi!==t&&(mi=t,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){mi===t&&(mi=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(Nf(a||l)===null)continue;break}var u=Ea(l);u!==null&&(t.splice(e,3),e-=3,Mc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function ln(t){function e(o){return vi(o,t)}Ql!==null&&vi(Ql,t),Zl!==null&&vi(Zl,t),Ll!==null&&vi(Ll,t),$n.forEach(e),Wn.forEach(e);for(var l=0;l<Vl.length;l++){var a=Vl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Vl.length&&(l=Vl[0],l.blockedOn===null);)Qd(l),l.blockedOn===null&&Vl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[de]||null;if(typeof u=="function")i||Ld(l);else if(i){var f=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[de]||null)f=i.formAction;else if(Nf(n)!==null)continue}else f=i.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),Ld(l)}}}function Vd(){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 e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function Rf(t){this._internalRoot=t}Si.prototype.render=Rf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var l=e.current,a=je();Hd(l,a,t,e,null,null)},Si.prototype.unmount=Rf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Hd(t.current,2,null,t,null,null),Fu(),e[pa]=null}};function Si(t){this._internalRoot=t}Si.prototype.unstable_scheduleHydration=function(t){if(t){var e=Pf();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Vl.length&&e!==0&&e<Vl[l].priority;l++);Vl.splice(l,0,t),l===0&&Qd(t)}};var Kd=d.version;if(Kd!=="19.2.4")throw Error(r(527,Kd,"19.2.4"));b.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=D(e),t=t!==null?w(t):null,t=t===null?null:t.stateNode,t};var Uv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gi.isDisabled&&gi.supportsFiber)try{Ot=gi.inject(Uv),ie=gi}catch{}}return Pn.createRoot=function(t,e){if(!E(t))throw Error(r(299));var l=!1,a="",n=Fr,u=Ir,i=Pr;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Ud(t,1,!1,null,null,l,a,null,n,u,i,Vd),t[pa]=e.current,vf(t),new Rf(e)},Pn.hydrateRoot=function(t,e,l){if(!E(t))throw Error(r(299));var a=!1,n="",u=Fr,i=Ir,f=Pr,o=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(f=l.onRecoverableError),l.formState!==void 0&&(o=l.formState)),e=Ud(t,1,!0,e,l??null,a,n,o,u,i,f,Vd),e.context=Rd(null),l=e.current,a=je(),a=Ti(a),n=Ol(a),n.callback=null,Ml(l,n,a),l=a,e.current.lanes=l,fn(e,l),$e(e),t[pa]=e.current,vf(t),new Si(e)},Pn.version="19.2.4",Pn}var eh;function Lv(){if(eh)return Bf.exports;eh=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(d){console.error(d)}}return c(),Bf.exports=Zv(),Bf.exports}var Vv=Lv();/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yh=(...c)=>c.filter((d,h,r)=>!!d&&d.trim()!==""&&r.indexOf(d)===h).join(" ").trim();/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kv=c=>c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wv=c=>c.replace(/^([A-Z])|[\s-_]+(\w)/g,(d,h,r)=>r?r.toUpperCase():h.toLowerCase());/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lh=c=>{const d=wv(c);return d.charAt(0).toUpperCase()+d.slice(1)};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Jv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kv=c=>{for(const d in c)if(d.startsWith("aria-")||d==="role"||d==="title")return!0;return!1};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $v=Q.forwardRef(({color:c="currentColor",size:d=24,strokeWidth:h=2,absoluteStrokeWidth:r,className:E="",children:N,iconNode:x,...q},U)=>Q.createElement("svg",{ref:U,...Jv,width:d,height:d,stroke:c,strokeWidth:r?Number(h)*24/Number(d):h,className:yh("lucide",E),...!N&&!kv(q)&&{"aria-hidden":"true"},...q},[...x.map(([D,w])=>Q.createElement(D,w)),...Array.isArray(N)?N:[N]]));/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const re=(c,d)=>{const h=Q.forwardRef(({className:r,...E},N)=>Q.createElement($v,{ref:N,iconNode:d,className:yh(`lucide-${Kv(lh(c))}`,`lucide-${c}`,r),...E}));return h.displayName=lh(c),h};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wv=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Fv=re("activity",Wv);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Iv=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],an=re("check",Iv);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pv=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],t0=re("eye-off",Pv);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e0=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],l0=re("eye",e0);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a0=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],tu=re("file-text",a0);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n0=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],u0=re("pause",n0);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i0=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],eu=re("play",i0);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ha=re("plus",c0);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f0=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ah=re("refresh-cw",f0);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s0=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],r0=re("rotate-ccw",s0);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o0=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],d0=re("search",o0);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h0=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],y0=re("shield",h0);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v0=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],m0=re("square",v0);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S0=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],wf=re("trash-2",S0);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g0=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],p0=re("x",g0);class b0{gateway;session;nextId=1;constructor(d=window.location){const h=new URLSearchParams(d.search),r=h.get("gateway")||d.origin,E=h.get("session");if(!E)throw new Error("Web Shell gateway session is missing. Open Web Shell from AssistantShell.");this.gateway=r.replace(/\/$/,""),this.session=E}async request(d,h={}){const r=await fetch(`${this.gateway}/rpc`,{method:"POST",headers:{"Content-Type":"application/json","X-WShell-Session":this.session},body:JSON.stringify({jsonrpc:"2.0",id:this.nextId++,method:d,params:{actor:"wshell",...h}})}),E=await r.json().catch(async()=>{throw new Error(await r.text())});if(!r.ok)throw new Error(E.error?.message||`HTTP ${r.status}`);if(E.error)throw new Error(E.error.message||"JSON-RPC error");return E.result}async health(){const d=await fetch(`${this.gateway}/health`,{headers:{"X-WShell-Session":this.session}});if(!d.ok)throw new Error(await d.text());return await d.json()}subscribe(d,h,r={}){let E=null,N=null,x=!1;const q=()=>{if(x)return;const U=new URL(`${this.gateway}/events`);U.searchParams.set("session",this.session);const D=r.afterSequence?.()??0;D>0&&U.searchParams.set("afterSequence",String(D)),E=new EventSource(U.toString()),E.onmessage=w=>d(JSON.parse(w.data)),E.onerror=()=>{x||(E?.close(),E=null,h("Web Shell event stream disconnected."),N=window.setTimeout(q,1e3))}};return q(),()=>{x=!0,N!==null&&window.clearTimeout(N),E?.close()}}}class E0{scene={activeEntityId:"shader-spot",lighting:{ambientColor:"#525761",ambientIntensity:1},entities:[{id:"shader-spot",name:"Shader spot",provider:"shader-spot",state:"idle",transitionStyle:"energy-bloom",transitionName:"Energy Bloom",visible:!0,selectedPetId:null,selectedPet:null,shaderSpotId:"classic-cyan",shaderSpotName:"Classic Cyan",position:{x:96,y:96,width:512,height:512},motion:{mode:"manual",velocityPxPerSecond:90,paused:!1}}]};async request(d,h={}){if(d==="avatar.scene.getStatus")return this.scene;if(d==="avatar.entity.remove"){const r=typeof h.id=="string"?h.id:"",E=(this.scene.entities??[]).filter(N=>N.id!==r);return this.scene={...this.scene,activeEntityId:this.scene.activeEntityId===r?E[0]?.id??null:this.scene.activeEntityId??null,entities:E},this.scene}if(d==="avatar.entity.create"){const r=typeof h.provider=="string"?h.provider:"shader-spot",E=`${r.replace(/[^a-z0-9]+/gi,"-")}-${Date.now()}`,N={id:E,name:typeof h.name=="string"?h.name:E,provider:r,state:"idle",transitionStyle:typeof h.transitionStyle=="string"?h.transitionStyle:"energy-bloom",transitionName:typeof h.transitionStyle=="string"?h.transitionStyle:"Energy Bloom",visible:!0,selectedPetId:typeof h.selectedPetId=="string"?h.selectedPetId:null,selectedPet:null,shaderSpotId:typeof h.shaderSpotId=="string"?h.shaderSpotId:"classic-cyan",shaderSpotName:typeof h.shaderSpotId=="string"?h.shaderSpotId:"Classic Cyan",material:ih(h.material),light:ch(h.light),podiumSurface:fh(h.podiumSurface),surfaceAttachment:sh(h.surfaceAttachment),position:T0(h.position)??{x:96,y:96,width:512,height:512},motion:{mode:"manual",velocityPxPerSecond:90,paused:!1}};return this.scene={...this.scene,activeEntityId:E,entities:[...this.scene.entities??[],N]},this.scene}if(d==="avatar.entity.update"){const r=typeof h.id=="string"?h.id:"";return this.scene={...this.scene,activeEntityId:r||this.scene.activeEntityId,entities:(this.scene.entities??[]).map(E=>E.id===r?{...E,name:typeof h.name=="string"?h.name:E.name,provider:typeof h.provider=="string"?h.provider:E.provider,transitionStyle:typeof h.transitionStyle=="string"?h.transitionStyle:E.transitionStyle,transitionName:typeof h.transitionStyle=="string"?h.transitionStyle:E.transitionName,shaderSpotId:typeof h.shaderSpotId=="string"?h.shaderSpotId:E.shaderSpotId,shaderSpotName:typeof h.shaderSpotId=="string"?h.shaderSpotId:E.shaderSpotName,material:ih(h.material)??E.material,light:ch(h.light)??E.light,podiumSurface:fh(h.podiumSurface)??E.podiumSurface,surfaceAttachment:Object.prototype.hasOwnProperty.call(h,"surfaceAttachment")?sh(h.surfaceAttachment):E.surfaceAttachment}:E)},this.scene}if(d==="avatar.scene.updateSettings"){const r=nn(h.lighting)?h.lighting:{};return this.scene={...this.scene,lighting:{ambientColor:typeof r.ambientColor=="string"?r.ambientColor:"#525761",ambientIntensity:typeof r.ambientIntensity=="number"?r.ambientIntensity:1}},this.scene}if(d==="shader.spot.list")return gl.map(nh);if(d==="shader.spot.get"){const r=typeof h.id=="string"?h.id:"classic-cyan";return gl.find(E=>E.id===r)??gl[0]}if(d==="shader.spot.validate"){const r=typeof h.source=="string"?h.source:"";return{valid:r.includes("return"),errors:r.includes("return")?[]:["Shader body must return a float3 color."]}}if(d==="shader.spot.save"){const r=typeof h.id=="string"?h.id:`custom-${Date.now()}`,E=typeof h.source=="string"?h.source:"";if(!E.includes("return"))return{saved:!1,validation:{valid:!1,errors:["Shader body must return a float3 color."]}};const N={id:r,name:typeof h.name=="string"?h.name:r,description:typeof h.description=="string"?h.description:"User shader spot",sourceKind:"user",readOnly:!1,valid:!0,errors:[],source:E},x=gl.findIndex(q=>q.id===r&&!q.readOnly);return x>=0?gl[x]=N:gl.push(N),N}if(d==="shader.spot.delete"){const r=typeof h.id=="string"?h.id:"",E=gl.findIndex(N=>N.id===r&&!N.readOnly);return E>=0&&gl.splice(E,1),gl.map(nh)}if(d==="shader.transition.list")return pl.map(uh);if(d==="shader.transition.get"){const r=typeof h.id=="string"?h.id:"energy-bloom";return pl.find(E=>E.id===r)??pl[0]}if(d==="shader.transition.validate"){const r=typeof h.maskSource=="string"?h.maskSource:"",E=typeof h.tintSource=="string"?h.tintSource:"",N=r.includes("return")&&E.includes("return");return{valid:N,errors:N?[]:["Transition mask and tint bodies must return values."]}}if(d==="shader.transition.save"){const r=typeof h.id=="string"?h.id:`transition-${Date.now()}`,E=typeof h.maskSource=="string"?h.maskSource:"",N=typeof h.tintSource=="string"?h.tintSource:"";if(!E.includes("return")||!N.includes("return"))return{saved:!1,validation:{valid:!1,errors:["Transition mask and tint bodies must return values."]}};const x={id:r,name:typeof h.name=="string"?h.name:r,description:typeof h.description=="string"?h.description:"User shader transition",sourceKind:"user",readOnly:!1,valid:!0,errors:[],maskSource:E,tintSource:N},q=pl.findIndex(U=>U.id===r&&!U.readOnly);return q>=0?pl[q]=x:pl.push(x),x}if(d==="shader.transition.delete"){const r=typeof h.id=="string"?h.id:"",E=pl.findIndex(N=>N.id===r&&!N.readOnly);return E>=0&&pl.splice(E,1),pl.map(uh)}return d==="pet.list"?{pets:[{id:"flare",displayName:"Flare",sourceKind:"user",spritesheetPath:""}],errors:[]}:d==="script.list"?[{id:"spawn-pet",name:"Spawn pet",running:!1,valid:!0,parameters:[{id:"petId",label:"Pet",type:"pet"},{id:"name",label:"Name",type:"string",default:"Spawned pet"}]}]:{mock:!0,method:d}}async health(){return{state:"mock",appVersion:"0.0.0",port:null,url:null,devUrl:null,lastError:null}}subscribe(){return()=>{}}}function z0(){return new URLSearchParams(window.location.search).get("mock")==="1"?new E0:new b0}const gl=[{id:"classic-cyan",name:"Classic Cyan",description:"Default cyan energy spot.",sourceKind:"bundled",readOnly:!0,valid:!0,errors:[],source:`float pulse = 0.5 + 0.5 * sin(time * 2.0);
return float3(0.08, 0.78, 0.95) + pulse * rim;`},{id:"plasma",name:"Plasma",description:"Magenta and teal plasma cells.",sourceKind:"bundled",readOnly:!0,valid:!0,errors:[],source:`float plasma = sin(p.x * 8.0 + time) * 0.5 + 0.5;
return lerp(float3(0.02, 0.88, 0.95), float3(1.0, 0.16, 0.72), plasma);`}],pl=[{id:"energy-bloom",name:"Energy Bloom",description:"Centered radial reveal.",sourceKind:"bundled",readOnly:!0,valid:!0,errors:[],maskSource:`float radius = eased * 1.58;
return 1.0 - smoothstep(radius, radius + 0.18, length(p));`,tintSource:`float ring = 1.0 - smoothstep(0.0, 0.09, abs(length(p) - eased * 1.16));
return ring * float3(0.30, 0.90, 1.0) * (1.0 - progress);`},{id:"glitch-dissolve",name:"Glitch Dissolve",description:"Noisy scanline reveal.",sourceKind:"bundled",readOnly:!0,valid:!0,errors:[],maskSource:`float noise = Hash12(floor(uv * 42.0) + floor(time * 31.0));
return smoothstep(noise - 0.18, noise + 0.10, eased);`,tintSource:`float split = sin((uv.y + time * 2.5) * 70.0) * 0.08 * (1.0 - progress);
return float3(split, -split * 0.30, -split);`}];function nh(c){return{id:c.id,name:c.name,description:c.description,sourceKind:c.sourceKind,readOnly:c.readOnly,valid:c.valid,errors:c.errors,updatedAt:c.updatedAt}}function uh(c){return{id:c.id,name:c.name,description:c.description,sourceKind:c.sourceKind,readOnly:c.readOnly,valid:c.valid,errors:c.errors,updatedAt:c.updatedAt}}function nn(c){return typeof c=="object"&&c!==null&&!Array.isArray(c)}function ih(c){return nn(c)?{baseColor:typeof c.baseColor=="string"?c.baseColor:"#68D8FF",roughness:typeof c.roughness=="number"?c.roughness:.58,roundness:typeof c.roundness=="number"?c.roundness:.28,height:typeof c.height=="number"?c.height:.55,parallaxDepth:typeof c.parallaxDepth=="number"?c.parallaxDepth:.16}:null}function ch(c){return nn(c)?{color:typeof c.color=="string"?c.color:"#FFDCA8",intensity:typeof c.intensity=="number"?c.intensity:1.4,radiusPx:typeof c.radiusPx=="number"?c.radiusPx:520,zPx:typeof c.zPx=="number"?c.zPx:260}:null}function fh(c){return nn(c)?{topRatio:typeof c.topRatio=="number"?c.topRatio:.36,leftInsetRatio:typeof c.leftInsetRatio=="number"?c.leftInsetRatio:.14,rightInsetRatio:typeof c.rightInsetRatio=="number"?c.rightInsetRatio:.14}:null}function sh(c){return!nn(c)||typeof c.surfaceEntityId!="string"||!c.surfaceEntityId?null:{surfaceEntityId:c.surfaceEntityId,offsetXPx:typeof c.offsetXPx=="number"?c.offsetXPx:0}}function T0(c){return nn(c)?{x:typeof c.x=="number"?c.x:96,y:typeof c.y=="number"?c.y:96,width:typeof c.width=="number"?c.width:512,height:typeof c.height=="number"?c.height:512}:null}function x0(){return{scene:vh(null),selectedEntityId:null,draft:Lf(null,""),firstPetId:"",lastEventSequence:0}}function A0(c,d){switch(d.type){case"scene/snapshot":return mh(c,d.scene,d.preferActive??!1,d.sequence);case"scene/select":return D0(c,d.id);case"event/received":return j0(c,d.event);case"draft/change":return{...c,draft:{...c.draft,...d.patch}};case"pet/firstChanged":{const h=Ei(c.scene,c.selectedEntityId);return{...c,firstPetId:d.firstPetId,draft:h?c.draft:Jf(c.scene,null,d.firstPetId)}}default:return c}}function vh(c){const d=Array.isArray(c?.entities)?c.entities.filter(O0):[],h=typeof c?.activeEntityId=="string"&&d.some(r=>kf(r.id,c.activeEntityId))?c.activeEntityId:null;return{...c,activeEntityId:h,entities:d}}function Zf(c){const d=Vf(c);if(!d)return!1;const h=d.activeEntityId;return h!=null&&typeof h!="string"||d.entities!==void 0&&!Array.isArray(d.entities)?!1:"entities"in d||"activeEntityId"in d}function Ei(c,d){return d?c.entities.find(h=>kf(h.id,d))??null:null}function Lf(c,d){return{name:c?.name??"",provider:c?.provider??"shader-spot",selectedPetId:c?.selectedPetId??d,shaderSpotId:c?.shaderSpotId??"classic-cyan",state:c?.state??"idle",transitionStyle:c?.transitionStyle??"energy-bloom",visible:c?.visible??!0,materialBaseColor:c?.material?.baseColor??"#68D8FF",materialRoughness:String(c?.material?.roughness??.58),materialRoundness:String(c?.material?.roundness??.28),materialHeight:String(c?.material?.height??.55),materialParallaxDepth:String(c?.material?.parallaxDepth??.16),lightColor:c?.light?.color??"#FFDCA8",lightIntensity:String(c?.light?.intensity??1.4),lightRadiusPx:String(c?.light?.radiusPx??520),lightZPx:String(c?.light?.zPx??260),podiumSurfaceTopRatio:String(c?.podiumSurface?.topRatio??.36),podiumSurfaceLeftInsetRatio:String(c?.podiumSurface?.leftInsetRatio??.14),podiumSurfaceRightInsetRatio:String(c?.podiumSurface?.rightInsetRatio??.14),surfaceEntityId:c?.surfaceAttachment?.surfaceEntityId??"",surfaceOffsetXPx:String(c?.surfaceAttachment?.offsetXPx??0),x:String(c?.position.x??96),y:String(c?.position.y??96),width:String(c?.position.width??512),height:String(c?.position.height??512),motionMode:c?.motion?.mode??"manual",motionSpeed:String(c?.motion?.velocityPxPerSecond??90)}}function j0(c,d){const h=typeof d.sequence=="number"?d.sequence:null;if(h!==null&&h<=c.lastEventSequence)return c;const r=h===null?c.lastEventSequence:Math.max(c.lastEventSequence,h);return d.name==="scene.changed"&&Zf(d.data)?mh(c,d.data,!1,r):{...c,lastEventSequence:r}}function mh(c,d,h,r){const E=vh(d),N=_0(c.selectedEntityId,E,h);return{...c,scene:E,selectedEntityId:N,draft:Jf(E,N,c.firstPetId),lastEventSequence:r===void 0?c.lastEventSequence:Math.max(c.lastEventSequence,r)}}function D0(c,d){const r=Ei(c.scene,d)?.id??null;return{...c,selectedEntityId:r,draft:Jf(c.scene,r,c.firstPetId)}}function Jf(c,d,h){return c.entities.length===0?Lf(null,""):Lf(Ei(c,d),h)}function _0(c,d,h){return d.entities.length===0?null:h&&d.activeEntityId?d.activeEntityId:c&&d.entities.some(r=>kf(r.id,c))?c:d.activeEntityId}function O0(c){const d=Vf(c),h=Vf(d?.position);return!!(d&&typeof d.id=="string"&&typeof d.name=="string"&&typeof d.provider=="string"&&typeof d.state=="string"&&h&&typeof h.x=="number"&&typeof h.y=="number"&&typeof h.width=="number"&&typeof h.height=="number")}function Vf(c){return typeof c=="object"&&c!==null&&!Array.isArray(c)?c:null}function kf(c,d){return typeof d=="string"&&c.toLowerCase()===d.toLowerCase()}const M0=["idle","working","review","speaking","celebrating","failed"],C0=["3d-shaded","pet-shaded","podium","shader-spot","point-light"],N0=["manual","walk-edge-to-edge"],U0=[256,384,512,600,768,960,1200];function R0(){const[c,d]=Q.useState(null),[h,r]=Q.useState(null),[E,N]=Q.useState(null),[x,q]=Q.useReducer(A0,void 0,x0),[U,D]=Q.useState(()=>Qf(null)),[w,B]=Q.useState([]),[et,Ht]=Q.useState([]),[L,C]=Q.useState([]),[qt,jt]=Q.useState(null),[It,Et]=Q.useState(""),[Pt,Kt]=Q.useState(null),[Dt,tt]=Q.useState([]),[bt,k]=Q.useState(null),[Nt,wt]=Q.useState(""),[xt,Bt]=Q.useState(""),[oe,Yt]=Q.useState(null),[A,b]=Q.useState([]),[Z,ot]=Q.useState([]),[dt,v]=Q.useState([]),[M,H]=Q.useState([]),[R,$]=Q.useState(null),[P,ct]=Q.useState({}),[kt,_t]=Q.useState(""),[wl,ya]=Q.useState([]),bl=Q.useRef(0),lu=w0(qt,It),We=k0(bt,Nt,xt),$t=Q.useCallback((T,G,Gt="info")=>{ya(vt=>[{id:Date.now()+Math.random(),label:T,body:typeof G=="string"?G:JSON.stringify(G,null,2),kind:Gt},...vt.slice(0,99)])},[]);Q.useEffect(()=>{bl.current=x.lastEventSequence},[x.lastEventSequence]),Q.useEffect(()=>{D(Qf(x.scene.lighting))},[x.scene.lighting?.ambientColor,x.scene.lighting?.ambientIntensity]),Q.useEffect(()=>{try{const T=z0();d(T),$t("wshell.boot","Shell gateway client initialized.")}catch(T){const G=T instanceof Error?T.message:String(T);r(G),$t("wshell.boot ERROR",G,"error")}},[$t]);const va=Q.useCallback((T,G=!1)=>Zf(T)?(q({type:"scene/snapshot",scene:T,preferActive:G}),!0):!1,[]),J=Q.useCallback(async(T,G={},Gt=!1)=>{if(!c)throw new Error("Shell gateway client is not initialized.");try{const vt=await c.request(T,G);return Gt||$t(T,vt),vt}catch(vt){const ga=vt instanceof Error?vt.message:String(vt);throw $t(`${T} ERROR`,ga,"error"),vt}},[c,$t]),Fe=Q.useCallback(async()=>{if(c)try{N(await c.health())}catch(T){$t("health ERROR",T instanceof Error?T.message:String(T),"error")}},[c,$t]),ue=Q.useCallback(async(T=!1)=>{const G=await J("avatar.scene.getStatus",{},!0);q({type:"scene/snapshot",scene:G,preferActive:T})},[J]),ma=Q.useCallback(async()=>{const T=await J("pet.list",{},!0);B(T.pets??[]),Ht(T.errors??[])},[J]),De=Q.useCallback(async()=>{const T=await J("shader.spot.list",{},!0);return C(T),T},[J]),El=Q.useCallback(async T=>{const G=await J("shader.spot.get",{id:T},!0);jt(G),Et(G.source),Kt({valid:G.valid,errors:G.errors??[]})},[J]),Ve=Q.useCallback(async()=>{const T=await J("shader.transition.list",{},!0);return tt(T),T},[J]),Xt=Q.useCallback(async T=>{const G=await J("shader.transition.get",{id:T},!0);k(G),wt(G.maskSource),Bt(G.tintSource),Yt({valid:G.valid,errors:G.errors??[]})},[J]),_e=Q.useCallback(async()=>{const T=await J("script.list",{},!0);b(T),$(G=>G&&T.some(Gt=>Gt.id===G)?G:T.find(Gt=>Gt.id==="flaregeddon")?.id??T[0]?.id??null)},[J]),pe=Q.useCallback(async()=>{const T=await J("script.getStatus",{},!0);ot(Z0(T))},[J]),Ie=Q.useCallback(async()=>{const T=await J("desktop.windows.list",{},!0);v(T)},[J]),Ge=Q.useCallback(async()=>{const T=await J("permission.pending",{},!0);H(T)},[J]),au=Q.useCallback(async()=>{await Promise.allSettled([Fe(),Ie(),Ge()])},[Fe,Ge,Ie]),Sa=Q.useCallback(async()=>{await Promise.allSettled([Fe(),ma(),De(),Ve(),ue(),_e(),pe(),Ie(),Ge()])},[Fe,Ge,ma,ue,pe,_e,De,Ve,Ie]);Q.useEffect(()=>{if(!c)return;Sa();const T=window.setInterval(()=>void au(),5e3),G=window.setInterval(()=>void pe(),1500),Gt=c.subscribe(vt=>{typeof vt.sequence=="number"&&(bl.current=Math.max(bl.current,vt.sequence)),q({type:"event/received",event:vt}),$t(vt.name??"event",vt),vt.name==="scene.changed"&&!Zf(vt.data)&&ue(),(vt.name==="script.log"||vt.name==="script.started"||vt.name==="script.stopped")&&Promise.allSettled([_e(),pe()]),vt.name==="shader.spot.changed"&&(De(),El(x.draft.shaderSpotId||"classic-cyan")),vt.name==="shader.transition.changed"&&(Ve(),Xt(x.draft.transitionStyle||"energy-bloom"))},vt=>$t("events ERROR",vt,"error"),{afterSequence:()=>bl.current});return()=>{window.clearInterval(T),window.clearInterval(G),Gt()}},[c,El,Xt,$t,Sa,au,ue,pe,_e,De,Ve,x.draft.shaderSpotId,x.draft.transitionStyle]);const Pe=w[0]?.id??"",un=Q.useMemo(()=>A.find(T=>T.id===R)??null,[A,R]);Q.useEffect(()=>{q({type:"pet/firstChanged",firstPetId:Pe})},[Pe]),Q.useEffect(()=>{ct(un?oh(un,Pe):{})},[Pe,un]),Q.useEffect(()=>{!c||x.draft.provider!=="shader-spot"||El(x.draft.shaderSpotId||"classic-cyan")},[c,El,x.draft.provider,x.draft.shaderSpotId]),Q.useEffect(()=>{c&&Xt(x.draft.transitionStyle||"energy-bloom")},[c,Xt,x.draft.transitionStyle]);const Ot=Q.useCallback(async(T,G,Gt=!1)=>{const vt=await J(T,G);va(vt,Gt)||await ue(Gt),await Promise.allSettled([pe(),_e()])},[va,ue,pe,_e,J]),ie=Q.useCallback(async(T,G)=>{await J("script.start",{id:T,parameters:G}),await Promise.allSettled([_e(),pe(),ue()])},[ue,pe,_e,J]),Ke={showOverlay:()=>void J("overlay.show").then(()=>Fe()),hideOverlay:()=>void J("overlay.hide").then(()=>Fe()),refreshAll:()=>void Sa(),reloadPets:()=>void J("pet.reload").then(T=>(V0(T)&&(B(T.pets??[]),Ht(T.errors??[])),ue())),add3d:()=>void Ot("avatar.entity.create",{provider:"3d-shaded",name:"3D shaded",transitionStyle:x.draft.transitionStyle||Dt[0]?.id||"energy-bloom",material:hh()},!0),addShader:()=>void Ot("avatar.entity.create",{provider:"shader-spot",name:"Shader spot",shaderSpotId:x.draft.shaderSpotId||L[0]?.id||"classic-cyan",transitionStyle:x.draft.transitionStyle||Dt[0]?.id||"energy-bloom"},!0),addPet:()=>void Ot("avatar.entity.create",{provider:"pet-shaded",selectedPetId:Pe,name:um(w,Pe),transitionStyle:x.draft.transitionStyle||Dt[0]?.id||"energy-bloom",material:hh()},!0),addLight:()=>void Ot("avatar.entity.create",{provider:"point-light",name:"Point light",transitionStyle:x.draft.transitionStyle||Dt[0]?.id||"energy-bloom",position:{x:240,y:160,width:160,height:160},light:nm()},!0),addPodium:()=>void Ot("avatar.entity.create",{provider:"podium",name:"Podium",transitionStyle:x.draft.transitionStyle||Dt[0]?.id||"energy-bloom",position:{x:180,y:560,width:760,height:240},material:lm(),podiumSurface:am()},!0),updateRoomLighting:T=>D(G=>({...G,...T})),applyRoomLighting:()=>void Ot("avatar.scene.updateSettings",{lighting:dh(U)}),resetRoomLighting:()=>{const T=Qf(null);D(T),Ot("avatar.scene.updateSettings",{lighting:dh(T)})},removeSelectedEntity:()=>{x.selectedEntityId&&Ot("avatar.entity.remove",{id:x.selectedEntityId},!0)},selectEntity:T=>{q({type:"scene/select",id:T}),Ot("avatar.entity.select",{id:T},!0)},updateDraft:T=>q({type:"draft/change",patch:T}),applyEntity:T=>{if(T.preventDefault(),!x.selectedEntityId){$t("entity.update ERROR","Select an entity first.","error");return}Ot("avatar.entity.update",{id:x.selectedEntityId,name:x.draft.name.trim()||x.selectedEntityId,provider:x.draft.provider,selectedPetId:(x.draft.provider==="pet-shaded",x.draft.selectedPetId||null),shaderSpotId:x.draft.provider==="shader-spot"?x.draft.shaderSpotId||"classic-cyan":null,material:x.draft.provider==="3d-shaded"||x.draft.provider==="pet-shaded"||x.draft.provider==="podium"?I0(x.draft):null,light:x.draft.provider==="point-light"?P0(x.draft):null,podiumSurface:x.draft.provider==="podium"?tm(x.draft):null,surfaceAttachment:x.draft.provider==="3d-shaded"||x.draft.provider==="pet-shaded"?em(x.draft):null,state:x.draft.state,transitionStyle:x.draft.transitionStyle,visible:x.draft.visible,position:{x:da(x.draft.x,96),y:da(x.draft.y,96),width:da(x.draft.width,512),height:da(x.draft.height,512)}})},resizeEntity:()=>{x.selectedEntityId&&Ot("avatar.entity.resize",{id:x.selectedEntityId,width:da(x.draft.width,512),height:da(x.draft.height,512)})},setMotion:()=>{x.selectedEntityId&&Ot("avatar.entity.motion.setMode",{id:x.selectedEntityId,mode:x.draft.motionMode,velocityPxPerSecond:da(x.draft.motionSpeed,90)})},pauseMotion:()=>{x.selectedEntityId&&Ot("avatar.entity.motion.pause",{id:x.selectedEntityId,reason:"wshell"})},resumeMotion:()=>{x.selectedEntityId&&Ot("avatar.entity.motion.resume",{id:x.selectedEntityId})},selectShaderSpot:T=>{q({type:"draft/change",patch:{shaderSpotId:T}}),El(T)},updateShaderSource:Et,validateShaderSpot:()=>{J("shader.spot.validate",{source:It}).then(Kt)},saveShaderSpot:()=>{Sh({request:J,document:qt,source:It}).then(async T=>{Kt(T.validation),T.document&&(jt(T.document),Et(T.document.source),q({type:"draft/change",patch:{shaderSpotId:T.document.id}}),await De())})},duplicateShaderSpot:()=>{const T=qt;J("shader.spot.save",{id:`custom-${Date.now()}`,name:`${T?.name??"Shader spot"} copy`,description:T?.description??"User shader spot",source:It}).then(async G=>{ph(G)&&(jt(G),Et(G.source),Kt({valid:G.valid,errors:G.errors??[]}),q({type:"draft/change",patch:{shaderSpotId:G.id}}),await De())})},deleteShaderSpot:()=>{!qt||qt.readOnly||J("shader.spot.delete",{id:qt.id}).then(async()=>{q({type:"draft/change",patch:{shaderSpotId:"classic-cyan"}}),await Promise.allSettled([De(),El("classic-cyan"),ue(!0)])})},applyShaderSpot:()=>{x.selectedEntityId&&$0({request:J,updateEntity:T=>Ot("avatar.entity.update",T,!0),entityId:x.selectedEntityId,document:qt,source:It,selectedShaderSpotId:x.draft.shaderSpotId||"classic-cyan"}).then(async T=>{Kt(T.validation),T.document&&(jt(T.document),Et(T.document.source),q({type:"draft/change",patch:{shaderSpotId:T.document.id}})),T.saved&&await De()})},selectShaderTransition:T=>{q({type:"draft/change",patch:{transitionStyle:T}}),Xt(T)},updateTransitionMaskSource:wt,updateTransitionTintSource:Bt,validateShaderTransition:()=>{J("shader.transition.validate",{maskSource:Nt,tintSource:xt}).then(Yt)},saveShaderTransition:()=>{gh({request:J,document:bt,maskSource:Nt,tintSource:xt}).then(async T=>{Yt(T.validation),T.document&&(k(T.document),wt(T.document.maskSource),Bt(T.document.tintSource),q({type:"draft/change",patch:{transitionStyle:T.document.id}}),await Ve())})},duplicateShaderTransition:()=>{const T=bt;J("shader.transition.save",{id:`transition-${Date.now()}`,name:`${T?.name??"Shader transition"} copy`,description:T?.description??"User shader transition",maskSource:Nt,tintSource:xt}).then(async G=>{bh(G)?(k(G),wt(G.maskSource),Bt(G.tintSource),Yt({valid:G.valid,errors:G.errors??[]}),q({type:"draft/change",patch:{transitionStyle:G.id}}),await Ve()):Yt(Eh(G)??{valid:!1,errors:["Transition duplicate returned an unsupported response."]})})},deleteShaderTransition:()=>{!bt||bt.readOnly||J("shader.transition.delete",{id:bt.id}).then(async()=>{q({type:"draft/change",patch:{transitionStyle:"energy-bloom"}}),await Promise.allSettled([Ve(),Xt("energy-bloom"),ue(!0)])})},applyShaderTransition:()=>{x.selectedEntityId&&W0({request:J,updateEntity:T=>Ot("avatar.entity.update",T,!0),entityId:x.selectedEntityId,document:bt,maskSource:Nt,tintSource:xt,selectedTransitionId:x.draft.transitionStyle||"energy-bloom"}).then(async T=>{Yt(T.validation),T.document&&(k(T.document),wt(T.document.maskSource),Bt(T.document.tintSource),q({type:"draft/change",patch:{transitionStyle:T.document.id}})),T.saved&&await Ve()})},selectScript:$,updateScriptParameter:(T,G)=>ct(Gt=>({...Gt,[T]:G})),validateScript:()=>R&&void J("script.validate",{id:R}).then(()=>_e()),startScript:()=>R&&void ie(R,P),startScriptById:T=>{const G=A.find(Gt=>Gt.id===T);G&&($(T),ie(T,oh(G,Pe)))},stopScript:()=>R&&void J("script.stop",{id:R}).then(()=>Promise.allSettled([_e(),pe(),ue()])),getScriptStatus:()=>void J("script.getStatus",R?{id:R}:{}),getScriptLogs:()=>void J("script.log.tail",R?{id:R,limit:40}:{limit:40}),refreshWindows:()=>void Ie(),focusWindow:T=>void J("desktop.window.focus",{id:T}).then(()=>Ie()),captureScreen:()=>void J("desktop.captureScreen",{}),findDesktopText:()=>{const T=kt.trim();if(!T){$t("desktop.vision.findText ERROR","Enter text to find.","error");return}J("desktop.vision.findText",{text:T,minConfidence:.65})},updateDesktopTextQuery:_t,tailAudit:()=>void J("audit.tail",{limit:40}),refreshPending:()=>void Ge(),resolvePermission:(T,G)=>void J("permission.resolve",{id:T,approved:G}).then(()=>Promise.allSettled([Ge(),J("audit.tail",{limit:20},!0).then(Gt=>$t("audit.tail",Gt))]))};return s.jsx(H0,{bootError:h,health:E,sceneState:x,roomLightingDraft:U,pets:w,petErrors:et,shaderSpots:L,shaderDocument:qt,shaderSource:It,shaderSourceDirty:lu,shaderValidation:Pt,shaderTransitions:Dt,transitionDocument:bt,transitionMaskSource:Nt,transitionTintSource:xt,transitionSourceDirty:We,transitionValidation:oe,scripts:A,scriptStatuses:Z,windows:dt,pending:M,selectedScriptId:R,scriptParameters:P,desktopTextQuery:kt,activity:wl,actions:Ke})}function H0({bootError:c,health:d,sceneState:h,roomLightingDraft:r,pets:E,petErrors:N,shaderSpots:x,shaderDocument:q,shaderSource:U,shaderSourceDirty:D,shaderValidation:w,shaderTransitions:B,transitionDocument:et,transitionMaskSource:Ht,transitionTintSource:L,transitionSourceDirty:C,transitionValidation:qt,scripts:jt,scriptStatuses:It,windows:Et,pending:Pt,selectedScriptId:Kt,scriptParameters:Dt,desktopTextQuery:tt,activity:bt,actions:k}){if(c)return s.jsxs("main",{className:"boot-error",children:[s.jsx("h1",{children:"Snov Control Room"}),s.jsx("p",{children:c})]});const Nt=h.scene,wt=Ei(Nt,h.selectedEntityId),xt=Nt.entities.filter(b=>b.provider==="podium"),Bt=jt.find(b=>b.id===Kt)??null,oe=new Map(It.map(b=>[b.id,b])),Yt=Bt?oe.get(Bt.id)??null:null,A=jt.some(b=>b.id==="flaregeddon");return s.jsxs("div",{className:"app-shell",children:[s.jsxs("header",{className:"topbar",children:[s.jsxs("div",{children:[s.jsx("h1",{children:"Snov Control Room"}),s.jsx("p",{children:d?`v${d.appVersion} · gateway ${d.state}${d.port?`:${d.port}`:""}`:"connecting"})]}),s.jsxs("div",{className:"status-strip",children:[s.jsx(pi,{label:"Version",value:d?`v${d.appVersion}`:"unknown"}),s.jsx(pi,{label:"Gateway",value:d?.state??"unknown",tone:d?.state==="started"?"good":"warn"}),s.jsx(pi,{label:"Events",value:`#${h.lastEventSequence}`}),s.jsx(pi,{label:"Scene",value:`${Nt.entities.length}`})]}),s.jsxs("div",{className:"toolbar",children:[s.jsx(bi,{label:"Show overlay",icon:s.jsx(l0,{size:16}),onClick:k.showOverlay}),s.jsx(bi,{label:"Hide overlay",icon:s.jsx(t0,{size:16}),onClick:k.hideOverlay}),s.jsx(bi,{label:"Refresh",icon:s.jsx(ah,{size:16}),onClick:k.refreshAll}),s.jsx(bi,{label:"Reload pets",icon:s.jsx(r0,{size:16}),onClick:k.reloadPets})]})]}),s.jsxs("main",{className:"control-room",children:[s.jsxs("section",{className:"panel scene-panel",children:[s.jsx(oa,{title:"Scene",detail:`${Nt.entities.length} entities`}),s.jsxs("div",{className:"command-row scene-actions",children:[s.jsxs("button",{type:"button",onClick:k.add3d,children:[s.jsx(ha,{size:15})," 3D"]}),s.jsxs("button",{type:"button",onClick:k.addPet,disabled:!E[0],children:[s.jsx(ha,{size:15})," Pet"]}),s.jsxs("button",{type:"button",onClick:k.addPodium,children:[s.jsx(ha,{size:15})," Podium"]}),s.jsxs("button",{type:"button",onClick:k.addLight,children:[s.jsx(ha,{size:15})," Light"]}),s.jsxs("button",{type:"button",onClick:k.addShader,children:[s.jsx(ha,{size:15})," Shader"]}),s.jsxs("button",{type:"button",onClick:()=>k.startScriptById("flaregeddon"),disabled:!A,children:[s.jsx(eu,{size:15})," Flaregeddon"]}),s.jsxs("button",{type:"button",onClick:k.removeSelectedEntity,disabled:!h.selectedEntityId,children:[s.jsx(wf,{size:15})," Remove"]})]}),s.jsx(q0,{draft:r,actions:k}),Nt.entities.length===0?s.jsxs("div",{className:"zero-state",children:[s.jsx("strong",{children:"No entities on screen"}),s.jsx("span",{children:"0 active entities"})]}):s.jsx("div",{className:"entity-list",children:Nt.entities.map(b=>s.jsxs("button",{className:b.id===h.selectedEntityId?"entity-row selected":"entity-row",type:"button",onClick:()=>k.selectEntity(b.id),children:[s.jsx("strong",{children:b.name}),s.jsxs("span",{children:[b.provider," / ",b.state," / ",b.visible===!1?"hidden":"visible"]}),b.surfaceAttachment?s.jsxs("span",{children:["on ",xt.find(Z=>Z.id===b.surfaceAttachment?.surfaceEntityId)?.name??b.surfaceAttachment.surfaceEntityId]}):null,s.jsxs("span",{children:[b.transitionName??b.transitionStyle,b.transitionError?" / transition error":""]}),s.jsxs("span",{children:[b.position.x,", ",b.position.y,", ",b.position.width,"x",b.position.height]})]},b.id))})]}),s.jsxs("section",{className:"panel editor-panel",children:[s.jsx(oa,{title:"Entity Inspector",detail:wt?.id??"none"}),wt?s.jsx(B0,{draft:h.draft,pets:E,podiums:xt,shaderSpots:x,shaderDocument:q,shaderSource:U,shaderSourceDirty:D,shaderValidation:w,shaderTransitions:B,transitionDocument:et,transitionMaskSource:Ht,transitionTintSource:L,transitionSourceDirty:C,transitionValidation:qt,actions:k}):s.jsxs("div",{className:"empty-panel",children:[s.jsx("strong",{children:"No entity selected"}),s.jsx("span",{children:Nt.entities.length===0?"Scene is empty":"Select an entity"})]})]}),s.jsxs("section",{className:"panel scenarios-panel",children:[s.jsx(oa,{title:"Scenarios",detail:`${jt.length} loaded`}),s.jsx("div",{className:"scenario-grid",children:jt.map(b=>{const Z=oe.get(b.id);return s.jsxs("button",{className:b.id===Kt?"scenario-card selected":"scenario-card",type:"button",onClick:()=>k.selectScript(b.id),children:[s.jsx("span",{children:im(b)}),s.jsx("strong",{children:b.name}),s.jsxs("small",{children:[Z?.running||b.running?"running":"stopped"," / ",b.valid===!1?"invalid":"valid"]})]},b.id)})}),Bt?s.jsxs("div",{className:"scenario-detail",children:[s.jsxs("div",{className:"scenario-heading",children:[s.jsxs("div",{children:[s.jsx("strong",{children:Bt.name}),s.jsx("span",{children:Bt.id})]}),s.jsx(Q0,{status:Yt})]}),s.jsx("div",{className:"script-controls",children:(Bt.parameters??[]).map(b=>s.jsx(G0,{parameter:b,pets:E,value:Dt[b.id]??"",onChange:Z=>k.updateScriptParameter(b.id,Z)},b.id))}),s.jsxs("div",{className:"command-row",children:[s.jsxs("button",{type:"button",onClick:k.validateScript,children:[s.jsx(an,{size:15})," Validate"]}),s.jsxs("button",{type:"button",onClick:k.startScript,children:[s.jsx(eu,{size:15})," Start"]}),s.jsxs("button",{type:"button",onClick:k.stopScript,children:[s.jsx(m0,{size:15})," Stop"]}),s.jsxs("button",{type:"button",onClick:k.getScriptStatus,children:[s.jsx(Fv,{size:15})," Status"]}),s.jsxs("button",{type:"button",onClick:k.getScriptLogs,children:[s.jsx(tu,{size:15})," Logs"]})]})]}):null]}),s.jsxs("section",{className:"panel desktop-panel",children:[s.jsx(oa,{title:"Desktop",detail:`${Et.length} windows`}),s.jsxs("div",{className:"desktop-tools",children:[s.jsxs("button",{type:"button",onClick:k.refreshWindows,children:[s.jsx(ah,{size:15})," Refresh"]}),s.jsxs("button",{type:"button",onClick:k.captureScreen,children:[s.jsx(tu,{size:15})," Capture"]}),s.jsx("input",{value:tt,onChange:b=>k.updateDesktopTextQuery(b.target.value),placeholder:"Text"}),s.jsxs("button",{type:"button",onClick:k.findDesktopText,children:[s.jsx(d0,{size:15})," Find"]})]}),s.jsx("div",{className:"window-list",children:Et.slice(0,14).map(b=>s.jsxs("button",{type:"button",onClick:()=>k.focusWindow(b.id),children:[s.jsx("strong",{children:b.title||"(untitled)"}),s.jsxs("span",{children:[b.processName??"process"," ",b.processId??"",b.isForeground?" / foreground":""]})]},b.id))})]}),s.jsxs("section",{className:"panel trust-panel",children:[s.jsx(oa,{title:"Trust",detail:`${Pt.length} pending`}),s.jsxs("div",{className:"command-row",children:[s.jsxs("button",{type:"button",onClick:k.refreshPending,children:[s.jsx(y0,{size:15})," Pending"]}),s.jsxs("button",{type:"button",onClick:k.tailAudit,children:[s.jsx(tu,{size:15})," Audit"]})]}),s.jsx("div",{className:"permission-list",children:Pt.map(b=>s.jsxs("div",{className:"permission-row",children:[s.jsxs("div",{children:[s.jsx("strong",{children:b.method??b.id}),s.jsx("span",{children:b.summary??b.actor??"pending request"})]}),s.jsx("button",{type:"button",onClick:()=>k.resolvePermission(b.id,!0),children:s.jsx(an,{size:15})}),s.jsx("button",{type:"button",onClick:()=>k.resolvePermission(b.id,!1),children:s.jsx(p0,{size:15})})]},b.id))})]}),s.jsxs("section",{className:"panel activity-panel",children:[s.jsx(oa,{title:"Activity",detail:`${bt.length} records`}),s.jsx("div",{className:"activity-list",children:bt.map(b=>s.jsxs("article",{className:b.kind==="error"?"activity-record error":"activity-record",children:[s.jsx("strong",{children:b.label}),s.jsx("pre",{children:b.body})]},b.id))})]}),N.length>0?s.jsxs("section",{className:"panel errors-panel",children:[s.jsx(oa,{title:"Pet Errors",detail:`${N.length}`}),N.map(b=>s.jsx("p",{children:b},b))]}):null]})]})}function q0({draft:c,actions:d}){return s.jsxs("div",{className:"room-lighting",children:[s.jsxs("label",{children:["Ambient",s.jsx("input",{type:"color",value:c.ambientColor,onChange:h=>d.updateRoomLighting({ambientColor:h.target.value})})]}),s.jsx(fe,{label:"Intensity",value:c.ambientIntensity,onChange:h=>d.updateRoomLighting({ambientIntensity:h})}),s.jsxs("div",{className:"room-lighting-actions",children:[s.jsxs("button",{type:"button",onClick:d.applyRoomLighting,children:[s.jsx(an,{size:15})," Apply lighting"]}),s.jsx("button",{type:"button",onClick:d.resetRoomLighting,children:"Reset"})]})]})}function B0({draft:c,pets:d,podiums:h,shaderSpots:r,shaderDocument:E,shaderSource:N,shaderSourceDirty:x,shaderValidation:q,shaderTransitions:U,transitionDocument:D,transitionMaskSource:w,transitionTintSource:B,transitionSourceDirty:et,transitionValidation:Ht,actions:L}){return s.jsxs(s.Fragment,{children:[s.jsxs("form",{className:"entity-form",onSubmit:L.applyEntity,children:[s.jsxs("label",{children:["Name",s.jsx("input",{value:c.name,onChange:C=>L.updateDraft({name:C.target.value})})]}),s.jsxs("label",{children:["Provider",s.jsx("select",{value:c.provider,onChange:C=>L.updateDraft({provider:C.target.value}),children:C0.map(C=>s.jsx("option",{value:C,children:C},C))})]}),c.provider==="shader-spot"?s.jsxs("label",{children:["Shader spot",s.jsx("select",{value:c.shaderSpotId,onChange:C=>L.selectShaderSpot(C.target.value),children:r.map(C=>s.jsxs("option",{value:C.id,children:[C.name," (",C.sourceKind,")"]},C.id))})]}):null,c.provider==="pet-shaded"?s.jsxs("label",{children:["Pet",s.jsxs("select",{value:c.selectedPetId,onChange:C=>L.updateDraft({selectedPetId:C.target.value}),children:[s.jsx("option",{value:"",children:"none"}),d.map(C=>s.jsxs("option",{value:C.id,children:[C.displayName," (",C.sourceKind,")"]},C.id))]})]}):null,c.provider==="3d-shaded"||c.provider==="pet-shaded"||c.provider==="podium"?s.jsxs(s.Fragment,{children:[s.jsxs("label",{children:["Material color",s.jsx("input",{type:"color",value:c.materialBaseColor,onChange:C=>L.updateDraft({materialBaseColor:C.target.value})})]}),s.jsx(fe,{label:"Roughness",value:c.materialRoughness,onChange:C=>L.updateDraft({materialRoughness:C})}),s.jsx(fe,{label:"Roundness",value:c.materialRoundness,onChange:C=>L.updateDraft({materialRoundness:C})}),s.jsx(fe,{label:"Height",value:c.materialHeight,onChange:C=>L.updateDraft({materialHeight:C})}),s.jsx(fe,{label:"Parallax",value:c.materialParallaxDepth,onChange:C=>L.updateDraft({materialParallaxDepth:C})})]}):null,c.provider==="podium"?s.jsxs(s.Fragment,{children:[s.jsx(fe,{label:"Surface top",value:c.podiumSurfaceTopRatio,onChange:C=>L.updateDraft({podiumSurfaceTopRatio:C})}),s.jsx(fe,{label:"Left inset",value:c.podiumSurfaceLeftInsetRatio,onChange:C=>L.updateDraft({podiumSurfaceLeftInsetRatio:C})}),s.jsx(fe,{label:"Right inset",value:c.podiumSurfaceRightInsetRatio,onChange:C=>L.updateDraft({podiumSurfaceRightInsetRatio:C})})]}):null,c.provider==="3d-shaded"||c.provider==="pet-shaded"?s.jsxs(s.Fragment,{children:[s.jsxs("label",{children:["Surface",s.jsxs("select",{value:c.surfaceEntityId,onChange:C=>L.updateDraft({surfaceEntityId:C.target.value}),children:[s.jsx("option",{value:"",children:"none"}),h.map(C=>s.jsx("option",{value:C.id,children:C.name},C.id))]})]}),s.jsx(fe,{label:"Surface X offset",value:c.surfaceOffsetXPx,onChange:C=>L.updateDraft({surfaceOffsetXPx:C})})]}):null,c.provider==="point-light"?s.jsxs(s.Fragment,{children:[s.jsxs("label",{children:["Light color",s.jsx("input",{type:"color",value:c.lightColor,onChange:C=>L.updateDraft({lightColor:C.target.value})})]}),s.jsx(fe,{label:"Intensity",value:c.lightIntensity,onChange:C=>L.updateDraft({lightIntensity:C})}),s.jsx(fe,{label:"Radius",value:c.lightRadiusPx,onChange:C=>L.updateDraft({lightRadiusPx:C})}),s.jsx(fe,{label:"Z",value:c.lightZPx,onChange:C=>L.updateDraft({lightZPx:C})})]}):null,s.jsxs("label",{children:["State",s.jsx("select",{value:c.state,onChange:C=>L.updateDraft({state:C.target.value}),children:M0.map(C=>s.jsx("option",{value:C,children:C},C))})]}),s.jsxs("label",{children:["Transition",s.jsx("select",{value:c.transitionStyle,onChange:C=>L.selectShaderTransition(C.target.value),children:U.map(C=>s.jsxs("option",{value:C.id,children:[C.name," (",C.sourceKind,")"]},C.id))})]}),s.jsxs("label",{className:"check-field",children:[s.jsx("input",{type:"checkbox",checked:c.visible,onChange:C=>L.updateDraft({visible:C.target.checked})}),"Visible"]}),s.jsx(fe,{label:"X",value:c.x,onChange:C=>L.updateDraft({x:C})}),s.jsx(fe,{label:"Y",value:c.y,onChange:C=>L.updateDraft({y:C})}),s.jsx(fe,{label:"Width",value:c.width,onChange:C=>L.updateDraft({width:C})}),s.jsx(fe,{label:"Height",value:c.height,onChange:C=>L.updateDraft({height:C})}),s.jsxs("label",{children:["Preset",s.jsxs("select",{value:"",onChange:C=>L.updateDraft({width:C.target.value,height:C.target.value}),children:[s.jsx("option",{value:"",children:"choose"}),U0.map(C=>s.jsxs("option",{value:C,children:[C,"px"]},C))]})]}),s.jsxs("div",{className:"form-actions",children:[s.jsxs("button",{type:"submit",children:[s.jsx(an,{size:15})," Apply entity"]}),s.jsx("button",{type:"button",onClick:L.resizeEntity,children:"Resize"})]})]}),s.jsxs("div",{className:"motion-row",children:[s.jsx("select",{value:c.motionMode,onChange:C=>L.updateDraft({motionMode:C.target.value}),children:N0.map(C=>s.jsx("option",{value:C,children:C},C))}),s.jsx("input",{value:c.motionSpeed,onChange:C=>L.updateDraft({motionSpeed:C.target.value}),inputMode:"numeric"}),s.jsx("button",{type:"button",onClick:L.setMotion,children:"Set motion"}),s.jsxs("button",{type:"button",onClick:L.pauseMotion,children:[s.jsx(u0,{size:15})," Pause"]}),s.jsxs("button",{type:"button",onClick:L.resumeMotion,children:[s.jsx(eu,{size:15})," Resume"]})]}),c.provider==="shader-spot"?s.jsx(Y0,{shaderSpots:r,document:E,source:N,dirty:x,validation:q,selectedId:c.shaderSpotId,actions:L}):null,s.jsx(X0,{transitions:U,document:D,maskSource:w,tintSource:B,dirty:et,validation:Ht,selectedId:c.transitionStyle,actions:L})]})}function Y0({shaderSpots:c,document:d,source:h,dirty:r,validation:E,selectedId:N,actions:x}){return s.jsxs("div",{className:"shader-editor",children:[s.jsx("div",{className:"shader-gallery",children:c.map(q=>s.jsxs("button",{className:q.id===N?"shader-card selected":"shader-card",type:"button",onClick:()=>x.selectShaderSpot(q.id),children:[s.jsx("strong",{children:q.name}),s.jsxs("span",{children:[q.sourceKind," / ",q.valid?"valid":"invalid"]}),s.jsx("small",{children:q.description})]},q.id))}),s.jsxs("label",{children:["Shader body ",r?"(unsaved)":"",s.jsx("textarea",{value:h,onChange:q=>x.updateShaderSource(q.target.value),spellCheck:!1})]}),s.jsxs("div",{className:"command-row shader-actions",children:[s.jsxs("button",{type:"button",onClick:x.validateShaderSpot,children:[s.jsx(an,{size:15})," Validate"]}),s.jsxs("button",{type:"button",onClick:x.saveShaderSpot,children:[s.jsx(tu,{size:15})," Save"]}),s.jsxs("button",{type:"button",onClick:x.duplicateShaderSpot,children:[s.jsx(ha,{size:15})," Duplicate"]}),s.jsxs("button",{type:"button",onClick:x.applyShaderSpot,children:[s.jsx(eu,{size:15})," Apply to Entity"]}),s.jsxs("button",{type:"button",onClick:x.deleteShaderSpot,disabled:!d||d.readOnly,children:[s.jsx(wf,{size:15})," Delete"]})]}),E?s.jsxs("div",{className:E.valid?"validation-result good":"validation-result error",children:[s.jsx("strong",{children:E.valid?"Valid shader":"Shader errors"}),E.errors.length>0?s.jsx("pre",{children:E.errors.join(`
`)}):null]}):null]})}function X0({transitions:c,document:d,maskSource:h,tintSource:r,dirty:E,validation:N,selectedId:x,actions:q}){return s.jsxs("div",{className:"shader-editor",children:[s.jsx("div",{className:"shader-gallery",children:c.map(U=>s.jsxs("button",{className:U.id===x?"shader-card selected":"shader-card",type:"button",onClick:()=>q.selectShaderTransition(U.id),children:[s.jsx("strong",{children:U.name}),s.jsxs("span",{children:[U.sourceKind," / ",U.valid?"valid":"invalid"]}),s.jsx("small",{children:U.description})]},U.id))}),s.jsxs("label",{children:["Transition mask ",E?"(unsaved)":"",s.jsx("textarea",{value:h,onChange:U=>q.updateTransitionMaskSource(U.target.value),spellCheck:!1})]}),s.jsxs("label",{children:["Transition tint ",E?"(unsaved)":"",s.jsx("textarea",{value:r,onChange:U=>q.updateTransitionTintSource(U.target.value),spellCheck:!1})]}),s.jsxs("div",{className:"command-row shader-actions",children:[s.jsxs("button",{type:"button",onClick:q.validateShaderTransition,children:[s.jsx(an,{size:15})," Validate"]}),s.jsxs("button",{type:"button",onClick:q.saveShaderTransition,children:[s.jsx(tu,{size:15})," Save"]}),s.jsxs("button",{type:"button",onClick:q.duplicateShaderTransition,children:[s.jsx(ha,{size:15})," Duplicate"]}),s.jsxs("button",{type:"button",onClick:q.applyShaderTransition,children:[s.jsx(eu,{size:15})," Apply to Entity"]}),s.jsxs("button",{type:"button",onClick:q.deleteShaderTransition,disabled:!d||d.readOnly,children:[s.jsx(wf,{size:15})," Delete"]})]}),N?s.jsxs("div",{className:N.valid?"validation-result good":"validation-result error",children:[s.jsx("strong",{children:N.valid?"Valid transition":"Transition errors"}),N.errors.length>0?s.jsx("pre",{children:N.errors.join(`
`)}):null]}):null]})}function G0({parameter:c,pets:d,value:h,onChange:r}){return s.jsxs("label",{children:[c.label??c.id,c.type==="pet"?s.jsx("select",{value:h,onChange:E=>r(E.target.value),children:d.map(E=>s.jsx("option",{value:E.id,children:E.displayName},E.id))}):c.type==="boolean"?s.jsx("input",{type:"checkbox",checked:h==="true",onChange:E=>r(E.target.checked?"true":"false")}):s.jsx("input",{value:h,onChange:E=>r(E.target.value),inputMode:c.type==="number"?"numeric":void 0})]})}function Q0({status:c}){const d=c?.scriptState??{},h=["elapsedSeconds","spawnedCount","currentCount"].map(r=>[r,d[r]]).filter(([,r])=>r!=null);return h.length===0?s.jsx("span",{className:c?.running?"status-dot good":"status-dot",children:c?.running?"running":"stopped"}):s.jsx("div",{className:"counter-row",children:h.map(([r,E])=>s.jsxs("span",{children:[cm(r)," ",fm(E)]},r))})}function pi({label:c,value:d,tone:h="neutral"}){return s.jsxs("span",{className:`status-pill ${h}`,children:[s.jsx("strong",{children:c}),d]})}function oa({title:c,detail:d}){return s.jsxs("div",{className:"panel-header",children:[s.jsx("h2",{children:c}),s.jsx("span",{children:d})]})}function bi({label:c,icon:d,onClick:h}){return s.jsxs("button",{type:"button",onClick:h,title:c,"aria-label":c,children:[d,s.jsx("span",{children:c})]})}function fe({label:c,value:d,onChange:h}){return s.jsxs("label",{children:[c,s.jsx("input",{value:d,onChange:r=>h(r.target.value),inputMode:"numeric"})]})}function rh(c,d=""){return c==null||c===""?d:String(c)}function oh(c,d){const h={};for(const r of c.parameters??[])h[r.id]=r.type==="pet"?rh(r.default,r.required?d:""):rh(r.default);return h}function Z0(c){return(Array.isArray(c)?c:[c]).filter(L0)}function L0(c){return!!(c&&typeof c=="object"&&"id"in c&&typeof c.id=="string")}function V0(c){return!!(c&&typeof c=="object"&&("pets"in c||"errors"in c))}function K0(c,d){return!c||c.readOnly||c.source!==d}function w0(c,d){return c?c.source!==d:d.trim().length>0}function J0(c,d,h){return!c||c.readOnly||c.maskSource!==d||c.tintSource!==h}function k0(c,d,h){return c?c.maskSource!==d||c.tintSource!==h:d.trim().length>0||h.trim().length>0}async function Sh({request:c,document:d,source:h,idFactory:r=()=>`custom-${Date.now()}`}){const E=d!==null&&!d.readOnly,N=await c("shader.spot.save",{id:E?d.id:r(),name:E?d.name:`${d?.name??"Shader spot"} copy`,description:d?.description??"User shader spot",source:h});return ph(N)?{document:N,validation:{valid:N.valid,errors:N.errors??[]},saved:!0}:{document:null,validation:F0(N)??{valid:!1,errors:["Shader save returned an unsupported response."]},saved:!1}}async function $0({request:c,updateEntity:d,entityId:h,document:r,source:E,selectedShaderSpotId:N,idFactory:x}){const q=await c("shader.spot.validate",{source:E});if(!q.valid)return{document:null,validation:q,saved:!1,applied:!1,shaderSpotId:null};let U=r,D=!1,w=N||r?.id||"classic-cyan";if(K0(r,E)){const B=await Sh({request:c,document:r,source:E,idFactory:x});if(!B.document||!B.validation.valid)return{document:B.document,validation:B.validation,saved:B.saved,applied:!1,shaderSpotId:null};U=B.document,D=!0,w=B.document.id}return await d({id:h,provider:"shader-spot",shaderSpotId:w}),{document:U,validation:q,saved:D,applied:!0,shaderSpotId:w}}async function gh({request:c,document:d,maskSource:h,tintSource:r,idFactory:E=()=>`transition-${Date.now()}`}){const N=d!==null&&!d.readOnly,x=await c("shader.transition.save",{id:N?d.id:E(),name:N?d.name:`${d?.name??"Shader transition"} copy`,description:d?.description??"User shader transition",maskSource:h,tintSource:r});return bh(x)?{document:x,validation:{valid:x.valid,errors:x.errors??[]},saved:!0}:{document:null,validation:Eh(x)??{valid:!1,errors:["Transition save returned an unsupported response."]},saved:!1}}async function W0({request:c,updateEntity:d,entityId:h,document:r,maskSource:E,tintSource:N,selectedTransitionId:x,idFactory:q}){const U=await c("shader.transition.validate",{maskSource:E,tintSource:N});if(!U.valid)return{document:null,validation:U,saved:!1,applied:!1,transitionId:null};let D=r,w=!1,B=x||r?.id||"energy-bloom";if(J0(r,E,N)){const et=await gh({request:c,document:r,maskSource:E,tintSource:N,idFactory:q});if(!et.document||!et.validation.valid)return{document:et.document,validation:et.validation,saved:et.saved,applied:!1,transitionId:null};D=et.document,w=!0,B=et.document.id}return await d({id:h,transitionStyle:B}),{document:D,validation:U,saved:w,applied:!0,transitionId:B}}function ph(c){return!!(c&&typeof c=="object"&&typeof c.id=="string"&&typeof c.source=="string")}function bh(c){return!!(c&&typeof c=="object"&&typeof c.id=="string"&&typeof c.maskSource=="string"&&typeof c.tintSource=="string")}function F0(c){const d=c?.validation;return d&&typeof d=="object"&&typeof d.valid=="boolean"&&Array.isArray(d.errors)?d:null}function Eh(c){const d=c?.validation;return d&&typeof d=="object"&&typeof d.valid=="boolean"&&Array.isArray(d.errors)?d:null}function da(c,d){const h=Number.parseInt(c,10);return Number.isFinite(h)?h:d}function Xe(c,d){const h=Number.parseFloat(c);return Number.isFinite(h)?h:d}function I0(c){return{baseColor:c.materialBaseColor||"#68D8FF",roughness:Xe(c.materialRoughness,.58),roundness:Xe(c.materialRoundness,.28),height:Xe(c.materialHeight,.55),parallaxDepth:Xe(c.materialParallaxDepth,.16)}}function P0(c){return{color:c.lightColor||"#FFDCA8",intensity:Xe(c.lightIntensity,1.4),radiusPx:Xe(c.lightRadiusPx,520),zPx:Xe(c.lightZPx,260)}}function tm(c){return{topRatio:Xe(c.podiumSurfaceTopRatio,.36),leftInsetRatio:Xe(c.podiumSurfaceLeftInsetRatio,.14),rightInsetRatio:Xe(c.podiumSurfaceRightInsetRatio,.14)}}function em(c){return c.surfaceEntityId?{surfaceEntityId:c.surfaceEntityId,offsetXPx:Xe(c.surfaceOffsetXPx,0)}:null}function dh(c){return{ambientColor:c.ambientColor||"#525761",ambientIntensity:Xe(c.ambientIntensity,1)}}function Qf(c){return{ambientColor:c?.ambientColor??"#525761",ambientIntensity:String(c?.ambientIntensity??1)}}function hh(){return{baseColor:"#68D8FF",roughness:.58,roundness:.28,height:.55,parallaxDepth:.16}}function lm(){return{baseColor:"#8B6A4D",roughness:.72,roundness:.16,height:.36,parallaxDepth:.24}}function am(){return{topRatio:.36,leftInsetRatio:.14,rightInsetRatio:.14}}function nm(){return{color:"#FFDCA8",intensity:1.4,radiusPx:520,zPx:260}}function um(c,d){return c.find(h=>h.id===d)?.displayName??"Pet"}function im(c){return/flare|explosion|spawn/i.test(c.id)?"Effects":/walk|bounce|window-top/i.test(c.id)?"Movement":/window|desktop|steam|dota/i.test(c.id)?"Desktop":/remove|cleanup/i.test(c.id)?"Cleanup":"Scenario"}function cm(c){return c==="elapsedSeconds"?"time":c==="spawnedCount"?"spawned":c==="currentCount"?"current":c}function fm(c){return typeof c=="number"?c.toFixed(c%1===0?0:1):String(c)}Vv.createRoot(document.getElementById("root")).render(s.jsx(Q.StrictMode,{children:s.jsx(R0,{})}));
