var kv=Object.defineProperty;var Wv=(r,o,h)=>o in r?kv(r,o,{enumerable:!0,configurable:!0,writable:!0,value:h}):r[o]=h;var Bt=(r,o,h)=>Wv(r,typeof o!="symbol"?o+"":o,h);(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))c(s);new MutationObserver(s=>{for(const T of s)if(T.type==="childList")for(const b of T.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&c(b)}).observe(document,{childList:!0,subtree:!0});function h(s){const T={};return s.integrity&&(T.integrity=s.integrity),s.referrerPolicy&&(T.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?T.credentials="include":s.crossOrigin==="anonymous"?T.credentials="omit":T.credentials="same-origin",T}function c(s){if(s.ep)return;s.ep=!0;const T=h(s);fetch(s.href,T)}})();function Fv(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var jf={exports:{}},Jn={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Jh;function Iv(){if(Jh)return Jn;Jh=1;var r=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function h(c,s,T){var b=null;if(T!==void 0&&(b=""+T),s.key!==void 0&&(b=""+s.key),"key"in s){T={};for(var z in s)z!=="key"&&(T[z]=s[z])}else T=s;return s=T.ref,{$$typeof:r,type:c,key:b,ref:s!==void 0?s:null,props:T}}return Jn.Fragment=o,Jn.jsx=h,Jn.jsxs=h,Jn}var Kh;function Pv(){return Kh||(Kh=1,jf.exports=Iv()),jf.exports}var q=Pv(),qf={exports:{}},et={};/**
 * @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 $h;function t0(){if($h)return et;$h=1;var r=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),b=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),K=Symbol.iterator;function lt(v){return v===null||typeof v!="object"?null:(v=K&&v[K]||v["@@iterator"],typeof v=="function"?v:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,R={};function k(v,D,Y){this.props=v,this.context=D,this.refs=R,this.updater=Y||Z}k.prototype.isReactComponent={},k.prototype.setState=function(v,D){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,D,"setState")},k.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function ut(){}ut.prototype=k.prototype;function I(v,D,Y){this.props=v,this.context=D,this.refs=R,this.updater=Y||Z}var Xt=I.prototype=new ut;Xt.constructor=I,L(Xt,k.prototype),Xt.isPureReactComponent=!0;var Pt=Array.isArray;function Ht(){}var P={H:null,A:null,T:null,S:null},Rt=Object.prototype.hasOwnProperty;function C(v,D,Y){var Q=Y.ref;return{$$typeof:r,type:v,key:D,ref:Q!==void 0?Q:null,props:Y}}function Dt(v,D){return C(v.type,D,v.props)}function zt(v){return typeof v=="object"&&v!==null&&v.$$typeof===r}function U(v){var D={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(Y){return D[Y]})}var W=/\/+/g;function Ot(v,D){return typeof v=="object"&&v!==null&&v.key!=null?U(""+v.key):D.toString(36)}function te(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(Ht,Ht):(v.status="pending",v.then(function(D){v.status==="pending"&&(v.status="fulfilled",v.value=D)},function(D){v.status==="pending"&&(v.status="rejected",v.reason=D)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function _(v,D,Y,Q,tt){var it=typeof v;(it==="undefined"||it==="boolean")&&(v=null);var vt=!1;if(v===null)vt=!0;else switch(it){case"bigint":case"string":case"number":vt=!0;break;case"object":switch(v.$$typeof){case r:case o:vt=!0;break;case G:return vt=v._init,_(vt(v._payload),D,Y,Q,tt)}}if(vt)return tt=tt(v),vt=Q===""?"."+Ot(v,0):Q,Pt(tt)?(Y="",vt!=null&&(Y=vt.replace(W,"$&/")+"/"),_(tt,D,Y,"",function(gl){return gl})):tt!=null&&(zt(tt)&&(tt=Dt(tt,Y+(tt.key==null||v&&v.key===tt.key?"":(""+tt.key).replace(W,"$&/")+"/")+vt)),D.push(tt)),1;vt=0;var ee=Q===""?".":Q+":";if(Pt(v))for(var Mt=0;Mt<v.length;Mt++)Q=v[Mt],it=ee+Ot(Q,Mt),vt+=_(Q,D,Y,it,tt);else if(Mt=lt(v),typeof Mt=="function")for(v=Mt.call(v),Mt=0;!(Q=v.next()).done;)Q=Q.value,it=ee+Ot(Q,Mt++),vt+=_(Q,D,Y,it,tt);else if(it==="object"){if(typeof v.then=="function")return _(te(v),D,Y,Q,tt);throw D=String(v),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return vt}function B(v,D,Y){if(v==null)return v;var Q=[],tt=0;return _(v,Q,"","",function(it){return D.call(Y,it,tt++)}),Q}function V(v){if(v._status===-1){var D=v._result;D=D(),D.then(function(Y){(v._status===0||v._status===-1)&&(v._status=1,v._result=Y)},function(Y){(v._status===0||v._status===-1)&&(v._status=2,v._result=Y)}),v._status===-1&&(v._status=0,v._result=D)}if(v._status===1)return v._result.default;throw v._result}var St=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=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(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},Tt={map:B,forEach:function(v,D,Y){B(v,function(){D.apply(this,arguments)},Y)},count:function(v){var D=0;return B(v,function(){D++}),D},toArray:function(v){return B(v,function(D){return D})||[]},only:function(v){if(!zt(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return et.Activity=H,et.Children=Tt,et.Component=k,et.Fragment=h,et.Profiler=s,et.PureComponent=I,et.StrictMode=c,et.Suspense=x,et.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,et.__COMPILER_RUNTIME={__proto__:null,c:function(v){return P.H.useMemoCache(v)}},et.cache=function(v){return function(){return v.apply(null,arguments)}},et.cacheSignal=function(){return null},et.cloneElement=function(v,D,Y){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var Q=L({},v.props),tt=v.key;if(D!=null)for(it in D.key!==void 0&&(tt=""+D.key),D)!Rt.call(D,it)||it==="key"||it==="__self"||it==="__source"||it==="ref"&&D.ref===void 0||(Q[it]=D[it]);var it=arguments.length-2;if(it===1)Q.children=Y;else if(1<it){for(var vt=Array(it),ee=0;ee<it;ee++)vt[ee]=arguments[ee+2];Q.children=vt}return C(v.type,tt,Q)},et.createContext=function(v){return v={$$typeof:b,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:T,_context:v},v},et.createElement=function(v,D,Y){var Q,tt={},it=null;if(D!=null)for(Q in D.key!==void 0&&(it=""+D.key),D)Rt.call(D,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(tt[Q]=D[Q]);var vt=arguments.length-2;if(vt===1)tt.children=Y;else if(1<vt){for(var ee=Array(vt),Mt=0;Mt<vt;Mt++)ee[Mt]=arguments[Mt+2];tt.children=ee}if(v&&v.defaultProps)for(Q in vt=v.defaultProps,vt)tt[Q]===void 0&&(tt[Q]=vt[Q]);return C(v,it,tt)},et.createRef=function(){return{current:null}},et.forwardRef=function(v){return{$$typeof:z,render:v}},et.isValidElement=zt,et.lazy=function(v){return{$$typeof:G,_payload:{_status:-1,_result:v},_init:V}},et.memo=function(v,D){return{$$typeof:y,type:v,compare:D===void 0?null:D}},et.startTransition=function(v){var D=P.T,Y={};P.T=Y;try{var Q=v(),tt=P.S;tt!==null&&tt(Y,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(Ht,St)}catch(it){St(it)}finally{D!==null&&Y.types!==null&&(D.types=Y.types),P.T=D}},et.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},et.use=function(v){return P.H.use(v)},et.useActionState=function(v,D,Y){return P.H.useActionState(v,D,Y)},et.useCallback=function(v,D){return P.H.useCallback(v,D)},et.useContext=function(v){return P.H.useContext(v)},et.useDebugValue=function(){},et.useDeferredValue=function(v,D){return P.H.useDeferredValue(v,D)},et.useEffect=function(v,D){return P.H.useEffect(v,D)},et.useEffectEvent=function(v){return P.H.useEffectEvent(v)},et.useId=function(){return P.H.useId()},et.useImperativeHandle=function(v,D,Y){return P.H.useImperativeHandle(v,D,Y)},et.useInsertionEffect=function(v,D){return P.H.useInsertionEffect(v,D)},et.useLayoutEffect=function(v,D){return P.H.useLayoutEffect(v,D)},et.useMemo=function(v,D){return P.H.useMemo(v,D)},et.useOptimistic=function(v,D){return P.H.useOptimistic(v,D)},et.useReducer=function(v,D,Y){return P.H.useReducer(v,D,Y)},et.useRef=function(v){return P.H.useRef(v)},et.useState=function(v){return P.H.useState(v)},et.useSyncExternalStore=function(v,D,Y){return P.H.useSyncExternalStore(v,D,Y)},et.useTransition=function(){return P.H.useTransition()},et.version="19.2.1",et}var kh;function Zf(){return kh||(kh=1,qf.exports=t0()),qf.exports}var e0=Zf();const dt=Fv(e0);var Bf={exports:{}},Kn={},Yf={exports:{}},Lf={};/**
 * @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 Wh;function l0(){return Wh||(Wh=1,(function(r){function o(_,B){var V=_.length;_.push(B);t:for(;0<V;){var St=V-1>>>1,Tt=_[St];if(0<s(Tt,B))_[St]=B,_[V]=Tt,V=St;else break t}}function h(_){return _.length===0?null:_[0]}function c(_){if(_.length===0)return null;var B=_[0],V=_.pop();if(V!==B){_[0]=V;t:for(var St=0,Tt=_.length,v=Tt>>>1;St<v;){var D=2*(St+1)-1,Y=_[D],Q=D+1,tt=_[Q];if(0>s(Y,V))Q<Tt&&0>s(tt,Y)?(_[St]=tt,_[Q]=V,St=Q):(_[St]=Y,_[D]=V,St=D);else if(Q<Tt&&0>s(tt,V))_[St]=tt,_[Q]=V,St=Q;else break t}}return B}function s(_,B){var V=_.sortIndex-B.sortIndex;return V!==0?V:_.id-B.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var T=performance;r.unstable_now=function(){return T.now()}}else{var b=Date,z=b.now();r.unstable_now=function(){return b.now()-z}}var x=[],y=[],G=1,H=null,K=3,lt=!1,Z=!1,L=!1,R=!1,k=typeof setTimeout=="function"?setTimeout:null,ut=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function Xt(_){for(var B=h(y);B!==null;){if(B.callback===null)c(y);else if(B.startTime<=_)c(y),B.sortIndex=B.expirationTime,o(x,B);else break;B=h(y)}}function Pt(_){if(L=!1,Xt(_),!Z)if(h(x)!==null)Z=!0,Ht||(Ht=!0,U());else{var B=h(y);B!==null&&te(Pt,B.startTime-_)}}var Ht=!1,P=-1,Rt=5,C=-1;function Dt(){return R?!0:!(r.unstable_now()-C<Rt)}function zt(){if(R=!1,Ht){var _=r.unstable_now();C=_;var B=!0;try{t:{Z=!1,L&&(L=!1,ut(P),P=-1),lt=!0;var V=K;try{e:{for(Xt(_),H=h(x);H!==null&&!(H.expirationTime>_&&Dt());){var St=H.callback;if(typeof St=="function"){H.callback=null,K=H.priorityLevel;var Tt=St(H.expirationTime<=_);if(_=r.unstable_now(),typeof Tt=="function"){H.callback=Tt,Xt(_),B=!0;break e}H===h(x)&&c(x),Xt(_)}else c(x);H=h(x)}if(H!==null)B=!0;else{var v=h(y);v!==null&&te(Pt,v.startTime-_),B=!1}}break t}finally{H=null,K=V,lt=!1}B=void 0}}finally{B?U():Ht=!1}}}var U;if(typeof I=="function")U=function(){I(zt)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,Ot=W.port2;W.port1.onmessage=zt,U=function(){Ot.postMessage(null)}}else U=function(){k(zt,0)};function te(_,B){P=k(function(){_(r.unstable_now())},B)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(_){_.callback=null},r.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Rt=0<_?Math.floor(1e3/_):5},r.unstable_getCurrentPriorityLevel=function(){return K},r.unstable_next=function(_){switch(K){case 1:case 2:case 3:var B=3;break;default:B=K}var V=K;K=B;try{return _()}finally{K=V}},r.unstable_requestPaint=function(){R=!0},r.unstable_runWithPriority=function(_,B){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var V=K;K=_;try{return B()}finally{K=V}},r.unstable_scheduleCallback=function(_,B,V){var St=r.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?St+V:St):V=St,_){case 1:var Tt=-1;break;case 2:Tt=250;break;case 5:Tt=1073741823;break;case 4:Tt=1e4;break;default:Tt=5e3}return Tt=V+Tt,_={id:G++,callback:B,priorityLevel:_,startTime:V,expirationTime:Tt,sortIndex:-1},V>St?(_.sortIndex=V,o(y,_),h(x)===null&&_===h(y)&&(L?(ut(P),P=-1):L=!0,te(Pt,V-St))):(_.sortIndex=Tt,o(x,_),Z||lt||(Z=!0,Ht||(Ht=!0,U()))),_},r.unstable_shouldYield=Dt,r.unstable_wrapCallback=function(_){var B=K;return function(){var V=K;K=B;try{return _.apply(this,arguments)}finally{K=V}}}})(Lf)),Lf}var Fh;function a0(){return Fh||(Fh=1,Yf.exports=l0()),Yf.exports}var wf={exports:{}},fe={};/**
 * @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 Ih;function n0(){if(Ih)return fe;Ih=1;var r=Zf();function o(x){var y="https://react.dev/errors/"+x;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var G=2;G<arguments.length;G++)y+="&args[]="+encodeURIComponent(arguments[G])}return"Minified React error #"+x+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(){}var c={d:{f:h,r:function(){throw Error(o(522))},D:h,C:h,L:h,m:h,X:h,S:h,M:h},p:0,findDOMNode:null},s=Symbol.for("react.portal");function T(x,y,G){var H=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:H==null?null:""+H,children:x,containerInfo:y,implementation:G}}var b=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function z(x,y){if(x==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,fe.createPortal=function(x,y){var G=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(o(299));return T(x,y,null,G)},fe.flushSync=function(x){var y=b.T,G=c.p;try{if(b.T=null,c.p=2,x)return x()}finally{b.T=y,c.p=G,c.d.f()}},fe.preconnect=function(x,y){typeof x=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,c.d.C(x,y))},fe.prefetchDNS=function(x){typeof x=="string"&&c.d.D(x)},fe.preinit=function(x,y){if(typeof x=="string"&&y&&typeof y.as=="string"){var G=y.as,H=z(G,y.crossOrigin),K=typeof y.integrity=="string"?y.integrity:void 0,lt=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;G==="style"?c.d.S(x,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:H,integrity:K,fetchPriority:lt}):G==="script"&&c.d.X(x,{crossOrigin:H,integrity:K,fetchPriority:lt,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},fe.preinitModule=function(x,y){if(typeof x=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var G=z(y.as,y.crossOrigin);c.d.M(x,{crossOrigin:G,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&c.d.M(x)},fe.preload=function(x,y){if(typeof x=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var G=y.as,H=z(G,y.crossOrigin);c.d.L(x,G,{crossOrigin:H,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},fe.preloadModule=function(x,y){if(typeof x=="string")if(y){var G=z(y.as,y.crossOrigin);c.d.m(x,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:G,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else c.d.m(x)},fe.requestFormReset=function(x){c.d.r(x)},fe.unstable_batchedUpdates=function(x,y){return x(y)},fe.useFormState=function(x,y,G){return b.H.useFormState(x,y,G)},fe.useFormStatus=function(){return b.H.useHostTransitionStatus()},fe.version="19.2.1",fe}var Ph;function u0(){if(Ph)return wf.exports;Ph=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(o){console.error(o)}}return r(),wf.exports=n0(),wf.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 td;function i0(){if(td)return Kn;td=1;var r=a0(),o=Zf(),h=u0();function c(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 s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function T(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 b(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 z(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 x(t){if(T(t)!==t)throw Error(c(188))}function y(t){var e=t.alternate;if(!e){if(e=T(t),e===null)throw Error(c(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 x(n),t;if(u===a)return x(n),e;u=u.sibling}throw Error(c(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(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?t:e}function G(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=G(t),e!==null)return e;t=t.sibling}return null}var H=Object.assign,K=Symbol.for("react.element"),lt=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),ut=Symbol.for("react.consumer"),I=Symbol.for("react.context"),Xt=Symbol.for("react.forward_ref"),Pt=Symbol.for("react.suspense"),Ht=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),Rt=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),Dt=Symbol.for("react.memo_cache_sentinel"),zt=Symbol.iterator;function U(t){return t===null||typeof t!="object"?null:(t=zt&&t[zt]||t["@@iterator"],typeof t=="function"?t:null)}var W=Symbol.for("react.client.reference");function Ot(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===W?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case L:return"Fragment";case k:return"Profiler";case R:return"StrictMode";case Pt:return"Suspense";case Ht:return"SuspenseList";case C:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Z:return"Portal";case I:return t.displayName||"Context";case ut:return(t._context.displayName||"Context")+".Consumer";case Xt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case P:return e=t.displayName||null,e!==null?e:Ot(t.type)||"Memo";case Rt:e=t._payload,t=t._init;try{return Ot(t(e))}catch{}}return null}var te=Array.isArray,_=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=h.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},St=[],Tt=-1;function v(t){return{current:t}}function D(t){0>Tt||(t.current=St[Tt],St[Tt]=null,Tt--)}function Y(t,e){Tt++,St[Tt]=t.current,t.current=e}var Q=v(null),tt=v(null),it=v(null),vt=v(null);function ee(t,e){switch(Y(it,e),Y(tt,t),Y(Q,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?vh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=vh(e),t=yh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}D(Q),Y(Q,t)}function Mt(){D(Q),D(tt),D(it)}function gl(t){t.memoizedState!==null&&Y(vt,t);var e=Q.current,l=yh(e,t.type);e!==l&&(Y(tt,t),Y(Q,l))}function j(t){tt.current===t&&(D(Q),D(tt)),vt.current===t&&(D(vt),Qn._currentValue=V)}var F,ct;function mt(t){if(F===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);F=e&&e[1]||"",ct=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+F+t+ct}var jt=!1;function Qe(t,e){if(!t||jt)return"";jt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(A){var E=A}Reflect.construct(t,[],N)}else{try{N.call()}catch(A){E=A}t.call(N.prototype)}}else{try{throw Error()}catch(A){E=A}(N=t())&&typeof N.catch=="function"&&N.catch(function(){})}}catch(A){if(A&&E&&typeof A.stack=="string")return[A.stack,E.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],f=u[1];if(i&&f){var d=i.split(`
`),p=f.split(`
`);for(n=a=0;a<d.length&&!d[a].includes("DetermineComponentFrameRoot");)a++;for(;n<p.length&&!p[n].includes("DetermineComponentFrameRoot");)n++;if(a===d.length||n===p.length)for(a=d.length-1,n=p.length-1;1<=a&&0<=n&&d[a]!==p[n];)n--;for(;1<=a&&0<=n;a--,n--)if(d[a]!==p[n]){if(a!==1||n!==1)do if(a--,n--,0>n||d[a]!==p[n]){var O=`
`+d[a].replace(" at new "," at ");return t.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",t.displayName)),O}while(1<=a&&0<=n);break}}}finally{jt=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?mt(l):""}function Xl(t,e){switch(t.tag){case 26:case 27:case 5:return mt(t.type);case 16:return mt("Lazy");case 13:return t.child!==e&&e!==null?mt("Suspense Fallback"):mt("Suspense");case 19:return mt("SuspenseList");case 0:case 15:return Qe(t.type,!1);case 11:return Qe(t.type.render,!1);case 1:return Qe(t.type,!0);case 31:return mt("Activity");default:return""}}function Ue(t){try{var e="",l=null;do e+=Xl(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var re=Object.prototype.hasOwnProperty,Je=r.unstable_scheduleCallback,Fe=r.unstable_cancelCallback,Fa=r.unstable_shouldYield,Ia=r.unstable_requestPaint,be=r.unstable_now,Nd=r.unstable_getCurrentPriorityLevel,Jf=r.unstable_ImmediatePriority,Kf=r.unstable_UserBlockingPriority,Wn=r.unstable_NormalPriority,Dd=r.unstable_LowPriority,$f=r.unstable_IdlePriority,Ud=r.log,Cd=r.unstable_setDisableYieldValue,Pa=null,Ee=null;function Sl(t){if(typeof Ud=="function"&&Cd(t),Ee&&typeof Ee.setStrictMode=="function")try{Ee.setStrictMode(Pa,t)}catch{}}var ze=Math.clz32?Math.clz32:jd,Hd=Math.log,Rd=Math.LN2;function jd(t){return t>>>=0,t===0?32:31-(Hd(t)/Rd|0)|0}var Fn=256,In=262144,Pn=4194304;function Zl(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 tu(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=Zl(a):(i&=f,i!==0?n=Zl(i):l||(l=f&~t,l!==0&&(n=Zl(l))))):(f=a&~u,f!==0?n=Zl(f):i!==0?n=Zl(i):l||(l=a&~t,l!==0&&(n=Zl(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 tn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function qd(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 kf(){var t=Pn;return Pn<<=1,(Pn&62914560)===0&&(Pn=4194304),t}function Ei(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function en(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Bd(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,d=t.expirationTimes,p=t.hiddenUpdates;for(l=i&~l;0<l;){var O=31-ze(l),N=1<<O;f[O]=0,d[O]=-1;var E=p[O];if(E!==null)for(p[O]=null,O=0;O<E.length;O++){var A=E[O];A!==null&&(A.lane&=-536870913)}l&=~N}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-ze(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-ze(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:zi(l),(l&(t.suspendedLanes|e))!==0?0:l}function zi(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:Lh(t.type))}function ts(t,e){var l=B.p;try{return B.p=t,e()}finally{B.p=l}}var pl=Math.random().toString(36).slice(2),le="__reactFiber$"+pl,he="__reactProps$"+pl,fa="__reactContainer$"+pl,Ai="__reactEvents$"+pl,Yd="__reactListeners$"+pl,Ld="__reactHandles$"+pl,es="__reactResources$"+pl,ln="__reactMarker$"+pl;function _i(t){delete t[le],delete t[he],delete t[Ai],delete t[Yd],delete t[Ld]}function sa(t){var e=t[le];if(e)return e;for(var l=t.parentNode;l;){if(e=l[fa]||l[le]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=zh(t);t!==null;){if(l=t[le])return l;t=zh(t)}return e}t=l,l=t.parentNode}return null}function ra(t){if(t=t[le]||t[fa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function an(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function oa(t){var e=t[es];return e||(e=t[es]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[ln]=!0}var ls=new Set,as={};function Vl(t,e){ha(t,e),ha(t+"Capture",e)}function ha(t,e){for(as[t]=e,t=0;t<e.length;t++)ls.add(e[t])}var wd=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ns={},us={};function Gd(t){return re.call(us,t)?!0:re.call(ns,t)?!1:wd.test(t)?us[t]=!0:(ns[t]=!0,!1)}function eu(t,e,l){if(Gd(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 lu(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 Ie(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 Ce(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 Qd(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 Oi(t){if(!t._valueTracker){var e=is(t)?"checked":"value";t._valueTracker=Qd(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 au(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 Xd=/[\n"\\]/g;function He(t){return t.replace(Xd,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Mi(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=""+Ce(e)):t.value!==""+Ce(e)&&(t.value=""+Ce(e)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),e!=null?Ni(t,i,Ce(e)):l!=null?Ni(t,i,Ce(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=""+Ce(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)){Oi(t);return}l=l!=null?""+Ce(l):"",e=e!=null?""+Ce(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),Oi(t)}function Ni(t,e,l){e==="number"&&au(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function da(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=""+Ce(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=""+Ce(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Ce(l):""}function rs(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(c(92));if(te(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=Ce(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),Oi(t)}function ma(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Zd=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||Zd.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function hs(t,e,l){if(e!=null&&typeof e!="object")throw Error(c(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 Di(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 Vd=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"]]),Jd=/^[\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 nu(t){return Jd.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Pe(){}var Ui=null;function Ci(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var va=null,ya=null;function ds(t){var e=ra(t);if(e&&(t=e.stateNode)){var l=t[he]||null;t:switch(t=e.stateNode,e.type){case"input":if(Mi(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="'+He(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[he]||null;if(!n)throw Error(c(90));Mi(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&&da(t,!!l.multiple,e,!1)}}}var Hi=!1;function ms(t,e,l){if(Hi)return t(e,l);Hi=!0;try{var a=t(e);return a}finally{if(Hi=!1,(va!==null||ya!==null)&&(Vu(),va&&(e=va,t=ya,ya=va=null,ds(e),t)))for(e=0;e<t.length;e++)ds(t[e])}}function nn(t,e){var l=t.stateNode;if(l===null)return null;var a=l[he]||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(c(231,e,typeof l));return l}var tl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ri=!1;if(tl)try{var un={};Object.defineProperty(un,"passive",{get:function(){Ri=!0}}),window.addEventListener("test",un,un),window.removeEventListener("test",un,un)}catch{Ri=!1}var Tl=null,ji=null,uu=null;function vs(){if(uu)return uu;var t,e=ji,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 uu=n.slice(t,1<a?1-a:void 0)}function iu(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 cu(){return!0}function ys(){return!1}function de(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)?cu:ys,this.isPropagationStopped=ys,this}return H(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=cu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=cu)},persist:function(){},isPersistent:cu}),e}var Jl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fu=de(Jl),cn=H({},Jl,{view:0,detail:0}),Kd=de(cn),qi,Bi,fn,su=H({},cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Li,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!==fn&&(fn&&t.type==="mousemove"?(qi=t.screenX-fn.screenX,Bi=t.screenY-fn.screenY):Bi=qi=0,fn=t),qi)},movementY:function(t){return"movementY"in t?t.movementY:Bi}}),gs=de(su),$d=H({},su,{dataTransfer:0}),kd=de($d),Wd=H({},cn,{relatedTarget:0}),Yi=de(Wd),Fd=H({},Jl,{animationName:0,elapsedTime:0,pseudoElement:0}),Id=de(Fd),Pd=H({},Jl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),tm=de(Pd),em=H({},Jl,{data:0}),Ss=de(em),lm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},am={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"},nm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function um(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=nm[t])?!!e[t]:!1}function Li(){return um}var im=H({},cn,{key:function(t){if(t.key){var e=lm[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=iu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?am[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Li,charCode:function(t){return t.type==="keypress"?iu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?iu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),cm=de(im),fm=H({},su,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ps=de(fm),sm=H({},cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Li}),rm=de(sm),om=H({},Jl,{propertyName:0,elapsedTime:0,pseudoElement:0}),hm=de(om),dm=H({},su,{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}),mm=de(dm),vm=H({},Jl,{newState:0,oldState:0}),ym=de(vm),gm=[9,13,27,32],wi=tl&&"CompositionEvent"in window,sn=null;tl&&"documentMode"in document&&(sn=document.documentMode);var Sm=tl&&"TextEvent"in window&&!sn,Ts=tl&&(!wi||sn&&8<sn&&11>=sn),bs=" ",Es=!1;function zs(t,e){switch(t){case"keyup":return gm.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 ga=!1;function pm(t,e){switch(t){case"compositionend":return xs(e);case"keypress":return e.which!==32?null:(Es=!0,bs);case"textInput":return t=e.data,t===bs&&Es?null:t;default:return null}}function Tm(t,e){if(ga)return t==="compositionend"||!wi&&zs(t,e)?(t=vs(),uu=ji=Tl=null,ga=!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 Ts&&e.locale!=="ko"?null:e.data;default:return null}}var bm={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"?!!bm[t.type]:e==="textarea"}function _s(t,e,l,a){va?ya?ya.push(a):ya=[a]:va=a,e=Iu(e,"onChange"),0<e.length&&(l=new fu("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var rn=null,on=null;function Em(t){sh(t,0)}function ru(t){var e=an(t);if(cs(e))return t}function Os(t,e){if(t==="change")return e}var Ms=!1;if(tl){var Gi;if(tl){var Qi="oninput"in document;if(!Qi){var Ns=document.createElement("div");Ns.setAttribute("oninput","return;"),Qi=typeof Ns.oninput=="function"}Gi=Qi}else Gi=!1;Ms=Gi&&(!document.documentMode||9<document.documentMode)}function Ds(){rn&&(rn.detachEvent("onpropertychange",Us),on=rn=null)}function Us(t){if(t.propertyName==="value"&&ru(on)){var e=[];_s(e,on,t,Ci(t)),ms(Em,e)}}function zm(t,e,l){t==="focusin"?(Ds(),rn=e,on=l,rn.attachEvent("onpropertychange",Us)):t==="focusout"&&Ds()}function xm(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ru(on)}function Am(t,e){if(t==="click")return ru(e)}function _m(t,e){if(t==="input"||t==="change")return ru(e)}function Om(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var xe=typeof Object.is=="function"?Object.is:Om;function hn(t,e){if(xe(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(!re.call(e,n)||!xe(t[n],e[n]))return!1}return!0}function Cs(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Hs(t,e){var l=Cs(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=Cs(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 js(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=au(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=au(t.document)}return e}function Xi(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 Mm=tl&&"documentMode"in document&&11>=document.documentMode,Sa=null,Zi=null,dn=null,Vi=!1;function qs(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Vi||Sa==null||Sa!==au(a)||(a=Sa,"selectionStart"in a&&Xi(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}),dn&&hn(dn,a)||(dn=a,a=Iu(Zi,"onSelect"),0<a.length&&(e=new fu("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=Sa)))}function Kl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var pa={animationend:Kl("Animation","AnimationEnd"),animationiteration:Kl("Animation","AnimationIteration"),animationstart:Kl("Animation","AnimationStart"),transitionrun:Kl("Transition","TransitionRun"),transitionstart:Kl("Transition","TransitionStart"),transitioncancel:Kl("Transition","TransitionCancel"),transitionend:Kl("Transition","TransitionEnd")},Ji={},Bs={};tl&&(Bs=document.createElement("div").style,"AnimationEvent"in window||(delete pa.animationend.animation,delete pa.animationiteration.animation,delete pa.animationstart.animation),"TransitionEvent"in window||delete pa.transitionend.transition);function $l(t){if(Ji[t])return Ji[t];if(!pa[t])return t;var e=pa[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Bs)return Ji[t]=e[l];return t}var Ys=$l("animationend"),Ls=$l("animationiteration"),ws=$l("animationstart"),Nm=$l("transitionrun"),Dm=$l("transitionstart"),Um=$l("transitioncancel"),Gs=$l("transitionend"),Qs=new Map,Ki="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(" ");Ki.push("scrollEnd");function Xe(t,e){Qs.set(t,e),Vl(e,[t])}var ou=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)},Re=[],Ta=0,$i=0;function hu(){for(var t=Ta,e=$i=Ta=0;e<t;){var l=Re[e];Re[e++]=null;var a=Re[e];Re[e++]=null;var n=Re[e];Re[e++]=null;var u=Re[e];if(Re[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&&Xs(l,n,u)}}function du(t,e,l,a){Re[Ta++]=t,Re[Ta++]=e,Re[Ta++]=l,Re[Ta++]=a,$i|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function ki(t,e,l,a){return du(t,e,l,a),mu(t)}function kl(t,e){return du(t,null,null,e),mu(t)}function Xs(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-ze(l),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),u):null}function mu(t){if(50<jn)throw jn=0,nf=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ba={};function Cm(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 Ae(t,e,l,a){return new Cm(t,e,l,a)}function Wi(t){return t=t.prototype,!(!t||!t.isReactComponent)}function el(t,e){var l=t.alternate;return l===null?(l=Ae(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 Zs(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 vu(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=Bv(t,l,Q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case C:return t=Ae(31,l,e,n),t.elementType=C,t.lanes=u,t;case L:return Wl(l.children,n,u,e);case R:i=8,n|=24;break;case k:return t=Ae(12,l,e,n|2),t.elementType=k,t.lanes=u,t;case Pt:return t=Ae(13,l,e,n),t.elementType=Pt,t.lanes=u,t;case Ht:return t=Ae(19,l,e,n),t.elementType=Ht,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case I:i=10;break t;case ut:i=9;break t;case Xt:i=11;break t;case P:i=14;break t;case Rt:i=16,a=null;break t}i=29,l=Error(c(130,t===null?"null":typeof t,"")),a=null}return e=Ae(i,l,e,n),e.elementType=t,e.type=a,e.lanes=u,e}function Wl(t,e,l,a){return t=Ae(7,t,a,e),t.lanes=l,t}function Fi(t,e,l){return t=Ae(6,t,null,e),t.lanes=l,t}function Vs(t){var e=Ae(18,null,null,0);return e.stateNode=t,e}function Ii(t,e,l){return e=Ae(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Js=new WeakMap;function je(t,e){if(typeof t=="object"&&t!==null){var l=Js.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Ue(e)},Js.set(t,e),e)}return{value:t,source:e,stack:Ue(e)}}var Ea=[],za=0,yu=null,mn=0,qe=[],Be=0,bl=null,Ke=1,$e="";function ll(t,e){Ea[za++]=mn,Ea[za++]=yu,yu=t,mn=e}function Ks(t,e,l){qe[Be++]=Ke,qe[Be++]=$e,qe[Be++]=bl,bl=t;var a=Ke;t=$e;var n=32-ze(a)-1;a&=~(1<<n),l+=1;var u=32-ze(e)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Ke=1<<32-ze(e)+n|l<<n|a,$e=u+t}else Ke=1<<u|l<<n|a,$e=t}function Pi(t){t.return!==null&&(ll(t,1),Ks(t,1,0))}function tc(t){for(;t===yu;)yu=Ea[--za],Ea[za]=null,mn=Ea[--za],Ea[za]=null;for(;t===bl;)bl=qe[--Be],qe[Be]=null,$e=qe[--Be],qe[Be]=null,Ke=qe[--Be],qe[Be]=null}function $s(t,e){qe[Be++]=Ke,qe[Be++]=$e,qe[Be++]=bl,Ke=e.id,$e=e.overflow,bl=t}var ae=null,Ut=null,ht=!1,El=null,Ye=!1,ec=Error(c(519));function zl(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vn(je(e,t)),ec}function ks(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[le]=t,e[he]=a,l){case"dialog":st("cancel",e),st("close",e);break;case"iframe":case"object":case"embed":st("load",e);break;case"video":case"audio":for(l=0;l<Bn.length;l++)st(Bn[l],e);break;case"source":st("error",e);break;case"img":case"image":case"link":st("error",e),st("load",e);break;case"details":st("toggle",e);break;case"input":st("invalid",e),fs(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":st("invalid",e);break;case"textarea":st("invalid",e),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||dh(e.textContent,l)?(a.popover!=null&&(st("beforetoggle",e),st("toggle",e)),a.onScroll!=null&&st("scroll",e),a.onScrollEnd!=null&&st("scrollend",e),a.onClick!=null&&(e.onclick=Pe),e=!0):e=!1,e||zl(t,!0)}function Ws(t){for(ae=t.return;ae;)switch(ae.tag){case 5:case 31:case 13:Ye=!1;return;case 27:case 3:Ye=!0;return;default:ae=ae.return}}function xa(t){if(t!==ae)return!1;if(!ht)return Ws(t),ht=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Tf(t.type,t.memoizedProps)),l=!l),l&&Ut&&zl(t),Ws(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Ut=Eh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Ut=Eh(t)}else e===27?(e=Ut,Bl(t.type)?(t=Af,Af=null,Ut=t):Ut=e):Ut=ae?we(t.stateNode.nextSibling):null;return!0}function Fl(){Ut=ae=null,ht=!1}function lc(){var t=El;return t!==null&&(ge===null?ge=t:ge.push.apply(ge,t),El=null),t}function vn(t){El===null?El=[t]:El.push(t)}var ac=v(null),Il=null,al=null;function xl(t,e,l){Y(ac,e._currentValue),e._currentValue=l}function nl(t){t._currentValue=ac.current,D(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 d=0;d<e.length;d++)if(f.context===e[d]){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(c(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 Aa(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(c(387));if(i=i.memoizedProps,i!==null){var f=n.type;xe(n.pendingProps.value,i.value)||(t!==null?t.push(f):t=[f])}}else if(n===vt.current){if(i=n.alternate,i===null)throw Error(c(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Qn):t=[Qn])}n=n.return}t!==null&&uc(e,t,l,a),e.flags|=262144}function gu(t){for(t=t.firstContext;t!==null;){if(!xe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Pl(t){Il=t,al=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ne(t){return Fs(Il,t)}function Su(t,e){return Il===null&&Pl(t),Fs(t,e)}function Fs(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},al===null){if(t===null)throw Error(c(308));al=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else al=al.next=e;return l}var Hm=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()})}},Rm=r.unstable_scheduleCallback,jm=r.unstable_NormalPriority,Zt={$$typeof:I,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ic(){return{controller:new Hm,data:new Map,refCount:0}}function yn(t){t.refCount--,t.refCount===0&&Rm(jm,function(){t.controller.abort()})}var gn=null,cc=0,_a=0,Oa=null;function qm(t,e){if(gn===null){var l=gn=[];cc=0,_a=of(),Oa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return cc++,e.then(Is,Is),e}function Is(){if(--cc===0&&gn!==null){Oa!==null&&(Oa.status="fulfilled");var t=gn;gn=null,_a=0,Oa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Bm(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=_.S;_.S=function(t,e){Bo=be(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&qm(t,e),Ps!==null&&Ps(t,e)};var ta=v(null);function fc(){var t=ta.current;return t!==null?t:Nt.pooledCache}function pu(t,e){e===null?Y(ta,ta.current):Y(ta,e.pool)}function tr(){var t=fc();return t===null?null:{parent:Zt._currentValue,pool:t}}var Ma=Error(c(460)),sc=Error(c(474)),Tu=Error(c(542)),bu={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(Pe,Pe),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(Pe,Pe);else{if(t=Nt,t!==null&&100<t.shellSuspendCounter)throw Error(c(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 la=e,Ma}}function ea(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(la=l,Ma):l}}var la=null;function ar(){if(la===null)throw Error(c(459));var t=la;return la=null,t}function nr(t){if(t===Ma||t===Tu)throw Error(c(483))}var Na=null,Sn=0;function Eu(t){var e=Sn;return Sn+=1,Na===null&&(Na=[]),lr(Na,t,e)}function pn(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function zu(t,e){throw e.$$typeof===K?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function ur(t){function e(g,m){if(t){var S=g.deletions;S===null?(g.deletions=[m],g.flags|=16):S.push(m)}}function l(g,m){if(!t)return null;for(;m!==null;)e(g,m),m=m.sibling;return null}function a(g){for(var m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function n(g,m){return g=el(g,m),g.index=0,g.sibling=null,g}function u(g,m,S){return g.index=S,t?(S=g.alternate,S!==null?(S=S.index,S<m?(g.flags|=67108866,m):S):(g.flags|=67108866,m)):(g.flags|=1048576,m)}function i(g){return t&&g.alternate===null&&(g.flags|=67108866),g}function f(g,m,S,M){return m===null||m.tag!==6?(m=Fi(S,g.mode,M),m.return=g,m):(m=n(m,S),m.return=g,m)}function d(g,m,S,M){var J=S.type;return J===L?O(g,m,S.props.children,M,S.key):m!==null&&(m.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Rt&&ea(J)===m.type)?(m=n(m,S.props),pn(m,S),m.return=g,m):(m=vu(S.type,S.key,S.props,null,g.mode,M),pn(m,S),m.return=g,m)}function p(g,m,S,M){return m===null||m.tag!==4||m.stateNode.containerInfo!==S.containerInfo||m.stateNode.implementation!==S.implementation?(m=Ii(S,g.mode,M),m.return=g,m):(m=n(m,S.children||[]),m.return=g,m)}function O(g,m,S,M,J){return m===null||m.tag!==7?(m=Wl(S,g.mode,M,J),m.return=g,m):(m=n(m,S),m.return=g,m)}function N(g,m,S){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Fi(""+m,g.mode,S),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case lt:return S=vu(m.type,m.key,m.props,null,g.mode,S),pn(S,m),S.return=g,S;case Z:return m=Ii(m,g.mode,S),m.return=g,m;case Rt:return m=ea(m),N(g,m,S)}if(te(m)||U(m))return m=Wl(m,g.mode,S,null),m.return=g,m;if(typeof m.then=="function")return N(g,Eu(m),S);if(m.$$typeof===I)return N(g,Su(g,m),S);zu(g,m)}return null}function E(g,m,S,M){var J=m!==null?m.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return J!==null?null:f(g,m,""+S,M);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case lt:return S.key===J?d(g,m,S,M):null;case Z:return S.key===J?p(g,m,S,M):null;case Rt:return S=ea(S),E(g,m,S,M)}if(te(S)||U(S))return J!==null?null:O(g,m,S,M,null);if(typeof S.then=="function")return E(g,m,Eu(S),M);if(S.$$typeof===I)return E(g,m,Su(g,S),M);zu(g,S)}return null}function A(g,m,S,M,J){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return g=g.get(S)||null,f(m,g,""+M,J);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case lt:return g=g.get(M.key===null?S:M.key)||null,d(m,g,M,J);case Z:return g=g.get(M.key===null?S:M.key)||null,p(m,g,M,J);case Rt:return M=ea(M),A(g,m,S,M,J)}if(te(M)||U(M))return g=g.get(S)||null,O(m,g,M,J,null);if(typeof M.then=="function")return A(g,m,S,Eu(M),J);if(M.$$typeof===I)return A(g,m,S,Su(m,M),J);zu(m,M)}return null}function w(g,m,S,M){for(var J=null,yt=null,X=m,nt=m=0,ot=null;X!==null&&nt<S.length;nt++){X.index>nt?(ot=X,X=null):ot=X.sibling;var gt=E(g,X,S[nt],M);if(gt===null){X===null&&(X=ot);break}t&&X&&gt.alternate===null&&e(g,X),m=u(gt,m,nt),yt===null?J=gt:yt.sibling=gt,yt=gt,X=ot}if(nt===S.length)return l(g,X),ht&&ll(g,nt),J;if(X===null){for(;nt<S.length;nt++)X=N(g,S[nt],M),X!==null&&(m=u(X,m,nt),yt===null?J=X:yt.sibling=X,yt=X);return ht&&ll(g,nt),J}for(X=a(X);nt<S.length;nt++)ot=A(X,g,nt,S[nt],M),ot!==null&&(t&&ot.alternate!==null&&X.delete(ot.key===null?nt:ot.key),m=u(ot,m,nt),yt===null?J=ot:yt.sibling=ot,yt=ot);return t&&X.forEach(function(Ql){return e(g,Ql)}),ht&&ll(g,nt),J}function $(g,m,S,M){if(S==null)throw Error(c(151));for(var J=null,yt=null,X=m,nt=m=0,ot=null,gt=S.next();X!==null&&!gt.done;nt++,gt=S.next()){X.index>nt?(ot=X,X=null):ot=X.sibling;var Ql=E(g,X,gt.value,M);if(Ql===null){X===null&&(X=ot);break}t&&X&&Ql.alternate===null&&e(g,X),m=u(Ql,m,nt),yt===null?J=Ql:yt.sibling=Ql,yt=Ql,X=ot}if(gt.done)return l(g,X),ht&&ll(g,nt),J;if(X===null){for(;!gt.done;nt++,gt=S.next())gt=N(g,gt.value,M),gt!==null&&(m=u(gt,m,nt),yt===null?J=gt:yt.sibling=gt,yt=gt);return ht&&ll(g,nt),J}for(X=a(X);!gt.done;nt++,gt=S.next())gt=A(X,g,nt,gt.value,M),gt!==null&&(t&&gt.alternate!==null&&X.delete(gt.key===null?nt:gt.key),m=u(gt,m,nt),yt===null?J=gt:yt.sibling=gt,yt=gt);return t&&X.forEach(function($v){return e(g,$v)}),ht&&ll(g,nt),J}function _t(g,m,S,M){if(typeof S=="object"&&S!==null&&S.type===L&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case lt:t:{for(var J=S.key;m!==null;){if(m.key===J){if(J=S.type,J===L){if(m.tag===7){l(g,m.sibling),M=n(m,S.props.children),M.return=g,g=M;break t}}else if(m.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Rt&&ea(J)===m.type){l(g,m.sibling),M=n(m,S.props),pn(M,S),M.return=g,g=M;break t}l(g,m);break}else e(g,m);m=m.sibling}S.type===L?(M=Wl(S.props.children,g.mode,M,S.key),M.return=g,g=M):(M=vu(S.type,S.key,S.props,null,g.mode,M),pn(M,S),M.return=g,g=M)}return i(g);case Z:t:{for(J=S.key;m!==null;){if(m.key===J)if(m.tag===4&&m.stateNode.containerInfo===S.containerInfo&&m.stateNode.implementation===S.implementation){l(g,m.sibling),M=n(m,S.children||[]),M.return=g,g=M;break t}else{l(g,m);break}else e(g,m);m=m.sibling}M=Ii(S,g.mode,M),M.return=g,g=M}return i(g);case Rt:return S=ea(S),_t(g,m,S,M)}if(te(S))return w(g,m,S,M);if(U(S)){if(J=U(S),typeof J!="function")throw Error(c(150));return S=J.call(S),$(g,m,S,M)}if(typeof S.then=="function")return _t(g,m,Eu(S),M);if(S.$$typeof===I)return _t(g,m,Su(g,S),M);zu(g,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,m!==null&&m.tag===6?(l(g,m.sibling),M=n(m,S),M.return=g,g=M):(l(g,m),M=Fi(S,g.mode,M),M.return=g,g=M),i(g)):l(g,m)}return function(g,m,S,M){try{Sn=0;var J=_t(g,m,S,M);return Na=null,J}catch(X){if(X===Ma||X===Tu)throw X;var yt=Ae(29,X,null,g.mode);return yt.lanes=M,yt.return=g,yt}finally{}}}var aa=ur(!0),ir=ur(!1),Al=!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 _l(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ol(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(pt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=mu(t),Xs(t,null,l),e}return du(t,a,e,l),mu(t)}function Tn(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 hc(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 dc=!1;function bn(){if(dc){var t=Oa;if(t!==null)throw t}}function En(t,e,l,a){dc=!1;var n=t.updateQueue;Al=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var d=f,p=d.next;d.next=null,i===null?u=p:i.next=p,i=d;var O=t.alternate;O!==null&&(O=O.updateQueue,f=O.lastBaseUpdate,f!==i&&(f===null?O.firstBaseUpdate=p:f.next=p,O.lastBaseUpdate=d))}if(u!==null){var N=n.baseState;i=0,O=p=d=null,f=u;do{var E=f.lane&-536870913,A=E!==f.lane;if(A?(rt&E)===E:(a&E)===E){E!==0&&E===_a&&(dc=!0),O!==null&&(O=O.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var w=t,$=f;E=e;var _t=l;switch($.tag){case 1:if(w=$.payload,typeof w=="function"){N=w.call(_t,N,E);break t}N=w;break t;case 3:w.flags=w.flags&-65537|128;case 0:if(w=$.payload,E=typeof w=="function"?w.call(_t,N,E):w,E==null)break t;N=H({},N,E);break t;case 2:Al=!0}}E=f.callback,E!==null&&(t.flags|=64,A&&(t.flags|=8192),A=n.callbacks,A===null?n.callbacks=[E]:A.push(E))}else A={lane:E,tag:f.tag,payload:f.payload,callback:f.callback,next:null},O===null?(p=O=A,d=N):O=O.next=A,i|=E;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;A=f,f=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);O===null&&(d=N),n.baseState=d,n.firstBaseUpdate=p,n.lastBaseUpdate=O,u===null&&(n.shared.lanes=0),Cl|=i,t.lanes=i,t.memoizedState=N}}function cr(t,e){if(typeof t!="function")throw Error(c(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 Da=v(null),xu=v(0);function sr(t,e){t=dl,Y(xu,t),Y(Da,e),dl=t|e.baseLanes}function mc(){Y(xu,dl),Y(Da,Da.current)}function vc(){dl=xu.current,D(Da),D(xu)}var _e=v(null),Le=null;function Ml(t){var e=t.alternate;Y(wt,wt.current&1),Y(_e,t),Le===null&&(e===null||Da.current!==null||e.memoizedState!==null)&&(Le=t)}function yc(t){Y(wt,wt.current),Y(_e,t),Le===null&&(Le=t)}function rr(t){t.tag===22?(Y(wt,wt.current),Y(_e,t),Le===null&&(Le=t)):Nl()}function Nl(){Y(wt,wt.current),Y(_e,_e.current)}function Oe(t){D(_e),Le===t&&(Le=null),D(wt)}var wt=v(0);function Au(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||zf(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 ul=0,at=null,xt=null,Vt=null,_u=!1,Ua=!1,na=!1,Ou=0,zn=0,Ca=null,Ym=0;function Yt(){throw Error(c(321))}function gc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!xe(t[l],e[l]))return!1;return!0}function Sc(t,e,l,a,n,u){return ul=u,at=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_.H=t===null||t.memoizedState===null?Kr:Hc,na=!1,u=l(a,n),na=!1,Ua&&(u=hr(e,l,a,n)),or(t),u}function or(t){_.H=_n;var e=xt!==null&&xt.next!==null;if(ul=0,Vt=xt=at=null,_u=!1,zn=0,Ca=null,e)throw Error(c(300));t===null||Jt||(t=t.dependencies,t!==null&&gu(t)&&(Jt=!0))}function hr(t,e,l,a){at=t;var n=0;do{if(Ua&&(Ca=null),zn=0,Ua=!1,25<=n)throw Error(c(301));if(n+=1,Vt=xt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}_.H=$r,u=e(l,a)}while(Ua);return u}function Lm(){var t=_.H,e=t.useState()[0];return e=typeof e.then=="function"?xn(e):e,t=t.useState()[0],(xt!==null?xt.memoizedState:null)!==t&&(at.flags|=1024),e}function pc(){var t=Ou!==0;return Ou=0,t}function Tc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function bc(t){if(_u){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}_u=!1}ul=0,Vt=xt=at=null,Ua=!1,zn=Ou=0,Ca=null}function oe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?at.memoizedState=Vt=t:Vt=Vt.next=t,Vt}function Gt(){if(xt===null){var t=at.alternate;t=t!==null?t.memoizedState:null}else t=xt.next;var e=Vt===null?at.memoizedState:Vt.next;if(e!==null)Vt=e,xt=t;else{if(t===null)throw at.alternate===null?Error(c(467)):Error(c(310));xt=t,t={memoizedState:xt.memoizedState,baseState:xt.baseState,baseQueue:xt.baseQueue,queue:xt.queue,next:null},Vt===null?at.memoizedState=Vt=t:Vt=Vt.next=t}return Vt}function Mu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xn(t){var e=zn;return zn+=1,Ca===null&&(Ca=[]),t=lr(Ca,t,e),e=at,(Vt===null?e.memoizedState:Vt.next)===null&&(e=e.alternate,_.H=e===null||e.memoizedState===null?Kr:Hc),t}function Nu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return xn(t);if(t.$$typeof===I)return ne(t)}throw Error(c(438,String(t)))}function Ec(t){var e=null,l=at.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=at.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=Mu(),at.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]=Dt;return e.index++,l}function il(t,e){return typeof e=="function"?e(t):e}function Du(t){var e=Gt();return zc(e,xt,t)}function zc(t,e,l){var a=t.queue;if(a===null)throw Error(c(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,d=null,p=e,O=!1;do{var N=p.lane&-536870913;if(N!==p.lane?(rt&N)===N:(ul&N)===N){var E=p.revertLane;if(E===0)d!==null&&(d=d.next={lane:0,revertLane:0,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null}),N===_a&&(O=!0);else if((ul&E)===E){p=p.next,E===_a&&(O=!0);continue}else N={lane:0,revertLane:p.revertLane,gesture:null,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},d===null?(f=d=N,i=u):d=d.next=N,at.lanes|=E,Cl|=E;N=p.action,na&&l(u,N),u=p.hasEagerState?p.eagerState:l(u,N)}else E={lane:N,revertLane:p.revertLane,gesture:p.gesture,action:p.action,hasEagerState:p.hasEagerState,eagerState:p.eagerState,next:null},d===null?(f=d=E,i=u):d=d.next=E,at.lanes|=N,Cl|=N;p=p.next}while(p!==null&&p!==e);if(d===null?i=u:d.next=f,!xe(u,t.memoizedState)&&(Jt=!0,O&&(l=Oa,l!==null)))throw l;t.memoizedState=u,t.baseState=i,t.baseQueue=d,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function xc(t){var e=Gt(),l=e.queue;if(l===null)throw Error(c(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);xe(u,e.memoizedState)||(Jt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,a]}function dr(t,e,l){var a=at,n=Gt(),u=ht;if(u){if(l===void 0)throw Error(c(407));l=l()}else l=e();var i=!xe((xt||n).memoizedState,l);if(i&&(n.memoizedState=l,Jt=!0),n=n.queue,Oc(yr.bind(null,a,n,t),[t]),n.getSnapshot!==e||i||Vt!==null&&Vt.memoizedState.tag&1){if(a.flags|=2048,Ha(9,{destroy:void 0},vr.bind(null,a,n,l,e),null),Nt===null)throw Error(c(349));u||(ul&127)!==0||mr(a,e,l)}return l}function mr(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=at.updateQueue,e===null?(e=Mu(),at.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,gr(e)&&Sr(t)}function yr(t,e,l){return l(function(){gr(e)&&Sr(t)})}function gr(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!xe(t,l)}catch{return!0}}function Sr(t){var e=kl(t,2);e!==null&&Se(e,t,2)}function Ac(t){var e=oe();if(typeof t=="function"){var l=t;if(t=l(),na){Sl(!0);try{l()}finally{Sl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:t},e}function pr(t,e,l,a){return t.baseState=l,zc(t,xt,typeof a=="function"?a:il)}function wm(t,e,l,a,n){if(Hu(t))throw Error(c(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)}};_.T!==null?l(!0):u.isTransition=!1,a(u),l=e.pending,l===null?(u.next=e.pending=u,Tr(e,u)):(u.next=l.next,e.pending=l.next=u)}}function Tr(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var u=_.T,i={};_.T=i;try{var f=l(n,a),d=_.S;d!==null&&d(i,f),br(t,e,f)}catch(p){_c(t,e,p)}finally{u!==null&&i.types!==null&&(u.types=i.types),_.T=u}}else try{u=l(n,a),br(t,e,u)}catch(p){_c(t,e,p)}}function br(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Er(t,e,a)},function(a){return _c(t,e,a)}):Er(t,e,l)}function Er(t,e,l){e.status="fulfilled",e.value=l,zr(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,Tr(t,l)))}function _c(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,zr(e),e=e.next;while(e!==a)}t.action=null}function zr(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(ht){var l=Nt.formState;if(l!==null){t:{var a=at;if(ht){if(Ut){e:{for(var n=Ut,u=Ye;n.nodeType!==8;){if(!u){n=null;break e}if(n=we(n.nextSibling),n===null){n=null;break e}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ut=we(n.nextSibling),a=n.data==="F!";break t}}zl(a)}a=!1}a&&(e=l[0])}}return l=oe(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xr,lastRenderedState:e},l.queue=a,l=Zr.bind(null,at,a),a.dispatch=l,a=Ac(!1),u=Cc.bind(null,at,!1,a.queue),a=oe(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=wm.bind(null,at,n,u,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function _r(t){var e=Gt();return Or(e,xt,t)}function Or(t,e,l){if(e=zc(t,e,xr)[0],t=Du(il)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=xn(e)}catch(i){throw i===Ma?Tu:i}else a=e;e=Gt();var n=e.queue,u=n.dispatch;return l!==e.memoizedState&&(at.flags|=2048,Ha(9,{destroy:void 0},Gm.bind(null,n,l),null)),[a,u,t]}function Gm(t,e){t.action=e}function Mr(t){var e=Gt(),l=xt;if(l!==null)return Or(e,l,t);Gt(),e=e.memoizedState,l=Gt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function Ha(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=at.updateQueue,e===null&&(e=Mu(),at.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 Nr(){return Gt().memoizedState}function Uu(t,e,l,a){var n=oe();at.flags|=t,n.memoizedState=Ha(1|e,{destroy:void 0},l,a===void 0?null:a)}function Cu(t,e,l,a){var n=Gt();a=a===void 0?null:a;var u=n.memoizedState.inst;xt!==null&&a!==null&&gc(a,xt.memoizedState.deps)?n.memoizedState=Ha(e,u,l,a):(at.flags|=t,n.memoizedState=Ha(1|e,u,l,a))}function Dr(t,e){Uu(8390656,8,t,e)}function Oc(t,e){Cu(2048,8,t,e)}function Qm(t){at.flags|=4;var e=at.updateQueue;if(e===null)e=Mu(),at.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Ur(t){var e=Gt().memoizedState;return Qm({ref:e,nextImpl:t}),function(){if((pt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function Cr(t,e){return Cu(4,2,t,e)}function Hr(t,e){return Cu(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 jr(t,e,l){l=l!=null?l.concat([t]):null,Cu(4,4,Rr.bind(null,e,t),l)}function Mc(){}function qr(t,e){var l=Gt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&gc(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Br(t,e){var l=Gt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&gc(e,a[1]))return a[0];if(a=t(),na){Sl(!0);try{t()}finally{Sl(!1)}}return l.memoizedState=[a,e],a}function Nc(t,e,l){return l===void 0||(ul&1073741824)!==0&&(rt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Lo(),at.lanes|=t,Cl|=t,l)}function Yr(t,e,l,a){return xe(l,e)?l:Da.current!==null?(t=Nc(t,l,a),xe(t,e)||(Jt=!0),t):(ul&42)===0||(ul&1073741824)!==0&&(rt&261930)===0?(Jt=!0,t.memoizedState=l):(t=Lo(),at.lanes|=t,Cl|=t,e)}function Lr(t,e,l,a,n){var u=B.p;B.p=u!==0&&8>u?u:8;var i=_.T,f={};_.T=f,Cc(t,!1,e,l);try{var d=n(),p=_.S;if(p!==null&&p(f,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var O=Bm(d,a);An(t,e,O,De(t))}else An(t,e,a,De(t))}catch(N){An(t,e,{then:function(){},status:"rejected",reason:N},De())}finally{B.p=u,i!==null&&f.types!==null&&(i.types=f.types),_.T=i}}function Xm(){}function Dc(t,e,l,a){if(t.tag!==5)throw Error(c(476));var n=wr(t).queue;Lr(t,n,e,V,l===null?Xm:function(){return Gr(t),l(a)})}function wr(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:V},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Gr(t){var e=wr(t);e.next===null&&(e=t.alternate.memoizedState),An(t,e.next.queue,{},De())}function Uc(){return ne(Qn)}function Qr(){return Gt().memoizedState}function Xr(){return Gt().memoizedState}function Zm(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=De();t=_l(l);var a=Ol(e,t,l);a!==null&&(Se(a,e,l),Tn(a,e,l)),e={cache:ic()},t.payload=e;return}e=e.return}}function Vm(t,e,l){var a=De();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Hu(t)?Vr(e,l):(l=ki(t,e,l,a),l!==null&&(Se(l,t,a),Jr(l,e,a)))}function Zr(t,e,l){var a=De();An(t,e,l,a)}function An(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Hu(t))Vr(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,xe(f,i))return du(t,e,n,0),Nt===null&&hu(),!1}catch{}finally{}if(l=ki(t,e,n,a),l!==null)return Se(l,t,a),Jr(l,e,a),!0}return!1}function Cc(t,e,l,a){if(a={lane:2,revertLane:of(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Hu(t)){if(e)throw Error(c(479))}else e=ki(t,l,a,2),e!==null&&Se(e,t,2)}function Hu(t){var e=t.alternate;return t===at||e!==null&&e===at}function Vr(t,e){Ua=_u=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Jr(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Ff(t,l)}}var _n={readContext:ne,use:Nu,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};_n.useEffectEvent=Yt;var Kr={readContext:ne,use:Nu,useCallback:function(t,e){return oe().memoizedState=[t,e===void 0?null:e],t},useContext:ne,useEffect:Dr,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Uu(4194308,4,Rr.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Uu(4194308,4,t,e)},useInsertionEffect:function(t,e){Uu(4,2,t,e)},useMemo:function(t,e){var l=oe();e=e===void 0?null:e;var a=t();if(na){Sl(!0);try{t()}finally{Sl(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=oe();if(l!==void 0){var n=l(e);if(na){Sl(!0);try{l(e)}finally{Sl(!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=Vm.bind(null,at,t),[a.memoizedState,t]},useRef:function(t){var e=oe();return t={current:t},e.memoizedState=t},useState:function(t){t=Ac(t);var e=t.queue,l=Zr.bind(null,at,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Mc,useDeferredValue:function(t,e){var l=oe();return Nc(l,t,e)},useTransition:function(){var t=Ac(!1);return t=Lr.bind(null,at,t.queue,!0,!1),oe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=at,n=oe();if(ht){if(l===void 0)throw Error(c(407));l=l()}else{if(l=e(),Nt===null)throw Error(c(349));(rt&127)!==0||mr(a,e,l)}n.memoizedState=l;var u={value:l,getSnapshot:e};return n.queue=u,Dr(yr.bind(null,a,u,t),[t]),a.flags|=2048,Ha(9,{destroy:void 0},vr.bind(null,a,u,l,e),null),l},useId:function(){var t=oe(),e=Nt.identifierPrefix;if(ht){var l=$e,a=Ke;l=(a&~(1<<32-ze(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Ou++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Ym++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Uc,useFormState:Ar,useActionState:Ar,useOptimistic:function(t){var e=oe();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Cc.bind(null,at,!0,l),l.dispatch=e,[t,e]},useMemoCache:Ec,useCacheRefresh:function(){return oe().memoizedState=Zm.bind(null,at)},useEffectEvent:function(t){var e=oe(),l={impl:t};return e.memoizedState=l,function(){if((pt&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},Hc={readContext:ne,use:Nu,useCallback:qr,useContext:ne,useEffect:Oc,useImperativeHandle:jr,useInsertionEffect:Cr,useLayoutEffect:Hr,useMemo:Br,useReducer:Du,useRef:Nr,useState:function(){return Du(il)},useDebugValue:Mc,useDeferredValue:function(t,e){var l=Gt();return Yr(l,xt.memoizedState,t,e)},useTransition:function(){var t=Du(il)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:xn(t),e]},useSyncExternalStore:dr,useId:Qr,useHostTransitionStatus:Uc,useFormState:_r,useActionState:_r,useOptimistic:function(t,e){var l=Gt();return pr(l,xt,t,e)},useMemoCache:Ec,useCacheRefresh:Xr};Hc.useEffectEvent=Ur;var $r={readContext:ne,use:Nu,useCallback:qr,useContext:ne,useEffect:Oc,useImperativeHandle:jr,useInsertionEffect:Cr,useLayoutEffect:Hr,useMemo:Br,useReducer:xc,useRef:Nr,useState:function(){return xc(il)},useDebugValue:Mc,useDeferredValue:function(t,e){var l=Gt();return xt===null?Nc(l,t,e):Yr(l,xt.memoizedState,t,e)},useTransition:function(){var t=xc(il)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:xn(t),e]},useSyncExternalStore:dr,useId:Qr,useHostTransitionStatus:Uc,useFormState:Mr,useActionState:Mr,useOptimistic:function(t,e){var l=Gt();return xt!==null?pr(l,xt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Ec,useCacheRefresh:Xr};$r.useEffectEvent=Ur;function Rc(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:H({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var jc={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=De(),n=_l(a);n.payload=e,l!=null&&(n.callback=l),e=Ol(t,n,a),e!==null&&(Se(e,t,a),Tn(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=De(),n=_l(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=Ol(t,n,a),e!==null&&(Se(e,t,a),Tn(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=De(),a=_l(l);a.tag=2,e!=null&&(a.callback=e),e=Ol(t,a,l),e!==null&&(Se(e,t,l),Tn(e,t,l))}};function kr(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?!hn(l,a)||!hn(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&&jc.enqueueReplaceState(e,e.state,null)}function ua(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=H({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function Fr(t){ou(t)}function Ir(t){console.error(t)}function Pr(t){ou(t)}function Ru(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=_l(l),l.tag=3,l.payload={element:null},l.callback=function(){Ru(t,e)},l}function eo(t){return t=_l(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"&&(Hl===null?Hl=new Set([this]):Hl.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function Jm(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&Aa(e,l,n,!0),l=_e.current,l!==null){switch(l.tag){case 31:case 13:return Le===null?Ju():l.alternate===null&&Lt===0&&(Lt=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===bu?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===bu?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(c(435,l.tag))}return ff(t,a,n),Ju(),!1}if(ht)return e=_e.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==ec&&(t=Error(c(422),{cause:a}),vn(je(t,l)))):(a!==ec&&(e=Error(c(423),{cause:a}),vn(je(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=je(a,l),n=qc(t.stateNode,a,n),hc(t,n),Lt!==4&&(Lt=2)),!1;var u=Error(c(520),{cause:a});if(u=je(u,l),Rn===null?Rn=[u]:Rn.push(u),Lt!==4&&(Lt=2),e===null)return!0;a=je(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),hc(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"&&(Hl===null||!Hl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=eo(n),lo(n,t,l,a),hc(l,n),!1}l=l.return}while(l!==null);return!1}var Bc=Error(c(461)),Jt=!1;function ue(t,e,l,a){e.child=t===null?ir(e,null,l,a):aa(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 Pl(e),a=Sc(t,e,l,i,u,n),f=pc(),t!==null&&!Jt?(Tc(t,e,n),cl(t,e,n)):(ht&&f&&Pi(e),e.flags|=1,ue(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=vu(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Vc(t,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:hn,l(i,a)&&t.ref===e.ref)return cl(t,e,n)}return e.flags|=1,t=el(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(hn(u,a)&&t.ref===e.ref)if(Jt=!1,e.pendingProps=a=u,Vc(t,n))(t.flags&131072)!==0&&(Jt=!0);else return e.lanes=t.lanes,cl(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&&pu(e,u!==null?u.cachePool:null),u!==null?sr(e,u):mc(),rr(e);else return a=e.lanes=536870912,co(t,e,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(pu(e,u.cachePool),sr(e,u),Nl(),e.memoizedState=null):(t!==null&&pu(e,null),mc(),Nl());return ue(t,e,n,l),e.child}function On(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:Zt._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&pu(e,null),mc(),rr(e),t!==null&&Aa(t,e,a,!0),e.childLanes=n,null}function ju(t,e){return e=Bu({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 aa(e,t.child,null,l),t=ju(e,e.pendingProps),t.flags|=2,Oe(e),e.memoizedState=null,t}function Km(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(ht){if(a.mode==="hidden")return t=ju(e,a),e.lanes=536870912,On(null,t);if(yc(e),(t=Ut)?(t=bh(t,Ye),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:bl!==null?{id:Ke,overflow:$e}:null,retryLane:536870912,hydrationErrors:null},l=Vs(t),l.return=e,e.child=l,ae=e,Ut=null)):t=null,t===null)throw zl(e);return e.lanes=536870912,null}return ju(e,a)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(yc(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(c(558));else if(Jt||Aa(t,e,l,!1),n=(l&t.childLanes)!==0,Jt||n){if(a=Nt,a!==null&&(i=If(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,kl(t,i),Se(a,t,i),Bc;Ju(),e=fo(t,e,l)}else t=u.treeContext,Ut=we(i.nextSibling),ae=e,ht=!0,El=null,Ye=!1,t!==null&&$s(e,t),e=ju(e,a),e.flags|=4096;return e}return t=el(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function qu(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(c(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Yc(t,e,l,a,n){return Pl(e),l=Sc(t,e,l,a,void 0,n),a=pc(),t!==null&&!Jt?(Tc(t,e,n),cl(t,e,n)):(ht&&a&&Pi(e),e.flags|=1,ue(t,e,l,n),e.child)}function so(t,e,l,a,n,u){return Pl(e),e.updateQueue=null,l=hr(e,a,l,n),or(t),a=pc(),t!==null&&!Jt?(Tc(t,e,u),cl(t,e,u)):(ht&&a&&Pi(e),e.flags|=1,ue(t,e,l,u),e.child)}function ro(t,e,l,a,n){if(Pl(e),e.stateNode===null){var u=ba,i=l.contextType;typeof i=="object"&&i!==null&&(u=ne(i)),u=new l(a,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=jc,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?ne(i):ba,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&&jc.enqueueReplaceState(u,u.state,null),En(e,a,u,n),bn(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){u=e.stateNode;var f=e.memoizedProps,d=ua(l,f);u.props=d;var p=u.context,O=l.contextType;i=ba,typeof O=="object"&&O!==null&&(i=ne(O));var N=l.getDerivedStateFromProps;O=typeof N=="function"||typeof u.getSnapshotBeforeUpdate=="function",f=e.pendingProps!==f,O||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f||p!==i)&&Wr(e,u,a,i),Al=!1;var E=e.memoizedState;u.state=E,En(e,a,u,n),bn(),p=e.memoizedState,f||E!==p||Al?(typeof N=="function"&&(Rc(e,l,N,a),p=e.memoizedState),(d=Al||kr(e,l,d,a,E,p,i))?(O||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=p),u.props=a,u.state=p,u.context=i,a=d):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{u=e.stateNode,oc(t,e),i=e.memoizedProps,O=ua(l,i),u.props=O,N=e.pendingProps,E=u.context,p=l.contextType,d=ba,typeof p=="object"&&p!==null&&(d=ne(p)),f=l.getDerivedStateFromProps,(p=typeof f=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==N||E!==d)&&Wr(e,u,a,d),Al=!1,E=e.memoizedState,u.state=E,En(e,a,u,n),bn();var A=e.memoizedState;i!==N||E!==A||Al||t!==null&&t.dependencies!==null&&gu(t.dependencies)?(typeof f=="function"&&(Rc(e,l,f,a),A=e.memoizedState),(O=Al||kr(e,l,O,a,E,A,d)||t!==null&&t.dependencies!==null&&gu(t.dependencies))?(p||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,A,d),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,A,d)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&E===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&E===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=A),u.props=a,u.state=A,u.context=d,a=O):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&E===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&E===t.memoizedState||(e.flags|=1024),a=!1)}return u=a,qu(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=aa(e,t.child,null,n),e.child=aa(e,null,l,n)):ue(t,e,l,n),e.memoizedState=u.state,t=e.child):t=cl(t,e,n),t}function oo(t,e,l,a){return Fl(),e.flags|=256,ue(t,e,l,a),e.child}var Lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wc(t){return{baseLanes:t,cachePool:tr()}}function Gc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Ne),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:(wt.current&2)!==0),i&&(n=!0,e.flags&=-129),i=(e.flags&32)!==0,e.flags&=-33,t===null){if(ht){if(n?Ml(e):Nl(),(t=Ut)?(t=bh(t,Ye),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:bl!==null?{id:Ke,overflow:$e}:null,retryLane:536870912,hydrationErrors:null},l=Vs(t),l.return=e,e.child=l,ae=e,Ut=null)):t=null,t===null)throw zl(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=Bu({mode:"hidden",children:f},n),a=Wl(a,n,l,null),f.return=e,a.return=e,f.sibling=a,e.child=f,a=e.child,a.memoizedState=wc(l),a.childLanes=Gc(t,i,l),e.memoizedState=Lc,On(null,a)):(Ml(e),Qc(e,f))}var d=t.memoizedState;if(d!==null&&(f=d.dehydrated,f!==null)){if(u)e.flags&256?(Ml(e),e.flags&=-257,e=Xc(t,e,l)):e.memoizedState!==null?(Nl(),e.child=t.child,e.flags|=128,e=null):(Nl(),f=a.fallback,n=e.mode,a=Bu({mode:"visible",children:a.children},n),f=Wl(f,n,l,null),f.flags|=2,a.return=e,f.return=e,a.sibling=f,e.child=a,aa(e,t.child,null,l),a=e.child,a.memoizedState=wc(l),a.childLanes=Gc(t,i,l),e.memoizedState=Lc,e=On(null,a));else if(Ml(e),xf(f)){if(i=f.nextSibling&&f.nextSibling.dataset,i)var p=i.dgst;i=p,a=Error(c(419)),a.stack="",a.digest=i,vn({value:a,source:null,stack:null}),e=Xc(t,e,l)}else if(Jt||Aa(t,e,l,!1),i=(l&t.childLanes)!==0,Jt||i){if(i=Nt,i!==null&&(a=If(i,l),a!==0&&a!==d.retryLane))throw d.retryLane=a,kl(t,a),Se(i,t,a),Bc;zf(f)||Ju(),e=Xc(t,e,l)}else zf(f)?(e.flags|=192,e.child=t.child,e=null):(t=d.treeContext,Ut=we(f.nextSibling),ae=e,ht=!0,El=null,Ye=!1,t!==null&&$s(e,t),e=Qc(e,a.children),e.flags|=4096);return e}return n?(Nl(),f=a.fallback,n=e.mode,d=t.child,p=d.sibling,a=el(d,{mode:"hidden",children:a.children}),a.subtreeFlags=d.subtreeFlags&65011712,p!==null?f=el(p,f):(f=Wl(f,n,l,null),f.flags|=2),f.return=e,a.return=e,a.sibling=f,e.child=a,On(null,a),a=e.child,f=t.child.memoizedState,f===null?f=wc(l):(n=f.cachePool,n!==null?(d=Zt._currentValue,n=n.parent!==d?{parent:d,pool:d}:n):n=tr(),f={baseLanes:f.baseLanes|l,cachePool:n}),a.memoizedState=f,a.childLanes=Gc(t,i,l),e.memoizedState=Lc,On(t.child,a)):(Ml(e),l=t.child,t=l.sibling,l=el(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 Qc(t,e){return e=Bu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Bu(t,e){return t=Ae(22,t,null,e),t.lanes=0,t}function Xc(t,e,l){return aa(e,t.child,null,l),t=Qc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function mo(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),nc(t.return,e,l)}function Zc(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=wt.current,f=(i&2)!==0;if(f?(i=i&1|2,e.flags|=128):i&=1,Y(wt,i),ue(t,e,a,l),a=ht?mn:0,!f&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&mo(t,l,e);else if(t.tag===19)mo(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&&Au(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Zc(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&&Au(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Zc(e,!0,l,null,u,a);break;case"together":Zc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function cl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Cl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Aa(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,l=el(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=el(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Vc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&gu(t)))}function $m(t,e,l){switch(e.tag){case 3:ee(e,e.stateNode.containerInfo),xl(e,Zt,t.memoizedState.cache),Fl();break;case 27:case 5:gl(e);break;case 4:ee(e,e.stateNode.containerInfo);break;case 10:xl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,yc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Ml(e),e.flags|=128,null):(l&e.child.childLanes)!==0?ho(t,e,l):(Ml(e),t=cl(t,e,l),t!==null?t.sibling:null);Ml(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(Aa(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),Y(wt,wt.current),a)break;return null;case 22:return e.lanes=0,io(t,e,l,e.pendingProps);case 24:xl(e,Zt,t.memoizedState.cache)}return cl(t,e,l)}function yo(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Jt=!0;else{if(!Vc(t,l)&&(e.flags&128)===0)return Jt=!1,$m(t,e,l);Jt=(t.flags&131072)!==0}else Jt=!1,ht&&(e.flags&1048576)!==0&&Ks(e,mn,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=ea(e.elementType),e.type=t,typeof t=="function")Wi(t)?(a=ua(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===Xt){e.tag=11,e=ao(null,e,t,a,l);break t}else if(n===P){e.tag=14,e=no(null,e,t,a,l);break t}}throw e=Ot(t)||t,Error(c(306,e,""))}}return e;case 0:return Yc(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=ua(a,e.pendingProps),ro(t,e,a,n,l);case 3:t:{if(ee(e,e.stateNode.containerInfo),t===null)throw Error(c(387));a=e.pendingProps;var u=e.memoizedState;n=u.element,oc(t,e),En(e,a,null,l);var i=e.memoizedState;if(a=i.cache,xl(e,Zt,a),a!==u.cache&&uc(e,[Zt],l,!0),bn(),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=je(Error(c(424)),e),vn(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(Ut=we(t.firstChild),ae=e,ht=!0,El=null,Ye=!0,l=ir(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Fl(),a===n){e=cl(t,e,l);break t}ue(t,e,a,l)}e=e.child}return e;case 26:return qu(t,e),t===null?(l=Oh(e.type,null,e.pendingProps,null))?e.memoizedState=l:ht||(l=e.type,t=e.pendingProps,a=Pu(it.current).createElement(l),a[le]=e,a[he]=t,ie(a,l,t),Ft(a),e.stateNode=a):e.memoizedState=Oh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return gl(e),t===null&&ht&&(a=e.stateNode=xh(e.type,e.pendingProps,it.current),ae=e,Ye=!0,n=Ut,Bl(e.type)?(Af=n,Ut=we(a.firstChild)):Ut=n),ue(t,e,e.pendingProps.children,l),qu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&ht&&((n=a=Ut)&&(a=xv(a,e.type,e.pendingProps,Ye),a!==null?(e.stateNode=a,ae=e,Ut=we(a.firstChild),Ye=!1,n=!0):n=!1),n||zl(e)),gl(e),n=e.type,u=e.pendingProps,i=t!==null?t.memoizedProps:null,a=u.children,Tf(n,u)?a=null:i!==null&&Tf(n,i)&&(e.flags|=32),e.memoizedState!==null&&(n=Sc(t,e,Lm,null,null,l),Qn._currentValue=n),qu(t,e),ue(t,e,a,l),e.child;case 6:return t===null&&ht&&((t=l=Ut)&&(l=Av(l,e.pendingProps,Ye),l!==null?(e.stateNode=l,ae=e,Ut=null,t=!0):t=!1),t||zl(e)),null;case 13:return ho(t,e,l);case 4:return ee(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=aa(e,null,a,l):ue(t,e,a,l),e.child;case 11:return ao(t,e,e.type,e.pendingProps,l);case 7:return ue(t,e,e.pendingProps,l),e.child;case 8:return ue(t,e,e.pendingProps.children,l),e.child;case 12:return ue(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,xl(e,e.type,a.value),ue(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,Pl(e),n=ne(n),a=a(n),e.flags|=1,ue(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 Km(t,e,l);case 22:return io(t,e,l,e.pendingProps);case 24:return Pl(e),a=ne(Zt),t===null?(n=fc(),n===null&&(n=Nt,u=ic(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),e.memoizedState={parent:a,cache:n},rc(e),xl(e,Zt,n)):((t.lanes&l)!==0&&(oc(t,e),En(e,null,null,l),bn()),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),xl(e,Zt,a)):(a=u.cache,xl(e,Zt,a),a!==n.cache&&uc(e,[Zt],l,!0))),ue(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function fl(t){t.flags|=4}function Jc(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(Xo())t.flags|=8192;else throw la=bu,sc}else t.flags&=-16777217}function go(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ch(e))if(Xo())t.flags|=8192;else throw la=bu,sc}function Yu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?kf():536870912,t.lanes|=e,Ba|=e)}function Mn(t,e){if(!ht)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 Ct(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 km(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 Ct(e),null;case 1:return Ct(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),nl(Zt),Mt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(xa(e)?fl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,lc())),Ct(e),null;case 26:var n=e.type,u=e.memoizedState;return t===null?(fl(e),u!==null?(Ct(e),go(e,u)):(Ct(e),Jc(e,n,null,a,l))):u?u!==t.memoizedState?(fl(e),Ct(e),go(e,u)):(Ct(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&fl(e),Ct(e),Jc(e,n,t,a,l)),null;case 27:if(j(e),l=it.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&fl(e);else{if(!a){if(e.stateNode===null)throw Error(c(166));return Ct(e),null}t=Q.current,xa(e)?ks(e):(t=xh(n,a,l),e.stateNode=t,fl(e))}return Ct(e),null;case 5:if(j(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&fl(e);else{if(!a){if(e.stateNode===null)throw Error(c(166));return Ct(e),null}if(u=Q.current,xa(e))ks(e);else{var i=Pu(it.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[le]=e,u[he]=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(ie(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&&fl(e)}}return Ct(e),Jc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&fl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(c(166));if(t=it.current,xa(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=ae,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[le]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||dh(t.nodeValue,l)),t||zl(e,!0)}else t=Pu(t).createTextNode(a),t[le]=e,e.stateNode=t}return Ct(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=xa(e),l!==null){if(t===null){if(!a)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[le]=e}else Fl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ct(e),t=!1}else l=lc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Oe(e),e):(Oe(e),null);if((e.flags&128)!==0)throw Error(c(558))}return Ct(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=xa(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(c(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));n[le]=e}else Fl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ct(e),n=!1}else n=lc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(Oe(e),e):(Oe(e),null)}return Oe(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),Yu(e,e.updateQueue),Ct(e),null);case 4:return Mt(),t===null&&vf(e.stateNode.containerInfo),Ct(e),null;case 10:return nl(e.type),Ct(e),null;case 19:if(D(wt),a=e.memoizedState,a===null)return Ct(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)Mn(a,!1);else{if(Lt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Au(t),u!==null){for(e.flags|=128,Mn(a,!1),t=u.updateQueue,e.updateQueue=t,Yu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Zs(l,t),l=l.sibling;return Y(wt,wt.current&1|2),ht&&ll(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&be()>Xu&&(e.flags|=128,n=!0,Mn(a,!1),e.lanes=4194304)}else{if(!n)if(t=Au(u),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Yu(e,t),Mn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!ht)return Ct(e),null}else 2*be()-a.renderingStartTime>Xu&&l!==536870912&&(e.flags|=128,n=!0,Mn(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=be(),t.sibling=null,l=wt.current,Y(wt,n?l&1|2:l&1),ht&&ll(e,a.treeForkCount),t):(Ct(e),null);case 22:case 23:return Oe(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&&(Ct(e),e.subtreeFlags&6&&(e.flags|=8192)):Ct(e),l=e.updateQueue,l!==null&&Yu(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&&D(ta),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),nl(Zt),Ct(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function Wm(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 nl(Zt),Mt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return j(e),null;case 31:if(e.memoizedState!==null){if(Oe(e),e.alternate===null)throw Error(c(340));Fl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Oe(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));Fl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return D(wt),null;case 4:return Mt(),null;case 10:return nl(e.type),null;case 22:case 23:return Oe(e),vc(),t!==null&&D(ta),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return nl(Zt),null;case 25:return null;default:return null}}function So(t,e){switch(tc(e),e.tag){case 3:nl(Zt),Mt();break;case 26:case 27:case 5:j(e);break;case 4:Mt();break;case 31:e.memoizedState!==null&&Oe(e);break;case 13:Oe(e);break;case 19:D(wt);break;case 10:nl(e.type);break;case 22:case 23:Oe(e),vc(),t!==null&&D(ta);break;case 24:nl(Zt)}}function Nn(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){Et(e,e.return,f)}}function Dl(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 d=l,p=f;try{p()}catch(O){Et(n,d,O)}}}a=a.next}while(a!==u)}}catch(O){Et(e,e.return,O)}}function po(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{fr(e,l)}catch(a){Et(t,t.return,a)}}}function To(t,e,l){l.props=ua(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){Et(t,e,a)}}function Dn(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){Et(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){Et(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){Et(t,e,n)}else l.current=null}function bo(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){Et(t,t.return,n)}}function Kc(t,e,l){try{var a=t.stateNode;Sv(a,t.type,l,e),a[he]=e}catch(n){Et(t,t.return,n)}}function Eo(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Bl(t.type)||t.tag===4}function $c(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Eo(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&&Bl(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 kc(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=Pe));else if(a!==4&&(a===27&&Bl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(kc(t,e,l),t=t.sibling;t!==null;)kc(t,e,l),t=t.sibling}function Lu(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&&Bl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Lu(t,e,l),t=t.sibling;t!==null;)Lu(t,e,l),t=t.sibling}function zo(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ie(e,a,l),e[le]=t,e[he]=l}catch(u){Et(t,t.return,u)}}var sl=!1,Kt=!1,Wc=!1,xo=typeof WeakSet=="function"?WeakSet:Set,It=null;function Fm(t,e){if(t=t.containerInfo,Sf=ii,t=js(t),Xi(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,d=-1,p=0,O=0,N=t,E=null;e:for(;;){for(var A;N!==l||n!==0&&N.nodeType!==3||(f=i+n),N!==u||a!==0&&N.nodeType!==3||(d=i+a),N.nodeType===3&&(i+=N.nodeValue.length),(A=N.firstChild)!==null;)E=N,N=A;for(;;){if(N===t)break e;if(E===l&&++p===n&&(f=i),E===u&&++O===a&&(d=i),(A=N.nextSibling)!==null)break;N=E,E=N.parentNode}N=A}l=f===-1||d===-1?null:{start:f,end:d}}else l=null}l=l||{start:0,end:0}}else l=null;for(pf={focusedElem:t,selectionRange:l},ii=!1,It=e;It!==null;)if(e=It,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,It=t;else for(;It!==null;){switch(e=It,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 w=ua(l.type,n);t=a.getSnapshotBeforeUpdate(w,u),a.__reactInternalSnapshotBeforeUpdate=t}catch($){Et(l,l.return,$)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Ef(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ef(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(c(163))}if(t=e.sibling,t!==null){t.return=e.return,It=t;break}It=e.return}}function Ao(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:ol(t,l),a&4&&Nn(5,l);break;case 1:if(ol(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(i){Et(l,l.return,i)}else{var n=ua(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(i){Et(l,l.return,i)}}a&64&&po(l),a&512&&Dn(l,l.return);break;case 3:if(ol(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){Et(l,l.return,i)}}break;case 27:e===null&&a&4&&zo(l);case 26:case 5:ol(t,l),e===null&&a&4&&bo(l),a&512&&Dn(l,l.return);break;case 12:ol(t,l);break;case 31:ol(t,l),a&4&&Mo(t,l);break;case 13:ol(t,l),a&4&&No(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=iv.bind(null,l),_v(t,l))));break;case 22:if(a=l.memoizedState!==null||sl,!a){e=e!==null&&e.memoizedState!==null||Kt,n=sl;var u=Kt;sl=a,(Kt=e)&&!u?hl(t,l,(l.subtreeFlags&8772)!==0):ol(t,l),sl=n,Kt=u}break;case 30:break;default:ol(t,l)}}function _o(t){var e=t.alternate;e!==null&&(t.alternate=null,_o(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&_i(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 qt=null,me=!1;function rl(t,e,l){for(l=l.child;l!==null;)Oo(t,e,l),l=l.sibling}function Oo(t,e,l){if(Ee&&typeof Ee.onCommitFiberUnmount=="function")try{Ee.onCommitFiberUnmount(Pa,l)}catch{}switch(l.tag){case 26:Kt||ke(l,e),rl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Kt||ke(l,e);var a=qt,n=me;Bl(l.type)&&(qt=l.stateNode,me=!1),rl(t,e,l),Ln(l.stateNode),qt=a,me=n;break;case 5:Kt||ke(l,e);case 6:if(a=qt,n=me,qt=null,rl(t,e,l),qt=a,me=n,qt!==null)if(me)try{(qt.nodeType===9?qt.body:qt.nodeName==="HTML"?qt.ownerDocument.body:qt).removeChild(l.stateNode)}catch(u){Et(l,e,u)}else try{qt.removeChild(l.stateNode)}catch(u){Et(l,e,u)}break;case 18:qt!==null&&(me?(t=qt,ph(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Va(t)):ph(qt,l.stateNode));break;case 4:a=qt,n=me,qt=l.stateNode.containerInfo,me=!0,rl(t,e,l),qt=a,me=n;break;case 0:case 11:case 14:case 15:Dl(2,l,e),Kt||Dl(4,l,e),rl(t,e,l);break;case 1:Kt||(ke(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&To(l,e,a)),rl(t,e,l);break;case 21:rl(t,e,l);break;case 22:Kt=(a=Kt)||l.memoizedState!==null,rl(t,e,l),Kt=a;break;default:rl(t,e,l)}}function Mo(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Va(t)}catch(l){Et(e,e.return,l)}}}function No(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Va(t)}catch(l){Et(e,e.return,l)}}function Im(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(c(435,t.tag))}}function wu(t,e){var l=Im(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=cv.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(Bl(f.type)){qt=f.stateNode,me=!1;break t}break;case 5:qt=f.stateNode,me=!1;break t;case 3:case 4:qt=f.stateNode.containerInfo,me=!0;break t}f=f.return}if(qt===null)throw Error(c(160));Oo(u,i,n),qt=null,me=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Do(e,t),e=e.sibling}var Ze=null;function Do(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ve(e,t),ye(t),a&4&&(Dl(3,t,t.return),Nn(3,t),Dl(5,t,t.return));break;case 1:ve(e,t),ye(t),a&512&&(Kt||l===null||ke(l,l.return)),a&64&&sl&&(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),ye(t),a&512&&(Kt||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[ln]||u[le]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),ie(u,a,l),u[le]=t,Ft(u),a=u;break t;case"link":var i=Dh("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),ie(u,a,l),n.head.appendChild(u);break;case"meta":if(i=Dh("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),ie(u,a,l),n.head.appendChild(u);break;default:throw Error(c(468,a))}u[le]=t,Ft(u),a=u}t.stateNode=a}else Uh(n,t.type,t.stateNode);else t.stateNode=Nh(n,a,t.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Uh(n,t.type,t.stateNode):Nh(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Kc(t,t.memoizedProps,l.memoizedProps)}break;case 27:ve(e,t),ye(t),a&512&&(Kt||l===null||ke(l,l.return)),l!==null&&a&4&&Kc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ve(e,t),ye(t),a&512&&(Kt||l===null||ke(l,l.return)),t.flags&32){n=t.stateNode;try{ma(n,"")}catch(w){Et(t,t.return,w)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Kc(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Wc=!0);break;case 6:if(ve(e,t),ye(t),a&4){if(t.stateNode===null)throw Error(c(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(w){Et(t,t.return,w)}}break;case 3:if(li=null,n=Ze,Ze=ti(e.containerInfo),ve(e,t),Ze=n,ye(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Va(e.containerInfo)}catch(w){Et(t,t.return,w)}Wc&&(Wc=!1,Uo(t));break;case 4:a=Ze,Ze=ti(t.stateNode.containerInfo),ve(e,t),ye(t),Ze=a;break;case 12:ve(e,t),ye(t);break;case 31:ve(e,t),ye(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,wu(t,a)));break;case 13:ve(e,t),ye(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Qu=be()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,wu(t,a)));break;case 22:n=t.memoizedState!==null;var d=l!==null&&l.memoizedState!==null,p=sl,O=Kt;if(sl=p||n,Kt=O||d,ve(e,t),Kt=O,sl=p,ye(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||d||sl||Kt||ia(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){d=l=e;try{if(u=d.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{f=d.stateNode;var N=d.memoizedProps.style,E=N!=null&&N.hasOwnProperty("display")?N.display:null;f.style.display=E==null||typeof E=="boolean"?"":(""+E).trim()}}catch(w){Et(d,d.return,w)}}}else if(e.tag===6){if(l===null){d=e;try{d.stateNode.nodeValue=n?"":d.memoizedProps}catch(w){Et(d,d.return,w)}}}else if(e.tag===18){if(l===null){d=e;try{var A=d.stateNode;n?Th(A,!0):Th(d.stateNode,!1)}catch(w){Et(d,d.return,w)}}}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),ye(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),ye(t)}}function ye(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(Eo(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var n=l.stateNode,u=$c(t);Lu(t,u,n);break;case 5:var i=l.stateNode;l.flags&32&&(ma(i,""),l.flags&=-33);var f=$c(t);Lu(t,f,i);break;case 3:case 4:var d=l.stateNode.containerInfo,p=$c(t);kc(t,p,d);break;default:throw Error(c(161))}}catch(O){Et(t,t.return,O)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Uo(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Uo(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function ol(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Ao(t,e.alternate,e),e=e.sibling}function ia(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Dl(4,e,e.return),ia(e);break;case 1:ke(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&To(e,e.return,l),ia(e);break;case 27:Ln(e.stateNode);case 26:case 5:ke(e,e.return),ia(e);break;case 22:e.memoizedState===null&&ia(e);break;case 30:ia(e);break;default:ia(e)}t=t.sibling}}function hl(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:hl(n,u,l),Nn(4,u);break;case 1:if(hl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(p){Et(a,a.return,p)}if(a=u,n=a.updateQueue,n!==null){var f=a.stateNode;try{var d=n.shared.hiddenCallbacks;if(d!==null)for(n.shared.hiddenCallbacks=null,n=0;n<d.length;n++)cr(d[n],f)}catch(p){Et(a,a.return,p)}}l&&i&64&&po(u),Dn(u,u.return);break;case 27:zo(u);case 26:case 5:hl(n,u,l),l&&a===null&&i&4&&bo(u),Dn(u,u.return);break;case 12:hl(n,u,l);break;case 31:hl(n,u,l),l&&i&4&&Mo(n,u);break;case 13:hl(n,u,l),l&&i&4&&No(n,u);break;case 22:u.memoizedState===null&&hl(n,u,l),Dn(u,u.return);break;case 30:break;default:hl(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&&yn(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&&yn(t))}function Ve(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Co(t,e,l,a),e=e.sibling}function Co(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Ve(t,e,l,a),n&2048&&Nn(9,e);break;case 1:Ve(t,e,l,a);break;case 3:Ve(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&&yn(t)));break;case 12:if(n&2048){Ve(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(d){Et(e,e.return,d)}}else Ve(t,e,l,a);break;case 31:Ve(t,e,l,a);break;case 13:Ve(t,e,l,a);break;case 23:break;case 22:u=e.stateNode,i=e.alternate,e.memoizedState!==null?u._visibility&2?Ve(t,e,l,a):Un(t,e):u._visibility&2?Ve(t,e,l,a):(u._visibility|=2,Ra(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&Fc(i,e);break;case 24:Ve(t,e,l,a),n&2048&&Ic(e.alternate,e);break;default:Ve(t,e,l,a)}}function Ra(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,d=a,p=i.flags;switch(i.tag){case 0:case 11:case 15:Ra(u,i,f,d,n),Nn(8,i);break;case 23:break;case 22:var O=i.stateNode;i.memoizedState!==null?O._visibility&2?Ra(u,i,f,d,n):Un(u,i):(O._visibility|=2,Ra(u,i,f,d,n)),n&&p&2048&&Fc(i.alternate,i);break;case 24:Ra(u,i,f,d,n),n&&p&2048&&Ic(i.alternate,i);break;default:Ra(u,i,f,d,n)}e=e.sibling}}function Un(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:Un(l,a),n&2048&&Fc(a.alternate,a);break;case 24:Un(l,a),n&2048&&Ic(a.alternate,a);break;default:Un(l,a)}e=e.sibling}}var Cn=8192;function ja(t,e,l){if(t.subtreeFlags&Cn)for(t=t.child;t!==null;)Ho(t,e,l),t=t.sibling}function Ho(t,e,l){switch(t.tag){case 26:ja(t,e,l),t.flags&Cn&&t.memoizedState!==null&&Yv(l,Ze,t.memoizedState,t.memoizedProps);break;case 5:ja(t,e,l);break;case 3:case 4:var a=Ze;Ze=ti(t.stateNode.containerInfo),ja(t,e,l),Ze=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Cn,Cn=16777216,ja(t,e,l),Cn=a):ja(t,e,l));break;default:ja(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 Hn(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];It=a,qo(a,t)}Ro(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jo(t),t=t.sibling}function jo(t){switch(t.tag){case 0:case 11:case 15:Hn(t),t.flags&2048&&Dl(9,t,t.return);break;case 3:Hn(t);break;case 12:Hn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Gu(t)):Hn(t);break;default:Hn(t)}}function Gu(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];It=a,qo(a,t)}Ro(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Dl(8,e,e.return),Gu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Gu(e));break;default:Gu(e)}t=t.sibling}}function qo(t,e){for(;It!==null;){var l=It;switch(l.tag){case 0:case 11:case 15:Dl(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:yn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,It=a;else t:for(l=t;It!==null;){a=It;var n=a.sibling,u=a.return;if(_o(a),a===l){It=null;break t}if(n!==null){n.return=u,It=n;break t}It=u}}}var Pm={getCacheForType:function(t){var e=ne(Zt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return ne(Zt).controller.signal}},tv=typeof WeakMap=="function"?WeakMap:Map,pt=0,Nt=null,ft=null,rt=0,bt=0,Me=null,Ul=!1,qa=!1,Pc=!1,dl=0,Lt=0,Cl=0,ca=0,tf=0,Ne=0,Ba=0,Rn=null,ge=null,ef=!1,Qu=0,Bo=0,Xu=1/0,Zu=null,Hl=null,kt=0,Rl=null,Ya=null,ml=0,lf=0,af=null,Yo=null,jn=0,nf=null;function De(){return(pt&2)!==0&&rt!==0?rt&-rt:_.T!==null?of():Pf()}function Lo(){if(Ne===0)if((rt&536870912)===0||ht){var t=In;In<<=1,(In&3932160)===0&&(In=262144),Ne=t}else Ne=536870912;return t=_e.current,t!==null&&(t.flags|=32),Ne}function Se(t,e,l){(t===Nt&&(bt===2||bt===9)||t.cancelPendingCommit!==null)&&(La(t,0),jl(t,rt,Ne,!1)),en(t,l),((pt&2)===0||t!==Nt)&&(t===Nt&&((pt&2)===0&&(ca|=l),Lt===4&&jl(t,rt,Ne,!1)),We(t))}function wo(t,e,l){if((pt&6)!==0)throw Error(c(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||tn(t,e),n=a?av(t,e):cf(t,e,!0),u=a;do{if(n===0){qa&&!a&&jl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!ev(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=Rn;var d=f.current.memoizedState.isDehydrated;if(d&&(La(f,i).flags|=256),i=cf(f,i,!1),i!==2){if(Pc&&!d){f.errorRecoveryDisabledLanes|=u,ca|=u,n=4;break t}u=ge,ge=n,u!==null&&(ge===null?ge=u:ge.push.apply(ge,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){La(t,0),jl(t,e,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:jl(a,e,Ne,!Ul);break t;case 2:ge=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(n=Qu+300-be(),10<n)){if(jl(a,e,Ne,!Ul),tu(a,0,!0)!==0)break t;ml=e,a.timeoutHandle=gh(Go.bind(null,a,l,ge,Zu,ef,e,Ne,ca,Ba,Ul,u,"Throttled",-0,0),n);break t}Go(a,l,ge,Zu,ef,e,Ne,ca,Ba,Ul,u,null,-0,0)}}break}while(!0);We(t)}function Go(t,e,l,a,n,u,i,f,d,p,O,N,E,A){if(t.timeoutHandle=-1,N=e.subtreeFlags,N&8192||(N&16785408)===16785408){N={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Pe},Ho(e,u,N);var w=(u&62914560)===u?Qu-be():(u&4194048)===u?Bo-be():0;if(w=Lv(N,w),w!==null){ml=u,t.cancelPendingCommit=w(ko.bind(null,t,e,u,l,a,n,i,f,d,O,N,null,E,A)),jl(t,u,i,!p);return}}ko(t,e,u,l,a,n,i,f,d)}function ev(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(!xe(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 jl(t,e,l,a){e&=~tf,e&=~ca,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var u=31-ze(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&Wf(t,l,e)}function Vu(){return(pt&6)===0?(qn(0),!1):!0}function uf(){if(ft!==null){if(bt===0)var t=ft.return;else t=ft,al=Il=null,bc(t),Na=null,Sn=0,t=ft;for(;t!==null;)So(t.alternate,t),t=t.return;ft=null}}function La(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,bv(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),ml=0,uf(),Nt=t,ft=l=el(t.current,null),rt=e,bt=0,Me=null,Ul=!1,qa=tn(t,e),Pc=!1,Ba=Ne=tf=ca=Cl=Lt=0,ge=Rn=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-ze(a),u=1<<n;e|=t[n],a&=~u}return dl=e,hu(),l}function Qo(t,e){at=null,_.H=_n,e===Ma||e===Tu?(e=ar(),bt=3):e===sc?(e=ar(),bt=4):bt=e===Bc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Me=e,ft===null&&(Lt=1,Ru(t,je(e,t.current)))}function Xo(){var t=_e.current;return t===null?!0:(rt&4194048)===rt?Le===null:(rt&62914560)===rt||(rt&536870912)!==0?t===Le:!1}function Zo(){var t=_.H;return _.H=_n,t===null?_n:t}function Vo(){var t=_.A;return _.A=Pm,t}function Ju(){Lt=4,Ul||(rt&4194048)!==rt&&_e.current!==null||(qa=!0),(Cl&134217727)===0&&(ca&134217727)===0||Nt===null||jl(Nt,rt,Ne,!1)}function cf(t,e,l){var a=pt;pt|=2;var n=Zo(),u=Vo();(Nt!==t||rt!==e)&&(Zu=null,La(t,e)),e=!1;var i=Lt;t:do try{if(bt!==0&&ft!==null){var f=ft,d=Me;switch(bt){case 8:uf(),i=6;break t;case 3:case 2:case 9:case 6:_e.current===null&&(e=!0);var p=bt;if(bt=0,Me=null,wa(t,f,d,p),l&&qa){i=0;break t}break;default:p=bt,bt=0,Me=null,wa(t,f,d,p)}}lv(),i=Lt;break}catch(O){Qo(t,O)}while(!0);return e&&t.shellSuspendCounter++,al=Il=null,pt=a,_.H=n,_.A=u,ft===null&&(Nt=null,rt=0,hu()),i}function lv(){for(;ft!==null;)Jo(ft)}function av(t,e){var l=pt;pt|=2;var a=Zo(),n=Vo();Nt!==t||rt!==e?(Zu=null,Xu=be()+500,La(t,e)):qa=tn(t,e);t:do try{if(bt!==0&&ft!==null){e=ft;var u=Me;e:switch(bt){case 1:bt=0,Me=null,wa(t,e,u,1);break;case 2:case 9:if(er(u)){bt=0,Me=null,Ko(e);break}e=function(){bt!==2&&bt!==9||Nt!==t||(bt=7),We(t)},u.then(e,e);break t;case 3:bt=7;break t;case 4:bt=5;break t;case 7:er(u)?(bt=0,Me=null,Ko(e)):(bt=0,Me=null,wa(t,e,u,7));break;case 5:var i=null;switch(ft.tag){case 26:i=ft.memoizedState;case 5:case 27:var f=ft;if(i?Ch(i):f.stateNode.complete){bt=0,Me=null;var d=f.sibling;if(d!==null)ft=d;else{var p=f.return;p!==null?(ft=p,Ku(p)):ft=null}break e}}bt=0,Me=null,wa(t,e,u,5);break;case 6:bt=0,Me=null,wa(t,e,u,6);break;case 8:uf(),Lt=6;break t;default:throw Error(c(462))}}nv();break}catch(O){Qo(t,O)}while(!0);return al=Il=null,_.H=a,_.A=n,pt=l,ft!==null?0:(Nt=null,rt=0,hu(),Lt)}function nv(){for(;ft!==null&&!Fa();)Jo(ft)}function Jo(t){var e=yo(t.alternate,t,dl);t.memoizedProps=t.pendingProps,e===null?Ku(t):ft=e}function Ko(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=so(l,e,e.pendingProps,e.type,void 0,rt);break;case 11:e=so(l,e,e.pendingProps,e.type.render,e.ref,rt);break;case 5:bc(e);default:So(l,e),e=ft=Zs(e,dl),e=yo(l,e,dl)}t.memoizedProps=t.pendingProps,e===null?Ku(t):ft=e}function wa(t,e,l,a){al=Il=null,bc(e),Na=null,Sn=0;var n=e.return;try{if(Jm(t,n,e,l,rt)){Lt=1,Ru(t,je(l,t.current)),ft=null;return}}catch(u){if(n!==null)throw ft=n,u;Lt=1,Ru(t,je(l,t.current)),ft=null;return}e.flags&32768?(ht||a===1?t=!0:qa||(rt&536870912)!==0?t=!1:(Ul=t=!0,(a===2||a===9||a===3||a===6)&&(a=_e.current,a!==null&&a.tag===13&&(a.flags|=16384))),$o(e,t)):Ku(e)}function Ku(t){var e=t;do{if((e.flags&32768)!==0){$o(e,Ul);return}t=e.return;var l=km(e.alternate,e,dl);if(l!==null){ft=l;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);Lt===0&&(Lt=5)}function $o(t,e){do{var l=Wm(t.alternate,t);if(l!==null){l.flags&=32767,ft=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=l}while(t!==null);Lt=6,ft=null}function ko(t,e,l,a,n,u,i,f,d){t.cancelPendingCommit=null;do $u();while(kt!==0);if((pt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(u=e.lanes|e.childLanes,u|=$i,Bd(t,l,u,i,f,d),t===Nt&&(ft=Nt=null,rt=0),Ya=e,Rl=t,ml=l,lf=u,af=n,Yo=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,fv(Wn,function(){return th(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,n=B.p,B.p=2,i=pt,pt|=4;try{Fm(t,e,l)}finally{pt=i,B.p=n,_.T=a}}kt=1,Wo(),Fo(),Io()}}function Wo(){if(kt===1){kt=0;var t=Rl,e=Ya,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=_.T,_.T=null;var a=B.p;B.p=2;var n=pt;pt|=4;try{Do(e,t);var u=pf,i=js(t.containerInfo),f=u.focusedElem,d=u.selectionRange;if(i!==f&&f&&f.ownerDocument&&Rs(f.ownerDocument.documentElement,f)){if(d!==null&&Xi(f)){var p=d.start,O=d.end;if(O===void 0&&(O=p),"selectionStart"in f)f.selectionStart=p,f.selectionEnd=Math.min(O,f.value.length);else{var N=f.ownerDocument||document,E=N&&N.defaultView||window;if(E.getSelection){var A=E.getSelection(),w=f.textContent.length,$=Math.min(d.start,w),_t=d.end===void 0?$:Math.min(d.end,w);!A.extend&&$>_t&&(i=_t,_t=$,$=i);var g=Hs(f,$),m=Hs(f,_t);if(g&&m&&(A.rangeCount!==1||A.anchorNode!==g.node||A.anchorOffset!==g.offset||A.focusNode!==m.node||A.focusOffset!==m.offset)){var S=N.createRange();S.setStart(g.node,g.offset),A.removeAllRanges(),$>_t?(A.addRange(S),A.extend(m.node,m.offset)):(S.setEnd(m.node,m.offset),A.addRange(S))}}}}for(N=[],A=f;A=A.parentNode;)A.nodeType===1&&N.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<N.length;f++){var M=N[f];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}ii=!!Sf,pf=Sf=null}finally{pt=n,B.p=a,_.T=l}}t.current=e,kt=2}}function Fo(){if(kt===2){kt=0;var t=Rl,e=Ya,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=_.T,_.T=null;var a=B.p;B.p=2;var n=pt;pt|=4;try{Ao(t,e.alternate,e)}finally{pt=n,B.p=a,_.T=l}}kt=3}}function Io(){if(kt===4||kt===3){kt=0,Ia();var t=Rl,e=Ya,l=ml,a=Yo;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?kt=5:(kt=0,Ya=Rl=null,Po(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(Hl=null),xi(l),e=e.stateNode,Ee&&typeof Ee.onCommitFiberRoot=="function")try{Ee.onCommitFiberRoot(Pa,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=_.T,n=B.p,B.p=2,_.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{_.T=e,B.p=n}}(ml&3)!==0&&$u(),We(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===nf?jn++:(jn=0,nf=t):jn=0,qn(0)}}function Po(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,yn(e)))}function $u(){return Wo(),Fo(),Io(),th()}function th(){if(kt!==5)return!1;var t=Rl,e=lf;lf=0;var l=xi(ml),a=_.T,n=B.p;try{B.p=32>l?32:l,_.T=null,l=af,af=null;var u=Rl,i=ml;if(kt=0,Ya=Rl=null,ml=0,(pt&6)!==0)throw Error(c(331));var f=pt;if(pt|=4,jo(u.current),Co(u,u.current,i,l),pt=f,qn(0,!1),Ee&&typeof Ee.onPostCommitFiberRoot=="function")try{Ee.onPostCommitFiberRoot(Pa,u)}catch{}return!0}finally{B.p=n,_.T=a,Po(t,e)}}function eh(t,e,l){e=je(l,e),e=qc(t.stateNode,e,2),t=Ol(t,e,2),t!==null&&(en(t,2),We(t))}function Et(t,e,l){if(t.tag===3)eh(t,t,l);else for(;e!==null;){if(e.tag===3){eh(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Hl===null||!Hl.has(a))){t=je(l,t),l=eo(2),a=Ol(e,l,2),a!==null&&(lo(l,a,e,t),en(a,2),We(a));break}}e=e.return}}function ff(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new tv;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=uv.bind(null,t,e,l),e.then(t,t))}function uv(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Nt===t&&(rt&l)===l&&(Lt===4||Lt===3&&(rt&62914560)===rt&&300>be()-Qu?(pt&2)===0&&La(t,0):tf|=l,Ba===rt&&(Ba=0)),We(t)}function lh(t,e){e===0&&(e=kf()),t=kl(t,e),t!==null&&(en(t,e),We(t))}function iv(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),lh(t,l)}function cv(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(c(314))}a!==null&&a.delete(e),lh(t,l)}function fv(t,e){return Je(t,e)}var ku=null,Ga=null,sf=!1,Wu=!1,rf=!1,ql=0;function We(t){t!==Ga&&t.next===null&&(Ga===null?ku=Ga=t:Ga=Ga.next=t),Wu=!0,sf||(sf=!0,rv())}function qn(t,e){if(!rf&&Wu){rf=!0;do for(var l=!1,a=ku;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-ze(42|t)+1)-1,u&=n&~(i&~f),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,ih(a,u))}else u=rt,u=tu(a,a===Nt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||tn(a,u)||(l=!0,ih(a,u));a=a.next}while(l);rf=!1}}function sv(){ah()}function ah(){Wu=sf=!1;var t=0;ql!==0&&Tv()&&(t=ql);for(var e=be(),l=null,a=ku;a!==null;){var n=a.next,u=nh(a,e);u===0?(a.next=null,l===null?ku=n:l.next=n,n===null&&(Ga=l)):(l=a,(t!==0||(u&3)!==0)&&(Wu=!0)),a=n}kt!==0&&kt!==5||qn(t),ql!==0&&(ql=0)}function nh(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-ze(u),f=1<<i,d=n[i];d===-1?((f&l)===0||(f&a)!==0)&&(n[i]=qd(f,e)):d<=e&&(t.expiredLanes|=f),u&=~f}if(e=Nt,l=rt,l=tu(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(bt===2||bt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Fe(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||tn(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&Fe(a),xi(l)){case 2:case 8:l=Kf;break;case 32:l=Wn;break;case 268435456:l=$f;break;default:l=Wn}return a=uh.bind(null,t),l=Je(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&Fe(a),t.callbackPriority=2,t.callbackNode=null,2}function uh(t,e){if(kt!==0&&kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if($u()&&t.callbackNode!==l)return null;var a=rt;return a=tu(t,t===Nt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(wo(t,a,e),nh(t,be()),t.callbackNode!=null&&t.callbackNode===l?uh.bind(null,t):null)}function ih(t,e){if($u())return null;wo(t,e,!0)}function rv(){Ev(function(){(pt&6)!==0?Je(Jf,sv):ah()})}function of(){if(ql===0){var t=_a;t===0&&(t=Fn,Fn<<=1,(Fn&261888)===0&&(Fn=256)),ql=t}return ql}function ch(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:nu(""+t)}function fh(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 ov(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var u=ch((n[he]||null).action),i=a.submitter;i&&(e=(e=i[he]||null)?ch(e.formAction):i.getAttribute("formAction"),e!==null&&(u=e,i=null));var f=new fu("action","action",null,a,n);t.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ql!==0){var d=i?fh(n,i):new FormData(n);Dc(l,{pending:!0,data:d,method:n.method,action:u},null,d)}}else typeof u=="function"&&(f.preventDefault(),d=i?fh(n,i):new FormData(n),Dc(l,{pending:!0,data:d,method:n.method,action:u},u,d))},currentTarget:n}]})}}for(var hf=0;hf<Ki.length;hf++){var df=Ki[hf],hv=df.toLowerCase(),dv=df[0].toUpperCase()+df.slice(1);Xe(hv,"on"+dv)}Xe(Ys,"onAnimationEnd"),Xe(Ls,"onAnimationIteration"),Xe(ws,"onAnimationStart"),Xe("dblclick","onDoubleClick"),Xe("focusin","onFocus"),Xe("focusout","onBlur"),Xe(Nm,"onTransitionRun"),Xe(Dm,"onTransitionStart"),Xe(Um,"onTransitionCancel"),Xe(Gs,"onTransitionEnd"),ha("onMouseEnter",["mouseout","mouseover"]),ha("onMouseLeave",["mouseout","mouseover"]),ha("onPointerEnter",["pointerout","pointerover"]),ha("onPointerLeave",["pointerout","pointerover"]),Vl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bn="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(" "),mv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bn));function sh(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],d=f.instance,p=f.currentTarget;if(f=f.listener,d!==u&&n.isPropagationStopped())break t;u=f,n.currentTarget=p;try{u(n)}catch(O){ou(O)}n.currentTarget=null,u=d}else for(i=0;i<a.length;i++){if(f=a[i],d=f.instance,p=f.currentTarget,f=f.listener,d!==u&&n.isPropagationStopped())break t;u=f,n.currentTarget=p;try{u(n)}catch(O){ou(O)}n.currentTarget=null,u=d}}}}function st(t,e){var l=e[Ai];l===void 0&&(l=e[Ai]=new Set);var a=t+"__bubble";l.has(a)||(rh(e,t,2,!1),l.add(a))}function mf(t,e,l){var a=0;e&&(a|=4),rh(l,t,a,e)}var Fu="_reactListening"+Math.random().toString(36).slice(2);function vf(t){if(!t[Fu]){t[Fu]=!0,ls.forEach(function(l){l!=="selectionchange"&&(mv.has(l)||mf(l,!1,t),mf(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Fu]||(e[Fu]=!0,mf("selectionchange",!1,e))}}function rh(t,e,l,a){switch(Lh(e)){case 2:var n=Qv;break;case 8:n=Xv;break;default:n=Df}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 yf(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 d=i.tag;if((d===3||d===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;f!==null;){if(i=sa(f),i===null)return;if(d=i.tag,d===5||d===6||d===26||d===27){a=u=i;continue t}f=f.parentNode}}a=a.return}ms(function(){var p=u,O=Ci(l),N=[];t:{var E=Qs.get(t);if(E!==void 0){var A=fu,w=t;switch(t){case"keypress":if(iu(l)===0)break t;case"keydown":case"keyup":A=cm;break;case"focusin":w="focus",A=Yi;break;case"focusout":w="blur",A=Yi;break;case"beforeblur":case"afterblur":A=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":A=gs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=kd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=rm;break;case Ys:case Ls:case ws:A=Id;break;case Gs:A=hm;break;case"scroll":case"scrollend":A=Kd;break;case"wheel":A=mm;break;case"copy":case"cut":case"paste":A=tm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=ps;break;case"toggle":case"beforetoggle":A=ym}var $=(e&4)!==0,_t=!$&&(t==="scroll"||t==="scrollend"),g=$?E!==null?E+"Capture":null:E;$=[];for(var m=p,S;m!==null;){var M=m;if(S=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||S===null||g===null||(M=nn(m,g),M!=null&&$.push(Yn(m,M,S))),_t)break;m=m.return}0<$.length&&(E=new A(E,w,null,l,O),N.push({event:E,listeners:$}))}}if((e&7)===0){t:{if(E=t==="mouseover"||t==="pointerover",A=t==="mouseout"||t==="pointerout",E&&l!==Ui&&(w=l.relatedTarget||l.fromElement)&&(sa(w)||w[fa]))break t;if((A||E)&&(E=O.window===O?O:(E=O.ownerDocument)?E.defaultView||E.parentWindow:window,A?(w=l.relatedTarget||l.toElement,A=p,w=w?sa(w):null,w!==null&&(_t=T(w),$=w.tag,w!==_t||$!==5&&$!==27&&$!==6)&&(w=null)):(A=null,w=p),A!==w)){if($=gs,M="onMouseLeave",g="onMouseEnter",m="mouse",(t==="pointerout"||t==="pointerover")&&($=ps,M="onPointerLeave",g="onPointerEnter",m="pointer"),_t=A==null?E:an(A),S=w==null?E:an(w),E=new $(M,m+"leave",A,l,O),E.target=_t,E.relatedTarget=S,M=null,sa(O)===p&&($=new $(g,m+"enter",w,l,O),$.target=S,$.relatedTarget=_t,M=$),_t=M,A&&w)e:{for($=vv,g=A,m=w,S=0,M=g;M;M=$(M))S++;M=0;for(var J=m;J;J=$(J))M++;for(;0<S-M;)g=$(g),S--;for(;0<M-S;)m=$(m),M--;for(;S--;){if(g===m||m!==null&&g===m.alternate){$=g;break e}g=$(g),m=$(m)}$=null}else $=null;A!==null&&oh(N,E,A,$,!1),w!==null&&_t!==null&&oh(N,_t,w,$,!0)}}t:{if(E=p?an(p):window,A=E.nodeName&&E.nodeName.toLowerCase(),A==="select"||A==="input"&&E.type==="file")var yt=Os;else if(As(E))if(Ms)yt=_m;else{yt=xm;var X=zm}else A=E.nodeName,!A||A.toLowerCase()!=="input"||E.type!=="checkbox"&&E.type!=="radio"?p&&Di(p.elementType)&&(yt=Os):yt=Am;if(yt&&(yt=yt(t,p))){_s(N,yt,l,O);break t}X&&X(t,E,p),t==="focusout"&&p&&E.type==="number"&&p.memoizedProps.value!=null&&Ni(E,"number",E.value)}switch(X=p?an(p):window,t){case"focusin":(As(X)||X.contentEditable==="true")&&(Sa=X,Zi=p,dn=null);break;case"focusout":dn=Zi=Sa=null;break;case"mousedown":Vi=!0;break;case"contextmenu":case"mouseup":case"dragend":Vi=!1,qs(N,l,O);break;case"selectionchange":if(Mm)break;case"keydown":case"keyup":qs(N,l,O)}var nt;if(wi)t:{switch(t){case"compositionstart":var ot="onCompositionStart";break t;case"compositionend":ot="onCompositionEnd";break t;case"compositionupdate":ot="onCompositionUpdate";break t}ot=void 0}else ga?zs(t,l)&&(ot="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(ot="onCompositionStart");ot&&(Ts&&l.locale!=="ko"&&(ga||ot!=="onCompositionStart"?ot==="onCompositionEnd"&&ga&&(nt=vs()):(Tl=O,ji="value"in Tl?Tl.value:Tl.textContent,ga=!0)),X=Iu(p,ot),0<X.length&&(ot=new Ss(ot,t,null,l,O),N.push({event:ot,listeners:X}),nt?ot.data=nt:(nt=xs(l),nt!==null&&(ot.data=nt)))),(nt=Sm?pm(t,l):Tm(t,l))&&(ot=Iu(p,"onBeforeInput"),0<ot.length&&(X=new Ss("onBeforeInput","beforeinput",null,l,O),N.push({event:X,listeners:ot}),X.data=nt)),ov(N,t,p,l,O)}sh(N,e)})}function Yn(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Iu(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=nn(t,l),n!=null&&a.unshift(Yn(t,n,u)),n=nn(t,e),n!=null&&a.push(Yn(t,n,u))),t.tag===3)return a;t=t.return}return[]}function vv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function oh(t,e,l,a,n){for(var u=e._reactName,i=[];l!==null&&l!==a;){var f=l,d=f.alternate,p=f.stateNode;if(f=f.tag,d!==null&&d===a)break;f!==5&&f!==26&&f!==27||p===null||(d=p,n?(p=nn(l,u),p!=null&&i.unshift(Yn(l,p,d))):n||(p=nn(l,u),p!=null&&i.push(Yn(l,p,d)))),l=l.return}i.length!==0&&t.push({event:e,listeners:i})}var yv=/\r\n?/g,gv=/\u0000|\uFFFD/g;function hh(t){return(typeof t=="string"?t:""+t).replace(yv,`
`).replace(gv,"")}function dh(t,e){return e=hh(e),hh(t)===e}function At(t,e,l,a,n,u){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||ma(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&ma(t,""+a);break;case"className":lu(t,"class",a);break;case"tabIndex":lu(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":lu(t,l,a);break;case"style":hs(t,a,u);break;case"data":if(e!=="object"){lu(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=nu(""+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"&&At(t,e,"name",n.name,n,null),At(t,e,"formEncType",n.formEncType,n,null),At(t,e,"formMethod",n.formMethod,n,null),At(t,e,"formTarget",n.formTarget,n,null)):(At(t,e,"encType",n.encType,n,null),At(t,e,"method",n.method,n,null),At(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=nu(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Pe);break;case"onScroll":a!=null&&st("scroll",t);break;case"onScrollEnd":a!=null&&st("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(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=nu(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":st("beforetoggle",t),st("toggle",t),eu(t,"popover",a);break;case"xlinkActuate":Ie(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ie(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ie(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ie(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ie(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ie(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":eu(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=Vd.get(l)||l,eu(t,l,a))}}function gf(t,e,l,a,n,u){switch(l){case"style":hs(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"children":typeof a=="string"?ma(t,a):(typeof a=="number"||typeof a=="bigint")&&ma(t,""+a);break;case"onScroll":a!=null&&st("scroll",t);break;case"onScrollEnd":a!=null&&st("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Pe);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[he]||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,""):eu(t,l,a)}}}function ie(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":st("error",t),st("load",t);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:At(t,e,u,i,l,null)}}n&&At(t,e,"srcSet",l.srcSet,l,null),a&&At(t,e,"src",l.src,l,null);return;case"input":st("invalid",t);var f=u=i=n=null,d=null,p=null;for(a in l)if(l.hasOwnProperty(a)){var O=l[a];if(O!=null)switch(a){case"name":n=O;break;case"type":i=O;break;case"checked":d=O;break;case"defaultChecked":p=O;break;case"value":u=O;break;case"defaultValue":f=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(c(137,e));break;default:At(t,e,a,O,l,null)}}fs(t,u,f,d,p,i,n,!1);return;case"select":st("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:At(t,e,n,f,l,null)}e=u,l=i,t.multiple=!!a,e!=null?da(t,!!a,e,!1):l!=null&&da(t,!!a,l,!0);return;case"textarea":st("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(c(91));break;default:At(t,e,i,f,l,null)}rs(t,a,n,u);return;case"option":for(d in l)if(l.hasOwnProperty(d)&&(a=l[d],a!=null))switch(d){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:At(t,e,d,a,l,null)}return;case"dialog":st("beforetoggle",t),st("toggle",t),st("cancel",t),st("close",t);break;case"iframe":case"object":st("load",t);break;case"video":case"audio":for(a=0;a<Bn.length;a++)st(Bn[a],t);break;case"image":st("error",t),st("load",t);break;case"details":st("toggle",t);break;case"embed":case"source":case"link":st("error",t),st("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(p in l)if(l.hasOwnProperty(p)&&(a=l[p],a!=null))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:At(t,e,p,a,l,null)}return;default:if(Di(e)){for(O in l)l.hasOwnProperty(O)&&(a=l[O],a!==void 0&&gf(t,e,O,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&At(t,e,f,a,l,null))}function Sv(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,d=null,p=null,O=null;for(A in l){var N=l[A];if(l.hasOwnProperty(A)&&N!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":d=N;default:a.hasOwnProperty(A)||At(t,e,A,null,a,N)}}for(var E in a){var A=a[E];if(N=l[E],a.hasOwnProperty(E)&&(A!=null||N!=null))switch(E){case"type":u=A;break;case"name":n=A;break;case"checked":p=A;break;case"defaultChecked":O=A;break;case"value":i=A;break;case"defaultValue":f=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,e));break;default:A!==N&&At(t,e,E,A,a,N)}}Mi(t,i,f,d,p,O,u,n);return;case"select":A=i=f=E=null;for(u in l)if(d=l[u],l.hasOwnProperty(u)&&d!=null)switch(u){case"value":break;case"multiple":A=d;default:a.hasOwnProperty(u)||At(t,e,u,null,a,d)}for(n in a)if(u=a[n],d=l[n],a.hasOwnProperty(n)&&(u!=null||d!=null))switch(n){case"value":E=u;break;case"defaultValue":f=u;break;case"multiple":i=u;default:u!==d&&At(t,e,n,u,a,d)}e=f,l=i,a=A,E!=null?da(t,!!l,E,!1):!!a!=!!l&&(e!=null?da(t,!!l,e,!0):da(t,!!l,l?[]:"",!1));return;case"textarea":A=E=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:At(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":E=n;break;case"defaultValue":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(c(91));break;default:n!==u&&At(t,e,i,n,a,u)}ss(t,E,A);return;case"option":for(var w in l)if(E=l[w],l.hasOwnProperty(w)&&E!=null&&!a.hasOwnProperty(w))switch(w){case"selected":t.selected=!1;break;default:At(t,e,w,null,a,E)}for(d in a)if(E=a[d],A=l[d],a.hasOwnProperty(d)&&E!==A&&(E!=null||A!=null))switch(d){case"selected":t.selected=E&&typeof E!="function"&&typeof E!="symbol";break;default:At(t,e,d,E,a,A)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var $ in l)E=l[$],l.hasOwnProperty($)&&E!=null&&!a.hasOwnProperty($)&&At(t,e,$,null,a,E);for(p in a)if(E=a[p],A=l[p],a.hasOwnProperty(p)&&E!==A&&(E!=null||A!=null))switch(p){case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(c(137,e));break;default:At(t,e,p,E,a,A)}return;default:if(Di(e)){for(var _t in l)E=l[_t],l.hasOwnProperty(_t)&&E!==void 0&&!a.hasOwnProperty(_t)&&gf(t,e,_t,void 0,a,E);for(O in a)E=a[O],A=l[O],!a.hasOwnProperty(O)||E===A||E===void 0&&A===void 0||gf(t,e,O,E,a,A);return}}for(var g in l)E=l[g],l.hasOwnProperty(g)&&E!=null&&!a.hasOwnProperty(g)&&At(t,e,g,null,a,E);for(N in a)E=a[N],A=l[N],!a.hasOwnProperty(N)||E===A||E==null&&A==null||At(t,e,N,E,a,A)}function mh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pv(){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&&mh(i)){for(i=0,f=n.responseEnd,a+=1;a<l.length;a++){var d=l[a],p=d.startTime;if(p>f)break;var O=d.transferSize,N=d.initiatorType;O&&mh(N)&&(d=d.responseEnd,i+=O*(d<f?1:(f-p)/(d-p)))}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 Sf=null,pf=null;function Pu(t){return t.nodeType===9?t:t.ownerDocument}function vh(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 yh(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 Tf(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 bf=null;function Tv(){var t=window.event;return t&&t.type==="popstate"?t===bf?!1:(bf=t,!0):(bf=null,!1)}var gh=typeof setTimeout=="function"?setTimeout:void 0,bv=typeof clearTimeout=="function"?clearTimeout:void 0,Sh=typeof Promise=="function"?Promise:void 0,Ev=typeof queueMicrotask=="function"?queueMicrotask:typeof Sh<"u"?function(t){return Sh.resolve(null).then(t).catch(zv)}:gh;function zv(t){setTimeout(function(){throw t})}function Bl(t){return t==="head"}function ph(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),Va(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Ln(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Ln(l);for(var u=l.firstChild;u;){var i=u.nextSibling,f=u.nodeName;u[ln]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&Ln(t.ownerDocument.body);l=n}while(l);Va(e)}function Th(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 Ef(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":Ef(l),_i(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function xv(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[ln])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=we(t.nextSibling),t===null)break}return null}function Av(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=we(t.nextSibling),t===null))return null;return t}function bh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=we(t.nextSibling),t===null))return null;return t}function zf(t){return t.data==="$?"||t.data==="$~"}function xf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function _v(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 we(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 Eh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return we(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function zh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function xh(t,e,l){switch(e=Pu(l),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function Ln(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);_i(t)}var Ge=new Map,Ah=new Set;function ti(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var vl=B.d;B.d={f:Ov,r:Mv,D:Nv,C:Dv,L:Uv,m:Cv,X:Rv,S:Hv,M:jv};function Ov(){var t=vl.f(),e=Vu();return t||e}function Mv(t){var e=ra(t);e!==null&&e.tag===5&&e.type==="form"?Gr(e):vl.r(t)}var Qa=typeof document>"u"?null:document;function _h(t,e,l){var a=Qa;if(a&&typeof e=="string"&&e){var n=He(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Ah.has(n)||(Ah.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),ie(e,"link",t),Ft(e),a.head.appendChild(e)))}}function Nv(t){vl.D(t),_h("dns-prefetch",t,null)}function Dv(t,e){vl.C(t,e),_h("preconnect",t,e)}function Uv(t,e,l){vl.L(t,e,l);var a=Qa;if(a&&t&&e){var n='link[rel="preload"][as="'+He(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+He(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+He(l.imageSizes)+'"]')):n+='[href="'+He(t)+'"]';var u=n;switch(e){case"style":u=Xa(t);break;case"script":u=Za(t)}Ge.has(u)||(t=H({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Ge.set(u,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(wn(u))||e==="script"&&a.querySelector(Gn(u))||(e=a.createElement("link"),ie(e,"link",t),Ft(e),a.head.appendChild(e)))}}function Cv(t,e){vl.m(t,e);var l=Qa;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+He(a)+'"][href="'+He(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Za(t)}if(!Ge.has(u)&&(t=H({rel:"modulepreload",href:t},e),Ge.set(u,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Gn(u)))return}a=l.createElement("link"),ie(a,"link",t),Ft(a),l.head.appendChild(a)}}}function Hv(t,e,l){vl.S(t,e,l);var a=Qa;if(a&&t){var n=oa(a).hoistableStyles,u=Xa(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=H({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Ge.get(u))&&_f(t,l);var d=i=a.createElement("link");Ft(d),ie(d,"link",t),d._p=new Promise(function(p,O){d.onload=p,d.onerror=O}),d.addEventListener("load",function(){f.loading|=1}),d.addEventListener("error",function(){f.loading|=2}),f.loading|=4,ei(i,e,a)}i={type:"stylesheet",instance:i,count:1,state:f},n.set(u,i)}}}function Rv(t,e){vl.X(t,e);var l=Qa;if(l&&t){var a=oa(l).hoistableScripts,n=Za(t),u=a.get(n);u||(u=l.querySelector(Gn(n)),u||(t=H({src:t,async:!0},e),(e=Ge.get(n))&&Of(t,e),u=l.createElement("script"),Ft(u),ie(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function jv(t,e){vl.M(t,e);var l=Qa;if(l&&t){var a=oa(l).hoistableScripts,n=Za(t),u=a.get(n);u||(u=l.querySelector(Gn(n)),u||(t=H({src:t,async:!0,type:"module"},e),(e=Ge.get(n))&&Of(t,e),u=l.createElement("script"),Ft(u),ie(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Oh(t,e,l,a){var n=(n=it.current)?ti(n):null;if(!n)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Xa(l.href),l=oa(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=Xa(l.href);var u=oa(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),Ge.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},Ge.set(t,l),u||qv(n,t,l,i.state))),e&&a===null)throw Error(c(528,""));return i}if(e&&a!==null)throw Error(c(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Za(l),l=oa(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(c(444,t))}}function Xa(t){return'href="'+He(t)+'"'}function wn(t){return'link[rel="stylesheet"]['+t+"]"}function Mh(t){return H({},t,{"data-precedence":t.precedence,precedence:null})}function qv(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}),ie(e,"link",l),Ft(e),t.head.appendChild(e))}function Za(t){return'[src="'+He(t)+'"]'}function Gn(t){return"script[async]"+t}function Nh(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+He(l.href)+'"]');if(a)return e.instance=a,Ft(a),a;var n=H({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Ft(a),ie(a,"style",n),ei(a,l.precedence,t),e.instance=a;case"stylesheet":n=Xa(l.href);var u=t.querySelector(wn(n));if(u)return e.state.loading|=4,e.instance=u,Ft(u),u;a=Mh(l),(n=Ge.get(n))&&_f(a,n),u=(t.ownerDocument||t).createElement("link"),Ft(u);var i=u;return i._p=new Promise(function(f,d){i.onload=f,i.onerror=d}),ie(u,"link",a),e.state.loading|=4,ei(u,l.precedence,t),e.instance=u;case"script":return u=Za(l.src),(n=t.querySelector(Gn(u)))?(e.instance=n,Ft(n),n):(a=l,(n=Ge.get(u))&&(a=H({},l),Of(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Ft(n),ie(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,ei(a,l.precedence,t));return e.instance}function ei(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 _f(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Of(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var li=null;function Dh(t,e,l){if(li===null){var a=new Map,n=li=new Map;n.set(l,a)}else n=li,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[ln]||u[le]||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 Uh(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Bv(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 Ch(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Yv(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=Xa(a.href),u=e.querySelector(wn(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=ai.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,Ft(u);return}u=e.ownerDocument||e,a=Mh(a),(n=Ge.get(n))&&_f(a,n),u=u.createElement("link"),Ft(u);var i=u;i._p=new Promise(function(f,d){i.onload=f,i.onerror=d}),ie(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=ai.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Mf=0;function Lv(t,e){return t.stylesheets&&t.count===0&&ui(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&ui(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Mf===0&&(Mf=62500*pv());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ui(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Mf?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ai(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ui(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ni=null;function ui(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ni=new Map,e.forEach(wv,t),ni=null,ai.call(t))}function wv(t,e){if(!(e.state.loading&4)){var l=ni.get(t);if(l)var a=l.get(null);else{l=new Map,ni.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=ai.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 Qn={$$typeof:I,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function Gv(t,e,l,a,n,u,i,f,d){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=Ei(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ei(0),this.hiddenUpdates=Ei(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function Hh(t,e,l,a,n,u,i,f,d,p,O,N){return t=new Gv(t,e,l,i,d,p,O,N,f),e=1,u===!0&&(e|=24),u=Ae(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 Rh(t){return t?(t=ba,t):ba}function jh(t,e,l,a,n,u){n=Rh(n),a.context===null?a.context=n:a.pendingContext=n,a=_l(e),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Ol(t,a,e),l!==null&&(Se(l,t,e),Tn(l,t,e))}function qh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Nf(t,e){qh(t,e),(t=t.alternate)&&qh(t,e)}function Bh(t){if(t.tag===13||t.tag===31){var e=kl(t,67108864);e!==null&&Se(e,t,67108864),Nf(t,67108864)}}function Yh(t){if(t.tag===13||t.tag===31){var e=De();e=zi(e);var l=kl(t,e);l!==null&&Se(l,t,e),Nf(t,e)}}var ii=!0;function Qv(t,e,l,a){var n=_.T;_.T=null;var u=B.p;try{B.p=2,Df(t,e,l,a)}finally{B.p=u,_.T=n}}function Xv(t,e,l,a){var n=_.T;_.T=null;var u=B.p;try{B.p=8,Df(t,e,l,a)}finally{B.p=u,_.T=n}}function Df(t,e,l,a){if(ii){var n=Uf(a);if(n===null)yf(t,e,a,ci,l),wh(t,a);else if(Vv(n,t,e,l,a))a.stopPropagation();else if(wh(t,a),e&4&&-1<Zv.indexOf(t)){for(;n!==null;){var u=ra(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Zl(u.pendingLanes);if(i!==0){var f=u;for(f.pendingLanes|=2,f.entangledLanes|=2;i;){var d=1<<31-ze(i);f.entanglements[1]|=d,i&=~d}We(u),(pt&6)===0&&(Xu=be()+500,qn(0))}}break;case 31:case 13:f=kl(u,2),f!==null&&Se(f,u,2),Vu(),Nf(u,2)}if(u=Uf(a),u===null&&yf(t,e,a,ci,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else yf(t,e,a,null,l)}}function Uf(t){return t=Ci(t),Cf(t)}var ci=null;function Cf(t){if(ci=null,t=sa(t),t!==null){var e=T(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=b(e),t!==null)return t;t=null}else if(l===31){if(t=z(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 ci=t,null}function Lh(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(Nd()){case Jf:return 2;case Kf:return 8;case Wn:case Dd:return 32;case $f:return 268435456;default:return 32}default:return 32}}var Hf=!1,Yl=null,Ll=null,wl=null,Xn=new Map,Zn=new Map,Gl=[],Zv="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 wh(t,e){switch(t){case"focusin":case"focusout":Yl=null;break;case"dragenter":case"dragleave":Ll=null;break;case"mouseover":case"mouseout":wl=null;break;case"pointerover":case"pointerout":Xn.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zn.delete(e.pointerId)}}function Vn(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=ra(e),e!==null&&Bh(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function Vv(t,e,l,a,n){switch(e){case"focusin":return Yl=Vn(Yl,t,e,l,a,n),!0;case"dragenter":return Ll=Vn(Ll,t,e,l,a,n),!0;case"mouseover":return wl=Vn(wl,t,e,l,a,n),!0;case"pointerover":var u=n.pointerId;return Xn.set(u,Vn(Xn.get(u)||null,t,e,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Zn.set(u,Vn(Zn.get(u)||null,t,e,l,a,n)),!0}return!1}function Gh(t){var e=sa(t.target);if(e!==null){var l=T(e);if(l!==null){if(e=l.tag,e===13){if(e=b(l),e!==null){t.blockedOn=e,ts(t.priority,function(){Yh(l)});return}}else if(e===31){if(e=z(l),e!==null){t.blockedOn=e,ts(t.priority,function(){Yh(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 fi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Uf(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Ui=a,l.target.dispatchEvent(a),Ui=null}else return e=ra(l),e!==null&&Bh(e),t.blockedOn=l,!1;e.shift()}return!0}function Qh(t,e,l){fi(t)&&l.delete(e)}function Jv(){Hf=!1,Yl!==null&&fi(Yl)&&(Yl=null),Ll!==null&&fi(Ll)&&(Ll=null),wl!==null&&fi(wl)&&(wl=null),Xn.forEach(Qh),Zn.forEach(Qh)}function si(t,e){t.blockedOn===e&&(t.blockedOn=null,Hf||(Hf=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Jv)))}var ri=null;function Xh(t){ri!==t&&(ri=t,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){ri===t&&(ri=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(Cf(a||l)===null)continue;break}var u=ra(l);u!==null&&(t.splice(e,3),e-=3,Dc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Va(t){function e(d){return si(d,t)}Yl!==null&&si(Yl,t),Ll!==null&&si(Ll,t),wl!==null&&si(wl,t),Xn.forEach(e),Zn.forEach(e);for(var l=0;l<Gl.length;l++){var a=Gl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Gl.length&&(l=Gl[0],l.blockedOn===null);)Gh(l),l.blockedOn===null&&Gl.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[he]||null;if(typeof u=="function")i||Xh(l);else if(i){var f=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[he]||null)f=i.formAction;else if(Cf(n)!==null)continue}else f=i.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),Xh(l)}}}function Zh(){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}oi.prototype.render=Rf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var l=e.current,a=De();jh(l,a,t,e,null,null)},oi.prototype.unmount=Rf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;jh(t.current,2,null,t,null,null),Vu(),e[fa]=null}};function oi(t){this._internalRoot=t}oi.prototype.unstable_scheduleHydration=function(t){if(t){var e=Pf();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Gl.length&&e!==0&&e<Gl[l].priority;l++);Gl.splice(l,0,t),l===0&&Gh(t)}};var Vh=o.version;if(Vh!=="19.2.1")throw Error(c(527,Vh,"19.2.1"));B.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=y(e),t=t!==null?G(t):null,t=t===null?null:t.stateNode,t};var Kv={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hi.isDisabled&&hi.supportsFiber)try{Pa=hi.inject(Kv),Ee=hi}catch{}}return Kn.createRoot=function(t,e){if(!s(t))throw Error(c(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=Hh(t,1,!1,null,null,l,a,null,n,u,i,Zh),t[fa]=e.current,vf(t),new Rf(e)},Kn.hydrateRoot=function(t,e,l){if(!s(t))throw Error(c(299));var a=!1,n="",u=Fr,i=Ir,f=Pr,d=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&&(d=l.formState)),e=Hh(t,1,!0,e,l??null,a,n,d,u,i,f,Zh),e.context=Rh(null),l=e.current,a=De(),a=zi(a),n=_l(a),n.callback=null,Ol(l,n,a),l=a,e.current.lanes=l,en(e,l),We(e),t[fa]=e.current,vf(t),new oi(e)},Kn.version="19.2.1",Kn}var ed;function c0(){if(ed)return Bf.exports;ed=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(o){console.error(o)}}return r(),Bf.exports=i0(),Bf.exports}var f0=c0();class s0{constructor(o){Bt(this,"_ws");Bt(this,"_lastId",0);Bt(this,"_pending",new Map);Bt(this,"_sendQueue",[]);Bt(this,"_closed",!1);Bt(this,"onopen");Bt(this,"onevent");Bt(this,"onclose");this._ws=new WebSocket(o),this._ws.onopen=()=>{for(const h of this._sendQueue||[])this._ws.send(h);this._sendQueue=void 0,this.onopen&&this.onopen()},this._ws.onmessage=h=>{let c;try{c=JSON.parse(h.data)}catch{this._ws.close();return}if(c.id!==void 0){const s=this._pending.get(c.id);s&&(this._pending.delete(c.id),c.error?s.reject(new Error(c.error)):s.resolve(c.result))}else c.method&&this.onevent&&this.onevent(c.method,c.params)},this._ws.onclose=h=>{this._closed=!0,this._sendQueue=void 0;for(const{reject:c}of this._pending.values())c(new Error("Connection closed"));this._pending.clear(),this.onclose&&this.onclose(h.reason)},this._ws.onerror=()=>{}}sendNoReply(o,h){this.send(o,h).catch(()=>{})}send(o,h){if(this._closed)return Promise.reject(new Error("Connection closed"));const c=++this._lastId,s=JSON.stringify({id:c,method:o,params:h});return this._sendQueue?this._sendQueue.push(s):this._ws.send(s),new Promise((T,b)=>{this._pending.set(c,{resolve:T,reject:b})})}close(){this._ws.close()}}class pi{constructor(o){Bt(this,"_transport");Bt(this,"_listeners",new Map);Bt(this,"onopen");Bt(this,"onclose");this._transport=o,this._transport.onopen=()=>{var h;(h=this.onopen)==null||h.call(this)},this._transport.onevent=(h,c)=>{this._fireEvent(h,c)},this._transport.onclose=h=>{var c;(c=this.onclose)==null||c.call(this,h)}}static create(o){const h=new s0(o),c=new pi(h);return new Proxy(c,{get(s,T,b){if(typeof T=="symbol"||T in s)return Reflect.get(s,T,b);if(T!=="then")return z=>s._transport.send(T,z)}})}_fireEvent(o,h){const c=this._listeners.get(o);if(c)for(const s of c)s(h)}on(o,h){let c=this._listeners.get(o);c||(c=new Set,this._listeners.set(o,c)),c.add(h)}off(o,h){var c;(c=this._listeners.get(o))==null||c.delete(h)}close(){this._transport.close()}}const $t=function(r,o,h){return r>=o&&r<=h};function pe(r){return $t(r,48,57)}function ld(r){return pe(r)||$t(r,65,70)||$t(r,97,102)}function r0(r){return $t(r,65,90)}function o0(r){return $t(r,97,122)}function h0(r){return r0(r)||o0(r)}function d0(r){return r>=128}function di(r){return h0(r)||d0(r)||r===95}function ad(r){return di(r)||pe(r)||r===45}function m0(r){return $t(r,0,8)||r===11||$t(r,14,31)||r===127}function mi(r){return r===10}function yl(r){return mi(r)||r===9||r===32}const v0=1114111;class Vf extends Error{constructor(o){super(o),this.name="InvalidCharacterError"}}function y0(r){const o=[];for(let h=0;h<r.length;h++){let c=r.charCodeAt(h);if(c===13&&r.charCodeAt(h+1)===10&&(c=10,h++),(c===13||c===12)&&(c=10),c===0&&(c=65533),$t(c,55296,56319)&&$t(r.charCodeAt(h+1),56320,57343)){const s=c-55296,T=r.charCodeAt(h+1)-56320;c=Math.pow(2,16)+s*Math.pow(2,10)+T,h++}o.push(c)}return o}function Wt(r){if(r<=65535)return String.fromCharCode(r);r-=Math.pow(2,16);const o=Math.floor(r/Math.pow(2,10))+55296,h=r%Math.pow(2,10)+56320;return String.fromCharCode(o)+String.fromCharCode(h)}function g0(r){const o=y0(r);let h=-1;const c=[];let s;const T=function(U){return U>=o.length?-1:o[U]},b=function(U){if(U===void 0&&(U=1),U>3)throw"Spec Error: no more than three codepoints of lookahead.";return T(h+U)},z=function(U){return U===void 0&&(U=1),h+=U,s=T(h),!0},x=function(){return h-=1,!0},y=function(U){return U===void 0&&(U=s),U===-1},G=function(){if(H(),z(),yl(s)){for(;yl(b());)z();return new Qf}else{if(s===34)return Z();if(s===35)if(ad(b())||k(b(1),b(2))){const U=new Td("");return I(b(1),b(2),b(3))&&(U.type="id"),U.value=P(),U}else return new se(s);else return s===36?b()===61?(z(),new b0):new se(s):s===39?Z():s===40?new vd:s===41?new yd:s===42?b()===61?(z(),new E0):new se(s):s===43?Ht()?(x(),K()):new se(s):s===44?new od:s===45?Ht()?(x(),K()):b(1)===45&&b(2)===62?(z(2),new fd):Xt()?(x(),lt()):new se(s):s===46?Ht()?(x(),K()):new se(s):s===58?new sd:s===59?new rd:s===60?b(1)===33&&b(2)===45&&b(3)===45?(z(3),new cd):new se(s):s===64?I(b(1),b(2),b(3))?new pd(P()):new se(s):s===91?new md:s===92?ut()?(x(),lt()):new se(s):s===93?new Xf:s===94?b()===61?(z(),new T0):new se(s):s===123?new hd:s===124?b()===61?(z(),new p0):b()===124?(z(),new gd):new se(s):s===125?new dd:s===126?b()===61?(z(),new S0):new se(s):pe(s)?(x(),K()):di(s)?(x(),lt()):y()?new yi:new se(s)}},H=function(){for(;b(1)===47&&b(2)===42;)for(z(2);;)if(z(),s===42&&b()===47){z();break}else if(y())return},K=function(){const U=Rt();if(I(b(1),b(2),b(3))){const W=new z0;return W.value=U.value,W.repr=U.repr,W.type=U.type,W.unit=P(),W}else if(b()===37){z();const W=new xd;return W.value=U.value,W.repr=U.repr,W}else{const W=new zd;return W.value=U.value,W.repr=U.repr,W.type=U.type,W}},lt=function(){const U=P();if(U.toLowerCase()==="url"&&b()===40){for(z();yl(b(1))&&yl(b(2));)z();return b()===34||b()===39?new gi(U):yl(b())&&(b(2)===34||b(2)===39)?new gi(U):L()}else return b()===40?(z(),new gi(U)):new Sd(U)},Z=function(U){U===void 0&&(U=s);let W="";for(;z();){if(s===U||y())return new bd(W);if(mi(s))return x(),new id;s===92?y(b())||(mi(b())?z():W+=Wt(R())):W+=Wt(s)}throw new Error("Internal error")},L=function(){const U=new Ed("");for(;yl(b());)z();if(y(b()))return U;for(;z();){if(s===41||y())return U;if(yl(s)){for(;yl(b());)z();return b()===41||y(b())?(z(),U):(Dt(),new vi)}else{if(s===34||s===39||s===40||m0(s))return Dt(),new vi;if(s===92)if(ut())U.value+=Wt(R());else return Dt(),new vi;else U.value+=Wt(s)}}throw new Error("Internal error")},R=function(){if(z(),ld(s)){const U=[s];for(let Ot=0;Ot<5&&ld(b());Ot++)z(),U.push(s);yl(b())&&z();let W=parseInt(U.map(function(Ot){return String.fromCharCode(Ot)}).join(""),16);return W>v0&&(W=65533),W}else return y()?65533:s},k=function(U,W){return!(U!==92||mi(W))},ut=function(){return k(s,b())},I=function(U,W,Ot){return U===45?di(W)||W===45||k(W,Ot):di(U)?!0:U===92?k(U,W):!1},Xt=function(){return I(s,b(1),b(2))},Pt=function(U,W,Ot){return U===43||U===45?!!(pe(W)||W===46&&pe(Ot)):U===46?!!pe(W):!!pe(U)},Ht=function(){return Pt(s,b(1),b(2))},P=function(){let U="";for(;z();)if(ad(s))U+=Wt(s);else if(ut())U+=Wt(R());else return x(),U;throw new Error("Internal parse error")},Rt=function(){let U="",W="integer";for((b()===43||b()===45)&&(z(),U+=Wt(s));pe(b());)z(),U+=Wt(s);if(b(1)===46&&pe(b(2)))for(z(),U+=Wt(s),z(),U+=Wt(s),W="number";pe(b());)z(),U+=Wt(s);const Ot=b(1),te=b(2),_=b(3);if((Ot===69||Ot===101)&&pe(te))for(z(),U+=Wt(s),z(),U+=Wt(s),W="number";pe(b());)z(),U+=Wt(s);else if((Ot===69||Ot===101)&&(te===43||te===45)&&pe(_))for(z(),U+=Wt(s),z(),U+=Wt(s),z(),U+=Wt(s),W="number";pe(b());)z(),U+=Wt(s);const B=C(U);return{type:W,value:B,repr:U}},C=function(U){return+U},Dt=function(){for(;z();){if(s===41||y())return;ut()&&R()}};let zt=0;for(;!y(b());)if(c.push(G()),zt++,zt>o.length*2)throw new Error("I'm infinite-looping!");return c}class Qt{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class id extends Qt{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class vi extends Qt{constructor(){super(...arguments),this.tokenType="BADURL"}}class Qf extends Qt{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class cd extends Qt{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class fd extends Qt{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class sd extends Qt{constructor(){super(...arguments),this.tokenType=":"}}class rd extends Qt{constructor(){super(...arguments),this.tokenType=";"}}class od extends Qt{constructor(){super(...arguments),this.tokenType=","}}class ka extends Qt{constructor(){super(...arguments),this.value="",this.mirror=""}}class hd extends ka{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class dd extends ka{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class md extends ka{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class Xf extends ka{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class vd extends ka{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class yd extends ka{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class S0 extends Qt{constructor(){super(...arguments),this.tokenType="~="}}class p0 extends Qt{constructor(){super(...arguments),this.tokenType="|="}}class T0 extends Qt{constructor(){super(...arguments),this.tokenType="^="}}class b0 extends Qt{constructor(){super(...arguments),this.tokenType="$="}}class E0 extends Qt{constructor(){super(...arguments),this.tokenType="*="}}class gd extends Qt{constructor(){super(...arguments),this.tokenType="||"}}class yi extends Qt{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class se extends Qt{constructor(o){super(),this.tokenType="DELIM",this.value="",this.value=Wt(o)}toString(){return"DELIM("+this.value+")"}toJSON(){const o=this.constructor.prototype.constructor.prototype.toJSON.call(this);return o.value=this.value,o}toSource(){return this.value==="\\"?`\\
`:this.value}}class Wa extends Qt{constructor(){super(...arguments),this.value=""}ASCIIMatch(o){return this.value.toLowerCase()===o.toLowerCase()}toJSON(){const o=this.constructor.prototype.constructor.prototype.toJSON.call(this);return o.value=this.value,o}}class Sd extends Wa{constructor(o){super(),this.tokenType="IDENT",this.value=o}toString(){return"IDENT("+this.value+")"}toSource(){return kn(this.value)}}class gi extends Wa{constructor(o){super(),this.tokenType="FUNCTION",this.value=o,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return kn(this.value)+"("}}class pd extends Wa{constructor(o){super(),this.tokenType="AT-KEYWORD",this.value=o}toString(){return"AT("+this.value+")"}toSource(){return"@"+kn(this.value)}}class Td extends Wa{constructor(o){super(),this.tokenType="HASH",this.value=o,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const o=this.constructor.prototype.constructor.prototype.toJSON.call(this);return o.value=this.value,o.type=this.type,o}toSource(){return this.type==="id"?"#"+kn(this.value):"#"+x0(this.value)}}class bd extends Wa{constructor(o){super(),this.tokenType="STRING",this.value=o}toString(){return'"'+Ad(this.value)+'"'}}class Ed extends Wa{constructor(o){super(),this.tokenType="URL",this.value=o}toString(){return"URL("+this.value+")"}toSource(){return'url("'+Ad(this.value)+'")'}}class zd extends Qt{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const o=super.toJSON();return o.value=this.value,o.type=this.type,o.repr=this.repr,o}toSource(){return this.repr}}class xd extends Qt{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const o=this.constructor.prototype.constructor.prototype.toJSON.call(this);return o.value=this.value,o.repr=this.repr,o}toSource(){return this.repr+"%"}}class z0 extends Qt{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const o=this.constructor.prototype.constructor.prototype.toJSON.call(this);return o.value=this.value,o.type=this.type,o.repr=this.repr,o.unit=this.unit,o}toSource(){const o=this.repr;let h=kn(this.unit);return h[0].toLowerCase()==="e"&&(h[1]==="-"||$t(h.charCodeAt(1),48,57))&&(h="\\65 "+h.slice(1,h.length)),o+h}}function kn(r){r=""+r;let o="";const h=r.charCodeAt(0);for(let c=0;c<r.length;c++){const s=r.charCodeAt(c);if(s===0)throw new Vf("Invalid character: the input contains U+0000.");$t(s,1,31)||s===127||c===0&&$t(s,48,57)||c===1&&$t(s,48,57)&&h===45?o+="\\"+s.toString(16)+" ":s>=128||s===45||s===95||$t(s,48,57)||$t(s,65,90)||$t(s,97,122)?o+=r[c]:o+="\\"+r[c]}return o}function x0(r){r=""+r;let o="";for(let h=0;h<r.length;h++){const c=r.charCodeAt(h);if(c===0)throw new Vf("Invalid character: the input contains U+0000.");c>=128||c===45||c===95||$t(c,48,57)||$t(c,65,90)||$t(c,97,122)?o+=r[h]:o+="\\"+c.toString(16)+" "}return o}function Ad(r){r=""+r;let o="";for(let h=0;h<r.length;h++){const c=r.charCodeAt(h);if(c===0)throw new Vf("Invalid character: the input contains U+0000.");$t(c,1,31)||c===127?o+="\\"+c.toString(16)+" ":c===34||c===92?o+="\\"+r[h]:o+=r[h]}return o}class Te extends Error{}function A0(r,o){let h;try{h=g0(r),h[h.length-1]instanceof yi||h.push(new yi)}catch(C){const Dt=C.message+` while parsing css selector "${r}". Did you mean to CSS.escape it?`,zt=(C.stack||"").indexOf(C.message);throw zt!==-1&&(C.stack=C.stack.substring(0,zt)+Dt+C.stack.substring(zt+C.message.length)),C.message=Dt,C}const c=h.find(C=>C instanceof pd||C instanceof id||C instanceof vi||C instanceof gd||C instanceof cd||C instanceof fd||C instanceof rd||C instanceof hd||C instanceof dd||C instanceof Ed||C instanceof xd);if(c)throw new Te(`Unsupported token "${c.toSource()}" while parsing css selector "${r}". Did you mean to CSS.escape it?`);let s=0;const T=new Set;function b(){return new Te(`Unexpected token "${h[s].toSource()}" while parsing css selector "${r}". Did you mean to CSS.escape it?`)}function z(){for(;h[s]instanceof Qf;)s++}function x(C=s){return h[C]instanceof Sd}function y(C=s){return h[C]instanceof bd}function G(C=s){return h[C]instanceof zd}function H(C=s){return h[C]instanceof od}function K(C=s){return h[C]instanceof vd}function lt(C=s){return h[C]instanceof yd}function Z(C=s){return h[C]instanceof gi}function L(C=s){return h[C]instanceof se&&h[C].value==="*"}function R(C=s){return h[C]instanceof yi}function k(C=s){return h[C]instanceof se&&[">","+","~"].includes(h[C].value)}function ut(C=s){return H(C)||lt(C)||R(C)||k(C)||h[C]instanceof Qf}function I(){const C=[Xt()];for(;z(),!!H();)s++,C.push(Xt());return C}function Xt(){return z(),G()||y()?h[s++].value:Pt()}function Pt(){const C={simples:[]};for(z(),k()?C.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):C.simples.push({selector:Ht(),combinator:""});;){if(z(),k())C.simples[C.simples.length-1].combinator=h[s++].value,z();else if(ut())break;C.simples.push({combinator:"",selector:Ht()})}return C}function Ht(){let C="";const Dt=[];for(;!ut();)if(x()||L())C+=h[s++].toSource();else if(h[s]instanceof Td)C+=h[s++].toSource();else if(h[s]instanceof se&&h[s].value===".")if(s++,x())C+="."+h[s++].toSource();else throw b();else if(h[s]instanceof sd)if(s++,x())if(!o.has(h[s].value.toLowerCase()))C+=":"+h[s++].toSource();else{const zt=h[s++].value.toLowerCase();Dt.push({name:zt,args:[]}),T.add(zt)}else if(Z()){const zt=h[s++].value.toLowerCase();if(o.has(zt)?(Dt.push({name:zt,args:I()}),T.add(zt)):C+=`:${zt}(${P()})`,z(),!lt())throw b();s++}else throw b();else if(h[s]instanceof md){for(C+="[",s++;!(h[s]instanceof Xf)&&!R();)C+=h[s++].toSource();if(!(h[s]instanceof Xf))throw b();C+="]",s++}else throw b();if(!C&&!Dt.length)throw b();return{css:C||void 0,functions:Dt}}function P(){let C="",Dt=1;for(;!R()&&((K()||Z())&&Dt++,lt()&&Dt--,!!Dt);)C+=h[s++].toSource();return C}const Rt=I();if(!R())throw b();if(Rt.some(C=>typeof C!="object"||!("simples"in C)))throw new Te(`Error while parsing css selector "${r}". Did you mean to CSS.escape it?`);return{selector:Rt,names:Array.from(T)}}const nd=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),_0=new Set(["left-of","right-of","above","below","near"]),O0=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function _d(r){const o=N0(r),h=[];for(const c of o.parts){if(c.name==="css"||c.name==="css:light"){c.name==="css:light"&&(c.body=":light("+c.body+")");const s=A0(c.body,O0);h.push({name:"css",body:s.selector,source:c.body});continue}if(nd.has(c.name)){let s,T;try{const y=JSON.parse("["+c.body+"]");if(!Array.isArray(y)||y.length<1||y.length>2||typeof y[0]!="string")throw new Te(`Malformed selector: ${c.name}=`+c.body);if(s=y[0],y.length===2){if(typeof y[1]!="number"||!_0.has(c.name))throw new Te(`Malformed selector: ${c.name}=`+c.body);T=y[1]}}catch{throw new Te(`Malformed selector: ${c.name}=`+c.body)}const b={name:c.name,source:c.body,body:{parsed:_d(s),distance:T}},z=[...b.body.parsed.parts].reverse().find(y=>y.name==="internal:control"&&y.body==="enter-frame"),x=z?b.body.parsed.parts.indexOf(z):-1;x!==-1&&M0(b.body.parsed.parts.slice(0,x+1),h.slice(0,x+1))&&b.body.parsed.parts.splice(0,x+1),h.push(b);continue}h.push({...c,source:c.body})}if(nd.has(h[0].name))throw new Te(`"${h[0].name}" selector cannot be first`);return{capture:o.capture,parts:h}}function M0(r,o){return $a({parts:r})===$a({parts:o})}function $a(r,o){return typeof r=="string"?r:r.parts.map((h,c)=>{let s=!0;!o&&c!==r.capture&&(h.name==="css"||h.name==="xpath"&&h.source.startsWith("//")||h.source.startsWith(".."))&&(s=!1);const T=s?h.name+"=":"";return`${c===r.capture?"*":""}${T}${h.source}`}).join(" >> ")}function N0(r){let o=0,h,c=0;const s={parts:[]},T=()=>{const z=r.substring(c,o).trim(),x=z.indexOf("=");let y,G;x!==-1&&z.substring(0,x).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(y=z.substring(0,x).trim(),G=z.substring(x+1)):z.length>1&&z[0]==='"'&&z[z.length-1]==='"'||z.length>1&&z[0]==="'"&&z[z.length-1]==="'"?(y="text",G=z):/^\(*\/\//.test(z)||z.startsWith("..")?(y="xpath",G=z):(y="css",G=z);let H=!1;if(y[0]==="*"&&(H=!0,y=y.substring(1)),s.parts.push({name:y,body:G}),H){if(s.capture!==void 0)throw new Te("Only one of the selectors can capture using * modifier");s.capture=s.parts.length-1}};if(!r.includes(">>"))return o=r.length,T(),s;const b=()=>{const x=r.substring(c,o).match(/^\s*text\s*=(.*)$/);return!!x&&!!x[1]};for(;o<r.length;){const z=r[o];z==="\\"&&o+1<r.length?o+=2:z===h?(h=void 0,o++):!h&&(z==='"'||z==="'"||z==="`")&&!b()?(h=z,o++):!h&&z===">"&&r[o+1]===">"?(T(),o+=2,c=o):o++}return T(),s}function Gf(r,o){let h=0,c=r.length===0;const s=()=>r[h]||"",T=()=>{const R=s();return++h,c=h>=r.length,R},b=R=>{throw c?new Te(`Unexpected end of selector while parsing selector \`${r}\``):new Te(`Error while parsing selector \`${r}\` - unexpected symbol "${s()}" at position ${h}`+(R?" during "+R:""))};function z(){for(;!c&&/\s/.test(s());)T()}function x(R){return R>=""||R>="0"&&R<="9"||R>="A"&&R<="Z"||R>="a"&&R<="z"||R>="0"&&R<="9"||R==="_"||R==="-"}function y(){let R="";for(z();!c&&x(s());)R+=T();return R}function G(R){let k=T();for(k!==R&&b("parsing quoted string");!c&&s()!==R;)s()==="\\"&&T(),k+=T();return s()!==R&&b("parsing quoted string"),k+=T(),k}function H(){T()!=="/"&&b("parsing regular expression");let R="",k=!1;for(;!c;){if(s()==="\\")R+=T(),c&&b("parsing regular expression");else if(k&&s()==="]")k=!1;else if(!k&&s()==="[")k=!0;else if(!k&&s()==="/")break;R+=T()}T()!=="/"&&b("parsing regular expression");let ut="";for(;!c&&s().match(/[dgimsuy]/);)ut+=T();try{return new RegExp(R,ut)}catch(I){throw new Te(`Error while parsing selector \`${r}\`: ${I.message}`)}}function K(){let R="";return z(),s()==="'"||s()==='"'?R=G(s()).slice(1,-1):R=y(),R||b("parsing property path"),R}function lt(){z();let R="";return c||(R+=T()),!c&&R!=="="&&(R+=T()),["=","*=","^=","$=","|=","~="].includes(R)||b("parsing operator"),R}function Z(){T();const R=[];for(R.push(K()),z();s()===".";)T(),R.push(K()),z();if(s()==="]")return T(),{name:R.join("."),jsonPath:R,op:"<truthy>",value:null,caseSensitive:!1};const k=lt();let ut,I=!0;if(z(),s()==="/"){if(k!=="=")throw new Te(`Error while parsing selector \`${r}\` - cannot use ${k} in attribute with regular expression`);ut=H()}else if(s()==="'"||s()==='"')ut=G(s()).slice(1,-1),z(),s()==="i"||s()==="I"?(I=!1,T()):(s()==="s"||s()==="S")&&(I=!0,T());else{for(ut="";!c&&(x(s())||s()==="+"||s()===".");)ut+=T();ut==="true"?ut=!0:ut==="false"&&(ut=!1)}if(z(),s()!=="]"&&b("parsing attribute value"),T(),k!=="="&&typeof ut!="string")throw new Te(`Error while parsing selector \`${r}\` - cannot use ${k} in attribute with non-string matching value - ${ut}`);return{name:R.join("."),jsonPath:R,op:k,value:ut,caseSensitive:I}}const L={name:"",attributes:[]};for(L.name=y(),z();s()==="[";)L.attributes.push(Z()),z();if(c||b(void 0),!L.name&&!L.attributes.length)throw new Te(`Error while parsing selector \`${r}\` - selector cannot be empty`);return L}function Ti(r,o="'"){const h=JSON.stringify(r),c=h.substring(1,h.length-1).replace(/\\"/g,'"');if(o==="'")return o+c.replace(/[']/g,"\\'")+o;if(o==='"')return o+c.replace(/["]/g,'\\"')+o;if(o==="`")return o+c.replace(/[`]/g,"\\`")+o;throw new Error("Invalid escape char")}function Si(r){return r.charAt(0).toUpperCase()+r.substring(1)}function Od(r){return r.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function bi(r){return r.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function D0(r,o,h=!1){return U0(r,o,h,1)[0]}function U0(r,o,h=!1,c=20,s){try{return Ka(new Y0[r](s),_d(o),h,c)}catch{return[o]}}function Ka(r,o,h=!1,c=20){const s=[...o.parts],T=[];let b=h?"frame-locator":"page";for(let z=0;z<s.length;z++){const x=s[z],y=b;if(b="locator",x.name==="internal:describe")continue;if(x.name==="nth"){x.body==="0"?T.push([r.generateLocator(y,"first",""),r.generateLocator(y,"nth","0")]):x.body==="-1"?T.push([r.generateLocator(y,"last",""),r.generateLocator(y,"nth","-1")]):T.push([r.generateLocator(y,"nth",x.body)]);continue}if(x.name==="visible"){T.push([r.generateLocator(y,"visible",x.body),r.generateLocator(y,"default",`visible=${x.body}`)]);continue}if(x.name==="internal:text"){const{exact:Z,text:L}=$n(x.body);T.push([r.generateLocator(y,"text",L,{exact:Z})]);continue}if(x.name==="internal:has-text"){const{exact:Z,text:L}=$n(x.body);if(!Z){T.push([r.generateLocator(y,"has-text",L,{exact:Z})]);continue}}if(x.name==="internal:has-not-text"){const{exact:Z,text:L}=$n(x.body);if(!Z){T.push([r.generateLocator(y,"has-not-text",L,{exact:Z})]);continue}}if(x.name==="internal:has"){const Z=Ka(r,x.body.parsed,!1,c);T.push(Z.map(L=>r.generateLocator(y,"has",L)));continue}if(x.name==="internal:has-not"){const Z=Ka(r,x.body.parsed,!1,c);T.push(Z.map(L=>r.generateLocator(y,"hasNot",L)));continue}if(x.name==="internal:and"){const Z=Ka(r,x.body.parsed,!1,c);T.push(Z.map(L=>r.generateLocator(y,"and",L)));continue}if(x.name==="internal:or"){const Z=Ka(r,x.body.parsed,!1,c);T.push(Z.map(L=>r.generateLocator(y,"or",L)));continue}if(x.name==="internal:chain"){const Z=Ka(r,x.body.parsed,!1,c);T.push(Z.map(L=>r.generateLocator(y,"chain",L)));continue}if(x.name==="internal:label"){const{exact:Z,text:L}=$n(x.body);T.push([r.generateLocator(y,"label",L,{exact:Z})]);continue}if(x.name==="internal:role"){const Z=Gf(x.body),L={attrs:[]};for(const R of Z.attributes)R.name==="name"?(L.exact=R.caseSensitive,L.name=R.value):(R.name==="level"&&typeof R.value=="string"&&(R.value=+R.value),L.attrs.push({name:R.name==="include-hidden"?"includeHidden":R.name,value:R.value}));T.push([r.generateLocator(y,"role",Z.name,L)]);continue}if(x.name==="internal:testid"){const Z=Gf(x.body),{value:L}=Z.attributes[0];T.push([r.generateLocator(y,"test-id",L)]);continue}if(x.name==="internal:attr"){const Z=Gf(x.body),{name:L,value:R,caseSensitive:k}=Z.attributes[0],ut=R,I=!!k;if(L==="placeholder"){T.push([r.generateLocator(y,"placeholder",ut,{exact:I})]);continue}if(L==="alt"){T.push([r.generateLocator(y,"alt",ut,{exact:I})]);continue}if(L==="title"){T.push([r.generateLocator(y,"title",ut,{exact:I})]);continue}}if(x.name==="internal:control"&&x.body==="enter-frame"){const Z=T[T.length-1],L=s[z-1],R=Z.map(k=>r.chainLocators([k,r.generateLocator(y,"frame","")]));["xpath","css"].includes(L.name)&&R.push(r.generateLocator(y,"frame-locator",$a({parts:[L]})),r.generateLocator(y,"frame-locator",$a({parts:[L]},!0))),Z.splice(0,Z.length,...R),b="frame-locator";continue}const G=s[z+1],H=$a({parts:[x]}),K=r.generateLocator(y,"default",H);if(G&&["internal:has-text","internal:has-not-text"].includes(G.name)){const{exact:Z,text:L}=$n(G.body);if(!Z){const R=r.generateLocator("locator",G.name==="internal:has-text"?"has-text":"has-not-text",L,{exact:Z}),k={};G.name==="internal:has-text"?k.hasText=L:k.hasNotText=L;const ut=r.generateLocator(y,"default",H,k);T.push([r.chainLocators([K,R]),ut]),z++;continue}}let lt;if(["xpath","css"].includes(x.name)){const Z=$a({parts:[x]},!0);lt=r.generateLocator(y,"default",Z)}T.push([K,lt].filter(Boolean))}return C0(r,T,c)}function C0(r,o,h){const c=o.map(()=>""),s=[],T=b=>{if(b===o.length)return s.push(r.chainLocators(c)),s.length<h;for(const z of o[b])if(c[b]=z,!T(b+1))return!1;return!0};return T(0),s}function $n(r){let o=!1;const h=r.match(/^\/(.*)\/([igm]*)$/);return h?{text:new RegExp(h[1],h[2])}:(r.endsWith('"')?(r=JSON.parse(r),o=!0):r.endsWith('"s')?(r=JSON.parse(r.substring(0,r.length-1)),o=!0):r.endsWith('"i')&&(r=JSON.parse(r.substring(0,r.length-1)),o=!1),{exact:o,text:r})}class H0{constructor(o){this.preferredQuote=o}generateLocator(o,h,c,s={}){switch(h){case"default":return s.hasText!==void 0?`locator(${this.quote(c)}, { hasText: ${this.toHasText(s.hasText)} })`:s.hasNotText!==void 0?`locator(${this.quote(c)}, { hasNotText: ${this.toHasText(s.hasNotText)} })`:`locator(${this.quote(c)})`;case"frame-locator":return`frameLocator(${this.quote(c)})`;case"frame":return"contentFrame()";case"nth":return`nth(${c})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter({ visible: ${c==="true"?"true":"false"} })`;case"role":const T=[];ce(s.name)?T.push(`name: ${this.regexToSourceString(s.name)}`):typeof s.name=="string"&&(T.push(`name: ${this.quote(s.name)}`),s.exact&&T.push("exact: true"));for(const{name:z,value:x}of s.attrs)T.push(`${z}: ${typeof x=="string"?this.quote(x):x}`);const b=T.length?`, { ${T.join(", ")} }`:"";return`getByRole(${this.quote(c)}${b})`;case"has-text":return`filter({ hasText: ${this.toHasText(c)} })`;case"has-not-text":return`filter({ hasNotText: ${this.toHasText(c)} })`;case"has":return`filter({ has: ${c} })`;case"hasNot":return`filter({ hasNot: ${c} })`;case"and":return`and(${c})`;case"or":return`or(${c})`;case"chain":return`locator(${c})`;case"test-id":return`getByTestId(${this.toTestIdValue(c)})`;case"text":return this.toCallWithExact("getByText",c,!!s.exact);case"alt":return this.toCallWithExact("getByAltText",c,!!s.exact);case"placeholder":return this.toCallWithExact("getByPlaceholder",c,!!s.exact);case"label":return this.toCallWithExact("getByLabel",c,!!s.exact);case"title":return this.toCallWithExact("getByTitle",c,!!s.exact);default:throw new Error("Unknown selector kind "+h)}}chainLocators(o){return o.join(".")}regexToSourceString(o){return bi(String(o))}toCallWithExact(o,h,c){return ce(h)?`${o}(${this.regexToSourceString(h)})`:c?`${o}(${this.quote(h)}, { exact: true })`:`${o}(${this.quote(h)})`}toHasText(o){return ce(o)?this.regexToSourceString(o):this.quote(o)}toTestIdValue(o){return ce(o)?this.regexToSourceString(o):this.quote(o)}quote(o){return Ti(o,this.preferredQuote??"'")}}class R0{generateLocator(o,h,c,s={}){switch(h){case"default":return s.hasText!==void 0?`locator(${this.quote(c)}, has_text=${this.toHasText(s.hasText)})`:s.hasNotText!==void 0?`locator(${this.quote(c)}, has_not_text=${this.toHasText(s.hasNotText)})`:`locator(${this.quote(c)})`;case"frame-locator":return`frame_locator(${this.quote(c)})`;case"frame":return"content_frame";case"nth":return`nth(${c})`;case"first":return"first";case"last":return"last";case"visible":return`filter(visible=${c==="true"?"True":"False"})`;case"role":const T=[];ce(s.name)?T.push(`name=${this.regexToString(s.name)}`):typeof s.name=="string"&&(T.push(`name=${this.quote(s.name)}`),s.exact&&T.push("exact=True"));for(const{name:z,value:x}of s.attrs){let y=typeof x=="string"?this.quote(x):x;typeof x=="boolean"&&(y=x?"True":"False"),T.push(`${Od(z)}=${y}`)}const b=T.length?`, ${T.join(", ")}`:"";return`get_by_role(${this.quote(c)}${b})`;case"has-text":return`filter(has_text=${this.toHasText(c)})`;case"has-not-text":return`filter(has_not_text=${this.toHasText(c)})`;case"has":return`filter(has=${c})`;case"hasNot":return`filter(has_not=${c})`;case"and":return`and_(${c})`;case"or":return`or_(${c})`;case"chain":return`locator(${c})`;case"test-id":return`get_by_test_id(${this.toTestIdValue(c)})`;case"text":return this.toCallWithExact("get_by_text",c,!!s.exact);case"alt":return this.toCallWithExact("get_by_alt_text",c,!!s.exact);case"placeholder":return this.toCallWithExact("get_by_placeholder",c,!!s.exact);case"label":return this.toCallWithExact("get_by_label",c,!!s.exact);case"title":return this.toCallWithExact("get_by_title",c,!!s.exact);default:throw new Error("Unknown selector kind "+h)}}chainLocators(o){return o.join(".")}regexToString(o){const h=o.flags.includes("i")?", re.IGNORECASE":"";return`re.compile(r"${bi(o.source).replace(/\\\//,"/").replace(/"/g,'\\"')}"${h})`}toCallWithExact(o,h,c){return ce(h)?`${o}(${this.regexToString(h)})`:c?`${o}(${this.quote(h)}, exact=True)`:`${o}(${this.quote(h)})`}toHasText(o){return ce(o)?this.regexToString(o):`${this.quote(o)}`}toTestIdValue(o){return ce(o)?this.regexToString(o):this.quote(o)}quote(o){return Ti(o,'"')}}class j0{generateLocator(o,h,c,s={}){let T;switch(o){case"page":T="Page";break;case"frame-locator":T="FrameLocator";break;case"locator":T="Locator";break}switch(h){case"default":return s.hasText!==void 0?`locator(${this.quote(c)}, new ${T}.LocatorOptions().setHasText(${this.toHasText(s.hasText)}))`:s.hasNotText!==void 0?`locator(${this.quote(c)}, new ${T}.LocatorOptions().setHasNotText(${this.toHasText(s.hasNotText)}))`:`locator(${this.quote(c)})`;case"frame-locator":return`frameLocator(${this.quote(c)})`;case"frame":return"contentFrame()";case"nth":return`nth(${c})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter(new ${T}.FilterOptions().setVisible(${c==="true"?"true":"false"}))`;case"role":const b=[];ce(s.name)?b.push(`.setName(${this.regexToString(s.name)})`):typeof s.name=="string"&&(b.push(`.setName(${this.quote(s.name)})`),s.exact&&b.push(".setExact(true)"));for(const{name:x,value:y}of s.attrs)b.push(`.set${Si(x)}(${typeof y=="string"?this.quote(y):y})`);const z=b.length?`, new ${T}.GetByRoleOptions()${b.join("")}`:"";return`getByRole(AriaRole.${Od(c).toUpperCase()}${z})`;case"has-text":return`filter(new ${T}.FilterOptions().setHasText(${this.toHasText(c)}))`;case"has-not-text":return`filter(new ${T}.FilterOptions().setHasNotText(${this.toHasText(c)}))`;case"has":return`filter(new ${T}.FilterOptions().setHas(${c}))`;case"hasNot":return`filter(new ${T}.FilterOptions().setHasNot(${c}))`;case"and":return`and(${c})`;case"or":return`or(${c})`;case"chain":return`locator(${c})`;case"test-id":return`getByTestId(${this.toTestIdValue(c)})`;case"text":return this.toCallWithExact(T,"getByText",c,!!s.exact);case"alt":return this.toCallWithExact(T,"getByAltText",c,!!s.exact);case"placeholder":return this.toCallWithExact(T,"getByPlaceholder",c,!!s.exact);case"label":return this.toCallWithExact(T,"getByLabel",c,!!s.exact);case"title":return this.toCallWithExact(T,"getByTitle",c,!!s.exact);default:throw new Error("Unknown selector kind "+h)}}chainLocators(o){return o.join(".")}regexToString(o){const h=o.flags.includes("i")?", Pattern.CASE_INSENSITIVE":"";return`Pattern.compile(${this.quote(bi(o.source))}${h})`}toCallWithExact(o,h,c,s){return ce(c)?`${h}(${this.regexToString(c)})`:s?`${h}(${this.quote(c)}, new ${o}.${Si(h)}Options().setExact(true))`:`${h}(${this.quote(c)})`}toHasText(o){return ce(o)?this.regexToString(o):this.quote(o)}toTestIdValue(o){return ce(o)?this.regexToString(o):this.quote(o)}quote(o){return Ti(o,'"')}}class q0{generateLocator(o,h,c,s={}){switch(h){case"default":return s.hasText!==void 0?`Locator(${this.quote(c)}, new() { ${this.toHasText(s.hasText)} })`:s.hasNotText!==void 0?`Locator(${this.quote(c)}, new() { ${this.toHasNotText(s.hasNotText)} })`:`Locator(${this.quote(c)})`;case"frame-locator":return`FrameLocator(${this.quote(c)})`;case"frame":return"ContentFrame";case"nth":return`Nth(${c})`;case"first":return"First";case"last":return"Last";case"visible":return`Filter(new() { Visible = ${c==="true"?"true":"false"} })`;case"role":const T=[];ce(s.name)?T.push(`NameRegex = ${this.regexToString(s.name)}`):typeof s.name=="string"&&(T.push(`Name = ${this.quote(s.name)}`),s.exact&&T.push("Exact = true"));for(const{name:z,value:x}of s.attrs)T.push(`${Si(z)} = ${typeof x=="string"?this.quote(x):x}`);const b=T.length?`, new() { ${T.join(", ")} }`:"";return`GetByRole(AriaRole.${Si(c)}${b})`;case"has-text":return`Filter(new() { ${this.toHasText(c)} })`;case"has-not-text":return`Filter(new() { ${this.toHasNotText(c)} })`;case"has":return`Filter(new() { Has = ${c} })`;case"hasNot":return`Filter(new() { HasNot = ${c} })`;case"and":return`And(${c})`;case"or":return`Or(${c})`;case"chain":return`Locator(${c})`;case"test-id":return`GetByTestId(${this.toTestIdValue(c)})`;case"text":return this.toCallWithExact("GetByText",c,!!s.exact);case"alt":return this.toCallWithExact("GetByAltText",c,!!s.exact);case"placeholder":return this.toCallWithExact("GetByPlaceholder",c,!!s.exact);case"label":return this.toCallWithExact("GetByLabel",c,!!s.exact);case"title":return this.toCallWithExact("GetByTitle",c,!!s.exact);default:throw new Error("Unknown selector kind "+h)}}chainLocators(o){return o.join(".")}regexToString(o){const h=o.flags.includes("i")?", RegexOptions.IgnoreCase":"";return`new Regex(${this.quote(bi(o.source))}${h})`}toCallWithExact(o,h,c){return ce(h)?`${o}(${this.regexToString(h)})`:c?`${o}(${this.quote(h)}, new() { Exact = true })`:`${o}(${this.quote(h)})`}toHasText(o){return ce(o)?`HasTextRegex = ${this.regexToString(o)}`:`HasText = ${this.quote(o)}`}toTestIdValue(o){return ce(o)?this.regexToString(o):this.quote(o)}toHasNotText(o){return ce(o)?`HasNotTextRegex = ${this.regexToString(o)}`:`HasNotText = ${this.quote(o)}`}quote(o){return Ti(o,'"')}}class B0{generateLocator(o,h,c,s={}){return JSON.stringify({kind:h,body:c,options:s})}chainLocators(o){const h=o.map(c=>JSON.parse(c));for(let c=0;c<h.length-1;++c)h[c].next=h[c+1];return JSON.stringify(h[0])}}const Y0={javascript:H0,python:R0,java:j0,csharp:q0,jsonl:B0};function ce(r){return r instanceof RegExp}function L0(r){try{const h=new URL(r).hostname.replace(/^www\./,"");return h?h[0].toUpperCase():""}catch{return""}}const w0=["left","middle","right"],G0=({wsUrl:r})=>{const[o,h]=dt.useState({text:"Connecting",cls:""}),[c,s]=dt.useState([]),[T,b]=dt.useState(""),[z,x]=dt.useState(""),[y,G]=dt.useState(!1),[H,K]=dt.useState(!1),[lt,Z]=dt.useState(!1),[L,R]=dt.useState(!1),[k,ut]=dt.useState(null),I=dt.useRef(null),Xt=dt.useRef(null),Pt=dt.useRef(null),Ht=dt.useRef(null),P=dt.useRef(null),Rt=dt.useRef({width:0,height:0}),C=dt.useRef(!1),Dt=dt.useRef(!1),zt=dt.useRef(0),U=dt.useRef(!1),W=dt.useRef(0),[Ot,te]=dt.useState();dt.useEffect(()=>{Dt.current=y},[y]),dt.useEffect(()=>{U.current=L},[L]),dt.useEffect(()=>{if(!r)return;const j=pi.create(r);return I.current=j,j.onopen=()=>h({text:"Connected",cls:"connected"}),j.on("tabs",F=>{s(F.tabs);const ct=F.tabs.find(mt=>mt.selected);ct&&b(ct.url),ct!=null&&ct.inspectorUrl||Z(!1)}),j.on("frame",F=>{x("data:image/jpeg;base64,"+F.data),F.viewportWidth&&(Rt.current.width=F.viewportWidth),F.viewportHeight&&(Rt.current.height=F.viewportHeight),_()}),j.on("elementPicked",F=>{var mt;const ct=D0("javascript",F.selector);(mt=navigator.clipboard)==null||mt.writeText(ct).catch(()=>{}),R(!1),ut(ct),clearTimeout(W.current),W.current=setTimeout(()=>ut(null),3e3)}),j.onclose=()=>h({text:"Disconnected",cls:"error"}),()=>{clearTimeout(W.current),j.close()}},[r]);function _(){const{width:j,height:F}=Rt.current;if(!j||!F||C.current)return;C.current=!0;const ct=document.querySelector(".tabbar"),mt=document.querySelector(".toolbar");if(!ct||!mt)return;const jt=ct.offsetHeight+mt.offsetHeight,Qe=window.outerWidth-window.innerWidth,Xl=window.outerHeight-window.innerHeight,Ue=Math.min(j+Qe,screen.availWidth),re=Math.min(F+jt+Xl,screen.availHeight);window.resizeTo(Ue,re)}function B(j){const{width:F,height:ct}=Rt.current;if(!F||!ct)return{x:0,y:0};const mt=Xt.current;if(!mt)return{x:0,y:0};const jt=mt.getBoundingClientRect(),Qe=mt.naturalWidth/mt.naturalHeight,Xl=jt.width/jt.height;let Ue,re,Je,Fe;Qe>Xl?(Ue=jt.width,re=jt.width/Qe,Je=0,Fe=(jt.height-re)/2):(re=jt.height,Ue=jt.height*Qe,Je=(jt.width-Ue)/2,Fe=0);const Fa=(j.clientX-jt.left-Je)/Ue,Ia=(j.clientY-jt.top-Fe)/re;return{x:Math.round(Fa*F),y:Math.round(Ia*ct)}}const V=()=>lt||Dt.current;function St(j,F){var jt;const{x:ct,y:mt}=B(F);(jt=I.current)==null||jt[j]({x:ct,y:mt,button:w0[F.button]||"left"})}function Tt(j){var F;if(j.preventDefault(),(F=Pt.current)==null||F.focus(),!U.current&&!V()){G(!0),K(!1);return}St("mousedown",j)}function v(j){!U.current&&!V()||(j.preventDefault(),St("mouseup",j))}function D(j){var jt;if(!U.current&&!V())return;const F=Date.now();if(F-zt.current<32)return;zt.current=F;const{x:ct,y:mt}=B(j);(jt=I.current)==null||jt.mousemove({x:ct,y:mt})}function Y(j){var F;V()&&(j.preventDefault(),(F=I.current)==null||F.wheel({deltaX:j.deltaX,deltaY:j.deltaY}))}function Q(j){var F,ct;if(U.current&&j.key==="Escape"){j.preventDefault(),(F=I.current)==null||F.cancelPickLocator(),R(!1);return}if(V()){if(j.preventDefault(),j.key==="Escape"&&!(j.metaKey||j.ctrlKey)){G(!1);return}(ct=I.current)==null||ct.keydown({key:j.key})}}function tt(j){var F;V()&&(j.preventDefault(),(F=I.current)==null||F.keyup({key:j.key}))}function it(){G(!1)}function vt(j){var Je;if(j.button!==0)return;const F=(Je=Ht.current)==null?void 0:Je.getBoundingClientRect();if(!F)return;j.preventDefault();const ct=j.currentTarget;ct.setPointerCapture(j.pointerId);const mt=300,jt=Math.max(mt,F.width-320),Qe=j.clientX,Xl=Ot??F.width*.5,Ue=Fe=>{const Fa=Qe-Fe.clientX,Ia=Math.max(mt,Math.min(jt,Xl+Fa));te(Ia)},re=()=>{ct.removeEventListener("pointermove",Ue),ct.removeEventListener("pointerup",re),ct.removeEventListener("lostpointercapture",re),document.body.style.cursor="",document.body.style.userSelect=""};document.body.style.cursor="col-resize",document.body.style.userSelect="none",ct.addEventListener("pointermove",Ue),ct.addEventListener("pointerup",re),ct.addEventListener("lostpointercapture",re)}function ee(j){var F,ct;if(j.key==="Enter"){let mt=j.target.value.trim();/^https?:\/\//i.test(mt)||(mt="https://"+mt),b(mt),(F=I.current)==null||F.navigate({url:mt}),(ct=P.current)==null||ct.blur()}}const Mt=c.find(j=>j.selected),gl=!!Mt;return q.jsxs("div",{className:"devtools-view",children:[q.jsxs("div",{className:"tabbar",children:[q.jsx("a",{className:"tabbar-back",href:"#",title:"Back to sessions",onClick:j=>{j.preventDefault(),Md("#")},children:q.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:q.jsx("polyline",{points:"15 18 9 12 15 6"})})}),q.jsx("div",{id:"tabstrip",className:"tabstrip",role:"tablist",children:c.map(j=>q.jsxs("div",{className:"tab"+(j.selected?" active":""),role:"tab","aria-selected":j.selected,title:j.url||"",onClick:()=>{var F;return(F=I.current)==null?void 0:F.selectTab({pageId:j.pageId})},children:[q.jsx("span",{className:"tab-favicon","aria-hidden":"true",children:L0(j.url)}),q.jsx("span",{className:"tab-label",children:j.title||"New Tab"}),q.jsx("button",{className:"tab-close",title:"Close tab",onClick:F=>{var ct;F.stopPropagation(),(ct=I.current)==null||ct.closeTab({pageId:j.pageId})},children:q.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[q.jsx("line",{x1:"2",y1:"2",x2:"10",y2:"10"}),q.jsx("line",{x1:"10",y1:"2",x2:"2",y2:"10"})]})})]},j.pageId))}),q.jsx("button",{id:"new-tab-btn",className:"new-tab-btn",title:"New Tab",onClick:()=>{var j;return(j=I.current)==null?void 0:j.newTab()},children:q.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",children:[q.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),q.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}),q.jsx("div",{id:"status",className:"status "+o.cls,children:o.text})]}),q.jsxs("div",{className:"toolbar",children:[q.jsx("button",{className:"nav-btn",title:"Back",onClick:()=>{var j;return(j=I.current)==null?void 0:j.back()},children:q.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:q.jsx("polyline",{points:"15 18 9 12 15 6"})})}),q.jsx("button",{className:"nav-btn",title:"Forward",onClick:()=>{var j;return(j=I.current)==null?void 0:j.forward()},children:q.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:q.jsx("polyline",{points:"9 18 15 12 9 6"})})}),q.jsx("button",{className:"nav-btn",title:"Reload",onClick:()=>{var j;return(j=I.current)==null?void 0:j.reload()},children:q.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[q.jsx("polyline",{points:"23 4 23 10 17 10"}),q.jsx("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})]})}),q.jsx("input",{ref:P,id:"omnibox",className:"omnibox",type:"text",placeholder:"Search or enter URL",spellCheck:!1,autoComplete:"off",value:T,onChange:j=>b(j.target.value),onKeyDown:ee,onFocus:j=>j.target.select()}),!1,!1]}),q.jsxs("div",{ref:Ht,className:"viewport-wrapper",children:[q.jsxs("div",{className:"viewport-main",children:[q.jsxs("div",{ref:Pt,className:"screen"+(y?" captured":""),tabIndex:0,style:{display:gl?"":"none"},onMouseDown:Tt,onMouseUp:v,onMouseMove:D,onWheel:Y,onKeyDown:Q,onKeyUp:tt,onBlur:it,onContextMenu:j=>j.preventDefault(),onMouseEnter:()=>{!lt&&!Dt.current&&K(!0)},onMouseLeave:()=>K(!1),children:[q.jsx("img",{ref:Xt,id:"display",className:"display",alt:"screencast",src:z}),k?q.jsxs("div",{className:"capture-hint visible",children:["Copied: ",q.jsx("code",{children:k})]}):L?q.jsx("div",{className:"capture-hint visible",children:"Click an element to pick its locator"}):!lt&&q.jsx("div",{className:"capture-hint"+(H?" visible":""),children:"Click to interact · Esc to release"})]}),q.jsx("div",{id:"no-pages",className:"no-pages"+(gl?"":" visible"),children:"No tabs open"})]}),lt&&(Mt==null?void 0:Mt.inspectorUrl)&&q.jsxs("div",{className:"inspector-panel",style:Ot?{width:`${Ot}px`}:void 0,children:[q.jsx("div",{className:"inspector-grip",onPointerDown:vt}),q.jsx("iframe",{className:"inspector-frame",src:Mt.inspectorUrl,title:"Chrome DevTools"})]})]})]})},Q0=({channel:r})=>{const[o,h]=dt.useState("");return dt.useEffect(()=>{const c=s=>{h("data:image/jpeg;base64,"+s.data)};return r.on("frame",c),()=>r.off("frame",c)},[r]),o?q.jsx("img",{className:"screencast-frame",alt:"screencast",src:o}):q.jsx("div",{className:"screencast-placeholder",children:"Connecting..."})},X0=({model:r})=>{const[o,h]=dt.useState(new Set),c=r.sessions,s=r.clientInfo;function T(z){h(x=>{const y=new Set(x);return y.has(z)?y.delete(z):y.add(z),y})}const b=dt.useMemo(()=>{const z=new Map;for(const H of c){const K=H.config.workspaceDir||"Global";let lt=z.get(K);lt||(lt=[],z.set(K,lt)),lt.push(H)}for(const H of z.values())H.sort((K,lt)=>K.config.name.localeCompare(lt.config.name));const x=[...z.entries()],y=x.filter(([H])=>H===(s==null?void 0:s.workspaceDir)),G=x.filter(([H])=>H!==(s==null?void 0:s.workspaceDir)).sort((H,K)=>H[0].localeCompare(K[0]));return[...y,...G]},[c,s==null?void 0:s.workspaceDir]);return q.jsxs("div",{className:"grid-view",children:[r.loading&&c.length===0&&q.jsx("div",{className:"grid-loading",children:"Loading sessions..."}),r.error&&q.jsxs("div",{className:"grid-error",children:["Error: ",r.error]}),!r.loading&&!r.error&&c.length===0&&q.jsx("div",{className:"grid-empty",children:"No sessions found."}),q.jsx("div",{className:"workspace-list",children:b.map(([z,x],y)=>{const G=y===0,H=G||o.has(z);return q.jsxs("div",{className:"workspace-group",children:[q.jsxs("div",{className:"workspace-header"+(G?"":" collapsible"),onClick:G?void 0:()=>T(z),children:[!G&&q.jsx("svg",{className:"workspace-chevron"+(H?" expanded":""),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:q.jsx("polyline",{points:"9 18 15 12 9 6"})}),q.jsx("span",{className:"workspace-name",children:z.split("/").pop()||z}),q.jsxs("span",{className:"workspace-path",children:["— ",z]})]}),H&&q.jsx("div",{className:"session-chips",children:x.map(({config:K,canConnect:lt})=>q.jsx(Z0,{config:K,canConnect:lt,visible:H,model:r},K.socketPath))})]},z)})})]})},Z0=({config:r,canConnect:o,visible:h,model:c})=>{const s="#session="+encodeURIComponent(r.socketPath),T=c.wsUrls.get(r.socketPath),b=dt.useMemo(()=>{if(!(!o||!h||!T))return pi.create(T)},[o,h,T]),[z,x]=dt.useState();dt.useEffect(()=>{if(!b)return;const H=K=>{x(K.tabs.find(lt=>lt.selected))};return b.tabs().then(H),b.on("tabs",H),()=>{b.off("tabs",H),b.close()}},[b]);const y=z?`[${r.name}] ${z.url} — ${z.title}`:r.name,G=o&&T!==null;return q.jsxs("a",{className:"session-chip"+(o?"":" disconnected")+(T===null?" not-supported":""),href:G?s:void 0,title:y,onClick:H=>{H.preventDefault(),G&&Md(s)},children:[q.jsxs("div",{className:"session-chip-header",children:[q.jsx("div",{className:"session-status-dot "+(o?"open":"closed")}),q.jsx("span",{className:"session-chip-name",children:z?q.jsxs(q.Fragment,{children:["[",r.name,"] ",z.url," ",q.jsxs("span",{className:"session-chip-title",children:["— ",z.title]})]}):r.name}),o&&q.jsx("button",{className:"session-chip-action",title:"Close session",onClick:H=>{H.preventDefault(),H.stopPropagation(),c.closeSession(r)},children:q.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[q.jsx("line",{x1:"2",y1:"2",x2:"10",y2:"10"}),q.jsx("line",{x1:"10",y1:"2",x2:"2",y2:"10"})]})}),!o&&q.jsx("button",{className:"session-chip-action",title:"Delete session data",onClick:H=>{H.preventDefault(),H.stopPropagation(),c.deleteSessionData(r)},children:q.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round",children:[q.jsx("path",{d:"M2 4h12"}),q.jsx("path",{d:"M5 4V3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1"}),q.jsx("path",{d:"M4 4l.8 9a1 1 0 0 0 1 .9h4.4a1 1 0 0 0 1-.9L12 4"})]})})]}),q.jsxs("div",{className:"screencast-container",children:[b&&q.jsx(Q0,{channel:b}),!o&&q.jsx("div",{className:"screencast-placeholder",children:"Session closed"}),o&&!b&&T===null&&q.jsxs("div",{className:"screencast-placeholder",children:["Not supported — v",r.version]}),o&&!b&&T===void 0&&q.jsx("div",{className:"screencast-placeholder",children:"Connecting"})]})]})};class V0{constructor(){Bt(this,"sessions",[]);Bt(this,"wsUrls",new Map);Bt(this,"clientInfo");Bt(this,"error");Bt(this,"loading",!0);Bt(this,"_knownTimestamps",new Map);Bt(this,"_pollActive",!1);Bt(this,"_pollTimeout");Bt(this,"_lastJson","");Bt(this,"_listeners",new Set)}subscribe(o){return this._listeners.add(o),()=>this._listeners.delete(o)}_notify(){for(const o of this._listeners)o()}startPolling(){if(this._pollActive)return;this._pollActive=!0;const o=async()=>{await this._fetchSessions(),this._pollActive&&(this._pollTimeout=setTimeout(o,3e3))};o()}stopPolling(){this._pollActive=!1,this._pollTimeout&&(clearTimeout(this._pollTimeout),this._pollTimeout=void 0)}sessionBySocketPath(o){return this.sessions.find(h=>h.config.socketPath===o)}async _fetchSessions(){try{this.loading=!0;const o=await fetch("/api/sessions/list");if(!o.ok)throw new Error(`HTTP ${o.status}`);const h=await o.text();if(h!==this._lastJson){this._lastJson=h;const c=JSON.parse(h);this.sessions=c.sessions,this.clientInfo=c.clientInfo,this._notify();for(const s of this.sessions)s.canConnect&&this._obtainDevtoolsUrl(s.config)}this.error=void 0}catch(o){this.error=o.message}finally{this.loading=!1}this._notify()}async fetchSessions(){await this._fetchSessions()}async closeSession(o){await fetch("/api/sessions/close",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({config:o})}),await this._fetchSessions()}async deleteSessionData(o){await fetch("/api/sessions/delete-data",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({config:o})}),await this._fetchSessions()}_obtainDevtoolsUrl(o){this._knownTimestamps.get(o.socketPath)!==o.timestamp&&(this._knownTimestamps.set(o.socketPath,o.timestamp),fetch("/api/sessions/devtools-start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({config:o})}).then(async h=>{if(h.ok){const{url:c}=await h.json();this.wsUrls.set(o.socketPath,c)}else this.wsUrls.set(o.socketPath,null);this._notify()}).catch(()=>{this._knownTimestamps.delete(o.socketPath)}))}dispose(){this.stopPolling(),this._listeners.clear()}}function Md(r){window.history.pushState(null,"",r),window.dispatchEvent(new PopStateEvent("popstate"))}function ud(){const r=window.location.hash,o="#session=";if(r.startsWith(o))return decodeURIComponent(r.slice(o.length))}const Ja=new V0,J0=()=>{const[,r]=dt.useState(0),[o,h]=dt.useState(ud);if(dt.useEffect(()=>{Ja.startPolling();const c=Ja.subscribe(()=>r(s=>s+1));return()=>{c(),Ja.stopPolling()}},[Ja]),dt.useEffect(()=>{const c=()=>h(ud());return window.addEventListener("popstate",c),()=>window.removeEventListener("popstate",c)},[]),o){const c=Ja.wsUrls.get(o);if(c)return q.jsx(G0,{wsUrl:c})}return q.jsx(X0,{model:Ja})};f0.createRoot(document.querySelector("#root")).render(q.jsx(J0,{}));
