claude-live 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,47 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();var Ia={exports:{}},Cl={},ja={exports:{}},H={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var wr=Symbol.for("react.element"),Jc=Symbol.for("react.portal"),qc=Symbol.for("react.fragment"),ef=Symbol.for("react.strict_mode"),tf=Symbol.for("react.profiler"),nf=Symbol.for("react.provider"),rf=Symbol.for("react.context"),lf=Symbol.for("react.forward_ref"),of=Symbol.for("react.suspense"),sf=Symbol.for("react.memo"),af=Symbol.for("react.lazy"),fs=Symbol.iterator;function uf(e){return e===null||typeof e!="object"?null:(e=fs&&e[fs]||e["@@iterator"],typeof e=="function"?e:null)}var za={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Oa=Object.assign,Fa={};function xn(e,t,n){this.props=e,this.context=t,this.refs=Fa,this.updater=n||za}xn.prototype.isReactComponent={};xn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};xn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Aa(){}Aa.prototype=xn.prototype;function gi(e,t,n){this.props=e,this.context=t,this.refs=Fa,this.updater=n||za}var yi=gi.prototype=new Aa;yi.constructor=gi;Oa(yi,xn.prototype);yi.isPureReactComponent=!0;var ds=Array.isArray,Da=Object.prototype.hasOwnProperty,vi={current:null},Ua={key:!0,ref:!0,__self:!0,__source:!0};function Wa(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)Da.call(t,r)&&!Ua.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];l.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)l[r]===void 0&&(l[r]=a[r]);return{$$typeof:wr,type:e,key:o,ref:i,props:l,_owner:vi.current}}function cf(e,t){return{$$typeof:wr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Si(e){return typeof e=="object"&&e!==null&&e.$$typeof===wr}function ff(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ps=/\/+/g;function Wl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ff(""+e.key):t.toString(36)}function Hr(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case wr:case Jc:i=!0}}if(i)return i=e,l=l(i),e=r===""?"."+Wl(i,0):r,ds(l)?(n="",e!=null&&(n=e.replace(ps,"$&/")+"/"),Hr(l,t,n,"",function(u){return u})):l!=null&&(Si(l)&&(l=cf(l,n+(!l.key||i&&i.key===l.key?"":(""+l.key).replace(ps,"$&/")+"/")+e)),t.push(l)),1;if(i=0,r=r===""?".":r+":",ds(e))for(var a=0;a<e.length;a++){o=e[a];var s=r+Wl(o,a);i+=Hr(o,t,n,s,l)}else if(s=uf(e),typeof s=="function")for(e=s.call(e),a=0;!(o=e.next()).done;)o=o.value,s=r+Wl(o,a++),i+=Hr(o,t,n,s,l);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Cr(e,t,n){if(e==null)return e;var r=[],l=0;return Hr(e,r,"","",function(o){return t.call(n,o,l++)}),r}function df(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pe={current:null},Vr={transition:null},pf={ReactCurrentDispatcher:Pe,ReactCurrentBatchConfig:Vr,ReactCurrentOwner:vi};function Ba(){throw Error("act(...) is not supported in production builds of React.")}H.Children={map:Cr,forEach:function(e,t,n){Cr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Cr(e,function(){t++}),t},toArray:function(e){return Cr(e,function(t){return t})||[]},only:function(e){if(!Si(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};H.Component=xn;H.Fragment=qc;H.Profiler=tf;H.PureComponent=gi;H.StrictMode=ef;H.Suspense=of;H.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pf;H.act=Ba;H.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Oa({},e.props),l=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=vi.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)Da.call(t,s)&&!Ua.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&a!==void 0?a[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){a=Array(s);for(var u=0;u<s;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:wr,type:e.type,key:l,ref:o,props:r,_owner:i}};H.createContext=function(e){return e={$$typeof:rf,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:nf,_context:e},e.Consumer=e};H.createElement=Wa;H.createFactory=function(e){var t=Wa.bind(null,e);return t.type=e,t};H.createRef=function(){return{current:null}};H.forwardRef=function(e){return{$$typeof:lf,render:e}};H.isValidElement=Si;H.lazy=function(e){return{$$typeof:af,_payload:{_status:-1,_result:e},_init:df}};H.memo=function(e,t){return{$$typeof:sf,type:e,compare:t===void 0?null:t}};H.startTransition=function(e){var t=Vr.transition;Vr.transition={};try{e()}finally{Vr.transition=t}};H.unstable_act=Ba;H.useCallback=function(e,t){return Pe.current.useCallback(e,t)};H.useContext=function(e){return Pe.current.useContext(e)};H.useDebugValue=function(){};H.useDeferredValue=function(e){return Pe.current.useDeferredValue(e)};H.useEffect=function(e,t){return Pe.current.useEffect(e,t)};H.useId=function(){return Pe.current.useId()};H.useImperativeHandle=function(e,t,n){return Pe.current.useImperativeHandle(e,t,n)};H.useInsertionEffect=function(e,t){return Pe.current.useInsertionEffect(e,t)};H.useLayoutEffect=function(e,t){return Pe.current.useLayoutEffect(e,t)};H.useMemo=function(e,t){return Pe.current.useMemo(e,t)};H.useReducer=function(e,t,n){return Pe.current.useReducer(e,t,n)};H.useRef=function(e){return Pe.current.useRef(e)};H.useState=function(e){return Pe.current.useState(e)};H.useSyncExternalStore=function(e,t,n){return Pe.current.useSyncExternalStore(e,t,n)};H.useTransition=function(){return Pe.current.useTransition()};H.version="18.3.1";ja.exports=H;var D=ja.exports;/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var hf=D,mf=Symbol.for("react.element"),gf=Symbol.for("react.fragment"),yf=Object.prototype.hasOwnProperty,vf=hf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Sf={key:!0,ref:!0,__self:!0,__source:!0};function Ha(e,t,n){var r,l={},o=null,i=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)yf.call(t,r)&&!Sf.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:mf,type:e,key:o,ref:i,props:l,_owner:vf.current}}Cl.Fragment=gf;Cl.jsx=Ha;Cl.jsxs=Ha;Ia.exports=Cl;var M=Ia.exports,Va={exports:{}},ze={},Ga={exports:{}},Xa={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */(function(e){function t(E,R){var x=E.length;E.push(R);e:for(;0<x;){var W=x-1>>>1,V=E[W];if(0<l(V,R))E[W]=R,E[x]=V,x=W;else break e}}function n(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var R=E[0],x=E.pop();if(x!==R){E[0]=x;e:for(var W=0,V=E.length,re=V>>>1;W<re;){var z=2*(W+1)-1,se=E[z],F=z+1,A=E[F];if(0>l(se,x))F<V&&0>l(A,se)?(E[W]=A,E[F]=x,W=F):(E[W]=se,E[z]=x,W=z);else if(F<V&&0>l(A,x))E[W]=A,E[F]=x,W=F;else break e}}return R}function l(E,R){var x=E.sortIndex-R.sortIndex;return x!==0?x:E.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var s=[],u=[],f=1,S=null,d=3,h=!1,y=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(E){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=E)r(u),R.sortIndex=R.expirationTime,t(s,R);else break;R=n(u)}}function v(E){if(w=!1,m(E),!y)if(n(s)!==null)y=!0,X(k);else{var R=n(u);R!==null&&U(v,R.startTime-E)}}function k(E,R){y=!1,w&&(w=!1,p(g),g=-1),h=!0;var x=d;try{for(m(R),S=n(s);S!==null&&(!(S.expirationTime>R)||E&&!I());){var W=S.callback;if(typeof W=="function"){S.callback=null,d=S.priorityLevel;var V=W(S.expirationTime<=R);R=e.unstable_now(),typeof V=="function"?S.callback=V:S===n(s)&&r(s),m(R)}else r(s);S=n(s)}if(S!==null)var re=!0;else{var z=n(u);z!==null&&U(v,z.startTime-R),re=!1}return re}finally{S=null,d=x,h=!1}}var P=!1,_=null,g=-1,T=5,$=-1;function I(){return!(e.unstable_now()-$<T)}function O(){if(_!==null){var E=e.unstable_now();$=E;var R=!0;try{R=_(!0,E)}finally{R?j():(P=!1,_=null)}}else P=!1}var j;if(typeof c=="function")j=function(){c(O)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,K=B.port2;B.port1.onmessage=O,j=function(){K.postMessage(null)}}else j=function(){C(O,0)};function X(E){_=E,P||(P=!0,j())}function U(E,R){g=C(function(){E(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(E){E.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,X(k))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(E){switch(d){case 1:case 2:case 3:var R=3;break;default:R=d}var x=d;d=R;try{return E()}finally{d=x}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,R){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var x=d;d=E;try{return R()}finally{d=x}},e.unstable_scheduleCallback=function(E,R,x){var W=e.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?W+x:W):x=W,E){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=x+V,E={id:f++,callback:R,priorityLevel:E,startTime:x,expirationTime:V,sortIndex:-1},x>W?(E.sortIndex=x,t(u,E),n(s)===null&&E===n(u)&&(w?(p(g),g=-1):w=!0,U(v,x-W))):(E.sortIndex=V,t(s,E),y||h||(y=!0,X(k))),E},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(E){var R=d;return function(){var x=d;d=R;try{return E.apply(this,arguments)}finally{d=x}}}})(Xa);Ga.exports=Xa;var wf=Ga.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var kf=D,je=wf;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ya=new Set,nr={};function en(e,t){Pn(e,t),Pn(e+"Capture",t)}function Pn(e,t){for(nr[e]=t,e=0;e<t.length;e++)Ya.add(t[e])}var ct=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vo=Object.prototype.hasOwnProperty,_f=/^[: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]*$/,hs={},ms={};function Pf(e){return vo.call(ms,e)?!0:vo.call(hs,e)?!1:_f.test(e)?ms[e]=!0:(hs[e]=!0,!1)}function Mf(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Cf(e,t,n,r){if(t===null||typeof t>"u"||Mf(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Me(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ge[e]=new Me(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ge[t]=new Me(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ge[e]=new Me(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ge[e]=new Me(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ge[e]=new Me(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ge[e]=new Me(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ge[e]=new Me(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ge[e]=new Me(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ge[e]=new Me(e,5,!1,e.toLowerCase(),null,!1,!1)});var wi=/[\-:]([a-z])/g;function ki(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wi,ki);ge[t]=new Me(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wi,ki);ge[t]=new Me(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wi,ki);ge[t]=new Me(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ge[e]=new Me(e,1,!1,e.toLowerCase(),null,!1,!1)});ge.xlinkHref=new Me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ge[e]=new Me(e,1,!1,e.toLowerCase(),null,!0,!0)});function _i(e,t,n,r){var l=ge.hasOwnProperty(t)?ge[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Cf(t,n,l,r)&&(n=null),r||l===null?Pf(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var ht=kf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$r=Symbol.for("react.element"),ln=Symbol.for("react.portal"),on=Symbol.for("react.fragment"),Pi=Symbol.for("react.strict_mode"),So=Symbol.for("react.profiler"),Qa=Symbol.for("react.provider"),Ka=Symbol.for("react.context"),Mi=Symbol.for("react.forward_ref"),wo=Symbol.for("react.suspense"),ko=Symbol.for("react.suspense_list"),Ci=Symbol.for("react.memo"),vt=Symbol.for("react.lazy"),ba=Symbol.for("react.offscreen"),gs=Symbol.iterator;function In(e){return e===null||typeof e!="object"?null:(e=gs&&e[gs]||e["@@iterator"],typeof e=="function"?e:null)}var te=Object.assign,Bl;function Wn(e){if(Bl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Bl=t&&t[1]||""}return`
34
+ `+Bl+e}var Hl=!1;function Vl(e,t){if(!e||Hl)return"";Hl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var l=u.stack.split(`
35
+ `),o=r.stack.split(`
36
+ `),i=l.length-1,a=o.length-1;1<=i&&0<=a&&l[i]!==o[a];)a--;for(;1<=i&&0<=a;i--,a--)if(l[i]!==o[a]){if(i!==1||a!==1)do if(i--,a--,0>a||l[i]!==o[a]){var s=`
37
+ `+l[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=a);break}}}finally{Hl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wn(e):""}function $f(e){switch(e.tag){case 5:return Wn(e.type);case 16:return Wn("Lazy");case 13:return Wn("Suspense");case 19:return Wn("SuspenseList");case 0:case 2:case 15:return e=Vl(e.type,!1),e;case 11:return e=Vl(e.type.render,!1),e;case 1:return e=Vl(e.type,!0),e;default:return""}}function _o(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case on:return"Fragment";case ln:return"Portal";case So:return"Profiler";case Pi:return"StrictMode";case wo:return"Suspense";case ko:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ka:return(e.displayName||"Context")+".Consumer";case Qa:return(e._context.displayName||"Context")+".Provider";case Mi:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ci:return t=e.displayName||null,t!==null?t:_o(e.type)||"Memo";case vt:t=e._payload,e=e._init;try{return _o(e(t))}catch{}}return null}function Ef(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return _o(t);case 8:return t===Pi?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function jt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Za(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tf(e){var t=Za(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Er(e){e._valueTracker||(e._valueTracker=Tf(e))}function Ja(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Za(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function tl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Po(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ys(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function qa(e,t){t=t.checked,t!=null&&_i(e,"checked",t,!1)}function Mo(e,t){qa(e,t);var n=jt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Co(e,t.type,n):t.hasOwnProperty("defaultValue")&&Co(e,t.type,jt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function vs(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Co(e,t,n){(t!=="number"||tl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Bn=Array.isArray;function yn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+jt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function $o(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return te({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ss(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(Bn(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:jt(n)}}function eu(e,t){var n=jt(t.value),r=jt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ws(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function tu(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Eo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?tu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Tr,nu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Tr=Tr||document.createElement("div"),Tr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Tr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Nf=["Webkit","ms","Moz","O"];Object.keys(Xn).forEach(function(e){Nf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xn[t]=Xn[e]})});function ru(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xn.hasOwnProperty(e)&&Xn[e]?(""+t).trim():t+"px"}function lu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ru(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var xf=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function To(e,t){if(t){if(xf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function No(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xo=null;function $i(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ro=null,vn=null,Sn=null;function ks(e){if(e=Pr(e)){if(typeof Ro!="function")throw Error(N(280));var t=e.stateNode;t&&(t=xl(t),Ro(e.stateNode,e.type,t))}}function ou(e){vn?Sn?Sn.push(e):Sn=[e]:vn=e}function iu(){if(vn){var e=vn,t=Sn;if(Sn=vn=null,ks(e),t)for(e=0;e<t.length;e++)ks(t[e])}}function su(e,t){return e(t)}function au(){}var Gl=!1;function uu(e,t,n){if(Gl)return e(t,n);Gl=!0;try{return su(e,t,n)}finally{Gl=!1,(vn!==null||Sn!==null)&&(au(),iu())}}function lr(e,t){var n=e.stateNode;if(n===null)return null;var r=xl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(N(231,t,typeof n));return n}var Lo=!1;if(ct)try{var jn={};Object.defineProperty(jn,"passive",{get:function(){Lo=!0}}),window.addEventListener("test",jn,jn),window.removeEventListener("test",jn,jn)}catch{Lo=!1}function Rf(e,t,n,r,l,o,i,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Yn=!1,nl=null,rl=!1,Io=null,Lf={onError:function(e){Yn=!0,nl=e}};function If(e,t,n,r,l,o,i,a,s){Yn=!1,nl=null,Rf.apply(Lf,arguments)}function jf(e,t,n,r,l,o,i,a,s){if(If.apply(this,arguments),Yn){if(Yn){var u=nl;Yn=!1,nl=null}else throw Error(N(198));rl||(rl=!0,Io=u)}}function tn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function cu(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _s(e){if(tn(e)!==e)throw Error(N(188))}function zf(e){var t=e.alternate;if(!t){if(t=tn(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return _s(l),e;if(o===r)return _s(l),t;o=o.sibling}throw Error(N(188))}if(n.return!==r.return)n=l,r=o;else{for(var i=!1,a=l.child;a;){if(a===n){i=!0,n=l,r=o;break}if(a===r){i=!0,r=l,n=o;break}a=a.sibling}if(!i){for(a=o.child;a;){if(a===n){i=!0,n=o,r=l;break}if(a===r){i=!0,r=o,n=l;break}a=a.sibling}if(!i)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function fu(e){return e=zf(e),e!==null?du(e):null}function du(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=du(e);if(t!==null)return t;e=e.sibling}return null}var pu=je.unstable_scheduleCallback,Ps=je.unstable_cancelCallback,Of=je.unstable_shouldYield,Ff=je.unstable_requestPaint,ie=je.unstable_now,Af=je.unstable_getCurrentPriorityLevel,Ei=je.unstable_ImmediatePriority,hu=je.unstable_UserBlockingPriority,ll=je.unstable_NormalPriority,Df=je.unstable_LowPriority,mu=je.unstable_IdlePriority,$l=null,rt=null;function Uf(e){if(rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot($l,e,void 0,(e.current.flags&128)===128)}catch{}}var Ke=Math.clz32?Math.clz32:Hf,Wf=Math.log,Bf=Math.LN2;function Hf(e){return e>>>=0,e===0?32:31-(Wf(e)/Bf|0)|0}var Nr=64,xr=4194304;function Hn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ol(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~l;a!==0?r=Hn(a):(o&=i,o!==0&&(r=Hn(o)))}else i=n&~l,i!==0?r=Hn(i):o!==0&&(r=Hn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ke(t),l=1<<n,r|=e[n],t&=~l;return r}function Vf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Gf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Ke(o),a=1<<i,s=l[i];s===-1?(!(a&n)||a&r)&&(l[i]=Vf(a,t)):s<=t&&(e.expiredLanes|=a),o&=~a}}function jo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function gu(){var e=Nr;return Nr<<=1,!(Nr&4194240)&&(Nr=64),e}function Xl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function kr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ke(t),e[t]=n}function Xf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Ke(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function Ti(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ke(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var Y=0;function yu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var vu,Ni,Su,wu,ku,zo=!1,Rr=[],$t=null,Et=null,Tt=null,or=new Map,ir=new Map,wt=[],Yf="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 submit".split(" ");function Ms(e,t){switch(e){case"focusin":case"focusout":$t=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":or.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ir.delete(t.pointerId)}}function zn(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=Pr(t),t!==null&&Ni(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Qf(e,t,n,r,l){switch(t){case"focusin":return $t=zn($t,e,t,n,r,l),!0;case"dragenter":return Et=zn(Et,e,t,n,r,l),!0;case"mouseover":return Tt=zn(Tt,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return or.set(o,zn(or.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,ir.set(o,zn(ir.get(o)||null,e,t,n,r,l)),!0}return!1}function _u(e){var t=Vt(e.target);if(t!==null){var n=tn(t);if(n!==null){if(t=n.tag,t===13){if(t=cu(n),t!==null){e.blockedOn=t,ku(e.priority,function(){Su(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Oo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);xo=r,n.target.dispatchEvent(r),xo=null}else return t=Pr(n),t!==null&&Ni(t),e.blockedOn=n,!1;t.shift()}return!0}function Cs(e,t,n){Gr(e)&&n.delete(t)}function Kf(){zo=!1,$t!==null&&Gr($t)&&($t=null),Et!==null&&Gr(Et)&&(Et=null),Tt!==null&&Gr(Tt)&&(Tt=null),or.forEach(Cs),ir.forEach(Cs)}function On(e,t){e.blockedOn===t&&(e.blockedOn=null,zo||(zo=!0,je.unstable_scheduleCallback(je.unstable_NormalPriority,Kf)))}function sr(e){function t(l){return On(l,e)}if(0<Rr.length){On(Rr[0],e);for(var n=1;n<Rr.length;n++){var r=Rr[n];r.blockedOn===e&&(r.blockedOn=null)}}for($t!==null&&On($t,e),Et!==null&&On(Et,e),Tt!==null&&On(Tt,e),or.forEach(t),ir.forEach(t),n=0;n<wt.length;n++)r=wt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<wt.length&&(n=wt[0],n.blockedOn===null);)_u(n),n.blockedOn===null&&wt.shift()}var wn=ht.ReactCurrentBatchConfig,il=!0;function bf(e,t,n,r){var l=Y,o=wn.transition;wn.transition=null;try{Y=1,xi(e,t,n,r)}finally{Y=l,wn.transition=o}}function Zf(e,t,n,r){var l=Y,o=wn.transition;wn.transition=null;try{Y=4,xi(e,t,n,r)}finally{Y=l,wn.transition=o}}function xi(e,t,n,r){if(il){var l=Oo(e,t,n,r);if(l===null)no(e,t,r,sl,n),Ms(e,r);else if(Qf(l,e,t,n,r))r.stopPropagation();else if(Ms(e,r),t&4&&-1<Yf.indexOf(e)){for(;l!==null;){var o=Pr(l);if(o!==null&&vu(o),o=Oo(e,t,n,r),o===null&&no(e,t,r,sl,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else no(e,t,r,null,n)}}var sl=null;function Oo(e,t,n,r){if(sl=null,e=$i(r),e=Vt(e),e!==null)if(t=tn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=cu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return sl=e,null}function Pu(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Af()){case Ei:return 1;case hu:return 4;case ll:case Df:return 16;case mu:return 536870912;default:return 16}default:return 16}}var _t=null,Ri=null,Xr=null;function Mu(){if(Xr)return Xr;var e,t=Ri,n=t.length,r,l="value"in _t?_t.value:_t.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===l[o-r];r++);return Xr=l.slice(e,1<r?1-r:void 0)}function Yr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Lr(){return!0}function $s(){return!1}function Oe(e){function t(n,r,l,o,i){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Lr:$s,this.isPropagationStopped=$s,this}return te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Lr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Lr)},persist:function(){},isPersistent:Lr}),t}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Li=Oe(Rn),_r=te({},Rn,{view:0,detail:0}),Jf=Oe(_r),Yl,Ql,Fn,El=te({},_r,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ii,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Fn&&(Fn&&e.type==="mousemove"?(Yl=e.screenX-Fn.screenX,Ql=e.screenY-Fn.screenY):Ql=Yl=0,Fn=e),Yl)},movementY:function(e){return"movementY"in e?e.movementY:Ql}}),Es=Oe(El),qf=te({},El,{dataTransfer:0}),ed=Oe(qf),td=te({},_r,{relatedTarget:0}),Kl=Oe(td),nd=te({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),rd=Oe(nd),ld=te({},Rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),od=Oe(ld),id=te({},Rn,{data:0}),Ts=Oe(id),sd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ad={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"},ud={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ud[e])?!!t[e]:!1}function Ii(){return cd}var fd=te({},_r,{key:function(e){if(e.key){var t=sd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Yr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ad[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ii,charCode:function(e){return e.type==="keypress"?Yr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Yr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dd=Oe(fd),pd=te({},El,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ns=Oe(pd),hd=te({},_r,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ii}),md=Oe(hd),gd=te({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),yd=Oe(gd),vd=te({},El,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Sd=Oe(vd),wd=[9,13,27,32],ji=ct&&"CompositionEvent"in window,Qn=null;ct&&"documentMode"in document&&(Qn=document.documentMode);var kd=ct&&"TextEvent"in window&&!Qn,Cu=ct&&(!ji||Qn&&8<Qn&&11>=Qn),xs=" ",Rs=!1;function $u(e,t){switch(e){case"keyup":return wd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sn=!1;function _d(e,t){switch(e){case"compositionend":return Eu(t);case"keypress":return t.which!==32?null:(Rs=!0,xs);case"textInput":return e=t.data,e===xs&&Rs?null:e;default:return null}}function Pd(e,t){if(sn)return e==="compositionend"||!ji&&$u(e,t)?(e=Mu(),Xr=Ri=_t=null,sn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cu&&t.locale!=="ko"?null:t.data;default:return null}}var Md={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 Ls(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Md[e.type]:t==="textarea"}function Tu(e,t,n,r){ou(r),t=al(t,"onChange"),0<t.length&&(n=new Li("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,ar=null;function Cd(e){Du(e,0)}function Tl(e){var t=cn(e);if(Ja(t))return e}function $d(e,t){if(e==="change")return t}var Nu=!1;if(ct){var bl;if(ct){var Zl="oninput"in document;if(!Zl){var Is=document.createElement("div");Is.setAttribute("oninput","return;"),Zl=typeof Is.oninput=="function"}bl=Zl}else bl=!1;Nu=bl&&(!document.documentMode||9<document.documentMode)}function js(){Kn&&(Kn.detachEvent("onpropertychange",xu),ar=Kn=null)}function xu(e){if(e.propertyName==="value"&&Tl(ar)){var t=[];Tu(t,ar,e,$i(e)),uu(Cd,t)}}function Ed(e,t,n){e==="focusin"?(js(),Kn=t,ar=n,Kn.attachEvent("onpropertychange",xu)):e==="focusout"&&js()}function Td(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Tl(ar)}function Nd(e,t){if(e==="click")return Tl(t)}function xd(e,t){if(e==="input"||e==="change")return Tl(t)}function Rd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ze=typeof Object.is=="function"?Object.is:Rd;function ur(e,t){if(Ze(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!vo.call(t,l)||!Ze(e[l],t[l]))return!1}return!0}function zs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Os(e,t){var n=zs(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zs(n)}}function Ru(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ru(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lu(){for(var e=window,t=tl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=tl(e.document)}return t}function zi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ld(e){var t=Lu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ru(n.ownerDocument.documentElement,n)){if(r!==null&&zi(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Os(n,o);var i=Os(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Id=ct&&"documentMode"in document&&11>=document.documentMode,an=null,Fo=null,bn=null,Ao=!1;function Fs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ao||an==null||an!==tl(r)||(r=an,"selectionStart"in r&&zi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),bn&&ur(bn,r)||(bn=r,r=al(Fo,"onSelect"),0<r.length&&(t=new Li("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=an)))}function Ir(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var un={animationend:Ir("Animation","AnimationEnd"),animationiteration:Ir("Animation","AnimationIteration"),animationstart:Ir("Animation","AnimationStart"),transitionend:Ir("Transition","TransitionEnd")},Jl={},Iu={};ct&&(Iu=document.createElement("div").style,"AnimationEvent"in window||(delete un.animationend.animation,delete un.animationiteration.animation,delete un.animationstart.animation),"TransitionEvent"in window||delete un.transitionend.transition);function Nl(e){if(Jl[e])return Jl[e];if(!un[e])return e;var t=un[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Iu)return Jl[e]=t[n];return e}var ju=Nl("animationend"),zu=Nl("animationiteration"),Ou=Nl("animationstart"),Fu=Nl("transitionend"),Au=new Map,As="abort auxClick 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(" ");function Ot(e,t){Au.set(e,t),en(t,[e])}for(var ql=0;ql<As.length;ql++){var eo=As[ql],jd=eo.toLowerCase(),zd=eo[0].toUpperCase()+eo.slice(1);Ot(jd,"on"+zd)}Ot(ju,"onAnimationEnd");Ot(zu,"onAnimationIteration");Ot(Ou,"onAnimationStart");Ot("dblclick","onDoubleClick");Ot("focusin","onFocus");Ot("focusout","onBlur");Ot(Fu,"onTransitionEnd");Pn("onMouseEnter",["mouseout","mouseover"]);Pn("onMouseLeave",["mouseout","mouseover"]);Pn("onPointerEnter",["pointerout","pointerover"]);Pn("onPointerLeave",["pointerout","pointerover"]);en("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));en("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));en("onBeforeInput",["compositionend","keypress","textInput","paste"]);en("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));en("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));en("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vn="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(" "),Od=new Set("cancel close invalid load scroll toggle".split(" ").concat(Vn));function Ds(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,jf(r,t,void 0,e),e.currentTarget=null}function Du(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==o&&l.isPropagationStopped())break e;Ds(l,a,u),o=s}else for(i=0;i<r.length;i++){if(a=r[i],s=a.instance,u=a.currentTarget,a=a.listener,s!==o&&l.isPropagationStopped())break e;Ds(l,a,u),o=s}}}if(rl)throw e=Io,rl=!1,Io=null,e}function b(e,t){var n=t[Ho];n===void 0&&(n=t[Ho]=new Set);var r=e+"__bubble";n.has(r)||(Uu(t,e,2,!1),n.add(r))}function to(e,t,n){var r=0;t&&(r|=4),Uu(n,e,r,t)}var jr="_reactListening"+Math.random().toString(36).slice(2);function cr(e){if(!e[jr]){e[jr]=!0,Ya.forEach(function(n){n!=="selectionchange"&&(Od.has(n)||to(n,!1,e),to(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jr]||(t[jr]=!0,to("selectionchange",!1,t))}}function Uu(e,t,n,r){switch(Pu(t)){case 1:var l=bf;break;case 4:l=Zf;break;default:l=xi}n=l.bind(null,t,n,e),l=void 0,!Lo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function no(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&(s=i.stateNode.containerInfo,s===l||s.nodeType===8&&s.parentNode===l))return;i=i.return}for(;a!==null;){if(i=Vt(a),i===null)return;if(s=i.tag,s===5||s===6){r=o=i;continue e}a=a.parentNode}}r=r.return}uu(function(){var u=o,f=$i(n),S=[];e:{var d=Au.get(e);if(d!==void 0){var h=Li,y=e;switch(e){case"keypress":if(Yr(n)===0)break e;case"keydown":case"keyup":h=dd;break;case"focusin":y="focus",h=Kl;break;case"focusout":y="blur",h=Kl;break;case"beforeblur":case"afterblur":h=Kl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Es;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=ed;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=md;break;case ju:case zu:case Ou:h=rd;break;case Fu:h=yd;break;case"scroll":h=Jf;break;case"wheel":h=Sd;break;case"copy":case"cut":case"paste":h=od;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Ns}var w=(t&4)!==0,C=!w&&e==="scroll",p=w?d!==null?d+"Capture":null:d;w=[];for(var c=u,m;c!==null;){m=c;var v=m.stateNode;if(m.tag===5&&v!==null&&(m=v,p!==null&&(v=lr(c,p),v!=null&&w.push(fr(c,v,m)))),C)break;c=c.return}0<w.length&&(d=new h(d,y,null,n,f),S.push({event:d,listeners:w}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==xo&&(y=n.relatedTarget||n.fromElement)&&(Vt(y)||y[ft]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(y=n.relatedTarget||n.toElement,h=u,y=y?Vt(y):null,y!==null&&(C=tn(y),y!==C||y.tag!==5&&y.tag!==6)&&(y=null)):(h=null,y=u),h!==y)){if(w=Es,v="onMouseLeave",p="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(w=Ns,v="onPointerLeave",p="onPointerEnter",c="pointer"),C=h==null?d:cn(h),m=y==null?d:cn(y),d=new w(v,c+"leave",h,n,f),d.target=C,d.relatedTarget=m,v=null,Vt(f)===u&&(w=new w(p,c+"enter",y,n,f),w.target=m,w.relatedTarget=C,v=w),C=v,h&&y)t:{for(w=h,p=y,c=0,m=w;m;m=rn(m))c++;for(m=0,v=p;v;v=rn(v))m++;for(;0<c-m;)w=rn(w),c--;for(;0<m-c;)p=rn(p),m--;for(;c--;){if(w===p||p!==null&&w===p.alternate)break t;w=rn(w),p=rn(p)}w=null}else w=null;h!==null&&Us(S,d,h,w,!1),y!==null&&C!==null&&Us(S,C,y,w,!0)}}e:{if(d=u?cn(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var k=$d;else if(Ls(d))if(Nu)k=xd;else{k=Td;var P=Ed}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(k=Nd);if(k&&(k=k(e,u))){Tu(S,k,n,f);break e}P&&P(e,d,u),e==="focusout"&&(P=d._wrapperState)&&P.controlled&&d.type==="number"&&Co(d,"number",d.value)}switch(P=u?cn(u):window,e){case"focusin":(Ls(P)||P.contentEditable==="true")&&(an=P,Fo=u,bn=null);break;case"focusout":bn=Fo=an=null;break;case"mousedown":Ao=!0;break;case"contextmenu":case"mouseup":case"dragend":Ao=!1,Fs(S,n,f);break;case"selectionchange":if(Id)break;case"keydown":case"keyup":Fs(S,n,f)}var _;if(ji)e:{switch(e){case"compositionstart":var g="onCompositionStart";break e;case"compositionend":g="onCompositionEnd";break e;case"compositionupdate":g="onCompositionUpdate";break e}g=void 0}else sn?$u(e,n)&&(g="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(g="onCompositionStart");g&&(Cu&&n.locale!=="ko"&&(sn||g!=="onCompositionStart"?g==="onCompositionEnd"&&sn&&(_=Mu()):(_t=f,Ri="value"in _t?_t.value:_t.textContent,sn=!0)),P=al(u,g),0<P.length&&(g=new Ts(g,e,null,n,f),S.push({event:g,listeners:P}),_?g.data=_:(_=Eu(n),_!==null&&(g.data=_)))),(_=kd?_d(e,n):Pd(e,n))&&(u=al(u,"onBeforeInput"),0<u.length&&(f=new Ts("onBeforeInput","beforeinput",null,n,f),S.push({event:f,listeners:u}),f.data=_))}Du(S,t)})}function fr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function al(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=lr(e,n),o!=null&&r.unshift(fr(e,o,l)),o=lr(e,t),o!=null&&r.push(fr(e,o,l))),e=e.return}return r}function rn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Us(e,t,n,r,l){for(var o=t._reactName,i=[];n!==null&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(s!==null&&s===r)break;a.tag===5&&u!==null&&(a=u,l?(s=lr(n,o),s!=null&&i.unshift(fr(n,s,a))):l||(s=lr(n,o),s!=null&&i.push(fr(n,s,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Fd=/\r\n?/g,Ad=/\u0000|\uFFFD/g;function Ws(e){return(typeof e=="string"?e:""+e).replace(Fd,`
38
+ `).replace(Ad,"")}function zr(e,t,n){if(t=Ws(t),Ws(e)!==t&&n)throw Error(N(425))}function ul(){}var Do=null,Uo=null;function Wo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bo=typeof setTimeout=="function"?setTimeout:void 0,Dd=typeof clearTimeout=="function"?clearTimeout:void 0,Bs=typeof Promise=="function"?Promise:void 0,Ud=typeof queueMicrotask=="function"?queueMicrotask:typeof Bs<"u"?function(e){return Bs.resolve(null).then(e).catch(Wd)}:Bo;function Wd(e){setTimeout(function(){throw e})}function ro(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),sr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);sr(t)}function Nt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Hs(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ln=Math.random().toString(36).slice(2),nt="__reactFiber$"+Ln,dr="__reactProps$"+Ln,ft="__reactContainer$"+Ln,Ho="__reactEvents$"+Ln,Bd="__reactListeners$"+Ln,Hd="__reactHandles$"+Ln;function Vt(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ft]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Hs(e);e!==null;){if(n=e[nt])return n;e=Hs(e)}return t}e=n,n=e.parentNode}return null}function Pr(e){return e=e[nt]||e[ft],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function cn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function xl(e){return e[dr]||null}var Vo=[],fn=-1;function Ft(e){return{current:e}}function Z(e){0>fn||(e.current=Vo[fn],Vo[fn]=null,fn--)}function Q(e,t){fn++,Vo[fn]=e.current,e.current=t}var zt={},we=Ft(zt),Ee=Ft(!1),Kt=zt;function Mn(e,t){var n=e.type.contextTypes;if(!n)return zt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Te(e){return e=e.childContextTypes,e!=null}function cl(){Z(Ee),Z(we)}function Vs(e,t,n){if(we.current!==zt)throw Error(N(168));Q(we,t),Q(Ee,n)}function Wu(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(N(108,Ef(e)||"Unknown",l));return te({},n,r)}function fl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zt,Kt=we.current,Q(we,e),Q(Ee,Ee.current),!0}function Gs(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=Wu(e,t,Kt),r.__reactInternalMemoizedMergedChildContext=e,Z(Ee),Z(we),Q(we,e)):Z(Ee),Q(Ee,n)}var it=null,Rl=!1,lo=!1;function Bu(e){it===null?it=[e]:it.push(e)}function Vd(e){Rl=!0,Bu(e)}function At(){if(!lo&&it!==null){lo=!0;var e=0,t=Y;try{var n=it;for(Y=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}it=null,Rl=!1}catch(l){throw it!==null&&(it=it.slice(e+1)),pu(Ei,At),l}finally{Y=t,lo=!1}}return null}var dn=[],pn=0,dl=null,pl=0,Ae=[],De=0,bt=null,st=1,at="";function Wt(e,t){dn[pn++]=pl,dn[pn++]=dl,dl=e,pl=t}function Hu(e,t,n){Ae[De++]=st,Ae[De++]=at,Ae[De++]=bt,bt=e;var r=st;e=at;var l=32-Ke(r)-1;r&=~(1<<l),n+=1;var o=32-Ke(t)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,st=1<<32-Ke(t)+l|n<<l|r,at=o+e}else st=1<<o|n<<l|r,at=e}function Oi(e){e.return!==null&&(Wt(e,1),Hu(e,1,0))}function Fi(e){for(;e===dl;)dl=dn[--pn],dn[pn]=null,pl=dn[--pn],dn[pn]=null;for(;e===bt;)bt=Ae[--De],Ae[De]=null,at=Ae[--De],Ae[De]=null,st=Ae[--De],Ae[De]=null}var Ie=null,Le=null,J=!1,Qe=null;function Vu(e,t){var n=Ue(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Xs(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ie=e,Le=Nt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ie=e,Le=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=bt!==null?{id:st,overflow:at}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ue(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ie=e,Le=null,!0):!1;default:return!1}}function Go(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Xo(e){if(J){var t=Le;if(t){var n=t;if(!Xs(e,t)){if(Go(e))throw Error(N(418));t=Nt(n.nextSibling);var r=Ie;t&&Xs(e,t)?Vu(r,n):(e.flags=e.flags&-4097|2,J=!1,Ie=e)}}else{if(Go(e))throw Error(N(418));e.flags=e.flags&-4097|2,J=!1,Ie=e}}}function Ys(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ie=e}function Or(e){if(e!==Ie)return!1;if(!J)return Ys(e),J=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Wo(e.type,e.memoizedProps)),t&&(t=Le)){if(Go(e))throw Gu(),Error(N(418));for(;t;)Vu(e,t),t=Nt(t.nextSibling)}if(Ys(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Le=Nt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Le=null}}else Le=Ie?Nt(e.stateNode.nextSibling):null;return!0}function Gu(){for(var e=Le;e;)e=Nt(e.nextSibling)}function Cn(){Le=Ie=null,J=!1}function Ai(e){Qe===null?Qe=[e]:Qe.push(e)}var Gd=ht.ReactCurrentBatchConfig;function An(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var a=l.refs;i===null?delete a[o]:a[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function Fr(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qs(e){var t=e._init;return t(e._payload)}function Xu(e){function t(p,c){if(e){var m=p.deletions;m===null?(p.deletions=[c],p.flags|=16):m.push(c)}}function n(p,c){if(!e)return null;for(;c!==null;)t(p,c),c=c.sibling;return null}function r(p,c){for(p=new Map;c!==null;)c.key!==null?p.set(c.key,c):p.set(c.index,c),c=c.sibling;return p}function l(p,c){return p=It(p,c),p.index=0,p.sibling=null,p}function o(p,c,m){return p.index=m,e?(m=p.alternate,m!==null?(m=m.index,m<c?(p.flags|=2,c):m):(p.flags|=2,c)):(p.flags|=1048576,c)}function i(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,c,m,v){return c===null||c.tag!==6?(c=fo(m,p.mode,v),c.return=p,c):(c=l(c,m),c.return=p,c)}function s(p,c,m,v){var k=m.type;return k===on?f(p,c,m.props.children,v,m.key):c!==null&&(c.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===vt&&Qs(k)===c.type)?(v=l(c,m.props),v.ref=An(p,c,m),v.return=p,v):(v=el(m.type,m.key,m.props,null,p.mode,v),v.ref=An(p,c,m),v.return=p,v)}function u(p,c,m,v){return c===null||c.tag!==4||c.stateNode.containerInfo!==m.containerInfo||c.stateNode.implementation!==m.implementation?(c=po(m,p.mode,v),c.return=p,c):(c=l(c,m.children||[]),c.return=p,c)}function f(p,c,m,v,k){return c===null||c.tag!==7?(c=Qt(m,p.mode,v,k),c.return=p,c):(c=l(c,m),c.return=p,c)}function S(p,c,m){if(typeof c=="string"&&c!==""||typeof c=="number")return c=fo(""+c,p.mode,m),c.return=p,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case $r:return m=el(c.type,c.key,c.props,null,p.mode,m),m.ref=An(p,null,c),m.return=p,m;case ln:return c=po(c,p.mode,m),c.return=p,c;case vt:var v=c._init;return S(p,v(c._payload),m)}if(Bn(c)||In(c))return c=Qt(c,p.mode,m,null),c.return=p,c;Fr(p,c)}return null}function d(p,c,m,v){var k=c!==null?c.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return k!==null?null:a(p,c,""+m,v);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case $r:return m.key===k?s(p,c,m,v):null;case ln:return m.key===k?u(p,c,m,v):null;case vt:return k=m._init,d(p,c,k(m._payload),v)}if(Bn(m)||In(m))return k!==null?null:f(p,c,m,v,null);Fr(p,m)}return null}function h(p,c,m,v,k){if(typeof v=="string"&&v!==""||typeof v=="number")return p=p.get(m)||null,a(c,p,""+v,k);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case $r:return p=p.get(v.key===null?m:v.key)||null,s(c,p,v,k);case ln:return p=p.get(v.key===null?m:v.key)||null,u(c,p,v,k);case vt:var P=v._init;return h(p,c,m,P(v._payload),k)}if(Bn(v)||In(v))return p=p.get(m)||null,f(c,p,v,k,null);Fr(c,v)}return null}function y(p,c,m,v){for(var k=null,P=null,_=c,g=c=0,T=null;_!==null&&g<m.length;g++){_.index>g?(T=_,_=null):T=_.sibling;var $=d(p,_,m[g],v);if($===null){_===null&&(_=T);break}e&&_&&$.alternate===null&&t(p,_),c=o($,c,g),P===null?k=$:P.sibling=$,P=$,_=T}if(g===m.length)return n(p,_),J&&Wt(p,g),k;if(_===null){for(;g<m.length;g++)_=S(p,m[g],v),_!==null&&(c=o(_,c,g),P===null?k=_:P.sibling=_,P=_);return J&&Wt(p,g),k}for(_=r(p,_);g<m.length;g++)T=h(_,p,g,m[g],v),T!==null&&(e&&T.alternate!==null&&_.delete(T.key===null?g:T.key),c=o(T,c,g),P===null?k=T:P.sibling=T,P=T);return e&&_.forEach(function(I){return t(p,I)}),J&&Wt(p,g),k}function w(p,c,m,v){var k=In(m);if(typeof k!="function")throw Error(N(150));if(m=k.call(m),m==null)throw Error(N(151));for(var P=k=null,_=c,g=c=0,T=null,$=m.next();_!==null&&!$.done;g++,$=m.next()){_.index>g?(T=_,_=null):T=_.sibling;var I=d(p,_,$.value,v);if(I===null){_===null&&(_=T);break}e&&_&&I.alternate===null&&t(p,_),c=o(I,c,g),P===null?k=I:P.sibling=I,P=I,_=T}if($.done)return n(p,_),J&&Wt(p,g),k;if(_===null){for(;!$.done;g++,$=m.next())$=S(p,$.value,v),$!==null&&(c=o($,c,g),P===null?k=$:P.sibling=$,P=$);return J&&Wt(p,g),k}for(_=r(p,_);!$.done;g++,$=m.next())$=h(_,p,g,$.value,v),$!==null&&(e&&$.alternate!==null&&_.delete($.key===null?g:$.key),c=o($,c,g),P===null?k=$:P.sibling=$,P=$);return e&&_.forEach(function(O){return t(p,O)}),J&&Wt(p,g),k}function C(p,c,m,v){if(typeof m=="object"&&m!==null&&m.type===on&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case $r:e:{for(var k=m.key,P=c;P!==null;){if(P.key===k){if(k=m.type,k===on){if(P.tag===7){n(p,P.sibling),c=l(P,m.props.children),c.return=p,p=c;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===vt&&Qs(k)===P.type){n(p,P.sibling),c=l(P,m.props),c.ref=An(p,P,m),c.return=p,p=c;break e}n(p,P);break}else t(p,P);P=P.sibling}m.type===on?(c=Qt(m.props.children,p.mode,v,m.key),c.return=p,p=c):(v=el(m.type,m.key,m.props,null,p.mode,v),v.ref=An(p,c,m),v.return=p,p=v)}return i(p);case ln:e:{for(P=m.key;c!==null;){if(c.key===P)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(p,c.sibling),c=l(c,m.children||[]),c.return=p,p=c;break e}else{n(p,c);break}else t(p,c);c=c.sibling}c=po(m,p.mode,v),c.return=p,p=c}return i(p);case vt:return P=m._init,C(p,c,P(m._payload),v)}if(Bn(m))return y(p,c,m,v);if(In(m))return w(p,c,m,v);Fr(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(p,c.sibling),c=l(c,m),c.return=p,p=c):(n(p,c),c=fo(m,p.mode,v),c.return=p,p=c),i(p)):n(p,c)}return C}var $n=Xu(!0),Yu=Xu(!1),hl=Ft(null),ml=null,hn=null,Di=null;function Ui(){Di=hn=ml=null}function Wi(e){var t=hl.current;Z(hl),e._currentValue=t}function Yo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function kn(e,t){ml=e,Di=hn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function Be(e){var t=e._currentValue;if(Di!==e)if(e={context:e,memoizedValue:t,next:null},hn===null){if(ml===null)throw Error(N(308));hn=e,ml.dependencies={lanes:0,firstContext:e}}else hn=hn.next=e;return t}var Gt=null;function Bi(e){Gt===null?Gt=[e]:Gt.push(e)}function Qu(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Bi(t)):(n.next=l.next,l.next=n),t.interleaved=n,dt(e,r)}function dt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var St=!1;function Hi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ku(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,dt(e,n)}return l=r.interleaved,l===null?(t.next=t,Bi(r)):(t.next=l.next,l.next=t),r.interleaved=t,dt(e,n)}function Qr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ti(e,n)}}function Ks(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function gl(e,t,n,r){var l=e.updateQueue;St=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var s=a,u=s.next;s.next=null,i===null?o=u:i.next=u,i=s;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==i&&(a===null?f.firstBaseUpdate=u:a.next=u,f.lastBaseUpdate=s))}if(o!==null){var S=l.baseState;i=0,f=u=s=null,a=o;do{var d=a.lane,h=a.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,w=a;switch(d=t,h=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){S=y.call(h,S,d);break e}S=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,d=typeof y=="function"?y.call(h,S,d):y,d==null)break e;S=te({},S,d);break e;case 2:St=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=l.effects,d===null?l.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=h,s=S):f=f.next=h,i|=d;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;d=a,a=d.next,d.next=null,l.lastBaseUpdate=d,l.shared.pending=null}}while(!0);if(f===null&&(s=S),l.baseState=s,l.firstBaseUpdate=u,l.lastBaseUpdate=f,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Jt|=i,e.lanes=i,e.memoizedState=S}}function bs(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(N(191,l));l.call(r)}}}var Mr={},lt=Ft(Mr),pr=Ft(Mr),hr=Ft(Mr);function Xt(e){if(e===Mr)throw Error(N(174));return e}function Vi(e,t){switch(Q(hr,t),Q(pr,e),Q(lt,Mr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Eo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Eo(t,e)}Z(lt),Q(lt,t)}function En(){Z(lt),Z(pr),Z(hr)}function bu(e){Xt(hr.current);var t=Xt(lt.current),n=Eo(t,e.type);t!==n&&(Q(pr,e),Q(lt,n))}function Gi(e){pr.current===e&&(Z(lt),Z(pr))}var q=Ft(0);function yl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oo=[];function Xi(){for(var e=0;e<oo.length;e++)oo[e]._workInProgressVersionPrimary=null;oo.length=0}var Kr=ht.ReactCurrentDispatcher,io=ht.ReactCurrentBatchConfig,Zt=0,ee=null,ue=null,fe=null,vl=!1,Zn=!1,mr=0,Xd=0;function ye(){throw Error(N(321))}function Yi(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ze(e[n],t[n]))return!1;return!0}function Qi(e,t,n,r,l,o){if(Zt=o,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Kr.current=e===null||e.memoizedState===null?bd:Zd,e=n(r,l),Zn){o=0;do{if(Zn=!1,mr=0,25<=o)throw Error(N(301));o+=1,fe=ue=null,t.updateQueue=null,Kr.current=Jd,e=n(r,l)}while(Zn)}if(Kr.current=Sl,t=ue!==null&&ue.next!==null,Zt=0,fe=ue=ee=null,vl=!1,t)throw Error(N(300));return e}function Ki(){var e=mr!==0;return mr=0,e}function tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fe===null?ee.memoizedState=fe=e:fe=fe.next=e,fe}function He(){if(ue===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=ue.next;var t=fe===null?ee.memoizedState:fe.next;if(t!==null)fe=t,ue=e;else{if(e===null)throw Error(N(310));ue=e,e={memoizedState:ue.memoizedState,baseState:ue.baseState,baseQueue:ue.baseQueue,queue:ue.queue,next:null},fe===null?ee.memoizedState=fe=e:fe=fe.next=e}return fe}function gr(e,t){return typeof t=="function"?t(e):t}function so(e){var t=He(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=ue,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var i=l.next;l.next=o.next,o.next=i}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var a=i=null,s=null,u=o;do{var f=u.lane;if((Zt&f)===f)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var S={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(a=s=S,i=r):s=s.next=S,ee.lanes|=f,Jt|=f}u=u.next}while(u!==null&&u!==o);s===null?i=r:s.next=a,Ze(r,t.memoizedState)||($e=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,ee.lanes|=o,Jt|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ao(e){var t=He(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var i=l=l.next;do o=e(o,i.action),i=i.next;while(i!==l);Ze(o,t.memoizedState)||($e=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Zu(){}function Ju(e,t){var n=ee,r=He(),l=t(),o=!Ze(r.memoizedState,l);if(o&&(r.memoizedState=l,$e=!0),r=r.queue,bi(tc.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||fe!==null&&fe.memoizedState.tag&1){if(n.flags|=2048,yr(9,ec.bind(null,n,r,l,t),void 0,null),de===null)throw Error(N(349));Zt&30||qu(n,t,l)}return l}function qu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ee.updateQueue,t===null?(t={lastEffect:null,stores:null},ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ec(e,t,n,r){t.value=n,t.getSnapshot=r,nc(t)&&rc(e)}function tc(e,t,n){return n(function(){nc(t)&&rc(e)})}function nc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ze(e,n)}catch{return!0}}function rc(e){var t=dt(e,1);t!==null&&be(t,e,1,-1)}function Zs(e){var t=tt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gr,lastRenderedState:e},t.queue=e,e=e.dispatch=Kd.bind(null,ee,e),[t.memoizedState,e]}function yr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ee.updateQueue,t===null?(t={lastEffect:null,stores:null},ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function lc(){return He().memoizedState}function br(e,t,n,r){var l=tt();ee.flags|=e,l.memoizedState=yr(1|t,n,void 0,r===void 0?null:r)}function Ll(e,t,n,r){var l=He();r=r===void 0?null:r;var o=void 0;if(ue!==null){var i=ue.memoizedState;if(o=i.destroy,r!==null&&Yi(r,i.deps)){l.memoizedState=yr(t,n,o,r);return}}ee.flags|=e,l.memoizedState=yr(1|t,n,o,r)}function Js(e,t){return br(8390656,8,e,t)}function bi(e,t){return Ll(2048,8,e,t)}function oc(e,t){return Ll(4,2,e,t)}function ic(e,t){return Ll(4,4,e,t)}function sc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ac(e,t,n){return n=n!=null?n.concat([e]):null,Ll(4,4,sc.bind(null,t,e),n)}function Zi(){}function uc(e,t){var n=He();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function cc(e,t){var n=He();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Yi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fc(e,t,n){return Zt&21?(Ze(n,t)||(n=gu(),ee.lanes|=n,Jt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,$e=!0),e.memoizedState=n)}function Yd(e,t){var n=Y;Y=n!==0&&4>n?n:4,e(!0);var r=io.transition;io.transition={};try{e(!1),t()}finally{Y=n,io.transition=r}}function dc(){return He().memoizedState}function Qd(e,t,n){var r=Lt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},pc(e))hc(t,n);else if(n=Qu(e,t,n,r),n!==null){var l=_e();be(n,e,r,l),mc(n,t,r)}}function Kd(e,t,n){var r=Lt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(pc(e))hc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,a=o(i,n);if(l.hasEagerState=!0,l.eagerState=a,Ze(a,i)){var s=t.interleaved;s===null?(l.next=l,Bi(t)):(l.next=s.next,s.next=l),t.interleaved=l;return}}catch{}finally{}n=Qu(e,t,l,r),n!==null&&(l=_e(),be(n,e,r,l),mc(n,t,r))}}function pc(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function hc(e,t){Zn=vl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ti(e,n)}}var Sl={readContext:Be,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},bd={readContext:Be,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:Be,useEffect:Js,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,br(4194308,4,sc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return br(4194308,4,e,t)},useInsertionEffect:function(e,t){return br(4,2,e,t)},useMemo:function(e,t){var n=tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=tt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Qd.bind(null,ee,e),[r.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:Zs,useDebugValue:Zi,useDeferredValue:function(e){return tt().memoizedState=e},useTransition:function(){var e=Zs(!1),t=e[0];return e=Yd.bind(null,e[1]),tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ee,l=tt();if(J){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),de===null)throw Error(N(349));Zt&30||qu(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Js(tc.bind(null,r,o,e),[e]),r.flags|=2048,yr(9,ec.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=tt(),t=de.identifierPrefix;if(J){var n=at,r=st;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Xd++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zd={readContext:Be,useCallback:uc,useContext:Be,useEffect:bi,useImperativeHandle:ac,useInsertionEffect:oc,useLayoutEffect:ic,useMemo:cc,useReducer:so,useRef:lc,useState:function(){return so(gr)},useDebugValue:Zi,useDeferredValue:function(e){var t=He();return fc(t,ue.memoizedState,e)},useTransition:function(){var e=so(gr)[0],t=He().memoizedState;return[e,t]},useMutableSource:Zu,useSyncExternalStore:Ju,useId:dc,unstable_isNewReconciler:!1},Jd={readContext:Be,useCallback:uc,useContext:Be,useEffect:bi,useImperativeHandle:ac,useInsertionEffect:oc,useLayoutEffect:ic,useMemo:cc,useReducer:ao,useRef:lc,useState:function(){return ao(gr)},useDebugValue:Zi,useDeferredValue:function(e){var t=He();return ue===null?t.memoizedState=e:fc(t,ue.memoizedState,e)},useTransition:function(){var e=ao(gr)[0],t=He().memoizedState;return[e,t]},useMutableSource:Zu,useSyncExternalStore:Ju,useId:dc,unstable_isNewReconciler:!1};function Xe(e,t){if(e&&e.defaultProps){t=te({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Qo(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:te({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Il={isMounted:function(e){return(e=e._reactInternals)?tn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_e(),l=Lt(e),o=ut(r,l);o.payload=t,n!=null&&(o.callback=n),t=xt(e,o,l),t!==null&&(be(t,e,l,r),Qr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_e(),l=Lt(e),o=ut(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=xt(e,o,l),t!==null&&(be(t,e,l,r),Qr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_e(),r=Lt(e),l=ut(n,r);l.tag=2,t!=null&&(l.callback=t),t=xt(e,l,r),t!==null&&(be(t,e,r,n),Qr(t,e,r))}};function qs(e,t,n,r,l,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):t.prototype&&t.prototype.isPureReactComponent?!ur(n,r)||!ur(l,o):!0}function gc(e,t,n){var r=!1,l=zt,o=t.contextType;return typeof o=="object"&&o!==null?o=Be(o):(l=Te(t)?Kt:we.current,r=t.contextTypes,o=(r=r!=null)?Mn(e,l):zt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Il,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function ea(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Il.enqueueReplaceState(t,t.state,null)}function Ko(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Hi(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=Be(o):(o=Te(t)?Kt:we.current,l.context=Mn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Qo(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Il.enqueueReplaceState(l,l.state,null),gl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Tn(e,t){try{var n="",r=t;do n+=$f(r),r=r.return;while(r);var l=n}catch(o){l=`
39
+ Error generating stack: `+o.message+`
40
+ `+o.stack}return{value:e,source:t,stack:l,digest:null}}function uo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var qd=typeof WeakMap=="function"?WeakMap:Map;function yc(e,t,n){n=ut(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){kl||(kl=!0,ii=r),bo(e,t)},n}function vc(e,t,n){n=ut(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){bo(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){bo(e,t),typeof r!="function"&&(Rt===null?Rt=new Set([this]):Rt.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function ta(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new qd;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=pp.bind(null,e,t,n),t.then(e,e))}function na(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ra(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ut(-1,1),t.tag=2,xt(n,t,1))),n.lanes|=1),e)}var ep=ht.ReactCurrentOwner,$e=!1;function ke(e,t,n,r){t.child=e===null?Yu(t,null,n,r):$n(t,e.child,n,r)}function la(e,t,n,r,l){n=n.render;var o=t.ref;return kn(t,l),r=Qi(e,t,n,r,o,l),n=Ki(),e!==null&&!$e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,pt(e,t,l)):(J&&n&&Oi(t),t.flags|=1,ke(e,t,r,l),t.child)}function oa(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!os(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Sc(e,t,o,r,l)):(e=el(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:ur,n(i,r)&&e.ref===t.ref)return pt(e,t,l)}return t.flags|=1,e=It(o,r),e.ref=t.ref,e.return=t,t.child=e}function Sc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(ur(o,r)&&e.ref===t.ref)if($e=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&($e=!0);else return t.lanes=e.lanes,pt(e,t,l)}return Zo(e,t,n,r,l)}function wc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q(gn,Re),Re|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Q(gn,Re),Re|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Q(gn,Re),Re|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Q(gn,Re),Re|=r;return ke(e,t,l,n),t.child}function kc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zo(e,t,n,r,l){var o=Te(n)?Kt:we.current;return o=Mn(t,o),kn(t,l),n=Qi(e,t,n,r,o,l),r=Ki(),e!==null&&!$e?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,pt(e,t,l)):(J&&r&&Oi(t),t.flags|=1,ke(e,t,n,l),t.child)}function ia(e,t,n,r,l){if(Te(n)){var o=!0;fl(t)}else o=!1;if(kn(t,l),t.stateNode===null)Zr(e,t),gc(t,n,r),Ko(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var s=i.context,u=n.contextType;typeof u=="object"&&u!==null?u=Be(u):(u=Te(n)?Kt:we.current,u=Mn(t,u));var f=n.getDerivedStateFromProps,S=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";S||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||s!==u)&&ea(t,i,r,u),St=!1;var d=t.memoizedState;i.state=d,gl(t,r,i,l),s=t.memoizedState,a!==r||d!==s||Ee.current||St?(typeof f=="function"&&(Qo(t,n,f,r),s=t.memoizedState),(a=St||qs(t,n,a,r,d,s,u))?(S||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ku(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Xe(t.type,a),i.props=u,S=t.pendingProps,d=i.context,s=n.contextType,typeof s=="object"&&s!==null?s=Be(s):(s=Te(n)?Kt:we.current,s=Mn(t,s));var h=n.getDerivedStateFromProps;(f=typeof h=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==S||d!==s)&&ea(t,i,r,s),St=!1,d=t.memoizedState,i.state=d,gl(t,r,i,l);var y=t.memoizedState;a!==S||d!==y||Ee.current||St?(typeof h=="function"&&(Qo(t,n,h,r),y=t.memoizedState),(u=St||qs(t,n,u,r,d,y,s)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,y,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,y,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),i.props=r,i.state=y,i.context=s,r=u):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Jo(e,t,n,r,o,l)}function Jo(e,t,n,r,l,o){kc(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Gs(t,n,!1),pt(e,t,o);r=t.stateNode,ep.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=$n(t,e.child,null,o),t.child=$n(t,null,a,o)):ke(e,t,a,o),t.memoizedState=r.state,l&&Gs(t,n,!0),t.child}function _c(e){var t=e.stateNode;t.pendingContext?Vs(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Vs(e,t.context,!1),Vi(e,t.containerInfo)}function sa(e,t,n,r,l){return Cn(),Ai(l),t.flags|=256,ke(e,t,n,r),t.child}var qo={dehydrated:null,treeContext:null,retryLane:0};function ei(e){return{baseLanes:e,cachePool:null,transitions:null}}function Pc(e,t,n){var r=t.pendingProps,l=q.current,o=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Q(q,l&1),e===null)return Xo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=Ol(i,r,0,null),e=Qt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ei(n),t.memoizedState=qo,e):Ji(t,i));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return tp(e,t,i,r,a,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,a=l.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=It(l,s),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?o=It(a,o):(o=Qt(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?ei(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=qo,r}return o=e.child,e=o.sibling,r=It(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ji(e,t){return t=Ol({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ar(e,t,n,r){return r!==null&&Ai(r),$n(t,e.child,null,n),e=Ji(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tp(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=uo(Error(N(422))),Ar(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Ol({mode:"visible",children:r.children},l,0,null),o=Qt(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&$n(t,e.child,null,i),t.child.memoizedState=ei(i),t.memoizedState=qo,o);if(!(t.mode&1))return Ar(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(N(419)),r=uo(o,r,void 0),Ar(e,t,i,r)}if(a=(i&e.childLanes)!==0,$e||a){if(r=de,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,dt(e,l),be(r,e,l,-1))}return ls(),r=uo(Error(N(421))),Ar(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=hp.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Le=Nt(l.nextSibling),Ie=t,J=!0,Qe=null,e!==null&&(Ae[De++]=st,Ae[De++]=at,Ae[De++]=bt,st=e.id,at=e.overflow,bt=t),t=Ji(t,r.children),t.flags|=4096,t)}function aa(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yo(e.return,t,n)}function co(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function Mc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(ke(e,t,r.children,n),r=q.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&aa(e,n,t);else if(e.tag===19)aa(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Q(q,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&yl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),co(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&yl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}co(t,!0,n,null,o);break;case"together":co(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zr(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function pt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=It(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=It(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function np(e,t,n){switch(t.tag){case 3:_c(t),Cn();break;case 5:bu(t);break;case 1:Te(t.type)&&fl(t);break;case 4:Vi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;Q(hl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Q(q,q.current&1),t.flags|=128,null):n&t.child.childLanes?Pc(e,t,n):(Q(q,q.current&1),e=pt(e,t,n),e!==null?e.sibling:null);Q(q,q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Mc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Q(q,q.current),r)break;return null;case 22:case 23:return t.lanes=0,wc(e,t,n)}return pt(e,t,n)}var Cc,ti,$c,Ec;Cc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ti=function(){};$c=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Xt(lt.current);var o=null;switch(n){case"input":l=Po(e,l),r=Po(e,r),o=[];break;case"select":l=te({},l,{value:void 0}),r=te({},r,{value:void 0}),o=[];break;case"textarea":l=$o(e,l),r=$o(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ul)}To(n,r);var i;n=null;for(u in l)if(!r.hasOwnProperty(u)&&l.hasOwnProperty(u)&&l[u]!=null)if(u==="style"){var a=l[u];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(nr.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var s=r[u];if(a=l!=null?l[u]:void 0,r.hasOwnProperty(u)&&s!==a&&(s!=null||a!=null))if(u==="style")if(a){for(i in a)!a.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&a[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(o||(o=[]),o.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(o=o||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(nr.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&b("scroll",e),o||a===s||(o=[])):(o=o||[]).push(u,s))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Ec=function(e,t,n,r){n!==r&&(t.flags|=4)};function Dn(e,t){if(!J)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function rp(e,t,n){var r=t.pendingProps;switch(Fi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ve(t),null;case 1:return Te(t.type)&&cl(),ve(t),null;case 3:return r=t.stateNode,En(),Z(Ee),Z(we),Xi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Or(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qe!==null&&(ui(Qe),Qe=null))),ti(e,t),ve(t),null;case 5:Gi(t);var l=Xt(hr.current);if(n=t.type,e!==null&&t.stateNode!=null)$c(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return ve(t),null}if(e=Xt(lt.current),Or(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[nt]=t,r[dr]=o,e=(t.mode&1)!==0,n){case"dialog":b("cancel",r),b("close",r);break;case"iframe":case"object":case"embed":b("load",r);break;case"video":case"audio":for(l=0;l<Vn.length;l++)b(Vn[l],r);break;case"source":b("error",r);break;case"img":case"image":case"link":b("error",r),b("load",r);break;case"details":b("toggle",r);break;case"input":ys(r,o),b("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},b("invalid",r);break;case"textarea":Ss(r,o),b("invalid",r)}To(n,o),l=null;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];i==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&zr(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&zr(r.textContent,a,e),l=["children",""+a]):nr.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&b("scroll",r)}switch(n){case"input":Er(r),vs(r,o,!0);break;case"textarea":Er(r),ws(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=ul)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=tu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[nt]=t,e[dr]=r,Cc(e,t,!1,!1),t.stateNode=e;e:{switch(i=No(n,r),n){case"dialog":b("cancel",e),b("close",e),l=r;break;case"iframe":case"object":case"embed":b("load",e),l=r;break;case"video":case"audio":for(l=0;l<Vn.length;l++)b(Vn[l],e);l=r;break;case"source":b("error",e),l=r;break;case"img":case"image":case"link":b("error",e),b("load",e),l=r;break;case"details":b("toggle",e),l=r;break;case"input":ys(e,r),l=Po(e,r),b("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=te({},r,{value:void 0}),b("invalid",e);break;case"textarea":Ss(e,r),l=$o(e,r),b("invalid",e);break;default:l=r}To(n,l),a=l;for(o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="style"?lu(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&nu(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&rr(e,s):typeof s=="number"&&rr(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(nr.hasOwnProperty(o)?s!=null&&o==="onScroll"&&b("scroll",e):s!=null&&_i(e,o,s,i))}switch(n){case"input":Er(e),vs(e,r,!1);break;case"textarea":Er(e),ws(e);break;case"option":r.value!=null&&e.setAttribute("value",""+jt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?yn(e,!!r.multiple,o,!1):r.defaultValue!=null&&yn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=ul)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ve(t),null;case 6:if(e&&t.stateNode!=null)Ec(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=Xt(hr.current),Xt(lt.current),Or(t)){if(r=t.stateNode,n=t.memoizedProps,r[nt]=t,(o=r.nodeValue!==n)&&(e=Ie,e!==null))switch(e.tag){case 3:zr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&zr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[nt]=t,t.stateNode=r}return ve(t),null;case 13:if(Z(q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(J&&Le!==null&&t.mode&1&&!(t.flags&128))Gu(),Cn(),t.flags|=98560,o=!1;else if(o=Or(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(N(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(N(317));o[nt]=t}else Cn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ve(t),o=!1}else Qe!==null&&(ui(Qe),Qe=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||q.current&1?ce===0&&(ce=3):ls())),t.updateQueue!==null&&(t.flags|=4),ve(t),null);case 4:return En(),ti(e,t),e===null&&cr(t.stateNode.containerInfo),ve(t),null;case 10:return Wi(t.type._context),ve(t),null;case 17:return Te(t.type)&&cl(),ve(t),null;case 19:if(Z(q),o=t.memoizedState,o===null)return ve(t),null;if(r=(t.flags&128)!==0,i=o.rendering,i===null)if(r)Dn(o,!1);else{if(ce!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=yl(e),i!==null){for(t.flags|=128,Dn(o,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q(q,q.current&1|2),t.child}e=e.sibling}o.tail!==null&&ie()>Nn&&(t.flags|=128,r=!0,Dn(o,!1),t.lanes=4194304)}else{if(!r)if(e=yl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Dn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!J)return ve(t),null}else 2*ie()-o.renderingStartTime>Nn&&n!==1073741824&&(t.flags|=128,r=!0,Dn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ie(),t.sibling=null,n=q.current,Q(q,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return rs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Re&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function lp(e,t){switch(Fi(t),t.tag){case 1:return Te(t.type)&&cl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return En(),Z(Ee),Z(we),Xi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Gi(t),null;case 13:if(Z(q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(q),null;case 4:return En(),null;case 10:return Wi(t.type._context),null;case 22:case 23:return rs(),null;case 24:return null;default:return null}}var Dr=!1,Se=!1,op=typeof WeakSet=="function"?WeakSet:Set,L=null;function mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ne(e,t,r)}else n.current=null}function ni(e,t,n){try{n()}catch(r){ne(e,t,r)}}var ua=!1;function ip(e,t){if(Do=il,e=Lu(),zi(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,a=-1,s=-1,u=0,f=0,S=e,d=null;t:for(;;){for(var h;S!==n||l!==0&&S.nodeType!==3||(a=i+l),S!==o||r!==0&&S.nodeType!==3||(s=i+r),S.nodeType===3&&(i+=S.nodeValue.length),(h=S.firstChild)!==null;)d=S,S=h;for(;;){if(S===e)break t;if(d===n&&++u===l&&(a=i),d===o&&++f===r&&(s=i),(h=S.nextSibling)!==null)break;S=d,d=S.parentNode}S=h}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uo={focusedElem:e,selectionRange:n},il=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,C=y.memoizedState,p=t.stateNode,c=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:Xe(t.type,w),C);p.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(v){ne(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return y=ua,ua=!1,y}function Jn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&ni(t,n,o)}l=l.next}while(l!==r)}}function jl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ri(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Tc(e){var t=e.alternate;t!==null&&(e.alternate=null,Tc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[nt],delete t[dr],delete t[Ho],delete t[Bd],delete t[Hd])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Nc(e){return e.tag===5||e.tag===3||e.tag===4}function ca(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function li(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ul));else if(r!==4&&(e=e.child,e!==null))for(li(e,t,n),e=e.sibling;e!==null;)li(e,t,n),e=e.sibling}function oi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(oi(e,t,n),e=e.sibling;e!==null;)oi(e,t,n),e=e.sibling}var pe=null,Ye=!1;function gt(e,t,n){for(n=n.child;n!==null;)xc(e,t,n),n=n.sibling}function xc(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount($l,n)}catch{}switch(n.tag){case 5:Se||mn(n,t);case 6:var r=pe,l=Ye;pe=null,gt(e,t,n),pe=r,Ye=l,pe!==null&&(Ye?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(Ye?(e=pe,n=n.stateNode,e.nodeType===8?ro(e.parentNode,n):e.nodeType===1&&ro(e,n),sr(e)):ro(pe,n.stateNode));break;case 4:r=pe,l=Ye,pe=n.stateNode.containerInfo,Ye=!0,gt(e,t,n),pe=r,Ye=l;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&ni(n,t,i),l=l.next}while(l!==r)}gt(e,t,n);break;case 1:if(!Se&&(mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ne(n,t,a)}gt(e,t,n);break;case 21:gt(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,gt(e,t,n),Se=r):gt(e,t,n);break;default:gt(e,t,n)}}function fa(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new op),t.forEach(function(r){var l=mp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ge(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:pe=a.stateNode,Ye=!1;break e;case 3:pe=a.stateNode.containerInfo,Ye=!0;break e;case 4:pe=a.stateNode.containerInfo,Ye=!0;break e}a=a.return}if(pe===null)throw Error(N(160));xc(o,i,l),pe=null,Ye=!1;var s=l.alternate;s!==null&&(s.return=null),l.return=null}catch(u){ne(l,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Rc(t,e),t=t.sibling}function Rc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ge(t,e),qe(e),r&4){try{Jn(3,e,e.return),jl(3,e)}catch(w){ne(e,e.return,w)}try{Jn(5,e,e.return)}catch(w){ne(e,e.return,w)}}break;case 1:Ge(t,e),qe(e),r&512&&n!==null&&mn(n,n.return);break;case 5:if(Ge(t,e),qe(e),r&512&&n!==null&&mn(n,n.return),e.flags&32){var l=e.stateNode;try{rr(l,"")}catch(w){ne(e,e.return,w)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,i=n!==null?n.memoizedProps:o,a=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&qa(l,o),No(a,i);var u=No(a,o);for(i=0;i<s.length;i+=2){var f=s[i],S=s[i+1];f==="style"?lu(l,S):f==="dangerouslySetInnerHTML"?nu(l,S):f==="children"?rr(l,S):_i(l,f,S,u)}switch(a){case"input":Mo(l,o);break;case"textarea":eu(l,o);break;case"select":var d=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?yn(l,!!o.multiple,h,!1):d!==!!o.multiple&&(o.defaultValue!=null?yn(l,!!o.multiple,o.defaultValue,!0):yn(l,!!o.multiple,o.multiple?[]:"",!1))}l[dr]=o}catch(w){ne(e,e.return,w)}}break;case 6:if(Ge(t,e),qe(e),r&4){if(e.stateNode===null)throw Error(N(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(w){ne(e,e.return,w)}}break;case 3:if(Ge(t,e),qe(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{sr(t.containerInfo)}catch(w){ne(e,e.return,w)}break;case 4:Ge(t,e),qe(e);break;case 13:Ge(t,e),qe(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(ts=ie())),r&4&&fa(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Se=(u=Se)||f,Ge(t,e),Se=u):Ge(t,e),qe(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(L=e,f=e.child;f!==null;){for(S=L=f;L!==null;){switch(d=L,h=d.child,d.tag){case 0:case 11:case 14:case 15:Jn(4,d,d.return);break;case 1:mn(d,d.return);var y=d.stateNode;if(typeof y.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(w){ne(r,n,w)}}break;case 5:mn(d,d.return);break;case 22:if(d.memoizedState!==null){pa(S);continue}}h!==null?(h.return=d,L=h):pa(S)}f=f.sibling}e:for(f=null,S=e;;){if(S.tag===5){if(f===null){f=S;try{l=S.stateNode,u?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=S.stateNode,s=S.memoizedProps.style,i=s!=null&&s.hasOwnProperty("display")?s.display:null,a.style.display=ru("display",i))}catch(w){ne(e,e.return,w)}}}else if(S.tag===6){if(f===null)try{S.stateNode.nodeValue=u?"":S.memoizedProps}catch(w){ne(e,e.return,w)}}else if((S.tag!==22&&S.tag!==23||S.memoizedState===null||S===e)&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===e)break e;for(;S.sibling===null;){if(S.return===null||S.return===e)break e;f===S&&(f=null),S=S.return}f===S&&(f=null),S.sibling.return=S.return,S=S.sibling}}break;case 19:Ge(t,e),qe(e),r&4&&fa(e);break;case 21:break;default:Ge(t,e),qe(e)}}function qe(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Nc(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(rr(l,""),r.flags&=-33);var o=ca(e);oi(e,o,l);break;case 3:case 4:var i=r.stateNode.containerInfo,a=ca(e);li(e,a,i);break;default:throw Error(N(161))}}catch(s){ne(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function sp(e,t,n){L=e,Lc(e)}function Lc(e,t,n){for(var r=(e.mode&1)!==0;L!==null;){var l=L,o=l.child;if(l.tag===22&&r){var i=l.memoizedState!==null||Dr;if(!i){var a=l.alternate,s=a!==null&&a.memoizedState!==null||Se;a=Dr;var u=Se;if(Dr=i,(Se=s)&&!u)for(L=l;L!==null;)i=L,s=i.child,i.tag===22&&i.memoizedState!==null?ha(l):s!==null?(s.return=i,L=s):ha(l);for(;o!==null;)L=o,Lc(o),o=o.sibling;L=l,Dr=a,Se=u}da(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,L=o):da(e)}}function da(e){for(;L!==null;){var t=L;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Se||jl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Se)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Xe(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&bs(t,o,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}bs(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var S=f.dehydrated;S!==null&&sr(S)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}Se||t.flags&512&&ri(t)}catch(d){ne(t,t.return,d)}}if(t===e){L=null;break}if(n=t.sibling,n!==null){n.return=t.return,L=n;break}L=t.return}}function pa(e){for(;L!==null;){var t=L;if(t===e){L=null;break}var n=t.sibling;if(n!==null){n.return=t.return,L=n;break}L=t.return}}function ha(e){for(;L!==null;){var t=L;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{jl(4,t)}catch(s){ne(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(s){ne(t,l,s)}}var o=t.return;try{ri(t)}catch(s){ne(t,o,s)}break;case 5:var i=t.return;try{ri(t)}catch(s){ne(t,i,s)}}}catch(s){ne(t,t.return,s)}if(t===e){L=null;break}var a=t.sibling;if(a!==null){a.return=t.return,L=a;break}L=t.return}}var ap=Math.ceil,wl=ht.ReactCurrentDispatcher,qi=ht.ReactCurrentOwner,We=ht.ReactCurrentBatchConfig,G=0,de=null,ae=null,me=0,Re=0,gn=Ft(0),ce=0,vr=null,Jt=0,zl=0,es=0,qn=null,Ce=null,ts=0,Nn=1/0,ot=null,kl=!1,ii=null,Rt=null,Ur=!1,Pt=null,_l=0,er=0,si=null,Jr=-1,qr=0;function _e(){return G&6?ie():Jr!==-1?Jr:Jr=ie()}function Lt(e){return e.mode&1?G&2&&me!==0?me&-me:Gd.transition!==null?(qr===0&&(qr=gu()),qr):(e=Y,e!==0||(e=window.event,e=e===void 0?16:Pu(e.type)),e):1}function be(e,t,n,r){if(50<er)throw er=0,si=null,Error(N(185));kr(e,n,r),(!(G&2)||e!==de)&&(e===de&&(!(G&2)&&(zl|=n),ce===4&&kt(e,me)),Ne(e,r),n===1&&G===0&&!(t.mode&1)&&(Nn=ie()+500,Rl&&At()))}function Ne(e,t){var n=e.callbackNode;Gf(e,t);var r=ol(e,e===de?me:0);if(r===0)n!==null&&Ps(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ps(n),t===1)e.tag===0?Vd(ma.bind(null,e)):Bu(ma.bind(null,e)),Ud(function(){!(G&6)&&At()}),n=null;else{switch(yu(r)){case 1:n=Ei;break;case 4:n=hu;break;case 16:n=ll;break;case 536870912:n=mu;break;default:n=ll}n=Uc(n,Ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ic(e,t){if(Jr=-1,qr=0,G&6)throw Error(N(327));var n=e.callbackNode;if(_n()&&e.callbackNode!==n)return null;var r=ol(e,e===de?me:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Pl(e,r);else{t=r;var l=G;G|=2;var o=zc();(de!==e||me!==t)&&(ot=null,Nn=ie()+500,Yt(e,t));do try{fp();break}catch(a){jc(e,a)}while(!0);Ui(),wl.current=o,G=l,ae!==null?t=0:(de=null,me=0,t=ce)}if(t!==0){if(t===2&&(l=jo(e),l!==0&&(r=l,t=ai(e,l))),t===1)throw n=vr,Yt(e,0),kt(e,r),Ne(e,ie()),n;if(t===6)kt(e,r);else{if(l=e.current.alternate,!(r&30)&&!up(l)&&(t=Pl(e,r),t===2&&(o=jo(e),o!==0&&(r=o,t=ai(e,o))),t===1))throw n=vr,Yt(e,0),kt(e,r),Ne(e,ie()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:Bt(e,Ce,ot);break;case 3:if(kt(e,r),(r&130023424)===r&&(t=ts+500-ie(),10<t)){if(ol(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){_e(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Bo(Bt.bind(null,e,Ce,ot),t);break}Bt(e,Ce,ot);break;case 4:if(kt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var i=31-Ke(r);o=1<<i,i=t[i],i>l&&(l=i),r&=~o}if(r=l,r=ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ap(r/1960))-r,10<r){e.timeoutHandle=Bo(Bt.bind(null,e,Ce,ot),r);break}Bt(e,Ce,ot);break;case 5:Bt(e,Ce,ot);break;default:throw Error(N(329))}}}return Ne(e,ie()),e.callbackNode===n?Ic.bind(null,e):null}function ai(e,t){var n=qn;return e.current.memoizedState.isDehydrated&&(Yt(e,t).flags|=256),e=Pl(e,t),e!==2&&(t=Ce,Ce=n,t!==null&&ui(t)),e}function ui(e){Ce===null?Ce=e:Ce.push.apply(Ce,e)}function up(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!Ze(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function kt(e,t){for(t&=~es,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ke(t),r=1<<n;e[n]=-1,t&=~r}}function ma(e){if(G&6)throw Error(N(327));_n();var t=ol(e,0);if(!(t&1))return Ne(e,ie()),null;var n=Pl(e,t);if(e.tag!==0&&n===2){var r=jo(e);r!==0&&(t=r,n=ai(e,r))}if(n===1)throw n=vr,Yt(e,0),kt(e,t),Ne(e,ie()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Bt(e,Ce,ot),Ne(e,ie()),null}function ns(e,t){var n=G;G|=1;try{return e(t)}finally{G=n,G===0&&(Nn=ie()+500,Rl&&At())}}function qt(e){Pt!==null&&Pt.tag===0&&!(G&6)&&_n();var t=G;G|=1;var n=We.transition,r=Y;try{if(We.transition=null,Y=1,e)return e()}finally{Y=r,We.transition=n,G=t,!(G&6)&&At()}}function rs(){Re=gn.current,Z(gn)}function Yt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Dd(n)),ae!==null)for(n=ae.return;n!==null;){var r=n;switch(Fi(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&cl();break;case 3:En(),Z(Ee),Z(we),Xi();break;case 5:Gi(r);break;case 4:En();break;case 13:Z(q);break;case 19:Z(q);break;case 10:Wi(r.type._context);break;case 22:case 23:rs()}n=n.return}if(de=e,ae=e=It(e.current,null),me=Re=t,ce=0,vr=null,es=zl=Jt=0,Ce=qn=null,Gt!==null){for(t=0;t<Gt.length;t++)if(n=Gt[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var i=o.next;o.next=l,r.next=i}n.pending=r}Gt=null}return e}function jc(e,t){do{var n=ae;try{if(Ui(),Kr.current=Sl,vl){for(var r=ee.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}vl=!1}if(Zt=0,fe=ue=ee=null,Zn=!1,mr=0,qi.current=null,n===null||n.return===null){ce=1,vr=t,ae=null;break}e:{var o=e,i=n.return,a=n,s=t;if(t=me,a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,f=a,S=f.tag;if(!(f.mode&1)&&(S===0||S===11||S===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=na(i);if(h!==null){h.flags&=-257,ra(h,i,a,o,t),h.mode&1&&ta(o,u,t),t=h,s=u;var y=t.updateQueue;if(y===null){var w=new Set;w.add(s),t.updateQueue=w}else y.add(s);break e}else{if(!(t&1)){ta(o,u,t),ls();break e}s=Error(N(426))}}else if(J&&a.mode&1){var C=na(i);if(C!==null){!(C.flags&65536)&&(C.flags|=256),ra(C,i,a,o,t),Ai(Tn(s,a));break e}}o=s=Tn(s,a),ce!==4&&(ce=2),qn===null?qn=[o]:qn.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=yc(o,s,t);Ks(o,p);break e;case 1:a=s;var c=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof c.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Rt===null||!Rt.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var v=vc(o,a,t);Ks(o,v);break e}}o=o.return}while(o!==null)}Fc(n)}catch(k){t=k,ae===n&&n!==null&&(ae=n=n.return);continue}break}while(!0)}function zc(){var e=wl.current;return wl.current=Sl,e===null?Sl:e}function ls(){(ce===0||ce===3||ce===2)&&(ce=4),de===null||!(Jt&268435455)&&!(zl&268435455)||kt(de,me)}function Pl(e,t){var n=G;G|=2;var r=zc();(de!==e||me!==t)&&(ot=null,Yt(e,t));do try{cp();break}catch(l){jc(e,l)}while(!0);if(Ui(),G=n,wl.current=r,ae!==null)throw Error(N(261));return de=null,me=0,ce}function cp(){for(;ae!==null;)Oc(ae)}function fp(){for(;ae!==null&&!Of();)Oc(ae)}function Oc(e){var t=Dc(e.alternate,e,Re);e.memoizedProps=e.pendingProps,t===null?Fc(e):ae=t,qi.current=null}function Fc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=lp(n,t),n!==null){n.flags&=32767,ae=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ce=6,ae=null;return}}else if(n=rp(n,t,Re),n!==null){ae=n;return}if(t=t.sibling,t!==null){ae=t;return}ae=t=e}while(t!==null);ce===0&&(ce=5)}function Bt(e,t,n){var r=Y,l=We.transition;try{We.transition=null,Y=1,dp(e,t,n,r)}finally{We.transition=l,Y=r}return null}function dp(e,t,n,r){do _n();while(Pt!==null);if(G&6)throw Error(N(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Xf(e,o),e===de&&(ae=de=null,me=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ur||(Ur=!0,Uc(ll,function(){return _n(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=We.transition,We.transition=null;var i=Y;Y=1;var a=G;G|=4,qi.current=null,ip(e,n),Rc(n,e),Ld(Uo),il=!!Do,Uo=Do=null,e.current=n,sp(n),Ff(),G=a,Y=i,We.transition=o}else e.current=n;if(Ur&&(Ur=!1,Pt=e,_l=l),o=e.pendingLanes,o===0&&(Rt=null),Uf(n.stateNode),Ne(e,ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(kl)throw kl=!1,e=ii,ii=null,e;return _l&1&&e.tag!==0&&_n(),o=e.pendingLanes,o&1?e===si?er++:(er=0,si=e):er=0,At(),null}function _n(){if(Pt!==null){var e=yu(_l),t=We.transition,n=Y;try{if(We.transition=null,Y=16>e?16:e,Pt===null)var r=!1;else{if(e=Pt,Pt=null,_l=0,G&6)throw Error(N(331));var l=G;for(G|=4,L=e.current;L!==null;){var o=L,i=o.child;if(L.flags&16){var a=o.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for(L=u;L!==null;){var f=L;switch(f.tag){case 0:case 11:case 15:Jn(8,f,o)}var S=f.child;if(S!==null)S.return=f,L=S;else for(;L!==null;){f=L;var d=f.sibling,h=f.return;if(Tc(f),f===u){L=null;break}if(d!==null){d.return=h,L=d;break}L=h}}}var y=o.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var C=w.sibling;w.sibling=null,w=C}while(w!==null)}}L=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,L=i;else e:for(;L!==null;){if(o=L,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Jn(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,L=p;break e}L=o.return}}var c=e.current;for(L=c;L!==null;){i=L;var m=i.child;if(i.subtreeFlags&2064&&m!==null)m.return=i,L=m;else e:for(i=c;L!==null;){if(a=L,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:jl(9,a)}}catch(k){ne(a,a.return,k)}if(a===i){L=null;break e}var v=a.sibling;if(v!==null){v.return=a.return,L=v;break e}L=a.return}}if(G=l,At(),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot($l,e)}catch{}r=!0}return r}finally{Y=n,We.transition=t}}return!1}function ga(e,t,n){t=Tn(n,t),t=yc(e,t,1),e=xt(e,t,1),t=_e(),e!==null&&(kr(e,1,t),Ne(e,t))}function ne(e,t,n){if(e.tag===3)ga(e,e,n);else for(;t!==null;){if(t.tag===3){ga(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Rt===null||!Rt.has(r))){e=Tn(n,e),e=vc(t,e,1),t=xt(t,e,1),e=_e(),t!==null&&(kr(t,1,e),Ne(t,e));break}}t=t.return}}function pp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=_e(),e.pingedLanes|=e.suspendedLanes&n,de===e&&(me&n)===n&&(ce===4||ce===3&&(me&130023424)===me&&500>ie()-ts?Yt(e,0):es|=n),Ne(e,t)}function Ac(e,t){t===0&&(e.mode&1?(t=xr,xr<<=1,!(xr&130023424)&&(xr=4194304)):t=1);var n=_e();e=dt(e,t),e!==null&&(kr(e,t,n),Ne(e,n))}function hp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ac(e,n)}function mp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),Ac(e,n)}var Dc;Dc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ee.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,np(e,t,n);$e=!!(e.flags&131072)}else $e=!1,J&&t.flags&1048576&&Hu(t,pl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zr(e,t),e=t.pendingProps;var l=Mn(t,we.current);kn(t,n),l=Qi(null,t,r,e,l,n);var o=Ki();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Te(r)?(o=!0,fl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Hi(t),l.updater=Il,t.stateNode=l,l._reactInternals=t,Ko(t,r,e,n),t=Jo(null,t,r,!0,o,n)):(t.tag=0,J&&o&&Oi(t),ke(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=yp(r),e=Xe(r,e),l){case 0:t=Zo(null,t,r,e,n);break e;case 1:t=ia(null,t,r,e,n);break e;case 11:t=la(null,t,r,e,n);break e;case 14:t=oa(null,t,r,Xe(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Xe(r,l),Zo(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Xe(r,l),ia(e,t,r,l,n);case 3:e:{if(_c(t),e===null)throw Error(N(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Ku(e,t),gl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Tn(Error(N(423)),t),t=sa(e,t,r,n,l);break e}else if(r!==l){l=Tn(Error(N(424)),t),t=sa(e,t,r,n,l);break e}else for(Le=Nt(t.stateNode.containerInfo.firstChild),Ie=t,J=!0,Qe=null,n=Yu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Cn(),r===l){t=pt(e,t,n);break e}ke(e,t,r,n)}t=t.child}return t;case 5:return bu(t),e===null&&Xo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Wo(r,l)?i=null:o!==null&&Wo(r,o)&&(t.flags|=32),kc(e,t),ke(e,t,i,n),t.child;case 6:return e===null&&Xo(t),null;case 13:return Pc(e,t,n);case 4:return Vi(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$n(t,null,r,n):ke(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Xe(r,l),la(e,t,r,l,n);case 7:return ke(e,t,t.pendingProps,n),t.child;case 8:return ke(e,t,t.pendingProps.children,n),t.child;case 12:return ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,Q(hl,r._currentValue),r._currentValue=i,o!==null)if(Ze(o.value,i)){if(o.children===l.children&&!Ee.current){t=pt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){i=o.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=ut(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?s.next=s:(s.next=f.next,f.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Yo(o.return,n,t),a.lanes|=n;break}s=s.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(N(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Yo(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ke(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,kn(t,n),l=Be(l),r=r(l),t.flags|=1,ke(e,t,r,n),t.child;case 14:return r=t.type,l=Xe(r,t.pendingProps),l=Xe(r.type,l),oa(e,t,r,l,n);case 15:return Sc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Xe(r,l),Zr(e,t),t.tag=1,Te(r)?(e=!0,fl(t)):e=!1,kn(t,n),gc(t,r,l),Ko(t,r,l,n),Jo(null,t,r,!0,e,n);case 19:return Mc(e,t,n);case 22:return wc(e,t,n)}throw Error(N(156,t.tag))};function Uc(e,t){return pu(e,t)}function gp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ue(e,t,n,r){return new gp(e,t,n,r)}function os(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yp(e){if(typeof e=="function")return os(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Mi)return 11;if(e===Ci)return 14}return 2}function It(e,t){var n=e.alternate;return n===null?(n=Ue(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function el(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")os(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case on:return Qt(n.children,l,o,t);case Pi:i=8,l|=8;break;case So:return e=Ue(12,n,t,l|2),e.elementType=So,e.lanes=o,e;case wo:return e=Ue(13,n,t,l),e.elementType=wo,e.lanes=o,e;case ko:return e=Ue(19,n,t,l),e.elementType=ko,e.lanes=o,e;case ba:return Ol(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Qa:i=10;break e;case Ka:i=9;break e;case Mi:i=11;break e;case Ci:i=14;break e;case vt:i=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Ue(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Qt(e,t,n,r){return e=Ue(7,e,r,t),e.lanes=n,e}function Ol(e,t,n,r){return e=Ue(22,e,r,t),e.elementType=ba,e.lanes=n,e.stateNode={isHidden:!1},e}function fo(e,t,n){return e=Ue(6,e,null,t),e.lanes=n,e}function po(e,t,n){return t=Ue(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xl(0),this.expirationTimes=Xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function is(e,t,n,r,l,o,i,a,s){return e=new vp(e,t,n,a,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ue(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Hi(o),e}function Sp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ln,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Wc(e){if(!e)return zt;e=e._reactInternals;e:{if(tn(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Te(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(Te(n))return Wu(e,n,t)}return t}function Bc(e,t,n,r,l,o,i,a,s){return e=is(n,r,!0,e,l,o,i,a,s),e.context=Wc(null),n=e.current,r=_e(),l=Lt(n),o=ut(r,l),o.callback=t??null,xt(n,o,l),e.current.lanes=l,kr(e,l,r),Ne(e,r),e}function Fl(e,t,n,r){var l=t.current,o=_e(),i=Lt(l);return n=Wc(n),t.context===null?t.context=n:t.pendingContext=n,t=ut(o,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=xt(l,t,i),e!==null&&(be(e,l,i,o),Qr(e,l,i)),i}function Ml(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ya(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ss(e,t){ya(e,t),(e=e.alternate)&&ya(e,t)}function wp(){return null}var Hc=typeof reportError=="function"?reportError:function(e){console.error(e)};function as(e){this._internalRoot=e}Al.prototype.render=as.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));Fl(e,t,null,null)};Al.prototype.unmount=as.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qt(function(){Fl(null,e,null,null)}),t[ft]=null}};function Al(e){this._internalRoot=e}Al.prototype.unstable_scheduleHydration=function(e){if(e){var t=wu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wt.length&&t!==0&&t<wt[n].priority;n++);wt.splice(n,0,e),n===0&&_u(e)}};function us(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Dl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function va(){}function kp(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var u=Ml(i);o.call(u)}}var i=Bc(t,r,e,0,null,!1,!1,"",va);return e._reactRootContainer=i,e[ft]=i.current,cr(e.nodeType===8?e.parentNode:e),qt(),i}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var u=Ml(s);a.call(u)}}var s=is(e,0,!1,null,null,!1,!1,"",va);return e._reactRootContainer=s,e[ft]=s.current,cr(e.nodeType===8?e.parentNode:e),qt(function(){Fl(t,s,n,r)}),s}function Ul(e,t,n,r,l){var o=n._reactRootContainer;if(o){var i=o;if(typeof l=="function"){var a=l;l=function(){var s=Ml(i);a.call(s)}}Fl(t,i,e,l)}else i=kp(n,t,e,l,r);return Ml(i)}vu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Hn(t.pendingLanes);n!==0&&(Ti(t,n|1),Ne(t,ie()),!(G&6)&&(Nn=ie()+500,At()))}break;case 13:qt(function(){var r=dt(e,1);if(r!==null){var l=_e();be(r,e,1,l)}}),ss(e,1)}};Ni=function(e){if(e.tag===13){var t=dt(e,134217728);if(t!==null){var n=_e();be(t,e,134217728,n)}ss(e,134217728)}};Su=function(e){if(e.tag===13){var t=Lt(e),n=dt(e,t);if(n!==null){var r=_e();be(n,e,t,r)}ss(e,t)}};wu=function(){return Y};ku=function(e,t){var n=Y;try{return Y=e,t()}finally{Y=n}};Ro=function(e,t,n){switch(t){case"input":if(Mo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=xl(r);if(!l)throw Error(N(90));Ja(r),Mo(r,l)}}}break;case"textarea":eu(e,n);break;case"select":t=n.value,t!=null&&yn(e,!!n.multiple,t,!1)}};su=ns;au=qt;var _p={usingClientEntryPoint:!1,Events:[Pr,cn,xl,ou,iu,ns]},Un={findFiberByHostInstance:Vt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Pp={bundleType:Un.bundleType,version:Un.version,rendererPackageName:Un.rendererPackageName,rendererConfig:Un.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ht.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=fu(e),e===null?null:e.stateNode},findFiberByHostInstance:Un.findFiberByHostInstance||wp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wr.isDisabled&&Wr.supportsFiber)try{$l=Wr.inject(Pp),rt=Wr}catch{}}ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_p;ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!us(t))throw Error(N(200));return Sp(e,t,null,n)};ze.createRoot=function(e,t){if(!us(e))throw Error(N(299));var n=!1,r="",l=Hc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=is(e,1,!1,null,null,n,!1,r,l),e[ft]=t.current,cr(e.nodeType===8?e.parentNode:e),new as(t)};ze.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=fu(t),e=e===null?null:e.stateNode,e};ze.flushSync=function(e){return qt(e)};ze.hydrate=function(e,t,n){if(!Dl(t))throw Error(N(200));return Ul(null,e,t,!0,n)};ze.hydrateRoot=function(e,t,n){if(!us(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",i=Hc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Bc(t,null,e,1,n??null,l,!1,o,i),e[ft]=t.current,cr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Al(t)};ze.render=function(e,t,n){if(!Dl(t))throw Error(N(200));return Ul(null,e,t,!1,n)};ze.unmountComponentAtNode=function(e){if(!Dl(e))throw Error(N(40));return e._reactRootContainer?(qt(function(){Ul(null,null,e,!1,function(){e._reactRootContainer=null,e[ft]=null})}),!0):!1};ze.unstable_batchedUpdates=ns;ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Dl(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return Ul(e,t,n,!1,r)};ze.version="18.3.1-next-f1338f8080-20240426";function Vc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vc)}catch(e){console.error(e)}}Vc(),Va.exports=ze;var Mp=Va.exports,Gc,Sa=Mp;Gc=Sa.createRoot,Sa.hydrateRoot;function Cp(e,t,n){return{controlPoints:[e,t,n]}}function $p(e,t){const[n,r,l]=e.controlPoints,o=1-t,i=o*o,a=t*t,s=i,u=2*o*t,f=a;return{x:s*n.x+u*r.x+f*l.x,y:s*n.y+u*r.y+f*l.y}}function Ep(e,t){const[n,r,l]=e.controlPoints,o=1-t,i=2*o*(r.x-n.x)+2*t*(l.x-r.x),a=2*o*(r.y-n.y)+2*t*(l.y-r.y),s=Math.sqrt(i*i+a*a);return s<1e-4?{x:0,y:0}:{x:i/s,y:a/s}}function Tp(e,t,n,r){const l=e+Math.cos(n)*r,o=t+Math.sin(n)*r,i=e,a=t,s=n+Math.PI/2,u=80+Math.random()*70,f=Math.random()>.5?1:-1,S=(l+i)/2+Math.cos(s)*u*f,d=(o+a)/2+Math.sin(s)*u*f;return Cp({x:l,y:o},{x:S,y:d},{x:i,y:a})}const ci=["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16"],he={enabled:!1,audioContexts:[],loadedCount:0,totalCount:16},wa=new Map,Np=[];function xp(e,t,n=300){const r=e.volume,l=Date.now(),o=setInterval(()=>{const i=Date.now()-l,a=Math.min(i/n,1);e.volume=r*(1-a),a>=1&&(clearInterval(o),e.volume=0,setTimeout(()=>{e.pause(),e.volume=r,t.isPlaying=!1},500))},16)}function Rp(){const e=localStorage.getItem("claude-live-audio-enabled");e!==null&&(he.enabled=e==="true"),he.enabled&&(document.addEventListener("click",fi,{capture:!0,once:!0}),document.addEventListener("keydown",fi,{capture:!0,once:!0}));for(let t=0;t<16;t++){const n=new Audio;n.preload="auto",n.crossOrigin="anonymous",n.volume=.2;let r=!1;n.addEventListener("canplay",()=>{r||(r=!0,he.loadedCount++,console.debug("[audio] loaded:",he.loadedCount,"/",he.totalCount),Np.forEach(o=>o(he.loadedCount,he.totalCount)))}),n.addEventListener("error",o=>{console.debug("[audio] load error:",o);const i=he.audioContexts.find(a=>a.audio===n);i&&(i.isPlaying=!1)}),n.addEventListener("ended",()=>{const o=he.audioContexts.find(i=>i.audio===n);o&&(o.isPlaying=!1,clearTimeout(o.fadeTimeout))}),he.audioContexts.push({audio:n,isPlaying:!1});const l=ci[t%ci.length];n.src=`/chords/chord_${l}.wav`}}function Xc(e,t){if(!he.enabled){console.debug("[audio] audio disabled");return}const n=e||t||"unknown",r=Date.now(),l=wa.get(n)||0;if(r-l<150){console.debug("[audio] debounced:",n);return}wa.set(n,r);let i=0;e==="Read"?i=0:e==="Edit"||e==="Write"?i=1:e==="Bash"?i=2:e==="Grep"||e==="Glob"?i=3:e==="WebFetch"?i=4:t==="Notification"||t==="PermissionRequest"?i=5:t==="SubagentStart"?i=6:t==="SubagentStop"?i=7:t==="UserPromptSubmit"?i=8:t==="SessionStart"?i=9:t==="SessionEnd"?i=10:i=Math.floor(Math.random()*ci.length);let a=he.audioContexts[i%he.audioContexts.length];if(a.isPlaying){const s=he.audioContexts.find(u=>!u.isPlaying);if(!s){console.debug("[audio] no idle channels available");return}a=s}a.audio.currentTime=0,a.isPlaying=!0,a.audio.play().then(()=>{const s=a.audio.duration||2,u=Math.max(s*1e3,1500),f=setTimeout(()=>{xp(a.audio,a,1e3)},u);a.fadeTimeout=f}).catch(s=>{console.debug("[audio] playback failed:",s.message),a.isPlaying=!1})}function fi(){for(const e of he.audioContexts){const{audio:t}=e;e.isPlaying=!0;const n=t.volume;t.volume=0,t.play().then(()=>{t.pause(),t.currentTime=0,t.volume=n,e.isPlaying=!1}).catch(()=>{e.isPlaying=!1})}}function Lp(e){he.enabled=e,localStorage.setItem("claude-live-audio-enabled",e?"true":"false"),e&&fi()}function Ip(){return he.enabled}function ka(e){let t=2166136261;for(let n=0;n<e.length;n++)t=Math.imul(t^e.charCodeAt(n),16777619);return(t>>>0)%15-7}const jp=100,tr=6,zp={Read:"#4ade80",Edit:"#60a5fa",Write:"#60a5fa",Bash:"#f59e0b",Grep:"#a78bfa",Glob:"#a78bfa",WebFetch:"#f472b6",Stop:"#888888",Notification:"#34d399"},Op="#555555";function _a(e){const t=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16),l=Math.round(t*.3+190*.7),o=Math.round(n*.3+190*.7),i=Math.round(r*.3+190*.7);return`#${l.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}${i.toString(16).padStart(2,"0")}`}function ho(e){return parseInt(e.replace("#",""),16)}function Fp(e,t){return t&&e.agentPositionMap.has(t)?e.agentPositionMap.get(t):{x:e.centerX,y:e.centerY}}const mo=[4,8,18,20],Sr=[70,120,175,225],Br=[.0015,.001,6e-4,4e-4],Mt=typeof window<"u"?window.innerWidth:1280,Ct=typeof window<"u"?window.innerHeight:800;function Pa(e){for(let t=0;t<mo.length;t++)if(t>=e.ringCounts.length&&(e.ringCounts[t]=0),e.ringCounts[t]<mo[t])return t;return mo.length-1}function di(e,t){const n=[...e.nodes.values()].filter(o=>o.orbitRing===t).sort((o,i)=>o.orbitAngle-i.orbitAngle),r=n.length;if(r===0)return;const l=n[0].orbitAngle;n.forEach((o,i)=>{const a=l+i/r*Math.PI*2;o.targetOrbitAngle=a})}function pi(e){var r;const t=e.tool_name;if(!t)return e.hook_event_name==="Stop"?"session:stop":e.hook_event_name==="Notification"?`notification:${(((r=e.tool_input)==null?void 0:r.message)||"").slice(0,20)}`:(e.hook_event_name==="PermissionRequest",null);const n=e.tool_input;if(["Read","Edit","Write","Glob","Grep"].includes(t)){const l=(n==null?void 0:n.file_path)||(n==null?void 0:n.path)||null;return l?`file:${l}`:null}if(t==="Bash")return`bash:${(n==null?void 0:n.command)||""}`;if(t==="WebFetch")try{return`web:${new URL((n==null?void 0:n.url)||"").hostname}`}catch{return"web:unknown"}return`tool:${t}`}function Yc(e){if(e.startsWith("mcp_")){const t=e.split("__");return t[t.length-1].replace(/_/g," ")}return e}function Ap(e){var r;const t=e.tool_name,n=e.tool_input;if(["Read","Edit","Write","Glob","Grep"].includes(t||"")){const l=(n==null?void 0:n.file_path)||(n==null?void 0:n.path)||"";return l.split("/").pop()||l}if(t==="Bash")return`$ ${((n==null?void 0:n.command)||"").slice(0,22)}`;if(t==="WebFetch")try{return`↗ ${new URL((n==null?void 0:n.url)||"").hostname}`}catch{return"↗ web"}return e.hook_event_name==="Stop"?"✓ done":e.hook_event_name==="Notification"?(((r=e.tool_input)==null?void 0:r.message)||"notification").slice(0,24):t&&t.startsWith("mcp_")?Yc(t).slice(0,20):t||e.hook_event_name||"?"}function Ma(e,t){var a,s;const n=e.tool_name||e.hook_event_name||"?",r=e.tool_input,l=e.tool_response,o=n.startsWith("mcp_")?Yc(n).slice(0,14):n,i=t?` ${t}`:"";if(e.hook_event_name==="PostToolUseFailure"&&e.is_interrupt)return`⏹ interrupted${i}`;if(e.hook_event_name==="PostToolUse"&&l){if(n==="Bash"){const u=l.exitCode??l.exit_code??l.code;if(u!=null)return u===0?`${o} ✓${i}`:`${o} ✗ ${u}${i}`}if(n==="Grep"){const u=l.count??l.numMatches??l.total;if(u!==void 0)return`${o} ${u} hits${i}`}if(n==="Glob"){const u=Array.isArray(l)?l.length:((a=l.files)==null?void 0:a.length)??l.count;if(u!==void 0)return`${o} ${u} files${i}`}}if(r){if(n==="Edit"){const u=r.new_string||"",f=r.old_string||"",S=u.split(`
41
+ `).length,d=f.split(`
42
+ `).length;return S!==d?`${o} +${S} -${d}${i}`:`${o} ${S}L${i}`}if(n==="Write"){const f=(r.content||"").split(`
43
+ `).length;return`${o} ${f}L${i}`}if(n==="Read"){const u=r.limit,f=r.offset;if(f)return`${o} @${f}${i}`;if(u)return`${o} ${u}L${i}`}if(n==="Bash")return`$ ${((s=(r.command||"").split(/\s+/)[0])==null?void 0:s.split("/").pop())||""}${i}`;if(n==="Grep")return`${o} /${(r.pattern||"").toString().slice(0,10)}/${i}`}return o+i}function Dp(e){const t=e.tool_name;return["Read","Edit","Write","Glob","Grep"].includes(t||"")?"file":t==="Bash"?"bash":t==="WebFetch"?"web":e.hook_event_name==="Stop"?"stop":e.hook_event_name==="Notification"?"notification":"tool"}function go(e){const t=Math.max(0,e.ringCounts.length-1);return Sr[Math.min(t,Sr.length-1)]}function Ca(e,t){const n=(i,a)=>{const s=go(i),u=go(a);return(s+u)*2+100};for(let i=0;i<24;i++){const a=(e+i/24)/Math.max(tr,1)*Math.PI*2,u=(t.length>0?t.reduce((y,w)=>y+go(w),0)/t.length:Sr[0])*4/Math.sin(Math.PI/Math.max(tr,2)),f=Math.max(u,Math.min(Mt,Ct)*.38),S=Mt/2+Math.cos(a)*f,d=Ct/2+Math.sin(a)*f;if(!t.some(y=>{const w=n(y,{ringCounts:[]});return Math.hypot(y.centerX-S,y.centerY-d)<w}))return{x:S,y:d}}const l=e/Math.max(tr,1)*Math.PI*2,o=Math.min(Mt,Ct)*.38;return{x:Mt/2+Math.cos(l)*o,y:Ct/2+Math.sin(l)*o}}function Up(){const e=[],t=new Map,n=new Map;let r=!1;function l(){const s=new Map;for(let u=0;u<e.length;u++){const f=e[u],S=pi(f);S&&(s.has(f.session_id)||s.set(f.session_id,new Map),s.get(f.session_id).set(S,u))}for(const[u,f]of t){const S=s.get(u),d=[];for(const[h,y]of f.nodes){if(!(S!=null&&S.has(h))){y.nodeType==="file"?(d.push(h),y.orbitRing>=0&&y.orbitRing<f.ringCounts.length&&(f.ringCounts[y.orbitRing]=Math.max(0,f.ringCounts[y.orbitRing]-1))):y.life=Math.min(y.life,.15);continue}const w=S.get(h),C=e.length-1-w;y.age=f.stopping&&y.age>=80?y.age:C,y.lastEventIndex=w}for(const h of d)f.nodes.delete(h);f.edges=f.edges.filter(h=>f.nodes.has(h.fromKey)&&f.nodes.has(h.toKey)),f.stopping&&f.nodes.size===0&&t.delete(u)}}function o(s,u=!1){var c,m;if(e.push(s),e.length>jp&&e.shift(),!t.has(s.session_id)){if(t.size>=tr){const X=t.keys().next().value;X!==void 0&&t.delete(X)}const v=t.size,k=s.session_id,P=k.startsWith("unknown-")?`#${k.slice(8,12)}`:k.slice(0,8);let _=null;const g=k.match(/^([a-f0-9-]{36})[-_]sub[-_]/i)||k.match(/^([a-f0-9-]{36})\//i);if(g)_=g[1];else if(k.includes("_sub_")||k.includes("-sub-")){const X=k.indexOf("_sub_")!==-1?k.indexOf("_sub_"):k.indexOf("-sub-");_=k.slice(0,X)}const T=_?t.get(_)??null:null,$=T!==null,I=$?[...t.values()].filter(X=>X.parentSessionId===_).length:0;let O,j=v/Math.max(tr,1)*Math.PI*2;if(T){const X=I/3*Math.PI*2-Math.PI/4;O={x:T.centerX+Math.cos(X)*480,y:T.centerY+Math.sin(X)*480},j=X}else O=Ca(v,[...t.values()]);const B={sessionId:s.session_id,label:P,centerX:O.x,centerY:O.y,targetRadius:Math.min(Mt,Ct)*.32,currentRadius:Math.min(Mt,Ct)*.32,nodes:new Map,edges:[],stopping:!1,lastFileKey:null,parentSessionId:_,ringCounts:[],layoutAngle:j,isChild:$,childIndex:I,compacting:0,compacted:0,promptSnakes:[],agentPositionMap:new Map},K=ka(s.session_id);B.ringSpeeds=Br.map((X,U)=>X*(1+(K+(U*2-1))/7*.2)),t.set(s.session_id,B)}const f=t.get(s.session_id);if(f.eventCount=(f.eventCount||0)+1,f.label.length<=8||f.label.startsWith("#")){let v="";if(s.cwd){const k=s.cwd.split("/").filter(Boolean);v=k[k.length-1]||""}if(!v){const k=((c=s.tool_input)==null?void 0:c.file_path)||((m=s.tool_input)==null?void 0:m.path)||"";if(k.includes("/")){const P=k.split("/").filter(Boolean),_=P.lastIndexOf("src");_>0?v=P[_-1]:P.length>=3&&(v=P[P.length-3])}}v&&v.length>1&&(f.label=v)}if(s.hook_event_name==="Stop"){f.stopping=!0;for(const v of f.nodes.values())v.age=Math.max(v.age,80)}if(s.hook_event_name==="PermissionRequest"&&(f.awaitingPermission=!0),(s.hook_event_name==="PostToolUse"||s.hook_event_name==="PreToolUse")&&(f.awaitingPermission=!1),s.hook_event_name==="PreToolUse"&&s.tool_use_id&&n.set(s.tool_use_id,s.timestamp),s.hook_event_name==="SubagentStart"){const v=s.agent_id||`${s.session_id}-sub`,k=`agent:${v}`;if(!f.nodes.has(k)){const P=Math.random()*Math.PI*2;f.nodes.set(k,{key:k,label:s.agent_type||"agent",nodeType:"agent",baseRadius:3,color:ho("#c084fc"),colorHex:"#c084fc",x:f.centerX+Math.cos(P)*32,y:f.centerY+Math.sin(P)*32,vx:0,vy:0,age:0,lastEventIndex:e.length-1,lastTool:null,lastTimestamp:s.timestamp,eventCount:1,awaitingPermission:!1,orbitRing:-1,orbitAngle:P,orbitSpeed:.007,orbitRadius:32,life:1,entry:0,impactType:null,impactTime:0,actionLabel:null,actionFade:0,marks:[]});const _=f.nodes.get(k);f.agentPositionMap.set(v,{x:_.x,y:_.y}),console.log(`[Store] Agent ${v} registered at (${_.x.toFixed(0)}, ${_.y.toFixed(0)})`)}l();return}if(s.hook_event_name==="SubagentStop"){const v=s.agent_id||`${s.session_id}-sub`,k=`agent:${v}`,P=f.nodes.get(k);P&&(P.life=.08,P.impactType="fade",P.impactTime=1,f.agentPositionMap.delete(v)),l();return}if(s.hook_event_name==="SessionEnd"){f.stopping=!0;for(const v of f.nodes.values())v.age=Math.max(v.age,80);l();return}if(s.hook_event_name==="UserPromptSubmit"){if(!u){f.coreAct=1;const k=(s.prompt||"").trim().split(/\s+/).filter(P=>P.length>0);if(k.length>0){const P=Math.random()*Math.PI*2,_=Math.max(window.innerWidth,window.innerHeight)*.8,g=Tp(f.centerX,f.centerY,P,_),T=s.color||"#b0c8f0",$={words:k,color:T,progress:0,splinePath:g,startAngle:P};f.promptSnakes.push($),Xc(void 0,"UserPromptSubmit")}}l();return}if(s.hook_event_name==="SessionStart"){s.model&&(f.model=s.model),s.source&&(f.source=s.source),f.coreAct=1,l();return}if(s.hook_event_name==="PreCompact"){r&&(f.coreAct=1,f.compacting=1),l();return}if(s.hook_event_name==="PostCompact"){r&&(f.coreAct=1,f.compacted=1),f.eventCount=Math.floor((f.eventCount||0)*.25),l();return}const S=pi(s);if(!S){l();return}const d=zp[s.tool_name||s.hook_event_name]??Op,h=_a(d),y=ho(h),w=Dp(s),C=w==="file";let p="";if((s.hook_event_name==="PostToolUse"||s.hook_event_name==="PostToolUseFailure")&&s.tool_use_id){const v=n.get(s.tool_use_id);if(v){const k=s.timestamp-v;p=k<1e3?`${k}ms`:`${(k/1e3).toFixed(1)}s`,n.delete(s.tool_use_id)}}if(f.nodes.has(S)){const v=f.nodes.get(S);if(v.lastTool=s.tool_name||s.hook_event_name||null,v.lastTimestamp=s.timestamp,v.eventCount++,v.colorHex=h,v.color=y,C&&(v.baseRadius=Math.min(8,v.baseRadius+.3)),s.hook_event_name==="PostToolUseFailure")v.impactType="fail",v.impactTime=1,s.is_interrupt?v.actionLabel="⏹ interrupted"+(p?` ${p}`:""):v.actionLabel="✗ error"+(p?` ${p}`:""),v.actionFade=0;else if(s.hook_event_name==="PostToolUse"){const k=s.tool_name||"";["Read","Grep","Glob"].includes(k)?v.impactType="scan":["Edit","Write"].includes(k)?v.impactType="morph":k==="Bash"?v.impactType="spark":v.impactType="scan",v.impactTime=1;const P=Ma(s,p||void 0);P!==k&&(v.actionLabel=P)}else{const k=s.tool_name||s.hook_event_name||"";["Read","Grep","Glob"].includes(k)?v.impactType="scan":["Edit","Write"].includes(k)?v.impactType="morph":k==="Bash"?v.impactType="spark":k==="Notification"?v.impactType="ping":k==="Stop"?v.impactType="fade":v.impactType="scan",v.impactTime=1,v.actionLabel=Ma(s),v.actionFade=s.hook_event_name==="Stop"||s.hook_event_name==="Notification"?1:0}}else{if(!C&&!r){l();return}const v=Pa(f);f.ringCounts[v]++;const k=f.ringSpeeds,P=k?k[v]:Br[v],_=Sr[v],g=0;if(f.nodes.set(S,{key:S,label:Ap(s),nodeType:w,baseRadius:C?2.5+Math.min(9,1)*.45:4,color:y,colorHex:h,x:f.centerX+Math.cos(g)*_,y:f.centerY+Math.sin(g)*_,vx:0,vy:0,age:0,lastEventIndex:e.length-1,lastTool:s.tool_name||s.hook_event_name||null,lastTimestamp:s.timestamp,eventCount:1,awaitingPermission:!1,orbitRing:v,orbitAngle:g,orbitSpeed:P,orbitRadius:_,life:1,entry:0,impactType:null,impactTime:0,actionLabel:null,actionFade:0,marks:[]}),di(f,v),s.hook_event_name==="PostToolUseFailure"){const T=f.nodes.get(S);T.impactType="fail",T.impactTime=1,s.is_interrupt?T.actionLabel="⏹ interrupted"+(p?` ${p}`:""):T.actionLabel="✗ error"+(p?` ${p}`:""),T.actionFade=0}else if(s.hook_event_name==="Stop"||s.hook_event_name==="Notification"){const T=f.nodes.get(S);T.actionLabel=s.tool_name||s.hook_event_name,T.actionFade=1}}S&&C&&(f.lastFileKey&&f.lastFileKey!==S&&f.nodes.has(f.lastFileKey)&&(f.edges.some(k=>k.fromKey===f.lastFileKey&&k.toKey===S)||f.edges.push({fromKey:f.lastFileKey,toKey:S,color:y,colorHex:h,age:0})),f.lastFileKey=S),l()}function i(){r=!0}function a(s){for(const u of s){const f=u.session_id,S=Ca(t.size,[...t.values()]),d=ka(f),h={sessionId:f,label:u.label,centerX:S.x,centerY:S.y,targetRadius:Math.min(Mt,Ct)*.32,currentRadius:Math.min(Mt,Ct)*.32,nodes:new Map,edges:[],stopping:u.stopping,lastFileKey:null,parentSessionId:null,ringCounts:[],layoutAngle:0,isChild:!1,childIndex:0,compacting:0,compacted:0,promptSnakes:[],agentPositionMap:new Map};h.ringSpeeds=Br.map((w,C)=>w*(1+(d+(C*2-1))/7*.2)),h.eventCount=u.eventCount;for(const w of u.nodes){const C=Pa(h);h.ringCounts[C]=(h.ringCounts[C]||0)+1;const c=h.ringSpeeds[C]??Br[C],m=Sr[C],v=0,k=_a(w.colorHex);h.nodes.set(w.key,{key:w.key,label:w.label,nodeType:w.nodeType,baseRadius:w.baseRadius,color:ho(k),colorHex:k,x:S.x+Math.cos(v)*m,y:S.y+Math.sin(v)*m,vx:0,vy:0,age:0,lastEventIndex:0,lastTool:null,lastTimestamp:Date.now(),eventCount:1,awaitingPermission:!1,orbitRing:C,orbitAngle:v,orbitSpeed:c,orbitRadius:m,life:1,entry:1,impactType:null,impactTime:0,actionLabel:null,actionFade:0,marks:[]})}const y=new Set(h.ringCounts.map((w,C)=>C).filter(w=>h.ringCounts[w]>0));for(const w of y)di(h,w);t.set(f,h)}r=!0}return{addEvent:o,markReplayDone:i,initFromSnapshot:a,getBuffer:()=>[...e],getSessions:()=>t}}const Wp=5,Bp=12;function Hp(e){for(const t of e.values()){t.compacting=Math.max(0,t.compacting-3e-4),t.compacted=Math.max(0,t.compacted-5e-4);for(const r of t.nodes.values()){if(r.targetOrbitAngle!==void 0){const l=r.targetOrbitAngle-r.orbitAngle,o=Math.atan2(Math.sin(l),Math.cos(l));r.orbitAngle+=o*.015,Math.abs(o)>.01&&(r.marks=[]),Math.abs(o)<.01&&(r.orbitAngle=r.targetOrbitAngle,delete r.targetOrbitAngle)}else r.orbitAngle+=r.orbitSpeed;if(r.x=t.centerX+Math.cos(r.orbitAngle)*r.orbitRadius,r.y=t.centerY+Math.sin(r.orbitAngle)*r.orbitRadius,r.nodeType==="agent"){const l=r.key.replace("agent:","");t.agentPositionMap.set(l,{x:r.x,y:r.y})}if(r.orbitRing>=0){const l=Wp/r.orbitRadius,o=r.marks.length>0?r.marks[r.marks.length-1]:null;(o===null||Math.abs(r.orbitAngle-o)>=l)&&(r.marks.push(r.orbitAngle),r.marks.length>Bp&&r.marks.shift())}r.impactTime=Math.max(0,r.impactTime-.022),r.actionFade=Math.max(0,r.actionFade-.003),r.entry=Math.min(1,r.entry+.01),r.nodeType!=="file"&&r.life<.15&&(r.life=Math.max(0,r.life-.004))}t.promptSnakes||(t.promptSnakes=[]);for(const r of t.promptSnakes)r.progress=Math.min(1,r.progress+.003);t.promptSnakes=t.promptSnakes.filter(r=>r.progress<1);const n=new Set;for(const[r,l]of t.nodes)l.nodeType!=="file"&&l.life<=0&&(l.orbitRing>=0&&l.orbitRing<t.ringCounts.length&&(n.add(l.orbitRing),t.ringCounts[l.orbitRing]=Math.max(0,t.ringCounts[l.orbitRing]-1)),t.nodes.delete(r));for(const r of n)di(t,r)}}const yt=[70,120,175,225];function Ht(e){const t=e.replace("#","");return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function Vp(e,t,n,r,l){const[o,i,a]=Ht(t.color),s=t.progress,u=t.splinePath,f=.65,S=t.words.length>1?f/(t.words.length-1):0,d=s*(1+f),h=7*(.6+Math.min(1,s*2)*.4);for(let y=0;y<t.words.length;y++){const w=t.words[y],C=t.words.length-1-y,p=d-S*C;if(p<0||p>1)continue;const c=$p(u,p),m=Ep(u,p),v=Math.atan2(m.y,m.x),k=Math.min(1,p*5),P=Math.min(1,(1-p)*5),_=k*P;if(_<=.01)continue;const g=t.sourceNodeKey?8:18,T=t.sourceNodeKey?_*.1:_*.2,$=e.createRadialGradient(c.x,c.y,0,c.x,c.y,g);$.addColorStop(0,`rgba(${o},${i},${a},${T})`),$.addColorStop(1,"rgba(0,0,0,0)"),e.beginPath(),e.arc(c.x,c.y,g,0,Math.PI*2),e.fillStyle=$,e.fill(),e.save(),e.translate(c.x,c.y),e.rotate(v),e.textAlign="center",e.textBaseline="middle",e.font=`700 ${h}px monospace`,e.fillStyle=`rgba(0,0,0,${_*.3})`,e.fillText(w,1,1),e.fillStyle=`rgba(${o},${i},${a},${_})`,e.fillText(w,0,0),e.restore()}}function Gp(e,t,n){if(!t.impactType||t.impactTime<=0)return;const[r,l,o]=Ht(t.colorHex),i=t.impactTime,a=t.baseRadius;if(t.impactType==="scan"){const s=a+(1-i)*30;e.beginPath(),e.arc(t.x,t.y,s,0,Math.PI*2),e.strokeStyle=`rgba(${r},${l},${o},${i*.55})`,e.lineWidth=.8,e.stroke()}else if(t.impactType==="morph"){const s=a+(1-i)*18,u=a+(1-i)*28;e.beginPath(),e.arc(t.x,t.y,s,0,Math.PI*2),e.strokeStyle=`rgba(${r},${l},${o},${i*.6})`,e.lineWidth=1.2,e.stroke(),e.beginPath(),e.arc(t.x,t.y,u,0,Math.PI*2),e.strokeStyle=`rgba(${r},${l},${o},${i*.25})`,e.lineWidth=.6,e.stroke()}else if(t.impactType==="spark")for(let s=0;s<6;s++){const u=s/6*Math.PI*2+n*.5,f=a+3,S=a+3+(1-i)*16;e.beginPath(),e.moveTo(t.x+Math.cos(u)*f,t.y+Math.sin(u)*f),e.lineTo(t.x+Math.cos(u)*S,t.y+Math.sin(u)*S),e.strokeStyle=`rgba(${r},${l},${o},${i*.65})`,e.lineWidth=.8,e.stroke()}else if(t.impactType==="ping"){const s=a+(1-i)*22;e.beginPath(),e.arc(t.x,t.y,s,0,Math.PI*2),e.strokeStyle=`rgba(${r},${l},${o},${i*.45})`,e.lineWidth=.7,e.stroke()}else if(t.impactType==="fade"){const s=a+i*22;e.beginPath(),e.arc(t.x,t.y,s,0,Math.PI*2),e.strokeStyle=`rgba(${r},${l},${o},${(1-i)*.5})`,e.lineWidth=.6,e.stroke()}else if(t.impactType==="fail"){const s=a+(1-i)*25;e.beginPath(),e.arc(t.x,t.y,s,0,Math.PI*2),e.strokeStyle=`rgba(248,113,113,${i*.55})`,e.lineWidth=.8,e.stroke();for(let u=0;u<4;u++){const f=u/4*Math.PI+Math.PI/4,S=a+2,d=a+2+(1-i)*18;e.beginPath(),e.moveTo(t.x+Math.cos(f)*S,t.y+Math.sin(f)*S),e.lineTo(t.x+Math.cos(f)*d,t.y+Math.sin(f)*d),e.strokeStyle=`rgba(248,113,113,${i*.85})`,e.lineWidth=1.4,e.stroke()}}}function Xp(e,t,n,r,l,o){const i=e.createRadialGradient(t/2,n/2,0,t/2,n/2,Math.max(t,n)*.75);i.addColorStop(0,"rgba(6,3,18,0.45)"),i.addColorStop(1,"rgba(0,0,0,0)"),e.fillStyle=i,e.fillRect(0,0,t,n);for(const a of r.values()){const s=a.centerX,u=a.centerY,f=a.awaitingPermission;for(let g=0;g<a.ringCounts.length&&g<yt.length;g++)a.ringCounts[g]>0&&(e.beginPath(),e.arc(s,u,yt[g],0,Math.PI*2),e.strokeStyle="rgba(255,255,255,0.045)",e.lineWidth=.6,e.stroke());const S=3;for(const g of a.nodes.values()){if(g.orbitRing<0||g.marks.length===0)continue;const T=g.nodeType==="file"?.5:g.life*.4*Math.min(1,g.entry);if(T<=.01)continue;const $=S/g.orbitRadius,I=g.marks.length;for(let O=0;O<I;O++){const j=(O+1)/I,B=T*j;if(B<=.01)continue;const K=g.marks[O];e.beginPath(),e.arc(s,u,g.orbitRadius,K-$/2,K+$/2),e.strokeStyle=`rgba(255,255,255,${B})`,e.lineWidth=1.2,e.stroke()}}for(const g of a.nodes.values())Gp(e,g,o);for(const g of a.nodes.values()){if(g.nodeType!=="agent")continue;const[T,$,I]=Ht(g.colorHex);if(Math.min(1,g.entry)<=.01)continue;const j=1.8,B=o*2.5,K=7,X=e.createRadialGradient(g.x,g.y,0,g.x,g.y,K*2.5);X.addColorStop(0,`rgba(${T},${$},${I},0.25)`),X.addColorStop(1,"rgba(0,0,0,0)"),e.beginPath(),e.arc(g.x,g.y,K*2.5,0,Math.PI*2),e.fillStyle=X,e.fill();const U=6;for(let E=0;E<U;E++){const R=E/U*Math.PI*2+B,x=(E+.38)/U*Math.PI*2+B;e.beginPath(),e.arc(g.x,g.y,K,R,x),e.strokeStyle=`rgba(${T},${$},${I},1)`,e.lineWidth=1,e.stroke()}e.save(),e.translate(g.x,g.y),e.rotate(Math.PI/4+o*1.5),e.fillStyle=`rgba(${T},${$},${I},1)`,e.fillRect(-j,-j,j*2,j*2),e.restore(),e.textAlign="center",e.font="7px monospace",e.fillStyle=`rgba(${T},${$},${I},0.9)`,e.fillText(g.label,g.x,g.y+K+6)}for(const g of a.nodes.values()){if(g.nodeType==="file"||g.nodeType==="agent")continue;const[T,$,I]=Ht(g.colorHex),O=Math.min(1,g.entry);if(O<=.01)continue;const j=g.baseRadius*Math.min(1,g.entry);if(g.impactTime>.1){const B=e.createRadialGradient(g.x,g.y,0,g.x,g.y,j*5);B.addColorStop(0,`rgba(${T},${$},${I},${O*g.impactTime*.15})`),B.addColorStop(1,"rgba(0,0,0,0)"),e.beginPath(),e.arc(g.x,g.y,j*5,0,Math.PI*2),e.fillStyle=B,e.fill()}e.save(),e.translate(g.x,g.y),e.rotate(Math.PI/4),e.fillStyle=`rgba(${T},${$},${I},${O*.9})`,e.fillRect(-j,-j,j*2,j*2),e.restore(),e.textAlign="center",e.font="9px monospace",e.fillStyle=`rgba(${T},${$},${I},${O*.85})`,e.fillText(g.label,g.x,g.y-j-5),g.actionFade>0&&g.actionLabel&&(e.font="700 8px monospace",e.fillStyle=`rgba(${T},${$},${I},${g.actionFade*O})`,e.fillText(g.actionLabel,g.x,g.y+j+13))}for(const g of a.nodes.values()){if(g.nodeType!=="file")continue;const[T,$,I]=Ht(g.colorHex);if(g.impactTime>.05){const B=e.createRadialGradient(g.x,g.y,0,g.x,g.y,g.baseRadius*4);B.addColorStop(0,`rgba(${T},${$},${I},${g.impactTime*.14})`),B.addColorStop(1,"rgba(0,0,0,0)"),e.beginPath(),e.arc(g.x,g.y,g.baseRadius*4,0,Math.PI*2),e.fillStyle=B,e.fill()}const O=g.impactType==="morph"?g.impactTime*1.8:0,j=g.baseRadius+O;if(e.beginPath(),e.arc(g.x,g.y,j,0,Math.PI*2),e.fillStyle=`rgba(${T},${$},${I},0.92)`,e.fill(),g.awaitingPermission&&$a(e,g.x,g.y,j+7,o),e.font="9px monospace",e.textAlign="center",e.fillStyle=`rgba(${T},${$},${I},0.85)`,e.fillText(g.label,g.x,g.y-j-5),g.actionFade>0&&g.actionLabel){const B=(1-g.actionFade)*10;e.font="700 9px monospace",e.fillStyle=`rgba(${T},${$},${I},${g.actionFade*.95})`,e.fillText(g.actionLabel,g.x,g.y+j+14-B)}}const d=a.isChild,h=1+Math.sin(o*1.2)*.04+(a.coreAct||0)*.1,y=(d?4.5:7)*h;if(d){const g=a.parentSessionId,T=g?r.get(g):null;T&&(e.beginPath(),e.moveTo(s,u),e.lineTo(T.centerX,T.centerY),e.strokeStyle="rgba(160,180,220,0.12)",e.lineWidth=.8,e.setLineDash([4,8]),e.stroke(),e.setLineDash([]))}const[w,C,p]=d?[220,180,100]:[200,210,240],c=e.createRadialGradient(s,u,0,s,u,y*5);c.addColorStop(0,`rgba(${w},${C},${p},${.06+(a.coreAct||0)*.07})`),c.addColorStop(1,"rgba(0,0,0,0)"),e.beginPath(),e.arc(s,u,y*5,0,Math.PI*2),e.fillStyle=c,e.fill(),e.beginPath(),e.arc(s,u,y*2.2,0,Math.PI*2),e.strokeStyle=`rgba(${w},${C},${p},${.05+(a.coreAct||0)*.05})`,e.lineWidth=.4,e.stroke();const m=e.createRadialGradient(s,u,0,s,u,y);d?(m.addColorStop(0,"rgba(255,230,160,0.95)"),m.addColorStop(.5,"rgba(220,190,110,0.75)"),m.addColorStop(1,"rgba(180,140,60,0.12)")):(m.addColorStop(0,"rgba(240,245,255,0.98)"),m.addColorStop(.5,"rgba(200,215,245,0.78)"),m.addColorStop(1,"rgba(160,180,230,0.15)")),e.beginPath(),e.arc(s,u,y,0,Math.PI*2),e.fillStyle=m,e.fill();const v=a.compacting||0;if(v>0){const g=a.ringCounts.length>0?yt[Math.min(a.ringCounts.length-1,yt.length-1)]:yt[0];for(let I=0;I<5;I++){const O=I*.15,j=Math.max(0,Math.min(1,(1-v-O)/(1-O)));if(j>=1)continue;const K=g*(.4+I*.15)*(1-j),X=(1-j)*.45;if(X<=.01)continue;e.beginPath(),e.arc(s,u,K,0,Math.PI*2),e.strokeStyle=`rgba(180,190,210,${X})`,e.lineWidth=1.5+j*2,e.stroke();const U=8;for(let E=0;E<U;E++){const R=E/U*Math.PI*2,x=6+j*18,W=s+Math.cos(R)*K,V=u+Math.sin(R)*K,re=s+Math.cos(R)*(K+x),z=u+Math.sin(R)*(K+x),se=e.createLinearGradient(re,z,W,V);se.addColorStop(0,"rgba(180,190,210,0)"),se.addColorStop(1,`rgba(220,225,240,${X*.7})`),e.beginPath(),e.moveTo(re,z),e.lineTo(W,V),e.strokeStyle=se,e.lineWidth=.7,e.stroke()}}const T=(1-v)*y*6+y,$=e.createRadialGradient(s,u,0,s,u,T);$.addColorStop(0,`rgba(10,10,20,${(1-v)*.5})`),$.addColorStop(.4,`rgba(100,110,140,${(1-v)*.15})`),$.addColorStop(1,"rgba(0,0,0,0)"),e.beginPath(),e.arc(s,u,T,0,Math.PI*2),e.fillStyle=$,e.fill(),e.beginPath(),e.arc(s,u,y+2,0,Math.PI*2),e.strokeStyle=`rgba(200,210,240,${(1-v)*.6})`,e.lineWidth=1.5,e.stroke()}const k=a.compacted||0;if(k>0){const g=1-k,T=a.ringCounts.length>0?yt[Math.min(a.ringCounts.length-1,yt.length-1)]:yt[0],$=8;for(let j=0;j<$;j++){const B=j/$*Math.PI*2,K=g*T*1.2,X=s+Math.cos(B)*K,U=u+Math.sin(B)*K,E=e.createLinearGradient(s,u,X,U);E.addColorStop(0,`rgba(255,240,200,${k*.6})`),E.addColorStop(.5,`rgba(255,220,140,${k*.25})`),E.addColorStop(1,"rgba(255,200,100,0)"),e.beginPath(),e.moveTo(s,u),e.lineTo(X,U),e.strokeStyle=E,e.lineWidth=2.5*k,e.stroke()}const I=g*T*.9;e.beginPath(),e.arc(s,u,I,0,Math.PI*2),e.strokeStyle=`rgba(255,230,180,${k*.5})`,e.lineWidth=3*k,e.stroke();const O=e.createRadialGradient(s,u,0,s,u,y*5*k);O.addColorStop(0,`rgba(255,245,220,${k*.45})`),O.addColorStop(.5,`rgba(255,220,160,${k*.15})`),O.addColorStop(1,"rgba(0,0,0,0)"),e.beginPath(),e.arc(s,u,y*5*k,0,Math.PI*2),e.fillStyle=O,e.fill()}f&&$a(e,s,u,y+8,o);for(const g of a.promptSnakes)Vp(e,g);const P=a.coreLabelFade||0;if(P>0){const g=a.coreLabelText,T=a.coreLabelColor||"#b0c8f0",[$,I,O]=Ht(T),j=(1-P)*7;e.font="700 9px monospace",e.textAlign="center",e.fillStyle=`rgba(${$},${I},${O},${P*.9})`,e.fillText(g,s,u-y-8-j)}e.font="9px monospace",e.textAlign="center",e.fillStyle=d?"rgba(220,190,120,0.65)":"rgba(190,205,235,0.7)",e.fillText(`${d?"agent":"session"}:${a.label}`,s,u+y+14);const _=a.model;_&&(e.font="7px monospace",e.fillStyle="rgba(140,150,170,0.5)",e.fillText(_.replace("claude-",""),s,u+y+24))}for(const a of l){const[s,u,f]=Ht(a.colorHex),S=Fp(a.cluster,a.agentId||null);if(a.agentId){const c=a.cluster.agentPositionMap.has(a.agentId),m=a.cluster.agentPositionMap.size;console.log(`[Renderer] agentId=${a.agentId}, inMap=${c}, mapSize=${m}, origin=(${S.x},${S.y})`)}const d=S.x,h=S.y,y=a.node.x,w=a.node.y,C=a.inbound?{x:y,y:w}:{x:d,y:h},p=a.inbound?{x:d,y:h}:{x:y,y:w};Yp(e,a.tool,a.progress,C,p,s,u,f,o)}}function yo(e){return e<.5?2*e*e:-1+(4-2*e)*e}function Yp(e,t,n,r,l,o,i,a,s){const u=yo(Math.min(n,1)),f=r.x+(l.x-r.x)*u,S=r.y+(l.y-r.y)*u;if(t==="Read"){const d=l,h=r,y=18;if(n<.45){const w=n/.45,C=Math.min(1,w*4),p=h.y+y-w*y*2,c=14,m=y;e.strokeStyle=`rgba(${o},${i},${a},${C*.18})`,e.lineWidth=.5;const v=5;for(const[_,g]of[[-1,-1],[1,-1],[-1,1],[1,1]])e.beginPath(),e.moveTo(h.x+_*c,h.y+g*m),e.lineTo(h.x+_*c,h.y+g*m-g*v),e.stroke(),e.beginPath(),e.moveTo(h.x+_*c,h.y+g*m),e.lineTo(h.x+_*c-_*v,h.y+g*m),e.stroke();e.beginPath(),e.moveTo(h.x-c,p),e.lineTo(h.x+c,p),e.strokeStyle=`rgba(${o},${i},${a},${C*.85})`,e.lineWidth=1.2,e.stroke(),e.beginPath(),e.moveTo(h.x-c,p),e.lineTo(h.x+c,p),e.strokeStyle=`rgba(${o},${i},${a},${C*.12})`,e.lineWidth=8,e.stroke(),e.fillStyle=`rgba(${o},${i},${a},${C*.035})`,e.fillRect(h.x-c,p,c*2,h.y+y-p);const k=3.5,P=Math.floor(y*2/k);for(let _=0;_<P;_++){const g=h.y-y+_*k+2;if(g<p)continue;const T=g-p;if(T>14)continue;const $=C*.22*(1-T/14),I=4+_*7%5*2.5,O=h.x-8+_*3%5*1.5;e.beginPath(),e.moveTo(O-I*.5,g),e.lineTo(O+I*.5,g),e.strokeStyle=`rgba(${o},${i},${a},${$})`,e.lineWidth=.5,e.stroke()}if(w>.88){const _=(w-.88)/.12;e.beginPath(),e.arc(h.x,h.y,_*16,0,Math.PI*2),e.strokeStyle=`rgba(${o},${i},${a},${(1-_)*.4})`,e.lineWidth=.7,e.stroke()}}else{const w=(n-.45)/.55,C=yo(w),p=Math.max(0,C-.35),c=h.x+(d.x-h.x)*p,m=h.y+(d.y-h.y)*p,v=h.x+(d.x-h.x)*C,k=h.y+(d.y-h.y)*C,P=e.createLinearGradient(c,m,v,k);P.addColorStop(0,`rgba(${o},${i},${a},0)`),P.addColorStop(1,`rgba(${o},${i},${a},0.5)`),e.beginPath(),e.moveTo(c,m),e.lineTo(v,k),e.strokeStyle=P,e.lineWidth=1.2,e.stroke();const _=5;for(let g=0;g<_;g++){const T=g/_*.3,$=Math.min(1,Math.max(0,C-T));if($<=0)continue;const I=h.x+(d.x-h.x)*$,O=h.y+(d.y-h.y)*$,j=$<.1?$/.1:$>.85?(1-$)/.15:1;e.beginPath(),e.arc(I,O,2.5-g*.3,0,Math.PI*2),e.fillStyle=`rgba(${o},${i},${a},${j*.8})`,e.fill()}if(e.beginPath(),e.arc(v,k,2,0,Math.PI*2),e.fillStyle="rgba(255,255,255,0.9)",e.fill(),w>.85){const g=(w-.85)/.15;e.beginPath(),e.arc(d.x,d.y,g*16,0,Math.PI*2),e.strokeStyle=`rgba(${o},${i},${a},${(1-g)*.6})`,e.lineWidth=.8,e.stroke()}}}else if(t==="Grep"||t==="Glob"){let d=function(h){const y=Math.sin(h*127.1+311.7)*43758.5453;return y-Math.floor(y)};if(t==="Grep"){const h=Math.atan2(l.y-r.y,l.x-r.x),y=Math.hypot(l.x-r.x,l.y-r.y),w=16,C=.65;if(u<.18){const p=1-u/.18,c=e.createRadialGradient(r.x,r.y,0,r.x,r.y,36);c.addColorStop(0,`rgba(${o},${i},${a},${p*.9})`),c.addColorStop(.5,`rgba(${o},${i},${a},${p*.3})`),c.addColorStop(1,"rgba(0,0,0,0)"),e.beginPath(),e.arc(r.x,r.y,36,0,Math.PI*2),e.fillStyle=c,e.fill()}for(let p=0;p<w;p++){const c=p/(w-1)*2-1,m=h+c*C+(d(p*2.3+1)-.5)*.2,v=.65+d(p*3.7+2)*.45,k=d(p*1.3+.5)*.06,P=Math.min(1,Math.max(0,(u-k)/(1-k))*v);if(P<=0)continue;const _=P*y,g=r.x+Math.cos(m)*_,T=r.y+Math.sin(m)*_,$=(1-P*.8)*(.9-Math.abs(c)*.25),I=(1-P*.55)*(1.6+d(p*5.1+3)*1.4),O=r.x+Math.cos(m)*Math.max(0,_-y*.09),j=r.y+Math.sin(m)*Math.max(0,_-y*.09),B=e.createLinearGradient(O,j,g,T);B.addColorStop(0,`rgba(${o},${i},${a},0)`),B.addColorStop(1,`rgba(${o},${i},${a},${$*.5})`),e.beginPath(),e.moveTo(O,j),e.lineTo(g,T),e.strokeStyle=B,e.lineWidth=I*.5,e.stroke(),e.beginPath(),e.arc(g,T,I,0,Math.PI*2),e.fillStyle=`rgba(${o},${i},${a},${$})`,e.fill()}}else{const h=l.x-r.x,y=l.y-r.y,w=Math.hypot(h,y),C=-y/w,p=h/w,c=12;for(let m=0;m<c;m++){const v=(d(m*2.1+.3)-.5)*2*70,k=d(m*1.7+.9)*.07,P=Math.min(1,Math.max(0,(u-k)/(1-k)));if(P<=0)continue;const _=v*Math.sin(P*Math.PI),g=r.x+h*P+C*_,T=r.y+y*P+p*_,$=Math.min(1,P*4)*(1-P*.75),I=1.2+d(m*3.3+1)*1.8,O=r.x+h*P,j=r.y+y*P;e.beginPath(),e.moveTo(O,j),e.lineTo(g,T),e.strokeStyle=`rgba(${o},${i},${a},${$*.2})`,e.lineWidth=.5,e.stroke(),e.beginPath(),e.arc(g,T,I,0,Math.PI*2),e.fillStyle=`rgba(${o},${i},${a},${$*.9})`,e.fill()}if(e.beginPath(),e.arc(f,S,2.5,0,Math.PI*2),e.fillStyle=`rgba(${o},${i},${a},0.95)`,e.fill(),n>.82){const m=(n-.82)/.18;e.beginPath(),e.arc(l.x,l.y,m*22,0,Math.PI*2),e.strokeStyle=`rgba(${o},${i},${a},${(1-m)*.5})`,e.lineWidth=.8,e.stroke()}}}else if(t==="Edit"){const d=e.createLinearGradient(r.x,r.y,f,S);d.addColorStop(0,`rgba(${o},${i},${a},0.5)`),d.addColorStop(.7,`rgba(${o},${i},${a},0.35)`),d.addColorStop(1,`rgba(${o},${i},${a},0.75)`),e.beginPath(),e.moveTo(r.x,r.y),e.lineTo(f,S),e.strokeStyle=d,e.lineWidth=2,e.stroke(),e.beginPath(),e.moveTo(r.x,r.y),e.lineTo(f,S),e.strokeStyle=`rgba(${o},${i},${a},0.07)`,e.lineWidth=8,e.stroke();for(let h=3;h>=0;h--){const y=(4-h)*2.5+1,w=(.08-h*.015)*(1+Math.sin(s*12+h)*.3),C=Math.cos(s*5+h*1.4)*h*1.5,p=Math.sin(s*4+h*2.1)*h*1.5;e.beginPath(),e.arc(f+C,S+p,y,0,Math.PI*2),e.fillStyle=`rgba(${o},${i},${a},${w})`,e.fill()}e.beginPath(),e.arc(f,S,2,0,Math.PI*2),e.fillStyle=`rgba(${o},${i},${a},0.95)`,e.fill(),e.beginPath(),e.arc(f,S,.7,0,Math.PI*2),e.fillStyle="rgba(255,255,255,0.9)",e.fill()}else if(t==="Write"){e.beginPath(),e.moveTo(r.x,r.y),e.lineTo(l.x,l.y),e.strokeStyle=`rgba(${o},${i},${a},0.07)`,e.lineWidth=14,e.stroke(),e.beginPath(),e.moveTo(r.x,r.y),e.lineTo(l.x,l.y),e.strokeStyle=`rgba(${o},${i},${a},0.18)`,e.lineWidth=3,e.stroke();for(let d=0;d<5;d++){const h=((u*1.6-d*.2)%1+1)%1;if(h>.98)continue;const y=yo(h),w=r.x+(l.x-r.x)*y,C=r.y+(l.y-r.y)*y,p=h>.85?(1-h)/.15:1,c=.7+.3*Math.sin(s*22+d*1.4);e.beginPath(),e.arc(w,C,3.8,0,Math.PI*2),e.fillStyle=`rgba(${o},${i},${a},${p*.75})`,e.fill(),e.beginPath(),e.arc(w,C,1.3,0,Math.PI*2),e.fillStyle=`rgba(255,255,255,${p*c*.95})`,e.fill()}if(n>.8){const d=(n-.8)/.2;e.beginPath(),e.arc(l.x,l.y,d*14,0,Math.PI*2),e.strokeStyle=`rgba(${o},${i},${a},${(1-d)*.5})`,e.lineWidth=1,e.stroke()}}else if(t==="Bash"){const y=l.x-31,w=l.y-52/2,C=Math.min(1,n*3);e.fillStyle=`rgba(15,15,20,${C*.92})`,e.beginPath(),e.roundRect(y,w,62,52,3),e.fill(),e.strokeStyle=`rgba(${o},${i},${a},${C*.5})`,e.lineWidth=1,e.beginPath(),e.roundRect(y,w,62,52,3),e.stroke(),e.fillStyle=`rgba(${o},${i},${a},${C*.15})`,e.beginPath(),e.roundRect(y,w,62,9,[3,3,0,0]),e.fill();for(let _=0;_<3;_++)e.fillStyle=`rgba(${_===0?"255,95,87":_===1?"254,188,46":"40,200,64"},${C*.8})`,e.beginPath(),e.arc(y+5+_*6,w+4.5,1.5,0,Math.PI*2),e.fill();e.fillStyle=`rgba(${o},${i},${a},${C*.5})`,e.font="5px monospace",e.textAlign="center",e.fillText("bash",y+62/2,w+7),e.save(),e.beginPath(),e.rect(y+1,w+10,60,41),e.clip();const p=["$ npm run build","compiling 42 modules...","transform: es2022","chunk vendor [hash]","minify: terser pass 1","tree-shake: 12 removed","emit: dist/index.js","asset: 142kb gzip:38kb","$ git status","M src/store.ts","M renderer.ts","$ eslint --fix .","fixed 3 warnings","$ tsc --noEmit","no errors found","$ vitest run","PASS tests/unit.ts","PASS tests/e2e.ts","3 passed, 0 failed","$ docker build .","layer 1/5 cached","layer 2/5 RUN npm ci","layer 3/5 COPY .","built in 4.2s","$ deploy --prod","uploading bundle...","deployed v2.1.0 ✓"],c=6.5,m=Math.floor(41/c),v=n/.08,k=Math.floor(v),P=(v-k)*c;e.font="5px monospace",e.textAlign="left";for(let _=-1;_<=m;_++){const g=(k+_)%p.length,T=p[g<0?p.length+g:g],$=w+10+c+_*c-P,I=T.startsWith("$"),O=C*(I?.9:.6);e.fillStyle=I?`rgba(${o},${i},${a},${O})`:`rgba(180,200,180,${O})`,e.fillText(T.slice(0,14),y+3,$)}e.restore(),e.fillStyle=`rgba(0,0,0,${C*.06})`;for(let _=w+10;_<w+52;_+=2)e.fillRect(y,_,62,1)}else if(t==="WebFetch"){const d=l.x-r.x,h=l.y-r.y,y=Math.hypot(d,h),w=-h/y,C=d/y;for(const[m,v]of[[8,.04],[3,.1],[1.5,.7]]){e.beginPath();for(let k=0;k<=50;k++){const P=k/50*u,_=r.x+d*P,g=r.y+h*P,T=Math.sin(P*Math.PI*5-s*10)*6*Math.min(1,P*5)*Math.min(1,(u-P)*8),$=_+w*T,I=g+C*T;k===0?e.moveTo($,I):e.lineTo($,I)}e.strokeStyle=`rgba(${o},${i},${a},${v})`,e.lineWidth=m,e.stroke()}const p=r.x+d*u+w*Math.sin(u*Math.PI*5-s*10)*6,c=r.y+h*u+C*Math.sin(u*Math.PI*5-s*10)*6;e.beginPath(),e.arc(p,c,2.5,0,Math.PI*2),e.fillStyle=`rgba(${o},${i},${a},0.9)`,e.fill(),e.beginPath(),e.arc(p,c,1,0,Math.PI*2),e.fillStyle="rgba(255,255,255,0.9)",e.fill()}else if(t==="Notification"||t==="Stop"){const d=r.x,h=r.y;for(let w=0;w<4;w++){const C=w*.2,p=Math.max(0,(n-C)/(1-C)),c=p*110,m=(1-p)*(.7-w*.12);m<=0||c<=0||(e.beginPath(),e.arc(d,h,c,0,Math.PI*2),e.strokeStyle=`rgba(${o},${i},${a},${m})`,e.lineWidth=1.8-w*.3,e.stroke())}const y=Math.max(0,1-n*4);if(y>0){const w=e.createRadialGradient(d,h,0,d,h,20);w.addColorStop(0,`rgba(${o},${i},${a},${y*.5})`),w.addColorStop(1,`rgba(${o},${i},${a},0)`),e.beginPath(),e.arc(d,h,20,0,Math.PI*2),e.fillStyle=w,e.fill()}e.beginPath(),e.arc(d,h,3+n*2,0,Math.PI*2),e.fillStyle=`rgba(${o},${i},${a},${Math.max(0,.9-n*2)})`,e.fill()}else{const d=Math.max(0,u-.25),h=r.x+(l.x-r.x)*d,y=r.y+(l.y-r.y)*d,w=e.createLinearGradient(h,y,f,S);w.addColorStop(0,`rgba(${o},${i},${a},0)`),w.addColorStop(1,`rgba(${o},${i},${a},0.8)`),e.beginPath(),e.moveTo(h,y),e.lineTo(f,S),e.strokeStyle=w,e.lineWidth=1.2,e.stroke(),e.beginPath(),e.arc(f,S,2,0,Math.PI*2),e.fillStyle=`rgba(${o},${i},${a},0.9)`,e.fill()}}function $a(e,t,n,r,l){for(let i=0;i<10;i++){const a=i/10*Math.PI*2+l*1.2,s=(i+.45)/10*Math.PI*2+l*1.2;e.beginPath(),e.arc(t,n,r,a,s),e.strokeStyle=`rgba(251,191,36,${.7+Math.sin(l*3)*.2})`,e.lineWidth=1.5,e.stroke()}}let hi=[],Gn=[],mi=[],Qc=!1,Kc=0,bc=0;function Qp(e,t){hi=[];const n=Math.floor(e*t/2800);for(let r=0;r<n;r++)hi.push({x:Math.random()*e,y:Math.random()*t,size:Math.random()*1.3+.3,brightness:Math.random()*.6+.1,twinkleSpeed:.1+Math.random()*.5,twinklePhase:Math.random()*Math.PI*2});mi=[];for(let r=0;r<2;r++)mi.push({x:Math.random()*e,y:Math.random()*t,vx:(Math.random()-.5)*.02,vy:(Math.random()-.5)*.015,size:1.2+Math.random()*1.8,rotation:Math.random()*Math.PI*2,rotSpeed:(Math.random()-.5)*.008,brightness:.12+Math.random()*.12});Gn=[],Kc=e,bc=t,Qc=!0}function Kp(e,t,n,r){(!Qc||t!==Kc||n!==bc)&&Qp(t,n);const l=Math.sin(r*.04)*20+15,o=Math.sin(r*.025+1.5)*15+10,i=Math.sin(r*.035+3)*25+30,a=e.createRadialGradient(t*.3,n*.4,0,t*.3,n*.4,t*.5);a.addColorStop(0,`rgba(${Math.floor(l)},${Math.floor(o)},${Math.floor(i)},0.025)`),a.addColorStop(1,"rgba(0,0,0,0)"),e.fillStyle=a,e.fillRect(0,0,t,n);const s=e.createRadialGradient(t*.75,n*.65,0,t*.75,n*.65,t*.4),u=Math.sin(r*.03+2)*18+12,f=Math.sin(r*.02+.7)*12+18,S=Math.sin(r*.045+4.2)*15+20;s.addColorStop(0,`rgba(${Math.floor(u)},${Math.floor(f)},${Math.floor(S)},0.02)`),s.addColorStop(1,"rgba(0,0,0,0)"),e.fillStyle=s,e.fillRect(0,0,t,n);for(const d of hi){const h=.7+.3*Math.sin(r*d.twinkleSpeed*.3+d.twinklePhase),y=d.brightness*h;if(!(y<.03)&&(e.beginPath(),e.arc(d.x,d.y,d.size*.7,0,Math.PI*2),e.fillStyle=`rgba(220,225,240,${y})`,e.fill(),d.size>.8)){const w=d.size*2.2,C=y*.35;e.strokeStyle=`rgba(220,230,255,${C})`,e.lineWidth=.4,e.beginPath(),e.moveTo(d.x-w,d.y),e.lineTo(d.x+w,d.y),e.stroke(),e.beginPath(),e.moveTo(d.x,d.y-w),e.lineTo(d.x,d.y+w),e.stroke()}}for(const d of mi){d.x+=d.vx,d.y+=d.vy,d.rotation+=d.rotSpeed,d.x<-20&&(d.x=t+20),d.x>t+20&&(d.x=-20),d.y<-20&&(d.y=n+20),d.y>n+20&&(d.y=-20),e.save(),e.translate(d.x,d.y),e.rotate(d.rotation),e.beginPath();for(let h=0;h<5;h++){const y=h/5*Math.PI*2,w=d.size*(.7+Math.sin(h*2.3+d.rotation*.3)*.3);h===0?e.moveTo(Math.cos(y)*w,Math.sin(y)*w):e.lineTo(Math.cos(y)*w,Math.sin(y)*w)}e.closePath(),e.fillStyle=`rgba(140,135,150,${d.brightness})`,e.fill(),e.restore()}if(Math.random()<.003){const d=Math.random();let h,y;d<.5?(h=Math.random()*t,y=-10):(h=t+10,y=Math.random()*n*.6);const w=Math.PI*.6+Math.random()*.5,C=2+Math.random()*3;Gn.push({x:h,y,vx:Math.cos(w)*C,vy:Math.sin(w)*C,life:1,maxLife:.8+Math.random()*.6,length:30+Math.random()*50,brightness:.3+Math.random()*.4})}for(let d=Gn.length-1;d>=0;d--){const h=Gn[d];if(h.x+=h.vx,h.y+=h.vy,h.life-=.016/h.maxLife,h.life<=0||h.x<-100||h.x>t+100||h.y>n+100){Gn.splice(d,1);continue}const y=h.brightness*Math.min(1,h.life*3)*Math.min(1,(1-h.life)*4),w=h.x-h.vx/Math.hypot(h.vx,h.vy)*h.length,C=h.y-h.vy/Math.hypot(h.vx,h.vy)*h.length,p=e.createLinearGradient(w,C,h.x,h.y);p.addColorStop(0,"rgba(200,210,240,0)"),p.addColorStop(1,`rgba(200,210,240,${y})`),e.beginPath(),e.moveTo(w,C),e.lineTo(h.x,h.y),e.strokeStyle=p,e.lineWidth=1,e.stroke(),e.beginPath(),e.arc(h.x,h.y,1.2,0,Math.PI*2),e.fillStyle=`rgba(240,245,255,${y})`,e.fill()}}const bp={Read:"#4ade80",Edit:"#60a5fa",Write:"#60a5fa",Bash:"#f59e0b",Grep:"#a78bfa",Glob:"#a78bfa",WebFetch:"#f472b6",Stop:"#888888",Notification:"#34d399",PermissionRequest:"#fbbf24",UserPromptSubmit:"#38bdf8"};function Zp(e){const t=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16),l=Math.round(t*.3+190*.7),o=Math.round(n*.3+190*.7),i=Math.round(r*.3+190*.7);return`#${l.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}${i.toString(16).padStart(2,"0")}`}const Jp=195;function qp(e){let t=1/0,n=-1/0,r=1/0,l=-1/0;for(const i of e.values()){const a=Jp;t=Math.min(t,i.centerX-a),n=Math.max(n,i.centerX+a),r=Math.min(r,i.centerY-a),l=Math.max(l,i.centerY+a)}const o=80;return{minX:t-o,maxX:n+o,minY:r-o,maxY:l+o}}function eh(e,t,n){const r=e.maxX-e.minX,l=e.maxY-e.minY,o=r/l,i=t/n;let a;o>i?a=t/r:a=n/l,a=Math.max(.3,Math.min(4,a*1.4));const s=(e.minX+e.maxX)/2,u=(e.minY+e.maxY)/2,f=(t/2-s)*a,S=(n/2-u)*a;return{targetScale:a,targetOffsetX:f,targetOffsetY:S}}function th({clusters:e,lastEvent:t,onHover:n,onSelect:r,autofitEnabled:l}){const o=D.useRef(null),i=D.useRef(e);i.current=e;const a=D.useRef(l);a.current=l;const s=D.useRef(null),u=D.useRef([]),f=D.useRef(null),S=D.useRef(null),d=D.useRef(0),h=D.useRef(0);return D.useEffect(()=>{const y=o.current,w=y.getContext("2d"),C=Math.min(window.devicePixelRatio||1,2);function p(){const U=window.innerWidth,E=window.innerHeight;y.width=U*C,y.height=E*C,y.style.width=U+"px",y.style.height=E+"px",w.setTransform(C,0,0,C,0,0)}p(),window.addEventListener("resize",p);function c(U){const E=[55,90,125,160,195];for(let R=U.ringCounts.length-1;R>=0;R--)if(U.ringCounts[R]>0)return E[R]??195;return E[0]}let m=!1,v=!1,k={x:0,y:0},P={x:0,y:0},_={x:0,y:0},g=1,T=0,$=1,I=0;const O=U=>{U.preventDefault();const E=U.deltaY<0?1.1:.9;g=Math.max(.2,Math.min(4,g*E)),T=Date.now()},j=U=>{U.button===0&&(m=!0,v=!1,k={x:U.clientX,y:U.clientY},_={x:P.x,y:P.y},T=Date.now())},B=U=>{if(m){const se=U.clientX-k.x,F=U.clientY-k.y;(Math.abs(se)>2||Math.abs(F)>2)&&(v=!0),P={x:_.x+se,y:_.y+F};return}const E=window.innerWidth,R=window.innerHeight,x=(U.clientX-E/2-P.x)/g+E/2,W=(U.clientY-R/2-P.y)/g+R/2;let V=null,re=null,z=28;for(const se of i.current.values())for(const F of se.nodes.values()){const A=Math.hypot(F.x-x,F.y-W);A<z&&(z=A,V=F,re=se)}V!==f.current&&(f.current=V,y.style.cursor=V?"pointer":"default",n(V,re))},K=U=>{if(!v&&U.button===0)if(f.current)if(S.current===f.current)S.current=null,r(null,null);else{S.current=f.current;let R=null;for(const x of i.current.values())if(x.nodes.has(f.current.key)){R=x;break}r(f.current,R)}else S.current=null,r(null,null);m=!1};y.addEventListener("wheel",O,{passive:!1}),y.addEventListener("mousedown",j),window.addEventListener("mousemove",B),window.addEventListener("mouseup",K);function X(){d.current+=.016;const U=d.current,E=window.innerWidth,R=window.innerHeight,x=i.current,W=E/2,V=R/2,re=Array.from(x.entries()),z=re.length;if(z===1){const F=re[0][1];F.centerX+=(W-F.centerX)*.1,F.centerY+=(V-F.centerY)*.1}else{for(let F=0;F<z;F++){const[,A]=re[F],Je=c(A);for(let le=F+1;le<z;le++){const[,oe]=re[le],Fe=c(oe),Ve=Je+Fe+120,mt=oe.centerX-A.centerX,Dt=oe.centerY-A.centerY,nn=Math.sqrt(mt*mt+Dt*Dt)||.01;if(nn<Ve){const Ut=(Ve-nn)/nn*.5;A.centerX-=mt*Ut,A.centerY-=Dt*Ut,oe.centerX+=mt*Ut,oe.centerY+=Dt*Ut}}}for(const[,F]of re)F.centerX+=(W-F.centerX)*.003,F.centerY+=(V-F.centerY)*.003}for(const F of i.current.values()){const A=F;A.coreAct=Math.max(0,(A.coreAct||0)-.014),(A.coreLabelFade||0)>0&&(A.coreLabelFade=Math.max(0,A.coreLabelFade-.003)),(A.compacting||0)>0&&(A.compacting=Math.max(0,A.compacting-3e-4)),(A.compacted||0)>0&&(A.compacted=Math.max(0,A.compacted-5e-4))}Hp(i.current);const se=u.current;for(let F=se.length-1;F>=0;F--){const A=se[F];if(A.progress=Math.min(1,A.progress+.016/A.duration),A.progress>=1){if(A.inbound){const Je=A.cluster;A.tool==="UserPromptSubmit"?(Je.coreLabelFade=1,Je.coreLabelColor=A.colorHex):(Je.coreLabelText=A.tool,Je.coreLabelFade=1,Je.coreLabelColor=A.colorHex)}else A.node.key!=null&&A.cluster.nodes.has(A.node.key)&&(A.node.actionFade=1);se.splice(F,1)}}if(a.current&&i.current.size>0){const F=Date.now(),A=F-T;if(m?$=.1:$=Math.min(1,A/300),F-I>33){const Je=qp(i.current),le=eh(Je,E,R),oe=le.targetScale,Fe=le.targetOffsetX,Ve=le.targetOffsetY;if(I===0)g=oe,P.x=Fe,P.y=Ve;else{const mt=.15*$,Dt=(oe-g)*mt,nn=(Fe-P.x)*mt,Ut=(Ve-P.y)*mt;g+=Math.abs(Dt)>.001?Dt:oe-g,P.x+=Math.abs(nn)>.5?nn:Fe-P.x,P.y+=Math.abs(Ut)>.5?Ut:Ve-P.y}I=F}}w.setTransform(C,0,0,C,0,0),w.fillStyle="#020209",w.fillRect(0,0,E,R),w.save(),w.translate(E/2+P.x,R/2+P.y),w.scale(g,g),w.translate(-E/2,-R/2),Kp(w,E,R,U),Xp(w,E,R,i.current,se,U),w.restore(),h.current=requestAnimationFrame(X)}return h.current=requestAnimationFrame(X),()=>{cancelAnimationFrame(h.current),y.removeEventListener("wheel",O),y.removeEventListener("mousedown",j),window.removeEventListener("mousemove",B),window.removeEventListener("mouseup",K),window.removeEventListener("resize",p)}},[]),D.useEffect(()=>{if(!t||t===s.current||(s.current=t,t.hook_event_name==="PostToolUse"))return;const y=e.get(t.session_id);if(!y)return;y.coreAct=1;const w=t.tool_name||t.hook_event_name||"",C=bp[w]??"#888888",p=Zp(C);if(w==="UserPromptSubmit")return;if(w==="Notification"||w==="PermissionRequest"){const k={x:y.centerX,y:y.centerY};u.current.push({sessionId:t.session_id,cluster:y,node:k,inbound:!1,colorHex:p,tool:"Notification",progress:0,duration:9,agentId:t.agent_id||null});return}const c=pi(t);if(!c)return;const m=y.nodes.get(c)??null;if(!m)return;const v=t.hook_event_name!=="PostToolUseFailure"&&["Read","Grep","Glob","WebFetch"].includes(w);u.current.push({sessionId:t.session_id,cluster:y,node:m,inbound:v,colorHex:p,tool:w,progress:0,duration:w==="Read"?9+Math.random()*1.2:7+Math.random()*1.6,agentId:t.agent_id||null})},[t]),M.jsx("canvas",{ref:o,style:{position:"fixed",inset:0,display:"block"}})}const Ea=["/src/App.tsx","/src/store.ts","/src/types.ts","/src/canvas/renderer.ts","/src/canvas/graph.ts","/server/index.js","/package.json","/client/vite.config.ts","/src/main.tsx","/src/index.css","/src/DebugPanel.tsx","/tests/store.test.ts","/bin/claude-live.js"],Ta=["npm run build","git status","ls -la src/","npx tsc --noEmit","npm test","git diff --stat"];function Na(){return"debug-"+Math.random().toString(36).slice(2,8)}async function xe(e){await fetch("/hook",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}function nh({sessionIds:e,isOpen:t,onClose:n}){const[r,l]=D.useState(Na),o=D.useRef(0),i=D.useRef(0),a=D.useRef("agent-"+Math.random().toString(36).slice(2,7));function s(){return Ea[o.current++%Ea.length]}function u(){return Ta[i.current++%Ta.length]}function f(y,w){return xe({session_id:r,hook_event_name:"PreToolUse",tool_name:y,tool_input:w})}function S(y,w,C){xe({session_id:r,hook_event_name:"PreToolUse",tool_name:y,tool_input:w}),setTimeout(()=>{xe({session_id:r,hook_event_name:"PostToolUse",tool_name:y,tool_input:w,tool_response:C})},100)}const d=[{label:"Read",color:"#4ade80",fn:()=>S("Read",{file_path:s()},{type:"text",file:{filePath:s(),content:"Response data from file read operation with individual letters streaming outward"}})},{label:"Edit",color:"#60a5fa",fn:()=>f("Edit",{file_path:s()})},{label:"Write",color:"#60a5fa",fn:()=>S("Write",{file_path:s(),content:"Writing content to file with response snake animation showing letters outward"},null)},{label:"Grep",color:"#a78bfa",fn:()=>f("Grep",{pattern:"useState",path:"."})},{label:"Glob",color:"#a78bfa",fn:()=>f("Glob",{pattern:"**/*.tsx",path:s()})},{label:"Bash",color:"#f59e0b",fn:()=>S("Bash",{command:u()},{stdout:"bash command output with response letters flowing outward in straight animation paths",stderr:"",interrupted:!1})},{label:"WebFetch",color:"#f472b6",fn:()=>f("WebFetch",{url:"https://api.github.com/repos"})},{label:"Notification",color:"#34d399",fn:()=>xe({session_id:r,hook_event_name:"Notification",tool_input:{message:"Task complete! All files updated."}})},{label:"Permission",color:"#fbbf24",fn:()=>xe({session_id:r,hook_event_name:"PermissionRequest",tool_input:{message:"Allow bash command execution?"}})},{label:"Stop",color:"#888888",fn:()=>xe({session_id:r,hook_event_name:"Stop"})},{label:"SubStart",color:"#c084fc",fn:()=>xe({session_id:r,hook_event_name:"SubagentStart",agent_id:a.current,agent_type:"general-purpose"})},{label:"SubStop",color:"#7c3aed",fn:()=>xe({session_id:r,hook_event_name:"SubagentStop",agent_id:a.current})},{label:"SessEnd",color:"#ef4444",fn:()=>xe({session_id:r,hook_event_name:"SessionEnd"})},{label:"Fail",color:"#f87171",fn:()=>xe({session_id:r,hook_event_name:"PostToolUseFailure",tool_name:"Read",tool_input:{file_path:s()},error:"File not found"})},{label:"Compact↓",color:"#94a3b8",fn:()=>xe({session_id:r,hook_event_name:"PreCompact",trigger:"manual"})},{label:"Compact↑",color:"#38bdf8",fn:()=>xe({session_id:r,hook_event_name:"PostCompact"})},{label:"Prompt",color:"#38bdf8",fn:()=>xe({session_id:r,hook_event_name:"UserPromptSubmit",prompt:"Fix the login bug on the dashboard page"})},{label:"RespRead",color:"#4ade80",fn:()=>S("Read",{file_path:s()},{type:"text",file:{filePath:s(),content:"const response data flowing outward through the canvas with individual letters"}})},{label:"RespWrite",color:"#60a5fa",fn:()=>S("Write",{file_path:s(),content:"Writing response snake letters streaming outward in straight paths with subtle glow effects"},null)},{label:"RespBash",color:"#f59e0b",fn:()=>S("Bash",{command:u()},{stdout:"command output letters flowing smoothly outward from cluster center with proper spacing",stderr:"",interrupted:!1})}];if(!t)return null;const h=e.includes(r)?e:[...e,r];return M.jsxs("div",{className:"panel-overlay",children:[M.jsxs("div",{className:"debug-panel-header",children:[M.jsx("span",{className:"debug-panel-title",children:"debug"}),M.jsx("button",{className:"debug-close",onClick:n,children:"×"})]}),M.jsxs("div",{className:"debug-section",children:[M.jsx("div",{className:"debug-section-label",children:"session"}),M.jsxs("div",{className:"debug-session-row",children:[M.jsx("select",{className:"debug-select",value:r,onChange:y=>l(y.target.value),children:h.map(y=>M.jsx("option",{value:y,children:y.slice(0,18)},y))}),M.jsx("button",{className:"debug-new-btn",onClick:()=>l(Na()),children:"+ new"})]})]}),M.jsxs("div",{className:"debug-section",children:[M.jsx("div",{className:"debug-section-label",children:"fire event"}),M.jsx("div",{className:"debug-tool-grid",children:d.map(({label:y,color:w,fn:C})=>M.jsx("button",{className:"debug-tool-btn",style:{"--tool-color":w},onClick:C,children:y},y))})]})]})}const rh=[{badge:"#",name:"Read",description:"file operations",color:"#22c55e"},{badge:"E",name:"Edit / Write",description:"editing tools",color:"#3b82f6"},{badge:"B",name:"Bash",description:"shell commands",color:"#f97316"},{badge:"G",name:"Grep / Glob",description:"search tools",color:"#a855f7"},{badge:"↗",name:"WebFetch",description:"HTTP requests",color:"#ec4899"},{badge:"!",name:"Notification",description:"notifications",color:"#06b6d4"},{badge:"✓",name:"Stop",description:"tool completion",color:"#666666"},{badge:"⬡",name:"Subagent",description:"subagent execution",color:"#a855f7"}],lh=[{name:"Slide-in bounce",description:"New event arrives at top of log"},{name:"Dot pop",description:"Emphasis animation on new entry (scale/rotate)"},{name:"Scan shimmer",description:"Left-to-right scan effect (processing effect)"},{name:"Fade with time",description:"Entry visibility decreases after 5 seconds"}];function oh({isOpen:e,onClose:t}){return e?M.jsxs("div",{className:"panel-overlay operations-panel",children:[M.jsx("button",{className:"panel-close-btn",onClick:t,children:"×"}),M.jsxs("div",{className:"panel-section",children:[M.jsx("h3",{children:"Node Types"}),M.jsx("div",{className:"node-types-grid",children:rh.map(n=>M.jsxs("div",{className:"node-type-item",children:[M.jsx("div",{className:"node-type-badge",style:{background:n.color},children:n.badge}),M.jsxs("div",{className:"node-type-info",children:[M.jsx("div",{className:"node-type-name",children:n.name}),M.jsx("div",{className:"node-type-description",children:n.description})]})]},n.name))})]}),M.jsxs("div",{className:"panel-section",children:[M.jsx("h3",{children:"Animation Styles"}),M.jsx("div",{className:"animations-list",children:lh.map(n=>M.jsxs("div",{className:"animation-item",children:[M.jsx("div",{className:"animation-name",children:n.name}),M.jsx("div",{className:"animation-description",children:n.description})]},n.name))})]})]}):null}function ih({enabled:e}){return e?M.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[M.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),M.jsx("path",{d:"M15.54 8.46a7 7 0 0 1 0 9.9M19.07 4.93a11 11 0 0 1 0 15.66"})]}):M.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[M.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),M.jsx("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),M.jsx("line",{x1:"17",y1:"9",x2:"23",y2:"15"})]})}function sh({enabled:e}){const t=e?"#38bdf8":"#666666",n=e?1:.6;return M.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:M.jsxs("g",{opacity:n,stroke:t,strokeWidth:e?2:1.5,fill:"none",children:[M.jsx("path",{d:"M 3 3 L 3 7 M 3 3 L 7 3"}),M.jsx("path",{d:"M 17 3 L 17 7 M 17 3 L 13 3"}),M.jsx("path",{d:"M 3 17 L 3 13 M 3 17 L 7 17"}),M.jsx("path",{d:"M 17 17 L 17 13 M 17 17 L 13 17"})]})})}const xa=5e3,Ra=4e3,ah=1e3,uh=100;function ch({entries:e}){const[t,n]=D.useState(Date.now()),[r,l]=D.useState(!1);D.useEffect(()=>{let s,u=Date.now();const f=()=>{const S=Date.now();S-u>=uh&&(n(S),u=S),s=requestAnimationFrame(f)};return s=requestAnimationFrame(f),()=>cancelAnimationFrame(s)},[]);const o=s=>{const u=t-s.createdAt;return u>=xa?0:u<Ra?1:1-(u-Ra)/ah},i=D.useMemo(()=>e.filter(s=>t-s.createdAt<xa),[e,t]),a=D.useMemo(()=>[...e].reverse(),[e]);return M.jsxs("div",{className:"event-log-container",children:[i.length>0&&M.jsx("div",{className:"event-log",children:i.map(s=>{const u=o(s);return M.jsxs("div",{className:"event-log-entry",style:{opacity:u,"--entry-color":s.colorHex},children:[M.jsx("div",{className:"event-log-dot",style:{background:s.colorHex}}),M.jsx("span",{className:"event-log-tool",style:{color:s.colorHex},children:s.tool}),s.file&&M.jsx("span",{className:"event-log-file",children:s.file}),M.jsx("span",{className:"event-log-session",children:s.sessionLabel})]},`live-${s.id}`)})}),M.jsx("button",{className:"event-log-history-btn",onClick:()=>l(!0),children:i.length>0?`history (${e.length})`:"history"}),r&&M.jsxs("div",{className:"event-log-history","aria-modal":"true",children:[M.jsx("button",{className:"event-log-history-back",onClick:()=>l(!1),children:"← live"}),a.map(s=>M.jsxs("div",{className:"event-log-entry event-log-entry--static",style:{opacity:.7,"--entry-color":s.colorHex},children:[M.jsx("div",{className:"event-log-dot",style:{background:s.colorHex}}),M.jsx("span",{className:"event-log-tool",style:{color:s.colorHex},children:s.tool}),s.file&&M.jsx("span",{className:"event-log-file",children:s.file}),M.jsx("span",{className:"event-log-session",children:s.sessionLabel})]},`history-${s.id}`))]})]})}const et=Up(),cs={Read:"#4ade80",Edit:"#60a5fa",Write:"#60a5fa",Bash:"#f59e0b",Grep:"#a78bfa",Glob:"#a78bfa",WebFetch:"#f472b6",Stop:"#888888",Notification:"#34d399",SubagentStart:"#c084fc",SubagentStop:"#7c3aed",PostToolUseFailure:"#f87171",SessionEnd:"#ef4444",UserPromptSubmit:"#38bdf8",PreCompact:"#94a3b8",PostCompact:"#94a3b8",SessionStart:"#22d3ee",InstructionsLoaded:"#a3a3a3",WorktreeCreate:"#86efac",WorktreeRemove:"#fca5a5"};function Zc(e){var r;const t=e.tool_input,n=e.tool_name;if(n==="Edit"){const l=(t==null?void 0:t.file_path)||"",o=((t==null?void 0:t.new_string)||"").split(`
44
+ `).length,i=((t==null?void 0:t.old_string)||"").split(`
45
+ `).length,a=l.split("/").pop()||"";return o!==i?`${a} +${o}−${i}`:`${a} ${o}L`}if(n==="Write"){const l=(t==null?void 0:t.file_path)||"",o=((t==null?void 0:t.content)||"").split(`
46
+ `).length;return`${l.split("/").pop()||""} ${o}L`}if(n==="Read"){const l=(t==null?void 0:t.file_path)||"",o=t==null?void 0:t.limit,i=t==null?void 0:t.offset,a=l.split("/").pop()||"";return i?`${a} @${i}`:o?`${a} ${o}L`:a}if(["Grep","Glob"].includes(n||""))return(t==null?void 0:t.pattern)||((r=t==null?void 0:t.file_path)==null?void 0:r.split("/").pop())||"";if(n==="Bash")return((t==null?void 0:t.command)||"").slice(0,22);if(n==="WebFetch")try{return new URL((t==null?void 0:t.url)||"").hostname}catch{return""}return e.hook_event_name==="UserPromptSubmit"?(e.prompt||"").slice(0,30):e.hook_event_name==="PreCompact"?e.trigger||"compacting...":e.hook_event_name==="PostCompact"?"context compacted":e.hook_event_name==="SessionStart"?e.model||e.source||"started":e.hook_event_name==="InstructionsLoaded"?e.memory_type||"instructions":""}function fh(e){var l,o;const t=e.tool_name,n=e.tool_input,r=e.tool_response;if(t==="Read"&&r){const a=((n==null?void 0:n.file_path)||"").split("/").pop()||"",s=r.content??r.text??r.output;if(typeof s=="string"){const u=s.split(`
47
+ `).length;return`${a} ${u}L`}return a}if(t==="Grep"&&r){const i=r.count??r.numMatches??r.total;return i!==void 0?`${(n==null?void 0:n.pattern)||""} ${i} hits`:(n==null?void 0:n.pattern)||""}if(t==="Glob"&&r){const i=Array.isArray(r)?r.length:((l=r.files)==null?void 0:l.length)??r.count;return i!==void 0?`${(n==null?void 0:n.pattern)||""} ${i} files`:(n==null?void 0:n.pattern)||""}if(t==="Bash"&&r){const i=r.exitCode??r.exit_code??r.code;return i!==void 0?`$ ${((o=((n==null?void 0:n.command)||"").split(/\s+/)[0])==null?void 0:o.split("/").pop())||""} ${i===0?"✓":`✗ ${i}`}`:((n==null?void 0:n.command)||"").slice(0,22)}return Zc(e)}const dh=100;function ph(e){if(!e)return"#888";const t=e.tool_name||e.hook_event_name||"";return cs[t]??"#888"}function hh(e){return!e||!e.lastTool?"#888":cs[e.lastTool]??"#888"}function La(e){if(!e)return"—";const t=Math.floor((Date.now()-e)/1e3);return t<3?"just now":t<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:`${Math.floor(t/3600)}h ago`}function mh(e){if(!e)return"";const t=e.split("/").filter(Boolean);return t[t.length-1]??""}function gh(){const[e,t]=D.useState(et.getSessions()),[n,r]=D.useState(null),[l,o]=D.useState(0),[i,a]=D.useState(null),[s,u]=D.useState(null),[f,S]=D.useState(null),[d,h]=D.useState(0),[y,w]=D.useState(0),[C,p]=D.useState(new Map),[c,m]=D.useState([]),[v,k]=D.useState(!1),[P,_]=D.useState(!1),[g,T]=D.useState(()=>localStorage.getItem("claude-live-audio-enabled")==="true"),[$,I]=D.useState(()=>localStorage.getItem("claude-live-autofit-enabled")==="true"),[O,j]=D.useState(!1),B=D.useRef(!1),K=D.useRef(null);D.useEffect(()=>{Rp(),T(Ip())},[]),D.useEffect(()=>{localStorage.setItem("claude-live-autofit-enabled",$?"true":"false")},[$]),D.useEffect(()=>{const x=W=>{h(W.clientX),w(W.clientY)};return window.addEventListener("mousemove",x),()=>window.removeEventListener("mousemove",x)},[]),D.useEffect(()=>{const x=new EventSource("/events");return K.current=x,x.onmessage=W=>{var V;try{const re=JSON.parse(W.data);if(re.type==="state_snapshot"){et.initFromSnapshot(re.sessions),et.getSessions(),t(new Map(et.getSessions())),B.current=!0,j(!0);return}if(re.type==="replay_done"){et.markReplayDone(),et.getSessions(),t(new Map(et.getSessions())),B.current=!0,j(!0);return}const z=re;console.log("[claude-live]",z.hook_event_name,z.tool_name??"",z.session_id,z.tool_input);const se=et.getSessions().size;et.addEvent(z,!B.current);const F=et.getSessions();F.size!==se&&void 0,t(new Map(F)),r(z),o(le=>le+1),B.current&&Xc(z.tool_name??void 0,z.hook_event_name??void 0);const A=["Read","Edit","Write","Grep","Glob","Bash"].includes(z.tool_name||"");if(!(z.hook_event_name==="PostToolUse"&&!A)&&B.current){const le=F.get(z.session_id);let oe=z.tool_name||z.hook_event_name||"?";if(oe.startsWith("mcp_")){const Fe=oe.split("__");oe=Fe[Fe.length-1].replace(/_/g," ")}m(Fe=>{const Ve={id:z.id,tool:oe,file:z.hook_event_name==="PostToolUse"?fh(z):Zc(z),sessionLabel:(le==null?void 0:le.label)??z.session_id.slice(0,8),project:mh(z.cwd),colorHex:cs[oe]??"#888",createdAt:Date.now()};return[...Fe,Ve].slice(-dh)})}if(z.hook_event_name==="Notification"||z.hook_event_name==="PermissionRequest"){const le=F.get(z.session_id),oe=((V=z.tool_input)==null?void 0:V.message)??"awaiting input";console.log("[perm] showing notification:",{session:z.session_id,msg:oe}),p(Fe=>{const Ve=new Map(Fe);return Ve.set(z.session_id,{sessionId:z.session_id,sessionLabel:(le==null?void 0:le.label)??z.session_id.slice(0,8),message:oe,timestamp:z.timestamp}),Ve})}(z.tool_name||z.hook_event_name==="UserPromptSubmit")&&p(le=>{if(!le.has(z.session_id))return le;console.log("[perm] clearing notification:",{session:z.session_id,trigger:z.tool_name||"UserPromptSubmit"});const oe=new Map(le);return oe.delete(z.session_id),oe})}catch{}},x.onerror=W=>console.warn("[claude-live] SSE error",W),()=>x.close()},[]);const X=(x,W)=>a(x),U=(x,W)=>{u(x),S(W)},E=()=>{const x=!g;T(x),Lp(x)},R=()=>{const x=!$;I(x),localStorage.setItem("claude-live-autofit-enabled",x?"true":"false")};return M.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[M.jsx(th,{clusters:e,lastEvent:n,onHover:X,onSelect:U,autofitEnabled:$}),M.jsxs("div",{className:"hud",children:[M.jsxs("div",{className:"hud-title",children:["claude",M.jsx("span",{children:"live"})]}),M.jsxs("div",{className:"hud-stat",children:[M.jsx("span",{className:"hud-label",children:"events"}),M.jsx("span",{className:"hud-value",children:l})]}),M.jsxs("div",{className:"hud-stat",children:[M.jsx("span",{className:"hud-label",children:"sessions"}),M.jsx("span",{className:"hud-value",children:e.size})]}),M.jsxs("div",{className:"hud-stat",children:[M.jsx("span",{className:"hud-label",children:"last"}),M.jsx("span",{className:"hud-value hud-tool",style:{color:ph(n)},children:(n==null?void 0:n.tool_name)??"—"})]})]}),M.jsxs("div",{className:"top-right-buttons",children:[M.jsx("button",{className:"audio-toggle",onClick:E,title:g?"Mute audio":"Unmute audio","aria-label":g?"Mute audio":"Unmute audio",children:M.jsx(ih,{enabled:g})}),M.jsx("button",{className:"autofit-toggle",onClick:R,title:$?"Disable autofit":"Enable autofit","aria-label":$?"Disable autofit":"Enable autofit",children:M.jsx(sh,{enabled:$})}),M.jsx("button",{className:"hud-button",onClick:()=>k(!0),title:"Show operations legend","aria-label":"Operations",children:"?"}),M.jsx("button",{className:"hud-button",onClick:()=>_(!0),title:"Show debug panel","aria-label":"Debug",children:"⚙"})]}),C.size>0&&M.jsxs("div",{className:"perm-notifications",children:[M.jsx("div",{className:"perm-notifications-title",children:"awaiting input"}),[...C.values()].map(x=>M.jsxs("div",{className:"perm-notification-item",children:[M.jsx("div",{className:"perm-notification-dot"}),M.jsxs("div",{className:"perm-notification-body",children:[M.jsxs("div",{className:"perm-notification-session",children:["session:",x.sessionLabel]}),M.jsx("div",{className:"perm-notification-msg",children:x.message.slice(0,60)})]})]},x.sessionId))]}),M.jsx("div",{className:"bottom-left-panel",children:M.jsx(ch,{entries:c})}),M.jsxs("div",{className:"tooltip",style:{left:d+14,top:y-10,opacity:i?1:0},children:[M.jsx("div",{className:"tooltip-label",children:(i==null?void 0:i.label)??""}),M.jsx("div",{className:"tooltip-type",children:(i==null?void 0:i.nodeType)??""}),M.jsxs("div",{className:"tooltip-meta",children:[(i==null?void 0:i.lastTool)??"—"," · ",La(i==null?void 0:i.lastTimestamp)]}),M.jsxs("div",{className:"tooltip-count",children:[(i==null?void 0:i.eventCount)??0," events"]}),(i==null?void 0:i.awaitingPermission)&&M.jsxs("div",{className:"perm-badge",children:[M.jsx("div",{className:"perm-dot"}),"waiting for permission"]})]}),M.jsx(nh,{sessionIds:[...e.keys()],isOpen:P,onClose:()=>_(!1)}),M.jsx(oh,{isOpen:v,onClose:()=>k(!1)}),M.jsxs("div",{className:`sidebar ${s?"sidebar--open":""}`,children:[M.jsxs("div",{className:"sidebar-header",children:[M.jsx("div",{className:"sidebar-close",onClick:()=>{u(null),S(null)},children:"×"}),M.jsx("div",{className:"sidebar-title",children:(s==null?void 0:s.label)??""}),M.jsx("div",{className:"sidebar-type",children:(s==null?void 0:s.nodeType)??""}),(s==null?void 0:s.awaitingPermission)&&M.jsxs("div",{className:"perm-badge",style:{marginTop:8},children:[M.jsx("div",{className:"perm-dot"}),"awaiting permission"]})]}),M.jsxs("div",{className:"sidebar-section",children:[M.jsx("div",{className:"sidebar-section-label",children:"Last action"}),M.jsx("div",{className:"sidebar-action",style:{color:hh(s)},children:(s==null?void 0:s.lastTool)??"—"}),M.jsx("div",{className:"sidebar-time",children:La(s==null?void 0:s.lastTimestamp)})]}),M.jsxs("div",{className:"sidebar-section",children:[M.jsx("div",{className:"sidebar-section-label",children:"Total interactions"}),M.jsx("div",{className:"sidebar-count",children:(s==null?void 0:s.eventCount)??0})]}),M.jsxs("div",{className:"sidebar-section",children:[M.jsx("div",{className:"sidebar-section-label",children:"Session"}),M.jsx("div",{className:"sidebar-session",children:(f==null?void 0:f.label)??"—"})]})]})]})}Gc(document.getElementById("root")).render(M.jsx(D.StrictMode,{children:M.jsx(gh,{})}));