@shinobiapps/shinobi 0.3.2 → 0.4.0

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,318 @@
1
+ function Kd(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 i=Object.getOwnPropertyDescriptor(r,l);i&&Object.defineProperty(e,l,i.get?i:{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 i of l)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();function Yd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sc={exports:{}},Ms={},lc={exports:{}},I={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var wr=Symbol.for("react.element"),Gd=Symbol.for("react.portal"),Xd=Symbol.for("react.fragment"),qd=Symbol.for("react.strict_mode"),Jd=Symbol.for("react.profiler"),Zd=Symbol.for("react.provider"),ef=Symbol.for("react.context"),tf=Symbol.for("react.forward_ref"),nf=Symbol.for("react.suspense"),rf=Symbol.for("react.memo"),sf=Symbol.for("react.lazy"),Ca=Symbol.iterator;function lf(e){return e===null||typeof e!="object"?null:(e=Ca&&e[Ca]||e["@@iterator"],typeof e=="function"?e:null)}var ic={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ac=Object.assign,oc={};function Cn(e,t,n){this.props=e,this.context=t,this.refs=oc,this.updater=n||ic}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 cc(){}cc.prototype=Cn.prototype;function Pi(e,t,n){this.props=e,this.context=t,this.refs=oc,this.updater=n||ic}var Ti=Pi.prototype=new cc;Ti.constructor=Pi;ac(Ti,Cn.prototype);Ti.isPureReactComponent=!0;var Pa=Array.isArray,uc=Object.prototype.hasOwnProperty,Li={current:null},dc={key:!0,ref:!0,__self:!0,__source:!0};function fc(e,t,n){var r,l={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)uc.call(t,r)&&!dc.hasOwnProperty(r)&&(l[r]=t[r]);var o=arguments.length-2;if(o===1)l.children=n;else if(1<o){for(var c=Array(o),f=0;f<o;f++)c[f]=arguments[f+2];l.children=c}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)l[r]===void 0&&(l[r]=o[r]);return{$$typeof:wr,type:e,key:i,ref:a,props:l,_owner:Li.current}}function af(e,t){return{$$typeof:wr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Mi(e){return typeof e=="object"&&e!==null&&e.$$typeof===wr}function of(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ta=/\/+/g;function sl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?of(""+e.key):t.toString(36)}function Kr(e,t,n,r,l){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case wr:case Gd:a=!0}}if(a)return a=e,l=l(a),e=r===""?"."+sl(a,0):r,Pa(l)?(n="",e!=null&&(n=e.replace(Ta,"$&/")+"/"),Kr(l,t,n,"",function(f){return f})):l!=null&&(Mi(l)&&(l=af(l,n+(!l.key||a&&a.key===l.key?"":(""+l.key).replace(Ta,"$&/")+"/")+e)),t.push(l)),1;if(a=0,r=r===""?".":r+":",Pa(e))for(var o=0;o<e.length;o++){i=e[o];var c=r+sl(i,o);a+=Kr(i,t,n,c,l)}else if(c=lf(e),typeof c=="function")for(e=c.call(e),o=0;!(i=e.next()).done;)i=i.value,c=r+sl(i,o++),a+=Kr(i,t,n,c,l);else if(i==="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 a}function Tr(e,t,n){if(e==null)return e;var r=[],l=0;return Kr(e,r,"","",function(i){return t.call(n,i,l++)}),r}function cf(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 je={current:null},Yr={transition:null},uf={ReactCurrentDispatcher:je,ReactCurrentBatchConfig:Yr,ReactCurrentOwner:Li};function pc(){throw Error("act(...) is not supported in production builds of React.")}I.Children={map:Tr,forEach:function(e,t,n){Tr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Tr(e,function(){t++}),t},toArray:function(e){return Tr(e,function(t){return t})||[]},only:function(e){if(!Mi(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};I.Component=Cn;I.Fragment=Xd;I.Profiler=Jd;I.PureComponent=Pi;I.StrictMode=qd;I.Suspense=nf;I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uf;I.act=pc;I.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=ac({},e.props),l=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Li.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var o=e.type.defaultProps;for(c in t)uc.call(t,c)&&!dc.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&o!==void 0?o[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){o=Array(c);for(var f=0;f<c;f++)o[f]=arguments[f+2];r.children=o}return{$$typeof:wr,type:e.type,key:l,ref:i,props:r,_owner:a}};I.createContext=function(e){return e={$$typeof:ef,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Zd,_context:e},e.Consumer=e};I.createElement=fc;I.createFactory=function(e){var t=fc.bind(null,e);return t.type=e,t};I.createRef=function(){return{current:null}};I.forwardRef=function(e){return{$$typeof:tf,render:e}};I.isValidElement=Mi;I.lazy=function(e){return{$$typeof:sf,_payload:{_status:-1,_result:e},_init:cf}};I.memo=function(e,t){return{$$typeof:rf,type:e,compare:t===void 0?null:t}};I.startTransition=function(e){var t=Yr.transition;Yr.transition={};try{e()}finally{Yr.transition=t}};I.unstable_act=pc;I.useCallback=function(e,t){return je.current.useCallback(e,t)};I.useContext=function(e){return je.current.useContext(e)};I.useDebugValue=function(){};I.useDeferredValue=function(e){return je.current.useDeferredValue(e)};I.useEffect=function(e,t){return je.current.useEffect(e,t)};I.useId=function(){return je.current.useId()};I.useImperativeHandle=function(e,t,n){return je.current.useImperativeHandle(e,t,n)};I.useInsertionEffect=function(e,t){return je.current.useInsertionEffect(e,t)};I.useLayoutEffect=function(e,t){return je.current.useLayoutEffect(e,t)};I.useMemo=function(e,t){return je.current.useMemo(e,t)};I.useReducer=function(e,t,n){return je.current.useReducer(e,t,n)};I.useRef=function(e){return je.current.useRef(e)};I.useState=function(e){return je.current.useState(e)};I.useSyncExternalStore=function(e,t,n){return je.current.useSyncExternalStore(e,t,n)};I.useTransition=function(){return je.current.useTransition()};I.version="18.3.1";lc.exports=I;var v=lc.exports;const df=Yd(v),ff=Kd({__proto__:null,default:df},[v]);/**
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 pf=v,mf=Symbol.for("react.element"),hf=Symbol.for("react.fragment"),xf=Object.prototype.hasOwnProperty,gf=pf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vf={key:!0,ref:!0,__self:!0,__source:!0};function mc(e,t,n){var r,l={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)xf.call(t,r)&&!vf.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:mf,type:e,key:i,ref:a,props:l,_owner:gf.current}}Ms.Fragment=hf;Ms.jsx=mc;Ms.jsxs=mc;sc.exports=Ms;var s=sc.exports,hc={exports:{}},Le={},xc={exports:{}},gc={};/**
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(T,z){var O=T.length;T.push(z);e:for(;0<O;){var Z=O-1>>>1,oe=T[Z];if(0<l(oe,z))T[Z]=z,T[O]=oe,O=Z;else break e}}function n(T){return T.length===0?null:T[0]}function r(T){if(T.length===0)return null;var z=T[0],O=T.pop();if(O!==z){T[0]=O;e:for(var Z=0,oe=T.length,Cr=oe>>>1;Z<Cr;){var zt=2*(Z+1)-1,rl=T[zt],Ot=zt+1,Pr=T[Ot];if(0>l(rl,O))Ot<oe&&0>l(Pr,rl)?(T[Z]=Pr,T[Ot]=O,Z=Ot):(T[Z]=rl,T[zt]=O,Z=zt);else if(Ot<oe&&0>l(Pr,O))T[Z]=Pr,T[Ot]=O,Z=Ot;else break e}}return z}function l(T,z){var O=T.sortIndex-z.sortIndex;return O!==0?O:T.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,o=a.now();e.unstable_now=function(){return a.now()-o}}var c=[],f=[],p=1,d=null,m=3,w=!1,g=!1,j=!1,y=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,u=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(T){for(var z=n(f);z!==null;){if(z.callback===null)r(f);else if(z.startTime<=T)r(f),z.sortIndex=z.expirationTime,t(c,z);else break;z=n(f)}}function N(T){if(j=!1,x(T),!g)if(n(c)!==null)g=!0,tl(b);else{var z=n(f);z!==null&&nl(N,z.startTime-T)}}function b(T,z){g=!1,j&&(j=!1,h(E),E=-1),w=!0;var O=m;try{for(x(z),d=n(c);d!==null&&(!(d.expirationTime>z)||T&&!C());){var Z=d.callback;if(typeof Z=="function"){d.callback=null,m=d.priorityLevel;var oe=Z(d.expirationTime<=z);z=e.unstable_now(),typeof oe=="function"?d.callback=oe:d===n(c)&&r(c),x(z)}else r(c);d=n(c)}if(d!==null)var Cr=!0;else{var zt=n(f);zt!==null&&nl(N,zt.startTime-z),Cr=!1}return Cr}finally{d=null,m=O,w=!1}}var k=!1,_=null,E=-1,F=5,M=-1;function C(){return!(e.unstable_now()-M<F)}function ae(){if(_!==null){var T=e.unstable_now();M=T;var z=!0;try{z=_(!0,T)}finally{z?Mn():(k=!1,_=null)}}else k=!1}var Mn;if(typeof u=="function")Mn=function(){u(ae)};else if(typeof MessageChannel<"u"){var Ea=new MessageChannel,Qd=Ea.port2;Ea.port1.onmessage=ae,Mn=function(){Qd.postMessage(null)}}else Mn=function(){y(ae,0)};function tl(T){_=T,k||(k=!0,Mn())}function nl(T,z){E=y(function(){T(e.unstable_now())},z)}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(T){T.callback=null},e.unstable_continueExecution=function(){g||w||(g=!0,tl(b))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(T){switch(m){case 1:case 2:case 3:var z=3;break;default:z=m}var O=m;m=z;try{return T()}finally{m=O}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,z){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var O=m;m=T;try{return z()}finally{m=O}},e.unstable_scheduleCallback=function(T,z,O){var Z=e.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?Z+O:Z):O=Z,T){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=O+oe,T={id:p++,callback:z,priorityLevel:T,startTime:O,expirationTime:oe,sortIndex:-1},O>Z?(T.sortIndex=O,t(f,T),n(c)===null&&T===n(f)&&(j?(h(E),E=-1):j=!0,nl(N,O-Z))):(T.sortIndex=oe,t(c,T),g||w||(g=!0,tl(b))),T},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(T){var z=m;return function(){var O=m;m=z;try{return T.apply(this,arguments)}finally{m=O}}}})(gc);xc.exports=gc;var yf=xc.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 jf=v,Te=yf;function S(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 vc=new Set,tr={};function Gt(e,t){jn(e,t),jn(e+"Capture",t)}function jn(e,t){for(tr[e]=t,e=0;e<t.length;e++)vc.add(t[e])}var st=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ll=Object.prototype.hasOwnProperty,wf=/^[: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]*$/,La={},Ma={};function Nf(e){return Ll.call(Ma,e)?!0:Ll.call(La,e)?!1:wf.test(e)?Ma[e]=!0:(La[e]=!0,!1)}function kf(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 Sf(e,t,n,r){if(t===null||typeof t>"u"||kf(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 we(e,t,n,r,l,i,a){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=i,this.removeEmptyString=a}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new we(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new we(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new we(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){pe[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new we(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new we(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new we(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ri=/[\-:]([a-z])/g;function zi(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(Ri,zi);pe[t]=new we(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(Ri,zi);pe[t]=new we(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(Ri,zi);pe[t]=new we(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new we(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new we(e,1,!1,e.toLowerCase(),null,!0,!0)});function Oi(e,t,n,r){var l=pe.hasOwnProperty(t)?pe[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Sf(t,n,l,r)&&(n=null),r||l===null?Nf(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 ot=jf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Lr=Symbol.for("react.element"),tn=Symbol.for("react.portal"),nn=Symbol.for("react.fragment"),Ii=Symbol.for("react.strict_mode"),Ml=Symbol.for("react.profiler"),yc=Symbol.for("react.provider"),jc=Symbol.for("react.context"),$i=Symbol.for("react.forward_ref"),Rl=Symbol.for("react.suspense"),zl=Symbol.for("react.suspense_list"),Di=Symbol.for("react.memo"),ft=Symbol.for("react.lazy"),wc=Symbol.for("react.offscreen"),Ra=Symbol.iterator;function Rn(e){return e===null||typeof e!="object"?null:(e=Ra&&e[Ra]||e["@@iterator"],typeof e=="function"?e:null)}var X=Object.assign,ll;function Bn(e){if(ll===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ll=t&&t[1]||""}return`
34
+ `+ll+e}var il=!1;function al(e,t){if(!e||il)return"";il=!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(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var l=f.stack.split(`
35
+ `),i=r.stack.split(`
36
+ `),a=l.length-1,o=i.length-1;1<=a&&0<=o&&l[a]!==i[o];)o--;for(;1<=a&&0<=o;a--,o--)if(l[a]!==i[o]){if(a!==1||o!==1)do if(a--,o--,0>o||l[a]!==i[o]){var c=`
37
+ `+l[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=o);break}}}finally{il=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Bn(e):""}function bf(e){switch(e.tag){case 5:return Bn(e.type);case 16:return Bn("Lazy");case 13:return Bn("Suspense");case 19:return Bn("SuspenseList");case 0:case 2:case 15:return e=al(e.type,!1),e;case 11:return e=al(e.type.render,!1),e;case 1:return e=al(e.type,!0),e;default:return""}}function Ol(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 nn:return"Fragment";case tn:return"Portal";case Ml:return"Profiler";case Ii:return"StrictMode";case Rl:return"Suspense";case zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case jc:return(e.displayName||"Context")+".Consumer";case yc:return(e._context.displayName||"Context")+".Provider";case $i:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Di:return t=e.displayName||null,t!==null?t:Ol(e.type)||"Memo";case ft:t=e._payload,e=e._init;try{return Ol(e(t))}catch{}}return null}function _f(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 Ol(t);case 8:return t===Ii?"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 Ct(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Nc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ef(e){var t=Nc(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,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mr(e){e._valueTracker||(e._valueTracker=Ef(e))}function kc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Nc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function is(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 Il(e,t){var n=t.checked;return X({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function za(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ct(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 Sc(e,t){t=t.checked,t!=null&&Oi(e,"checked",t,!1)}function $l(e,t){Sc(e,t);var n=Ct(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")?Dl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dl(e,t.type,Ct(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Oa(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 Dl(e,t,n){(t!=="number"||is(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vn=Array.isArray;function mn(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=""+Ct(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 Fl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(S(91));return X({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ia(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(S(92));if(Vn(n)){if(1<n.length)throw Error(S(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ct(n)}}function bc(e,t){var n=Ct(t.value),r=Ct(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 $a(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _c(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 Al(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_c(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Rr,Ec=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(Rr=Rr||document.createElement("div"),Rr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Rr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function nr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qn={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},Cf=["Webkit","ms","Moz","O"];Object.keys(Qn).forEach(function(e){Cf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qn[t]=Qn[e]})});function Cc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qn.hasOwnProperty(e)&&Qn[e]?(""+t).trim():t+"px"}function Pc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Cc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Pf=X({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 Ul(e,t){if(t){if(Pf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function Bl(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 Vl=null;function Fi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wl=null,hn=null,xn=null;function Da(e){if(e=Sr(e)){if(typeof Wl!="function")throw Error(S(280));var t=e.stateNode;t&&(t=$s(t),Wl(e.stateNode,e.type,t))}}function Tc(e){hn?xn?xn.push(e):xn=[e]:hn=e}function Lc(){if(hn){var e=hn,t=xn;if(xn=hn=null,Da(e),t)for(e=0;e<t.length;e++)Da(t[e])}}function Mc(e,t){return e(t)}function Rc(){}var ol=!1;function zc(e,t,n){if(ol)return e(t,n);ol=!0;try{return Mc(e,t,n)}finally{ol=!1,(hn!==null||xn!==null)&&(Rc(),Lc())}}function rr(e,t){var n=e.stateNode;if(n===null)return null;var r=$s(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(S(231,t,typeof n));return n}var Hl=!1;if(st)try{var zn={};Object.defineProperty(zn,"passive",{get:function(){Hl=!0}}),window.addEventListener("test",zn,zn),window.removeEventListener("test",zn,zn)}catch{Hl=!1}function Tf(e,t,n,r,l,i,a,o,c){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(p){this.onError(p)}}var Kn=!1,as=null,os=!1,Ql=null,Lf={onError:function(e){Kn=!0,as=e}};function Mf(e,t,n,r,l,i,a,o,c){Kn=!1,as=null,Tf.apply(Lf,arguments)}function Rf(e,t,n,r,l,i,a,o,c){if(Mf.apply(this,arguments),Kn){if(Kn){var f=as;Kn=!1,as=null}else throw Error(S(198));os||(os=!0,Ql=f)}}function Xt(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 Oc(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 Fa(e){if(Xt(e)!==e)throw Error(S(188))}function zf(e){var t=e.alternate;if(!t){if(t=Xt(e),t===null)throw Error(S(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return Fa(l),e;if(i===r)return Fa(l),t;i=i.sibling}throw Error(S(188))}if(n.return!==r.return)n=l,r=i;else{for(var a=!1,o=l.child;o;){if(o===n){a=!0,n=l,r=i;break}if(o===r){a=!0,r=l,n=i;break}o=o.sibling}if(!a){for(o=i.child;o;){if(o===n){a=!0,n=i,r=l;break}if(o===r){a=!0,r=i,n=l;break}o=o.sibling}if(!a)throw Error(S(189))}}if(n.alternate!==r)throw Error(S(190))}if(n.tag!==3)throw Error(S(188));return n.stateNode.current===n?e:t}function Ic(e){return e=zf(e),e!==null?$c(e):null}function $c(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=$c(e);if(t!==null)return t;e=e.sibling}return null}var Dc=Te.unstable_scheduleCallback,Aa=Te.unstable_cancelCallback,Of=Te.unstable_shouldYield,If=Te.unstable_requestPaint,ee=Te.unstable_now,$f=Te.unstable_getCurrentPriorityLevel,Ai=Te.unstable_ImmediatePriority,Fc=Te.unstable_UserBlockingPriority,cs=Te.unstable_NormalPriority,Df=Te.unstable_LowPriority,Ac=Te.unstable_IdlePriority,Rs=null,qe=null;function Ff(e){if(qe&&typeof qe.onCommitFiberRoot=="function")try{qe.onCommitFiberRoot(Rs,e,void 0,(e.current.flags&128)===128)}catch{}}var He=Math.clz32?Math.clz32:Bf,Af=Math.log,Uf=Math.LN2;function Bf(e){return e>>>=0,e===0?32:31-(Af(e)/Uf|0)|0}var zr=64,Or=4194304;function Wn(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 us(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var o=a&~l;o!==0?r=Wn(o):(i&=a,i!==0&&(r=Wn(i)))}else a=n&~l,a!==0?r=Wn(a):i!==0&&(r=Wn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&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-He(t),l=1<<n,r|=e[n],t&=~l;return r}function Vf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-He(i),o=1<<a,c=l[a];c===-1?(!(o&n)||o&r)&&(l[a]=Vf(o,t)):c<=t&&(e.expiredLanes|=o),i&=~o}}function Kl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Uc(){var e=zr;return zr<<=1,!(zr&4194240)&&(zr=64),e}function cl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Nr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-He(t),e[t]=n}function Hf(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-He(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function Ui(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-He(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var A=0;function Bc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Vc,Bi,Wc,Hc,Qc,Yl=!1,Ir=[],yt=null,jt=null,wt=null,sr=new Map,lr=new Map,mt=[],Qf="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 Ua(e,t){switch(e){case"focusin":case"focusout":yt=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":wt=null;break;case"pointerover":case"pointerout":sr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":lr.delete(t.pointerId)}}function On(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=Sr(t),t!==null&&Bi(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Kf(e,t,n,r,l){switch(t){case"focusin":return yt=On(yt,e,t,n,r,l),!0;case"dragenter":return jt=On(jt,e,t,n,r,l),!0;case"mouseover":return wt=On(wt,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return sr.set(i,On(sr.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,lr.set(i,On(lr.get(i)||null,e,t,n,r,l)),!0}return!1}function Kc(e){var t=Dt(e.target);if(t!==null){var n=Xt(t);if(n!==null){if(t=n.tag,t===13){if(t=Oc(n),t!==null){e.blockedOn=t,Qc(e.priority,function(){Wc(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Vl=r,n.target.dispatchEvent(r),Vl=null}else return t=Sr(n),t!==null&&Bi(t),e.blockedOn=n,!1;t.shift()}return!0}function Ba(e,t,n){Gr(e)&&n.delete(t)}function Yf(){Yl=!1,yt!==null&&Gr(yt)&&(yt=null),jt!==null&&Gr(jt)&&(jt=null),wt!==null&&Gr(wt)&&(wt=null),sr.forEach(Ba),lr.forEach(Ba)}function In(e,t){e.blockedOn===t&&(e.blockedOn=null,Yl||(Yl=!0,Te.unstable_scheduleCallback(Te.unstable_NormalPriority,Yf)))}function ir(e){function t(l){return In(l,e)}if(0<Ir.length){In(Ir[0],e);for(var n=1;n<Ir.length;n++){var r=Ir[n];r.blockedOn===e&&(r.blockedOn=null)}}for(yt!==null&&In(yt,e),jt!==null&&In(jt,e),wt!==null&&In(wt,e),sr.forEach(t),lr.forEach(t),n=0;n<mt.length;n++)r=mt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<mt.length&&(n=mt[0],n.blockedOn===null);)Kc(n),n.blockedOn===null&&mt.shift()}var gn=ot.ReactCurrentBatchConfig,ds=!0;function Gf(e,t,n,r){var l=A,i=gn.transition;gn.transition=null;try{A=1,Vi(e,t,n,r)}finally{A=l,gn.transition=i}}function Xf(e,t,n,r){var l=A,i=gn.transition;gn.transition=null;try{A=4,Vi(e,t,n,r)}finally{A=l,gn.transition=i}}function Vi(e,t,n,r){if(ds){var l=Gl(e,t,n,r);if(l===null)yl(e,t,r,fs,n),Ua(e,r);else if(Kf(l,e,t,n,r))r.stopPropagation();else if(Ua(e,r),t&4&&-1<Qf.indexOf(e)){for(;l!==null;){var i=Sr(l);if(i!==null&&Vc(i),i=Gl(e,t,n,r),i===null&&yl(e,t,r,fs,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else yl(e,t,r,null,n)}}var fs=null;function Gl(e,t,n,r){if(fs=null,e=Fi(r),e=Dt(e),e!==null)if(t=Xt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Oc(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 fs=e,null}function Yc(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($f()){case Ai:return 1;case Fc:return 4;case cs:case Df:return 16;case Ac:return 536870912;default:return 16}default:return 16}}var xt=null,Wi=null,Xr=null;function Gc(){if(Xr)return Xr;var e,t=Wi,n=t.length,r,l="value"in xt?xt.value:xt.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===l[i-r];r++);return Xr=l.slice(e,1<r?1-r:void 0)}function qr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function $r(){return!0}function Va(){return!1}function Me(e){function t(n,r,l,i,a){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?$r:Va,this.isPropagationStopped=Va,this}return X(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=$r)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=$r)},persist:function(){},isPersistent:$r}),t}var Pn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hi=Me(Pn),kr=X({},Pn,{view:0,detail:0}),qf=Me(kr),ul,dl,$n,zs=X({},kr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qi,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!==$n&&($n&&e.type==="mousemove"?(ul=e.screenX-$n.screenX,dl=e.screenY-$n.screenY):dl=ul=0,$n=e),ul)},movementY:function(e){return"movementY"in e?e.movementY:dl}}),Wa=Me(zs),Jf=X({},zs,{dataTransfer:0}),Zf=Me(Jf),ep=X({},kr,{relatedTarget:0}),fl=Me(ep),tp=X({},Pn,{animationName:0,elapsedTime:0,pseudoElement:0}),np=Me(tp),rp=X({},Pn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sp=Me(rp),lp=X({},Pn,{data:0}),Ha=Me(lp),ip={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ap={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"},op={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=op[e])?!!t[e]:!1}function Qi(){return cp}var up=X({},kr,{key:function(e){if(e.key){var t=ip[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ap[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qi,charCode:function(e){return e.type==="keypress"?qr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dp=Me(up),fp=X({},zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qa=Me(fp),pp=X({},kr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qi}),mp=Me(pp),hp=X({},Pn,{propertyName:0,elapsedTime:0,pseudoElement:0}),xp=Me(hp),gp=X({},zs,{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}),vp=Me(gp),yp=[9,13,27,32],Ki=st&&"CompositionEvent"in window,Yn=null;st&&"documentMode"in document&&(Yn=document.documentMode);var jp=st&&"TextEvent"in window&&!Yn,Xc=st&&(!Ki||Yn&&8<Yn&&11>=Yn),Ka=" ",Ya=!1;function qc(e,t){switch(e){case"keyup":return yp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var rn=!1;function wp(e,t){switch(e){case"compositionend":return Jc(t);case"keypress":return t.which!==32?null:(Ya=!0,Ka);case"textInput":return e=t.data,e===Ka&&Ya?null:e;default:return null}}function Np(e,t){if(rn)return e==="compositionend"||!Ki&&qc(e,t)?(e=Gc(),Xr=Wi=xt=null,rn=!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 Xc&&t.locale!=="ko"?null:t.data;default:return null}}var kp={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 Ga(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!kp[e.type]:t==="textarea"}function Zc(e,t,n,r){Tc(r),t=ps(t,"onChange"),0<t.length&&(n=new Hi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,ar=null;function Sp(e){uu(e,0)}function Os(e){var t=an(e);if(kc(t))return e}function bp(e,t){if(e==="change")return t}var eu=!1;if(st){var pl;if(st){var ml="oninput"in document;if(!ml){var Xa=document.createElement("div");Xa.setAttribute("oninput","return;"),ml=typeof Xa.oninput=="function"}pl=ml}else pl=!1;eu=pl&&(!document.documentMode||9<document.documentMode)}function qa(){Gn&&(Gn.detachEvent("onpropertychange",tu),ar=Gn=null)}function tu(e){if(e.propertyName==="value"&&Os(ar)){var t=[];Zc(t,ar,e,Fi(e)),zc(Sp,t)}}function _p(e,t,n){e==="focusin"?(qa(),Gn=t,ar=n,Gn.attachEvent("onpropertychange",tu)):e==="focusout"&&qa()}function Ep(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Os(ar)}function Cp(e,t){if(e==="click")return Os(t)}function Pp(e,t){if(e==="input"||e==="change")return Os(t)}function Tp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ke=typeof Object.is=="function"?Object.is:Tp;function or(e,t){if(Ke(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(!Ll.call(t,l)||!Ke(e[l],t[l]))return!1}return!0}function Ja(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Za(e,t){var n=Ja(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=Ja(n)}}function nu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ru(){for(var e=window,t=is();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=is(e.document)}return t}function Yi(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 Lp(e){var t=ru(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&nu(n.ownerDocument.documentElement,n)){if(r!==null&&Yi(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,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Za(n,i);var a=Za(n,r);l&&a&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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 Mp=st&&"documentMode"in document&&11>=document.documentMode,sn=null,Xl=null,Xn=null,ql=!1;function eo(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ql||sn==null||sn!==is(r)||(r=sn,"selectionStart"in r&&Yi(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}),Xn&&or(Xn,r)||(Xn=r,r=ps(Xl,"onSelect"),0<r.length&&(t=new Hi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sn)))}function Dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ln={animationend:Dr("Animation","AnimationEnd"),animationiteration:Dr("Animation","AnimationIteration"),animationstart:Dr("Animation","AnimationStart"),transitionend:Dr("Transition","TransitionEnd")},hl={},su={};st&&(su=document.createElement("div").style,"AnimationEvent"in window||(delete ln.animationend.animation,delete ln.animationiteration.animation,delete ln.animationstart.animation),"TransitionEvent"in window||delete ln.transitionend.transition);function Is(e){if(hl[e])return hl[e];if(!ln[e])return e;var t=ln[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in su)return hl[e]=t[n];return e}var lu=Is("animationend"),iu=Is("animationiteration"),au=Is("animationstart"),ou=Is("transitionend"),cu=new Map,to="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 Tt(e,t){cu.set(e,t),Gt(t,[e])}for(var xl=0;xl<to.length;xl++){var gl=to[xl],Rp=gl.toLowerCase(),zp=gl[0].toUpperCase()+gl.slice(1);Tt(Rp,"on"+zp)}Tt(lu,"onAnimationEnd");Tt(iu,"onAnimationIteration");Tt(au,"onAnimationStart");Tt("dblclick","onDoubleClick");Tt("focusin","onFocus");Tt("focusout","onBlur");Tt(ou,"onTransitionEnd");jn("onMouseEnter",["mouseout","mouseover"]);jn("onMouseLeave",["mouseout","mouseover"]);jn("onPointerEnter",["pointerout","pointerover"]);jn("onPointerLeave",["pointerout","pointerover"]);Gt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Gt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Gt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Gt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Gt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Gt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hn="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(" "),Op=new Set("cancel close invalid load scroll toggle".split(" ").concat(Hn));function no(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Rf(r,t,void 0,e),e.currentTarget=null}function uu(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 i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var o=r[a],c=o.instance,f=o.currentTarget;if(o=o.listener,c!==i&&l.isPropagationStopped())break e;no(l,o,f),i=c}else for(a=0;a<r.length;a++){if(o=r[a],c=o.instance,f=o.currentTarget,o=o.listener,c!==i&&l.isPropagationStopped())break e;no(l,o,f),i=c}}}if(os)throw e=Ql,os=!1,Ql=null,e}function W(e,t){var n=t[ni];n===void 0&&(n=t[ni]=new Set);var r=e+"__bubble";n.has(r)||(du(t,e,2,!1),n.add(r))}function vl(e,t,n){var r=0;t&&(r|=4),du(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function cr(e){if(!e[Fr]){e[Fr]=!0,vc.forEach(function(n){n!=="selectionchange"&&(Op.has(n)||vl(n,!1,e),vl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fr]||(t[Fr]=!0,vl("selectionchange",!1,t))}}function du(e,t,n,r){switch(Yc(t)){case 1:var l=Gf;break;case 4:l=Xf;break;default:l=Vi}n=l.bind(null,t,n,e),l=void 0,!Hl||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 yl(e,t,n,r,l){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var o=r.stateNode.containerInfo;if(o===l||o.nodeType===8&&o.parentNode===l)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===l||c.nodeType===8&&c.parentNode===l))return;a=a.return}for(;o!==null;){if(a=Dt(o),a===null)return;if(c=a.tag,c===5||c===6){r=i=a;continue e}o=o.parentNode}}r=r.return}zc(function(){var f=i,p=Fi(n),d=[];e:{var m=cu.get(e);if(m!==void 0){var w=Hi,g=e;switch(e){case"keypress":if(qr(n)===0)break e;case"keydown":case"keyup":w=dp;break;case"focusin":g="focus",w=fl;break;case"focusout":g="blur",w=fl;break;case"beforeblur":case"afterblur":w=fl;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":w=Wa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=Zf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=mp;break;case lu:case iu:case au:w=np;break;case ou:w=xp;break;case"scroll":w=qf;break;case"wheel":w=vp;break;case"copy":case"cut":case"paste":w=sp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Qa}var j=(t&4)!==0,y=!j&&e==="scroll",h=j?m!==null?m+"Capture":null:m;j=[];for(var u=f,x;u!==null;){x=u;var N=x.stateNode;if(x.tag===5&&N!==null&&(x=N,h!==null&&(N=rr(u,h),N!=null&&j.push(ur(u,N,x)))),y)break;u=u.return}0<j.length&&(m=new w(m,g,null,n,p),d.push({event:m,listeners:j}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",m&&n!==Vl&&(g=n.relatedTarget||n.fromElement)&&(Dt(g)||g[lt]))break e;if((w||m)&&(m=p.window===p?p:(m=p.ownerDocument)?m.defaultView||m.parentWindow:window,w?(g=n.relatedTarget||n.toElement,w=f,g=g?Dt(g):null,g!==null&&(y=Xt(g),g!==y||g.tag!==5&&g.tag!==6)&&(g=null)):(w=null,g=f),w!==g)){if(j=Wa,N="onMouseLeave",h="onMouseEnter",u="mouse",(e==="pointerout"||e==="pointerover")&&(j=Qa,N="onPointerLeave",h="onPointerEnter",u="pointer"),y=w==null?m:an(w),x=g==null?m:an(g),m=new j(N,u+"leave",w,n,p),m.target=y,m.relatedTarget=x,N=null,Dt(p)===f&&(j=new j(h,u+"enter",g,n,p),j.target=x,j.relatedTarget=y,N=j),y=N,w&&g)t:{for(j=w,h=g,u=0,x=j;x;x=Jt(x))u++;for(x=0,N=h;N;N=Jt(N))x++;for(;0<u-x;)j=Jt(j),u--;for(;0<x-u;)h=Jt(h),x--;for(;u--;){if(j===h||h!==null&&j===h.alternate)break t;j=Jt(j),h=Jt(h)}j=null}else j=null;w!==null&&ro(d,m,w,j,!1),g!==null&&y!==null&&ro(d,y,g,j,!0)}}e:{if(m=f?an(f):window,w=m.nodeName&&m.nodeName.toLowerCase(),w==="select"||w==="input"&&m.type==="file")var b=bp;else if(Ga(m))if(eu)b=Pp;else{b=Ep;var k=_p}else(w=m.nodeName)&&w.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(b=Cp);if(b&&(b=b(e,f))){Zc(d,b,n,p);break e}k&&k(e,m,f),e==="focusout"&&(k=m._wrapperState)&&k.controlled&&m.type==="number"&&Dl(m,"number",m.value)}switch(k=f?an(f):window,e){case"focusin":(Ga(k)||k.contentEditable==="true")&&(sn=k,Xl=f,Xn=null);break;case"focusout":Xn=Xl=sn=null;break;case"mousedown":ql=!0;break;case"contextmenu":case"mouseup":case"dragend":ql=!1,eo(d,n,p);break;case"selectionchange":if(Mp)break;case"keydown":case"keyup":eo(d,n,p)}var _;if(Ki)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else rn?qc(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(Xc&&n.locale!=="ko"&&(rn||E!=="onCompositionStart"?E==="onCompositionEnd"&&rn&&(_=Gc()):(xt=p,Wi="value"in xt?xt.value:xt.textContent,rn=!0)),k=ps(f,E),0<k.length&&(E=new Ha(E,e,null,n,p),d.push({event:E,listeners:k}),_?E.data=_:(_=Jc(n),_!==null&&(E.data=_)))),(_=jp?wp(e,n):Np(e,n))&&(f=ps(f,"onBeforeInput"),0<f.length&&(p=new Ha("onBeforeInput","beforeinput",null,n,p),d.push({event:p,listeners:f}),p.data=_))}uu(d,t)})}function ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ps(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=rr(e,n),i!=null&&r.unshift(ur(e,i,l)),i=rr(e,t),i!=null&&r.push(ur(e,i,l))),e=e.return}return r}function Jt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ro(e,t,n,r,l){for(var i=t._reactName,a=[];n!==null&&n!==r;){var o=n,c=o.alternate,f=o.stateNode;if(c!==null&&c===r)break;o.tag===5&&f!==null&&(o=f,l?(c=rr(n,i),c!=null&&a.unshift(ur(n,c,o))):l||(c=rr(n,i),c!=null&&a.push(ur(n,c,o)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Ip=/\r\n?/g,$p=/\u0000|\uFFFD/g;function so(e){return(typeof e=="string"?e:""+e).replace(Ip,`
38
+ `).replace($p,"")}function Ar(e,t,n){if(t=so(t),so(e)!==t&&n)throw Error(S(425))}function ms(){}var Jl=null,Zl=null;function ei(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 ti=typeof setTimeout=="function"?setTimeout:void 0,Dp=typeof clearTimeout=="function"?clearTimeout:void 0,lo=typeof Promise=="function"?Promise:void 0,Fp=typeof queueMicrotask=="function"?queueMicrotask:typeof lo<"u"?function(e){return lo.resolve(null).then(e).catch(Ap)}:ti;function Ap(e){setTimeout(function(){throw e})}function jl(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),ir(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);ir(t)}function Nt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function io(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 Tn=Math.random().toString(36).slice(2),Xe="__reactFiber$"+Tn,dr="__reactProps$"+Tn,lt="__reactContainer$"+Tn,ni="__reactEvents$"+Tn,Up="__reactListeners$"+Tn,Bp="__reactHandles$"+Tn;function Dt(e){var t=e[Xe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lt]||n[Xe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=io(e);e!==null;){if(n=e[Xe])return n;e=io(e)}return t}e=n,n=e.parentNode}return null}function Sr(e){return e=e[Xe]||e[lt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function an(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(S(33))}function $s(e){return e[dr]||null}var ri=[],on=-1;function Lt(e){return{current:e}}function H(e){0>on||(e.current=ri[on],ri[on]=null,on--)}function B(e,t){on++,ri[on]=e.current,e.current=t}var Pt={},ge=Lt(Pt),Se=Lt(!1),Vt=Pt;function wn(e,t){var n=e.type.contextTypes;if(!n)return Pt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function be(e){return e=e.childContextTypes,e!=null}function hs(){H(Se),H(ge)}function ao(e,t,n){if(ge.current!==Pt)throw Error(S(168));B(ge,t),B(Se,n)}function fu(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(S(108,_f(e)||"Unknown",l));return X({},n,r)}function xs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pt,Vt=ge.current,B(ge,e),B(Se,Se.current),!0}function oo(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=fu(e,t,Vt),r.__reactInternalMemoizedMergedChildContext=e,H(Se),H(ge),B(ge,e)):H(Se),B(Se,n)}var et=null,Ds=!1,wl=!1;function pu(e){et===null?et=[e]:et.push(e)}function Vp(e){Ds=!0,pu(e)}function Mt(){if(!wl&&et!==null){wl=!0;var e=0,t=A;try{var n=et;for(A=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}et=null,Ds=!1}catch(l){throw et!==null&&(et=et.slice(e+1)),Dc(Ai,Mt),l}finally{A=t,wl=!1}}return null}var cn=[],un=0,gs=null,vs=0,Re=[],ze=0,Wt=null,tt=1,nt="";function It(e,t){cn[un++]=vs,cn[un++]=gs,gs=e,vs=t}function mu(e,t,n){Re[ze++]=tt,Re[ze++]=nt,Re[ze++]=Wt,Wt=e;var r=tt;e=nt;var l=32-He(r)-1;r&=~(1<<l),n+=1;var i=32-He(t)+l;if(30<i){var a=l-l%5;i=(r&(1<<a)-1).toString(32),r>>=a,l-=a,tt=1<<32-He(t)+l|n<<l|r,nt=i+e}else tt=1<<i|n<<l|r,nt=e}function Gi(e){e.return!==null&&(It(e,1),mu(e,1,0))}function Xi(e){for(;e===gs;)gs=cn[--un],cn[un]=null,vs=cn[--un],cn[un]=null;for(;e===Wt;)Wt=Re[--ze],Re[ze]=null,nt=Re[--ze],Re[ze]=null,tt=Re[--ze],Re[ze]=null}var Pe=null,Ce=null,Q=!1,We=null;function hu(e,t){var n=Oe(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 co(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,Pe=e,Ce=Nt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Pe=e,Ce=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Wt!==null?{id:tt,overflow:nt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Oe(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Pe=e,Ce=null,!0):!1;default:return!1}}function si(e){return(e.mode&1)!==0&&(e.flags&128)===0}function li(e){if(Q){var t=Ce;if(t){var n=t;if(!co(e,t)){if(si(e))throw Error(S(418));t=Nt(n.nextSibling);var r=Pe;t&&co(e,t)?hu(r,n):(e.flags=e.flags&-4097|2,Q=!1,Pe=e)}}else{if(si(e))throw Error(S(418));e.flags=e.flags&-4097|2,Q=!1,Pe=e}}}function uo(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Pe=e}function Ur(e){if(e!==Pe)return!1;if(!Q)return uo(e),Q=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ei(e.type,e.memoizedProps)),t&&(t=Ce)){if(si(e))throw xu(),Error(S(418));for(;t;)hu(e,t),t=Nt(t.nextSibling)}if(uo(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(S(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ce=Nt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ce=null}}else Ce=Pe?Nt(e.stateNode.nextSibling):null;return!0}function xu(){for(var e=Ce;e;)e=Nt(e.nextSibling)}function Nn(){Ce=Pe=null,Q=!1}function qi(e){We===null?We=[e]:We.push(e)}var Wp=ot.ReactCurrentBatchConfig;function Dn(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(S(309));var r=n.stateNode}if(!r)throw Error(S(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var o=l.refs;a===null?delete o[i]:o[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(S(284));if(!n._owner)throw Error(S(290,e))}return e}function Br(e,t){throw e=Object.prototype.toString.call(t),Error(S(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function fo(e){var t=e._init;return t(e._payload)}function gu(e){function t(h,u){if(e){var x=h.deletions;x===null?(h.deletions=[u],h.flags|=16):x.push(u)}}function n(h,u){if(!e)return null;for(;u!==null;)t(h,u),u=u.sibling;return null}function r(h,u){for(h=new Map;u!==null;)u.key!==null?h.set(u.key,u):h.set(u.index,u),u=u.sibling;return h}function l(h,u){return h=_t(h,u),h.index=0,h.sibling=null,h}function i(h,u,x){return h.index=x,e?(x=h.alternate,x!==null?(x=x.index,x<u?(h.flags|=2,u):x):(h.flags|=2,u)):(h.flags|=1048576,u)}function a(h){return e&&h.alternate===null&&(h.flags|=2),h}function o(h,u,x,N){return u===null||u.tag!==6?(u=Cl(x,h.mode,N),u.return=h,u):(u=l(u,x),u.return=h,u)}function c(h,u,x,N){var b=x.type;return b===nn?p(h,u,x.props.children,N,x.key):u!==null&&(u.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===ft&&fo(b)===u.type)?(N=l(u,x.props),N.ref=Dn(h,u,x),N.return=h,N):(N=ss(x.type,x.key,x.props,null,h.mode,N),N.ref=Dn(h,u,x),N.return=h,N)}function f(h,u,x,N){return u===null||u.tag!==4||u.stateNode.containerInfo!==x.containerInfo||u.stateNode.implementation!==x.implementation?(u=Pl(x,h.mode,N),u.return=h,u):(u=l(u,x.children||[]),u.return=h,u)}function p(h,u,x,N,b){return u===null||u.tag!==7?(u=Bt(x,h.mode,N,b),u.return=h,u):(u=l(u,x),u.return=h,u)}function d(h,u,x){if(typeof u=="string"&&u!==""||typeof u=="number")return u=Cl(""+u,h.mode,x),u.return=h,u;if(typeof u=="object"&&u!==null){switch(u.$$typeof){case Lr:return x=ss(u.type,u.key,u.props,null,h.mode,x),x.ref=Dn(h,null,u),x.return=h,x;case tn:return u=Pl(u,h.mode,x),u.return=h,u;case ft:var N=u._init;return d(h,N(u._payload),x)}if(Vn(u)||Rn(u))return u=Bt(u,h.mode,x,null),u.return=h,u;Br(h,u)}return null}function m(h,u,x,N){var b=u!==null?u.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return b!==null?null:o(h,u,""+x,N);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Lr:return x.key===b?c(h,u,x,N):null;case tn:return x.key===b?f(h,u,x,N):null;case ft:return b=x._init,m(h,u,b(x._payload),N)}if(Vn(x)||Rn(x))return b!==null?null:p(h,u,x,N,null);Br(h,x)}return null}function w(h,u,x,N,b){if(typeof N=="string"&&N!==""||typeof N=="number")return h=h.get(x)||null,o(u,h,""+N,b);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Lr:return h=h.get(N.key===null?x:N.key)||null,c(u,h,N,b);case tn:return h=h.get(N.key===null?x:N.key)||null,f(u,h,N,b);case ft:var k=N._init;return w(h,u,x,k(N._payload),b)}if(Vn(N)||Rn(N))return h=h.get(x)||null,p(u,h,N,b,null);Br(u,N)}return null}function g(h,u,x,N){for(var b=null,k=null,_=u,E=u=0,F=null;_!==null&&E<x.length;E++){_.index>E?(F=_,_=null):F=_.sibling;var M=m(h,_,x[E],N);if(M===null){_===null&&(_=F);break}e&&_&&M.alternate===null&&t(h,_),u=i(M,u,E),k===null?b=M:k.sibling=M,k=M,_=F}if(E===x.length)return n(h,_),Q&&It(h,E),b;if(_===null){for(;E<x.length;E++)_=d(h,x[E],N),_!==null&&(u=i(_,u,E),k===null?b=_:k.sibling=_,k=_);return Q&&It(h,E),b}for(_=r(h,_);E<x.length;E++)F=w(_,h,E,x[E],N),F!==null&&(e&&F.alternate!==null&&_.delete(F.key===null?E:F.key),u=i(F,u,E),k===null?b=F:k.sibling=F,k=F);return e&&_.forEach(function(C){return t(h,C)}),Q&&It(h,E),b}function j(h,u,x,N){var b=Rn(x);if(typeof b!="function")throw Error(S(150));if(x=b.call(x),x==null)throw Error(S(151));for(var k=b=null,_=u,E=u=0,F=null,M=x.next();_!==null&&!M.done;E++,M=x.next()){_.index>E?(F=_,_=null):F=_.sibling;var C=m(h,_,M.value,N);if(C===null){_===null&&(_=F);break}e&&_&&C.alternate===null&&t(h,_),u=i(C,u,E),k===null?b=C:k.sibling=C,k=C,_=F}if(M.done)return n(h,_),Q&&It(h,E),b;if(_===null){for(;!M.done;E++,M=x.next())M=d(h,M.value,N),M!==null&&(u=i(M,u,E),k===null?b=M:k.sibling=M,k=M);return Q&&It(h,E),b}for(_=r(h,_);!M.done;E++,M=x.next())M=w(_,h,E,M.value,N),M!==null&&(e&&M.alternate!==null&&_.delete(M.key===null?E:M.key),u=i(M,u,E),k===null?b=M:k.sibling=M,k=M);return e&&_.forEach(function(ae){return t(h,ae)}),Q&&It(h,E),b}function y(h,u,x,N){if(typeof x=="object"&&x!==null&&x.type===nn&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Lr:e:{for(var b=x.key,k=u;k!==null;){if(k.key===b){if(b=x.type,b===nn){if(k.tag===7){n(h,k.sibling),u=l(k,x.props.children),u.return=h,h=u;break e}}else if(k.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===ft&&fo(b)===k.type){n(h,k.sibling),u=l(k,x.props),u.ref=Dn(h,k,x),u.return=h,h=u;break e}n(h,k);break}else t(h,k);k=k.sibling}x.type===nn?(u=Bt(x.props.children,h.mode,N,x.key),u.return=h,h=u):(N=ss(x.type,x.key,x.props,null,h.mode,N),N.ref=Dn(h,u,x),N.return=h,h=N)}return a(h);case tn:e:{for(k=x.key;u!==null;){if(u.key===k)if(u.tag===4&&u.stateNode.containerInfo===x.containerInfo&&u.stateNode.implementation===x.implementation){n(h,u.sibling),u=l(u,x.children||[]),u.return=h,h=u;break e}else{n(h,u);break}else t(h,u);u=u.sibling}u=Pl(x,h.mode,N),u.return=h,h=u}return a(h);case ft:return k=x._init,y(h,u,k(x._payload),N)}if(Vn(x))return g(h,u,x,N);if(Rn(x))return j(h,u,x,N);Br(h,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,u!==null&&u.tag===6?(n(h,u.sibling),u=l(u,x),u.return=h,h=u):(n(h,u),u=Cl(x,h.mode,N),u.return=h,h=u),a(h)):n(h,u)}return y}var kn=gu(!0),vu=gu(!1),ys=Lt(null),js=null,dn=null,Ji=null;function Zi(){Ji=dn=js=null}function ea(e){var t=ys.current;H(ys),e._currentValue=t}function ii(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){js=e,Ji=dn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ke=!0),e.firstContext=null)}function De(e){var t=e._currentValue;if(Ji!==e)if(e={context:e,memoizedValue:t,next:null},dn===null){if(js===null)throw Error(S(308));dn=e,js.dependencies={lanes:0,firstContext:e}}else dn=dn.next=e;return t}var Ft=null;function ta(e){Ft===null?Ft=[e]:Ft.push(e)}function yu(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,ta(t)):(n.next=l.next,l.next=n),t.interleaved=n,it(e,r)}function it(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 pt=!1;function na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ju(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 rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,D&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,it(e,n)}return l=r.interleaved,l===null?(t.next=t,ta(r)):(t.next=l.next,l.next=t),r.interleaved=t,it(e,n)}function Jr(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,Ui(e,n)}}function po(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,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 ws(e,t,n,r){var l=e.updateQueue;pt=!1;var i=l.firstBaseUpdate,a=l.lastBaseUpdate,o=l.shared.pending;if(o!==null){l.shared.pending=null;var c=o,f=c.next;c.next=null,a===null?i=f:a.next=f,a=c;var p=e.alternate;p!==null&&(p=p.updateQueue,o=p.lastBaseUpdate,o!==a&&(o===null?p.firstBaseUpdate=f:o.next=f,p.lastBaseUpdate=c))}if(i!==null){var d=l.baseState;a=0,p=f=c=null,o=i;do{var m=o.lane,w=o.eventTime;if((r&m)===m){p!==null&&(p=p.next={eventTime:w,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var g=e,j=o;switch(m=t,w=n,j.tag){case 1:if(g=j.payload,typeof g=="function"){d=g.call(w,d,m);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=j.payload,m=typeof g=="function"?g.call(w,d,m):g,m==null)break e;d=X({},d,m);break e;case 2:pt=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[o]:m.push(o))}else w={eventTime:w,lane:m,tag:o.tag,payload:o.payload,callback:o.callback,next:null},p===null?(f=p=w,c=d):p=p.next=w,a|=m;if(o=o.next,o===null){if(o=l.shared.pending,o===null)break;m=o,o=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(p===null&&(c=d),l.baseState=c,l.firstBaseUpdate=f,l.lastBaseUpdate=p,t=l.shared.interleaved,t!==null){l=t;do a|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);Qt|=a,e.lanes=a,e.memoizedState=d}}function mo(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(S(191,l));l.call(r)}}}var br={},Je=Lt(br),fr=Lt(br),pr=Lt(br);function At(e){if(e===br)throw Error(S(174));return e}function ra(e,t){switch(B(pr,t),B(fr,e),B(Je,br),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Al(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Al(t,e)}H(Je),B(Je,t)}function Sn(){H(Je),H(fr),H(pr)}function wu(e){At(pr.current);var t=At(Je.current),n=Al(t,e.type);t!==n&&(B(fr,e),B(Je,n))}function sa(e){fr.current===e&&(H(Je),H(fr))}var Y=Lt(0);function Ns(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 Nl=[];function la(){for(var e=0;e<Nl.length;e++)Nl[e]._workInProgressVersionPrimary=null;Nl.length=0}var Zr=ot.ReactCurrentDispatcher,kl=ot.ReactCurrentBatchConfig,Ht=0,G=null,se=null,ce=null,ks=!1,qn=!1,mr=0,Hp=0;function me(){throw Error(S(321))}function ia(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ke(e[n],t[n]))return!1;return!0}function aa(e,t,n,r,l,i){if(Ht=i,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zr.current=e===null||e.memoizedState===null?Gp:Xp,e=n(r,l),qn){i=0;do{if(qn=!1,mr=0,25<=i)throw Error(S(301));i+=1,ce=se=null,t.updateQueue=null,Zr.current=qp,e=n(r,l)}while(qn)}if(Zr.current=Ss,t=se!==null&&se.next!==null,Ht=0,ce=se=G=null,ks=!1,t)throw Error(S(300));return e}function oa(){var e=mr!==0;return mr=0,e}function Ge(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?G.memoizedState=ce=e:ce=ce.next=e,ce}function Fe(){if(se===null){var e=G.alternate;e=e!==null?e.memoizedState:null}else e=se.next;var t=ce===null?G.memoizedState:ce.next;if(t!==null)ce=t,se=e;else{if(e===null)throw Error(S(310));se=e,e={memoizedState:se.memoizedState,baseState:se.baseState,baseQueue:se.baseQueue,queue:se.queue,next:null},ce===null?G.memoizedState=ce=e:ce=ce.next=e}return ce}function hr(e,t){return typeof t=="function"?t(e):t}function Sl(e){var t=Fe(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=se,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var a=l.next;l.next=i.next,i.next=a}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var o=a=null,c=null,f=i;do{var p=f.lane;if((Ht&p)===p)c!==null&&(c=c.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var d={lane:p,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};c===null?(o=c=d,a=r):c=c.next=d,G.lanes|=p,Qt|=p}f=f.next}while(f!==null&&f!==i);c===null?a=r:c.next=o,Ke(r,t.memoizedState)||(ke=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,G.lanes|=i,Qt|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function bl(e){var t=Fe(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var a=l=l.next;do i=e(i,a.action),a=a.next;while(a!==l);Ke(i,t.memoizedState)||(ke=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Nu(){}function ku(e,t){var n=G,r=Fe(),l=t(),i=!Ke(r.memoizedState,l);if(i&&(r.memoizedState=l,ke=!0),r=r.queue,ca(_u.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ce!==null&&ce.memoizedState.tag&1){if(n.flags|=2048,xr(9,bu.bind(null,n,r,l,t),void 0,null),ue===null)throw Error(S(349));Ht&30||Su(n,t,l)}return l}function Su(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t={lastEffect:null,stores:null},G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function bu(e,t,n,r){t.value=n,t.getSnapshot=r,Eu(t)&&Cu(e)}function _u(e,t,n){return n(function(){Eu(t)&&Cu(e)})}function Eu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ke(e,n)}catch{return!0}}function Cu(e){var t=it(e,1);t!==null&&Qe(t,e,1,-1)}function ho(e){var t=Ge();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hr,lastRenderedState:e},t.queue=e,e=e.dispatch=Yp.bind(null,G,e),[t.memoizedState,e]}function xr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=G.updateQueue,t===null?(t={lastEffect:null,stores:null},G.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 Pu(){return Fe().memoizedState}function es(e,t,n,r){var l=Ge();G.flags|=e,l.memoizedState=xr(1|t,n,void 0,r===void 0?null:r)}function Fs(e,t,n,r){var l=Fe();r=r===void 0?null:r;var i=void 0;if(se!==null){var a=se.memoizedState;if(i=a.destroy,r!==null&&ia(r,a.deps)){l.memoizedState=xr(t,n,i,r);return}}G.flags|=e,l.memoizedState=xr(1|t,n,i,r)}function xo(e,t){return es(8390656,8,e,t)}function ca(e,t){return Fs(2048,8,e,t)}function Tu(e,t){return Fs(4,2,e,t)}function Lu(e,t){return Fs(4,4,e,t)}function Mu(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 Ru(e,t,n){return n=n!=null?n.concat([e]):null,Fs(4,4,Mu.bind(null,t,e),n)}function ua(){}function zu(e,t){var n=Fe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ia(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ou(e,t){var n=Fe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ia(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Iu(e,t,n){return Ht&21?(Ke(n,t)||(n=Uc(),G.lanes|=n,Qt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ke=!0),e.memoizedState=n)}function Qp(e,t){var n=A;A=n!==0&&4>n?n:4,e(!0);var r=kl.transition;kl.transition={};try{e(!1),t()}finally{A=n,kl.transition=r}}function $u(){return Fe().memoizedState}function Kp(e,t,n){var r=bt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Du(e))Fu(t,n);else if(n=yu(e,t,n,r),n!==null){var l=ye();Qe(n,e,r,l),Au(n,t,r)}}function Yp(e,t,n){var r=bt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Du(e))Fu(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,o=i(a,n);if(l.hasEagerState=!0,l.eagerState=o,Ke(o,a)){var c=t.interleaved;c===null?(l.next=l,ta(t)):(l.next=c.next,c.next=l),t.interleaved=l;return}}catch{}finally{}n=yu(e,t,l,r),n!==null&&(l=ye(),Qe(n,e,r,l),Au(n,t,r))}}function Du(e){var t=e.alternate;return e===G||t!==null&&t===G}function Fu(e,t){qn=ks=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Au(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ui(e,n)}}var Ss={readContext:De,useCallback:me,useContext:me,useEffect:me,useImperativeHandle:me,useInsertionEffect:me,useLayoutEffect:me,useMemo:me,useReducer:me,useRef:me,useState:me,useDebugValue:me,useDeferredValue:me,useTransition:me,useMutableSource:me,useSyncExternalStore:me,useId:me,unstable_isNewReconciler:!1},Gp={readContext:De,useCallback:function(e,t){return Ge().memoizedState=[e,t===void 0?null:t],e},useContext:De,useEffect:xo,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,es(4194308,4,Mu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return es(4194308,4,e,t)},useInsertionEffect:function(e,t){return es(4,2,e,t)},useMemo:function(e,t){var n=Ge();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ge();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=Kp.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=Ge();return e={current:e},t.memoizedState=e},useState:ho,useDebugValue:ua,useDeferredValue:function(e){return Ge().memoizedState=e},useTransition:function(){var e=ho(!1),t=e[0];return e=Qp.bind(null,e[1]),Ge().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=G,l=Ge();if(Q){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),ue===null)throw Error(S(349));Ht&30||Su(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,xo(_u.bind(null,r,i,e),[e]),r.flags|=2048,xr(9,bu.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Ge(),t=ue.identifierPrefix;if(Q){var n=nt,r=tt;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Hp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Xp={readContext:De,useCallback:zu,useContext:De,useEffect:ca,useImperativeHandle:Ru,useInsertionEffect:Tu,useLayoutEffect:Lu,useMemo:Ou,useReducer:Sl,useRef:Pu,useState:function(){return Sl(hr)},useDebugValue:ua,useDeferredValue:function(e){var t=Fe();return Iu(t,se.memoizedState,e)},useTransition:function(){var e=Sl(hr)[0],t=Fe().memoizedState;return[e,t]},useMutableSource:Nu,useSyncExternalStore:ku,useId:$u,unstable_isNewReconciler:!1},qp={readContext:De,useCallback:zu,useContext:De,useEffect:ca,useImperativeHandle:Ru,useInsertionEffect:Tu,useLayoutEffect:Lu,useMemo:Ou,useReducer:bl,useRef:Pu,useState:function(){return bl(hr)},useDebugValue:ua,useDeferredValue:function(e){var t=Fe();return se===null?t.memoizedState=e:Iu(t,se.memoizedState,e)},useTransition:function(){var e=bl(hr)[0],t=Fe().memoizedState;return[e,t]},useMutableSource:Nu,useSyncExternalStore:ku,useId:$u,unstable_isNewReconciler:!1};function Be(e,t){if(e&&e.defaultProps){t=X({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ai(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:X({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var As={isMounted:function(e){return(e=e._reactInternals)?Xt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ye(),l=bt(e),i=rt(r,l);i.payload=t,n!=null&&(i.callback=n),t=kt(e,i,l),t!==null&&(Qe(t,e,l,r),Jr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ye(),l=bt(e),i=rt(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=kt(e,i,l),t!==null&&(Qe(t,e,l,r),Jr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ye(),r=bt(e),l=rt(n,r);l.tag=2,t!=null&&(l.callback=t),t=kt(e,l,r),t!==null&&(Qe(t,e,r,n),Jr(t,e,r))}};function go(e,t,n,r,l,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!or(n,r)||!or(l,i):!0}function Uu(e,t,n){var r=!1,l=Pt,i=t.contextType;return typeof i=="object"&&i!==null?i=De(i):(l=be(t)?Vt:ge.current,r=t.contextTypes,i=(r=r!=null)?wn(e,l):Pt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=As,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function vo(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&&As.enqueueReplaceState(t,t.state,null)}function oi(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},na(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=De(i):(i=be(t)?Vt:ge.current,l.context=wn(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(ai(e,t,i,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&&As.enqueueReplaceState(l,l.state,null),ws(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function bn(e,t){try{var n="",r=t;do n+=bf(r),r=r.return;while(r);var l=n}catch(i){l=`
39
+ Error generating stack: `+i.message+`
40
+ `+i.stack}return{value:e,source:t,stack:l,digest:null}}function _l(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ci(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Jp=typeof WeakMap=="function"?WeakMap:Map;function Bu(e,t,n){n=rt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_s||(_s=!0,yi=r),ci(e,t)},n}function Vu(e,t,n){n=rt(-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(){ci(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ci(e,t),typeof r!="function"&&(St===null?St=new Set([this]):St.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function yo(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Jp;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=fm.bind(null,e,t,n),t.then(e,e))}function jo(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 wo(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=rt(-1,1),t.tag=2,kt(n,t,1))),n.lanes|=1),e)}var Zp=ot.ReactCurrentOwner,ke=!1;function ve(e,t,n,r){t.child=e===null?vu(t,null,n,r):kn(t,e.child,n,r)}function No(e,t,n,r,l){n=n.render;var i=t.ref;return vn(t,l),r=aa(e,t,n,r,i,l),n=oa(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,at(e,t,l)):(Q&&n&&Gi(t),t.flags|=1,ve(e,t,r,l),t.child)}function ko(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!va(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Wu(e,t,i,r,l)):(e=ss(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&l)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:or,n(a,r)&&e.ref===t.ref)return at(e,t,l)}return t.flags|=1,e=_t(i,r),e.ref=t.ref,e.return=t,t.child=e}function Wu(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(or(i,r)&&e.ref===t.ref)if(ke=!1,t.pendingProps=r=i,(e.lanes&l)!==0)e.flags&131072&&(ke=!0);else return t.lanes=e.lanes,at(e,t,l)}return ui(e,t,n,r,l)}function Hu(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},B(pn,Ee),Ee|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,B(pn,Ee),Ee|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,B(pn,Ee),Ee|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,B(pn,Ee),Ee|=r;return ve(e,t,l,n),t.child}function Qu(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ui(e,t,n,r,l){var i=be(n)?Vt:ge.current;return i=wn(t,i),vn(t,l),n=aa(e,t,n,r,i,l),r=oa(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,at(e,t,l)):(Q&&r&&Gi(t),t.flags|=1,ve(e,t,n,l),t.child)}function So(e,t,n,r,l){if(be(n)){var i=!0;xs(t)}else i=!1;if(vn(t,l),t.stateNode===null)ts(e,t),Uu(t,n,r),oi(t,n,r,l),r=!0;else if(e===null){var a=t.stateNode,o=t.memoizedProps;a.props=o;var c=a.context,f=n.contextType;typeof f=="object"&&f!==null?f=De(f):(f=be(n)?Vt:ge.current,f=wn(t,f));var p=n.getDerivedStateFromProps,d=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==r||c!==f)&&vo(t,a,r,f),pt=!1;var m=t.memoizedState;a.state=m,ws(t,r,a,l),c=t.memoizedState,o!==r||m!==c||Se.current||pt?(typeof p=="function"&&(ai(t,n,p,r),c=t.memoizedState),(o=pt||go(t,n,o,r,m,c,f))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=f,r=o):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ju(e,t),o=t.memoizedProps,f=t.type===t.elementType?o:Be(t.type,o),a.props=f,d=t.pendingProps,m=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=De(c):(c=be(n)?Vt:ge.current,c=wn(t,c));var w=n.getDerivedStateFromProps;(p=typeof w=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==d||m!==c)&&vo(t,a,r,c),pt=!1,m=t.memoizedState,a.state=m,ws(t,r,a,l);var g=t.memoizedState;o!==d||m!==g||Se.current||pt?(typeof w=="function"&&(ai(t,n,w,r),g=t.memoizedState),(f=pt||go(t,n,f,r,m,g,c)||!1)?(p||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,g,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,g,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),a.props=r,a.state=g,a.context=c,r=f):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return di(e,t,n,r,i,l)}function di(e,t,n,r,l,i){Qu(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return l&&oo(t,n,!1),at(e,t,i);r=t.stateNode,Zp.current=t;var o=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=kn(t,e.child,null,i),t.child=kn(t,null,o,i)):ve(e,t,o,i),t.memoizedState=r.state,l&&oo(t,n,!0),t.child}function Ku(e){var t=e.stateNode;t.pendingContext?ao(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ao(e,t.context,!1),ra(e,t.containerInfo)}function bo(e,t,n,r,l){return Nn(),qi(l),t.flags|=256,ve(e,t,n,r),t.child}var fi={dehydrated:null,treeContext:null,retryLane:0};function pi(e){return{baseLanes:e,cachePool:null,transitions:null}}function Yu(e,t,n){var r=t.pendingProps,l=Y.current,i=!1,a=(t.flags&128)!==0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(l&2)!==0),o?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),B(Y,l&1),e===null)return li(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):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Vs(a,r,0,null),e=Bt(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=pi(n),t.memoizedState=fi,e):da(t,a));if(l=e.memoizedState,l!==null&&(o=l.dehydrated,o!==null))return em(e,t,a,r,o,l,n);if(i){i=r.fallback,a=t.mode,l=e.child,o=l.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=_t(l,c),r.subtreeFlags=l.subtreeFlags&14680064),o!==null?i=_t(o,i):(i=Bt(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?pi(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=fi,r}return i=e.child,e=i.sibling,r=_t(i,{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 da(e,t){return t=Vs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vr(e,t,n,r){return r!==null&&qi(r),kn(t,e.child,null,n),e=da(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function em(e,t,n,r,l,i,a){if(n)return t.flags&256?(t.flags&=-257,r=_l(Error(S(422))),Vr(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Vs({mode:"visible",children:r.children},l,0,null),i=Bt(i,l,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&kn(t,e.child,null,a),t.child.memoizedState=pi(a),t.memoizedState=fi,i);if(!(t.mode&1))return Vr(e,t,a,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var o=r.dgst;return r=o,i=Error(S(419)),r=_l(i,r,void 0),Vr(e,t,a,r)}if(o=(a&e.childLanes)!==0,ke||o){if(r=ue,r!==null){switch(a&-a){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|a)?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,it(e,l),Qe(r,e,l,-1))}return ga(),r=_l(Error(S(421))),Vr(e,t,a,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=pm.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,Ce=Nt(l.nextSibling),Pe=t,Q=!0,We=null,e!==null&&(Re[ze++]=tt,Re[ze++]=nt,Re[ze++]=Wt,tt=e.id,nt=e.overflow,Wt=t),t=da(t,r.children),t.flags|=4096,t)}function _o(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ii(e.return,t,n)}function El(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function Gu(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(ve(e,t,r.children,n),r=Y.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&&_o(e,n,t);else if(e.tag===19)_o(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(B(Y,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&&Ns(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),El(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Ns(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}El(t,!0,n,null,i);break;case"together":El(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ts(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function at(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,n=_t(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_t(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function tm(e,t,n){switch(t.tag){case 3:Ku(t),Nn();break;case 5:wu(t);break;case 1:be(t.type)&&xs(t);break;case 4:ra(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;B(ys,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(B(Y,Y.current&1),t.flags|=128,null):n&t.child.childLanes?Yu(e,t,n):(B(Y,Y.current&1),e=at(e,t,n),e!==null?e.sibling:null);B(Y,Y.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Gu(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),B(Y,Y.current),r)break;return null;case 22:case 23:return t.lanes=0,Hu(e,t,n)}return at(e,t,n)}var Xu,mi,qu,Ju;Xu=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}};mi=function(){};qu=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,At(Je.current);var i=null;switch(n){case"input":l=Il(e,l),r=Il(e,r),i=[];break;case"select":l=X({},l,{value:void 0}),r=X({},r,{value:void 0}),i=[];break;case"textarea":l=Fl(e,l),r=Fl(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ms)}Ul(n,r);var a;n=null;for(f in l)if(!r.hasOwnProperty(f)&&l.hasOwnProperty(f)&&l[f]!=null)if(f==="style"){var o=l[f];for(a in o)o.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(tr.hasOwnProperty(f)?i||(i=[]):(i=i||[]).push(f,null));for(f in r){var c=r[f];if(o=l!=null?l[f]:void 0,r.hasOwnProperty(f)&&c!==o&&(c!=null||o!=null))if(f==="style")if(o){for(a in o)!o.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&o[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(f,n)),n=c;else f==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,o=o?o.__html:void 0,c!=null&&o!==c&&(i=i||[]).push(f,c)):f==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(f,""+c):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(tr.hasOwnProperty(f)?(c!=null&&f==="onScroll"&&W("scroll",e),i||o===c||(i=[])):(i=i||[]).push(f,c))}n&&(i=i||[]).push("style",n);var f=i;(t.updateQueue=f)&&(t.flags|=4)}};Ju=function(e,t,n,r){n!==r&&(t.flags|=4)};function Fn(e,t){if(!Q)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 he(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 nm(e,t,n){var r=t.pendingProps;switch(Xi(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return he(t),null;case 1:return be(t.type)&&hs(),he(t),null;case 3:return r=t.stateNode,Sn(),H(Se),H(ge),la(),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,We!==null&&(Ni(We),We=null))),mi(e,t),he(t),null;case 5:sa(t);var l=At(pr.current);if(n=t.type,e!==null&&t.stateNode!=null)qu(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(S(166));return he(t),null}if(e=At(Je.current),Ur(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Xe]=t,r[dr]=i,e=(t.mode&1)!==0,n){case"dialog":W("cancel",r),W("close",r);break;case"iframe":case"object":case"embed":W("load",r);break;case"video":case"audio":for(l=0;l<Hn.length;l++)W(Hn[l],r);break;case"source":W("error",r);break;case"img":case"image":case"link":W("error",r),W("load",r);break;case"details":W("toggle",r);break;case"input":za(r,i),W("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},W("invalid",r);break;case"textarea":Ia(r,i),W("invalid",r)}Ul(n,i),l=null;for(var a in i)if(i.hasOwnProperty(a)){var o=i[a];a==="children"?typeof o=="string"?r.textContent!==o&&(i.suppressHydrationWarning!==!0&&Ar(r.textContent,o,e),l=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(i.suppressHydrationWarning!==!0&&Ar(r.textContent,o,e),l=["children",""+o]):tr.hasOwnProperty(a)&&o!=null&&a==="onScroll"&&W("scroll",r)}switch(n){case"input":Mr(r),Oa(r,i,!0);break;case"textarea":Mr(r),$a(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ms)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_c(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Xe]=t,e[dr]=r,Xu(e,t,!1,!1),t.stateNode=e;e:{switch(a=Bl(n,r),n){case"dialog":W("cancel",e),W("close",e),l=r;break;case"iframe":case"object":case"embed":W("load",e),l=r;break;case"video":case"audio":for(l=0;l<Hn.length;l++)W(Hn[l],e);l=r;break;case"source":W("error",e),l=r;break;case"img":case"image":case"link":W("error",e),W("load",e),l=r;break;case"details":W("toggle",e),l=r;break;case"input":za(e,r),l=Il(e,r),W("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=X({},r,{value:void 0}),W("invalid",e);break;case"textarea":Ia(e,r),l=Fl(e,r),W("invalid",e);break;default:l=r}Ul(n,l),o=l;for(i in o)if(o.hasOwnProperty(i)){var c=o[i];i==="style"?Pc(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Ec(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&nr(e,c):typeof c=="number"&&nr(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(tr.hasOwnProperty(i)?c!=null&&i==="onScroll"&&W("scroll",e):c!=null&&Oi(e,i,c,a))}switch(n){case"input":Mr(e),Oa(e,r,!1);break;case"textarea":Mr(e),$a(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ct(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?mn(e,!!r.multiple,i,!1):r.defaultValue!=null&&mn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=ms)}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 he(t),null;case 6:if(e&&t.stateNode!=null)Ju(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(S(166));if(n=At(pr.current),At(Je.current),Ur(t)){if(r=t.stateNode,n=t.memoizedProps,r[Xe]=t,(i=r.nodeValue!==n)&&(e=Pe,e!==null))switch(e.tag){case 3:Ar(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ar(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Xe]=t,t.stateNode=r}return he(t),null;case 13:if(H(Y),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Q&&Ce!==null&&t.mode&1&&!(t.flags&128))xu(),Nn(),t.flags|=98560,i=!1;else if(i=Ur(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(S(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(S(317));i[Xe]=t}else Nn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;he(t),i=!1}else We!==null&&(Ni(We),We=null),i=!0;if(!i)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||Y.current&1?le===0&&(le=3):ga())),t.updateQueue!==null&&(t.flags|=4),he(t),null);case 4:return Sn(),mi(e,t),e===null&&cr(t.stateNode.containerInfo),he(t),null;case 10:return ea(t.type._context),he(t),null;case 17:return be(t.type)&&hs(),he(t),null;case 19:if(H(Y),i=t.memoizedState,i===null)return he(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)Fn(i,!1);else{if(le!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Ns(e),a!==null){for(t.flags|=128,Fn(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return B(Y,Y.current&1|2),t.child}e=e.sibling}i.tail!==null&&ee()>_n&&(t.flags|=128,r=!0,Fn(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ns(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Q)return he(t),null}else 2*ee()-i.renderingStartTime>_n&&n!==1073741824&&(t.flags|=128,r=!0,Fn(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ee(),t.sibling=null,n=Y.current,B(Y,r?n&1|2:n&1),t):(he(t),null);case 22:case 23:return xa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ee&1073741824&&(he(t),t.subtreeFlags&6&&(t.flags|=8192)):he(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function rm(e,t){switch(Xi(t),t.tag){case 1:return be(t.type)&&hs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sn(),H(Se),H(ge),la(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sa(t),null;case 13:if(H(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));Nn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Y),null;case 4:return Sn(),null;case 10:return ea(t.type._context),null;case 22:case 23:return xa(),null;case 24:return null;default:return null}}var Wr=!1,xe=!1,sm=typeof WeakSet=="function"?WeakSet:Set,P=null;function fn(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 hi(e,t,n){try{n()}catch(r){q(e,t,r)}}var Eo=!1;function lm(e,t){if(Jl=ds,e=ru(),Yi(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,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,o=-1,c=-1,f=0,p=0,d=e,m=null;t:for(;;){for(var w;d!==n||l!==0&&d.nodeType!==3||(o=a+l),d!==i||r!==0&&d.nodeType!==3||(c=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(w=d.firstChild)!==null;)m=d,d=w;for(;;){if(d===e)break t;if(m===n&&++f===l&&(o=a),m===i&&++p===r&&(c=a),(w=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=w}n=o===-1||c===-1?null:{start:o,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zl={focusedElem:e,selectionRange:n},ds=!1,P=t;P!==null;)if(t=P,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,P=e;else for(;P!==null;){t=P;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var j=g.memoizedProps,y=g.memoizedState,h=t.stateNode,u=h.getSnapshotBeforeUpdate(t.elementType===t.type?j:Be(t.type,j),y);h.__reactInternalSnapshotBeforeUpdate=u}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(N){q(t,t.return,N)}if(e=t.sibling,e!==null){e.return=t.return,P=e;break}P=t.return}return g=Eo,Eo=!1,g}function Jn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&hi(t,n,i)}l=l.next}while(l!==r)}}function Us(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 xi(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 Zu(e){var t=e.alternate;t!==null&&(e.alternate=null,Zu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xe],delete t[dr],delete t[ni],delete t[Up],delete t[Bp])),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 ed(e){return e.tag===5||e.tag===3||e.tag===4}function Co(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ed(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 gi(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=ms));else if(r!==4&&(e=e.child,e!==null))for(gi(e,t,n),e=e.sibling;e!==null;)gi(e,t,n),e=e.sibling}function vi(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(vi(e,t,n),e=e.sibling;e!==null;)vi(e,t,n),e=e.sibling}var de=null,Ve=!1;function dt(e,t,n){for(n=n.child;n!==null;)td(e,t,n),n=n.sibling}function td(e,t,n){if(qe&&typeof qe.onCommitFiberUnmount=="function")try{qe.onCommitFiberUnmount(Rs,n)}catch{}switch(n.tag){case 5:xe||fn(n,t);case 6:var r=de,l=Ve;de=null,dt(e,t,n),de=r,Ve=l,de!==null&&(Ve?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(Ve?(e=de,n=n.stateNode,e.nodeType===8?jl(e.parentNode,n):e.nodeType===1&&jl(e,n),ir(e)):jl(de,n.stateNode));break;case 4:r=de,l=Ve,de=n.stateNode.containerInfo,Ve=!0,dt(e,t,n),de=r,Ve=l;break;case 0:case 11:case 14:case 15:if(!xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&hi(n,t,a),l=l.next}while(l!==r)}dt(e,t,n);break;case 1:if(!xe&&(fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){q(n,t,o)}dt(e,t,n);break;case 21:dt(e,t,n);break;case 22:n.mode&1?(xe=(r=xe)||n.memoizedState!==null,dt(e,t,n),xe=r):dt(e,t,n);break;default:dt(e,t,n)}}function Po(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sm),t.forEach(function(r){var l=mm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ue(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,a=t,o=a;e:for(;o!==null;){switch(o.tag){case 5:de=o.stateNode,Ve=!1;break e;case 3:de=o.stateNode.containerInfo,Ve=!0;break e;case 4:de=o.stateNode.containerInfo,Ve=!0;break e}o=o.return}if(de===null)throw Error(S(160));td(i,a,l),de=null,Ve=!1;var c=l.alternate;c!==null&&(c.return=null),l.return=null}catch(f){q(l,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)nd(t,e),t=t.sibling}function nd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ue(t,e),Ye(e),r&4){try{Jn(3,e,e.return),Us(3,e)}catch(j){q(e,e.return,j)}try{Jn(5,e,e.return)}catch(j){q(e,e.return,j)}}break;case 1:Ue(t,e),Ye(e),r&512&&n!==null&&fn(n,n.return);break;case 5:if(Ue(t,e),Ye(e),r&512&&n!==null&&fn(n,n.return),e.flags&32){var l=e.stateNode;try{nr(l,"")}catch(j){q(e,e.return,j)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,o=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{o==="input"&&i.type==="radio"&&i.name!=null&&Sc(l,i),Bl(o,a);var f=Bl(o,i);for(a=0;a<c.length;a+=2){var p=c[a],d=c[a+1];p==="style"?Pc(l,d):p==="dangerouslySetInnerHTML"?Ec(l,d):p==="children"?nr(l,d):Oi(l,p,d,f)}switch(o){case"input":$l(l,i);break;case"textarea":bc(l,i);break;case"select":var m=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var w=i.value;w!=null?mn(l,!!i.multiple,w,!1):m!==!!i.multiple&&(i.defaultValue!=null?mn(l,!!i.multiple,i.defaultValue,!0):mn(l,!!i.multiple,i.multiple?[]:"",!1))}l[dr]=i}catch(j){q(e,e.return,j)}}break;case 6:if(Ue(t,e),Ye(e),r&4){if(e.stateNode===null)throw Error(S(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(j){q(e,e.return,j)}}break;case 3:if(Ue(t,e),Ye(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ir(t.containerInfo)}catch(j){q(e,e.return,j)}break;case 4:Ue(t,e),Ye(e);break;case 13:Ue(t,e),Ye(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(ma=ee())),r&4&&Po(e);break;case 22:if(p=n!==null&&n.memoizedState!==null,e.mode&1?(xe=(f=xe)||p,Ue(t,e),xe=f):Ue(t,e),Ye(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!p&&e.mode&1)for(P=e,p=e.child;p!==null;){for(d=P=p;P!==null;){switch(m=P,w=m.child,m.tag){case 0:case 11:case 14:case 15:Jn(4,m,m.return);break;case 1:fn(m,m.return);var g=m.stateNode;if(typeof g.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(j){q(r,n,j)}}break;case 5:fn(m,m.return);break;case 22:if(m.memoizedState!==null){Lo(d);continue}}w!==null?(w.return=m,P=w):Lo(d)}p=p.sibling}e:for(p=null,d=e;;){if(d.tag===5){if(p===null){p=d;try{l=d.stateNode,f?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(o=d.stateNode,c=d.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,o.style.display=Cc("display",a))}catch(j){q(e,e.return,j)}}}else if(d.tag===6){if(p===null)try{d.stateNode.nodeValue=f?"":d.memoizedProps}catch(j){q(e,e.return,j)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ue(t,e),Ye(e),r&4&&Po(e);break;case 21:break;default:Ue(t,e),Ye(e)}}function Ye(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ed(n)){var r=n;break e}n=n.return}throw Error(S(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(nr(l,""),r.flags&=-33);var i=Co(e);vi(e,i,l);break;case 3:case 4:var a=r.stateNode.containerInfo,o=Co(e);gi(e,o,a);break;default:throw Error(S(161))}}catch(c){q(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function im(e,t,n){P=e,rd(e)}function rd(e,t,n){for(var r=(e.mode&1)!==0;P!==null;){var l=P,i=l.child;if(l.tag===22&&r){var a=l.memoizedState!==null||Wr;if(!a){var o=l.alternate,c=o!==null&&o.memoizedState!==null||xe;o=Wr;var f=xe;if(Wr=a,(xe=c)&&!f)for(P=l;P!==null;)a=P,c=a.child,a.tag===22&&a.memoizedState!==null?Mo(l):c!==null?(c.return=a,P=c):Mo(l);for(;i!==null;)P=i,rd(i),i=i.sibling;P=l,Wr=o,xe=f}To(e)}else l.subtreeFlags&8772&&i!==null?(i.return=l,P=i):To(e)}}function To(e){for(;P!==null;){var t=P;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:xe||Us(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!xe)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Be(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&mo(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}mo(t,a,n)}break;case 5:var o=t.stateNode;if(n===null&&t.flags&4){n=o;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var p=f.memoizedState;if(p!==null){var d=p.dehydrated;d!==null&&ir(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(S(163))}xe||t.flags&512&&xi(t)}catch(m){q(t,t.return,m)}}if(t===e){P=null;break}if(n=t.sibling,n!==null){n.return=t.return,P=n;break}P=t.return}}function Lo(e){for(;P!==null;){var t=P;if(t===e){P=null;break}var n=t.sibling;if(n!==null){n.return=t.return,P=n;break}P=t.return}}function Mo(e){for(;P!==null;){var t=P;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Us(4,t)}catch(c){q(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(c){q(t,l,c)}}var i=t.return;try{xi(t)}catch(c){q(t,i,c)}break;case 5:var a=t.return;try{xi(t)}catch(c){q(t,a,c)}}}catch(c){q(t,t.return,c)}if(t===e){P=null;break}var o=t.sibling;if(o!==null){o.return=t.return,P=o;break}P=t.return}}var am=Math.ceil,bs=ot.ReactCurrentDispatcher,fa=ot.ReactCurrentOwner,Ie=ot.ReactCurrentBatchConfig,D=0,ue=null,te=null,fe=0,Ee=0,pn=Lt(0),le=0,gr=null,Qt=0,Bs=0,pa=0,Zn=null,Ne=null,ma=0,_n=1/0,Ze=null,_s=!1,yi=null,St=null,Hr=!1,gt=null,Es=0,er=0,ji=null,ns=-1,rs=0;function ye(){return D&6?ee():ns!==-1?ns:ns=ee()}function bt(e){return e.mode&1?D&2&&fe!==0?fe&-fe:Wp.transition!==null?(rs===0&&(rs=Uc()),rs):(e=A,e!==0||(e=window.event,e=e===void 0?16:Yc(e.type)),e):1}function Qe(e,t,n,r){if(50<er)throw er=0,ji=null,Error(S(185));Nr(e,n,r),(!(D&2)||e!==ue)&&(e===ue&&(!(D&2)&&(Bs|=n),le===4&&ht(e,fe)),_e(e,r),n===1&&D===0&&!(t.mode&1)&&(_n=ee()+500,Ds&&Mt()))}function _e(e,t){var n=e.callbackNode;Wf(e,t);var r=us(e,e===ue?fe:0);if(r===0)n!==null&&Aa(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Aa(n),t===1)e.tag===0?Vp(Ro.bind(null,e)):pu(Ro.bind(null,e)),Fp(function(){!(D&6)&&Mt()}),n=null;else{switch(Bc(r)){case 1:n=Ai;break;case 4:n=Fc;break;case 16:n=cs;break;case 536870912:n=Ac;break;default:n=cs}n=dd(n,sd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function sd(e,t){if(ns=-1,rs=0,D&6)throw Error(S(327));var n=e.callbackNode;if(yn()&&e.callbackNode!==n)return null;var r=us(e,e===ue?fe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Cs(e,r);else{t=r;var l=D;D|=2;var i=id();(ue!==e||fe!==t)&&(Ze=null,_n=ee()+500,Ut(e,t));do try{um();break}catch(o){ld(e,o)}while(!0);Zi(),bs.current=i,D=l,te!==null?t=0:(ue=null,fe=0,t=le)}if(t!==0){if(t===2&&(l=Kl(e),l!==0&&(r=l,t=wi(e,l))),t===1)throw n=gr,Ut(e,0),ht(e,r),_e(e,ee()),n;if(t===6)ht(e,r);else{if(l=e.current.alternate,!(r&30)&&!om(l)&&(t=Cs(e,r),t===2&&(i=Kl(e),i!==0&&(r=i,t=wi(e,i))),t===1))throw n=gr,Ut(e,0),ht(e,r),_e(e,ee()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(S(345));case 2:$t(e,Ne,Ze);break;case 3:if(ht(e,r),(r&130023424)===r&&(t=ma+500-ee(),10<t)){if(us(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ye(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=ti($t.bind(null,e,Ne,Ze),t);break}$t(e,Ne,Ze);break;case 4:if(ht(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var a=31-He(r);i=1<<a,a=t[a],a>l&&(l=a),r&=~i}if(r=l,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*am(r/1960))-r,10<r){e.timeoutHandle=ti($t.bind(null,e,Ne,Ze),r);break}$t(e,Ne,Ze);break;case 5:$t(e,Ne,Ze);break;default:throw Error(S(329))}}}return _e(e,ee()),e.callbackNode===n?sd.bind(null,e):null}function wi(e,t){var n=Zn;return e.current.memoizedState.isDehydrated&&(Ut(e,t).flags|=256),e=Cs(e,t),e!==2&&(t=Ne,Ne=n,t!==null&&Ni(t)),e}function Ni(e){Ne===null?Ne=e:Ne.push.apply(Ne,e)}function om(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],i=l.getSnapshot;l=l.value;try{if(!Ke(i(),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 ht(e,t){for(t&=~pa,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-He(t),r=1<<n;e[n]=-1,t&=~r}}function Ro(e){if(D&6)throw Error(S(327));yn();var t=us(e,0);if(!(t&1))return _e(e,ee()),null;var n=Cs(e,t);if(e.tag!==0&&n===2){var r=Kl(e);r!==0&&(t=r,n=wi(e,r))}if(n===1)throw n=gr,Ut(e,0),ht(e,t),_e(e,ee()),n;if(n===6)throw Error(S(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$t(e,Ne,Ze),_e(e,ee()),null}function ha(e,t){var n=D;D|=1;try{return e(t)}finally{D=n,D===0&&(_n=ee()+500,Ds&&Mt())}}function Kt(e){gt!==null&&gt.tag===0&&!(D&6)&&yn();var t=D;D|=1;var n=Ie.transition,r=A;try{if(Ie.transition=null,A=1,e)return e()}finally{A=r,Ie.transition=n,D=t,!(D&6)&&Mt()}}function xa(){Ee=pn.current,H(pn)}function Ut(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Dp(n)),te!==null)for(n=te.return;n!==null;){var r=n;switch(Xi(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hs();break;case 3:Sn(),H(Se),H(ge),la();break;case 5:sa(r);break;case 4:Sn();break;case 13:H(Y);break;case 19:H(Y);break;case 10:ea(r.type._context);break;case 22:case 23:xa()}n=n.return}if(ue=e,te=e=_t(e.current,null),fe=Ee=t,le=0,gr=null,pa=Bs=Qt=0,Ne=Zn=null,Ft!==null){for(t=0;t<Ft.length;t++)if(n=Ft[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=l,r.next=a}n.pending=r}Ft=null}return e}function ld(e,t){do{var n=te;try{if(Zi(),Zr.current=Ss,ks){for(var r=G.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}ks=!1}if(Ht=0,ce=se=G=null,qn=!1,mr=0,fa.current=null,n===null||n.return===null){le=1,gr=t,te=null;break}e:{var i=e,a=n.return,o=n,c=t;if(t=fe,o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var f=c,p=o,d=p.tag;if(!(p.mode&1)&&(d===0||d===11||d===15)){var m=p.alternate;m?(p.updateQueue=m.updateQueue,p.memoizedState=m.memoizedState,p.lanes=m.lanes):(p.updateQueue=null,p.memoizedState=null)}var w=jo(a);if(w!==null){w.flags&=-257,wo(w,a,o,i,t),w.mode&1&&yo(i,f,t),t=w,c=f;var g=t.updateQueue;if(g===null){var j=new Set;j.add(c),t.updateQueue=j}else g.add(c);break e}else{if(!(t&1)){yo(i,f,t),ga();break e}c=Error(S(426))}}else if(Q&&o.mode&1){var y=jo(a);if(y!==null){!(y.flags&65536)&&(y.flags|=256),wo(y,a,o,i,t),qi(bn(c,o));break e}}i=c=bn(c,o),le!==4&&(le=2),Zn===null?Zn=[i]:Zn.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var h=Bu(i,c,t);po(i,h);break e;case 1:o=c;var u=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof u.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(St===null||!St.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var N=Vu(i,o,t);po(i,N);break e}}i=i.return}while(i!==null)}od(n)}catch(b){t=b,te===n&&n!==null&&(te=n=n.return);continue}break}while(!0)}function id(){var e=bs.current;return bs.current=Ss,e===null?Ss:e}function ga(){(le===0||le===3||le===2)&&(le=4),ue===null||!(Qt&268435455)&&!(Bs&268435455)||ht(ue,fe)}function Cs(e,t){var n=D;D|=2;var r=id();(ue!==e||fe!==t)&&(Ze=null,Ut(e,t));do try{cm();break}catch(l){ld(e,l)}while(!0);if(Zi(),D=n,bs.current=r,te!==null)throw Error(S(261));return ue=null,fe=0,le}function cm(){for(;te!==null;)ad(te)}function um(){for(;te!==null&&!Of();)ad(te)}function ad(e){var t=ud(e.alternate,e,Ee);e.memoizedProps=e.pendingProps,t===null?od(e):te=t,fa.current=null}function od(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=rm(n,t),n!==null){n.flags&=32767,te=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{le=6,te=null;return}}else if(n=nm(n,t,Ee),n!==null){te=n;return}if(t=t.sibling,t!==null){te=t;return}te=t=e}while(t!==null);le===0&&(le=5)}function $t(e,t,n){var r=A,l=Ie.transition;try{Ie.transition=null,A=1,dm(e,t,n,r)}finally{Ie.transition=l,A=r}return null}function dm(e,t,n,r){do yn();while(gt!==null);if(D&6)throw Error(S(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(S(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Hf(e,i),e===ue&&(te=ue=null,fe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Hr||(Hr=!0,dd(cs,function(){return yn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Ie.transition,Ie.transition=null;var a=A;A=1;var o=D;D|=4,fa.current=null,lm(e,n),nd(n,e),Lp(Zl),ds=!!Jl,Zl=Jl=null,e.current=n,im(n),If(),D=o,A=a,Ie.transition=i}else e.current=n;if(Hr&&(Hr=!1,gt=e,Es=l),i=e.pendingLanes,i===0&&(St=null),Ff(n.stateNode),_e(e,ee()),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(_s)throw _s=!1,e=yi,yi=null,e;return Es&1&&e.tag!==0&&yn(),i=e.pendingLanes,i&1?e===ji?er++:(er=0,ji=e):er=0,Mt(),null}function yn(){if(gt!==null){var e=Bc(Es),t=Ie.transition,n=A;try{if(Ie.transition=null,A=16>e?16:e,gt===null)var r=!1;else{if(e=gt,gt=null,Es=0,D&6)throw Error(S(331));var l=D;for(D|=4,P=e.current;P!==null;){var i=P,a=i.child;if(P.flags&16){var o=i.deletions;if(o!==null){for(var c=0;c<o.length;c++){var f=o[c];for(P=f;P!==null;){var p=P;switch(p.tag){case 0:case 11:case 15:Jn(8,p,i)}var d=p.child;if(d!==null)d.return=p,P=d;else for(;P!==null;){p=P;var m=p.sibling,w=p.return;if(Zu(p),p===f){P=null;break}if(m!==null){m.return=w,P=m;break}P=w}}}var g=i.alternate;if(g!==null){var j=g.child;if(j!==null){g.child=null;do{var y=j.sibling;j.sibling=null,j=y}while(j!==null)}}P=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,P=a;else e:for(;P!==null;){if(i=P,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Jn(9,i,i.return)}var h=i.sibling;if(h!==null){h.return=i.return,P=h;break e}P=i.return}}var u=e.current;for(P=u;P!==null;){a=P;var x=a.child;if(a.subtreeFlags&2064&&x!==null)x.return=a,P=x;else e:for(a=u;P!==null;){if(o=P,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Us(9,o)}}catch(b){q(o,o.return,b)}if(o===a){P=null;break e}var N=o.sibling;if(N!==null){N.return=o.return,P=N;break e}P=o.return}}if(D=l,Mt(),qe&&typeof qe.onPostCommitFiberRoot=="function")try{qe.onPostCommitFiberRoot(Rs,e)}catch{}r=!0}return r}finally{A=n,Ie.transition=t}}return!1}function zo(e,t,n){t=bn(n,t),t=Bu(e,t,1),e=kt(e,t,1),t=ye(),e!==null&&(Nr(e,1,t),_e(e,t))}function q(e,t,n){if(e.tag===3)zo(e,e,n);else for(;t!==null;){if(t.tag===3){zo(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(St===null||!St.has(r))){e=bn(n,e),e=Vu(t,e,1),t=kt(t,e,1),e=ye(),t!==null&&(Nr(t,1,e),_e(t,e));break}}t=t.return}}function fm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ye(),e.pingedLanes|=e.suspendedLanes&n,ue===e&&(fe&n)===n&&(le===4||le===3&&(fe&130023424)===fe&&500>ee()-ma?Ut(e,0):pa|=n),_e(e,t)}function cd(e,t){t===0&&(e.mode&1?(t=Or,Or<<=1,!(Or&130023424)&&(Or=4194304)):t=1);var n=ye();e=it(e,t),e!==null&&(Nr(e,t,n),_e(e,n))}function pm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cd(e,n)}function mm(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(S(314))}r!==null&&r.delete(t),cd(e,n)}var ud;ud=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Se.current)ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ke=!1,tm(e,t,n);ke=!!(e.flags&131072)}else ke=!1,Q&&t.flags&1048576&&mu(t,vs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ts(e,t),e=t.pendingProps;var l=wn(t,ge.current);vn(t,n),l=aa(null,t,r,e,l,n);var i=oa();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,be(r)?(i=!0,xs(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,na(t),l.updater=As,t.stateNode=l,l._reactInternals=t,oi(t,r,e,n),t=di(null,t,r,!0,i,n)):(t.tag=0,Q&&i&&Gi(t),ve(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ts(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=xm(r),e=Be(r,e),l){case 0:t=ui(null,t,r,e,n);break e;case 1:t=So(null,t,r,e,n);break e;case 11:t=No(null,t,r,e,n);break e;case 14:t=ko(null,t,r,Be(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Be(r,l),ui(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Be(r,l),So(e,t,r,l,n);case 3:e:{if(Ku(t),e===null)throw Error(S(387));r=t.pendingProps,i=t.memoizedState,l=i.element,ju(e,t),ws(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=bn(Error(S(423)),t),t=bo(e,t,r,n,l);break e}else if(r!==l){l=bn(Error(S(424)),t),t=bo(e,t,r,n,l);break e}else for(Ce=Nt(t.stateNode.containerInfo.firstChild),Pe=t,Q=!0,We=null,n=vu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Nn(),r===l){t=at(e,t,n);break e}ve(e,t,r,n)}t=t.child}return t;case 5:return wu(t),e===null&&li(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,a=l.children,ei(r,l)?a=null:i!==null&&ei(r,i)&&(t.flags|=32),Qu(e,t),ve(e,t,a,n),t.child;case 6:return e===null&&li(t),null;case 13:return Yu(e,t,n);case 4:return ra(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=kn(t,null,r,n):ve(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Be(r,l),No(e,t,r,l,n);case 7:return ve(e,t,t.pendingProps,n),t.child;case 8:return ve(e,t,t.pendingProps.children,n),t.child;case 12:return ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,a=l.value,B(ys,r._currentValue),r._currentValue=a,i!==null)if(Ke(i.value,a)){if(i.children===l.children&&!Se.current){t=at(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){a=i.child;for(var c=o.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=rt(-1,n&-n),c.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var p=f.pending;p===null?c.next=c:(c.next=p.next,p.next=c),f.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),ii(i.return,n,t),o.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(S(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),ii(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ve(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,vn(t,n),l=De(l),r=r(l),t.flags|=1,ve(e,t,r,n),t.child;case 14:return r=t.type,l=Be(r,t.pendingProps),l=Be(r.type,l),ko(e,t,r,l,n);case 15:return Wu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Be(r,l),ts(e,t),t.tag=1,be(r)?(e=!0,xs(t)):e=!1,vn(t,n),Uu(t,r,l),oi(t,r,l,n),di(null,t,r,!0,e,n);case 19:return Gu(e,t,n);case 22:return Hu(e,t,n)}throw Error(S(156,t.tag))};function dd(e,t){return Dc(e,t)}function hm(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 Oe(e,t,n,r){return new hm(e,t,n,r)}function va(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xm(e){if(typeof e=="function")return va(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$i)return 11;if(e===Di)return 14}return 2}function _t(e,t){var n=e.alternate;return n===null?(n=Oe(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 ss(e,t,n,r,l,i){var a=2;if(r=e,typeof e=="function")va(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case nn:return Bt(n.children,l,i,t);case Ii:a=8,l|=8;break;case Ml:return e=Oe(12,n,t,l|2),e.elementType=Ml,e.lanes=i,e;case Rl:return e=Oe(13,n,t,l),e.elementType=Rl,e.lanes=i,e;case zl:return e=Oe(19,n,t,l),e.elementType=zl,e.lanes=i,e;case wc:return Vs(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case yc:a=10;break e;case jc:a=9;break e;case $i:a=11;break e;case Di:a=14;break e;case ft:a=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Oe(a,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function Bt(e,t,n,r){return e=Oe(7,e,r,t),e.lanes=n,e}function Vs(e,t,n,r){return e=Oe(22,e,r,t),e.elementType=wc,e.lanes=n,e.stateNode={isHidden:!1},e}function Cl(e,t,n){return e=Oe(6,e,null,t),e.lanes=n,e}function Pl(e,t,n){return t=Oe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gm(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=cl(0),this.expirationTimes=cl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function ya(e,t,n,r,l,i,a,o,c){return e=new gm(e,t,n,o,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Oe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},na(i),e}function vm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:tn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function fd(e){if(!e)return Pt;e=e._reactInternals;e:{if(Xt(e)!==e||e.tag!==1)throw Error(S(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(be(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(S(171))}if(e.tag===1){var n=e.type;if(be(n))return fu(e,n,t)}return t}function pd(e,t,n,r,l,i,a,o,c){return e=ya(n,r,!0,e,l,i,a,o,c),e.context=fd(null),n=e.current,r=ye(),l=bt(n),i=rt(r,l),i.callback=t??null,kt(n,i,l),e.current.lanes=l,Nr(e,l,r),_e(e,r),e}function Ws(e,t,n,r){var l=t.current,i=ye(),a=bt(l);return n=fd(n),t.context===null?t.context=n:t.pendingContext=n,t=rt(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=kt(l,t,a),e!==null&&(Qe(e,l,a,i),Jr(e,l,a)),a}function Ps(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 Oo(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ja(e,t){Oo(e,t),(e=e.alternate)&&Oo(e,t)}function ym(){return null}var md=typeof reportError=="function"?reportError:function(e){console.error(e)};function wa(e){this._internalRoot=e}Hs.prototype.render=wa.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(S(409));Ws(e,t,null,null)};Hs.prototype.unmount=wa.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kt(function(){Ws(null,e,null,null)}),t[lt]=null}};function Hs(e){this._internalRoot=e}Hs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Hc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<mt.length&&t!==0&&t<mt[n].priority;n++);mt.splice(n,0,e),n===0&&Kc(e)}};function Na(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Qs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Io(){}function jm(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var f=Ps(a);i.call(f)}}var a=pd(t,r,e,0,null,!1,!1,"",Io);return e._reactRootContainer=a,e[lt]=a.current,cr(e.nodeType===8?e.parentNode:e),Kt(),a}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var o=r;r=function(){var f=Ps(c);o.call(f)}}var c=ya(e,0,!1,null,null,!1,!1,"",Io);return e._reactRootContainer=c,e[lt]=c.current,cr(e.nodeType===8?e.parentNode:e),Kt(function(){Ws(t,c,n,r)}),c}function Ks(e,t,n,r,l){var i=n._reactRootContainer;if(i){var a=i;if(typeof l=="function"){var o=l;l=function(){var c=Ps(a);o.call(c)}}Ws(t,a,e,l)}else a=jm(n,t,e,l,r);return Ps(a)}Vc=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Wn(t.pendingLanes);n!==0&&(Ui(t,n|1),_e(t,ee()),!(D&6)&&(_n=ee()+500,Mt()))}break;case 13:Kt(function(){var r=it(e,1);if(r!==null){var l=ye();Qe(r,e,1,l)}}),ja(e,1)}};Bi=function(e){if(e.tag===13){var t=it(e,134217728);if(t!==null){var n=ye();Qe(t,e,134217728,n)}ja(e,134217728)}};Wc=function(e){if(e.tag===13){var t=bt(e),n=it(e,t);if(n!==null){var r=ye();Qe(n,e,t,r)}ja(e,t)}};Hc=function(){return A};Qc=function(e,t){var n=A;try{return A=e,t()}finally{A=n}};Wl=function(e,t,n){switch(t){case"input":if($l(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=$s(r);if(!l)throw Error(S(90));kc(r),$l(r,l)}}}break;case"textarea":bc(e,n);break;case"select":t=n.value,t!=null&&mn(e,!!n.multiple,t,!1)}};Mc=ha;Rc=Kt;var wm={usingClientEntryPoint:!1,Events:[Sr,an,$s,Tc,Lc,ha]},An={findFiberByHostInstance:Dt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Nm={bundleType:An.bundleType,version:An.version,rendererPackageName:An.rendererPackageName,rendererConfig:An.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ot.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ic(e),e===null?null:e.stateNode},findFiberByHostInstance:An.findFiberByHostInstance||ym,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 Qr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qr.isDisabled&&Qr.supportsFiber)try{Rs=Qr.inject(Nm),qe=Qr}catch{}}Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wm;Le.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Na(t))throw Error(S(200));return vm(e,t,null,n)};Le.createRoot=function(e,t){if(!Na(e))throw Error(S(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=ya(e,1,!1,null,null,n,!1,r,l),e[lt]=t.current,cr(e.nodeType===8?e.parentNode:e),new wa(t)};Le.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(S(188)):(e=Object.keys(e).join(","),Error(S(268,e)));return e=Ic(t),e=e===null?null:e.stateNode,e};Le.flushSync=function(e){return Kt(e)};Le.hydrate=function(e,t,n){if(!Qs(t))throw Error(S(200));return Ks(null,e,t,!0,n)};Le.hydrateRoot=function(e,t,n){if(!Na(e))throw Error(S(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",a=md;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=pd(t,null,e,1,n??null,l,!1,i,a),e[lt]=t.current,cr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Hs(t)};Le.render=function(e,t,n){if(!Qs(t))throw Error(S(200));return Ks(null,e,t,!1,n)};Le.unmountComponentAtNode=function(e){if(!Qs(e))throw Error(S(40));return e._reactRootContainer?(Kt(function(){Ks(null,null,e,!1,function(){e._reactRootContainer=null,e[lt]=null})}),!0):!1};Le.unstable_batchedUpdates=ha;Le.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qs(n))throw Error(S(200));if(e==null||e._reactInternals===void 0)throw Error(S(38));return Ks(e,t,n,!1,r)};Le.version="18.3.1-next-f1338f8080-20240426";function hd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hd)}catch(e){console.error(e)}}hd(),hc.exports=Le;var xd=hc.exports,gd,$o=xd;gd=$o.createRoot,$o.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 vt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(vt||(vt={}));const Do="popstate";function km(e){e===void 0&&(e={});function t(r,l){let{pathname:i,search:a,hash:o}=r.location;return ki("",{pathname:i,search:a,hash:o},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(r,l){return typeof l=="string"?l:Ts(l)}return bm(t,n,null,e)}function J(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ka(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Sm(){return Math.random().toString(36).substr(2,8)}function Fo(e,t){return{usr:e.state,key:e.key,idx:t}}function ki(e,t,n,r){return n===void 0&&(n=null),vr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ln(t):t,{state:n,key:t&&t.key||r||Sm()})}function Ts(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 Ln(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 bm(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:i=!1}=r,a=l.history,o=vt.Pop,c=null,f=p();f==null&&(f=0,a.replaceState(vr({},a.state,{idx:f}),""));function p(){return(a.state||{idx:null}).idx}function d(){o=vt.Pop;let y=p(),h=y==null?null:y-f;f=y,c&&c({action:o,location:j.location,delta:h})}function m(y,h){o=vt.Push;let u=ki(j.location,y,h);f=p()+1;let x=Fo(u,f),N=j.createHref(u);try{a.pushState(x,"",N)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;l.location.assign(N)}i&&c&&c({action:o,location:j.location,delta:1})}function w(y,h){o=vt.Replace;let u=ki(j.location,y,h);f=p();let x=Fo(u,f),N=j.createHref(u);a.replaceState(x,"",N),i&&c&&c({action:o,location:j.location,delta:0})}function g(y){let h=l.location.origin!=="null"?l.location.origin:l.location.href,u=typeof y=="string"?y:Ts(y);return u=u.replace(/ $/,"%20"),J(h,"No window.location.(origin|href) available to create URL for href: "+u),new URL(u,h)}let j={get action(){return o},get location(){return e(l,a)},listen(y){if(c)throw new Error("A history only accepts one active listener");return l.addEventListener(Do,d),c=y,()=>{l.removeEventListener(Do,d),c=null}},createHref(y){return t(l,y)},createURL:g,encodeLocation(y){let h=g(y);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:m,replace:w,go(y){return a.go(y)}};return j}var Ao;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ao||(Ao={}));function _m(e,t,n){return n===void 0&&(n="/"),Em(e,t,n)}function Em(e,t,n,r){let l=typeof t=="string"?Ln(t):t,i=En(l.pathname||"/",n);if(i==null)return null;let a=vd(e);Cm(a);let o=null;for(let c=0;o==null&&c<a.length;++c){let f=Fm(i);o=$m(a[c],f)}return o}function vd(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let l=(i,a,o)=>{let c={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(J(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let f=Et([r,c.relativePath]),p=n.concat(c);i.children&&i.children.length>0&&(J(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),vd(i.children,t,p,f)),!(i.path==null&&!i.index)&&t.push({path:f,score:Om(f,i.index),routesMeta:p})};return e.forEach((i,a)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))l(i,a);else for(let c of yd(i.path))l(i,a,c)}),t}function yd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return l?[i,""]:[i];let a=yd(r.join("/")),o=[];return o.push(...a.map(c=>c===""?i:[i,c].join("/"))),l&&o.push(...a),o.map(c=>e.startsWith("/")&&c===""?"/":c)}function Cm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Im(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Pm=/^:[\w-]+$/,Tm=3,Lm=2,Mm=1,Rm=10,zm=-2,Uo=e=>e==="*";function Om(e,t){let n=e.split("/"),r=n.length;return n.some(Uo)&&(r+=zm),t&&(r+=Lm),n.filter(l=>!Uo(l)).reduce((l,i)=>l+(Pm.test(i)?Tm:i===""?Mm:Rm),r)}function Im(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 $m(e,t,n){let{routesMeta:r}=e,l={},i="/",a=[];for(let o=0;o<r.length;++o){let c=r[o],f=o===r.length-1,p=i==="/"?t:t.slice(i.length)||"/",d=Si({path:c.relativePath,caseSensitive:c.caseSensitive,end:f},p),m=c.route;if(!d)return null;Object.assign(l,d.params),a.push({params:l,pathname:Et([i,d.pathname]),pathnameBase:Wm(Et([i,d.pathnameBase])),route:m}),d.pathnameBase!=="/"&&(i=Et([i,d.pathnameBase]))}return a}function Si(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Dm(e.path,e.caseSensitive,e.end),l=t.match(n);if(!l)return null;let i=l[0],a=i.replace(/(.)\/+$/,"$1"),o=l.slice(1);return{params:r.reduce((f,p,d)=>{let{paramName:m,isOptional:w}=p;if(m==="*"){let j=o[d]||"";a=i.slice(0,i.length-j.length).replace(/(.)\/+$/,"$1")}const g=o[d];return w&&!g?f[m]=void 0:f[m]=(g||"").replace(/%2F/g,"/"),f},{}),pathname:i,pathnameBase:a,pattern:e}}function Dm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ka(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,(a,o,c)=>(r.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Fm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ka(!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 En(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 Am=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Um=e=>Am.test(e);function Bm(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Ln(e):e,i;if(n)if(Um(n))i=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),ka(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?i=Bo(n.substring(1),"/"):i=Bo(n,t)}else i=t;return{pathname:i,search:Hm(r),hash:Qm(l)}}function Bo(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 Tl(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 Vm(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function jd(e,t){let n=Vm(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function wd(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Ln(e):(l=vr({},e),J(!l.pathname||!l.pathname.includes("?"),Tl("?","pathname","search",l)),J(!l.pathname||!l.pathname.includes("#"),Tl("#","pathname","hash",l)),J(!l.search||!l.search.includes("#"),Tl("#","search","hash",l)));let i=e===""||l.pathname==="",a=i?"/":l.pathname,o;if(a==null)o=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let m=a.split("/");for(;m[0]==="..";)m.shift(),d-=1;l.pathname=m.join("/")}o=d>=0?t[d]:"/"}let c=Bm(l,o),f=a&&a!=="/"&&a.endsWith("/"),p=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||p)&&(c.pathname+="/"),c}const Et=e=>e.join("/").replace(/\/\/+/g,"/"),Wm=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Hm=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Qm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Km(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Nd=["post","put","patch","delete"];new Set(Nd);const Ym=["get",...Nd];new Set(Ym);/**
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 Ys=v.createContext(null),kd=v.createContext(null),Rt=v.createContext(null),Gs=v.createContext(null),ct=v.createContext({outlet:null,matches:[],isDataRoute:!1}),Sd=v.createContext(null);function Gm(e,t){let{relative:n}=t===void 0?{}:t;_r()||J(!1);let{basename:r,navigator:l}=v.useContext(Rt),{hash:i,pathname:a,search:o}=qs(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:Et([r,a])),l.createHref({pathname:c,search:o,hash:i})}function _r(){return v.useContext(Gs)!=null}function qt(){return _r()||J(!1),v.useContext(Gs).location}function bd(e){v.useContext(Rt).static||v.useLayoutEffect(e)}function _d(){let{isDataRoute:e}=v.useContext(ct);return e?ch():Xm()}function Xm(){_r()||J(!1);let e=v.useContext(Ys),{basename:t,future:n,navigator:r}=v.useContext(Rt),{matches:l}=v.useContext(ct),{pathname:i}=qt(),a=JSON.stringify(jd(l,n.v7_relativeSplatPath)),o=v.useRef(!1);return bd(()=>{o.current=!0}),v.useCallback(function(f,p){if(p===void 0&&(p={}),!o.current)return;if(typeof f=="number"){r.go(f);return}let d=wd(f,JSON.parse(a),i,p.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Et([t,d.pathname])),(p.replace?r.replace:r.push)(d,p.state,p)},[t,r,a,i,e])}const Ed=v.createContext(null);function Ae(){return v.useContext(Ed)}function qm(e){let t=v.useContext(ct).outlet;return t&&v.createElement(Ed.Provider,{value:e},t)}function Xs(){let{matches:e}=v.useContext(ct),t=e[e.length-1];return t?t.params:{}}function qs(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=v.useContext(Rt),{matches:l}=v.useContext(ct),{pathname:i}=qt(),a=JSON.stringify(jd(l,r.v7_relativeSplatPath));return v.useMemo(()=>wd(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Jm(e,t){return Zm(e,t)}function Zm(e,t,n,r){_r()||J(!1);let{navigator:l}=v.useContext(Rt),{matches:i}=v.useContext(ct),a=i[i.length-1],o=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let f=qt(),p;if(t){var d;let y=typeof t=="string"?Ln(t):t;c==="/"||(d=y.pathname)!=null&&d.startsWith(c)||J(!1),p=y}else p=f;let m=p.pathname||"/",w=m;if(c!=="/"){let y=c.replace(/^\//,"").split("/");w="/"+m.replace(/^\//,"").split("/").slice(y.length).join("/")}let g=_m(e,{pathname:w}),j=sh(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:Et([c,l.encodeLocation?l.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?c:Et([c,l.encodeLocation?l.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,n,r);return t&&j?v.createElement(Gs.Provider,{value:{location:yr({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:vt.Pop}},j):j}function eh(){let e=oh(),t=Km(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 v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:l},n):null,null)}const th=v.createElement(eh,null);class nh extends v.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?v.createElement(ct.Provider,{value:this.props.routeContext},v.createElement(Sd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function rh(e){let{routeContext:t,match:n,children:r}=e,l=v.useContext(Ys);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(ct.Provider,{value:t},r)}function sh(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=(l=n)==null?void 0:l.errors;if(o!=null){let p=a.findIndex(d=>d.route.id&&(o==null?void 0:o[d.route.id])!==void 0);p>=0||J(!1),a=a.slice(0,Math.min(a.length,p+1))}let c=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<a.length;p++){let d=a[p];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(f=p),d.route.id){let{loaderData:m,errors:w}=n,g=d.route.loader&&m[d.route.id]===void 0&&(!w||w[d.route.id]===void 0);if(d.route.lazy||g){c=!0,f>=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((p,d,m)=>{let w,g=!1,j=null,y=null;n&&(w=o&&d.route.id?o[d.route.id]:void 0,j=d.route.errorElement||th,c&&(f<0&&m===0?(uh("route-fallback"),g=!0,y=null):f===m&&(g=!0,y=d.route.hydrateFallbackElement||null)));let h=t.concat(a.slice(0,m+1)),u=()=>{let x;return w?x=j:g?x=y:d.route.Component?x=v.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=p,v.createElement(rh,{match:d,routeContext:{outlet:p,matches:h,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?v.createElement(nh,{location:n.location,revalidation:n.revalidation,component:j,error:w,children:u(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):u()},null)}var Cd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Cd||{}),Pd=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}(Pd||{});function lh(e){let t=v.useContext(Ys);return t||J(!1),t}function ih(e){let t=v.useContext(kd);return t||J(!1),t}function ah(e){let t=v.useContext(ct);return t||J(!1),t}function Td(e){let t=ah(),n=t.matches[t.matches.length-1];return n.route.id||J(!1),n.route.id}function oh(){var e;let t=v.useContext(Sd),n=ih(),r=Td();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ch(){let{router:e}=lh(Cd.UseNavigateStable),t=Td(Pd.UseNavigateStable),n=v.useRef(!1);return bd(()=>{n.current=!0}),v.useCallback(function(l,i){i===void 0&&(i={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,yr({fromRouteId:t},i)))},[e,t])}const Vo={};function uh(e,t,n){Vo[e]||(Vo[e]=!0)}function dh(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ld(e){return qm(e.context)}function U(e){J(!1)}function fh(e){let{basename:t="/",children:n=null,location:r,navigationType:l=vt.Pop,navigator:i,static:a=!1,future:o}=e;_r()&&J(!1);let c=t.replace(/^\/*/,"/"),f=v.useMemo(()=>({basename:c,navigator:i,static:a,future:yr({v7_relativeSplatPath:!1},o)}),[c,o,i,a]);typeof r=="string"&&(r=Ln(r));let{pathname:p="/",search:d="",hash:m="",state:w=null,key:g="default"}=r,j=v.useMemo(()=>{let y=En(p,c);return y==null?null:{location:{pathname:y,search:d,hash:m,state:w,key:g},navigationType:l}},[c,p,d,m,w,g,l]);return j==null?null:v.createElement(Rt.Provider,{value:f},v.createElement(Gs.Provider,{children:n,value:j}))}function ph(e){let{children:t,location:n}=e;return Jm(bi(t),n)}new Promise(()=>{});function bi(e,t){t===void 0&&(t=[]);let n=[];return v.Children.forEach(e,(r,l)=>{if(!v.isValidElement(r))return;let i=[...t,l];if(r.type===v.Fragment){n.push.apply(n,bi(r.props.children,i));return}r.type!==U&&J(!1),!r.props.index||!r.props.children||J(!1);let a={id:r.props.id||i.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&&(a.children=bi(r.props.children,i)),n.push(a)}),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 Ls(){return Ls=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},Ls.apply(this,arguments)}function Md(e,t){if(e==null)return{};var n={},r=Object.keys(e),l,i;for(i=0;i<r.length;i++)l=r[i],!(t.indexOf(l)>=0)&&(n[l]=e[l]);return n}function mh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hh(e,t){return e.button===0&&(!t||t==="_self")&&!mh(e)}const xh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],gh=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],vh="6";try{window.__reactRouterVersion=vh}catch{}const yh=v.createContext({isTransitioning:!1}),jh="startTransition",Wo=ff[jh];function wh(e){let{basename:t,children:n,future:r,window:l}=e,i=v.useRef();i.current==null&&(i.current=km({window:l,v5Compat:!0}));let a=i.current,[o,c]=v.useState({action:a.action,location:a.location}),{v7_startTransition:f}=r||{},p=v.useCallback(d=>{f&&Wo?Wo(()=>c(d)):c(d)},[c,f]);return v.useLayoutEffect(()=>a.listen(p),[a,p]),v.useEffect(()=>dh(r),[r]),v.createElement(fh,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:a,future:r})}const Nh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,K=v.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:i,replace:a,state:o,target:c,to:f,preventScrollReset:p,viewTransition:d}=t,m=Md(t,xh),{basename:w}=v.useContext(Rt),g,j=!1;if(typeof f=="string"&&kh.test(f)&&(g=f,Nh))try{let x=new URL(window.location.href),N=f.startsWith("//")?new URL(x.protocol+f):new URL(f),b=En(N.pathname,w);N.origin===x.origin&&b!=null?f=b+N.search+N.hash:j=!0}catch{}let y=Gm(f,{relative:l}),h=_h(f,{replace:a,state:o,target:c,preventScrollReset:p,relative:l,viewTransition:d});function u(x){r&&r(x),x.defaultPrevented||h(x)}return v.createElement("a",Ls({},m,{href:g||y,onClick:j||i?r:u,ref:n,target:c}))}),Sh=v.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:l=!1,className:i="",end:a=!1,style:o,to:c,viewTransition:f,children:p}=t,d=Md(t,gh),m=qs(c,{relative:d.relative}),w=qt(),g=v.useContext(kd),{navigator:j,basename:y}=v.useContext(Rt),h=g!=null&&Eh(m)&&f===!0,u=j.encodeLocation?j.encodeLocation(m).pathname:m.pathname,x=w.pathname,N=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;l||(x=x.toLowerCase(),N=N?N.toLowerCase():null,u=u.toLowerCase()),N&&y&&(N=En(N,y)||N);const b=u!=="/"&&u.endsWith("/")?u.length-1:u.length;let k=x===u||!a&&x.startsWith(u)&&x.charAt(b)==="/",_=N!=null&&(N===u||!a&&N.startsWith(u)&&N.charAt(u.length)==="/"),E={isActive:k,isPending:_,isTransitioning:h},F=k?r:void 0,M;typeof i=="function"?M=i(E):M=[i,k?"active":null,_?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let C=typeof o=="function"?o(E):o;return v.createElement(K,Ls({},d,{"aria-current":F,className:M,ref:n,style:C,to:c,viewTransition:f}),typeof p=="function"?p(E):p)});var _i;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_i||(_i={}));var Ho;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ho||(Ho={}));function bh(e){let t=v.useContext(Ys);return t||J(!1),t}function _h(e,t){let{target:n,replace:r,state:l,preventScrollReset:i,relative:a,viewTransition:o}=t===void 0?{}:t,c=_d(),f=qt(),p=qs(e,{relative:a});return v.useCallback(d=>{if(hh(d,n)){d.preventDefault();let m=r!==void 0?r:Ts(f)===Ts(p);c(e,{replace:m,state:l,preventScrollReset:i,relative:a,viewTransition:o})}},[f,c,p,r,l,n,e,i,a,o])}function Eh(e,t){t===void 0&&(t={});let n=v.useContext(yh);n==null&&J(!1);let{basename:r}=bh(_i.useViewTransitionState),l=qs(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=En(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=En(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Si(l.pathname,a)!=null||Si(l.pathname,i)!=null}/**
68
+ * @license lucide-react v0.460.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 Ch=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Rd=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
73
+ * @license lucide-react v0.460.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
+ */var Ph={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"};/**
78
+ * @license lucide-react v0.460.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 Th=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:i,iconNode:a,...o},c)=>v.createElement("svg",{ref:c,...Ph,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Rd("lucide",l),...o},[...a.map(([f,p])=>v.createElement(f,p)),...Array.isArray(i)?i:[i]]));/**
83
+ * @license lucide-react v0.460.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 L=(e,t)=>{const n=v.forwardRef(({className:r,...l},i)=>v.createElement(Th,{ref:i,iconNode:t,className:Rd(`lucide-${Ch(e)}`,r),...l}));return n.displayName=`${e}`,n};/**
88
+ * @license lucide-react v0.460.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
+ */const zd=L("Activity",[["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"}]]);/**
93
+ * @license lucide-react v0.460.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 Od=L("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
98
+ * @license lucide-react v0.460.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 Lh=L("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);/**
103
+ * @license lucide-react v0.460.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 Mh=L("ArrowUpFromLine",[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
108
+ * @license lucide-react v0.460.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 Qo=L("BellOff",[["path",{d:"M8.7 3A6 6 0 0 1 18 8a21.3 21.3 0 0 0 .6 5",key:"o7mx20"}],["path",{d:"M17 17H3s3-2 3-9a4.67 4.67 0 0 1 .3-1.7",key:"16f1lm"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
113
+ * @license lucide-react v0.460.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 Ei=L("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
118
+ * @license lucide-react v0.460.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 Rh=L("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
123
+ * @license lucide-react v0.460.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 Id=L("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
128
+ * @license lucide-react v0.460.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 zh=L("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
133
+ * @license lucide-react v0.460.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 Oh=L("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
138
+ * @license lucide-react v0.460.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 $e=L("CircleAlert",[["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"}]]);/**
143
+ * @license lucide-react v0.460.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 ut=L("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
148
+ * @license lucide-react v0.460.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 Ih=L("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
153
+ * @license lucide-react v0.460.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 $h=L("Dumbbell",[["path",{d:"M14.4 14.4 9.6 9.6",key:"ic80wn"}],["path",{d:"M18.657 21.485a2 2 0 1 1-2.829-2.828l-1.767 1.768a2 2 0 1 1-2.829-2.829l6.364-6.364a2 2 0 1 1 2.829 2.829l-1.768 1.767a2 2 0 1 1 2.828 2.829z",key:"nnl7wr"}],["path",{d:"m21.5 21.5-1.4-1.4",key:"1f1ice"}],["path",{d:"M3.9 3.9 2.5 2.5",key:"1evmna"}],["path",{d:"M6.404 12.768a2 2 0 1 1-2.829-2.829l1.768-1.767a2 2 0 1 1-2.828-2.829l2.828-2.828a2 2 0 1 1 2.829 2.828l1.767-1.768a2 2 0 1 1 2.829 2.829z",key:"yhosts"}]]);/**
158
+ * @license lucide-react v0.460.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 Dh=L("ExternalLink",[["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"}]]);/**
163
+ * @license lucide-react v0.460.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 Fh=L("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
168
+ * @license lucide-react v0.460.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 Ah=L("FolderKanban",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]]);/**
173
+ * @license lucide-react v0.460.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 Uh=L("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
178
+ * @license lucide-react v0.460.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 Bh=L("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
183
+ * @license lucide-react v0.460.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 Vh=L("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
188
+ * @license lucide-react v0.460.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 Wh=L("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
193
+ * @license lucide-react v0.460.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 Yt=L("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
198
+ * @license lucide-react v0.460.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 Hh=L("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
203
+ * @license lucide-react v0.460.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 Ci=L("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/**
208
+ * @license lucide-react v0.460.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 Qh=L("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/**
213
+ * @license lucide-react v0.460.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 Js=L("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
218
+ * @license lucide-react v0.460.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 $d=L("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
223
+ * @license lucide-react v0.460.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 Dd=L("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
228
+ * @license lucide-react v0.460.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 Zs=L("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
233
+ * @license lucide-react v0.460.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 Kh=L("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/**
238
+ * @license lucide-react v0.460.0 - ISC
239
+ *
240
+ * This source code is licensed under the ISC license.
241
+ * See the LICENSE file in the root directory of this source tree.
242
+ */const Yh=L("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
243
+ * @license lucide-react v0.460.0 - ISC
244
+ *
245
+ * This source code is licensed under the ISC license.
246
+ * See the LICENSE file in the root directory of this source tree.
247
+ */const Sa=L("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
248
+ * @license lucide-react v0.460.0 - ISC
249
+ *
250
+ * This source code is licensed under the ISC license.
251
+ * See the LICENSE file in the root directory of this source tree.
252
+ */const ba=L("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
253
+ * @license lucide-react v0.460.0 - ISC
254
+ *
255
+ * This source code is licensed under the ISC license.
256
+ * See the LICENSE file in the root directory of this source tree.
257
+ */const Gh=L("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
258
+ * @license lucide-react v0.460.0 - ISC
259
+ *
260
+ * This source code is licensed under the ISC license.
261
+ * See the LICENSE file in the root directory of this source tree.
262
+ */const Xh=L("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
263
+ * @license lucide-react v0.460.0 - ISC
264
+ *
265
+ * This source code is licensed under the ISC license.
266
+ * See the LICENSE file in the root directory of this source tree.
267
+ */const qh=L("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
268
+ * @license lucide-react v0.460.0 - ISC
269
+ *
270
+ * This source code is licensed under the ISC license.
271
+ * See the LICENSE file in the root directory of this source tree.
272
+ */const Jh=L("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
273
+ * @license lucide-react v0.460.0 - ISC
274
+ *
275
+ * This source code is licensed under the ISC license.
276
+ * See the LICENSE file in the root directory of this source tree.
277
+ */const Zh=L("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
278
+ * @license lucide-react v0.460.0 - ISC
279
+ *
280
+ * This source code is licensed under the ISC license.
281
+ * See the LICENSE file in the root directory of this source tree.
282
+ */const jr=L("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
283
+ * @license lucide-react v0.460.0 - ISC
284
+ *
285
+ * This source code is licensed under the ISC license.
286
+ * See the LICENSE file in the root directory of this source tree.
287
+ */const ex=L("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
288
+ * @license lucide-react v0.460.0 - ISC
289
+ *
290
+ * This source code is licensed under the ISC license.
291
+ * See the LICENSE file in the root directory of this source tree.
292
+ */const Fd=L("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
293
+ * @license lucide-react v0.460.0 - ISC
294
+ *
295
+ * This source code is licensed under the ISC license.
296
+ * See the LICENSE file in the root directory of this source tree.
297
+ */const tx=L("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
298
+ * @license lucide-react v0.460.0 - ISC
299
+ *
300
+ * This source code is licensed under the ISC license.
301
+ * See the LICENSE file in the root directory of this source tree.
302
+ */const nx=L("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
303
+ * @license lucide-react v0.460.0 - ISC
304
+ *
305
+ * This source code is licensed under the ISC license.
306
+ * See the LICENSE file in the root directory of this source tree.
307
+ */const Ko=L("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
308
+ * @license lucide-react v0.460.0 - ISC
309
+ *
310
+ * This source code is licensed under the ISC license.
311
+ * See the LICENSE file in the root directory of this source tree.
312
+ */const rx=L("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
313
+ * @license lucide-react v0.460.0 - ISC
314
+ *
315
+ * This source code is licensed under the ISC license.
316
+ * See the LICENSE file in the root directory of this source tree.
317
+ */const Ad=L("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Ud(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(n=Ud(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function re(){for(var e,t,n=0,r="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=Ud(e))&&(r&&(r+=" "),r+=t);return r}function V(e){if(!e)return"";const t=new Date(e.replace(" ","T")+(e.includes("T")||e.includes("Z")?"":"Z"));if(isNaN(t.getTime()))return e;const n=Math.max(0,(Date.now()-t.getTime())/1e3);if(n<60)return`${Math.floor(n)}s ago`;const r=n/60;if(r<60)return`${Math.floor(r)}m ago`;const l=r/60;if(l<24)return`${Math.floor(l)}h ago`;const i=l/24;if(i<30)return`${Math.floor(i)}d ago`;const a=i/30;return a<12?`${Math.floor(a)}mo ago`:`${Math.floor(a/12)}y ago`}function sx(e){return e?e.toLowerCase().replace(/[^a-z0-9]+/g,"-"):"none"}function lx(e){switch(sx(e)){case"shinobi":return"bg-ws-shinobi text-white";case"shinobiapps":return"bg-ws-shinobiapps text-bg";case"sitesnap":return"bg-ws-sitesnap text-bg";default:return"bg-border-2 text-text-muted italic"}}function _a({workspace:e}){return s.jsx("span",{className:re("inline-block rounded text-[10px] font-medium lowercase tracking-wider px-1.5 py-0.5",lx(e)),children:e??"(no workspace)"})}const ix={music:Qh,shield:Xh,dumbbell:$h,home:Uh,chart:Rh,list:Wh,package:Js};function Bd({name:e,className:t}){const n=ix[e]??Js;return s.jsx(n,{className:t})}async function $(e,t){const n=await fetch(e,{...t,headers:{"Content-Type":"application/json",...(t==null?void 0:t.headers)??{}}});if(!n.ok){const r=await n.text();throw new Error(`${(t==null?void 0:t.method)??"GET"} ${e} → ${n.status}: ${r.slice(0,200)}`)}return await n.json()}function Vd(e){const t=new URLSearchParams;e!=null&&e.sort&&t.set("sort",e.sort),e!=null&&e.include_archived&&t.set("include_archived","true");const n=t.toString();return $(`/api/projects${n?`?${n}`:""}`)}function ax(e){return $(`/api/projects/${e}/snapshot`)}function ox(e,t=8){const n=new URLSearchParams({q:e,limit:String(t)});return $(`/api/recall?${n.toString()}`)}function Wd(e,t){return $(`/api/subtasks/${e}`,{method:"PATCH",body:JSON.stringify(t)})}function cx(e,t){return $(`/api/decisions/${e}/status`,{method:"PATCH",body:JSON.stringify({status:t})})}function ux(e){return $(`/api/projects/${e}/decision-drafts`)}function dx(e){return $(`/api/decision-drafts/${e}/approve`,{method:"POST",body:"{}"})}function fx(e){return $(`/api/decision-drafts/${e}/reject`,{method:"POST",body:"{}"})}function px(e=200){return $(`/api/sessions?limit=${e}`)}function mx(e){return $(`/api/sessions/${encodeURIComponent(e)}`)}function hx(){return $("/api/settings")}function xx(e){return $("/api/settings",{method:"POST",body:JSON.stringify({patch:e})})}function gx(){return $("/api/push/vapid-key")}function vx(){return $("/api/push/subscriptions")}function yx(e){return $("/api/push/subscribe",{method:"POST",body:JSON.stringify(e)})}function Yo(e){return $(`/api/push/subscriptions/${e}`,{method:"DELETE"})}function jx(){return $("/api/push/test",{method:"POST"})}function wx(e){return $("/api/approvals")}function Nx(e,t,n){return $(`/api/approvals/${e}/respond`,{method:"POST",body:JSON.stringify({value:t,note:n})})}function kx(e){return $(`/api/approvals/${e}/cancel`,{method:"POST",body:"{}"})}function Sx(){return $("/api/sync/status")}function bx(){return $("/api/sync/push",{method:"POST"})}function _x(){return $("/api/sync/pull",{method:"POST"})}function Go(e){return $(`/api/projects/${e}/time-stats`)}function Xo(e){return $(`/api/projects/${e}/cost-stats`)}function Ex(e={}){return $("/api/cost/ingest",{method:"POST",body:JSON.stringify(e)})}function Cx(){return $("/api/plugins")}function Px(e){return $("/api/plugins/search",{method:"POST",body:JSON.stringify({query:e})})}function Tx(e){return $("/api/plugins/install",{method:"POST",body:JSON.stringify({pkg:e})})}function Lx(e){return $(`/api/plugins/${encodeURIComponent(e)}`,{method:"DELETE"})}function Mx(){return $("/api/telemetry/summary")}function Rx(){return $("/api/telemetry/flush",{method:"POST",body:"{}"})}function zx(){return $("/api/relay/status")}function Ox(){return $("/api/relay/broadcast-sync",{method:"POST",body:"{}"})}function Ix(){return $("/api/plugin-pages")}function $x(e){return $(`/api/plugin-pages/${encodeURIComponent(e)}`)}function Dx(e,t,n){return $(`/api/plugin-pages/${encodeURIComponent(e)}/action`,{method:"POST",body:JSON.stringify({tool:t,args:n??{}})})}const Fx={default:"bg-border-2 border-border text-text hover:bg-border",primary:"bg-accent-2 border-accent-2 text-white hover:bg-accent-3",ghost:"bg-transparent border-transparent text-text-muted hover:text-text hover:bg-panel",danger:"bg-danger border-danger text-white hover:opacity-90"},Ax={sm:"text-xs px-2 py-1",md:"text-sm px-3 py-1.5"},R=v.forwardRef(({variant:e="default",size:t="md",className:n,...r},l)=>s.jsx("button",{ref:l,className:re("border rounded transition-colors font-medium cursor-pointer disabled:opacity-50 disabled:cursor-wait",Fx[e],Ax[t],n),...r}));R.displayName="Button";function Ux(){const[e,t]=v.useState(null),[n,r]=v.useState({kind:"idle"});v.useEffect(()=>{l()},[]);async function l(){try{t(await Sx())}catch(o){r({kind:"err",message:o instanceof Error?o.message:String(o)})}}async function i(o){if(!(o==="pull"&&!window.confirm("Pull overwrites the local DB with the latest snapshot from the sync repo. Continue?"))){r({kind:"busy",op:o});try{const c=o==="push"?await bx():await _x();if(!c.ok)throw new Error(c.error??"unknown error");r({kind:"ok",op:o,elapsedMs:c.elapsed_ms??0}),await l(),o==="pull"&&setTimeout(()=>location.reload(),500)}catch(c){r({kind:"err",message:c instanceof Error?c.message:String(c)})}}}const a=e==null?void 0:e.sync;return s.jsxs("div",{className:"bg-panel border border-border rounded-md p-3 mt-4",children:[s.jsx("div",{className:"text-[11px] uppercase tracking-wider text-text-muted mb-2",children:"Sync"}),s.jsxs("div",{className:"space-y-1 text-xs font-mono",children:[e!=null&&e.configured&&a?s.jsxs(s.Fragment,{children:[s.jsxs("div",{children:["push: ",s.jsx("span",{className:a.last_push_at?"text-success":"text-text-muted",children:V(a.last_push_at)||"never"})]}),s.jsxs("div",{children:["pull: ",s.jsx("span",{className:a.last_pull_at?"text-success":"text-text-muted",children:V(a.last_pull_at)||"never"})]}),s.jsxs("div",{className:"text-text-dim text-[10px] break-all",children:[a.repo_path,s.jsx("br",{}),"(branch: ",a.branch,")"]})]}):s.jsx("div",{className:"text-text-muted",children:"not configured"}),n.kind==="ok"&&s.jsxs("div",{className:"text-success",children:[n.op," OK (",n.elapsedMs,"ms)"]}),n.kind==="err"&&s.jsx("div",{className:"text-danger break-all",children:n.message})]}),s.jsxs("div",{className:"flex gap-1.5 mt-3",children:[s.jsxs(R,{size:"sm",variant:"default",className:"flex-1 flex items-center justify-center gap-1",disabled:n.kind==="busy",onClick:()=>void i("pull"),children:[n.kind==="busy"&&n.op==="pull"?s.jsx(Yt,{className:"w-3 h-3 animate-spin"}):s.jsx(Lh,{className:"w-3 h-3"}),"Pull"]}),s.jsxs(R,{size:"sm",variant:"primary",className:"flex-1 flex items-center justify-center gap-1",disabled:n.kind==="busy",onClick:()=>void i("push"),children:[n.kind==="busy"&&n.op==="push"?s.jsx(Yt,{className:"w-3 h-3 animate-spin"}):s.jsx(Mh,{className:"w-3 h-3"}),"Push"]})]})]})}function qo({projects:e}){const t=qt(),n=Xs(),r=n.id?Number(n.id):null,l=e.filter(m=>!m.archived_at),i=e.filter(m=>m.archived_at),a=new Map;for(const m of l){const w=m.workspace??"(no workspace)";a.has(w)||a.set(w,[]),a.get(w).push(m)}const[o,c]=v.useState([]);v.useEffect(()=>{let m=!1;return Ix().then(w=>{m||c(w.pages)}).catch(()=>{}),()=>{m=!0}},[]);const[f,p]=v.useState(!1);v.useEffect(()=>{p(/Mac|iPhone|iPad/.test(navigator.platform??navigator.userAgent))},[]);const d=f?"⌘":"Ctrl";return s.jsxs("aside",{className:"bg-panel-2 border-r border-border w-64 flex-shrink-0 overflow-y-auto scrollbar-thin p-4",children:[s.jsx(K,{to:"/",className:"block text-lg font-bold tracking-wider mb-4 text-text",children:"Shinobi 🥷"}),s.jsxs("button",{onClick:()=>window.dispatchEvent(new CustomEvent("cmd-palette:open")),className:"w-full flex items-center gap-2 px-2 py-1.5 mb-4 rounded text-sm bg-panel border border-border text-text-muted hover:text-text hover:border-accent/60 transition-colors",children:[s.jsx(Sa,{className:"w-3.5 h-3.5"}),s.jsx("span",{className:"flex-1 text-left",children:"Search..."}),s.jsxs("kbd",{className:"text-[10px] border border-border rounded px-1 py-0.5",children:[d," K"]})]}),s.jsx("div",{className:"text-[11px] uppercase tracking-wider text-text-muted mb-2",children:"Workspace"}),s.jsxs("ul",{className:"mb-4",children:[s.jsx("li",{children:s.jsx(K,{to:"/sessions",className:re("block px-2 py-1.5 rounded text-sm transition-colors",t.pathname==="/sessions"?"bg-border text-text":"text-text hover:bg-panel"),children:"All sessions"})}),s.jsx("li",{children:s.jsxs(K,{to:"/voice",className:re("flex items-center gap-2 px-2 py-1.5 rounded text-sm transition-colors",t.pathname==="/voice"?"bg-border text-text":"text-text hover:bg-panel"),children:[s.jsx(Ci,{className:"w-3.5 h-3.5"})," Voice capture"]})}),s.jsx("li",{children:s.jsxs(K,{to:"/approvals",className:re("flex items-center gap-2 px-2 py-1.5 rounded text-sm transition-colors",t.pathname==="/approvals"?"bg-border text-text":"text-text hover:bg-panel"),children:[s.jsx(Jh,{className:"w-3.5 h-3.5"})," Approvals"]})}),s.jsx("li",{children:s.jsxs(K,{to:"/push",className:re("flex items-center gap-2 px-2 py-1.5 rounded text-sm transition-colors",t.pathname==="/push"?"bg-border text-text":"text-text hover:bg-panel"),children:[s.jsx(Ei,{className:"w-3.5 h-3.5"})," Push"]})}),s.jsx("li",{children:s.jsxs(K,{to:"/relay",className:re("flex items-center gap-2 px-2 py-1.5 rounded text-sm transition-colors",t.pathname==="/relay"?"bg-border text-text":"text-text hover:bg-panel"),children:[s.jsx(Dd,{className:"w-3.5 h-3.5"})," Relay"]})}),s.jsx("li",{children:s.jsxs(K,{to:"/plugins",className:re("flex items-center gap-2 px-2 py-1.5 rounded text-sm transition-colors",t.pathname==="/plugins"?"bg-border text-text":"text-text hover:bg-panel"),children:[s.jsx(Js,{className:"w-3.5 h-3.5"})," Plugins"]})}),s.jsx("li",{children:s.jsxs(K,{to:"/telemetry",className:re("flex items-center gap-2 px-2 py-1.5 rounded text-sm transition-colors",t.pathname==="/telemetry"?"bg-border text-text":"text-text hover:bg-panel"),children:[s.jsx(zd,{className:"w-3.5 h-3.5"})," Telemetry"]})}),s.jsx("li",{children:s.jsxs(K,{to:"/settings",className:re("flex items-center gap-2 px-2 py-1.5 rounded text-sm transition-colors",t.pathname==="/settings"?"bg-border text-text":"text-text hover:bg-panel"),children:[s.jsx(Gh,{className:"w-3.5 h-3.5"})," Settings"]})})]}),o.length>0&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"text-[11px] uppercase tracking-wider text-text-muted mb-2",children:"Apps"}),s.jsx("ul",{className:"mb-4",children:o.map(m=>s.jsx("li",{children:s.jsxs(K,{to:`/apps/${m.id}`,className:re("flex items-center gap-2 px-2 py-1.5 rounded text-sm transition-colors",t.pathname===`/apps/${m.id}`?"bg-border text-text":"text-text hover:bg-panel"),children:[s.jsx(Bd,{name:m.icon,className:"w-3.5 h-3.5"})," ",m.title]})},m.id))})]}),s.jsx("div",{className:"text-[11px] uppercase tracking-wider text-text-muted mb-2",children:"Projects"}),a.size===0?s.jsx("div",{className:"text-text-muted text-sm italic",children:"(none)"}):[...a.entries()].map(([m,w])=>s.jsxs("div",{className:"mb-3",children:[s.jsxs("div",{className:"flex items-center gap-1.5 mt-3 mb-1 text-[10px] uppercase tracking-wider text-text-muted",children:[s.jsx(_a,{workspace:m==="(no workspace)"?null:m}),s.jsx("span",{children:w.length})]}),s.jsx("ul",{children:w.map(g=>s.jsx("li",{children:s.jsx(K,{to:`/projects/${g.id}`,className:re("block px-2 py-1.5 rounded text-sm transition-colors",r===g.id?"bg-border text-text":"text-text hover:bg-panel"),children:g.title})},g.id))})]},m)),i.length>0&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"text-[11px] uppercase tracking-wider text-text-muted mt-4 mb-2 flex items-center gap-1.5",children:[s.jsx(Od,{className:"w-3 h-3"}),"Archived"]}),s.jsx("ul",{children:i.map(m=>s.jsx("li",{children:s.jsx(K,{to:`/projects/${m.id}`,className:"block px-2 py-1.5 rounded text-sm text-text-dim hover:bg-panel",children:m.title})},m.id))})]}),s.jsx(Ux,{})]})}const Bx={project:{label:"Projects",icon:Ah},subtask:{label:"Tasks",icon:Vh},decision:{label:"Decisions",icon:Bh},dead_end:{label:"Dead ends",icon:ex},note:{label:"Notes",icon:Fh}};function Vx(e){const t=[];for(const n of e.projects)t.push({kind:"project",id:n.id,title:n.title,subtitle:n.workspace?`workspace: ${n.workspace}`:"no workspace",projectId:n.id,href:`/projects/${n.id}`});for(const n of e.subtasks)t.push({kind:"subtask",id:n.id,title:n.title,subtitle:`task #${n.id} · status: ${n.status}`,projectId:n.project_id,href:`/projects/${n.project_id}`});for(const n of e.decisions)t.push({kind:"decision",id:n.id,title:n.summary,subtitle:`decision #${n.id} · ${n.kind}`,projectId:n.project_id,href:`/projects/${n.project_id}/decisions`});for(const n of e.dead_ends)t.push({kind:"dead_end",id:n.id,title:n.attempted_approach.slice(0,100),subtitle:`dead end #${n.id}${n.never_retry?" · never retry":""}`,projectId:n.project_id,href:`/projects/${n.project_id}/dead-ends`});for(const n of e.notes)t.push({kind:"note",id:n.id,title:n.body.slice(0,100),subtitle:`note #${n.id}`,projectId:n.project_id,href:`/projects/${n.project_id}/notes`});return t}function Wx({open:e,onClose:t}){const n=_d(),[r,l]=v.useState(""),[i,a]=v.useState(null),[o,c]=v.useState(!1),[f,p]=v.useState(0),d=v.useRef(null),m=v.useRef(null);v.useEffect(()=>{e&&(l(""),a(null),p(0),setTimeout(()=>{var j;return(j=d.current)==null?void 0:j.focus()},0))},[e]),v.useEffect(()=>{if(!e)return;const j=r.trim();if(j.length<2){a(null),c(!1);return}c(!0);const y=setTimeout(()=>{ox(j,6).then(h=>{a(h),p(0)}).catch(()=>a(null)).finally(()=>c(!1))},150);return()=>clearTimeout(y)},[r,e]);const w=v.useMemo(()=>i?Vx(i):[],[i]);if(v.useEffect(()=>{if(!e)return;function j(y){if(y.key==="Escape")y.preventDefault(),t();else if(y.key==="ArrowDown")y.preventDefault(),p(h=>Math.min(h+1,w.length-1));else if(y.key==="ArrowUp")y.preventDefault(),p(h=>Math.max(h-1,0));else if(y.key==="Enter"){const h=w[f];h&&(y.preventDefault(),n(h.href),t())}}return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[e,w,f,n,t]),v.useEffect(()=>{var y;const j=(y=m.current)==null?void 0:y.querySelector(`[data-cmd-idx="${f}"]`);j==null||j.scrollIntoView({block:"nearest"})},[f]),!e)return null;const g=["project","subtask","decision","dead_end","note"].map(j=>({kind:j,items:w.filter(y=>y.kind===j)})).filter(j=>j.items.length>0);return xd.createPortal(s.jsxs("div",{className:"fixed inset-0 z-[100] flex items-start justify-center pt-20 px-4",onClick:t,children:[s.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm","aria-hidden":!0}),s.jsxs("div",{className:"relative w-full max-w-2xl bg-panel border border-border rounded-lg shadow-2xl overflow-hidden",onClick:j=>j.stopPropagation(),children:[s.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-border",children:[s.jsx(Sa,{className:"w-4 h-4 text-text-muted"}),s.jsx("input",{ref:d,type:"text",value:r,onChange:j=>l(j.target.value),placeholder:"Search projects, tasks, decisions, dead ends, notes...",className:"flex-1 bg-transparent text-text placeholder:text-text-dim outline-none text-sm"}),s.jsx("kbd",{className:"text-[10px] text-text-dim border border-border rounded px-1.5 py-0.5",children:"esc"})]}),s.jsx("div",{ref:m,className:"max-h-[60vh] overflow-y-auto",children:r.trim().length<2?s.jsx("div",{className:"px-4 py-6 text-center text-text-dim text-sm",children:"Type at least 2 characters to search."}):o&&w.length===0?s.jsx("div",{className:"px-4 py-6 text-center text-text-muted text-sm",children:"Searching..."}):w.length===0?s.jsxs("div",{className:"px-4 py-6 text-center text-text-muted text-sm",children:['No matches for "',r,'".']}):g.map(j=>{const y=Bx[j.kind],h=y.icon;return s.jsxs("div",{className:"py-1",children:[s.jsxs("div",{className:"px-4 py-1.5 text-[10px] uppercase tracking-wider text-text-dim flex items-center gap-1.5",children:[s.jsx(h,{className:"w-3 h-3"}),y.label,s.jsxs("span",{className:"text-text-dim",children:["· ",j.items.length]})]}),j.items.map(u=>{const x=w.indexOf(u),N=x===f;return s.jsxs("button",{"data-cmd-idx":x,onMouseEnter:()=>p(x),onClick:()=>{n(u.href),t()},className:`w-full text-left px-4 py-2 flex flex-col gap-0.5 border-l-2 ${N?"bg-panel-2 border-accent":"border-transparent hover:bg-panel-2/60"}`,children:[s.jsx("span",{className:"text-sm text-text truncate",children:u.title}),s.jsx("span",{className:"text-[11px] text-text-muted truncate",children:u.subtitle})]},`${u.kind}-${u.id}`)})]},j.kind)})}),s.jsxs("div",{className:"px-4 py-2 border-t border-border text-[10px] text-text-dim flex items-center justify-between",children:[s.jsxs("span",{className:"flex items-center gap-3",children:[s.jsxs("span",{children:[s.jsx("kbd",{className:"border border-border rounded px-1 py-0.5",children:"↑"})," ",s.jsx("kbd",{className:"border border-border rounded px-1 py-0.5",children:"↓"})," navigate"]}),s.jsxs("span",{children:[s.jsx("kbd",{className:"border border-border rounded px-1 py-0.5",children:"↵"})," open"]}),s.jsxs("span",{children:[s.jsx("kbd",{className:"border border-border rounded px-1 py-0.5",children:"esc"})," close"]})]}),i&&s.jsxs("span",{children:[w.length," ",w.length===1?"result":"results"]})]})]})]}),document.body)}function Hx(){const[e,t]=v.useState(null),[n,r]=v.useState(null),[l,i]=v.useState(!1),[a,o]=v.useState(!1),c=qt();return v.useEffect(()=>{i(!1)},[c.pathname]),v.useEffect(()=>{function f(d){(d.metaKey||d.ctrlKey)&&d.key.toLowerCase()==="k"&&(d.preventDefault(),o(w=>!w))}function p(){o(!0)}return window.addEventListener("keydown",f),window.addEventListener("cmd-palette:open",p),()=>{window.removeEventListener("keydown",f),window.removeEventListener("cmd-palette:open",p)}},[]),v.useEffect(()=>{let f=!1;return Vd({sort:"active",include_archived:!0}).then(p=>{f||t(p)}).catch(p=>{f||r(p instanceof Error?p.message:String(p))}),()=>{f=!0}},[]),n?s.jsx("div",{className:"min-h-screen flex items-center justify-center text-danger",children:s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl mb-2",children:"Failed to load projects"}),s.jsx("pre",{className:"text-sm",children:n})]})}):e?s.jsxs("div",{className:"min-h-screen flex",children:[s.jsx("div",{className:"hidden md:block",children:s.jsx(qo,{projects:e})}),l&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"md:hidden fixed inset-0 bg-black/50 z-40",onClick:()=>i(!1)}),s.jsx("div",{className:"md:hidden fixed inset-y-0 left-0 z-50 shadow-2xl",children:s.jsx(qo,{projects:e})})]}),s.jsxs("main",{className:"flex-1 overflow-y-auto min-w-0",children:[s.jsxs("div",{className:"md:hidden sticky top-0 z-30 bg-bg/95 backdrop-blur border-b border-border px-4 py-3 flex items-center gap-3",children:[s.jsx("button",{onClick:()=>i(f=>!f),className:"text-text hover:text-accent","aria-label":l?"Close menu":"Open menu",children:l?s.jsx(Ad,{className:"w-5 h-5"}):s.jsx(Hh,{className:"w-5 h-5"})}),s.jsx("span",{className:"text-text font-semibold tracking-wider",children:"Shinobi 🥷"})]}),s.jsx("div",{className:"p-4 md:p-8",children:s.jsx(Ld,{context:{projects:e}})})]}),s.jsx(Wx,{open:a,onClose:()=>o(!1)})]}):s.jsx("div",{className:"min-h-screen flex items-center justify-center text-text-muted",children:"loading..."})}const Qx={default:"bg-border-2 text-text","status-todo":"bg-border text-text","status-in_progress":"bg-accent-2 text-white","status-done":"bg-text-dim text-text","priority-urgent":"bg-danger text-white","priority-high":"bg-orange text-bg","priority-medium":"bg-warning text-bg","priority-low":"bg-text-dim text-text-muted"};function ie({children:e,variant:t="default",className:n}){return s.jsx("span",{className:re("inline-block rounded text-[10px] font-medium uppercase tracking-wider px-1.5 py-0.5",Qx[t],n),children:e})}function Er({priority:e}){return s.jsx(ie,{variant:`priority-${e}`,children:e})}function el({status:e}){return s.jsx(ie,{variant:`status-${e}`,children:e})}const Jo="shinobi.home.workspaceFilter",Zt="__all__",Zo="__none__";function Kx({done:e,total:t}){if(t===0)return s.jsx("span",{className:"text-text-muted text-xs",children:"—"});const n=Math.round(e/t*100),l=e===t?"bg-emerald-500":n>=50?"bg-accent":"bg-amber-500";return s.jsxs("div",{className:"flex items-center gap-2 min-w-[140px]",children:[s.jsx("div",{className:"flex-1 h-1.5 bg-border/40 rounded overflow-hidden",children:s.jsx("div",{className:`h-full ${l} transition-all`,style:{width:`${n}%`},role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":`${e} of ${t} subtasks done`})}),s.jsxs("span",{className:"text-text-muted text-xs tabular-nums whitespace-nowrap",children:[e,"/",t," · ",n,"%"]})]})}function ec({rows:e,dim:t=!1}){return s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"text-[11px] uppercase tracking-wider text-text-muted text-left",children:[s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Workspace"}),s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Title"}),s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Status"}),s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Priority"}),s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Progress"}),s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Type"}),s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Target path"}),s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Due"}),s.jsx("th",{className:"font-medium pb-2",children:"Created"})]})}),s.jsx("tbody",{className:t?"opacity-60":"",children:e.map(n=>s.jsxs("tr",{className:"border-b border-border/40 hover:bg-panel/40",children:[s.jsx("td",{className:"py-2 pr-3",children:s.jsx(_a,{workspace:n.workspace})}),s.jsx("td",{className:"py-2 pr-3",children:s.jsx(K,{to:`/projects/${n.id}`,className:"text-text hover:text-accent font-medium",children:n.title})}),s.jsx("td",{className:"py-2 pr-3",children:s.jsx(el,{status:n.status})}),s.jsx("td",{className:"py-2 pr-3",children:s.jsx(Er,{priority:n.priority})}),s.jsx("td",{className:"py-2 pr-3",children:s.jsx(Kx,{done:n.subtasks_done,total:n.subtasks_total})}),s.jsx("td",{className:"py-2 pr-3 text-text-muted",children:n.project_type??""}),s.jsx("td",{className:"py-2 pr-3 text-text-muted font-mono text-xs",children:n.target_path??""}),s.jsx("td",{className:"py-2 pr-3 text-text-muted",children:n.due_date??""}),s.jsx("td",{className:"py-2 text-text-muted text-xs",title:n.created_at,children:V(n.created_at)})]},n.id))})]})})}function Yx(){const{projects:e}=Ae(),[t,n]=v.useState(!1),[r,l]=v.useState(()=>typeof window>"u"?Zt:window.localStorage.getItem(Jo)??Zt),i=v.useMemo(()=>{const d=new Set;let m=!1;for(const g of e)g.workspace?d.add(g.workspace):m=!0;return{named:Array.from(d).sort((g,j)=>g.localeCompare(j)),hasNoWorkspace:m}},[e]);function a(d){return r===Zt?d:r===Zo?d.filter(m=>!m.workspace):d.filter(m=>m.workspace===r)}const o=a(e.filter(d=>!d.archived_at)),c=a(e.filter(d=>d.archived_at));function f(d){l(d),typeof window<"u"&&window.localStorage.setItem(Jo,d)}const p=i.named.length>1||i.named.length>=1&&i.hasNoWorkspace;return s.jsxs("div",{children:[s.jsxs("header",{className:"flex items-baseline justify-between border-b border-border pb-3 mb-6",children:[s.jsx("h1",{className:"text-2xl text-text",children:"Projects"}),s.jsxs("span",{className:"text-text-muted text-xs",children:[o.length," active · ",c.length," archived"]})]}),p&&s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx("label",{htmlFor:"workspace-filter",className:"text-[11px] uppercase tracking-wider text-text-muted",children:"Workspace"}),s.jsxs("select",{id:"workspace-filter",value:r,onChange:d=>f(d.target.value),className:"bg-panel border border-border rounded px-2 py-1 text-sm text-text hover:border-accent/60 focus:outline-none focus:border-accent",children:[s.jsx("option",{value:Zt,children:"All workspaces"}),i.named.map(d=>s.jsx("option",{value:d,children:d},d)),i.hasNoWorkspace&&s.jsx("option",{value:Zo,children:"(no workspace)"})]}),r!==Zt&&s.jsx("button",{onClick:()=>f(Zt),className:"text-xs text-text-muted hover:text-text",children:"clear"})]}),e.length===0?s.jsxs("div",{className:"bg-panel border border-dashed border-border rounded p-6 text-center text-text-muted",children:["No projects yet. Create one via the ",s.jsx("code",{children:"create_project"})," MCP tool, then refresh."]}):o.length===0?s.jsx("div",{className:"bg-panel border border-dashed border-border rounded p-6 text-center text-text-muted",children:"No active projects match this workspace filter."}):s.jsx(ec,{rows:o}),c.length>0&&s.jsxs("section",{className:"mt-8",children:[s.jsxs("button",{onClick:()=>n(d=>!d),className:"flex items-center gap-1.5 text-[11px] uppercase tracking-wider text-text-muted hover:text-text mb-3",children:[t?s.jsx(zh,{className:"w-3.5 h-3.5"}):s.jsx(Oh,{className:"w-3.5 h-3.5"}),s.jsx(Od,{className:"w-3.5 h-3.5"}),"Archived (",c.length,")"]}),t&&s.jsx(ec,{rows:c,dim:!0})]})]})}function Gx({projectId:e,draftPendingCount:t}){const n=`/projects/${e}`,r=[{to:n,label:"Board",end:!0},{to:`${n}/subtasks`,label:"List"},{to:`${n}/decisions`,label:"Decisions"},{to:`${n}/decision-drafts`,label:"Drafts",badge:t&&t>0?s.jsx("span",{className:"ml-1 inline-block bg-warning text-bg text-[9px] font-bold px-1.5 py-0.5 rounded-full",children:t}):null},{to:`${n}/dead-ends`,label:"Dead Ends"},{to:`${n}/notes`,label:"Notes"},{to:`${n}/plans`,label:"Plans"},{to:`${n}/context`,label:"Context"},{to:`${n}/sessions`,label:"Sessions"},{to:`${n}/timeline`,label:"Timeline"},{to:`${n}/analytics`,label:"Analytics"}];return s.jsx("nav",{className:"flex gap-1 mb-4 border-b border-border overflow-x-auto scrollbar-thin",children:r.map(l=>s.jsxs(Sh,{to:l.to,end:l.end,className:({isActive:i})=>re("px-3.5 py-2 text-sm -mb-px border-b-2 whitespace-nowrap transition-colors flex items-center",i?"text-text border-accent":"text-text-muted border-transparent hover:text-text hover:border-border-2"),children:[l.label,l.badge]},l.to))})}function Xx({subtask:e,onClose:t,onChanged:n}){if(v.useEffect(()=>{if(!e)return;const l=i=>{i.key==="Escape"&&t()};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[e,t]),!e)return null;async function r(l){if(e)try{await Wd(e.id,{status:l}),await n()}catch(i){alert("Transition failed: "+(i instanceof Error?i.message:String(i)))}}return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 bg-black/50 z-40",onClick:t,"aria-hidden":"true"}),s.jsxs("aside",{className:"fixed inset-y-0 right-0 z-50 w-full sm:w-[480px] bg-bg border-l border-border shadow-2xl flex flex-col",role:"dialog","aria-label":`Subtask ${e.id}`,children:[s.jsxs("header",{className:"flex items-start justify-between gap-3 px-5 py-4 border-b border-border",children:[s.jsxs("div",{className:"min-w-0",children:[s.jsxs("div",{className:"text-[11px] uppercase tracking-wider text-text-muted mb-1",children:["#",e.id]}),s.jsx("h2",{className:"text-lg font-semibold text-text break-words",children:e.title}),s.jsxs("div",{className:"mt-2 flex items-center gap-2 flex-wrap",children:[s.jsx(el,{status:e.status}),s.jsx(Er,{priority:e.priority}),e.due_date&&s.jsxs("span",{className:"text-xs text-text-muted",children:["due ",e.due_date]})]})]}),s.jsx("button",{onClick:t,className:"text-text-muted hover:text-text","aria-label":"Close",children:s.jsx(Ad,{className:"w-5 h-5"})})]}),s.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-4 space-y-5",children:[e.description?s.jsxs("section",{children:[s.jsx("div",{className:"text-[11px] uppercase tracking-wider text-text-muted mb-2",children:"Description"}),s.jsx("div",{className:"text-sm text-text whitespace-pre-wrap leading-relaxed",children:e.description})]}):s.jsx("section",{className:"text-sm text-text-dim italic",children:"No description."}),s.jsxs("section",{children:[s.jsx("div",{className:"text-[11px] uppercase tracking-wider text-text-muted mb-2",children:"Transition status"}),s.jsxs("div",{className:"flex gap-2 flex-wrap",children:[e.status!=="todo"&&s.jsxs(R,{size:"sm",variant:"ghost",onClick:()=>void r("todo"),className:"flex items-center gap-1",children:[s.jsx(Fd,{className:"w-3 h-3"})," todo"]}),e.status!=="in_progress"&&s.jsxs(R,{size:"sm",variant:"ghost",onClick:()=>void r("in_progress"),className:"flex items-center gap-1",children:[s.jsx($d,{className:"w-3 h-3"})," in progress"]}),e.status!=="done"&&s.jsxs(R,{size:"sm",variant:"ghost",onClick:()=>void r("done"),className:"flex items-center gap-1",children:[s.jsx(Id,{className:"w-3 h-3"})," done"]})]})]}),e.depends_on&&e.depends_on.length>0&&s.jsxs("section",{children:[s.jsx("div",{className:"text-[11px] uppercase tracking-wider text-text-muted mb-2",children:"Depends on"}),s.jsx("div",{className:"text-sm text-text font-mono",children:e.depends_on.join(", ")})]}),e.files_touched&&e.files_touched.length>0&&s.jsxs("section",{children:[s.jsx("div",{className:"text-[11px] uppercase tracking-wider text-text-muted mb-2",children:"Files touched"}),s.jsx("ul",{className:"text-xs text-text font-mono space-y-1",children:e.files_touched.map(l=>s.jsx("li",{className:"break-all",children:l},l))})]}),s.jsxs("section",{className:"grid grid-cols-2 gap-x-4 gap-y-2 text-xs",children:[s.jsx("div",{className:"text-text-muted",children:"Created"}),s.jsx("div",{className:"text-text",title:e.created_at,children:V(e.created_at)}),s.jsx("div",{className:"text-text-muted",children:"Updated"}),s.jsx("div",{className:"text-text",title:e.updated_at,children:V(e.updated_at)}),e.last_claimed_at&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"text-text-muted",children:"Last claimed"}),s.jsx("div",{className:"text-text",title:e.last_claimed_at,children:V(e.last_claimed_at)})]}),e.claude_session_id&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"text-text-muted",children:"Session"}),s.jsx("div",{className:"text-text font-mono break-all",children:e.claude_session_id})]})]})]})]})]})}function qx(){const e=Xs(),t=Number(e.id),[n,r]=v.useState(null),[l,i]=v.useState(null),[a,o]=v.useState(null),c=v.useCallback(async()=>{try{const d=await ax(t);r(d)}catch(d){i(d instanceof Error?d.message:String(d))}},[t]);v.useEffect(()=>{Number.isFinite(t)&&(r(null),i(null),o(null),c())},[t,c]);const f=v.useMemo(()=>(n==null?void 0:n.subtasks.find(d=>d.id===a))??null,[n,a]);if(l)return s.jsxs("div",{className:"text-danger",children:["Error: ",l]});if(!n)return s.jsx("div",{className:"text-text-muted",children:"loading..."});const{project:p}=n;return s.jsxs("div",{children:[s.jsxs("header",{className:"border-b border-border pb-3 mb-4",children:[s.jsx("h1",{className:"text-2xl text-text",children:p.title}),s.jsxs("div",{className:"mt-2 text-xs text-text-muted flex items-center gap-2 flex-wrap",children:[s.jsx(_a,{workspace:p.workspace}),s.jsx("span",{children:"·"}),s.jsx(el,{status:p.status}),s.jsx("span",{children:"·"}),s.jsx(Er,{priority:p.priority}),p.due_date&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"·"}),s.jsxs("span",{children:["due ",p.due_date]})]}),p.target_path&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"·"}),s.jsxs("span",{className:"font-mono",children:["target ",p.target_path]})]}),p.recent_summary_at&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"·"}),s.jsxs("span",{children:["summary ",V(p.recent_summary_at)]})]})]})]}),s.jsx(Gx,{projectId:t,draftPendingCount:n.draft_counts.pending}),s.jsx(Ld,{context:{snapshot:n,refresh:c,openSubtask:d=>o(d)}}),s.jsx(Xx,{subtask:f,onClose:()=>o(null),onChanged:c})]})}const Jx=[{key:"todo",label:"Todo"},{key:"in_progress",label:"In Progress"},{key:"done",label:"Done"}];function Zx(){const{snapshot:e,refresh:t,openSubtask:n}=Ae(),{project:r,subtasks:l}=e,i={todo:[],in_progress:[],done:[]};for(const o of l)i[o.status].push(o);async function a(o,c){try{await Wd(o,{status:c}),await t()}catch(f){alert("Transition failed: "+(f instanceof Error?f.message:String(f)))}}return s.jsxs(s.Fragment,{children:[r.description&&s.jsx("pre",{className:"bg-panel border border-border rounded p-3 mb-6 whitespace-pre-wrap text-xs font-mono text-text",children:r.description}),r.recent_summary_md&&s.jsxs("div",{className:"bg-panel border border-border border-l-4 border-l-accent rounded-md p-4 mb-6",children:[s.jsxs("div",{className:"text-[11px] uppercase tracking-wider text-text-muted mb-2",children:["Recent session summary",r.recent_summary_provider&&s.jsxs("span",{className:"text-text-dim normal-case ml-2 tracking-normal",children:["via ",r.recent_summary_provider]})]}),s.jsx("div",{className:"text-sm text-text whitespace-pre-wrap leading-relaxed",children:r.recent_summary_md})]}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:Jx.map(o=>s.jsxs("div",{className:"bg-panel border border-border rounded-md p-3 min-h-[200px]",children:[s.jsxs("h3",{className:"text-[11px] uppercase tracking-wider text-text-muted mb-3",children:[o.label," (",i[o.key].length,")"]}),s.jsx("div",{className:"space-y-2",children:i[o.key].length===0?s.jsx("div",{className:"text-text-dim text-xs",children:"(empty)"}):i[o.key].map(c=>s.jsxs("button",{type:"button",onClick:()=>n(c.id),className:"w-full text-left bg-panel-2 border border-border rounded p-2.5 text-xs hover:border-accent/60 hover:bg-panel transition-colors cursor-pointer",children:[s.jsx("div",{className:"text-text font-medium mb-1",children:c.title}),s.jsxs("div",{className:"text-text-muted flex flex-wrap gap-2 items-center text-[11px]",children:[s.jsx(Er,{priority:c.priority}),c.due_date&&s.jsxs("span",{children:["due ",c.due_date]}),c.depends_on&&c.depends_on.length>0&&s.jsxs("span",{children:["deps: ",c.depends_on.join(",")]}),c.claude_session_id&&s.jsx("span",{title:c.claude_session_id,children:"session"})]}),s.jsxs("div",{className:"flex gap-1.5 mt-2",onClick:f=>f.stopPropagation(),children:[c.status!=="todo"&&s.jsxs(R,{size:"sm",variant:"ghost",onClick:()=>void a(c.id,"todo"),className:"flex items-center gap-1",children:[s.jsx(Fd,{className:"w-3 h-3"})," todo"]}),c.status!=="in_progress"&&s.jsxs(R,{size:"sm",variant:"ghost",onClick:()=>void a(c.id,"in_progress"),className:"flex items-center gap-1",children:[s.jsx($d,{className:"w-3 h-3"})," in progress"]}),c.status!=="done"&&s.jsxs(R,{size:"sm",variant:"ghost",onClick:()=>void a(c.id,"done"),className:"flex items-center gap-1",children:[s.jsx(Id,{className:"w-3 h-3"})," done"]})]})]},c.id))})]},o.key))})]})}function eg(){const{snapshot:e,openSubtask:t}=Ae(),{subtasks:n}=e;return n.length===0?s.jsxs("div",{className:"bg-panel border border-dashed border-border rounded p-6 text-center text-text-muted",children:["No subtasks. Use ",s.jsx("code",{children:"create_task"})," or ",s.jsx("code",{children:"bulk_create_tasks"})," to seed."]}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"text-[11px] uppercase tracking-wider text-text-muted text-left",children:[s.jsx("th",{className:"font-medium pb-2 pr-3 w-12",children:"ID"}),s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Title"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-28",children:"Status"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-24",children:"Priority"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-24",children:"Deps"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-24",children:"Due"}),s.jsx("th",{className:"font-medium pb-2 w-28",children:"Claimed"})]})}),s.jsx("tbody",{children:n.map(r=>s.jsxs("tr",{className:"border-b border-border/40 hover:bg-panel/40 align-top cursor-pointer",onClick:()=>t(r.id),children:[s.jsx("td",{className:"py-2 pr-3 text-text-muted font-mono",children:r.id}),s.jsxs("td",{className:"py-2 pr-3",children:[s.jsx("div",{className:"text-text font-medium",children:r.title}),r.description&&s.jsx("div",{className:"text-text-muted text-xs mt-1",children:r.description.length>200?r.description.slice(0,200)+"…":r.description})]}),s.jsx("td",{className:"py-2 pr-3",children:s.jsx(el,{status:r.status})}),s.jsx("td",{className:"py-2 pr-3",children:s.jsx(Er,{priority:r.priority})}),s.jsx("td",{className:"py-2 pr-3 text-text-muted text-xs",children:r.depends_on&&r.depends_on.length>0?r.depends_on.join(", "):""}),s.jsx("td",{className:"py-2 pr-3 text-text-muted",children:r.due_date??""}),s.jsx("td",{className:"py-2 text-text-muted text-xs",title:r.last_claimed_at??"",children:V(r.last_claimed_at)})]},r.id))})]})})}const tg=["open","fix_now","fix_later","wontfix","fixed","false_positive"];function ng(e){switch(e){case"open":return"bg-accent-2 text-white";case"fix_now":return"bg-danger text-white";case"fix_later":return"bg-orange text-bg";case"wontfix":return"bg-text-dim text-text";case"fixed":return"bg-success text-bg";case"false_positive":return"bg-text-dim text-text";default:return"bg-border-2 text-text"}}function rg(){const{snapshot:e,refresh:t}=Ae(),{decisions:n,draft_counts:r,project:l}=e;async function i(o,c){try{await cx(o,c),await t()}catch(f){alert("Transition failed: "+(f instanceof Error?f.message:String(f)))}}const a=r.pending>0?s.jsxs("div",{className:"bg-panel border-l-4 border-l-warning rounded-md p-3 mb-4 flex items-center justify-between",children:[s.jsxs("span",{className:"text-sm",children:[s.jsxs("strong",{children:[r.pending," pending decision draft",r.pending>1?"s":""]})," ",s.jsx("span",{className:"text-text-muted",children:"extracted via LLM"})]}),s.jsx(K,{to:`/projects/${l.id}/decision-drafts`,className:"text-accent text-sm hover:underline",children:"Review →"})]}):null;return n.length===0?s.jsxs("div",{children:[a,s.jsxs("div",{className:"bg-panel border border-dashed border-border rounded p-6 text-center text-text-muted",children:["No decisions logged. Use ",s.jsx("code",{children:"log_decision"})," via MCP."]})]}):s.jsxs("div",{children:[a,s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"text-[11px] uppercase tracking-wider text-text-muted text-left",children:[s.jsx("th",{className:"font-medium pb-2 pr-3 w-12",children:"ID"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-24",children:"Kind"}),s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Summary + Rationale"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-44",children:"Status"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-40",children:"Files"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-32",children:"Tags"}),s.jsx("th",{className:"font-medium pb-2 w-24",children:"Logged"})]})}),s.jsx("tbody",{children:n.map(o=>s.jsxs("tr",{className:"border-b border-border/40 hover:bg-panel/40 align-top",children:[s.jsx("td",{className:"py-3 pr-3 text-text-muted font-mono",children:o.id}),s.jsx("td",{className:"py-3 pr-3",children:s.jsx(ie,{children:o.kind})}),s.jsxs("td",{className:"py-3 pr-3",children:[s.jsx("div",{className:"text-text font-medium",children:o.summary}),s.jsx("div",{className:"text-text-muted text-xs mt-1",children:o.rationale.length>300?o.rationale.slice(0,300)+"…":o.rationale}),o.alternatives_considered&&s.jsxs("div",{className:"text-text-dim text-xs mt-1",children:["alt: ",o.alternatives_considered.slice(0,150)]})]}),s.jsxs("td",{className:"py-3 pr-3",children:[s.jsx("span",{className:`inline-block rounded text-[10px] font-medium uppercase tracking-wider px-1.5 py-0.5 ${ng(o.status)}`,children:o.status}),s.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:tg.filter(c=>c!==o.status).map(c=>s.jsx(R,{size:"sm",variant:"ghost",onClick:()=>void i(o.id,c),className:"text-[10px] px-1.5 py-0.5",children:c},c))})]}),s.jsx("td",{className:"py-3 pr-3 text-text-muted text-xs",children:(o.files_touched??[]).map(c=>s.jsx("div",{children:c},c))}),s.jsx("td",{className:"py-3 pr-3",children:(o.tags??[]).map(c=>s.jsx(ie,{className:"mr-1 mb-1",children:c},c))}),s.jsx("td",{className:"py-3 text-text-muted text-xs",title:o.created_at,children:V(o.created_at)})]},o.id))})]})})]})}function sg(){const{snapshot:e,refresh:t}=Ae(),n=e.project.id,[r,l]=v.useState(null),[i,a]=v.useState({pending:0,approved:0,rejected:0}),[o,c]=v.useState(null),[f,p]=v.useState(null),d=v.useCallback(async()=>{try{const g=await ux(n);l(g.drafts),a(g.counts)}catch(g){c(g instanceof Error?g.message:String(g))}},[n]);v.useEffect(()=>{d()},[d]);async function m(g,j){if(f===null){p(g);try{j==="approve"?await dx(g):await fx(g),await Promise.all([d(),t()])}catch(y){alert(`${j} failed: ${y instanceof Error?y.message:String(y)}`)}finally{p(null)}}}if(o)return s.jsxs("div",{className:"text-danger",children:["Error: ",o]});if(!r)return s.jsx("div",{className:"text-text-muted",children:"loading drafts..."});const w=(g,j,y)=>s.jsxs("div",{className:"bg-panel border border-border rounded p-3",children:[s.jsx("div",{className:"text-[11px] uppercase tracking-wider text-text-muted",children:g}),s.jsx("div",{className:`text-2xl mt-1 ${y}`,children:j})]});return s.jsxs("div",{children:[s.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-4",children:[w("Pending",i.pending,"text-warning"),w("Approved",i.approved,"text-success"),w("Rejected",i.rejected,"text-danger")]}),r.length===0?s.jsxs("div",{className:"bg-panel border border-dashed border-border rounded p-6 text-center text-text-muted",children:["No drafts. Drafts appear when the agent calls ",s.jsx("code",{children:"extract_decisions(text)"})," — LLM scans a transcript and proposes decisions for you to approve."]}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"text-[11px] uppercase tracking-wider text-text-muted text-left",children:[s.jsx("th",{className:"font-medium pb-2 pr-3 w-12",children:"ID"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-24",children:"Kind"}),s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Summary + Rationale"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-32",children:"Files"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-44",children:"Action"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-20",children:"Created"}),s.jsx("th",{className:"font-medium pb-2",children:"Extractor"})]})}),s.jsx("tbody",{children:r.map(g=>s.jsxs("tr",{className:"border-b border-border/40 hover:bg-panel/40 align-top",children:[s.jsx("td",{className:"py-3 pr-3 text-text-muted font-mono",children:g.id}),s.jsx("td",{className:"py-3 pr-3",children:s.jsx(ie,{children:g.kind})}),s.jsxs("td",{className:"py-3 pr-3",children:[s.jsx("div",{className:"text-text font-medium",children:g.summary}),s.jsx("div",{className:"text-text-muted text-xs mt-1",children:g.rationale}),g.alternatives_considered&&s.jsxs("div",{className:"text-text-dim text-xs mt-1",children:["alt: ",g.alternatives_considered]})]}),s.jsx("td",{className:"py-3 pr-3 text-text-muted text-xs",children:(g.files_touched??[]).map(j=>s.jsx("div",{children:j},j))}),s.jsx("td",{className:"py-3 pr-3",children:g.status==="pending"?s.jsxs("div",{className:"flex gap-1.5",children:[s.jsx(R,{size:"sm",variant:"primary",disabled:f===g.id,onClick:()=>void m(g.id,"approve"),children:"Approve"}),s.jsx(R,{size:"sm",variant:"default",disabled:f===g.id,onClick:()=>void m(g.id,"reject"),children:"Reject"})]}):g.status==="approved"?s.jsxs(ie,{className:"bg-success text-bg",children:["approved ",g.approved_decision_id?`→ #${g.approved_decision_id}`:""]}):s.jsx(ie,{className:"bg-danger text-white",children:"rejected"})}),s.jsx("td",{className:"py-3 pr-3 text-text-muted text-xs",children:V(g.created_at)}),s.jsx("td",{className:"py-3 text-text-dim text-[10px] font-mono",children:g.extractor_model??""})]},g.id))})]})})]})}function lg(){const{snapshot:e}=Ae(),{dead_ends:t}=e;return t.length===0?s.jsxs("div",{className:"bg-panel border border-dashed border-border rounded p-6 text-center text-text-muted",children:["No dead ends logged. Use ",s.jsx("code",{children:"log_dead_end"})," when an approach fails."]}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"text-[11px] uppercase tracking-wider text-text-muted text-left",children:[s.jsx("th",{className:"font-medium pb-2 pr-3 w-12",children:"ID"}),s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Attempted"}),s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Why failed"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-32",children:"Files"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-24",children:"Flag"}),s.jsx("th",{className:"font-medium pb-2 w-24",children:"Logged"})]})}),s.jsx("tbody",{children:t.map(n=>s.jsxs("tr",{className:"border-b border-border/40 hover:bg-panel/40 align-top",children:[s.jsx("td",{className:"py-3 pr-3 text-text-muted font-mono",children:n.id}),s.jsx("td",{className:"py-3 pr-3 text-text font-medium",children:n.attempted_approach}),s.jsx("td",{className:"py-3 pr-3 text-text-muted",children:n.failure_reason}),s.jsx("td",{className:"py-3 pr-3 text-text-muted text-xs",children:(n.files_involved??[]).map(r=>s.jsx("div",{children:r},r))}),s.jsx("td",{className:"py-3 pr-3",children:n.never_retry&&s.jsx(ie,{className:"bg-danger text-white",children:"never retry"})}),s.jsx("td",{className:"py-3 text-text-muted text-xs",title:n.created_at,children:V(n.created_at)})]},n.id))})]})})}function ig(){const{snapshot:e}=Ae(),{notes:t}=e;return t.length===0?s.jsxs("div",{className:"bg-panel border border-dashed border-border rounded p-6 text-center text-text-muted",children:["No notes yet. Use ",s.jsx("code",{children:"add_note"})," for stray observations."]}):s.jsx("div",{className:"space-y-6",children:t.map(n=>s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2 flex-wrap",children:[s.jsxs(ie,{children:["note #",n.id]}),(n.tags??[]).map(r=>s.jsx(ie,{children:r},r)),s.jsx("span",{className:"text-text-muted text-xs",children:V(n.created_at)}),n.audio_path&&s.jsx(ie,{className:"bg-success text-bg",children:"audio"})]}),s.jsx("pre",{className:"bg-panel border border-border rounded p-3 text-xs font-mono text-text whitespace-pre-wrap",children:n.body}),n.audio_path&&s.jsx("audio",{controls:!0,className:"mt-2 w-full",src:n.audio_path}),n.files_touched&&n.files_touched.length>0&&s.jsxs("div",{className:"text-text-muted text-xs mt-1",children:["files: ",n.files_touched.join(", ")]})]},n.id))})}function ag(){const{snapshot:e}=Ae(),{latest_plan:t,plan_history:n}=e;return t?s.jsxs("div",{children:[s.jsxs("section",{className:"mb-8",children:[s.jsxs("h3",{className:"text-sm text-text mb-2",children:["Latest plan — v",t.version]}),s.jsxs("div",{className:"text-text-muted text-xs mb-3",children:["saved ",V(t.created_at)]}),s.jsx("pre",{className:"bg-panel border border-border rounded p-4 text-xs font-mono text-text whitespace-pre-wrap overflow-x-auto",children:t.plan_md})]}),n.length>0&&s.jsxs("section",{children:[s.jsx("h3",{className:"text-sm text-text mb-3",children:"Version history"}),s.jsx("ul",{className:"space-y-1 text-sm",children:n.map(r=>s.jsxs("li",{className:"text-text-muted",children:[s.jsxs("span",{className:"text-text font-medium",children:["v",r.version]})," — ",r.created_at," (",r.plan_md_length," chars)"]},r.id))})]})]}):s.jsxs("div",{className:"bg-panel border border-dashed border-border rounded p-6 text-center text-text-muted",children:["No plans saved. Use ",s.jsx("code",{children:"save_plan"})," to persist an approved plan."]})}function en({title:e,children:t}){return s.jsxs("section",{className:"mb-6",children:[s.jsx("h3",{className:"text-sm text-text mb-2",children:e}),t]})}function Un(){return s.jsx("div",{className:"text-text-muted text-sm",children:"(none)"})}function og(){const{snapshot:e}=Ae(),t=e.context;if(!t)return s.jsxs("div",{className:"bg-panel border border-dashed border-border rounded p-6 text-center text-text-muted",children:["No context set. Use ",s.jsx("code",{children:"update_context"})," to record conventions / dont_touch / deploy_notes."]});const n=t.file_annotations??{},r=Object.entries(n);return s.jsxs("div",{children:[s.jsx(en,{title:"Conventions",children:t.conventions?s.jsx("pre",{className:"bg-panel border border-border rounded p-3 text-xs font-mono text-text whitespace-pre-wrap",children:t.conventions}):s.jsx(Un,{})}),s.jsx(en,{title:"Don't touch",children:t.dont_touch&&t.dont_touch.length>0?s.jsx("ul",{className:"list-disc list-inside text-sm text-text",children:t.dont_touch.map(l=>s.jsx("li",{children:l},l))}):s.jsx(Un,{})}),s.jsx(en,{title:"Test patterns",children:t.test_patterns?s.jsx("pre",{className:"bg-panel border border-border rounded p-3 text-xs font-mono text-text whitespace-pre-wrap",children:t.test_patterns}):s.jsx(Un,{})}),s.jsx(en,{title:"Deploy notes",children:t.deploy_notes?s.jsx("pre",{className:"bg-panel border border-border rounded p-3 text-xs font-mono text-text whitespace-pre-wrap",children:t.deploy_notes}):s.jsx(Un,{})}),s.jsx(en,{title:"File annotations",children:r.length>0?s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"text-[11px] uppercase tracking-wider text-text-muted text-left",children:[s.jsx("th",{className:"pb-2 pr-3",children:"Path"}),s.jsx("th",{className:"pb-2",children:"Annotation"})]})}),s.jsx("tbody",{children:r.map(([l,i])=>s.jsxs("tr",{className:"border-b border-border/40 align-top",children:[s.jsx("td",{className:"py-2 pr-3 text-text font-mono text-xs",children:l}),s.jsx("td",{className:"py-2 text-text-muted",children:i})]},l))})]}):s.jsx(Un,{})}),s.jsx(en,{title:"Meta",children:s.jsxs("div",{className:"text-xs text-text-muted",children:["Last validated commit: ",t.last_validated_commit?s.jsx("code",{className:"text-text",children:t.last_validated_commit}):"(none)",s.jsx("br",{}),"Updated: ",t.updated_at]})})]})}function cg(){const{snapshot:e}=Ae(),{activity:t}=e;return t.length===0?s.jsx("div",{className:"bg-panel border border-dashed border-border rounded p-6 text-center text-text-muted",children:"No activity yet. Write paths (claim_task, log_decision, etc.) populate this timeline."}):s.jsx("div",{className:"space-y-px",children:t.map(n=>s.jsxs("div",{className:"grid grid-cols-[110px_160px_1fr_140px] gap-3 py-2 border-b border-border/40 items-baseline text-xs",children:[s.jsx("div",{className:"text-text-muted font-mono",title:n.created_at,children:V(n.created_at)}),s.jsx("div",{className:"text-accent",children:n.action_type}),s.jsxs("div",{className:"text-text flex flex-wrap items-center gap-2",children:[n.action_details&&s.jsx("span",{children:n.action_details}),n.entity_type&&s.jsxs(ie,{children:[n.entity_type,"#",n.entity_id??"?"]}),n.ref_url&&s.jsxs("span",{className:"text-text-dim font-mono",children:[n.ref_url.slice(0,16),"…"]})]}),s.jsx("div",{className:"text-text-muted font-mono text-[11px]",children:n.session_id??""})]},n.id))})}function tc(e){if(e<60)return`${e}s`;const t=Math.round(e/60);if(t<60)return`${t}m`;const n=Math.floor(t/60),r=t%60;return r===0?`${n}h`:`${n}h ${r}m`}function ne({label:e,value:t}){return s.jsxs("div",{className:"bg-panel border border-border rounded p-3",children:[s.jsx("div",{className:"text-[11px] uppercase tracking-wider text-text-muted",children:e}),s.jsx("div",{className:"text-2xl text-text mt-1",children:t})]})}function ug(){const{snapshot:e}=Ae(),{subtasks:t,decisions:n,dead_ends:r,notes:l,sessions:i,activity:a,plan_history:o,draft_counts:c,project:f}=e,[p,d]=v.useState(null),[m,w]=v.useState(null),[g,j]=v.useState(!1),[y,h]=v.useState(null),u=()=>{Go(f.id).then(d),Xo(f.id).then(w)};v.useEffect(()=>{let C=!1;return Go(f.id).then(ae=>{C||d(ae)}),Xo(f.id).then(ae=>{C||w(ae)}),()=>{C=!0}},[f.id]);const x=async()=>{j(!0),h(null);try{const C=await Ex({since_hours:720});h(`parsed ${C.parsed} transcripts, upserted ${C.upserted}, total scanned ≈ $${C.total_cost_usd.toFixed(2)}`),u()}catch(C){h("ingest failed: "+(C instanceof Error?C.message:String(C)))}finally{j(!1)}},N=new Map(t.map(C=>[C.id,C.title])),b={total:t.length,todo:t.filter(C=>C.status==="todo").length,in_progress:t.filter(C=>C.status==="in_progress").length,done:t.filter(C=>C.status==="done").length},k={total:n.length,open:n.filter(C=>C.status==="open").length,fixed:n.filter(C=>C.status==="fixed").length},_=Date.now(),E=a.filter(C=>{const ae=new Date(C.created_at.replace(" ","T")+"Z").getTime();return!isNaN(ae)&&_-ae<864e5}).length,F=new Map;for(const C of a)F.set(C.action_type,(F.get(C.action_type)??0)+1);const M=[...F.entries()].sort((C,ae)=>ae[1]-C[1]).slice(0,20);return s.jsxs("div",{children:[s.jsxs("section",{className:"mb-6",children:[s.jsx("h3",{className:"text-sm text-text mb-3",children:"Subtasks"}),s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[s.jsx(ne,{label:"total",value:b.total}),s.jsx(ne,{label:"todo",value:b.todo}),s.jsx(ne,{label:"in progress",value:b.in_progress}),s.jsx(ne,{label:"done",value:b.done})]})]}),s.jsxs("section",{className:"mb-6",children:[s.jsx("h3",{className:"text-sm text-text mb-3",children:"Memory"}),s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[s.jsx(ne,{label:"decisions",value:k.total}),s.jsx(ne,{label:"decisions open",value:k.open}),s.jsx(ne,{label:"decisions fixed",value:k.fixed}),s.jsx(ne,{label:"drafts pending",value:c.pending}),s.jsx(ne,{label:"drafts approved",value:c.approved}),s.jsx(ne,{label:"dead ends",value:r.length}),s.jsx(ne,{label:"notes",value:l.length}),s.jsx(ne,{label:"plan versions",value:o.length})]})]}),s.jsxs("section",{className:"mb-6",children:[s.jsx("h3",{className:"text-sm text-text mb-3",children:"Time on task"}),p===null?s.jsx("div",{className:"text-text-muted text-sm",children:"loading…"}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3 mb-4",children:[s.jsxs("div",{className:"bg-panel border border-border rounded p-3",children:[s.jsx("div",{className:"text-[11px] uppercase tracking-wider text-text-muted",children:"total time"}),s.jsx("div",{className:"text-2xl text-text mt-1",children:tc(p.total_seconds)})]}),s.jsx(ne,{label:"sessions w/ subtask",value:p.session_count}),s.jsx(ne,{label:"tasks tracked",value:p.per_subtask.length})]}),p.per_subtask.length===0?s.jsx("div",{className:"text-text-muted text-sm",children:"(no time-tracked sessions — sessions only count toward a task when claude_session_id is linked at claim)"}):s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"text-[11px] uppercase tracking-wider text-text-muted text-left",children:[s.jsx("th",{className:"pb-2 pr-3",children:"Task"}),s.jsx("th",{className:"pb-2 pr-3 text-right",children:"Duration"}),s.jsx("th",{className:"pb-2 pr-3 text-right",children:"Sessions"}),s.jsx("th",{className:"pb-2 text-right",children:"Last touched"})]})}),s.jsx("tbody",{children:p.per_subtask.slice(0,20).map(C=>s.jsxs("tr",{className:"border-b border-border/40",children:[s.jsx("td",{className:"py-1.5 pr-3 text-text",children:s.jsxs("a",{href:`#subtask-${C.subtask_id}`,className:"hover:underline",children:["#",C.subtask_id," ",N.get(C.subtask_id)??"(deleted)"]})}),s.jsx("td",{className:"py-1.5 pr-3 text-text text-right font-mono",children:tc(C.total_seconds)}),s.jsxs("td",{className:"py-1.5 pr-3 text-text text-right",children:[C.session_count,C.open_sessions>0?s.jsxs("span",{className:"text-warning",children:[" (",C.open_sessions," open)"]}):null]}),s.jsx("td",{className:"py-1.5 text-text-muted text-right text-xs",children:C.last_session_at??"—"})]},C.subtask_id))})]})]})]}),s.jsxs("section",{className:"mb-6",children:[s.jsxs("div",{className:"flex items-baseline justify-between mb-3",children:[s.jsx("h3",{className:"text-sm text-text",children:"AI token cost"}),s.jsx("button",{onClick:()=>void x(),disabled:g,className:"text-[11px] uppercase tracking-wider text-accent hover:underline disabled:text-text-dim",children:g?"ingesting…":"ingest transcripts"})]}),y&&s.jsx("div",{className:"text-text-muted text-xs mb-3",children:y}),m===null?s.jsx("div",{className:"text-text-muted text-sm",children:"loading…"}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3 mb-4",children:[s.jsxs("div",{className:"bg-panel border border-border rounded p-3",children:[s.jsx("div",{className:"text-[11px] uppercase tracking-wider text-text-muted",children:"total cost"}),s.jsxs("div",{className:"text-2xl text-text mt-1",children:["$",m.total_cost_usd.toFixed(2)]})]}),s.jsx(ne,{label:"costed sessions",value:m.session_count}),s.jsx(ne,{label:"tasks with cost",value:m.per_subtask.length})]}),m.per_subtask.length===0?s.jsxs("div",{className:"text-text-muted text-sm",children:["(no cost data yet — click ",s.jsx("em",{children:"ingest transcripts"})," above to parse ",s.jsx("code",{children:"~/.claude/projects/"})," JSONL files)"]}):s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"text-[11px] uppercase tracking-wider text-text-muted text-left",children:[s.jsx("th",{className:"pb-2 pr-3",children:"Task"}),s.jsx("th",{className:"pb-2 pr-3 text-right",children:"Cost (USD)"}),s.jsx("th",{className:"pb-2 pr-3 text-right",children:"Input tok"}),s.jsx("th",{className:"pb-2 pr-3 text-right",children:"Output tok"}),s.jsx("th",{className:"pb-2 text-right",children:"Models"})]})}),s.jsx("tbody",{children:m.per_subtask.slice(0,20).map(C=>s.jsxs("tr",{className:"border-b border-border/40",children:[s.jsxs("td",{className:"py-1.5 pr-3 text-text",children:["#",C.subtask_id," ",N.get(C.subtask_id)??"(deleted)"]}),s.jsxs("td",{className:"py-1.5 pr-3 text-text text-right font-mono",children:["$",C.total_cost_usd.toFixed(4)]}),s.jsx("td",{className:"py-1.5 pr-3 text-text-muted text-right font-mono text-xs",children:C.total_input_tokens.toLocaleString()}),s.jsx("td",{className:"py-1.5 pr-3 text-text-muted text-right font-mono text-xs",children:C.total_output_tokens.toLocaleString()}),s.jsx("td",{className:"py-1.5 text-text-muted text-right text-xs",children:C.by_model.map(ae=>ae.model.replace("claude-","")).join(", ")})]},C.subtask_id))})]})]})]}),s.jsxs("section",{className:"mb-6",children:[s.jsx("h3",{className:"text-sm text-text mb-3",children:"Activity"}),s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3 mb-4",children:[s.jsx(ne,{label:"sessions",value:i.length}),s.jsx(ne,{label:"events total",value:a.length}),s.jsx(ne,{label:"events 24h",value:E})]}),s.jsx("h3",{className:"text-sm text-text mb-3",children:"Recent action counts"}),M.length===0?s.jsx("div",{className:"text-text-muted text-sm",children:"(no activity)"}):s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"text-[11px] uppercase tracking-wider text-text-muted text-left",children:[s.jsx("th",{className:"pb-2 pr-3",children:"Action"}),s.jsx("th",{className:"pb-2",children:"Count"})]})}),s.jsx("tbody",{children:M.map(([C,ae])=>s.jsxs("tr",{className:"border-b border-border/40",children:[s.jsx("td",{className:"py-1.5 pr-3 text-text font-mono text-xs",children:C}),s.jsx("td",{className:"py-1.5 text-text",children:ae})]},C))})]})]})]})}function dg(){const{snapshot:e}=Ae(),{sessions:t}=e;return t.length===0?s.jsx("div",{className:"bg-panel border border-dashed border-border rounded p-6 text-center text-text-muted",children:"No sessions yet for this project. Sessions appear when agent_bootstrap or claim_task is called with a session_id."}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"text-[11px] uppercase tracking-wider text-text-muted text-left",children:[s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Session ID"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-32",children:"Started"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-32",children:"Ended"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-24",children:"Duration"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-20",children:"Tool calls"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-20",children:"Files"}),s.jsx("th",{className:"font-medium pb-2",children:"Notes"})]})}),s.jsx("tbody",{children:t.map(n=>s.jsxs("tr",{className:"border-b border-border/40 hover:bg-panel/40 align-top",children:[s.jsx("td",{className:"py-2 pr-3 text-text font-mono text-xs",children:s.jsx(K,{to:`/sessions/${encodeURIComponent(n.session_id)}`,className:"text-accent hover:underline",children:n.session_id})}),s.jsx("td",{className:"py-2 pr-3 text-text-muted text-xs",children:V(n.started_at)}),s.jsx("td",{className:"py-2 pr-3 text-text-muted text-xs",children:n.ended_at?V(n.ended_at):"active"}),s.jsx("td",{className:"py-2 pr-3 text-text-muted text-xs",children:n.duration_seconds?`${Math.floor(n.duration_seconds/60)}m`:""}),s.jsx("td",{className:"py-2 pr-3 text-text-muted text-xs",children:n.tool_calls_count}),s.jsx("td",{className:"py-2 pr-3 text-text-muted text-xs",children:n.files_touched_count}),s.jsx("td",{className:"py-2 text-text-muted text-xs",children:n.notes??""})]},n.session_id))})]})})}function fg(){const[e,t]=v.useState(null),[n,r]=v.useState(null);return v.useEffect(()=>{px(500).then(t).catch(l=>r(l instanceof Error?l.message:String(l)))},[]),n?s.jsxs("div",{className:"text-danger",children:["Error: ",n]}):e?s.jsxs("div",{children:[s.jsxs("header",{className:"border-b border-border pb-3 mb-6",children:[s.jsx("h1",{className:"text-2xl text-text",children:"All sessions"}),s.jsxs("div",{className:"text-text-muted text-xs mt-1",children:[e.length," session(s)"]})]}),e.length===0?s.jsx("div",{className:"bg-panel border border-dashed border-border rounded p-6 text-center text-text-muted",children:"No sessions tracked yet."}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"text-[11px] uppercase tracking-wider text-text-muted text-left",children:[s.jsx("th",{className:"font-medium pb-2 pr-3",children:"Session ID"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-24",children:"Project"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-32",children:"Started"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-32",children:"Ended"}),s.jsx("th",{className:"font-medium pb-2 pr-3 w-24",children:"Duration"}),s.jsx("th",{className:"font-medium pb-2 w-20",children:"Tool calls"})]})}),s.jsx("tbody",{children:e.map(l=>s.jsxs("tr",{className:"border-b border-border/40 hover:bg-panel/40",children:[s.jsx("td",{className:"py-2 pr-3 text-text font-mono text-xs",children:s.jsx(K,{to:`/sessions/${encodeURIComponent(l.session_id)}`,className:"text-accent hover:underline",children:l.session_id})}),s.jsx("td",{className:"py-2 pr-3 text-text-muted",children:l.project_id?`#${l.project_id}`:""}),s.jsx("td",{className:"py-2 pr-3 text-text-muted text-xs",children:V(l.started_at)}),s.jsx("td",{className:"py-2 pr-3 text-text-muted text-xs",children:l.ended_at?V(l.ended_at):"active"}),s.jsx("td",{className:"py-2 pr-3 text-text-muted text-xs",children:l.duration_seconds?`${Math.floor(l.duration_seconds/60)}m`:""}),s.jsx("td",{className:"py-2 text-text-muted text-xs",children:l.tool_calls_count})]},l.session_id))})]})})]}):s.jsx("div",{className:"text-text-muted",children:"loading sessions..."})}function pg(){const{sessionId:e}=Xs(),[t,n]=v.useState(null),[r,l]=v.useState(null);if(v.useEffect(()=>{e&&mx(e).then(n).catch(o=>l(o instanceof Error?o.message:String(o)))},[e]),r)return s.jsxs("div",{className:"text-danger",children:["Error: ",r]});if(!t)return s.jsx("div",{className:"text-text-muted",children:"loading session..."});const{session:i,activity:a}=t;return s.jsxs("div",{children:[s.jsxs("header",{className:"border-b border-border pb-3 mb-4",children:[s.jsx(K,{to:"/sessions",className:"text-accent text-xs hover:underline",children:"← all sessions"}),s.jsx("h1",{className:"text-2xl text-text mt-1 font-mono",children:i.session_id}),s.jsxs("div",{className:"text-text-muted text-xs mt-2 flex gap-3 flex-wrap",children:[s.jsxs("span",{children:["started ",i.started_at]}),i.ended_at&&s.jsxs("span",{children:["ended ",i.ended_at]}),i.duration_seconds!==null&&s.jsxs("span",{children:["duration ",Math.floor(i.duration_seconds/60),"m ",i.duration_seconds%60,"s"]}),s.jsxs("span",{children:[i.tool_calls_count," tool calls"]}),s.jsxs("span",{children:[i.files_touched_count," files touched"]})]}),i.notes&&s.jsx("pre",{className:"bg-panel border border-border rounded p-3 mt-3 text-xs font-mono text-text whitespace-pre-wrap",children:i.notes})]}),s.jsx("h2",{className:"text-sm text-text mb-3",children:"Activity"}),a.length===0?s.jsx("div",{className:"text-text-muted text-sm",children:"(no activity in this session)"}):s.jsx("div",{className:"space-y-px",children:a.map(o=>s.jsxs("div",{className:"grid grid-cols-[110px_160px_1fr] gap-3 py-2 border-b border-border/40 items-baseline text-xs",children:[s.jsx("div",{className:"text-text-muted font-mono",title:o.created_at,children:V(o.created_at)}),s.jsx("div",{className:"text-accent",children:o.action_type}),s.jsxs("div",{className:"text-text flex flex-wrap items-center gap-2",children:[o.action_details&&s.jsx("span",{children:o.action_details}),o.entity_type&&s.jsxs(ie,{children:[o.entity_type,"#",o.entity_id??"?"]})]})]},o.id))})]})}const mg={storage:"Storage",dashboard:"Dashboard",embedding:"Embedding (semantic recall)",llm:"LLM (extraction + summarization)",recall:"Recall mode",sync:"Sync"};function hg(){const[e,t]=v.useState(null),[n,r]=v.useState([]),[l,i]=v.useState({}),[a,o]=v.useState(null),c=v.useCallback(async()=>{try{const g=await hx();t(g.specs),r(g.values),i({})}catch(g){o({kind:"err",text:g instanceof Error?g.message:String(g)})}},[]);if(v.useEffect(()=>{c()},[c]),!e)return s.jsx("div",{className:"text-text-muted",children:"loading settings..."});const f=new Map(n.map(g=>[g.key,g])),p=new Map;for(const g of e)p.has(g.group)||p.set(g.group,[]),p.get(g.group).push(g);function d(g,j){i(y=>({...y,[g]:j}))}function m(g){i(j=>{const{[g]:y,...h}=j;return h})}async function w(){if(Object.keys(l).length===0){o({kind:"err",text:"no changes to save"});return}o({kind:"busy",text:"writing ~/.shinobi/.env ..."});try{const g=await xx(l);if(!g.ok)throw new Error(g.error??"unknown error");const j=Object.keys(l).filter(h=>{var u;return(u=e==null?void 0:e.find(x=>x.key===h))==null?void 0:u.requiresRestart}),y=`wrote ${g.written??0}, cleared ${g.cleared??0}${j.length>0?` (restart required: ${j.join(", ")})`:""}`;o({kind:"ok",text:y}),await c()}catch(g){o({kind:"err",text:g instanceof Error?g.message:String(g)})}}return s.jsxs("div",{className:"max-w-3xl",children:[s.jsxs("header",{className:"border-b border-border pb-3 mb-6 flex items-baseline justify-between",children:[s.jsx("h1",{className:"text-2xl text-text",children:"Settings"}),s.jsx("span",{className:"text-text-muted text-xs",children:"writes to ~/.shinobi/.env with backup"})]}),a&&s.jsxs("div",{className:`mb-4 px-4 py-2 rounded text-sm flex items-center gap-2 ${a.kind==="ok"?"bg-success/20 text-success border border-success/40":a.kind==="err"?"bg-danger/20 text-danger border border-danger/40":"bg-warning/20 text-warning border border-warning/40"}`,children:[a.kind==="ok"&&s.jsx(ut,{className:"w-4 h-4"}),a.kind==="err"&&s.jsx($e,{className:"w-4 h-4"}),a.kind==="busy"&&s.jsx(Yt,{className:"w-4 h-4 animate-spin"}),a.text]}),[...p.entries()].map(([g,j])=>s.jsxs("section",{className:"mb-8",children:[s.jsx("h2",{className:"text-sm text-text mb-3 uppercase tracking-wider text-text-muted",children:mg[g]}),s.jsx("div",{className:"space-y-3",children:j.map(y=>{const h=f.get(y.key),u=y.key in l,x=l[y.key];return s.jsxs("div",{className:"bg-panel border border-border rounded p-3",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-3 mb-1",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"text-sm text-text font-medium",children:[y.label,y.requiresRestart&&s.jsx("span",{className:"ml-2 text-[10px] uppercase tracking-wider text-warning",children:"restart required"})]}),s.jsx("code",{className:"ml-2 text-[11px] text-text-muted font-mono",children:y.key})]}),(h==null?void 0:h.is_set)&&!u&&s.jsx("span",{className:"text-[10px] uppercase tracking-wider text-success",children:"set"}),u&&s.jsx("span",{className:"text-[10px] uppercase tracking-wider text-warning",children:"unsaved"})]}),s.jsx("p",{className:"text-xs text-text-muted mb-2",children:y.description}),s.jsxs("div",{className:"flex gap-2 items-center",children:[y.enumValues?s.jsxs("select",{value:u?x??"":(h==null?void 0:h.value)??"",onChange:N=>d(y.key,N.target.value||null),className:"bg-panel-2 border border-border rounded px-2 py-1 text-sm text-text font-mono flex-1",children:[s.jsx("option",{value:"",children:"(unset)"}),y.enumValues.map(N=>s.jsx("option",{value:N,children:N},N))]}):s.jsx("input",{type:y.secret?"password":"text",value:u?x??"":(h==null?void 0:h.value)??"",placeholder:h!=null&&h.is_set&&y.secret?"(secret set — type to replace)":y.placeholder??"(unset)",onChange:N=>d(y.key,N.target.value||null),className:"bg-panel-2 border border-border rounded px-2 py-1 text-sm text-text font-mono flex-1 placeholder:text-text-dim"}),u&&s.jsx(R,{size:"sm",variant:"ghost",onClick:()=>m(y.key),title:"discard change",children:s.jsx(Kh,{className:"w-3 h-3"})})]})]},y.key)})})]},g)),s.jsxs("div",{className:"sticky bottom-0 bg-bg/95 backdrop-blur border-t border-border py-3 -mx-8 px-8 flex justify-end gap-2",children:[s.jsx(R,{variant:"default",onClick:()=>i({}),disabled:Object.keys(l).length===0,children:"Discard all"}),s.jsxs(R,{variant:"primary",onClick:()=>void w(),disabled:Object.keys(l).length===0,children:["Save (",Object.keys(l).length," change",Object.keys(l).length===1?"":"s",")"]})]})]})}async function Hd(e,t){const n=await fetch(e,t);if(!n.ok){const r=await n.text();throw new Error(`${(t==null?void 0:t.method)??"GET"} ${e} → ${n.status}: ${r.slice(0,200)}`)}return await n.json()}async function xg(e,t="recording.webm"){const n=new FormData;return n.append("audio",e,t),await(await fetch("/api/audio/transcribe",{method:"POST",body:n})).json()}function gg(e){return Hd("/api/voice/save-note",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}function vg(e){return Hd("/api/voice/extract-decisions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}async function yg(e){const t=new FormData;return t.append("audio",e.file),t.append("project_id",String(e.project_id)),e.title&&t.append("title",e.title),e.session_id&&t.append("session_id",e.session_id),await(await fetch("/api/voice/meeting/process",{method:"POST",body:t})).json()}async function jg(e){var o;if(!((o=navigator.mediaDevices)!=null&&o.getUserMedia))throw new Error("mic API unavailable in this browser");const t=await navigator.mediaDevices.getUserMedia({audio:!0}),r=["audio/webm;codecs=opus","audio/webm","audio/mp4","audio/ogg;codecs=opus"].find(c=>MediaRecorder.isTypeSupported(c))??"",l=r?new MediaRecorder(t,{mimeType:r}):new MediaRecorder(t),i=[],a=Date.now();return l.addEventListener("dataavailable",c=>{c.data&&c.data.size>0&&i.push(c.data)}),l.addEventListener("stop",()=>{const c=new Blob(i,{type:l.mimeType||"audio/webm"});e(c,Date.now()-a),t.getTracks().forEach(f=>f.stop())}),l.start(),l}function wg(){const[e,t]=v.useState({kind:"idle"}),[n,r]=v.useState([]),[l,i]=v.useState(null),[a,o]=v.useState("voice"),[c,f]=v.useState(""),p=v.useRef(null),[d,m]=v.useState(0);v.useEffect(()=>{Vd({sort:"active"}).then(k=>{r(k);const _=localStorage.getItem("voice-project-id");_&&k.some(E=>String(E.id)===_)&&i(Number(_))}).catch(()=>{})},[]),v.useEffect(()=>(e.kind==="recording"?p.current=window.setInterval(()=>m(k=>k+1),250):p.current!==null&&(clearInterval(p.current),p.current=null),()=>{p.current!==null&&clearInterval(p.current)}),[e.kind]);function w(k){i(k),k!==null?localStorage.setItem("voice-project-id",String(k)):localStorage.removeItem("voice-project-id")}async function g(){try{const k=await jg((_,E)=>{t({kind:"recorded",blob:_,durationMs:E})});t({kind:"recording",startedAt:Date.now(),recorder:k})}catch(k){t({kind:"error",message:k instanceof Error?k.message:String(k)})}}function j(){e.kind==="recording"&&e.recorder.stop()}function y(){t({kind:"idle"}),f("")}async function h(){if(e.kind==="recorded"){t({kind:"transcribing"});try{const k=e.blob.type.includes("mp4")?"mp4":e.blob.type.includes("ogg")?"ogg":"webm",_=await xg(e.blob,`recording.${k}`);if(!_.ok||!_.text){t({kind:"error",message:_.error??"transcription returned empty"});return}f(_.text),t({kind:"transcribed",blob:e.blob,text:_.text,provider:_.provider??"unknown",model:_.model??"unknown",durationMs:e.durationMs})}catch(k){t({kind:"error",message:k instanceof Error?k.message:String(k)})}}}async function u(){var k;if(!(e.kind!=="transcribed"||c.trim()==="")){t({kind:"saving"});try{const _=a.split(",").map(F=>F.trim()).filter(Boolean),E=await gg({project_id:l??void 0,text:c.trim(),tags:_.length>0?_:["voice"]});if(!E.ok){t({kind:"error",message:E.error??"save failed"});return}t({kind:"done",message:`note #${(k=E.note)==null?void 0:k.id} saved${l?` to project #${l}`:" to inbox"}`})}catch(_){t({kind:"error",message:_ instanceof Error?_.message:String(_)})}}}async function x(){if(e.kind!=="transcribed"||c.trim()===""||l===null){l===null&&t({kind:"error",message:"pick a project to extract decisions into"});return}t({kind:"saving"});try{const k=await vg({project_id:l,text:c.trim()});if(!k.ok){t({kind:"error",message:k.error??"extract failed"});return}t({kind:"done",message:`${k.drafts_extracted??0} draft(s) created via ${k.provider}:${k.model} — open project Drafts tab to review`})}catch(k){t({kind:"error",message:k instanceof Error?k.message:String(k)})}}function N(){t({kind:"idle"}),f("")}const b=e.kind==="recording"?Math.floor((Date.now()-e.startedAt)/1e3):0;return s.jsxs("div",{className:"max-w-2xl mx-auto",children:[s.jsxs("header",{className:"border-b border-border pb-3 mb-6",children:[s.jsxs("h1",{className:"text-2xl text-text flex items-center gap-2",children:[s.jsx(Ci,{className:"w-6 h-6 text-accent"})," Voice capture"]}),s.jsx("p",{className:"text-text-muted text-xs mt-1",children:"Record audio → Whisper transcribe → save as note or extract decisions into drafts for review."})]}),s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-6 mb-4",children:[s.jsx("label",{className:"block text-[11px] uppercase tracking-wider text-text-muted mb-2",children:"Project"}),s.jsxs("select",{value:l??"",onChange:k=>w(k.target.value?Number(k.target.value):null),className:"w-full bg-panel-2 border border-border rounded px-3 py-2 text-sm text-text",children:[s.jsx("option",{value:"",children:"(inbox — no project)"}),n.map(k=>s.jsxs("option",{value:k.id,children:[k.workspace?`[${k.workspace}] `:"",k.title]},k.id))]}),s.jsxs("div",{className:"flex flex-col items-center my-8",children:[e.kind==="idle"&&s.jsx(R,{variant:"primary",onClick:()=>void g(),className:"w-32 h-32 rounded-full flex items-center justify-center text-base",children:s.jsx(Ci,{className:"w-12 h-12"})}),e.kind==="recording"&&s.jsxs(s.Fragment,{children:[s.jsx(R,{variant:"danger",onClick:j,className:"w-32 h-32 rounded-full flex items-center justify-center animate-pulse",children:s.jsx(Zh,{className:"w-12 h-12"})}),s.jsxs("div",{className:"mt-3 text-warning text-sm font-mono",children:["recording ",b,"s"]})]}),e.kind==="recorded"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"text-text text-sm",children:["recorded ",Math.floor(e.durationMs/1e3),"s"]}),s.jsx("audio",{controls:!0,className:"my-3",src:URL.createObjectURL(e.blob)}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(R,{variant:"default",onClick:y,children:s.jsx(jr,{className:"w-4 h-4"})}),s.jsx(R,{variant:"primary",onClick:()=>void h(),children:"Transcribe"})]})]}),e.kind==="transcribing"&&s.jsxs("div",{className:"text-warning text-sm flex items-center gap-2",children:[s.jsx(Yt,{className:"w-4 h-4 animate-spin"})," transcribing..."]}),e.kind==="transcribed"&&s.jsxs("div",{className:"w-full",children:[s.jsx("label",{className:"block text-[11px] uppercase tracking-wider text-text-muted mb-2",children:"Transcript (edit before saving)"}),s.jsx("textarea",{value:c,onChange:k=>f(k.target.value),rows:6,className:"w-full bg-panel-2 border border-border rounded px-3 py-2 text-sm text-text font-mono"}),s.jsxs("div",{className:"text-text-dim text-[10px] mt-1",children:["via ",e.provider,":",e.model," · ",Math.floor(e.durationMs/1e3),"s audio"]}),s.jsx("label",{className:"block text-[11px] uppercase tracking-wider text-text-muted mt-4 mb-2",children:"Tags (comma-separated, applied to note only)"}),s.jsx("input",{type:"text",value:a,onChange:k=>o(k.target.value),className:"w-full bg-panel-2 border border-border rounded px-3 py-2 text-sm text-text font-mono"}),s.jsxs("div",{className:"flex gap-2 mt-4 flex-wrap",children:[s.jsxs(R,{variant:"default",onClick:N,children:[s.jsx(jr,{className:"w-4 h-4 mr-1"})," Discard"]}),s.jsxs(R,{variant:"primary",onClick:()=>void u(),className:"flex items-center",children:[s.jsx(Yh,{className:"w-4 h-4 mr-1"})," Save as note"]}),s.jsxs(R,{variant:"primary",onClick:()=>void x(),disabled:l===null,className:"flex items-center",title:l===null?"pick a project first":"extract decisions to drafts",children:[s.jsx(qh,{className:"w-4 h-4 mr-1"})," Extract decisions"]})]})]}),e.kind==="saving"&&s.jsxs("div",{className:"text-warning text-sm flex items-center gap-2",children:[s.jsx(Yt,{className:"w-4 h-4 animate-spin"})," saving..."]}),e.kind==="done"&&s.jsxs("div",{className:"text-success text-sm flex items-center gap-2 flex-col",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ut,{className:"w-4 h-4"})," ",e.message]}),s.jsx(R,{variant:"primary",onClick:N,className:"mt-3",children:"Record another"})]}),e.kind==="error"&&s.jsxs("div",{className:"text-danger text-sm flex items-center gap-2 flex-col",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx($e,{className:"w-4 h-4"})," ",e.message]}),s.jsx(R,{variant:"default",onClick:N,className:"mt-3",children:"Reset"})]})]})]}),s.jsx(Ng,{projects:n,defaultProjectId:l}),s.jsxs("div",{className:"text-text-muted text-xs mt-6",children:[s.jsxs("p",{children:["Requires a transcription provider: ",s.jsx("code",{children:"SHINOBI_TRANSCRIPTION_PROVIDER"})," in ",s.jsx(K,{to:"/settings",className:"text-accent underline",children:"Settings"})," (or canonical ",s.jsx("code",{children:"GROQ_API_KEY"})," / ",s.jsx("code",{children:"OPENAI_API_KEY"}),")."]}),s.jsx("p",{className:"mt-1",children:`Install as PWA on mobile via browser's "Add to home screen" — works offline for read-only.`})]})]})}function Ng({projects:e,defaultProjectId:t}){var y,h;const[n,r]=v.useState(null),[l,i]=v.useState(""),[a,o]=v.useState(t),[c,f]=v.useState(!1),[p,d]=v.useState(null),[m,w]=v.useState(null);v.useEffect(()=>{o(t)},[t]);async function g(){if(!n||a===null){w("pick an audio file and a project");return}f(!0),w(null),d(null);try{const u={file:n,project_id:a};l.trim()&&(u.title=l.trim());const x=await yg(u);if(!x.ok){w(x.error??"meeting processing failed");return}d(x)}catch(u){w(u instanceof Error?u.message:String(u))}finally{f(!1)}}function j(){r(null),i(""),d(null),w(null)}return s.jsxs("div",{className:"bg-panel border border-border rounded-lg p-6 mt-6",children:[s.jsxs("h2",{className:"text-sm text-text mb-2 flex items-center gap-2",children:[s.jsx(nx,{className:"w-4 h-4 text-accent"})," Meeting capture (upload longer audio)"]}),s.jsxs("p",{className:"text-text-muted text-xs mb-4",children:["Upload a meeting recording (.mp3 / .m4a / .wav / .webm, max ~25 MB on Groq free tier). Whisper transcribes → transcript saved as a note tagged ",s.jsx("code",{children:"meeting"})," → decision extractor runs → review drafts on the project's Drafts tab."]}),s.jsx("label",{className:"block text-[11px] uppercase tracking-wider text-text-muted mb-2",children:"Project"}),s.jsxs("select",{value:a??"",onChange:u=>o(u.target.value?Number(u.target.value):null),className:"w-full bg-panel-2 border border-border rounded px-3 py-2 text-sm text-text mb-3",children:[s.jsx("option",{value:"",children:"(pick a project — required for meetings)"}),e.map(u=>s.jsxs("option",{value:u.id,children:[u.workspace?`[${u.workspace}] `:"",u.title]},u.id))]}),s.jsx("label",{className:"block text-[11px] uppercase tracking-wider text-text-muted mb-2",children:"Title (optional)"}),s.jsx("input",{type:"text",value:l,onChange:u=>i(u.target.value),placeholder:"e.g. Standup 2026-05-24",className:"w-full bg-panel-2 border border-border rounded px-3 py-2 text-sm text-text mb-3"}),s.jsx("label",{className:"block text-[11px] uppercase tracking-wider text-text-muted mb-2",children:"Audio file"}),s.jsx("input",{type:"file",accept:"audio/*,.mp3,.m4a,.wav,.webm,.ogg",onChange:u=>{var x;return r(((x=u.target.files)==null?void 0:x[0])??null)},className:"block w-full text-sm text-text-muted file:mr-3 file:py-1.5 file:px-3 file:rounded file:border-0 file:bg-accent file:text-bg file:cursor-pointer mb-3"}),n&&s.jsxs("div",{className:"text-text-dim text-[11px] mb-3",children:[n.name," · ",(n.size/1024/1024).toFixed(2)," MB",n.size>25*1024*1024&&s.jsx("span",{className:"text-warning ml-2",children:"⚠️ over 25 MB — Groq/OpenAI will reject. Pre-split with ffmpeg."})]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(R,{variant:"primary",onClick:()=>void g(),disabled:c||!n||a===null,children:[c?s.jsx(Yt,{className:"w-4 h-4 mr-1 animate-spin"}):s.jsx(tx,{className:"w-4 h-4 mr-1"}),c?"processing...":"Process meeting"]}),(p||m)&&s.jsx(R,{variant:"default",onClick:j,children:"Reset"})]}),m&&s.jsxs("div",{className:"mt-4 px-3 py-2 rounded text-sm flex items-center gap-2 bg-danger/20 text-danger border border-danger/40",children:[s.jsx($e,{className:"w-4 h-4"})," ",m]}),p&&s.jsxs("div",{className:"mt-4 px-3 py-2 rounded text-sm bg-success/20 text-success border border-success/40",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(ut,{className:"w-4 h-4"})," Meeting processed"]}),s.jsxs("div",{className:"text-xs text-text grid grid-cols-[8rem_1fr] gap-y-1",children:[s.jsx("div",{className:"text-text-muted",children:"title"}),s.jsx("div",{children:p.title}),s.jsx("div",{className:"text-text-muted",children:"transcript"}),s.jsxs("div",{children:[(y=p.transcript_chars)==null?void 0:y.toLocaleString()," chars · ",((h=p.audio_duration_seconds)==null?void 0:h.toFixed(0))??"?","s audio · via ",p.transcription_provider,":",p.transcription_model]}),s.jsx("div",{className:"text-text-muted",children:"drafts extracted"}),s.jsxs("div",{children:[p.drafts_extracted??0," via ",p.extractor_provider,":",p.extractor_model]}),s.jsx("div",{className:"text-text-muted",children:"note id"}),s.jsxs("div",{children:["#",p.note_id]})]}),a!==null&&s.jsx(K,{to:`/projects/${a}/decision-drafts`,className:"inline-block mt-2 text-accent hover:underline text-xs",children:"→ Review drafts on project Drafts tab"})]})]})}const nc=4e3;function kg(){const[e,t]=v.useState(null),[n,r]=v.useState(null),[l,i]=v.useState(null),a=v.useCallback(async()=>{try{const d=await wx();t(d),r(null)}catch(d){r(d instanceof Error?d.message:String(d))}},[]);v.useEffect(()=>{a();const d=setInterval(()=>void a(),nc);return()=>clearInterval(d)},[a]);async function o(d,m){i(d);try{await Nx(d,m),await a()}catch(w){alert("respond failed: "+(w instanceof Error?w.message:String(w)))}finally{i(null)}}async function c(d){i(d);try{await kx(d),await a()}catch(m){alert("cancel failed: "+(m instanceof Error?m.message:String(m)))}finally{i(null)}}if(n)return s.jsxs("div",{className:"text-danger",children:["Error: ",n]});if(!e)return s.jsx("div",{className:"text-text-muted",children:"loading approvals..."});const f=e.filter(d=>d.status==="pending"),p=e.filter(d=>d.status!=="pending").slice(0,50);return s.jsxs("div",{className:"max-w-3xl",children:[s.jsxs("header",{className:"border-b border-border pb-3 mb-6 flex items-baseline justify-between",children:[s.jsx("h1",{className:"text-2xl text-text",children:"Approvals"}),s.jsxs("span",{className:"text-text-muted text-xs flex items-center gap-1",children:[s.jsx(Yt,{className:"w-3 h-3 animate-spin"}),"polling every ",nc/1e3,"s"]})]}),s.jsxs("section",{className:"mb-8",children:[s.jsxs("h2",{className:"text-sm text-text mb-3 uppercase tracking-wider text-text-muted",children:["Pending (",f.length,")"]}),f.length===0?s.jsxs("div",{className:"bg-panel border border-dashed border-border rounded p-6 text-center text-text-muted",children:["No pending approvals. Approvals appear when the agent calls ",s.jsx("code",{children:"request_approval"})," via MCP. They also fire web push to subscribed devices — see ",s.jsx(K,{to:"/push",className:"text-accent underline",children:"Push settings"}),"."]}):s.jsx("div",{className:"space-y-3",children:f.map(d=>s.jsxs("div",{id:`approval-${d.id}`,className:"bg-panel border border-warning/40 border-l-4 border-l-warning rounded-md p-4",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-3 mb-2",children:[s.jsxs("div",{className:"text-text-muted text-xs",children:["#",d.id,d.project_id&&s.jsxs(s.Fragment,{children:[" · project #",d.project_id]}),s.jsxs(s.Fragment,{children:[" · ",V(d.created_at)]})]}),s.jsx(ie,{className:"bg-warning text-bg",children:"pending"})]}),s.jsx("div",{className:"text-text mb-3 whitespace-pre-wrap",children:d.prompt}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[d.options.map(m=>s.jsx(R,{variant:"primary",disabled:l===d.id,onClick:()=>void o(d.id,m),children:m},m)),s.jsx(R,{variant:"default",disabled:l===d.id,onClick:()=>void c(d.id),children:"Cancel"})]})]},d.id))})]}),s.jsxs("section",{children:[s.jsxs("h2",{className:"text-sm text-text mb-3 uppercase tracking-wider text-text-muted",children:["Recent (",p.length,")"]}),p.length===0?s.jsx("div",{className:"text-text-muted text-sm",children:"(none)"}):s.jsx("div",{className:"space-y-1.5",children:p.map(d=>s.jsxs("div",{className:"bg-panel border border-border rounded p-3 text-sm",children:[s.jsxs("div",{className:"flex items-baseline justify-between gap-3 mb-1",children:[s.jsxs("div",{className:"text-text-muted text-xs",children:["#",d.id,d.project_id&&s.jsxs(s.Fragment,{children:[" · project #",d.project_id]}),s.jsxs(s.Fragment,{children:[" · ",V(d.created_at)]})]}),d.status==="responded"?s.jsxs(ie,{className:"bg-success text-bg",children:[s.jsx(ut,{className:"w-3 h-3 inline mr-0.5"}),d.response_value]}):d.status==="expired"?s.jsx(ie,{className:"bg-text-dim text-text",children:"expired"}):s.jsxs(ie,{className:"bg-text-dim text-text",children:[s.jsx($e,{className:"w-3 h-3 inline mr-0.5"}),d.status]})]}),s.jsxs("div",{className:"text-text text-xs",children:[d.prompt.slice(0,200),d.prompt.length>200?"…":""]}),d.response_note&&s.jsxs("div",{className:"text-text-muted text-xs mt-1",children:["note: ",d.response_note]})]},d.id))})]})]})}function Sg(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=atob(n),l=new ArrayBuffer(r.length),i=new Uint8Array(l);for(let a=0;a<r.length;a++)i[a]=r.charCodeAt(a);return i}function bg(){const[e,t]=v.useState({kind:"loading"}),[n,r]=v.useState(null),[l,i]=v.useState(!1),a=v.useCallback(async()=>{try{const y=await vx();let h=null,u="default";const x="serviceWorker"in navigator&&"PushManager"in window;if(x){u=Notification.permission;const b=await(await navigator.serviceWorker.ready).pushManager.getSubscription();h=(b==null?void 0:b.endpoint)??null}t({kind:"ready",subscriptions:y,selfEndpoint:h,permission:u,supported:x})}catch(y){t({kind:"error",message:y instanceof Error?y.message:String(y)})}},[]);v.useEffect(()=>{a()},[a]);async function o(){if(e.kind==="ready"){i(!0);try{const{public_key:y}=await gx(),x=(await(await navigator.serviceWorker.ready).pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Sg(y)})).toJSON();await yx({endpoint:x.endpoint,keys:{p256dh:x.keys.p256dh,auth:x.keys.auth},device_label:navigator.userAgent.slice(0,60)}),r({kind:"ok",text:"subscribed — try Test push below"}),await a()}catch(y){r({kind:"err",text:y instanceof Error?y.message:String(y)})}finally{i(!1)}}}async function c(){i(!0);try{const h=await(await navigator.serviceWorker.ready).pushManager.getSubscription();if(h&&await h.unsubscribe(),e.kind==="ready"&&h){const u=e.subscriptions.find(x=>x.endpoint===h.endpoint);u&&await Yo(u.id)}r({kind:"ok",text:"unsubscribed"}),await a()}catch(y){r({kind:"err",text:y instanceof Error?y.message:String(y)})}finally{i(!1)}}async function f(){i(!0);try{const y=await jx();r({kind:"ok",text:`pushed to ${y.succeeded}/${y.total} (failed ${y.failed}, pruned ${y.pruned_endpoints.length})`}),await a()}catch(y){r({kind:"err",text:y instanceof Error?y.message:String(y)})}finally{i(!1)}}async function p(y){i(!0);try{await Yo(y),await a()}catch(h){r({kind:"err",text:h instanceof Error?h.message:String(h)})}finally{i(!1)}}if(e.kind==="loading")return s.jsx("div",{className:"text-text-muted",children:"loading push state..."});if(e.kind==="error")return s.jsxs("div",{className:"text-danger",children:["Error: ",e.message]});const{subscriptions:d,selfEndpoint:m,permission:w,supported:g}=e,j=m!==null;return s.jsxs("div",{className:"max-w-3xl",children:[s.jsxs("header",{className:"border-b border-border pb-3 mb-6",children:[s.jsxs("h1",{className:"text-2xl text-text flex items-center gap-2",children:[s.jsx(Ei,{className:"w-6 h-6 text-accent"})," Push notifications"]}),s.jsxs("p",{className:"text-text-muted text-xs mt-1",children:["Subscribe this device to receive push alerts when the agent fires ",s.jsx("code",{children:"request_approval"})," from MCP. Tap action buttons in the notification to respond from anywhere."]})]}),n&&s.jsxs("div",{className:`mb-4 px-4 py-2 rounded text-sm flex items-center gap-2 ${n.kind==="ok"?"bg-success/20 text-success border border-success/40":"bg-danger/20 text-danger border border-danger/40"}`,children:[n.kind==="ok"?s.jsx(ut,{className:"w-4 h-4"}):s.jsx($e,{className:"w-4 h-4"}),n.text]}),s.jsxs("section",{className:"bg-panel border border-border rounded-lg p-5 mb-6",children:[s.jsx("h2",{className:"text-sm text-text mb-3",children:"This device"}),g?w==="denied"?s.jsxs("div",{className:"text-danger text-sm flex items-center gap-2",children:[s.jsx(Qo,{className:"w-4 h-4"})," Notifications blocked at browser level. Enable in browser settings and refresh."]}):s.jsxs("div",{className:"flex flex-wrap gap-2 items-center",children:[s.jsxs("span",{className:"text-text-muted text-sm mr-2",children:["Status: ",j?s.jsx("span",{className:"text-success",children:"subscribed"}):s.jsx("span",{className:"text-text-dim",children:"not subscribed"})]}),j?s.jsxs(R,{variant:"default",onClick:()=>void c(),disabled:l,children:[s.jsx(Qo,{className:"w-4 h-4 mr-1"})," Unsubscribe"]}):s.jsxs(R,{variant:"primary",onClick:()=>void o(),disabled:l,children:[s.jsx(Ei,{className:"w-4 h-4 mr-1"})," Subscribe this device"]}),s.jsxs(R,{variant:"default",onClick:()=>void f(),disabled:l||d.length===0,title:d.length===0?"no subscriptions to push to":"send test push to all subscribed devices",children:[s.jsx(ba,{className:"w-4 h-4 mr-1"})," Test push"]})]}):s.jsxs("div",{className:"text-warning text-sm flex items-center gap-2",children:[s.jsx($e,{className:"w-4 h-4"})," Push API not supported in this browser (try Chrome / Firefox / Edge on desktop, or Safari 16+ as PWA on iOS)."]})]}),s.jsxs("section",{children:[s.jsxs("h2",{className:"text-sm text-text mb-3",children:["All subscribed devices (",d.length,")"]}),d.length===0?s.jsx("div",{className:"bg-panel border border-dashed border-border rounded p-6 text-center text-text-muted",children:"No devices subscribed yet."}):s.jsx("div",{className:"space-y-2",children:d.map(y=>s.jsxs("div",{className:"bg-panel border border-border rounded p-3 flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"text-xs flex-1 min-w-0",children:[s.jsx("div",{className:"text-text font-medium",children:y.device_label??"(unknown device)"}),s.jsxs("div",{className:"text-text-muted mt-1 font-mono break-all",children:[y.endpoint.slice(0,100),"…"]}),s.jsxs("div",{className:"text-text-dim text-[10px] mt-1",children:["added ",V(y.created_at),y.last_sent_at?` · last push ${V(y.last_sent_at)}`:"",y.last_error?` · last error: ${y.last_error.slice(0,80)}`:""]})]}),s.jsx(R,{variant:"ghost",onClick:()=>void p(y.id),disabled:l,title:"remove subscription",children:s.jsx(jr,{className:"w-3 h-3"})})]},y.id))})]})]})}const _g=3e3;function Eg(){const[e,t]=v.useState(null),[n,r]=v.useState(null),[l,i]=v.useState(!1),[a,o]=v.useState(null),c=v.useCallback(async()=>{try{const d=await zx();t(d),r(null)}catch(d){r(d instanceof Error?d.message:String(d))}},[]);v.useEffect(()=>{c();const d=setInterval(()=>void c(),_g);return()=>clearInterval(d)},[c]);async function f(){i(!0);try{const d=await Ox();o({kind:d.ok?"ok":"err",text:d.ok?"sync-available broadcast sent to peers":d.error??"broadcast failed"})}catch(d){o({kind:"err",text:d instanceof Error?d.message:String(d)})}finally{i(!1)}}if(n)return s.jsxs("div",{className:"text-danger",children:["Error: ",n]});if(!e)return s.jsx("div",{className:"text-text-muted",children:"loading relay status..."});const p=e.url!==null&&e.workspace!==null;return s.jsxs("div",{className:"max-w-3xl",children:[s.jsxs("header",{className:"border-b border-border pb-3 mb-6",children:[s.jsxs("h1",{className:"text-2xl text-text flex items-center gap-2",children:[s.jsx(Dd,{className:"w-6 h-6 text-accent"})," Multi-agent relay"]}),s.jsxs("p",{className:"text-text-muted text-xs mt-1",children:["Real-time fan-out across multiple machines / agents working on the same workspace. When one agent runs ",s.jsx("code",{children:"shinobi sync push"}),", all other connected agents auto-pull within ~1.5s. Backed by a Cloudflare Worker + Durable Object — see ",s.jsx("code",{children:"relay-worker/"}),"."]})]}),a&&s.jsxs("div",{className:`mb-4 px-4 py-2 rounded text-sm flex items-center gap-2 ${a.kind==="ok"?"bg-success/20 text-success border border-success/40":"bg-danger/20 text-danger border border-danger/40"}`,children:[a.kind==="ok"?s.jsx(ut,{className:"w-4 h-4"}):s.jsx($e,{className:"w-4 h-4"}),a.text]}),p?s.jsxs(s.Fragment,{children:[s.jsxs("section",{className:"bg-panel border border-border rounded-lg p-5 mb-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h2",{className:"text-sm text-text flex items-center gap-2",children:e.connected?s.jsxs(s.Fragment,{children:[s.jsx(rx,{className:"w-4 h-4 text-success"}),s.jsx("span",{className:"text-success",children:"Connected"})]}):s.jsxs(s.Fragment,{children:[s.jsx(Ko,{className:"w-4 h-4 text-warning"}),s.jsx("span",{className:"text-warning",children:"Disconnected"}),e.reconnect_attempts>0&&s.jsxs("span",{className:"text-text-muted text-xs",children:["— attempt #",e.reconnect_attempts]})]})}),s.jsxs(R,{variant:"default",onClick:()=>void c(),disabled:l,children:[s.jsx(Zs,{className:"w-3.5 h-3.5 mr-1"})," Refresh"]})]}),s.jsxs("dl",{className:"text-sm grid grid-cols-[10rem_1fr] gap-y-1.5",children:[s.jsx("dt",{className:"text-text-muted",children:"Agent ID"}),s.jsx("dd",{className:"text-text font-mono text-xs",children:e.agent_id}),s.jsx("dt",{className:"text-text-muted",children:"Workspace"}),s.jsx("dd",{className:"text-text font-mono text-xs",children:e.workspace}),s.jsx("dt",{className:"text-text-muted",children:"Relay URL"}),s.jsx("dd",{className:"text-text font-mono text-xs break-all",children:e.url}),s.jsx("dt",{className:"text-text-muted",children:"Last event"}),s.jsx("dd",{className:"text-text text-xs",children:e.last_event_at?s.jsxs(s.Fragment,{children:[s.jsx(ie,{className:"bg-accent/20 text-accent mr-2",children:e.last_event_type}),V(e.last_event_at)]}):s.jsx("span",{className:"text-text-dim",children:"none"})}),e.last_error&&s.jsxs(s.Fragment,{children:[s.jsx("dt",{className:"text-danger",children:"Last error"}),s.jsx("dd",{className:"text-danger text-xs",children:e.last_error})]})]})]}),s.jsxs("section",{className:"bg-panel border border-border rounded-lg p-5",children:[s.jsx("h2",{className:"text-sm text-text mb-2",children:"Test broadcast"}),s.jsxs("p",{className:"text-text-muted text-xs mb-3",children:["Sends a ",s.jsx("code",{children:"sync-available"})," event to every other connected agent in this workspace. They will auto-pull the latest snapshot."]}),s.jsxs(R,{variant:"primary",onClick:()=>void f(),disabled:l||!e.connected,children:[s.jsx(ba,{className:"w-4 h-4 mr-1"})," Broadcast sync-available"]})]})]}):s.jsxs("div",{className:"bg-panel border border-dashed border-border rounded-lg p-6",children:[s.jsxs("h2",{className:"text-text mb-2 flex items-center gap-2",children:[s.jsx(Ko,{className:"w-4 h-4 text-text-muted"})," Relay not configured"]}),s.jsxs("p",{className:"text-text-muted text-sm mb-3",children:["Set ",s.jsx("code",{children:"SHINOBI_RELAY_URL"}),", ",s.jsx("code",{children:"SHINOBI_RELAY_TOKEN"}),", and ",s.jsx("code",{children:"SHINOBI_RELAY_WORKSPACE"})," in Settings to enable."]}),s.jsxs("ol",{className:"text-text-muted text-sm list-decimal pl-5 space-y-1",children:[s.jsxs("li",{children:["Deploy the Worker: ",s.jsx("code",{children:"cd relay-worker && npx wrangler deploy"})]}),s.jsxs("li",{children:["Set the secret: ",s.jsx("code",{children:"npx wrangler secret put SHINOBI_RELAY_TOKEN"})]}),s.jsxs("li",{children:["Configure each agent's ",s.jsx("code",{children:"~/.shinobi/.env"})," with matching URL/token/workspace and restart the dashboard."]})]})]})]})}function Cg(){const[e,t]=v.useState(null),[n,r]=v.useState(null),[l,i]=v.useState(""),[a,o]=v.useState(!1),[c,f]=v.useState(null),[p,d]=v.useState(null),[m,w]=v.useState(null),g=v.useCallback(async()=>{try{const u=await Cx();t(u),r(null)}catch(u){r(u instanceof Error?u.message:String(u))}},[]);v.useEffect(()=>{g()},[g]);async function j(){if(!l.trim()){f(null);return}o(!0);try{const u=await Px(l.trim());f(u.results)}catch(u){w({kind:"err",text:u instanceof Error?u.message:String(u)})}finally{o(!1)}}async function y(u){d(u);try{const x=await Tx(u);w({kind:x.ok?"ok":"err",text:x.ok?`installed ${u} — restart dashboard to load tools`:(x.stderr||"install failed").slice(0,200)}),await g(),c&&await j()}catch(x){w({kind:"err",text:x instanceof Error?x.message:String(x)})}finally{d(null)}}async function h(u){d(u);try{const x=await Lx(u);w({kind:x.ok?"ok":"err",text:x.ok?`uninstalled ${u} — restart dashboard to drop tools`:(x.stderr||"uninstall failed").slice(0,200)}),await g(),c&&await j()}catch(x){w({kind:"err",text:x instanceof Error?x.message:String(x)})}finally{d(null)}}return n?s.jsxs("div",{className:"text-danger",children:["Error: ",n]}):e?s.jsxs("div",{className:"max-w-4xl",children:[s.jsxs("header",{className:"border-b border-border pb-3 mb-6",children:[s.jsxs("h1",{className:"text-2xl text-text flex items-center gap-2",children:[s.jsx(Js,{className:"w-6 h-6 text-accent"})," Plugins"]}),s.jsxs("p",{className:"text-text-muted text-xs mt-1",children:["Extend Shinobi with community-maintained packages from npm. Install location: ",s.jsx("code",{children:e.install_prefix})]})]}),m&&s.jsxs("div",{className:`mb-4 px-4 py-2 rounded text-sm flex items-center gap-2 ${m.kind==="ok"?"bg-success/20 text-success border border-success/40":"bg-danger/20 text-danger border border-danger/40"}`,children:[m.kind==="ok"?s.jsx(ut,{className:"w-4 h-4"}):s.jsx($e,{className:"w-4 h-4"}),m.text]}),s.jsxs("section",{className:"bg-panel border border-border rounded-lg p-5 mb-6",children:[s.jsx("h2",{className:"text-sm text-text mb-3",children:"Search npm registry"}),s.jsxs("div",{className:"flex gap-2 mb-3",children:[s.jsx("input",{type:"text",className:"flex-1 bg-bg border border-border rounded px-3 py-1.5 text-sm text-text",placeholder:"e.g. github, jira, time-tracking (looks under @shinobi/plugin-* and shinobi-plugin-*)",value:l,onChange:u=>i(u.target.value),onKeyDown:u=>{u.key==="Enter"&&j()}}),s.jsxs(R,{variant:"primary",onClick:()=>void j(),disabled:a,children:[s.jsx(Sa,{className:"w-4 h-4 mr-1"})," Search"]})]}),c!==null&&(c.length===0?s.jsx("div",{className:"text-text-muted text-sm",children:"no matching plugins published yet"}):s.jsx("div",{className:"space-y-2",children:c.map(u=>s.jsxs("div",{className:"bg-bg border border-border rounded p-3 flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-baseline gap-2",children:[s.jsx("div",{className:"text-text font-medium",children:u.name}),s.jsxs("div",{className:"text-text-muted text-xs",children:["v",u.version,u.author?" · "+u.author:""]}),u.links.npm&&s.jsxs("a",{href:u.links.npm,target:"_blank",rel:"noreferrer",className:"text-accent text-xs hover:underline",children:["npm ",s.jsx(Dh,{className:"w-3 h-3 inline"})]})]}),s.jsx("div",{className:"text-text-muted text-xs mt-1",children:u.description||"(no description)"})]}),u.installed?s.jsxs(R,{variant:"default",onClick:()=>void h(u.name),disabled:p===u.name,children:[s.jsx(jr,{className:"w-3.5 h-3.5 mr-1"})," Uninstall"]}):s.jsxs(R,{variant:"primary",onClick:()=>void y(u.name),disabled:p===u.name,children:[s.jsx(Ih,{className:"w-3.5 h-3.5 mr-1"})," ",p===u.name?"installing…":"Install"]})]},u.name))}))]}),s.jsxs("section",{className:"mb-6",children:[s.jsxs("div",{className:"flex items-baseline justify-between mb-3",children:[s.jsxs("h2",{className:"text-sm text-text",children:["Installed (",e.installed.length,")"]}),s.jsxs("button",{onClick:()=>void g(),className:"text-[11px] uppercase tracking-wider text-accent hover:underline",children:[s.jsx(Zs,{className:"w-3 h-3 inline mr-0.5"})," refresh"]})]}),e.installed.length===0?s.jsx("div",{className:"text-text-muted text-sm",children:"(no plugins installed yet)"}):s.jsx("div",{className:"space-y-2",children:e.installed.map(u=>s.jsxs("div",{className:"bg-panel border border-border rounded p-3 flex items-center justify-between gap-3",children:[s.jsxs("div",{children:[s.jsxs("div",{className:"text-text font-medium",children:[u.name," ",s.jsxs("span",{className:"text-text-muted text-xs",children:["v",u.version]})]}),s.jsx("div",{className:"text-text-muted text-xs",children:u.description})]}),s.jsx(R,{variant:"ghost",onClick:()=>void h(u.name),disabled:p===u.name,title:"uninstall",children:s.jsx(jr,{className:"w-3.5 h-3.5"})})]},u.name))})]}),s.jsxs("section",{children:[s.jsxs("h2",{className:"text-sm text-text mb-3",children:["Loaded at last startup (",e.loaded.length,")"]}),e.loaded.length===0?s.jsx("div",{className:"text-text-muted text-sm",children:"(none yet — install + restart dashboard)"}):s.jsx("div",{className:"space-y-2",children:e.loaded.map(u=>s.jsxs("div",{className:"bg-panel border border-border rounded p-3",children:[s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[s.jsx("div",{className:"text-text font-medium",children:u.name}),s.jsx(ie,{className:u.source==="user"?"bg-warning/30 text-warning":"bg-accent/30 text-accent",children:u.source})]}),s.jsx("div",{className:"text-text-muted text-xs font-mono break-all mt-1",children:u.module_path}),u.tools_registered.length>0&&s.jsxs("div",{className:"text-text-dim text-[11px] mt-2",children:["tools: ",u.tools_registered.join(", ")]}),u.error&&s.jsxs("div",{className:"text-danger text-xs mt-2",children:["error: ",u.error]})]},u.name))})]})]}):s.jsx("div",{className:"text-text-muted",children:"loading plugins..."})}function ls({children:e,className:t,...n}){return s.jsx("div",{className:re("bg-panel border border-border rounded-md",t),...n,children:e})}const rc={default:"text-text",muted:"text-text-muted",ok:"text-success",warn:"text-warning",error:"text-danger"},Pg={default:"bg-border-2",muted:"bg-text-dim",ok:"bg-success",warn:"bg-warning",error:"bg-danger"};function Tg(){const{pageId:e=""}=Xs(),[t,n]=v.useState(null),[r,l]=v.useState(null),[i,a]=v.useState(null),[o,c]=v.useState(null),f=v.useRef(null),p=v.useCallback(async()=>{try{n(await $x(e)),l(null)}catch(m){l(m instanceof Error?m.message:String(m))}},[e]);v.useEffect(()=>{n(null),p()},[p]),v.useEffect(()=>{f.current&&clearTimeout(f.current);const m=t==null?void 0:t.refreshSeconds;if(m)return f.current=setTimeout(()=>{document.visibilityState==="visible"?p():n(w=>w&&{...w})},m*1e3),()=>{f.current&&clearTimeout(f.current)}},[t,p]),v.useEffect(()=>{if(!o)return;const m=setTimeout(()=>c(null),4e3);return()=>clearTimeout(m)},[o]);async function d(m){if(m.confirm&&!window.confirm(m.confirm))return;const w=`${m.tool}:${m.label}`;a(w);try{const g=await Dx(e,m.tool,m.args);g.page&&n(g.page),c(g.ok?{kind:"ok",text:`${m.label} ✓`}:{kind:"err",text:g.error??"failed"})}catch(g){c({kind:"err",text:g instanceof Error?g.message:String(g)})}finally{a(null)}}return r?s.jsx("div",{className:"p-6",children:s.jsxs("div",{className:"text-danger text-sm flex items-center gap-2",children:[s.jsx($e,{className:"w-4 h-4"})," ",r]})}):t?s.jsxs("div",{className:"p-4 sm:p-6 max-w-4xl",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[s.jsx(Bd,{name:t.icon,className:"w-5 h-5 text-accent"}),s.jsx("h1",{className:"text-xl font-semibold flex-1",children:t.title}),s.jsx("span",{className:"text-[11px] text-text-muted hidden sm:inline",children:t.plugin}),s.jsx(R,{variant:"ghost",size:"sm",onClick:()=>void p(),title:"Refresh",children:s.jsx(Zs,{className:"w-3.5 h-3.5"})})]}),t.error&&s.jsx(ls,{className:"p-3 mb-4 border-danger/60",children:s.jsxs("div",{className:"text-danger text-sm flex items-center gap-2",children:[s.jsx($e,{className:"w-4 h-4 flex-shrink-0"})," ",t.error]})}),s.jsx("div",{className:"space-y-4",children:t.blocks.map((m,w)=>s.jsx(Lg,{block:m,busy:i,onPress:d},w))}),o&&s.jsxs("div",{className:re("fixed bottom-4 right-4 px-3 py-2 rounded text-sm flex items-center gap-2 border shadow-lg bg-panel",o.kind==="ok"?"border-success text-success":"border-danger text-danger"),children:[o.kind==="ok"?s.jsx(ut,{className:"w-4 h-4"}):s.jsx($e,{className:"w-4 h-4"}),o.text]})]}):s.jsx("div",{className:"p-6 text-text-muted text-sm",children:"Loading…"})}function Lg({block:e,busy:t,onPress:n}){switch(e.type){case"heading":return s.jsx("h2",{className:"text-sm uppercase tracking-wider text-text-muted pt-2",children:e.text});case"text":return s.jsx("p",{className:re("text-sm whitespace-pre-wrap",rc[e.tone??"default"]),children:e.text});case"stats":return s.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3",children:e.items.map((r,l)=>s.jsxs(ls,{className:"p-3",children:[s.jsx("div",{className:"text-[11px] uppercase tracking-wider text-text-muted",children:r.label}),s.jsx("div",{className:re("text-lg font-semibold mt-1 break-words",rc[r.tone??"default"]),children:r.value}),r.hint&&s.jsx("div",{className:"text-xs text-text-muted mt-0.5",children:r.hint})]},l))});case"table":return s.jsx(ls,{className:"overflow-x-auto",children:e.rows.length===0?s.jsx("div",{className:"p-3 text-sm text-text-muted italic",children:e.empty??"Nothing here."}):s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsx("tr",{className:"text-left text-[11px] uppercase tracking-wider text-text-muted border-b border-border",children:e.columns.map((r,l)=>s.jsx("th",{className:"px-3 py-2 font-medium",children:r},l))})}),s.jsx("tbody",{children:e.rows.map((r,l)=>s.jsx("tr",{className:"border-b border-border last:border-0",children:r.map((i,a)=>s.jsx("td",{className:"px-3 py-2 align-top",children:i},a))},l))})]})});case"list":return s.jsx(ls,{children:e.items.length===0?s.jsx("div",{className:"p-3 text-sm text-text-muted italic",children:e.empty??"Nothing here."}):s.jsx("ul",{children:e.items.map((r,l)=>s.jsxs("li",{className:"px-3 py-2 border-b border-border last:border-0 flex items-start gap-2",children:[s.jsx("span",{className:re("mt-1.5 w-2 h-2 rounded-full flex-shrink-0",Pg[r.tone??"default"])}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-sm break-words",children:r.title}),r.subtitle&&s.jsx("div",{className:"text-xs text-text-muted break-words",children:r.subtitle})]}),r.badge&&s.jsx("span",{className:"text-[10px] uppercase tracking-wider bg-border-2 rounded px-1.5 py-0.5 flex-shrink-0",children:r.badge})]},l))})});case"progress":{const r=e.max>0?Math.round(e.value/e.max*100):0;return s.jsxs("div",{children:[s.jsxs("div",{className:"flex justify-between text-sm mb-1",children:[s.jsx("span",{children:e.label}),s.jsx("span",{className:"text-text-muted",children:e.hint??`${r}%`})]}),s.jsx("div",{className:"h-2 rounded bg-border overflow-hidden",children:s.jsx("div",{className:"h-full bg-accent-2",style:{width:`${r}%`}})})]})}case"actions":return s.jsx("div",{className:"flex flex-wrap gap-2",children:e.buttons.map((r,l)=>s.jsx(R,{variant:r.variant??"default",disabled:t!==null,onClick:()=>n(r),children:t===`${r.tool}:${r.label}`?"…":r.label},l))});case"divider":return s.jsx("hr",{className:"border-border"});default:return null}}function Mg(){const[e,t]=v.useState(null),[n,r]=v.useState(null),[l,i]=v.useState(!1),[a,o]=v.useState(null),c=v.useCallback(async()=>{try{t(await Mx()),r(null)}catch(p){r(p instanceof Error?p.message:String(p))}},[]);v.useEffect(()=>{c()},[c]);async function f(){i(!0);try{const p=await Rx();p.ok?o({kind:"ok",text:`sent ${p.sent}/${p.attempted} events to ${p.endpoint}`}):o({kind:"err",text:p.error??"flush failed"}),await c()}catch(p){o({kind:"err",text:p instanceof Error?p.message:String(p)})}finally{i(!1)}}return n?s.jsxs("div",{className:"text-danger",children:["Error: ",n]}):e?s.jsxs("div",{className:"max-w-3xl",children:[s.jsxs("header",{className:"border-b border-border pb-3 mb-6",children:[s.jsxs("h1",{className:"text-2xl text-text flex items-center gap-2",children:[s.jsx(zd,{className:"w-6 h-6 text-accent"})," Telemetry"]}),s.jsx("p",{className:"text-text-muted text-xs mt-1",children:"Anonymous, opt-in usage stats. Everything below stays in your local SQLite buffer until you flush it to an endpoint. No project content, task titles, decision bodies, prompts, or usernames are ever recorded."})]}),a&&s.jsxs("div",{className:`mb-4 px-4 py-2 rounded text-sm flex items-center gap-2 ${a.kind==="ok"?"bg-success/20 text-success border border-success/40":"bg-danger/20 text-danger border border-danger/40"}`,children:[a.kind==="ok"?s.jsx(ut,{className:"w-4 h-4"}):s.jsx($e,{className:"w-4 h-4"}),a.text]}),s.jsxs("section",{className:"bg-panel border border-border rounded-lg p-5 mb-6",children:[s.jsx("h2",{className:"text-sm text-text mb-3",children:"Status"}),s.jsxs("dl",{className:"text-sm grid grid-cols-[12rem_1fr] gap-y-1.5",children:[s.jsx("dt",{className:"text-text-muted",children:"Recording"}),s.jsx("dd",{className:e.enabled?"text-success":"text-text-dim",children:e.enabled?"ON (SHINOBI_TELEMETRY=on)":"OFF (default)"}),s.jsx("dt",{className:"text-text-muted",children:"Endpoint"}),s.jsx("dd",{className:"text-text",children:e.endpoint_configured?"configured":s.jsx("span",{className:"text-text-dim",children:"local-only (no SHINOBI_TELEMETRY_ENDPOINT)"})}),s.jsx("dt",{className:"text-text-muted",children:"Total events"}),s.jsx("dd",{className:"text-text",children:e.total_events.toLocaleString()}),s.jsx("dt",{className:"text-text-muted",children:"Unsent"}),s.jsx("dd",{className:"text-text",children:e.unsent_events.toLocaleString()}),s.jsx("dt",{className:"text-text-muted",children:"Events last 7d"}),s.jsx("dd",{className:"text-text",children:e.last_7d_count.toLocaleString()}),s.jsx("dt",{className:"text-text-muted",children:"Last recorded"}),s.jsx("dd",{className:"text-text-muted text-xs",children:e.last_recorded_at?`${V(e.last_recorded_at)} ago`:"never"}),s.jsx("dt",{className:"text-text-muted",children:"Last sent"}),s.jsx("dd",{className:"text-text-muted text-xs",children:e.last_sent_at?`${V(e.last_sent_at)} ago`:"never"})]}),s.jsxs("div",{className:"mt-4 flex gap-2",children:[s.jsxs(R,{variant:"default",onClick:()=>void c(),children:[s.jsx(Zs,{className:"w-3.5 h-3.5 mr-1"})," Refresh"]}),s.jsxs(R,{variant:"primary",onClick:()=>void f(),disabled:l||!e.endpoint_configured||e.unsent_events===0,children:[s.jsx(ba,{className:"w-3.5 h-3.5 mr-1"})," Flush unsent"]})]})]}),s.jsxs("section",{className:"mb-6",children:[s.jsx("h2",{className:"text-sm text-text mb-3",children:"Counts by event type (top 30)"}),e.by_event_type.length===0?s.jsxs("div",{className:"text-text-muted text-sm",children:["(no events recorded yet",!e.enabled&&s.jsxs(s.Fragment,{children:[" — enable in ",s.jsx(K,{to:"/settings",className:"text-accent hover:underline",children:"Settings"})," and restart the dashboard)"]})]}):s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"text-[11px] uppercase tracking-wider text-text-muted text-left",children:[s.jsx("th",{className:"pb-2 pr-3",children:"Event type"}),s.jsx("th",{className:"pb-2 text-right",children:"Count"})]})}),s.jsx("tbody",{children:e.by_event_type.map(p=>s.jsxs("tr",{className:"border-b border-border/40",children:[s.jsx("td",{className:"py-1.5 pr-3 text-text font-mono text-xs",children:p.event_type}),s.jsx("td",{className:"py-1.5 text-text text-right",children:p.count.toLocaleString()})]},p.event_type))})]})]}),s.jsxs("section",{className:"text-text-muted text-xs",children:[s.jsx("h2",{className:"text-text text-sm mb-2",children:"What is recorded"}),s.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[s.jsxs("li",{children:[s.jsx("code",{children:"tool_called"})," — MCP tool name + ok flag"]}),s.jsxs("li",{children:[s.jsx("code",{children:"view_hit"})," — dashboard route bucket (e.g. ",s.jsx("code",{children:"/projects/:tab"}),") + HTTP status. Project IDs are stripped."]})]}),s.jsx("h2",{className:"text-text text-sm mt-4 mb-2",children:"What is NEVER recorded"}),s.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[s.jsx("li",{children:"Project titles, task titles, decision bodies, notes, plans, prompts, model output, code snippets, file paths."}),s.jsx("li",{children:"IP addresses, usernames, machine IDs."}),s.jsxs("li",{children:["The contents of ",s.jsx("code",{children:"~/.shinobi/.env"}),", API keys, or any setting value."]})]})]})]}):s.jsx("div",{className:"text-text-muted",children:"loading telemetry..."})}function Rg(){return s.jsxs("div",{className:"text-center py-16",children:[s.jsx("div",{className:"text-6xl mb-4",children:"🥷"}),s.jsx("h1",{className:"text-2xl text-text mb-2",children:"Not found"}),s.jsx("p",{className:"text-text-muted mb-4",children:"The page you're looking for doesn't exist."}),s.jsx(K,{to:"/",className:"text-accent hover:underline",children:"← Back to home"})]})}function zg(){return s.jsx(wh,{children:s.jsx(ph,{children:s.jsxs(U,{element:s.jsx(Hx,{}),children:[s.jsx(U,{path:"/",element:s.jsx(Yx,{})}),s.jsx(U,{path:"/settings",element:s.jsx(hg,{})}),s.jsx(U,{path:"/voice",element:s.jsx(wg,{})}),s.jsx(U,{path:"/approvals",element:s.jsx(kg,{})}),s.jsx(U,{path:"/push",element:s.jsx(bg,{})}),s.jsx(U,{path:"/relay",element:s.jsx(Eg,{})}),s.jsx(U,{path:"/plugins",element:s.jsx(Cg,{})}),s.jsx(U,{path:"/apps/:pageId",element:s.jsx(Tg,{})}),s.jsx(U,{path:"/telemetry",element:s.jsx(Mg,{})}),s.jsx(U,{path:"/sessions",element:s.jsx(fg,{})}),s.jsx(U,{path:"/sessions/:sessionId",element:s.jsx(pg,{})}),s.jsxs(U,{path:"/projects/:id",element:s.jsx(qx,{}),children:[s.jsx(U,{index:!0,element:s.jsx(Zx,{})}),s.jsx(U,{path:"subtasks",element:s.jsx(eg,{})}),s.jsx(U,{path:"decisions",element:s.jsx(rg,{})}),s.jsx(U,{path:"decision-drafts",element:s.jsx(sg,{})}),s.jsx(U,{path:"dead-ends",element:s.jsx(lg,{})}),s.jsx(U,{path:"notes",element:s.jsx(ig,{})}),s.jsx(U,{path:"plans",element:s.jsx(ag,{})}),s.jsx(U,{path:"context",element:s.jsx(og,{})}),s.jsx(U,{path:"sessions",element:s.jsx(dg,{})}),s.jsx(U,{path:"timeline",element:s.jsx(cg,{})}),s.jsx(U,{path:"analytics",element:s.jsx(ug,{})})]}),s.jsx(U,{path:"*",element:s.jsx(Rg,{})})]})})})}gd(document.getElementById("root")).render(s.jsx(v.StrictMode,{children:s.jsx(zg,{})}));
318
+ //# sourceMappingURL=index-BjpafK0A.js.map