@ohmaseclaro/fleetwatch 0.1.3 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,239 @@
1
+ function Bd(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 Wd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ou={exports:{}},Il={},su={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 xr=Symbol.for("react.element"),bd=Symbol.for("react.portal"),Vd=Symbol.for("react.fragment"),Hd=Symbol.for("react.strict_mode"),Qd=Symbol.for("react.profiler"),Kd=Symbol.for("react.provider"),Gd=Symbol.for("react.context"),Yd=Symbol.for("react.forward_ref"),Xd=Symbol.for("react.suspense"),qd=Symbol.for("react.memo"),Zd=Symbol.for("react.lazy"),Li=Symbol.iterator;function Jd(e){return e===null||typeof e!="object"?null:(e=Li&&e[Li]||e["@@iterator"],typeof e=="function"?e:null)}var iu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},au=Object.assign,uu={};function Cn(e,t,n){this.props=e,this.context=t,this.refs=uu,this.updater=n||iu}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 cu(){}cu.prototype=Cn.prototype;function Ps(e,t,n){this.props=e,this.context=t,this.refs=uu,this.updater=n||iu}var Ls=Ps.prototype=new cu;Ls.constructor=Ps;au(Ls,Cn.prototype);Ls.isPureReactComponent=!0;var Ti=Array.isArray,du=Object.prototype.hasOwnProperty,Ts={current:null},fu={key:!0,ref:!0,__self:!0,__source:!0};function pu(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)du.call(t,r)&&!fu.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:xr,type:e,key:o,ref:s,props:l,_owner:Ts.current}}function ef(e,t){return{$$typeof:xr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Rs(e){return typeof e=="object"&&e!==null&&e.$$typeof===xr}function tf(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ri=/\/+/g;function ql(e,t){return typeof e=="object"&&e!==null&&e.key!=null?tf(""+e.key):t.toString(36)}function Yr(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 xr:case bd:s=!0}}if(s)return s=e,l=l(s),e=r===""?"."+ql(s,0):r,Ti(l)?(n="",e!=null&&(n=e.replace(Ri,"$&/")+"/"),Yr(l,t,n,"",function(c){return c})):l!=null&&(Rs(l)&&(l=ef(l,n+(!l.key||s&&s.key===l.key?"":(""+l.key).replace(Ri,"$&/")+"/")+e)),t.push(l)),1;if(s=0,r=r===""?".":r+":",Ti(e))for(var a=0;a<e.length;a++){o=e[a];var u=r+ql(o,a);s+=Yr(o,t,n,u,l)}else if(u=Jd(e),typeof u=="function")for(e=u.call(e),a=0;!(o=e.next()).done;)o=o.value,u=r+ql(o,a++),s+=Yr(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 _r(e,t,n){if(e==null)return e;var r=[],l=0;return Yr(e,r,"","",function(o){return t.call(n,o,l++)}),r}function nf(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},Xr={transition:null},rf={ReactCurrentDispatcher:pe,ReactCurrentBatchConfig:Xr,ReactCurrentOwner:Ts};function hu(){throw Error("act(...) is not supported in production builds of React.")}M.Children={map:_r,forEach:function(e,t,n){_r(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return _r(e,function(){t++}),t},toArray:function(e){return _r(e,function(t){return t})||[]},only:function(e){if(!Rs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};M.Component=Cn;M.Fragment=Vd;M.Profiler=Qd;M.PureComponent=Ps;M.StrictMode=Hd;M.Suspense=Xd;M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=rf;M.act=hu;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=au({},e.props),l=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Ts.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)du.call(t,u)&&!fu.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:xr,type:e.type,key:l,ref:o,props:r,_owner:s}};M.createContext=function(e){return e={$$typeof:Gd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Kd,_context:e},e.Consumer=e};M.createElement=pu;M.createFactory=function(e){var t=pu.bind(null,e);return t.type=e,t};M.createRef=function(){return{current:null}};M.forwardRef=function(e){return{$$typeof:Yd,render:e}};M.isValidElement=Rs;M.lazy=function(e){return{$$typeof:Zd,_payload:{_status:-1,_result:e},_init:nf}};M.memo=function(e,t){return{$$typeof:qd,type:e,compare:t===void 0?null:t}};M.startTransition=function(e){var t=Xr.transition;Xr.transition={};try{e()}finally{Xr.transition=t}};M.unstable_act=hu;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";su.exports=M;var y=su.exports;const Zt=Wd(y),lf=Bd({__proto__:null,default:Zt},[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 of=y,sf=Symbol.for("react.element"),af=Symbol.for("react.fragment"),uf=Object.prototype.hasOwnProperty,cf=of.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,df={key:!0,ref:!0,__self:!0,__source:!0};function mu(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)uf.call(t,r)&&!df.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:sf,type:e,key:o,ref:s,props:l,_owner:cf.current}}Il.Fragment=af;Il.jsx=mu;Il.jsxs=mu;ou.exports=Il;var i=ou.exports,Po={},vu={exports:{}},Ce={},yu={exports:{}},gu={};/**
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,Cr=ee>>>1;K<Cr;){var Tt=2*(K+1)-1,Xl=P[Tt],Rt=Tt+1,Er=P[Rt];if(0>l(Xl,I))Rt<ee&&0>l(Er,Xl)?(P[K]=Er,P[Rt]=I,K=Rt):(P[K]=Xl,P[Tt]=I,K=Tt);else if(Rt<ee&&0>l(Er,I))P[K]=Er,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=[],f=1,h=null,v=3,x=!1,w=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,m=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 p(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 g(P){if(k=!1,p(P),!w)if(n(u)!==null)w=!0,re(S);else{var R=n(c);R!==null&&Qe(g,R.startTime-P)}}function S(P,R){w=!1,k&&(k=!1,m(L),L=-1),x=!0;var I=v;try{for(p(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),p(R)}else r(u);h=n(u)}if(h!==null)var Cr=!0;else{var Tt=n(c);Tt!==null&&Qe(g,Tt.startTime-R),Cr=!1}return Cr}finally{h=null,v=I,x=!1}}var E=!1,C=null,L=-1,D=5,z=-1;function we(){return!(e.unstable_now()-z<D)}function lt(){if(C!==null){var P=e.unstable_now();z=P;var R=!0;try{R=C(!0,P)}finally{R?Pt():(E=!1,C=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(){N(lt,0)};function re(P){C=P,E||(E=!0,Pt())}function Qe(P,R){L=N(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||x||(w=!0,re(S))},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:f++,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?(m(L),L=-1):k=!0,Qe(g,I-K))):(P.sortIndex=ee,t(u,P),w||x||(w=!0,re(S))),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}}}})(gu);yu.exports=gu;var ff=yu.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 pf=y,Ne=ff;function j(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 xu=new Set,Jn={};function Ht(e,t){gn(e,t),gn(e+"Capture",t)}function gn(e,t){for(Jn[e]=t,e=0;e<t.length;e++)xu.add(t[e])}var Ze=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lo=Object.prototype.hasOwnProperty,hf=/^[: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]*$/,zi={},Ii={};function mf(e){return Lo.call(Ii,e)?!0:Lo.call(zi,e)?!1:hf.test(e)?Ii[e]=!0:(zi[e]=!0,!1)}function vf(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 yf(e,t,n,r){if(t===null||typeof t>"u"||vf(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 zs=/[\-:]([a-z])/g;function Is(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(zs,Is);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(zs,Is);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(zs,Is);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 Ms(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")&&(yf(t,n,l,r)&&(n=null),r||l===null?mf(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=pf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pr=Symbol.for("react.element"),Jt=Symbol.for("react.portal"),en=Symbol.for("react.fragment"),Os=Symbol.for("react.strict_mode"),To=Symbol.for("react.profiler"),wu=Symbol.for("react.provider"),ku=Symbol.for("react.context"),Fs=Symbol.for("react.forward_ref"),Ro=Symbol.for("react.suspense"),zo=Symbol.for("react.suspense_list"),$s=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),Su=Symbol.for("react.offscreen"),Mi=Symbol.iterator;function Rn(e){return e===null||typeof e!="object"?null:(e=Mi&&e[Mi]||e["@@iterator"],typeof e=="function"?e:null)}var H=Object.assign,Zl;function Dn(e){if(Zl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Zl=t&&t[1]||""}return`
34
+ `+Zl+e}var Jl=!1;function eo(e,t){if(!e||Jl)return"";Jl=!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{Jl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Dn(e):""}function gf(e){switch(e.tag){case 5:return Dn(e.type);case 16:return Dn("Lazy");case 13:return Dn("Suspense");case 19:return Dn("SuspenseList");case 0:case 2:case 15:return e=eo(e.type,!1),e;case 11:return e=eo(e.type.render,!1),e;case 1:return e=eo(e.type,!0),e;default:return""}}function Io(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 en:return"Fragment";case Jt:return"Portal";case To:return"Profiler";case Os:return"StrictMode";case Ro:return"Suspense";case zo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ku:return(e.displayName||"Context")+".Consumer";case wu:return(e._context.displayName||"Context")+".Provider";case Fs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $s:return t=e.displayName||null,t!==null?t:Io(e.type)||"Memo";case st:t=e._payload,e=e._init;try{return Io(e(t))}catch{}}return null}function xf(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 Io(t);case 8:return t===Os?"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 ju(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wf(e){var t=ju(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 Lr(e){e._valueTracker||(e._valueTracker=wf(e))}function Nu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ju(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function al(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 Mo(e,t){var n=t.checked;return H({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Oi(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 Cu(e,t){t=t.checked,t!=null&&Ms(e,"checked",t,!1)}function Oo(e,t){Cu(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")?Fo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Fo(e,t.type,St(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fi(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 Fo(e,t,n){(t!=="number"||al(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var An=Array.isArray;function fn(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 $o(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return H({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function $i(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(An(n)){if(1<n.length)throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:St(n)}}function Eu(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 Ui(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _u(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 Uo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_u(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Tr,Pu=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Tr=Tr||document.createElement("div"),Tr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Tr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function er(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Vn={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},kf=["Webkit","ms","Moz","O"];Object.keys(Vn).forEach(function(e){kf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vn[t]=Vn[e]})});function Lu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Vn.hasOwnProperty(e)&&Vn[e]?(""+t).trim():t+"px"}function Tu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Lu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Sf=H({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 Do(e,t){if(t){if(Sf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Ao(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 Bo=null;function Us(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wo=null,pn=null,hn=null;function Di(e){if(e=Sr(e)){if(typeof Wo!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Ul(t),Wo(e.stateNode,e.type,t))}}function Ru(e){pn?hn?hn.push(e):hn=[e]:pn=e}function zu(){if(pn){var e=pn,t=hn;if(hn=pn=null,Di(e),t)for(e=0;e<t.length;e++)Di(t[e])}}function Iu(e,t){return e(t)}function Mu(){}var to=!1;function Ou(e,t,n){if(to)return e(t,n);to=!0;try{return Iu(e,t,n)}finally{to=!1,(pn!==null||hn!==null)&&(Mu(),zu())}}function tr(e,t){var n=e.stateNode;if(n===null)return null;var r=Ul(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(j(231,t,typeof n));return n}var bo=!1;if(Ze)try{var zn={};Object.defineProperty(zn,"passive",{get:function(){bo=!0}}),window.addEventListener("test",zn,zn),window.removeEventListener("test",zn,zn)}catch{bo=!1}function jf(e,t,n,r,l,o,s,a,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(f){this.onError(f)}}var Hn=!1,ul=null,cl=!1,Vo=null,Nf={onError:function(e){Hn=!0,ul=e}};function Cf(e,t,n,r,l,o,s,a,u){Hn=!1,ul=null,jf.apply(Nf,arguments)}function Ef(e,t,n,r,l,o,s,a,u){if(Cf.apply(this,arguments),Hn){if(Hn){var c=ul;Hn=!1,ul=null}else throw Error(j(198));cl||(cl=!0,Vo=c)}}function Qt(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 Fu(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 Ai(e){if(Qt(e)!==e)throw Error(j(188))}function _f(e){var t=e.alternate;if(!t){if(t=Qt(e),t===null)throw Error(j(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 Ai(l),e;if(o===r)return Ai(l),t;o=o.sibling}throw Error(j(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(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function $u(e){return e=_f(e),e!==null?Uu(e):null}function Uu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Uu(e);if(t!==null)return t;e=e.sibling}return null}var Du=Ne.unstable_scheduleCallback,Bi=Ne.unstable_cancelCallback,Pf=Ne.unstable_shouldYield,Lf=Ne.unstable_requestPaint,G=Ne.unstable_now,Tf=Ne.unstable_getCurrentPriorityLevel,Ds=Ne.unstable_ImmediatePriority,Au=Ne.unstable_UserBlockingPriority,dl=Ne.unstable_NormalPriority,Rf=Ne.unstable_LowPriority,Bu=Ne.unstable_IdlePriority,Ml=null,Ve=null;function zf(e){if(Ve&&typeof Ve.onCommitFiberRoot=="function")try{Ve.onCommitFiberRoot(Ml,e,void 0,(e.current.flags&128)===128)}catch{}}var Ue=Math.clz32?Math.clz32:Of,If=Math.log,Mf=Math.LN2;function Of(e){return e>>>=0,e===0?32:31-(If(e)/Mf|0)|0}var Rr=64,zr=4194304;function Bn(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 fl(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=Bn(a):(o&=s,o!==0&&(r=Bn(o)))}else s=n&~l,s!==0?r=Bn(s):o!==0&&(r=Bn(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 Ff(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 $f(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]=Ff(a,t)):u<=t&&(e.expiredLanes|=a),o&=~a}}function Ho(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Wu(){var e=Rr;return Rr<<=1,!(Rr&4194240)&&(Rr=64),e}function no(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wr(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 Uf(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 As(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 Vu,Bs,Hu,Qu,Ku,Qo=!1,Ir=[],pt=null,ht=null,mt=null,nr=new Map,rr=new Map,at=[],Df="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 Wi(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":nr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rr.delete(t.pointerId)}}function In(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=Sr(t),t!==null&&Bs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Af(e,t,n,r,l){switch(t){case"focusin":return pt=In(pt,e,t,n,r,l),!0;case"dragenter":return ht=In(ht,e,t,n,r,l),!0;case"mouseover":return mt=In(mt,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return nr.set(o,In(nr.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,rr.set(o,In(rr.get(o)||null,e,t,n,r,l)),!0}return!1}function Gu(e){var t=Mt(e.target);if(t!==null){var n=Qt(t);if(n!==null){if(t=n.tag,t===13){if(t=Fu(n),t!==null){e.blockedOn=t,Ku(e.priority,function(){Hu(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 qr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ko(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Bo=r,n.target.dispatchEvent(r),Bo=null}else return t=Sr(n),t!==null&&Bs(t),e.blockedOn=n,!1;t.shift()}return!0}function bi(e,t,n){qr(e)&&n.delete(t)}function Bf(){Qo=!1,pt!==null&&qr(pt)&&(pt=null),ht!==null&&qr(ht)&&(ht=null),mt!==null&&qr(mt)&&(mt=null),nr.forEach(bi),rr.forEach(bi)}function Mn(e,t){e.blockedOn===t&&(e.blockedOn=null,Qo||(Qo=!0,Ne.unstable_scheduleCallback(Ne.unstable_NormalPriority,Bf)))}function lr(e){function t(l){return Mn(l,e)}if(0<Ir.length){Mn(Ir[0],e);for(var n=1;n<Ir.length;n++){var r=Ir[n];r.blockedOn===e&&(r.blockedOn=null)}}for(pt!==null&&Mn(pt,e),ht!==null&&Mn(ht,e),mt!==null&&Mn(mt,e),nr.forEach(t),rr.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);)Gu(n),n.blockedOn===null&&at.shift()}var mn=nt.ReactCurrentBatchConfig,pl=!0;function Wf(e,t,n,r){var l=F,o=mn.transition;mn.transition=null;try{F=1,Ws(e,t,n,r)}finally{F=l,mn.transition=o}}function bf(e,t,n,r){var l=F,o=mn.transition;mn.transition=null;try{F=4,Ws(e,t,n,r)}finally{F=l,mn.transition=o}}function Ws(e,t,n,r){if(pl){var l=Ko(e,t,n,r);if(l===null)po(e,t,r,hl,n),Wi(e,r);else if(Af(l,e,t,n,r))r.stopPropagation();else if(Wi(e,r),t&4&&-1<Df.indexOf(e)){for(;l!==null;){var o=Sr(l);if(o!==null&&Vu(o),o=Ko(e,t,n,r),o===null&&po(e,t,r,hl,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else po(e,t,r,null,n)}}var hl=null;function Ko(e,t,n,r){if(hl=null,e=Us(r),e=Mt(e),e!==null)if(t=Qt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Fu(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 hl=e,null}function Yu(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(Tf()){case Ds:return 1;case Au:return 4;case dl:case Rf:return 16;case Bu:return 536870912;default:return 16}default:return 16}}var ct=null,bs=null,Zr=null;function Xu(){if(Zr)return Zr;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 Zr=l.slice(e,1<r?1-r:void 0)}function Jr(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 Mr(){return!0}function Vi(){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)?Mr:Vi,this.isPropagationStopped=Vi,this}return H(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=Mr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Mr)},persist:function(){},isPersistent:Mr}),t}var En={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vs=Ee(En),kr=H({},En,{view:0,detail:0}),Vf=Ee(kr),ro,lo,On,Ol=H({},kr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hs,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!==On&&(On&&e.type==="mousemove"?(ro=e.screenX-On.screenX,lo=e.screenY-On.screenY):lo=ro=0,On=e),ro)},movementY:function(e){return"movementY"in e?e.movementY:lo}}),Hi=Ee(Ol),Hf=H({},Ol,{dataTransfer:0}),Qf=Ee(Hf),Kf=H({},kr,{relatedTarget:0}),oo=Ee(Kf),Gf=H({},En,{animationName:0,elapsedTime:0,pseudoElement:0}),Yf=Ee(Gf),Xf=H({},En,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qf=Ee(Xf),Zf=H({},En,{data:0}),Qi=Ee(Zf),Jf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ep={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"},tp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function np(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tp[e])?!!t[e]:!1}function Hs(){return np}var rp=H({},kr,{key:function(e){if(e.key){var t=Jf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Jr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ep[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hs,charCode:function(e){return e.type==="keypress"?Jr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Jr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),lp=Ee(rp),op=H({},Ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ki=Ee(op),sp=H({},kr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hs}),ip=Ee(sp),ap=H({},En,{propertyName:0,elapsedTime:0,pseudoElement:0}),up=Ee(ap),cp=H({},Ol,{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}),dp=Ee(cp),fp=[9,13,27,32],Qs=Ze&&"CompositionEvent"in window,Qn=null;Ze&&"documentMode"in document&&(Qn=document.documentMode);var pp=Ze&&"TextEvent"in window&&!Qn,qu=Ze&&(!Qs||Qn&&8<Qn&&11>=Qn),Gi=" ",Yi=!1;function Zu(e,t){switch(e){case"keyup":return fp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ju(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tn=!1;function hp(e,t){switch(e){case"compositionend":return Ju(t);case"keypress":return t.which!==32?null:(Yi=!0,Gi);case"textInput":return e=t.data,e===Gi&&Yi?null:e;default:return null}}function mp(e,t){if(tn)return e==="compositionend"||!Qs&&Zu(e,t)?(e=Xu(),Zr=bs=ct=null,tn=!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 qu&&t.locale!=="ko"?null:t.data;default:return null}}var vp={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 Xi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vp[e.type]:t==="textarea"}function ec(e,t,n,r){Ru(r),t=ml(t,"onChange"),0<t.length&&(n=new Vs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,or=null;function yp(e){dc(e,0)}function Fl(e){var t=ln(e);if(Nu(t))return e}function gp(e,t){if(e==="change")return t}var tc=!1;if(Ze){var so;if(Ze){var io="oninput"in document;if(!io){var qi=document.createElement("div");qi.setAttribute("oninput","return;"),io=typeof qi.oninput=="function"}so=io}else so=!1;tc=so&&(!document.documentMode||9<document.documentMode)}function Zi(){Kn&&(Kn.detachEvent("onpropertychange",nc),or=Kn=null)}function nc(e){if(e.propertyName==="value"&&Fl(or)){var t=[];ec(t,or,e,Us(e)),Ou(yp,t)}}function xp(e,t,n){e==="focusin"?(Zi(),Kn=t,or=n,Kn.attachEvent("onpropertychange",nc)):e==="focusout"&&Zi()}function wp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fl(or)}function kp(e,t){if(e==="click")return Fl(t)}function Sp(e,t){if(e==="input"||e==="change")return Fl(t)}function jp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ae=typeof Object.is=="function"?Object.is:jp;function sr(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(!Lo.call(t,l)||!Ae(e[l],t[l]))return!1}return!0}function Ji(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ea(e,t){var n=Ji(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=Ji(n)}}function rc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function lc(){for(var e=window,t=al();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=al(e.document)}return t}function Ks(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 Np(e){var t=lc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rc(n.ownerDocument.documentElement,n)){if(r!==null&&Ks(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=ea(n,o);var s=ea(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 Cp=Ze&&"documentMode"in document&&11>=document.documentMode,nn=null,Go=null,Gn=null,Yo=!1;function ta(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yo||nn==null||nn!==al(r)||(r=nn,"selectionStart"in r&&Ks(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}),Gn&&sr(Gn,r)||(Gn=r,r=ml(Go,"onSelect"),0<r.length&&(t=new Vs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nn)))}function Or(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var rn={animationend:Or("Animation","AnimationEnd"),animationiteration:Or("Animation","AnimationIteration"),animationstart:Or("Animation","AnimationStart"),transitionend:Or("Transition","TransitionEnd")},ao={},oc={};Ze&&(oc=document.createElement("div").style,"AnimationEvent"in window||(delete rn.animationend.animation,delete rn.animationiteration.animation,delete rn.animationstart.animation),"TransitionEvent"in window||delete rn.transitionend.transition);function $l(e){if(ao[e])return ao[e];if(!rn[e])return e;var t=rn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in oc)return ao[e]=t[n];return e}var sc=$l("animationend"),ic=$l("animationiteration"),ac=$l("animationstart"),uc=$l("transitionend"),cc=new Map,na="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 Nt(e,t){cc.set(e,t),Ht(t,[e])}for(var uo=0;uo<na.length;uo++){var co=na[uo],Ep=co.toLowerCase(),_p=co[0].toUpperCase()+co.slice(1);Nt(Ep,"on"+_p)}Nt(sc,"onAnimationEnd");Nt(ic,"onAnimationIteration");Nt(ac,"onAnimationStart");Nt("dblclick","onDoubleClick");Nt("focusin","onFocus");Nt("focusout","onBlur");Nt(uc,"onTransitionEnd");gn("onMouseEnter",["mouseout","mouseover"]);gn("onMouseLeave",["mouseout","mouseover"]);gn("onPointerEnter",["pointerout","pointerover"]);gn("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 Wn="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(" "),Pp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wn));function ra(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ef(r,t,void 0,e),e.currentTarget=null}function dc(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;ra(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;ra(l,a,c),o=u}}}if(cl)throw e=Vo,cl=!1,Vo=null,e}function A(e,t){var n=t[es];n===void 0&&(n=t[es]=new Set);var r=e+"__bubble";n.has(r)||(fc(t,e,2,!1),n.add(r))}function fo(e,t,n){var r=0;t&&(r|=4),fc(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function ir(e){if(!e[Fr]){e[Fr]=!0,xu.forEach(function(n){n!=="selectionchange"&&(Pp.has(n)||fo(n,!1,e),fo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fr]||(t[Fr]=!0,fo("selectionchange",!1,t))}}function fc(e,t,n,r){switch(Yu(t)){case 1:var l=Wf;break;case 4:l=bf;break;default:l=Ws}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 po(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}Ou(function(){var c=o,f=Us(n),h=[];e:{var v=cc.get(e);if(v!==void 0){var x=Vs,w=e;switch(e){case"keypress":if(Jr(n)===0)break e;case"keydown":case"keyup":x=lp;break;case"focusin":w="focus",x=oo;break;case"focusout":w="blur",x=oo;break;case"beforeblur":case"afterblur":x=oo;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":x=Hi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=Qf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=ip;break;case sc:case ic:case ac:x=Yf;break;case uc:x=up;break;case"scroll":x=Vf;break;case"wheel":x=dp;break;case"copy":case"cut":case"paste":x=qf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Ki}var k=(t&4)!==0,N=!k&&e==="scroll",m=k?v!==null?v+"Capture":null:v;k=[];for(var d=c,p;d!==null;){p=d;var g=p.stateNode;if(p.tag===5&&g!==null&&(p=g,m!==null&&(g=tr(d,m),g!=null&&k.push(ar(d,g,p)))),N)break;d=d.return}0<k.length&&(v=new x(v,w,null,n,f),h.push({event:v,listeners:k}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",x=e==="mouseout"||e==="pointerout",v&&n!==Bo&&(w=n.relatedTarget||n.fromElement)&&(Mt(w)||w[Je]))break e;if((x||v)&&(v=f.window===f?f:(v=f.ownerDocument)?v.defaultView||v.parentWindow:window,x?(w=n.relatedTarget||n.toElement,x=c,w=w?Mt(w):null,w!==null&&(N=Qt(w),w!==N||w.tag!==5&&w.tag!==6)&&(w=null)):(x=null,w=c),x!==w)){if(k=Hi,g="onMouseLeave",m="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(k=Ki,g="onPointerLeave",m="onPointerEnter",d="pointer"),N=x==null?v:ln(x),p=w==null?v:ln(w),v=new k(g,d+"leave",x,n,f),v.target=N,v.relatedTarget=p,g=null,Mt(f)===c&&(k=new k(m,d+"enter",w,n,f),k.target=p,k.relatedTarget=N,g=k),N=g,x&&w)t:{for(k=x,m=w,d=0,p=k;p;p=Kt(p))d++;for(p=0,g=m;g;g=Kt(g))p++;for(;0<d-p;)k=Kt(k),d--;for(;0<p-d;)m=Kt(m),p--;for(;d--;){if(k===m||m!==null&&k===m.alternate)break t;k=Kt(k),m=Kt(m)}k=null}else k=null;x!==null&&la(h,v,x,k,!1),w!==null&&N!==null&&la(h,N,w,k,!0)}}e:{if(v=c?ln(c):window,x=v.nodeName&&v.nodeName.toLowerCase(),x==="select"||x==="input"&&v.type==="file")var S=gp;else if(Xi(v))if(tc)S=Sp;else{S=wp;var E=xp}else(x=v.nodeName)&&x.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(S=kp);if(S&&(S=S(e,c))){ec(h,S,n,f);break e}E&&E(e,v,c),e==="focusout"&&(E=v._wrapperState)&&E.controlled&&v.type==="number"&&Fo(v,"number",v.value)}switch(E=c?ln(c):window,e){case"focusin":(Xi(E)||E.contentEditable==="true")&&(nn=E,Go=c,Gn=null);break;case"focusout":Gn=Go=nn=null;break;case"mousedown":Yo=!0;break;case"contextmenu":case"mouseup":case"dragend":Yo=!1,ta(h,n,f);break;case"selectionchange":if(Cp)break;case"keydown":case"keyup":ta(h,n,f)}var C;if(Qs)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 tn?Zu(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(qu&&n.locale!=="ko"&&(tn||L!=="onCompositionStart"?L==="onCompositionEnd"&&tn&&(C=Xu()):(ct=f,bs="value"in ct?ct.value:ct.textContent,tn=!0)),E=ml(c,L),0<E.length&&(L=new Qi(L,e,null,n,f),h.push({event:L,listeners:E}),C?L.data=C:(C=Ju(n),C!==null&&(L.data=C)))),(C=pp?hp(e,n):mp(e,n))&&(c=ml(c,"onBeforeInput"),0<c.length&&(f=new Qi("onBeforeInput","beforeinput",null,n,f),h.push({event:f,listeners:c}),f.data=C))}dc(h,t)})}function ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ml(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=tr(e,n),o!=null&&r.unshift(ar(e,o,l)),o=tr(e,t),o!=null&&r.push(ar(e,o,l))),e=e.return}return r}function Kt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function la(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=tr(n,o),u!=null&&s.unshift(ar(n,u,a))):l||(u=tr(n,o),u!=null&&s.push(ar(n,u,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Lp=/\r\n?/g,Tp=/\u0000|\uFFFD/g;function oa(e){return(typeof e=="string"?e:""+e).replace(Lp,`
38
+ `).replace(Tp,"")}function $r(e,t,n){if(t=oa(t),oa(e)!==t&&n)throw Error(j(425))}function vl(){}var Xo=null,qo=null;function Zo(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 Jo=typeof setTimeout=="function"?setTimeout:void 0,Rp=typeof clearTimeout=="function"?clearTimeout:void 0,sa=typeof Promise=="function"?Promise:void 0,zp=typeof queueMicrotask=="function"?queueMicrotask:typeof sa<"u"?function(e){return sa.resolve(null).then(e).catch(Ip)}:Jo;function Ip(e){setTimeout(function(){throw e})}function ho(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),lr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);lr(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 ia(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 _n=Math.random().toString(36).slice(2),be="__reactFiber$"+_n,ur="__reactProps$"+_n,Je="__reactContainer$"+_n,es="__reactEvents$"+_n,Mp="__reactListeners$"+_n,Op="__reactHandles$"+_n;function Mt(e){var t=e[be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Je]||n[be]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ia(e);e!==null;){if(n=e[be])return n;e=ia(e)}return t}e=n,n=e.parentNode}return null}function Sr(e){return e=e[be]||e[Je],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ln(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function Ul(e){return e[ur]||null}var ts=[],on=-1;function Ct(e){return{current:e}}function B(e){0>on||(e.current=ts[on],ts[on]=null,on--)}function U(e,t){on++,ts[on]=e.current,e.current=t}var jt={},ce=Ct(jt),ye=Ct(!1),At=jt;function xn(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 yl(){B(ye),B(ce)}function aa(e,t,n){if(ce.current!==jt)throw Error(j(168));U(ce,t),U(ye,n)}function pc(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(j(108,xf(e)||"Unknown",l));return H({},n,r)}function gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||jt,At=ce.current,U(ce,e),U(ye,ye.current),!0}function ua(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=pc(e,t,At),r.__reactInternalMemoizedMergedChildContext=e,B(ye),B(ce),U(ce,e)):B(ye),U(ye,n)}var Ge=null,Dl=!1,mo=!1;function hc(e){Ge===null?Ge=[e]:Ge.push(e)}function Fp(e){Dl=!0,hc(e)}function Et(){if(!mo&&Ge!==null){mo=!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,Dl=!1}catch(l){throw Ge!==null&&(Ge=Ge.slice(e+1)),Du(Ds,Et),l}finally{F=t,mo=!1}}return null}var sn=[],an=0,xl=null,wl=0,Pe=[],Le=0,Bt=null,Ye=1,Xe="";function zt(e,t){sn[an++]=wl,sn[an++]=xl,xl=e,wl=t}function mc(e,t,n){Pe[Le++]=Ye,Pe[Le++]=Xe,Pe[Le++]=Bt,Bt=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 Gs(e){e.return!==null&&(zt(e,1),mc(e,1,0))}function Ys(e){for(;e===xl;)xl=sn[--an],sn[an]=null,wl=sn[--an],sn[an]=null;for(;e===Bt;)Bt=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 vc(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 ca(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=Bt!==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 ns(e){return(e.mode&1)!==0&&(e.flags&128)===0}function rs(e){if(W){var t=Se;if(t){var n=t;if(!ca(e,t)){if(ns(e))throw Error(j(418));t=vt(n.nextSibling);var r=je;t&&ca(e,t)?vc(r,n):(e.flags=e.flags&-4097|2,W=!1,je=e)}}else{if(ns(e))throw Error(j(418));e.flags=e.flags&-4097|2,W=!1,je=e}}}function da(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;je=e}function Ur(e){if(e!==je)return!1;if(!W)return da(e),W=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Zo(e.type,e.memoizedProps)),t&&(t=Se)){if(ns(e))throw yc(),Error(j(418));for(;t;)vc(e,t),t=vt(t.nextSibling)}if(da(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(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 yc(){for(var e=Se;e;)e=vt(e.nextSibling)}function wn(){Se=je=null,W=!1}function Xs(e){$e===null?$e=[e]:$e.push(e)}var $p=nt.ReactCurrentBatchConfig;function Fn(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(j(309));var r=n.stateNode}if(!r)throw Error(j(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(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Dr(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function fa(e){var t=e._init;return t(e._payload)}function gc(e){function t(m,d){if(e){var p=m.deletions;p===null?(m.deletions=[d],m.flags|=16):p.push(d)}}function n(m,d){if(!e)return null;for(;d!==null;)t(m,d),d=d.sibling;return null}function r(m,d){for(m=new Map;d!==null;)d.key!==null?m.set(d.key,d):m.set(d.index,d),d=d.sibling;return m}function l(m,d){return m=wt(m,d),m.index=0,m.sibling=null,m}function o(m,d,p){return m.index=p,e?(p=m.alternate,p!==null?(p=p.index,p<d?(m.flags|=2,d):p):(m.flags|=2,d)):(m.flags|=1048576,d)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,d,p,g){return d===null||d.tag!==6?(d=So(p,m.mode,g),d.return=m,d):(d=l(d,p),d.return=m,d)}function u(m,d,p,g){var S=p.type;return S===en?f(m,d,p.props.children,g,p.key):d!==null&&(d.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===st&&fa(S)===d.type)?(g=l(d,p.props),g.ref=Fn(m,d,p),g.return=m,g):(g=sl(p.type,p.key,p.props,null,m.mode,g),g.ref=Fn(m,d,p),g.return=m,g)}function c(m,d,p,g){return d===null||d.tag!==4||d.stateNode.containerInfo!==p.containerInfo||d.stateNode.implementation!==p.implementation?(d=jo(p,m.mode,g),d.return=m,d):(d=l(d,p.children||[]),d.return=m,d)}function f(m,d,p,g,S){return d===null||d.tag!==7?(d=Dt(p,m.mode,g,S),d.return=m,d):(d=l(d,p),d.return=m,d)}function h(m,d,p){if(typeof d=="string"&&d!==""||typeof d=="number")return d=So(""+d,m.mode,p),d.return=m,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Pr:return p=sl(d.type,d.key,d.props,null,m.mode,p),p.ref=Fn(m,null,d),p.return=m,p;case Jt:return d=jo(d,m.mode,p),d.return=m,d;case st:var g=d._init;return h(m,g(d._payload),p)}if(An(d)||Rn(d))return d=Dt(d,m.mode,p,null),d.return=m,d;Dr(m,d)}return null}function v(m,d,p,g){var S=d!==null?d.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return S!==null?null:a(m,d,""+p,g);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Pr:return p.key===S?u(m,d,p,g):null;case Jt:return p.key===S?c(m,d,p,g):null;case st:return S=p._init,v(m,d,S(p._payload),g)}if(An(p)||Rn(p))return S!==null?null:f(m,d,p,g,null);Dr(m,p)}return null}function x(m,d,p,g,S){if(typeof g=="string"&&g!==""||typeof g=="number")return m=m.get(p)||null,a(d,m,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Pr:return m=m.get(g.key===null?p:g.key)||null,u(d,m,g,S);case Jt:return m=m.get(g.key===null?p:g.key)||null,c(d,m,g,S);case st:var E=g._init;return x(m,d,p,E(g._payload),S)}if(An(g)||Rn(g))return m=m.get(p)||null,f(d,m,g,S,null);Dr(d,g)}return null}function w(m,d,p,g){for(var S=null,E=null,C=d,L=d=0,D=null;C!==null&&L<p.length;L++){C.index>L?(D=C,C=null):D=C.sibling;var z=v(m,C,p[L],g);if(z===null){C===null&&(C=D);break}e&&C&&z.alternate===null&&t(m,C),d=o(z,d,L),E===null?S=z:E.sibling=z,E=z,C=D}if(L===p.length)return n(m,C),W&&zt(m,L),S;if(C===null){for(;L<p.length;L++)C=h(m,p[L],g),C!==null&&(d=o(C,d,L),E===null?S=C:E.sibling=C,E=C);return W&&zt(m,L),S}for(C=r(m,C);L<p.length;L++)D=x(C,m,L,p[L],g),D!==null&&(e&&D.alternate!==null&&C.delete(D.key===null?L:D.key),d=o(D,d,L),E===null?S=D:E.sibling=D,E=D);return e&&C.forEach(function(we){return t(m,we)}),W&&zt(m,L),S}function k(m,d,p,g){var S=Rn(p);if(typeof S!="function")throw Error(j(150));if(p=S.call(p),p==null)throw Error(j(151));for(var E=S=null,C=d,L=d=0,D=null,z=p.next();C!==null&&!z.done;L++,z=p.next()){C.index>L?(D=C,C=null):D=C.sibling;var we=v(m,C,z.value,g);if(we===null){C===null&&(C=D);break}e&&C&&we.alternate===null&&t(m,C),d=o(we,d,L),E===null?S=we:E.sibling=we,E=we,C=D}if(z.done)return n(m,C),W&&zt(m,L),S;if(C===null){for(;!z.done;L++,z=p.next())z=h(m,z.value,g),z!==null&&(d=o(z,d,L),E===null?S=z:E.sibling=z,E=z);return W&&zt(m,L),S}for(C=r(m,C);!z.done;L++,z=p.next())z=x(C,m,L,z.value,g),z!==null&&(e&&z.alternate!==null&&C.delete(z.key===null?L:z.key),d=o(z,d,L),E===null?S=z:E.sibling=z,E=z);return e&&C.forEach(function(lt){return t(m,lt)}),W&&zt(m,L),S}function N(m,d,p,g){if(typeof p=="object"&&p!==null&&p.type===en&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Pr:e:{for(var S=p.key,E=d;E!==null;){if(E.key===S){if(S=p.type,S===en){if(E.tag===7){n(m,E.sibling),d=l(E,p.props.children),d.return=m,m=d;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===st&&fa(S)===E.type){n(m,E.sibling),d=l(E,p.props),d.ref=Fn(m,E,p),d.return=m,m=d;break e}n(m,E);break}else t(m,E);E=E.sibling}p.type===en?(d=Dt(p.props.children,m.mode,g,p.key),d.return=m,m=d):(g=sl(p.type,p.key,p.props,null,m.mode,g),g.ref=Fn(m,d,p),g.return=m,m=g)}return s(m);case Jt:e:{for(E=p.key;d!==null;){if(d.key===E)if(d.tag===4&&d.stateNode.containerInfo===p.containerInfo&&d.stateNode.implementation===p.implementation){n(m,d.sibling),d=l(d,p.children||[]),d.return=m,m=d;break e}else{n(m,d);break}else t(m,d);d=d.sibling}d=jo(p,m.mode,g),d.return=m,m=d}return s(m);case st:return E=p._init,N(m,d,E(p._payload),g)}if(An(p))return w(m,d,p,g);if(Rn(p))return k(m,d,p,g);Dr(m,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,d!==null&&d.tag===6?(n(m,d.sibling),d=l(d,p),d.return=m,m=d):(n(m,d),d=So(p,m.mode,g),d.return=m,m=d),s(m)):n(m,d)}return N}var kn=gc(!0),xc=gc(!1),kl=Ct(null),Sl=null,un=null,qs=null;function Zs(){qs=un=Sl=null}function Js(e){var t=kl.current;B(kl),e._currentValue=t}function ls(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 vn(e,t){Sl=e,qs=un=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(qs!==e)if(e={context:e,memoizedValue:t,next:null},un===null){if(Sl===null)throw Error(j(308));un=e,Sl.dependencies={lanes:0,firstContext:e}}else un=un.next=e;return t}var Ot=null;function ei(e){Ot===null?Ot=[e]:Ot.push(e)}function wc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,ei(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 ti(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function kc(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,ei(r)):(t.next=l.next,l.next=t),r.interleaved=t,et(e,n)}function el(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,As(e,n)}}function pa(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 jl(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 f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==s&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=u))}if(o!==null){var h=l.baseState;s=0,f=c=u=null,a=o;do{var v=a.lane,x=a.eventTime;if((r&v)===v){f!==null&&(f=f.next={eventTime:x,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,k=a;switch(v=t,x=n,k.tag){case 1:if(w=k.payload,typeof w=="function"){h=w.call(x,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(x,h,v):w,v==null)break e;h=H({},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 x={eventTime:x,lane:v,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=x,u=h):f=f.next=x,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(f===null&&(u=h),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=f,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);bt|=s,e.lanes=s,e.memoizedState=h}}function ha(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(j(191,l));l.call(r)}}}var jr={},He=Ct(jr),cr=Ct(jr),dr=Ct(jr);function Ft(e){if(e===jr)throw Error(j(174));return e}function ni(e,t){switch(U(dr,t),U(cr,e),U(He,jr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Uo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Uo(t,e)}B(He),U(He,t)}function Sn(){B(He),B(cr),B(dr)}function Sc(e){Ft(dr.current);var t=Ft(He.current),n=Uo(t,e.type);t!==n&&(U(cr,e),U(He,n))}function ri(e){cr.current===e&&(B(He),B(cr))}var b=Ct(0);function Nl(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 vo=[];function li(){for(var e=0;e<vo.length;e++)vo[e]._workInProgressVersionPrimary=null;vo.length=0}var tl=nt.ReactCurrentDispatcher,yo=nt.ReactCurrentBatchConfig,Wt=0,V=null,Z=null,te=null,Cl=!1,Yn=!1,fr=0,Up=0;function ie(){throw Error(j(321))}function oi(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 si(e,t,n,r,l,o){if(Wt=o,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tl.current=e===null||e.memoizedState===null?Wp:bp,e=n(r,l),Yn){o=0;do{if(Yn=!1,fr=0,25<=o)throw Error(j(301));o+=1,te=Z=null,t.updateQueue=null,tl.current=Vp,e=n(r,l)}while(Yn)}if(tl.current=El,t=Z!==null&&Z.next!==null,Wt=0,te=Z=V=null,Cl=!1,t)throw Error(j(300));return e}function ii(){var e=fr!==0;return fr=0,e}function We(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return te===null?V.memoizedState=te=e:te=te.next=e,te}function Ie(){if(Z===null){var e=V.alternate;e=e!==null?e.memoizedState:null}else e=Z.next;var t=te===null?V.memoizedState:te.next;if(t!==null)te=t,Z=e;else{if(e===null)throw Error(j(310));Z=e,e={memoizedState:Z.memoizedState,baseState:Z.baseState,baseQueue:Z.baseQueue,queue:Z.queue,next:null},te===null?V.memoizedState=te=e:te=te.next=e}return te}function pr(e,t){return typeof t=="function"?t(e):t}function go(e){var t=Ie(),n=t.queue;if(n===null)throw Error(j(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 f=c.lane;if((Wt&f)===f)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:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(a=u=h,s=r):u=u.next=h,V.lanes|=f,bt|=f}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,V.lanes|=o,bt|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function xo(e){var t=Ie(),n=t.queue;if(n===null)throw Error(j(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 jc(){}function Nc(e,t){var n=V,r=Ie(),l=t(),o=!Ae(r.memoizedState,l);if(o&&(r.memoizedState=l,ve=!0),r=r.queue,ai(_c.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||te!==null&&te.memoizedState.tag&1){if(n.flags|=2048,hr(9,Ec.bind(null,n,r,l,t),void 0,null),ne===null)throw Error(j(349));Wt&30||Cc(n,t,l)}return l}function Cc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t={lastEffect:null,stores:null},V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ec(e,t,n,r){t.value=n,t.getSnapshot=r,Pc(t)&&Lc(e)}function _c(e,t,n){return n(function(){Pc(t)&&Lc(e)})}function Pc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ae(e,n)}catch{return!0}}function Lc(e){var t=et(e,1);t!==null&&De(t,e,1,-1)}function ma(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:pr,lastRenderedState:e},t.queue=e,e=e.dispatch=Bp.bind(null,V,e),[t.memoizedState,e]}function hr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=V.updateQueue,t===null?(t={lastEffect:null,stores:null},V.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 Tc(){return Ie().memoizedState}function nl(e,t,n,r){var l=We();V.flags|=e,l.memoizedState=hr(1|t,n,void 0,r===void 0?null:r)}function Al(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&&oi(r,s.deps)){l.memoizedState=hr(t,n,o,r);return}}V.flags|=e,l.memoizedState=hr(1|t,n,o,r)}function va(e,t){return nl(8390656,8,e,t)}function ai(e,t){return Al(2048,8,e,t)}function Rc(e,t){return Al(4,2,e,t)}function zc(e,t){return Al(4,4,e,t)}function Ic(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 Mc(e,t,n){return n=n!=null?n.concat([e]):null,Al(4,4,Ic.bind(null,t,e),n)}function ui(){}function Oc(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&oi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fc(e,t){var n=Ie();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&oi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $c(e,t,n){return Wt&21?(Ae(n,t)||(n=Wu(),V.lanes|=n,bt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ve=!0),e.memoizedState=n)}function Dp(e,t){var n=F;F=n!==0&&4>n?n:4,e(!0);var r=yo.transition;yo.transition={};try{e(!1),t()}finally{F=n,yo.transition=r}}function Uc(){return Ie().memoizedState}function Ap(e,t,n){var r=xt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Dc(e))Ac(t,n);else if(n=wc(e,t,n,r),n!==null){var l=fe();De(n,e,r,l),Bc(n,t,r)}}function Bp(e,t,n){var r=xt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Dc(e))Ac(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,ei(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=wc(e,t,l,r),n!==null&&(l=fe(),De(n,e,r,l),Bc(n,t,r))}}function Dc(e){var t=e.alternate;return e===V||t!==null&&t===V}function Ac(e,t){Yn=Cl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,As(e,n)}}var El={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},Wp={readContext:ze,useCallback:function(e,t){return We().memoizedState=[e,t===void 0?null:t],e},useContext:ze,useEffect:va,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nl(4194308,4,Ic.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return nl(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=Ap.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=We();return e={current:e},t.memoizedState=e},useState:ma,useDebugValue:ui,useDeferredValue:function(e){return We().memoizedState=e},useTransition:function(){var e=ma(!1),t=e[0];return e=Dp.bind(null,e[1]),We().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=V,l=We();if(W){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),ne===null)throw Error(j(349));Wt&30||Cc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,va(_c.bind(null,r,o,e),[e]),r.flags|=2048,hr(9,Ec.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=fr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Up++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},bp={readContext:ze,useCallback:Oc,useContext:ze,useEffect:ai,useImperativeHandle:Mc,useInsertionEffect:Rc,useLayoutEffect:zc,useMemo:Fc,useReducer:go,useRef:Tc,useState:function(){return go(pr)},useDebugValue:ui,useDeferredValue:function(e){var t=Ie();return $c(t,Z.memoizedState,e)},useTransition:function(){var e=go(pr)[0],t=Ie().memoizedState;return[e,t]},useMutableSource:jc,useSyncExternalStore:Nc,useId:Uc,unstable_isNewReconciler:!1},Vp={readContext:ze,useCallback:Oc,useContext:ze,useEffect:ai,useImperativeHandle:Mc,useInsertionEffect:Rc,useLayoutEffect:zc,useMemo:Fc,useReducer:xo,useRef:Tc,useState:function(){return xo(pr)},useDebugValue:ui,useDeferredValue:function(e){var t=Ie();return Z===null?t.memoizedState=e:$c(t,Z.memoizedState,e)},useTransition:function(){var e=xo(pr)[0],t=Ie().memoizedState;return[e,t]},useMutableSource:jc,useSyncExternalStore:Nc,useId:Uc,unstable_isNewReconciler:!1};function Oe(e,t){if(e&&e.defaultProps){t=H({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function os(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:H({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bl={isMounted:function(e){return(e=e._reactInternals)?Qt(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),el(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),el(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),el(t,e,r))}};function ya(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?!sr(n,r)||!sr(l,o):!0}function Wc(e,t,n){var r=!1,l=jt,o=t.contextType;return typeof o=="object"&&o!==null?o=ze(o):(l=ge(t)?At:ce.current,r=t.contextTypes,o=(r=r!=null)?xn(e,l):jt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function ga(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&&Bl.enqueueReplaceState(t,t.state,null)}function ss(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},ti(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=ze(o):(o=ge(t)?At:ce.current,l.context=xn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(os(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&&Bl.enqueueReplaceState(l,l.state,null),jl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function jn(e,t){try{var n="",r=t;do n+=gf(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 wo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function is(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Hp=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(){Pl||(Pl=!0,ys=r),is(e,t)},n}function Vc(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(){is(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){is(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 xa(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Hp;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=oh.bind(null,e,t,n),t.then(e,e))}function wa(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 ka(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 Qp=nt.ReactCurrentOwner,ve=!1;function de(e,t,n,r){t.child=e===null?xc(t,null,n,r):kn(t,e.child,n,r)}function Sa(e,t,n,r,l){n=n.render;var o=t.ref;return vn(t,l),r=si(e,t,n,r,o,l),n=ii(),e!==null&&!ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,tt(e,t,l)):(W&&n&&Gs(t),t.flags|=1,de(e,t,r,l),t.child)}function ja(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!yi(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Hc(e,t,o,r,l)):(e=sl(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:sr,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 Hc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(sr(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 as(e,t,n,r,l)}function Qc(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(dn,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(dn,ke),ke|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,U(dn,ke),ke|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,U(dn,ke),ke|=r;return de(e,t,l,n),t.child}function Kc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function as(e,t,n,r,l){var o=ge(n)?At:ce.current;return o=xn(t,o),vn(t,l),n=si(e,t,n,r,o,l),r=ii(),e!==null&&!ve?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,tt(e,t,l)):(W&&r&&Gs(t),t.flags|=1,de(e,t,n,l),t.child)}function Na(e,t,n,r,l){if(ge(n)){var o=!0;gl(t)}else o=!1;if(vn(t,l),t.stateNode===null)rl(e,t),Wc(t,n,r),ss(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)?At:ce.current,c=xn(t,c));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||u!==c)&&ga(t,s,r,c),it=!1;var v=t.memoizedState;s.state=v,jl(t,r,s,l),u=t.memoizedState,a!==r||v!==u||ye.current||it?(typeof f=="function"&&(os(t,n,f,r),u=t.memoizedState),(a=it||ya(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,kc(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)?At:ce.current,u=xn(t,u));var x=n.getDerivedStateFromProps;(f=typeof x=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||v!==u)&&ga(t,s,r,u),it=!1,v=t.memoizedState,s.state=v,jl(t,r,s,l);var w=t.memoizedState;a!==h||v!==w||ye.current||it?(typeof x=="function"&&(os(t,n,x,r),w=t.memoizedState),(c=it||ya(t,n,c,r,v,w,u)||!1)?(f||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 us(e,t,n,r,o,l)}function us(e,t,n,r,l,o){Kc(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return l&&ua(t,n,!1),tt(e,t,o);r=t.stateNode,Qp.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=kn(t,e.child,null,o),t.child=kn(t,null,a,o)):de(e,t,a,o),t.memoizedState=r.state,l&&ua(t,n,!0),t.child}function Gc(e){var t=e.stateNode;t.pendingContext?aa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&aa(e,t.context,!1),ni(e,t.containerInfo)}function Ca(e,t,n,r,l){return wn(),Xs(l),t.flags|=256,de(e,t,n,r),t.child}var cs={dehydrated:null,treeContext:null,retryLane:0};function ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Yc(e,t,n){var r=t.pendingProps,l=b.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(b,l&1),e===null)return rs(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=Vl(s,r,0,null),e=Dt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ds(n),t.memoizedState=cs,e):ci(t,s));if(l=e.memoizedState,l!==null&&(a=l.dehydrated,a!==null))return Kp(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=Dt(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?ds(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=cs,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 ci(e,t){return t=Vl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ar(e,t,n,r){return r!==null&&Xs(r),kn(t,e.child,null,n),e=ci(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kp(e,t,n,r,l,o,s){if(n)return t.flags&256?(t.flags&=-257,r=wo(Error(j(422))),Ar(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Vl({mode:"visible",children:r.children},l,0,null),o=Dt(o,l,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&kn(t,e.child,null,s),t.child.memoizedState=ds(s),t.memoizedState=cs,o);if(!(t.mode&1))return Ar(e,t,s,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(j(419)),r=wo(o,r,void 0),Ar(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 vi(),r=wo(Error(j(421))),Ar(e,t,s,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=sh.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++]=Bt,Ye=e.id,Xe=e.overflow,Bt=t),t=ci(t,r.children),t.flags|=4096,t)}function Ea(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ls(e.return,t,n)}function ko(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 Xc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(de(e,t,r.children,n),r=b.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&&Ea(e,n,t);else if(e.tag===19)Ea(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(b,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&&Nl(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),ko(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&&Nl(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}ko(t,!0,n,null,o);break;case"together":ko(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rl(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),bt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(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 Gp(e,t,n){switch(t.tag){case 3:Gc(t),wn();break;case 5:Sc(t);break;case 1:ge(t.type)&&gl(t);break;case 4:ni(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;U(kl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(b,b.current&1),t.flags|=128,null):n&t.child.childLanes?Yc(e,t,n):(U(b,b.current&1),e=tt(e,t,n),e!==null?e.sibling:null);U(b,b.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Xc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),U(b,b.current),r)break;return null;case 22:case 23:return t.lanes=0,Qc(e,t,n)}return tt(e,t,n)}var qc,fs,Zc,Jc;qc=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}};fs=function(){};Zc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Ft(He.current);var o=null;switch(n){case"input":l=Mo(e,l),r=Mo(e,r),o=[];break;case"select":l=H({},l,{value:void 0}),r=H({},r,{value:void 0}),o=[];break;case"textarea":l=$o(e,l),r=$o(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vl)}Do(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"&&(Jn.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"&&(Jn.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)}};Jc=function(e,t,n,r){n!==r&&(t.flags|=4)};function $n(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 Yp(e,t,n){var r=t.pendingProps;switch(Ys(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)&&yl(),ae(t),null;case 3:return r=t.stateNode,Sn(),B(ye),B(ce),li(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ur(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$e!==null&&(ws($e),$e=null))),fs(e,t),ae(t),null;case 5:ri(t);var l=Ft(dr.current);if(n=t.type,e!==null&&t.stateNode!=null)Zc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return ae(t),null}if(e=Ft(He.current),Ur(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[be]=t,r[ur]=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<Wn.length;l++)A(Wn[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":Oi(r,o),A("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},A("invalid",r);break;case"textarea":$i(r,o),A("invalid",r)}Do(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&&$r(r.textContent,a,e),l=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&$r(r.textContent,a,e),l=["children",""+a]):Jn.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&A("scroll",r)}switch(n){case"input":Lr(r),Fi(r,o,!0);break;case"textarea":Lr(r),Ui(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=vl)}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=_u(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[be]=t,e[ur]=r,qc(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ao(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<Wn.length;l++)A(Wn[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":Oi(e,r),l=Mo(e,r),A("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=H({},r,{value:void 0}),A("invalid",e);break;case"textarea":$i(e,r),l=$o(e,r),A("invalid",e);break;default:l=r}Do(n,l),a=l;for(o in a)if(a.hasOwnProperty(o)){var u=a[o];o==="style"?Tu(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Pu(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&er(e,u):typeof u=="number"&&er(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Jn.hasOwnProperty(o)?u!=null&&o==="onScroll"&&A("scroll",e):u!=null&&Ms(e,o,u,s))}switch(n){case"input":Lr(e),Fi(e,r,!1);break;case"textarea":Lr(e),Ui(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?fn(e,!!r.multiple,o,!1):r.defaultValue!=null&&fn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=vl)}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)Jc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(n=Ft(dr.current),Ft(He.current),Ur(t)){if(r=t.stateNode,n=t.memoizedProps,r[be]=t,(o=r.nodeValue!==n)&&(e=je,e!==null))switch(e.tag){case 3:$r(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$r(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[be]=t,t.stateNode=r}return ae(t),null;case 13:if(B(b),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(W&&Se!==null&&t.mode&1&&!(t.flags&128))yc(),wn(),t.flags|=98560,o=!1;else if(o=Ur(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(j(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(j(317));o[be]=t}else wn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ae(t),o=!1}else $e!==null&&(ws($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||b.current&1?J===0&&(J=3):vi())),t.updateQueue!==null&&(t.flags|=4),ae(t),null);case 4:return Sn(),fs(e,t),e===null&&ir(t.stateNode.containerInfo),ae(t),null;case 10:return Js(t.type._context),ae(t),null;case 17:return ge(t.type)&&yl(),ae(t),null;case 19:if(B(b),o=t.memoizedState,o===null)return ae(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)$n(o,!1);else{if(J!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Nl(e),s!==null){for(t.flags|=128,$n(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(b,b.current&1|2),t.child}e=e.sibling}o.tail!==null&&G()>Nn&&(t.flags|=128,r=!0,$n(o,!1),t.lanes=4194304)}else{if(!r)if(e=Nl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$n(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!W)return ae(t),null}else 2*G()-o.renderingStartTime>Nn&&n!==1073741824&&(t.flags|=128,r=!0,$n(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=b.current,U(b,r?n&1|2:n&1),t):(ae(t),null);case 22:case 23:return mi(),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(j(156,t.tag))}function Xp(e,t){switch(Ys(t),t.tag){case 1:return ge(t.type)&&yl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sn(),B(ye),B(ce),li(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ri(t),null;case 13:if(B(b),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(b),null;case 4:return Sn(),null;case 10:return Js(t.type._context),null;case 22:case 23:return mi(),null;case 24:return null;default:return null}}var Br=!1,ue=!1,qp=typeof WeakSet=="function"?WeakSet:Set,_=null;function cn(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 ps(e,t,n){try{n()}catch(r){Q(e,t,r)}}var _a=!1;function Zp(e,t){if(Xo=pl,e=lc(),Ks(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,f=0,h=e,v=null;t:for(;;){for(var x;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),(x=h.firstChild)!==null;)v=h,h=x;for(;;){if(h===e)break t;if(v===n&&++c===l&&(a=s),v===o&&++f===r&&(u=s),(x=h.nextSibling)!==null)break;h=v,v=h.parentNode}h=x}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(qo={focusedElem:e,selectionRange:n},pl=!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,N=w.memoizedState,m=t.stateNode,d=m.getSnapshotBeforeUpdate(t.elementType===t.type?k:Oe(t.type,k),N);m.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(g){Q(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,_=e;break}_=t.return}return w=_a,_a=!1,w}function Xn(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&&ps(t,n,o)}l=l.next}while(l!==r)}}function Wl(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 hs(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 ed(e){var t=e.alternate;t!==null&&(e.alternate=null,ed(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[be],delete t[ur],delete t[es],delete t[Mp],delete t[Op])),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 td(e){return e.tag===5||e.tag===3||e.tag===4}function Pa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||td(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 ms(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=vl));else if(r!==4&&(e=e.child,e!==null))for(ms(e,t,n),e=e.sibling;e!==null;)ms(e,t,n),e=e.sibling}function vs(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(vs(e,t,n),e=e.sibling;e!==null;)vs(e,t,n),e=e.sibling}var le=null,Fe=!1;function ot(e,t,n){for(n=n.child;n!==null;)nd(e,t,n),n=n.sibling}function nd(e,t,n){if(Ve&&typeof Ve.onCommitFiberUnmount=="function")try{Ve.onCommitFiberUnmount(Ml,n)}catch{}switch(n.tag){case 5:ue||cn(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?ho(e.parentNode,n):e.nodeType===1&&ho(e,n),lr(e)):ho(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)&&ps(n,t,s),l=l.next}while(l!==r)}ot(e,t,n);break;case 1:if(!ue&&(cn(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 La(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qp),t.forEach(function(r){var l=ih.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(j(160));nd(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;)rd(t,e),t=t.sibling}function rd(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{Xn(3,e,e.return),Wl(3,e)}catch(k){Q(e,e.return,k)}try{Xn(5,e,e.return)}catch(k){Q(e,e.return,k)}}break;case 1:Me(t,e),Be(e),r&512&&n!==null&&cn(n,n.return);break;case 5:if(Me(t,e),Be(e),r&512&&n!==null&&cn(n,n.return),e.flags&32){var l=e.stateNode;try{er(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&&Cu(l,o),Ao(a,s);var c=Ao(a,o);for(s=0;s<u.length;s+=2){var f=u[s],h=u[s+1];f==="style"?Tu(l,h):f==="dangerouslySetInnerHTML"?Pu(l,h):f==="children"?er(l,h):Ms(l,f,h,c)}switch(a){case"input":Oo(l,o);break;case"textarea":Eu(l,o);break;case"select":var v=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var x=o.value;x!=null?fn(l,!!o.multiple,x,!1):v!==!!o.multiple&&(o.defaultValue!=null?fn(l,!!o.multiple,o.defaultValue,!0):fn(l,!!o.multiple,o.multiple?[]:"",!1))}l[ur]=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(j(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{lr(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||(pi=G())),r&4&&La(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(ue=(c=ue)||f,Me(t,e),ue=c):Me(t,e),Be(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!f&&e.mode&1)for(_=e,f=e.child;f!==null;){for(h=_=f;_!==null;){switch(v=_,x=v.child,v.tag){case 0:case 11:case 14:case 15:Xn(4,v,v.return);break;case 1:cn(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:cn(v,v.return);break;case 22:if(v.memoizedState!==null){Ra(h);continue}}x!==null?(x.return=v,_=x):Ra(h)}f=f.sibling}e:for(f=null,h=e;;){if(h.tag===5){if(f===null){f=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=Lu("display",s))}catch(k){Q(e,e.return,k)}}}else if(h.tag===6){if(f===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;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Me(t,e),Be(e),r&4&&La(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(td(n)){var r=n;break e}n=n.return}throw Error(j(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(er(l,""),r.flags&=-33);var o=Pa(e);vs(e,o,l);break;case 3:case 4:var s=r.stateNode.containerInfo,a=Pa(e);ms(e,a,s);break;default:throw Error(j(161))}}catch(u){Q(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jp(e,t,n){_=e,ld(e)}function ld(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||Br;if(!s){var a=l.alternate,u=a!==null&&a.memoizedState!==null||ue;a=Br;var c=ue;if(Br=s,(ue=u)&&!c)for(_=l;_!==null;)s=_,u=s.child,s.tag===22&&s.memoizedState!==null?za(l):u!==null?(u.return=s,_=u):za(l);for(;o!==null;)_=o,ld(o),o=o.sibling;_=l,Br=a,ue=c}Ta(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,_=o):Ta(e)}}function Ta(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||Wl(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&&ha(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}ha(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 f=c.memoizedState;if(f!==null){var h=f.dehydrated;h!==null&&lr(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}ue||t.flags&512&&hs(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 Ra(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 za(e){for(;_!==null;){var t=_;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Wl(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{hs(t)}catch(u){Q(t,o,u)}break;case 5:var s=t.return;try{hs(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 eh=Math.ceil,_l=nt.ReactCurrentDispatcher,di=nt.ReactCurrentOwner,Re=nt.ReactCurrentBatchConfig,O=0,ne=null,q=null,oe=0,ke=0,dn=Ct(0),J=0,mr=null,bt=0,bl=0,fi=0,qn=null,me=null,pi=0,Nn=1/0,Ke=null,Pl=!1,ys=null,gt=null,Wr=!1,dt=null,Ll=0,Zn=0,gs=null,ll=-1,ol=0;function fe(){return O&6?G():ll!==-1?ll:ll=G()}function xt(e){return e.mode&1?O&2&&oe!==0?oe&-oe:$p.transition!==null?(ol===0&&(ol=Wu()),ol):(e=F,e!==0||(e=window.event,e=e===void 0?16:Yu(e.type)),e):1}function De(e,t,n,r){if(50<Zn)throw Zn=0,gs=null,Error(j(185));wr(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)&&(Nn=G()+500,Dl&&Et()))}function xe(e,t){var n=e.callbackNode;$f(e,t);var r=fl(e,e===ne?oe:0);if(r===0)n!==null&&Bi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Bi(n),t===1)e.tag===0?Fp(Ia.bind(null,e)):hc(Ia.bind(null,e)),zp(function(){!(O&6)&&Et()}),n=null;else{switch(bu(r)){case 1:n=Ds;break;case 4:n=Au;break;case 16:n=dl;break;case 536870912:n=Bu;break;default:n=dl}n=fd(n,od.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function od(e,t){if(ll=-1,ol=0,O&6)throw Error(j(327));var n=e.callbackNode;if(yn()&&e.callbackNode!==n)return null;var r=fl(e,e===ne?oe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Tl(e,r);else{t=r;var l=O;O|=2;var o=id();(ne!==e||oe!==t)&&(Ke=null,Nn=G()+500,Ut(e,t));do try{rh();break}catch(a){sd(e,a)}while(!0);Zs(),_l.current=o,O=l,q!==null?t=0:(ne=null,oe=0,t=J)}if(t!==0){if(t===2&&(l=Ho(e),l!==0&&(r=l,t=xs(e,l))),t===1)throw n=mr,Ut(e,0),ut(e,r),xe(e,G()),n;if(t===6)ut(e,r);else{if(l=e.current.alternate,!(r&30)&&!th(l)&&(t=Tl(e,r),t===2&&(o=Ho(e),o!==0&&(r=o,t=xs(e,o))),t===1))throw n=mr,Ut(e,0),ut(e,r),xe(e,G()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(j(345));case 2:It(e,me,Ke);break;case 3:if(ut(e,r),(r&130023424)===r&&(t=pi+500-G(),10<t)){if(fl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){fe(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Jo(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*eh(r/1960))-r,10<r){e.timeoutHandle=Jo(It.bind(null,e,me,Ke),r);break}It(e,me,Ke);break;case 5:It(e,me,Ke);break;default:throw Error(j(329))}}}return xe(e,G()),e.callbackNode===n?od.bind(null,e):null}function xs(e,t){var n=qn;return e.current.memoizedState.isDehydrated&&(Ut(e,t).flags|=256),e=Tl(e,t),e!==2&&(t=me,me=n,t!==null&&ws(t)),e}function ws(e){me===null?me=e:me.push.apply(me,e)}function th(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&=~fi,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 Ia(e){if(O&6)throw Error(j(327));yn();var t=fl(e,0);if(!(t&1))return xe(e,G()),null;var n=Tl(e,t);if(e.tag!==0&&n===2){var r=Ho(e);r!==0&&(t=r,n=xs(e,r))}if(n===1)throw n=mr,Ut(e,0),ut(e,t),xe(e,G()),n;if(n===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,It(e,me,Ke),xe(e,G()),null}function hi(e,t){var n=O;O|=1;try{return e(t)}finally{O=n,O===0&&(Nn=G()+500,Dl&&Et())}}function Vt(e){dt!==null&&dt.tag===0&&!(O&6)&&yn();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 mi(){ke=dn.current,B(dn)}function Ut(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Rp(n)),q!==null)for(n=q.return;n!==null;){var r=n;switch(Ys(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&yl();break;case 3:Sn(),B(ye),B(ce),li();break;case 5:ri(r);break;case 4:Sn();break;case 13:B(b);break;case 19:B(b);break;case 10:Js(r.type._context);break;case 22:case 23:mi()}n=n.return}if(ne=e,q=e=wt(e.current,null),oe=ke=t,J=0,mr=null,fi=bl=bt=0,me=qn=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 sd(e,t){do{var n=q;try{if(Zs(),tl.current=El,Cl){for(var r=V.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Cl=!1}if(Wt=0,te=Z=V=null,Yn=!1,fr=0,di.current=null,n===null||n.return===null){J=1,mr=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,f=a,h=f.tag;if(!(f.mode&1)&&(h===0||h===11||h===15)){var v=f.alternate;v?(f.updateQueue=v.updateQueue,f.memoizedState=v.memoizedState,f.lanes=v.lanes):(f.updateQueue=null,f.memoizedState=null)}var x=wa(s);if(x!==null){x.flags&=-257,ka(x,s,a,o,t),x.mode&1&&xa(o,c,t),t=x,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)){xa(o,c,t),vi();break e}u=Error(j(426))}}else if(W&&a.mode&1){var N=wa(s);if(N!==null){!(N.flags&65536)&&(N.flags|=256),ka(N,s,a,o,t),Xs(jn(u,a));break e}}o=u=jn(u,a),J!==4&&(J=2),qn===null?qn=[o]:qn.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=bc(o,u,t);pa(o,m);break e;case 1:a=u;var d=o.type,p=o.stateNode;if(!(o.flags&128)&&(typeof d.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(gt===null||!gt.has(p)))){o.flags|=65536,t&=-t,o.lanes|=t;var g=Vc(o,a,t);pa(o,g);break e}}o=o.return}while(o!==null)}ud(n)}catch(S){t=S,q===n&&n!==null&&(q=n=n.return);continue}break}while(!0)}function id(){var e=_l.current;return _l.current=El,e===null?El:e}function vi(){(J===0||J===3||J===2)&&(J=4),ne===null||!(bt&268435455)&&!(bl&268435455)||ut(ne,oe)}function Tl(e,t){var n=O;O|=2;var r=id();(ne!==e||oe!==t)&&(Ke=null,Ut(e,t));do try{nh();break}catch(l){sd(e,l)}while(!0);if(Zs(),O=n,_l.current=r,q!==null)throw Error(j(261));return ne=null,oe=0,J}function nh(){for(;q!==null;)ad(q)}function rh(){for(;q!==null&&!Pf();)ad(q)}function ad(e){var t=dd(e.alternate,e,ke);e.memoizedProps=e.pendingProps,t===null?ud(e):q=t,di.current=null}function ud(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Xp(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=Yp(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,lh(e,t,n,r)}finally{Re.transition=l,F=r}return null}function lh(e,t,n,r){do yn();while(dt!==null);if(O&6)throw Error(j(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(j(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Uf(e,o),e===ne&&(q=ne=null,oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Wr||(Wr=!0,fd(dl,function(){return yn(),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,di.current=null,Zp(e,n),rd(n,e),Np(qo),pl=!!Xo,qo=Xo=null,e.current=n,Jp(n),Lf(),O=a,F=s,Re.transition=o}else e.current=n;if(Wr&&(Wr=!1,dt=e,Ll=l),o=e.pendingLanes,o===0&&(gt=null),zf(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(Pl)throw Pl=!1,e=ys,ys=null,e;return Ll&1&&e.tag!==0&&yn(),o=e.pendingLanes,o&1?e===gs?Zn++:(Zn=0,gs=e):Zn=0,Et(),null}function yn(){if(dt!==null){var e=bu(Ll),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,Ll=0,O&6)throw Error(j(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 f=_;switch(f.tag){case 0:case 11:case 15:Xn(8,f,o)}var h=f.child;if(h!==null)h.return=f,_=h;else for(;_!==null;){f=_;var v=f.sibling,x=f.return;if(ed(f),f===c){_=null;break}if(v!==null){v.return=x,_=v;break}_=x}}}var w=o.alternate;if(w!==null){var k=w.child;if(k!==null){w.child=null;do{var N=k.sibling;k.sibling=null,k=N}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:Xn(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,_=m;break e}_=o.return}}var d=e.current;for(_=d;_!==null;){s=_;var p=s.child;if(s.subtreeFlags&2064&&p!==null)p.return=s,_=p;else e:for(s=d;_!==null;){if(a=_,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Wl(9,a)}}catch(S){Q(a,a.return,S)}if(a===s){_=null;break e}var g=a.sibling;if(g!==null){g.return=a.return,_=g;break e}_=a.return}}if(O=l,Et(),Ve&&typeof Ve.onPostCommitFiberRoot=="function")try{Ve.onPostCommitFiberRoot(Ml,e)}catch{}r=!0}return r}finally{F=n,Re.transition=t}}return!1}function Ma(e,t,n){t=jn(n,t),t=bc(e,t,1),e=yt(e,t,1),t=fe(),e!==null&&(wr(e,1,t),xe(e,t))}function Q(e,t,n){if(e.tag===3)Ma(e,e,n);else for(;t!==null;){if(t.tag===3){Ma(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=jn(n,e),e=Vc(t,e,1),t=yt(t,e,1),e=fe(),t!==null&&(wr(t,1,e),xe(t,e));break}}t=t.return}}function oh(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()-pi?Ut(e,0):fi|=n),xe(e,t)}function cd(e,t){t===0&&(e.mode&1?(t=zr,zr<<=1,!(zr&130023424)&&(zr=4194304)):t=1);var n=fe();e=et(e,t),e!==null&&(wr(e,t,n),xe(e,n))}function sh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cd(e,n)}function ih(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(j(314))}r!==null&&r.delete(t),cd(e,n)}var dd;dd=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,Gp(e,t,n);ve=!!(e.flags&131072)}else ve=!1,W&&t.flags&1048576&&mc(t,wl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rl(e,t),e=t.pendingProps;var l=xn(t,ce.current);vn(t,n),l=si(null,t,r,e,l,n);var o=ii();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,gl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ti(t),l.updater=Bl,t.stateNode=l,l._reactInternals=t,ss(t,r,e,n),t=us(null,t,r,!0,o,n)):(t.tag=0,W&&o&&Gs(t),de(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=uh(r),e=Oe(r,e),l){case 0:t=as(null,t,r,e,n);break e;case 1:t=Na(null,t,r,e,n);break e;case 11:t=Sa(null,t,r,e,n);break e;case 14:t=ja(null,t,r,Oe(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),as(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),Na(e,t,r,l,n);case 3:e:{if(Gc(t),e===null)throw Error(j(387));r=t.pendingProps,o=t.memoizedState,l=o.element,kc(e,t),jl(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=jn(Error(j(423)),t),t=Ca(e,t,r,n,l);break e}else if(r!==l){l=jn(Error(j(424)),t),t=Ca(e,t,r,n,l);break e}else for(Se=vt(t.stateNode.containerInfo.firstChild),je=t,W=!0,$e=null,n=xc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wn(),r===l){t=tt(e,t,n);break e}de(e,t,r,n)}t=t.child}return t;case 5:return Sc(t),e===null&&rs(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,s=l.children,Zo(r,l)?s=null:o!==null&&Zo(r,o)&&(t.flags|=32),Kc(e,t),de(e,t,s,n),t.child;case 6:return e===null&&rs(t),null;case 13:return Yc(e,t,n);case 4:return ni(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=kn(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),Sa(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(kl,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 f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),ls(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(j(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),ls(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,vn(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),ja(e,t,r,l,n);case 15:return Hc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Oe(r,l),rl(e,t),t.tag=1,ge(r)?(e=!0,gl(t)):e=!1,vn(t,n),Wc(t,r,l),ss(t,r,l,n),us(null,t,r,!0,e,n);case 19:return Xc(e,t,n);case 22:return Qc(e,t,n)}throw Error(j(156,t.tag))};function fd(e,t){return Du(e,t)}function ah(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 ah(e,t,n,r)}function yi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uh(e){if(typeof e=="function")return yi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Fs)return 11;if(e===$s)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 sl(e,t,n,r,l,o){var s=2;if(r=e,typeof e=="function")yi(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case en:return Dt(n.children,l,o,t);case Os:s=8,l|=8;break;case To:return e=Te(12,n,t,l|2),e.elementType=To,e.lanes=o,e;case Ro:return e=Te(13,n,t,l),e.elementType=Ro,e.lanes=o,e;case zo:return e=Te(19,n,t,l),e.elementType=zo,e.lanes=o,e;case Su:return Vl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case wu:s=10;break e;case ku:s=9;break e;case Fs:s=11;break e;case $s:s=14;break e;case st:s=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=Te(s,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Dt(e,t,n,r){return e=Te(7,e,r,t),e.lanes=n,e}function Vl(e,t,n,r){return e=Te(22,e,r,t),e.elementType=Su,e.lanes=n,e.stateNode={isHidden:!1},e}function So(e,t,n){return e=Te(6,e,null,t),e.lanes=n,e}function jo(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 ch(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=no(0),this.expirationTimes=no(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=no(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function gi(e,t,n,r,l,o,s,a,u){return e=new ch(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},ti(o),e}function dh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Jt,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function pd(e){if(!e)return jt;e=e._reactInternals;e:{if(Qt(e)!==e||e.tag!==1)throw Error(j(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(j(171))}if(e.tag===1){var n=e.type;if(ge(n))return pc(e,n,t)}return t}function hd(e,t,n,r,l,o,s,a,u){return e=gi(n,r,!0,e,l,o,s,a,u),e.context=pd(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,wr(e,l,r),xe(e,r),e}function Hl(e,t,n,r){var l=t.current,o=fe(),s=xt(l);return n=pd(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),el(e,l,s)),s}function Rl(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 Oa(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xi(e,t){Oa(e,t),(e=e.alternate)&&Oa(e,t)}function fh(){return null}var md=typeof reportError=="function"?reportError:function(e){console.error(e)};function wi(e){this._internalRoot=e}Ql.prototype.render=wi.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));Hl(e,t,null,null)};Ql.prototype.unmount=wi.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vt(function(){Hl(null,e,null,null)}),t[Je]=null}};function Ql(e){this._internalRoot=e}Ql.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qu();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&&Gu(e)}};function ki(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Kl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Fa(){}function ph(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var c=Rl(s);o.call(c)}}var s=hd(t,r,e,0,null,!1,!1,"",Fa);return e._reactRootContainer=s,e[Je]=s.current,ir(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=Rl(u);a.call(c)}}var u=gi(e,0,!1,null,null,!1,!1,"",Fa);return e._reactRootContainer=u,e[Je]=u.current,ir(e.nodeType===8?e.parentNode:e),Vt(function(){Hl(t,u,n,r)}),u}function Gl(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=Rl(s);a.call(u)}}Hl(t,s,e,l)}else s=ph(n,t,e,l,r);return Rl(s)}Vu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Bn(t.pendingLanes);n!==0&&(As(t,n|1),xe(t,G()),!(O&6)&&(Nn=G()+500,Et()))}break;case 13:Vt(function(){var r=et(e,1);if(r!==null){var l=fe();De(r,e,1,l)}}),xi(e,1)}};Bs=function(e){if(e.tag===13){var t=et(e,134217728);if(t!==null){var n=fe();De(t,e,134217728,n)}xi(e,134217728)}};Hu=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)}xi(e,t)}};Qu=function(){return F};Ku=function(e,t){var n=F;try{return F=e,t()}finally{F=n}};Wo=function(e,t,n){switch(t){case"input":if(Oo(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=Ul(r);if(!l)throw Error(j(90));Nu(r),Oo(r,l)}}}break;case"textarea":Eu(e,n);break;case"select":t=n.value,t!=null&&fn(e,!!n.multiple,t,!1)}};Iu=hi;Mu=Vt;var hh={usingClientEntryPoint:!1,Events:[Sr,ln,Ul,Ru,zu,hi]},Un={findFiberByHostInstance:Mt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},mh={bundleType:Un.bundleType,version:Un.version,rendererPackageName:Un.rendererPackageName,rendererConfig:Un.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=$u(e),e===null?null:e.stateNode},findFiberByHostInstance:Un.findFiberByHostInstance||fh,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{Ml=br.inject(mh),Ve=br}catch{}}Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hh;Ce.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ki(t))throw Error(j(200));return dh(e,t,null,n)};Ce.createRoot=function(e,t){if(!ki(e))throw Error(j(299));var n=!1,r="",l=md;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=gi(e,1,!1,null,null,n,!1,r,l),e[Je]=t.current,ir(e.nodeType===8?e.parentNode:e),new wi(t)};Ce.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(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=$u(t),e=e===null?null:e.stateNode,e};Ce.flushSync=function(e){return Vt(e)};Ce.hydrate=function(e,t,n){if(!Kl(t))throw Error(j(200));return Gl(null,e,t,!0,n)};Ce.hydrateRoot=function(e,t,n){if(!ki(e))throw Error(j(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",s=md;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=hd(t,null,e,1,n??null,l,!1,o,s),e[Je]=t.current,ir(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 Ql(t)};Ce.render=function(e,t,n){if(!Kl(t))throw Error(j(200));return Gl(null,e,t,!1,n)};Ce.unmountComponentAtNode=function(e){if(!Kl(e))throw Error(j(40));return e._reactRootContainer?(Vt(function(){Gl(null,null,e,!1,function(){e._reactRootContainer=null,e[Je]=null})}),!0):!1};Ce.unstable_batchedUpdates=hi;Ce.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Kl(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return Gl(e,t,n,!1,r)};Ce.version="18.3.1-next-f1338f8080-20240426";function vd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vd)}catch(e){console.error(e)}}vd(),vu.exports=Ce;var vh=vu.exports,$a=vh;Po.createRoot=$a.createRoot,Po.hydrateRoot=$a.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 vr(){return vr=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},vr.apply(this,arguments)}var ft;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ft||(ft={}));const Ua="popstate";function yh(e){e===void 0&&(e={});function t(r,l){let{pathname:o,search:s,hash:a}=r.location;return ks("",{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:zl(l)}return xh(t,n,null,e)}function X(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Si(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function gh(){return Math.random().toString(36).substr(2,8)}function Da(e,t){return{usr:e.state,key:e.key,idx:t}}function ks(e,t,n,r){return n===void 0&&(n=null),vr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Pn(t):t,{state:n,key:t&&t.key||r||gh()})}function zl(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 Pn(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 xh(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=f();c==null&&(c=0,s.replaceState(vr({},s.state,{idx:c}),""));function f(){return(s.state||{idx:null}).idx}function h(){a=ft.Pop;let N=f(),m=N==null?null:N-c;c=N,u&&u({action:a,location:k.location,delta:m})}function v(N,m){a=ft.Push;let d=ks(k.location,N,m);c=f()+1;let p=Da(d,c),g=k.createHref(d);try{s.pushState(p,"",g)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;l.location.assign(g)}o&&u&&u({action:a,location:k.location,delta:1})}function x(N,m){a=ft.Replace;let d=ks(k.location,N,m);c=f();let p=Da(d,c),g=k.createHref(d);s.replaceState(p,"",g),o&&u&&u({action:a,location:k.location,delta:0})}function w(N){let m=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof N=="string"?N:zl(N);return d=d.replace(/ $/,"%20"),X(m,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,m)}let k={get action(){return a},get location(){return e(l,s)},listen(N){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(Ua,h),u=N,()=>{l.removeEventListener(Ua,h),u=null}},createHref(N){return t(l,N)},createURL:w,encodeLocation(N){let m=w(N);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:v,replace:x,go(N){return s.go(N)}};return k}var Aa;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Aa||(Aa={}));function wh(e,t,n){return n===void 0&&(n="/"),kh(e,t,n)}function kh(e,t,n,r){let l=typeof t=="string"?Pn(t):t,o=ji(l.pathname||"/",n);if(o==null)return null;let s=yd(e);Sh(s);let a=null;for(let u=0;a==null&&u<s.length;++u){let c=Mh(o);a=Rh(s[u],c)}return a}function yd(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]),f=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+'".')),yd(o.children,t,f,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:Lh(c,o.index),routesMeta:f})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))l(o,s);else for(let u of gd(o.path))l(o,s,u)}),t}function gd(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=gd(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 Sh(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Th(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const jh=/^:[\w-]+$/,Nh=3,Ch=2,Eh=1,_h=10,Ph=-2,Ba=e=>e==="*";function Lh(e,t){let n=e.split("/"),r=n.length;return n.some(Ba)&&(r+=Ph),t&&(r+=Ch),n.filter(l=>!Ba(l)).reduce((l,o)=>l+(jh.test(o)?Nh:o===""?Eh:_h),r)}function Th(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 Rh(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,f=o==="/"?t:t.slice(o.length)||"/",h=zh({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},f),v=u.route;if(!h)return null;Object.assign(l,h.params),s.push({params:l,pathname:kt([o,h.pathname]),pathnameBase:Dh(kt([o,h.pathnameBase])),route:v}),h.pathnameBase!=="/"&&(o=kt([o,h.pathnameBase]))}return s}function zh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ih(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,f,h)=>{let{paramName:v,isOptional:x}=f;if(v==="*"){let k=a[h]||"";s=o.slice(0,o.length-k.length).replace(/(.)\/+$/,"$1")}const w=a[h];return x&&!w?c[v]=void 0:c[v]=(w||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:e}}function Ih(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Si(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 Mh(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Si(!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 ji(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 Oh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fh=e=>Oh.test(e);function $h(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Pn(e):e,o;if(n)if(Fh(n))o=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),Si(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=Wa(n.substring(1),"/"):o=Wa(n,t)}else o=t;return{pathname:o,search:Ah(r),hash:Bh(l)}}function Wa(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 No(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 Uh(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ni(e,t){let n=Uh(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ci(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Pn(e):(l=vr({},e),X(!l.pathname||!l.pathname.includes("?"),No("?","pathname","search",l)),X(!l.pathname||!l.pathname.includes("#"),No("#","pathname","hash",l)),X(!l.search||!l.search.includes("#"),No("#","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=$h(l,a),c=s&&s!=="/"&&s.endsWith("/"),f=(o||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}const kt=e=>e.join("/").replace(/\/\/+/g,"/"),Dh=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ah=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Bh=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Wh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const xd=["post","put","patch","delete"];new Set(xd);const bh=["get",...xd];new Set(bh);/**
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 yr(){return yr=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},yr.apply(this,arguments)}const Ei=y.createContext(null),Vh=y.createContext(null),_t=y.createContext(null),Yl=y.createContext(null),rt=y.createContext({outlet:null,matches:[],isDataRoute:!1}),wd=y.createContext(null);function Hh(e,t){let{relative:n}=t===void 0?{}:t;Ln()||X(!1);let{basename:r,navigator:l}=y.useContext(_t),{hash:o,pathname:s,search:a}=jd(e,{relative:n}),u=s;return r!=="/"&&(u=s==="/"?r:kt([r,s])),l.createHref({pathname:u,search:a,hash:o})}function Ln(){return y.useContext(Yl)!=null}function Nr(){return Ln()||X(!1),y.useContext(Yl).location}function kd(e){y.useContext(_t).static||y.useLayoutEffect(e)}function Sd(){let{isDataRoute:e}=y.useContext(rt);return e?om():Qh()}function Qh(){Ln()||X(!1);let e=y.useContext(Ei),{basename:t,future:n,navigator:r}=y.useContext(_t),{matches:l}=y.useContext(rt),{pathname:o}=Nr(),s=JSON.stringify(Ni(l,n.v7_relativeSplatPath)),a=y.useRef(!1);return kd(()=>{a.current=!0}),y.useCallback(function(c,f){if(f===void 0&&(f={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let h=Ci(c,JSON.parse(s),o,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:kt([t,h.pathname])),(f.replace?r.replace:r.push)(h,f.state,f)},[t,r,s,o,e])}function Kh(){let{matches:e}=y.useContext(rt),t=e[e.length-1];return t?t.params:{}}function jd(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(_t),{matches:l}=y.useContext(rt),{pathname:o}=Nr(),s=JSON.stringify(Ni(l,r.v7_relativeSplatPath));return y.useMemo(()=>Ci(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function Gh(e,t){return Yh(e,t)}function Yh(e,t,n,r){Ln()||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=Nr(),f;if(t){var h;let N=typeof t=="string"?Pn(t):t;u==="/"||(h=N.pathname)!=null&&h.startsWith(u)||X(!1),f=N}else f=c;let v=f.pathname||"/",x=v;if(u!=="/"){let N=u.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(N.length).join("/")}let w=wh(e,{pathname:x}),k=em(w&&w.map(N=>Object.assign({},N,{params:Object.assign({},a,N.params),pathname:kt([u,l.encodeLocation?l.encodeLocation(N.pathname).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?u:kt([u,l.encodeLocation?l.encodeLocation(N.pathnameBase).pathname:N.pathnameBase])})),o,n,r);return t&&k?y.createElement(Yl.Provider,{value:{location:yr({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ft.Pop}},k):k}function Xh(){let e=lm(),t=Wh(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 qh=y.createElement(Xh,null);class Zh 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(wd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Jh(e){let{routeContext:t,match:n,children:r}=e,l=y.useContext(Ei);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 em(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 f=s.findIndex(h=>h.route.id&&a?.[h.route.id]!==void 0);f>=0||X(!1),s=s.slice(0,Math.min(s.length,f+1))}let u=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<s.length;f++){let h=s[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=f),h.route.id){let{loaderData:v,errors:x}=n,w=h.route.loader&&v[h.route.id]===void 0&&(!x||x[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((f,h,v)=>{let x,w=!1,k=null,N=null;n&&(x=a&&h.route.id?a[h.route.id]:void 0,k=h.route.errorElement||qh,u&&(c<0&&v===0?(sm("route-fallback"),w=!0,N=null):c===v&&(w=!0,N=h.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,v+1)),d=()=>{let p;return x?p=k:w?p=N:h.route.Component?p=y.createElement(h.route.Component,null):h.route.element?p=h.route.element:p=f,y.createElement(Jh,{match:h,routeContext:{outlet:f,matches:m,isDataRoute:n!=null},children:p})};return n&&(h.route.ErrorBoundary||h.route.errorElement||v===0)?y.createElement(Zh,{location:n.location,revalidation:n.revalidation,component:k,error:x,children:d(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):d()},null)}var Nd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Nd||{}),Cd=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}(Cd||{});function tm(e){let t=y.useContext(Ei);return t||X(!1),t}function nm(e){let t=y.useContext(Vh);return t||X(!1),t}function rm(e){let t=y.useContext(rt);return t||X(!1),t}function Ed(e){let t=rm(),n=t.matches[t.matches.length-1];return n.route.id||X(!1),n.route.id}function lm(){var e;let t=y.useContext(wd),n=nm(),r=Ed();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function om(){let{router:e}=tm(Nd.UseNavigateStable),t=Ed(Cd.UseNavigateStable),n=y.useRef(!1);return kd(()=>{n.current=!0}),y.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,yr({fromRouteId:t},o)))},[e,t])}const ba={};function sm(e,t,n){ba[e]||(ba[e]=!0)}function im(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function am(e){let{to:t,replace:n,state:r,relative:l}=e;Ln()||X(!1);let{future:o,static:s}=y.useContext(_t),{matches:a}=y.useContext(rt),{pathname:u}=Nr(),c=Sd(),f=Ci(t,Ni(a,o.v7_relativeSplatPath),u,l==="path"),h=JSON.stringify(f);return y.useEffect(()=>c(JSON.parse(h),{replace:n,state:r,relative:l}),[c,h,l,n,r]),null}function qt(e){X(!1)}function um(e){let{basename:t="/",children:n=null,location:r,navigationType:l=ft.Pop,navigator:o,static:s=!1,future:a}=e;Ln()&&X(!1);let u=t.replace(/^\/*/,"/"),c=y.useMemo(()=>({basename:u,navigator:o,static:s,future:yr({v7_relativeSplatPath:!1},a)}),[u,a,o,s]);typeof r=="string"&&(r=Pn(r));let{pathname:f="/",search:h="",hash:v="",state:x=null,key:w="default"}=r,k=y.useMemo(()=>{let N=ji(f,u);return N==null?null:{location:{pathname:N,search:h,hash:v,state:x,key:w},navigationType:l}},[u,f,h,v,x,w,l]);return k==null?null:y.createElement(_t.Provider,{value:c},y.createElement(Yl.Provider,{children:n,value:k}))}function Va(e){let{children:t,location:n}=e;return Gh(Ss(t),n)}new Promise(()=>{});function Ss(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,Ss(r.props.children,o));return}r.type!==qt&&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=Ss(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 js(){return js=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},js.apply(this,arguments)}function cm(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 dm(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fm(e,t){return e.button===0&&(!t||t==="_self")&&!dm(e)}const pm=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],hm="6";try{window.__reactRouterVersion=hm}catch{}const mm="startTransition",Ha=lf[mm];function vm(e){let{basename:t,children:n,future:r,window:l}=e,o=y.useRef();o.current==null&&(o.current=yh({window:l,v5Compat:!0}));let s=o.current,[a,u]=y.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},f=y.useCallback(h=>{c&&Ha?Ha(()=>u(h)):u(h)},[u,c]);return y.useLayoutEffect(()=>s.listen(f),[s,f]),y.useEffect(()=>im(r),[r]),y.createElement(um,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const ym=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gr=y.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:s,state:a,target:u,to:c,preventScrollReset:f,viewTransition:h}=t,v=cm(t,pm),{basename:x}=y.useContext(_t),w,k=!1;if(typeof c=="string"&&gm.test(c)&&(w=c,ym))try{let p=new URL(window.location.href),g=c.startsWith("//")?new URL(p.protocol+c):new URL(c),S=ji(g.pathname,x);g.origin===p.origin&&S!=null?c=S+g.search+g.hash:k=!0}catch{}let N=Hh(c,{relative:l}),m=xm(c,{replace:s,state:a,target:u,preventScrollReset:f,relative:l,viewTransition:h});function d(p){r&&r(p),p.defaultPrevented||m(p)}return y.createElement("a",js({},v,{href:w||N,onClick:k||o?r:d,ref:n,target:u}))});var Qa;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Qa||(Qa={}));var Ka;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ka||(Ka={}));function xm(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,u=Sd(),c=Nr(),f=jd(e,{relative:s});return y.useCallback(h=>{if(fm(h,n)){h.preventDefault();let v=r!==void 0?r:zl(c)===zl(f);u(e,{replace:v,state:l,preventScrollReset:o,relative:s,viewTransition:a})}},[c,u,f,r,l,n,e,o,s,a])}const Ga=e=>{let t;const n=new Set,r=(c,f)=>{const h=typeof c=="function"?c(t):c;if(!Object.is(h,t)){const v=t;t=f??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(x=>x(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},wm=e=>e?Ga(e):Ga,km=e=>e;function Sm(e,t=km){const n=Zt.useSyncExternalStore(e.subscribe,Zt.useCallback(()=>t(e.getState()),[e,t]),Zt.useCallback(()=>t(e.getInitialState()),[e,t]));return Zt.useDebugValue(n),n}const Ya=e=>{const t=wm(e),n=r=>Sm(t,r);return Object.assign(n,t),n},jm=e=>e?Ya(e):Ya,Ns="cw.token.v1";function Nm(e){try{return localStorage.getItem(e)}catch{return null}}function Cm(e,t){try{localStorage.setItem(e,t)}catch{}}function Em(e){try{localStorage.removeItem(e)}catch{}}function _m(){return Nm(Ns)}const Y=jm(e=>({token:_m(),setToken:t=>{t?Cm(Ns,t):Em(Ns),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"}})})),Pm=new Set(["running","running-tool","awaiting-user","errored"]);function Cs(e){return Pm.has(e.status)&&e.lastUserMessageAt||e.lastEventAt}function Lm(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:Cs(r)-Cs(n)})}let _e=null,il=500,Es=!1;function _d(e){if(Es=!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}),Xa(e);return}_e.onopen=()=>{il=500},_e.onmessage=r=>{let l;try{l=JSON.parse(r.data)}catch{return}Rm(l)},_e.onclose=r=>{if(r.code===4001){Y.getState().setConnection({status:"unauthorized",lastError:"Token rejected."}),Y.getState().setToken(null);return}if(Es){Y.getState().setConnection({status:"disconnected"});return}Xa(e)},_e.onerror=()=>{}}function Pd(){Es=!0;try{_e?.close()}catch{}_e=null}function Tm(e){_e?.readyState===WebSocket.OPEN&&_e.send(JSON.stringify(e))}function Xa(e){Y.getState().setConnection({status:"connecting",lastError:"Reconnecting…"});const t=Math.min(il,3e4);il=Math.min(il*2,3e4),setTimeout(()=>_d(e),t)}function Rm(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 zm(){const e=Y(S=>S.setToken),[t,n]=y.useState(null),[r,l]=y.useState(null),[o,s]=y.useState(null),[a,u]=y.useState(""),[c,f]=y.useState(""),[h,v]=y.useState(!1),[x,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(C=>C.ok?C.json():null).then(C=>{C&&l(C)}).catch(()=>{}),fetch("/api/pairing").then(C=>C.ok?C.json():null).then(C=>{C&&n(C)}).catch(()=>{})},[]),y.useEffect(()=>{!r||!x||r.passwordRequired||h||k({token:x})},[r,x]);async function k(S){v(!0),s(null);try{const E=await fetch("/api/login",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(S)}),C=await E.json().catch(()=>({}));if(!E.ok){C.error==="invalid_password"?s("Incorrect password."):C.error==="password_required"?s("Password required."):C.error==="invalid_token"?s("Invalid or missing pairing token."):s("Login failed.");return}e(C.jwt),window.location.reload()}catch{s("Network error.")}finally{v(!1)}}function N(S){if(S.preventDefault(),!c){s("Enter a password.");return}k({token:x??void 0,password:c})}function m(S){if(S.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,p=!!t,g=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(Mm,{}),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&&!p&&i.jsxs("form",{onSubmit:N,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:S=>f(S.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"})]}),p&&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:g?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:g?"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 S=Im(t.url);S&&(w(S),d||k({token:S}))},disabled:h,children:d?"Or enter the password here":"Or just use this device to watch"}),d&&x&&i.jsxs("form",{onSubmit:N,className:"w-full max-w-sm mt-4",children:[i.jsx("input",{type:"password",value:c,onChange:S=>f(S.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"})]})]}),!p&&!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:m,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:S=>u(S.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 Im(e){try{return new URL(e).searchParams.get("token")}catch{return null}}function Mm(){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 Ld=(...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 Om=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 Fm=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 qa=e=>{const t=Fm(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 Co={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 $m=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Um=y.createContext({}),Dm=()=>y.useContext(Um),Am=y.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:l="",children:o,iconNode:s,...a},u)=>{const{size:c=24,strokeWidth:f=2,absoluteStrokeWidth:h=!1,color:v="currentColor",className:x=""}=Dm()??{},w=r??h?Number(n??f)*24/Number(t??c):n??f;return y.createElement("svg",{ref:u,...Co,width:t??c??Co.width,height:t??c??Co.height,stroke:e??v,strokeWidth:w,className:Ld("lucide",x,l),...!o&&!$m(a)&&{"aria-hidden":"true"},...a},[...s.map(([k,N])=>y.createElement(k,N)),...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(Am,{ref:o,iconNode:t,className:Ld(`lucide-${Om(qa(e))}`,`lucide-${e}`,r),...l}));return n.displayName=qa(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 Bm=[["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"}]],Wm=$("activity",Bm);/**
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 bm=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vm=$("check",bm);/**
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 Hm=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Tn=$("chevron-down",Hm);/**
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 Qm=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Td=$("chevron-left",Qm);/**
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 Km=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Rd=$("chevron-right",Km);/**
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 Gm=[["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"}]],Ym=$("circle-alert",Gm);/**
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 Xm=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],qm=$("circle",Xm);/**
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 Zm=[["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"}]],Jm=$("copy",Zm);/**
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 ev=[["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"}]],Eo=$("external-link",ev);/**
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 tv=[["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"}]],Za=$("file-pen",tv);/**
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 nv=[["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"}]],_s=$("file-text",nv);/**
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 rv=[["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"}]],lv=$("folder-open",rv);/**
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 ov=[["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"}]],sv=$("git-branch",ov);/**
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 iv=[["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"}]],av=$("globe",iv);/**
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 uv=[["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"}]],Ja=$("hash",uv);/**
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 cv=[["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"}]],dv=$("image",cv);/**
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 fv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],pv=$("info",fv);/**
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 hv=[["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"}]],mv=$("message-square",hv);/**
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 vv=[["path",{d:"M5 12h14",key:"1ays0h"}]],yv=$("minus",vv);/**
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 gv=[["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"}]],xv=$("paperclip",gv);/**
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 wv=[["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"}]],kv=$("rotate-ccw",wv);/**
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 Sv=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],jv=$("search",Sv);/**
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 Nv=[["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"}]],Cv=$("settings",Nv);/**
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 Ev=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],_v=$("terminal",Ev);/**
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 Pv=[["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"}]],zd=$("wrench",Pv);/**
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 Lv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Id=$("x",Lv);/**
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 Tv=[["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"}]],Rv=$("zap",Tv),Md={running:{color:"var(--status-running)",label:"Running",pulse:!0,quiet:!1,Icon:qm},"running-tool":{color:"var(--status-tool)",label:"Tool running",pulse:!0,quiet:!1,Icon:zd},"awaiting-user":{color:"var(--status-waiting)",label:"Awaiting your reply",pulse:!1,quiet:!1,Icon:mv},idle:{color:"var(--status-idle)",label:"Idle",pulse:!1,quiet:!0,Icon:yv},errored:{color:"var(--status-error)",label:"Error",pulse:!1,quiet:!1,Icon:Ym},compacted:{color:"var(--text-faint)",label:"Compacted",pulse:!1,quiet:!0,Icon:kv}};function Od({status:e,size:t=22}){const n=Md[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 zv(e){return Md[e].label}function Fd({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 $d(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 _i(e){return new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}const eu={"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 Iv(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 tu({session:e,now:t}){const n=e.customTitle??e.aiTitle,r=e.lastUserMessagePreview||e.gitBranch||"",l=e.currentActivity||"",o=eu[e.source]??eu["claude-code"],s=Iv(e.status);return i.jsx(gr,{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(Od,{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(Fd,{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:$d(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 Mv={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 Ov({status:e}){const t=Mv[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 bn=[{id:"running",label:"Running",dot:"var(--status-running)",statuses:["running","running-tool"]},{id:"waiting",label:"Waiting",dot:"var(--status-waiting)",statuses:["awaiting-user"]},{id:"idle",label:"Idle",dot:"var(--text-faint)",statuses:["idle"]},{id:"errored",label:"Errored",dot:"var(--status-error)",statuses:["errored"]}],$t=new Set(["running","waiting","errored"]);function Ud(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Fv({selected:e,onChange:t}){const[n,r]=y.useState(!1),l=y.useRef(null);y.useEffect(()=>{if(!n)return;const f=h=>{l.current&&!l.current.contains(h.target)&&r(!1)};return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[n]);const o=e.size===bn.length,s=Ud(e,$t),a=o?"All":s?"Active":[...bn.filter(f=>e.has(f.id)).map(f=>f.label)].join(", "),u=!s;function c(f){const h=new Set(e);h.has(f)?h.delete(f):h.add(f),t(h.size===0?new Set($t):h)}return i.jsxs("div",{ref:l,style:{position:"relative"},children:[i.jsxs("button",{onClick:()=>r(f=>!f),className:"flex items-center gap-1 text-xs px-2.5 py-1.5 rounded-md font-medium transition-colors",style:{background:u?"var(--accent)":"var(--bg-subtle)",color:u?"white":"var(--text-muted)",border:`1px solid ${u?"var(--accent)":"var(--border)"}`,maxWidth:"140px"},children:[i.jsx("span",{className:"truncate",children:a}),i.jsx(Tn,{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:"148px"},children:[i.jsxs("div",{style:{borderBottom:"1px solid var(--border)"},children:[i.jsx("button",{onClick:()=>{t(new Set($t)),r(!1)},className:"w-full text-left px-3 py-2 text-xs hover:opacity-80",style:{color:s?"var(--accent)":"var(--text-muted)",fontWeight:s?600:400},children:"Active (default)"}),i.jsx("button",{onClick:()=>{t(new Set(bn.map(f=>f.id))),r(!1)},className:"w-full text-left px-3 py-2 text-xs hover:opacity-80",style:{color:o?"var(--accent)":"var(--text-muted)",fontWeight:o?600:400},children:"All statuses"})]}),bn.map(f=>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(f.id),onChange:()=>c(f.id),className:"accent-accent"}),i.jsx("span",{className:"inline-block w-2 h-2 rounded-full flex-shrink-0",style:{background:f.dot}}),i.jsx("span",{className:"text-xs",style:{color:"var(--text)"},children:f.label})]},f.id))]})]})}const Vr=[{source:"claude-code",label:"Claude Code"},{source:"cowork",label:"Cowork"},{source:"cursor",label:"Cursor"}];function $v({selected:e,onChange:t}){const[n,r]=y.useState(!1),l=y.useRef(null);y.useEffect(()=>{if(!n)return;const c=f=>{l.current&&!l.current.contains(f.target)&&r(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[n]);const o=e.size===0||e.size===Vr.length,s=o?"All providers":Vr.filter(c=>e.has(c.source)).map(c=>c.source==="claude-code"?"Claude":c.label).join(", ");function a(c){const f=new Set(e);f.has(c)?f.delete(c):f.add(c),t(f.size===0||f.size===Vr.length?new Set:f)}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(Tn,{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"})]}),Vr.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(Fd,{source:c.source,size:11}),i.jsx("span",{className:"text-xs",style:{color:"var(--text)"},children:c.label})]},c.source))]})]})}function Uv({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(Tn,{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 Dv(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(Cs))})).sort((n,r)=>r.latestKey-n.latestKey)}function Av(){const e=Y(p=>p.sessions),t=Y(p=>p.connection),[n,r]=y.useState(Date.now()),[l,o]=y.useState(new Set),[s,a]=y.useState(null),[u,c]=y.useState(new Set($t)),[f,h]=y.useState("");y.useEffect(()=>{const p=setInterval(()=>r(Date.now()),5e3);return()=>clearInterval(p)},[]);const v=y.useMemo(()=>Lm(e),[e,n]),x=y.useMemo(()=>{const p=new Set;for(const g of bn)u.has(g.id)&&g.statuses.forEach(S=>p.add(S));return p},[u]),w=y.useMemo(()=>{const p=new Set;for(const g of v)g.status!=="compacted"&&p.add(g.projectLabel);return[...p].sort()},[v]),k=y.useMemo(()=>v.filter(p=>p.status!=="compacted").length,[v]),N=y.useMemo(()=>{let p=v.filter(g=>!(g.status==="compacted"||!x.has(g.status)||l.size>0&&!l.has(g.source)||s&&g.projectLabel!==s));if(f.trim()){const g=f.toLowerCase();p=p.filter(S=>S.projectLabel.toLowerCase().includes(g)||(S.aiTitle??"").toLowerCase().includes(g)||(S.customTitle??"").toLowerCase().includes(g)||(S.lastUserMessagePreview??"").toLowerCase().includes(g))}return p},[v,x,l,s,f]),m=y.useMemo(()=>s?[{label:s,sessions:N,latestKey:0}]:Dv(N),[N,s]),d=l.size>0||s!==null||f.trim()!==""||!Ud(u,$t);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:[N.length,N.length!==k&&i.jsxs("span",{style:{opacity:.6},children:[" · ",k]})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(Ov,{status:t.status}),i.jsx(gr,{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(Cv,{size:15})})]})]}),i.jsx("input",{value:f,onChange:p=>h(p.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 flex-wrap",children:[i.jsx(Fv,{selected:u,onChange:c}),i.jsx($v,{selected:l,onChange:o}),i.jsx(Uv,{projects:w,selected:s,onChange:a}),d&&i.jsx("button",{onClick:()=>{o(new Set),a(null),c(new Set($t)),h("")},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:N.length===0?i.jsx(Bv,{hasFilters:d,totalCount:k,onClear:()=>{o(new Set),a(null),c(new Set($t)),h("")}}):s?i.jsx("ul",{children:N.map(p=>i.jsx("li",{children:i.jsx(tu,{session:p,now:n})},p.id))}):i.jsx("div",{children:m.map(p=>i.jsxs("section",{children:[m.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:p.label.split("/").pop()??p.label}),i.jsx("span",{className:"text-[10px] tabular-nums ml-auto flex-shrink-0",style:{color:"var(--text-faint)",fontFamily:"var(--font-mono)"},children:p.sessions.length})]}),i.jsx("ul",{children:p.sessions.map(g=>i.jsx("li",{children:i.jsx(tu,{session:g,now:n})},g.id))})]},p.label))})})]})}function Bv({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 Dd({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(Id,{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()," · ",Wv(n)]})]})}function Wv(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}const _o=800;function bv({event:e}){return e.type==="user"?i.jsx(Vv,{event:e}):e.type==="assistant"?i.jsx(Qv,{event:e}):e.type==="thinking"?i.jsx(Kv,{event:e}):e.type==="summary"?i.jsx(nu,{event:e,label:"Session compacted"}):e.type==="attachment"?i.jsx(Gv,{event:e}):i.jsx(nu,{event:e,label:e.text??"system"})}function Vv({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(Pi,{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(Hv,{images:e.images}),r&&i.jsx("div",{className:"whitespace-pre-wrap break-words text-sm",style:{lineHeight:1.5},children:r})]})]})}function Hv({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(Dd,{src:`/api/attachment/${n.hash}?token=${encodeURIComponent(t)}`,mediaType:n.mediaType,sizeBytes:n.sizeBytes,onClose:()=>r(null)})]}):null}function Qv({event:e}){const[t,n]=y.useState(!1);if(!e.text&&!e.thinking)return null;const r=e.text??"",l=!t&&r.length>_o?r.slice(0,_o)+"…":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(Pi,{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>_o&&i.jsx("button",{onClick:()=>n(!0),className:"ml-2 underline text-xs",style:{color:"var(--accent)",fontFamily:"var(--font-sans)"},children:"Show full"})]})]})]})}function Kv({event:e}){return e.thinking?i.jsxs("div",{className:"flex flex-col items-start my-2 slide-in",children:[i.jsx(Pi,{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 nu({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:_i(e.ts)})]})}function Gv({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(xv,{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:_i(e.ts)})]})}function Pi({ts:e}){return i.jsx("div",{className:"text-[10px] mx-1",style:{color:"var(--text-faint)",fontFamily:"var(--font-mono)"},children:_i(e)})}function Yv(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:Zv(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 Xv(e){if(e.length===0)return"Tool call";const n=e.map(o=>o.use).map(o=>o.toolName??"tool"),r=ru(n[0]),l=n.every(o=>ru(o)===r);if(e.length===1)return Ad(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 Ad(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 ${Hr(String(r.file_path??""))}`;case"Write":return`Wrote ${Hr(String(r.file_path??""))}`;case"Edit":case"NotebookEdit":{const l=Hr(String(r.file_path??"")),o=lu(String(r.new_string??"")),s=lu(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 ${Hr(String(r.path))}`:""}`;case"Glob":return`Glob ${String(r.pattern??"").slice(0,40)}`;case"WebFetch":return`Fetched ${qv(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 ru(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 Hr(e){const t=e.replace(/\\/g,"/").split("/");return t.length>2?"…/"+t.slice(-2).join("/"):e}function qv(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 lu(e){return e?e.split(`
239
+ `).length:0}function Zv(e){return{sessionId:e.sessionId,ts:e.ts,type:"tool_use",toolName:"tool",toolUseId:e.toolUseRef}}function Jv(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 ey({pairs:e,isLast:t}){const[n,r]=y.useState(!1),l=Xv(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(Tn,{size:14,style:{flexShrink:0,color:"var(--text-faint)"}}):i.jsx(Rd,{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(ty,{pair:a},`${a.use.toolUseId??u}`))})]})}function ty({pair:e}){const[t,n]=y.useState(!1),r=Ad(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(ry,{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(Tn,{size:11,style:{color:"var(--text-faint)",flexShrink:0}}):i.jsx(Rd,{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(ny,{images:e.result.images}),e.result&&Jv(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 ny({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(dv,{size:9})," ",l.mediaType.replace("image/","")]})]},l.hash)})}),n&&i.jsx(Dd,{src:`/api/attachment/${n.hash}?token=${encodeURIComponent(t)}`,mediaType:n.mediaType,sizeBytes:n.sizeBytes,onClose:()=>r(null)})]}):null}function ry({name:e,size:t=14}){const n=(e??"").toLowerCase(),r={flexShrink:0,color:"var(--text-faint)"};return n==="bash"||n.startsWith("bash_")?i.jsx(_v,{size:t,style:r}):n==="read"?i.jsx(_s,{size:t,style:r}):n==="write"?i.jsx(Za,{size:t,style:r}):n==="edit"||n==="notebookedit"?i.jsx(Za,{size:t,style:r}):n==="grep"||n==="glob"?i.jsx(jv,{size:t,style:r}):n==="webfetch"||n==="websearch"?i.jsx(av,{size:t,style:r}):n==="task"||n==="agent"?i.jsx(Rv,{size:t,style:r}):i.jsx(zd,{size:t,style:r})}function ly({sessionId:e,onClose:t}){const n=Y(f=>f.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(f=>f.ok?f.json():Promise.reject(f.statusText)).then(l).catch(f=>s(String(f)))},[e,n]),y.useEffect(()=>{const f=h=>{h.key==="Escape"&&t()};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[t]),y.useEffect(()=>{const f=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=f}},[]);async function c(f,h){try{await navigator.clipboard.writeText(f),u(h),setTimeout(()=>u(v=>v===h?null:v),1500)}catch{const v=document.createElement("textarea");v.value=f,v.style.position="fixed",v.style.opacity="0",document.body.appendChild(v),v.select();try{document.execCommand("copy"),u(h),setTimeout(()=>u(x=>x===h?null:x),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:f=>f.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(_s,{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(Id,{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(Gt,{icon:i.jsx(_s,{size:13}),label:r.filePath?.startsWith("cursor:")?"Cursor DB entry":"Transcript file",children:r.filePath?i.jsx(Qr,{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?oy(r.fileSize??0):"file no longer exists"}):i.jsx("span",{style:{color:"var(--text-muted)"},children:"(unknown)"})}),i.jsx(Gt,{icon:i.jsx(lv,{size:13}),label:"Project",children:i.jsx(Qr,{value:r.projectPath,copyKey:"projectPath",copied:a,onCopy:c,secondary:r.projectLabel})}),r.gitBranch&&i.jsx(Gt,{icon:i.jsx(sv,{size:13}),label:"Git branch",children:i.jsx("span",{className:"text-sm font-mono",style:{color:"var(--text)"},children:r.gitBranch})}),i.jsx(Gt,{icon:i.jsx(Ja,{size:13}),label:"Session ID",children:i.jsx(Qr,{value:r.sessionId,copyKey:"sessionId",copied:a,onCopy:c,secondary:`source: ${r.source}`})}),r.parentSessionId&&i.jsx(Gt,{icon:i.jsx(Ja,{size:13}),label:"Parent session (subagent)",children:i.jsx(Qr,{value:r.parentSessionId,copyKey:"parentSessionId",copied:a,onCopy:c})}),i.jsx(Gt,{icon:i.jsx(Wm,{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(Kr,{label:"Status",value:r.status}),i.jsx(Kr,{label:"Events",value:r.eventCount.toLocaleString()}),i.jsx(Kr,{label:"Last event",value:r.lastEventAt?new Date(r.lastEventAt).toLocaleString():"—"}),i.jsx(Kr,{label:"Last user msg",value:r.lastUserMessageAt?new Date(r.lastUserMessageAt).toLocaleString():"—"})]})})]})]})]})})}function Gt({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 Qr({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(Vm,{size:13}):i.jsx(Jm,{size:13})})]})}function Kr({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 oy(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 sy=[],Gr=80;function iy(){const{id:e}=Kh(),t=Y(d=>e?d.sessions[e]:void 0),r=Y(d=>e?d.events[e]:void 0)??sy,l=Y(d=>d.token),[o,s]=y.useState(!1),[a,u]=y.useState(!0),[c,f]=y.useState(!1),[h,v]=y.useState(Gr),x=y.useRef(null),w=y.useRef(0),k=y.useRef(0),N=y.useRef(!1);y.useEffect(()=>{v(Gr),s(!1)},[e]),y.useEffect(()=>{e&&l&&!o&&(Tm({kind:"request_history",sessionId:e,limit:150}),s(!0))},[e,l,o]),y.useLayoutEffect(()=>{if(N.current&&x.current){const d=x.current;d.scrollTop=d.scrollTop+(d.scrollHeight-k.current),N.current=!1}}),y.useEffect(()=>{if(r.length>w.current&&a&&x.current){const d=x.current;d.scrollTop=d.scrollHeight}w.current=r.length},[r.length,a]),y.useEffect(()=>{const d=x.current;if(!d)return;const p=()=>{const g=d.scrollHeight-d.scrollTop-d.clientHeight<80;u(g)};return d.addEventListener("scroll",p,{passive:!0}),()=>d.removeEventListener("scroll",p)},[]);const m=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(gr,{to:"/",className:"flex items-center justify-center w-8 h-8 rounded-md",style:{background:"var(--bg-subtle)",color:"var(--accent)"},children:i.jsx(Td,{size:18})}),i.jsx(Od,{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:zv(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:()=>f(!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(pv,{size:14})}),i.jsx("div",{className:"text-xs",style:{color:"var(--text-faint)"},children:$d(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(ly,{sessionId:t.id,onClose:()=>f(!1)}),i.jsx("div",{ref:x,className:"flex-1 overflow-y-auto px-3 py-2 safe-bottom",children:m.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,m.length-h),p=d>0?m.slice(d):m,g=Yv(p);return i.jsxs(i.Fragment,{children:[d>0&&i.jsx("div",{className:"flex justify-center py-3",children:i.jsxs("button",{onClick:()=>{x.current&&(k.current=x.current.scrollHeight,N.current=!0),v(S=>S+Gr)},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(Gr,d)," older messages (",d," hidden)"]})}),g.map((S,E)=>{if(S.kind==="tools"){const L=S.pairs[0]?.use.toolUseId??`tools-${E}`;return i.jsx(ey,{pairs:S.pairs,isLast:E===g.length-1},L)}const C=S.event;return i.jsx(bv,{event:C},`${C.uuid??C.ts}-${E}`)})]})})()}),!a&&i.jsxs("button",{onClick:()=>{const d=x.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(Tn,{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(gr,{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 ay(){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),[f,h]=y.useState(""),[v,x]=y.useState(!1),[w,k]=y.useState(null),[N,m]=y.useState(!1),[d,p]=y.useState(null),[g,S]=y.useState(""),[E,C]=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),p(T),x(!!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}),p(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(){m(!0);try{await z({ngrokAuthtoken:f}),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{m(!1)}}async function lt(T){C(!0);try{await z({password:T?"":g}),S(""),alert(T?"Password cleared. Anyone with the pairing URL can now connect.":"Password set. Existing devices may need to re-authenticate.")}finally{C(!1)}}function Pt(){confirm("Forget this pairing? You'll need to scan again.")&&(Pd(),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(gr,{to:"/",className:"flex items-center justify-center w-8 h-8 rounded-md",style:{background:"var(--bg-subtle)",color:"var(--accent)"},children:i.jsx(Td,{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(Yt,{title:"Connection",children:[i.jsx(Xt,{label:"Status",children:i.jsx("span",{style:{color:n.status==="connected"?"var(--status-running)":"var(--text-muted)"},children:n.status})}),i.jsx(Xt,{label:"Host",children:i.jsx("span",{children:n.hostname??l?.host??"—"})}),i.jsx(Xt,{label:"Platform",children:i.jsx("span",{children:n.platform??l?.platform??"—"})}),i.jsx(Xt,{label:"Daemon version",children:i.jsx("span",{style:{fontFamily:"var(--font-mono)"},children:n.agentVersion??l?.version??"—"})}),i.jsx(Xt,{label:"Sessions cached",children:i.jsx("span",{children:r})})]}),i.jsxs(Yt,{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(Eo,{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(Eo,{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(Eo,{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:f,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:!f.trim()||N,className:"text-xs px-3 py-1.5 rounded font-medium",style:{background:f.trim()?"var(--accent)":"var(--bg-subtle)",color:f.trim()?"white":"var(--text-muted)",opacity:N?.6:1},children:N?"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=>{x(T.target.checked),await z({ngrokDisabled:T.target.checked})}})]})]})]}),u&&i.jsxs(Yt,{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:g,onChange:T=>S(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:!g||E,className:"text-xs px-3 py-1.5 rounded font-medium",style:{background:g?"var(--accent)":"var(--bg-subtle)",color:g?"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(Yt,{title:"Desktop preferences",subtitle:"Only visible & editable from the desktop running the daemon.",children:[i.jsx(Xt,{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(Yt,{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(Yt,{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 Yt({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 Xt({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 uy(){const e=Y(t=>t.token);return y.useEffect(()=>{if(e)return _d(e),()=>Pd()},[e]),e?i.jsxs(Va,{children:[i.jsx(qt,{path:"/",element:i.jsx(Av,{})}),i.jsx(qt,{path:"/s/:id",element:i.jsx(iy,{})}),i.jsx(qt,{path:"/settings",element:i.jsx(ay,{})}),i.jsx(qt,{path:"*",element:i.jsx(am,{to:"/",replace:!0})})]}):i.jsx(Va,{children:i.jsx(qt,{path:"*",element:i.jsx(zm,{})})})}Po.createRoot(document.getElementById("root")).render(i.jsx(Zt.StrictMode,{children:i.jsx(vm,{children:i.jsx(uy,{})})}));