@ohmaseclaro/fleetwatch 0.1.5 → 0.1.7

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.
@@ -1,239 +0,0 @@
1
- function Ud(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const o=Object.getOwnPropertyDescriptor(r,l);o&&Object.defineProperty(e,l,o.get?o:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(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 s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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)}})();function Dd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ru={exports:{}},Rl={},lu={exports:{}},M={};/**
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 vr=Symbol.for("react.element"),Ad=Symbol.for("react.portal"),Bd=Symbol.for("react.fragment"),Wd=Symbol.for("react.strict_mode"),Vd=Symbol.for("react.profiler"),Hd=Symbol.for("react.provider"),bd=Symbol.for("react.context"),Qd=Symbol.for("react.forward_ref"),Kd=Symbol.for("react.suspense"),Gd=Symbol.for("react.memo"),Yd=Symbol.for("react.lazy"),_i=Symbol.iterator;function Xd(e){return e===null||typeof e!="object"?null:(e=_i&&e[_i]||e["@@iterator"],typeof e=="function"?e:null)}var ou={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},su=Object.assign,iu={};function Cn(e,t,n){this.props=e,this.context=t,this.refs=iu,this.updater=n||ou}Cn.prototype.isReactComponent={};Cn.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")};Cn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function au(){}au.prototype=Cn.prototype;function Es(e,t,n){this.props=e,this.context=t,this.refs=iu,this.updater=n||ou}var _s=Es.prototype=new au;_s.constructor=Es;su(_s,Cn.prototype);_s.isPureReactComponent=!0;var Pi=Array.isArray,uu=Object.prototype.hasOwnProperty,Ps={current:null},cu={key:!0,ref:!0,__self:!0,__source:!0};function du(e,t,n){var r,l={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)uu.call(t,r)&&!cu.hasOwnProperty(r)&&(l[r]=t[r]);var a=arguments.length-2;if(a===1)l.children=n;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];l.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)l[r]===void 0&&(l[r]=a[r]);return{$$typeof:vr,type:e,key:o,ref:s,props:l,_owner:Ps.current}}function qd(e,t){return{$$typeof:vr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ls(e){return typeof e=="object"&&e!==null&&e.$$typeof===vr}function Zd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Li=/\/+/g;function Yl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Zd(""+e.key):t.toString(36)}function Kr(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case vr:case Ad:s=!0}}if(s)return s=e,l=l(s),e=r===""?"."+Yl(s,0):r,Pi(l)?(n="",e!=null&&(n=e.replace(Li,"$&/")+"/"),Kr(l,t,n,"",function(c){return c})):l!=null&&(Ls(l)&&(l=qd(l,n+(!l.key||s&&s.key===l.key?"":(""+l.key).replace(Li,"$&/")+"/")+e)),t.push(l)),1;if(s=0,r=r===""?".":r+":",Pi(e))for(var a=0;a<e.length;a++){o=e[a];var u=r+Yl(o,a);s+=Kr(o,t,n,u,l)}else if(u=Xd(e),typeof u=="function")for(e=u.call(e),a=0;!(o=e.next()).done;)o=o.value,u=r+Yl(o,a++),s+=Kr(o,t,n,u,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 s}function Nr(e,t,n){if(e==null)return e;var r=[],l=0;return Kr(e,r,"","",function(o){return t.call(n,o,l++)}),r}function Jd(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},Gr={transition:null},ef={ReactCurrentDispatcher:pe,ReactCurrentBatchConfig:Gr,ReactCurrentOwner:Ps};function fu(){throw Error("act(...) is not supported in production builds of React.")}M.Children={map:Nr,forEach:function(e,t,n){Nr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Nr(e,function(){t++}),t},toArray:function(e){return Nr(e,function(t){return t})||[]},only:function(e){if(!Ls(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};M.Component=Cn;M.Fragment=Bd;M.Profiler=Vd;M.PureComponent=Es;M.StrictMode=Wd;M.Suspense=Kd;M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ef;M.act=fu;M.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=su({},e.props),l=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Ps.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)uu.call(t,u)&&!cu.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:vr,type:e.type,key:l,ref:o,props:r,_owner:s}};M.createContext=function(e){return e={$$typeof:bd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Hd,_context:e},e.Consumer=e};M.createElement=du;M.createFactory=function(e){var t=du.bind(null,e);return t.type=e,t};M.createRef=function(){return{current:null}};M.forwardRef=function(e){return{$$typeof:Qd,render:e}};M.isValidElement=Ls;M.lazy=function(e){return{$$typeof:Yd,_payload:{_status:-1,_result:e},_init:Jd}};M.memo=function(e,t){return{$$typeof:Gd,type:e,compare:t===void 0?null:t}};M.startTransition=function(e){var t=Gr.transition;Gr.transition={};try{e()}finally{Gr.transition=t}};M.unstable_act=fu;M.useCallback=function(e,t){return pe.current.useCallback(e,t)};M.useContext=function(e){return pe.current.useContext(e)};M.useDebugValue=function(){};M.useDeferredValue=function(e){return pe.current.useDeferredValue(e)};M.useEffect=function(e,t){return pe.current.useEffect(e,t)};M.useId=function(){return pe.current.useId()};M.useImperativeHandle=function(e,t,n){return pe.current.useImperativeHandle(e,t,n)};M.useInsertionEffect=function(e,t){return pe.current.useInsertionEffect(e,t)};M.useLayoutEffect=function(e,t){return pe.current.useLayoutEffect(e,t)};M.useMemo=function(e,t){return pe.current.useMemo(e,t)};M.useReducer=function(e,t,n){return pe.current.useReducer(e,t,n)};M.useRef=function(e){return pe.current.useRef(e)};M.useState=function(e){return pe.current.useState(e)};M.useSyncExternalStore=function(e,t,n){return pe.current.useSyncExternalStore(e,t,n)};M.useTransition=function(){return pe.current.useTransition()};M.version="18.3.1";lu.exports=M;var y=lu.exports;const qt=Dd(y),tf=Ud({__proto__:null,default:qt},[y]);/**
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 nf=y,rf=Symbol.for("react.element"),lf=Symbol.for("react.fragment"),of=Object.prototype.hasOwnProperty,sf=nf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,af={key:!0,ref:!0,__self:!0,__source:!0};function pu(e,t,n){var r,l={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)of.call(t,r)&&!af.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:rf,type:e,key:o,ref:s,props:l,_owner:sf.current}}Rl.Fragment=lf;Rl.jsx=pu;Rl.jsxs=pu;ru.exports=Rl;var i=ru.exports,Eo={},hu={exports:{}},Ne={},mu={exports:{}},vu={};/**
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(P,R){var I=P.length;P.push(R);e:for(;0<I;){var K=I-1>>>1,ee=P[K];if(0<l(ee,R))P[K]=R,P[I]=ee,I=K;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var R=P[0],I=P.pop();if(I!==R){P[0]=I;e:for(var K=0,ee=P.length,jr=ee>>>1;K<jr;){var Tt=2*(K+1)-1,Gl=P[Tt],Rt=Tt+1,Cr=P[Rt];if(0>l(Gl,I))Rt<ee&&0>l(Cr,Gl)?(P[K]=Cr,P[Rt]=I,K=Rt):(P[K]=Gl,P[Tt]=I,K=Tt);else if(Rt<ee&&0>l(Cr,I))P[K]=Cr,P[Rt]=I,K=Rt;else break e}}return R}function l(P,R){var I=P.sortIndex-R.sortIndex;return I!==0?I:P.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var u=[],c=[],p=1,h=null,v=3,g=!1,w=!1,k=!1,S=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=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(P){for(var R=n(c);R!==null;){if(R.callback===null)r(c);else if(R.startTime<=P)r(c),R.sortIndex=R.expirationTime,t(u,R);else break;R=n(c)}}function x(P){if(k=!1,m(P),!w)if(n(u)!==null)w=!0,re(j);else{var R=n(c);R!==null&&Qe(x,R.startTime-P)}}function j(P,R){w=!1,k&&(k=!1,f(L),L=-1),g=!0;var I=v;try{for(m(R),h=n(u);h!==null&&(!(h.expirationTime>R)||P&&!we());){var K=h.callback;if(typeof K=="function"){h.callback=null,v=h.priorityLevel;var ee=K(h.expirationTime<=R);R=e.unstable_now(),typeof ee=="function"?h.callback=ee:h===n(u)&&r(u),m(R)}else r(u);h=n(u)}if(h!==null)var jr=!0;else{var Tt=n(c);Tt!==null&&Qe(x,Tt.startTime-R),jr=!1}return jr}finally{h=null,v=I,g=!1}}var E=!1,N=null,L=-1,D=5,z=-1;function we(){return!(e.unstable_now()-z<D)}function lt(){if(N!==null){var P=e.unstable_now();z=P;var R=!0;try{R=N(!0,P)}finally{R?Pt():(E=!1,N=null)}}else E=!1}var Pt;if(typeof d=="function")Pt=function(){d(lt)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,Lt=T.port2;T.port1.onmessage=lt,Pt=function(){Lt.postMessage(null)}}else Pt=function(){S(lt,0)};function re(P){N=P,E||(E=!0,Pt())}function Qe(P,R){L=S(function(){P(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(P){P.callback=null},e.unstable_continueExecution=function(){w||g||(w=!0,re(j))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(P){switch(v){case 1:case 2:case 3:var R=3;break;default:R=v}var I=v;v=R;try{return P()}finally{v=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,R){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var I=v;v=P;try{return R()}finally{v=I}},e.unstable_scheduleCallback=function(P,R,I){var K=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?K+I:K):I=K,P){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=I+ee,P={id:p++,callback:R,priorityLevel:P,startTime:I,expirationTime:ee,sortIndex:-1},I>K?(P.sortIndex=I,t(c,P),n(u)===null&&P===n(c)&&(k?(f(L),L=-1):k=!0,Qe(x,I-K))):(P.sortIndex=ee,t(u,P),w||g||(w=!0,re(j))),P},e.unstable_shouldYield=we,e.unstable_wrapCallback=function(P){var R=v;return function(){var I=v;v=R;try{return P.apply(this,arguments)}finally{v=I}}}})(vu);mu.exports=vu;var uf=mu.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 cf=y,Ce=uf;function C(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 yu=new Set,Xn={};function Ht(e,t){yn(e,t),yn(e+"Capture",t)}function yn(e,t){for(Xn[e]=t,e=0;e<t.length;e++)yu.add(t[e])}var Ze=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_o=Object.prototype.hasOwnProperty,df=/^[: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]*$/,Ti={},Ri={};function ff(e){return _o.call(Ri,e)?!0:_o.call(Ti,e)?!1:df.test(e)?Ri[e]=!0:(Ti[e]=!0,!1)}function pf(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 hf(e,t,n,r){if(t===null||typeof t>"u"||pf(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 he(e,t,n,r,l,o,s){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=s}var se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){se[e]=new he(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];se[t]=new he(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){se[e]=new he(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){se[e]=new he(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){se[e]=new he(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){se[e]=new he(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){se[e]=new he(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){se[e]=new he(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){se[e]=new he(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ts=/[\-:]([a-z])/g;function Rs(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(Ts,Rs);se[t]=new he(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(Ts,Rs);se[t]=new he(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(Ts,Rs);se[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){se[e]=new he(e,1,!1,e.toLowerCase(),null,!1,!1)});se.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){se[e]=new he(e,1,!1,e.toLowerCase(),null,!0,!0)});function zs(e,t,n,r){var l=se.hasOwnProperty(t)?se[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(hf(t,n,l,r)&&(n=null),r||l===null?ff(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 nt=cf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Er=Symbol.for("react.element"),Zt=Symbol.for("react.portal"),Jt=Symbol.for("react.fragment"),Is=Symbol.for("react.strict_mode"),Po=Symbol.for("react.profiler"),gu=Symbol.for("react.provider"),xu=Symbol.for("react.context"),Ms=Symbol.for("react.forward_ref"),Lo=Symbol.for("react.suspense"),To=Symbol.for("react.suspense_list"),Os=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),wu=Symbol.for("react.offscreen"),zi=Symbol.iterator;function Ln(e){return e===null||typeof e!="object"?null:(e=zi&&e[zi]||e["@@iterator"],typeof e=="function"?e:null)}var b=Object.assign,Xl;function $n(e){if(Xl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Xl=t&&t[1]||""}return`
34
- `+Xl+e}var ql=!1;function Zl(e,t){if(!e||ql)return"";ql=!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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
35
- `),o=r.stack.split(`
36
- `),s=l.length-1,a=o.length-1;1<=s&&0<=a&&l[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(l[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||l[s]!==o[a]){var u=`
37
- `+l[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=a);break}}}finally{ql=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?$n(e):""}function mf(e){switch(e.tag){case 5:return $n(e.type);case 16:return $n("Lazy");case 13:return $n("Suspense");case 19:return $n("SuspenseList");case 0:case 2:case 15:return e=Zl(e.type,!1),e;case 11:return e=Zl(e.type.render,!1),e;case 1:return e=Zl(e.type,!0),e;default:return""}}function Ro(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 Jt:return"Fragment";case Zt:return"Portal";case Po:return"Profiler";case Is:return"StrictMode";case Lo:return"Suspense";case To:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xu:return(e.displayName||"Context")+".Consumer";case gu:return(e._context.displayName||"Context")+".Provider";case Ms:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Os:return t=e.displayName||null,t!==null?t:Ro(e.type)||"Memo";case st:t=e._payload,e=e._init;try{return Ro(e(t))}catch{}}return null}function vf(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 Ro(t);case 8:return t===Is?"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 St(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ku(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yf(e){var t=ku(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(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _r(e){e._valueTracker||(e._valueTracker=yf(e))}function Su(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ku(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function sl(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 zo(e,t){var n=t.checked;return b({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ii(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=St(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 ju(e,t){t=t.checked,t!=null&&zs(e,"checked",t,!1)}function Io(e,t){ju(e,t);var n=St(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")?Mo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Mo(e,t.type,St(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Mi(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 Mo(e,t,n){(t!=="number"||sl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Un=Array.isArray;function dn(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=""+St(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 Oo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(C(91));return b({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Oi(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(C(92));if(Un(n)){if(1<n.length)throw Error(C(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:St(n)}}function Cu(e,t){var n=St(t.value),r=St(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 Fi(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Nu(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 Fo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Nu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Pr,Eu=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(Pr=Pr||document.createElement("div"),Pr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Pr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bn={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},gf=["Webkit","ms","Moz","O"];Object.keys(Bn).forEach(function(e){gf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bn[t]=Bn[e]})});function _u(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Bn.hasOwnProperty(e)&&Bn[e]?(""+t).trim():t+"px"}function Pu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=_u(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var xf=b({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 $o(e,t){if(t){if(xf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function Uo(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 Do=null;function Fs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ao=null,fn=null,pn=null;function $i(e){if(e=xr(e)){if(typeof Ao!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Fl(t),Ao(e.stateNode,e.type,t))}}function Lu(e){fn?pn?pn.push(e):pn=[e]:fn=e}function Tu(){if(fn){var e=fn,t=pn;if(pn=fn=null,$i(e),t)for(e=0;e<t.length;e++)$i(t[e])}}function Ru(e,t){return e(t)}function zu(){}var Jl=!1;function Iu(e,t,n){if(Jl)return e(t,n);Jl=!0;try{return Ru(e,t,n)}finally{Jl=!1,(fn!==null||pn!==null)&&(zu(),Tu())}}function Zn(e,t){var n=e.stateNode;if(n===null)return null;var r=Fl(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(C(231,t,typeof n));return n}var Bo=!1;if(Ze)try{var Tn={};Object.defineProperty(Tn,"passive",{get:function(){Bo=!0}}),window.addEventListener("test",Tn,Tn),window.removeEventListener("test",Tn,Tn)}catch{Bo=!1}function wf(e,t,n,r,l,o,s,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(p){this.onError(p)}}var Wn=!1,il=null,al=!1,Wo=null,kf={onError:function(e){Wn=!0,il=e}};function Sf(e,t,n,r,l,o,s,a,u){Wn=!1,il=null,wf.apply(kf,arguments)}function jf(e,t,n,r,l,o,s,a,u){if(Sf.apply(this,arguments),Wn){if(Wn){var c=il;Wn=!1,il=null}else throw Error(C(198));al||(al=!0,Wo=c)}}function bt(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 Mu(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 Ui(e){if(bt(e)!==e)throw Error(C(188))}function Cf(e){var t=e.alternate;if(!t){if(t=bt(e),t===null)throw Error(C(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 Ui(l),e;if(o===r)return Ui(l),t;o=o.sibling}throw Error(C(188))}if(n.return!==r.return)n=l,r=o;else{for(var s=!1,a=l.child;a;){if(a===n){s=!0,n=l,r=o;break}if(a===r){s=!0,r=l,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=l;break}if(a===r){s=!0,r=o,n=l;break}a=a.sibling}if(!s)throw Error(C(189))}}if(n.alternate!==r)throw Error(C(190))}if(n.tag!==3)throw Error(C(188));return n.stateNode.current===n?e:t}function Ou(e){return e=Cf(e),e!==null?Fu(e):null}function Fu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Fu(e);if(t!==null)return t;e=e.sibling}return null}var $u=Ce.unstable_scheduleCallback,Di=Ce.unstable_cancelCallback,Nf=Ce.unstable_shouldYield,Ef=Ce.unstable_requestPaint,G=Ce.unstable_now,_f=Ce.unstable_getCurrentPriorityLevel,$s=Ce.unstable_ImmediatePriority,Uu=Ce.unstable_UserBlockingPriority,ul=Ce.unstable_NormalPriority,Pf=Ce.unstable_LowPriority,Du=Ce.unstable_IdlePriority,zl=null,He=null;function Lf(e){if(He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(zl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ue=Math.clz32?Math.clz32:zf,Tf=Math.log,Rf=Math.LN2;function zf(e){return e>>>=0,e===0?32:31-(Tf(e)/Rf|0)|0}var Lr=64,Tr=4194304;function Dn(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 cl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~l;a!==0?r=Dn(a):(o&=s,o!==0&&(r=Dn(o)))}else s=n&~l,s!==0?r=Dn(s):o!==0&&(r=Dn(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-Ue(t),l=1<<n,r|=e[n],t&=~l;return r}function If(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 Mf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Ue(o),a=1<<s,u=l[s];u===-1?(!(a&n)||a&r)&&(l[s]=If(a,t)):u<=t&&(e.expiredLanes|=a),o&=~a}}function Vo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Au(){var e=Lr;return Lr<<=1,!(Lr&4194240)&&(Lr=64),e}function eo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ue(t),e[t]=n}function Of(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-Ue(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function Us(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ue(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var F=0;function Bu(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Wu,Ds,Vu,Hu,bu,Ho=!1,Rr=[],pt=null,ht=null,mt=null,Jn=new Map,er=new Map,at=[],Ff="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 Ai(e,t){switch(e){case"focusin":case"focusout":pt=null;break;case"dragenter":case"dragleave":ht=null;break;case"mouseover":case"mouseout":mt=null;break;case"pointerover":case"pointerout":Jn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":er.delete(t.pointerId)}}function Rn(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=xr(t),t!==null&&Ds(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function $f(e,t,n,r,l){switch(t){case"focusin":return pt=Rn(pt,e,t,n,r,l),!0;case"dragenter":return ht=Rn(ht,e,t,n,r,l),!0;case"mouseover":return mt=Rn(mt,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return Jn.set(o,Rn(Jn.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,er.set(o,Rn(er.get(o)||null,e,t,n,r,l)),!0}return!1}function Qu(e){var t=Mt(e.target);if(t!==null){var n=bt(t);if(n!==null){if(t=n.tag,t===13){if(t=Mu(n),t!==null){e.blockedOn=t,bu(e.priority,function(){Vu(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 Yr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Do=r,n.target.dispatchEvent(r),Do=null}else return t=xr(n),t!==null&&Ds(t),e.blockedOn=n,!1;t.shift()}return!0}function Bi(e,t,n){Yr(e)&&n.delete(t)}function Uf(){Ho=!1,pt!==null&&Yr(pt)&&(pt=null),ht!==null&&Yr(ht)&&(ht=null),mt!==null&&Yr(mt)&&(mt=null),Jn.forEach(Bi),er.forEach(Bi)}function zn(e,t){e.blockedOn===t&&(e.blockedOn=null,Ho||(Ho=!0,Ce.unstable_scheduleCallback(Ce.unstable_NormalPriority,Uf)))}function tr(e){function t(l){return zn(l,e)}if(0<Rr.length){zn(Rr[0],e);for(var n=1;n<Rr.length;n++){var r=Rr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(pt!==null&&zn(pt,e),ht!==null&&zn(ht,e),mt!==null&&zn(mt,e),Jn.forEach(t),er.forEach(t),n=0;n<at.length;n++)r=at[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<at.length&&(n=at[0],n.blockedOn===null);)Qu(n),n.blockedOn===null&&at.shift()}var hn=nt.ReactCurrentBatchConfig,dl=!0;function Df(e,t,n,r){var l=F,o=hn.transition;hn.transition=null;try{F=1,As(e,t,n,r)}finally{F=l,hn.transition=o}}function Af(e,t,n,r){var l=F,o=hn.transition;hn.transition=null;try{F=4,As(e,t,n,r)}finally{F=l,hn.transition=o}}function As(e,t,n,r){if(dl){var l=bo(e,t,n,r);if(l===null)co(e,t,r,fl,n),Ai(e,r);else if($f(l,e,t,n,r))r.stopPropagation();else if(Ai(e,r),t&4&&-1<Ff.indexOf(e)){for(;l!==null;){var o=xr(l);if(o!==null&&Wu(o),o=bo(e,t,n,r),o===null&&co(e,t,r,fl,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else co(e,t,r,null,n)}}var fl=null;function bo(e,t,n,r){if(fl=null,e=Fs(r),e=Mt(e),e!==null)if(t=bt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Mu(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 fl=e,null}function Ku(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(_f()){case $s:return 1;case Uu:return 4;case ul:case Pf:return 16;case Du:return 536870912;default:return 16}default:return 16}}var ct=null,Bs=null,Xr=null;function Gu(){if(Xr)return Xr;var e,t=Bs,n=t.length,r,l="value"in ct?ct.value:ct.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===l[o-r];r++);return Xr=l.slice(e,1<r?1-r:void 0)}function qr(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 zr(){return!0}function Wi(){return!1}function Ee(e){function t(n,r,l,o,s){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=s,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)?zr:Wi,this.isPropagationStopped=Wi,this}return b(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=zr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zr)},persist:function(){},isPersistent:zr}),t}var Nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ws=Ee(Nn),gr=b({},Nn,{view:0,detail:0}),Bf=Ee(gr),to,no,In,Il=b({},gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vs,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!==In&&(In&&e.type==="mousemove"?(to=e.screenX-In.screenX,no=e.screenY-In.screenY):no=to=0,In=e),to)},movementY:function(e){return"movementY"in e?e.movementY:no}}),Vi=Ee(Il),Wf=b({},Il,{dataTransfer:0}),Vf=Ee(Wf),Hf=b({},gr,{relatedTarget:0}),ro=Ee(Hf),bf=b({},Nn,{animationName:0,elapsedTime:0,pseudoElement:0}),Qf=Ee(bf),Kf=b({},Nn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gf=Ee(Kf),Yf=b({},Nn,{data:0}),Hi=Ee(Yf),Xf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qf={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"},Zf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zf[e])?!!t[e]:!1}function Vs(){return Jf}var ep=b({},gr,{key:function(e){if(e.key){var t=Xf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vs,charCode:function(e){return e.type==="keypress"?qr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tp=Ee(ep),np=b({},Il,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bi=Ee(np),rp=b({},gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vs}),lp=Ee(rp),op=b({},Nn,{propertyName:0,elapsedTime:0,pseudoElement:0}),sp=Ee(op),ip=b({},Il,{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}),ap=Ee(ip),up=[9,13,27,32],Hs=Ze&&"CompositionEvent"in window,Vn=null;Ze&&"documentMode"in document&&(Vn=document.documentMode);var cp=Ze&&"TextEvent"in window&&!Vn,Yu=Ze&&(!Hs||Vn&&8<Vn&&11>=Vn),Qi=" ",Ki=!1;function Xu(e,t){switch(e){case"keyup":return up.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var en=!1;function dp(e,t){switch(e){case"compositionend":return qu(t);case"keypress":return t.which!==32?null:(Ki=!0,Qi);case"textInput":return e=t.data,e===Qi&&Ki?null:e;default:return null}}function fp(e,t){if(en)return e==="compositionend"||!Hs&&Xu(e,t)?(e=Gu(),Xr=Bs=ct=null,en=!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 Yu&&t.locale!=="ko"?null:t.data;default:return null}}var pp={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 Gi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!pp[e.type]:t==="textarea"}function Zu(e,t,n,r){Lu(r),t=pl(t,"onChange"),0<t.length&&(n=new Ws("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,nr=null;function hp(e){uc(e,0)}function Ml(e){var t=rn(e);if(Su(t))return e}function mp(e,t){if(e==="change")return t}var Ju=!1;if(Ze){var lo;if(Ze){var oo="oninput"in document;if(!oo){var Yi=document.createElement("div");Yi.setAttribute("oninput","return;"),oo=typeof Yi.oninput=="function"}lo=oo}else lo=!1;Ju=lo&&(!document.documentMode||9<document.documentMode)}function Xi(){Hn&&(Hn.detachEvent("onpropertychange",ec),nr=Hn=null)}function ec(e){if(e.propertyName==="value"&&Ml(nr)){var t=[];Zu(t,nr,e,Fs(e)),Iu(hp,t)}}function vp(e,t,n){e==="focusin"?(Xi(),Hn=t,nr=n,Hn.attachEvent("onpropertychange",ec)):e==="focusout"&&Xi()}function yp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ml(nr)}function gp(e,t){if(e==="click")return Ml(t)}function xp(e,t){if(e==="input"||e==="change")return Ml(t)}function wp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ae=typeof Object.is=="function"?Object.is:wp;function rr(e,t){if(Ae(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(!_o.call(t,l)||!Ae(e[l],t[l]))return!1}return!0}function qi(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zi(e,t){var n=qi(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=qi(n)}}function tc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function nc(){for(var e=window,t=sl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sl(e.document)}return t}function bs(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 kp(e){var t=nc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&tc(n.ownerDocument.documentElement,n)){if(r!==null&&bs(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=Zi(n,o);var s=Zi(n,r);l&&s&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 Sp=Ze&&"documentMode"in document&&11>=document.documentMode,tn=null,Qo=null,bn=null,Ko=!1;function Ji(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ko||tn==null||tn!==sl(r)||(r=tn,"selectionStart"in r&&bs(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&&rr(bn,r)||(bn=r,r=pl(Qo,"onSelect"),0<r.length&&(t=new Ws("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=tn)))}function Ir(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nn={animationend:Ir("Animation","AnimationEnd"),animationiteration:Ir("Animation","AnimationIteration"),animationstart:Ir("Animation","AnimationStart"),transitionend:Ir("Transition","TransitionEnd")},so={},rc={};Ze&&(rc=document.createElement("div").style,"AnimationEvent"in window||(delete nn.animationend.animation,delete nn.animationiteration.animation,delete nn.animationstart.animation),"TransitionEvent"in window||delete nn.transitionend.transition);function Ol(e){if(so[e])return so[e];if(!nn[e])return e;var t=nn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in rc)return so[e]=t[n];return e}var lc=Ol("animationend"),oc=Ol("animationiteration"),sc=Ol("animationstart"),ic=Ol("transitionend"),ac=new Map,ea="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 Ct(e,t){ac.set(e,t),Ht(t,[e])}for(var io=0;io<ea.length;io++){var ao=ea[io],jp=ao.toLowerCase(),Cp=ao[0].toUpperCase()+ao.slice(1);Ct(jp,"on"+Cp)}Ct(lc,"onAnimationEnd");Ct(oc,"onAnimationIteration");Ct(sc,"onAnimationStart");Ct("dblclick","onDoubleClick");Ct("focusin","onFocus");Ct("focusout","onBlur");Ct(ic,"onTransitionEnd");yn("onMouseEnter",["mouseout","mouseover"]);yn("onMouseLeave",["mouseout","mouseover"]);yn("onPointerEnter",["pointerout","pointerover"]);yn("onPointerLeave",["pointerout","pointerover"]);Ht("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ht("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ht("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ht("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ht("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ht("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var An="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(" "),Np=new Set("cancel close invalid load scroll toggle".split(" ").concat(An));function ta(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,jf(r,t,void 0,e),e.currentTarget=null}function uc(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 s=r.length-1;0<=s;s--){var a=r[s],u=a.instance,c=a.currentTarget;if(a=a.listener,u!==o&&l.isPropagationStopped())break e;ta(l,a,c),o=u}else for(s=0;s<r.length;s++){if(a=r[s],u=a.instance,c=a.currentTarget,a=a.listener,u!==o&&l.isPropagationStopped())break e;ta(l,a,c),o=u}}}if(al)throw e=Wo,al=!1,Wo=null,e}function A(e,t){var n=t[Zo];n===void 0&&(n=t[Zo]=new Set);var r=e+"__bubble";n.has(r)||(cc(t,e,2,!1),n.add(r))}function uo(e,t,n){var r=0;t&&(r|=4),cc(n,e,r,t)}var Mr="_reactListening"+Math.random().toString(36).slice(2);function lr(e){if(!e[Mr]){e[Mr]=!0,yu.forEach(function(n){n!=="selectionchange"&&(Np.has(n)||uo(n,!1,e),uo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mr]||(t[Mr]=!0,uo("selectionchange",!1,t))}}function cc(e,t,n,r){switch(Ku(t)){case 1:var l=Df;break;case 4:l=Af;break;default:l=As}n=l.bind(null,t,n,e),l=void 0,!Bo||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 co(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===l||a.nodeType===8&&a.parentNode===l)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;s=s.return}for(;a!==null;){if(s=Mt(a),s===null)return;if(u=s.tag,u===5||u===6){r=o=s;continue e}a=a.parentNode}}r=r.return}Iu(function(){var c=o,p=Fs(n),h=[];e:{var v=ac.get(e);if(v!==void 0){var g=Ws,w=e;switch(e){case"keypress":if(qr(n)===0)break e;case"keydown":case"keyup":g=tp;break;case"focusin":w="focus",g=ro;break;case"focusout":w="blur",g=ro;break;case"beforeblur":case"afterblur":g=ro;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":g=Vi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Vf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=lp;break;case lc:case oc:case sc:g=Qf;break;case ic:g=sp;break;case"scroll":g=Bf;break;case"wheel":g=ap;break;case"copy":case"cut":case"paste":g=Gf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=bi}var k=(t&4)!==0,S=!k&&e==="scroll",f=k?v!==null?v+"Capture":null:v;k=[];for(var d=c,m;d!==null;){m=d;var x=m.stateNode;if(m.tag===5&&x!==null&&(m=x,f!==null&&(x=Zn(d,f),x!=null&&k.push(or(d,x,m)))),S)break;d=d.return}0<k.length&&(v=new g(v,w,null,n,p),h.push({event:v,listeners:k}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",v&&n!==Do&&(w=n.relatedTarget||n.fromElement)&&(Mt(w)||w[Je]))break e;if((g||v)&&(v=p.window===p?p:(v=p.ownerDocument)?v.defaultView||v.parentWindow:window,g?(w=n.relatedTarget||n.toElement,g=c,w=w?Mt(w):null,w!==null&&(S=bt(w),w!==S||w.tag!==5&&w.tag!==6)&&(w=null)):(g=null,w=c),g!==w)){if(k=Vi,x="onMouseLeave",f="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(k=bi,x="onPointerLeave",f="onPointerEnter",d="pointer"),S=g==null?v:rn(g),m=w==null?v:rn(w),v=new k(x,d+"leave",g,n,p),v.target=S,v.relatedTarget=m,x=null,Mt(p)===c&&(k=new k(f,d+"enter",w,n,p),k.target=m,k.relatedTarget=S,x=k),S=x,g&&w)t:{for(k=g,f=w,d=0,m=k;m;m=Qt(m))d++;for(m=0,x=f;x;x=Qt(x))m++;for(;0<d-m;)k=Qt(k),d--;for(;0<m-d;)f=Qt(f),m--;for(;d--;){if(k===f||f!==null&&k===f.alternate)break t;k=Qt(k),f=Qt(f)}k=null}else k=null;g!==null&&na(h,v,g,k,!1),w!==null&&S!==null&&na(h,S,w,k,!0)}}e:{if(v=c?rn(c):window,g=v.nodeName&&v.nodeName.toLowerCase(),g==="select"||g==="input"&&v.type==="file")var j=mp;else if(Gi(v))if(Ju)j=xp;else{j=yp;var E=vp}else(g=v.nodeName)&&g.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(j=gp);if(j&&(j=j(e,c))){Zu(h,j,n,p);break e}E&&E(e,v,c),e==="focusout"&&(E=v._wrapperState)&&E.controlled&&v.type==="number"&&Mo(v,"number",v.value)}switch(E=c?rn(c):window,e){case"focusin":(Gi(E)||E.contentEditable==="true")&&(tn=E,Qo=c,bn=null);break;case"focusout":bn=Qo=tn=null;break;case"mousedown":Ko=!0;break;case"contextmenu":case"mouseup":case"dragend":Ko=!1,Ji(h,n,p);break;case"selectionchange":if(Sp)break;case"keydown":case"keyup":Ji(h,n,p)}var N;if(Hs)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else en?Xu(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Yu&&n.locale!=="ko"&&(en||L!=="onCompositionStart"?L==="onCompositionEnd"&&en&&(N=Gu()):(ct=p,Bs="value"in ct?ct.value:ct.textContent,en=!0)),E=pl(c,L),0<E.length&&(L=new Hi(L,e,null,n,p),h.push({event:L,listeners:E}),N?L.data=N:(N=qu(n),N!==null&&(L.data=N)))),(N=cp?dp(e,n):fp(e,n))&&(c=pl(c,"onBeforeInput"),0<c.length&&(p=new Hi("onBeforeInput","beforeinput",null,n,p),h.push({event:p,listeners:c}),p.data=N))}uc(h,t)})}function or(e,t,n){return{instance:e,listener:t,currentTarget:n}}function pl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=Zn(e,n),o!=null&&r.unshift(or(e,o,l)),o=Zn(e,t),o!=null&&r.push(or(e,o,l))),e=e.return}return r}function Qt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function na(e,t,n,r,l){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,u=a.alternate,c=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&c!==null&&(a=c,l?(u=Zn(n,o),u!=null&&s.unshift(or(n,u,a))):l||(u=Zn(n,o),u!=null&&s.push(or(n,u,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Ep=/\r\n?/g,_p=/\u0000|\uFFFD/g;function ra(e){return(typeof e=="string"?e:""+e).replace(Ep,`
38
- `).replace(_p,"")}function Or(e,t,n){if(t=ra(t),ra(e)!==t&&n)throw Error(C(425))}function hl(){}var Go=null,Yo=null;function Xo(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 qo=typeof setTimeout=="function"?setTimeout:void 0,Pp=typeof clearTimeout=="function"?clearTimeout:void 0,la=typeof Promise=="function"?Promise:void 0,Lp=typeof queueMicrotask=="function"?queueMicrotask:typeof la<"u"?function(e){return la.resolve(null).then(e).catch(Tp)}:qo;function Tp(e){setTimeout(function(){throw e})}function fo(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),tr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);tr(t)}function vt(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 oa(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 En=Math.random().toString(36).slice(2),Ve="__reactFiber$"+En,sr="__reactProps$"+En,Je="__reactContainer$"+En,Zo="__reactEvents$"+En,Rp="__reactListeners$"+En,zp="__reactHandles$"+En;function Mt(e){var t=e[Ve];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Je]||n[Ve]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=oa(e);e!==null;){if(n=e[Ve])return n;e=oa(e)}return t}e=n,n=e.parentNode}return null}function xr(e){return e=e[Ve]||e[Je],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function rn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(C(33))}function Fl(e){return e[sr]||null}var Jo=[],ln=-1;function Nt(e){return{current:e}}function B(e){0>ln||(e.current=Jo[ln],Jo[ln]=null,ln--)}function U(e,t){ln++,Jo[ln]=e.current,e.current=t}var jt={},ce=Nt(jt),ye=Nt(!1),Dt=jt;function gn(e,t){var n=e.type.contextTypes;if(!n)return jt;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 ge(e){return e=e.childContextTypes,e!=null}function ml(){B(ye),B(ce)}function sa(e,t,n){if(ce.current!==jt)throw Error(C(168));U(ce,t),U(ye,n)}function dc(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(C(108,vf(e)||"Unknown",l));return b({},n,r)}function vl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jt,Dt=ce.current,U(ce,e),U(ye,ye.current),!0}function ia(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=dc(e,t,Dt),r.__reactInternalMemoizedMergedChildContext=e,B(ye),B(ce),U(ce,e)):B(ye),U(ye,n)}var Ge=null,$l=!1,po=!1;function fc(e){Ge===null?Ge=[e]:Ge.push(e)}function Ip(e){$l=!0,fc(e)}function Et(){if(!po&&Ge!==null){po=!0;var e=0,t=F;try{var n=Ge;for(F=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ge=null,$l=!1}catch(l){throw Ge!==null&&(Ge=Ge.slice(e+1)),$u($s,Et),l}finally{F=t,po=!1}}return null}var on=[],sn=0,yl=null,gl=0,Pe=[],Le=0,At=null,Ye=1,Xe="";function zt(e,t){on[sn++]=gl,on[sn++]=yl,yl=e,gl=t}function pc(e,t,n){Pe[Le++]=Ye,Pe[Le++]=Xe,Pe[Le++]=At,At=e;var r=Ye;e=Xe;var l=32-Ue(r)-1;r&=~(1<<l),n+=1;var o=32-Ue(t)+l;if(30<o){var s=l-l%5;o=(r&(1<<s)-1).toString(32),r>>=s,l-=s,Ye=1<<32-Ue(t)+l|n<<l|r,Xe=o+e}else Ye=1<<o|n<<l|r,Xe=e}function Qs(e){e.return!==null&&(zt(e,1),pc(e,1,0))}function Ks(e){for(;e===yl;)yl=on[--sn],on[sn]=null,gl=on[--sn],on[sn]=null;for(;e===At;)At=Pe[--Le],Pe[Le]=null,Xe=Pe[--Le],Pe[Le]=null,Ye=Pe[--Le],Pe[Le]=null}var je=null,Se=null,W=!1,$e=null;function hc(e,t){var n=Te(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 aa(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,je=e,Se=vt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,je=e,Se=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=At!==null?{id:Ye,overflow:Xe}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Te(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,je=e,Se=null,!0):!1;default:return!1}}function es(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ts(e){if(W){var t=Se;if(t){var n=t;if(!aa(e,t)){if(es(e))throw Error(C(418));t=vt(n.nextSibling);var r=je;t&&aa(e,t)?hc(r,n):(e.flags=e.flags&-4097|2,W=!1,je=e)}}else{if(es(e))throw Error(C(418));e.flags=e.flags&-4097|2,W=!1,je=e}}}function ua(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;je=e}function Fr(e){if(e!==je)return!1;if(!W)return ua(e),W=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Xo(e.type,e.memoizedProps)),t&&(t=Se)){if(es(e))throw mc(),Error(C(418));for(;t;)hc(e,t),t=vt(t.nextSibling)}if(ua(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(C(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Se=vt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Se=null}}else Se=je?vt(e.stateNode.nextSibling):null;return!0}function mc(){for(var e=Se;e;)e=vt(e.nextSibling)}function xn(){Se=je=null,W=!1}function Gs(e){$e===null?$e=[e]:$e.push(e)}var Mp=nt.ReactCurrentBatchConfig;function Mn(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(C(309));var r=n.stateNode}if(!r)throw Error(C(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(s){var a=l.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(C(284));if(!n._owner)throw Error(C(290,e))}return e}function $r(e,t){throw e=Object.prototype.toString.call(t),Error(C(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ca(e){var t=e._init;return t(e._payload)}function vc(e){function t(f,d){if(e){var m=f.deletions;m===null?(f.deletions=[d],f.flags|=16):m.push(d)}}function n(f,d){if(!e)return null;for(;d!==null;)t(f,d),d=d.sibling;return null}function r(f,d){for(f=new Map;d!==null;)d.key!==null?f.set(d.key,d):f.set(d.index,d),d=d.sibling;return f}function l(f,d){return f=wt(f,d),f.index=0,f.sibling=null,f}function o(f,d,m){return f.index=m,e?(m=f.alternate,m!==null?(m=m.index,m<d?(f.flags|=2,d):m):(f.flags|=2,d)):(f.flags|=1048576,d)}function s(f){return e&&f.alternate===null&&(f.flags|=2),f}function a(f,d,m,x){return d===null||d.tag!==6?(d=wo(m,f.mode,x),d.return=f,d):(d=l(d,m),d.return=f,d)}function u(f,d,m,x){var j=m.type;return j===Jt?p(f,d,m.props.children,x,m.key):d!==null&&(d.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===st&&ca(j)===d.type)?(x=l(d,m.props),x.ref=Mn(f,d,m),x.return=f,x):(x=ll(m.type,m.key,m.props,null,f.mode,x),x.ref=Mn(f,d,m),x.return=f,x)}function c(f,d,m,x){return d===null||d.tag!==4||d.stateNode.containerInfo!==m.containerInfo||d.stateNode.implementation!==m.implementation?(d=ko(m,f.mode,x),d.return=f,d):(d=l(d,m.children||[]),d.return=f,d)}function p(f,d,m,x,j){return d===null||d.tag!==7?(d=Ut(m,f.mode,x,j),d.return=f,d):(d=l(d,m),d.return=f,d)}function h(f,d,m){if(typeof d=="string"&&d!==""||typeof d=="number")return d=wo(""+d,f.mode,m),d.return=f,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Er:return m=ll(d.type,d.key,d.props,null,f.mode,m),m.ref=Mn(f,null,d),m.return=f,m;case Zt:return d=ko(d,f.mode,m),d.return=f,d;case st:var x=d._init;return h(f,x(d._payload),m)}if(Un(d)||Ln(d))return d=Ut(d,f.mode,m,null),d.return=f,d;$r(f,d)}return null}function v(f,d,m,x){var j=d!==null?d.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return j!==null?null:a(f,d,""+m,x);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Er:return m.key===j?u(f,d,m,x):null;case Zt:return m.key===j?c(f,d,m,x):null;case st:return j=m._init,v(f,d,j(m._payload),x)}if(Un(m)||Ln(m))return j!==null?null:p(f,d,m,x,null);$r(f,m)}return null}function g(f,d,m,x,j){if(typeof x=="string"&&x!==""||typeof x=="number")return f=f.get(m)||null,a(d,f,""+x,j);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Er:return f=f.get(x.key===null?m:x.key)||null,u(d,f,x,j);case Zt:return f=f.get(x.key===null?m:x.key)||null,c(d,f,x,j);case st:var E=x._init;return g(f,d,m,E(x._payload),j)}if(Un(x)||Ln(x))return f=f.get(m)||null,p(d,f,x,j,null);$r(d,x)}return null}function w(f,d,m,x){for(var j=null,E=null,N=d,L=d=0,D=null;N!==null&&L<m.length;L++){N.index>L?(D=N,N=null):D=N.sibling;var z=v(f,N,m[L],x);if(z===null){N===null&&(N=D);break}e&&N&&z.alternate===null&&t(f,N),d=o(z,d,L),E===null?j=z:E.sibling=z,E=z,N=D}if(L===m.length)return n(f,N),W&&zt(f,L),j;if(N===null){for(;L<m.length;L++)N=h(f,m[L],x),N!==null&&(d=o(N,d,L),E===null?j=N:E.sibling=N,E=N);return W&&zt(f,L),j}for(N=r(f,N);L<m.length;L++)D=g(N,f,L,m[L],x),D!==null&&(e&&D.alternate!==null&&N.delete(D.key===null?L:D.key),d=o(D,d,L),E===null?j=D:E.sibling=D,E=D);return e&&N.forEach(function(we){return t(f,we)}),W&&zt(f,L),j}function k(f,d,m,x){var j=Ln(m);if(typeof j!="function")throw Error(C(150));if(m=j.call(m),m==null)throw Error(C(151));for(var E=j=null,N=d,L=d=0,D=null,z=m.next();N!==null&&!z.done;L++,z=m.next()){N.index>L?(D=N,N=null):D=N.sibling;var we=v(f,N,z.value,x);if(we===null){N===null&&(N=D);break}e&&N&&we.alternate===null&&t(f,N),d=o(we,d,L),E===null?j=we:E.sibling=we,E=we,N=D}if(z.done)return n(f,N),W&&zt(f,L),j;if(N===null){for(;!z.done;L++,z=m.next())z=h(f,z.value,x),z!==null&&(d=o(z,d,L),E===null?j=z:E.sibling=z,E=z);return W&&zt(f,L),j}for(N=r(f,N);!z.done;L++,z=m.next())z=g(N,f,L,z.value,x),z!==null&&(e&&z.alternate!==null&&N.delete(z.key===null?L:z.key),d=o(z,d,L),E===null?j=z:E.sibling=z,E=z);return e&&N.forEach(function(lt){return t(f,lt)}),W&&zt(f,L),j}function S(f,d,m,x){if(typeof m=="object"&&m!==null&&m.type===Jt&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Er:e:{for(var j=m.key,E=d;E!==null;){if(E.key===j){if(j=m.type,j===Jt){if(E.tag===7){n(f,E.sibling),d=l(E,m.props.children),d.return=f,f=d;break e}}else if(E.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===st&&ca(j)===E.type){n(f,E.sibling),d=l(E,m.props),d.ref=Mn(f,E,m),d.return=f,f=d;break e}n(f,E);break}else t(f,E);E=E.sibling}m.type===Jt?(d=Ut(m.props.children,f.mode,x,m.key),d.return=f,f=d):(x=ll(m.type,m.key,m.props,null,f.mode,x),x.ref=Mn(f,d,m),x.return=f,f=x)}return s(f);case Zt:e:{for(E=m.key;d!==null;){if(d.key===E)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(f,d.sibling),d=l(d,m.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=ko(m,f.mode,x),d.return=f,f=d}return s(f);case st:return E=m._init,S(f,d,E(m._payload),x)}if(Un(m))return w(f,d,m,x);if(Ln(m))return k(f,d,m,x);$r(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(f,d.sibling),d=l(d,m),d.return=f,f=d):(n(f,d),d=wo(m,f.mode,x),d.return=f,f=d),s(f)):n(f,d)}return S}var wn=vc(!0),yc=vc(!1),xl=Nt(null),wl=null,an=null,Ys=null;function Xs(){Ys=an=wl=null}function qs(e){var t=xl.current;B(xl),e._currentValue=t}function ns(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 mn(e,t){wl=e,Ys=an=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ve=!0),e.firstContext=null)}function ze(e){var t=e._currentValue;if(Ys!==e)if(e={context:e,memoizedValue:t,next:null},an===null){if(wl===null)throw Error(C(308));an=e,wl.dependencies={lanes:0,firstContext:e}}else an=an.next=e;return t}var Ot=null;function Zs(e){Ot===null?Ot=[e]:Ot.push(e)}function gc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Zs(t)):(n.next=l.next,l.next=n),t.interleaved=n,et(e,r)}function et(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 it=!1;function Js(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function xc(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 qe(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,O&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,et(e,n)}return l=r.interleaved,l===null?(t.next=t,Zs(r)):(t.next=l.next,l.next=t),r.interleaved=t,et(e,n)}function Zr(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,Us(e,n)}}function da(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=s:o=o.next=s,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 kl(e,t,n,r){var l=e.updateQueue;it=!1;var o=l.firstBaseUpdate,s=l.lastBaseUpdate,a=l.shared.pending;if(a!==null){l.shared.pending=null;var u=a,c=u.next;u.next=null,s===null?o=c:s.next=c,s=u;var p=e.alternate;p!==null&&(p=p.updateQueue,a=p.lastBaseUpdate,a!==s&&(a===null?p.firstBaseUpdate=c:a.next=c,p.lastBaseUpdate=u))}if(o!==null){var h=l.baseState;s=0,p=c=u=null,a=o;do{var v=a.lane,g=a.eventTime;if((r&v)===v){p!==null&&(p=p.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,k=a;switch(v=t,g=n,k.tag){case 1:if(w=k.payload,typeof w=="function"){h=w.call(g,h,v);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,v=typeof w=="function"?w.call(g,h,v):w,v==null)break e;h=b({},h,v);break e;case 2:it=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,v=l.effects,v===null?l.effects=[a]:v.push(a))}else g={eventTime:g,lane:v,tag:a.tag,payload:a.payload,callback:a.callback,next:null},p===null?(c=p=g,u=h):p=p.next=g,s|=v;if(a=a.next,a===null){if(a=l.shared.pending,a===null)break;v=a,a=v.next,v.next=null,l.lastBaseUpdate=v,l.shared.pending=null}}while(!0);if(p===null&&(u=h),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=p,t=l.shared.interleaved,t!==null){l=t;do s|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Wt|=s,e.lanes=s,e.memoizedState=h}}function fa(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(C(191,l));l.call(r)}}}var wr={},be=Nt(wr),ir=Nt(wr),ar=Nt(wr);function Ft(e){if(e===wr)throw Error(C(174));return e}function ei(e,t){switch(U(ar,t),U(ir,e),U(be,wr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fo(t,e)}B(be),U(be,t)}function kn(){B(be),B(ir),B(ar)}function wc(e){Ft(ar.current);var t=Ft(be.current),n=Fo(t,e.type);t!==n&&(U(ir,e),U(be,n))}function ti(e){ir.current===e&&(B(be),B(ir))}var V=Nt(0);function Sl(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 ho=[];function ni(){for(var e=0;e<ho.length;e++)ho[e]._workInProgressVersionPrimary=null;ho.length=0}var Jr=nt.ReactCurrentDispatcher,mo=nt.ReactCurrentBatchConfig,Bt=0,H=null,Z=null,te=null,jl=!1,Qn=!1,ur=0,Op=0;function ie(){throw Error(C(321))}function ri(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ae(e[n],t[n]))return!1;return!0}function li(e,t,n,r,l,o){if(Bt=o,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Jr.current=e===null||e.memoizedState===null?Dp:Ap,e=n(r,l),Qn){o=0;do{if(Qn=!1,ur=0,25<=o)throw Error(C(301));o+=1,te=Z=null,t.updateQueue=null,Jr.current=Bp,e=n(r,l)}while(Qn)}if(Jr.current=Cl,t=Z!==null&&Z.next!==null,Bt=0,te=Z=H=null,jl=!1,t)throw Error(C(300));return e}function oi(){var e=ur!==0;return ur=0,e}function We(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?H.memoizedState=te=e:te=te.next=e,te}function Ie(){if(Z===null){var e=H.alternate;e=e!==null?e.memoizedState:null}else e=Z.next;var t=te===null?H.memoizedState:te.next;if(t!==null)te=t,Z=e;else{if(e===null)throw Error(C(310));Z=e,e={memoizedState:Z.memoizedState,baseState:Z.baseState,baseQueue:Z.baseQueue,queue:Z.queue,next:null},te===null?H.memoizedState=te=e:te=te.next=e}return te}function cr(e,t){return typeof t=="function"?t(e):t}function vo(e){var t=Ie(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=Z,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var s=l.next;l.next=o.next,o.next=s}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var a=s=null,u=null,c=o;do{var p=c.lane;if((Bt&p)===p)u!==null&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=h,s=r):u=u.next=h,H.lanes|=p,Wt|=p}c=c.next}while(c!==null&&c!==o);u===null?s=r:u.next=a,Ae(r,t.memoizedState)||(ve=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,H.lanes|=o,Wt|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function yo(e){var t=Ie(),n=t.queue;if(n===null)throw Error(C(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var s=l=l.next;do o=e(o,s.action),s=s.next;while(s!==l);Ae(o,t.memoizedState)||(ve=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function kc(){}function Sc(e,t){var n=H,r=Ie(),l=t(),o=!Ae(r.memoizedState,l);if(o&&(r.memoizedState=l,ve=!0),r=r.queue,si(Nc.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||te!==null&&te.memoizedState.tag&1){if(n.flags|=2048,dr(9,Cc.bind(null,n,r,l,t),void 0,null),ne===null)throw Error(C(349));Bt&30||jc(n,t,l)}return l}function jc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=H.updateQueue,t===null?(t={lastEffect:null,stores:null},H.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Cc(e,t,n,r){t.value=n,t.getSnapshot=r,Ec(t)&&_c(e)}function Nc(e,t,n){return n(function(){Ec(t)&&_c(e)})}function Ec(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ae(e,n)}catch{return!0}}function _c(e){var t=et(e,1);t!==null&&De(t,e,1,-1)}function pa(e){var t=We();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:e},t.queue=e,e=e.dispatch=Up.bind(null,H,e),[t.memoizedState,e]}function dr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=H.updateQueue,t===null?(t={lastEffect:null,stores:null},H.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 Pc(){return Ie().memoizedState}function el(e,t,n,r){var l=We();H.flags|=e,l.memoizedState=dr(1|t,n,void 0,r===void 0?null:r)}function Ul(e,t,n,r){var l=Ie();r=r===void 0?null:r;var o=void 0;if(Z!==null){var s=Z.memoizedState;if(o=s.destroy,r!==null&&ri(r,s.deps)){l.memoizedState=dr(t,n,o,r);return}}H.flags|=e,l.memoizedState=dr(1|t,n,o,r)}function ha(e,t){return el(8390656,8,e,t)}function si(e,t){return Ul(2048,8,e,t)}function Lc(e,t){return Ul(4,2,e,t)}function Tc(e,t){return Ul(4,4,e,t)}function Rc(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 zc(e,t,n){return n=n!=null?n.concat([e]):null,Ul(4,4,Rc.bind(null,t,e),n)}function ii(){}function Ic(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ri(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Mc(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ri(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oc(e,t,n){return Bt&21?(Ae(n,t)||(n=Au(),H.lanes|=n,Wt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ve=!0),e.memoizedState=n)}function Fp(e,t){var n=F;F=n!==0&&4>n?n:4,e(!0);var r=mo.transition;mo.transition={};try{e(!1),t()}finally{F=n,mo.transition=r}}function Fc(){return Ie().memoizedState}function $p(e,t,n){var r=xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$c(e))Uc(t,n);else if(n=gc(e,t,n,r),n!==null){var l=fe();De(n,e,r,l),Dc(n,t,r)}}function Up(e,t,n){var r=xt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($c(e))Uc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(l.hasEagerState=!0,l.eagerState=a,Ae(a,s)){var u=t.interleaved;u===null?(l.next=l,Zs(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=gc(e,t,l,r),n!==null&&(l=fe(),De(n,e,r,l),Dc(n,t,r))}}function $c(e){var t=e.alternate;return e===H||t!==null&&t===H}function Uc(e,t){Qn=jl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Us(e,n)}}var Cl={readContext:ze,useCallback:ie,useContext:ie,useEffect:ie,useImperativeHandle:ie,useInsertionEffect:ie,useLayoutEffect:ie,useMemo:ie,useReducer:ie,useRef:ie,useState:ie,useDebugValue:ie,useDeferredValue:ie,useTransition:ie,useMutableSource:ie,useSyncExternalStore:ie,useId:ie,unstable_isNewReconciler:!1},Dp={readContext:ze,useCallback:function(e,t){return We().memoizedState=[e,t===void 0?null:t],e},useContext:ze,useEffect:ha,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,el(4194308,4,Rc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return el(4194308,4,e,t)},useInsertionEffect:function(e,t){return el(4,2,e,t)},useMemo:function(e,t){var n=We();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=We();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=$p.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=We();return e={current:e},t.memoizedState=e},useState:pa,useDebugValue:ii,useDeferredValue:function(e){return We().memoizedState=e},useTransition:function(){var e=pa(!1),t=e[0];return e=Fp.bind(null,e[1]),We().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=H,l=We();if(W){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),ne===null)throw Error(C(349));Bt&30||jc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,ha(Nc.bind(null,r,o,e),[e]),r.flags|=2048,dr(9,Cc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=We(),t=ne.identifierPrefix;if(W){var n=Xe,r=Ye;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ur++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Op++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ap={readContext:ze,useCallback:Ic,useContext:ze,useEffect:si,useImperativeHandle:zc,useInsertionEffect:Lc,useLayoutEffect:Tc,useMemo:Mc,useReducer:vo,useRef:Pc,useState:function(){return vo(cr)},useDebugValue:ii,useDeferredValue:function(e){var t=Ie();return Oc(t,Z.memoizedState,e)},useTransition:function(){var e=vo(cr)[0],t=Ie().memoizedState;return[e,t]},useMutableSource:kc,useSyncExternalStore:Sc,useId:Fc,unstable_isNewReconciler:!1},Bp={readContext:ze,useCallback:Ic,useContext:ze,useEffect:si,useImperativeHandle:zc,useInsertionEffect:Lc,useLayoutEffect:Tc,useMemo:Mc,useReducer:yo,useRef:Pc,useState:function(){return yo(cr)},useDebugValue:ii,useDeferredValue:function(e){var t=Ie();return Z===null?t.memoizedState=e:Oc(t,Z.memoizedState,e)},useTransition:function(){var e=yo(cr)[0],t=Ie().memoizedState;return[e,t]},useMutableSource:kc,useSyncExternalStore:Sc,useId:Fc,unstable_isNewReconciler:!1};function Oe(e,t){if(e&&e.defaultProps){t=b({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Dl={isMounted:function(e){return(e=e._reactInternals)?bt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fe(),l=xt(e),o=qe(r,l);o.payload=t,n!=null&&(o.callback=n),t=yt(e,o,l),t!==null&&(De(t,e,l,r),Zr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fe(),l=xt(e),o=qe(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=yt(e,o,l),t!==null&&(De(t,e,l,r),Zr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fe(),r=xt(e),l=qe(n,r);l.tag=2,t!=null&&(l.callback=t),t=yt(e,l,r),t!==null&&(De(t,e,r,n),Zr(t,e,r))}};function ma(e,t,n,r,l,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!rr(n,r)||!rr(l,o):!0}function Ac(e,t,n){var r=!1,l=jt,o=t.contextType;return typeof o=="object"&&o!==null?o=ze(o):(l=ge(t)?Dt:ce.current,r=t.contextTypes,o=(r=r!=null)?gn(e,l):jt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Dl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function va(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&&Dl.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},Js(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=ze(o):(o=ge(t)?Dt:ce.current,l.context=gn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(rs(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&&Dl.enqueueReplaceState(l,l.state,null),kl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Sn(e,t){try{var n="",r=t;do n+=mf(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 go(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function os(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Wp=typeof WeakMap=="function"?WeakMap:Map;function Bc(e,t,n){n=qe(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){El||(El=!0,ms=r),os(e,t)},n}function Wc(e,t,n){n=qe(-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(){os(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){os(e,t),typeof r!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function ya(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wp;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=nh.bind(null,e,t,n),t.then(e,e))}function ga(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 xa(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=qe(-1,1),t.tag=2,yt(n,t,1))),n.lanes|=1),e)}var Vp=nt.ReactCurrentOwner,ve=!1;function de(e,t,n,r){t.child=e===null?yc(t,null,n,r):wn(t,e.child,n,r)}function wa(e,t,n,r,l){n=n.render;var o=t.ref;return mn(t,l),r=li(e,t,n,r,o,l),n=oi(),e!==null&&!ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,tt(e,t,l)):(W&&n&&Qs(t),t.flags|=1,de(e,t,r,l),t.child)}function ka(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!mi(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Vc(e,t,o,r,l)):(e=ll(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 s=o.memoizedProps;if(n=n.compare,n=n!==null?n:rr,n(s,r)&&e.ref===t.ref)return tt(e,t,l)}return t.flags|=1,e=wt(o,r),e.ref=t.ref,e.return=t,t.child=e}function Vc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(rr(o,r)&&e.ref===t.ref)if(ve=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(ve=!0);else return t.lanes=e.lanes,tt(e,t,l)}return ss(e,t,n,r,l)}function Hc(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},U(cn,ke),ke|=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,U(cn,ke),ke|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,U(cn,ke),ke|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,U(cn,ke),ke|=r;return de(e,t,l,n),t.child}function bc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ss(e,t,n,r,l){var o=ge(n)?Dt:ce.current;return o=gn(t,o),mn(t,l),n=li(e,t,n,r,o,l),r=oi(),e!==null&&!ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,tt(e,t,l)):(W&&r&&Qs(t),t.flags|=1,de(e,t,n,l),t.child)}function Sa(e,t,n,r,l){if(ge(n)){var o=!0;vl(t)}else o=!1;if(mn(t,l),t.stateNode===null)tl(e,t),Ac(t,n,r),ls(t,n,r,l),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=ze(c):(c=ge(n)?Dt:ce.current,c=gn(t,c));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||u!==c)&&va(t,s,r,c),it=!1;var v=t.memoizedState;s.state=v,kl(t,r,s,l),u=t.memoizedState,a!==r||v!==u||ye.current||it?(typeof p=="function"&&(rs(t,n,p,r),u=t.memoizedState),(a=it||ma(t,n,a,r,v,u,c))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,xc(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Oe(t.type,a),s.props=c,h=t.pendingProps,v=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=ze(u):(u=ge(n)?Dt:ce.current,u=gn(t,u));var g=n.getDerivedStateFromProps;(p=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||v!==u)&&va(t,s,r,u),it=!1,v=t.memoizedState,s.state=v,kl(t,r,s,l);var w=t.memoizedState;a!==h||v!==w||ye.current||it?(typeof g=="function"&&(rs(t,n,g,r),w=t.memoizedState),(c=it||ma(t,n,c,r,v,w,u)||!1)?(p||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),s.props=r,s.state=w,s.context=u,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return is(e,t,n,r,o,l)}function is(e,t,n,r,l,o){bc(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return l&&ia(t,n,!1),tt(e,t,o);r=t.stateNode,Vp.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=wn(t,e.child,null,o),t.child=wn(t,null,a,o)):de(e,t,a,o),t.memoizedState=r.state,l&&ia(t,n,!0),t.child}function Qc(e){var t=e.stateNode;t.pendingContext?sa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sa(e,t.context,!1),ei(e,t.containerInfo)}function ja(e,t,n,r,l){return xn(),Gs(l),t.flags|=256,de(e,t,n,r),t.child}var as={dehydrated:null,treeContext:null,retryLane:0};function us(e){return{baseLanes:e,cachePool:null,transitions:null}}function Kc(e,t,n){var r=t.pendingProps,l=V.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(l&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),U(V,l&1),e===null)return ts(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):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Wl(s,r,0,null),e=Ut(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=us(n),t.memoizedState=as,e):ai(t,s));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Hp(e,t,s,r,a,l,n);if(o){o=r.fallback,s=t.mode,l=e.child,a=l.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=wt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),a!==null?o=wt(a,o):(o=Ut(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?us(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=as,r}return o=e.child,e=o.sibling,r=wt(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 ai(e,t){return t=Wl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ur(e,t,n,r){return r!==null&&Gs(r),wn(t,e.child,null,n),e=ai(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hp(e,t,n,r,l,o,s){if(n)return t.flags&256?(t.flags&=-257,r=go(Error(C(422))),Ur(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Wl({mode:"visible",children:r.children},l,0,null),o=Ut(o,l,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&wn(t,e.child,null,s),t.child.memoizedState=us(s),t.memoizedState=as,o);if(!(t.mode&1))return Ur(e,t,s,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(C(419)),r=go(o,r,void 0),Ur(e,t,s,r)}if(a=(s&e.childLanes)!==0,ve||a){if(r=ne,r!==null){switch(s&-s){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|s)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,et(e,l),De(r,e,l,-1))}return hi(),r=go(Error(C(421))),Ur(e,t,s,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=rh.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Se=vt(l.nextSibling),je=t,W=!0,$e=null,e!==null&&(Pe[Le++]=Ye,Pe[Le++]=Xe,Pe[Le++]=At,Ye=e.id,Xe=e.overflow,At=t),t=ai(t,r.children),t.flags|=4096,t)}function Ca(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ns(e.return,t,n)}function xo(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 Gc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(de(e,t,r.children,n),r=V.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&&Ca(e,n,t);else if(e.tag===19)Ca(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(U(V,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&&Sl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),xo(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&&Sl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}xo(t,!0,n,null,o);break;case"together":xo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function tl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(C(153));if(t.child!==null){for(e=t.child,n=wt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function bp(e,t,n){switch(t.tag){case 3:Qc(t),xn();break;case 5:wc(t);break;case 1:ge(t.type)&&vl(t);break;case 4:ei(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;U(xl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(V,V.current&1),t.flags|=128,null):n&t.child.childLanes?Kc(e,t,n):(U(V,V.current&1),e=tt(e,t,n),e!==null?e.sibling:null);U(V,V.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Gc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),U(V,V.current),r)break;return null;case 22:case 23:return t.lanes=0,Hc(e,t,n)}return tt(e,t,n)}var Yc,cs,Xc,qc;Yc=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}};cs=function(){};Xc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Ft(be.current);var o=null;switch(n){case"input":l=zo(e,l),r=zo(e,r),o=[];break;case"select":l=b({},l,{value:void 0}),r=b({},r,{value:void 0}),o=[];break;case"textarea":l=Oo(e,l),r=Oo(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hl)}$o(n,r);var s;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var a=l[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Xn.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(a=l?.[c],r.hasOwnProperty(c)&&u!==a&&(u!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&a[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(o||(o=[]),o.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(o=o||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Xn.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&A("scroll",e),o||a===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};qc=function(e,t,n,r){n!==r&&(t.flags|=4)};function On(e,t){if(!W)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 ae(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 Qp(e,t,n){var r=t.pendingProps;switch(Ks(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ae(t),null;case 1:return ge(t.type)&&ml(),ae(t),null;case 3:return r=t.stateNode,kn(),B(ye),B(ce),ni(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$e!==null&&(gs($e),$e=null))),cs(e,t),ae(t),null;case 5:ti(t);var l=Ft(ar.current);if(n=t.type,e!==null&&t.stateNode!=null)Xc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(C(166));return ae(t),null}if(e=Ft(be.current),Fr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ve]=t,r[sr]=o,e=(t.mode&1)!==0,n){case"dialog":A("cancel",r),A("close",r);break;case"iframe":case"object":case"embed":A("load",r);break;case"video":case"audio":for(l=0;l<An.length;l++)A(An[l],r);break;case"source":A("error",r);break;case"img":case"image":case"link":A("error",r),A("load",r);break;case"details":A("toggle",r);break;case"input":Ii(r,o),A("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},A("invalid",r);break;case"textarea":Oi(r,o),A("invalid",r)}$o(n,o),l=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Or(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Or(r.textContent,a,e),l=["children",""+a]):Xn.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&A("scroll",r)}switch(n){case"input":_r(r),Mi(r,o,!0);break;case"textarea":_r(r),Fi(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=hl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Nu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ve]=t,e[sr]=r,Yc(e,t,!1,!1),t.stateNode=e;e:{switch(s=Uo(n,r),n){case"dialog":A("cancel",e),A("close",e),l=r;break;case"iframe":case"object":case"embed":A("load",e),l=r;break;case"video":case"audio":for(l=0;l<An.length;l++)A(An[l],e);l=r;break;case"source":A("error",e),l=r;break;case"img":case"image":case"link":A("error",e),A("load",e),l=r;break;case"details":A("toggle",e),l=r;break;case"input":Ii(e,r),l=zo(e,r),A("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=b({},r,{value:void 0}),A("invalid",e);break;case"textarea":Oi(e,r),l=Oo(e,r),A("invalid",e);break;default:l=r}$o(n,l),a=l;for(o in a)if(a.hasOwnProperty(o)){var u=a[o];o==="style"?Pu(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Eu(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&qn(e,u):typeof u=="number"&&qn(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Xn.hasOwnProperty(o)?u!=null&&o==="onScroll"&&A("scroll",e):u!=null&&zs(e,o,u,s))}switch(n){case"input":_r(e),Mi(e,r,!1);break;case"textarea":_r(e),Fi(e);break;case"option":r.value!=null&&e.setAttribute("value",""+St(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?dn(e,!!r.multiple,o,!1):r.defaultValue!=null&&dn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=hl)}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 ae(t),null;case 6:if(e&&t.stateNode!=null)qc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(C(166));if(n=Ft(ar.current),Ft(be.current),Fr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ve]=t,(o=r.nodeValue!==n)&&(e=je,e!==null))switch(e.tag){case 3:Or(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Or(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ve]=t,t.stateNode=r}return ae(t),null;case 13:if(B(V),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(W&&Se!==null&&t.mode&1&&!(t.flags&128))mc(),xn(),t.flags|=98560,o=!1;else if(o=Fr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(C(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(C(317));o[Ve]=t}else xn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ae(t),o=!1}else $e!==null&&(gs($e),$e=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||V.current&1?J===0&&(J=3):hi())),t.updateQueue!==null&&(t.flags|=4),ae(t),null);case 4:return kn(),cs(e,t),e===null&&lr(t.stateNode.containerInfo),ae(t),null;case 10:return qs(t.type._context),ae(t),null;case 17:return ge(t.type)&&ml(),ae(t),null;case 19:if(B(V),o=t.memoizedState,o===null)return ae(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)On(o,!1);else{if(J!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Sl(e),s!==null){for(t.flags|=128,On(o,!1),r=s.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,s=o.alternate,s===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=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return U(V,V.current&1|2),t.child}e=e.sibling}o.tail!==null&&G()>jn&&(t.flags|=128,r=!0,On(o,!1),t.lanes=4194304)}else{if(!r)if(e=Sl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),On(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!W)return ae(t),null}else 2*G()-o.renderingStartTime>jn&&n!==1073741824&&(t.flags|=128,r=!0,On(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=G(),t.sibling=null,n=V.current,U(V,r?n&1|2:n&1),t):(ae(t),null);case 22:case 23:return pi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ke&1073741824&&(ae(t),t.subtreeFlags&6&&(t.flags|=8192)):ae(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function Kp(e,t){switch(Ks(t),t.tag){case 1:return ge(t.type)&&ml(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kn(),B(ye),B(ce),ni(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ti(t),null;case 13:if(B(V),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));xn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(V),null;case 4:return kn(),null;case 10:return qs(t.type._context),null;case 22:case 23:return pi(),null;case 24:return null;default:return null}}var Dr=!1,ue=!1,Gp=typeof WeakSet=="function"?WeakSet:Set,_=null;function un(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Q(e,t,r)}else n.current=null}function ds(e,t,n){try{n()}catch(r){Q(e,t,r)}}var Na=!1;function Yp(e,t){if(Go=dl,e=nc(),bs(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 s=0,a=-1,u=-1,c=0,p=0,h=e,v=null;t:for(;;){for(var g;h!==n||l!==0&&h.nodeType!==3||(a=s+l),h!==o||r!==0&&h.nodeType!==3||(u=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(g=h.firstChild)!==null;)v=h,h=g;for(;;){if(h===e)break t;if(v===n&&++c===l&&(a=s),v===o&&++p===r&&(u=s),(g=h.nextSibling)!==null)break;h=v,v=h.parentNode}h=g}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yo={focusedElem:e,selectionRange:n},dl=!1,_=t;_!==null;)if(t=_,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_=e;else for(;_!==null;){t=_;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,S=w.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:Oe(t.type,k),S);f.__reactInternalSnapshotBeforeUpdate=d}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(C(163))}}catch(x){Q(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return w=Na,Na=!1,w}function Kn(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&&ds(t,n,o)}l=l.next}while(l!==r)}}function Al(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 fs(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 Zc(e){var t=e.alternate;t!==null&&(e.alternate=null,Zc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ve],delete t[sr],delete t[Zo],delete t[Rp],delete t[zp])),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 Jc(e){return e.tag===5||e.tag===3||e.tag===4}function Ea(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(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 ps(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=hl));else if(r!==4&&(e=e.child,e!==null))for(ps(e,t,n),e=e.sibling;e!==null;)ps(e,t,n),e=e.sibling}function hs(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(hs(e,t,n),e=e.sibling;e!==null;)hs(e,t,n),e=e.sibling}var le=null,Fe=!1;function ot(e,t,n){for(n=n.child;n!==null;)ed(e,t,n),n=n.sibling}function ed(e,t,n){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(zl,n)}catch{}switch(n.tag){case 5:ue||un(n,t);case 6:var r=le,l=Fe;le=null,ot(e,t,n),le=r,Fe=l,le!==null&&(Fe?(e=le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):le.removeChild(n.stateNode));break;case 18:le!==null&&(Fe?(e=le,n=n.stateNode,e.nodeType===8?fo(e.parentNode,n):e.nodeType===1&&fo(e,n),tr(e)):fo(le,n.stateNode));break;case 4:r=le,l=Fe,le=n.stateNode.containerInfo,Fe=!0,ot(e,t,n),le=r,Fe=l;break;case 0:case 11:case 14:case 15:if(!ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ds(n,t,s),l=l.next}while(l!==r)}ot(e,t,n);break;case 1:if(!ue&&(un(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Q(n,t,a)}ot(e,t,n);break;case 21:ot(e,t,n);break;case 22:n.mode&1?(ue=(r=ue)||n.memoizedState!==null,ot(e,t,n),ue=r):ot(e,t,n);break;default:ot(e,t,n)}}function _a(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Gp),t.forEach(function(r){var l=lh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Me(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,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:le=a.stateNode,Fe=!1;break e;case 3:le=a.stateNode.containerInfo,Fe=!0;break e;case 4:le=a.stateNode.containerInfo,Fe=!0;break e}a=a.return}if(le===null)throw Error(C(160));ed(o,s,l),le=null,Fe=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(c){Q(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)td(t,e),t=t.sibling}function td(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Me(t,e),Be(e),r&4){try{Kn(3,e,e.return),Al(3,e)}catch(k){Q(e,e.return,k)}try{Kn(5,e,e.return)}catch(k){Q(e,e.return,k)}}break;case 1:Me(t,e),Be(e),r&512&&n!==null&&un(n,n.return);break;case 5:if(Me(t,e),Be(e),r&512&&n!==null&&un(n,n.return),e.flags&32){var l=e.stateNode;try{qn(l,"")}catch(k){Q(e,e.return,k)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&ju(l,o),Uo(a,s);var c=Uo(a,o);for(s=0;s<u.length;s+=2){var p=u[s],h=u[s+1];p==="style"?Pu(l,h):p==="dangerouslySetInnerHTML"?Eu(l,h):p==="children"?qn(l,h):zs(l,p,h,c)}switch(a){case"input":Io(l,o);break;case"textarea":Cu(l,o);break;case"select":var v=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?dn(l,!!o.multiple,g,!1):v!==!!o.multiple&&(o.defaultValue!=null?dn(l,!!o.multiple,o.defaultValue,!0):dn(l,!!o.multiple,o.multiple?[]:"",!1))}l[sr]=o}catch(k){Q(e,e.return,k)}}break;case 6:if(Me(t,e),Be(e),r&4){if(e.stateNode===null)throw Error(C(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(k){Q(e,e.return,k)}}break;case 3:if(Me(t,e),Be(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{tr(t.containerInfo)}catch(k){Q(e,e.return,k)}break;case 4:Me(t,e),Be(e);break;case 13:Me(t,e),Be(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(di=G())),r&4&&_a(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(ue=(c=ue)||p,Me(t,e),ue=c):Me(t,e),Be(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!p&&e.mode&1)for(_=e,p=e.child;p!==null;){for(h=_=p;_!==null;){switch(v=_,g=v.child,v.tag){case 0:case 11:case 14:case 15:Kn(4,v,v.return);break;case 1:un(v,v.return);var w=v.stateNode;if(typeof w.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(k){Q(r,n,k)}}break;case 5:un(v,v.return);break;case 22:if(v.memoizedState!==null){La(h);continue}}g!==null?(g.return=v,_=g):La(h)}p=p.sibling}e:for(p=null,h=e;;){if(h.tag===5){if(p===null){p=h;try{l=h.stateNode,c?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=h.stateNode,u=h.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=_u("display",s))}catch(k){Q(e,e.return,k)}}}else if(h.tag===6){if(p===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(k){Q(e,e.return,k)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;p===h&&(p=null),h=h.return}p===h&&(p=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Me(t,e),Be(e),r&4&&_a(e);break;case 21:break;default:Me(t,e),Be(e)}}function Be(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Jc(n)){var r=n;break e}n=n.return}throw Error(C(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(qn(l,""),r.flags&=-33);var o=Ea(e);hs(e,o,l);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Ea(e);ps(e,a,s);break;default:throw Error(C(161))}}catch(u){Q(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Xp(e,t,n){_=e,nd(e)}function nd(e,t,n){for(var r=(e.mode&1)!==0;_!==null;){var l=_,o=l.child;if(l.tag===22&&r){var s=l.memoizedState!==null||Dr;if(!s){var a=l.alternate,u=a!==null&&a.memoizedState!==null||ue;a=Dr;var c=ue;if(Dr=s,(ue=u)&&!c)for(_=l;_!==null;)s=_,u=s.child,s.tag===22&&s.memoizedState!==null?Ta(l):u!==null?(u.return=s,_=u):Ta(l);for(;o!==null;)_=o,nd(o),o=o.sibling;_=l,Dr=a,ue=c}Pa(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,_=o):Pa(e)}}function Pa(e){for(;_!==null;){var t=_;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ue||Al(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ue)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Oe(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&fa(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}fa(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var p=c.memoizedState;if(p!==null){var h=p.dehydrated;h!==null&&tr(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(C(163))}ue||t.flags&512&&fs(t)}catch(v){Q(t,t.return,v)}}if(t===e){_=null;break}if(n=t.sibling,n!==null){n.return=t.return,_=n;break}_=t.return}}function La(e){for(;_!==null;){var t=_;if(t===e){_=null;break}var n=t.sibling;if(n!==null){n.return=t.return,_=n;break}_=t.return}}function Ta(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Al(4,t)}catch(u){Q(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){Q(t,l,u)}}var o=t.return;try{fs(t)}catch(u){Q(t,o,u)}break;case 5:var s=t.return;try{fs(t)}catch(u){Q(t,s,u)}}}catch(u){Q(t,t.return,u)}if(t===e){_=null;break}var a=t.sibling;if(a!==null){a.return=t.return,_=a;break}_=t.return}}var qp=Math.ceil,Nl=nt.ReactCurrentDispatcher,ui=nt.ReactCurrentOwner,Re=nt.ReactCurrentBatchConfig,O=0,ne=null,q=null,oe=0,ke=0,cn=Nt(0),J=0,fr=null,Wt=0,Bl=0,ci=0,Gn=null,me=null,di=0,jn=1/0,Ke=null,El=!1,ms=null,gt=null,Ar=!1,dt=null,_l=0,Yn=0,vs=null,nl=-1,rl=0;function fe(){return O&6?G():nl!==-1?nl:nl=G()}function xt(e){return e.mode&1?O&2&&oe!==0?oe&-oe:Mp.transition!==null?(rl===0&&(rl=Au()),rl):(e=F,e!==0||(e=window.event,e=e===void 0?16:Ku(e.type)),e):1}function De(e,t,n,r){if(50<Yn)throw Yn=0,vs=null,Error(C(185));yr(e,n,r),(!(O&2)||e!==ne)&&(e===ne&&(!(O&2)&&(Bl|=n),J===4&&ut(e,oe)),xe(e,r),n===1&&O===0&&!(t.mode&1)&&(jn=G()+500,$l&&Et()))}function xe(e,t){var n=e.callbackNode;Mf(e,t);var r=cl(e,e===ne?oe:0);if(r===0)n!==null&&Di(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Di(n),t===1)e.tag===0?Ip(Ra.bind(null,e)):fc(Ra.bind(null,e)),Lp(function(){!(O&6)&&Et()}),n=null;else{switch(Bu(r)){case 1:n=$s;break;case 4:n=Uu;break;case 16:n=ul;break;case 536870912:n=Du;break;default:n=ul}n=cd(n,rd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rd(e,t){if(nl=-1,rl=0,O&6)throw Error(C(327));var n=e.callbackNode;if(vn()&&e.callbackNode!==n)return null;var r=cl(e,e===ne?oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Pl(e,r);else{t=r;var l=O;O|=2;var o=od();(ne!==e||oe!==t)&&(Ke=null,jn=G()+500,$t(e,t));do try{eh();break}catch(a){ld(e,a)}while(!0);Xs(),Nl.current=o,O=l,q!==null?t=0:(ne=null,oe=0,t=J)}if(t!==0){if(t===2&&(l=Vo(e),l!==0&&(r=l,t=ys(e,l))),t===1)throw n=fr,$t(e,0),ut(e,r),xe(e,G()),n;if(t===6)ut(e,r);else{if(l=e.current.alternate,!(r&30)&&!Zp(l)&&(t=Pl(e,r),t===2&&(o=Vo(e),o!==0&&(r=o,t=ys(e,o))),t===1))throw n=fr,$t(e,0),ut(e,r),xe(e,G()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(C(345));case 2:It(e,me,Ke);break;case 3:if(ut(e,r),(r&130023424)===r&&(t=di+500-G(),10<t)){if(cl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){fe(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=qo(It.bind(null,e,me,Ke),t);break}It(e,me,Ke);break;case 4:if(ut(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var s=31-Ue(r);o=1<<s,s=t[s],s>l&&(l=s),r&=~o}if(r=l,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qp(r/1960))-r,10<r){e.timeoutHandle=qo(It.bind(null,e,me,Ke),r);break}It(e,me,Ke);break;case 5:It(e,me,Ke);break;default:throw Error(C(329))}}}return xe(e,G()),e.callbackNode===n?rd.bind(null,e):null}function ys(e,t){var n=Gn;return e.current.memoizedState.isDehydrated&&($t(e,t).flags|=256),e=Pl(e,t),e!==2&&(t=me,me=n,t!==null&&gs(t)),e}function gs(e){me===null?me=e:me.push.apply(me,e)}function Zp(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(!Ae(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 ut(e,t){for(t&=~ci,t&=~Bl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ue(t),r=1<<n;e[n]=-1,t&=~r}}function Ra(e){if(O&6)throw Error(C(327));vn();var t=cl(e,0);if(!(t&1))return xe(e,G()),null;var n=Pl(e,t);if(e.tag!==0&&n===2){var r=Vo(e);r!==0&&(t=r,n=ys(e,r))}if(n===1)throw n=fr,$t(e,0),ut(e,t),xe(e,G()),n;if(n===6)throw Error(C(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,It(e,me,Ke),xe(e,G()),null}function fi(e,t){var n=O;O|=1;try{return e(t)}finally{O=n,O===0&&(jn=G()+500,$l&&Et())}}function Vt(e){dt!==null&&dt.tag===0&&!(O&6)&&vn();var t=O;O|=1;var n=Re.transition,r=F;try{if(Re.transition=null,F=1,e)return e()}finally{F=r,Re.transition=n,O=t,!(O&6)&&Et()}}function pi(){ke=cn.current,B(cn)}function $t(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Pp(n)),q!==null)for(n=q.return;n!==null;){var r=n;switch(Ks(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ml();break;case 3:kn(),B(ye),B(ce),ni();break;case 5:ti(r);break;case 4:kn();break;case 13:B(V);break;case 19:B(V);break;case 10:qs(r.type._context);break;case 22:case 23:pi()}n=n.return}if(ne=e,q=e=wt(e.current,null),oe=ke=t,J=0,fr=null,ci=Bl=Wt=0,me=Gn=null,Ot!==null){for(t=0;t<Ot.length;t++)if(n=Ot[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=l,r.next=s}n.pending=r}Ot=null}return e}function ld(e,t){do{var n=q;try{if(Xs(),Jr.current=Cl,jl){for(var r=H.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}jl=!1}if(Bt=0,te=Z=H=null,Qn=!1,ur=0,ui.current=null,n===null||n.return===null){J=1,fr=t,q=null;break}e:{var o=e,s=n.return,a=n,u=t;if(t=oe,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,p=a,h=p.tag;if(!(p.mode&1)&&(h===0||h===11||h===15)){var v=p.alternate;v?(p.updateQueue=v.updateQueue,p.memoizedState=v.memoizedState,p.lanes=v.lanes):(p.updateQueue=null,p.memoizedState=null)}var g=ga(s);if(g!==null){g.flags&=-257,xa(g,s,a,o,t),g.mode&1&&ya(o,c,t),t=g,u=c;var w=t.updateQueue;if(w===null){var k=new Set;k.add(u),t.updateQueue=k}else w.add(u);break e}else{if(!(t&1)){ya(o,c,t),hi();break e}u=Error(C(426))}}else if(W&&a.mode&1){var S=ga(s);if(S!==null){!(S.flags&65536)&&(S.flags|=256),xa(S,s,a,o,t),Gs(Sn(u,a));break e}}o=u=Sn(u,a),J!==4&&(J=2),Gn===null?Gn=[o]:Gn.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=Bc(o,u,t);da(o,f);break e;case 1:a=u;var d=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof d.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(gt===null||!gt.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Wc(o,a,t);da(o,x);break e}}o=o.return}while(o!==null)}id(n)}catch(j){t=j,q===n&&n!==null&&(q=n=n.return);continue}break}while(!0)}function od(){var e=Nl.current;return Nl.current=Cl,e===null?Cl:e}function hi(){(J===0||J===3||J===2)&&(J=4),ne===null||!(Wt&268435455)&&!(Bl&268435455)||ut(ne,oe)}function Pl(e,t){var n=O;O|=2;var r=od();(ne!==e||oe!==t)&&(Ke=null,$t(e,t));do try{Jp();break}catch(l){ld(e,l)}while(!0);if(Xs(),O=n,Nl.current=r,q!==null)throw Error(C(261));return ne=null,oe=0,J}function Jp(){for(;q!==null;)sd(q)}function eh(){for(;q!==null&&!Nf();)sd(q)}function sd(e){var t=ud(e.alternate,e,ke);e.memoizedProps=e.pendingProps,t===null?id(e):q=t,ui.current=null}function id(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Kp(n,t),n!==null){n.flags&=32767,q=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{J=6,q=null;return}}else if(n=Qp(n,t,ke),n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);J===0&&(J=5)}function It(e,t,n){var r=F,l=Re.transition;try{Re.transition=null,F=1,th(e,t,n,r)}finally{Re.transition=l,F=r}return null}function th(e,t,n,r){do vn();while(dt!==null);if(O&6)throw Error(C(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(C(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Of(e,o),e===ne&&(q=ne=null,oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ar||(Ar=!0,cd(ul,function(){return vn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Re.transition,Re.transition=null;var s=F;F=1;var a=O;O|=4,ui.current=null,Yp(e,n),td(n,e),kp(Yo),dl=!!Go,Yo=Go=null,e.current=n,Xp(n),Ef(),O=a,F=s,Re.transition=o}else e.current=n;if(Ar&&(Ar=!1,dt=e,_l=l),o=e.pendingLanes,o===0&&(gt=null),Lf(n.stateNode),xe(e,G()),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(El)throw El=!1,e=ms,ms=null,e;return _l&1&&e.tag!==0&&vn(),o=e.pendingLanes,o&1?e===vs?Yn++:(Yn=0,vs=e):Yn=0,Et(),null}function vn(){if(dt!==null){var e=Bu(_l),t=Re.transition,n=F;try{if(Re.transition=null,F=16>e?16:e,dt===null)var r=!1;else{if(e=dt,dt=null,_l=0,O&6)throw Error(C(331));var l=O;for(O|=4,_=e.current;_!==null;){var o=_,s=o.child;if(_.flags&16){var a=o.deletions;if(a!==null){for(var u=0;u<a.length;u++){var c=a[u];for(_=c;_!==null;){var p=_;switch(p.tag){case 0:case 11:case 15:Kn(8,p,o)}var h=p.child;if(h!==null)h.return=p,_=h;else for(;_!==null;){p=_;var v=p.sibling,g=p.return;if(Zc(p),p===c){_=null;break}if(v!==null){v.return=g,_=v;break}_=g}}}var w=o.alternate;if(w!==null){var k=w.child;if(k!==null){w.child=null;do{var S=k.sibling;k.sibling=null,k=S}while(k!==null)}}_=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,_=s;else e:for(;_!==null;){if(o=_,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Kn(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,_=f;break e}_=o.return}}var d=e.current;for(_=d;_!==null;){s=_;var m=s.child;if(s.subtreeFlags&2064&&m!==null)m.return=s,_=m;else e:for(s=d;_!==null;){if(a=_,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Al(9,a)}}catch(j){Q(a,a.return,j)}if(a===s){_=null;break e}var x=a.sibling;if(x!==null){x.return=a.return,_=x;break e}_=a.return}}if(O=l,Et(),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(zl,e)}catch{}r=!0}return r}finally{F=n,Re.transition=t}}return!1}function za(e,t,n){t=Sn(n,t),t=Bc(e,t,1),e=yt(e,t,1),t=fe(),e!==null&&(yr(e,1,t),xe(e,t))}function Q(e,t,n){if(e.tag===3)za(e,e,n);else for(;t!==null;){if(t.tag===3){za(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(gt===null||!gt.has(r))){e=Sn(n,e),e=Wc(t,e,1),t=yt(t,e,1),e=fe(),t!==null&&(yr(t,1,e),xe(t,e));break}}t=t.return}}function nh(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=fe(),e.pingedLanes|=e.suspendedLanes&n,ne===e&&(oe&n)===n&&(J===4||J===3&&(oe&130023424)===oe&&500>G()-di?$t(e,0):ci|=n),xe(e,t)}function ad(e,t){t===0&&(e.mode&1?(t=Tr,Tr<<=1,!(Tr&130023424)&&(Tr=4194304)):t=1);var n=fe();e=et(e,t),e!==null&&(yr(e,t,n),xe(e,n))}function rh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ad(e,n)}function lh(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(C(314))}r!==null&&r.delete(t),ad(e,n)}var ud;ud=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ye.current)ve=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ve=!1,bp(e,t,n);ve=!!(e.flags&131072)}else ve=!1,W&&t.flags&1048576&&pc(t,gl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;tl(e,t),e=t.pendingProps;var l=gn(t,ce.current);mn(t,n),l=li(null,t,r,e,l,n);var o=oi();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,ge(r)?(o=!0,vl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Js(t),l.updater=Dl,t.stateNode=l,l._reactInternals=t,ls(t,r,e,n),t=is(null,t,r,!0,o,n)):(t.tag=0,W&&o&&Qs(t),de(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(tl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=sh(r),e=Oe(r,e),l){case 0:t=ss(null,t,r,e,n);break e;case 1:t=Sa(null,t,r,e,n);break e;case 11:t=wa(null,t,r,e,n);break e;case 14:t=ka(null,t,r,Oe(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),ss(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),Sa(e,t,r,l,n);case 3:e:{if(Qc(t),e===null)throw Error(C(387));r=t.pendingProps,o=t.memoizedState,l=o.element,xc(e,t),kl(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Sn(Error(C(423)),t),t=ja(e,t,r,n,l);break e}else if(r!==l){l=Sn(Error(C(424)),t),t=ja(e,t,r,n,l);break e}else for(Se=vt(t.stateNode.containerInfo.firstChild),je=t,W=!0,$e=null,n=yc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xn(),r===l){t=tt(e,t,n);break e}de(e,t,r,n)}t=t.child}return t;case 5:return wc(t),e===null&&ts(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,s=l.children,Xo(r,l)?s=null:o!==null&&Xo(r,o)&&(t.flags|=32),bc(e,t),de(e,t,s,n),t.child;case 6:return e===null&&ts(t),null;case 13:return Kc(e,t,n);case 4:return ei(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wn(t,null,r,n):de(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),wa(e,t,r,l,n);case 7:return de(e,t,t.pendingProps,n),t.child;case 8:return de(e,t,t.pendingProps.children,n),t.child;case 12:return de(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,s=l.value,U(xl,r._currentValue),r._currentValue=s,o!==null)if(Ae(o.value,s)){if(o.children===l.children&&!ye.current){t=tt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=qe(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),ns(o.return,n,t),a.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(C(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ns(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}de(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,mn(t,n),l=ze(l),r=r(l),t.flags|=1,de(e,t,r,n),t.child;case 14:return r=t.type,l=Oe(r,t.pendingProps),l=Oe(r.type,l),ka(e,t,r,l,n);case 15:return Vc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),tl(e,t),t.tag=1,ge(r)?(e=!0,vl(t)):e=!1,mn(t,n),Ac(t,r,l),ls(t,r,l,n),is(null,t,r,!0,e,n);case 19:return Gc(e,t,n);case 22:return Hc(e,t,n)}throw Error(C(156,t.tag))};function cd(e,t){return $u(e,t)}function oh(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 Te(e,t,n,r){return new oh(e,t,n,r)}function mi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sh(e){if(typeof e=="function")return mi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ms)return 11;if(e===Os)return 14}return 2}function wt(e,t){var n=e.alternate;return n===null?(n=Te(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 ll(e,t,n,r,l,o){var s=2;if(r=e,typeof e=="function")mi(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Jt:return Ut(n.children,l,o,t);case Is:s=8,l|=8;break;case Po:return e=Te(12,n,t,l|2),e.elementType=Po,e.lanes=o,e;case Lo:return e=Te(13,n,t,l),e.elementType=Lo,e.lanes=o,e;case To:return e=Te(19,n,t,l),e.elementType=To,e.lanes=o,e;case wu:return Wl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gu:s=10;break e;case xu:s=9;break e;case Ms:s=11;break e;case Os:s=14;break e;case st:s=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Te(s,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Ut(e,t,n,r){return e=Te(7,e,r,t),e.lanes=n,e}function Wl(e,t,n,r){return e=Te(22,e,r,t),e.elementType=wu,e.lanes=n,e.stateNode={isHidden:!1},e}function wo(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function ko(e,t,n){return t=Te(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ih(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=eo(0),this.expirationTimes=eo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eo(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function vi(e,t,n,r,l,o,s,a,u){return e=new ih(e,t,n,a,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Te(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Js(o),e}function ah(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Zt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function dd(e){if(!e)return jt;e=e._reactInternals;e:{if(bt(e)!==e||e.tag!==1)throw Error(C(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ge(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(C(171))}if(e.tag===1){var n=e.type;if(ge(n))return dc(e,n,t)}return t}function fd(e,t,n,r,l,o,s,a,u){return e=vi(n,r,!0,e,l,o,s,a,u),e.context=dd(null),n=e.current,r=fe(),l=xt(n),o=qe(r,l),o.callback=t??null,yt(n,o,l),e.current.lanes=l,yr(e,l,r),xe(e,r),e}function Vl(e,t,n,r){var l=t.current,o=fe(),s=xt(l);return n=dd(n),t.context===null?t.context=n:t.pendingContext=n,t=qe(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=yt(l,t,s),e!==null&&(De(e,l,s,o),Zr(e,l,s)),s}function Ll(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 Ia(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yi(e,t){Ia(e,t),(e=e.alternate)&&Ia(e,t)}function uh(){return null}var pd=typeof reportError=="function"?reportError:function(e){console.error(e)};function gi(e){this._internalRoot=e}Hl.prototype.render=gi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(C(409));Vl(e,t,null,null)};Hl.prototype.unmount=gi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vt(function(){Vl(null,e,null,null)}),t[Je]=null}};function Hl(e){this._internalRoot=e}Hl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Hu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<at.length&&t!==0&&t<at[n].priority;n++);at.splice(n,0,e),n===0&&Qu(e)}};function xi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ma(){}function ch(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var c=Ll(s);o.call(c)}}var s=fd(t,r,e,0,null,!1,!1,"",Ma);return e._reactRootContainer=s,e[Je]=s.current,lr(e.nodeType===8?e.parentNode:e),Vt(),s}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var a=r;r=function(){var c=Ll(u);a.call(c)}}var u=vi(e,0,!1,null,null,!1,!1,"",Ma);return e._reactRootContainer=u,e[Je]=u.current,lr(e.nodeType===8?e.parentNode:e),Vt(function(){Vl(t,u,n,r)}),u}function Ql(e,t,n,r,l){var o=n._reactRootContainer;if(o){var s=o;if(typeof l=="function"){var a=l;l=function(){var u=Ll(s);a.call(u)}}Vl(t,s,e,l)}else s=ch(n,t,e,l,r);return Ll(s)}Wu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Dn(t.pendingLanes);n!==0&&(Us(t,n|1),xe(t,G()),!(O&6)&&(jn=G()+500,Et()))}break;case 13:Vt(function(){var r=et(e,1);if(r!==null){var l=fe();De(r,e,1,l)}}),yi(e,1)}};Ds=function(e){if(e.tag===13){var t=et(e,134217728);if(t!==null){var n=fe();De(t,e,134217728,n)}yi(e,134217728)}};Vu=function(e){if(e.tag===13){var t=xt(e),n=et(e,t);if(n!==null){var r=fe();De(n,e,t,r)}yi(e,t)}};Hu=function(){return F};bu=function(e,t){var n=F;try{return F=e,t()}finally{F=n}};Ao=function(e,t,n){switch(t){case"input":if(Io(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=Fl(r);if(!l)throw Error(C(90));Su(r),Io(r,l)}}}break;case"textarea":Cu(e,n);break;case"select":t=n.value,t!=null&&dn(e,!!n.multiple,t,!1)}};Ru=fi;zu=Vt;var dh={usingClientEntryPoint:!1,Events:[xr,rn,Fl,Lu,Tu,fi]},Fn={findFiberByHostInstance:Mt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},fh={bundleType:Fn.bundleType,version:Fn.version,rendererPackageName:Fn.rendererPackageName,rendererConfig:Fn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ou(e),e===null?null:e.stateNode},findFiberByHostInstance:Fn.findFiberByHostInstance||uh,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 Br=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Br.isDisabled&&Br.supportsFiber)try{zl=Br.inject(fh),He=Br}catch{}}Ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dh;Ne.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xi(t))throw Error(C(200));return ah(e,t,null,n)};Ne.createRoot=function(e,t){if(!xi(e))throw Error(C(299));var n=!1,r="",l=pd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=vi(e,1,!1,null,null,n,!1,r,l),e[Je]=t.current,lr(e.nodeType===8?e.parentNode:e),new gi(t)};Ne.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(C(188)):(e=Object.keys(e).join(","),Error(C(268,e)));return e=Ou(t),e=e===null?null:e.stateNode,e};Ne.flushSync=function(e){return Vt(e)};Ne.hydrate=function(e,t,n){if(!bl(t))throw Error(C(200));return Ql(null,e,t,!0,n)};Ne.hydrateRoot=function(e,t,n){if(!xi(e))throw Error(C(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",s=pd;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=fd(t,null,e,1,n??null,l,!1,o,s),e[Je]=t.current,lr(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 Hl(t)};Ne.render=function(e,t,n){if(!bl(t))throw Error(C(200));return Ql(null,e,t,!1,n)};Ne.unmountComponentAtNode=function(e){if(!bl(e))throw Error(C(40));return e._reactRootContainer?(Vt(function(){Ql(null,null,e,!1,function(){e._reactRootContainer=null,e[Je]=null})}),!0):!1};Ne.unstable_batchedUpdates=fi;Ne.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!bl(n))throw Error(C(200));if(e==null||e._reactInternals===void 0)throw Error(C(38));return Ql(e,t,n,!1,r)};Ne.version="18.3.1-next-f1338f8080-20240426";function hd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hd)}catch(e){console.error(e)}}hd(),hu.exports=Ne;var ph=hu.exports,Oa=ph;Eo.createRoot=Oa.createRoot,Eo.hydrateRoot=Oa.hydrateRoot;/**
41
- * @remix-run/router v1.23.2
42
- *
43
- * Copyright (c) Remix Software Inc.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE.md file in the root directory of this source tree.
47
- *
48
- * @license MIT
49
- */function pr(){return pr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pr.apply(this,arguments)}var ft;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ft||(ft={}));const Fa="popstate";function hh(e){e===void 0&&(e={});function t(r,l){let{pathname:o,search:s,hash:a}=r.location;return xs("",{pathname:o,search:s,hash:a},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(r,l){return typeof l=="string"?l:Tl(l)}return vh(t,n,null,e)}function X(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mh(){return Math.random().toString(36).substr(2,8)}function $a(e,t){return{usr:e.state,key:e.key,idx:t}}function xs(e,t,n,r){return n===void 0&&(n=null),pr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_n(t):t,{state:n,key:t&&t.key||r||mh()})}function Tl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _n(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function vh(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,s=l.history,a=ft.Pop,u=null,c=p();c==null&&(c=0,s.replaceState(pr({},s.state,{idx:c}),""));function p(){return(s.state||{idx:null}).idx}function h(){a=ft.Pop;let S=p(),f=S==null?null:S-c;c=S,u&&u({action:a,location:k.location,delta:f})}function v(S,f){a=ft.Push;let d=xs(k.location,S,f);c=p()+1;let m=$a(d,c),x=k.createHref(d);try{s.pushState(m,"",x)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;l.location.assign(x)}o&&u&&u({action:a,location:k.location,delta:1})}function g(S,f){a=ft.Replace;let d=xs(k.location,S,f);c=p();let m=$a(d,c),x=k.createHref(d);s.replaceState(m,"",x),o&&u&&u({action:a,location:k.location,delta:0})}function w(S){let f=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof S=="string"?S:Tl(S);return d=d.replace(/ $/,"%20"),X(f,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,f)}let k={get action(){return a},get location(){return e(l,s)},listen(S){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(Fa,h),u=S,()=>{l.removeEventListener(Fa,h),u=null}},createHref(S){return t(l,S)},createURL:w,encodeLocation(S){let f=w(S);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:v,replace:g,go(S){return s.go(S)}};return k}var Ua;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ua||(Ua={}));function yh(e,t,n){return n===void 0&&(n="/"),gh(e,t,n)}function gh(e,t,n,r){let l=typeof t=="string"?_n(t):t,o=ki(l.pathname||"/",n);if(o==null)return null;let s=md(e);xh(s);let a=null;for(let u=0;a==null&&u<s.length;++u){let c=Rh(o);a=Ph(s[u],c)}return a}function md(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let l=(o,s,a)=>{let u={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};u.relativePath.startsWith("/")&&(X(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let c=kt([r,u.relativePath]),p=n.concat(u);o.children&&o.children.length>0&&(X(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),md(o.children,t,p,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:Eh(c,o.index),routesMeta:p})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,s);else for(let u of vd(o.path))l(o,s,u)}),t}function vd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let s=vd(r.join("/")),a=[];return a.push(...s.map(u=>u===""?o:[o,u].join("/"))),l&&a.push(...s),a.map(u=>e.startsWith("/")&&u===""?"/":u)}function xh(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:_h(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const wh=/^:[\w-]+$/,kh=3,Sh=2,jh=1,Ch=10,Nh=-2,Da=e=>e==="*";function Eh(e,t){let n=e.split("/"),r=n.length;return n.some(Da)&&(r+=Nh),t&&(r+=Sh),n.filter(l=>!Da(l)).reduce((l,o)=>l+(wh.test(o)?kh:o===""?jh:Ch),r)}function _h(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Ph(e,t,n){let{routesMeta:r}=e,l={},o="/",s=[];for(let a=0;a<r.length;++a){let u=r[a],c=a===r.length-1,p=o==="/"?t:t.slice(o.length)||"/",h=Lh({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},p),v=u.route;if(!h)return null;Object.assign(l,h.params),s.push({params:l,pathname:kt([o,h.pathname]),pathnameBase:Fh(kt([o,h.pathnameBase])),route:v}),h.pathnameBase!=="/"&&(o=kt([o,h.pathnameBase]))}return s}function Lh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Th(e.path,e.caseSensitive,e.end),l=t.match(n);if(!l)return null;let o=l[0],s=o.replace(/(.)\/+$/,"$1"),a=l.slice(1);return{params:r.reduce((c,p,h)=>{let{paramName:v,isOptional:g}=p;if(v==="*"){let k=a[h]||"";s=o.slice(0,o.length-k.length).replace(/(.)\/+$/,"$1")}const w=a[h];return g&&!w?c[v]=void 0:c[v]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:e}}function Th(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),wi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,u)=>(r.push({paramName:a,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Rh(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wi(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ki(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const zh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ih=e=>zh.test(e);function Mh(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?_n(e):e,o;if(n)if(Ih(n))o=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),wi(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=Aa(n.substring(1),"/"):o=Aa(n,t)}else o=t;return{pathname:o,search:$h(r),hash:Uh(l)}}function Aa(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function So(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Oh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Si(e,t){let n=Oh(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ji(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=_n(e):(l=pr({},e),X(!l.pathname||!l.pathname.includes("?"),So("?","pathname","search",l)),X(!l.pathname||!l.pathname.includes("#"),So("#","pathname","hash",l)),X(!l.search||!l.search.includes("#"),So("#","search","hash",l)));let o=e===""||l.pathname==="",s=o?"/":l.pathname,a;if(s==null)a=n;else{let h=t.length-1;if(!r&&s.startsWith("..")){let v=s.split("/");for(;v[0]==="..";)v.shift(),h-=1;l.pathname=v.join("/")}a=h>=0?t[h]:"/"}let u=Mh(l,a),c=s&&s!=="/"&&s.endsWith("/"),p=(o||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||p)&&(u.pathname+="/"),u}const kt=e=>e.join("/").replace(/\/\/+/g,"/"),Fh=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$h=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Uh=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Dh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const yd=["post","put","patch","delete"];new Set(yd);const Ah=["get",...yd];new Set(Ah);/**
50
- * React Router v6.30.3
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hr.apply(this,arguments)}const Ci=y.createContext(null),Bh=y.createContext(null),_t=y.createContext(null),Kl=y.createContext(null),rt=y.createContext({outlet:null,matches:[],isDataRoute:!1}),gd=y.createContext(null);function Wh(e,t){let{relative:n}=t===void 0?{}:t;Pn()||X(!1);let{basename:r,navigator:l}=y.useContext(_t),{hash:o,pathname:s,search:a}=kd(e,{relative:n}),u=s;return r!=="/"&&(u=s==="/"?r:kt([r,s])),l.createHref({pathname:u,search:a,hash:o})}function Pn(){return y.useContext(Kl)!=null}function kr(){return Pn()||X(!1),y.useContext(Kl).location}function xd(e){y.useContext(_t).static||y.useLayoutEffect(e)}function wd(){let{isDataRoute:e}=y.useContext(rt);return e?nm():Vh()}function Vh(){Pn()||X(!1);let e=y.useContext(Ci),{basename:t,future:n,navigator:r}=y.useContext(_t),{matches:l}=y.useContext(rt),{pathname:o}=kr(),s=JSON.stringify(Si(l,n.v7_relativeSplatPath)),a=y.useRef(!1);return xd(()=>{a.current=!0}),y.useCallback(function(c,p){if(p===void 0&&(p={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let h=ji(c,JSON.parse(s),o,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:kt([t,h.pathname])),(p.replace?r.replace:r.push)(h,p.state,p)},[t,r,s,o,e])}function Hh(){let{matches:e}=y.useContext(rt),t=e[e.length-1];return t?t.params:{}}function kd(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(_t),{matches:l}=y.useContext(rt),{pathname:o}=kr(),s=JSON.stringify(Si(l,r.v7_relativeSplatPath));return y.useMemo(()=>ji(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function bh(e,t){return Qh(e,t)}function Qh(e,t,n,r){Pn()||X(!1);let{navigator:l}=y.useContext(_t),{matches:o}=y.useContext(rt),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let c=kr(),p;if(t){var h;let S=typeof t=="string"?_n(t):t;u==="/"||(h=S.pathname)!=null&&h.startsWith(u)||X(!1),p=S}else p=c;let v=p.pathname||"/",g=v;if(u!=="/"){let S=u.replace(/^\//,"").split("/");g="/"+v.replace(/^\//,"").split("/").slice(S.length).join("/")}let w=yh(e,{pathname:g}),k=qh(w&&w.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:kt([u,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:kt([u,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,n,r);return t&&k?y.createElement(Kl.Provider,{value:{location:hr({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:ft.Pop}},k):k}function Kh(){let e=tm(),t=Dh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:l},n):null,null)}const Gh=y.createElement(Kh,null);class Yh extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(rt.Provider,{value:this.props.routeContext},y.createElement(gd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Xh(e){let{routeContext:t,match:n,children:r}=e,l=y.useContext(Ci);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(rt.Provider,{value:t},r)}function qh(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(l=n)==null?void 0:l.errors;if(a!=null){let p=s.findIndex(h=>h.route.id&&a?.[h.route.id]!==void 0);p>=0||X(!1),s=s.slice(0,Math.min(s.length,p+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<s.length;p++){let h=s[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=p),h.route.id){let{loaderData:v,errors:g}=n,w=h.route.loader&&v[h.route.id]===void 0&&(!g||g[h.route.id]===void 0);if(h.route.lazy||w){u=!0,c>=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((p,h,v)=>{let g,w=!1,k=null,S=null;n&&(g=a&&h.route.id?a[h.route.id]:void 0,k=h.route.errorElement||Gh,u&&(c<0&&v===0?(rm("route-fallback"),w=!0,S=null):c===v&&(w=!0,S=h.route.hydrateFallbackElement||null)));let f=t.concat(s.slice(0,v+1)),d=()=>{let m;return g?m=k:w?m=S:h.route.Component?m=y.createElement(h.route.Component,null):h.route.element?m=h.route.element:m=p,y.createElement(Xh,{match:h,routeContext:{outlet:p,matches:f,isDataRoute:n!=null},children:m})};return n&&(h.route.ErrorBoundary||h.route.errorElement||v===0)?y.createElement(Yh,{location:n.location,revalidation:n.revalidation,component:k,error:g,children:d(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):d()},null)}var Sd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Sd||{}),jd=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(jd||{});function Zh(e){let t=y.useContext(Ci);return t||X(!1),t}function Jh(e){let t=y.useContext(Bh);return t||X(!1),t}function em(e){let t=y.useContext(rt);return t||X(!1),t}function Cd(e){let t=em(),n=t.matches[t.matches.length-1];return n.route.id||X(!1),n.route.id}function tm(){var e;let t=y.useContext(gd),n=Jh(),r=Cd();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function nm(){let{router:e}=Zh(Sd.UseNavigateStable),t=Cd(jd.UseNavigateStable),n=y.useRef(!1);return xd(()=>{n.current=!0}),y.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,hr({fromRouteId:t},o)))},[e,t])}const Ba={};function rm(e,t,n){Ba[e]||(Ba[e]=!0)}function lm(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function om(e){let{to:t,replace:n,state:r,relative:l}=e;Pn()||X(!1);let{future:o,static:s}=y.useContext(_t),{matches:a}=y.useContext(rt),{pathname:u}=kr(),c=wd(),p=ji(t,Si(a,o.v7_relativeSplatPath),u,l==="path"),h=JSON.stringify(p);return y.useEffect(()=>c(JSON.parse(h),{replace:n,state:r,relative:l}),[c,h,l,n,r]),null}function Xt(e){X(!1)}function sm(e){let{basename:t="/",children:n=null,location:r,navigationType:l=ft.Pop,navigator:o,static:s=!1,future:a}=e;Pn()&&X(!1);let u=t.replace(/^\/*/,"/"),c=y.useMemo(()=>({basename:u,navigator:o,static:s,future:hr({v7_relativeSplatPath:!1},a)}),[u,a,o,s]);typeof r=="string"&&(r=_n(r));let{pathname:p="/",search:h="",hash:v="",state:g=null,key:w="default"}=r,k=y.useMemo(()=>{let S=ki(p,u);return S==null?null:{location:{pathname:S,search:h,hash:v,state:g,key:w},navigationType:l}},[u,p,h,v,g,w,l]);return k==null?null:y.createElement(_t.Provider,{value:c},y.createElement(Kl.Provider,{children:n,value:k}))}function Wa(e){let{children:t,location:n}=e;return bh(ws(t),n)}new Promise(()=>{});function ws(e,t){t===void 0&&(t=[]);let n=[];return y.Children.forEach(e,(r,l)=>{if(!y.isValidElement(r))return;let o=[...t,l];if(r.type===y.Fragment){n.push.apply(n,ws(r.props.children,o));return}r.type!==Xt&&X(!1),!r.props.index||!r.props.children||X(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=ws(r.props.children,o)),n.push(s)}),n}/**
59
- * React Router DOM v6.30.3
60
- *
61
- * Copyright (c) Remix Software Inc.
62
- *
63
- * This source code is licensed under the MIT license found in the
64
- * LICENSE.md file in the root directory of this source tree.
65
- *
66
- * @license MIT
67
- */function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ks.apply(this,arguments)}function im(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,o;for(o=0;o<r.length;o++)l=r[o],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function am(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function um(e,t){return e.button===0&&(!t||t==="_self")&&!am(e)}const cm=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],dm="6";try{window.__reactRouterVersion=dm}catch{}const fm="startTransition",Va=tf[fm];function pm(e){let{basename:t,children:n,future:r,window:l}=e,o=y.useRef();o.current==null&&(o.current=hh({window:l,v5Compat:!0}));let s=o.current,[a,u]=y.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},p=y.useCallback(h=>{c&&Va?Va(()=>u(h)):u(h)},[u,c]);return y.useLayoutEffect(()=>s.listen(p),[s,p]),y.useEffect(()=>lm(r),[r]),y.createElement(sm,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const hm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mr=y.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:s,state:a,target:u,to:c,preventScrollReset:p,viewTransition:h}=t,v=im(t,cm),{basename:g}=y.useContext(_t),w,k=!1;if(typeof c=="string"&&mm.test(c)&&(w=c,hm))try{let m=new URL(window.location.href),x=c.startsWith("//")?new URL(m.protocol+c):new URL(c),j=ki(x.pathname,g);x.origin===m.origin&&j!=null?c=j+x.search+x.hash:k=!0}catch{}let S=Wh(c,{relative:l}),f=vm(c,{replace:s,state:a,target:u,preventScrollReset:p,relative:l,viewTransition:h});function d(m){r&&r(m),m.defaultPrevented||f(m)}return y.createElement("a",ks({},v,{href:w||S,onClick:k||o?r:d,ref:n,target:u}))});var Ha;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ha||(Ha={}));var ba;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ba||(ba={}));function vm(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,u=wd(),c=kr(),p=kd(e,{relative:s});return y.useCallback(h=>{if(um(h,n)){h.preventDefault();let v=r!==void 0?r:Tl(c)===Tl(p);u(e,{replace:v,state:l,preventScrollReset:o,relative:s,viewTransition:a})}},[c,u,p,r,l,n,e,o,s,a])}const Qa=e=>{let t;const n=new Set,r=(c,p)=>{const h=typeof c=="function"?c(t):c;if(!Object.is(h,t)){const v=t;t=p??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(g=>g(t,v))}},l=()=>t,a={setState:r,getState:l,getInitialState:()=>u,subscribe:c=>(n.add(c),()=>n.delete(c))},u=t=e(r,l,a);return a},ym=e=>e?Qa(e):Qa,gm=e=>e;function xm(e,t=gm){const n=qt.useSyncExternalStore(e.subscribe,qt.useCallback(()=>t(e.getState()),[e,t]),qt.useCallback(()=>t(e.getInitialState()),[e,t]));return qt.useDebugValue(n),n}const Ka=e=>{const t=ym(e),n=r=>xm(t,r);return Object.assign(n,t),n},wm=e=>e?Ka(e):Ka,Ss="cw.token.v1";function km(e){try{return localStorage.getItem(e)}catch{return null}}function Sm(e,t){try{localStorage.setItem(e,t)}catch{}}function jm(e){try{localStorage.removeItem(e)}catch{}}function Cm(){return km(Ss)}const Y=wm(e=>({token:Cm(),setToken:t=>{t?Sm(Ss,t):jm(Ss),e({token:t})},connection:{status:"disconnected"},setConnection:t=>e({connection:t}),sessions:{},upsertSession:t=>e(n=>({sessions:{...n.sessions,[t.id]:t}})),removeSession:t=>e(n=>{const r={...n.sessions};delete r[t];const l={...n.events};return delete l[t],{sessions:r,events:l}}),setSessions:t=>e(()=>{const n={};for(const r of t)n[r.id]=r;return{sessions:n}}),events:{},appendEvent:t=>e(n=>{const r=n.events[t.sessionId]??[],l=t.uuid&&r.some(s=>s.uuid===t.uuid)?r:[...r,t],o=l.length>800?l.slice(l.length-800):l;return{events:{...n.events,[t.sessionId]:o}}}),setEvents:(t,n)=>e(r=>({events:{...r.events,[t]:n.slice()}})),reset:()=>e({sessions:{},events:{},connection:{status:"disconnected"}})})),Nm=new Set(["running","running-tool","awaiting-user","errored"]);function js(e){return Nm.has(e.status)&&e.lastUserMessageAt||e.lastEventAt}function Em(e){const t=Date.now();return Object.values(e).sort((n,r)=>{const l=n.status==="errored"&&t-n.lastEventAt<3e5,o=r.status==="errored"&&t-r.lastEventAt<5*6e4;return l&&!o?-1:o&&!l?1:js(r)-js(n)})}let _e=null,ol=500,Cs=!1;function Nd(e){if(Cs=!1,_e&&_e.readyState!==WebSocket.CLOSED&&_e.readyState!==WebSocket.CLOSING)return;const n=`${location.protocol==="https:"?"wss":"ws"}://${location.host}/ws?token=${encodeURIComponent(e)}`;Y.getState().setConnection({status:"connecting"});try{_e=new WebSocket(n)}catch(r){Y.getState().setConnection({status:"error",lastError:r.message}),Ga(e);return}_e.onopen=()=>{ol=500},_e.onmessage=r=>{let l;try{l=JSON.parse(r.data)}catch{return}Pm(l)},_e.onclose=r=>{if(r.code===4001){Y.getState().setConnection({status:"unauthorized",lastError:"Token rejected."}),Y.getState().setToken(null);return}if(Cs){Y.getState().setConnection({status:"disconnected"});return}Ga(e)},_e.onerror=()=>{}}function Ed(){Cs=!0;try{_e?.close()}catch{}_e=null}function _m(e){_e?.readyState===WebSocket.OPEN&&_e.send(JSON.stringify(e))}function Ga(e){Y.getState().setConnection({status:"connecting",lastError:"Reconnecting…"});const t=Math.min(ol,3e4);ol=Math.min(ol*2,3e4),setTimeout(()=>Nd(e),t)}function Pm(e){const t=Y.getState();e.kind==="hello"?t.setConnection({status:"connected",hostname:e.hostname,platform:e.platform,agentVersion:e.agentVersion}):e.kind==="session_list"?t.setSessions(e.sessions):e.kind==="session_upsert"?t.upsertSession(e.session):e.kind==="session_remove"?t.removeSession(e.sessionId):e.kind==="session_event"?t.appendEvent(e.event):e.kind==="session_events"?t.setEvents(e.sessionId,e.events):e.kind==="error"&&(t.setConnection({status:"error",lastError:e.message}),e.message==="unauthorized"&&t.setToken(null))}function Lm(){const e=Y(j=>j.setToken),[t,n]=y.useState(null),[r,l]=y.useState(null),[o,s]=y.useState(null),[a,u]=y.useState(""),[c,p]=y.useState(""),[h,v]=y.useState(!1),[g,w]=y.useState(null);y.useEffect(()=>{const E=new URLSearchParams(window.location.search).get("token");E&&(w(E),window.history.replaceState({},"","/")),fetch("/api/auth-info").then(N=>N.ok?N.json():null).then(N=>{N&&l(N)}).catch(()=>{}),fetch("/api/pairing").then(N=>N.ok?N.json():null).then(N=>{N&&n(N)}).catch(()=>{})},[]),y.useEffect(()=>{!r||!g||r.passwordRequired||h||k({token:g})},[r,g]);async function k(j){v(!0),s(null);try{const E=await fetch("/api/login",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(j)}),N=await E.json().catch(()=>({}));if(!E.ok){N.error==="invalid_password"?s("Incorrect password."):N.error==="password_required"?s("Password required."):N.error==="invalid_token"?s("Invalid or missing pairing token."):s("Login failed.");return}e(N.jwt),window.location.reload()}catch{s("Network error.")}finally{v(!1)}}function S(j){if(j.preventDefault(),!c){s("Enter a password.");return}k({token:g??void 0,password:c})}function f(j){if(j.preventDefault(),a.trim().length<8){s("Token looks too short.");return}w(a.trim()),r?.passwordRequired?s(null):k({token:a.trim()})}const d=!!r?.passwordRequired,m=!!t,x=t?.ngrokUrl;return i.jsxs("div",{className:"flex flex-col flex-1 min-h-full safe-top safe-x safe-bottom",children:[i.jsxs("header",{className:"px-5 py-4 flex items-center gap-3",children:[i.jsx(Rm,{}),i.jsxs("div",{children:[i.jsx("h1",{className:"text-lg font-semibold",style:{color:"var(--text)"},children:"fleetwatch"}),i.jsx("p",{className:"text-xs",style:{color:"var(--text-faint)"},children:r?d?"Enter your password":"Pair this device to start watching":"Connecting…"})]})]}),i.jsxs("main",{className:"flex-1 px-5 pt-2 pb-10 flex flex-col items-center justify-start",children:[d&&!m&&i.jsxs("form",{onSubmit:S,className:"w-full max-w-sm mt-4",children:[i.jsx("p",{className:"text-sm text-center mb-5",style:{color:"var(--text-muted)"},children:"This fleetwatch requires a password."}),i.jsx("input",{type:"password",autoFocus:!0,value:c,onChange:j=>p(j.target.value),placeholder:"Password",className:"w-full px-3 py-3 rounded-lg text-sm",style:{background:"var(--bg-elevated)",color:"var(--text)",border:"1px solid var(--border)"}}),o&&i.jsx("div",{className:"mt-2 text-sm",style:{color:"var(--status-error)"},children:o}),i.jsx("button",{type:"submit",disabled:h,className:"mt-3 w-full py-3 rounded-lg font-medium text-sm",style:{background:"var(--accent)",color:"white",opacity:h?.6:1},children:h?"Connecting…":"Connect"})]}),m&&t&&i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"text-sm text-center max-w-sm mb-5",style:{color:"var(--text-muted)"},children:x?i.jsxs(i.Fragment,{children:["Scan to open from ",i.jsx("b",{children:"anywhere"})," (via ngrok) on ",i.jsx("b",{children:t.hostLabel}),"."]}):i.jsxs(i.Fragment,{children:["Scan from your phone — must be on the same Wi-Fi as ",i.jsx("b",{children:t.hostLabel}),"."]})}),i.jsx("div",{className:"p-5 rounded-lg",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)"},dangerouslySetInnerHTML:{__html:t.qrSvg}}),i.jsxs("div",{className:"mt-5 text-center",children:[i.jsx("div",{className:"text-xs uppercase tracking-wider mb-1",style:{color:"var(--text-faint)"},children:x?"public URL":"LAN URL"}),i.jsx("div",{className:"font-mono text-sm break-all max-w-md",style:{color:"var(--accent)"},children:t.url}),d&&i.jsx("div",{className:"mt-2 text-xs",style:{color:"var(--text-muted)"},children:"· Password required ·"})]}),i.jsx("button",{className:"mt-8 text-xs underline",style:{color:"var(--text-muted)"},onClick:()=>{const j=Tm(t.url);j&&(w(j),d||k({token:j}))},disabled:h,children:d?"Or enter the password here":"Or just use this device to watch"}),d&&g&&i.jsxs("form",{onSubmit:S,className:"w-full max-w-sm mt-4",children:[i.jsx("input",{type:"password",value:c,onChange:j=>p(j.target.value),placeholder:"Password",className:"w-full px-3 py-3 rounded-lg text-sm",style:{background:"var(--bg-elevated)",color:"var(--text)",border:"1px solid var(--border)"}}),o&&i.jsx("div",{className:"mt-2 text-sm",style:{color:"var(--status-error)"},children:o}),i.jsx("button",{type:"submit",disabled:h,className:"mt-3 w-full py-3 rounded-lg font-medium text-sm",style:{background:"var(--accent)",color:"white",opacity:h?.6:1},children:h?"Connecting…":"Connect"})]})]}),!m&&!d&&i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"text-sm text-center max-w-sm mb-5",style:{color:"var(--text-muted)"},children:["Open the ",i.jsx("span",{style:{color:"var(--accent)"},children:"fleetwatch"})," URL printed in your desktop terminal — that's the URL with the ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"?token="})," on it."]}),i.jsxs("form",{onSubmit:f,className:"w-full max-w-sm",children:[i.jsx("label",{className:"block text-xs uppercase tracking-wider mb-1",style:{color:"var(--text-faint)"},children:"Or paste the token manually"}),i.jsx("input",{type:"text",value:a,onChange:j=>u(j.target.value),placeholder:"paste token from terminal",className:"w-full px-3 py-3 rounded-lg text-sm",style:{background:"var(--bg-elevated)",color:"var(--text)",border:"1px solid var(--border)",fontFamily:"var(--font-mono)"}}),o&&i.jsx("div",{className:"mt-2 text-sm",style:{color:"var(--status-error)"},children:o}),i.jsx("button",{type:"submit",disabled:h,className:"mt-3 w-full py-3 rounded-lg font-medium text-sm",style:{background:"var(--accent)",color:"white",opacity:h?.6:1},children:h?"Connecting…":"Connect"})]})]})]}),i.jsxs("footer",{className:"px-5 pb-4 text-xs text-center",style:{color:"var(--text-faint)"},children:["Read-only. ",r?.passwordRequired?"Password-protected.":"Token-protected."," v0.1.0"]})]})}function Tm(e){try{return new URL(e).searchParams.get("token")}catch{return null}}function Rm(){return i.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 192 192",children:[i.jsx("rect",{width:"192",height:"192",rx:"42",fill:"var(--bg-elevated)"}),i.jsx("circle",{cx:"96",cy:"96",r:"48",fill:"none",stroke:"var(--accent)",strokeWidth:"10"}),i.jsx("circle",{cx:"96",cy:"96",r:"14",fill:"var(--accent)"}),i.jsx("path",{d:"M96 32 v18 M96 142 v18 M32 96 h18 M142 96 h18",stroke:"var(--accent)",strokeWidth:"8",strokeLinecap:"round"})]})}/**
68
- * @license lucide-react v1.16.0 - ISC
69
- *
70
- * This source code is licensed under the ISC license.
71
- * See the LICENSE file in the root directory of this source tree.
72
- */const _d=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
73
- * @license lucide-react v1.16.0 - ISC
74
- *
75
- * This source code is licensed under the ISC license.
76
- * See the LICENSE file in the root directory of this source tree.
77
- */const zm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
78
- * @license lucide-react v1.16.0 - ISC
79
- *
80
- * This source code is licensed under the ISC license.
81
- * See the LICENSE file in the root directory of this source tree.
82
- */const Im=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
83
- * @license lucide-react v1.16.0 - ISC
84
- *
85
- * This source code is licensed under the ISC license.
86
- * See the LICENSE file in the root directory of this source tree.
87
- */const Ya=e=>{const t=Im(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
88
- * @license lucide-react v1.16.0 - ISC
89
- *
90
- * This source code is licensed under the ISC license.
91
- * See the LICENSE file in the root directory of this source tree.
92
- */var jo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
93
- * @license lucide-react v1.16.0 - ISC
94
- *
95
- * This source code is licensed under the ISC license.
96
- * See the LICENSE file in the root directory of this source tree.
97
- */const Mm=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Om=y.createContext({}),Fm=()=>y.useContext(Om),$m=y.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:l="",children:o,iconNode:s,...a},u)=>{const{size:c=24,strokeWidth:p=2,absoluteStrokeWidth:h=!1,color:v="currentColor",className:g=""}=Fm()??{},w=r??h?Number(n??p)*24/Number(t??c):n??p;return y.createElement("svg",{ref:u,...jo,width:t??c??jo.width,height:t??c??jo.height,stroke:e??v,strokeWidth:w,className:_d("lucide",g,l),...!o&&!Mm(a)&&{"aria-hidden":"true"},...a},[...s.map(([k,S])=>y.createElement(k,S)),...Array.isArray(o)?o:[o]])});/**
98
- * @license lucide-react v1.16.0 - ISC
99
- *
100
- * This source code is licensed under the ISC license.
101
- * See the LICENSE file in the root directory of this source tree.
102
- */const $=(e,t)=>{const n=y.forwardRef(({className:r,...l},o)=>y.createElement($m,{ref:o,iconNode:t,className:_d(`lucide-${zm(Ya(e))}`,`lucide-${e}`,r),...l}));return n.displayName=Ya(e),n};/**
103
- * @license lucide-react v1.16.0 - ISC
104
- *
105
- * This source code is licensed under the ISC license.
106
- * See the LICENSE file in the root directory of this source tree.
107
- */const Um=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Dm=$("activity",Um);/**
108
- * @license lucide-react v1.16.0 - ISC
109
- *
110
- * This source code is licensed under the ISC license.
111
- * See the LICENSE file in the root directory of this source tree.
112
- */const Am=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Bm=$("check",Am);/**
113
- * @license lucide-react v1.16.0 - ISC
114
- *
115
- * This source code is licensed under the ISC license.
116
- * See the LICENSE file in the root directory of this source tree.
117
- */const Wm=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Sr=$("chevron-down",Wm);/**
118
- * @license lucide-react v1.16.0 - ISC
119
- *
120
- * This source code is licensed under the ISC license.
121
- * See the LICENSE file in the root directory of this source tree.
122
- */const Vm=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Pd=$("chevron-left",Vm);/**
123
- * @license lucide-react v1.16.0 - ISC
124
- *
125
- * This source code is licensed under the ISC license.
126
- * See the LICENSE file in the root directory of this source tree.
127
- */const Hm=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ld=$("chevron-right",Hm);/**
128
- * @license lucide-react v1.16.0 - ISC
129
- *
130
- * This source code is licensed under the ISC license.
131
- * See the LICENSE file in the root directory of this source tree.
132
- */const bm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Qm=$("circle-alert",bm);/**
133
- * @license lucide-react v1.16.0 - ISC
134
- *
135
- * This source code is licensed under the ISC license.
136
- * See the LICENSE file in the root directory of this source tree.
137
- */const Km=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Gm=$("circle",Km);/**
138
- * @license lucide-react v1.16.0 - ISC
139
- *
140
- * This source code is licensed under the ISC license.
141
- * See the LICENSE file in the root directory of this source tree.
142
- */const Ym=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Xm=$("copy",Ym);/**
143
- * @license lucide-react v1.16.0 - ISC
144
- *
145
- * This source code is licensed under the ISC license.
146
- * See the LICENSE file in the root directory of this source tree.
147
- */const qm=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Co=$("external-link",qm);/**
148
- * @license lucide-react v1.16.0 - ISC
149
- *
150
- * This source code is licensed under the ISC license.
151
- * See the LICENSE file in the root directory of this source tree.
152
- */const Zm=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],Xa=$("file-pen",Zm);/**
153
- * @license lucide-react v1.16.0 - ISC
154
- *
155
- * This source code is licensed under the ISC license.
156
- * See the LICENSE file in the root directory of this source tree.
157
- */const Jm=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ns=$("file-text",Jm);/**
158
- * @license lucide-react v1.16.0 - ISC
159
- *
160
- * This source code is licensed under the ISC license.
161
- * See the LICENSE file in the root directory of this source tree.
162
- */const ev=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],tv=$("folder-open",ev);/**
163
- * @license lucide-react v1.16.0 - ISC
164
- *
165
- * This source code is licensed under the ISC license.
166
- * See the LICENSE file in the root directory of this source tree.
167
- */const nv=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],rv=$("git-branch",nv);/**
168
- * @license lucide-react v1.16.0 - ISC
169
- *
170
- * This source code is licensed under the ISC license.
171
- * See the LICENSE file in the root directory of this source tree.
172
- */const lv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],ov=$("globe",lv);/**
173
- * @license lucide-react v1.16.0 - ISC
174
- *
175
- * This source code is licensed under the ISC license.
176
- * See the LICENSE file in the root directory of this source tree.
177
- */const sv=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],qa=$("hash",sv);/**
178
- * @license lucide-react v1.16.0 - ISC
179
- *
180
- * This source code is licensed under the ISC license.
181
- * See the LICENSE file in the root directory of this source tree.
182
- */const iv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],av=$("image",iv);/**
183
- * @license lucide-react v1.16.0 - ISC
184
- *
185
- * This source code is licensed under the ISC license.
186
- * See the LICENSE file in the root directory of this source tree.
187
- */const uv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],cv=$("info",uv);/**
188
- * @license lucide-react v1.16.0 - ISC
189
- *
190
- * This source code is licensed under the ISC license.
191
- * See the LICENSE file in the root directory of this source tree.
192
- */const dv=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],fv=$("message-square",dv);/**
193
- * @license lucide-react v1.16.0 - ISC
194
- *
195
- * This source code is licensed under the ISC license.
196
- * See the LICENSE file in the root directory of this source tree.
197
- */const pv=[["path",{d:"M5 12h14",key:"1ays0h"}]],hv=$("minus",pv);/**
198
- * @license lucide-react v1.16.0 - ISC
199
- *
200
- * This source code is licensed under the ISC license.
201
- * See the LICENSE file in the root directory of this source tree.
202
- */const mv=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],vv=$("paperclip",mv);/**
203
- * @license lucide-react v1.16.0 - ISC
204
- *
205
- * This source code is licensed under the ISC license.
206
- * See the LICENSE file in the root directory of this source tree.
207
- */const yv=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],gv=$("rotate-ccw",yv);/**
208
- * @license lucide-react v1.16.0 - ISC
209
- *
210
- * This source code is licensed under the ISC license.
211
- * See the LICENSE file in the root directory of this source tree.
212
- */const xv=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],wv=$("search",xv);/**
213
- * @license lucide-react v1.16.0 - ISC
214
- *
215
- * This source code is licensed under the ISC license.
216
- * See the LICENSE file in the root directory of this source tree.
217
- */const kv=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Sv=$("settings",kv);/**
218
- * @license lucide-react v1.16.0 - ISC
219
- *
220
- * This source code is licensed under the ISC license.
221
- * See the LICENSE file in the root directory of this source tree.
222
- */const jv=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Cv=$("terminal",jv);/**
223
- * @license lucide-react v1.16.0 - ISC
224
- *
225
- * This source code is licensed under the ISC license.
226
- * See the LICENSE file in the root directory of this source tree.
227
- */const Nv=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Td=$("wrench",Nv);/**
228
- * @license lucide-react v1.16.0 - ISC
229
- *
230
- * This source code is licensed under the ISC license.
231
- * See the LICENSE file in the root directory of this source tree.
232
- */const Ev=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Rd=$("x",Ev);/**
233
- * @license lucide-react v1.16.0 - ISC
234
- *
235
- * This source code is licensed under the ISC license.
236
- * See the LICENSE file in the root directory of this source tree.
237
- */const _v=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Pv=$("zap",_v),zd={running:{color:"var(--status-running)",label:"Running",pulse:!0,quiet:!1,Icon:Gm},"running-tool":{color:"var(--status-tool)",label:"Tool running",pulse:!0,quiet:!1,Icon:Td},"awaiting-user":{color:"var(--status-waiting)",label:"Awaiting your reply",pulse:!1,quiet:!1,Icon:fv},idle:{color:"var(--status-idle)",label:"Idle",pulse:!1,quiet:!0,Icon:hv},errored:{color:"var(--status-error)",label:"Error",pulse:!1,quiet:!1,Icon:Qm},compacted:{color:"var(--text-faint)",label:"Compacted",pulse:!1,quiet:!0,Icon:gv}};function Id({status:e,size:t=22}){const n=zd[e];if(n.quiet)return i.jsx("span",{title:n.label,"aria-label":n.label,style:{display:"inline-block",width:8,height:8,borderRadius:"50%",background:n.color,flexShrink:0,margin:`${(t-8)/2}px`,opacity:.55}});const{Icon:r}=n,l=Math.round(t*.58);return i.jsx("span",{title:n.label,"aria-label":n.label,className:n.pulse?"pulse-dot":"",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:t,height:t,borderRadius:"50%",background:n.color,color:"#fff",flexShrink:0,boxShadow:n.pulse?`0 0 0 4px ${n.color}22`:void 0},children:i.jsx(r,{size:l,strokeWidth:2.5})})}function Lv(e){return zd[e].label}function Md({source:e,size:t=14,className:n}){const r={width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,className:n};return e==="cursor"?i.jsx("svg",{...r,children:i.jsx("path",{d:"M5 3.5 L19.5 11.5 L13 12.5 L17 19.5 L14 21 L10.5 14 L5 19 Z"})}):e==="cowork"?i.jsxs("svg",{...r,children:[i.jsx("path",{d:"M12 3 L13 9 L19 8 L14.5 12 L19 16 L13 15 L12 21 L11 15 L5 16 L9.5 12 L5 8 L11 9 Z",opacity:"0.85"}),i.jsx("path",{d:"M16 16 a3 3 0 1 0 0 -4",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}):i.jsx("svg",{...r,children:i.jsx("path",{d:"M12 2.5 L13.2 9.2 L19.8 8.3 L14.7 12 L19.8 15.7 L13.2 14.8 L12 21.5 L10.8 14.8 L4.2 15.7 L9.3 12 L4.2 8.3 L10.8 9.2 Z"})})}function Od(e,t=Date.now()){if(!e)return"—";const n=Math.max(0,t-e);return n<5e3?"just now":n<6e4?`${Math.floor(n/1e3)}s ago`:n<36e5?`${Math.floor(n/6e4)}m ago`:n<864e5?`${Math.floor(n/36e5)}h ago`:new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Ni(e){return new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}const Za={"claude-code":{sub:null,color:"var(--accent)",bg:"rgba(217, 119, 87, 0.14)"},cowork:{sub:"cowork",color:"#a89df7",bg:"rgba(155, 135, 245, 0.14)"},cursor:{sub:null,color:"#5fb9ff",bg:"rgba(77, 171, 247, 0.14)"}};function Tv(e){switch(e){case"running":case"running-tool":return"var(--status-running)";case"awaiting-user":return"var(--status-waiting)";case"errored":return"var(--status-error)";case"idle":case"compacted":return"transparent"}}function Ja({session:e,now:t}){const n=e.customTitle??e.aiTitle,r=e.lastUserMessagePreview||e.gitBranch||"",l=e.currentActivity||"",o=Za[e.source]??Za["claude-code"],s=Tv(e.status);return i.jsx(mr,{to:`/s/${e.id}`,className:"block pl-3 pr-4 py-3 border-b active:bg-bg-subtle transition-colors",style:{borderBottomColor:"var(--border)",boxShadow:`inset 3px 0 0 ${s}`},children:i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("div",{className:"pt-1",children:i.jsx(Id,{status:e.status,size:18})}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[i.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[i.jsx("span",{className:"flex-shrink-0 inline-flex items-center justify-center rounded",style:{color:o.color,background:o.bg,width:"20px",height:"20px"},"aria-label":e.source,title:e.source,children:i.jsx(Md,{source:e.source,size:12})}),i.jsxs("div",{className:"text-xs truncate min-w-0",style:{color:"var(--text-faint)"},children:[e.projectLabel.replace(/\s*\/\s*/g," · "),o.sub&&i.jsxs("span",{className:"ml-1.5 text-[10px] uppercase tracking-wider",style:{color:o.color},children:["· ",o.sub]}),e.isSubagent&&i.jsx("span",{className:"ml-1.5",style:{color:"var(--accent)"},children:"· subagent"})]})]}),i.jsx("div",{className:"text-[11px] flex-shrink-0 tabular-nums",style:{color:"var(--text-faint)",fontFamily:"var(--font-mono)"},children:Od(e.lastUserMessageAt||e.lastEventAt,t)})]}),i.jsx("div",{className:"text-sm font-medium mt-1 truncate leading-tight",style:{color:"var(--text)"},children:n||r||i.jsx("span",{style:{color:"var(--text-faint)",fontStyle:"italic"},children:"no title yet"})}),n&&r&&i.jsx("div",{className:"text-xs mt-0.5 truncate",style:{color:"var(--text-muted)"},children:r}),l&&i.jsxs("div",{className:"text-[11px] mt-1 truncate inline-flex items-center gap-1",style:{color:"var(--text-muted)",fontFamily:"var(--font-mono)"},children:[i.jsx("span",{className:"inline-block w-1 h-1 rounded-full",style:{background:s!=="transparent"?s:"var(--text-faint)"}}),l]})]})]})})}const Rv={connected:{color:"var(--status-running)",label:"live"},connecting:{color:"var(--status-tool)",label:"…"},disconnected:{color:"var(--text-faint)",label:"offline"},unauthorized:{color:"var(--status-error)",label:"auth"},error:{color:"var(--status-error)",label:"error"}};function zv({status:e}){const t=Rv[e],n=e==="connecting"||e==="connected";return i.jsxs("div",{className:"text-[10px] px-2 py-1 rounded-full flex items-center gap-1.5 uppercase tracking-wider",style:{background:"var(--bg-subtle)",border:"1px solid var(--border)",color:"var(--text-faint)"},title:`Connection: ${t.label}`,children:[i.jsx("span",{className:n?"pulse-dot":"",style:{width:6,height:6,borderRadius:"50%",background:t.color,display:"inline-block"}}),i.jsx("span",{children:t.label})]})}const Wr=[{source:"claude-code",label:"Claude Code"},{source:"cowork",label:"Cowork"},{source:"cursor",label:"Cursor"}];function Iv({selected:e,onChange:t}){const[n,r]=y.useState(!1),l=y.useRef(null);y.useEffect(()=>{if(!n)return;const c=p=>{l.current&&!l.current.contains(p.target)&&r(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[n]);const o=e.size===0||e.size===Wr.length,s=o?"All providers":Wr.filter(c=>e.has(c.source)).map(c=>c.source==="claude-code"?"Claude":c.label).join(", ");function a(c){const p=new Set(e);p.has(c)?p.delete(c):p.add(c),t(p.size===0||p.size===Wr.length?new Set:p)}function u(){t(new Set)}return i.jsxs("div",{ref:l,style:{position:"relative"},children:[i.jsxs("button",{onClick:()=>r(c=>!c),className:"flex items-center gap-1 text-xs px-2.5 py-1.5 rounded-md font-medium transition-colors",style:{background:e.size>0?"var(--accent)":"var(--bg-subtle)",color:e.size>0?"white":"var(--text-muted)",border:`1px solid ${e.size>0?"var(--accent)":"var(--border)"}`,maxWidth:"160px"},children:[i.jsx("span",{className:"truncate",children:s}),i.jsx(Sr,{size:10,className:"flex-shrink-0",style:{opacity:.7}})]}),n&&i.jsxs("div",{className:"absolute left-0 top-full mt-1 rounded-lg z-50 overflow-hidden",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)",boxShadow:"0 8px 24px rgba(0,0,0,0.35)",minWidth:"160px"},children:[i.jsxs("label",{className:"flex items-center gap-2.5 px-3 py-2 cursor-pointer hover:opacity-80",style:{borderBottom:"1px solid var(--border)"},children:[i.jsx("input",{type:"checkbox",checked:o,onChange:u,className:"accent-accent"}),i.jsx("span",{className:"text-xs",style:{color:"var(--text)"},children:"All providers"})]}),Wr.map(c=>i.jsxs("label",{className:"flex items-center gap-2.5 px-3 py-2 cursor-pointer hover:opacity-80",children:[i.jsx("input",{type:"checkbox",checked:o||e.has(c.source),onChange:()=>a(c.source),className:"accent-accent"}),i.jsx(Md,{source:c.source,size:11}),i.jsx("span",{className:"text-xs",style:{color:"var(--text)"},children:c.label})]},c.source))]})]})}function Mv({projects:e,selected:t,onChange:n}){const[r,l]=y.useState(!1),o=y.useRef(null);if(y.useEffect(()=>{if(!r)return;const a=u=>{o.current&&!o.current.contains(u.target)&&l(!1)};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[r]),e.length===0)return null;const s=t?t.split("/").pop()??t:"All projects";return i.jsxs("div",{ref:o,style:{position:"relative"},children:[i.jsxs("button",{onClick:()=>l(a=>!a),className:"flex items-center gap-1 text-xs px-2.5 py-1.5 rounded-md font-medium transition-colors",style:{background:t?"var(--bg-elevated)":"var(--bg-subtle)",color:t?"var(--text)":"var(--text-muted)",border:`1px solid ${t?"var(--accent)":"var(--border)"}`,maxWidth:"160px"},children:[i.jsx("span",{className:"truncate",children:s}),i.jsx(Sr,{size:10,className:"flex-shrink-0",style:{opacity:.7}})]}),r&&i.jsxs("div",{className:"absolute left-0 top-full mt-1 rounded-lg z-50 overflow-hidden",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)",boxShadow:"0 8px 24px rgba(0,0,0,0.35)",minWidth:"180px",maxHeight:"260px",overflowY:"auto"},children:[i.jsx("button",{onClick:()=>{n(null),l(!1)},className:"w-full text-left flex items-center gap-2 px-3 py-2 text-xs hover:opacity-80",style:{color:t===null?"var(--accent)":"var(--text-muted)",borderBottom:"1px solid var(--border)",fontWeight:t===null?600:400},children:"All projects"}),e.map(a=>{const u=a.split("/").pop()??a,c=t===a;return i.jsx("button",{onClick:()=>{n(c?null:a),l(!1)},className:"w-full text-left flex items-center gap-2 px-3 py-2 text-xs hover:opacity-80 truncate",style:{color:c?"var(--accent)":"var(--text)",fontWeight:c?600:400,display:"block"},title:a,children:u},a)})]})]})}function Ov(e){const t=new Map;for(const n of e){const r=n.projectLabel;t.has(r)||t.set(r,[]),t.get(r).push(n)}return[...t.entries()].map(([n,r])=>({label:n,sessions:r,latestKey:Math.max(...r.map(js))})).sort((n,r)=>r.latestKey-n.latestKey)}function Fv(){const e=Y(S=>S.sessions),t=Y(S=>S.connection),[n,r]=y.useState(Date.now()),[l,o]=y.useState(new Set),[s,a]=y.useState(null),[u,c]=y.useState("");y.useEffect(()=>{const S=setInterval(()=>r(Date.now()),5e3);return()=>clearInterval(S)},[]);const p=y.useMemo(()=>Em(e),[e,n]),h=y.useMemo(()=>{const S=new Set;for(const f of p)f.status!=="compacted"&&S.add(f.projectLabel);return[...S].sort()},[p]),v=y.useMemo(()=>p.filter(S=>S.status!=="compacted").length,[p]),g=y.useMemo(()=>{let S=p.filter(f=>!(f.status==="compacted"||l.size>0&&!l.has(f.source)||s&&f.projectLabel!==s));if(u.trim()){const f=u.toLowerCase();S=S.filter(d=>d.projectLabel.toLowerCase().includes(f)||(d.aiTitle??"").toLowerCase().includes(f)||(d.customTitle??"").toLowerCase().includes(f)||(d.lastUserMessagePreview??"").toLowerCase().includes(f))}return S},[p,l,s,u]),w=y.useMemo(()=>s?[{label:s,sessions:g,latestKey:0}]:Ov(g),[g,s]),k=l.size>0||s!==null||u.trim()!=="";return i.jsxs("div",{className:"flex flex-col flex-1 min-h-full",children:[i.jsxs("header",{className:"sticky top-0 z-20 safe-top safe-x px-4 pt-3 pb-2.5",style:{background:"var(--bg)",borderBottom:"1px solid var(--border)"},children:[i.jsxs("div",{className:"flex items-center justify-between mb-2.5",children:[i.jsxs("div",{className:"flex items-baseline gap-2 min-w-0",children:[i.jsx("h1",{className:"text-base font-semibold tracking-tight",style:{color:"var(--text)"},children:"Sessions"}),i.jsxs("span",{className:"text-[11px] tabular-nums",style:{color:"var(--text-faint)",fontFamily:"var(--font-mono)"},children:[g.length,g.length!==v&&i.jsxs("span",{style:{opacity:.6},children:[" · ",v]})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(zv,{status:t.status}),i.jsx(mr,{to:"/settings",className:"flex items-center justify-center w-8 h-8 rounded-md transition-colors hover:opacity-80",style:{background:"var(--bg-subtle)",color:"var(--text-muted)"},"aria-label":"Settings",children:i.jsx(Sv,{size:15})})]})]}),i.jsx("input",{value:u,onChange:S=>c(S.target.value),placeholder:"Filter sessions…",className:"w-full px-3 py-1.5 rounded-md text-sm mb-2 focus:outline-none focus:border-accent",style:{background:"var(--bg-elevated)",color:"var(--text)",border:"1px solid var(--border)"}}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Iv,{selected:l,onChange:o}),i.jsx(Mv,{projects:h,selected:s,onChange:a}),k&&i.jsx("button",{onClick:()=>{o(new Set),a(null),c("")},className:"text-xs px-2 py-1.5 rounded-md ml-auto",style:{color:"var(--text-faint)",background:"var(--bg-subtle)",border:"1px solid var(--border)"},children:"Clear"})]})]}),i.jsx("main",{className:"flex-1 overflow-y-auto safe-bottom",style:{background:"var(--bg)"},children:g.length===0?i.jsx($v,{hasFilters:k,totalCount:v,onClear:()=>{o(new Set),a(null),c("")}}):s?i.jsx("ul",{children:g.map(S=>i.jsx("li",{children:i.jsx(Ja,{session:S,now:n})},S.id))}):i.jsx("div",{children:w.map(S=>i.jsxs("section",{children:[w.length>1&&i.jsxs("div",{className:"px-4 py-1.5 flex items-center gap-2",style:{background:"var(--bg-subtle)",borderBottom:"1px solid var(--border)",borderTop:"1px solid var(--border)"},children:[i.jsx("span",{className:"text-[11px] font-semibold tracking-wide truncate",style:{color:"var(--text-muted)"},children:S.label.split("/").pop()??S.label}),i.jsx("span",{className:"text-[10px] tabular-nums ml-auto flex-shrink-0",style:{color:"var(--text-faint)",fontFamily:"var(--font-mono)"},children:S.sessions.length})]}),i.jsx("ul",{children:S.sessions.map(f=>i.jsx("li",{children:i.jsx(Ja,{session:f,now:n})},f.id))})]},S.label))})})]})}function $v({hasFilters:e,totalCount:t,onClear:n}){return t===0?i.jsxs("div",{className:"px-6 pt-16 text-center",children:[i.jsx("div",{className:"text-4xl mb-2",children:"·"}),i.jsx("h2",{className:"text-base font-medium mb-1",style:{color:"var(--text)"},children:"Nothing yet"}),i.jsx("p",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Start a Claude Code or Cursor session on your desktop — it'll appear here in real time."})]}):i.jsxs("div",{className:"px-6 pt-16 text-center",children:[i.jsx("h2",{className:"text-base font-medium mb-1",style:{color:"var(--text)"},children:"No matching sessions"}),e&&i.jsx("button",{onClick:n,className:"text-sm px-3 py-2 rounded-md mt-3",style:{background:"var(--accent)",color:"white"},children:"Clear filters"})]})}function Fd({src:e,mediaType:t,sizeBytes:n,onClose:r}){return y.useEffect(()=>{const l=o=>{o.key==="Escape"&&r()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[r]),y.useEffect(()=>{const l=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=l}},[]),i.jsxs("div",{role:"dialog","aria-modal":"true",onClick:r,className:"fixed inset-0 z-50 flex items-center justify-center safe-top safe-bottom safe-x",style:{background:"rgba(0,0,0,0.85)"},children:[i.jsx("button",{type:"button",onClick:l=>{l.stopPropagation(),r()},className:"absolute top-3 right-3 flex items-center justify-center w-9 h-9 rounded-full",style:{background:"rgba(255,255,255,0.12)",color:"white"},"aria-label":"Close",children:i.jsx(Rd,{size:18})}),i.jsx("img",{src:e,alt:"",onClick:l=>l.stopPropagation(),style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain",padding:"2.5rem 1rem"}}),i.jsxs("div",{className:"absolute bottom-2 left-0 right-0 text-center text-[11px]",style:{color:"rgba(255,255,255,0.55)"},children:[t.replace("image/","").toUpperCase()," · ",Uv(n)]})]})}function Uv(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}const No=800;function Dv({event:e}){return e.type==="user"?i.jsx(Av,{event:e}):e.type==="assistant"?i.jsx(Wv,{event:e}):e.type==="thinking"?i.jsx(Vv,{event:e}):e.type==="summary"?i.jsx(eu,{event:e,label:"Session compacted"}):e.type==="attachment"?i.jsx(Hv,{event:e}):i.jsx(eu,{event:e,label:e.text??"system"})}function Av({event:e}){const t=e.text??"",n=(e.images?.length??0)>0;if(!n&&(t.startsWith("<command-name>")||t.startsWith("<local-command-stdout>"))||!t&&!n)return null;const r=t.startsWith("<command-name>")||t.startsWith("<local-command-stdout>")?"":t;return i.jsxs("div",{className:"flex flex-col items-end my-3 slide-in",children:[i.jsx(Ei,{ts:e.ts}),i.jsxs("div",{className:"max-w-[88%] rounded-lg px-3.5 py-2.5 mt-1",style:{background:"var(--accent-bg)",border:"1px solid var(--accent-soft)",color:"var(--text)"},children:[i.jsx("div",{className:"text-[10px] uppercase tracking-wider mb-1",style:{color:"var(--accent)"},children:"You"}),e.images&&e.images.length>0&&i.jsx(Bv,{images:e.images}),r&&i.jsx("div",{className:"whitespace-pre-wrap break-words text-sm",style:{lineHeight:1.5},children:r})]})]})}function Bv({images:e}){const t=Y(l=>l.token),[n,r]=y.useState(null);return t?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:`flex flex-wrap gap-1.5 ${e.length>0?"mb-2":""}`,children:e.map(l=>{const o=`/api/attachment/${l.hash}?token=${encodeURIComponent(t)}`;return i.jsx("button",{type:"button",onClick:()=>r(l),className:"block rounded overflow-hidden flex-shrink-0",style:{background:"var(--bg-subtle)",border:"1px solid var(--border)",padding:0},"aria-label":"View image",children:i.jsx("img",{src:o,alt:"",loading:"lazy",style:{maxWidth:"200px",maxHeight:"160px",display:"block",objectFit:"cover"}})},l.hash)})}),n&&i.jsx(Fd,{src:`/api/attachment/${n.hash}?token=${encodeURIComponent(t)}`,mediaType:n.mediaType,sizeBytes:n.sizeBytes,onClose:()=>r(null)})]}):null}function Wv({event:e}){const[t,n]=y.useState(!1);if(!e.text&&!e.thinking)return null;const r=e.text??"",l=!t&&r.length>No?r.slice(0,No)+"…":r,o=(e.inputTokens??0)+(e.outputTokens??0);return i.jsxs("div",{className:"flex flex-col items-start my-3 slide-in",children:[i.jsx(Ei,{ts:e.ts}),i.jsxs("div",{className:"max-w-[92%] rounded-lg px-3.5 py-2.5 mt-1",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)",color:"var(--text)"},children:[i.jsxs("div",{className:"text-[10px] uppercase tracking-wider mb-1 flex items-center gap-2",style:{color:"var(--text-faint)"},children:[i.jsx("span",{children:"Claude"}),e.model&&i.jsxs("span",{children:["· ",e.model.replace("claude-","").replace("-20"," ").split(" ")[0]]}),o>0&&i.jsxs("span",{children:["· ",o.toLocaleString()," tok"]})]}),e.thinking&&i.jsxs("details",{className:"mb-2",style:{color:"var(--text-faint)"},children:[i.jsx("summary",{className:"cursor-pointer text-xs",children:"Thinking"}),i.jsx("div",{className:"mt-1 text-xs whitespace-pre-wrap",style:{fontFamily:"var(--font-serif)"},children:e.thinking})]}),e.text&&i.jsxs("div",{className:"prose-claude",children:[l,!t&&r.length>No&&i.jsx("button",{onClick:()=>n(!0),className:"ml-2 underline text-xs",style:{color:"var(--accent)",fontFamily:"var(--font-sans)"},children:"Show full"})]})]})]})}function Vv({event:e}){return e.thinking?i.jsxs("div",{className:"flex flex-col items-start my-2 slide-in",children:[i.jsx(Ei,{ts:e.ts}),i.jsxs("div",{className:"max-w-[92%] rounded-lg px-3.5 py-2 mt-1",style:{background:"var(--bg-subtle)",border:"1px dashed var(--border)",color:"var(--text-muted)"},children:[i.jsx("div",{className:"text-[10px] uppercase tracking-wider mb-1",style:{color:"var(--text-faint)"},children:"Thinking"}),i.jsx("div",{className:"text-sm whitespace-pre-wrap",style:{fontFamily:"var(--font-serif)"},children:e.thinking})]})]}):null}function eu({event:e,label:t}){return i.jsxs("div",{className:"my-2 flex items-center gap-2 text-xs italic",style:{color:"var(--text-faint)"},children:[i.jsx("span",{children:"—"}),i.jsx("span",{className:"truncate",children:t}),i.jsx("span",{className:"ml-auto",style:{fontFamily:"var(--font-mono)"},children:Ni(e.ts)})]})}function Hv({event:e}){const t=e.attachmentKind??"attachment";return i.jsxs("div",{className:"my-2 flex items-center gap-2 text-xs italic",style:{color:"var(--text-faint)"},children:[i.jsx(vv,{size:11}),i.jsxs("span",{className:"truncate",children:[t,e.text?` · ${e.text.slice(0,60)}`:""]}),i.jsx("span",{className:"ml-auto",style:{fontFamily:"var(--font-mono)"},children:Ni(e.ts)})]})}function Ei({ts:e}){return i.jsx("div",{className:"text-[10px] mx-1",style:{color:"var(--text-faint)",fontFamily:"var(--font-mono)"},children:Ni(e)})}function bv(e){const t=[];let n=[];const r=()=>{n.length&&(t.push({kind:"tools",pairs:n}),n=[])};for(const l of e)if(l.type==="user")r(),t.push({kind:"user",event:l});else if(l.type==="assistant")l.toolName?n.push({use:l}):(r(),(l.text||l.thinking)&&t.push({kind:"assistant",event:l}));else if(l.type==="tool_use")n.push({use:l});else if(l.type==="tool_result"){const o=l.toolUseRef,s=o?n.slice().reverse().find(a=>a.use.toolUseId===o):n.slice().reverse().find(a=>!a.result);s?s.result=l:n.push({use:Gv(l),result:l})}else if(l.type!=="thinking")if(l.type==="summary")r(),t.push({kind:"system",event:l});else if(l.type==="attachment"){const o=l.attachmentKind;o&&o!=="hook_success"&&o!=="goal_status"&&o!=="deferred_tools_delta"&&(r(),t.push({kind:"system",event:l}))}else l.type==="system"&&l.text&&!l.text.startsWith('{"operation"')&&!l.text.startsWith("{")&&(r(),t.push({kind:"system",event:l}));return r(),t}function Qv(e){if(e.length===0)return"Tool call";const n=e.map(o=>o.use).map(o=>o.toolName??"tool"),r=tu(n[0]),l=n.every(o=>tu(o)===r);if(e.length===1)return $d(e[0]);if(!l)return`Used ${e.length} tools`;switch(r){case"bash":return`Ran ${e.length} command${e.length>1?"s":""}`;case"read":return`Read ${e.length} file${e.length>1?"s":""}`;case"write":return`Wrote ${e.length} file${e.length>1?"s":""}`;case"edit":return`Edited ${e.length} file${e.length>1?"s":""}`;case"search":return`Searched ${e.length} time${e.length>1?"s":""}`;default:return`Used ${e.length} tools`}}function $d(e){const{use:t}=e,n=t.toolName??"tool",r=t.toolInput??{};switch(n){case"Bash":case"Bash_SIDECHAIN":return`Ran ${String(r.command??"").trim().split(`
238
- `)[0].slice(0,80)}`;case"Read":return`Read ${Vr(String(r.file_path??""))}`;case"Write":return`Wrote ${Vr(String(r.file_path??""))}`;case"Edit":case"NotebookEdit":{const l=Vr(String(r.file_path??"")),o=nu(String(r.new_string??"")),s=nu(String(r.old_string??"")),a=o||s?` +${o} -${s}`:"";return`Edited ${l}${a}`}case"Grep":return`Grepped "${String(r.pattern??"").slice(0,40)}"${r.path?` in ${Vr(String(r.path))}`:""}`;case"Glob":return`Glob ${String(r.pattern??"").slice(0,40)}`;case"WebFetch":return`Fetched ${Kv(String(r.url??""))}`;case"WebSearch":return`Searched "${String(r.query??"").slice(0,50)}"`;case"Task":case"Agent":return`Started ${String(r.description??r.subagent_type??"task").slice(0,60)}`;default:return n}}function tu(e){const t=e.toLowerCase();return t==="bash"||t.startsWith("bash_")?"bash":t==="read"?"read":t==="write"?"write":t==="edit"||t==="notebookedit"?"edit":t==="grep"||t==="glob"?"search":"other"}function Vr(e){const t=e.replace(/\\/g,"/").split("/");return t.length>2?"…/"+t.slice(-2).join("/"):e}function Kv(e){try{const t=new URL(e);return t.hostname+(t.pathname.length>1?t.pathname.slice(0,30):"")}catch{return e.slice(0,40)}}function nu(e){return e?e.split(`
239
- `).length:0}function Gv(e){return{sessionId:e.sessionId,ts:e.ts,type:"tool_use",toolName:"tool",toolUseId:e.toolUseRef}}function Yv(e){const t=e.toolResultText??"";if(!((e.images?.length??0)>0))return!0;const r=t.trim();return r?!/^[\[{]\s*\{?\s*"type"\s*:\s*"image"/.test(r):!1}function Xv({pairs:e,isLast:t}){const[n,r]=y.useState(!1),l=Qv(e),o=e.some(a=>a.result?.toolResultIsError),s=t&&e.some(a=>!a.result);return i.jsxs("div",{className:"my-1",children:[i.jsxs("button",{onClick:()=>r(a=>!a),className:"w-full text-left flex items-center gap-2 px-2 py-1.5 rounded-md group transition-colors",style:{color:o?"var(--status-error)":"var(--text-muted)"},children:[n?i.jsx(Sr,{size:14,style:{flexShrink:0,color:"var(--text-faint)"}}):i.jsx(Ld,{size:14,style:{flexShrink:0,color:"var(--text-faint)"}}),i.jsx("span",{className:"text-sm truncate",style:{color:o?"var(--status-error)":"var(--text-muted)"},children:l}),s&&i.jsx("span",{className:"ml-1 pulse-dot",style:{color:"var(--status-running)",fontSize:10},children:"●"})]}),n&&i.jsx("div",{className:"ml-5 border-l pl-3 py-1 space-y-2",style:{borderColor:"var(--border)"},children:e.map((a,u)=>i.jsx(qv,{pair:a},`${a.use.toolUseId??u}`))})]})}function qv({pair:e}){const[t,n]=y.useState(!1),r=$d(e),l=e.result?.toolResultIsError,o=!e.result;return i.jsxs("div",{children:[i.jsxs("button",{onClick:()=>n(s=>!s),className:"w-full text-left flex items-center gap-2 py-0.5 group",children:[i.jsx(Jv,{name:e.use.toolName,size:13}),i.jsx("span",{className:"text-xs truncate flex-1",style:{color:l?"var(--status-error)":"var(--text-muted)",fontFamily:"var(--font-mono)"},children:r}),o&&i.jsx("span",{className:"pulse-dot text-[10px]",style:{color:"var(--status-running)"},children:"●"}),!o&&(t?i.jsx(Sr,{size:11,style:{color:"var(--text-faint)",flexShrink:0}}):i.jsx(Ld,{size:11,style:{color:"var(--text-faint)",flexShrink:0}}))]}),t&&i.jsxs("div",{className:"mt-1 space-y-1",children:[i.jsx("pre",{className:"overflow-auto rounded text-xs",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)",padding:"6px 8px",maxHeight:280,fontFamily:"var(--font-mono)",color:"var(--text-muted)"},children:JSON.stringify(e.use.toolInput,null,2)}),e.result?.images&&e.result.images.length>0&&i.jsx(Zv,{images:e.result.images}),e.result&&Yv(e.result)&&i.jsx("pre",{className:"overflow-auto rounded text-xs",style:{background:l?"rgba(248,113,113,0.06)":"var(--bg-subtle)",border:`1px solid ${l?"var(--status-error)":"var(--border)"}`,padding:"6px 8px",maxHeight:280,fontFamily:"var(--font-mono)",color:l?"var(--status-error)":"var(--text-muted)"},children:(e.result.toolResultText??"").slice(0,4e3)||"(empty)"})]})]})}function Zv({images:e}){const t=Y(l=>l.token),[n,r]=y.useState(null);return t?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"flex flex-wrap gap-1.5 mb-2",children:e.map(l=>{const o=`/api/attachment/${l.hash}?token=${encodeURIComponent(t)}`;return i.jsxs("button",{type:"button",onClick:()=>r(l),className:"block rounded overflow-hidden flex-shrink-0 group relative",style:{background:"var(--bg-subtle)",border:"1px solid var(--border)",padding:0},"aria-label":"View image",children:[i.jsx("img",{src:o,alt:"",loading:"lazy",style:{maxWidth:"240px",maxHeight:"180px",display:"block",objectFit:"contain"}}),i.jsxs("span",{className:"absolute top-1 left-1 inline-flex items-center gap-0.5 text-[9px] uppercase tracking-wider px-1 py-px rounded font-semibold",style:{background:"rgba(0,0,0,0.55)",color:"white"},children:[i.jsx(av,{size:9})," ",l.mediaType.replace("image/","")]})]},l.hash)})}),n&&i.jsx(Fd,{src:`/api/attachment/${n.hash}?token=${encodeURIComponent(t)}`,mediaType:n.mediaType,sizeBytes:n.sizeBytes,onClose:()=>r(null)})]}):null}function Jv({name:e,size:t=14}){const n=(e??"").toLowerCase(),r={flexShrink:0,color:"var(--text-faint)"};return n==="bash"||n.startsWith("bash_")?i.jsx(Cv,{size:t,style:r}):n==="read"?i.jsx(Ns,{size:t,style:r}):n==="write"?i.jsx(Xa,{size:t,style:r}):n==="edit"||n==="notebookedit"?i.jsx(Xa,{size:t,style:r}):n==="grep"||n==="glob"?i.jsx(wv,{size:t,style:r}):n==="webfetch"||n==="websearch"?i.jsx(ov,{size:t,style:r}):n==="task"||n==="agent"?i.jsx(Pv,{size:t,style:r}):i.jsx(Td,{size:t,style:r})}function ey({sessionId:e,onClose:t}){const n=Y(p=>p.token),[r,l]=y.useState(null),[o,s]=y.useState(null),[a,u]=y.useState(null);y.useEffect(()=>{n&&fetch(`/api/session/${e}/info?token=${encodeURIComponent(n)}`).then(p=>p.ok?p.json():Promise.reject(p.statusText)).then(l).catch(p=>s(String(p)))},[e,n]),y.useEffect(()=>{const p=h=>{h.key==="Escape"&&t()};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[t]),y.useEffect(()=>{const p=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=p}},[]);async function c(p,h){try{await navigator.clipboard.writeText(p),u(h),setTimeout(()=>u(v=>v===h?null:v),1500)}catch{const v=document.createElement("textarea");v.value=p,v.style.position="fixed",v.style.opacity="0",document.body.appendChild(v),v.select();try{document.execCommand("copy"),u(h),setTimeout(()=>u(g=>g===h?null:g),1500)}catch{}document.body.removeChild(v)}}return i.jsx("div",{role:"dialog","aria-modal":"true",onClick:t,className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center safe-top safe-x",style:{background:"rgba(0,0,0,0.55)"},children:i.jsxs("div",{onClick:p=>p.stopPropagation(),className:"w-full sm:max-w-md max-h-[85vh] overflow-y-auto rounded-t-2xl sm:rounded-2xl flex flex-col",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)",boxShadow:"var(--shadow)"},children:[i.jsxs("div",{className:"flex items-center justify-between px-4 py-3 sticky top-0",style:{background:"var(--bg-elevated)",borderBottom:"1px solid var(--border)"},children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Ns,{size:16,style:{color:"var(--accent)"}}),i.jsx("h2",{className:"text-sm font-semibold",style:{color:"var(--text)"},children:"Session details"})]}),i.jsx("button",{onClick:t,className:"flex items-center justify-center w-8 h-8 rounded-md",style:{background:"var(--bg-subtle)",color:"var(--text-muted)"},"aria-label":"Close",children:i.jsx(Rd,{size:16})})]}),i.jsxs("div",{className:"px-4 py-3 space-y-3 safe-bottom",children:[o&&i.jsxs("div",{className:"text-sm",style:{color:"var(--status-error)"},children:["Failed to load: ",o]}),!r&&!o&&i.jsx("div",{className:"text-sm",style:{color:"var(--text-muted)"},children:"Loading…"}),r&&i.jsxs(i.Fragment,{children:[i.jsx(Kt,{icon:i.jsx(Ns,{size:13}),label:r.filePath?.startsWith("cursor:")?"Cursor DB entry":"Transcript file",children:r.filePath?i.jsx(Hr,{value:r.filePath.startsWith("cursor:")?`cursor://composer/${r.sessionId}`:r.filePath,copyKey:"filePath",copied:a,onCopy:c,secondary:r.filePath.startsWith("cursor:")?"Stored in Cursor's SQLite (~/Library/Application Support/Cursor/User/globalStorage/state.vscdb)":r.fileExists?ty(r.fileSize??0):"file no longer exists"}):i.jsx("span",{style:{color:"var(--text-muted)"},children:"(unknown)"})}),i.jsx(Kt,{icon:i.jsx(tv,{size:13}),label:"Project",children:i.jsx(Hr,{value:r.projectPath,copyKey:"projectPath",copied:a,onCopy:c,secondary:r.projectLabel})}),r.gitBranch&&i.jsx(Kt,{icon:i.jsx(rv,{size:13}),label:"Git branch",children:i.jsx("span",{className:"text-sm font-mono",style:{color:"var(--text)"},children:r.gitBranch})}),i.jsx(Kt,{icon:i.jsx(qa,{size:13}),label:"Session ID",children:i.jsx(Hr,{value:r.sessionId,copyKey:"sessionId",copied:a,onCopy:c,secondary:`source: ${r.source}`})}),r.parentSessionId&&i.jsx(Kt,{icon:i.jsx(qa,{size:13}),label:"Parent session (subagent)",children:i.jsx(Hr,{value:r.parentSessionId,copyKey:"parentSessionId",copied:a,onCopy:c})}),i.jsx(Kt,{icon:i.jsx(Dm,{size:13}),label:"Activity",children:i.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",style:{color:"var(--text-muted)"},children:[i.jsx(br,{label:"Status",value:r.status}),i.jsx(br,{label:"Events",value:r.eventCount.toLocaleString()}),i.jsx(br,{label:"Last event",value:r.lastEventAt?new Date(r.lastEventAt).toLocaleString():"—"}),i.jsx(br,{label:"Last user msg",value:r.lastUserMessageAt?new Date(r.lastUserMessageAt).toLocaleString():"—"})]})})]})]})]})})}function Kt({icon:e,label:t,children:n}){return i.jsxs("div",{children:[i.jsxs("div",{className:"text-[10px] uppercase tracking-wider mb-1 flex items-center gap-1.5",style:{color:"var(--text-faint)"},children:[i.jsx("span",{style:{color:"var(--text-faint)"},children:e}),t]}),n]})}function Hr({value:e,copyKey:t,copied:n,onCopy:r,secondary:l}){const o=n===t;return i.jsxs("div",{className:"flex items-start gap-2 px-2 py-1.5 rounded",style:{background:"var(--bg-subtle)",border:"1px solid var(--border)"},children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-xs break-all",style:{color:"var(--text)",fontFamily:"var(--font-mono)"},children:e}),l&&i.jsx("div",{className:"text-[10px] mt-1",style:{color:"var(--text-faint)"},children:l})]}),i.jsx("button",{onClick:()=>r(e,t),className:"flex-shrink-0 flex items-center justify-center w-7 h-7 rounded transition-colors",style:{background:o?"var(--status-running)":"transparent",color:o?"white":"var(--text-muted)",border:"1px solid var(--border)"},"aria-label":"Copy",title:"Copy to clipboard",children:o?i.jsx(Bm,{size:13}):i.jsx(Xm,{size:13})})]})}function br({label:e,value:t}){return i.jsxs("div",{children:[i.jsx("div",{className:"text-[10px] uppercase tracking-wider",style:{color:"var(--text-faint)"},children:e}),i.jsx("div",{className:"text-xs",style:{color:"var(--text)"},children:t})]})}function ty(e){return e===0?"0 B":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/1024/1024).toFixed(1)} MB`:`${(e/1024/1024/1024).toFixed(2)} GB`}const ny=[],Qr=80;function ry(){const{id:e}=Hh(),t=Y(d=>e?d.sessions[e]:void 0),r=Y(d=>e?d.events[e]:void 0)??ny,l=Y(d=>d.token),[o,s]=y.useState(!1),[a,u]=y.useState(!0),[c,p]=y.useState(!1),[h,v]=y.useState(Qr),g=y.useRef(null),w=y.useRef(0),k=y.useRef(0),S=y.useRef(!1);y.useEffect(()=>{v(Qr),s(!1)},[e]),y.useEffect(()=>{e&&l&&!o&&(_m({kind:"request_history",sessionId:e,limit:150}),s(!0))},[e,l,o]),y.useLayoutEffect(()=>{if(S.current&&g.current){const d=g.current;d.scrollTop=d.scrollTop+(d.scrollHeight-k.current),S.current=!1}}),y.useEffect(()=>{if(r.length>w.current&&a&&g.current){const d=g.current;d.scrollTop=d.scrollHeight}w.current=r.length},[r.length,a]),y.useEffect(()=>{const d=g.current;if(!d)return;const m=()=>{const x=d.scrollHeight-d.scrollTop-d.clientHeight<80;u(x)};return d.addEventListener("scroll",m,{passive:!0}),()=>d.removeEventListener("scroll",m)},[]);const f=y.useMemo(()=>r.filter(d=>!(d.type==="system"&&(d.text?.startsWith('{"operation"')||!d.text)||d.type==="attachment"&&(d.attachmentKind==="goal_status"||d.attachmentKind==="hook_success"))),[r]);return e?t?i.jsxs("div",{className:"flex flex-col flex-1 min-h-full",style:{background:"var(--bg)"},children:[i.jsxs("header",{className:"sticky top-0 z-20 safe-top safe-x px-4 pt-3 pb-2",style:{background:"var(--bg)",borderBottom:"1px solid var(--border)"},children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(mr,{to:"/",className:"flex items-center justify-center w-8 h-8 rounded-md",style:{background:"var(--bg-subtle)",color:"var(--accent)"},children:i.jsx(Pd,{size:18})}),i.jsx(Id,{status:t.status,size:18}),i.jsxs("div",{className:"min-w-0 flex-1",children:[i.jsx("div",{className:"text-[10px] truncate",style:{color:"var(--text-faint)"},children:t.projectLabel}),i.jsx("div",{className:"text-sm font-medium truncate leading-tight",style:{color:"var(--text)"},children:t.customTitle??t.aiTitle??t.projectLabel}),i.jsxs("div",{className:"text-xs truncate flex items-center gap-1.5 mt-0.5",style:{color:"var(--text-faint)",fontFamily:"var(--font-mono)"},children:[i.jsx("span",{children:Lv(t.status)}),t.currentActivity&&i.jsxs("span",{children:["· ",t.currentActivity]})]})]}),i.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[i.jsx("button",{onClick:()=>p(!0),className:"flex items-center justify-center w-7 h-7 rounded-md transition-colors",style:{background:"var(--bg-subtle)",color:"var(--text-muted)"},"aria-label":"Session details",title:"Where is this transcript stored?",children:i.jsx(cv,{size:14})}),i.jsx("div",{className:"text-xs",style:{color:"var(--text-faint)"},children:Od(t.lastEventAt)})]})]}),t.gitBranch&&i.jsxs("div",{className:"text-[10px] mt-1",style:{color:"var(--text-faint)",fontFamily:"var(--font-mono)"},children:[t.gitBranch," · ",t.id.slice(0,8)," · ",t.eventCount," events"]})]}),c&&i.jsx(ey,{sessionId:t.id,onClose:()=>p(!1)}),i.jsx("div",{ref:g,className:"flex-1 overflow-y-auto px-3 py-2 safe-bottom",children:f.length===0?i.jsx("div",{className:"px-6 pt-16 text-center text-sm",style:{color:"var(--text-muted)"},children:"Loading session history…"}):(()=>{const d=Math.max(0,f.length-h),m=d>0?f.slice(d):f,x=bv(m);return i.jsxs(i.Fragment,{children:[d>0&&i.jsx("div",{className:"flex justify-center py-3",children:i.jsxs("button",{onClick:()=>{g.current&&(k.current=g.current.scrollHeight,S.current=!0),v(j=>j+Qr)},className:"text-xs px-4 py-1.5 rounded-full",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)",color:"var(--text-muted)"},children:["↑ Load ",Math.min(Qr,d)," older messages (",d," hidden)"]})}),x.map((j,E)=>{if(j.kind==="tools"){const L=j.pairs[0]?.use.toolUseId??`tools-${E}`;return i.jsx(Xv,{pairs:j.pairs,isLast:E===x.length-1},L)}const N=j.event;return i.jsx(Dv,{event:N},`${N.uuid??N.ts}-${E}`)})]})})()}),!a&&i.jsxs("button",{onClick:()=>{const d=g.current;d&&(d.scrollTop=d.scrollHeight,u(!0))},className:"fixed bottom-6 right-6 flex items-center gap-1.5 px-3 py-2 rounded-full text-xs font-medium shadow",style:{background:"var(--accent)",color:"white",boxShadow:"var(--shadow)"},children:[i.jsx(Sr,{size:14})," jump to live"]})]}):i.jsxs("div",{className:"flex flex-col flex-1 min-h-full",children:[i.jsx("header",{className:"safe-top safe-x px-4 py-3 flex items-center gap-2 border-b",style:{borderColor:"var(--border)"},children:i.jsx(mr,{to:"/",className:"text-sm",style:{color:"var(--accent)"},children:"← Sessions"})}),i.jsx("div",{className:"flex-1 flex items-center justify-center px-6 text-center text-sm",style:{color:"var(--text-muted)"},children:"This session isn't loaded — it may have been removed."})]}):null}function ly(){const e=Y(T=>T.setToken),t=Y(T=>T.token),n=Y(T=>T.connection),r=Y(T=>Object.keys(T.sessions).length),[l,o]=y.useState(null),[s,a]=y.useState(""),[u,c]=y.useState(!1),[p,h]=y.useState(""),[v,g]=y.useState(!1),[w,k]=y.useState(null),[S,f]=y.useState(!1),[d,m]=y.useState(null),[x,j]=y.useState(""),[E,N]=y.useState(!1),[L,D]=y.useState(!1);y.useEffect(()=>{fetch("/api/health").then(T=>T.ok?T.json():null).then(T=>T&&o(T)),fetch("/api/pairing").then(T=>T.ok?T.json():null).then(T=>{T&&(c(!0),a(T.hostLabel),m(T),g(!!T.ngrokDisabled),D(!!T.passwordRequired))}),fetch("/api/auth-info").then(T=>T.ok?T.json():null).then(T=>T&&D(!!T.passwordRequired)),t&&fetch(`/api/tunnel?token=${encodeURIComponent(t)}`).then(T=>T.ok?T.json():null).then(T=>T&&k(T))},[t]);async function z(T){const Lt=await fetch("/api/settings",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(T)});if(Lt.ok){const re=await Lt.json();re.ngrokUrl!==void 0&&(k({active:re.ngrokActive,url:re.ngrokUrl}),m(Qe=>Qe&&{...Qe,ngrokUrl:re.ngrokUrl,ngrokActive:re.ngrokActive,ngrokDisabled:re.ngrokDisabled,passwordRequired:re.passwordRequired})),typeof re.passwordRequired=="boolean"&&D(re.passwordRequired)}}async function we(){f(!0);try{await z({ngrokAuthtoken:p}),h("");for(let T=0;T<8&&(await new Promise(Qe=>setTimeout(Qe,750)),!!t);T++){const Lt=await fetch(`/api/tunnel?token=${encodeURIComponent(t)}`);if(!Lt.ok)continue;const re=await Lt.json();if(k(re),re.active||re.error)break}}finally{f(!1)}}async function lt(T){N(!0);try{await z({password:T?"":x}),j(""),alert(T?"Password cleared. Anyone with the pairing URL can now connect.":"Password set. Existing devices may need to re-authenticate.")}finally{N(!1)}}function Pt(){confirm("Forget this pairing? You'll need to scan again.")&&(Ed(),e(null),window.location.reload())}return i.jsxs("div",{className:"flex flex-col flex-1 min-h-full",style:{background:"var(--bg)"},children:[i.jsxs("header",{className:"safe-top safe-x px-4 py-3 flex items-center gap-2 border-b",style:{borderColor:"var(--border)"},children:[i.jsx(mr,{to:"/",className:"flex items-center justify-center w-8 h-8 rounded-md",style:{background:"var(--bg-subtle)",color:"var(--accent)"},children:i.jsx(Pd,{size:18})}),i.jsx("h1",{className:"text-base font-semibold",style:{color:"var(--text)"},children:"Settings"})]}),i.jsxs("main",{className:"flex-1 overflow-y-auto safe-bottom px-4 py-4 space-y-6",children:[i.jsxs(Gt,{title:"Connection",children:[i.jsx(Yt,{label:"Status",children:i.jsx("span",{style:{color:n.status==="connected"?"var(--status-running)":"var(--text-muted)"},children:n.status})}),i.jsx(Yt,{label:"Host",children:i.jsx("span",{children:n.hostname??l?.host??"—"})}),i.jsx(Yt,{label:"Platform",children:i.jsx("span",{children:n.platform??l?.platform??"—"})}),i.jsx(Yt,{label:"Daemon version",children:i.jsx("span",{style:{fontFamily:"var(--font-mono)"},children:n.agentVersion??l?.version??"—"})}),i.jsx(Yt,{label:"Sessions cached",children:i.jsx("span",{children:r})})]}),i.jsxs(Gt,{title:"ngrok tunnel",subtitle:"Public HTTPS URL — reach your sessions from anywhere (cellular, coffee shops, anywhere).",children:[w?.active&&w.url?i.jsxs("div",{className:"flex items-center gap-2 py-1.5",children:[i.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:"var(--status-running)"}}),i.jsx("span",{className:"text-xs flex-1 truncate",style:{color:"var(--text)",fontFamily:"var(--font-mono)"},children:w.url}),i.jsx("a",{href:w.url,target:"_blank",rel:"noreferrer",style:{color:"var(--accent)"},children:i.jsx(Co,{size:14})})]}):w?.error?i.jsxs("div",{className:"py-1.5",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:"var(--status-error)"}}),i.jsxs("span",{className:"text-xs font-medium",style:{color:"var(--status-error)"},children:["Tunnel failed: ",w.error.code.replace("_"," ")]})]}),i.jsx("p",{className:"text-xs mt-1 ml-4",style:{color:"var(--text-muted)"},children:w.error.hint})]}):i.jsxs("div",{className:"flex items-center gap-2 py-1.5",children:[i.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:"var(--text-faint)"}}),i.jsx("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:d?.ngrokDisabled?"Disabled (LAN only)":d?.ngrokConfigured?"Connecting…":"Not configured — paste an authtoken below to enable"})]}),u&&i.jsxs("div",{className:"mt-2 pt-2",style:{borderTop:"1px solid var(--border)"},children:[!w?.active&&!v&&i.jsxs("ol",{className:"text-xs space-y-2 mb-3",style:{color:"var(--text-muted)"},children:[i.jsxs("li",{className:"flex gap-2",children:[i.jsx("span",{style:{color:"var(--accent)"},children:"1."}),i.jsxs("span",{children:["Sign up free (no credit card):"," ",i.jsxs("a",{href:"https://dashboard.ngrok.com/signup",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5",style:{color:"var(--accent)"},children:["dashboard.ngrok.com/signup ",i.jsx(Co,{size:10})]})]})]}),i.jsxs("li",{className:"flex gap-2",children:[i.jsx("span",{style:{color:"var(--accent)"},children:"2."}),i.jsxs("span",{children:["Copy your authtoken:"," ",i.jsxs("a",{href:"https://dashboard.ngrok.com/get-started/your-authtoken",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5",style:{color:"var(--accent)"},children:["get-started/your-authtoken ",i.jsx(Co,{size:10})]})]})]}),i.jsxs("li",{className:"flex gap-2",children:[i.jsx("span",{style:{color:"var(--accent)"},children:"3."}),i.jsx("span",{children:"Paste it below and click Save."})]})]}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx("input",{type:"password",value:p,onChange:T=>h(T.target.value),placeholder:w?.active?"Token saved — paste to replace":"Paste authtoken (e.g. 2abc...)",className:"flex-1 text-xs px-2 py-1.5 rounded",style:{background:"var(--bg)",border:"1px solid var(--border)",color:"var(--text)",fontFamily:"var(--font-mono)"}}),i.jsx("button",{onClick:we,disabled:!p.trim()||S,className:"text-xs px-3 py-1.5 rounded font-medium",style:{background:p.trim()?"var(--accent)":"var(--bg-subtle)",color:p.trim()?"white":"var(--text-muted)",opacity:S?.6:1},children:S?"Starting…":"Save"})]}),i.jsxs("label",{className:"flex items-center justify-between py-2 mt-3",children:[i.jsx("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:"Disable ngrok (use LAN only)"}),i.jsx("input",{type:"checkbox",checked:v,onChange:async T=>{g(T.target.checked),await z({ngrokDisabled:T.target.checked})}})]})]})]}),u&&i.jsxs(Gt,{title:"Password protection",subtitle:"Optional. When set, every device must enter the password before connecting (recommended if ngrok is on).",children:[i.jsxs("div",{className:"flex items-center gap-2 py-1.5",children:[i.jsx("span",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:L?"var(--status-running)":"var(--text-faint)"}}),i.jsx("span",{className:"text-xs",style:{color:"var(--text-muted)"},children:L?"Password is set":"No password — anyone with the URL can connect"})]}),i.jsxs("div",{className:"mt-2 pt-2 flex gap-2",style:{borderTop:"1px solid var(--border)"},children:[i.jsx("input",{type:"password",value:x,onChange:T=>j(T.target.value),placeholder:L?"Enter new password to replace":"Enter a password…",className:"flex-1 text-xs px-2 py-1.5 rounded",style:{background:"var(--bg)",border:"1px solid var(--border)",color:"var(--text)"}}),i.jsx("button",{onClick:()=>lt(!1),disabled:!x||E,className:"text-xs px-3 py-1.5 rounded font-medium",style:{background:x?"var(--accent)":"var(--bg-subtle)",color:x?"white":"var(--text-muted)",opacity:E?.6:1},children:"Set"}),L&&i.jsx("button",{onClick:()=>lt(!0),disabled:E,className:"text-xs px-3 py-1.5 rounded font-medium",style:{background:"transparent",color:"var(--status-error)",border:"1px solid var(--status-error)",opacity:E?.6:1},children:"Clear"})]}),i.jsxs("p",{className:"text-[11px] mt-2",style:{color:"var(--text-faint)"},children:["Or set ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"PASSWORD=…"})," in your ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:".env"})," file (env-set passwords survive restart; UI-set ones do not)."]})]}),u&&i.jsxs(Gt,{title:"Desktop preferences",subtitle:"Only visible & editable from the desktop running the daemon.",children:[i.jsx(Yt,{label:"Host label",children:i.jsx("input",{value:s,onChange:T=>a(T.target.value),onBlur:()=>z({hostLabel:s}),className:"text-sm px-2 py-1 rounded",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)",color:"var(--text)"}})}),i.jsxs("p",{className:"text-[11px] mt-2 pt-2",style:{color:"var(--text-faint)",borderTop:"1px solid var(--border)"},children:["Cowork sessions are auto-discovered when"," ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"~/Library/Application Support/Claude/local-agent-mode-sessions/"})," ","exists. Filter visibility with the source tabs on the home screen."]}),i.jsxs("p",{className:"text-[11px] mt-2",style:{color:"var(--text-faint)"},children:["Cursor sessions are auto-discovered from the Cursor IDE's SQLite store. Disable with"," ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"--no-cursor"})," or"," ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"CURSOR_DISABLED=1"}),"."]})]}),i.jsx(Gt,{title:"Pairing",children:i.jsx("button",{onClick:Pt,className:"w-full py-3 rounded-md text-sm font-medium",style:{background:"transparent",color:"var(--status-error)",border:"1px solid var(--status-error)"},children:"Unpair this device"})}),i.jsxs(Gt,{title:"About",children:[i.jsx("p",{className:"text-xs",style:{color:"var(--text-faint)"},children:"fleetwatch · read-only mobile companion for Claude Code, Cowork, and Cursor · v0.1.0"}),i.jsxs("p",{className:"text-xs mt-2",style:{color:"var(--text-faint)"},children:["Watches ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"~/.claude/projects/"})," and"," ",i.jsx("code",{style:{fontFamily:"var(--font-mono)"},children:"~/.claude/history.jsonl"}),". Never writes to either."]})]})]})]})}function Gt({title:e,subtitle:t,children:n}){return i.jsxs("section",{className:"rounded-lg overflow-hidden",style:{background:"var(--bg-elevated)",border:"1px solid var(--border)"},children:[i.jsxs("div",{className:"px-3 py-2",style:{borderBottom:"1px solid var(--border)"},children:[i.jsx("h2",{className:"text-xs uppercase tracking-wider",style:{color:"var(--text-faint)"},children:e}),t&&i.jsx("p",{className:"text-[11px] mt-0.5",style:{color:"var(--text-faint)"},children:t})]}),i.jsx("div",{className:"px-3 py-2",children:n})]})}function Yt({label:e,children:t}){return i.jsxs("div",{className:"flex items-center justify-between py-1.5 text-sm",children:[i.jsx("span",{style:{color:"var(--text-muted)"},children:e}),i.jsx("span",{style:{color:"var(--text)"},children:t})]})}function oy(){const e=Y(t=>t.token);return y.useEffect(()=>{if(e)return Nd(e),()=>Ed()},[e]),e?i.jsxs(Wa,{children:[i.jsx(Xt,{path:"/",element:i.jsx(Fv,{})}),i.jsx(Xt,{path:"/s/:id",element:i.jsx(ry,{})}),i.jsx(Xt,{path:"/settings",element:i.jsx(ly,{})}),i.jsx(Xt,{path:"*",element:i.jsx(om,{to:"/",replace:!0})})]}):i.jsx(Wa,{children:i.jsx(Xt,{path:"*",element:i.jsx(Lm,{})})})}Eo.createRoot(document.getElementById("root")).render(i.jsx(qt.StrictMode,{children:i.jsx(pm,{children:i.jsx(oy,{})})}));