@apteva/apteva-darwin-arm64 0.4.53 → 0.4.56
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.
- package/apteva +0 -0
- package/dist/ActivityPage.nx7edj1s.js +3 -0
- package/dist/{ActivityPage.9v5ha2p7.js.map → ActivityPage.nx7edj1s.js.map} +2 -2
- package/dist/ApiDocsPage.rwys8wpd.js +4 -0
- package/dist/{ApiDocsPage.qsehxvkb.js.map → ApiDocsPage.rwys8wpd.js.map} +2 -2
- package/dist/App.2j4tpeys.js +61 -0
- package/dist/{App.anvw0hjc.js.map → App.2j4tpeys.js.map} +3 -3
- package/dist/{App.jdkx6eqd.js → App.8cvz3ngj.js} +2 -2
- package/dist/{App.jdkx6eqd.js.map → App.8cvz3ngj.js.map} +1 -1
- package/dist/App.a2rb0ne3.js +4 -0
- package/dist/{App.sd685nt9.js.map → App.a2rb0ne3.js.map} +2 -2
- package/dist/App.aybz4ae0.js +53 -0
- package/dist/{App.d9vcm6zs.js.map → App.aybz4ae0.js.map} +3 -3
- package/dist/App.bjefj5zs.js +4 -0
- package/dist/{App.aexwv4rk.js.map → App.bjefj5zs.js.map} +2 -2
- package/dist/App.cnbb1872.js +4 -0
- package/dist/{App.x6x8s16g.js.map → App.cnbb1872.js.map} +2 -2
- package/dist/App.cv6e5yds.js +4 -0
- package/dist/App.cv6e5yds.js.map +10 -0
- package/dist/App.eqd061d2.js +4 -0
- package/dist/{App.dmvykj97.js.map → App.eqd061d2.js.map} +3 -3
- package/dist/App.fy5bef1p.js +20 -0
- package/dist/{App.shfd8tp9.js.map → App.fy5bef1p.js.map} +6 -5
- package/dist/App.mxcz65n1.js +4 -0
- package/dist/{App.cjcyr5aj.js.map → App.mxcz65n1.js.map} +2 -2
- package/dist/App.nvpvg5yh.js +13 -0
- package/dist/{App.j4ec9k18.js.map → App.nvpvg5yh.js.map} +2 -2
- package/dist/{App.2j20h2gt.js → App.rvnjekh6.js} +3 -3
- package/dist/{App.2j20h2gt.js.map → App.rvnjekh6.js.map} +2 -2
- package/dist/App.was53rtk.js +4 -0
- package/dist/{App.kz3qyyre.js.map → App.was53rtk.js.map} +2 -2
- package/dist/App.wqjbggrj.js +4 -0
- package/dist/{App.e2kkda2a.js.map → App.wqjbggrj.js.map} +2 -2
- package/dist/App.z92hp4k3.js +221 -0
- package/dist/{App.j0xwtdd7.js.map → App.z92hp4k3.js.map} +11 -11
- package/dist/{App.wghtdzsk.js → App.zn4mw16t.js} +1 -1
- package/dist/ConnectionsPage.qfyks0xm.js +3 -0
- package/dist/McpPage.y6vgt9ej.js +3 -0
- package/dist/SettingsPage.fkw8berr.js +3 -0
- package/dist/SkillsPage.48zztx44.js +3 -0
- package/dist/TasksPage.v930en79.js +3 -0
- package/dist/TelemetryPage.xxebs3s9.js +3 -0
- package/dist/TelemetryPage.xxebs3s9.js.map +9 -0
- package/dist/TestsPage.1xtfmbrg.js +3 -0
- package/dist/ThreadsPage.xazwab60.js +3 -0
- package/dist/ThreadsPage.xazwab60.js.map +9 -0
- package/dist/apteva-kit.css +1 -1
- package/dist/index.html +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/ActivityPage.9v5ha2p7.js +0 -3
- package/dist/ApiDocsPage.qsehxvkb.js +0 -4
- package/dist/App.2md3x3z7.js +0 -4
- package/dist/App.2md3x3z7.js.map +0 -10
- package/dist/App.aexwv4rk.js +0 -4
- package/dist/App.anvw0hjc.js +0 -61
- package/dist/App.cjcyr5aj.js +0 -4
- package/dist/App.d9vcm6zs.js +0 -53
- package/dist/App.dmvykj97.js +0 -4
- package/dist/App.e2kkda2a.js +0 -4
- package/dist/App.j0xwtdd7.js +0 -221
- package/dist/App.j4ec9k18.js +0 -13
- package/dist/App.kz3qyyre.js +0 -4
- package/dist/App.sd685nt9.js +0 -4
- package/dist/App.shfd8tp9.js +0 -20
- package/dist/App.x6x8s16g.js +0 -4
- package/dist/ConnectionsPage.1dyyfqbk.js +0 -3
- package/dist/McpPage.xvr8hk05.js +0 -3
- package/dist/SettingsPage.4r1nbxvp.js +0 -3
- package/dist/SkillsPage.jw7carjq.js +0 -3
- package/dist/TasksPage.r8txe0e9.js +0 -3
- package/dist/TelemetryPage.sqnsfrht.js +0 -3
- package/dist/TelemetryPage.sqnsfrht.js.map +0 -9
- package/dist/TestsPage.pkymr7yt.js +0 -3
- package/dist/ThreadsPage.49tgq4fq.js +0 -3
- package/dist/ThreadsPage.49tgq4fq.js.map +0 -9
- /package/dist/{ConnectionsPage.1dyyfqbk.js.map → ConnectionsPage.qfyks0xm.js.map} +0 -0
- /package/dist/{McpPage.xvr8hk05.js.map → McpPage.y6vgt9ej.js.map} +0 -0
- /package/dist/{SettingsPage.4r1nbxvp.js.map → SettingsPage.fkw8berr.js.map} +0 -0
- /package/dist/{SkillsPage.jw7carjq.js.map → SkillsPage.48zztx44.js.map} +0 -0
- /package/dist/{TasksPage.r8txe0e9.js.map → TasksPage.v930en79.js.map} +0 -0
- /package/dist/{TestsPage.pkymr7yt.js.map → TestsPage.1xtfmbrg.js.map} +0 -0
package/dist/App.j0xwtdd7.js
DELETED
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
import{a as Dr}from"./App.x6x8s16g.js";import"./App.2md3x3z7.js";import{f as E9,g as R7,h as E5}from"./App.cjcyr5aj.js";import"./App.aexwv4rk.js";import"./App.kz3qyyre.js";import{A as g9,B as F9,C as A9,D as T9,E as X1,G as V9,H as D9,I as j9,J as n9,K as C9,k as Q1,l as it,m as H7,n as W7,o as U7,p as r0,q as Nm,r as v0,s as b0,t as wt,u as Y1,v as f0,w as P9,x as I9,y as i0,z as w0}from"./App.jdkx6eqd.js";import"./App.j4ec9k18.js";import"./App.dmvykj97.js";import{N as d7,O as s5}from"./App.e2kkda2a.js";import{Q as x9,R as ur}from"./App.anvw0hjc.js";import"./App.d9vcm6zs.js";import{U as ct}from"./App.sd685nt9.js";import{V as uY}from"./App.2j20h2gt.js";import{$ as Do,X as Ga,Y as G7,_ as Mm,aa as vo,ba as pz,ca as u5,da as W1,ea as B1,fa as $1,ga as mz,ha as N9,ia as d9,ja as $o,ka as tz,la as M9,ma as vp,na as rz,oa as xr,pa as L7}from"./App.shfd8tp9.js";var B9=G7((SY)=>{(function(){function c(){if(oa=!1,V){var C=SY.unstable_now();ra=C;var T=!0;try{a:{ma=!1,wa&&(wa=!1,La(Ca),Ca=-1),qa=!0;var va=s;try{o:{y(C);for(P=_(k);P!==null&&!(P.expirationTime>C&&G());){var Pa=P.callback;if(typeof Pa==="function"){P.callback=null,s=P.priorityLevel;var xa=Pa(P.expirationTime<=C);if(C=SY.unstable_now(),typeof xa==="function"){P.callback=xa,y(C),T=!0;break o}P===_(k)&&U(k),y(C)}else U(k);P=_(k)}if(P!==null)T=!0;else{var So=_(x);So!==null&&N(H,So.startTime-C),T=!1}}break a}finally{P=null,s=va,qa=!1}T=void 0}}finally{T?O():V=!1}}}function Z(C,T){var va=C.length;C.push(T);a:for(;0<va;){var Pa=va-1>>>1,xa=C[Pa];if(0<h(xa,T))C[Pa]=T,C[va]=xa,va=Pa;else break a}}function _(C){return C.length===0?null:C[0]}function U(C){if(C.length===0)return null;var T=C[0],va=C.pop();if(va!==T){C[0]=va;a:for(var Pa=0,xa=C.length,So=xa>>>1;Pa<So;){var $p=2*(Pa+1)-1,S=C[$p],_a=$p+1,sa=C[_a];if(0>h(S,va))_a<xa&&0>h(sa,S)?(C[Pa]=sa,C[_a]=va,Pa=_a):(C[Pa]=S,C[$p]=va,Pa=$p);else if(_a<xa&&0>h(sa,va))C[Pa]=sa,C[_a]=va,Pa=_a;else break a}}return T}function h(C,T){var va=C.sortIndex-T.sortIndex;return va!==0?va:C.id-T.id}function y(C){for(var T=_(x);T!==null;){if(T.callback===null)U(x);else if(T.startTime<=C)U(x),T.sortIndex=T.expirationTime,Z(k,T);else break;T=_(x)}}function H(C){if(wa=!1,y(C),!ma)if(_(k)!==null)ma=!0,V||(V=!0,O());else{var T=_(x);T!==null&&N(H,T.startTime-C)}}function G(){return oa?!0:SY.unstable_now()-ra<L?!1:!0}function N(C,T){Ca=e(function(){C(SY.unstable_now())},T)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),SY.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var I=performance;SY.unstable_now=function(){return I.now()}}else{var W=Date,A=W.now();SY.unstable_now=function(){return W.now()-A}}var k=[],x=[],M=1,P=null,s=3,qa=!1,ma=!1,wa=!1,oa=!1,e=typeof setTimeout==="function"?setTimeout:null,La=typeof clearTimeout==="function"?clearTimeout:null,ha=typeof setImmediate<"u"?setImmediate:null,V=!1,Ca=-1,L=5,ra=-1;if(typeof ha==="function")var O=function(){ha(c)};else if(typeof MessageChannel<"u"){var d=new MessageChannel,fa=d.port2;d.port1.onmessage=c,O=function(){fa.postMessage(null)}}else O=function(){e(c,0)};SY.unstable_IdlePriority=5,SY.unstable_ImmediatePriority=1,SY.unstable_LowPriority=4,SY.unstable_NormalPriority=3,SY.unstable_Profiling=null,SY.unstable_UserBlockingPriority=2,SY.unstable_cancelCallback=function(C){C.callback=null},SY.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<C?Math.floor(1000/C):5},SY.unstable_getCurrentPriorityLevel=function(){return s},SY.unstable_next=function(C){switch(s){case 1:case 2:case 3:var T=3;break;default:T=s}var va=s;s=T;try{return C()}finally{s=va}},SY.unstable_requestPaint=function(){oa=!0},SY.unstable_runWithPriority=function(C,T){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var va=s;s=C;try{return T()}finally{s=va}},SY.unstable_scheduleCallback=function(C,T,va){var Pa=SY.unstable_now();switch(typeof va==="object"&&va!==null?(va=va.delay,va=typeof va==="number"&&0<va?Pa+va:Pa):va=Pa,C){case 1:var xa=-1;break;case 2:xa=250;break;case 5:xa=1073741823;break;case 4:xa=1e4;break;default:xa=5000}return xa=va+xa,C={id:M++,callback:T,priorityLevel:C,startTime:va,expirationTime:xa,sortIndex:-1},va>Pa?(C.sortIndex=va,Z(x,C),_(k)===null&&C===_(x)&&(wa?(La(Ca),Ca=-1):wa=!0,N(H,va-Pa))):(C.sortIndex=xa,Z(k,C),ma||qa||(ma=!0,V||(V=!0,O()))),C},SY.unstable_shouldYield=G,SY.unstable_wrapCallback=function(C){var T=s;return function(){var va=s;s=T;try{return C.apply(this,arguments)}finally{s=va}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var K9=G7((xY)=>{var Fa=Ga(B9()),t0=Ga(Do()),_7=Ga(uY());(function(){function c(a,o){for(a=a.memoizedState;a!==null&&0<o;)a=a.next,o--;return a}function Z(a,o,p,m){if(p>=o.length)return m;var t=o[p],r=yo(a)?a.slice():da({},a);return r[t]=Z(a[t],o,p+1,m),r}function _(a,o,p){if(o.length!==p.length)console.warn("copyWithRename() expects paths of the same length");else{for(var m=0;m<p.length-1;m++)if(o[m]!==p[m]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return U(a,o,p,0)}}function U(a,o,p,m){var t=o[m],r=yo(a)?a.slice():da({},a);return m+1===o.length?(r[p[m]]=r[t],yo(r)?r.splice(t,1):delete r[t]):r[t]=U(a[t],o,p,m+1),r}function h(a,o,p){var m=o[p],t=yo(a)?a.slice():da({},a);if(p+1===o.length)return yo(t)?t.splice(m,1):delete t[m],t;return t[m]=h(a[m],o,p+1),t}function y(){return!1}function H(){return null}function G(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function N(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function I(){}function W(){}function A(a){var o=[];return a.forEach(function(p){o.push(p)}),o.sort().join(", ")}function k(a,o,p,m){return new kz(a,o,p,m)}function x(a,o){a.context===ht&&(F3(a.current,2,o,a,null,null),Jv())}function M(a,o){if(gp!==null){var p=o.staleFamilies;o=o.updatedFamilies,P0(),R6(a.current,o,p),Jv()}}function P(a){gp=a}function s(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function qa(a){var o=a,p=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,(o.flags&4098)!==0&&(p=o.return),a=o.return;while(a)}return o.tag===3?p:null}function ma(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function wa(a){if(a.tag===31){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function oa(a){if(qa(a)!==a)throw Error("Unable to find node on an unmounted component.")}function e(a){var o=a.alternate;if(!o){if(o=qa(a),o===null)throw Error("Unable to find node on an unmounted component.");return o!==a?null:a}for(var p=a,m=o;;){var t=p.return;if(t===null)break;var r=t.alternate;if(r===null){if(m=t.return,m!==null){p=m;continue}break}if(t.child===r.child){for(r=t.child;r;){if(r===p)return oa(t),a;if(r===m)return oa(t),o;r=r.sibling}throw Error("Unable to find node on an unmounted component.")}if(p.return!==m.return)p=t,m=r;else{for(var v=!1,b=t.child;b;){if(b===p){v=!0,p=t,m=r;break}if(b===m){v=!0,m=t,p=r;break}b=b.sibling}if(!v){for(b=r.child;b;){if(b===p){v=!0,p=r,m=t;break}if(b===m){v=!0,m=r,p=t;break}b=b.sibling}if(!v)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(p.alternate!==m)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(p.tag!==3)throw Error("Unable to find node on an unmounted component.");return p.stateNode.current===p?a:o}function La(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a;for(a=a.child;a!==null;){if(o=La(a),o!==null)return o;a=a.sibling}return null}function ha(a){if(a===null||typeof a!=="object")return null;return a=Mc&&a[Mc]||a["@@iterator"],typeof a==="function"?a:null}function V(a){if(a==null)return null;if(typeof a==="function")return a.$$typeof===oJ?null:a.displayName||a.name||null;if(typeof a==="string")return a;switch(a){case Qv:return"Fragment";case n3:return"Profiler";case fb:return"StrictMode";case u3:return"Suspense";case x3:return"SuspenseList";case V3:return"Activity"}if(typeof a==="object")switch(typeof a.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case qv:return"Portal";case Km:return a.displayName||"Context";case S3:return(a._context.displayName||"Context")+".Consumer";case j0:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case ib:return o=a.displayName||null,o!==null?o:V(a.type)||"Memo";case Bp:o=a._payload,a=a._init;try{return V(a(o))}catch(p){}}return null}function Ca(a){return typeof a.tag==="number"?L(a):typeof a.name==="string"?a.name:null}function L(a){var o=a.type;switch(a.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(o._context.displayName||"Context")+".Consumer";case 10:return o.displayName||"Context";case 18:return"DehydratedFragment";case 11:return a=o.render,a=a.displayName||a.name||"",o.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(o);case 8:return o===fb?"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 14:case 15:if(typeof o==="function")return o.displayName||o.name||null;if(typeof o==="string")return o;break;case 29:if(o=a._debugInfo,o!=null){for(var p=o.length-1;0<=p;p--)if(typeof o[p].name==="string")return o[p].name}if(a.return!==null)return L(a.return)}return null}function ra(a){return{current:a}}function O(a,o){0>um?console.error("Unexpected pop."):(o!==j3[um]&&console.error("Unexpected Fiber popped."),a.current=D3[um],D3[um]=null,j3[um]=null,um--)}function d(a,o,p){um++,D3[um]=a.current,j3[um]=p,a.current=o}function fa(a){return a===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),a}function C(a,o){d(Ut,o,a),d(E0,a,a),d(Wt,null,a);var p=o.nodeType;switch(p){case 9:case 11:p=p===9?"#document":"#fragment",o=(o=o.documentElement)?(o=o.namespaceURI)?vc(o):vt:vt;break;default:if(p=o.tagName,o=o.namespaceURI)o=vc(o),o=bc(o,p);else switch(p){case"svg":o=p0;break;case"math":o=b1;break;default:o=vt}}p=p.toLowerCase(),p=a6(null,p),p={context:o,ancestorInfo:p},O(Wt,a),d(Wt,p,a)}function T(a){O(Wt,a),O(E0,a),O(Ut,a)}function va(){return fa(Wt.current)}function Pa(a){a.memoizedState!==null&&d(wb,a,a);var o=fa(Wt.current),p=a.type,m=bc(o.context,p);p=a6(o.ancestorInfo,p),m={context:m,ancestorInfo:p},o!==m&&(d(E0,a,a),d(Wt,m,a))}function xa(a){E0.current===a&&(O(Wt,a),O(E0,a)),wb.current===a&&(O(wb,a),A5._currentValue=Tr)}function So(){}function $p(){if(s0===0){gc=console.log,Fc=console.info,Cc=console.warn,Pc=console.error,Ic=console.group,Ac=console.groupCollapsed,Tc=console.groupEnd;var a={configurable:!0,enumerable:!0,value:So,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}s0++}function S(){if(s0--,s0===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:da({},a,{value:gc}),info:da({},a,{value:Fc}),warn:da({},a,{value:Cc}),error:da({},a,{value:Pc}),group:da({},a,{value:Ic}),groupCollapsed:da({},a,{value:Ac}),groupEnd:da({},a,{value:Tc})})}0>s0&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function _a(a){var o=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=o,a.startsWith(`Error: react-stack-top-frame
|
|
2
|
-
`)&&(a=a.slice(29)),o=a.indexOf(`
|
|
3
|
-
`),o!==-1&&(a=a.slice(o+1)),o=a.indexOf("react_stack_bottom_frame"),o!==-1&&(o=a.lastIndexOf(`
|
|
4
|
-
`,o)),o!==-1)a=a.slice(0,o);else return"";return a}function sa(a){if(E3===void 0)try{throw Error()}catch(p){var o=p.stack.trim().match(/\n( *(at )?)/);E3=o&&o[1]||"",nc=-1<p.stack.indexOf(`
|
|
5
|
-
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
6
|
-
`+E3+a+nc}function pr(a,o){if(!a||s3)return"";var p=e3.get(a);if(p!==void 0)return p;s3=!0,p=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var m=null;m=K.H,K.H=null,$p();try{var t={DetermineComponentFrameRoot:function(){try{if(o){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(n){var q=n}Reflect.construct(a,[],z)}else{try{z.call()}catch(n){q=n}a.call(z.prototype)}}else{try{throw Error()}catch(n){q=n}(z=a())&&typeof z.catch==="function"&&z.catch(function(){})}}catch(n){if(n&&q&&typeof n.stack==="string")return[n.stack,q.stack]}return[null,null]}};t.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(t.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(t.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=t.DetermineComponentFrameRoot(),b=v[0],f=v[1];if(b&&f){var i=b.split(`
|
|
7
|
-
`),Y=f.split(`
|
|
8
|
-
`);for(v=r=0;r<i.length&&!i[r].includes("DetermineComponentFrameRoot");)r++;for(;v<Y.length&&!Y[v].includes("DetermineComponentFrameRoot");)v++;if(r===i.length||v===Y.length)for(r=i.length-1,v=Y.length-1;1<=r&&0<=v&&i[r]!==Y[v];)v--;for(;1<=r&&0<=v;r--,v--)if(i[r]!==Y[v]){if(r!==1||v!==1)do if(r--,v--,0>v||i[r]!==Y[v]){var X=`
|
|
9
|
-
`+i[r].replace(" at new "," at ");return a.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",a.displayName)),typeof a==="function"&&e3.set(a,X),X}while(1<=r&&0<=v);break}}}finally{s3=!1,K.H=m,S(),Error.prepareStackTrace=p}return i=(i=a?a.displayName||a.name:"")?sa(i):"",typeof a==="function"&&e3.set(a,i),i}function jr(a,o){switch(a.tag){case 26:case 27:case 5:return sa(a.type);case 16:return sa("Lazy");case 13:return a.child!==o&&o!==null?sa("Suspense Fallback"):sa("Suspense");case 19:return sa("SuspenseList");case 0:case 15:return pr(a.type,!1);case 11:return pr(a.type.render,!1);case 1:return pr(a.type,!0);case 31:return sa("Activity");default:return""}}function Er(a){try{var o="",p=null;do{o+=jr(a,p);var m=a._debugInfo;if(m)for(var t=m.length-1;0<=t;t--){var r=m[t];if(typeof r.name==="string"){var v=o;a:{var{name:b,env:f,debugLocation:i}=r;if(i!=null){var Y=_a(i),X=Y.lastIndexOf(`
|
|
10
|
-
`),z=X===-1?Y:Y.slice(X+1);if(z.indexOf(b)!==-1){var q=`
|
|
11
|
-
`+z;break a}}q=sa(b+(f?" ["+f+"]":""))}o=v+q}}p=a,a=a.return}while(a);return o}catch(n){return`
|
|
12
|
-
Error generating stack: `+n.message+`
|
|
13
|
-
`+n.stack}}function mr(a){return(a=a?a.displayName||a.name:"")?sa(a):""}function vm(){if(Kp===null)return null;var a=Kp._debugOwner;return a!=null?Ca(a):null}function sr(){if(Kp===null)return"";var a=Kp;try{var o="";switch(a.tag===6&&(a=a.return),a.tag){case 26:case 27:case 5:o+=sa(a.type);break;case 13:o+=sa("Suspense");break;case 19:o+=sa("SuspenseList");break;case 31:o+=sa("Activity");break;case 30:case 0:case 15:case 1:a._debugOwner||o!==""||(o+=mr(a.type));break;case 11:a._debugOwner||o!==""||(o+=mr(a.type.render))}for(;a;)if(typeof a.tag==="number"){var p=a;a=p._debugOwner;var m=p._debugStack;if(a&&m){var t=_a(m);t!==""&&(o+=`
|
|
14
|
-
`+t)}}else if(a.debugStack!=null){var r=a.debugStack;(a=a.owner)&&r&&(o+=`
|
|
15
|
-
`+_a(r))}else break;var v=o}catch(b){v=`
|
|
16
|
-
Error generating stack: `+b.message+`
|
|
17
|
-
`+b.stack}return v}function F(a,o,p,m,t,r,v){var b=Kp;B(a);try{return a!==null&&a._debugTask?a._debugTask.run(o.bind(null,p,m,t,r,v)):o(p,m,t,r,v)}finally{B(b)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function B(a){K.getCurrentStack=a===null?null:sr,Hm=!1,Kp=a}function u(a){return typeof Symbol==="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"}function ka(a){try{return jo(a),!1}catch(o){return!0}}function jo(a){return""+a}function Ta(a,o){if(ka(a))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",o,u(a)),jo(a)}function L1(a,o){if(ka(a))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",o,u(a)),jo(a)}function O1(a){if(ka(a))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",u(a)),jo(a)}function bz(a){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(o.isDisabled)return!0;if(!o.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Kv=o.inject(a),xo=o}catch(p){console.error("React instrumentation encountered an error: %o.",p)}return o.checkDCE?!0:!1}function co(a){if(typeof fJ==="function"&&iJ(a),xo&&typeof xo.setStrictMode==="function")try{xo.setStrictMode(Kv,a)}catch(o){Wm||(Wm=!0,console.error("React instrumentation encountered an error: %o",o))}}function fz(a){return a>>>=0,a===0?32:31-(wJ(a)/cJ|0)|0}function tr(a){var o=a&42;if(o!==0)return o;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),a}}function e5(a,o,p){var m=a.pendingLanes;if(m===0)return 0;var t=0,r=a.suspendedLanes,v=a.pingedLanes;a=a.warmLanes;var b=m&134217727;return b!==0?(m=b&~r,m!==0?t=tr(m):(v&=b,v!==0?t=tr(v):p||(p=b&~a,p!==0&&(t=tr(p))))):(b=m&~r,b!==0?t=tr(b):v!==0?t=tr(v):p||(p=m&~a,p!==0&&(t=tr(p)))),t===0?0:o!==0&&o!==t&&(o&r)===0&&(r=t&-t,p=o&-o,r>=p||r===32&&(p&4194048)!==0)?o:t}function l0(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function iz(a,o){switch(a){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function h1(){var a=zb;return zb<<=1,(zb&62914560)===0&&(zb=4194304),a}function k1(a){for(var o=[],p=0;31>p;p++)o.push(a);return o}function z0(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function wz(a,o,p,m,t,r){var v=a.pendingLanes;a.pendingLanes=p,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=p,a.entangledLanes&=p,a.errorRecoveryDisabledLanes&=p,a.shellSuspendCounter=0;var{entanglements:b,expirationTimes:f,hiddenUpdates:i}=a;for(p=v&~p;0<p;){var Y=31-so(p),X=1<<Y;b[Y]=0,f[Y]=-1;var z=i[Y];if(z!==null)for(i[Y]=null,Y=0;Y<z.length;Y++){var q=z[Y];q!==null&&(q.lane&=-536870913)}p&=~X}m!==0&&O7(a,m,0),r!==0&&t===0&&a.tag!==0&&(a.suspendedLanes|=r&~(v&~o))}function O7(a,o,p){a.pendingLanes|=o,a.suspendedLanes&=~o;var m=31-so(o);a.entangledLanes|=o,a.entanglements[m]=a.entanglements[m]|1073741824|p&261930}function h7(a,o){var p=a.entangledLanes|=o;for(a=a.entanglements;p;){var m=31-so(p),t=1<<m;t&o|a[m]&o&&(a[m]|=o),p&=~t}}function k7(a,o){var p=o&-o;return p=(p&42)!==0?1:N1(p),(p&(a.suspendedLanes|o))!==0?0:p}function N1(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function N7(a,o,p){if(Um)for(a=a.pendingUpdatersLaneMap;0<p;){var m=31-so(p),t=1<<m;a[m].add(o),p&=~t}}function M7(a,o){if(Um)for(var{pendingUpdatersLaneMap:p,memoizedUpdaters:m}=a;0<o;){var t=31-so(o);a=1<<t,t=p[t],0<t.size&&(t.forEach(function(r){var v=r.alternate;v!==null&&m.has(v)||m.add(r)}),t.clear()),o&=~a}}function M1(a){return a&=-a,Hp!==0&&Hp<a?ep!==0&&ep<a?(a&134217727)!==0?dm:$b:ep:Hp}function g7(){var a=Aa.p;if(a!==0)return a;return a=window.event,a===void 0?dm:Rc(a.type)}function F7(a,o){var p=Aa.p;try{return Aa.p=a,o()}finally{Aa.p=p}}function g1(a){delete a[Ao],delete a[eo],delete a[tf],delete a[lJ],delete a[zJ]}function er(a){var o=a[Ao];if(o)return o;for(var p=a.parentNode;p;){if(o=p[Rt]||p[Ao]){if(p=o.alternate,o.child!==null||p!==null&&p.child!==null)for(a=Jc(a);a!==null;){if(p=a[Ao])return p;a=Jc(a)}return o}a=p,p=a.parentNode}return null}function zt(a){if(a=a[Ao]||a[Rt]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function $0(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function av(a){var o=a[Sc];return o||(o=a[Sc]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function ho(a){a[e0]=!0}function rr(a,o){ov(a,o),ov(a+"Capture",o)}function ov(a,o){qr[a]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",a),qr[a]=o;var p=a.toLowerCase();rf[p]=a,a==="onDoubleClick"&&(rf.ondblclick=a);for(a=0;a<o.length;a++)uc.add(o[a])}function pv(a,o){$J[o.type]||o.onChange||o.onInput||o.readOnly||o.disabled||o.value==null||(a==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),o.onChange||o.readOnly||o.disabled||o.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function F1(a){if(sp.call(Vc,a))return!0;if(sp.call(xc,a))return!1;if(JJ.test(a))return Vc[a]=!0;return xc[a]=!0,console.error("Invalid attribute name: `%s`",a),!1}function C7(a,o,p){if(F1(o)){if(!a.hasAttribute(o)){switch(typeof p){case"symbol":case"object":return p;case"function":return p;case"boolean":if(p===!1)return p}return p===void 0?void 0:null}if(a=a.getAttribute(o),a===""&&p===!0)return!0;return Ta(p,o),a===""+p?p:a}}function a2(a,o,p){if(F1(o))if(p===null)a.removeAttribute(o);else{switch(typeof p){case"undefined":case"function":case"symbol":a.removeAttribute(o);return;case"boolean":var m=o.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){a.removeAttribute(o);return}}Ta(p,o),a.setAttribute(o,""+p)}}function o2(a,o,p){if(p===null)a.removeAttribute(o);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}Ta(p,o),a.setAttribute(o,""+p)}}function gm(a,o,p,m){if(m===null)a.removeAttribute(p);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(p);return}Ta(m,p),a.setAttributeNS(o,p,""+m)}}function Op(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return O1(a),a;default:return""}}function P7(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function cz(a,o,p){var m=Object.getOwnPropertyDescriptor(a.constructor.prototype,o);if(!a.hasOwnProperty(o)&&typeof m<"u"&&typeof m.get==="function"&&typeof m.set==="function"){var{get:t,set:r}=m;return Object.defineProperty(a,o,{configurable:!0,get:function(){return t.call(this)},set:function(v){O1(v),p=""+v,r.call(this,v)}}),Object.defineProperty(a,o,{enumerable:m.enumerable}),{getValue:function(){return p},setValue:function(v){O1(v),p=""+v},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function C1(a){if(!a._valueTracker){var o=P7(a)?"checked":"value";a._valueTracker=cz(a,o,""+a[o])}}function I7(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var p=o.getValue(),m="";return a&&(m=P7(a)?a.checked?"true":"false":a.value),a=m,a!==p?(o.setValue(a),!0):!1}function p2(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch(o){return a.body}}function hp(a){return a.replace(YJ,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function A7(a,o){o.checked===void 0||o.defaultChecked===void 0||jc||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",vm()||"A component",o.type),jc=!0),o.value===void 0||o.defaultValue===void 0||Dc||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",vm()||"A component",o.type),Dc=!0)}function P1(a,o,p,m,t,r,v,b){if(a.name="",v!=null&&typeof v!=="function"&&typeof v!=="symbol"&&typeof v!=="boolean"?(Ta(v,"type"),a.type=v):a.removeAttribute("type"),o!=null)if(v==="number"){if(o===0&&a.value===""||a.value!=o)a.value=""+Op(o)}else a.value!==""+Op(o)&&(a.value=""+Op(o));else v!=="submit"&&v!=="reset"||a.removeAttribute("value");o!=null?I1(a,v,Op(o)):p!=null?I1(a,v,Op(p)):m!=null&&a.removeAttribute("value"),t==null&&r!=null&&(a.defaultChecked=!!r),t!=null&&(a.checked=t&&typeof t!=="function"&&typeof t!=="symbol"),b!=null&&typeof b!=="function"&&typeof b!=="symbol"&&typeof b!=="boolean"?(Ta(b,"name"),a.name=""+Op(b)):a.removeAttribute("name")}function T7(a,o,p,m,t,r,v,b){if(r!=null&&typeof r!=="function"&&typeof r!=="symbol"&&typeof r!=="boolean"&&(Ta(r,"type"),a.type=r),o!=null||p!=null){if(!(r!=="submit"&&r!=="reset"||o!==void 0&&o!==null)){C1(a);return}p=p!=null?""+Op(p):"",o=o!=null?""+Op(o):p,b||o===a.value||(a.value=o),a.defaultValue=o}m=m!=null?m:t,m=typeof m!=="function"&&typeof m!=="symbol"&&!!m,a.checked=b?a.checked:!!m,a.defaultChecked=!!m,v!=null&&typeof v!=="function"&&typeof v!=="symbol"&&typeof v!=="boolean"&&(Ta(v,"name"),a.name=v),C1(a)}function I1(a,o,p){o==="number"&&p2(a.ownerDocument)===a||a.defaultValue===""+p||(a.defaultValue=""+p)}function n7(a,o){o.value==null&&(typeof o.children==="object"&&o.children!==null?t0.Children.forEach(o.children,function(p){p==null||typeof p==="string"||typeof p==="number"||typeof p==="bigint"||sc||(sc=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):o.dangerouslySetInnerHTML==null||ec||(ec=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),o.selected==null||Ec||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ec=!0)}function S7(){var a=vm();return a?`
|
|
18
|
-
|
|
19
|
-
Check the render method of \``+a+"`.":""}function mv(a,o,p,m){if(a=a.options,o){o={};for(var t=0;t<p.length;t++)o["$"+p[t]]=!0;for(p=0;p<a.length;p++)t=o.hasOwnProperty("$"+a[p].value),a[p].selected!==t&&(a[p].selected=t),t&&m&&(a[p].defaultSelected=!0)}else{p=""+Op(p),o=null;for(t=0;t<a.length;t++){if(a[t].value===p){a[t].selected=!0,m&&(a[t].defaultSelected=!0);return}o!==null||a[t].disabled||(o=a[t])}o!==null&&(o.selected=!0)}}function u7(a,o){for(a=0;a<o8.length;a++){var p=o8[a];if(o[p]!=null){var m=yo(o[p]);o.multiple&&!m?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",p,S7()):!o.multiple&&m&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",p,S7())}}o.value===void 0||o.defaultValue===void 0||a8||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),a8=!0)}function x7(a,o){o.value===void 0||o.defaultValue===void 0||p8||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",vm()||"A component"),p8=!0),o.children!=null&&o.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function V7(a,o,p){if(o!=null&&(o=""+Op(o),o!==a.value&&(a.value=o),p==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=p!=null?""+Op(p):""}function D7(a,o,p,m){if(o==null){if(m!=null){if(p!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(yo(m)){if(1<m.length)throw Error("<textarea> can only have at most one child.");m=m[0]}p=m}p==null&&(p=""),o=p}p=Op(o),a.defaultValue=p,m=a.textContent,m===p&&m!==""&&m!==null&&(a.value=m),C1(a)}function j7(a,o){return a.serverProps===void 0&&a.serverTail.length===0&&a.children.length===1&&3<a.distanceFromLeaf&&a.distanceFromLeaf>15-o?j7(a.children[0],o):a}function Jp(a){return" "+" ".repeat(a)}function tv(a){return"+ "+" ".repeat(a)}function vr(a){return"- "+" ".repeat(a)}function E7(a){switch(a.tag){case 26:case 27:case 5:return a.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return a=a.type,a.displayName||a.name||null;case 11:return a=a.type.render,a.displayName||a.name||null;case 1:return a=a.type,a.displayName||a.name||null;default:return null}}function J0(a,o){return m8.test(a)?(a=JSON.stringify(a),a.length>o-2?8>o?'{"..."}':"{"+a.slice(0,o-7)+'..."}':"{"+a+"}"):a.length>o?5>o?'{"..."}':a.slice(0,o-3)+"...":a}function m2(a,o,p){var m=120-2*p;if(o===null)return tv(p)+J0(a,m)+`
|
|
20
|
-
`;if(typeof o==="string"){for(var t=0;t<o.length&&t<a.length&&o.charCodeAt(t)===a.charCodeAt(t);t++);return t>m-8&&10<t&&(a="..."+a.slice(t-8),o="..."+o.slice(t-8)),tv(p)+J0(a,m)+`
|
|
21
|
-
`+vr(p)+J0(o,m)+`
|
|
22
|
-
`}return Jp(p)+J0(a,m)+`
|
|
23
|
-
`}function A1(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(o,p){return p})}function Y0(a,o){switch(typeof a){case"string":return a=JSON.stringify(a),a.length>o?5>o?'"..."':a.slice(0,o-4)+'..."':a;case"object":if(a===null)return"null";if(yo(a))return"[...]";if(a.$$typeof===Bm)return(o=V(a.type))?"<"+o+">":"<...>";var p=A1(a);if(p==="Object"){p="",o-=2;for(var m in a)if(a.hasOwnProperty(m)){var t=JSON.stringify(m);if(t!=='"'+m+'"'&&(m=t),o-=m.length-2,t=Y0(a[m],15>o?o:15),o-=t.length,0>o){p+=p===""?"...":", ...";break}p+=(p===""?"":",")+m+":"+t}return"{"+p+"}"}return p;case"function":return(o=a.displayName||a.name)?"function "+o:"function";default:return String(a)}}function rv(a,o){return typeof a!=="string"||m8.test(a)?"{"+Y0(a,o-2)+"}":a.length>o-2?5>o?'"..."':'"'+a.slice(0,o-5)+'..."':'"'+a+'"'}function T1(a,o,p){var m=120-p.length-a.length,t=[],r;for(r in o)if(o.hasOwnProperty(r)&&r!=="children"){var v=rv(o[r],120-p.length-r.length-1);m-=r.length+v.length+2,t.push(r+"="+v)}return t.length===0?p+"<"+a+`>
|
|
24
|
-
`:0<m?p+"<"+a+" "+t.join(" ")+`>
|
|
25
|
-
`:p+"<"+a+`
|
|
26
|
-
`+p+" "+t.join(`
|
|
27
|
-
`+p+" ")+`
|
|
28
|
-
`+p+`>
|
|
29
|
-
`}function lz(a,o,p){var m="",t=da({},o),r;for(r in a)if(a.hasOwnProperty(r)){delete t[r];var v=120-2*p-r.length-2,b=Y0(a[r],v);o.hasOwnProperty(r)?(v=Y0(o[r],v),m+=tv(p)+r+": "+b+`
|
|
30
|
-
`,m+=vr(p)+r+": "+v+`
|
|
31
|
-
`):m+=tv(p)+r+": "+b+`
|
|
32
|
-
`}for(var f in t)t.hasOwnProperty(f)&&(a=Y0(t[f],120-2*p-f.length-2),m+=vr(p)+f+": "+a+`
|
|
33
|
-
`);return m}function zz(a,o,p,m){var t="",r=new Map;for(i in p)p.hasOwnProperty(i)&&r.set(i.toLowerCase(),i);if(r.size===1&&r.has("children"))t+=T1(a,o,Jp(m));else{for(var v in o)if(o.hasOwnProperty(v)&&v!=="children"){var b=120-2*(m+1)-v.length-1,f=r.get(v.toLowerCase());if(f!==void 0){r.delete(v.toLowerCase());var i=o[v];f=p[f];var Y=rv(i,b);b=rv(f,b),typeof i==="object"&&i!==null&&typeof f==="object"&&f!==null&&A1(i)==="Object"&&A1(f)==="Object"&&(2<Object.keys(i).length||2<Object.keys(f).length||-1<Y.indexOf("...")||-1<b.indexOf("..."))?t+=Jp(m+1)+v+`={{
|
|
34
|
-
`+lz(i,f,m+2)+Jp(m+1)+`}}
|
|
35
|
-
`:(t+=tv(m+1)+v+"="+Y+`
|
|
36
|
-
`,t+=vr(m+1)+v+"="+b+`
|
|
37
|
-
`)}else t+=Jp(m+1)+v+"="+rv(o[v],b)+`
|
|
38
|
-
`}r.forEach(function(X){if(X!=="children"){var z=120-2*(m+1)-X.length-1;t+=vr(m+1)+X+"="+rv(p[X],z)+`
|
|
39
|
-
`}}),t=t===""?Jp(m)+"<"+a+`>
|
|
40
|
-
`:Jp(m)+"<"+a+`
|
|
41
|
-
`+t+Jp(m)+`>
|
|
42
|
-
`}if(a=p.children,o=o.children,typeof a==="string"||typeof a==="number"||typeof a==="bigint"){if(r="",typeof o==="string"||typeof o==="number"||typeof o==="bigint")r=""+o;t+=m2(r,""+a,m+1)}else if(typeof o==="string"||typeof o==="number"||typeof o==="bigint")t=a==null?t+m2(""+o,null,m+1):t+m2(""+o,void 0,m+1);return t}function s7(a,o){var p=E7(a);if(p===null){p="";for(a=a.child;a;)p+=s7(a,o),a=a.sibling;return p}return Jp(o)+"<"+p+`>
|
|
43
|
-
`}function n1(a,o){var p=j7(a,o);if(p!==a&&(a.children.length!==1||a.children[0]!==p))return Jp(o)+`...
|
|
44
|
-
`+n1(p,o+1);p="";var m=a.fiber._debugInfo;if(m)for(var t=0;t<m.length;t++){var r=m[t].name;typeof r==="string"&&(p+=Jp(o)+"<"+r+`>
|
|
45
|
-
`,o++)}if(m="",t=a.fiber.pendingProps,a.fiber.tag===6)m=m2(t,a.serverProps,o),o++;else if(r=E7(a.fiber),r!==null)if(a.serverProps===void 0){m=o;var v=120-2*m-r.length-2,b="";for(i in t)if(t.hasOwnProperty(i)&&i!=="children"){var f=rv(t[i],15);if(v-=i.length+f.length+2,0>v){b+=" ...";break}b+=" "+i+"="+f}m=Jp(m)+"<"+r+b+`>
|
|
46
|
-
`,o++}else a.serverProps===null?(m=T1(r,t,tv(o)),o++):typeof a.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(m=zz(r,t,a.serverProps,o),o++);var i="";t=a.fiber.child;for(r=0;t&&r<a.children.length;)v=a.children[r],v.fiber===t?(i+=n1(v,o),r++):i+=s7(t,o),t=t.sibling;t&&0<a.children.length&&(i+=Jp(o)+`...
|
|
47
|
-
`),t=a.serverTail,a.serverProps===null&&o--;for(a=0;a<t.length;a++)r=t[a],i=typeof r==="string"?i+(vr(o)+J0(r,120-2*o)+`
|
|
48
|
-
`):i+T1(r.type,r.props,vr(o));return p+m+i}function S1(a){try{return`
|
|
49
|
-
|
|
50
|
-
`+n1(a,0)}catch(o){return""}}function e7(a,o,p){for(var m=o,t=null,r=0;m;)m===a&&(r=0),t={fiber:m,children:t!==null?[t]:[],serverProps:m===o?p:m===a?null:void 0,serverTail:[],distanceFromLeaf:r},r++,m=m.return;return t!==null?S1(t).replaceAll(/^[+-]/gm,">"):""}function a6(a,o){var p=da({},a||r8),m={tag:o};if(t8.indexOf(o)!==-1&&(p.aTagInScope=null,p.buttonTagInScope=null,p.nobrTagInScope=null),ZJ.indexOf(o)!==-1&&(p.pTagInButtonScope=null),XJ.indexOf(o)!==-1&&o!=="address"&&o!=="div"&&o!=="p"&&(p.listItemTagAutoclosing=null,p.dlItemTagAutoclosing=null),p.current=m,o==="form"&&(p.formTag=m),o==="a"&&(p.aTagInScope=m),o==="button"&&(p.buttonTagInScope=m),o==="nobr"&&(p.nobrTagInScope=m),o==="p"&&(p.pTagInButtonScope=m),o==="li"&&(p.listItemTagAutoclosing=m),o==="dd"||o==="dt")p.dlItemTagAutoclosing=m;return o==="#document"||o==="html"?p.containerTagInScope=null:p.containerTagInScope||(p.containerTagInScope=m),a!==null||o!=="#document"&&o!=="html"&&o!=="body"?p.implicitRootScope===!0&&(p.implicitRootScope=!1):p.implicitRootScope=!0,p}function o6(a,o,p){switch(o){case"select":return a==="hr"||a==="option"||a==="optgroup"||a==="script"||a==="template"||a==="#text";case"optgroup":return a==="option"||a==="#text";case"option":return a==="#text";case"tr":return a==="th"||a==="td"||a==="style"||a==="script"||a==="template";case"tbody":case"thead":case"tfoot":return a==="tr"||a==="style"||a==="script"||a==="template";case"colgroup":return a==="col"||a==="template";case"table":return a==="caption"||a==="colgroup"||a==="tbody"||a==="tfoot"||a==="thead"||a==="style"||a==="script"||a==="template";case"head":return a==="base"||a==="basefont"||a==="bgsound"||a==="link"||a==="meta"||a==="title"||a==="noscript"||a==="noframes"||a==="style"||a==="script"||a==="template";case"html":if(p)break;return a==="head"||a==="body"||a==="frameset";case"frameset":return a==="frame";case"#document":if(!p)return a==="html"}switch(a){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o!=="h1"&&o!=="h2"&&o!=="h3"&&o!=="h4"&&o!=="h5"&&o!=="h6";case"rp":case"rt":return GJ.indexOf(o)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return o==null;case"head":return p||o===null;case"html":return p&&o==="#document"||o===null;case"body":return p&&(o==="#document"||o==="html")||o===null}return!0}function $z(a,o){switch(a){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o.pTagInButtonScope;case"form":return o.formTag||o.pTagInButtonScope;case"li":return o.listItemTagAutoclosing;case"dd":case"dt":return o.dlItemTagAutoclosing;case"button":return o.buttonTagInScope;case"a":return o.aTagInScope;case"nobr":return o.nobrTagInScope}return null}function p6(a,o){for(;a;){switch(a.tag){case 5:case 26:case 27:if(a.type===o)return a}a=a.return}return null}function u1(a,o){o=o||r8;var p=o.current;if(o=(p=o6(a,p&&p.tag,o.implicitRootScope)?null:p)?null:$z(a,o),o=p||o,!o)return!0;var m=o.tag;if(o=String(!!p)+"|"+a+"|"+m,Jb[o])return!1;Jb[o]=!0;var t=(o=Kp)?p6(o.return,m):null,r=o!==null&&t!==null?e7(t,o,null):"",v="<"+a+">";return p?(p="",m==="table"&&a==="tr"&&(p+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
51
|
-
This will cause a hydration error.%s`,v,m,p,r)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
52
|
-
This will cause a hydration error.%s`,v,m,r),o&&(a=o.return,t===null||a===null||t===a&&a._debugOwner===o._debugOwner||F(t,function(){console.error(`<%s> cannot contain a nested %s.
|
|
53
|
-
See this log for the ancestor stack trace.`,m,v)})),!1}function t2(a,o,p){if(p||o6("#text",o,!1))return!0;if(p="#text|"+o,Jb[p])return!1;Jb[p]=!0;var m=(p=Kp)?p6(p,o):null;return p=p!==null&&m!==null?e7(m,p,p.tag!==6?{children:null}:null):"",/\S/.test(a)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
54
|
-
This will cause a hydration error.%s`,o,p):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
55
|
-
This will cause a hydration error.%s`,o,p),!1}function X0(a,o){if(o){var p=a.firstChild;if(p&&p===a.lastChild&&p.nodeType===3){p.nodeValue=o;return}}a.textContent=o}function Jz(a){return a.replace(QJ,function(o,p){return p.toUpperCase()})}function m6(a,o,p){var m=o.indexOf("--")===0;m||(-1<o.indexOf("-")?Hv.hasOwnProperty(o)&&Hv[o]||(Hv[o]=!0,console.error("Unsupported style property %s. Did you mean %s?",o,Jz(o.replace(qJ,"ms-")))):_J.test(o)?Hv.hasOwnProperty(o)&&Hv[o]||(Hv[o]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",o,o.charAt(0).toUpperCase()+o.slice(1))):!f8.test(p)||bf.hasOwnProperty(p)&&bf[p]||(bf[p]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,o,p.replace(f8,""))),typeof p==="number"&&(isNaN(p)?i8||(i8=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",o)):isFinite(p)||w8||(w8=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",o)))),p==null||typeof p==="boolean"||p===""?m?a.setProperty(o,""):o==="float"?a.cssFloat="":a[o]="":m?a.setProperty(o,p):typeof p!=="number"||p===0||c8.has(o)?o==="float"?a.cssFloat=p:(L1(p,o),a[o]=(""+p).trim()):a[o]=p+"px"}function t6(a,o,p){if(o!=null&&typeof o!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(o&&Object.freeze(o),a=a.style,p!=null){if(o){var m={};if(p){for(var t in p)if(p.hasOwnProperty(t)&&!o.hasOwnProperty(t))for(var r=vf[t]||[t],v=0;v<r.length;v++)m[r[v]]=t}for(var b in o)if(o.hasOwnProperty(b)&&(!p||p[b]!==o[b]))for(t=vf[b]||[b],r=0;r<t.length;r++)m[t[r]]=b;b={};for(var f in o)for(t=vf[f]||[f],r=0;r<t.length;r++)b[t[r]]=f;f={};for(var i in m)if(t=m[i],(r=b[i])&&t!==r&&(v=t+","+r,!f[v])){f[v]=!0,v=console;var Y=o[t];v.error.call(v,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Y==null||typeof Y==="boolean"||Y===""?"Removing":"Updating",t,r)}}for(var X in p)!p.hasOwnProperty(X)||o!=null&&o.hasOwnProperty(X)||(X.indexOf("--")===0?a.setProperty(X,""):X==="float"?a.cssFloat="":a[X]="");for(var z in o)i=o[z],o.hasOwnProperty(z)&&p[z]!==i&&m6(a,z,i)}else for(m in o)o.hasOwnProperty(m)&&m6(a,m,o[m])}function Z0(a){if(a.indexOf("-")===-1)return!1;switch(a){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}}function r6(a){return BJ.get(a)||a}function Yz(a,o){if(sp.call(Uv,o)&&Uv[o])return!0;if(HJ.test(o)){if(a="aria-"+o.slice(4).toLowerCase(),a=l8.hasOwnProperty(a)?a:null,a==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",o),Uv[o]=!0;if(o!==a)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",o,a),Uv[o]=!0}if(KJ.test(o)){if(a=o.toLowerCase(),a=l8.hasOwnProperty(a)?a:null,a==null)return Uv[o]=!0,!1;o!==a&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",o,a),Uv[o]=!0)}return!0}function Xz(a,o){var p=[],m;for(m in o)Yz(a,m)||p.push(m);o=p.map(function(t){return"`"+t+"`"}).join(", "),p.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",o,a):1<p.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",o,a)}function Zz(a,o,p,m){if(sp.call(ap,o)&&ap[o])return!0;var t=o.toLowerCase();if(t==="onfocusin"||t==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ap[o]=!0;if(typeof p==="function"&&(a==="form"&&o==="action"||a==="input"&&o==="formAction"||a==="button"&&o==="formAction"))return!0;if(m!=null){if(a=m.possibleRegistrationNames,m.registrationNameDependencies.hasOwnProperty(o))return!0;if(m=a.hasOwnProperty(t)?a[t]:null,m!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",o,m),ap[o]=!0;if($8.test(o))return console.error("Unknown event handler property `%s`. It will be ignored.",o),ap[o]=!0}else if($8.test(o))return WJ.test(o)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",o),ap[o]=!0;if(UJ.test(o)||dJ.test(o))return!0;if(t==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ap[o]=!0;if(t==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ap[o]=!0;if(t==="is"&&p!==null&&p!==void 0&&typeof p!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof p),ap[o]=!0;if(typeof p==="number"&&isNaN(p))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",o),ap[o]=!0;if(Xb.hasOwnProperty(t)){if(t=Xb[t],t!==o)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",o,t),ap[o]=!0}else if(o!==t)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",o,t),ap[o]=!0;switch(o){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof p){case"boolean":switch(o){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(t=o.toLowerCase().slice(0,5),t==="data-"||t==="aria-")return!0;return p?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',p,o,o,p,o):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',p,o,o,p,o,o,o),ap[o]=!0}case"function":case"symbol":return ap[o]=!0,!1;case"string":if(p==="false"||p==="true"){switch(o){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",p,o,p==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',o,p),ap[o]=!0}}return!0}function Gz(a,o,p){var m=[],t;for(t in o)Zz(a,t,o[t],p)||m.push(t);o=m.map(function(r){return"`"+r+"`"}).join(", "),m.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",o,a):1<m.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",o,a)}function G0(a){return RJ.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Fm(){}function x1(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}function v6(a){var o=zt(a);if(o&&(a=o.stateNode)){var p=a[eo]||null;a:switch(a=o.stateNode,o.type){case"input":if(P1(a,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),o=p.name,p.type==="radio"&&o!=null){for(p=a;p.parentNode;)p=p.parentNode;Ta(o,"name"),p=p.querySelectorAll('input[name="'+hp(""+o)+'"][type="radio"]');for(o=0;o<p.length;o++){var m=p[o];if(m!==a&&m.form===a.form){var t=m[eo]||null;if(!t)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");P1(m,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name)}}for(o=0;o<p.length;o++)m=p[o],m.form===a.form&&I7(m)}break a;case"textarea":V7(a,p.value,p.defaultValue);break a;case"select":o=p.value,o!=null&&mv(a,!!p.multiple,o,!1)}}}function b6(a,o,p){if(ff)return a(o,p);ff=!0;try{var m=a(o);return m}finally{if(ff=!1,dv!==null||Rv!==null){if(Jv(),dv&&(o=dv,a=Rv,Rv=dv=null,v6(o),a))for(o=0;o<a.length;o++)v6(a[o])}}}function _0(a,o){var p=a.stateNode;if(p===null)return null;var m=p[eo]||null;if(m===null)return null;p=m[o];a:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(a=a.type,m=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!m;break a;default:a=!1}if(a)return null;if(p&&typeof p!=="function")throw Error("Expected `"+o+"` listener to be a function, instead got a value of `"+typeof p+"` type.");return p}function f6(){if(Zb)return Zb;var a,o=cf,p=o.length,m,t="value"in yt?yt.value:yt.textContent,r=t.length;for(a=0;a<p&&o[a]===t[a];a++);var v=p-a;for(m=1;m<=v&&o[p-m]===t[r-m];m++);return Zb=t.slice(a,1<m?1-m:void 0)}function r2(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function v2(){return!0}function i6(){return!1}function bp(a){function o(p,m,t,r,v){this._reactName=p,this._targetInst=t,this.type=m,this.nativeEvent=r,this.target=v,this.currentTarget=null;for(var b in a)a.hasOwnProperty(b)&&(p=a[b],this[b]=p?p(r):r[b]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?v2:i6,this.isPropagationStopped=i6,this}return da(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!=="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=v2)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!=="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=v2)},persist:function(){},isPersistent:v2}),o}function _z(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=AJ[a])?!!o[a]:!1}function V1(){return _z}function w6(a,o){switch(a){case"keyup":return aY.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==Z8;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c6(a){return a=a.detail,typeof a==="object"&&"data"in a?a.data:null}function qz(a,o){switch(a){case"compositionend":return c6(o);case"keypress":if(o.which!==_8)return null;return Q8=!0,q8;case"textInput":return a=o.data,a===q8&&Q8?null:a;default:return null}}function Qz(a,o){if(yv)return a==="compositionend"||!Jf&&w6(a,o)?(a=f6(),Zb=cf=yt=null,yv=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return G8&&o.locale!=="ko"?null:o.data;default:return null}}function l6(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!pY[a.type]:o==="textarea"?!0:!1}function Bz(a){if(!Rm)return!1;a="on"+a;var o=a in document;return o||(o=document.createElement("div"),o.setAttribute(a,"return;"),o=typeof o[a]==="function"),o}function z6(a,o,p,m){dv?Rv?Rv.push(m):Rv=[m]:dv=m,o=s2(o,"onChange"),0<o.length&&(p=new Gb("onChange","change",null,p,m),a.push({event:p,listeners:o}))}function Kz(a){Dw(a,0)}function b2(a){var o=$0(a);if(I7(o))return a}function $6(a,o){if(a==="change")return o}function J6(){r5&&(r5.detachEvent("onpropertychange",Y6),v5=r5=null)}function Y6(a){if(a.propertyName==="value"&&b2(v5)){var o=[];z6(o,v5,a,x1(a)),b6(Kz,o)}}function Hz(a,o,p){a==="focusin"?(J6(),r5=o,v5=p,r5.attachEvent("onpropertychange",Y6)):a==="focusout"&&J6()}function Wz(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return b2(v5)}function Uz(a,o){if(a==="click")return b2(o)}function dz(a,o){if(a==="input"||a==="change")return b2(o)}function Rz(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}function q0(a,o){if(op(a,o))return!0;if(typeof a!=="object"||a===null||typeof o!=="object"||o===null)return!1;var p=Object.keys(a),m=Object.keys(o);if(p.length!==m.length)return!1;for(m=0;m<p.length;m++){var t=p[m];if(!sp.call(o,t)||!op(a[t],o[t]))return!1}return!0}function X6(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Z6(a,o){var p=X6(a);a=0;for(var m;p;){if(p.nodeType===3){if(m=a+p.textContent.length,a<=o&&m>=o)return{node:p,offset:o-a};a=m}a:{for(;p;){if(p.nextSibling){p=p.nextSibling;break a}p=p.parentNode}p=void 0}p=X6(p)}}function G6(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?G6(a,o.parentNode):("contains"in a)?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function _6(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=p2(a.document);o instanceof a.HTMLIFrameElement;){try{var p=typeof o.contentWindow.location.href==="string"}catch(m){p=!1}if(p)a=o.contentWindow;else break;o=p2(a.document)}return o}function D1(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function q6(a,o,p){var m=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Xf||Lv==null||Lv!==p2(m)||(m=Lv,("selectionStart"in m)&&D1(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),b5&&q0(b5,m)||(b5=m,m=s2(Yf,"onSelect"),0<m.length&&(o=new Gb("onSelect","select",null,o,p),a.push({event:o,listeners:m}),o.target=Lv)))}function br(a,o){var p={};return p[a.toLowerCase()]=o.toLowerCase(),p["Webkit"+a]="webkit"+o,p["Moz"+a]="moz"+o,p}function fr(a){if(Zf[a])return Zf[a];if(!Ov[a])return a;var o=Ov[a],p;for(p in o)if(o.hasOwnProperty(p)&&p in K8)return Zf[a]=o[p];return a}function Dp(a,o){R8.set(a,o),rr(o,[a])}function yz(a){for(var o=qb,p=0;p<a.length;p++){var m=a[p];if(typeof m==="object"&&m!==null)if(yo(m)&&m.length===2&&typeof m[0]==="string"){if(o!==qb&&o!==Bf)return qf;o=Bf}else return qf;else{if(typeof m==="function"||typeof m==="string"&&50<m.length||o!==qb&&o!==Qf)return qf;o=Qf}}return o}function j1(a,o,p,m){for(var t in a)sp.call(a,t)&&t[0]!=="_"&&bm(t,a[t],o,p,m)}function bm(a,o,p,m,t){switch(typeof o){case"object":if(o===null){o="null";break}else{if(o.$$typeof===Bm){var r=V(o.type)||"…",v=o.key;o=o.props;var b=Object.keys(o),f=b.length;if(v==null&&f===0){o="<"+r+" />";break}if(3>m||f===1&&b[0]==="children"&&v==null){o="<"+r+" … />";break}p.push([t+" ".repeat(m)+a,"<"+r]),v!==null&&bm("key",v,p,m+1,t),a=!1;for(var i in o)i==="children"?o.children!=null&&(!yo(o.children)||0<o.children.length)&&(a=!0):sp.call(o,i)&&i[0]!=="_"&&bm(i,o[i],p,m+1,t);p.push(["",a?">…</"+r+">":"/>"]);return}if(r=Object.prototype.toString.call(o),r=r.slice(8,r.length-1),r==="Array"){if(i=yz(o),i===Qf||i===qb){o=JSON.stringify(o);break}else if(i===Bf){p.push([t+" ".repeat(m)+a,""]);for(a=0;a<o.length;a++)r=o[a],bm(r[0],r[1],p,m+1,t);return}}if(r==="Promise"){if(o.status==="fulfilled"){if(r=p.length,bm(a,o.value,p,m,t),p.length>r){p=p[r],p[1]="Promise<"+(p[1]||"Object")+">";return}}else if(o.status==="rejected"&&(r=p.length,bm(a,o.reason,p,m,t),p.length>r)){p=p[r],p[1]="Rejected Promise<"+p[1]+">";return}p.push([" ".repeat(m)+a,"Promise"]);return}r==="Object"&&(i=Object.getPrototypeOf(o))&&typeof i.constructor==="function"&&(r=i.constructor.name),p.push([t+" ".repeat(m)+a,r==="Object"?3>m?"":"…":r]),3>m&&j1(o,p,m+1,t);return}case"function":o=o.name===""?"() => {}":o.name+"() {}";break;case"string":o=o===iY?"…":JSON.stringify(o);break;case"undefined":o="undefined";break;case"boolean":o=o?"true":"false";break;default:o=String(o)}p.push([t+" ".repeat(m)+a,o])}function Q6(a,o,p,m){var t=!0;for(v in a)v in o||(p.push([Qb+" ".repeat(m)+v,"…"]),t=!1);for(var r in o)if(r in a){var v=a[r],b=o[r];if(v!==b){if(m===0&&r==="children")t=" ".repeat(m)+r,p.push([Qb+t,"…"],[Bb+t,"…"]);else{if(!(3<=m)){if(typeof v==="object"&&typeof b==="object"&&v!==null&&b!==null&&v.$$typeof===b.$$typeof)if(b.$$typeof===Bm){if(v.type===b.type&&v.key===b.key){v=V(b.type)||"…",t=" ".repeat(m)+r,v="<"+v+" … />",p.push([Qb+t,v],[Bb+t,v]),t=!1;continue}}else{var f=Object.prototype.toString.call(v),i=Object.prototype.toString.call(b);if(f===i&&(i==="[object Object]"||i==="[object Array]")){f=[O8+" ".repeat(m)+r,i==="[object Array]"?"Array":""],p.push(f),i=p.length,Q6(v,b,p,m+1)?i===p.length&&(f[1]="Referentially unequal but deeply equal objects. Consider memoization."):t=!1;continue}}else if(typeof v==="function"&&typeof b==="function"&&v.name===b.name&&v.length===b.length&&(f=Function.prototype.toString.call(v),i=Function.prototype.toString.call(b),f===i)){v=b.name===""?"() => {}":b.name+"() {}",p.push([O8+" ".repeat(m)+r,v+" Referentially unequal function closure. Consider memoization."]);continue}}bm(r,v,p,m,Qb),bm(r,b,p,m,Bb)}t=!1}}else p.push([Bb+" ".repeat(m)+r,"…"]),t=!1;return t}function Yp(a){ya=a&63?"Blocking":a&64?"Gesture":a&4194176?"Transition":a&62914560?"Suspense":a&2080374784?"Idle":"Other"}function fm(a,o,p,m){mo&&(Ot.start=o,Ot.end=p,xm.color="warning",xm.tooltipText=m,xm.properties=null,(a=a._debugTask)?a.run(performance.measure.bind(performance,m,Ot)):performance.measure(m,Ot))}function f2(a,o,p){fm(a,o,p,"Reconnect")}function i2(a,o,p,m,t){var r=L(a);if(r!==null&&mo){var{alternate:v,actualDuration:b}=a;if(v===null||v.child!==a.child)for(var f=a.child;f!==null;f=f.sibling)b-=f.actualDuration;m=0.5>b?m?"tertiary-light":"primary-light":10>b?m?"tertiary":"primary":100>b?m?"tertiary-dark":"primary-dark":"error";var i=a.memoizedProps;b=a._debugTask,i!==null&&v!==null&&v.memoizedProps!==i?(f=[wY],i=Q6(v.memoizedProps,i,f,0),1<f.length&&(i&&!Lt&&(v.lanes&t)===0&&100<a.actualDuration?(Lt=!0,f[0]=cY,xm.color="warning",xm.tooltipText=h8):(xm.color=m,xm.tooltipText=r),xm.properties=f,Ot.start=o,Ot.end=p,b!=null?b.run(performance.measure.bind(performance,""+r,Ot)):performance.measure(""+r,Ot))):b!=null?b.run(console.timeStamp.bind(console,r,o,p,Np,void 0,m)):console.timeStamp(r,o,p,Np,void 0,m)}}function E1(a,o,p,m){if(mo){var t=L(a);if(t!==null){for(var r=null,v=[],b=0;b<m.length;b++){var f=m[b];r==null&&f.source!==null&&(r=f.source._debugTask),f=f.value,v.push(["Error",typeof f==="object"&&f!==null&&typeof f.message==="string"?String(f.message):String(f)])}a.key!==null&&bm("key",a.key,v,0,""),a.memoizedProps!==null&&j1(a.memoizedProps,v,0,""),r==null&&(r=a._debugTask),a={start:o,end:p,detail:{devtools:{color:"error",track:Np,tooltipText:a.tag===13?"Hydration failed":"Error boundary caught an error",properties:v}}},r?r.run(performance.measure.bind(performance,""+t,a)):performance.measure(""+t,a)}}}function im(a,o,p,m,t){if(t!==null){if(mo){var r=L(a);if(r!==null){m=[];for(var v=0;v<t.length;v++){var b=t[v].value;m.push(["Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}a.key!==null&&bm("key",a.key,m,0,""),a.memoizedProps!==null&&j1(a.memoizedProps,m,0,""),o={start:o,end:p,detail:{devtools:{color:"error",track:Np,tooltipText:"A lifecycle or effect errored",properties:m}}},(a=a._debugTask)?a.run(performance.measure.bind(performance,""+r,o)):performance.measure(""+r,o)}}}else r=L(a),r!==null&&mo&&(t=1>m?"secondary-light":100>m?"secondary":500>m?"secondary-dark":"error",(a=a._debugTask)?a.run(console.timeStamp.bind(console,r,o,p,Np,void 0,t)):console.timeStamp(r,o,p,Np,void 0,t))}function Lz(a,o,p,m){if(mo&&!(o<=a)){var t=(p&738197653)===p?"tertiary-dark":"primary-dark";p=(p&536870912)===p?"Prepared":(p&201326741)===p?"Hydrated":"Render",m?m.run(console.timeStamp.bind(console,p,a,o,ya,Ra,t)):console.timeStamp(p,a,o,ya,Ra,t)}}function B6(a,o,p,m){!mo||o<=a||(p=(p&738197653)===p?"tertiary-dark":"primary-dark",m?m.run(console.timeStamp.bind(console,"Prewarm",a,o,ya,Ra,p)):console.timeStamp("Prewarm",a,o,ya,Ra,p))}function K6(a,o,p,m){!mo||o<=a||(p=(p&738197653)===p?"tertiary-dark":"primary-dark",m?m.run(console.timeStamp.bind(console,"Suspended",a,o,ya,Ra,p)):console.timeStamp("Suspended",a,o,ya,Ra,p))}function Oz(a,o,p,m,t,r){if(mo&&!(o<=a)){p=[];for(var v=0;v<m.length;v++){var b=m[v].value;p.push(["Recoverable Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}a={start:a,end:o,detail:{devtools:{color:"primary-dark",track:ya,trackGroup:Ra,tooltipText:t?"Hydration Failed":"Recovered after Error",properties:p}}},r?r.run(performance.measure.bind(performance,"Recovered",a)):performance.measure("Recovered",a)}}function s1(a,o,p,m){!mo||o<=a||(m?m.run(console.timeStamp.bind(console,"Errored",a,o,ya,Ra,"error")):console.timeStamp("Errored",a,o,ya,Ra,"error"))}function hz(a,o,p,m){!mo||o<=a||(m?m.run(console.timeStamp.bind(console,p,a,o,ya,Ra,"secondary-light")):console.timeStamp(p,a,o,ya,Ra,"secondary-light"))}function H6(a,o,p,m,t){if(mo&&!(o<=a)){for(var r=[],v=0;v<p.length;v++){var b=p[v].value;r.push(["Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}a={start:a,end:o,detail:{devtools:{color:"error",track:ya,trackGroup:Ra,tooltipText:m?"Remaining Effects Errored":"Commit Errored",properties:r}}},t?t.run(performance.measure.bind(performance,"Errored",a)):performance.measure("Errored",a)}}function Q0(a,o,p){!mo||o<=a||(p?p.run(console.timeStamp.bind(console,"Animating",a,o,ya,Ra,"secondary-dark")):console.timeStamp("Animating",a,o,ya,Ra,"secondary-dark"))}function w2(){for(var a=hv,o=Kf=hv=0;o<a;){var p=Mp[o];Mp[o++]=null;var m=Mp[o];Mp[o++]=null;var t=Mp[o];Mp[o++]=null;var r=Mp[o];if(Mp[o++]=null,m!==null&&t!==null){var v=m.pending;v===null?t.next=t:(t.next=v.next,v.next=t),m.pending=t}r!==0&&W6(p,t,r)}}function c2(a,o,p,m){Mp[hv++]=a,Mp[hv++]=o,Mp[hv++]=p,Mp[hv++]=m,Kf|=m,a.lanes|=m,a=a.alternate,a!==null&&(a.lanes|=m)}function e1(a,o,p,m){return c2(a,o,p,m),l2(a)}function uo(a,o){return c2(a,null,null,o),l2(a)}function W6(a,o,p){a.lanes|=p;var m=a.alternate;m!==null&&(m.lanes|=p);for(var t=!1,r=a.return;r!==null;)r.childLanes|=p,m=r.alternate,m!==null&&(m.childLanes|=p),r.tag===22&&(a=r.stateNode,a===null||a._visibility&f5||(t=!0)),a=r,r=r.return;return a.tag===3?(r=a.stateNode,t&&o!==null&&(t=31-so(p),a=r.hiddenUpdates,m=a[t],m===null?a[t]=[o]:m.push(o),o.lane=p|536870912),r):null}function l2(a){if(N5>WY)throw gr=N5=0,M5=m7=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");gr>UY&&(gr=0,M5=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),a.alternate===null&&(a.flags&4098)!==0&&Aw(a);for(var o=a,p=o.return;p!==null;)o.alternate===null&&(o.flags&4098)!==0&&Aw(a),o=p,p=o.return;return o.tag===3?o.stateNode:null}function ir(a){if(gp===null)return a;var o=gp(a);return o===void 0?a:o.current}function a4(a){if(gp===null)return a;var o=gp(a);return o===void 0?a!==null&&a!==void 0&&typeof a.render==="function"&&(o=ir(a.render),a.render!==o)?(o={$$typeof:j0,render:o},a.displayName!==void 0&&(o.displayName=a.displayName),o):a:o.current}function U6(a,o){if(gp===null)return!1;var p=a.elementType;o=o.type;var m=!1,t=typeof o==="object"&&o!==null?o.$$typeof:null;switch(a.tag){case 1:typeof o==="function"&&(m=!0);break;case 0:typeof o==="function"?m=!0:t===Bp&&(m=!0);break;case 11:t===j0?m=!0:t===Bp&&(m=!0);break;case 14:case 15:t===ib?m=!0:t===Bp&&(m=!0);break;default:return!1}return m&&(a=gp(p),a!==void 0&&a===gp(o))?!0:!1}function d6(a){gp!==null&&typeof WeakSet==="function"&&(kv===null&&(kv=new WeakSet),kv.add(a))}function R6(a,o,p){do{var m=a,t=m.alternate,r=m.child,v=m.sibling,b=m.tag;m=m.type;var f=null;switch(b){case 0:case 15:case 1:f=m;break;case 11:f=m.render}if(gp===null)throw Error("Expected resolveFamily to be set during hot reload.");var i=!1;if(m=!1,f!==null&&(f=gp(f),f!==void 0&&(p.has(f)?m=!0:o.has(f)&&(b===1?m=!0:i=!0))),kv!==null&&(kv.has(a)||t!==null&&kv.has(t))&&(m=!0),m&&(a._debugNeedsRemount=!0),m||i)t=uo(a,2),t!==null&&Jo(t,a,2);if(r===null||m||R6(r,o,p),v===null)break;a=v}while(1)}function kz(a,o,p,m){this.tag=a,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,k8||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function o4(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Cm(a,o){var p=a.alternate;switch(p===null?(p=k(a.tag,o,a.key,a.mode),p.elementType=a.elementType,p.type=a.type,p.stateNode=a.stateNode,p._debugOwner=a._debugOwner,p._debugStack=a._debugStack,p._debugTask=a._debugTask,p._debugHookTypes=a._debugHookTypes,p.alternate=a,a.alternate=p):(p.pendingProps=o,p.type=a.type,p.flags=0,p.subtreeFlags=0,p.deletions=null,p.actualDuration=-0,p.actualStartTime=-1.1),p.flags=a.flags&65011712,p.childLanes=a.childLanes,p.lanes=a.lanes,p.child=a.child,p.memoizedProps=a.memoizedProps,p.memoizedState=a.memoizedState,p.updateQueue=a.updateQueue,o=a.dependencies,p.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext,_debugThenableState:o._debugThenableState},p.sibling=a.sibling,p.index=a.index,p.ref=a.ref,p.refCleanup=a.refCleanup,p.selfBaseDuration=a.selfBaseDuration,p.treeBaseDuration=a.treeBaseDuration,p._debugInfo=a._debugInfo,p._debugNeedsRemount=a._debugNeedsRemount,p.tag){case 0:case 15:p.type=ir(a.type);break;case 1:p.type=ir(a.type);break;case 11:p.type=a4(a.type)}return p}function y6(a,o){a.flags&=65011714;var p=a.alternate;return p===null?(a.childLanes=0,a.lanes=o,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null,a.selfBaseDuration=0,a.treeBaseDuration=0):(a.childLanes=p.childLanes,a.lanes=p.lanes,a.child=p.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=p.memoizedProps,a.memoizedState=p.memoizedState,a.updateQueue=p.updateQueue,a.type=p.type,o=p.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext,_debugThenableState:o._debugThenableState},a.selfBaseDuration=p.selfBaseDuration,a.treeBaseDuration=p.treeBaseDuration),a}function p4(a,o,p,m,t,r){var v=0,b=a;if(typeof a==="function")o4(a)&&(v=1),b=ir(b);else if(typeof a==="string")v=va(),v=T$(a,p,v)?26:a==="html"||a==="head"||a==="body"?27:5;else a:switch(a){case V3:return o=k(31,p,o,t),o.elementType=V3,o.lanes=r,o;case Qv:return wr(p.children,t,r,o);case fb:v=8,t|=Vo,t|=am;break;case n3:return a=p,m=t,typeof a.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof a.id),o=k(12,a,o,m|Ba),o.elementType=n3,o.lanes=r,o.stateNode={effectDuration:0,passiveEffectDuration:0},o;case u3:return o=k(13,p,o,t),o.elementType=u3,o.lanes=r,o;case x3:return o=k(19,p,o,t),o.elementType=x3,o.lanes=r,o;default:if(typeof a==="object"&&a!==null)switch(a.$$typeof){case Km:v=10;break a;case S3:v=9;break a;case j0:v=11,b=a4(b);break a;case ib:v=14;break a;case Bp:v=16,b=null;break a}if(b="",a===void 0||typeof a==="object"&&a!==null&&Object.keys(a).length===0)b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";a===null?p="null":yo(a)?p="array":a!==void 0&&a.$$typeof===Bm?(p="<"+(V(a.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):p=typeof a,(v=m?Ca(m):null)&&(b+=`
|
|
56
|
-
|
|
57
|
-
Check the render method of \``+v+"`."),v=29,p=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(p+"."+b)),b=null}return o=k(v,p,o,t),o.elementType=a,o.type=b,o.lanes=r,o._debugOwner=m,o}function z2(a,o,p){return o=p4(a.type,a.key,a.props,a._owner,o,p),o._debugOwner=a._owner,o._debugStack=a._debugStack,o._debugTask=a._debugTask,o}function wr(a,o,p,m){return a=k(7,a,m,o),a.lanes=p,a}function m4(a,o,p){return a=k(6,a,null,o),a.lanes=p,a}function L6(a){var o=k(18,null,null,za);return o.stateNode=a,o}function t4(a,o,p){return o=k(4,a.children!==null?a.children:[],a.key,o),o.lanes=p,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function Xp(a,o){if(typeof a==="object"&&a!==null){var p=Hf.get(a);if(p!==void 0)return p;return o={value:a,source:o,stack:Er(o)},Hf.set(a,o),o}return{value:a,source:o,stack:Er(o)}}function Pm(a,o){$t(),Nv[Mv++]=i5,Nv[Mv++]=Kb,Kb=a,i5=o}function O6(a,o,p){$t(),Fp[Cp++]=Dm,Fp[Cp++]=jm,Fp[Cp++]=Br,Br=a;var m=Dm;a=jm;var t=32-so(m)-1;m&=~(1<<t),p+=1;var r=32-so(o)+t;if(30<r){var v=t-t%5;r=(m&(1<<v)-1).toString(32),m>>=v,t-=v,Dm=1<<32-so(o)+t|p<<t|m,jm=r+a}else Dm=1<<r|p<<t|m,jm=a}function r4(a){$t(),a.return!==null&&(Pm(a,1),O6(a,1,0))}function v4(a){for(;a===Kb;)Kb=Nv[--Mv],Nv[Mv]=null,i5=Nv[--Mv],Nv[Mv]=null;for(;a===Br;)Br=Fp[--Cp],Fp[Cp]=null,jm=Fp[--Cp],Fp[Cp]=null,Dm=Fp[--Cp],Fp[Cp]=null}function h6(){return $t(),Br!==null?{id:Dm,overflow:jm}:null}function k6(a,o){$t(),Fp[Cp++]=Dm,Fp[Cp++]=jm,Fp[Cp++]=Br,Dm=o.id,jm=o.overflow,Br=a}function $t(){Oa||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function cr(a,o){if(a.return===null){if(Wp===null)Wp={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:o};else{if(Wp.fiber!==a)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Wp.distanceFromLeaf>o&&(Wp.distanceFromLeaf=o)}return Wp}var p=cr(a.return,o+1).children;if(0<p.length&&p[p.length-1].fiber===a)return p=p[p.length-1],p.distanceFromLeaf>o&&(p.distanceFromLeaf=o),p;return o={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:o},p.push(o),o}function N6(){Oa&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function $2(a,o){ym||(a=cr(a,0),a.serverProps=null,o!==null&&(o=zc(o),a.serverTail.push(o)))}function Jt(a){var o=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,p="",m=Wp;throw m!==null&&(Wp=null,p=S1(m)),B0(Xp(Error("Hydration failed because the server rendered "+(o?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
58
|
-
|
|
59
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
60
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
61
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
62
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
63
|
-
- Invalid HTML tag nesting.
|
|
64
|
-
|
|
65
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
66
|
-
|
|
67
|
-
https://react.dev/link/hydration-mismatch`+p),a)),Wf}function M6(a){var{stateNode:o,type:p,memoizedProps:m}=a;switch(o[Ao]=a,o[eo]=m,W3(p,m),p){case"dialog":Na("cancel",o),Na("close",o);break;case"iframe":case"object":case"embed":Na("load",o);break;case"video":case"audio":for(p=0;p<g5.length;p++)Na(g5[p],o);break;case"source":Na("error",o);break;case"img":case"image":case"link":Na("error",o),Na("load",o);break;case"details":Na("toggle",o);break;case"input":pv("input",m),Na("invalid",o),A7(o,m),T7(o,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"option":n7(o,m);break;case"select":pv("select",m),Na("invalid",o),u7(o,m);break;case"textarea":pv("textarea",m),Na("invalid",o),x7(o,m),D7(o,m.value,m.defaultValue,m.children)}p=m.children,typeof p!=="string"&&typeof p!=="number"&&typeof p!=="bigint"||o.textContent===""+p||m.suppressHydrationWarning===!0||ew(o.textContent,p)?(m.popover!=null&&(Na("beforetoggle",o),Na("toggle",o)),m.onScroll!=null&&Na("scroll",o),m.onScrollEnd!=null&&Na("scrollend",o),m.onClick!=null&&(o.onclick=Fm),o=!0):o=!1,o||Jt(a,!0)}function g6(a){for(To=a.return;To;)switch(To.tag){case 5:case 31:case 13:Pp=!1;return;case 27:case 3:Pp=!0;return;default:To=To.return}}function vv(a){if(a!==To)return!1;if(!Oa)return g6(a),Oa=!0,!1;var o=a.tag,p;if(p=o!==3&&o!==27){if(p=o===5)p=a.type,p=!(p!=="form"&&p!=="button")||L3(a.type,a.memoizedProps);p=!p}if(p&&to){for(p=to;p;){var m=cr(a,0),t=zc(p);m.serverTail.push(t),p=t.type==="Suspense"?N3(p):Qp(p.nextSibling)}Jt(a)}if(g6(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");to=N3(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");to=N3(a)}else o===27?(o=to,Ht(a.type)?(a=J7,J7=null,to=a):to=o):to=To?Qp(a.stateNode.nextSibling):null;return!0}function lr(){to=To=null,ym=Oa=!1}function b4(){var a=kt;return a!==null&&(rp===null?rp=a:rp.push.apply(rp,a),kt=null),a}function B0(a){kt===null?kt=[a]:kt.push(a)}function f4(){var a=Wp;if(a!==null){Wp=null;for(var o=S1(a);0<a.children.length;)a=a.children[0];F(a.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
68
|
-
|
|
69
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
70
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
71
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
72
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
73
|
-
- Invalid HTML tag nesting.
|
|
74
|
-
|
|
75
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
76
|
-
|
|
77
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",o)})}}function J2(){gv=Hb=null,Fv=!1}function Yt(a,o,p){d(Uf,o._currentValue,a),o._currentValue=p,d(df,o._currentRenderer,a),o._currentRenderer!==void 0&&o._currentRenderer!==null&&o._currentRenderer!==M8&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),o._currentRenderer=M8}function Im(a,o){a._currentValue=Uf.current;var p=df.current;O(df,o),a._currentRenderer=p,O(Uf,o)}function i4(a,o,p){for(;a!==null;){var m=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,m!==null&&(m.childLanes|=o)):m!==null&&(m.childLanes&o)!==o&&(m.childLanes|=o),a===p)break;a=a.return}a!==p&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function w4(a,o,p,m){var t=a.child;t!==null&&(t.return=a);for(;t!==null;){var r=t.dependencies;if(r!==null){var v=t.child;r=r.firstContext;a:for(;r!==null;){var b=r;r=t;for(var f=0;f<o.length;f++)if(b.context===o[f]){r.lanes|=p,b=r.alternate,b!==null&&(b.lanes|=p),i4(r.return,p,a),m||(v=null);break a}r=b.next}}else if(t.tag===18){if(v=t.return,v===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");v.lanes|=p,r=v.alternate,r!==null&&(r.lanes|=p),i4(v,p,a),v=null}else v=t.child;if(v!==null)v.return=t;else for(v=t;v!==null;){if(v===a){v=null;break}if(t=v.sibling,t!==null){t.return=v.return,v=t;break}v=v.return}t=v}}function bv(a,o,p,m){a=null;for(var t=o,r=!1;t!==null;){if(!r){if((t.flags&524288)!==0)r=!0;else if((t.flags&262144)!==0)break}if(t.tag===10){var v=t.alternate;if(v===null)throw Error("Should have a current fiber. This is a bug in React.");if(v=v.memoizedProps,v!==null){var b=t.type;op(t.pendingProps.value,v.value)||(a!==null?a.push(b):a=[b])}}else if(t===wb.current){if(v=t.alternate,v===null)throw Error("Should have a current fiber. This is a bug in React.");v.memoizedState.memoizedState!==t.memoizedState.memoizedState&&(a!==null?a.push(A5):a=[A5])}t=t.return}a!==null&&w4(o,a,p,m),o.flags|=262144}function Y2(a){for(a=a.firstContext;a!==null;){if(!op(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function zr(a){Hb=a,gv=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function fo(a){return Fv&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),F6(Hb,a)}function X2(a,o){return Hb===null&&zr(a),F6(a,o)}function F6(a,o){var p=o._currentValue;if(o={context:o,memoizedValue:p,next:null},gv===null){if(a===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");gv=o,a.dependencies={lanes:0,firstContext:o,_debugThenableState:null},a.flags|=524288}else gv=gv.next=o;return p}function c4(){return{controller:new $Y,data:new Map,refCount:0}}function $r(a){a.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),a.refCount++}function K0(a){a.refCount--,0>a.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),a.refCount===0&&JY(YY,function(){a.controller.abort()})}function wm(a,o,p){if((a&127)!==0)0>Lm&&(Lm=Qo(),c5=Wb(o),Rf=o,p!=null&&(yf=L(p)),(ga&(Oo|Rp))!==Fo&&(Yo=!0,gt=w5),a=S0(),o=n0(),a!==Cv||o!==l5?Cv=-1.1:o!==null&&(gt=w5),Hr=a,l5=o);else if((a&4194048)!==0&&0>Ip&&(Ip=Qo(),z5=Wb(o),g8=o,p!=null&&(F8=L(p)),0>em)){if(a=S0(),o=n0(),a!==Ct||o!==Wr)Ct=-1.1;Ft=a,Wr=o}}function Nz(a){if(0>Lm){Lm=Qo(),c5=a._debugTask!=null?a._debugTask:null,(ga&(Oo|Rp))!==Fo&&(gt=w5);var o=S0(),p=n0();o!==Cv||p!==l5?Cv=-1.1:p!==null&&(gt=w5),Hr=o,l5=p}if(0>Ip&&(Ip=Qo(),z5=a._debugTask!=null?a._debugTask:null,0>em)){if(a=S0(),o=n0(),a!==Ct||o!==Wr)Ct=-1.1;Ft=a,Wr=o}}function Am(){var a=Kr;return Kr=0,a}function Z2(a){var o=Kr;return Kr=a,o}function H0(a){var o=Kr;return Kr+=a,o}function G2(){ca=ia=-1.1}function Zp(){var a=ia;return ia=-1.1,a}function Gp(a){0<=a&&(ia=a)}function cm(){var a=lo;return lo=-0,a}function lm(a){0<=a&&(lo=a)}function zm(){var a=io;return io=null,a}function $m(){var a=Yo;return Yo=!1,a}function l4(a){pp=Qo(),0>a.actualStartTime&&(a.actualStartTime=pp)}function z4(a){if(0<=pp){var o=Qo()-pp;a.actualDuration+=o,a.selfBaseDuration=o,pp=-1}}function C6(a){if(0<=pp){var o=Qo()-pp;a.actualDuration+=o,pp=-1}}function Jm(){if(0<=pp){var a=Qo(),o=a-pp;pp=-1,Kr+=o,lo+=o,ca=a}}function P6(a){io===null&&(io=[]),io.push(a),sm===null&&(sm=[]),sm.push(a)}function Ym(){pp=Qo(),0>ia&&(ia=pp)}function W0(a){for(var o=a.child;o;)a.actualDuration+=o.actualDuration,o=o.sibling}function Mz(a,o){if(J5===null){var p=J5=[];Of=0,Ur=Q3(),Pv={status:"pending",value:void 0,then:function(m){p.push(m)}}}return Of++,o.then(I6,I6),o}function I6(){if(--Of===0&&(-1<Ip||(em=-1.1),J5!==null)){Pv!==null&&(Pv.status="fulfilled");var a=J5;J5=null,Ur=0,Pv=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function gz(a,o){var p=[],m={status:"pending",value:null,reason:null,then:function(t){p.push(t)}};return a.then(function(){m.status="fulfilled",m.value=o;for(var t=0;t<p.length;t++)(0,p[t])(o)},function(t){m.status="rejected",m.reason=t;for(t=0;t<p.length;t++)(0,p[t])(void 0)}),m}function $4(){var a=dr.current;return a!==null?a:Ea.pooledCache}function _2(a,o){o===null?d(dr,dr.current,a):d(dr,o.pool,a)}function A6(){var a=$4();return a===null?null:{parent:qo._currentValue,pool:a}}function T6(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function n6(a){return a=a.status,a==="fulfilled"||a==="rejected"}function S6(a,o,p){K.actQueue!==null&&(K.didUsePromise=!0);var m=a.thenables;if(p=m[p],p===void 0?m.push(o):p!==o&&(a.didWarnAboutUncachedPromise||(a.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),o.then(Fm,Fm),o=p),o._debugInfo===void 0){a=performance.now(),m=o.displayName;var t={name:typeof m==="string"?m:"Promise",start:a,end:a,value:o};o._debugInfo=[{awaited:t}],o.status!=="fulfilled"&&o.status!=="rejected"&&(a=function(){t.end=performance.now()},o.then(a,a))}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,x6(a),a;default:if(typeof o.status==="string")o.then(Fm,Fm);else{if(a=Ea,a!==null&&100<a.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");a=o,a.status="pending",a.then(function(r){if(o.status==="pending"){var v=o;v.status="fulfilled",v.value=r}},function(r){if(o.status==="pending"){var v=o;v.status="rejected",v.reason=r}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,x6(a),a}throw yr=o,Q5=!0,Iv}}function Xt(a){try{return _Y(a)}catch(o){if(o!==null&&typeof o==="object"&&typeof o.then==="function")throw yr=o,Q5=!0,Iv;throw o}}function u6(){if(yr===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=yr;return yr=null,Q5=!1,a}function x6(a){if(a===Iv||a===kb)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Co(a){var o=Ka;return a!=null&&(Ka=o===null?a:o.concat(a)),o}function J4(){var a=Ka;if(a!=null){for(var o=a.length-1;0<=o;o--)if(a[o].name!=null){var p=a[o].debugTask;if(p!=null)return p}}return null}function q2(a,o,p){for(var m=Object.keys(a.props),t=0;t<m.length;t++){var r=m[t];if(r!=="children"&&r!=="key"){o===null&&(o=z2(a,p.mode,0),o._debugInfo=Ka,o.return=p),F(o,function(v){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v)},r);break}}}function Q2(a){var o=B5;return B5+=1,Av===null&&(Av=T6()),S6(Av,a,o)}function U0(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function V6(a,o){if(o.$$typeof===e$)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
78
|
-
- Multiple copies of the "react" package is used.
|
|
79
|
-
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
80
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`);throw a=Object.prototype.toString.call(o),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}function B2(a,o){var p=J4();p!==null?p.run(V6.bind(null,a,o)):V6(a,o)}function D6(a,o){var p=L(a)||"Component";tl[p]||(tl[p]=!0,o=o.displayName||o.name||"Component",a.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
81
|
-
root.render(%s)`,o,o,o):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
82
|
-
<%s>{%s}</%s>`,o,o,p,o,p))}function K2(a,o){var p=J4();p!==null?p.run(D6.bind(null,a,o)):D6(a,o)}function j6(a,o){var p=L(a)||"Component";rl[p]||(rl[p]=!0,o=String(o),a.tag===3?console.error(`Symbols are not valid as a React child.
|
|
83
|
-
root.render(%s)`,o):console.error(`Symbols are not valid as a React child.
|
|
84
|
-
<%s>%s</%s>`,p,o,p))}function H2(a,o){var p=J4();p!==null?p.run(j6.bind(null,a,o)):j6(a,o)}function E6(a){function o(l,$){if(a){var J=l.deletions;J===null?(l.deletions=[$],l.flags|=16):J.push($)}}function p(l,$){if(!a)return null;for(;$!==null;)o(l,$),$=$.sibling;return null}function m(l){for(var $=new Map;l!==null;)l.key!==null?$.set(l.key,l):$.set(l.index,l),l=l.sibling;return $}function t(l,$){return l=Cm(l,$),l.index=0,l.sibling=null,l}function r(l,$,J){if(l.index=J,!a)return l.flags|=1048576,$;if(J=l.alternate,J!==null)return J=J.index,J<$?(l.flags|=67108866,$):J;return l.flags|=67108866,$}function v(l){return a&&l.alternate===null&&(l.flags|=67108866),l}function b(l,$,J,R){if($===null||$.tag!==6)return $=m4(J,l.mode,R),$.return=l,$._debugOwner=l,$._debugTask=l._debugTask,$._debugInfo=Ka,$;return $=t($,J),$.return=l,$._debugInfo=Ka,$}function f(l,$,J,R){var j=J.type;if(j===Qv)return $=Y(l,$,J.props.children,R,J.key),q2(J,$,l),$;if($!==null&&($.elementType===j||U6($,J)||typeof j==="object"&&j!==null&&j.$$typeof===Bp&&Xt(j)===$.type))return $=t($,J.props),U0($,J),$.return=l,$._debugOwner=J._owner,$._debugInfo=Ka,$;return $=z2(J,l.mode,R),U0($,J),$.return=l,$._debugInfo=Ka,$}function i(l,$,J,R){if($===null||$.tag!==4||$.stateNode.containerInfo!==J.containerInfo||$.stateNode.implementation!==J.implementation)return $=t4(J,l.mode,R),$.return=l,$._debugInfo=Ka,$;return $=t($,J.children||[]),$.return=l,$._debugInfo=Ka,$}function Y(l,$,J,R,j){if($===null||$.tag!==7)return $=wr(J,l.mode,R,j),$.return=l,$._debugOwner=l,$._debugTask=l._debugTask,$._debugInfo=Ka,$;return $=t($,J),$.return=l,$._debugInfo=Ka,$}function X(l,$,J){if(typeof $==="string"&&$!==""||typeof $==="number"||typeof $==="bigint")return $=m4(""+$,l.mode,J),$.return=l,$._debugOwner=l,$._debugTask=l._debugTask,$._debugInfo=Ka,$;if(typeof $==="object"&&$!==null){switch($.$$typeof){case Bm:return J=z2($,l.mode,J),U0(J,$),J.return=l,l=Co($._debugInfo),J._debugInfo=Ka,Ka=l,J;case qv:return $=t4($,l.mode,J),$.return=l,$._debugInfo=Ka,$;case Bp:var R=Co($._debugInfo);return $=Xt($),l=X(l,$,J),Ka=R,l}if(yo($)||ha($))return J=wr($,l.mode,J,null),J.return=l,J._debugOwner=l,J._debugTask=l._debugTask,l=Co($._debugInfo),J._debugInfo=Ka,Ka=l,J;if(typeof $.then==="function")return R=Co($._debugInfo),l=X(l,Q2($),J),Ka=R,l;if($.$$typeof===Km)return X(l,X2(l,$),J);B2(l,$)}return typeof $==="function"&&K2(l,$),typeof $==="symbol"&&H2(l,$),null}function z(l,$,J,R){var j=$!==null?$.key:null;if(typeof J==="string"&&J!==""||typeof J==="number"||typeof J==="bigint")return j!==null?null:b(l,$,""+J,R);if(typeof J==="object"&&J!==null){switch(J.$$typeof){case Bm:return J.key===j?(j=Co(J._debugInfo),l=f(l,$,J,R),Ka=j,l):null;case qv:return J.key===j?i(l,$,J,R):null;case Bp:return j=Co(J._debugInfo),J=Xt(J),l=z(l,$,J,R),Ka=j,l}if(yo(J)||ha(J)){if(j!==null)return null;return j=Co(J._debugInfo),l=Y(l,$,J,R,null),Ka=j,l}if(typeof J.then==="function")return j=Co(J._debugInfo),l=z(l,$,Q2(J),R),Ka=j,l;if(J.$$typeof===Km)return z(l,$,X2(l,J),R);B2(l,J)}return typeof J==="function"&&K2(l,J),typeof J==="symbol"&&H2(l,J),null}function q(l,$,J,R,j){if(typeof R==="string"&&R!==""||typeof R==="number"||typeof R==="bigint")return l=l.get(J)||null,b($,l,""+R,j);if(typeof R==="object"&&R!==null){switch(R.$$typeof){case Bm:return J=l.get(R.key===null?J:R.key)||null,l=Co(R._debugInfo),$=f($,J,R,j),Ka=l,$;case qv:return l=l.get(R.key===null?J:R.key)||null,i($,l,R,j);case Bp:var Ya=Co(R._debugInfo);return R=Xt(R),$=q(l,$,J,R,j),Ka=Ya,$}if(yo(R)||ha(R))return J=l.get(J)||null,l=Co(R._debugInfo),$=Y($,J,R,j,null),Ka=l,$;if(typeof R.then==="function")return Ya=Co(R._debugInfo),$=q(l,$,J,Q2(R),j),Ka=Ya,$;if(R.$$typeof===Km)return q(l,$,J,X2($,R),j);B2($,R)}return typeof R==="function"&&K2($,R),typeof R==="symbol"&&H2($,R),null}function n(l,$,J,R){if(typeof J!=="object"||J===null)return R;switch(J.$$typeof){case Bm:case qv:W(l,$,J);var j=J.key;if(typeof j!=="string")break;if(R===null){R=new Set,R.add(j);break}if(!R.has(j)){R.add(j);break}F($,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",j)});break;case Bp:J=Xt(J),n(l,$,J,R)}return R}function E(l,$,J,R){for(var j=null,Ya=null,ba=null,ta=$,Qa=$=0,ro=null;ta!==null&&Qa<J.length;Qa++){ta.index>Qa?(ro=ta,ta=null):ro=ta.sibling;var _o=z(l,ta,J[Qa],R);if(_o===null){ta===null&&(ta=ro);break}j=n(l,_o,J[Qa],j),a&&ta&&_o.alternate===null&&o(l,ta),$=r(_o,$,Qa),ba===null?Ya=_o:ba.sibling=_o,ba=_o,ta=ro}if(Qa===J.length)return p(l,ta),Oa&&Pm(l,Qa),Ya;if(ta===null){for(;Qa<J.length;Qa++)ta=X(l,J[Qa],R),ta!==null&&(j=n(l,ta,J[Qa],j),$=r(ta,$,Qa),ba===null?Ya=ta:ba.sibling=ta,ba=ta);return Oa&&Pm(l,Qa),Ya}for(ta=m(ta);Qa<J.length;Qa++)ro=q(ta,l,Qa,J[Qa],R),ro!==null&&(j=n(l,ro,J[Qa],j),a&&ro.alternate!==null&&ta.delete(ro.key===null?Qa:ro.key),$=r(ro,$,Qa),ba===null?Ya=ro:ba.sibling=ro,ba=ro);return a&&ta.forEach(function(ft){return o(l,ft)}),Oa&&Pm(l,Qa),Ya}function ao(l,$,J,R){if(J==null)throw Error("An iterable object provided no iterator.");for(var j=null,Ya=null,ba=$,ta=$=0,Qa=null,ro=null,_o=J.next();ba!==null&&!_o.done;ta++,_o=J.next()){ba.index>ta?(Qa=ba,ba=null):Qa=ba.sibling;var ft=z(l,ba,_o.value,R);if(ft===null){ba===null&&(ba=Qa);break}ro=n(l,ft,_o.value,ro),a&&ba&&ft.alternate===null&&o(l,ba),$=r(ft,$,ta),Ya===null?j=ft:Ya.sibling=ft,Ya=ft,ba=Qa}if(_o.done)return p(l,ba),Oa&&Pm(l,ta),j;if(ba===null){for(;!_o.done;ta++,_o=J.next())ba=X(l,_o.value,R),ba!==null&&(ro=n(l,ba,_o.value,ro),$=r(ba,$,ta),Ya===null?j=ba:Ya.sibling=ba,Ya=ba);return Oa&&Pm(l,ta),j}for(ba=m(ba);!_o.done;ta++,_o=J.next())Qa=q(ba,l,ta,_o.value,R),Qa!==null&&(ro=n(l,Qa,_o.value,ro),a&&Qa.alternate!==null&&ba.delete(Qa.key===null?ta:Qa.key),$=r(Qa,$,ta),Ya===null?j=Qa:Ya.sibling=Qa,Ya=Qa);return a&&ba.forEach(function(nY){return o(l,nY)}),Oa&&Pm(l,ta),j}function Ma(l,$,J,R){if(typeof J==="object"&&J!==null&&J.type===Qv&&J.key===null&&(q2(J,null,l),J=J.props.children),typeof J==="object"&&J!==null){switch(J.$$typeof){case Bm:var j=Co(J._debugInfo);a:{for(var Ya=J.key;$!==null;){if($.key===Ya){if(Ya=J.type,Ya===Qv){if($.tag===7){p(l,$.sibling),R=t($,J.props.children),R.return=l,R._debugOwner=J._owner,R._debugInfo=Ka,q2(J,R,l),l=R;break a}}else if($.elementType===Ya||U6($,J)||typeof Ya==="object"&&Ya!==null&&Ya.$$typeof===Bp&&Xt(Ya)===$.type){p(l,$.sibling),R=t($,J.props),U0(R,J),R.return=l,R._debugOwner=J._owner,R._debugInfo=Ka,l=R;break a}p(l,$);break}else o(l,$);$=$.sibling}J.type===Qv?(R=wr(J.props.children,l.mode,R,J.key),R.return=l,R._debugOwner=l,R._debugTask=l._debugTask,R._debugInfo=Ka,q2(J,R,l),l=R):(R=z2(J,l.mode,R),U0(R,J),R.return=l,R._debugInfo=Ka,l=R)}return l=v(l),Ka=j,l;case qv:a:{j=J;for(J=j.key;$!==null;){if($.key===J)if($.tag===4&&$.stateNode.containerInfo===j.containerInfo&&$.stateNode.implementation===j.implementation){p(l,$.sibling),R=t($,j.children||[]),R.return=l,l=R;break a}else{p(l,$);break}else o(l,$);$=$.sibling}R=t4(j,l.mode,R),R.return=l,l=R}return v(l);case Bp:return j=Co(J._debugInfo),J=Xt(J),l=Ma(l,$,J,R),Ka=j,l}if(yo(J))return j=Co(J._debugInfo),l=E(l,$,J,R),Ka=j,l;if(ha(J)){if(j=Co(J._debugInfo),Ya=ha(J),typeof Ya!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var ba=Ya.call(J);if(ba===J){if(l.tag!==0||Object.prototype.toString.call(l.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(ba)!=="[object Generator]")pl||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),pl=!0}else J.entries!==Ya||Mf||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Mf=!0);return l=ao(l,$,ba,R),Ka=j,l}if(typeof J.then==="function")return j=Co(J._debugInfo),l=Ma(l,$,Q2(J),R),Ka=j,l;if(J.$$typeof===Km)return Ma(l,$,X2(l,J),R);B2(l,J)}if(typeof J==="string"&&J!==""||typeof J==="number"||typeof J==="bigint")return j=""+J,$!==null&&$.tag===6?(p(l,$.sibling),R=t($,j),R.return=l,l=R):(p(l,$),R=m4(j,l.mode,R),R.return=l,R._debugOwner=l,R._debugTask=l._debugTask,R._debugInfo=Ka,l=R),v(l);return typeof J==="function"&&K2(l,J),typeof J==="symbol"&&H2(l,J),p(l,$)}return function(l,$,J,R){var j=Ka;Ka=null;try{B5=0;var Ya=Ma(l,$,J,R);return Av=null,Ya}catch(ro){if(ro===Iv||ro===kb)throw ro;var ba=k(29,ro,null,l.mode);ba.lanes=R,ba.return=l;var ta=ba._debugInfo=Ka;if(ba._debugOwner=l._debugOwner,ba._debugTask=l._debugTask,ta!=null){for(var Qa=ta.length-1;0<=Qa;Qa--)if(typeof ta[Qa].stack==="string"){ba._debugOwner=ta[Qa],ba._debugTask=ta[Qa].debugTask;break}}return ba}finally{Ka=j}}}function s6(a,o){var p=yo(a);return a=!p&&typeof ha(a)==="function",p||a?(p=p?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",p,o,p),!1):!0}function Y4(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function X4(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Zt(a){return{lane:a,tag:bl,payload:null,callback:null,next:null}}function Gt(a,o,p){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,Ff===m&&!wl){var t=L(a);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
85
|
-
|
|
86
|
-
Please update the following component: %s`,t),wl=!0}if((ga&Oo)!==Fo)return t=m.pending,t===null?o.next=o:(o.next=t.next,t.next=o),m.pending=o,o=l2(a),W6(a,null,p),o;return c2(a,m,o,p),l2(a)}function d0(a,o,p){if(o=o.updateQueue,o!==null&&(o=o.shared,(p&4194048)!==0)){var m=o.lanes;m&=a.pendingLanes,p|=m,o.lanes=p,h7(a,p)}}function W2(a,o){var{updateQueue:p,alternate:m}=a;if(m!==null&&(m=m.updateQueue,p===m)){var t=null,r=null;if(p=p.firstBaseUpdate,p!==null){do{var v={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};r===null?t=r=v:r=r.next=v,p=p.next}while(p!==null);r===null?t=r=o:r=r.next=o}else t=r=o;p={baseState:m.baseState,firstBaseUpdate:t,lastBaseUpdate:r,shared:m.shared,callbacks:m.callbacks},a.updateQueue=p;return}a=p.lastBaseUpdate,a===null?p.firstBaseUpdate=o:a.next=o,p.lastBaseUpdate=o}function R0(){if(Cf){var a=Pv;if(a!==null)throw a}}function y0(a,o,p,m){Cf=!1;var t=a.updateQueue;Pt=!1,Ff=t.shared;var{firstBaseUpdate:r,lastBaseUpdate:v}=t,b=t.shared.pending;if(b!==null){t.shared.pending=null;var f=b,i=f.next;f.next=null,v===null?r=i:v.next=i,v=f;var Y=a.alternate;Y!==null&&(Y=Y.updateQueue,b=Y.lastBaseUpdate,b!==v&&(b===null?Y.firstBaseUpdate=i:b.next=i,Y.lastBaseUpdate=f))}if(r!==null){var X=t.baseState;v=0,Y=i=f=null,b=r;do{var z=b.lane&-536870913,q=z!==b.lane;if(q?(Ha&z)===z:(m&z)===z){z!==0&&z===Ur&&(Cf=!0),Y!==null&&(Y=Y.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});a:{z=a;var n=b,E=o,ao=p;switch(n.tag){case fl:if(n=n.payload,typeof n==="function"){Fv=!0;var Ma=n.call(ao,X,E);if(z.mode&Vo){co(!0);try{n.call(ao,X,E)}finally{co(!1)}}Fv=!1,X=Ma;break a}X=n;break a;case gf:z.flags=z.flags&-65537|128;case bl:if(Ma=n.payload,typeof Ma==="function"){if(Fv=!0,n=Ma.call(ao,X,E),z.mode&Vo){co(!0);try{Ma.call(ao,X,E)}finally{co(!1)}}Fv=!1}else n=Ma;if(n===null||n===void 0)break a;X=da({},X,n);break a;case il:Pt=!0}}z=b.callback,z!==null&&(a.flags|=64,q&&(a.flags|=8192),q=t.callbacks,q===null?t.callbacks=[z]:q.push(z))}else q={lane:z,tag:b.tag,payload:b.payload,callback:b.callback,next:null},Y===null?(i=Y=q,f=X):Y=Y.next=q,v|=z;if(b=b.next,b===null)if(b=t.shared.pending,b===null)break;else q=b,b=q.next,q.next=null,t.lastBaseUpdate=q,t.shared.pending=null}while(1);Y===null&&(f=X),t.baseState=f,t.firstBaseUpdate=i,t.lastBaseUpdate=Y,r===null&&(t.shared.lanes=0),Tt|=v,a.lanes=v,a.memoizedState=X}Ff=null}function e6(a,o){if(typeof a!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+a);a.call(o)}function Fz(a,o){var p=a.shared.hiddenCallbacks;if(p!==null)for(a.shared.hiddenCallbacks=null,a=0;a<p.length;a++)e6(p[a],o)}function ai(a,o){var p=a.callbacks;if(p!==null)for(a.callbacks=null,a=0;a<p.length;a++)e6(p[a],o)}function oi(a,o){var p=km;d(Mb,p,a),d(Tv,o,a),km=p|o.baseLanes}function Z4(a){d(Mb,km,a),d(Tv,Tv.current,a)}function G4(a){km=Mb.current,O(Tv,a),O(Mb,a)}function _t(a){var o=a.alternate;d(Go,Go.current&nv,a),d(Up,a,a),Ap===null&&(o===null||Tv.current!==null?Ap=a:o.memoizedState!==null&&(Ap=a))}function _4(a){d(Go,Go.current,a),d(Up,a,a),Ap===null&&(Ap=a)}function pi(a){a.tag===22?(d(Go,Go.current,a),d(Up,a,a),Ap===null&&(Ap=a)):qt(a)}function qt(a){d(Go,Go.current,a),d(Up,Up.current,a)}function _p(a){O(Up,a),Ap===a&&(Ap=null),O(Go,a)}function U2(a){for(var o=a;o!==null;){if(o.tag===13){var p=o.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||h3(p)||k3(p)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function Ua(){var a=Q;np===null?np=[a]:np.push(a)}function g(){var a=Q;if(np!==null&&(mt++,np[mt]!==a)){var o=L(Ja);if(!cl.has(o)&&(cl.add(o),np!==null)){for(var p="",m=0;m<=mt;m++){var t=np[m],r=m===mt?a:t;for(t=m+1+". "+t;30>t.length;)t+=" ";t+=r+`
|
|
87
|
-
`,p+=t}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
88
|
-
|
|
89
|
-
Previous render Next render
|
|
90
|
-
------------------------------------------------------
|
|
91
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
92
|
-
`,o,p)}}}function fv(a){a===void 0||a===null||yo(a)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Q,typeof a)}function d2(){var a=L(Ja);zl.has(a)||(zl.add(a),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",a))}function Xo(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
93
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
94
|
-
2. You might be breaking the Rules of Hooks
|
|
95
|
-
3. You might have more than one copy of React in the same app
|
|
96
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function q4(a,o){if(W5)return!1;if(o===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Q),!1;a.length!==o.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
97
|
-
|
|
98
|
-
Previous: %s
|
|
99
|
-
Incoming: %s`,Q,"["+o.join(", ")+"]","["+a.join(", ")+"]");for(var p=0;p<o.length&&p<a.length;p++)if(!op(a[p],o[p]))return!1;return!0}function Q4(a,o,p,m,t,r){if(ot=r,Ja=o,np=a!==null?a._debugHookTypes:null,mt=-1,W5=a!==null&&a.type!==o.type,Object.prototype.toString.call(p)==="[object AsyncFunction]"||Object.prototype.toString.call(p)==="[object AsyncGeneratorFunction]")r=L(Ja),Pf.has(r)||(Pf.add(r),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",r===null?"An unknown Component":"<"+r+">"));o.memoizedState=null,o.updateQueue=null,o.lanes=0,K.H=a!==null&&a.memoizedState!==null?Af:np!==null?$l:If,Or=r=(o.mode&Vo)!==za;var v=hf(p,m,t);if(Or=!1,uv&&(v=B4(o,p,m,t)),r){co(!0);try{v=B4(o,p,m,t)}finally{co(!1)}}return mi(a,o),v}function mi(a,o){o._debugHookTypes=np,o.dependencies===null?pt!==null&&(o.dependencies={lanes:0,firstContext:null,_debugThenableState:pt}):o.dependencies._debugThenableState=pt,K.H=U5;var p=ja!==null&&ja.next!==null;if(ot=0,np=Q=Bo=ja=Ja=null,mt=-1,a!==null&&(a.flags&65011712)!==(o.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Fb=!1,H5=0,pt=null,p)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");a===null||Ko||(a=a.dependencies,a!==null&&Y2(a)&&(Ko=!0)),Q5?(Q5=!1,a=!0):a=!1,a&&(o=L(o)||"Unknown",ll.has(o)||Pf.has(o)||(ll.add(o),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function B4(a,o,p,m){Ja=a;var t=0;do{if(uv&&(pt=null),H5=0,uv=!1,t>=QY)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(t+=1,W5=!1,Bo=ja=null,a.updateQueue!=null){var r=a.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}mt=-1,K.H=Jl,r=hf(o,p,m)}while(uv);return r}function Cz(){var a=K.H,o=a.useState()[0];return o=typeof o.then==="function"?L0(o):o,a=a.useState()[0],(ja!==null?ja.memoizedState:null)!==a&&(Ja.flags|=1024),o}function K4(){var a=Cb!==0;return Cb=0,a}function H4(a,o,p){o.updateQueue=a.updateQueue,o.flags=(o.mode&am)!==za?o.flags&-402655237:o.flags&-2053,a.lanes&=~p}function W4(a){if(Fb){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Fb=!1}ot=0,np=Bo=ja=Ja=null,mt=-1,Q=null,uv=!1,H5=Cb=0,pt=null}function Eo(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bo===null?Ja.memoizedState=Bo=a:Bo=Bo.next=a,Bo}function na(){if(ja===null){var a=Ja.alternate;a=a!==null?a.memoizedState:null}else a=ja.next;var o=Bo===null?Ja.memoizedState:Bo.next;if(o!==null)Bo=o,ja=a;else{if(a===null){if(Ja.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}ja=a,a={memoizedState:ja.memoizedState,baseState:ja.baseState,baseQueue:ja.baseQueue,queue:ja.queue,next:null},Bo===null?Ja.memoizedState=Bo=a:Bo=Bo.next=a}return Bo}function R2(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function L0(a){var o=H5;return H5+=1,pt===null&&(pt=T6()),a=S6(pt,a,o),o=Ja,(Bo===null?o.memoizedState:Bo.next)===null&&(o=o.alternate,K.H=o!==null&&o.memoizedState!==null?Af:If),a}function Qt(a){if(a!==null&&typeof a==="object"){if(typeof a.then==="function")return L0(a);if(a.$$typeof===Km)return fo(a)}throw Error("An unsupported type was passed to use(): "+String(a))}function Jr(a){var o=null,p=Ja.updateQueue;if(p!==null&&(o=p.memoCache),o==null){var m=Ja.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(o={data:m.data.map(function(t){return t.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),p===null&&(p=R2(),Ja.updateQueue=p),p.memoCache=o,p=o.data[o.index],p===void 0||W5)for(p=o.data[o.index]=Array(a),m=0;m<a;m++)p[m]=aJ;else p.length!==a&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",p.length,a);return o.index++,p}function jp(a,o){return typeof o==="function"?o(a):o}function U4(a,o,p){var m=Eo();if(p!==void 0){var t=p(o);if(Or){co(!0);try{p(o)}finally{co(!1)}}}else t=o;return m.memoizedState=m.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:t},m.queue=a,a=a.dispatch=nz.bind(null,Ja,a),[m.memoizedState,a]}function iv(a){var o=na();return d4(o,ja,a)}function d4(a,o,p){var m=a.queue;if(m===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");m.lastRenderedReducer=p;var t=a.baseQueue,r=m.pending;if(r!==null){if(t!==null){var v=t.next;t.next=r.next,r.next=v}o.baseQueue!==t&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),o.baseQueue=t=r,m.pending=null}if(r=a.baseState,t===null)a.memoizedState=r;else{o=t.next;var b=v=null,f=null,i=o,Y=!1;do{var X=i.lane&-536870913;if(X!==i.lane?(Ha&X)===X:(ot&X)===X){var z=i.revertLane;if(z===0)f!==null&&(f=f.next={lane:0,revertLane:0,gesture:null,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null}),X===Ur&&(Y=!0);else if((ot&z)===z){i=i.next,z===Ur&&(Y=!0);continue}else X={lane:0,revertLane:i.revertLane,gesture:null,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null},f===null?(b=f=X,v=r):f=f.next=X,Ja.lanes|=z,Tt|=z;X=i.action,Or&&p(r,X),r=i.hasEagerState?i.eagerState:p(r,X)}else z={lane:X,revertLane:i.revertLane,gesture:i.gesture,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null},f===null?(b=f=z,v=r):f=f.next=z,Ja.lanes|=X,Tt|=X;i=i.next}while(i!==null&&i!==o);if(f===null?v=r:f.next=b,!op(r,a.memoizedState)&&(Ko=!0,Y&&(p=Pv,p!==null)))throw p;a.memoizedState=r,a.baseState=v,a.baseQueue=f,m.lastRenderedState=r}return t===null&&(m.lanes=0),[a.memoizedState,m.dispatch]}function O0(a){var o=na(),p=o.queue;if(p===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");p.lastRenderedReducer=a;var{dispatch:m,pending:t}=p,r=o.memoizedState;if(t!==null){p.pending=null;var v=t=t.next;do r=a(r,v.action),v=v.next;while(v!==t);op(r,o.memoizedState)||(Ko=!0),o.memoizedState=r,o.baseQueue===null&&(o.baseState=r),p.lastRenderedState=r}return[r,m]}function R4(a,o,p){var m=Ja,t=Eo();if(Oa){if(p===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var r=p();Sv||r===p()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Sv=!0)}else{if(r=o(),Sv||(p=o(),op(r,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Sv=!0)),Ea===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Ha&127)!==0||ti(m,o,r)}return t.memoizedState=r,p={value:r,getSnapshot:o},t.queue=p,h2(vi.bind(null,m,p,a),[a]),m.flags|=2048,cv(Tp|tp,{destroy:void 0},ri.bind(null,m,p,r,o),null),r}function y2(a,o,p){var m=Ja,t=na(),r=Oa;if(r){if(p===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");p=p()}else if(p=o(),!Sv){var v=o();op(p,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Sv=!0)}if(v=!op((ja||t).memoizedState,p))t.memoizedState=p,Ko=!0;t=t.queue;var b=vi.bind(null,m,t,a);if(fp(2048,tp,b,[a]),t.getSnapshot!==o||v||Bo!==null&&Bo.memoizedState.tag&Tp){if(m.flags|=2048,cv(Tp|tp,{destroy:void 0},ri.bind(null,m,t,p,o),null),Ea===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");r||(ot&127)!==0||ti(m,o,p)}return p}function ti(a,o,p){a.flags|=16384,a={getSnapshot:o,value:p},o=Ja.updateQueue,o===null?(o=R2(),Ja.updateQueue=o,o.stores=[a]):(p=o.stores,p===null?o.stores=[a]:p.push(a))}function ri(a,o,p,m){o.value=p,o.getSnapshot=m,bi(o)&&fi(a)}function vi(a,o,p){return p(function(){bi(o)&&(wm(2,"updateSyncExternalStore()",a),fi(a))})}function bi(a){var o=a.getSnapshot;a=a.value;try{var p=o();return!op(a,p)}catch(m){return!0}}function fi(a){var o=uo(a,2);o!==null&&Jo(o,a,2)}function y4(a){var o=Eo();if(typeof a==="function"){var p=a;if(a=p(),Or){co(!0);try{p()}finally{co(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jp,lastRenderedState:a},o}function L4(a){a=y4(a);var o=a.queue,p=Ui.bind(null,Ja,o);return o.dispatch=p,[a.memoizedState,p]}function O4(a){var o=Eo();o.memoizedState=o.baseState=a;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=p,o=u4.bind(null,Ja,!0,p),p.dispatch=o,[a,o]}function ii(a,o){var p=na();return wi(p,ja,a,o)}function wi(a,o,p,m){return a.baseState=p,d4(a,ja,typeof m==="function"?m:jp)}function ci(a,o){var p=na();if(ja!==null)return wi(p,ja,a,o);return p.baseState=a,[a,p.queue.dispatch]}function Pz(a,o,p,m,t){if(C2(a))throw Error("Cannot update form state while rendering.");if(a=o.action,a!==null){var r={payload:t,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){r.listeners.push(v)}};K.T!==null?p(!0):r.isTransition=!1,m(r),p=o.pending,p===null?(r.next=o.pending=r,li(o,r)):(r.next=p.next,o.pending=p.next=r)}}function li(a,o){var{action:p,payload:m}=o,t=a.state;if(o.isTransition){var r=K.T,v={};v._updatedFibers=new Set,K.T=v;try{var b=p(t,m),f=K.S;f!==null&&f(v,b),zi(a,o,b)}catch(i){h4(a,o,i)}finally{r!==null&&v.types!==null&&(r.types!==null&&r.types!==v.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),r.types=v.types),K.T=r,r===null&&v._updatedFibers&&(a=v._updatedFibers.size,v._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{v=p(t,m),zi(a,o,v)}catch(i){h4(a,o,i)}}function zi(a,o,p){p!==null&&typeof p==="object"&&typeof p.then==="function"?(K.asyncTransitions++,p.then(F2,F2),p.then(function(m){$i(a,o,m)},function(m){return h4(a,o,m)}),o.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):$i(a,o,p)}function $i(a,o,p){o.status="fulfilled",o.value=p,Ji(o),a.state=p,o=a.pending,o!==null&&(p=o.next,p===o?a.pending=null:(p=p.next,o.next=p,li(a,p)))}function h4(a,o,p){var m=a.pending;if(a.pending=null,m!==null){m=m.next;do o.status="rejected",o.reason=p,Ji(o),o=o.next;while(o!==m)}a.action=null}function Ji(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function Yi(a,o){return o}function wv(a,o){if(Oa){var p=Ea.formState;if(p!==null){a:{var m=Ja;if(Oa){if(to){o:{var t=to;for(var r=Pp;t.nodeType!==8;){if(!r){t=null;break o}if(t=Qp(t.nextSibling),t===null){t=null;break o}}r=t.data,t=r===c7||r===a9?t:null}if(t){to=Qp(t.nextSibling),m=t.data===c7;break a}}Jt(m)}m=!1}m&&(o=p[0])}}return p=Eo(),p.memoizedState=p.baseState=o,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:o},p.queue=m,p=Ui.bind(null,Ja,m),m.dispatch=p,m=y4(!1),r=u4.bind(null,Ja,!1,m.queue),m=Eo(),t={state:o,dispatch:null,action:a,pending:null},m.queue=t,p=Pz.bind(null,Ja,t,r,p),t.dispatch=p,m.memoizedState=a,[o,p,!1]}function L2(a){var o=na();return Xi(o,ja,a)}function Xi(a,o,p){if(o=d4(a,o,Yi)[0],a=iv(jp)[0],typeof o==="object"&&o!==null&&typeof o.then==="function")try{var m=L0(o)}catch(v){if(v===Iv)throw kb;throw v}else m=o;o=na();var t=o.queue,r=t.dispatch;return p!==o.memoizedState&&(Ja.flags|=2048,cv(Tp|tp,{destroy:void 0},Iz.bind(null,t,p),null)),[m,r,a]}function Iz(a,o){a.action=o}function O2(a){var o=na(),p=ja;if(p!==null)return Xi(o,p,a);na(),o=o.memoizedState,p=na();var m=p.queue.dispatch;return p.memoizedState=a,[o,m,!1]}function cv(a,o,p,m){return a={tag:a,create:p,deps:m,inst:o,next:null},o=Ja.updateQueue,o===null&&(o=R2(),Ja.updateQueue=o),p=o.lastEffect,p===null?o.lastEffect=a.next=a:(m=p.next,p.next=a,a.next=m,o.lastEffect=a),a}function k4(a){var o=Eo();return a={current:a},o.memoizedState=a}function Yr(a,o,p,m){var t=Eo();Ja.flags|=a,t.memoizedState=cv(Tp|o,{destroy:void 0},p,m===void 0?null:m)}function fp(a,o,p,m){var t=na();m=m===void 0?null:m;var r=t.memoizedState.inst;ja!==null&&m!==null&&q4(m,ja.memoizedState.deps)?t.memoizedState=cv(o,r,p,m):(Ja.flags|=a,t.memoizedState=cv(Tp|o,r,p,m))}function h2(a,o){(Ja.mode&am)!==za?Yr(276826112,tp,a,o):Yr(8390656,tp,a,o)}function Az(a){Ja.flags|=4;var o=Ja.updateQueue;if(o===null)o=R2(),Ja.updateQueue=o,o.events=[a];else{var p=o.events;p===null?o.events=[a]:p.push(a)}}function N4(a){var o=Eo(),p={impl:a};return o.memoizedState=p,function(){if((ga&Oo)!==Fo)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return p.impl.apply(void 0,arguments)}}function k2(a){var o=na().memoizedState;return Az({ref:o,nextImpl:a}),function(){if((ga&Oo)!==Fo)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return o.impl.apply(void 0,arguments)}}function M4(a,o){var p=4194308;return(Ja.mode&am)!==za&&(p|=134217728),Yr(p,dp,a,o)}function Zi(a,o){if(typeof o==="function"){a=a();var p=o(a);return function(){typeof p==="function"?p():o(null)}}if(o!==null&&o!==void 0)return o.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(o).join(", ")+"}"),a=a(),o.current=a,function(){o.current=null}}function g4(a,o,p){typeof o!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null"),p=p!==null&&p!==void 0?p.concat([a]):null;var m=4194308;(Ja.mode&am)!==za&&(m|=134217728),Yr(m,dp,Zi.bind(null,o,a),p)}function N2(a,o,p){typeof o!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null"),p=p!==null&&p!==void 0?p.concat([a]):null,fp(4,dp,Zi.bind(null,o,a),p)}function F4(a,o){return Eo().memoizedState=[a,o===void 0?null:o],a}function M2(a,o){var p=na();o=o===void 0?null:o;var m=p.memoizedState;if(o!==null&&q4(o,m[1]))return m[0];return p.memoizedState=[a,o],a}function C4(a,o){var p=Eo();o=o===void 0?null:o;var m=a();if(Or){co(!0);try{a()}finally{co(!1)}}return p.memoizedState=[m,o],m}function g2(a,o){var p=na();o=o===void 0?null:o;var m=p.memoizedState;if(o!==null&&q4(o,m[1]))return m[0];if(m=a(),Or){co(!0);try{a()}finally{co(!1)}}return p.memoizedState=[m,o],m}function P4(a,o){var p=Eo();return I4(p,a,o)}function Gi(a,o){var p=na();return qi(p,ja.memoizedState,a,o)}function _i(a,o){var p=na();return ja===null?I4(p,a,o):qi(p,ja.memoizedState,a,o)}function I4(a,o,p){if(p===void 0||(ot&1073741824)!==0&&(Ha&261930)===0)return a.memoizedState=o;return a.memoizedState=p,a=Qw(),Ja.lanes|=a,Tt|=a,p}function qi(a,o,p,m){if(op(p,o))return p;if(Tv.current!==null)return a=I4(a,p,m),op(a,o)||(Ko=!0),a;if((ot&42)===0||(ot&1073741824)!==0&&(Ha&261930)===0)return Ko=!0,a.memoizedState=p;return a=Qw(),Ja.lanes|=a,Tt|=a,o}function F2(){K.asyncTransitions--}function Qi(a,o,p,m,t){var r=Aa.p;Aa.p=r!==0&&r<ep?r:ep;var v=K.T,b={};b._updatedFibers=new Set,K.T=b,u4(a,!1,o,p);try{var f=t(),i=K.S;if(i!==null&&i(b,f),f!==null&&typeof f==="object"&&typeof f.then==="function"){K.asyncTransitions++,f.then(F2,F2);var Y=gz(f,m);h0(a,o,Y,qp(a))}else h0(a,o,m,qp(a))}catch(X){h0(a,o,{then:function(){},status:"rejected",reason:X},qp(a))}finally{Aa.p=r,v!==null&&b.types!==null&&(v.types!==null&&v.types!==b.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),v.types=b.types),K.T=v,v===null&&b._updatedFibers&&(a=b._updatedFibers.size,b._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function A4(a,o,p,m){if(a.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var t=Bi(a).queue;Nz(a),Qi(a,t,o,Tr,p===null?I:function(){return Ki(a),p(m)})}function Bi(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:Tr,baseState:Tr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jp,lastRenderedState:Tr},next:null};var p={};return o.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jp,lastRenderedState:p},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function Ki(a){K.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var o=Bi(a);o.next===null&&(o=a.alternate.memoizedState),h0(a,o.next.queue,{},qp(a))}function T4(){var a=y4(!1);return a=Qi.bind(null,Ja,a.queue,!0,!1),Eo().memoizedState=a,[!1,a]}function Hi(){var a=iv(jp)[0],o=na().memoizedState;return[typeof a==="boolean"?a:L0(a),o]}function Wi(){var a=O0(jp)[0],o=na().memoizedState;return[typeof a==="boolean"?a:L0(a),o]}function Xr(){return fo(A5)}function n4(){var a=Eo(),o=Ea.identifierPrefix;if(Oa){var p=jm,m=Dm;p=(m&~(1<<32-so(m)-1)).toString(32)+p,o="_"+o+"R_"+p,p=Cb++,0<p&&(o+="H"+p.toString(32)),o+="_"}else p=qY++,o="_"+o+"r_"+p.toString(32)+"_";return a.memoizedState=o}function S4(){return Eo().memoizedState=Tz.bind(null,Ja)}function Tz(a,o){for(var p=a.return;p!==null;){switch(p.tag){case 24:case 3:var m=qp(p),t=Zt(m),r=Gt(p,t,m);r!==null&&(wm(m,"refresh()",a),Jo(r,p,m),d0(r,p,m)),a=c4(),o!==null&&o!==void 0&&r!==null&&console.error("The seed argument is not enabled outside experimental channels."),t.payload={cache:a};return}p=p.return}}function nz(a,o,p){var m=arguments;typeof m[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),m=qp(a);var t={lane:m,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};C2(a)?di(o,t):(t=e1(a,o,t,m),t!==null&&(wm(m,"dispatch()",a),Jo(t,a,m),Ri(t,o,m)))}function Ui(a,o,p){var m=arguments;typeof m[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),m=qp(a),h0(a,o,p,m)&&wm(m,"setState()",a)}function h0(a,o,p,m){var t={lane:m,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};if(C2(a))di(o,t);else{var r=a.alternate;if(a.lanes===0&&(r===null||r.lanes===0)&&(r=o.lastRenderedReducer,r!==null)){var v=K.H;K.H=pm;try{var b=o.lastRenderedState,f=r(b,p);if(t.hasEagerState=!0,t.eagerState=f,op(f,b))return c2(a,o,t,0),Ea===null&&w2(),!1}catch(i){}finally{K.H=v}}if(p=e1(a,o,t,m),p!==null)return Jo(p,a,m),Ri(p,o,m),!0}return!1}function u4(a,o,p,m){if(K.T===null&&Ur===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),m={lane:2,revertLane:Q3(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},C2(a)){if(o)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else o=e1(a,p,m,2),o!==null&&(wm(2,"setOptimistic()",a),Jo(o,a,2))}function C2(a){var o=a.alternate;return a===Ja||o!==null&&o===Ja}function di(a,o){uv=Fb=!0;var p=a.pending;p===null?o.next=o:(o.next=p.next,p.next=o),a.pending=o}function Ri(a,o,p){if((p&4194048)!==0){var m=o.lanes;m&=a.pendingLanes,p|=m,o.lanes=p,h7(a,p)}}function x4(a){if(a!==null&&typeof a!=="function"){var o=String(a);Wl.has(o)||(Wl.add(o),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function V4(a,o,p,m){var t=a.memoizedState,r=p(m,t);if(a.mode&Vo){co(!0);try{r=p(m,t)}finally{co(!1)}}r===void 0&&(o=V(o)||"Component",Ql.has(o)||(Ql.add(o),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",o))),t=r===null||r===void 0?t:da({},t,r),a.memoizedState=t,a.lanes===0&&(a.updateQueue.baseState=t)}function yi(a,o,p,m,t,r,v){var b=a.stateNode;if(typeof b.shouldComponentUpdate==="function"){if(p=b.shouldComponentUpdate(m,r,v),a.mode&Vo){co(!0);try{p=b.shouldComponentUpdate(m,r,v)}finally{co(!1)}}return p===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",V(o)||"Component"),p}return o.prototype&&o.prototype.isPureReactComponent?!q0(p,m)||!q0(t,r):!0}function Li(a,o,p,m){var t=o.state;typeof o.componentWillReceiveProps==="function"&&o.componentWillReceiveProps(p,m),typeof o.UNSAFE_componentWillReceiveProps==="function"&&o.UNSAFE_componentWillReceiveProps(p,m),o.state!==t&&(a=L(a)||"Component",Xl.has(a)||(Xl.add(a),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),Tf.enqueueReplaceState(o,o.state,null))}function Zr(a,o){var p=o;if("ref"in o){p={};for(var m in o)m!=="ref"&&(p[m]=o[m])}if(a=a.defaultProps){p===o&&(p=da({},p));for(var t in a)p[t]===void 0&&(p[t]=a[t])}return p}function Oi(a){_f(a),console.warn(`%s
|
|
100
|
-
|
|
101
|
-
%s
|
|
102
|
-
`,xv?"An error occurred in the <"+xv+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
103
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function hi(a){var o=xv?"The above error occurred in the <"+xv+"> component.":"The above error occurred in one of your React components.",p="React will try to recreate this component tree from scratch using the error boundary you provided, "+((nf||"Anonymous")+".");if(typeof a==="object"&&a!==null&&typeof a.environmentName==="string"){var m=a.environmentName;a=[`%o
|
|
104
|
-
|
|
105
|
-
%s
|
|
106
|
-
|
|
107
|
-
%s
|
|
108
|
-
`,a,o,p].slice(0),typeof a[0]==="string"?a.splice(0,1,f9+" "+a[0],i9,w1+m+w1,w9):a.splice(0,0,f9,i9,w1+m+w1,w9),a.unshift(console),m=AY.apply(console.error,a),m()}else console.error(`%o
|
|
109
|
-
|
|
110
|
-
%s
|
|
111
|
-
|
|
112
|
-
%s
|
|
113
|
-
`,a,o,p)}function ki(a){_f(a)}function P2(a,o){try{xv=o.source?L(o.source):null,nf=null;var p=o.value;if(K.actQueue!==null)K.thrownErrors.push(p);else{var m=a.onUncaughtError;m(p,{componentStack:o.stack})}}catch(t){setTimeout(function(){throw t})}}function Ni(a,o,p){try{xv=p.source?L(p.source):null,nf=L(o);var m=a.onCaughtError;m(p.value,{componentStack:p.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(t){setTimeout(function(){throw t})}}function D4(a,o,p){return p=Zt(p),p.tag=gf,p.payload={element:null},p.callback=function(){F(o.source,P2,a,o)},p}function j4(a){return a=Zt(a),a.tag=gf,a}function E4(a,o,p,m){var t=p.type.getDerivedStateFromError;if(typeof t==="function"){var r=m.value;a.payload=function(){return t(r)},a.callback=function(){d6(p),F(m.source,Ni,o,p,m)}}var v=p.stateNode;v!==null&&typeof v.componentDidCatch==="function"&&(a.callback=function(){d6(p),F(m.source,Ni,o,p,m),typeof t!=="function"&&(St===null?St=new Set([this]):St.add(this)),XY(this,m),typeof t==="function"||(p.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",L(p)||"Unknown")})}function Sz(a,o,p,m,t){if(p.flags|=32768,Um&&I0(a,t),m!==null&&typeof m==="object"&&typeof m.then==="function"){if(o=p.alternate,o!==null&&bv(o,p,t,!0),Oa&&(ym=!0),p=Up.current,p!==null){switch(p.tag){case 31:case 13:return Ap===null?D2():p.alternate===null&&zo===rt&&(zo=Ab),p.flags&=-257,p.flags|=65536,p.lanes=t,m===Nb?p.flags|=16384:(o=p.updateQueue,o===null?p.updateQueue=new Set([m]):o.add(m),Z3(a,m,t)),!1;case 22:return p.flags|=65536,m===Nb?p.flags|=16384:(o=p.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([m])},p.updateQueue=o):(p=o.retryQueue,p===null?o.retryQueue=new Set([m]):p.add(m)),Z3(a,m,t)),!1}throw Error("Unexpected Suspense handler tag ("+p.tag+"). This is a bug in React.")}return Z3(a,m,t),D2(),!1}if(Oa)return ym=!0,o=Up.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=t,m!==Wf&&B0(Xp(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:m}),p))):(m!==Wf&&B0(Xp(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:m}),p)),a=a.current.alternate,a.flags|=65536,t&=-t,a.lanes|=t,m=Xp(m,p),t=D4(a.stateNode,m,t),W2(a,t),zo!==It&&(zo=hr)),!1;var r=Xp(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:m}),p);if(h5===null?h5=[r]:h5.push(r),zo!==It&&(zo=hr),o===null)return!0;m=Xp(m,p),p=o;do{switch(p.tag){case 3:return p.flags|=65536,a=t&-t,p.lanes|=a,a=D4(p.stateNode,m,a),W2(p,a),!1;case 1:if(o=p.type,r=p.stateNode,(p.flags&128)===0&&(typeof o.getDerivedStateFromError==="function"||r!==null&&typeof r.componentDidCatch==="function"&&(St===null||!St.has(r))))return p.flags|=65536,t&=-t,p.lanes|=t,t=j4(t),E4(t,a,p,m),W2(p,t),!1}p=p.return}while(p!==null);return!1}function Po(a,o,p,m){o.child=a===null?vl(o,null,p,m):Lr(o,a.child,p,m)}function Mi(a,o,p,m,t){p=p.render;var r=o.ref;if("ref"in m){var v={};for(var b in m)b!=="ref"&&(v[b]=m[b])}else v=m;if(zr(o),m=Q4(a,o,p,v,r,t),b=K4(),a!==null&&!Ko)return H4(a,o,t),Tm(a,o,t);return Oa&&b&&r4(o),o.flags|=1,Po(a,o,m,t),o.child}function gi(a,o,p,m,t){if(a===null){var r=p.type;if(typeof r==="function"&&!o4(r)&&r.defaultProps===void 0&&p.compare===null)return p=ir(r),o.tag=15,o.type=p,e4(o,r),Fi(a,o,p,m,t);return a=p4(p.type,null,m,o,o.mode,t),a.ref=o.ref,a.return=o,o.child=a}if(r=a.child,!r3(a,t)){var v=r.memoizedProps;if(p=p.compare,p=p!==null?p:q0,p(v,m)&&a.ref===o.ref)return Tm(a,o,t)}return o.flags|=1,a=Cm(r,m),a.ref=o.ref,a.return=o,o.child=a}function Fi(a,o,p,m,t){if(a!==null){var r=a.memoizedProps;if(q0(r,m)&&a.ref===o.ref&&o.type===a.type)if(Ko=!1,o.pendingProps=m=r,r3(a,t))(a.flags&131072)!==0&&(Ko=!0);else return o.lanes=a.lanes,Tm(a,o,t)}return s4(a,o,p,m,t)}function Ci(a,o,p,m){var t=m.children,r=a!==null?a.memoizedState:null;if(a===null&&o.stateNode===null&&(o.stateNode={_visibility:f5,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((o.flags&128)!==0){if(r=r!==null?r.baseLanes|p:p,a!==null){m=o.child=a.child;for(t=0;m!==null;)t=t|m.lanes|m.childLanes,m=m.sibling;m=t&~r}else m=0,o.child=null;return Pi(a,o,r,p,m)}if((p&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&_2(o,r!==null?r.cachePool:null),r!==null?oi(o,r):Z4(o),pi(o);else return m=o.lanes=536870912,Pi(a,o,r!==null?r.baseLanes|p:p,p,m)}else r!==null?(_2(o,r.cachePool),oi(o,r),qt(o),o.memoizedState=null):(a!==null&&_2(o,null),Z4(o),qt(o));return Po(a,o,t,p),o.child}function k0(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:f5,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function Pi(a,o,p,m,t){var r=$4();return r=r===null?null:{parent:qo._currentValue,pool:r},o.memoizedState={baseLanes:p,cachePool:r},a!==null&&_2(o,null),Z4(o),pi(o),a!==null&&bv(a,o,m,!0),o.childLanes=t,null}function I2(a,o){var p=o.hidden;return p!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
114
|
-
- <Activity %s>
|
|
115
|
-
+ <Activity %s>`,p===!0?"hidden":p===!1?"hidden={false}":"hidden={...}",p?'mode="hidden"':'mode="visible"'),o=T2({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function Ii(a,o,p){return Lr(o,a.child,null,p),a=I2(o,o.pendingProps),a.flags|=2,_p(o),o.memoizedState=null,a}function uz(a,o,p){var m=o.pendingProps,t=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(Oa){if(m.mode==="hidden")return a=I2(o,m),o.lanes=536870912,k0(null,a);if(_4(o),(a=to)?(p=lc(a,Pp),p=p!==null&&p.data===Cr?p:null,p!==null&&(m={dehydrated:p,treeContext:h6(),retryLane:536870912,hydrationErrors:null},o.memoizedState=m,m=L6(p),m.return=o,o.child=m,To=o,to=null)):p=null,p===null)throw $2(o,a),Jt(o);return o.lanes=536870912,null}return I2(o,m)}var r=a.memoizedState;if(r!==null){var v=r.dehydrated;if(_4(o),t)if(o.flags&256)o.flags&=-257,o=Ii(a,o,p);else if(o.memoizedState!==null)o.child=a.child,o.flags|=128,o=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(N6(),(p&536870912)!==0&&V2(o),Ko||bv(a,o,p,!1),t=(p&a.childLanes)!==0,Ko||t){if(m=Ea,m!==null&&(v=k7(m,p),v!==0&&v!==r.retryLane))throw r.retryLane=v,uo(a,v),Jo(m,a,v),Sf;D2(),o=Ii(a,o,p)}else a=r.treeContext,to=Qp(v.nextSibling),To=o,Oa=!0,kt=null,ym=!1,Wp=null,Pp=!1,a!==null&&k6(o,a),o=I2(o,m),o.flags|=4096;return o}return r=a.child,m={mode:m.mode,children:m.children},(p&536870912)!==0&&(p&a.lanes)!==0&&V2(o),a=Cm(r,m),a.ref=o.ref,o.child=a,a.return=o,a}function A2(a,o){var p=o.ref;if(p===null)a!==null&&a.ref!==null&&(o.flags|=4194816);else{if(typeof p!=="function"&&typeof p!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(a===null||a.ref!==p)o.flags|=4194816}}function s4(a,o,p,m,t){if(p.prototype&&typeof p.prototype.render==="function"){var r=V(p)||"Unknown";Ul[r]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",r,r),Ul[r]=!0)}if(o.mode&Vo&&om.recordLegacyContextWarning(o,null),a===null&&(e4(o,o.type),p.contextTypes&&(r=V(p)||"Unknown",Rl[r]||(Rl[r]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",r)))),zr(o),p=Q4(a,o,p,m,void 0,t),m=K4(),a!==null&&!Ko)return H4(a,o,t),Tm(a,o,t);return Oa&&m&&r4(o),o.flags|=1,Po(a,o,p,t),o.child}function Ai(a,o,p,m,t,r){if(zr(o),mt=-1,W5=a!==null&&a.type!==o.type,o.updateQueue=null,p=B4(o,m,p,t),mi(a,o),m=K4(),a!==null&&!Ko)return H4(a,o,r),Tm(a,o,r);return Oa&&m&&r4(o),o.flags|=1,Po(a,o,p,r),o.child}function Ti(a,o,p,m,t){switch(H(o)){case!1:var r=o.stateNode,v=new o.type(o.memoizedProps,r.context).state;r.updater.enqueueSetState(r,v,null);break;case!0:o.flags|=128,o.flags|=65536,r=Error("Simulated error coming from DevTools");var b=t&-t;if(o.lanes|=b,v=Ea,v===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");b=j4(b),E4(b,v,o,Xp(r,o)),W2(o,b)}if(zr(o),o.stateNode===null){if(v=ht,r=p.contextType,"contextType"in p&&r!==null&&(r===void 0||r.$$typeof!==Km)&&!Hl.has(p)&&(Hl.add(p),b=r===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof r!=="object"?" However, it is set to a "+typeof r+".":r.$$typeof===S3?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(r).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",V(p)||"Component",b)),typeof r==="object"&&r!==null&&(v=fo(r)),r=new p(m,v),o.mode&Vo){co(!0);try{r=new p(m,v)}finally{co(!1)}}if(v=o.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Tf,o.stateNode=r,r._reactInternals=o,r._reactInternalInstance=Yl,typeof p.getDerivedStateFromProps==="function"&&v===null&&(v=V(p)||"Component",Zl.has(v)||(Zl.add(v),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",v,r.state===null?"null":"undefined",v))),typeof p.getDerivedStateFromProps==="function"||typeof r.getSnapshotBeforeUpdate==="function"){var f=b=v=null;if(typeof r.componentWillMount==="function"&&r.componentWillMount.__suppressDeprecationWarning!==!0?v="componentWillMount":typeof r.UNSAFE_componentWillMount==="function"&&(v="UNSAFE_componentWillMount"),typeof r.componentWillReceiveProps==="function"&&r.componentWillReceiveProps.__suppressDeprecationWarning!==!0?b="componentWillReceiveProps":typeof r.UNSAFE_componentWillReceiveProps==="function"&&(b="UNSAFE_componentWillReceiveProps"),typeof r.componentWillUpdate==="function"&&r.componentWillUpdate.__suppressDeprecationWarning!==!0?f="componentWillUpdate":typeof r.UNSAFE_componentWillUpdate==="function"&&(f="UNSAFE_componentWillUpdate"),v!==null||b!==null||f!==null){r=V(p)||"Component";var i=typeof p.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";_l.has(r)||(_l.add(r),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
116
|
-
|
|
117
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
118
|
-
|
|
119
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
120
|
-
https://react.dev/link/unsafe-component-lifecycles`,r,i,v!==null?`
|
|
121
|
-
`+v:"",b!==null?`
|
|
122
|
-
`+b:"",f!==null?`
|
|
123
|
-
`+f:""))}}r=o.stateNode,v=V(p)||"Component",r.render||(p.prototype&&typeof p.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",v):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",v)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",v),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",v),r.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",v),p.childContextTypes&&!Kl.has(p)&&(Kl.add(p),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",v)),p.contextTypes&&!Bl.has(p)&&(Bl.add(p),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",v)),typeof r.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",v),p.prototype&&p.prototype.isPureReactComponent&&typeof r.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",V(p)||"A pure component"),typeof r.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",v),typeof r.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",v),typeof r.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",v),typeof r.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",v),b=r.props!==m,r.props!==void 0&&b&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",v),r.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",v,v),typeof r.getSnapshotBeforeUpdate!=="function"||typeof r.componentDidUpdate==="function"||Gl.has(p)||(Gl.add(p),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",V(p))),typeof r.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof r.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof p.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",v),(b=r.state)&&(typeof b!=="object"||yo(b))&&console.error("%s.state: must be set to an object or null",v),typeof r.getChildContext==="function"&&typeof p.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",v),r=o.stateNode,r.props=m,r.state=o.memoizedState,r.refs={},Y4(o),v=p.contextType,r.context=typeof v==="object"&&v!==null?fo(v):ht,r.state===m&&(v=V(p)||"Component",ql.has(v)||(ql.add(v),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",v))),o.mode&Vo&&om.recordLegacyContextWarning(o,r),om.recordUnsafeLifecycleWarnings(o,r),r.state=o.memoizedState,v=p.getDerivedStateFromProps,typeof v==="function"&&(V4(o,p,v,m),r.state=o.memoizedState),typeof p.getDerivedStateFromProps==="function"||typeof r.getSnapshotBeforeUpdate==="function"||typeof r.UNSAFE_componentWillMount!=="function"&&typeof r.componentWillMount!=="function"||(v=r.state,typeof r.componentWillMount==="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount==="function"&&r.UNSAFE_componentWillMount(),v!==r.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",L(o)||"Component"),Tf.enqueueReplaceState(r,r.state,null)),y0(o,m,r,t),R0(),r.state=o.memoizedState),typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&am)!==za&&(o.flags|=134217728),r=!0}else if(a===null){r=o.stateNode;var Y=o.memoizedProps;b=Zr(p,Y),r.props=b;var X=r.context;f=p.contextType,v=ht,typeof f==="object"&&f!==null&&(v=fo(f)),i=p.getDerivedStateFromProps,f=typeof i==="function"||typeof r.getSnapshotBeforeUpdate==="function",Y=o.pendingProps!==Y,f||typeof r.UNSAFE_componentWillReceiveProps!=="function"&&typeof r.componentWillReceiveProps!=="function"||(Y||X!==v)&&Li(o,r,m,v),Pt=!1;var z=o.memoizedState;r.state=z,y0(o,m,r,t),R0(),X=o.memoizedState,Y||z!==X||Pt?(typeof i==="function"&&(V4(o,p,i,m),X=o.memoizedState),(b=Pt||yi(o,p,b,m,z,X,v))?(f||typeof r.UNSAFE_componentWillMount!=="function"&&typeof r.componentWillMount!=="function"||(typeof r.componentWillMount==="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount==="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&am)!==za&&(o.flags|=134217728)):(typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&am)!==za&&(o.flags|=134217728),o.memoizedProps=m,o.memoizedState=X),r.props=m,r.state=X,r.context=v,r=b):(typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&am)!==za&&(o.flags|=134217728),r=!1)}else{r=o.stateNode,X4(a,o),v=o.memoizedProps,f=Zr(p,v),r.props=f,i=o.pendingProps,z=r.context,X=p.contextType,b=ht,typeof X==="object"&&X!==null&&(b=fo(X)),Y=p.getDerivedStateFromProps,(X=typeof Y==="function"||typeof r.getSnapshotBeforeUpdate==="function")||typeof r.UNSAFE_componentWillReceiveProps!=="function"&&typeof r.componentWillReceiveProps!=="function"||(v!==i||z!==b)&&Li(o,r,m,b),Pt=!1,z=o.memoizedState,r.state=z,y0(o,m,r,t),R0();var q=o.memoizedState;v!==i||z!==q||Pt||a!==null&&a.dependencies!==null&&Y2(a.dependencies)?(typeof Y==="function"&&(V4(o,p,Y,m),q=o.memoizedState),(f=Pt||yi(o,p,f,m,z,q,b)||a!==null&&a.dependencies!==null&&Y2(a.dependencies))?(X||typeof r.UNSAFE_componentWillUpdate!=="function"&&typeof r.componentWillUpdate!=="function"||(typeof r.componentWillUpdate==="function"&&r.componentWillUpdate(m,q,b),typeof r.UNSAFE_componentWillUpdate==="function"&&r.UNSAFE_componentWillUpdate(m,q,b)),typeof r.componentDidUpdate==="function"&&(o.flags|=4),typeof r.getSnapshotBeforeUpdate==="function"&&(o.flags|=1024)):(typeof r.componentDidUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=4),typeof r.getSnapshotBeforeUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=1024),o.memoizedProps=m,o.memoizedState=q),r.props=m,r.state=q,r.context=b,r=f):(typeof r.componentDidUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=4),typeof r.getSnapshotBeforeUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=1024),r=!1)}if(b=r,A2(a,o),v=(o.flags&128)!==0,b||v){if(b=o.stateNode,B(o),v&&typeof p.getDerivedStateFromError!=="function")p=null,pp=-1;else if(p=u8(b),o.mode&Vo){co(!0);try{u8(b)}finally{co(!1)}}o.flags|=1,a!==null&&v?(o.child=Lr(o,a.child,null,t),o.child=Lr(o,null,p,t)):Po(a,o,p,t),o.memoizedState=b.state,a=o.child}else a=Tm(a,o,t);return t=o.stateNode,r&&t.props!==m&&(Vv||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",L(o)||"a component"),Vv=!0),a}function ni(a,o,p,m){return lr(),o.flags|=256,Po(a,o,p,m),o.child}function e4(a,o){o&&o.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
124
|
-
%s.childContextTypes = ...`,o.displayName||o.name||"Component"),typeof o.getDerivedStateFromProps==="function"&&(a=V(o)||"Unknown",yl[a]||(console.error("%s: Function components do not support getDerivedStateFromProps.",a),yl[a]=!0)),typeof o.contextType==="object"&&o.contextType!==null&&(o=V(o)||"Unknown",dl[o]||(console.error("%s: Function components do not support contextType.",o),dl[o]=!0))}function a3(a){return{baseLanes:a,cachePool:A6()}}function o3(a,o,p){return a=a!==null?a.childLanes&~p:0,o&&(a|=zp),a}function Si(a,o,p){var m,t=o.pendingProps;y(o)&&(o.flags|=128);var r=!1,v=(o.flags&128)!==0;if((m=v)||(m=a!==null&&a.memoizedState===null?!1:(Go.current&K5)!==0),m&&(r=!0,o.flags&=-129),m=(o.flags&32)!==0,o.flags&=-33,a===null){if(Oa){if(r?_t(o):qt(o),(a=to)?(p=lc(a,Pp),p=p!==null&&p.data!==Cr?p:null,p!==null&&(m={dehydrated:p,treeContext:h6(),retryLane:536870912,hydrationErrors:null},o.memoizedState=m,m=L6(p),m.return=o,o.child=m,To=o,to=null)):p=null,p===null)throw $2(o,a),Jt(o);return k3(p)?o.lanes=32:o.lanes=536870912,null}var b=t.children;if(t=t.fallback,r){qt(o);var f=o.mode;return b=T2({mode:"hidden",children:b},f),t=wr(t,f,p,null),b.return=o,t.return=o,b.sibling=t,o.child=b,t=o.child,t.memoizedState=a3(p),t.childLanes=o3(a,m,p),o.memoizedState=uf,k0(null,t)}return _t(o),p3(o,b)}var i=a.memoizedState;if(i!==null){var Y=i.dehydrated;if(Y!==null){if(v)o.flags&256?(_t(o),o.flags&=-257,o=m3(a,o,p)):o.memoizedState!==null?(qt(o),o.child=a.child,o.flags|=128,o=null):(qt(o),b=t.fallback,f=o.mode,t=T2({mode:"visible",children:t.children},f),b=wr(b,f,p,null),b.flags|=2,t.return=o,b.return=o,t.sibling=b,o.child=t,Lr(o,a.child,null,p),t=o.child,t.memoizedState=a3(p),t.childLanes=o3(a,m,p),o.memoizedState=uf,o=k0(null,t));else if(_t(o),N6(),(p&536870912)!==0&&V2(o),k3(Y)){if(m=Y.nextSibling&&Y.nextSibling.dataset,m){b=m.dgst;var X=m.msg;f=m.stck;var z=m.cstck}r=X,m=b,t=f,Y=z,b=r,f=Y,b=b?Error(b):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),b.stack=t||"",b.digest=m,m=f===void 0?null:f,t={value:b,source:null,stack:m},typeof m==="string"&&Hf.set(b,t),B0(t),o=m3(a,o,p)}else if(Ko||bv(a,o,p,!1),m=(p&a.childLanes)!==0,Ko||m){if(m=Ea,m!==null&&(t=k7(m,p),t!==0&&t!==i.retryLane))throw i.retryLane=t,uo(a,t),Jo(m,a,t),Sf;h3(Y)||D2(),o=m3(a,o,p)}else h3(Y)?(o.flags|=192,o.child=a.child,o=null):(a=i.treeContext,to=Qp(Y.nextSibling),To=o,Oa=!0,kt=null,ym=!1,Wp=null,Pp=!1,a!==null&&k6(o,a),o=p3(o,t.children),o.flags|=4096);return o}}if(r)return qt(o),b=t.fallback,f=o.mode,z=a.child,Y=z.sibling,t=Cm(z,{mode:"hidden",children:t.children}),t.subtreeFlags=z.subtreeFlags&65011712,Y!==null?b=Cm(Y,b):(b=wr(b,f,p,null),b.flags|=2),b.return=o,t.return=o,t.sibling=b,o.child=t,k0(null,t),t=o.child,b=a.child.memoizedState,b===null?b=a3(p):(f=b.cachePool,f!==null?(z=qo._currentValue,f=f.parent!==z?{parent:z,pool:z}:f):f=A6(),b={baseLanes:b.baseLanes|p,cachePool:f}),t.memoizedState=b,t.childLanes=o3(a,m,p),o.memoizedState=uf,k0(a.child,t);return i!==null&&(p&62914560)===p&&(p&a.lanes)!==0&&V2(o),_t(o),p=a.child,a=p.sibling,p=Cm(p,{mode:"visible",children:t.children}),p.return=o,p.sibling=null,a!==null&&(m=o.deletions,m===null?(o.deletions=[a],o.flags|=16):m.push(a)),o.child=p,o.memoizedState=null,p}function p3(a,o){return o=T2({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function T2(a,o){return a=k(22,a,null,o),a.lanes=0,a}function m3(a,o,p){return Lr(o,a.child,null,p),a=p3(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function ui(a,o,p){a.lanes|=o;var m=a.alternate;m!==null&&(m.lanes|=o),i4(a.return,o,p)}function t3(a,o,p,m,t,r){var v=a.memoizedState;v===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:m,tail:p,tailMode:t,treeForkCount:r}:(v.isBackwards=o,v.rendering=null,v.renderingStartTime=0,v.last=m,v.tail=p,v.tailMode=t,v.treeForkCount=r)}function xi(a,o,p){var m=o.pendingProps,t=m.revealOrder,r=m.tail,v=m.children,b=Go.current;if((m=(b&K5)!==0)?(b=b&nv|K5,o.flags|=128):b&=nv,d(Go,b,o),b=t==null?"null":t,t!=="forwards"&&t!=="unstable_legacy-backwards"&&t!=="together"&&t!=="independent"&&!Ll[b])if(Ll[b]=!0,t==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(t==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof t==="string")switch(t.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',t,t.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',t,t.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',t)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',t);if(b=r==null?"null":r,!Ib[b])if(r==null){if(t==="forwards"||t==="backwards"||t==="unstable_legacy-backwards")Ib[b]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else r!=="visible"&&r!=="collapsed"&&r!=="hidden"?(Ib[b]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',r)):t!=="forwards"&&t!=="backwards"&&t!=="unstable_legacy-backwards"&&(Ib[b]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r));a:if((t==="forwards"||t==="backwards"||t==="unstable_legacy-backwards")&&v!==void 0&&v!==null&&v!==!1)if(yo(v)){for(b=0;b<v.length;b++)if(!s6(v[b],b))break a}else if(b=ha(v),typeof b==="function"){if(b=b.call(v))for(var f=b.next(),i=0;!f.done;f=b.next()){if(!s6(f.value,i))break a;i++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t);if(Po(a,o,v,p),Oa?($t(),v=i5):v=0,!m&&a!==null&&(a.flags&128)!==0)a:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&ui(a,p,o);else if(a.tag===19)ui(a,p,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break a;for(;a.sibling===null;){if(a.return===null||a.return===o)break a;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(t){case"forwards":p=o.child;for(t=null;p!==null;)a=p.alternate,a!==null&&U2(a)===null&&(t=p),p=p.sibling;p=t,p===null?(t=o.child,o.child=null):(t=p.sibling,p.sibling=null),t3(o,!1,t,p,r,v);break;case"backwards":case"unstable_legacy-backwards":p=null,t=o.child;for(o.child=null;t!==null;){if(a=t.alternate,a!==null&&U2(a)===null){o.child=t;break}a=t.sibling,t.sibling=p,p=t,t=a}t3(o,!0,p,null,r,v);break;case"together":t3(o,!1,null,null,void 0,v);break;default:o.memoizedState=null}return o.child}function Tm(a,o,p){if(a!==null&&(o.dependencies=a.dependencies),pp=-1,Tt|=o.lanes,(p&o.childLanes)===0)if(a!==null){if(bv(a,o,p,!1),(p&o.childLanes)===0)return null}else return null;if(a!==null&&o.child!==a.child)throw Error("Resuming work not yet implemented.");if(o.child!==null){a=o.child,p=Cm(a,a.pendingProps),o.child=p;for(p.return=o;a.sibling!==null;)a=a.sibling,p=p.sibling=Cm(a,a.pendingProps),p.return=o;p.sibling=null}return o.child}function r3(a,o){if((a.lanes&o)!==0)return!0;return a=a.dependencies,a!==null&&Y2(a)?!0:!1}function xz(a,o,p){switch(o.tag){case 3:C(o,o.stateNode.containerInfo),Yt(o,qo,a.memoizedState.cache),lr();break;case 27:case 5:Pa(o);break;case 4:C(o,o.stateNode.containerInfo);break;case 10:Yt(o,o.type,o.memoizedProps.value);break;case 12:(p&o.childLanes)!==0&&(o.flags|=4),o.flags|=2048;var m=o.stateNode;m.effectDuration=-0,m.passiveEffectDuration=-0;break;case 31:if(o.memoizedState!==null)return o.flags|=128,_4(o),null;break;case 13:if(m=o.memoizedState,m!==null){if(m.dehydrated!==null)return _t(o),o.flags|=128,null;if((p&o.child.childLanes)!==0)return Si(a,o,p);return _t(o),a=Tm(a,o,p),a!==null?a.sibling:null}_t(o);break;case 19:var t=(a.flags&128)!==0;if(m=(p&o.childLanes)!==0,m||(bv(a,o,p,!1),m=(p&o.childLanes)!==0),t){if(m)return xi(a,o,p);o.flags|=128}if(t=o.memoizedState,t!==null&&(t.rendering=null,t.tail=null,t.lastEffect=null),d(Go,Go.current,o),m)break;else return null;case 22:return o.lanes=0,Ci(a,o,p,o.pendingProps);case 24:Yt(o,qo,a.memoizedState.cache)}return Tm(a,o,p)}function v3(a,o,p){if(o._debugNeedsRemount&&a!==null){p=p4(o.type,o.key,o.pendingProps,o._debugOwner||null,o.mode,o.lanes),p._debugStack=o._debugStack,p._debugTask=o._debugTask;var m=o.return;if(m===null)throw Error("Cannot swap the root fiber.");if(a.alternate=null,o.alternate=null,p.index=o.index,p.sibling=o.sibling,p.return=o.return,p.ref=o.ref,p._debugInfo=o._debugInfo,o===m.child)m.child=p;else{var t=m.child;if(t===null)throw Error("Expected parent to have a child.");for(;t.sibling!==o;)if(t=t.sibling,t===null)throw Error("Expected to find the previous sibling.");t.sibling=p}return o=m.deletions,o===null?(m.deletions=[a],m.flags|=16):o.push(a),p.flags|=2,p}if(a!==null)if(a.memoizedProps!==o.pendingProps||o.type!==a.type)Ko=!0;else{if(!r3(a,p)&&(o.flags&128)===0)return Ko=!1,xz(a,o,p);Ko=(a.flags&131072)!==0?!0:!1}else{if(Ko=!1,m=Oa)$t(),m=(o.flags&1048576)!==0;m&&(m=o.index,$t(),O6(o,i5,m))}switch(o.lanes=0,o.tag){case 16:a:if(m=o.pendingProps,a=Xt(o.elementType),o.type=a,typeof a==="function")o4(a)?(m=Zr(a,m),o.tag=1,o.type=a=ir(a),o=Ti(null,o,a,m,p)):(o.tag=0,e4(o,a),o.type=a=ir(a),o=s4(null,o,a,m,p));else{if(a!==void 0&&a!==null){if(t=a.$$typeof,t===j0){o.tag=11,o.type=a=a4(a),o=Mi(null,o,a,m,p);break a}else if(t===ib){o.tag=14,o=gi(null,o,a,m,p);break a}}throw o="",a!==null&&typeof a==="object"&&a.$$typeof===Bp&&(o=" Did you wrap a component in React.lazy() more than once?"),p=V(a)||a,Error("Element type is invalid. Received a promise that resolves to: "+p+". Lazy element type must resolve to a class or function."+o)}return o;case 0:return s4(a,o,o.type,o.pendingProps,p);case 1:return m=o.type,t=Zr(m,o.pendingProps),Ti(a,o,m,t,p);case 3:a:{if(C(o,o.stateNode.containerInfo),a===null)throw Error("Should have a current fiber. This is a bug in React.");m=o.pendingProps;var r=o.memoizedState;t=r.element,X4(a,o),y0(o,m,null,p);var v=o.memoizedState;if(m=v.cache,Yt(o,qo,m),m!==r.cache&&w4(o,[qo],p,!0),R0(),m=v.element,r.isDehydrated)if(r={element:m,isDehydrated:!1,cache:v.cache},o.updateQueue.baseState=r,o.memoizedState=r,o.flags&256){o=ni(a,o,m,p);break a}else if(m!==t){t=Xp(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),o),B0(t),o=ni(a,o,m,p);break a}else{switch(a=o.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}to=Qp(a.firstChild),To=o,Oa=!0,kt=null,ym=!1,Wp=null,Pp=!0,p=vl(o,null,m,p);for(o.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(lr(),m===t){o=Tm(a,o,p);break a}Po(a,o,m,p)}o=o.child}return o;case 26:return A2(a,o),a===null?(p=Zc(o.type,null,o.pendingProps,null))?o.memoizedState=p:Oa||(p=o.type,a=o.pendingProps,m=fa(Ut.current),m=e2(m).createElement(p),m[Ao]=o,m[eo]=a,Io(m,p,a),ho(m),o.stateNode=m):o.memoizedState=Zc(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return Pa(o),a===null&&Oa&&(m=fa(Ut.current),t=va(),m=o.stateNode=Yc(o.type,o.pendingProps,m,t,!1),ym||(t=tc(m,o.type,o.pendingProps,t),t!==null&&(cr(o,0).serverProps=t)),To=o,Pp=!0,t=to,Ht(o.type)?(J7=t,to=Qp(m.firstChild)):to=t),Po(a,o,o.pendingProps.children,p),A2(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&Oa&&(r=va(),m=u1(o.type,r.ancestorInfo),t=to,(v=!t)||(v=N$(t,o.type,o.pendingProps,Pp),v!==null?(o.stateNode=v,ym||(r=tc(v,o.type,o.pendingProps,r),r!==null&&(cr(o,0).serverProps=r)),To=o,to=Qp(v.firstChild),Pp=!1,r=!0):r=!1,v=!r),v&&(m&&$2(o,t),Jt(o))),Pa(o),t=o.type,r=o.pendingProps,v=a!==null?a.memoizedProps:null,m=r.children,L3(t,r)?m=null:v!==null&&L3(t,v)&&(o.flags|=32),o.memoizedState!==null&&(t=Q4(a,o,Cz,null,null,p),A5._currentValue=t),A2(a,o),Po(a,o,m,p),o.child;case 6:return a===null&&Oa&&(p=o.pendingProps,a=va(),m=a.ancestorInfo.current,p=m!=null?t2(p,m.tag,a.ancestorInfo.implicitRootScope):!0,a=to,(m=!a)||(m=M$(a,o.pendingProps,Pp),m!==null?(o.stateNode=m,To=o,to=null,m=!0):m=!1,m=!m),m&&(p&&$2(o,a),Jt(o))),null;case 13:return Si(a,o,p);case 4:return C(o,o.stateNode.containerInfo),m=o.pendingProps,a===null?o.child=Lr(o,null,m,p):Po(a,o,m,p),o.child;case 11:return Mi(a,o,o.type,o.pendingProps,p);case 7:return Po(a,o,o.pendingProps,p),o.child;case 8:return Po(a,o,o.pendingProps.children,p),o.child;case 12:return o.flags|=4,o.flags|=2048,m=o.stateNode,m.effectDuration=-0,m.passiveEffectDuration=-0,Po(a,o,o.pendingProps.children,p),o.child;case 10:return m=o.type,t=o.pendingProps,r=t.value,"value"in t||Ol||(Ol=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Yt(o,m,r),Po(a,o,t.children,p),o.child;case 9:return t=o.type._context,m=o.pendingProps.children,typeof m!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),zr(o),t=fo(t),m=hf(m,t,void 0),o.flags|=1,Po(a,o,m,p),o.child;case 14:return gi(a,o,o.type,o.pendingProps,p);case 15:return Fi(a,o,o.type,o.pendingProps,p);case 19:return xi(a,o,p);case 31:return uz(a,o,p);case 22:return Ci(a,o,p,o.pendingProps);case 24:return zr(o),m=fo(qo),a===null?(t=$4(),t===null&&(t=Ea,r=c4(),t.pooledCache=r,$r(r),r!==null&&(t.pooledCacheLanes|=p),t=r),o.memoizedState={parent:m,cache:t},Y4(o),Yt(o,qo,t)):((a.lanes&p)!==0&&(X4(a,o),y0(o,null,null,p),R0()),t=a.memoizedState,r=o.memoizedState,t.parent!==m?(t={parent:m,cache:m},o.memoizedState=t,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=t),Yt(o,qo,m)):(m=r.cache,Yt(o,qo,m),m!==t.cache&&w4(o,[qo],p,!0))),Po(a,o,o.pendingProps.children,p),o.child;case 29:throw o.pendingProps}throw Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function nm(a){a.flags|=4}function b3(a,o,p,m,t){if(o=(a.mode&zY)!==za)o=!1;if(o){if(a.flags|=16777216,(t&335544128)===t)if(a.stateNode.complete)a.flags|=8192;else if(Ww())a.flags|=8192;else throw yr=Nb,Nf}else a.flags&=-16777217}function Vi(a,o){if(o.type!=="stylesheet"||(o.state.loading&Sp)!==Ar)a.flags&=-16777217;else if(a.flags|=16777216,!Bc(o))if(Ww())a.flags|=8192;else throw yr=Nb,Nf}function n2(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?h1():536870912,a.lanes|=o,Mr|=o)}function N0(a,o){if(!Oa)switch(a.tailMode){case"hidden":o=a.tail;for(var p=null;o!==null;)o.alternate!==null&&(p=o),o=o.sibling;p===null?a.tail=null:p.sibling=null;break;case"collapsed":p=a.tail;for(var m=null;p!==null;)p.alternate!==null&&(m=p),p=p.sibling;m===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:m.sibling=null}}function ea(a){var o=a.alternate!==null&&a.alternate.child===a.child,p=0,m=0;if(o)if((a.mode&Ba)!==za){for(var{selfBaseDuration:t,child:r}=a;r!==null;)p|=r.lanes|r.childLanes,m|=r.subtreeFlags&65011712,m|=r.flags&65011712,t+=r.treeBaseDuration,r=r.sibling;a.treeBaseDuration=t}else for(t=a.child;t!==null;)p|=t.lanes|t.childLanes,m|=t.subtreeFlags&65011712,m|=t.flags&65011712,t.return=a,t=t.sibling;else if((a.mode&Ba)!==za){t=a.actualDuration,r=a.selfBaseDuration;for(var v=a.child;v!==null;)p|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,t+=v.actualDuration,r+=v.treeBaseDuration,v=v.sibling;a.actualDuration=t,a.treeBaseDuration=r}else for(t=a.child;t!==null;)p|=t.lanes|t.childLanes,m|=t.subtreeFlags,m|=t.flags,t.return=a,t=t.sibling;return a.subtreeFlags|=m,a.childLanes=p,o}function Vz(a,o,p){var m=o.pendingProps;switch(v4(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ea(o),null;case 1:return ea(o),null;case 3:if(p=o.stateNode,m=null,a!==null&&(m=a.memoizedState.cache),o.memoizedState.cache!==m&&(o.flags|=2048),Im(qo,o),T(o),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),a===null||a.child===null)vv(o)?(f4(),nm(o)):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,b4());return ea(o),null;case 26:var{type:t,memoizedState:r}=o;return a===null?(nm(o),r!==null?(ea(o),Vi(o,r)):(ea(o),b3(o,t,null,m,p))):r?r!==a.memoizedState?(nm(o),ea(o),Vi(o,r)):(ea(o),o.flags&=-16777217):(a=a.memoizedProps,a!==m&&nm(o),ea(o),b3(o,t,a,m,p)),null;case 27:if(xa(o),p=fa(Ut.current),t=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==m&&nm(o);else{if(!m){if(o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ea(o),null}a=va(),vv(o)?M6(o,a):(a=Yc(t,m,p,a,!0),o.stateNode=a,nm(o))}return ea(o),null;case 5:if(xa(o),t=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==m&&nm(o);else{if(!m){if(o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ea(o),null}var v=va();if(vv(o))M6(o,v);else{switch(r=fa(Ut.current),u1(t,v.ancestorInfo),v=v.context,r=e2(r),v){case p0:r=r.createElementNS(Wv,t);break;case b1:r=r.createElementNS(Yb,t);break;default:switch(t){case"svg":r=r.createElementNS(Wv,t);break;case"math":r=r.createElementNS(Yb,t);break;case"script":r=r.createElement("div"),r.innerHTML="<script></script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof m.is==="string"?r.createElement("select",{is:m.is}):r.createElement("select"),m.multiple?r.multiple=!0:m.size&&(r.size=m.size);break;default:r=typeof m.is==="string"?r.createElement(t,{is:m.is}):r.createElement(t),t.indexOf("-")===-1&&(t!==t.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",t),Object.prototype.toString.call(r)!=="[object HTMLUnknownElement]"||sp.call(p9,t)||(p9[t]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",t)))}}r[Ao]=o,r[eo]=m;a:for(v=o.child;v!==null;){if(v.tag===5||v.tag===6)r.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===o)break a;for(;v.sibling===null;){if(v.return===null||v.return===o)break a;v=v.return}v.sibling.return=v.return,v=v.sibling}o.stateNode=r;a:switch(Io(r,t,m),t){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break a;case"img":m=!0;break a;default:m=!1}m&&nm(o)}}return ea(o),b3(o,o.type,a===null?null:a.memoizedProps,o.pendingProps,p),null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==m&&nm(o);else{if(typeof m!=="string"&&o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(a=fa(Ut.current),p=va(),vv(o)){if(a=o.stateNode,p=o.memoizedProps,t=!ym,m=null,r=To,r!==null)switch(r.tag){case 3:t&&(t=$c(a,p,m),t!==null&&(cr(o,0).serverProps=t));break;case 27:case 5:m=r.memoizedProps,t&&(t=$c(a,p,m),t!==null&&(cr(o,0).serverProps=t))}a[Ao]=o,a=a.nodeValue===p||m!==null&&m.suppressHydrationWarning===!0||ew(a.nodeValue,p)?!0:!1,a||Jt(o,!0)}else t=p.ancestorInfo.current,t!=null&&t2(m,t.tag,p.ancestorInfo.implicitRootScope),a=e2(a).createTextNode(m),a[Ao]=o,o.stateNode=a}return ea(o),null;case 31:if(p=o.memoizedState,a===null||a.memoizedState!==null){if(m=vv(o),p!==null){if(a===null){if(!m)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(a=o.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");a[Ao]=o,ea(o),(o.mode&Ba)!==za&&p!==null&&(a=o.child,a!==null&&(o.treeBaseDuration-=a.treeBaseDuration))}else f4(),lr(),(o.flags&128)===0&&(p=o.memoizedState=null),o.flags|=4,ea(o),(o.mode&Ba)!==za&&p!==null&&(a=o.child,a!==null&&(o.treeBaseDuration-=a.treeBaseDuration));a=!1}else p=b4(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=p),a=!0;if(!a){if(o.flags&256)return _p(o),o;return _p(o),null}if((o.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return ea(o),null;case 13:if(m=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(t=m,r=vv(o),t!==null&&t.dehydrated!==null){if(a===null){if(!r)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=o.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");r[Ao]=o,ea(o),(o.mode&Ba)!==za&&t!==null&&(t=o.child,t!==null&&(o.treeBaseDuration-=t.treeBaseDuration))}else f4(),lr(),(o.flags&128)===0&&(t=o.memoizedState=null),o.flags|=4,ea(o),(o.mode&Ba)!==za&&t!==null&&(t=o.child,t!==null&&(o.treeBaseDuration-=t.treeBaseDuration));t=!1}else t=b4(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=t),t=!0;if(!t){if(o.flags&256)return _p(o),o;return _p(o),null}}if(_p(o),(o.flags&128)!==0)return o.lanes=p,(o.mode&Ba)!==za&&W0(o),o;return p=m!==null,a=a!==null&&a.memoizedState!==null,p&&(m=o.child,t=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(t=m.alternate.memoizedState.cachePool.pool),r=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(r=m.memoizedState.cachePool.pool),r!==t&&(m.flags|=2048)),p!==a&&p&&(o.child.flags|=8192),n2(o,o.updateQueue),ea(o),(o.mode&Ba)!==za&&p&&(a=o.child,a!==null&&(o.treeBaseDuration-=a.treeBaseDuration)),null;case 4:return T(o),a===null&&K3(o.stateNode.containerInfo),ea(o),null;case 10:return Im(o.type,o),ea(o),null;case 19:if(O(Go,o),m=o.memoizedState,m===null)return ea(o),null;if(t=(o.flags&128)!==0,r=m.rendering,r===null)if(t)N0(m,!1);else{if(zo!==rt||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(r=U2(a),r!==null){o.flags|=128,N0(m,!1),a=r.updateQueue,o.updateQueue=a,n2(o,a),o.subtreeFlags=0,a=p;for(p=o.child;p!==null;)y6(p,a),p=p.sibling;return d(Go,Go.current&nv|K5,o),Oa&&Pm(o,m.treeForkCount),o.child}a=a.sibling}m.tail!==null&&No()>Vb&&(o.flags|=128,t=!0,N0(m,!1),o.lanes=4194304)}else{if(!t)if(a=U2(r),a!==null){if(o.flags|=128,t=!0,a=a.updateQueue,o.updateQueue=a,n2(o,a),N0(m,!0),m.tail===null&&m.tailMode==="hidden"&&!r.alternate&&!Oa)return ea(o),null}else 2*No()-m.renderingStartTime>Vb&&p!==536870912&&(o.flags|=128,t=!0,N0(m,!1),o.lanes=4194304);m.isBackwards?(r.sibling=o.child,o.child=r):(a=m.last,a!==null?a.sibling=r:o.child=r,m.last=r)}if(m.tail!==null)return a=m.tail,m.rendering=a,m.tail=a.sibling,m.renderingStartTime=No(),a.sibling=null,p=Go.current,p=t?p&nv|K5:p&nv,d(Go,p,o),Oa&&Pm(o,m.treeForkCount),a;return ea(o),null;case 22:case 23:return _p(o),G4(o),m=o.memoizedState!==null,a!==null?a.memoizedState!==null!==m&&(o.flags|=8192):m&&(o.flags|=8192),m?(p&536870912)!==0&&(o.flags&128)===0&&(ea(o),o.subtreeFlags&6&&(o.flags|=8192)):ea(o),p=o.updateQueue,p!==null&&n2(o,p.retryQueue),p=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(p=a.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==p&&(o.flags|=2048),a!==null&&O(dr,o),null;case 24:return p=null,a!==null&&(p=a.memoizedState.cache),o.memoizedState.cache!==p&&(o.flags|=2048),Im(qo,o),ea(o),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Dz(a,o){switch(v4(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&Ba)!==za&&W0(o),o):null;case 3:return Im(qo,o),T(o),a=o.flags,(a&65536)!==0&&(a&128)===0?(o.flags=a&-65537|128,o):null;case 26:case 27:case 5:return xa(o),null;case 31:if(o.memoizedState!==null){if(_p(o),o.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");lr()}return a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&Ba)!==za&&W0(o),o):null;case 13:if(_p(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");lr()}return a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&Ba)!==za&&W0(o),o):null;case 19:return O(Go,o),null;case 4:return T(o),null;case 10:return Im(o.type,o),null;case 22:case 23:return _p(o),G4(o),a!==null&&O(dr,o),a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&Ba)!==za&&W0(o),o):null;case 24:return Im(qo,o),null;case 25:return null;default:return null}}function Di(a,o){switch(v4(o),o.tag){case 3:Im(qo,o),T(o);break;case 26:case 27:case 5:xa(o);break;case 4:T(o);break;case 31:o.memoizedState!==null&&_p(o);break;case 13:_p(o);break;case 19:O(Go,o);break;case 10:Im(o.type,o);break;case 22:case 23:_p(o),G4(o),a!==null&&O(dr,o);break;case 24:Im(qo,o)}}function Xm(a){return(a.mode&Ba)!==za}function ji(a,o){Xm(a)?(Ym(),M0(o,a),Jm()):M0(o,a)}function f3(a,o,p){Xm(a)?(Ym(),lv(p,a,o),Jm()):lv(p,a,o)}function M0(a,o){try{var p=o.updateQueue,m=p!==null?p.lastEffect:null;if(m!==null){var t=m.next;p=t;do{if((p.tag&a)===a&&(m=void 0,(a&mp)!==gb&&(ev=!0),m=F(o,ZY,p),(a&mp)!==gb&&(ev=!1),m!==void 0&&typeof m!=="function")){var r=void 0;r=(p.tag&dp)!==0?"useLayoutEffect":(p.tag&mp)!==0?"useInsertionEffect":"useEffect";var v=void 0;v=m===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof m.then==="function"?`
|
|
125
|
-
|
|
126
|
-
It looks like you wrote `+r+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
127
|
-
|
|
128
|
-
`+r+`(() => {
|
|
129
|
-
async function fetchData() {
|
|
130
|
-
// You can await here
|
|
131
|
-
const response = await MyAPI.getData(someId);
|
|
132
|
-
// ...
|
|
133
|
-
}
|
|
134
|
-
fetchData();
|
|
135
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
136
|
-
|
|
137
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+m,F(o,function(b,f){console.error("%s must not return anything besides a function, which is used for clean-up.%s",b,f)},r,v)}p=p.next}while(p!==t)}}catch(b){Ia(o,o.return,b)}}function lv(a,o,p){try{var m=o.updateQueue,t=m!==null?m.lastEffect:null;if(t!==null){var r=t.next;m=r;do{if((m.tag&a)===a){var v=m.inst,b=v.destroy;b!==void 0&&(v.destroy=void 0,(a&mp)!==gb&&(ev=!0),t=o,F(t,GY,t,p,b),(a&mp)!==gb&&(ev=!1))}m=m.next}while(m!==r)}}catch(f){Ia(o,o.return,f)}}function Ei(a,o){Xm(a)?(Ym(),M0(o,a),Jm()):M0(o,a)}function i3(a,o,p){Xm(a)?(Ym(),lv(p,a,o),Jm()):lv(p,a,o)}function si(a){var o=a.updateQueue;if(o!==null){var p=a.stateNode;a.type.defaultProps||"ref"in a.memoizedProps||Vv||(p.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(a)||"instance"),p.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",L(a)||"instance"));try{F(a,ai,o,p)}catch(m){Ia(a,a.return,m)}}}function jz(a,o,p){return a.getSnapshotBeforeUpdate(o,p)}function Ez(a,o){var{memoizedProps:p,memoizedState:m}=o;o=a.stateNode,a.type.defaultProps||"ref"in a.memoizedProps||Vv||(o.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(a)||"instance"),o.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",L(a)||"instance"));try{var t=Zr(a.type,p),r=F(a,jz,o,t,m);p=hl,r!==void 0||p.has(a.type)||(p.add(a.type),F(a,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",L(a))})),o.__reactInternalSnapshotBeforeUpdate=r}catch(v){Ia(a,a.return,v)}}function ei(a,o,p){p.props=Zr(a.type,a.memoizedProps),p.state=a.memoizedState,Xm(a)?(Ym(),F(a,s8,a,o,p),Jm()):F(a,s8,a,o,p)}function sz(a){var o=a.ref;if(o!==null){switch(a.tag){case 26:case 27:case 5:var p=a.stateNode;break;case 30:p=a.stateNode;break;default:p=a.stateNode}if(typeof o==="function")if(Xm(a))try{Ym(),a.refCleanup=o(p)}finally{Jm()}else a.refCleanup=o(p);else typeof o==="string"?console.error("String refs are no longer supported."):o.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",L(a)),o.current=p}}function g0(a,o){try{F(a,sz,a)}catch(p){Ia(a,o,p)}}function Zm(a,o){var{ref:p,refCleanup:m}=a;if(p!==null)if(typeof m==="function")try{if(Xm(a))try{Ym(),F(a,m)}finally{Jm(a)}else F(a,m)}catch(t){Ia(a,o,t)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof p==="function")try{if(Xm(a))try{Ym(),F(a,p,null)}finally{Jm(a)}else F(a,p,null)}catch(t){Ia(a,o,t)}else p.current=null}function aw(a,o,p,m){var t=a.memoizedProps,r=t.id,v=t.onCommit;t=t.onRender,o=o===null?"mount":"update",Lb&&(o="nested-update"),typeof t==="function"&&t(r,o,a.actualDuration,a.treeBaseDuration,a.actualStartTime,p),typeof v==="function"&&v(r,o,m,p)}function ez(a,o,p,m){var t=a.memoizedProps;a=t.id,t=t.onPostCommit,o=o===null?"mount":"update",Lb&&(o="nested-update"),typeof t==="function"&&t(a,o,m,p)}function ow(a){var{type:o,memoizedProps:p,stateNode:m}=a;try{F(a,B$,m,o,p,a)}catch(t){Ia(a,a.return,t)}}function w3(a,o,p){try{F(a,H$,a.stateNode,a.type,p,o,a)}catch(m){Ia(a,a.return,m)}}function pw(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Ht(a.type)||a.tag===4}function c3(a){a:for(;;){for(;a.sibling===null;){if(a.return===null||pw(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Ht(a.type))continue a;if(a.flags&2)continue a;if(a.child===null||a.tag===4)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function l3(a,o,p){var m=a.tag;if(m===5||m===6)a=a.stateNode,o?(ic(p),(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(a,o)):(ic(p),o=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,o.appendChild(a),p=p._reactRootContainer,p!==null&&p!==void 0||o.onclick!==null||(o.onclick=Fm));else if(m!==4&&(m===27&&Ht(a.type)&&(p=a.stateNode,o=null),a=a.child,a!==null))for(l3(a,o,p),a=a.sibling;a!==null;)l3(a,o,p),a=a.sibling}function S2(a,o,p){var m=a.tag;if(m===5||m===6)a=a.stateNode,o?p.insertBefore(a,o):p.appendChild(a);else if(m!==4&&(m===27&&Ht(a.type)&&(p=a.stateNode),a=a.child,a!==null))for(S2(a,o,p),a=a.sibling;a!==null;)S2(a,o,p),a=a.sibling}function a$(a){for(var o,p=a.return;p!==null;){if(pw(p)){o=p;break}p=p.return}if(o==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(o.tag){case 27:o=o.stateNode,p=c3(a),S2(a,p,o);break;case 5:p=o.stateNode,o.flags&32&&(fc(p),o.flags&=-33),o=c3(a),S2(a,o,p);break;case 3:case 4:o=o.stateNode.containerInfo,p=c3(a),l3(a,p,o);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function mw(a){var{stateNode:o,memoizedProps:p}=a;try{F(a,I$,a.type,p,o,a)}catch(m){Ia(a,a.return,m)}}function tw(a,o){return o.tag===31?(o=o.memoizedState,a.memoizedState!==null&&o===null):o.tag===13?(a=a.memoizedState,o=o.memoizedState,a!==null&&a.dehydrated!==null&&(o===null||o.dehydrated===null)):o.tag===3?a.memoizedState.isDehydrated&&(o.flags&256)===0:!1}function o$(a,o){if(a=a.containerInfo,l7=c1,a=_6(a),D1(a)){if("selectionStart"in a)var p={start:a.selectionStart,end:a.selectionEnd};else a:{p=(p=a.ownerDocument)&&p.defaultView||window;var m=p.getSelection&&p.getSelection();if(m&&m.rangeCount!==0){p=m.anchorNode;var{anchorOffset:t,focusNode:r}=m;m=m.focusOffset;try{p.nodeType,r.nodeType}catch(n){p=null;break a}var v=0,b=-1,f=-1,i=0,Y=0,X=a,z=null;o:for(;;){for(var q;;){if(X!==p||t!==0&&X.nodeType!==3||(b=v+t),X!==r||m!==0&&X.nodeType!==3||(f=v+m),X.nodeType===3&&(v+=X.nodeValue.length),(q=X.firstChild)===null)break;z=X,X=q}for(;;){if(X===a)break o;if(z===p&&++i===t&&(b=v),z===r&&++Y===m&&(f=v),(q=X.nextSibling)!==null)break;X=z,z=X.parentNode}X=q}p=b===-1||f===-1?null:{start:b,end:f}}else p=null}p=p||{start:0,end:0}}else p=null;z7={focusedElem:a,selectionRange:p},c1=!1;for(go=o;go!==null;)if(o=go,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,go=a;else for(;go!==null;){switch(a=o=go,p=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(a=a.updateQueue,a=a!==null?a.events:null,a!==null))for(p=0;p<a.length;p++)t=a[p],t.ref.impl=t.nextImpl;break;case 11:case 15:break;case 1:(t&1024)!==0&&p!==null&&Ez(a,p);break;case 3:if((t&1024)!==0){if(a=a.stateNode.containerInfo,p=a.nodeType,p===9)O3(a);else if(p===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":O3(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(a=o.sibling,a!==null){a.return=o.return,go=a;break}go=o.return}}function rw(a,o,p){var m=Zp(),t=cm(),r=zm(),v=$m(),b=p.flags;switch(p.tag){case 0:case 11:case 15:Gm(a,p),b&4&&ji(p,dp|Tp);break;case 1:if(Gm(a,p),b&4)if(a=p.stateNode,o===null)p.type.defaultProps||"ref"in p.memoizedProps||Vv||(a.props!==p.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(p)||"instance"),a.state!==p.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",L(p)||"instance")),Xm(p)?(Ym(),F(p,kf,p,a),Jm()):F(p,kf,p,a);else{var f=Zr(p.type,o.memoizedProps);o=o.memoizedState,p.type.defaultProps||"ref"in p.memoizedProps||Vv||(a.props!==p.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(p)||"instance"),a.state!==p.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",L(p)||"instance")),Xm(p)?(Ym(),F(p,D8,p,a,f,o,a.__reactInternalSnapshotBeforeUpdate),Jm()):F(p,D8,p,a,f,o,a.__reactInternalSnapshotBeforeUpdate)}b&64&&si(p),b&512&&g0(p,p.return);break;case 3:if(o=Am(),Gm(a,p),b&64&&(b=p.updateQueue,b!==null)){if(f=null,p.child!==null)switch(p.child.tag){case 27:case 5:f=p.child.stateNode;break;case 1:f=p.child.stateNode}try{F(p,ai,b,f)}catch(Y){Ia(p,p.return,Y)}}a.effectDuration+=Z2(o);break;case 27:o===null&&b&4&&mw(p);case 26:case 5:if(Gm(a,p),o===null){if(b&4)ow(p);else if(b&64){a=p.type,o=p.memoizedProps,f=p.stateNode;try{F(p,K$,f,a,o,p)}catch(Y){Ia(p,p.return,Y)}}}b&512&&g0(p,p.return);break;case 12:if(b&4){b=Am(),Gm(a,p),a=p.stateNode,a.effectDuration+=H0(b);try{F(p,aw,p,o,Nt,a.effectDuration)}catch(Y){Ia(p,p.return,Y)}}else Gm(a,p);break;case 31:Gm(a,p),b&4&&fw(a,p);break;case 13:Gm(a,p),b&4&&iw(a,p),b&64&&(a=p.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(b=w$.bind(null,p),g$(a,b))));break;case 22:if(b=p.memoizedState!==null||tt,!b){o=o!==null&&o.memoizedState!==null||Ho,f=tt;var i=Ho;tt=b,(Ho=o)&&!i?(_m(a,p,(p.subtreeFlags&8772)!==0),(p.mode&Ba)!==za&&0<=ia&&0<=ca&&0.05<ca-ia&&f2(p,ia,ca)):Gm(a,p),tt=f,Ho=i}break;case 30:break;default:Gm(a,p)}(p.mode&Ba)!==za&&0<=ia&&0<=ca&&((Yo||0.05<lo)&&im(p,ia,ca,lo,io),p.alternate===null&&p.return!==null&&p.return.alternate!==null&&0.05<ca-ia&&(tw(p.return.alternate,p.return)||fm(p,ia,ca,"Mount"))),Gp(m),lm(t),io=r,Yo=v}function vw(a){var o=a.alternate;o!==null&&(a.alternate=null,vw(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&g1(o)),a.stateNode=null,a._debugOwner=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Sm(a,o,p){for(p=p.child;p!==null;)bw(a,o,p),p=p.sibling}function bw(a,o,p){if(xo&&typeof xo.onCommitFiberUnmount==="function")try{xo.onCommitFiberUnmount(Kv,p)}catch(i){Wm||(Wm=!0,console.error("React instrumentation encountered an error: %o",i))}var m=Zp(),t=cm(),r=zm(),v=$m();switch(p.tag){case 26:Ho||Zm(p,o),Sm(a,o,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(a=p.stateNode,a.parentNode.removeChild(a));break;case 27:Ho||Zm(p,o);var b=Wo,f=cp;Ht(p.type)&&(Wo=p.stateNode,cp=!1),Sm(a,o,p),F(p,u0,p.stateNode),Wo=b,cp=f;break;case 5:Ho||Zm(p,o);case 6:if(b=Wo,f=cp,Wo=null,Sm(a,o,p),Wo=b,cp=f,Wo!==null)if(cp)try{F(p,d$,Wo,p.stateNode)}catch(i){Ia(p,o,i)}else try{F(p,U$,Wo,p.stateNode)}catch(i){Ia(p,o,i)}break;case 18:Wo!==null&&(cp?(a=Wo,wc(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,p.stateNode),_v(a)):wc(Wo,p.stateNode));break;case 4:b=Wo,f=cp,Wo=p.stateNode.containerInfo,cp=!0,Sm(a,o,p),Wo=b,cp=f;break;case 0:case 11:case 14:case 15:lv(mp,p,o),Ho||f3(p,o,dp),Sm(a,o,p);break;case 1:Ho||(Zm(p,o),b=p.stateNode,typeof b.componentWillUnmount==="function"&&ei(p,o,b)),Sm(a,o,p);break;case 21:Sm(a,o,p);break;case 22:Ho=(b=Ho)||p.memoizedState!==null,Sm(a,o,p),Ho=b;break;default:Sm(a,o,p)}(p.mode&Ba)!==za&&0<=ia&&0<=ca&&(Yo||0.05<lo)&&im(p,ia,ca,lo,io),Gp(m),lm(t),io=r,Yo=v}function fw(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{F(o,C$,a)}catch(p){Ia(o,o.return,p)}}}function iw(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{F(o,P$,a)}catch(p){Ia(o,o.return,p)}}function p$(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new kl),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new kl),o;default:throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}}function u2(a,o){var p=p$(a);o.forEach(function(m){if(!p.has(m)){if(p.add(m),Um)if(Dv!==null&&jv!==null)I0(jv,Dv);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var t=c$.bind(null,a,m);m.then(t,t)}})}function ip(a,o){var p=o.deletions;if(p!==null)for(var m=0;m<p.length;m++){var t=a,r=o,v=p[m],b=Zp(),f=r;a:for(;f!==null;){switch(f.tag){case 27:if(Ht(f.type)){Wo=f.stateNode,cp=!1;break a}break;case 5:Wo=f.stateNode,cp=!1;break a;case 3:case 4:Wo=f.stateNode.containerInfo,cp=!0;break a}f=f.return}if(Wo===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");bw(t,r,v),Wo=null,cp=!1,(v.mode&Ba)!==za&&0<=ia&&0<=ca&&0.05<ca-ia&&fm(v,ia,ca,"Unmount"),Gp(b),t=v,r=t.alternate,r!==null&&(r.return=null),t.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)ww(o,a),o=o.sibling}function ww(a,o){var p=Zp(),m=cm(),t=zm(),r=$m(),v=a.alternate,b=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ip(o,a),wp(a),b&4&&(lv(mp|Tp,a,a.return),M0(mp|Tp,a),f3(a,a.return,dp|Tp));break;case 1:if(ip(o,a),wp(a),b&512&&(Ho||v===null||Zm(v,v.return)),b&64&&tt&&(b=a.updateQueue,b!==null&&(v=b.callbacks,v!==null))){var f=b.shared.hiddenCallbacks;b.shared.hiddenCallbacks=f===null?v:f.concat(v)}break;case 26:if(f=mm,ip(o,a),wp(a),b&512&&(Ho||v===null||Zm(v,v.return)),b&4){var i=v!==null?v.memoizedState:null;if(b=a.memoizedState,v===null)if(b===null)if(a.stateNode===null){a:{b=a.type,v=a.memoizedProps,f=f.ownerDocument||f;o:switch(b){case"title":if(i=f.getElementsByTagName("title")[0],!i||i[e0]||i[Ao]||i.namespaceURI===Wv||i.hasAttribute("itemprop"))i=f.createElement(b),f.head.insertBefore(i,f.querySelector("head > title"));Io(i,b,v),i[Ao]=a,ho(i),b=i;break a;case"link":var Y=qc("link","href",f).get(b+(v.href||""));if(Y){for(var X=0;X<Y.length;X++)if(i=Y[X],i.getAttribute("href")===(v.href==null||v.href===""?null:v.href)&&i.getAttribute("rel")===(v.rel==null?null:v.rel)&&i.getAttribute("title")===(v.title==null?null:v.title)&&i.getAttribute("crossorigin")===(v.crossOrigin==null?null:v.crossOrigin)){Y.splice(X,1);break o}}i=f.createElement(b),Io(i,b,v),f.head.appendChild(i);break;case"meta":if(Y=qc("meta","content",f).get(b+(v.content||""))){for(X=0;X<Y.length;X++)if(i=Y[X],Ta(v.content,"content"),i.getAttribute("content")===(v.content==null?null:""+v.content)&&i.getAttribute("name")===(v.name==null?null:v.name)&&i.getAttribute("property")===(v.property==null?null:v.property)&&i.getAttribute("http-equiv")===(v.httpEquiv==null?null:v.httpEquiv)&&i.getAttribute("charset")===(v.charSet==null?null:v.charSet)){Y.splice(X,1);break o}}i=f.createElement(b),Io(i,b,v),f.head.appendChild(i);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+b+'". This is a bug in React.')}i[Ao]=a,ho(i),b=i}a.stateNode=b}else Qc(f,a.type,a.stateNode);else a.stateNode=_c(f,b,a.memoizedProps);else i!==b?(i===null?v.stateNode!==null&&(v=v.stateNode,v.parentNode.removeChild(v)):i.count--,b===null?Qc(f,a.type,a.stateNode):_c(f,b,a.memoizedProps)):b===null&&a.stateNode!==null&&w3(a,a.memoizedProps,v.memoizedProps)}break;case 27:ip(o,a),wp(a),b&512&&(Ho||v===null||Zm(v,v.return)),v!==null&&b&4&&w3(a,a.memoizedProps,v.memoizedProps);break;case 5:if(ip(o,a),wp(a),b&512&&(Ho||v===null||Zm(v,v.return)),a.flags&32){f=a.stateNode;try{F(a,fc,f)}catch(E){Ia(a,a.return,E)}}b&4&&a.stateNode!=null&&(f=a.memoizedProps,w3(a,f,v!==null?v.memoizedProps:f)),b&1024&&(xf=!0,a.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(ip(o,a),wp(a),b&4){if(a.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");b=a.memoizedProps,v=v!==null?v.memoizedProps:b,f=a.stateNode;try{F(a,W$,f,v,b)}catch(E){Ia(a,a.return,E)}}break;case 3:if(f=Am(),f1=null,i=mm,mm=ab(o.containerInfo),ip(o,a),mm=i,wp(a),b&4&&v!==null&&v.memoizedState.isDehydrated)try{F(a,F$,o.containerInfo)}catch(E){Ia(a,a.return,E)}xf&&(xf=!1,cw(a)),o.effectDuration+=Z2(f);break;case 4:b=mm,mm=ab(a.stateNode.containerInfo),ip(o,a),wp(a),mm=b;break;case 12:b=Am(),ip(o,a),wp(a),a.stateNode.effectDuration+=H0(b);break;case 31:ip(o,a),wp(a),b&4&&(b=a.updateQueue,b!==null&&(a.updateQueue=null,u2(a,b)));break;case 13:ip(o,a),wp(a),a.child.flags&8192&&a.memoizedState!==null!==(v!==null&&v.memoizedState!==null)&&(xb=No()),b&4&&(b=a.updateQueue,b!==null&&(a.updateQueue=null,u2(a,b)));break;case 22:f=a.memoizedState!==null;var z=v!==null&&v.memoizedState!==null,q=tt,n=Ho;if(tt=q||f,Ho=n||z,ip(o,a),Ho=n,tt=q,z&&!f&&!q&&!n&&(a.mode&Ba)!==za&&0<=ia&&0<=ca&&0.05<ca-ia&&f2(a,ia,ca),wp(a),b&8192)a:for(o=a.stateNode,o._visibility=f?o._visibility&~f5:o._visibility|f5,!f||v===null||z||tt||Ho||(Gr(a),(a.mode&Ba)!==za&&0<=ia&&0<=ca&&0.05<ca-ia&&fm(a,ia,ca,"Disconnect")),v=null,o=a;;){if(o.tag===5||o.tag===26){if(v===null){z=v=o;try{i=z.stateNode,f?F(z,y$,i):F(z,h$,z.stateNode,z.memoizedProps)}catch(E){Ia(z,z.return,E)}}}else if(o.tag===6){if(v===null){z=o;try{Y=z.stateNode,f?F(z,L$,Y):F(z,k$,Y,z.memoizedProps)}catch(E){Ia(z,z.return,E)}}}else if(o.tag===18){if(v===null){z=o;try{X=z.stateNode,f?F(z,R$,X):F(z,O$,z.stateNode)}catch(E){Ia(z,z.return,E)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===a)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break a;for(;o.sibling===null;){if(o.return===null||o.return===a)break a;v===o&&(v=null),o=o.return}v===o&&(v=null),o.sibling.return=o.return,o=o.sibling}b&4&&(b=a.updateQueue,b!==null&&(v=b.retryQueue,v!==null&&(b.retryQueue=null,u2(a,v))));break;case 19:ip(o,a),wp(a),b&4&&(b=a.updateQueue,b!==null&&(a.updateQueue=null,u2(a,b)));break;case 30:break;case 21:break;default:ip(o,a),wp(a)}(a.mode&Ba)!==za&&0<=ia&&0<=ca&&((Yo||0.05<lo)&&im(a,ia,ca,lo,io),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<ca-ia&&(tw(a.return.alternate,a.return)||fm(a,ia,ca,"Mount"))),Gp(p),lm(m),io=t,Yo=r}function wp(a){var o=a.flags;if(o&2){try{F(a,a$,a)}catch(p){Ia(a,a.return,p)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function cw(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;cw(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),a=a.sibling}}function Gm(a,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)rw(a,o.alternate,o),o=o.sibling}function lw(a){var o=Zp(),p=cm(),m=zm(),t=$m();switch(a.tag){case 0:case 11:case 14:case 15:f3(a,a.return,dp),Gr(a);break;case 1:Zm(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount==="function"&&ei(a,a.return,r),Gr(a);break;case 27:F(a,u0,a.stateNode);case 26:case 5:Zm(a,a.return),Gr(a);break;case 22:a.memoizedState===null&&Gr(a);break;case 30:Gr(a);break;default:Gr(a)}(a.mode&Ba)!==za&&0<=ia&&0<=ca&&(Yo||0.05<lo)&&im(a,ia,ca,lo,io),Gp(o),lm(p),io=m,Yo=t}function Gr(a){for(a=a.child;a!==null;)lw(a),a=a.sibling}function zw(a,o,p,m){var t=Zp(),r=cm(),v=zm(),b=$m(),f=p.flags;switch(p.tag){case 0:case 11:case 15:_m(a,p,m),ji(p,dp);break;case 1:if(_m(a,p,m),o=p.stateNode,typeof o.componentDidMount==="function"&&F(p,kf,p,o),o=p.updateQueue,o!==null){a=p.stateNode;try{F(p,Fz,o,a)}catch(i){Ia(p,p.return,i)}}m&&f&64&&si(p),g0(p,p.return);break;case 27:mw(p);case 26:case 5:_m(a,p,m),m&&o===null&&f&4&&ow(p),g0(p,p.return);break;case 12:if(m&&f&4){f=Am(),_m(a,p,m),m=p.stateNode,m.effectDuration+=H0(f);try{F(p,aw,p,o,Nt,m.effectDuration)}catch(i){Ia(p,p.return,i)}}else _m(a,p,m);break;case 31:_m(a,p,m),m&&f&4&&fw(a,p);break;case 13:_m(a,p,m),m&&f&4&&iw(a,p);break;case 22:p.memoizedState===null&&_m(a,p,m),g0(p,p.return);break;case 30:break;default:_m(a,p,m)}(p.mode&Ba)!==za&&0<=ia&&0<=ca&&(Yo||0.05<lo)&&im(p,ia,ca,lo,io),Gp(t),lm(r),io=v,Yo=b}function _m(a,o,p){p=p&&(o.subtreeFlags&8772)!==0;for(o=o.child;o!==null;)zw(a,o.alternate,o,p),o=o.sibling}function z3(a,o){var p=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(p=a.memoizedState.cachePool.pool),a=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==p&&(a!=null&&$r(a),p!=null&&K0(p))}function $3(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&($r(o),a!=null&&K0(a))}function Ep(a,o,p,m,t){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(o=o.child;o!==null;){var r=o.sibling;$w(a,o,p,m,r!==null?r.actualStartTime:t),o=r}}function $w(a,o,p,m,t){var r=Zp(),v=cm(),b=zm(),f=$m(),i=Lt,Y=o.flags;switch(o.tag){case 0:case 11:case 15:(o.mode&Ba)!==za&&0<o.actualStartTime&&(o.flags&1)!==0&&i2(o,o.actualStartTime,t,Lo,p),Ep(a,o,p,m,t),Y&2048&&Ei(o,tp|Tp);break;case 1:(o.mode&Ba)!==za&&0<o.actualStartTime&&((o.flags&128)!==0?E1(o,o.actualStartTime,t,[]):(o.flags&1)!==0&&i2(o,o.actualStartTime,t,Lo,p)),Ep(a,o,p,m,t);break;case 3:var X=Am(),z=Lo;Lo=o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)===0,Ep(a,o,p,m,t),Lo=z,Y&2048&&(p=null,o.alternate!==null&&(p=o.alternate.memoizedState.cache),m=o.memoizedState.cache,m!==p&&($r(m),p!=null&&K0(p))),a.passiveEffectDuration+=Z2(X);break;case 12:if(Y&2048){Y=Am(),Ep(a,o,p,m,t),a=o.stateNode,a.passiveEffectDuration+=H0(Y);try{F(o,ez,o,o.alternate,Nt,a.passiveEffectDuration)}catch(q){Ia(o,o.return,q)}}else Ep(a,o,p,m,t);break;case 31:Y=Lo,X=o.alternate!==null?o.alternate.memoizedState:null,z=o.memoizedState,X!==null&&z===null?(z=o.deletions,z!==null&&0<z.length&&z[0].tag===18?(Lo=!1,X=X.hydrationErrors,X!==null&&E1(o,o.actualStartTime,t,X)):Lo=!0):Lo=!1,Ep(a,o,p,m,t),Lo=Y;break;case 13:Y=Lo,X=o.alternate!==null?o.alternate.memoizedState:null,z=o.memoizedState,X===null||X.dehydrated===null||z!==null&&z.dehydrated!==null?Lo=!1:(z=o.deletions,z!==null&&0<z.length&&z[0].tag===18?(Lo=!1,X=X.hydrationErrors,X!==null&&E1(o,o.actualStartTime,t,X)):Lo=!0),Ep(a,o,p,m,t),Lo=Y;break;case 23:break;case 22:z=o.stateNode,X=o.alternate,o.memoizedState!==null?z._visibility&Vm?Ep(a,o,p,m,t):F0(a,o,p,m,t):z._visibility&Vm?Ep(a,o,p,m,t):(z._visibility|=Vm,zv(a,o,p,m,(o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child),t),(o.mode&Ba)===za||Lo||(a=o.actualStartTime,0<=a&&0.05<t-a&&f2(o,a,t),0<=ia&&0<=ca&&0.05<ca-ia&&f2(o,ia,ca))),Y&2048&&z3(X,o);break;case 24:Ep(a,o,p,m,t),Y&2048&&$3(o.alternate,o);break;default:Ep(a,o,p,m,t)}if((o.mode&Ba)!==za){if(a=!Lo&&o.alternate===null&&o.return!==null&&o.return.alternate!==null)p=o.actualStartTime,0<=p&&0.05<t-p&&fm(o,p,t,"Mount");0<=ia&&0<=ca&&((Yo||0.05<lo)&&im(o,ia,ca,lo,io),a&&0.05<ca-ia&&fm(o,ia,ca,"Mount"))}Gp(r),lm(v),io=b,Yo=f,Lt=i}function zv(a,o,p,m,t,r){t=t&&((o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child));for(o=o.child;o!==null;){var v=o.sibling;Jw(a,o,p,m,t,v!==null?v.actualStartTime:r),o=v}}function Jw(a,o,p,m,t,r){var v=Zp(),b=cm(),f=zm(),i=$m(),Y=Lt;t&&(o.mode&Ba)!==za&&0<o.actualStartTime&&(o.flags&1)!==0&&i2(o,o.actualStartTime,r,Lo,p);var X=o.flags;switch(o.tag){case 0:case 11:case 15:zv(a,o,p,m,t,r),Ei(o,tp);break;case 23:break;case 22:var z=o.stateNode;o.memoizedState!==null?z._visibility&Vm?zv(a,o,p,m,t,r):F0(a,o,p,m,r):(z._visibility|=Vm,zv(a,o,p,m,t,r)),t&&X&2048&&z3(o.alternate,o);break;case 24:zv(a,o,p,m,t,r),t&&X&2048&&$3(o.alternate,o);break;default:zv(a,o,p,m,t,r)}(o.mode&Ba)!==za&&0<=ia&&0<=ca&&(Yo||0.05<lo)&&im(o,ia,ca,lo,io),Gp(v),lm(b),io=f,Yo=i,Lt=Y}function F0(a,o,p,m,t){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(var r=o.child;r!==null;){o=r.sibling;var v=a,b=p,f=m,i=o!==null?o.actualStartTime:t,Y=Lt;(r.mode&Ba)!==za&&0<r.actualStartTime&&(r.flags&1)!==0&&i2(r,r.actualStartTime,i,Lo,b);var X=r.flags;switch(r.tag){case 22:F0(v,r,b,f,i),X&2048&&z3(r.alternate,r);break;case 24:F0(v,r,b,f,i),X&2048&&$3(r.alternate,r);break;default:F0(v,r,b,f,i)}Lt=Y,r=o}}function $v(a,o,p){if(a.subtreeFlags&d5)for(a=a.child;a!==null;)Yw(a,o,p),a=a.sibling}function Yw(a,o,p){switch(a.tag){case 26:$v(a,o,p),a.flags&d5&&a.memoizedState!==null&&n$(p,mm,a.memoizedState,a.memoizedProps);break;case 5:$v(a,o,p);break;case 3:case 4:var m=mm;mm=ab(a.stateNode.containerInfo),$v(a,o,p),mm=m;break;case 22:a.memoizedState===null&&(m=a.alternate,m!==null&&m.memoizedState!==null?(m=d5,d5=16777216,$v(a,o,p),d5=m):$v(a,o,p));break;default:$v(a,o,p)}}function Xw(a){var o=a.alternate;if(o!==null&&(a=o.child,a!==null)){o.child=null;do o=a.sibling,a.sibling=null,a=o;while(a!==null)}}function C0(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var p=0;p<o.length;p++){var m=o[p],t=Zp();go=m,_w(m,a),(m.mode&Ba)!==za&&0<=ia&&0<=ca&&0.05<ca-ia&&fm(m,ia,ca,"Unmount"),Gp(t)}Xw(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Zw(a),a=a.sibling}function Zw(a){var o=Zp(),p=cm(),m=zm(),t=$m();switch(a.tag){case 0:case 11:case 15:C0(a),a.flags&2048&&i3(a,a.return,tp|Tp);break;case 3:var r=Am();C0(a),a.stateNode.passiveEffectDuration+=Z2(r);break;case 12:r=Am(),C0(a),a.stateNode.passiveEffectDuration+=H0(r);break;case 22:r=a.stateNode,a.memoizedState!==null&&r._visibility&Vm&&(a.return===null||a.return.tag!==13)?(r._visibility&=~Vm,x2(a),(a.mode&Ba)!==za&&0<=ia&&0<=ca&&0.05<ca-ia&&fm(a,ia,ca,"Disconnect")):C0(a);break;default:C0(a)}(a.mode&Ba)!==za&&0<=ia&&0<=ca&&(Yo||0.05<lo)&&im(a,ia,ca,lo,io),Gp(o),lm(p),Yo=t,io=m}function x2(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var p=0;p<o.length;p++){var m=o[p],t=Zp();go=m,_w(m,a),(m.mode&Ba)!==za&&0<=ia&&0<=ca&&0.05<ca-ia&&fm(m,ia,ca,"Unmount"),Gp(t)}Xw(a)}for(a=a.child;a!==null;)Gw(a),a=a.sibling}function Gw(a){var o=Zp(),p=cm(),m=zm(),t=$m();switch(a.tag){case 0:case 11:case 15:i3(a,a.return,tp),x2(a);break;case 22:var r=a.stateNode;r._visibility&Vm&&(r._visibility&=~Vm,x2(a));break;default:x2(a)}(a.mode&Ba)!==za&&0<=ia&&0<=ca&&(Yo||0.05<lo)&&im(a,ia,ca,lo,io),Gp(o),lm(p),Yo=t,io=m}function _w(a,o){for(;go!==null;){var p=go,m=p,t=o,r=Zp(),v=cm(),b=zm(),f=$m();switch(m.tag){case 0:case 11:case 15:i3(m,t,tp);break;case 23:case 22:m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(t=m.memoizedState.cachePool.pool,t!=null&&$r(t));break;case 24:K0(m.memoizedState.cache)}if((m.mode&Ba)!==za&&0<=ia&&0<=ca&&(Yo||0.05<lo)&&im(m,ia,ca,lo,io),Gp(r),lm(v),Yo=f,io=b,m=p.child,m!==null)m.return=p,go=m;else a:for(p=a;go!==null;){if(m=go,r=m.sibling,v=m.return,vw(m),m===p){go=null;break a}if(r!==null){r.return=v,go=r;break a}go=v}}}function m$(){KY.forEach(function(a){return a()})}function qw(){var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return a||K.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),a}function qp(a){if((ga&Oo)!==Fo&&Ha!==0)return Ha&-Ha;var o=K.T;return o!==null?(o._updatedFibers||(o._updatedFibers=new Set),o._updatedFibers.add(a),Q3()):g7()}function Qw(){if(zp===0)if((Ha&536870912)===0||Oa){var a=lb;lb<<=1,(lb&3932160)===0&&(lb=262144),zp=a}else zp=536870912;return a=Up.current,a!==null&&(a.flags|=32),zp}function Jo(a,o,p){if(ev&&console.error("useInsertionEffect must not schedule updates."),t7&&(Eb=!0),a===Ea&&(Sa===kr||Sa===Nr)||a.cancelPendingCommit!==null)Yv(a,0),Bt(a,Ha,zp,!1);if(z0(a,p),(ga&Oo)!==Fo&&a===Ea){if(Hm)switch(o.tag){case 0:case 11:case 15:a=Wa&&L(Wa)||"Unknown",Dl.has(a)||(Dl.add(a),o=L(o)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",o,a,a));break;case 1:Vl||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Vl=!0)}}else Um&&N7(a,o,p),z$(o),a===Ea&&((ga&Oo)===Fo&&(nt|=p),zo===It&&Bt(a,Ha,zp,!1)),qm(a)}function Bw(a,o,p){if((ga&(Oo|Rp))!==Fo)throw Error("Should not already be working.");if(Ha!==0&&Wa!==null){var m=Wa,t=No();switch(I8){case L5:case kr:var r=$5;mo&&((m=m._debugTask)?m.run(console.timeStamp.bind(console,"Suspended",r,t,Np,void 0,"primary-light")):console.timeStamp("Suspended",r,t,Np,void 0,"primary-light"));break;case Nr:r=$5,mo&&((m=m._debugTask)?m.run(console.timeStamp.bind(console,"Action",r,t,Np,void 0,"primary-light")):console.timeStamp("Action",r,t,Np,void 0,"primary-light"));break;default:mo&&(m=t-$5,3>m||console.timeStamp("Blocked",$5,t,Np,void 0,5>m?"primary-light":10>m?"primary":100>m?"primary-dark":"error"))}}r=(p=!p&&(o&127)===0&&(o&a.expiredLanes)===0||l0(a,o))?r$(a,o):Y3(a,o,!0);var v=p;do{if(r===rt){Ev&&!p&&Bt(a,o,0,!1),o=Sa,$5=Qo(),I8=o;break}else{if(m=No(),t=a.current.alternate,v&&!t$(t)){Yp(o),t=Mo,r=m,!mo||r<=t||(Zo?Zo.run(console.timeStamp.bind(console,"Teared Render",t,r,ya,Ra,"error")):console.timeStamp("Teared Render",t,r,ya,Ra,"error")),_r(o,m),r=Y3(a,o,!1),v=!1;continue}if(r===hr){if(v=o,a.errorRecoveryDisabledLanes&v)var b=0;else b=a.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){Yp(o),s1(Mo,m,o,Zo),_r(o,m),o=b;a:{m=a,r=v,v=h5;var f=m.current.memoizedState.isDehydrated;if(f&&(Yv(m,b).flags|=256),b=Y3(m,b,!1),b!==hr){if(jf&&!f){m.errorRecoveryDisabledLanes|=r,nt|=r,r=It;break a}m=rp,rp=v,m!==null&&(rp===null?rp=m:rp.push.apply(rp,m))}r=b}if(v=!1,r!==hr)continue;else m=No()}}if(r===y5){Yp(o),s1(Mo,m,o,Zo),_r(o,m),Yv(a,0),Bt(a,o,0,!0);break}a:{switch(p=a,r){case rt:case y5:throw Error("Root did not complete. This is a bug in React.");case It:if((o&4194048)!==o)break;case Tb:Yp(o),B6(Mo,m,o,Zo),_r(o,m),t=o,(t&127)!==0?db=m:(t&4194048)!==0&&(Rb=m),Bt(p,o,zp,!At);break a;case hr:rp=null;break;case Ab:case Nl:break;default:throw Error("Unknown root exit status.")}if(K.actQueue!==null)X3(p,t,o,rp,k5,ub,zp,nt,Mr,r,null,null,Mo,m);else{if((o&62914560)===o&&(v=xb+Fl-No(),10<v)){if(Bt(p,o,zp,!At),e5(p,0,!0)!==0)break a;tm=o,p.timeoutHandle=m9(Kw.bind(null,p,t,rp,k5,ub,o,zp,nt,Mr,At,r,"Throttled",Mo,m),v);break a}Kw(p,t,rp,k5,ub,o,zp,nt,Mr,At,r,null,Mo,m)}}}break}while(1);qm(a)}function Kw(a,o,p,m,t,r,v,b,f,i,Y,X,z,q){a.timeoutHandle=Ir;var n=o.subtreeFlags,E=null;if(n&8192||(n&16785408)===16785408){if(E={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fm},Yw(o,r,E),n=(r&62914560)===r?xb-No():(r&4194048)===r?gl-No():0,n=S$(E,n),n!==null){tm=r,a.cancelPendingCommit=n(X3.bind(null,a,o,r,p,m,t,v,b,f,Y,E,E.waitingForViewTransition?"Waiting for the previous Animation":0<E.count?0<E.imgCount?"Suspended on CSS and Images":"Suspended on CSS":E.imgCount===1?"Suspended on an Image":0<E.imgCount?"Suspended on Images":null,z,q)),Bt(a,r,v,!i);return}}X3(a,o,r,p,m,t,v,b,f,Y,E,X,z,q)}function t$(a){for(var o=a;;){var p=o.tag;if((p===0||p===11||p===15)&&o.flags&16384&&(p=o.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var m=0;m<p.length;m++){var t=p[m],r=t.getSnapshot;t=t.value;try{if(!op(r(),t))return!1}catch(v){return!1}}if(p=o.child,o.subtreeFlags&16384&&p!==null)p.return=o,o=p;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Bt(a,o,p,m){o&=~Ef,o&=~nt,a.suspendedLanes|=o,a.pingedLanes&=~o,m&&(a.warmLanes|=o),m=a.expirationTimes;for(var t=o;0<t;){var r=31-so(t),v=1<<r;m[r]=-1,t&=~v}p!==0&&O7(a,p,o)}function Jv(){return(ga&(Oo|Rp))===Fo?(A0(0,!1),!1):!0}function J3(){if(Wa!==null){if(Sa===lp)var a=Wa.return;else a=Wa,J2(),W4(a),Av=null,B5=0,a=Wa;for(;a!==null;)Di(a.alternate,a),a=a.return;Wa=null}}function _r(a,o){(a&127)!==0&&(Mt=o),(a&4194048)!==0&&(Om=o),(a&62914560)!==0&&(C8=o),(a&2080374784)!==0&&(P8=o)}function Yv(a,o){mo&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",Ra,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",Ra,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",Ra,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",Ra,"primary-light"));var p=Mo;if(Mo=Qo(),Ha!==0&&0<p){if(Yp(Ha),zo===Ab||zo===It)B6(p,Mo,o,Zo);else{var m=Mo,t=Zo;if(mo&&!(m<=p)){var r=(o&738197653)===o?"tertiary-dark":"primary-dark",v=(o&536870912)===o?"Prewarm":(o&201326741)===o?"Interrupted Hydration":"Interrupted Render";t?t.run(console.timeStamp.bind(console,v,p,m,ya,Ra,r)):console.timeStamp(v,p,m,ya,Ra,r)}}_r(Ha,Mo)}if(p=Zo,Zo=null,(o&127)!==0){Zo=c5,t=0<=Lm&&Lm<Mt?Mt:Lm,m=0<=Hr&&Hr<Mt?Mt:Hr,r=0<=m?m:0<=t?t:Mo,0<=db?(Yp(2),K6(db,r,o,p)):(yb&127)!==0&&(Yp(2),Q0(Mt,r,at)),p=t;var b=m,f=l5,i=0<Cv,Y=gt===w5,X=gt===Ub;if(t=Mo,m=c5,r=Rf,v=yf,mo){if(ya="Blocking",0<p?p>t&&(p=t):p=t,0<b?b>p&&(b=p):b=p,f!==null&&p>b){var z=i?"secondary-light":"warning";m?m.run(console.timeStamp.bind(console,i?"Consecutive":"Event: "+f,b,p,ya,Ra,z)):console.timeStamp(i?"Consecutive":"Event: "+f,b,p,ya,Ra,z)}t>p&&(b=Y?"error":(o&738197653)===o?"tertiary-light":"primary-light",Y=X?"Promise Resolved":Y?"Cascading Update":5<t-p?"Update Blocked":"Update",X=[],v!=null&&X.push(["Component name",v]),r!=null&&X.push(["Method name",r]),p={start:p,end:t,detail:{devtools:{properties:X,track:ya,trackGroup:Ra,color:b}}},m?m.run(performance.measure.bind(performance,Y,p)):performance.measure(Y,p))}Lm=-1.1,gt=0,yf=Rf=null,db=-1.1,Cv=Hr,Hr=-1.1,Mt=Qo()}if((o&4194048)!==0&&(Zo=z5,t=0<=em&&em<Om?Om:em,p=0<=Ip&&Ip<Om?Om:Ip,m=0<=Ft&&Ft<Om?Om:Ft,r=0<=m?m:0<=p?p:Mo,0<=Rb?(Yp(256),K6(Rb,r,o,Zo)):(yb&4194048)!==0&&(Yp(256),Q0(Om,r,at)),X=m,b=Wr,f=0<Ct,i=Lf===Ub,r=Mo,m=z5,v=g8,Y=F8,mo&&(ya="Transition",0<p?p>r&&(p=r):p=r,0<t?t>p&&(t=p):t=p,0<X?X>t&&(X=t):X=t,t>X&&b!==null&&(z=f?"secondary-light":"warning",m?m.run(console.timeStamp.bind(console,f?"Consecutive":"Event: "+b,X,t,ya,Ra,z)):console.timeStamp(f?"Consecutive":"Event: "+b,X,t,ya,Ra,z)),p>t&&(m?m.run(console.timeStamp.bind(console,"Action",t,p,ya,Ra,"primary-dark")):console.timeStamp("Action",t,p,ya,Ra,"primary-dark")),r>p&&(t=i?"Promise Resolved":5<r-p?"Update Blocked":"Update",X=[],Y!=null&&X.push(["Component name",Y]),v!=null&&X.push(["Method name",v]),p={start:p,end:r,detail:{devtools:{properties:X,track:ya,trackGroup:Ra,color:"primary-light"}}},m?m.run(performance.measure.bind(performance,t,p)):performance.measure(t,p))),Ip=em=-1.1,Lf=0,Rb=-1.1,Ct=Ft,Ft=-1.1,Om=Qo()),(o&62914560)!==0&&(yb&62914560)!==0&&(Yp(4194304),Q0(C8,Mo,at)),(o&2080374784)!==0&&(yb&2080374784)!==0&&(Yp(268435456),Q0(P8,Mo,at)),p=a.timeoutHandle,p!==Ir&&(a.timeoutHandle=Ir,gY(p)),p=a.cancelPendingCommit,p!==null&&(a.cancelPendingCommit=null,p()),tm=0,J3(),Ea=a,Wa=p=Cm(a.current,null),Ha=o,Sa=lp,yp=null,At=!1,Ev=l0(a,o),jf=!1,zo=rt,Mr=zp=Ef=nt=Tt=0,rp=h5=null,ub=!1,(o&8)!==0&&(o|=o&32),m=a.entangledLanes,m!==0)for(a=a.entanglements,m&=o;0<m;)t=31-so(m),r=1<<t,o|=a[t],m&=~r;return km=o,w2(),a=L8(),1000<a-y8&&(K.recentlyCreatedOwnerStacks=0,y8=a),om.discardPendingWarnings(),p}function Hw(a,o){Ja=null,K.H=U5,K.getCurrentStack=null,Hm=!1,Kp=null,o===Iv||o===kb?(o=u6(),Sa=L5):o===Nf?(o=u6(),Sa=Ml):Sa=o===Sf?Df:o!==null&&typeof o==="object"&&typeof o.then==="function"?O5:nb,yp=o;var p=Wa;p===null?(zo=y5,P2(a,Xp(o,a.current))):p.mode&Ba&&z4(p)}function Ww(){var a=Up.current;return a===null?!0:(Ha&4194048)===Ha?Ap===null?!0:!1:(Ha&62914560)===Ha||(Ha&536870912)!==0?a===Ap:!1}function Uw(){var a=K.H;return K.H=U5,a===null?U5:a}function dw(){var a=K.A;return K.A=BY,a}function V2(a){Zo===null&&(Zo=a._debugTask==null?null:a._debugTask)}function D2(){zo=It,At||(Ha&4194048)!==Ha&&Up.current!==null||(Ev=!0),(Tt&134217727)===0&&(nt&134217727)===0||Ea===null||Bt(Ea,Ha,zp,!1)}function Y3(a,o,p){var m=ga;ga|=Oo;var t=Uw(),r=dw();if(Ea!==a||Ha!==o){if(Um){var v=a.memoizedUpdaters;0<v.size&&(I0(a,Ha),v.clear()),M7(a,o)}k5=null,Yv(a,o)}o=!1,v=zo;a:do try{if(Sa!==lp&&Wa!==null){var b=Wa,f=yp;switch(Sa){case Df:J3(),v=Tb;break a;case L5:case kr:case Nr:case O5:Up.current===null&&(o=!0);var i=Sa;if(Sa=lp,yp=null,Xv(a,b,f,i),p&&Ev){v=rt;break a}break;default:i=Sa,Sa=lp,yp=null,Xv(a,b,f,i)}}Rw(),v=zo;break}catch(Y){Hw(a,Y)}while(1);return o&&a.shellSuspendCounter++,J2(),ga=m,K.H=t,K.A=r,Wa===null&&(Ea=null,Ha=0,w2()),v}function Rw(){for(;Wa!==null;)yw(Wa)}function r$(a,o){var p=ga;ga|=Oo;var m=Uw(),t=dw();if(Ea!==a||Ha!==o){if(Um){var r=a.memoizedUpdaters;0<r.size&&(I0(a,Ha),r.clear()),M7(a,o)}k5=null,Vb=No()+Cl,Yv(a,o)}else Ev=l0(a,o);a:do try{if(Sa!==lp&&Wa!==null)o:switch(o=Wa,r=yp,Sa){case nb:Sa=lp,yp=null,Xv(a,o,r,nb);break;case kr:case Nr:if(n6(r)){Sa=lp,yp=null,Lw(o);break}o=function(){Sa!==kr&&Sa!==Nr||Ea!==a||(Sa=Sb),qm(a)},r.then(o,o);break a;case L5:Sa=Sb;break a;case Ml:Sa=Vf;break a;case Sb:n6(r)?(Sa=lp,yp=null,Lw(o)):(Sa=lp,yp=null,Xv(a,o,r,Sb));break;case Vf:var v=null;switch(Wa.tag){case 26:v=Wa.memoizedState;case 5:case 27:var b=Wa;if(v?Bc(v):b.stateNode.complete){Sa=lp,yp=null;var f=b.sibling;if(f!==null)Wa=f;else{var i=b.return;i!==null?(Wa=i,j2(i)):Wa=null}break o}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Sa=lp,yp=null,Xv(a,o,r,Vf);break;case O5:Sa=lp,yp=null,Xv(a,o,r,O5);break;case Df:J3(),zo=Tb;break a;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}K.actQueue!==null?Rw():v$();break}catch(Y){Hw(a,Y)}while(1);if(J2(),K.H=m,K.A=t,ga=p,Wa!==null)return rt;return Ea=null,Ha=0,w2(),zo}function v$(){for(;Wa!==null&&!tJ();)yw(Wa)}function yw(a){var o=a.alternate;(a.mode&Ba)!==za?(l4(a),o=F(a,v3,o,a,km),z4(a)):o=F(a,v3,o,a,km),a.memoizedProps=a.pendingProps,o===null?j2(a):Wa=o}function Lw(a){var o=F(a,b$,a);a.memoizedProps=a.pendingProps,o===null?j2(a):Wa=o}function b$(a){var o=a.alternate,p=(a.mode&Ba)!==za;switch(p&&l4(a),a.tag){case 15:case 0:o=Ai(o,a,a.pendingProps,a.type,void 0,Ha);break;case 11:o=Ai(o,a,a.pendingProps,a.type.render,a.ref,Ha);break;case 5:W4(a);default:Di(o,a),a=Wa=y6(a,km),o=v3(o,a,km)}return p&&z4(a),o}function Xv(a,o,p,m){J2(),W4(o),Av=null,B5=0;var t=o.return;try{if(Sz(a,t,o,p,Ha)){zo=y5,P2(a,Xp(p,a.current)),Wa=null;return}}catch(r){if(t!==null)throw Wa=t,r;zo=y5,P2(a,Xp(p,a.current)),Wa=null;return}if(o.flags&32768){if(Oa||m===nb)a=!0;else if(Ev||(Ha&536870912)!==0)a=!1;else if(At=a=!0,m===kr||m===Nr||m===L5||m===O5)m=Up.current,m!==null&&m.tag===13&&(m.flags|=16384);Ow(o,a)}else j2(o)}function j2(a){var o=a;do{if((o.flags&32768)!==0){Ow(o,At);return}var p=o.alternate;if(a=o.return,l4(o),p=F(o,Vz,p,o,km),(o.mode&Ba)!==za&&C6(o),p!==null){Wa=p;return}if(o=o.sibling,o!==null){Wa=o;return}Wa=o=a}while(o!==null);zo===rt&&(zo=Nl)}function Ow(a,o){do{var p=Dz(a.alternate,a);if(p!==null){p.flags&=32767,Wa=p;return}if((a.mode&Ba)!==za){C6(a),p=a.actualDuration;for(var m=a.child;m!==null;)p+=m.actualDuration,m=m.sibling;a.actualDuration=p}if(p=a.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!o&&(a=a.sibling,a!==null)){Wa=a;return}Wa=a=p}while(a!==null);zo=Tb,Wa=null}function X3(a,o,p,m,t,r,v,b,f,i,Y,X,z,q){a.cancelPendingCommit=null;do P0();while(Uo!==ut);if(om.flushLegacyContextWarning(),om.flushPendingUnsafeLifecycleWarnings(),(ga&(Oo|Rp))!==Fo)throw Error("Should not already be working.");if(Yp(p),i===hr?s1(z,q,p,Zo):m!==null?Oz(z,q,p,m,o!==null&&o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)!==0,Zo):Lz(z,q,p,Zo),o!==null){if(p===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),o===a.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(r=o.lanes|o.childLanes,r|=Kf,wz(a,p,r,v,b,f),a===Ea&&(Wa=Ea=null,Ha=0),sv=o,xt=a,tm=p,a7=r,p7=t,Sl=m,o7=q,ul=X,rm=Db,xl=null,o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,l$(Bv,function(){return P5=window.event,rm===Db&&(rm=ef),gw(),null})):(a.callbackNode=null,a.callbackPriority=0),sm=null,Nt=Qo(),X!==null&&hz(q,Nt,X,Zo),m=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||m){m=K.T,K.T=null,t=Aa.p,Aa.p=Hp,v=ga,ga|=Rp;try{o$(a,o,p)}finally{ga=v,Aa.p=t,K.T=m}}Uo=Il,hw(),kw(),Nw()}}function hw(){if(Uo===Il){Uo=ut;var a=xt,o=sv,p=tm,m=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||m){m=K.T,K.T=null;var t=Aa.p;Aa.p=Hp;var r=ga;ga|=Rp;try{Dv=p,jv=a,G2(),ww(o,a),jv=Dv=null,p=z7;var v=_6(a.containerInfo),b=p.focusedElem,f=p.selectionRange;if(v!==b&&b&&b.ownerDocument&&G6(b.ownerDocument.documentElement,b)){if(f!==null&&D1(b)){var{start:i,end:Y}=f;if(Y===void 0&&(Y=i),"selectionStart"in b)b.selectionStart=i,b.selectionEnd=Math.min(Y,b.value.length);else{var X=b.ownerDocument||document,z=X&&X.defaultView||window;if(z.getSelection){var q=z.getSelection(),n=b.textContent.length,E=Math.min(f.start,n),ao=f.end===void 0?E:Math.min(f.end,n);!q.extend&&E>ao&&(v=ao,ao=E,E=v);var Ma=Z6(b,E),l=Z6(b,ao);if(Ma&&l&&(q.rangeCount!==1||q.anchorNode!==Ma.node||q.anchorOffset!==Ma.offset||q.focusNode!==l.node||q.focusOffset!==l.offset)){var $=X.createRange();$.setStart(Ma.node,Ma.offset),q.removeAllRanges(),E>ao?(q.addRange($),q.extend(l.node,l.offset)):($.setEnd(l.node,l.offset),q.addRange($))}}}}X=[];for(q=b;q=q.parentNode;)q.nodeType===1&&X.push({element:q,left:q.scrollLeft,top:q.scrollTop});typeof b.focus==="function"&&b.focus();for(b=0;b<X.length;b++){var J=X[b];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}c1=!!l7,z7=l7=null}finally{ga=r,Aa.p=t,K.T=m}}a.current=o,Uo=Al}}function kw(){if(Uo===Al){Uo=ut;var a=xl;if(a!==null){Nt=Qo();var o=Em,p=Nt;!mo||p<=o||(at?at.run(console.timeStamp.bind(console,a,o,p,ya,Ra,"secondary-light")):console.timeStamp(a,o,p,ya,Ra,"secondary-light"))}a=xt,o=sv,p=tm;var m=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||m){m=K.T,K.T=null;var t=Aa.p;Aa.p=Hp;var r=ga;ga|=Rp;try{Dv=p,jv=a,G2(),rw(a,o.alternate,o),jv=Dv=null}finally{ga=r,Aa.p=t,K.T=m}}a=o7,o=ul,Em=Qo(),a=o===null?a:Nt,o=Em,p=rm===sf,m=Zo,sm!==null?H6(a,o,sm,!1,m):!mo||o<=a||(m?m.run(console.timeStamp.bind(console,p?"Commit Interrupted View Transition":"Commit",a,o,ya,Ra,p?"error":"secondary-dark")):console.timeStamp(p?"Commit Interrupted View Transition":"Commit",a,o,ya,Ra,p?"error":"secondary-dark")),Uo=Tl}}function Nw(){if(Uo===nl||Uo===Tl){if(Uo===nl){var a=Em;Em=Qo();var o=Em,p=rm===sf;!mo||o<=a||(at?at.run(console.timeStamp.bind(console,p?"Interrupted View Transition":"Starting Animation",a,o,ya,Ra,p?"error":"secondary-light")):console.timeStamp(p?"Interrupted View Transition":"Starting Animation",a,o,ya,Ra,p?" error":"secondary-light")),rm!==sf&&(rm=Pl)}Uo=ut,rJ(),a=xt;var m=sv;o=tm,p=Sl;var t=m.actualDuration!==0||(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0;t?Uo=jb:(Uo=ut,sv=xt=null,Mw(a,a.pendingLanes),gr=0,M5=null);var r=a.pendingLanes;if(r===0&&(St=null),t||Iw(a),r=M1(o),m=m.stateNode,xo&&typeof xo.onCommitFiberRoot==="function")try{var v=(m.current.flags&128)===128;switch(r){case Hp:var b=of;break;case ep:b=pf;break;case dm:b=Bv;break;case $b:b=mf;break;default:b=Bv}xo.onCommitFiberRoot(Kv,m,b,v)}catch(X){Wm||(Wm=!0,console.error("React instrumentation encountered an error: %o",X))}if(Um&&a.memoizedUpdaters.clear(),m$(),p!==null){v=K.T,b=Aa.p,Aa.p=Hp,K.T=null;try{var f=a.onRecoverableError;for(m=0;m<p.length;m++){var i=p[m],Y=f$(i.stack);F(i.source,f,i.value,Y)}}finally{K.T=v,Aa.p=b}}(tm&3)!==0&&P0(),qm(a),r=a.pendingLanes,(o&261930)!==0&&(r&42)!==0?(Ob=!0,a===m7?N5++:(N5=0,m7=a)):N5=0,t||_r(o,Em),A0(0,!1)}}function f$(a){return a={componentStack:a},Object.defineProperty(a,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),a}function Mw(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,K0(o)))}function P0(){return hw(),kw(),Nw(),gw()}function gw(){if(Uo!==jb)return!1;var a=xt,o=a7;a7=0;var p=M1(tm),m=dm===0||dm>p?dm:p;p=K.T;var t=Aa.p;try{Aa.p=m,K.T=null;var r=p7;p7=null,m=xt;var v=tm;if(Uo=ut,sv=xt=null,tm=0,(ga&(Oo|Rp))!==Fo)throw Error("Cannot flush passive effects while already rendering.");Yp(v),t7=!0,Eb=!1;var b=0;if(sm=null,b=No(),rm===Pl)Q0(Em,b,at);else{var f=Em,i=b,Y=rm===ef;!mo||i<=f||(Zo?Zo.run(console.timeStamp.bind(console,Y?"Waiting for Paint":"Waiting",f,i,ya,Ra,"secondary-light")):console.timeStamp(Y?"Waiting for Paint":"Waiting",f,i,ya,Ra,"secondary-light"))}f=ga,ga|=Rp;var X=m.current;G2(),Zw(X);var z=m.current;X=o7,G2(),$w(m,z,v,r,X),Iw(m),ga=f;var q=No();if(z=b,X=Zo,sm!==null?H6(z,q,sm,!0,X):!mo||q<=z||(X?X.run(console.timeStamp.bind(console,"Remaining Effects",z,q,ya,Ra,"secondary-dark")):console.timeStamp("Remaining Effects",z,q,ya,Ra,"secondary-dark")),_r(v,q),A0(0,!1),Eb?m===M5?gr++:(gr=0,M5=m):gr=0,Eb=t7=!1,xo&&typeof xo.onPostCommitFiberRoot==="function")try{xo.onPostCommitFiberRoot(Kv,m)}catch(E){Wm||(Wm=!0,console.error("React instrumentation encountered an error: %o",E))}var n=m.current.stateNode;return n.effectDuration=0,n.passiveEffectDuration=0,!0}finally{Aa.p=t,K.T=p,Mw(a,o)}}function Fw(a,o,p){o=Xp(p,o),P6(o),o=D4(a.stateNode,o,2),a=Gt(a,o,2),a!==null&&(z0(a,2),qm(a))}function Ia(a,o,p){if(ev=!1,a.tag===3)Fw(a,a,p);else{for(;o!==null;){if(o.tag===3){Fw(o,a,p);return}if(o.tag===1){var m=o.stateNode;if(typeof o.type.getDerivedStateFromError==="function"||typeof m.componentDidCatch==="function"&&(St===null||!St.has(m))){a=Xp(p,a),P6(a),p=j4(2),m=Gt(o,p,2),m!==null&&(E4(p,m,o,a),z0(m,2),qm(m));return}}o=o.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
138
|
-
|
|
139
|
-
Error message:
|
|
140
|
-
|
|
141
|
-
%s`,p)}}function Z3(a,o,p){var m=a.pingCache;if(m===null){m=a.pingCache=new HY;var t=new Set;m.set(o,t)}else t=m.get(o),t===void 0&&(t=new Set,m.set(o,t));t.has(p)||(jf=!0,t.add(p),m=i$.bind(null,a,o,p),Um&&I0(a,p),o.then(m,m))}function i$(a,o,p){var m=a.pingCache;m!==null&&m.delete(o),a.pingedLanes|=a.suspendedLanes&p,a.warmLanes&=~p,(p&127)!==0?0>Lm&&(Mt=Lm=Qo(),c5=Wb("Promise Resolved"),gt=Ub):(p&4194048)!==0&&0>Ip&&(Om=Ip=Qo(),z5=Wb("Promise Resolved"),Lf=Ub),qw()&&K.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
142
|
-
|
|
143
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
144
|
-
|
|
145
|
-
act(() => {
|
|
146
|
-
/* finish loading suspended data */
|
|
147
|
-
});
|
|
148
|
-
/* assert on the output */
|
|
149
|
-
|
|
150
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Ea===a&&(Ha&p)===p&&(zo===It||zo===Ab&&(Ha&62914560)===Ha&&No()-xb<Fl?(ga&Oo)===Fo&&Yv(a,0):Ef|=p,Mr===Ha&&(Mr=0)),qm(a)}function Cw(a,o){o===0&&(o=h1()),a=uo(a,o),a!==null&&(z0(a,o),qm(a))}function w$(a){var o=a.memoizedState,p=0;o!==null&&(p=o.retryLane),Cw(a,p)}function c$(a,o){var p=0;switch(a.tag){case 31:case 13:var{stateNode:m,memoizedState:t}=a;t!==null&&(p=t.retryLane);break;case 19:m=a.stateNode;break;case 22:m=a.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}m!==null&&m.delete(o),Cw(a,p)}function G3(a,o,p){if((o.subtreeFlags&67117056)!==0)for(o=o.child;o!==null;){var m=a,t=o,r=t.type===fb;r=p||r,t.tag!==22?t.flags&67108864?r&&F(t,Pw,m,t):G3(m,t,r):t.memoizedState===null&&(r&&t.flags&8192?F(t,Pw,m,t):t.subtreeFlags&67108864&&F(t,G3,m,t,r)),o=o.sibling}}function Pw(a,o){co(!0);try{lw(o),Gw(o),zw(a,o.alternate,o,!1),Jw(a,o,0,null,!1,0)}finally{co(!1)}}function Iw(a){var o=!0;a.current.mode&(Vo|am)||(o=!1),G3(a,a.current,o)}function Aw(a){if((ga&Oo)===Fo){var o=a.tag;if(o===3||o===1||o===0||o===11||o===14||o===15){if(o=L(a)||"ReactComponent",sb!==null){if(sb.has(o))return;sb.add(o)}else sb=new Set([o]);F(a,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function I0(a,o){Um&&a.memoizedUpdaters.forEach(function(p){N7(a,p,o)})}function l$(a,o){var p=K.actQueue;return p!==null?(p.push(o),dY):af(a,o)}function z$(a){qw()&&K.actQueue===null&&F(a,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
151
|
-
|
|
152
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
153
|
-
|
|
154
|
-
act(() => {
|
|
155
|
-
/* fire events that update state */
|
|
156
|
-
});
|
|
157
|
-
/* assert on the output */
|
|
158
|
-
|
|
159
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,L(a))})}function qm(a){a!==a0&&a.next===null&&(a0===null?eb=a0=a:a0=a0.next=a),a1=!0,K.actQueue!==null?v7||(v7=!0,uw()):r7||(r7=!0,uw())}function A0(a,o){if(!b7&&a1){b7=!0;do{var p=!1;for(var m=eb;m!==null;){if(!o)if(a!==0){var t=m.pendingLanes;if(t===0)var r=0;else{var{suspendedLanes:v,pingedLanes:b}=m;r=(1<<31-so(42|a)+1)-1,r&=t&~(v&~b),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(p=!0,Sw(m,r))}else r=Ha,r=e5(m,m===Ea?r:0,m.cancelPendingCommit!==null||m.timeoutHandle!==Ir),(r&3)===0||l0(m,r)||(p=!0,Sw(m,r));m=m.next}}while(p);b7=!1}}function $$(){P5=window.event,_3()}function _3(){a1=v7=r7=!1;var a=0;Vt!==0&&q$()&&(a=Vt);for(var o=No(),p=null,m=eb;m!==null;){var t=m.next,r=Tw(m,o);if(r===0)m.next=null,p===null?eb=t:p.next=t,t===null&&(a0=p);else if(p=m,a!==0||(r&3)!==0)a1=!0;m=t}Uo!==ut&&Uo!==jb||A0(a,!1),Vt!==0&&(Vt=0)}function Tw(a,o){for(var{suspendedLanes:p,pingedLanes:m,expirationTimes:t}=a,r=a.pendingLanes&-62914561;0<r;){var v=31-so(r),b=1<<v,f=t[v];if(f===-1){if((b&p)===0||(b&m)!==0)t[v]=iz(b,o)}else f<=o&&(a.expiredLanes|=b);r&=~b}if(o=Ea,p=Ha,p=e5(a,a===o?p:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Ir),m=a.callbackNode,p===0||a===o&&(Sa===kr||Sa===Nr)||a.cancelPendingCommit!==null)return m!==null&&q3(m),a.callbackNode=null,a.callbackPriority=0;if((p&3)===0||l0(a,p)){if(o=p&-p,o!==a.callbackPriority||K.actQueue!==null&&m!==f7)q3(m);else return o;switch(M1(p)){case Hp:case ep:p=pf;break;case dm:p=Bv;break;case $b:p=mf;break;default:p=Bv}return m=nw.bind(null,a),K.actQueue!==null?(K.actQueue.push(m),p=f7):p=af(p,m),a.callbackPriority=o,a.callbackNode=p,o}return m!==null&&q3(m),a.callbackPriority=2,a.callbackNode=null,2}function nw(a,o){if(Ob=Lb=!1,P5=window.event,Uo!==ut&&Uo!==jb)return a.callbackNode=null,a.callbackPriority=0,null;var p=a.callbackNode;if(rm===Db&&(rm=ef),P0()&&a.callbackNode!==p)return null;var m=Ha;if(m=e5(a,a===Ea?m:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Ir),m===0)return null;return Bw(a,m,o),Tw(a,No()),a.callbackNode!=null&&a.callbackNode===p?nw.bind(null,a):null}function Sw(a,o){if(P0())return null;Lb=Ob,Ob=!1,Bw(a,o,!0)}function q3(a){a!==f7&&a!==null&&mJ(a)}function uw(){K.actQueue!==null&&K.actQueue.push(function(){return _3(),null}),FY(function(){(ga&(Oo|Rp))!==Fo?af(of,$$):_3()})}function Q3(){if(Vt===0){var a=Ur;a===0&&(a=cb,cb<<=1,(cb&261888)===0&&(cb=256)),Vt=a}return Vt}function xw(a){if(a==null||typeof a==="symbol"||typeof a==="boolean")return null;if(typeof a==="function")return a;return Ta(a,"action"),G0(""+a)}function Vw(a,o){var p=o.ownerDocument.createElement("input");return p.name=o.name,p.value=o.value,a.id&&p.setAttribute("form",a.id),o.parentNode.insertBefore(p,o),a=new FormData(a),p.parentNode.removeChild(p),a}function J$(a,o,p,m,t){if(o==="submit"&&p&&p.stateNode===t){var r=xw((t[eo]||null).action),v=m.submitter;v&&(o=(o=v[eo]||null)?xw(o.formAction):v.getAttribute("formAction"),o!==null&&(r=o,v=null));var b=new Gb("action","action",null,m,t);a.push({event:b,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Vt!==0){var f=v?Vw(t,v):new FormData(t),i={pending:!0,data:f,method:t.method,action:r};Object.freeze(i),A4(p,i,null,f)}}else typeof r==="function"&&(b.preventDefault(),f=v?Vw(t,v):new FormData(t),i={pending:!0,data:f,method:t.method,action:r},Object.freeze(i),A4(p,i,r,f))},currentTarget:t}]})}}function E2(a,o,p){a.currentTarget=p;try{o(a)}catch(m){_f(m)}a.currentTarget=null}function Dw(a,o){o=(o&4)!==0;for(var p=0;p<a.length;p++){var m=a[p];a:{var t=void 0,r=m.event;if(m=m.listeners,o)for(var v=m.length-1;0<=v;v--){var b=m[v],f=b.instance,i=b.currentTarget;if(b=b.listener,f!==t&&r.isPropagationStopped())break a;f!==null?F(f,E2,r,b,i):E2(r,b,i),t=f}else for(v=0;v<m.length;v++){if(b=m[v],f=b.instance,i=b.currentTarget,b=b.listener,f!==t&&r.isPropagationStopped())break a;f!==null?F(f,E2,r,b,i):E2(r,b,i),t=f}}}}function Na(a,o){i7.has(a)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',a);var p=o[tf];p===void 0&&(p=o[tf]=new Set);var m=a+"__bubble";p.has(m)||(jw(o,a,2,!1),p.add(m))}function B3(a,o,p){i7.has(a)&&!o&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',a);var m=0;o&&(m|=4),jw(p,a,m,o)}function K3(a){if(!a[o1]){a[o1]=!0,uc.forEach(function(p){p!=="selectionchange"&&(i7.has(p)||B3(p,!1,a),B3(p,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[o1]||(o[o1]=!0,B3("selectionchange",!1,o))}}function jw(a,o,p,m){switch(Rc(o)){case Hp:var t=D$;break;case ep:t=j$;break;default:t=P3}p=t.bind(null,o,p,a),t=void 0,!wf||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(t=!0),m?t!==void 0?a.addEventListener(o,p,{capture:!0,passive:t}):a.addEventListener(o,p,!0):t!==void 0?a.addEventListener(o,p,{passive:t}):a.addEventListener(o,p,!1)}function H3(a,o,p,m,t){var r=m;if((o&1)===0&&(o&2)===0&&m!==null)a:for(;;){if(m===null)return;var v=m.tag;if(v===3||v===4){var b=m.stateNode.containerInfo;if(b===t)break;if(v===4)for(v=m.return;v!==null;){var f=v.tag;if((f===3||f===4)&&v.stateNode.containerInfo===t)return;v=v.return}for(;b!==null;){if(v=er(b),v===null)return;if(f=v.tag,f===5||f===6||f===26||f===27){m=r=v;continue a}b=b.parentNode}}m=m.return}b6(function(){var i=r,Y=x1(p),X=[];a:{var z=R8.get(a);if(z!==void 0){var q=Gb,n=a;switch(a){case"keypress":if(r2(p)===0)break a;case"keydown":case"keyup":q=nJ;break;case"focusin":n="focus",q=$f;break;case"focusout":n="blur",q=$f;break;case"beforeblur":case"afterblur":q=$f;break;case"click":if(p.button===2)break a;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=J8;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=OJ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=xJ;break;case H8:case W8:case U8:q=NJ;break;case d8:q=DJ;break;case"scroll":case"scrollend":q=yJ;break;case"wheel":q=EJ;break;case"copy":case"cut":case"paste":q=gJ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=X8;break;case"toggle":case"beforetoggle":q=eJ}var E=(o&4)!==0,ao=!E&&(a==="scroll"||a==="scrollend"),Ma=E?z!==null?z+"Capture":null:z;E=[];for(var l=i,$;l!==null;){var J=l;if($=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||$===null||Ma===null||(J=_0(l,Ma),J!=null&&E.push(T0(l,J,$))),ao)break;l=l.return}0<E.length&&(z=new q(z,n,null,p,Y),X.push({event:z,listeners:E}))}}if((o&7)===0){a:{if(z=a==="mouseover"||a==="pointerover",q=a==="mouseout"||a==="pointerout",z&&p!==a5&&(n=p.relatedTarget||p.fromElement)&&(er(n)||n[Rt]))break a;if(q||z){if(z=Y.window===Y?Y:(z=Y.ownerDocument)?z.defaultView||z.parentWindow:window,q){if(n=p.relatedTarget||p.toElement,q=i,n=n?er(n):null,n!==null&&(ao=qa(n),E=n.tag,n!==ao||E!==5&&E!==27&&E!==6))n=null}else q=null,n=i;if(q!==n){if(E=J8,J="onMouseLeave",Ma="onMouseEnter",l="mouse",a==="pointerout"||a==="pointerover")E=X8,J="onPointerLeave",Ma="onPointerEnter",l="pointer";if(ao=q==null?z:$0(q),$=n==null?z:$0(n),z=new E(J,l+"leave",q,p,Y),z.target=ao,z.relatedTarget=$,J=null,er(Y)===i&&(E=new E(Ma,l+"enter",n,p,Y),E.target=$,E.relatedTarget=ao,J=E),ao=J,q&&n)o:{E=Y$,Ma=q,l=n,$=0;for(J=Ma;J;J=E(J))$++;J=0;for(var R=l;R;R=E(R))J++;for(;0<$-J;)Ma=E(Ma),$--;for(;0<J-$;)l=E(l),J--;for(;$--;){if(Ma===l||l!==null&&Ma===l.alternate){E=Ma;break o}Ma=E(Ma),l=E(l)}E=null}else E=null;q!==null&&Ew(X,z,q,E,!1),n!==null&&ao!==null&&Ew(X,ao,n,E,!0)}}}a:{if(z=i?$0(i):window,q=z.nodeName&&z.nodeName.toLowerCase(),q==="select"||q==="input"&&z.type==="file")var j=$6;else if(l6(z))if(B8)j=dz;else{j=Wz;var Ya=Hz}else q=z.nodeName,!q||q.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?i&&Z0(i.elementType)&&(j=$6):j=Uz;if(j&&(j=j(a,i))){z6(X,j,p,Y);break a}Ya&&Ya(a,z,i),a==="focusout"&&i&&z.type==="number"&&i.memoizedProps.value!=null&&I1(z,"number",z.value)}switch(Ya=i?$0(i):window,a){case"focusin":if(l6(Ya)||Ya.contentEditable==="true")Lv=Ya,Yf=i,b5=null;break;case"focusout":b5=Yf=Lv=null;break;case"mousedown":Xf=!0;break;case"contextmenu":case"mouseup":case"dragend":Xf=!1,q6(X,p,Y);break;case"selectionchange":if(mY)break;case"keydown":case"keyup":q6(X,p,Y)}var ba;if(Jf)a:{switch(a){case"compositionstart":var ta="onCompositionStart";break a;case"compositionend":ta="onCompositionEnd";break a;case"compositionupdate":ta="onCompositionUpdate";break a}ta=void 0}else yv?w6(a,p)&&(ta="onCompositionEnd"):a==="keydown"&&p.keyCode===Z8&&(ta="onCompositionStart");if(ta&&(G8&&p.locale!=="ko"&&(yv||ta!=="onCompositionStart"?ta==="onCompositionEnd"&&yv&&(ba=f6()):(yt=Y,cf=("value"in yt)?yt.value:yt.textContent,yv=!0)),Ya=s2(i,ta),0<Ya.length&&(ta=new Y8(ta,a,null,p,Y),X.push({event:ta,listeners:Ya}),ba?ta.data=ba:(ba=c6(p),ba!==null&&(ta.data=ba)))),ba=oY?qz(a,p):Qz(a,p))ta=s2(i,"onBeforeInput"),0<ta.length&&(Ya=new CJ("onBeforeInput","beforeinput",null,p,Y),X.push({event:Ya,listeners:ta}),Ya.data=ba);J$(X,a,i,p,Y)}Dw(X,o)})}function T0(a,o,p){return{instance:a,listener:o,currentTarget:p}}function s2(a,o){for(var p=o+"Capture",m=[];a!==null;){var t=a,r=t.stateNode;if(t=t.tag,t!==5&&t!==26&&t!==27||r===null||(t=_0(a,p),t!=null&&m.unshift(T0(a,t,r)),t=_0(a,o),t!=null&&m.push(T0(a,t,r))),a.tag===3)return m;a=a.return}return[]}function Y$(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a?a:null}function Ew(a,o,p,m,t){for(var r=o._reactName,v=[];p!==null&&p!==m;){var b=p,f=b.alternate,i=b.stateNode;if(b=b.tag,f!==null&&f===m)break;b!==5&&b!==26&&b!==27||i===null||(f=i,t?(i=_0(p,r),i!=null&&v.unshift(T0(p,i,f))):t||(i=_0(p,r),i!=null&&v.push(T0(p,i,f)))),p=p.return}v.length!==0&&a.push({event:o,listeners:v})}function W3(a,o){Xz(a,o),a!=="input"&&a!=="textarea"&&a!=="select"||o==null||o.value!==null||z8||(z8=!0,a==="select"&&o.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",a):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",a));var p={registrationNameDependencies:qr,possibleRegistrationNames:rf};Z0(a)||typeof o.is==="string"||Gz(a,o,p),o.contentEditable&&!o.suppressContentEditableWarning&&o.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function ko(a,o,p,m){o!==p&&(p=Kt(p),Kt(o)!==p&&(m[a]=o))}function X$(a,o,p){o.forEach(function(m){p[ac(m)]=m==="style"?d3(a):a.getAttribute(m)})}function Qm(a,o){o===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",a,a,a):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",a,typeof o)}function sw(a,o){return a=a.namespaceURI===Yb||a.namespaceURI===Wv?a.ownerDocument.createElementNS(a.namespaceURI,a.tagName):a.ownerDocument.createElement(a.tagName),a.innerHTML=o,a.innerHTML}function Kt(a){return ka(a)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",u(a)),jo(a)),(typeof a==="string"?a:""+a).replace(RY,`
|
|
160
|
-
`).replace(yY,"")}function ew(a,o){return o=Kt(o),Kt(a)===o?!0:!1}function Da(a,o,p,m,t,r){switch(p){case"children":if(typeof m==="string")t2(m,o,!1),o==="body"||o==="textarea"&&m===""||X0(a,m);else if(typeof m==="number"||typeof m==="bigint")t2(""+m,o,!1),o!=="body"&&X0(a,""+m);break;case"className":o2(a,"class",m);break;case"tabIndex":o2(a,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":o2(a,p,m);break;case"style":t6(a,m,r);break;case"data":if(o!=="object"){o2(a,"data",m);break}case"src":case"href":if(m===""&&(o!=="a"||p!=="href")){p==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',p,p):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',p,p),a.removeAttribute(p);break}if(m==null||typeof m==="function"||typeof m==="symbol"||typeof m==="boolean"){a.removeAttribute(p);break}Ta(m,p),m=G0(""+m),a.setAttribute(p,m);break;case"action":case"formAction":if(m!=null&&(o==="form"?p==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof m==="function"&&(t.encType==null&&t.method==null||t1||(t1=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),t.target==null||m1||(m1=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):o==="input"||o==="button"?p==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):o!=="input"||t.type==="submit"||t.type==="image"||p1?o!=="button"||t.type==null||t.type==="submit"||p1?typeof m==="function"&&(t.name==null||sl||(sl=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),t.formEncType==null&&t.formMethod==null||t1||(t1=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),t.formTarget==null||m1||(m1=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(p1=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(p1=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):p==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof m==="function"){a.setAttribute(p,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r==="function"&&(p==="formAction"?(o!=="input"&&Da(a,o,"name",t.name,t,null),Da(a,o,"formEncType",t.formEncType,t,null),Da(a,o,"formMethod",t.formMethod,t,null),Da(a,o,"formTarget",t.formTarget,t,null)):(Da(a,o,"encType",t.encType,t,null),Da(a,o,"method",t.method,t,null),Da(a,o,"target",t.target,t,null)));if(m==null||typeof m==="symbol"||typeof m==="boolean"){a.removeAttribute(p);break}Ta(m,p),m=G0(""+m),a.setAttribute(p,m);break;case"onClick":m!=null&&(typeof m!=="function"&&Qm(p,m),a.onclick=Fm);break;case"onScroll":m!=null&&(typeof m!=="function"&&Qm(p,m),Na("scroll",a));break;case"onScrollEnd":m!=null&&(typeof m!=="function"&&Qm(p,m),Na("scrollend",a));break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!=="object"||!("__html"in m))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(p=m.__html,p!=null){if(t.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=p}}break;case"multiple":a.multiple=m&&typeof m!=="function"&&typeof m!=="symbol";break;case"muted":a.muted=m&&typeof m!=="function"&&typeof m!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m==="function"||typeof m==="boolean"||typeof m==="symbol"){a.removeAttribute("xlink:href");break}Ta(m,p),p=G0(""+m),a.setAttributeNS(Fr,"xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!=="function"&&typeof m!=="symbol"?(Ta(m,p),a.setAttribute(p,""+m)):a.removeAttribute(p);break;case"inert":m!==""||r1[p]||(r1[p]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",p));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!=="function"&&typeof m!=="symbol"?a.setAttribute(p,""):a.removeAttribute(p);break;case"capture":case"download":m===!0?a.setAttribute(p,""):m!==!1&&m!=null&&typeof m!=="function"&&typeof m!=="symbol"?(Ta(m,p),a.setAttribute(p,m)):a.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!=="function"&&typeof m!=="symbol"&&!isNaN(m)&&1<=m?(Ta(m,p),a.setAttribute(p,m)):a.removeAttribute(p);break;case"rowSpan":case"start":m==null||typeof m==="function"||typeof m==="symbol"||isNaN(m)?a.removeAttribute(p):(Ta(m,p),a.setAttribute(p,m));break;case"popover":Na("beforetoggle",a),Na("toggle",a),a2(a,"popover",m);break;case"xlinkActuate":gm(a,Fr,"xlink:actuate",m);break;case"xlinkArcrole":gm(a,Fr,"xlink:arcrole",m);break;case"xlinkRole":gm(a,Fr,"xlink:role",m);break;case"xlinkShow":gm(a,Fr,"xlink:show",m);break;case"xlinkTitle":gm(a,Fr,"xlink:title",m);break;case"xlinkType":gm(a,Fr,"xlink:type",m);break;case"xmlBase":gm(a,w7,"xml:base",m);break;case"xmlLang":gm(a,w7,"xml:lang",m);break;case"xmlSpace":gm(a,w7,"xml:space",m);break;case"is":r!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),a2(a,"is",m);break;case"innerText":case"textContent":break;case"popoverTarget":el||m==null||typeof m!=="object"||(el=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",m));default:!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N"?(p=r6(p),a2(a,p,m)):qr.hasOwnProperty(p)&&m!=null&&typeof m!=="function"&&Qm(p,m)}}function U3(a,o,p,m,t,r){switch(p){case"style":t6(a,m,r);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!=="object"||!("__html"in m))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(p=m.__html,p!=null){if(t.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=p}}break;case"children":typeof m==="string"?X0(a,m):(typeof m==="number"||typeof m==="bigint")&&X0(a,""+m);break;case"onScroll":m!=null&&(typeof m!=="function"&&Qm(p,m),Na("scroll",a));break;case"onScrollEnd":m!=null&&(typeof m!=="function"&&Qm(p,m),Na("scrollend",a));break;case"onClick":m!=null&&(typeof m!=="function"&&Qm(p,m),a.onclick=Fm);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(qr.hasOwnProperty(p))m!=null&&typeof m!=="function"&&Qm(p,m);else a:{if(p[0]==="o"&&p[1]==="n"&&(t=p.endsWith("Capture"),o=p.slice(2,t?p.length-7:void 0),r=a[eo]||null,r=r!=null?r[p]:null,typeof r==="function"&&a.removeEventListener(o,r,t),typeof m==="function")){typeof r!=="function"&&r!==null&&(p in a?a[p]=null:a.hasAttribute(p)&&a.removeAttribute(p)),a.addEventListener(o,m,t);break a}p in a?a[p]=m:m===!0?a.setAttribute(p,""):a2(a,p,m)}}}function Io(a,o,p){switch(W3(o,p),o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Na("error",a),Na("load",a);var m=!1,t=!1,r;for(r in p)if(p.hasOwnProperty(r)){var v=p[r];if(v!=null)switch(r){case"src":m=!0;break;case"srcSet":t=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Da(a,o,r,v,p,null)}}t&&Da(a,o,"srcSet",p.srcSet,p,null),m&&Da(a,o,"src",p.src,p,null);return;case"input":pv("input",p),Na("invalid",a);var b=r=v=t=null,f=null,i=null;for(m in p)if(p.hasOwnProperty(m)){var Y=p[m];if(Y!=null)switch(m){case"name":t=Y;break;case"type":v=Y;break;case"checked":f=Y;break;case"defaultChecked":i=Y;break;case"value":r=Y;break;case"defaultValue":b=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Da(a,o,m,Y,p,null)}}A7(a,p),T7(a,r,b,f,i,v,t,!1);return;case"select":pv("select",p),Na("invalid",a),m=v=r=null;for(t in p)if(p.hasOwnProperty(t)&&(b=p[t],b!=null))switch(t){case"value":r=b;break;case"defaultValue":v=b;break;case"multiple":m=b;default:Da(a,o,t,b,p,null)}u7(a,p),o=r,p=v,a.multiple=!!m,o!=null?mv(a,!!m,o,!1):p!=null&&mv(a,!!m,p,!0);return;case"textarea":pv("textarea",p),Na("invalid",a),r=t=m=null;for(v in p)if(p.hasOwnProperty(v)&&(b=p[v],b!=null))switch(v){case"value":m=b;break;case"defaultValue":t=b;break;case"children":r=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Da(a,o,v,b,p,null)}x7(a,p),D7(a,m,t,r);return;case"option":n7(a,p);for(f in p)if(p.hasOwnProperty(f)&&(m=p[f],m!=null))switch(f){case"selected":a.selected=m&&typeof m!=="function"&&typeof m!=="symbol";break;default:Da(a,o,f,m,p,null)}return;case"dialog":Na("beforetoggle",a),Na("toggle",a),Na("cancel",a),Na("close",a);break;case"iframe":case"object":Na("load",a);break;case"video":case"audio":for(m=0;m<g5.length;m++)Na(g5[m],a);break;case"image":Na("error",a),Na("load",a);break;case"details":Na("toggle",a);break;case"embed":case"source":case"link":Na("error",a),Na("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(i in p)if(p.hasOwnProperty(i)&&(m=p[i],m!=null))switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Da(a,o,i,m,p,null)}return;default:if(Z0(o)){for(Y in p)p.hasOwnProperty(Y)&&(m=p[Y],m!==void 0&&U3(a,o,Y,m,p,void 0));return}}for(b in p)p.hasOwnProperty(b)&&(m=p[b],m!=null&&Da(a,o,b,m,p,null))}function Z$(a,o,p,m){switch(W3(o,m),o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var t=null,r=null,v=null,b=null,f=null,i=null,Y=null;for(q in p){var X=p[q];if(p.hasOwnProperty(q)&&X!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":f=X;default:m.hasOwnProperty(q)||Da(a,o,q,null,m,X)}}for(var z in m){var q=m[z];if(X=p[z],m.hasOwnProperty(z)&&(q!=null||X!=null))switch(z){case"type":r=q;break;case"name":t=q;break;case"checked":i=q;break;case"defaultChecked":Y=q;break;case"value":v=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:q!==X&&Da(a,o,z,q,m,X)}}o=p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null,m=m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null,o||!m||El||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),El=!0),!o||m||jl||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),jl=!0),P1(a,v,b,f,i,Y,r,t);return;case"select":q=v=b=z=null;for(r in p)if(f=p[r],p.hasOwnProperty(r)&&f!=null)switch(r){case"value":break;case"multiple":q=f;default:m.hasOwnProperty(r)||Da(a,o,r,null,m,f)}for(t in m)if(r=m[t],f=p[t],m.hasOwnProperty(t)&&(r!=null||f!=null))switch(t){case"value":z=r;break;case"defaultValue":b=r;break;case"multiple":v=r;default:r!==f&&Da(a,o,t,r,m,f)}m=b,o=v,p=q,z!=null?mv(a,!!o,z,!1):!!p!==!!o&&(m!=null?mv(a,!!o,m,!0):mv(a,!!o,o?[]:"",!1));return;case"textarea":q=z=null;for(b in p)if(t=p[b],p.hasOwnProperty(b)&&t!=null&&!m.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Da(a,o,b,null,m,t)}for(v in m)if(t=m[v],r=p[v],m.hasOwnProperty(v)&&(t!=null||r!=null))switch(v){case"value":z=t;break;case"defaultValue":q=t;break;case"children":break;case"dangerouslySetInnerHTML":if(t!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:t!==r&&Da(a,o,v,t,m,r)}V7(a,z,q);return;case"option":for(var n in p)if(z=p[n],p.hasOwnProperty(n)&&z!=null&&!m.hasOwnProperty(n))switch(n){case"selected":a.selected=!1;break;default:Da(a,o,n,null,m,z)}for(f in m)if(z=m[f],q=p[f],m.hasOwnProperty(f)&&z!==q&&(z!=null||q!=null))switch(f){case"selected":a.selected=z&&typeof z!=="function"&&typeof z!=="symbol";break;default:Da(a,o,f,z,m,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var E in p)z=p[E],p.hasOwnProperty(E)&&z!=null&&!m.hasOwnProperty(E)&&Da(a,o,E,null,m,z);for(i in m)if(z=m[i],q=p[i],m.hasOwnProperty(i)&&z!==q&&(z!=null||q!=null))switch(i){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Da(a,o,i,z,m,q)}return;default:if(Z0(o)){for(var ao in p)z=p[ao],p.hasOwnProperty(ao)&&z!==void 0&&!m.hasOwnProperty(ao)&&U3(a,o,ao,void 0,m,z);for(Y in m)z=m[Y],q=p[Y],!m.hasOwnProperty(Y)||z===q||z===void 0&&q===void 0||U3(a,o,Y,z,m,q);return}}for(var Ma in p)z=p[Ma],p.hasOwnProperty(Ma)&&z!=null&&!m.hasOwnProperty(Ma)&&Da(a,o,Ma,null,m,z);for(X in m)z=m[X],q=p[X],!m.hasOwnProperty(X)||z===q||z==null&&q==null||Da(a,o,X,z,m,q)}function ac(a){switch(a){case"class":return"className";case"for":return"htmlFor";default:return a}}function d3(a){var o={};a=a.style;for(var p=0;p<a.length;p++){var m=a[p];o[m]=a.getPropertyValue(m)}return o}function oc(a,o,p){if(o!=null&&typeof o!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var m,t=m="",r;for(r in o)if(o.hasOwnProperty(r)){var v=o[r];v!=null&&typeof v!=="boolean"&&v!==""&&(r.indexOf("--")===0?(L1(v,r),m+=t+r+":"+(""+v).trim()):typeof v!=="number"||v===0||c8.has(r)?(L1(v,r),m+=t+r.replace(v8,"-$1").toLowerCase().replace(b8,"-ms-")+":"+(""+v).trim()):m+=t+r.replace(v8,"-$1").toLowerCase().replace(b8,"-ms-")+":"+v+"px",t=";")}m=m||null,o=a.getAttribute("style"),o!==m&&(m=Kt(m),Kt(o)!==m&&(p.style=d3(a)))}}function kp(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":return}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(Ta(m,o),a===""+m)return}ko(o,a,m,r)}function pc(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null){switch(typeof m){case"function":case"symbol":return}if(!m)return}else switch(typeof m){case"function":case"symbol":break;default:if(m)return}ko(o,a,m,r)}function R3(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null)switch(typeof m){case"undefined":case"function":case"symbol":return}else if(m!=null)switch(typeof m){case"function":case"symbol":break;default:if(Ta(m,p),a===""+m)return}ko(o,a,m,r)}function mc(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(m))return}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(!isNaN(m)&&(Ta(m,o),a===""+m))return}ko(o,a,m,r)}function y3(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":return}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(Ta(m,o),p=G0(""+m),a===p)return}ko(o,a,m,r)}function tc(a,o,p,m){for(var t={},r=new Set,v=a.attributes,b=0;b<v.length;b++)switch(v[b].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:r.add(v[b].name)}if(Z0(o)){for(var f in p)if(p.hasOwnProperty(f)){var i=p[f];if(i!=null){if(qr.hasOwnProperty(f))typeof i!=="function"&&Qm(f,i);else if(p.suppressHydrationWarning!==!0)switch(f){case"children":typeof i!=="string"&&typeof i!=="number"||ko("children",a.textContent,i,t);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":v=a.innerHTML,i=i?i.__html:void 0,i!=null&&(i=sw(a,i),ko(f,v,i,t));continue;case"style":r.delete(f),oc(a,i,t);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":r.delete(f.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",f);continue;case"className":r.delete("class"),v=C7(a,"class",i),ko("className",v,i,t);continue;default:m.context===vt&&o!=="svg"&&o!=="math"?r.delete(f.toLowerCase()):r.delete(f),v=C7(a,f,i),ko(f,v,i,t)}}}}else for(i in p)if(p.hasOwnProperty(i)&&(f=p[i],f!=null)){if(qr.hasOwnProperty(i))typeof f!=="function"&&Qm(i,f);else if(p.suppressHydrationWarning!==!0)switch(i){case"children":typeof f!=="string"&&typeof f!=="number"||ko("children",a.textContent,f,t);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":v=a.innerHTML,f=f?f.__html:void 0,f!=null&&(f=sw(a,f),v!==f&&(t[i]={__html:v}));continue;case"className":kp(a,i,"class",f,r,t);continue;case"tabIndex":kp(a,i,"tabindex",f,r,t);continue;case"style":r.delete(i),oc(a,f,t);continue;case"multiple":r.delete(i),ko(i,a.multiple,f,t);continue;case"muted":r.delete(i),ko(i,a.muted,f,t);continue;case"autoFocus":r.delete("autofocus"),ko(i,a.autofocus,f,t);continue;case"data":if(o!=="object"){r.delete(i),v=a.getAttribute("data"),ko(i,v,f,t);continue}case"src":case"href":if(!(f!==""||o==="a"&&i==="href"||o==="object"&&i==="data")){i==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',i,i):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',i,i);continue}y3(a,i,i,f,r,t);continue;case"action":case"formAction":if(v=a.getAttribute(i),typeof f==="function"){r.delete(i.toLowerCase()),i==="formAction"?(r.delete("name"),r.delete("formenctype"),r.delete("formmethod"),r.delete("formtarget")):(r.delete("enctype"),r.delete("method"),r.delete("target"));continue}else if(v===LY){r.delete(i.toLowerCase()),ko(i,"function",f,t);continue}y3(a,i,i.toLowerCase(),f,r,t);continue;case"xlinkHref":y3(a,i,"xlink:href",f,r,t);continue;case"contentEditable":R3(a,i,"contenteditable",f,r,t);continue;case"spellCheck":R3(a,i,"spellcheck",f,r,t);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":R3(a,i,i,f,r,t);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":pc(a,i,i.toLowerCase(),f,r,t);continue;case"capture":case"download":a:{b=a;var Y=v=i,X=t;if(r.delete(Y),b=b.getAttribute(Y),b===null)switch(typeof f){case"undefined":case"function":case"symbol":break a;default:if(f===!1)break a}else if(f!=null)switch(typeof f){case"function":case"symbol":break;case"boolean":if(f===!0&&b==="")break a;break;default:if(Ta(f,v),b===""+f)break a}ko(v,b,f,X)}continue;case"cols":case"rows":case"size":case"span":a:{if(b=a,Y=v=i,X=t,r.delete(Y),b=b.getAttribute(Y),b===null)switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":break a;default:if(isNaN(f)||1>f)break a}else if(f!=null)switch(typeof f){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(f)||1>f)&&(Ta(f,v),b===""+f))break a}ko(v,b,f,X)}continue;case"rowSpan":mc(a,i,"rowspan",f,r,t);continue;case"start":mc(a,i,i,f,r,t);continue;case"xHeight":kp(a,i,"x-height",f,r,t);continue;case"xlinkActuate":kp(a,i,"xlink:actuate",f,r,t);continue;case"xlinkArcrole":kp(a,i,"xlink:arcrole",f,r,t);continue;case"xlinkRole":kp(a,i,"xlink:role",f,r,t);continue;case"xlinkShow":kp(a,i,"xlink:show",f,r,t);continue;case"xlinkTitle":kp(a,i,"xlink:title",f,r,t);continue;case"xlinkType":kp(a,i,"xlink:type",f,r,t);continue;case"xmlBase":kp(a,i,"xml:base",f,r,t);continue;case"xmlLang":kp(a,i,"xml:lang",f,r,t);continue;case"xmlSpace":kp(a,i,"xml:space",f,r,t);continue;case"inert":f!==""||r1[i]||(r1[i]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",i)),pc(a,i,i,f,r,t);continue;default:if(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N"){b=r6(i),v=!1,m.context===vt&&o!=="svg"&&o!=="math"?r.delete(b.toLowerCase()):(Y=i.toLowerCase(),Y=Xb.hasOwnProperty(Y)?Xb[Y]||null:null,Y!==null&&Y!==i&&(v=!0,r.delete(Y)),r.delete(b));a:if(Y=a,X=b,b=f,F1(X))if(Y.hasAttribute(X))Y=Y.getAttribute(X),Ta(b,X),b=Y===""+b?b:Y;else{switch(typeof b){case"function":case"symbol":break a;case"boolean":if(Y=X.toLowerCase().slice(0,5),Y!=="data-"&&Y!=="aria-")break a}b=b===void 0?void 0:null}else b=void 0;v||ko(i,b,f,t)}}}return 0<r.size&&p.suppressHydrationWarning!==!0&&X$(a,r,t),Object.keys(t).length===0?null:t}function G$(a,o){switch(a.length){case 0:return"";case 1:return a[0];case 2:return a[0]+" "+o+" "+a[1];default:return a.slice(0,-1).join(", ")+", "+o+" "+a[a.length-1]}}function rc(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _$(){if(typeof performance.getEntriesByType==="function"){for(var a=0,o=0,p=performance.getEntriesByType("resource"),m=0;m<p.length;m++){var t=p[m],r=t.transferSize,v=t.initiatorType,b=t.duration;if(r&&b&&rc(v)){v=0,b=t.responseEnd;for(m+=1;m<p.length;m++){var f=p[m],i=f.startTime;if(i>b)break;var{transferSize:Y,initiatorType:X}=f;Y&&rc(X)&&(f=f.responseEnd,v+=Y*(f<b?1:(b-i)/(f-i)))}if(--m,o+=8*(r+v)/(t.duration/1000),a++,10<a)break}}if(0<a)return o/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a==="number")?a:5}function e2(a){return a.nodeType===9?a:a.ownerDocument}function vc(a){switch(a){case Wv:return p0;case Yb:return b1;default:return vt}}function bc(a,o){if(a===vt)switch(o){case"svg":return p0;case"math":return b1;default:return vt}return a===p0&&o==="foreignObject"?vt:a}function L3(a,o){return a==="textarea"||a==="noscript"||typeof o.children==="string"||typeof o.children==="number"||typeof o.children==="bigint"||typeof o.dangerouslySetInnerHTML==="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}function q$(){var a=window.event;if(a&&a.type==="popstate"){if(a===$7)return!1;return $7=a,!0}return $7=null,!1}function n0(){var a=window.event;return a&&a!==P5?a.type:null}function S0(){var a=window.event;return a&&a!==P5?a.timeStamp:-1.1}function Q$(a){setTimeout(function(){throw a})}function B$(a,o,p){switch(o){case"button":case"input":case"select":case"textarea":p.autoFocus&&a.focus();break;case"img":p.src?a.src=p.src:p.srcSet&&(a.srcset=p.srcSet)}}function K$(){}function H$(a,o,p,m){Z$(a,o,p,m),a[eo]=m}function fc(a){X0(a,"")}function W$(a,o,p){a.nodeValue=p}function ic(a){if(!a.__reactWarnedAboutChildrenConflict){var o=a[eo]||null;if(o!==null){var p=zt(a);p!==null&&(typeof o.children==="string"||typeof o.children==="number"?(a.__reactWarnedAboutChildrenConflict=!0,F(p,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):o.dangerouslySetInnerHTML!=null&&(a.__reactWarnedAboutChildrenConflict=!0,F(p,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Ht(a){return a==="head"}function U$(a,o){a.removeChild(o)}function d$(a,o){(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).removeChild(o)}function wc(a,o){var p=o,m=0;do{var t=p.nextSibling;if(a.removeChild(p),t&&t.nodeType===8)if(p=t.data,p===C5||p===v1){if(m===0){a.removeChild(t),_v(o);return}m--}else if(p===F5||p===Dt||p===Pr||p===o0||p===Cr)m++;else if(p===hY)u0(a.ownerDocument.documentElement);else if(p===NY){p=a.ownerDocument.head,u0(p);for(var r=p.firstChild;r;){var{nextSibling:v,nodeName:b}=r;r[e0]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&r.rel.toLowerCase()==="stylesheet"||p.removeChild(r),r=v}}else p===kY&&u0(a.ownerDocument.body);p=t}while(p);_v(o)}function cc(a,o){var p=a;a=0;do{var m=p.nextSibling;if(p.nodeType===1?o?(p._stashedDisplay=p.style.display,p.style.display="none"):(p.style.display=p._stashedDisplay||"",p.getAttribute("style")===""&&p.removeAttribute("style")):p.nodeType===3&&(o?(p._stashedText=p.nodeValue,p.nodeValue=""):p.nodeValue=p._stashedText||""),m&&m.nodeType===8)if(p=m.data,p===C5)if(a===0)break;else a--;else p!==F5&&p!==Dt&&p!==Pr&&p!==o0||a++;p=m}while(p)}function R$(a){cc(a,!0)}function y$(a){a=a.style,typeof a.setProperty==="function"?a.setProperty("display","none","important"):a.display="none"}function L$(a){a.nodeValue=""}function O$(a){cc(a,!1)}function h$(a,o){o=o[MY],o=o!==void 0&&o!==null&&o.hasOwnProperty("display")?o.display:null,a.style.display=o==null||typeof o==="boolean"?"":(""+o).trim()}function k$(a,o){a.nodeValue=o}function O3(a){var o=a.firstChild;o&&o.nodeType===10&&(o=o.nextSibling);for(;o;){var p=o;switch(o=o.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":O3(p),g1(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}a.removeChild(p)}}function N$(a,o,p,m){for(;a.nodeType===1;){var t=p;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!m&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(!m)if(o==="input"&&a.type==="hidden"){Ta(t.name,"name");var r=t.name==null?null:""+t.name;if(t.type==="hidden"&&a.getAttribute("name")===r)return a}else return a;else if(!a[e0])switch(o){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(r=a.getAttribute("rel"),r==="stylesheet"&&a.hasAttribute("data-precedence"))break;else if(r!==t.rel||a.getAttribute("href")!==(t.href==null||t.href===""?null:t.href)||a.getAttribute("crossorigin")!==(t.crossOrigin==null?null:t.crossOrigin)||a.getAttribute("title")!==(t.title==null?null:t.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(r=a.getAttribute("src"),(r!==(t.src==null?null:t.src)||a.getAttribute("type")!==(t.type==null?null:t.type)||a.getAttribute("crossorigin")!==(t.crossOrigin==null?null:t.crossOrigin))&&r&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}if(a=Qp(a.nextSibling),a===null)break}return null}function M$(a,o,p){if(o==="")return null;for(;a.nodeType!==3;){if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!p)return null;if(a=Qp(a.nextSibling),a===null)return null}return a}function lc(a,o){for(;a.nodeType!==8;){if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o)return null;if(a=Qp(a.nextSibling),a===null)return null}return a}function h3(a){return a.data===Dt||a.data===Pr}function k3(a){return a.data===o0||a.data===Dt&&a.ownerDocument.readyState!==o9}function g$(a,o){var p=a.ownerDocument;if(a.data===Pr)a._reactRetry=o;else if(a.data!==Dt||p.readyState!==o9)o();else{var m=function(){o(),p.removeEventListener("DOMContentLoaded",m)};p.addEventListener("DOMContentLoaded",m),a._reactRetry=m}}function Qp(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o===F5||o===o0||o===Dt||o===Pr||o===Cr||o===c7||o===a9)break;if(o===C5||o===v1)return null}}return a}function zc(a){if(a.nodeType===1){for(var o=a.nodeName.toLowerCase(),p={},m=a.attributes,t=0;t<m.length;t++){var r=m[t];p[ac(r.name)]=r.name.toLowerCase()==="style"?d3(a):r.value}return{type:o,props:p}}return a.nodeType===8?a.data===Cr?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:a.nodeValue}function $c(a,o,p){return p===null||p[OY]!==!0?(a.nodeValue===o?a=null:(o=Kt(o),a=Kt(a.nodeValue)===o?null:a.nodeValue),a):null}function N3(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var p=a.data;if(p===C5||p===v1){if(o===0)return Qp(a.nextSibling);o--}else p!==F5&&p!==o0&&p!==Dt&&p!==Pr&&p!==Cr||o++}a=a.nextSibling}return null}function Jc(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var p=a.data;if(p===F5||p===o0||p===Dt||p===Pr||p===Cr){if(o===0)return a;o--}else p!==C5&&p!==v1||o++}a=a.previousSibling}return null}function F$(a){_v(a)}function C$(a){_v(a)}function P$(a){_v(a)}function Yc(a,o,p,m,t){switch(t&&u1(a,m.ancestorInfo),o=e2(p),a){case"html":if(a=o.documentElement,!a)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return a;case"head":if(a=o.head,!a)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return a;case"body":if(a=o.body,!a)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return a;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function I$(a,o,p,m){if(!p[Rt]&&zt(p)){var t=p.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",t,t,t)}switch(a){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(t=p.attributes;t.length;)p.removeAttributeNode(t[0]);Io(p,a,o),p[Ao]=m,p[eo]=o}function u0(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);g1(a)}function ab(a){return typeof a.getRootNode==="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}function Xc(a,o,p){var m=m0;if(m&&typeof o==="string"&&o){var t=hp(o);t='link[rel="'+a+'"][href="'+t+'"]',typeof p==="string"&&(t+='[crossorigin="'+p+'"]'),b9.has(t)||(b9.add(t),a={rel:a,crossOrigin:p,href:o},m.querySelector(t)===null&&(o=m.createElement("link"),Io(o,"link",a),ho(o),m.head.appendChild(o)))}}function Zc(a,o,p,m){var t=(t=Ut.current)?ab(t):null;if(!t)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(a){case"meta":case"title":return null;case"style":return typeof p.precedence==="string"&&typeof p.href==="string"?(p=Zv(p.href),o=av(t).hoistableStyles,m=o.get(p),m||(m={type:"style",instance:null,count:0,state:null},o.set(p,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href==="string"&&typeof p.precedence==="string"){a=Zv(p.href);var r=av(t).hoistableStyles,v=r.get(a);if(!v&&(t=t.ownerDocument||t,v={type:"stylesheet",instance:null,count:0,state:{loading:Ar,preload:null}},r.set(a,v),(r=t.querySelector(x0(a)))&&!r._p&&(v.instance=r,v.state.loading=I5|Sp),!up.has(a))){var b={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy};up.set(a,b),r||A$(t,a,b,v.state)}if(o&&m===null)throw p=`
|
|
161
|
-
|
|
162
|
-
- `+ob(o)+`
|
|
163
|
-
+ `+ob(p),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+p);return v}if(o&&m!==null)throw p=`
|
|
164
|
-
|
|
165
|
-
- `+ob(o)+`
|
|
166
|
-
+ `+ob(p),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+p);return null;case"script":return o=p.async,p=p.src,typeof p==="string"&&o&&typeof o!=="function"&&typeof o!=="symbol"?(p=Gv(p),o=av(t).hoistableScripts,m=o.get(p),m||(m={type:"script",instance:null,count:0,state:null},o.set(p,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+a+'". this is a bug in React.')}}function ob(a){var o=0,p="<link";return typeof a.rel==="string"?(o++,p+=' rel="'+a.rel+'"'):sp.call(a,"rel")&&(o++,p+=' rel="'+(a.rel===null?"null":"invalid type "+typeof a.rel)+'"'),typeof a.href==="string"?(o++,p+=' href="'+a.href+'"'):sp.call(a,"href")&&(o++,p+=' href="'+(a.href===null?"null":"invalid type "+typeof a.href)+'"'),typeof a.precedence==="string"?(o++,p+=' precedence="'+a.precedence+'"'):sp.call(a,"precedence")&&(o++,p+=" precedence={"+(a.precedence===null?"null":"invalid type "+typeof a.precedence)+"}"),Object.getOwnPropertyNames(a).length>o&&(p+=" ..."),p+" />"}function Zv(a){return'href="'+hp(a)+'"'}function x0(a){return'link[rel="stylesheet"]['+a+"]"}function Gc(a){return da({},a,{"data-precedence":a.precedence,precedence:null})}function A$(a,o,p,m){a.querySelector('link[rel="preload"][as="style"]['+o+"]")?m.loading=I5:(o=a.createElement("link"),m.preload=o,o.addEventListener("load",function(){return m.loading|=I5}),o.addEventListener("error",function(){return m.loading|=r9}),Io(o,"link",p),ho(o),a.head.appendChild(o))}function Gv(a){return'[src="'+hp(a)+'"]'}function V0(a){return"script[async]"+a}function _c(a,o,p){if(o.count++,o.instance===null)switch(o.type){case"style":var m=a.querySelector('style[data-href~="'+hp(p.href)+'"]');if(m)return o.instance=m,ho(m),m;var t=da({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return m=(a.ownerDocument||a).createElement("style"),ho(m),Io(m,"style",t),pb(m,p.precedence,a),o.instance=m;case"stylesheet":t=Zv(p.href);var r=a.querySelector(x0(t));if(r)return o.state.loading|=Sp,o.instance=r,ho(r),r;m=Gc(p),(t=up.get(t))&&M3(m,t),r=(a.ownerDocument||a).createElement("link"),ho(r);var v=r;return v._p=new Promise(function(b,f){v.onload=b,v.onerror=f}),Io(r,"link",m),o.state.loading|=Sp,pb(r,p.precedence,a),o.instance=r;case"script":if(r=Gv(p.src),t=a.querySelector(V0(r)))return o.instance=t,ho(t),t;if(m=p,t=up.get(r))m=da({},p),g3(m,t);return a=a.ownerDocument||a,t=a.createElement("script"),ho(t),Io(t,"link",m),a.head.appendChild(t),o.instance=t;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+o.type+'". this is a bug in React.')}else o.type==="stylesheet"&&(o.state.loading&Sp)===Ar&&(m=o.instance,o.state.loading|=Sp,pb(m,p.precedence,a));return o.instance}function pb(a,o,p){for(var m=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),t=m.length?m[m.length-1]:null,r=t,v=0;v<m.length;v++){var b=m[v];if(b.dataset.precedence===o)r=b;else if(r!==t)break}r?r.parentNode.insertBefore(a,r.nextSibling):(o=p.nodeType===9?p.head:p,o.insertBefore(a,o.firstChild))}function M3(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function g3(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}function qc(a,o,p){if(f1===null){var m=new Map,t=f1=new Map;t.set(p,m)}else t=f1,m=t.get(p),m||(m=new Map,t.set(p,m));if(m.has(a))return m;m.set(a,null),p=p.getElementsByTagName(a);for(t=0;t<p.length;t++){var r=p[t];if(!(r[e0]||r[Ao]||a==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!==Wv){var v=r.getAttribute(o)||"";v=a+v;var b=m.get(v);b?b.push(r):m.set(v,[r])}}return m}function Qc(a,o,p){a=a.ownerDocument||a,a.head.insertBefore(p,o==="title"?a.querySelector("head > title"):null)}function T$(a,o,p){var m=!p.ancestorInfo.containerTagInScope;if(p.context===p0||o.itemProp!=null)return!m||o.itemProp==null||a!=="meta"&&a!=="title"&&a!=="style"&&a!=="link"&&a!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",a,a),!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof o.precedence!=="string"||typeof o.href!=="string"||o.href===""){m&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof o.rel!=="string"||typeof o.href!=="string"||o.href===""||o.onLoad||o.onError){if(o.rel==="stylesheet"&&typeof o.precedence==="string"){a=o.href;var{onError:t,disabled:r}=o;p=[],o.onLoad&&p.push("`onLoad`"),t&&p.push("`onError`"),r!=null&&p.push("`disabled`"),t=G$(p,"and"),t+=p.length===1?" prop":" props",r=p.length===1?"an "+t:"the "+t,p.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',a,r,t)}m&&(typeof o.rel!=="string"||typeof o.href!=="string"||o.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(o.onError||o.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(o.rel){case"stylesheet":return a=o.precedence,o=o.disabled,typeof a!=="string"&&m&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof a==="string"&&o==null;default:return!0}case"script":if(a=o.async&&typeof o.async!=="function"&&typeof o.async!=="symbol",!a||o.onLoad||o.onError||!o.src||typeof o.src!=="string"){m&&(a?o.onLoad||o.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":m&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",a)}return!1}function Bc(a){return a.type==="stylesheet"&&(a.state.loading&v9)===Ar?!1:!0}function n$(a,o,p,m){if(p.type==="stylesheet"&&(typeof m.media!=="string"||matchMedia(m.media).matches!==!1)&&(p.state.loading&Sp)===Ar){if(p.instance===null){var t=Zv(m.href),r=o.querySelector(x0(t));if(r){o=r._p,o!==null&&typeof o==="object"&&typeof o.then==="function"&&(a.count++,a=mb.bind(a),o.then(a,a)),p.state.loading|=Sp,p.instance=r,ho(r);return}r=o.ownerDocument||o,m=Gc(m),(t=up.get(t))&&M3(m,t),r=r.createElement("link"),ho(r);var v=r;v._p=new Promise(function(b,f){v.onload=b,v.onerror=f}),Io(r,"link",m),p.instance=r}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(p,o),(o=p.state.preload)&&(p.state.loading&v9)===Ar&&(a.count++,p=mb.bind(a),o.addEventListener("load",p),o.addEventListener("error",p))}}function S$(a,o){return a.stylesheets&&a.count===0&&tb(a,a.stylesheets),0<a.count||0<a.imgCount?function(p){var m=setTimeout(function(){if(a.stylesheets&&tb(a,a.stylesheets),a.unsuspend){var r=a.unsuspend;a.unsuspend=null,r()}},CY+o);0<a.imgBytes&&Y7===0&&(Y7=125*_$()*IY);var t=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&tb(a,a.stylesheets),a.unsuspend)){var r=a.unsuspend;a.unsuspend=null,r()}},(a.imgBytes>Y7?50:PY)+o);return a.unsuspend=p,function(){a.unsuspend=null,clearTimeout(m),clearTimeout(t)}}:null}function mb(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)tb(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}function tb(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,i1=new Map,o.forEach(u$,a),i1=null,mb.call(a))}function u$(a,o){if(!(o.state.loading&Sp)){var p=i1.get(a);if(p)var m=p.get(X7);else{p=new Map,i1.set(a,p);for(var t=a.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<t.length;r++){var v=t[r];if(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")p.set(v.dataset.precedence,v),m=v}m&&p.set(X7,m)}t=o.instance,v=t.getAttribute("data-precedence"),r=p.get(v)||m,r===m&&p.set(X7,t),p.set(v,t),this.count++,m=mb.bind(this),t.addEventListener("load",m),t.addEventListener("error",m),r?r.parentNode.insertBefore(t,r.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(t,a.firstChild)),o.state.loading|=Sp}}function x$(a,o,p,m,t,r,v,b,f){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ir,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=k1(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=k1(0),this.hiddenUpdates=k1(null),this.identifierPrefix=m,this.onUncaughtError=t,this.onCaughtError=r,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=f,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,a=this.pendingUpdatersLaneMap=[];for(o=0;31>o;o++)a.push(new Set);this._debugRootType=p?"hydrateRoot()":"createRoot()"}function Kc(a,o,p,m,t,r,v,b,f,i,Y,X){return a=new x$(a,o,p,v,f,i,Y,X,b),o=lY,r===!0&&(o|=Vo|am),o|=Ba,r=k(3,null,null,o),a.current=r,r.stateNode=a,o=c4(),$r(o),a.pooledCache=o,$r(o),r.memoizedState={element:m,isDehydrated:p,cache:o},Y4(r),a}function Hc(a){if(!a)return ht;return a=ht,a}function F3(a,o,p,m,t,r){if(xo&&typeof xo.onScheduleFiberRoot==="function")try{xo.onScheduleFiberRoot(Kv,m,p)}catch(v){Wm||(Wm=!0,console.error("React instrumentation encountered an error: %o",v))}t=Hc(t),m.context===null?m.context=t:m.pendingContext=t,Hm&&Kp!==null&&!c9&&(c9=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
167
|
-
|
|
168
|
-
Check the render method of %s.`,L(Kp)||"Unknown")),m=Zt(o),m.payload={element:p},r=r===void 0?null:r,r!==null&&(typeof r!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r),m.callback=r),p=Gt(a,m,o),p!==null&&(wm(o,"root.render()",null),Jo(p,a,o),d0(p,a,o))}function Wc(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var p=a.retryLane;a.retryLane=p!==0&&p<o?p:o}}function C3(a,o){Wc(a,o),(a=a.alternate)&&Wc(a,o)}function Uc(a){if(a.tag===13||a.tag===31){var o=uo(a,67108864);o!==null&&Jo(o,a,67108864),C3(a,67108864)}}function dc(a){if(a.tag===13||a.tag===31){var o=qp(a);o=N1(o);var p=uo(a,o);p!==null&&Jo(p,a,o),C3(a,o)}}function V$(){return Kp}function D$(a,o,p,m){var t=K.T;K.T=null;var r=Aa.p;try{Aa.p=Hp,P3(a,o,p,m)}finally{Aa.p=r,K.T=t}}function j$(a,o,p,m){var t=K.T;K.T=null;var r=Aa.p;try{Aa.p=ep,P3(a,o,p,m)}finally{Aa.p=r,K.T=t}}function P3(a,o,p,m){if(c1){var t=I3(m);if(t===null)H3(a,o,m,l1,p),yc(a,m);else if(E$(t,a,o,p,m))m.stopPropagation();else if(yc(a,m),o&4&&-1<TY.indexOf(a)){for(;t!==null;){var r=zt(t);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var v=tr(r.pendingLanes);if(v!==0){var b=r;b.pendingLanes|=2;for(b.entangledLanes|=2;v;){var f=1<<31-so(v);b.entanglements[1]|=f,v&=~f}qm(r),(ga&(Oo|Rp))===Fo&&(Vb=No()+Cl,A0(0,!1))}}break;case 31:case 13:b=uo(r,2),b!==null&&Jo(b,r,2),Jv(),C3(r,2)}if(r=I3(m),r===null&&H3(a,o,m,l1,p),r===t)break;t=r}t!==null&&m.stopPropagation()}else H3(a,o,m,null,p)}}function I3(a){return a=x1(a),A3(a)}function A3(a){if(l1=null,a=er(a),a!==null){var o=qa(a);if(o===null)a=null;else{var p=o.tag;if(p===13){if(a=ma(o),a!==null)return a;a=null}else if(p===31){if(a=wa(o),a!==null)return a;a=null}else if(p===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return l1=a,null}function Rc(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Hp;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return ep;case"message":switch(vJ()){case of:return Hp;case pf:return ep;case Bv:case bJ:return dm;case mf:return $b;default:return dm}default:return dm}}function yc(a,o){switch(a){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":T5.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":n5.delete(o.pointerId)}}function D0(a,o,p,m,t,r){if(a===null||a.nativeEvent!==r)return a={blockedOn:o,domEventName:p,eventSystemFlags:m,nativeEvent:r,targetContainers:[t]},o!==null&&(o=zt(o),o!==null&&Uc(o)),a;return a.eventSystemFlags|=m,o=a.targetContainers,t!==null&&o.indexOf(t)===-1&&o.push(t),a}function E$(a,o,p,m,t){switch(o){case"focusin":return jt=D0(jt,a,o,p,m,t),!0;case"dragenter":return Et=D0(Et,a,o,p,m,t),!0;case"mouseover":return st=D0(st,a,o,p,m,t),!0;case"pointerover":var r=t.pointerId;return T5.set(r,D0(T5.get(r)||null,a,o,p,m,t)),!0;case"gotpointercapture":return r=t.pointerId,n5.set(r,D0(n5.get(r)||null,a,o,p,m,t)),!0}return!1}function Lc(a){var o=er(a.target);if(o!==null){var p=qa(o);if(p!==null){if(o=p.tag,o===13){if(o=ma(p),o!==null){a.blockedOn=o,F7(a.priority,function(){dc(p)});return}}else if(o===31){if(o=wa(p),o!==null){a.blockedOn=o,F7(a.priority,function(){dc(p)});return}}else if(o===3&&p.stateNode.current.memoizedState.isDehydrated){a.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}a.blockedOn=null}function rb(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var p=I3(a.nativeEvent);if(p===null){p=a.nativeEvent;var m=new p.constructor(p.type,p),t=m;a5!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),a5=t,p.target.dispatchEvent(m),a5===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),a5=null}else return o=zt(p),o!==null&&Uc(o),a.blockedOn=p,!1;o.shift()}return!0}function Oc(a,o,p){rb(a)&&p.delete(o)}function s$(){Z7=!1,jt!==null&&rb(jt)&&(jt=null),Et!==null&&rb(Et)&&(Et=null),st!==null&&rb(st)&&(st=null),T5.forEach(Oc),n5.forEach(Oc)}function vb(a,o){a.blockedOn===o&&(a.blockedOn=null,Z7||(Z7=!0,Fa.unstable_scheduleCallback(Fa.unstable_NormalPriority,s$)))}function hc(a){z1!==a&&(z1=a,Fa.unstable_scheduleCallback(Fa.unstable_NormalPriority,function(){z1===a&&(z1=null);for(var o=0;o<a.length;o+=3){var p=a[o],m=a[o+1],t=a[o+2];if(typeof m!=="function")if(A3(m||p)===null)continue;else break;var r=zt(p);r!==null&&(a.splice(o,3),o-=3,p={pending:!0,data:t,method:p.method,action:m},Object.freeze(p),A4(r,p,m,t))}}))}function _v(a){function o(f){return vb(f,a)}jt!==null&&vb(jt,a),Et!==null&&vb(Et,a),st!==null&&vb(st,a),T5.forEach(o),n5.forEach(o);for(var p=0;p<et.length;p++){var m=et[p];m.blockedOn===a&&(m.blockedOn=null)}for(;0<et.length&&(p=et[0],p.blockedOn===null);)Lc(p),p.blockedOn===null&&et.shift();if(p=(a.ownerDocument||a).$$reactFormReplay,p!=null)for(m=0;m<p.length;m+=3){var t=p[m],r=p[m+1],v=t[eo]||null;if(typeof r==="function")v||hc(p);else if(v){var b=null;if(r&&r.hasAttribute("formAction")){if(t=r,v=r[eo]||null)b=v.formAction;else if(A3(t)!==null)continue}else b=v.action;typeof b==="function"?p[m+1]=b:(p.splice(m,3),m-=3),hc(p)}}}function kc(){function a(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(v){return t=v})},focusReset:"manual",scroll:"manual"})}function o(){t!==null&&(t(),t=null),m||setTimeout(p,20)}function p(){if(!m&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var m=!1,t=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(p,100),function(){m=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),t!==null&&(t(),t=null)}}}function T3(a){this._internalRoot=a}function bb(a){this._internalRoot=a}function Nc(a){a[Rt]&&(a._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var da=Object.assign,e$=Symbol.for("react.element"),Bm=Symbol.for("react.transitional.element"),qv=Symbol.for("react.portal"),Qv=Symbol.for("react.fragment"),fb=Symbol.for("react.strict_mode"),n3=Symbol.for("react.profiler"),S3=Symbol.for("react.consumer"),Km=Symbol.for("react.context"),j0=Symbol.for("react.forward_ref"),u3=Symbol.for("react.suspense"),x3=Symbol.for("react.suspense_list"),ib=Symbol.for("react.memo"),Bp=Symbol.for("react.lazy"),V3=Symbol.for("react.activity"),aJ=Symbol.for("react.memo_cache_sentinel"),Mc=Symbol.iterator,oJ=Symbol.for("react.client.reference"),yo=Array.isArray,K=t0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Aa=_7.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pJ=Object.freeze({pending:!1,data:null,method:null,action:null}),D3=[],j3=[],um=-1,Wt=ra(null),E0=ra(null),Ut=ra(null),wb=ra(null),s0=0,gc,Fc,Cc,Pc,Ic,Ac,Tc;So.__reactDisabledLog=!0;var E3,nc,s3=!1,e3=new(typeof WeakMap==="function"?WeakMap:Map),Kp=null,Hm=!1,sp=Object.prototype.hasOwnProperty,af=Fa.unstable_scheduleCallback,mJ=Fa.unstable_cancelCallback,tJ=Fa.unstable_shouldYield,rJ=Fa.unstable_requestPaint,No=Fa.unstable_now,vJ=Fa.unstable_getCurrentPriorityLevel,of=Fa.unstable_ImmediatePriority,pf=Fa.unstable_UserBlockingPriority,Bv=Fa.unstable_NormalPriority,bJ=Fa.unstable_LowPriority,mf=Fa.unstable_IdlePriority,fJ=Fa.log,iJ=Fa.unstable_setDisableYieldValue,Kv=null,xo=null,Wm=!1,Um=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",so=Math.clz32?Math.clz32:fz,wJ=Math.log,cJ=Math.LN2,cb=256,lb=262144,zb=4194304,Hp=2,ep=8,dm=32,$b=268435456,dt=Math.random().toString(36).slice(2),Ao="__reactFiber$"+dt,eo="__reactProps$"+dt,Rt="__reactContainer$"+dt,tf="__reactEvents$"+dt,lJ="__reactListeners$"+dt,zJ="__reactHandles$"+dt,Sc="__reactResources$"+dt,e0="__reactMarker$"+dt,uc=new Set,qr={},rf={},$J={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},JJ=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),xc={},Vc={},YJ=/[\n"\\]/g,Dc=!1,jc=!1,Ec=!1,sc=!1,ec=!1,a8=!1,o8=["value","defaultValue"],p8=!1,m8=/["'&<>\n\t]|^\s|\s$/,XJ="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),t8="applet caption html table td th marquee object template foreignObject desc title".split(" "),ZJ=t8.concat(["button"]),GJ="dd dt li option optgroup p rp rt".split(" "),r8={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Jb={},vf={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},v8=/([A-Z])/g,b8=/^ms-/,_J=/^(?:webkit|moz|o)[A-Z]/,qJ=/^-ms-/,QJ=/-(.)/g,f8=/;\s*$/,Hv={},bf={},i8=!1,w8=!1,c8=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Yb="http://www.w3.org/1998/Math/MathML",Wv="http://www.w3.org/2000/svg",BJ=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Xb={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},l8={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Uv={},KJ=RegExp("^(aria)-[: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]*$"),HJ=RegExp("^(aria)[A-Z][: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]*$"),z8=!1,ap={},$8=/^on./,WJ=/^on[^A-Z]/,UJ=RegExp("^(aria)-[: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]*$"),dJ=RegExp("^(aria)[A-Z][: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]*$"),RJ=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,a5=null,dv=null,Rv=null,ff=!1,Rm=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wf=!1;if(Rm)try{var o5={};Object.defineProperty(o5,"passive",{get:function(){wf=!0}}),window.addEventListener("test",o5,o5),window.removeEventListener("test",o5,o5)}catch(a){wf=!1}var yt=null,cf=null,Zb=null,Qr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gb=bp(Qr),p5=da({},Qr,{view:0,detail:0}),yJ=bp(p5),lf,zf,m5,_b=da({},p5,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:V1,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){if("movementX"in a)return a.movementX;return a!==m5&&(m5&&a.type==="mousemove"?(lf=a.screenX-m5.screenX,zf=a.screenY-m5.screenY):zf=lf=0,m5=a),lf},movementY:function(a){return"movementY"in a?a.movementY:zf}}),J8=bp(_b),LJ=da({},_b,{dataTransfer:0}),OJ=bp(LJ),hJ=da({},p5,{relatedTarget:0}),$f=bp(hJ),kJ=da({},Qr,{animationName:0,elapsedTime:0,pseudoElement:0}),NJ=bp(kJ),MJ=da({},Qr,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),gJ=bp(MJ),FJ=da({},Qr,{data:0}),Y8=bp(FJ),CJ=Y8,PJ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IJ={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"},AJ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},TJ=da({},p5,{key:function(a){if(a.key){var o=PJ[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=r2(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?IJ[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:V1,charCode:function(a){return a.type==="keypress"?r2(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?r2(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),nJ=bp(TJ),SJ=da({},_b,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),X8=bp(SJ),uJ=da({},p5,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:V1}),xJ=bp(uJ),VJ=da({},Qr,{propertyName:0,elapsedTime:0,pseudoElement:0}),DJ=bp(VJ),jJ=da({},_b,{deltaX:function(a){return"deltaX"in a?a.deltaX:("wheelDeltaX"in a)?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:("wheelDeltaY"in a)?-a.wheelDeltaY:("wheelDelta"in a)?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),EJ=bp(jJ),sJ=da({},Qr,{newState:0,oldState:0}),eJ=bp(sJ),aY=[9,13,27,32],Z8=229,Jf=Rm&&"CompositionEvent"in window,t5=null;Rm&&"documentMode"in document&&(t5=document.documentMode);var oY=Rm&&"TextEvent"in window&&!t5,G8=Rm&&(!Jf||t5&&8<t5&&11>=t5),_8=32,q8=String.fromCharCode(_8),Q8=!1,yv=!1,pY={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},r5=null,v5=null,B8=!1;Rm&&(B8=Bz("input")&&(!document.documentMode||9<document.documentMode));var op=typeof Object.is==="function"?Object.is:Rz,mY=Rm&&"documentMode"in document&&11>=document.documentMode,Lv=null,Yf=null,b5=null,Xf=!1,Ov={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionrun:br("Transition","TransitionRun"),transitionstart:br("Transition","TransitionStart"),transitioncancel:br("Transition","TransitionCancel"),transitionend:br("Transition","TransitionEnd")},Zf={},K8={};Rm&&(K8=document.createElement("div").style,("AnimationEvent"in window)||(delete Ov.animationend.animation,delete Ov.animationiteration.animation,delete Ov.animationstart.animation),("TransitionEvent"in window)||delete Ov.transitionend.transition);var H8=fr("animationend"),W8=fr("animationiteration"),U8=fr("animationstart"),tY=fr("transitionrun"),rY=fr("transitionstart"),vY=fr("transitioncancel"),d8=fr("transitionend"),R8=new Map,Gf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Gf.push("scrollEnd");var y8=0;if(typeof performance==="object"&&typeof performance.now==="function")var bY=performance,L8=function(){return bY.now()};else{var fY=Date;L8=function(){return fY.now()}}var _f=typeof reportError==="function"?reportError:function(a){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a==="object"&&a!==null&&typeof a.message==="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(o))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",a);return}console.error(a)},iY="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",qb=0,qf=1,Qf=2,Bf=3,Qb="– ",Bb="+ ",O8=" ",mo=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Np="Components ⚛",Ra="Scheduler ⚛",ya="Blocking",Lt=!1,xm={color:"primary",properties:null,tooltipText:"",track:Np},Ot={start:-0,end:-0,detail:{devtools:xm}},wY=["Changed Props",""],h8="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",cY=["Changed Props",h8],f5=1,Vm=2,Mp=[],hv=0,Kf=0,ht={};Object.freeze(ht);var gp=null,kv=null,za=0,lY=1,Ba=2,Vo=8,am=16,zY=32,k8=!1;try{var N8=Object.preventExtensions({})}catch(a){k8=!0}var Hf=new WeakMap,Nv=[],Mv=0,Kb=null,i5=0,Fp=[],Cp=0,Br=null,Dm=1,jm="",To=null,to=null,Oa=!1,ym=!1,Wp=null,kt=null,Pp=!1,Wf=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Uf=ra(null),df=ra(null),M8={},Hb=null,gv=null,Fv=!1,$Y=typeof AbortController<"u"?AbortController:function(){var a=[],o=this.signal={aborted:!1,addEventListener:function(p,m){a.push(m)}};this.abort=function(){o.aborted=!0,a.forEach(function(p){return p()})}},JY=Fa.unstable_scheduleCallback,YY=Fa.unstable_NormalPriority,qo={$$typeof:Km,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Qo=Fa.unstable_now,Wb=console.createTask?console.createTask:function(){return null},w5=1,Ub=2,Mo=-0,Nt=-0,Em=-0,sm=null,pp=-1.1,Kr=-0,lo=-0,ia=-1.1,ca=-1.1,io=null,Yo=!1,Mt=-0,Lm=-1.1,c5=null,gt=0,Rf=null,yf=null,Hr=-1.1,l5=null,Cv=-1.1,db=-1.1,Om=-0,em=-1.1,Ip=-1.1,Lf=0,z5=null,g8=null,F8=null,Ft=-1.1,Wr=null,Ct=-1.1,Rb=-1.1,C8=-0,P8=-0,yb=0,at=null,I8=0,$5=-1.1,Lb=!1,Ob=!1,J5=null,Of=0,Ur=0,Pv=null,A8=K.S;K.S=function(a,o){if(gl=No(),typeof o==="object"&&o!==null&&typeof o.then==="function"){if(0>em&&0>Ip){em=Qo();var p=S0(),m=n0();if(p!==Ct||m!==Wr)Ct=-1.1;Ft=p,Wr=m}Mz(a,o)}A8!==null&&A8(a,o)};var dr=ra(null),om={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Y5=[],X5=[],Z5=[],G5=[],_5=[],q5=[],Rr=new Set;om.recordUnsafeLifecycleWarnings=function(a,o){Rr.has(a.type)||(typeof o.componentWillMount==="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0&&Y5.push(a),a.mode&Vo&&typeof o.UNSAFE_componentWillMount==="function"&&X5.push(a),typeof o.componentWillReceiveProps==="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Z5.push(a),a.mode&Vo&&typeof o.UNSAFE_componentWillReceiveProps==="function"&&G5.push(a),typeof o.componentWillUpdate==="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0&&_5.push(a),a.mode&Vo&&typeof o.UNSAFE_componentWillUpdate==="function"&&q5.push(a))},om.flushPendingUnsafeLifecycleWarnings=function(){var a=new Set;0<Y5.length&&(Y5.forEach(function(b){a.add(L(b)||"Component"),Rr.add(b.type)}),Y5=[]);var o=new Set;0<X5.length&&(X5.forEach(function(b){o.add(L(b)||"Component"),Rr.add(b.type)}),X5=[]);var p=new Set;0<Z5.length&&(Z5.forEach(function(b){p.add(L(b)||"Component"),Rr.add(b.type)}),Z5=[]);var m=new Set;0<G5.length&&(G5.forEach(function(b){m.add(L(b)||"Component"),Rr.add(b.type)}),G5=[]);var t=new Set;0<_5.length&&(_5.forEach(function(b){t.add(L(b)||"Component"),Rr.add(b.type)}),_5=[]);var r=new Set;if(0<q5.length&&(q5.forEach(function(b){r.add(L(b)||"Component"),Rr.add(b.type)}),q5=[]),0<o.size){var v=A(o);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
169
|
-
|
|
170
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
171
|
-
|
|
172
|
-
Please update the following components: %s`,v)}0<m.size&&(v=A(m),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
173
|
-
|
|
174
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
175
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
176
|
-
|
|
177
|
-
Please update the following components: %s`,v)),0<r.size&&(v=A(r),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
178
|
-
|
|
179
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
180
|
-
|
|
181
|
-
Please update the following components: %s`,v)),0<a.size&&(v=A(a),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
182
|
-
|
|
183
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
184
|
-
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
185
|
-
|
|
186
|
-
Please update the following components: %s`,v)),0<p.size&&(v=A(p),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
187
|
-
|
|
188
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
189
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
190
|
-
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
191
|
-
|
|
192
|
-
Please update the following components: %s`,v)),0<t.size&&(v=A(t),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
193
|
-
|
|
194
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
195
|
-
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
196
|
-
|
|
197
|
-
Please update the following components: %s`,v))};var hb=new Map,T8=new Set;om.recordLegacyContextWarning=function(a,o){var p=null;for(var m=a;m!==null;)m.mode&Vo&&(p=m),m=m.return;p===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!T8.has(a.type)&&(m=hb.get(p),a.type.contextTypes!=null||a.type.childContextTypes!=null||o!==null&&typeof o.getChildContext==="function")&&(m===void 0&&(m=[],hb.set(p,m)),m.push(a))},om.flushLegacyContextWarning=function(){hb.forEach(function(a){if(a.length!==0){var o=a[0],p=new Set;a.forEach(function(t){p.add(L(t)||"Component"),T8.add(t.type)});var m=A(p);F(o,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
198
|
-
|
|
199
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
200
|
-
|
|
201
|
-
Please update the following components: %s
|
|
202
|
-
|
|
203
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,m)})}})},om.discardPendingWarnings=function(){Y5=[],X5=[],Z5=[],G5=[],_5=[],q5=[],hb=new Map};var n8={react_stack_bottom_frame:function(a,o,p){var m=Hm;Hm=!0;try{return a(o,p)}finally{Hm=m}}},hf=n8.react_stack_bottom_frame.bind(n8),S8={react_stack_bottom_frame:function(a){var o=Hm;Hm=!0;try{return a.render()}finally{Hm=o}}},u8=S8.react_stack_bottom_frame.bind(S8),x8={react_stack_bottom_frame:function(a,o){try{o.componentDidMount()}catch(p){Ia(a,a.return,p)}}},kf=x8.react_stack_bottom_frame.bind(x8),V8={react_stack_bottom_frame:function(a,o,p,m,t){try{o.componentDidUpdate(p,m,t)}catch(r){Ia(a,a.return,r)}}},D8=V8.react_stack_bottom_frame.bind(V8),j8={react_stack_bottom_frame:function(a,o){var p=o.stack;a.componentDidCatch(o.value,{componentStack:p!==null?p:""})}},XY=j8.react_stack_bottom_frame.bind(j8),E8={react_stack_bottom_frame:function(a,o,p){try{p.componentWillUnmount()}catch(m){Ia(a,o,m)}}},s8=E8.react_stack_bottom_frame.bind(E8),e8={react_stack_bottom_frame:function(a){var o=a.create;return a=a.inst,o=o(),a.destroy=o}},ZY=e8.react_stack_bottom_frame.bind(e8),al={react_stack_bottom_frame:function(a,o,p){try{p()}catch(m){Ia(a,o,m)}}},GY=al.react_stack_bottom_frame.bind(al),ol={react_stack_bottom_frame:function(a){var o=a._init;return o(a._payload)}},_Y=ol.react_stack_bottom_frame.bind(ol),Iv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Nf=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),kb=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Nb={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},yr=null,Q5=!1,Av=null,B5=0,Ka=null,Mf,pl=Mf=!1,ml={},tl={},rl={};W=function(a,o,p){if(p!==null&&typeof p==="object"&&p._store&&(!p._store.validated&&p.key==null||p._store.validated===2)){if(typeof p._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");p._store.validated=1;var m=L(a),t=m||"null";if(!ml[t]){ml[t]=!0,p=p._owner,a=a._debugOwner;var r="";a&&typeof a.tag==="number"&&(t=L(a))&&(r=`
|
|
204
|
-
|
|
205
|
-
Check the render method of \``+t+"`."),r||m&&(r=`
|
|
206
|
-
|
|
207
|
-
Check the top-level render call using <`+m+">.");var v="";p!=null&&a!==p&&(m=null,typeof p.tag==="number"?m=L(p):typeof p.name==="string"&&(m=p.name),m&&(v=" It was passed a child from "+m+".")),F(o,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',r,v)})}}};var Lr=E6(!0),vl=E6(!1),bl=0,fl=1,il=2,gf=3,Pt=!1,wl=!1,Ff=null,Cf=!1,Tv=ra(null),Mb=ra(0),Up=ra(null),Ap=null,nv=1,K5=2,Go=ra(0),gb=0,Tp=1,mp=2,dp=4,tp=8,Sv,cl=new Set,ll=new Set,Pf=new Set,zl=new Set,ot=0,Ja=null,ja=null,Bo=null,Fb=!1,uv=!1,Or=!1,Cb=0,H5=0,pt=null,qY=0,QY=25,Q=null,np=null,mt=-1,W5=!1,U5={readContext:fo,use:Qt,useCallback:Xo,useContext:Xo,useEffect:Xo,useImperativeHandle:Xo,useLayoutEffect:Xo,useInsertionEffect:Xo,useMemo:Xo,useReducer:Xo,useRef:Xo,useState:Xo,useDebugValue:Xo,useDeferredValue:Xo,useTransition:Xo,useSyncExternalStore:Xo,useId:Xo,useHostTransitionStatus:Xo,useFormState:Xo,useActionState:Xo,useOptimistic:Xo,useMemoCache:Xo,useCacheRefresh:Xo};U5.useEffectEvent=Xo;var If=null,$l=null,Af=null,Jl=null,hm=null,pm=null,Pb=null;If={readContext:function(a){return fo(a)},use:Qt,useCallback:function(a,o){return Q="useCallback",Ua(),fv(o),F4(a,o)},useContext:function(a){return Q="useContext",Ua(),fo(a)},useEffect:function(a,o){return Q="useEffect",Ua(),fv(o),h2(a,o)},useImperativeHandle:function(a,o,p){return Q="useImperativeHandle",Ua(),fv(p),g4(a,o,p)},useInsertionEffect:function(a,o){Q="useInsertionEffect",Ua(),fv(o),Yr(4,mp,a,o)},useLayoutEffect:function(a,o){return Q="useLayoutEffect",Ua(),fv(o),M4(a,o)},useMemo:function(a,o){Q="useMemo",Ua(),fv(o);var p=K.H;K.H=hm;try{return C4(a,o)}finally{K.H=p}},useReducer:function(a,o,p){Q="useReducer",Ua();var m=K.H;K.H=hm;try{return U4(a,o,p)}finally{K.H=m}},useRef:function(a){return Q="useRef",Ua(),k4(a)},useState:function(a){Q="useState",Ua();var o=K.H;K.H=hm;try{return L4(a)}finally{K.H=o}},useDebugValue:function(){Q="useDebugValue",Ua()},useDeferredValue:function(a,o){return Q="useDeferredValue",Ua(),P4(a,o)},useTransition:function(){return Q="useTransition",Ua(),T4()},useSyncExternalStore:function(a,o,p){return Q="useSyncExternalStore",Ua(),R4(a,o,p)},useId:function(){return Q="useId",Ua(),n4()},useFormState:function(a,o){return Q="useFormState",Ua(),d2(),wv(a,o)},useActionState:function(a,o){return Q="useActionState",Ua(),wv(a,o)},useOptimistic:function(a){return Q="useOptimistic",Ua(),O4(a)},useHostTransitionStatus:Xr,useMemoCache:Jr,useCacheRefresh:function(){return Q="useCacheRefresh",Ua(),S4()},useEffectEvent:function(a){return Q="useEffectEvent",Ua(),N4(a)}},$l={readContext:function(a){return fo(a)},use:Qt,useCallback:function(a,o){return Q="useCallback",g(),F4(a,o)},useContext:function(a){return Q="useContext",g(),fo(a)},useEffect:function(a,o){return Q="useEffect",g(),h2(a,o)},useImperativeHandle:function(a,o,p){return Q="useImperativeHandle",g(),g4(a,o,p)},useInsertionEffect:function(a,o){Q="useInsertionEffect",g(),Yr(4,mp,a,o)},useLayoutEffect:function(a,o){return Q="useLayoutEffect",g(),M4(a,o)},useMemo:function(a,o){Q="useMemo",g();var p=K.H;K.H=hm;try{return C4(a,o)}finally{K.H=p}},useReducer:function(a,o,p){Q="useReducer",g();var m=K.H;K.H=hm;try{return U4(a,o,p)}finally{K.H=m}},useRef:function(a){return Q="useRef",g(),k4(a)},useState:function(a){Q="useState",g();var o=K.H;K.H=hm;try{return L4(a)}finally{K.H=o}},useDebugValue:function(){Q="useDebugValue",g()},useDeferredValue:function(a,o){return Q="useDeferredValue",g(),P4(a,o)},useTransition:function(){return Q="useTransition",g(),T4()},useSyncExternalStore:function(a,o,p){return Q="useSyncExternalStore",g(),R4(a,o,p)},useId:function(){return Q="useId",g(),n4()},useActionState:function(a,o){return Q="useActionState",g(),wv(a,o)},useFormState:function(a,o){return Q="useFormState",g(),d2(),wv(a,o)},useOptimistic:function(a){return Q="useOptimistic",g(),O4(a)},useHostTransitionStatus:Xr,useMemoCache:Jr,useCacheRefresh:function(){return Q="useCacheRefresh",g(),S4()},useEffectEvent:function(a){return Q="useEffectEvent",g(),N4(a)}},Af={readContext:function(a){return fo(a)},use:Qt,useCallback:function(a,o){return Q="useCallback",g(),M2(a,o)},useContext:function(a){return Q="useContext",g(),fo(a)},useEffect:function(a,o){Q="useEffect",g(),fp(2048,tp,a,o)},useImperativeHandle:function(a,o,p){return Q="useImperativeHandle",g(),N2(a,o,p)},useInsertionEffect:function(a,o){return Q="useInsertionEffect",g(),fp(4,mp,a,o)},useLayoutEffect:function(a,o){return Q="useLayoutEffect",g(),fp(4,dp,a,o)},useMemo:function(a,o){Q="useMemo",g();var p=K.H;K.H=pm;try{return g2(a,o)}finally{K.H=p}},useReducer:function(a,o,p){Q="useReducer",g();var m=K.H;K.H=pm;try{return iv(a,o,p)}finally{K.H=m}},useRef:function(){return Q="useRef",g(),na().memoizedState},useState:function(){Q="useState",g();var a=K.H;K.H=pm;try{return iv(jp)}finally{K.H=a}},useDebugValue:function(){Q="useDebugValue",g()},useDeferredValue:function(a,o){return Q="useDeferredValue",g(),Gi(a,o)},useTransition:function(){return Q="useTransition",g(),Hi()},useSyncExternalStore:function(a,o,p){return Q="useSyncExternalStore",g(),y2(a,o,p)},useId:function(){return Q="useId",g(),na().memoizedState},useFormState:function(a){return Q="useFormState",g(),d2(),L2(a)},useActionState:function(a){return Q="useActionState",g(),L2(a)},useOptimistic:function(a,o){return Q="useOptimistic",g(),ii(a,o)},useHostTransitionStatus:Xr,useMemoCache:Jr,useCacheRefresh:function(){return Q="useCacheRefresh",g(),na().memoizedState},useEffectEvent:function(a){return Q="useEffectEvent",g(),k2(a)}},Jl={readContext:function(a){return fo(a)},use:Qt,useCallback:function(a,o){return Q="useCallback",g(),M2(a,o)},useContext:function(a){return Q="useContext",g(),fo(a)},useEffect:function(a,o){Q="useEffect",g(),fp(2048,tp,a,o)},useImperativeHandle:function(a,o,p){return Q="useImperativeHandle",g(),N2(a,o,p)},useInsertionEffect:function(a,o){return Q="useInsertionEffect",g(),fp(4,mp,a,o)},useLayoutEffect:function(a,o){return Q="useLayoutEffect",g(),fp(4,dp,a,o)},useMemo:function(a,o){Q="useMemo",g();var p=K.H;K.H=Pb;try{return g2(a,o)}finally{K.H=p}},useReducer:function(a,o,p){Q="useReducer",g();var m=K.H;K.H=Pb;try{return O0(a,o,p)}finally{K.H=m}},useRef:function(){return Q="useRef",g(),na().memoizedState},useState:function(){Q="useState",g();var a=K.H;K.H=Pb;try{return O0(jp)}finally{K.H=a}},useDebugValue:function(){Q="useDebugValue",g()},useDeferredValue:function(a,o){return Q="useDeferredValue",g(),_i(a,o)},useTransition:function(){return Q="useTransition",g(),Wi()},useSyncExternalStore:function(a,o,p){return Q="useSyncExternalStore",g(),y2(a,o,p)},useId:function(){return Q="useId",g(),na().memoizedState},useFormState:function(a){return Q="useFormState",g(),d2(),O2(a)},useActionState:function(a){return Q="useActionState",g(),O2(a)},useOptimistic:function(a,o){return Q="useOptimistic",g(),ci(a,o)},useHostTransitionStatus:Xr,useMemoCache:Jr,useCacheRefresh:function(){return Q="useCacheRefresh",g(),na().memoizedState},useEffectEvent:function(a){return Q="useEffectEvent",g(),k2(a)}},hm={readContext:function(a){return N(),fo(a)},use:function(a){return G(),Qt(a)},useCallback:function(a,o){return Q="useCallback",G(),Ua(),F4(a,o)},useContext:function(a){return Q="useContext",G(),Ua(),fo(a)},useEffect:function(a,o){return Q="useEffect",G(),Ua(),h2(a,o)},useImperativeHandle:function(a,o,p){return Q="useImperativeHandle",G(),Ua(),g4(a,o,p)},useInsertionEffect:function(a,o){Q="useInsertionEffect",G(),Ua(),Yr(4,mp,a,o)},useLayoutEffect:function(a,o){return Q="useLayoutEffect",G(),Ua(),M4(a,o)},useMemo:function(a,o){Q="useMemo",G(),Ua();var p=K.H;K.H=hm;try{return C4(a,o)}finally{K.H=p}},useReducer:function(a,o,p){Q="useReducer",G(),Ua();var m=K.H;K.H=hm;try{return U4(a,o,p)}finally{K.H=m}},useRef:function(a){return Q="useRef",G(),Ua(),k4(a)},useState:function(a){Q="useState",G(),Ua();var o=K.H;K.H=hm;try{return L4(a)}finally{K.H=o}},useDebugValue:function(){Q="useDebugValue",G(),Ua()},useDeferredValue:function(a,o){return Q="useDeferredValue",G(),Ua(),P4(a,o)},useTransition:function(){return Q="useTransition",G(),Ua(),T4()},useSyncExternalStore:function(a,o,p){return Q="useSyncExternalStore",G(),Ua(),R4(a,o,p)},useId:function(){return Q="useId",G(),Ua(),n4()},useFormState:function(a,o){return Q="useFormState",G(),Ua(),wv(a,o)},useActionState:function(a,o){return Q="useActionState",G(),Ua(),wv(a,o)},useOptimistic:function(a){return Q="useOptimistic",G(),Ua(),O4(a)},useMemoCache:function(a){return G(),Jr(a)},useHostTransitionStatus:Xr,useCacheRefresh:function(){return Q="useCacheRefresh",Ua(),S4()},useEffectEvent:function(a){return Q="useEffectEvent",G(),Ua(),N4(a)}},pm={readContext:function(a){return N(),fo(a)},use:function(a){return G(),Qt(a)},useCallback:function(a,o){return Q="useCallback",G(),g(),M2(a,o)},useContext:function(a){return Q="useContext",G(),g(),fo(a)},useEffect:function(a,o){Q="useEffect",G(),g(),fp(2048,tp,a,o)},useImperativeHandle:function(a,o,p){return Q="useImperativeHandle",G(),g(),N2(a,o,p)},useInsertionEffect:function(a,o){return Q="useInsertionEffect",G(),g(),fp(4,mp,a,o)},useLayoutEffect:function(a,o){return Q="useLayoutEffect",G(),g(),fp(4,dp,a,o)},useMemo:function(a,o){Q="useMemo",G(),g();var p=K.H;K.H=pm;try{return g2(a,o)}finally{K.H=p}},useReducer:function(a,o,p){Q="useReducer",G(),g();var m=K.H;K.H=pm;try{return iv(a,o,p)}finally{K.H=m}},useRef:function(){return Q="useRef",G(),g(),na().memoizedState},useState:function(){Q="useState",G(),g();var a=K.H;K.H=pm;try{return iv(jp)}finally{K.H=a}},useDebugValue:function(){Q="useDebugValue",G(),g()},useDeferredValue:function(a,o){return Q="useDeferredValue",G(),g(),Gi(a,o)},useTransition:function(){return Q="useTransition",G(),g(),Hi()},useSyncExternalStore:function(a,o,p){return Q="useSyncExternalStore",G(),g(),y2(a,o,p)},useId:function(){return Q="useId",G(),g(),na().memoizedState},useFormState:function(a){return Q="useFormState",G(),g(),L2(a)},useActionState:function(a){return Q="useActionState",G(),g(),L2(a)},useOptimistic:function(a,o){return Q="useOptimistic",G(),g(),ii(a,o)},useMemoCache:function(a){return G(),Jr(a)},useHostTransitionStatus:Xr,useCacheRefresh:function(){return Q="useCacheRefresh",g(),na().memoizedState},useEffectEvent:function(a){return Q="useEffectEvent",G(),g(),k2(a)}},Pb={readContext:function(a){return N(),fo(a)},use:function(a){return G(),Qt(a)},useCallback:function(a,o){return Q="useCallback",G(),g(),M2(a,o)},useContext:function(a){return Q="useContext",G(),g(),fo(a)},useEffect:function(a,o){Q="useEffect",G(),g(),fp(2048,tp,a,o)},useImperativeHandle:function(a,o,p){return Q="useImperativeHandle",G(),g(),N2(a,o,p)},useInsertionEffect:function(a,o){return Q="useInsertionEffect",G(),g(),fp(4,mp,a,o)},useLayoutEffect:function(a,o){return Q="useLayoutEffect",G(),g(),fp(4,dp,a,o)},useMemo:function(a,o){Q="useMemo",G(),g();var p=K.H;K.H=pm;try{return g2(a,o)}finally{K.H=p}},useReducer:function(a,o,p){Q="useReducer",G(),g();var m=K.H;K.H=pm;try{return O0(a,o,p)}finally{K.H=m}},useRef:function(){return Q="useRef",G(),g(),na().memoizedState},useState:function(){Q="useState",G(),g();var a=K.H;K.H=pm;try{return O0(jp)}finally{K.H=a}},useDebugValue:function(){Q="useDebugValue",G(),g()},useDeferredValue:function(a,o){return Q="useDeferredValue",G(),g(),_i(a,o)},useTransition:function(){return Q="useTransition",G(),g(),Wi()},useSyncExternalStore:function(a,o,p){return Q="useSyncExternalStore",G(),g(),y2(a,o,p)},useId:function(){return Q="useId",G(),g(),na().memoizedState},useFormState:function(a){return Q="useFormState",G(),g(),O2(a)},useActionState:function(a){return Q="useActionState",G(),g(),O2(a)},useOptimistic:function(a,o){return Q="useOptimistic",G(),g(),ci(a,o)},useMemoCache:function(a){return G(),Jr(a)},useHostTransitionStatus:Xr,useCacheRefresh:function(){return Q="useCacheRefresh",g(),na().memoizedState},useEffectEvent:function(a){return Q="useEffectEvent",G(),g(),k2(a)}};var Yl={},Xl=new Set,Zl=new Set,Gl=new Set,_l=new Set,ql=new Set,Ql=new Set,Bl=new Set,Kl=new Set,Hl=new Set,Wl=new Set;Object.freeze(Yl);var Tf={enqueueSetState:function(a,o,p){a=a._reactInternals;var m=qp(a),t=Zt(m);t.payload=o,p!==void 0&&p!==null&&(x4(p),t.callback=p),o=Gt(a,t,m),o!==null&&(wm(m,"this.setState()",a),Jo(o,a,m),d0(o,a,m))},enqueueReplaceState:function(a,o,p){a=a._reactInternals;var m=qp(a),t=Zt(m);t.tag=fl,t.payload=o,p!==void 0&&p!==null&&(x4(p),t.callback=p),o=Gt(a,t,m),o!==null&&(wm(m,"this.replaceState()",a),Jo(o,a,m),d0(o,a,m))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var p=qp(a),m=Zt(p);m.tag=il,o!==void 0&&o!==null&&(x4(o),m.callback=o),o=Gt(a,m,p),o!==null&&(wm(p,"this.forceUpdate()",a),Jo(o,a,p),d0(o,a,p))}},xv=null,nf=null,Sf=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Ko=!1,Ul={},dl={},Rl={},yl={},Vv=!1,Ll={},Ib={},uf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Ol=!1,hl=null;hl=new Set;var tt=!1,Ho=!1,xf=!1,kl=typeof WeakSet==="function"?WeakSet:Set,go=null,Dv=null,jv=null,Wo=null,cp=!1,mm=null,Lo=!1,d5=8192,BY={getCacheForType:function(a){var o=fo(qo),p=o.data.get(a);return p===void 0&&(p=a(),o.data.set(a,p)),p},cacheSignal:function(){return fo(qo).controller.signal},getOwner:function(){return Kp}};if(typeof Symbol==="function"&&Symbol.for){var R5=Symbol.for;R5("selector.component"),R5("selector.has_pseudo_class"),R5("selector.role"),R5("selector.test_id"),R5("selector.text")}var KY=[],HY=typeof WeakMap==="function"?WeakMap:Map,Fo=0,Oo=2,Rp=4,rt=0,y5=1,hr=2,Ab=3,It=4,Tb=6,Nl=5,ga=Fo,Ea=null,Wa=null,Ha=0,lp=0,nb=1,kr=2,L5=3,Ml=4,Vf=5,O5=6,Sb=7,Df=8,Nr=9,Sa=lp,yp=null,At=!1,Ev=!1,jf=!1,km=0,zo=rt,Tt=0,nt=0,Ef=0,zp=0,Mr=0,h5=null,rp=null,ub=!1,xb=0,gl=0,Fl=300,Vb=1/0,Cl=500,k5=null,Zo=null,St=null,Db=0,sf=1,ef=2,Pl=3,ut=0,Il=1,Al=2,Tl=3,nl=4,jb=5,Uo=0,xt=null,sv=null,tm=0,a7=0,o7=-0,p7=null,Sl=null,ul=null,rm=Db,xl=null,WY=50,N5=0,m7=null,t7=!1,Eb=!1,UY=50,gr=0,M5=null,ev=!1,sb=null,Vl=!1,Dl=new Set,dY={},eb=null,a0=null,r7=!1,v7=!1,a1=!1,b7=!1,Vt=0,f7={};(function(){for(var a=0;a<Gf.length;a++){var o=Gf[a],p=o.toLowerCase();o=o[0].toUpperCase()+o.slice(1),Dp(p,"on"+o)}Dp(H8,"onAnimationEnd"),Dp(W8,"onAnimationIteration"),Dp(U8,"onAnimationStart"),Dp("dblclick","onDoubleClick"),Dp("focusin","onFocus"),Dp("focusout","onBlur"),Dp(tY,"onTransitionRun"),Dp(rY,"onTransitionStart"),Dp(vY,"onTransitionCancel"),Dp(d8,"onTransitionEnd")})(),ov("onMouseEnter",["mouseout","mouseover"]),ov("onMouseLeave",["mouseout","mouseover"]),ov("onPointerEnter",["pointerout","pointerover"]),ov("onPointerLeave",["pointerout","pointerover"]),rr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rr("onBeforeInput",["compositionend","keypress","textInput","paste"]),rr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var g5="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(" "),i7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(g5)),o1="_reactListening"+Math.random().toString(36).slice(2),jl=!1,El=!1,p1=!1,sl=!1,m1=!1,t1=!1,el=!1,r1={},RY=/\r\n?/g,yY=/\u0000|\uFFFD/g,Fr="http://www.w3.org/1999/xlink",w7="http://www.w3.org/XML/1998/namespace",LY="javascript:throw new Error('React form unexpectedly submitted.')",OY="suppressHydrationWarning",Cr="&",v1="/&",F5="$",C5="/$",Dt="$?",Pr="$~",o0="$!",hY="html",kY="body",NY="head",c7="F!",a9="F",o9="loading",MY="style",vt=0,p0=1,b1=2,l7=null,z7=null,p9={dialog:!0,webview:!0},$7=null,P5=void 0,m9=typeof setTimeout==="function"?setTimeout:void 0,gY=typeof clearTimeout==="function"?clearTimeout:void 0,Ir=-1,t9=typeof Promise==="function"?Promise:void 0,FY=typeof queueMicrotask==="function"?queueMicrotask:typeof t9<"u"?function(a){return t9.resolve(null).then(a).catch(Q$)}:m9,J7=null,Ar=0,I5=1,r9=2,v9=3,Sp=4,up=new Map,b9=new Set,bt=Aa.d;Aa.d={f:function(){var a=bt.f(),o=Jv();return a||o},r:function(a){var o=zt(a);o!==null&&o.tag===5&&o.type==="form"?Ki(o):bt.r(a)},D:function(a){bt.D(a),Xc("dns-prefetch",a,null)},C:function(a,o){bt.C(a,o),Xc("preconnect",a,o)},L:function(a,o,p){bt.L(a,o,p);var m=m0;if(m&&a&&o){var t='link[rel="preload"][as="'+hp(o)+'"]';o==="image"?p&&p.imageSrcSet?(t+='[imagesrcset="'+hp(p.imageSrcSet)+'"]',typeof p.imageSizes==="string"&&(t+='[imagesizes="'+hp(p.imageSizes)+'"]')):t+='[href="'+hp(a)+'"]':t+='[href="'+hp(a)+'"]';var r=t;switch(o){case"style":r=Zv(a);break;case"script":r=Gv(a)}up.has(r)||(a=da({rel:"preload",href:o==="image"&&p&&p.imageSrcSet?void 0:a,as:o},p),up.set(r,a),m.querySelector(t)!==null||o==="style"&&m.querySelector(x0(r))||o==="script"&&m.querySelector(V0(r))||(o=m.createElement("link"),Io(o,"link",a),ho(o),m.head.appendChild(o)))}},m:function(a,o){bt.m(a,o);var p=m0;if(p&&a){var m=o&&typeof o.as==="string"?o.as:"script",t='link[rel="modulepreload"][as="'+hp(m)+'"][href="'+hp(a)+'"]',r=t;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Gv(a)}if(!up.has(r)&&(a=da({rel:"modulepreload",href:a},o),up.set(r,a),p.querySelector(t)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(V0(r)))return}m=p.createElement("link"),Io(m,"link",a),ho(m),p.head.appendChild(m)}}},X:function(a,o){bt.X(a,o);var p=m0;if(p&&a){var m=av(p).hoistableScripts,t=Gv(a),r=m.get(t);r||(r=p.querySelector(V0(t)),r||(a=da({src:a,async:!0},o),(o=up.get(t))&&g3(a,o),r=p.createElement("script"),ho(r),Io(r,"link",a),p.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},m.set(t,r))}},S:function(a,o,p){bt.S(a,o,p);var m=m0;if(m&&a){var t=av(m).hoistableStyles,r=Zv(a);o=o||"default";var v=t.get(r);if(!v){var b={loading:Ar,preload:null};if(v=m.querySelector(x0(r)))b.loading=I5|Sp;else{a=da({rel:"stylesheet",href:a,"data-precedence":o},p),(p=up.get(r))&&M3(a,p);var f=v=m.createElement("link");ho(f),Io(f,"link",a),f._p=new Promise(function(i,Y){f.onload=i,f.onerror=Y}),f.addEventListener("load",function(){b.loading|=I5}),f.addEventListener("error",function(){b.loading|=r9}),b.loading|=Sp,pb(v,o,m)}v={type:"stylesheet",instance:v,count:1,state:b},t.set(r,v)}}},M:function(a,o){bt.M(a,o);var p=m0;if(p&&a){var m=av(p).hoistableScripts,t=Gv(a),r=m.get(t);r||(r=p.querySelector(V0(t)),r||(a=da({src:a,async:!0,type:"module"},o),(o=up.get(t))&&g3(a,o),r=p.createElement("script"),ho(r),Io(r,"link",a),p.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},m.set(t,r))}}};var m0=typeof document>"u"?null:document,f1=null,CY=60000,PY=800,IY=500,Y7=0,X7=null,i1=null,Tr=pJ,A5={$$typeof:Km,Provider:null,Consumer:null,_currentValue:Tr,_currentValue2:Tr,_threadCount:0},f9="%c%s%c",i9="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",w9="",w1=" ",AY=Function.prototype.bind,c9=!1,l9=null,z9=null,$9=null,J9=null,Y9=null,X9=null,Z9=null,G9=null,_9=null,q9=null;l9=function(a,o,p,m){o=c(a,o),o!==null&&(p=Z(o.memoizedState,p,0,m),o.memoizedState=p,o.baseState=p,a.memoizedProps=da({},a.memoizedProps),p=uo(a,2),p!==null&&Jo(p,a,2))},z9=function(a,o,p){o=c(a,o),o!==null&&(p=h(o.memoizedState,p,0),o.memoizedState=p,o.baseState=p,a.memoizedProps=da({},a.memoizedProps),p=uo(a,2),p!==null&&Jo(p,a,2))},$9=function(a,o,p,m){o=c(a,o),o!==null&&(p=_(o.memoizedState,p,m),o.memoizedState=p,o.baseState=p,a.memoizedProps=da({},a.memoizedProps),p=uo(a,2),p!==null&&Jo(p,a,2))},J9=function(a,o,p){a.pendingProps=Z(a.memoizedProps,o,0,p),a.alternate&&(a.alternate.pendingProps=a.pendingProps),o=uo(a,2),o!==null&&Jo(o,a,2)},Y9=function(a,o){a.pendingProps=h(a.memoizedProps,o,0),a.alternate&&(a.alternate.pendingProps=a.pendingProps),o=uo(a,2),o!==null&&Jo(o,a,2)},X9=function(a,o,p){a.pendingProps=_(a.memoizedProps,o,p),a.alternate&&(a.alternate.pendingProps=a.pendingProps),o=uo(a,2),o!==null&&Jo(o,a,2)},Z9=function(a){var o=uo(a,2);o!==null&&Jo(o,a,2)},G9=function(a){var o=h1(),p=uo(a,o);p!==null&&Jo(p,a,o)},_9=function(a){H=a},q9=function(a){y=a};var c1=!0,l1=null,Z7=!1,jt=null,Et=null,st=null,T5=new Map,n5=new Map,et=[],TY="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),z1=null;if(bb.prototype.render=T3.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error("Cannot update an unmounted root.");var p=arguments;typeof p[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):s(p[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof p[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),p=a;var m=o.current,t=qp(m);F3(m,t,p,o,null,null)},bb.prototype.unmount=T3.prototype.unmount=function(){var a=arguments;if(typeof a[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),a=this._internalRoot,a!==null){this._internalRoot=null;var o=a.containerInfo;(ga&(Oo|Rp))!==Fo&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),F3(a.current,2,null,a,null,null),Jv(),o[Rt]=null}},bb.prototype.unstable_scheduleHydration=function(a){if(a){var o=g7();a={blockedOn:null,target:a,priority:o};for(var p=0;p<et.length&&o!==0&&o<et[p].priority;p++);et.splice(p,0,a),p===0&&Lc(a)}},function(){var a=t0.version;if(a!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
208
|
-
- react: `+(a+`
|
|
209
|
-
- react-dom: 19.2.4
|
|
210
|
-
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Aa.findDOMNode=function(a){var o=a._reactInternals;if(o===void 0){if(typeof a.render==="function")throw Error("Unable to find node on an unmounted component.");throw a=Object.keys(a).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+a)}return a=e(o),a=a!==null?La(a):null,a=a===null?null:a.stateNode,a},!function(){var a={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.2.4"};return a.overrideHookState=l9,a.overrideHookStateDeletePath=z9,a.overrideHookStateRenamePath=$9,a.overrideProps=J9,a.overridePropsDeletePath=Y9,a.overridePropsRenamePath=X9,a.scheduleUpdate=Z9,a.scheduleRetry=G9,a.setErrorHandler=_9,a.setSuspenseHandler=q9,a.scheduleRefresh=M,a.scheduleRoot=x,a.setRefreshHandler=P,a.getCurrentFiber=V$,bz(a)}()&&Rm&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Q9=window.location.protocol;/^(https?|file):$/.test(Q9)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Q9==="file:"?`
|
|
211
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}xY.createRoot=function(a,o){if(!s(a))throw Error("Target container is not a DOM element.");Nc(a);var p=!1,m="",t=Oi,r=hi,v=ki;return o!==null&&o!==void 0&&(o.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof o==="object"&&o!==null&&o.$$typeof===Bm&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
212
|
-
|
|
213
|
-
let root = createRoot(domContainer);
|
|
214
|
-
root.render(<App />);`),o.unstable_strictMode===!0&&(p=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(t=o.onUncaughtError),o.onCaughtError!==void 0&&(r=o.onCaughtError),o.onRecoverableError!==void 0&&(v=o.onRecoverableError)),o=Kc(a,1,!1,null,null,p,m,null,t,r,v,kc),a[Rt]=o.current,K3(a),new T3(o)},xY.hydrateRoot=function(a,o,p){if(!s(a))throw Error("Target container is not a DOM element.");Nc(a),o===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var m=!1,t="",r=Oi,v=hi,b=ki,f=null;return p!==null&&p!==void 0&&(p.unstable_strictMode===!0&&(m=!0),p.identifierPrefix!==void 0&&(t=p.identifierPrefix),p.onUncaughtError!==void 0&&(r=p.onUncaughtError),p.onCaughtError!==void 0&&(v=p.onCaughtError),p.onRecoverableError!==void 0&&(b=p.onRecoverableError),p.formState!==void 0&&(f=p.formState)),o=Kc(a,1,!0,o,p!=null?p:null,m,t,f,r,v,b,kc),o.context=Hc(null),p=o.current,m=qp(p),m=N1(m),t=Zt(m),t.callback=null,Gt(p,t,m),wm(m,"hydrateRoot()",null),p=m,o.current.lanes=p,z0(o,p),qm(o),a[Rt]=o.current,K3(a),new bb(o)},xY.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var W9=G7((vZ,H9)=>{var VY=Ga(K9());H9.exports=VY});var ua=Ga(Do(),1),vz=Ga(W9(),1);var q7={memory:!0,tasks:!1,vision:!0,operator:!1,mcp:!1,realtime:!1,files:!1,agents:!1,builtinTools:{webSearch:!1,webFetch:!1}};function S5(c){let Z=c.operator;if(typeof Z==="boolean")return{enabled:Z};return Z}var ar=Ga(Do(),1);function Q7(c,Z){let{accessToken:_}=$o(),[U,h]=ar.useState([]),[y,H]=ar.useState(!0),G=ar.useCallback(()=>{let P={"Content-Type":"application/json"};if(_)P.Authorization=`Bearer ${_}`;return P},[_]),N=ar.useCallback(async()=>{let P="/api/agents";if(Z!==void 0&&Z!==null)P+=`?project_id=${encodeURIComponent(Z)}`;let qa=await(await fetch(P,{headers:G()})).json();h(qa.agents||[]),H(!1)},[G,Z]),I=$1();ar.useEffect(()=>{if(c)N()},[c,I,N]);let W=async(P)=>{await fetch("/api/agents",{method:"POST",headers:G(),body:JSON.stringify(P)}),await N()},A=async(P)=>{await fetch(`/api/agents/${P}`,{method:"DELETE",headers:G()}),await N()},k=async(P,s)=>{let qa=await fetch(`/api/agents/${P}`,{method:"PUT",headers:G(),body:JSON.stringify(s)}),ma=await qa.json();if(await N(),!qa.ok&&ma.error)return{error:ma.error};return{}},x=async(P)=>{let s=P.status==="running"?"stop":"start";h((ma)=>ma.map((wa)=>wa.id===P.id?{...wa,status:s==="start"?"starting":"stopping"}:wa));let qa=await fetch(`/api/agents/${P.id}/${s}`,{method:"POST",headers:G()});if(!qa.ok){let ma=await qa.json();return h((wa)=>wa.map((oa)=>oa.id===P.id?{...oa,status:P.status}:oa)),{error:ma.error}}return{}},M=U.filter((P)=>P.status==="running").length;return{agents:U,loading:y,runningCount:M,fetchAgents:N,createAgent:W,updateAgent:k,deleteAgent:A,toggleAgent:x}}var Sr=Ga(Do(),1);function B7(c){let{accessToken:Z}=$o(),[_,U]=Sr.useState([]),h=Sr.useCallback(()=>{let I={"Content-Type":"application/json"};if(Z)I.Authorization=`Bearer ${Z}`;return I},[Z]),y=Sr.useCallback(async()=>{let W=await(await fetch("/api/providers",{headers:h()})).json();U(W.providers||[])},[h]);Sr.useEffect(()=>{if(c)y()},[c,y]);let H=_.filter((I)=>I.hasKey);return{providers:_,configuredProviders:H,fetchProviders:y,saveKey:async(I,W)=>{let k=await(await fetch(`/api/keys/${I}/test`,{method:"POST",headers:h(),body:JSON.stringify({key:W})})).json();if(!k.valid)return{success:!1,error:k.error||"API key is invalid"};let x=await fetch(`/api/keys/${I}`,{method:"POST",headers:h(),body:JSON.stringify({key:W})});if(!x.ok)return{success:!1,error:(await x.json()).error||"Failed to save key"};return await y(),{success:!0}},deleteKey:async(I)=>{await fetch(`/api/keys/${I}`,{method:"DELETE",headers:h()}),await y()}}}var U9=Ga(Do(),1);function K7(){let{authFetch:c,onboardingComplete:Z,setOnboardingComplete:_}=$o(),U=U9.useCallback(async()=>{await c("/api/onboarding/complete",{method:"POST"}),_(!0)},[c,_]);return{isComplete:Z,setIsComplete:_,complete:U}}var no=Ga(Do(),1);var Lp=Ga(Do(),1);var Va=Ga(vo(),1),R9=Lp.createContext(null);function y9(){return Lp.useContext(R9)}function L9({children:c}){let{authFetch:Z,isAuthenticated:_,isLoading:U}=$o(),[h,y]=Lp.useState(null),[H,G]=Lp.useState(!1),[N,I]=Lp.useState(!1),[W,A]=Lp.useState(null),k=async()=>{try{let wa=await(await Z("/api/meta-agent/status")).json();y(wa)}catch(ma){console.error("[MetaAgent] Failed to fetch status:",ma)}};Lp.useEffect(()=>{if(!U&&_)k()},[Z,_,U]);let x=async()=>{I(!0),A(null);try{let ma=await Z("/api/meta-agent/start",{method:"POST"}),wa=await ma.json();if(!ma.ok)A(wa.error||"Failed to start assistant");else await k()}catch(ma){A("Failed to start assistant")}I(!1)},M=!!(h?.enabled&&h?.available),P=h?.agent,s=!!(P?.status==="running"&&P?.port),qa={status:h,isOpen:H,isStarting:N,error:W,isAvailable:M,isRunning:s,agent:P,toggle:()=>G(!H),close:()=>G(!1),startAgent:x};return Va.jsxDEV(R9.Provider,{value:qa,children:c},void 0,!1,void 0,this)}function O9(){let c=y9();if(!c?.isAvailable)return null;return Va.jsxDEV("button",{onClick:c.toggle,className:`hidden md:flex items-center gap-2 px-3 py-2 rounded transition ${c.isOpen?"bg-[var(--color-accent)] text-white":"bg-[var(--color-bg-secondary)] hover:bg-[var(--color-surface-raised)] text-[var(--color-text-secondary)] hover:text-white"}`,title:"Apteva Assistant",children:[Va.jsxDEV(k9,{className:"w-5 h-5"},void 0,!1,void 0,this),Va.jsxDEV("span",{className:"text-sm",children:"Assistant"},void 0,!1,void 0,this),c.isRunning&&Va.jsxDEV("span",{className:"w-2 h-2 rounded-full bg-green-400"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function h9(){let{theme:c}=xr(),Z=y9(),{currentProjectId:_,currentProject:U}=vp(),h=d9();if(!Z?.isAvailable||!Z.isOpen)return null;let{agent:y,isRunning:H,error:G,isStarting:N,startAgent:I,close:W}=Z,A=Lp.useMemo(()=>{let k=[];if(U)k.push(`Current project: "${U.name}" (id: ${U.id})`);else if(_==="unassigned")k.push("Viewing: unassigned agents (no project)");else k.push("Viewing: All Projects");return k.join(`
|
|
215
|
-
`)},[_,U]);return Va.jsxDEV(Va.Fragment,{children:[Va.jsxDEV("div",{className:"hidden md:block fixed inset-0 bg-black/20 z-40",onClick:W},void 0,!1,void 0,this),Va.jsxDEV("div",{className:"hidden md:flex fixed top-0 right-0 h-full w-[480px] lg:w-[540px] bg-[var(--color-bg)] border-l border-[var(--color-border)] shadow-2xl z-50 flex-col",children:[Va.jsxDEV("div",{className:"flex items-center justify-between px-4 py-3 border-b border-[var(--color-border)] bg-[var(--color-surface)]",children:[Va.jsxDEV("div",{className:"flex items-center gap-2",children:[Va.jsxDEV("div",{className:`w-2 h-2 rounded-full ${H?"bg-green-400":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),Va.jsxDEV("span",{className:"font-medium text-sm",children:"Apteva Assistant"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Va.jsxDEV("button",{onClick:W,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition",children:Va.jsxDEV(DY,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Va.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col",children:H?Va.jsxDEV(ur,{agentId:"default",apiUrl:`/api/agents/${y.id}`,placeholder:"Ask me anything about Apteva...",variant:"terminal",theme:c.id,showHeader:!1,context:A,onToolResult:h},void 0,!1,void 0,this):Va.jsxDEV("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center",children:[Va.jsxDEV(k9,{className:"w-12 h-12 text-[var(--color-border-light)] mb-4"},void 0,!1,void 0,this),Va.jsxDEV("h3",{className:"font-medium mb-2",children:"Apteva Assistant"},void 0,!1,void 0,this),Va.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-6",children:"I can help you navigate Apteva, create agents, set up MCP servers, and more."},void 0,!1,void 0,this),G&&Va.jsxDEV("p",{className:"text-sm text-red-400 mb-4",children:G},void 0,!1,void 0,this),Va.jsxDEV("button",{onClick:I,disabled:N,className:"bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 text-white px-6 py-2 rounded font-medium transition",children:N?"Starting...":"Start Assistant"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function k9({className:c="w-6 h-6"}){return Va.jsxDEV("svg",{className:c,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Va.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function DY(){return Va.jsxDEV("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Va.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var la=Ga(vo(),1);function J1({onMenuClick:c,agents:Z=[]}){let{connected:_}=u5(),U=M9(),{projects:h,currentProjectId:y,currentProject:H,setCurrentProjectId:G,unassignedCount:N,projectsEnabled:I}=vp(),[W,A]=no.useState(!1),[k,x]=no.useState(!1),[M,P]=no.useState(0),[s,qa]=no.useState([]),ma=N9(),{events:wa}=u5(),{accessToken:oa}=$o(),e=no.useRef(!1),La=no.default.useMemo(()=>{let d={};for(let fa of Z)d[fa.id]=fa.name;return d},[Z]),ha=no.default.useMemo(()=>{if(!I||y===null)return null;if(y==="unassigned")return new Set(Z.filter((d)=>!d.projectId).map((d)=>d.id));return new Set(Z.filter((d)=>d.projectId===y).map((d)=>d.id))},[Z,y,I]);no.useEffect(()=>{if(e.current||!oa)return;e.current=!0,fetch("/api/notifications/count",{headers:{Authorization:`Bearer ${oa}`}}).then((d)=>d.json()).then((d)=>P(d.count||0)).catch(()=>{})},[oa]),no.useEffect(()=>{if(ma===0)return;let d=wa.find((fa)=>fa.level==="error"||fa.category==="ERROR"||fa.category==="system"&&fa.type==="agent_stopped");if(d&&(!ha||ha.has(d.agent_id)))P((fa)=>fa+1)},[ma]);let V=no.useRef(y);no.useEffect(()=>{if(V.current===y)return;if(V.current=y,!oa)return;fetch("/api/notifications/count",{headers:{Authorization:`Bearer ${oa}`}}).then((d)=>d.json()).then((d)=>{if(!ha)P(d.count||0);else fetch("/api/notifications?limit=200",{headers:{Authorization:`Bearer ${oa}`}}).then((fa)=>fa.json()).then((fa)=>{let C=(fa.notifications||[]).filter((T)=>!T.seen&&ha.has(T.agent_id));P(C.length)}).catch(()=>{})}).catch(()=>{})},[y,oa,ha]);let Ca=no.useCallback(async()=>{if(x((d)=>!d),!k)try{let d={"Content-Type":"application/json"};if(oa)d.Authorization=`Bearer ${oa}`;let T=(await(await fetch("/api/notifications?limit=50",{headers:d})).json()).notifications||[];if(ha)T=T.filter((va)=>ha.has(va.agent_id));if(qa(T),M>0)await fetch("/api/notifications/mark-seen",{method:"POST",headers:d,body:JSON.stringify({all:!0})}),P(0)}catch{}},[k,M,oa,ha]),L=(d)=>{G(d),A(!1)},ra=()=>{if(y===null)return"All Projects";if(y==="unassigned")return"Unassigned";return H?.name||"Select Project"},O=()=>{if(y===null)return"var(--color-text-muted)";if(y==="unassigned")return"var(--color-text-secondary)";return H?.color||"#6366f1"};return la.jsxDEV("header",{className:"px-4 md:px-6 py-4 flex-shrink-0",style:{borderBottom:"1px solid var(--color-border)"},children:la.jsxDEV("div",{className:"flex items-center justify-between",children:[la.jsxDEV("div",{className:"flex items-center gap-3",children:[la.jsxDEV("button",{onClick:c,className:"p-2 -ml-2 transition md:hidden",style:{color:"var(--color-text-muted)"},children:la.jsxDEV(g9,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),la.jsxDEV("div",{className:"flex items-center gap-2",children:[la.jsxDEV("span",{style:{color:"var(--color-accent)"},children:">_"},void 0,!1,void 0,this),la.jsxDEV("span",{className:"text-xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),I&&h.length>0&&la.jsxDEV("div",{className:"relative ml-2 md:ml-4",children:[la.jsxDEV("button",{onClick:()=>A(!W),className:"flex items-center gap-2 px-3 py-1.5 btn transition text-sm",style:{border:"1px solid var(--color-border-light)",backgroundColor:"var(--color-surface)"},children:[la.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:O()}},void 0,!1,void 0,this),la.jsxDEV("span",{className:"hidden sm:inline max-w-[120px] md:max-w-[180px] truncate",children:ra()},void 0,!1,void 0,this),la.jsxDEV(F9,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W&&la.jsxDEV("div",{className:"absolute left-0 top-full mt-1 w-56 card shadow-xl z-50",style:{backgroundColor:"var(--color-surface)"},children:la.jsxDEV("div",{className:"py-1 max-h-64 overflow-y-auto",children:[la.jsxDEV("button",{onClick:()=>L(null),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 transition",style:{backgroundColor:y===null?"var(--color-surface-raised)":"transparent",color:y===null?"var(--color-accent)":"var(--color-text)"},children:[la.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:"var(--color-text-muted)"}},void 0,!1,void 0,this),"All Projects"]},void 0,!0,void 0,this),h.map((d)=>la.jsxDEV("button",{onClick:()=>L(d.id),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 transition",style:{backgroundColor:y===d.id?"var(--color-surface-raised)":"transparent",color:y===d.id?"var(--color-accent)":"var(--color-text)"},children:[la.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{backgroundColor:d.color}},void 0,!1,void 0,this),la.jsxDEV("span",{className:"truncate",children:d.name},void 0,!1,void 0,this),la.jsxDEV("span",{className:"ml-auto text-xs",style:{color:"var(--color-text-muted)"},children:d.agentCount},void 0,!1,void 0,this)]},d.id,!0,void 0,this)),N>0&&la.jsxDEV("button",{onClick:()=>L("unassigned"),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 transition",style:{backgroundColor:y==="unassigned"?"var(--color-surface-raised)":"transparent",color:y==="unassigned"?"var(--color-accent)":"var(--color-text)"},children:[la.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:"var(--color-text-secondary)"}},void 0,!1,void 0,this),la.jsxDEV("span",{className:"truncate",children:"Unassigned"},void 0,!1,void 0,this),la.jsxDEV("span",{className:"ml-auto text-xs",style:{color:"var(--color-text-muted)"},children:N},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),la.jsxDEV("div",{className:"flex items-center gap-3 md:gap-4",children:[la.jsxDEV("div",{className:"flex items-center gap-2",children:[la.jsxDEV("span",{className:`w-2 h-2 rounded-full ${_?"bg-green-400":"bg-red-400"}`},void 0,!1,void 0,this),la.jsxDEV("span",{className:"text-xs hidden sm:inline",style:{color:"var(--color-text-muted)"},children:_?"Live":"Offline"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),la.jsxDEV("div",{className:"relative",children:[la.jsxDEV("button",{onClick:Ca,className:"relative p-2 transition rounded",style:{color:"var(--color-text-muted)"},children:[la.jsxDEV(C9,{className:"w-5 h-5"},void 0,!1,void 0,this),M>0&&la.jsxDEV("span",{className:"absolute flex items-center justify-center bg-red-500 text-white font-bold rounded-full pointer-events-none",style:{top:2,right:2,fontSize:9,lineHeight:1,minWidth:16,height:16,padding:"0 4px"},children:M>99?"99+":M},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k&&la.jsxDEV(la.Fragment,{children:[la.jsxDEV("div",{className:"fixed inset-0 z-40",onClick:()=>x(!1)},void 0,!1,void 0,this),la.jsxDEV("div",{className:"absolute right-0 top-full mt-1 w-80 card shadow-xl z-50 max-h-96 overflow-y-auto",style:{backgroundColor:"var(--color-surface)"},children:[la.jsxDEV("div",{className:"px-4 py-3 flex items-center justify-between",style:{borderBottom:"1px solid var(--color-border-light)"},children:[la.jsxDEV("span",{className:"text-sm font-medium",children:"Notifications"},void 0,!1,void 0,this),s.length>0&&la.jsxDEV("span",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:[s.length," recent"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),s.length===0?la.jsxDEV("div",{className:"px-4 py-8 text-center text-sm",style:{color:"var(--color-text-muted)"},children:"No notifications"},void 0,!1,void 0,this):la.jsxDEV("div",{className:"py-1",children:s.map((d)=>la.jsxDEV("div",{className:"px-4 py-3 transition",style:{borderBottom:"1px solid var(--color-border)",backgroundColor:!d.seen?"var(--color-bg-secondary)":"transparent"},children:[la.jsxDEV("div",{className:"flex items-center gap-2 mb-1",children:[la.jsxDEV("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${!d.seen?d.level==="error"||d.category==="ERROR"?"bg-red-400":"":""}`,style:{backgroundColor:!d.seen?d.level==="error"||d.category==="ERROR"?void 0:"var(--color-accent)":"var(--color-surface-raised)"}},void 0,!1,void 0,this),la.jsxDEV("span",{className:"text-xs font-medium truncate",style:{color:!d.seen?"var(--color-text)":"var(--color-text-muted)"},children:d.category==="system"&&d.type==="agent_stopped"?"Agent Stopped":d.category==="ERROR"?"Error":`${d.category} / ${d.type}`},void 0,!1,void 0,this),la.jsxDEV("span",{className:"text-[10px] ml-auto flex-shrink-0",style:{color:"var(--color-text-faint)"},children:jY(d.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),la.jsxDEV("div",{className:"text-xs truncate",style:{color:!d.seen?"var(--color-text-secondary)":"var(--color-text-muted)"},children:d.error||d.data?.message||d.data?.error||`${d.type} event`},void 0,!1,void 0,this),la.jsxDEV("div",{className:"text-[10px] mt-1",style:{color:"var(--color-text-faint)"},children:La[d.agent_id]||d.agent_id.slice(0,8)},void 0,!1,void 0,this)]},d.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),la.jsxDEV(O9,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function jY(c){let Z=Date.now()-new Date(c).getTime(),_=Math.floor(Z/60000);if(_<1)return"just now";if(_<60)return`${_}m ago`;let U=Math.floor(_/60);if(U<24)return`${U}h ago`;return`${Math.floor(U/24)}d ago`}var S9=Ga(Do(),1);var $a=Ga(vo(),1);function Z1({route:c,agentCount:Z,taskCount:_,onNavigate:U,isOpen:h,onClose:y}){let{user:H,logout:G}=$o(),[N,I]=S9.useState(!1),W=(k)=>{U(k),y?.()},A=async()=>{await G(),I(!1)};return $a.jsxDEV($a.Fragment,{children:[h&&$a.jsxDEV("div",{className:"fixed inset-0 bg-black/60 z-40 md:hidden",onClick:y},void 0,!1,void 0,this),$a.jsxDEV("aside",{className:`
|
|
216
|
-
fixed inset-y-0 left-0 z-50 w-64 p-4 flex flex-col transform transition-transform duration-200 ease-in-out
|
|
217
|
-
md:relative md:w-56 md:translate-x-0 md:z-auto
|
|
218
|
-
${h?"translate-x-0":"-translate-x-full"}
|
|
219
|
-
`,style:{backgroundColor:"var(--color-bg)",borderRight:"1px solid var(--color-border)"},children:[$a.jsxDEV("div",{className:"flex items-center justify-between mb-4 md:hidden",children:[$a.jsxDEV("div",{className:"flex items-center gap-2",children:[$a.jsxDEV("span",{style:{color:"var(--color-accent)"},children:">_"},void 0,!1,void 0,this),$a.jsxDEV("span",{className:"text-lg tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$a.jsxDEV("button",{onClick:y,className:"p-2 transition",style:{color:"var(--color-text-muted)"},children:$a.jsxDEV(it,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$a.jsxDEV("nav",{className:"space-y-1 flex-1",children:[$a.jsxDEV(xp,{icon:$a.jsxDEV(H7,{},void 0,!1,void 0,this),label:"Dashboard",active:c==="dashboard",onClick:()=>W("dashboard")},void 0,!1,void 0,this),$a.jsxDEV(xp,{icon:$a.jsxDEV(W7,{},void 0,!1,void 0,this),label:"Agents",active:c==="agents",onClick:()=>W("agents"),badge:Z>0?String(Z):void 0},void 0,!1,void 0,this),$a.jsxDEV(xp,{icon:$a.jsxDEV(n9,{},void 0,!1,void 0,this),label:"Threads",active:c==="threads",onClick:()=>W("threads")},void 0,!1,void 0,this),$a.jsxDEV(xp,{icon:$a.jsxDEV(X1,{},void 0,!1,void 0,this),label:"Activity",active:c==="activity",onClick:()=>W("activity")},void 0,!1,void 0,this),$a.jsxDEV(xp,{icon:$a.jsxDEV(Nm,{},void 0,!1,void 0,this),label:"Tasks",active:c==="tasks",onClick:()=>W("tasks"),badge:_&&_>0?String(_):void 0},void 0,!1,void 0,this),$a.jsxDEV(xp,{icon:$a.jsxDEV(wt,{},void 0,!1,void 0,this),label:"MCP",active:c==="mcp",onClick:()=>W("mcp")},void 0,!1,void 0,this),$a.jsxDEV(xp,{icon:$a.jsxDEV(Y1,{},void 0,!1,void 0,this),label:"Skills",active:c==="skills",onClick:()=>W("skills")},void 0,!1,void 0,this),$a.jsxDEV(xp,{icon:$a.jsxDEV(T9,{},void 0,!1,void 0,this),label:"Connections",active:c==="connections",onClick:()=>W("connections")},void 0,!1,void 0,this),$a.jsxDEV(xp,{icon:$a.jsxDEV(A9,{},void 0,!1,void 0,this),label:"Tests",active:c==="tests",onClick:()=>W("tests")},void 0,!1,void 0,this),$a.jsxDEV(xp,{icon:$a.jsxDEV(P9,{},void 0,!1,void 0,this),label:"Analytics",active:c==="analytics",onClick:()=>W("analytics")},void 0,!1,void 0,this),$a.jsxDEV(xp,{icon:$a.jsxDEV(I9,{},void 0,!1,void 0,this),label:"API",active:c==="api",onClick:()=>W("api")},void 0,!1,void 0,this),$a.jsxDEV(xp,{icon:$a.jsxDEV(U7,{},void 0,!1,void 0,this),label:"Settings",active:c==="settings",onClick:()=>W("settings")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&$a.jsxDEV("div",{className:"relative pt-3 mt-3",style:{borderTop:"1px solid var(--color-border)"},children:[$a.jsxDEV("button",{onClick:()=>I(!N),className:"w-full flex items-center gap-3 px-3 py-2 rounded transition",style:{color:"var(--color-text)"},onMouseEnter:(k)=>k.currentTarget.style.backgroundColor="var(--color-surface)",onMouseLeave:(k)=>k.currentTarget.style.backgroundColor="transparent",children:[$a.jsxDEV("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-black font-medium text-sm flex-shrink-0",style:{backgroundColor:"var(--color-accent)"},children:H.username.charAt(0).toUpperCase()},void 0,!1,void 0,this),$a.jsxDEV("div",{className:"flex-1 min-w-0 text-left",children:[$a.jsxDEV("p",{className:"text-sm font-medium truncate",children:H.username},void 0,!1,void 0,this),$a.jsxDEV("p",{className:"text-xs",style:{color:"var(--color-text-faint)"},children:H.role},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),N&&$a.jsxDEV($a.Fragment,{children:[$a.jsxDEV("div",{className:"fixed inset-0 z-40",onClick:()=>I(!1)},void 0,!1,void 0,this),$a.jsxDEV("div",{className:"absolute left-3 bottom-full mb-1 w-48 card shadow-xl z-50",style:{backgroundColor:"var(--color-surface)"},children:$a.jsxDEV("button",{onClick:A,className:"w-full px-4 py-2.5 text-left text-sm text-red-400 transition rounded-lg",onMouseEnter:(k)=>k.currentTarget.style.backgroundColor="var(--color-surface-raised)",onMouseLeave:(k)=>k.currentTarget.style.backgroundColor="transparent",children:"Sign out"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function xp({icon:c,label:Z,active:_,onClick:U,badge:h}){return $a.jsxDEV("button",{onClick:U,className:"w-full flex items-center gap-3 px-3 py-2 font-medium transition",style:{borderRadius:"var(--radius-button)",backgroundColor:_?"var(--color-surface)":"transparent",color:_?"var(--color-text)":"var(--color-text-muted)"},onMouseEnter:(y)=>{if(!_)y.currentTarget.style.backgroundColor="var(--color-surface)",y.currentTarget.style.color="var(--color-text-secondary)"},onMouseLeave:(y)=>{if(!_)y.currentTarget.style.backgroundColor="transparent",y.currentTarget.style.color="var(--color-text-muted)"},children:[c,Z,h&&$a.jsxDEV("span",{className:"ml-auto text-xs px-2 py-0.5 rounded-full",style:{backgroundColor:"var(--color-surface-raised)",color:"var(--color-text-secondary)"},children:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var x5=Ga(vo(),1);function G1({message:c,onDismiss:Z}){return x5.jsxDEV("div",{className:"bg-red-500/10 border-b border-red-500/30 px-6 py-3 text-red-400 text-sm flex items-center justify-between",children:[x5.jsxDEV("span",{children:c},void 0,!1,void 0,this),x5.jsxDEV("button",{onClick:Z,className:"hover:text-red-300",children:x5.jsxDEV(it,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var V5=Ga(Do(),1);var Ro=Ga(vo(),1);function _1(){let{login:c}=$o(),[Z,_]=V5.useState(""),[U,h]=V5.useState(""),[y,H]=V5.useState(null),[G,N]=V5.useState(!1);return Ro.jsxDEV("div",{className:"min-h-screen bg-[var(--color-bg)] text-[var(--color-text)] flex items-center justify-center p-8",children:Ro.jsxDEV("div",{className:"w-full max-w-md",children:[Ro.jsxDEV("div",{className:"text-center mb-8",children:[Ro.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[Ro.jsxDEV("span",{className:"text-[var(--color-accent)] text-3xl",children:">_"},void 0,!1,void 0,this),Ro.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ro.jsxDEV("p",{className:"text-[var(--color-text-muted)]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ro.jsxDEV("div",{className:"bg-[var(--color-surface)] card p-8",children:[Ro.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome back"},void 0,!1,void 0,this),Ro.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"Sign in to continue to apteva"},void 0,!1,void 0,this),Ro.jsxDEV("form",{onSubmit:async(W)=>{W.preventDefault(),H(null),N(!0);let A=await c(Z,U);if(!A.success)H(A.error||"Login failed");N(!1)},className:"space-y-4",children:[Ro.jsxDEV("div",{children:[Ro.jsxDEV("label",{htmlFor:"username",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Username"},void 0,!1,void 0,this),Ro.jsxDEV("input",{id:"username",type:"text",value:Z,onChange:(W)=>_(W.target.value),placeholder:"Enter your username",autoFocus:!0,required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ro.jsxDEV("div",{children:[Ro.jsxDEV("label",{htmlFor:"password",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Password"},void 0,!1,void 0,this),Ro.jsxDEV("input",{id:"password",type:"password",value:U,onChange:(W)=>h(W.target.value),placeholder:"Enter your password",required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y&&Ro.jsxDEV("div",{className:"p-3 bg-red-500/10 border border-red-500/30 rounded text-red-400 text-sm",children:y},void 0,!1,void 0,this),Ro.jsxDEV("button",{type:"submit",disabled:G||!Z||!U,className:"w-full bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:G?"Signing in...":"Sign In"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var or=Ga(Do(),1),oo=Ga(vo(),1);function q1({onComplete:c}){let[Z,_]=or.useState(""),[U,h]=or.useState(""),[y,H]=or.useState(""),[G,N]=or.useState(""),[I,W]=or.useState(!1),[A,k]=or.useState(null),[x,M]=or.useState(!1);return oo.jsxDEV(oo.Fragment,{children:[oo.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Create your account"},void 0,!1,void 0,this),oo.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"Set up your admin account to get started with apteva."},void 0,!1,void 0,this),oo.jsxDEV("form",{onSubmit:async(s)=>{if(s.preventDefault(),k(null),U!==y){k("Passwords do not match");return}M(!0);try{let qa=await fetch("/api/onboarding/user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:Z,password:U,...G&&{email:G}})}),ma=await qa.json();if(!qa.ok){k(ma.error||"Failed to create account"),M(!1);return}let wa=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({username:Z,password:U})});if(!wa.ok){k("Account created but login failed. Please try logging in."),M(!1);return}let oa=await wa.json();if(oa.accessToken)sessionStorage.setItem("accessToken",oa.accessToken);c({username:Z})}catch(qa){k("Failed to create account"),M(!1)}},className:"space-y-4",children:[oo.jsxDEV("div",{children:[oo.jsxDEV("label",{htmlFor:"username",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Username"},void 0,!1,void 0,this),oo.jsxDEV("input",{id:"username",type:"text",value:Z,onChange:(s)=>_(s.target.value),placeholder:"Choose a username",autoFocus:!0,required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this),oo.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"3-20 characters, letters, numbers, underscore"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),oo.jsxDEV("div",{children:[oo.jsxDEV("label",{htmlFor:"password",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Password"},void 0,!1,void 0,this),oo.jsxDEV("input",{id:"password",type:"password",value:U,onChange:(s)=>h(s.target.value),placeholder:"Enter a password",required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this),oo.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"Min 8 characters, uppercase, lowercase, number"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),oo.jsxDEV("div",{children:[oo.jsxDEV("label",{htmlFor:"confirmPassword",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Confirm Password"},void 0,!1,void 0,this),oo.jsxDEV("input",{id:"confirmPassword",type:"password",value:y,onChange:(s)=>H(s.target.value),placeholder:"Confirm your password",required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!I?oo.jsxDEV("button",{type:"button",onClick:()=>W(!0),className:"text-sm text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition",children:"+ Add email for password recovery (optional)"},void 0,!1,void 0,this):oo.jsxDEV("div",{children:[oo.jsxDEV("label",{htmlFor:"email",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:["Email ",oo.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),oo.jsxDEV("input",{id:"email",type:"email",value:G,onChange:(s)=>N(s.target.value),placeholder:"For password recovery only",className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this),oo.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"Only used for password recovery, never shared"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A&&oo.jsxDEV("div",{className:"p-3 bg-red-500/10 border border-red-500/30 rounded text-red-400 text-sm",children:A},void 0,!1,void 0,this),oo.jsxDEV("button",{type:"submit",disabled:x||!Z||!U||!y,className:"w-full bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:x?"Creating account...":"Create Account"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),oo.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-4 text-center",children:"This will be your admin account with full access to apteva."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Vp=Ga(Do(),1);var pa=Ga(vo(),1);function D5({onComplete:c,needsAccount:Z=!1}){let[_,U]=Vp.useState(Z?0:1),[h,y]=Vp.useState([]),[H,G]=Vp.useState(null),[N,I]=Vp.useState(""),[W,A]=Vp.useState(!1),[k,x]=Vp.useState(!1),[M,P]=Vp.useState(null),[s,qa]=Vp.useState(null),[ma,wa]=Vp.useState(!1),oa=()=>{let ra=sessionStorage.getItem("accessToken");return ra?{Authorization:`Bearer ${ra}`}:{}};Vp.useEffect(()=>{if(Z&&!ma&&_===0)return;fetch("/api/providers",{headers:oa()}).then((ra)=>ra.json()).then((ra)=>{let O=(ra.providers||[]).filter((d)=>d.type==="llm");y(O)})},[ma,_,Z]);let e=h.filter((ra)=>ra.hasKey),La=async()=>{if(!H||!N)return;A(!0),P(null),qa(null);try{x(!0);let O=await(await fetch(`/api/keys/${H}/test`,{method:"POST",headers:{"Content-Type":"application/json",...oa()},body:JSON.stringify({key:N})})).json();if(x(!1),!O.valid){P(O.error||"API key is invalid"),A(!1);return}let d=await fetch(`/api/keys/${H}`,{method:"POST",headers:{"Content-Type":"application/json",...oa()},body:JSON.stringify({key:N})}),fa=await d.json();if(!d.ok)P(fa.error||"Failed to save key");else{qa("API key saved successfully!"),I("");let T=await(await fetch("/api/providers",{headers:oa()})).json();y(T.providers||[]),G(null)}}catch(ra){P("Failed to save key")}A(!1)},ha=async()=>{try{let ra=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json",...oa()},body:JSON.stringify({name:"My Project",description:"Default project for organizing agents",color:"#f97316"})});if(ra.ok){let O=await ra.json();if(O.project?.id)localStorage.setItem("apteva_current_project",O.project.id)}}catch(ra){console.error("Failed to create default project:",ra)}await fetch("/api/onboarding/complete",{method:"POST",headers:oa()}),c()},V=()=>{wa(!0),U(1)},Ca=Z?3:2,L=Z?_:_-1;return pa.jsxDEV("div",{className:"min-h-screen bg-[var(--color-bg)] text-[var(--color-text)] flex items-center justify-center p-8",children:pa.jsxDEV("div",{className:"w-full max-w-2xl",children:[pa.jsxDEV("div",{className:"text-center mb-8",children:[pa.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[pa.jsxDEV("span",{className:"text-[var(--color-accent)] text-3xl",children:">_"},void 0,!1,void 0,this),pa.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),pa.jsxDEV("p",{className:"text-[var(--color-text-muted)]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),pa.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-8",children:[Z&&pa.jsxDEV(pa.Fragment,{children:[pa.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=0?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this),pa.jsxDEV("div",{className:`w-16 h-0.5 ${_>=1?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),pa.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=1?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this),pa.jsxDEV("div",{className:`w-16 h-0.5 ${_>=2?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this),pa.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=2?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),pa.jsxDEV("div",{className:"bg-[var(--color-surface)] card p-8",children:[_===0&&Z&&pa.jsxDEV(q1,{onComplete:V},void 0,!1,void 0,this),_===1&&pa.jsxDEV(EY,{providers:h,configuredProviders:e,selectedProvider:H,apiKey:N,saving:W,testing:k,error:M,success:s,onSelectProvider:G,onApiKeyChange:I,onSaveKey:La,onContinue:()=>U(2)},void 0,!1,void 0,this),_===2&&pa.jsxDEV(eY,{configuredProviders:e,onAddMore:()=>U(1),onComplete:ha},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function EY({providers:c,configuredProviders:Z,selectedProvider:_,apiKey:U,saving:h,testing:y,error:H,success:G,onSelectProvider:N,onApiKeyChange:I,onSaveKey:W,onContinue:A}){let k=c.find((x)=>x.id===_);if(_&&k)return pa.jsxDEV(pa.Fragment,{children:[pa.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:["Add ",k.name," Key"]},void 0,!0,void 0,this),pa.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"Enter your API key below. It will be encrypted and stored locally."},void 0,!1,void 0,this),pa.jsxDEV("div",{className:"mb-6",children:[pa.jsxDEV("div",{className:"p-4 rounded border border-[var(--color-accent)] bg-[var(--color-accent-5)] mb-4",children:pa.jsxDEV("div",{className:"flex items-center justify-between",children:[pa.jsxDEV("div",{children:[pa.jsxDEV("p",{className:"font-medium",children:k.name},void 0,!1,void 0,this),pa.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[k.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),pa.jsxDEV("a",{href:k.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#3b82f6] hover:underline",children:"Get API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),pa.jsxDEV("div",{className:"space-y-3",children:[pa.jsxDEV("input",{type:"password",value:U,onChange:(x)=>I(x.target.value),placeholder:"Enter your API key...",autoFocus:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)] text-lg"},void 0,!1,void 0,this),H&&pa.jsxDEV("p",{className:"text-red-400 text-sm",children:H},void 0,!1,void 0,this),G&&pa.jsxDEV("p",{className:"text-green-400 text-sm",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),pa.jsxDEV("div",{className:"flex gap-3",children:[pa.jsxDEV("button",{onClick:()=>{N(null),I("")},className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-text-muted)] px-4 py-3 rounded font-medium transition",children:"Back"},void 0,!1,void 0,this),pa.jsxDEV("button",{onClick:W,disabled:!U||h,className:"flex-1 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:y?"Testing...":h?"Saving...":"Save API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return pa.jsxDEV(pa.Fragment,{children:[pa.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome to apteva"},void 0,!1,void 0,this),pa.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"To get started, you'll need to add at least one AI provider API key. Your keys are encrypted and stored locally."},void 0,!1,void 0,this),pa.jsxDEV("div",{className:"space-y-3 mb-6",children:c.map((x)=>pa.jsxDEV(sY,{provider:x,selected:!1,onSelect:()=>!x.hasKey&&N(x.id)},x.id,!1,void 0,this))},void 0,!1,void 0,this),pa.jsxDEV("button",{onClick:A,disabled:Z.length===0,className:"w-full bg-[var(--color-surface-raised)] hover:bg-[var(--color-surface-raised)] disabled:opacity-50 disabled:cursor-not-allowed px-4 py-3 rounded font-medium transition",children:Z.length===0?"Add at least one API key to continue":`Continue with ${Z.length} provider${Z.length>1?"s":""}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function sY({provider:c,selected:Z,onSelect:_}){return pa.jsxDEV("div",{onClick:_,className:`p-4 rounded border transition cursor-pointer ${c.hasKey?"border-green-500/30 bg-green-500/5":Z?"border-[var(--color-accent)] bg-[var(--color-accent-5)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:pa.jsxDEV("div",{className:"flex items-center justify-between",children:[pa.jsxDEV("div",{children:[pa.jsxDEV("p",{className:"font-medium",children:c.name},void 0,!1,void 0,this),pa.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[c.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),c.hasKey?pa.jsxDEV("span",{className:"text-green-400 text-sm flex items-center gap-1",children:[pa.jsxDEV(Q1,{},void 0,!1,void 0,this),"Configured (",c.keyHint,")"]},void 0,!0,void 0,this):pa.jsxDEV("a",{href:c.docsUrl,target:"_blank",rel:"noopener noreferrer",onClick:(U)=>U.stopPropagation(),className:"text-sm text-[#3b82f6] hover:underline",children:"Get API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function eY({configuredProviders:c,onAddMore:Z,onComplete:_}){return pa.jsxDEV(pa.Fragment,{children:[pa.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"You're all set!"},void 0,!1,void 0,this),pa.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:["You've configured ",c.length," provider",c.length>1?"s":"",". You can add more providers later in Settings."]},void 0,!0,void 0,this),pa.jsxDEV("div",{className:"space-y-2 mb-6",children:c.map((U)=>pa.jsxDEV("div",{className:"flex items-center gap-3 p-3 bg-[var(--color-bg)] rounded",children:[pa.jsxDEV(Q1,{className:"w-5 h-5 text-green-400"},void 0,!1,void 0,this),pa.jsxDEV("span",{children:U.name},void 0,!1,void 0,this),pa.jsxDEV("span",{className:"text-[var(--color-text-muted)] text-sm",children:["(",U.keyHint,")"]},void 0,!0,void 0,this)]},U.id,!0,void 0,this))},void 0,!1,void 0,this),pa.jsxDEV("div",{className:"flex gap-3",children:[pa.jsxDEV("button",{onClick:Z,className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-accent)] px-4 py-3 rounded font-medium transition",children:"Add More"},void 0,!1,void 0,this),pa.jsxDEV("button",{onClick:_,className:"flex-1 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] text-black px-4 py-3 rounded font-medium transition",children:"Start Using apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var u9=Ga(Do(),1);var bo=Ga(vo(),1),oX=[{key:"memory",icon:r0,label:"Memory"},{key:"tasks",icon:Nm,label:"Tasks"},{key:"files",icon:i0,label:"Files"},{key:"vision",icon:v0,label:"Vision"},{key:"operator",icon:b0,label:"Operator"},{key:"mcp",icon:wt,label:"MCP"},{key:"realtime",icon:f0,label:"Realtime"},{key:"agents",icon:w0,label:"Multi-Agent"}],K1=u9.default.memo(function({agent:Z,selected:_,onSelect:U,onToggle:h,showProject:y}){let H=oX.filter((M)=>Z.features?.[M.key]),G=Z.mcpServerDetails||[],N=Z.skillDetails||[],{isActive:I,label:W}=B1(Z.id),{projects:A}=vp(),k=Z.projectId?A.find((M)=>M.id===Z.projectId):null,x=Z.subscriptions||[];return bo.jsxDEV("div",{onClick:U,className:`bg-[var(--color-surface)] card p-5 transition cursor-pointer flex flex-col h-full ${_?"!border-[var(--color-accent)]":"hover:border-[var(--color-border-light)]"}`,children:[bo.jsxDEV("div",{className:"flex items-start justify-between mb-3",children:[bo.jsxDEV("div",{children:[bo.jsxDEV("h3",{className:"font-semibold text-lg",children:Z.name},void 0,!1,void 0,this),bo.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[Z.provider," / ",Z.model,Z.port&&bo.jsxDEV("span",{className:"text-[var(--color-text-faint)]",children:[" · :",Z.port]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),y&&k&&bo.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] flex items-center gap-1.5 mt-1",children:[bo.jsxDEV("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:k.color}},void 0,!1,void 0,this),k.name]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),bo.jsxDEV(pX,{status:Z.status,isActive:I&&Z.status==="running",activityLabel:W},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.length>0&&bo.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:H.map(({key:M,icon:P,label:s})=>bo.jsxDEV("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 bg-[var(--color-accent-10)] text-[var(--color-accent-70)] text-xs",style:{borderRadius:"var(--radius-badge)"},title:s,children:[bo.jsxDEV(P,{className:"w-3 h-3"},void 0,!1,void 0,this),s]},M,!0,void 0,this))},void 0,!1,void 0,this),G.length>0&&bo.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:G.map((M)=>{let P=M.type==="http"&&M.url||M.status==="running";return bo.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${P?"bg-green-500/10 text-green-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,title:`MCP: ${M.name} (${P?"available":M.status})`,children:[bo.jsxDEV(wt,{className:"w-3 h-3"},void 0,!1,void 0,this),M.name]},M.id,!0,void 0,this)})},void 0,!1,void 0,this),N.length>0&&bo.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:N.map((M)=>bo.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${M.enabled?"bg-purple-500/10 text-purple-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,title:`Skill: ${M.name} v${M.version}`,children:[bo.jsxDEV(Y1,{className:"w-3 h-3"},void 0,!1,void 0,this),M.name]},M.id,!0,void 0,this))},void 0,!1,void 0,this),x.length>0&&bo.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:x.map((M)=>bo.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${M.enabled?"bg-cyan-500/10 text-cyan-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,title:`Trigger: ${M.trigger_slug.replace(/_/g," ")}`,children:[bo.jsxDEV(X1,{className:"w-3 h-3"},void 0,!1,void 0,this),M.trigger_slug.replace(/_/g," ")]},M.id,!0,void 0,this))},void 0,!1,void 0,this),bo.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] line-clamp-2 mb-4 flex-1",children:Z.systemPrompt},void 0,!1,void 0,this),bo.jsxDEV("button",{onClick:h,disabled:Z.status==="starting"||Z.status==="stopping",className:`w-full px-3 py-1.5 btn text-sm font-medium transition mt-auto ${Z.status==="starting"||Z.status==="stopping"?"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)] cursor-wait":Z.status==="running"?"bg-red-500/15 text-red-500 hover:bg-red-500/25 border border-red-500/20":"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30"}`,children:Z.status==="starting"?"Starting...":Z.status==="stopping"?"Stopping...":Z.status==="running"?"Stop":"Start"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});function pX({status:c,isActive:Z,activityLabel:_}){if(c==="running"&&Z&&_)return bo.jsxDEV("span",{className:"px-2 py-1 text-xs font-medium bg-green-500/20 text-green-400 animate-pulse",style:{borderRadius:"var(--radius-badge)"},children:_},void 0,!1,void 0,this);return bo.jsxDEV("span",{className:`px-2 py-1 text-xs font-medium ${c==="starting"||c==="stopping"?"bg-yellow-500/20 text-yellow-400 animate-pulse":c==="running"?"bg-[#3b82f6]/20 text-[#3b82f6]":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,style:{borderRadius:"var(--radius-badge)"},children:c},void 0,!1,void 0,this)}var j5=Ga(Do(),1);var Xa=Ga(vo(),1),mX=[{key:"memory",label:"Memory",description:"Persistent recall",icon:r0},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:Nm},{key:"files",label:"Files",description:"File storage and management",icon:i0},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:v0},{key:"operator",label:"Operator",description:"Browser automation",icon:b0},{key:"mcp",label:"MCP",description:"External tools/services",icon:wt},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:f0},{key:"agents",label:"Multi-Agent",description:"Communicate with peer agents",icon:w0}];function H1({form:c,providers:Z,configuredProviders:_,onFormChange:U,onProviderChange:h,onCreate:y,onClose:H,onGoToSettings:G}){let{projects:N,currentProjectId:I}=vp(),{authFetch:W}=$o(),A=Z.find((e)=>e.id===c.provider),[k,x]=j5.default.useState([]),[M,P]=j5.default.useState(!1);j5.default.useEffect(()=>{if(c.provider==="ollama")P(!0),W("/api/providers/ollama/models").then((e)=>e.json()).then((e)=>{if(e.models&&e.models.length>0){if(x(e.models.map((La)=>({value:La.value,label:La.label||La.value}))),!c.model&&e.models.length>0)U({...c,model:e.models[0].value})}}).catch(()=>x([])).finally(()=>P(!1))},[c.provider]);let s=_.filter((e)=>e.type==="llm").map((e)=>({value:e.id,label:e.name})),qa=c.provider==="ollama"&&k.length>0?k:A?.models.map((e)=>({value:e.value,label:e.label,recommended:e.recommended}))||[],ma=N.map((e)=>({value:e.id,label:e.name}));j5.default.useEffect(()=>{if(c.projectId===void 0&&I&&I!=="unassigned")U({...c,projectId:I})},[I]);let wa=(e)=>{if(e==="agents")if(typeof c.features.agents==="boolean"?c.features.agents:c.features.agents?.enabled??!1)U({...c,features:{...c.features,agents:!1}});else U({...c,features:{...c.features,agents:{enabled:!0,group:c.projectId||void 0}}});else U({...c,features:{...c.features,[e]:!c.features[e]}})},oa=()=>{let e=c.features.agents;if(typeof e==="boolean")return e;return e?.enabled??!1};return Xa.jsxDEV(d7,{children:[Xa.jsxDEV("h2",{className:"text-xl font-semibold mb-4",children:"Create New Agent"},void 0,!1,void 0,this),s.length===0?Xa.jsxDEV(tX,{onGoToSettings:G},void 0,!1,void 0,this):Xa.jsxDEV(Xa.Fragment,{children:[Xa.jsxDEV("div",{className:"space-y-4",children:[Xa.jsxDEV(Vr,{label:"Name",children:Xa.jsxDEV("input",{type:"text",value:c.name,onChange:(e)=>U({...c,name:e.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]",placeholder:"My Agent"},void 0,!1,void 0,this)},void 0,!1,void 0,this),N.length>0&&Xa.jsxDEV(Vr,{label:"Project",children:Xa.jsxDEV(ct,{value:c.projectId||"",options:ma,onChange:(e)=>U({...c,projectId:e||null}),placeholder:"Select project..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Xa.jsxDEV(Vr,{label:"Provider",children:Xa.jsxDEV(ct,{value:c.provider,options:s,onChange:h,placeholder:"Select provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Xa.jsxDEV(Vr,{label:"Model",children:M?Xa.jsxDEV("div",{className:"text-sm text-[var(--color-text-muted)] py-2",children:"Loading Ollama models..."},void 0,!1,void 0,this):c.provider==="ollama"&&qa.length===0?Xa.jsxDEV("div",{className:"text-sm text-yellow-400/80 py-2",children:["No models found. Run ",Xa.jsxDEV("code",{className:"bg-[var(--color-surface-raised)] px-1 rounded",children:"ollama pull llama3.3"},void 0,!1,void 0,this)," to download a model."]},void 0,!0,void 0,this):Xa.jsxDEV(ct,{value:c.model,options:qa,onChange:(e)=>U({...c,model:e}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Xa.jsxDEV(Vr,{label:"System Prompt",children:Xa.jsxDEV("textarea",{value:c.systemPrompt,onChange:(e)=>U({...c,systemPrompt:e.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 h-24 resize-none focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Xa.jsxDEV(Vr,{label:"Features",children:Xa.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:mX.map(({key:e,label:La,description:ha,icon:V})=>{let Ca=e==="agents"?oa():!!c.features[e];return Xa.jsxDEV("button",{type:"button",onClick:()=>wa(e),className:`flex items-center gap-3 p-3 btn border text-left transition ${Ca?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[Xa.jsxDEV(V,{className:`w-5 h-5 flex-shrink-0 ${Ca?"text-[var(--color-accent)]":"text-[var(--color-text-muted)]"}`},void 0,!1,void 0,this),Xa.jsxDEV("div",{className:"flex-1 min-w-0",children:[Xa.jsxDEV("div",{className:`text-sm font-medium ${Ca?"text-[var(--color-accent)]":""}`,children:La},void 0,!1,void 0,this),Xa.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:ha},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},e,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.provider==="anthropic"&&Xa.jsxDEV(Vr,{label:"Agent Built-in Tools",children:[Xa.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[Xa.jsxDEV("button",{type:"button",onClick:()=>U({...c,features:{...c.features,builtinTools:{...c.features.builtinTools,webSearch:!c.features.builtinTools?.webSearch}}}),className:`flex items-center gap-2 px-3 py-2 btn border transition ${c.features.builtinTools?.webSearch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[Xa.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Xa.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Xa.jsxDEV("span",{className:"text-sm",children:"Web Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Xa.jsxDEV("button",{type:"button",onClick:()=>U({...c,features:{...c.features,builtinTools:{...c.features.builtinTools,webFetch:!c.features.builtinTools?.webFetch}}}),className:`flex items-center gap-2 px-3 py-2 btn border transition ${c.features.builtinTools?.webFetch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[Xa.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Xa.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Xa.jsxDEV("span",{className:"text-sm",children:"Web Fetch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Xa.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-2",children:"Provider-native tools for real-time web access"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Xa.jsxDEV("div",{className:"flex gap-3 mt-6",children:[Xa.jsxDEV("button",{onClick:H,className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-accent)] hover:text-[var(--color-accent)] px-4 py-2 btn font-medium transition",children:"Cancel"},void 0,!1,void 0,this),Xa.jsxDEV("button",{onClick:y,disabled:!c.name,className:"flex-1 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 text-black px-4 py-2 btn font-medium transition",children:"Create"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Vr({label:c,children:Z}){return Xa.jsxDEV("div",{children:[Xa.jsxDEV("label",{className:"block text-sm text-[var(--color-text-muted)] mb-1",children:c},void 0,!1,void 0,this),Z]},void 0,!0,void 0,this)}function tX({onGoToSettings:c}){return Xa.jsxDEV("div",{className:"text-center py-6",children:[Xa.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-4",children:"No API keys configured. Add a provider key first."},void 0,!1,void 0,this),Xa.jsxDEV("button",{onClick:c,className:"bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] text-black px-4 py-2 rounded font-medium transition",children:"Go to Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var aa=Ga(Do(),1);var w=Ga(vo(),1),rX=[{key:"memory",label:"Memory",description:"Persistent recall",icon:r0},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:Nm},{key:"files",label:"Files",description:"File storage and management",icon:i0},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:v0},{key:"operator",label:"Operator",description:"Browser automation",icon:b0},{key:"mcp",label:"MCP",description:"External tools/services",icon:wt},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:f0},{key:"agents",label:"Multi-Agent",description:"Communicate with peer agents",icon:w0}];function U1({agent:c,providers:Z,onClose:_,onStartAgent:U,onUpdateAgent:h,onDeleteAgent:y}){let[H,G]=aa.useState("chat");return w.jsxDEV("div",{className:"w-full h-full flex flex-col overflow-hidden bg-[var(--color-bg)] border-l border-[var(--color-border)]",children:[w.jsxDEV("div",{className:"border-b border-[var(--color-border)] flex items-center",children:[w.jsxDEV("div",{className:"flex-1 overflow-x-auto scrollbar-hide px-2 md:px-4",children:w.jsxDEV("div",{className:"flex gap-1",children:[w.jsxDEV(c0,{active:H==="chat",onClick:()=>G("chat"),children:"Chat"},void 0,!1,void 0,this),w.jsxDEV(c0,{active:H==="threads",onClick:()=>G("threads"),children:"Threads"},void 0,!1,void 0,this),w.jsxDEV(c0,{active:H==="tasks",onClick:()=>G("tasks"),children:"Tasks"},void 0,!1,void 0,this),w.jsxDEV(c0,{active:H==="memory",onClick:()=>G("memory"),children:"Memory"},void 0,!1,void 0,this),w.jsxDEV(c0,{active:H==="files",onClick:()=>G("files"),children:"Files"},void 0,!1,void 0,this),w.jsxDEV(c0,{active:H==="settings",onClick:()=>G("settings"),children:"Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:_,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition p-2 flex-shrink-0 mr-2",children:w.jsxDEV(it,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[H==="chat"&&w.jsxDEV(vX,{agent:c,onStartAgent:U},void 0,!1,void 0,this),H==="threads"&&w.jsxDEV(bX,{agent:c},void 0,!1,void 0,this),H==="tasks"&&w.jsxDEV(fX,{agent:c},void 0,!1,void 0,this),H==="memory"&&w.jsxDEV(wX,{agent:c},void 0,!1,void 0,this),H==="files"&&w.jsxDEV(cX,{agent:c},void 0,!1,void 0,this),H==="settings"&&w.jsxDEV(lX,{agent:c,providers:Z,onUpdateAgent:h,onDeleteAgent:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function c0({active:c,onClick:Z,children:_}){return w.jsxDEV("button",{onClick:Z,className:`px-4 py-3 text-sm font-medium border-b-2 transition ${c?"border-[var(--color-accent)] text-[var(--color-text)]":"border-transparent text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)]"}`,children:_},void 0,!1,void 0,this)}function vX({agent:c,onStartAgent:Z}){let{theme:_}=xr();if(c.status==="running"&&c.port)return w.jsxDEV(ur,{agentId:"default",apiUrl:`/api/agents/${c.id}`,placeholder:"Message this agent...",context:c.systemPrompt,variant:"terminal",theme:_.id,headerTitle:c.name,enableVoice:!!c.features.realtime},void 0,!1,void 0,this);return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("div",{className:"text-center",children:[w.jsxDEV("p",{className:"text-lg mb-2",children:"Agent is not running"},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:Z,className:"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30 px-4 py-2 rounded font-medium transition",children:"Start Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function bX({agent:c}){let{theme:Z}=xr(),[_,U]=aa.useState([]),[h,y]=aa.useState(!0),[H,G]=aa.useState(null),[N,I]=aa.useState(null),[W,A]=aa.useState([]),[k,x]=aa.useState(!1),{confirm:M,ConfirmDialog:P}=s5();aa.useEffect(()=>{U([]),I(null),G(null),y(!0)},[c.id]),aa.useEffect(()=>{if(c.status!=="running"){y(!1);return}(async()=>{try{let wa=await fetch(`/api/agents/${c.id}/threads`);if(!wa.ok)throw Error("Failed to fetch threads");let oa=await wa.json();U(oa.threads||[]),G(null)}catch(wa){G(wa instanceof Error?wa.message:"Failed to load threads")}finally{y(!1)}})()},[c.id,c.status]);let s=async(ma)=>{x(!0),I(ma);try{let wa=await fetch(`/api/agents/${c.id}/threads/${ma}/messages`);if(wa.ok){let oa=await wa.json();A(x9(oa.messages||[]))}else A([])}catch{A([])}x(!1)},qa=async(ma,wa)=>{if(wa.stopPropagation(),!await M("Delete this thread?",{confirmText:"Delete",title:"Delete Thread"}))return;try{if(await fetch(`/api/agents/${c.id}/threads/${ma}`,{method:"DELETE"}),U((e)=>e.filter((La)=>La.id!==ma)),N===ma)I(null)}catch{}};if(c.status!=="running")return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Start the agent to view threads"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(h)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Loading threads..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(H)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:w.jsxDEV("p",{children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(N)return w.jsxDEV(w.Fragment,{children:[P,w.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden",children:k?w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:"Loading messages..."},void 0,!1,void 0,this):w.jsxDEV(ur,{agentId:"default",apiUrl:`/api/agents/${c.id}`,threadId:N,initialMessages:W,placeholder:"Continue this conversation...",context:c.systemPrompt,variant:"terminal",theme:Z.id,showHeader:!0,onHeaderBack:()=>{I(null),A([])}},N,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return w.jsxDEV(w.Fragment,{children:[P,w.jsxDEV("div",{className:"flex-1 overflow-auto",children:_.length===0?w.jsxDEV("div",{className:"flex items-center justify-center h-full text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"No conversation threads yet"},void 0,!1,void 0,this)},void 0,!1,void 0,this):w.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:_.map((ma)=>w.jsxDEV("div",{onClick:()=>s(ma.id),className:"p-4 cursor-pointer hover:bg-[var(--color-surface)] transition flex items-center justify-between",children:[w.jsxDEV("div",{className:"flex-1 min-w-0",children:[w.jsxDEV("p",{className:"text-sm font-medium truncate",children:ma.title||`Thread ${ma.id.slice(0,8)}`},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:[new Date(ma.updated_at||ma.created_at).toLocaleString(),ma.message_count!==void 0&&` • ${ma.message_count} messages`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("button",{onClick:(wa)=>qa(ma.id,wa),className:"text-[var(--color-text-muted)] hover:text-red-400 text-lg ml-4",children:"×"},void 0,!1,void 0,this)]},ma.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function fX({agent:c}){let{authFetch:Z}=$o(),[_,U]=aa.useState([]),[h,y]=aa.useState(!0),[H,G]=aa.useState(null),[N,I]=aa.useState("all"),[W,A]=aa.useState(null),[k,x]=aa.useState(!1),[M,P]=aa.useState(!1),[s,qa]=aa.useState(!1),[ma,wa]=aa.useState(!1),[oa,e]=aa.useState(!1),[La,ha]=aa.useState(!1),[V,Ca]=aa.useState({title:"",description:"",type:"once",priority:5,execute_at:"",recurrence:""}),{confirm:L,ConfirmDialog:ra}=s5(),{events:O}=W1({agent_id:c.id,category:"task"});aa.useEffect(()=>{U([]),G(null),y(!0),A(null)},[c.id]);let d=async()=>{if(c.status!=="running"){y(!1);return}try{let S=await fetch(`/api/agents/${c.id}/tasks?status=${N}`);if(!S.ok)throw Error("Failed to fetch tasks");let _a=await S.json();U(_a.tasks||[]),G(null)}catch(S){G(S instanceof Error?S.message:"Failed to load tasks")}finally{y(!1)}},fa=async(S)=>{A(S),x(!0);try{let _a=await Z(`/api/tasks/${S.agentId||c.id}/${S.id}`);if(_a.ok){let sa=await _a.json();if(sa.task)A({...sa.task,agentId:S.agentId||c.id,agentName:S.agentName||c.name})}}catch(_a){console.error("Failed to fetch task details:",_a)}finally{x(!1)}},C=async()=>{if(!W||s)return;qa(!0);try{await Z(`/api/tasks/${c.id}/${W.id}/execute`,{method:"POST"}),A(null),d()}catch(S){console.error("Failed to execute task:",S)}finally{qa(!1)}},T=async()=>{if(!W||ma)return;if(!await L(`Are you sure you want to delete "${W.title}"?`,{title:"Delete Task",confirmText:"Delete",confirmVariant:"danger"}))return;wa(!0);try{await Z(`/api/tasks/${c.id}/${W.id}`,{method:"DELETE"}),A(null),d()}catch(_a){console.error("Failed to delete task:",_a)}finally{wa(!1)}},va=async(S)=>{try{let _a={...S};if(S.execute_at)_a.execute_at=new Date(S.execute_at).toISOString();if((await Z(`/api/tasks/${c.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_a)})).ok)P(!1),d()}catch(_a){console.error("Failed to create task:",_a)}},Pa=(S)=>{Ca({title:S.title,description:S.description||"",type:S.type,priority:S.priority,execute_at:S.execute_at?new Date(S.execute_at).toISOString().slice(0,16):"",recurrence:S.recurrence||""}),e(!0)},xa=async()=>{if(!W||La)return;ha(!0);try{let S={title:V.title.trim(),description:V.description.trim()||void 0,type:V.type,priority:V.priority};if(V.type==="once"&&V.execute_at)S.execute_at=new Date(V.execute_at).toISOString();if(V.type==="recurring"&&V.recurrence.trim())S.recurrence=V.recurrence.trim();if((await Z(`/api/tasks/${c.id}/${W.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(S)})).ok)e(!1),A(null),d()}catch(S){console.error("Failed to update task:",S)}finally{ha(!1)}};aa.useEffect(()=>{y(!0),d()},[c.id,c.status,N,O.length]);let So={pending:"bg-yellow-500/20 text-yellow-400",running:"bg-blue-500/20 text-blue-400",completed:"bg-green-500/20 text-green-400",failed:"bg-red-500/20 text-red-400",cancelled:"bg-gray-500/20 text-gray-400"};if(c.status!=="running")return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Start the agent to view tasks"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!c.features?.tasks)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("div",{className:"text-center",children:[w.jsxDEV("p",{className:"mb-2",children:"Tasks feature is not enabled"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-sm",children:"Enable it in Settings to schedule tasks"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(h)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Loading tasks..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(H)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:w.jsxDEV("p",{children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this);let $p=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"}];if(W)return w.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden",children:[ra,w.jsxDEV("div",{className:"px-4 pt-3 pb-2 border-b border-[var(--color-border)] shrink-0 flex items-center justify-between",children:[w.jsxDEV("button",{onClick:()=>{A(null),e(!1)},className:"text-sm text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition flex items-center gap-1",children:[w.jsxDEV("span",{children:"←"},void 0,!1,void 0,this)," ",oa?"Cancel":"Back to tasks"]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex items-center gap-2",children:oa?w.jsxDEV(w.Fragment,{children:[w.jsxDEV("button",{onClick:()=>e(!1),className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] text-sm transition",children:"Cancel"},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:xa,disabled:La||!V.title.trim(),className:"px-3 py-1 rounded text-sm bg-[var(--color-accent)] text-black hover:opacity-90 transition disabled:opacity-50",children:La?"Saving...":"Save"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):w.jsxDEV(w.Fragment,{children:[(W.status==="pending"||W.status==="completed"||W.status==="failed")&&w.jsxDEV("button",{onClick:()=>Pa(W),title:"Edit task",className:"text-[var(--color-text-muted)] hover:text-[var(--color-accent)] transition",children:w.jsxDEV("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),(W.status==="pending"||W.status==="completed")&&w.jsxDEV("button",{onClick:C,disabled:s,title:"Execute now",className:"text-[var(--color-accent)] hover:opacity-80 transition disabled:opacity-50",children:w.jsxDEV("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[w.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"},void 0,!1,void 0,this),w.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:T,disabled:ma,title:"Delete task",className:"text-red-400 hover:text-red-300 transition disabled:opacity-50",children:w.jsxDEV("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex-1 overflow-auto p-4 space-y-4",children:(()=>{return w.jsxDEV(w.Fragment,{children:[w.jsxDEV("div",{children:w.jsxDEV("div",{className:"flex items-start justify-between gap-2 mb-1",children:[oa?w.jsxDEV("input",{type:"text",value:V.title,onChange:(_a)=>Ca({...V,title:_a.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)] text-lg font-medium",placeholder:"Task title"},void 0,!1,void 0,this):w.jsxDEV("h3",{className:"text-lg font-medium",children:W.title},void 0,!1,void 0,this),!oa&&w.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium flex-shrink-0 ${So[W.status]}`,children:W.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),oa?w.jsxDEV("div",{children:[w.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1",children:"Description"},void 0,!1,void 0,this),w.jsxDEV("textarea",{value:V.description,onChange:(_a)=>Ca({...V,description:_a.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)] resize-none",rows:3,placeholder:"Task description..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):W.description?w.jsxDEV("div",{children:[w.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1",children:"Description"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-sm text-[var(--color-text-secondary)] whitespace-pre-wrap",children:W.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,oa?w.jsxDEV("div",{className:"grid grid-cols-2 gap-3",children:[w.jsxDEV("div",{children:[w.jsxDEV("label",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1 block",children:"Type"},void 0,!1,void 0,this),w.jsxDEV("select",{value:V.type,onChange:(_a)=>Ca({...V,type:_a.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]",children:[w.jsxDEV("option",{value:"once",children:"One-time"},void 0,!1,void 0,this),w.jsxDEV("option",{value:"recurring",children:"Recurring"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{children:[w.jsxDEV("label",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1 block",children:"Priority"},void 0,!1,void 0,this),w.jsxDEV("input",{type:"number",min:1,max:10,value:V.priority,onChange:(_a)=>Ca({...V,priority:Number(_a.target.value)}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):w.jsxDEV("div",{className:"grid grid-cols-2 gap-3 text-sm",children:[w.jsxDEV("div",{children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Type"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"capitalize",children:W.type},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Priority"},void 0,!1,void 0,this),w.jsxDEV("p",{children:W.priority},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.recurrence&&w.jsxDEV("div",{children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Recurrence"},void 0,!1,void 0,this),w.jsxDEV("p",{children:R7(W.recurrence)},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-0.5 font-mono",children:W.recurrence},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),oa&&V.type==="once"&&w.jsxDEV("div",{children:[w.jsxDEV("label",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1 block",children:"Schedule"},void 0,!1,void 0,this),w.jsxDEV("input",{type:"datetime-local",value:V.execute_at,onChange:(_a)=>Ca({...V,execute_at:_a.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),oa&&V.type==="recurring"&&w.jsxDEV("div",{children:[w.jsxDEV("label",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1 block",children:"Cron Schedule"},void 0,!1,void 0,this),w.jsxDEV("input",{type:"text",value:V.recurrence,onChange:(_a)=>Ca({...V,recurrence:_a.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)] font-mono",placeholder:"*/30 * * * *"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-1",children:"e.g. */30 * * * * = every 30 min"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!oa&&w.jsxDEV("div",{className:"space-y-2 text-sm",children:[w.jsxDEV("div",{className:"flex justify-between",children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Created"},void 0,!1,void 0,this),w.jsxDEV("span",{children:new Date(W.created_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.execute_at&&w.jsxDEV("div",{className:"flex justify-between",children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Scheduled"},void 0,!1,void 0,this),w.jsxDEV("span",{className:"text-[var(--color-accent)]",children:E5(W.execute_at)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.executed_at&&w.jsxDEV("div",{className:"flex justify-between",children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Started"},void 0,!1,void 0,this),w.jsxDEV("span",{children:new Date(W.executed_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.completed_at&&w.jsxDEV("div",{className:"flex justify-between",children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Completed"},void 0,!1,void 0,this),w.jsxDEV("span",{children:new Date(W.completed_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W.next_run&&w.jsxDEV("div",{className:"flex justify-between",children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Next Run"},void 0,!1,void 0,this),w.jsxDEV("span",{className:"text-[var(--color-accent)]",children:E5(W.next_run)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!oa&&W.status==="failed"&&W.error&&w.jsxDEV("div",{className:"min-w-0",children:[w.jsxDEV("h4",{className:"text-xs text-red-400 uppercase tracking-wider mb-1",children:"Error"},void 0,!1,void 0,this),w.jsxDEV("div",{className:"bg-red-500/10 border border-red-500/20 rounded p-3 overflow-x-auto",children:w.jsxDEV("pre",{className:"text-sm text-red-400 whitespace-pre-wrap break-words",children:W.error},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!oa&&W.status==="completed"&&W.result&&w.jsxDEV("div",{className:"min-w-0",children:[w.jsxDEV("h4",{className:"text-xs text-green-400 uppercase tracking-wider mb-1",children:"Result"},void 0,!1,void 0,this),w.jsxDEV("div",{className:"bg-green-500/10 border border-green-500/20 rounded p-3 overflow-x-auto",children:w.jsxDEV("pre",{className:"text-sm text-green-400 whitespace-pre-wrap break-words",children:typeof W.result==="string"?W.result:JSON.stringify(W.result,null,2)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!oa&&k&&!W.trajectory&&w.jsxDEV("div",{children:[w.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-2",children:"Trajectory"},void 0,!1,void 0,this),w.jsxDEV("div",{className:"text-sm text-[var(--color-text-faint)]",children:"Loading trajectory..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!oa&&W.trajectory&&W.trajectory.length>0&&w.jsxDEV("div",{children:[w.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-2",children:["Trajectory (",W.trajectory.length," steps)"]},void 0,!0,void 0,this),w.jsxDEV(E9,{trajectory:W.trajectory},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)})()},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return w.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:[w.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[w.jsxDEV("div",{className:"flex gap-2",children:$p.map((S)=>w.jsxDEV("button",{onClick:()=>I(S.value),className:`px-3 py-1.5 rounded text-sm transition ${N===S.value?"bg-[var(--color-accent)] text-black":"bg-[var(--color-surface-raised)] hover:bg-[var(--color-surface-raised)]"}`,children:S.label},S.value,!1,void 0,this))},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:()=>P(!M),className:"px-3 py-1.5 rounded text-sm bg-[var(--color-accent)] text-black hover:opacity-90 transition flex items-center gap-1 flex-shrink-0",children:[w.jsxDEV("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"New"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),M&&w.jsxDEV(iX,{onSubmit:va,onCancel:()=>P(!1)},void 0,!1,void 0,this),_.length===0?w.jsxDEV("div",{className:"text-center py-10",children:[w.jsxDEV(Nm,{className:"w-10 h-10 mx-auto mb-3 text-[var(--color-border-light)]"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-[var(--color-text-muted)]",children:["No ",N==="all"?"":N+" ","tasks"]},void 0,!0,void 0,this),w.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"Tasks will appear here when created"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):w.jsxDEV("div",{className:"space-y-3",children:_.map((S)=>w.jsxDEV("div",{onClick:()=>fa(S),className:"bg-[var(--color-surface)] card p-4 cursor-pointer hover:border-[var(--color-border-light)] transition",children:[w.jsxDEV("div",{className:"flex items-start justify-between mb-2",children:[w.jsxDEV("div",{className:"flex-1 min-w-0",children:w.jsxDEV("h3",{className:"font-medium",children:S.title||S.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ml-2 ${So[S.status]||So.pending}`,children:S.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S.description&&w.jsxDEV("p",{className:"text-sm text-[var(--color-text-secondary)] mb-2 line-clamp-2",children:S.description},void 0,!1,void 0,this),w.jsxDEV("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-[var(--color-text-faint)]",children:[w.jsxDEV("span",{className:"flex items-center gap-1",children:[S.type==="recurring"?w.jsxDEV(V9,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this):S.execute_at?w.jsxDEV(D9,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this):w.jsxDEV(j9,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this),S.type==="recurring"&&S.recurrence?R7(S.recurrence):S.type||"once"]},void 0,!0,void 0,this),S.priority!==void 0&&w.jsxDEV("span",{children:["Priority: ",S.priority]},void 0,!0,void 0,this),S.next_run&&w.jsxDEV("span",{className:"text-[var(--color-accent)]",children:E5(S.next_run)},void 0,!1,void 0,this),!S.next_run&&S.execute_at&&w.jsxDEV("span",{className:"text-[var(--color-accent)]",children:E5(S.execute_at)},void 0,!1,void 0,this),w.jsxDEV("span",{children:["Created: ",new Date(S.created_at).toLocaleDateString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),S.status==="completed"&&S.result&&w.jsxDEV("div",{className:"mt-3 bg-green-500/10 border border-green-500/20 rounded p-3",children:[w.jsxDEV("h4",{className:"text-xs text-green-400 uppercase tracking-wider mb-1",children:"Result"},void 0,!1,void 0,this),w.jsxDEV("pre",{className:"text-sm text-green-400 whitespace-pre-wrap break-words",children:typeof S.result==="string"?S.result:JSON.stringify(S.result,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S.status==="failed"&&S.error&&w.jsxDEV("div",{className:"mt-3 bg-red-500/10 border border-red-500/20 rounded p-3",children:[w.jsxDEV("h4",{className:"text-xs text-red-400 uppercase tracking-wider mb-1",children:"Error"},void 0,!1,void 0,this),w.jsxDEV("pre",{className:"text-sm text-red-400 whitespace-pre-wrap break-words",children:S.error},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},S.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function iX({onSubmit:c,onCancel:Z}){let[_,U]=aa.useState(""),[h,y]=aa.useState(""),[H,G]=aa.useState("once"),[N,I]=aa.useState(5),[W,A]=aa.useState(""),[k,x]=aa.useState("");return w.jsxDEV("div",{className:"bg-[var(--color-surface)] border border-[var(--color-accent)]/30 rounded-lg p-3 mb-4 space-y-3",children:[w.jsxDEV("input",{type:"text",value:_,onChange:(M)=>U(M.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm",placeholder:"Task title...",autoFocus:!0},void 0,!1,void 0,this),w.jsxDEV("textarea",{value:h,onChange:(M)=>y(M.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm resize-none",rows:2,placeholder:"Description (optional)..."},void 0,!1,void 0,this),w.jsxDEV("div",{className:"grid grid-cols-2 gap-2",children:[w.jsxDEV("select",{value:H,onChange:(M)=>G(M.target.value),className:"bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-2 py-1.5 text-sm",children:[w.jsxDEV("option",{value:"once",children:"One-time"},void 0,!1,void 0,this),w.jsxDEV("option",{value:"recurring",children:"Recurring"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("input",{type:"number",min:1,max:10,value:N,onChange:(M)=>I(Number(M.target.value)),className:"bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-2 py-1.5 text-sm",placeholder:"Priority"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H==="once"&&w.jsxDEV("input",{type:"datetime-local",value:W,onChange:(M)=>A(M.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm"},void 0,!1,void 0,this),H==="recurring"&&w.jsxDEV("input",{type:"text",value:k,onChange:(M)=>x(M.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm font-mono",placeholder:"*/30 * * * * (cron)"},void 0,!1,void 0,this),w.jsxDEV("div",{className:"flex justify-end gap-2",children:[w.jsxDEV("button",{onClick:Z,className:"px-3 py-1.5 rounded text-sm bg-[var(--color-surface-raised)] hover:bg-[var(--color-border)] transition",children:"Cancel"},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:()=>_.trim()&&c({title:_.trim(),description:h.trim(),type:H,priority:N,execute_at:W||void 0,recurrence:k||void 0}),disabled:!_.trim(),className:"px-3 py-1.5 rounded text-sm bg-[var(--color-accent)] text-black hover:opacity-90 transition disabled:opacity-50",children:"Create"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function wX({agent:c}){let[Z,_]=aa.useState([]),[U,h]=aa.useState(!0),[y,H]=aa.useState(null),[G,N]=aa.useState(!1),{confirm:I,ConfirmDialog:W}=s5();aa.useEffect(()=>{_([]),H(null),h(!0)},[c.id]);let A=async()=>{if(c.status!=="running"){h(!1);return}try{let M=await fetch(`/api/agents/${c.id}/memories`);if(!M.ok)throw Error("Failed to fetch memories");let P=await M.json();_(P.memories||[]),N(P.enabled??!1),H(null)}catch(M){H(M instanceof Error?M.message:"Failed to load memories")}finally{h(!1)}};aa.useEffect(()=>{A()},[c.id,c.status]);let k=async(M)=>{try{await fetch(`/api/agents/${c.id}/memories/${M}`,{method:"DELETE"}),_((P)=>P.filter((s)=>s.id!==M))}catch{}},x=async()=>{if(!await I("Clear all memories?",{confirmText:"Clear",title:"Clear Memories"}))return;try{await fetch(`/api/agents/${c.id}/memories`,{method:"DELETE"}),_([])}catch{}};if(!c.features?.memory)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("div",{className:"text-center",children:[w.jsxDEV("p",{className:"mb-2",children:"Memory feature is not enabled"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-sm",children:"Enable it in Settings to persist knowledge"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(c.status!=="running")return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Start the agent to view memories"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(U)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Loading memories..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(y)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:w.jsxDEV("p",{children:y},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!G)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("div",{className:"text-center",children:[w.jsxDEV("p",{className:"mb-2",children:"Memory system not initialized"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-sm",children:"Check OPENAI_API_KEY for embeddings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return w.jsxDEV(w.Fragment,{children:[W,w.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:[w.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[w.jsxDEV("h3",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:["Stored Memories (",Z.length,")"]},void 0,!0,void 0,this),Z.length>0&&w.jsxDEV("button",{onClick:x,className:"text-xs text-red-400 hover:text-red-300",children:"Clear All"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.length===0?w.jsxDEV("div",{className:"text-center py-10 text-[var(--color-text-muted)]",children:[w.jsxDEV("p",{children:"No memories stored yet"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-sm mt-1",children:"The agent will remember important information from conversations"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):w.jsxDEV("div",{className:"space-y-3",children:Z.map((M)=>w.jsxDEV("div",{className:"bg-[var(--color-surface)] border border-[var(--color-border)] rounded p-3",children:[w.jsxDEV("div",{className:"flex items-start justify-between gap-2",children:[w.jsxDEV("p",{className:"text-sm text-[var(--color-text)] flex-1",children:M.content},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:()=>k(M.id),className:"text-[var(--color-text-muted)] hover:text-red-400 text-sm flex-shrink-0",children:"×"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex items-center gap-3 mt-2",children:[w.jsxDEV("span",{className:`text-xs px-2 py-0.5 rounded ${M.type==="preference"?"bg-purple-500/20 text-purple-400":M.type==="fact"?"bg-green-500/20 text-green-400":"bg-blue-500/20 text-blue-400"}`,children:M.type},void 0,!1,void 0,this),w.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:new Date(M.created_at).toLocaleString()},void 0,!1,void 0,this),M.importance&&w.jsxDEV("span",{className:"text-xs text-[var(--color-text-faint)]",children:["importance: ",M.importance.toFixed(1)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},M.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function cX({agent:c}){let[Z,_]=aa.useState([]),[U,h]=aa.useState(!0),[y,H]=aa.useState(null),[G,N]=aa.useState(!1),[I,W]=aa.useState(null),[A,k]=aa.useState(!1),x=aa.default.useRef(null),{confirm:M,ConfirmDialog:P}=s5();aa.useEffect(()=>{_([]),H(null),h(!0)},[c.id]);let s=async()=>{if(c.status!=="running"){h(!1);return}try{let L=await fetch(`/api/agents/${c.id}/files`);if(!L.ok)throw Error("Failed to fetch files");let ra=await L.json();_(ra.files||[]),H(null)}catch(L){H(L instanceof Error?L.message:"Failed to load files")}finally{h(!1)}};aa.useEffect(()=>{s()},[c.id,c.status]);let qa=async(L)=>{if(!await M("Delete this file?",{confirmText:"Delete",title:"Delete File"}))return;try{await fetch(`/api/agents/${c.id}/files/${L}`,{method:"DELETE"}),_((O)=>O.filter((d)=>d.id!==L))}catch{}},ma=(L,ra)=>{let O=document.createElement("a");O.href=`/api/agents/${c.id}/files/${L}/download`,O.download=ra,O.click()},wa=(L)=>{if(L<1024)return`${L} B`;if(L<1048576)return`${(L/1024).toFixed(1)} KB`;return`${(L/1048576).toFixed(1)} MB`},oa=async(L)=>{N(!0),W(null);try{let ra=new FormData;ra.append("file",L);let O=await fetch(`/api/agents/${c.id}/files`,{method:"POST",body:ra});if(!O.ok){let d=await O.json();throw Error(d.error||"Upload failed")}await s()}catch(ra){W(ra instanceof Error?ra.message:"Upload failed")}finally{N(!1)}},e=(L)=>{let ra=L.target.files?.[0];if(ra)oa(ra);L.target.value=""},La=(L)=>{L.preventDefault(),k(!1);let ra=L.dataTransfer.files?.[0];if(ra)oa(ra)},ha=(L)=>{L.preventDefault(),k(!0)},V=(L)=>{L.preventDefault(),k(!1)},Ca=(L)=>{if(L.startsWith("image/"))return"\uD83D\uDDBC";if(L.includes("pdf"))return"\uD83D\uDCD5";if(L.includes("json"))return"{}";if(L.includes("javascript")||L.includes("typescript"))return"⚡";if(L.startsWith("text/"))return"\uD83D\uDCC4";if(L.startsWith("audio/"))return"\uD83C\uDFB5";if(L.startsWith("video/"))return"\uD83C\uDFAC";return"\uD83D\uDCC1"};if(!c.features?.files)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("div",{className:"text-center",children:[w.jsxDEV("p",{className:"mb-2",children:"Files feature is not enabled"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-sm",children:"Enable it in Settings to manage files"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(c.status!=="running")return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Start the agent to view files"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(U)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Loading files..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(y)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:w.jsxDEV("p",{children:y},void 0,!1,void 0,this)},void 0,!1,void 0,this);return w.jsxDEV(w.Fragment,{children:[P,w.jsxDEV("div",{className:`flex-1 overflow-auto p-4 transition ${A?"bg-[var(--color-accent-5)]":""}`,onDrop:La,onDragOver:ha,onDragLeave:V,children:[w.jsxDEV("input",{ref:x,type:"file",className:"hidden",onChange:e},void 0,!1,void 0,this),w.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[w.jsxDEV("h3",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:["Agent Files (",Z.length,")"]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex items-center gap-2",children:[w.jsxDEV("button",{onClick:()=>x.current?.click(),disabled:G,className:"text-xs bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 text-black px-3 py-1 rounded font-medium transition",children:G?"Uploading...":"Upload"},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:s,className:"text-xs text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)]",children:"Refresh"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),I&&w.jsxDEV("div",{className:"mb-4 text-sm bg-red-500/10 text-red-400 px-3 py-2 rounded",children:I},void 0,!1,void 0,this),A&&w.jsxDEV("div",{className:"mb-4 border-2 border-dashed border-[var(--color-accent)] rounded-lg p-8 text-center",children:w.jsxDEV("p",{className:"text-[var(--color-accent)]",children:"Drop file to upload"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z.length===0&&!A&&w.jsxDEV("div",{className:"text-center py-10 text-[var(--color-text-muted)]",children:[w.jsxDEV("p",{children:"No files stored yet"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-sm mt-1",children:"Drop files here, click Upload, or attach files in Chat"},void 0,!1,void 0,this),c.features?.memory&&w.jsxDEV("p",{className:"text-xs mt-2 text-[var(--color-text-faint)]",children:"Files will be auto-ingested into memory"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.length>0&&w.jsxDEV("div",{className:"space-y-2",children:Z.map((L)=>w.jsxDEV("div",{className:"bg-[var(--color-surface)] border border-[var(--color-border)] rounded p-3 flex items-center gap-3",children:[w.jsxDEV("div",{className:"w-10 h-10 bg-[var(--color-surface-raised)] rounded flex items-center justify-center text-[var(--color-text-muted)]",children:Ca(L.mime_type)},void 0,!1,void 0,this),w.jsxDEV("div",{className:"flex-1 min-w-0",children:[w.jsxDEV("p",{className:"text-sm text-[var(--color-text)] truncate",children:L.filename},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)]",children:[wa(L.size_bytes)," • ",new Date(L.created_at).toLocaleString(),L.source&&L.source!=="upload"&&` • ${L.source}`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex items-center gap-2",children:[w.jsxDEV("button",{onClick:()=>ma(L.id,L.filename),className:"text-xs text-[var(--color-text-muted)] hover:text-[var(--color-accent)] px-2 py-1",children:"↓"},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:()=>qa(L.id),className:"text-[var(--color-text-muted)] hover:text-red-400 text-sm",children:"×"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},L.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function lX({agent:c,providers:Z,onUpdateAgent:_,onDeleteAgent:U}){let{authFetch:h,isDev:y}=$o(),[H,G]=aa.useState({name:c.name,provider:c.provider,model:c.model,systemPrompt:c.systemPrompt,features:{...c.features,builtinTools:c.features.builtinTools||{webSearch:!1,webFetch:!1}},mcpServers:[...c.mcpServers||[]],skills:[...c.skills||[]]}),[N,I]=aa.useState(!1),[W,A]=aa.useState(!1),[k,x]=aa.useState(null),[M,P]=aa.useState([]),[s,qa]=aa.useState([]),[ma,wa]=aa.useState([]),[oa,e]=aa.useState(!1),[La,ha]=aa.useState(null),[V,Ca]=aa.useState(null),[L,ra]=aa.useState(!1),[O,d]=aa.useState([]),[fa,C]=aa.useState(null),[T,va]=aa.useState(!1);aa.useEffect(()=>{h(`/api/subscriptions?agent_id=${c.id}`).then((B)=>B.ok?B.json():{subscriptions:[]}).then((B)=>d(B.subscriptions||[])).catch(()=>{})},[c.id,h]),aa.useEffect(()=>{(async()=>{try{let ka=await(await h("/api/mcp/servers")).json();P(ka.servers||[])}catch(u){console.error("Failed to fetch MCP servers:",u)}})()},[h]),aa.useEffect(()=>{(async()=>{try{let u=await h(`/api/agents/${c.id}/api-key`);if(u.ok){let ka=await u.json();ha(ka.apiKey),Ca(ka.fullKey||null)}}catch(u){}})()},[c.id,h]),aa.useEffect(()=>{(async()=>{try{let u=await h(`/api/agents/${c.id}/share-token`);if(u.ok){let ka=await u.json();C(ka.token||null)}}catch{}})()},[c.id,h]),aa.useEffect(()=>{(async()=>{try{let ka=await(await h("/api/skills")).json();qa(ka.skills||[])}catch(u){console.error("Failed to fetch skills:",u)}})()},[h]),aa.useEffect(()=>{if(H.provider==="ollama")e(!0),h("/api/providers/ollama/models").then((B)=>B.json()).then((B)=>{if(B.models&&B.models.length>0)wa(B.models.map((u)=>({value:u.value,label:u.label||u.value})))}).catch(()=>wa([])).finally(()=>e(!1));else wa([])},[H.provider,h]),aa.useEffect(()=>{G({name:c.name,provider:c.provider,model:c.model,systemPrompt:c.systemPrompt,features:{...c.features,builtinTools:c.features.builtinTools||{webSearch:!1,webFetch:!1}},mcpServers:[...c.mcpServers||[]],skills:[...c.skills||[]]}),x(null)},[c.id]);let Pa=Z.find((B)=>B.id===H.provider),xa=Z.filter((B)=>B.hasKey&&B.type==="llm").map((B)=>({value:B.id,label:B.name})),So=H.provider==="ollama"&&ma.length>0?ma:Pa?.models.map((B)=>({value:B.value,label:B.label,recommended:B.recommended}))||[],$p=(B)=>{let u=Z.find((jo)=>jo.id===B),ka=u?.models.find((jo)=>jo.recommended)?.value||u?.models[0]?.value||"";G((jo)=>({...jo,provider:B,model:ka}))},S=(B)=>{if(B==="agents")G((u)=>{if(typeof u.features.agents==="boolean"?u.features.agents:u.features.agents?.enabled??!1)return{...u,features:{...u.features,agents:!1}};else return{...u,features:{...u.features,agents:{enabled:!0,group:c.projectId||void 0}}}});else if(B==="operator")G((u)=>{if(S5(u.features).enabled)return{...u,features:{...u.features,operator:!1}};else return{...u,features:{...u.features,operator:{enabled:!0}}}});else G((u)=>({...u,features:{...u.features,[B]:!u.features[B]}}))},_a=()=>{let B=H.features.agents;if(typeof B==="boolean")return B;return B?.enabled??!1},sa=()=>{return S5(H.features).enabled},pr=()=>{return S5(H.features)},jr=Z.filter((B)=>B.type==="browser"&&B.hasKey),Er=(B)=>{G((u)=>{let ka=S5(u.features);return{...u,features:{...u.features,operator:{...ka,enabled:!0,browser_provider:B}}}})},mr=(B)=>{G((u)=>({...u,mcpServers:u.mcpServers.includes(B)?u.mcpServers.filter((ka)=>ka!==B):[...u.mcpServers,B]}))},vm=(B)=>{G((u)=>({...u,skills:u.skills.includes(B)?u.skills.filter((ka)=>ka!==B):[...u.skills,B]}))},sr=async()=>{I(!0),x(null);let B=await _(H);if(I(!1),B.error)x({type:"error",text:B.error});else x({type:"success",text:"Settings saved"}),setTimeout(()=>x(null),2000)},F=H.name!==c.name||H.provider!==c.provider||H.model!==c.model||H.systemPrompt!==c.systemPrompt||JSON.stringify(H.features)!==JSON.stringify(c.features)||JSON.stringify(H.mcpServers.sort())!==JSON.stringify((c.mcpServers||[]).sort())||JSON.stringify(H.skills.sort())!==JSON.stringify((c.skills||[]).sort());return w.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:w.jsxDEV("div",{className:"space-y-4",children:[w.jsxDEV(lt,{label:"Name",children:w.jsxDEV("input",{type:"text",value:H.name,onChange:(B)=>G((u)=>({...u,name:B.target.value})),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.jsxDEV(lt,{label:"Provider",children:w.jsxDEV(ct,{value:H.provider,options:xa,onChange:$p},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.jsxDEV(lt,{label:"Model",children:oa?w.jsxDEV("div",{className:"text-sm text-[var(--color-text-muted)] py-2",children:"Loading Ollama models..."},void 0,!1,void 0,this):H.provider==="ollama"&&So.length===0?w.jsxDEV("div",{className:"text-sm text-yellow-400/80 py-2",children:["No models found. Run ",w.jsxDEV("code",{className:"bg-[var(--color-surface-raised)] px-1 rounded",children:"ollama pull llama3.3"},void 0,!1,void 0,this)," to download a model."]},void 0,!0,void 0,this):w.jsxDEV(ct,{value:H.model,options:So,onChange:(B)=>G((u)=>({...u,model:B}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.jsxDEV(lt,{label:"System Prompt",children:w.jsxDEV("textarea",{value:H.systemPrompt,onChange:(B)=>G((u)=>({...u,systemPrompt:B.target.value})),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 h-24 resize-none focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.jsxDEV(lt,{label:"Features",children:w.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:rX.map(({key:B,label:u,description:ka,icon:jo})=>{let Ta=B==="agents"?_a():B==="operator"?sa():!!H.features[B];return w.jsxDEV("button",{type:"button",onClick:()=>S(B),className:`flex items-center gap-3 p-3 rounded border text-left transition ${Ta?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[w.jsxDEV(jo,{className:`w-5 h-5 flex-shrink-0 ${Ta?"text-[var(--color-accent)]":"text-[var(--color-text-muted)]"}`},void 0,!1,void 0,this),w.jsxDEV("div",{className:"flex-1 min-w-0",children:[w.jsxDEV("div",{className:`text-sm font-medium ${Ta?"text-[var(--color-accent)]":""}`,children:u},void 0,!1,void 0,this),w.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:ka},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},B,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),sa()&&w.jsxDEV(lt,{label:"Browser Provider",children:jr.length>0?w.jsxDEV(ct,{value:pr().browser_provider||"",options:[{value:"",label:"Auto (first available)"},...jr.map((B)=>({value:B.id,label:B.name}))],onChange:(B)=>Er(B)},void 0,!1,void 0,this):w.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] p-3 border border-[var(--color-border-light)] rounded bg-[var(--color-bg)]",children:"No browser providers configured. Go to Settings → Providers to add one."},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.provider==="anthropic"&&w.jsxDEV(lt,{label:"Agent Built-in Tools",children:[w.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[w.jsxDEV("button",{type:"button",onClick:()=>G((B)=>({...B,features:{...B.features,builtinTools:{...B.features.builtinTools,webSearch:!B.features.builtinTools?.webSearch}}})),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${H.features.builtinTools?.webSearch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[w.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.jsxDEV("span",{className:"text-sm",children:"Web Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("button",{type:"button",onClick:()=>G((B)=>({...B,features:{...B.features,builtinTools:{...B.features.builtinTools,webFetch:!B.features.builtinTools?.webFetch}}})),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${H.features.builtinTools?.webFetch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[w.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.jsxDEV("span",{className:"text-sm",children:"Web Fetch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-2",children:"Provider-native tools for real-time web access"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.features.mcp&&w.jsxDEV(lt,{label:"MCP Servers",children:M.length===0?w.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:"No MCP servers configured. Add servers in the MCP page first."},void 0,!1,void 0,this):w.jsxDEV("div",{className:"space-y-2",children:[M.filter((B)=>B.project_id===null||B.project_id===c.projectId).map((B)=>{let u=B.type==="http"&&B.url,ka=u||B.status==="running",jo=u?`${B.source||"remote"} • http`:`${B.type} • ${B.package||B.command||"custom"}${B.status==="running"&&B.port?` • :${B.port}`:""}`;return w.jsxDEV("button",{type:"button",onClick:()=>mr(B.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${H.mcpServers.includes(B.id)?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[w.jsxDEV("div",{className:`w-2 h-2 rounded-full flex-shrink-0 ${ka?"bg-green-400":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),w.jsxDEV("div",{className:"flex-1 min-w-0",children:[w.jsxDEV("div",{className:"flex items-center gap-2",children:[w.jsxDEV("span",{className:`text-sm font-medium ${H.mcpServers.includes(B.id)?"text-[var(--color-accent)]":""}`,children:B.name},void 0,!1,void 0,this),B.project_id===null&&w.jsxDEV("span",{className:"text-[10px] text-[var(--color-text-muted)] bg-[var(--color-surface-raised)] px-1.5 py-0.5 rounded",children:"Global"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:jo},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:`text-xs px-2 py-0.5 rounded ${ka?"bg-green-500/20 text-green-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,children:u?"remote":B.status},void 0,!1,void 0,this)]},B.id,!0,void 0,this)}),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-2",children:"Remote servers are always available. Local servers must be running."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),w.jsxDEV(lt,{label:"Skills",children:s.length===0?w.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:"No skills configured. Add skills in the Skills page first."},void 0,!1,void 0,this):w.jsxDEV("div",{className:"space-y-2",children:[s.filter((B)=>B.enabled&&(B.project_id===null||B.project_id===c.projectId)).map((B)=>w.jsxDEV("button",{type:"button",onClick:()=>vm(B.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${H.skills.includes(B.id)?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[w.jsxDEV("div",{className:"flex-1 min-w-0",children:[w.jsxDEV("div",{className:"flex items-center gap-2",children:[w.jsxDEV("span",{className:`text-sm font-medium ${H.skills.includes(B.id)?"text-[var(--color-accent)]":""}`,children:B.name},void 0,!1,void 0,this),B.project_id===null&&w.jsxDEV("span",{className:"text-[10px] text-[var(--color-text-muted)] bg-[var(--color-surface-raised)] px-1.5 py-0.5 rounded",children:"Global"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:B.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"text-xs px-2 py-0.5 rounded bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]",children:["v",B.version]},void 0,!0,void 0,this)]},B.id,!0,void 0,this)),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-2",children:"Skills provide reusable instructions for the agent."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),k&&w.jsxDEV("div",{className:`text-sm px-3 py-2 rounded ${k.type==="success"?"bg-green-500/10 text-green-400":"bg-red-500/10 text-red-400"}`,children:k.text},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:sr,disabled:!F||N||!H.name,className:"w-full bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:N?"Saving...":"Save Changes"},void 0,!1,void 0,this),c.status==="running"&&F&&w.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] text-center",children:"Changes will be applied to the running agent"},void 0,!1,void 0,this),w.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[w.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Subscriptions"},void 0,!1,void 0,this),O.length===0?w.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)]",children:"No subscriptions. Set up triggers in Connections to have this agent listen to external events."},void 0,!1,void 0,this):w.jsxDEV("div",{className:"space-y-2",children:O.map((B)=>w.jsxDEV("div",{className:"flex items-center gap-2 px-3 py-2 bg-[var(--color-surface)] rounded border border-[var(--color-border)]",children:[w.jsxDEV("span",{className:`w-2 h-2 rounded-full shrink-0 ${B.enabled?"bg-cyan-400":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),w.jsxDEV("span",{className:`text-sm flex-1 ${B.enabled?"text-cyan-400":"text-[var(--color-text-muted)]"}`,children:B.trigger_slug.replace(/_/g," ")},void 0,!1,void 0,this),w.jsxDEV("span",{className:`text-[10px] px-1.5 py-0.5 rounded ${B.enabled?"bg-cyan-500/10 text-cyan-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-faint)]"}`,children:B.enabled?"active":"disabled"},void 0,!1,void 0,this)]},B.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),La&&w.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[w.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Developer Info"},void 0,!1,void 0,this),w.jsxDEV("div",{className:"space-y-2",children:[w.jsxDEV("div",{className:"flex items-center justify-between",children:[w.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"Agent ID"},void 0,!1,void 0,this),w.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1 rounded text-[var(--color-text-secondary)]",children:c.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex items-center justify-between",children:[w.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"Port"},void 0,!1,void 0,this),w.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1 rounded text-[var(--color-text-secondary)]",children:c.port||"N/A"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex flex-col gap-1",children:[w.jsxDEV("div",{className:"flex items-center justify-between",children:[w.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"API Key"},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:()=>ra(!L),className:"text-xs text-[var(--color-accent)] hover:text-[var(--color-accent-hover)]",children:L?"Hide":"Show"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1 rounded text-[var(--color-text-secondary)] break-all",children:L?V||La:La},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.status==="running"&&c.port&&w.jsxDEV("div",{className:"flex flex-col gap-1 mt-2",children:[w.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"Test with curl"},void 0,!1,void 0,this),w.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1.5 rounded text-[var(--color-text-muted)] break-all",children:['curl -H "X-API-Key: ',L?V||La:"***",'" http://localhost:',c.port,"/config"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),fa&&w.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[w.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Share Link"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mb-3",children:"Anyone with this link can chat with this agent. No login required. Regenerate the API key to invalidate."},void 0,!1,void 0,this),w.jsxDEV("div",{className:"flex gap-2",children:[w.jsxDEV("code",{className:"flex-1 text-xs bg-[var(--color-surface-raised)] px-3 py-2 rounded text-[var(--color-text-secondary)] break-all border border-[var(--color-border-light)]",children:`${window.location.origin}/share/${fa}`},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:()=>{navigator.clipboard.writeText(`${window.location.origin}/share/${fa}`),va(!0),setTimeout(()=>va(!1),2000)},className:"px-3 py-2 text-xs bg-[var(--color-surface-raised)] hover:bg-[var(--color-surface-raised)] border border-[var(--color-border-light)] rounded text-[var(--color-text-secondary)] hover:text-[var(--color-text)] transition flex-shrink-0",children:T?"Copied!":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"mt-3",children:[w.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mb-1",children:"Embed"},void 0,!1,void 0,this),w.jsxDEV("code",{className:"block text-xs bg-[var(--color-surface-raised)] px-3 py-2 rounded text-[var(--color-text-muted)] break-all border border-[var(--color-border-light)]",children:`<iframe src="${window.location.origin}/share/${fa}" width="400" height="600" style="border:none; border-radius:12px;" />`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[w.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Danger Zone"},void 0,!1,void 0,this),W?w.jsxDEV("div",{className:"flex gap-2",children:[w.jsxDEV("button",{onClick:()=>A(!1),className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-scrollbar)] px-4 py-2 rounded font-medium transition",children:"Cancel"},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:U,className:"flex-1 bg-red-500/20 text-red-400 hover:bg-red-500/30 px-4 py-2 rounded font-medium transition",children:"Confirm Delete"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):w.jsxDEV("button",{onClick:()=>A(!0),className:"w-full border border-red-500/30 text-red-400/70 hover:border-red-500/50 hover:text-red-400 px-4 py-2 rounded font-medium transition",children:"Delete Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function lt({label:c,children:Z}){return w.jsxDEV("div",{children:[w.jsxDEV("label",{className:"block text-sm text-[var(--color-text-muted)] mb-1",children:c},void 0,!1,void 0,this),Z]},void 0,!0,void 0,this)}var s9=Ga(Do(),1);var po=Ga(vo(),1);function d1({agents:c,loading:Z,selectedAgent:_,providers:U,onSelectAgent:h,onCloseAgent:y,onToggleAgent:H,onDeleteAgent:G,onUpdateAgent:N,onNewAgent:I,canCreateAgent:W=!0}){let{currentProjectId:A,currentProject:k}=vp(),x=s9.useMemo(()=>{if(A===null)return c;if(A==="unassigned")return c.filter((P)=>!P.projectId);return c.filter((P)=>P.projectId===A)},[c,A]),M=A===null?"Agents":A==="unassigned"?"Unassigned Agents":k?.name||"Agents";return po.jsxDEV("div",{className:"flex-1 flex overflow-hidden relative",children:[po.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[po.jsxDEV("div",{className:"flex items-center justify-between mb-6",children:[po.jsxDEV("div",{className:"flex items-center gap-3",children:[k&&po.jsxDEV("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:k.color}},void 0,!1,void 0,this),po.jsxDEV("h1",{className:"text-xl font-semibold",children:M},void 0,!1,void 0,this),A!==null&&po.jsxDEV("span",{className:"text-sm text-[var(--color-text-muted)]",children:["(",x.length," agent",x.length!==1?"s":"",")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),I&&po.jsxDEV("button",{onClick:I,disabled:!W,className:"bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:"+ New Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z?po.jsxDEV(Dr,{message:"Loading agents..."},void 0,!1,void 0,this):x.length===0?po.jsxDEV(zX,{onNewAgent:I,canCreateAgent:W,hasProjectFilter:A!==null},void 0,!1,void 0,this):po.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3 auto-rows-fr",children:x.map((P)=>po.jsxDEV(K1,{agent:P,selected:_?.id===P.id,onSelect:()=>h(P),onToggle:(s)=>H(P,s),showProject:A===null},P.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_&&po.jsxDEV("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-[2px] z-10",onClick:y},void 0,!1,void 0,this),_&&po.jsxDEV("div",{className:"absolute right-0 top-0 bottom-0 w-full sm:w-[500px] lg:w-[600px] xl:w-[700px] z-20",children:po.jsxDEV(U1,{agent:_,providers:U,onClose:y,onStartAgent:(P)=>H(_,P),onUpdateAgent:(P)=>N(_.id,P),onDeleteAgent:()=>G(_.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function zX({onNewAgent:c,canCreateAgent:Z,hasProjectFilter:_}){return po.jsxDEV("div",{className:"text-center py-20 text-[var(--color-text-muted)]",children:[_?po.jsxDEV(po.Fragment,{children:[po.jsxDEV("p",{className:"text-lg",children:"No agents in this project"},void 0,!1,void 0,this),po.jsxDEV("p",{className:"text-sm mt-1",children:"Create an agent or assign existing agents to this project"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):po.jsxDEV(po.Fragment,{children:[po.jsxDEV("p",{className:"text-lg",children:"No agents yet"},void 0,!1,void 0,this),po.jsxDEV("p",{className:"text-sm mt-1",children:"Create your first agent to get started"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c&&po.jsxDEV("button",{onClick:c,disabled:!Z,className:"mt-4 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:"+ New Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var wo=Ga(Do(),1);var D=Ga(vo(),1);function y1({agents:c,loading:Z,runningCount:_,configuredProviders:U,onNavigate:h,onSelectAgent:y}){let{authFetch:H}=$o(),{currentProjectId:G}=vp(),{events:N,statusChangeCounter:I}=u5(),{events:W}=W1({category:"TASK"}),A=wo.useRef(null),[k,x]=wo.useState(null),[M,P]=wo.useState([]),[s,qa]=wo.useState([]),[ma,wa]=wo.useState(null),oa=wo.useMemo(()=>{if(!G)return c;if(G==="unassigned")return c.filter((O)=>!O.projectId);return c.filter((O)=>O.projectId===G)},[c,G]),e=wo.useMemo(()=>{return oa.filter((O)=>O.status==="running").length},[oa]),La=wo.useMemo(()=>{return new Set(oa.map((O)=>O.id))},[oa]),ha=wo.useCallback(async()=>{try{let O=G?`project_id=${encodeURIComponent(G)}`:"",[d,fa,C]=await Promise.all([H(`/api/dashboard${O?`?${O}`:""}`),H(`/api/tasks?status=all${O?`&${O}`:""}`),H(`/api/telemetry/events?type=thread_activity&limit=20${O?`&${O}`:""}`)]);if(d.ok){let T=await d.json();x(T)}if(fa.ok){let T=await fa.json();P(T.tasks||[])}if(C.ok){let T=await C.json();qa(T.events||[])}}catch(O){console.error("Failed to fetch dashboard data:",O)}},[H,G]);wo.useEffect(()=>{ha()},[ha,I]),wo.useEffect(()=>{if(!W.length)return;let O=W[0];if(!O||O.id===A.current)return;if(O.type==="task_created"||O.type==="task_updated"||O.type==="task_deleted")A.current=O.id,ha()},[W,ha]);let V=wo.useMemo(()=>{let O=G?M.filter((d)=>La.has(d.agentId)):M;return GX(O)},[M,G,La]),Ca=wo.useMemo(()=>{if(!G)return k?.tasks||{total:0,pending:0,running:0,completed:0};let O=V.length,d=V.filter((T)=>T.status==="pending").length,fa=V.filter((T)=>T.status==="running").length,C=V.filter((T)=>T.status==="completed").length;return{total:O,pending:d,running:fa,completed:C}},[k,G,V]),L=wo.useMemo(()=>{let O=N.filter((T)=>T.type==="thread_activity"&&!T.data?.parent_id),d=new Set(O.map((T)=>T.id)),fa=[...O];for(let T of s)if(!d.has(T.id)&&!T.data?.parent_id)fa.push(T),d.add(T.id);let C=fa;if(G)C=fa.filter((T)=>La.has(T.agent_id));return C.sort((T,va)=>new Date(va.timestamp).getTime()-new Date(T.timestamp).getTime()),C.slice(0,12)},[N,s,G,La]),ra=wo.useMemo(()=>{let O=new Map;for(let d of c)O.set(d.id,d.name);return O},[c]);return D.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[D.jsxDEV("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4 mb-6",children:[D.jsxDEV(R1,{label:"Agents",value:oa.length,subValue:`${e} running`},void 0,!1,void 0,this),D.jsxDEV(R1,{label:"Tasks",value:Ca.total,subValue:`${Ca.pending} pending`},void 0,!1,void 0,this),D.jsxDEV(R1,{label:"Completed",value:Ca.completed,color:"text-green-400"},void 0,!1,void 0,this),D.jsxDEV(R1,{label:"Providers",value:U.length,color:"text-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[D.jsxDEV(y7,{title:"Agents",actionLabel:"View All",onAction:()=>h("agents"),children:Z?D.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:"Loading..."},void 0,!1,void 0,this):oa.length===0?D.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:"No agents yet"},void 0,!1,void 0,this):D.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:oa.slice(0,5).map((O)=>D.jsxDEV($X,{agent:O,onSelect:()=>y(O),onMessage:O.status==="running"?()=>wa(O):void 0,showProject:!G},O.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),D.jsxDEV(y7,{title:"Activity",actionLabel:"Analytics",onAction:()=>h("analytics"),children:L.length===0?D.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:[D.jsxDEV("p",{children:"No activity yet"},void 0,!1,void 0,this),D.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"Agent activity will appear here in real-time"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):D.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:L.map((O)=>D.jsxDEV(YX,{activity:O.data?.activity||"Working...",agentName:ra.get(O.agent_id)||O.agent_id,timestamp:O.timestamp},O.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),D.jsxDEV(y7,{title:"Tasks",actionLabel:"View All",onAction:()=>h("tasks"),children:V.length===0?D.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:[D.jsxDEV("p",{children:"No tasks yet"},void 0,!1,void 0,this),D.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"Tasks will appear when agents create them"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):D.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:V.slice(0,5).map((O)=>D.jsxDEV("div",{className:"px-4 py-3 flex items-center justify-between",children:[D.jsxDEV("div",{className:"flex-1 min-w-0",children:[D.jsxDEV("p",{className:"font-medium truncate",children:O.title},void 0,!1,void 0,this),D.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[O.agentName,O.recurrence&&D.jsxDEV("span",{className:"ml-1 text-[var(--color-text-faint)]",children:["· ",_X(O.recurrence)]},void 0,!0,void 0,this),O.next_run&&D.jsxDEV("span",{className:"ml-1 text-[var(--color-accent)]",children:["· ",az(O.next_run)]},void 0,!0,void 0,this),!O.next_run&&O.execute_at&&D.jsxDEV("span",{className:"ml-1 text-[var(--color-accent)]",children:["· ",az(O.execute_at)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D.jsxDEV(XX,{status:O.status},void 0,!1,void 0,this)]},`${O.agentId}-${O.id}`,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ma&&D.jsxDEV(ZX,{agent:ma,onClose:()=>wa(null)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function R1({label:c,value:Z,subValue:_,color:U}){return D.jsxDEV("div",{className:"bg-[var(--color-surface)] rounded p-4 border border-[var(--color-border)]",children:[D.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-1",children:c},void 0,!1,void 0,this),D.jsxDEV("p",{className:`text-2xl font-semibold ${U||""}`,children:Z},void 0,!1,void 0,this),_&&D.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-1",children:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function y7({title:c,actionLabel:Z,onAction:_,children:U}){return D.jsxDEV("div",{className:"bg-[var(--color-surface)] rounded border border-[var(--color-border)] overflow-hidden",children:[D.jsxDEV("div",{className:"px-4 py-3 border-b border-[var(--color-border)] flex items-center justify-between",children:[D.jsxDEV("h3",{className:"font-semibold",children:c},void 0,!1,void 0,this),D.jsxDEV("button",{onClick:_,className:"text-sm text-[#3b82f6] hover:text-[#60a5fa]",children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U]},void 0,!0,void 0,this)}function $X({agent:c,onSelect:Z,onMessage:_,showProject:U}){let{isActive:h,label:y}=B1(c.id),{projects:H}=vp(),G=c.projectId?H.find((N)=>N.id===c.projectId):null;return D.jsxDEV("div",{onClick:Z,className:"px-4 py-3 hover:bg-[var(--color-surface-raised)] cursor-pointer flex items-center justify-between group",children:[D.jsxDEV("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[D.jsxDEV("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${c.status==="running"?h?"bg-green-400 animate-pulse":"bg-[#3b82f6]":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),D.jsxDEV("div",{className:"flex-1 min-w-0",children:[D.jsxDEV("p",{className:"font-medium truncate",children:c.name},void 0,!1,void 0,this),D.jsxDEV("div",{className:"flex items-center gap-2 text-sm text-[var(--color-text-muted)]",children:[h&&y?D.jsxDEV("span",{className:"text-green-400 truncate",children:y},void 0,!1,void 0,this):D.jsxDEV("span",{children:[c.provider," · ",c.status==="running"?"idle":"stopped"]},void 0,!0,void 0,this),U&&G&&D.jsxDEV(D.Fragment,{children:[D.jsxDEV("span",{className:"text-[var(--color-text-faint)]",children:"·"},void 0,!1,void 0,this),D.jsxDEV("span",{className:"flex items-center gap-1",children:[D.jsxDEV("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:G.color}},void 0,!1,void 0,this),G.name]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_&&D.jsxDEV("button",{onClick:(N)=>{N.stopPropagation(),_()},className:"opacity-0 group-hover:opacity-100 transition px-2 py-1 text-xs text-[var(--color-accent)] hover:bg-[var(--color-accent-10)] rounded",title:"Send message",children:D.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:D.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function JX(c){let Z=Math.floor((Date.now()-new Date(c).getTime())/1000);if(Z<5)return"just now";if(Z<60)return`${Z}s ago`;let _=Math.floor(Z/60);if(_<60)return`${_}m ago`;let U=Math.floor(_/60);if(U<24)return`${U}h ago`;return`${Math.floor(U/24)}d ago`}function YX({activity:c,agentName:Z,timestamp:_}){return D.jsxDEV("div",{className:"px-4 py-3",children:[D.jsxDEV("p",{className:"text-sm truncate",children:c},void 0,!1,void 0,this),D.jsxDEV("div",{className:"flex items-center gap-2 text-xs text-[var(--color-text-faint)] mt-1",children:[D.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:Z},void 0,!1,void 0,this),D.jsxDEV("span",{className:"text-[var(--color-text-faint)]",children:"·"},void 0,!1,void 0,this),D.jsxDEV("span",{children:JX(_)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function XX({status:c}){let Z={pending:"bg-yellow-500/20 text-yellow-400",running:"bg-blue-500/20 text-blue-400",completed:"bg-green-500/20 text-green-400",failed:"bg-red-500/20 text-red-400",cancelled:"bg-gray-500/20 text-gray-400"};return D.jsxDEV("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${Z[c]||Z.pending}`,children:c},void 0,!1,void 0,this)}function ZX({agent:c,onClose:Z}){let{authFetch:_}=$o(),[U,h]=wo.useState(""),[y,H]=wo.useState(!1),[G,N]=wo.useState(!1),I=wo.useRef(null);wo.useEffect(()=>{I.current?.focus()},[]);let W=async()=>{if(!U.trim()||y)return;H(!0);try{if((await _(`/api/agents/${c.id}/chat`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:U.trim(),agent_id:c.id})})).ok)N(!0),setTimeout(Z,1200)}catch{}finally{H(!1)}};return D.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[D.jsxDEV("div",{className:"absolute inset-0 bg-black/60",onClick:Z},void 0,!1,void 0,this),D.jsxDEV("div",{className:"relative bg-[var(--color-surface)] border border-[var(--color-border-light)] rounded-xl shadow-2xl w-full max-w-md mx-4 p-5",children:[D.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[D.jsxDEV("div",{className:"flex items-center gap-3",children:[D.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full bg-green-400 animate-pulse"},void 0,!1,void 0,this),D.jsxDEV("h3",{className:"font-medium",children:c.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D.jsxDEV("button",{onClick:Z,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition",children:D.jsxDEV(it,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G?D.jsxDEV("div",{className:"py-6 text-center",children:[D.jsxDEV("p",{className:"text-green-400 font-medium",children:"Message sent"},void 0,!1,void 0,this),D.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"The agent will process your message"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):D.jsxDEV("div",{className:"flex gap-2",children:[D.jsxDEV("input",{ref:I,type:"text",value:U,onChange:(A)=>h(A.target.value),onKeyDown:(A)=>A.key==="Enter"&&W(),placeholder:`Message ${c.name}...`,disabled:y,className:"flex-1 bg-[var(--color-bg)] border border-[var(--color-border-light)] btn px-3 py-2.5 text-sm focus:outline-none focus:border-[var(--color-accent)] placeholder-[#444] disabled:opacity-50"},void 0,!1,void 0,this),D.jsxDEV("button",{onClick:W,disabled:y||!U.trim(),className:"px-4 py-2.5 bg-[var(--color-accent)] text-black btn text-sm font-medium hover:bg-[var(--color-accent-hover)] transition disabled:opacity-30",children:y?"...":"Send"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function e9(c){if(c.status==="running")return 0;if(c.status==="pending")return 1;if(c.status==="completed")return 2;if(c.status==="failed")return 3;return 4}function GX(c){return[...c].sort((Z,_)=>{let U=e9(Z),h=e9(_);if(U!==h)return U-h;if(U<=1){let G=Z.next_run||Z.execute_at||null,N=_.next_run||_.execute_at||null,I=G?new Date(G).getTime():1/0,W=N?new Date(N).getTime():1/0;return I-W}let y=Z.completed_at||Z.executed_at||Z.created_at,H=_.completed_at||_.executed_at||_.created_at;return new Date(H).getTime()-new Date(y).getTime()})}var oz=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function _X(c){try{let Z=c.trim().split(/\s+/);if(Z.length!==5)return c;let[_,U,h,y,H]=Z;if(_.startsWith("*/")&&U==="*"&&h==="*"&&y==="*"&&H==="*"){let N=parseInt(_.slice(2));return N===1?"Every min":`Every ${N}min`}if(_!=="*"&&!_.includes("/")&&U==="*"&&h==="*"&&y==="*"&&H==="*")return"Hourly";if(U.startsWith("*/")&&h==="*"&&y==="*"&&H==="*"){let N=parseInt(U.slice(2));return N===1?"Hourly":`Every ${N}h`}let G=(N,I)=>{let W=parseInt(N),A=parseInt(I);if(isNaN(W))return"";let k=W>=12?"PM":"AM";return`${W===0?12:W>12?W-12:W}:${A.toString().padStart(2,"0")} ${k}`};if(U!=="*"&&!U.includes("/")&&h==="*"&&y==="*"){let N=G(U,_);if(H==="*")return`Daily ${N}`;let I=H.split(",").map((W)=>oz[parseInt(W.trim())]||W);if(I.length===1)return`${I[0]} ${N}`;return`${I.join(" & ")} ${N}`}return c}catch{return c}}function az(c){let Z=new Date(c),_=new Date,U=Z.getTime()-_.getTime(),h=U>0,y=Math.abs(U),H=Math.floor(y/60000),G=Math.floor(y/3600000),N=Z.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"}),I=Z.toDateString()===_.toDateString(),W=new Date(_);W.setDate(W.getDate()+1);let A=Z.toDateString()===W.toDateString();if(I){if(H<1)return"now";if(H<60)return h?`in ${H}m`:`${H}m ago`;return h?`in ${G}h`:`${G}h ago`}if(A)return`Tomorrow ${N}`;return`${oz[Z.getDay()]} ${N}`}var Za=Ga(vo(),1),BX=ua.lazy(()=>import("./SettingsPage.4r1nbxvp.js").then((c)=>({default:c.SettingsPage}))),KX=ua.lazy(()=>import("./TasksPage.r8txe0e9.js").then((c)=>({default:c.TasksPage}))),HX=ua.lazy(()=>import("./McpPage.xvr8hk05.js").then((c)=>({default:c.McpPage}))),WX=ua.lazy(()=>import("./SkillsPage.jw7carjq.js").then((c)=>({default:c.SkillsPage}))),UX=ua.lazy(()=>import("./TestsPage.pkymr7yt.js").then((c)=>({default:c.TestsPage}))),dX=ua.lazy(()=>import("./ThreadsPage.49tgq4fq.js").then((c)=>({default:c.ThreadsPage}))),RX=ua.lazy(()=>import("./TelemetryPage.sqnsfrht.js").then((c)=>({default:c.TelemetryPage}))),yX=ua.lazy(()=>import("./ConnectionsPage.1dyyfqbk.js").then((c)=>({default:c.ConnectionsPage}))),LX=ua.lazy(()=>import("./ActivityPage.9v5ha2p7.js").then((c)=>({default:c.ActivityPage}))),OX=ua.lazy(()=>import("./ApiDocsPage.qsehxvkb.js").then((c)=>({default:c.ApiDocsPage})));function hX(){let{isAuthenticated:c,isLoading:Z,hasUsers:_,accessToken:U,checkAuth:h}=$o(),{currentProjectId:y,refreshProjects:H}=vp(),G=$1(),N=mz(),{isComplete:I,setIsComplete:W}=K7(),A=()=>{return U?{Authorization:`Bearer ${U}`}:{}},k=c&&I===!0,{agents:x,loading:M,runningCount:P,fetchAgents:s,createAgent:qa,updateAgent:ma,deleteAgent:wa,toggleAgent:oa}=Q7(k,y),{providers:e,configuredProviders:La,fetchProviders:ha}=B7(k),V=La.filter((F)=>F.type==="llm"),Ca=ua.useMemo(()=>{if(y===null)return x.length;if(y==="unassigned")return x.filter((F)=>!F.projectId).length;return x.filter((F)=>F.projectId===y).length},[x,y]),[L,ra]=ua.useState(!1),[O,d]=ua.useState(null),[fa,C]=ua.useState("dashboard"),[T,va]=ua.useState(null),[Pa,xa]=ua.useState(0),[So,$p]=ua.useState(!1);ua.useEffect(()=>{if(!k)return;(async()=>{try{let B="/api/tasks?status=pending";if(y!==null)B+=`&project_id=${encodeURIComponent(y)}`;let u=await fetch(B,{headers:A()});if(u.ok){let ka=await u.json();xa(ka.count??(ka.tasks||[]).length)}}catch{}})()},[k,U,y,G,N]);let[S,_a]=ua.useState({name:"",model:"",provider:"",systemPrompt:"You are a helpful assistant.",features:{...q7},mcpServers:[],skills:[]});ua.useEffect(()=>{if(V.length>0&&!S.provider){let F=V[0],B=F.models.find((u)=>u.recommended)?.value||F.models[0]?.value||"";_a((u)=>({...u,provider:F.id,model:B}))}},[V,S.provider]),ua.useEffect(()=>{if(O){let F=x.find((B)=>B.id===O.id);if(F)d(F);else d(null)}},[x,O]);let sa=(F)=>{let B=e.find((ka)=>ka.id===F),u=B?.models.find((ka)=>ka.recommended)?.value||B?.models[0]?.value||"";_a((ka)=>({...ka,provider:F,model:u}))},pr=async()=>{if(!S.name)return;await qa(S),await H();let F=V[0],B=F?.models.find((u)=>u.recommended)?.value||F?.models[0]?.value||"";_a({name:"",model:B,provider:F?.id||"",systemPrompt:"You are a helpful assistant.",features:{...q7},mcpServers:[],skills:[]}),ra(!1)},jr=async(F,B)=>{B?.stopPropagation(),va(null);let u=await oa(F);if(u.error)va(u.error)},Er=async(F,B)=>{if(B?.stopPropagation(),O?.id===F)d(null);await wa(F),await H()},mr=(F)=>{d(F),va(null),C("agents")},vm=(F)=>{C(F),d(null)},sr=()=>{W(!0),ha(),h()};if(Z||_===null)return Za.jsxDEV(Dr,{fullScreen:!0},void 0,!1,void 0,this);if(!_)return Za.jsxDEV(D5,{onComplete:sr,needsAccount:!0},void 0,!1,void 0,this);if(!c)return Za.jsxDEV(_1,{},void 0,!1,void 0,this);if(I===null)return Za.jsxDEV(Dr,{fullScreen:!0},void 0,!1,void 0,this);if(!I)return Za.jsxDEV(D5,{onComplete:sr,needsAccount:!1},void 0,!1,void 0,this);return Za.jsxDEV("div",{className:"h-screen flex flex-col overflow-hidden",style:{backgroundColor:"var(--color-bg)",color:"var(--color-text)"},children:[Za.jsxDEV(J1,{onMenuClick:()=>$p(!0),agents:x},void 0,!1,void 0,this),T&&Za.jsxDEV(G1,{message:T,onDismiss:()=>va(null)},void 0,!1,void 0,this),Za.jsxDEV("div",{className:"flex flex-1 overflow-hidden",children:[Za.jsxDEV(Z1,{route:fa,agentCount:Ca,taskCount:Pa,onNavigate:vm,isOpen:So,onClose:()=>$p(!1)},void 0,!1,void 0,this),Za.jsxDEV("main",{className:"flex-1 overflow-hidden flex",children:Za.jsxDEV(ua.Suspense,{fallback:Za.jsxDEV(Dr,{},void 0,!1,void 0,this),children:[fa==="settings"&&Za.jsxDEV(BX,{},void 0,!1,void 0,this),fa==="agents"&&Za.jsxDEV(d1,{agents:x,loading:M,selectedAgent:O,providers:e,onSelectAgent:mr,onCloseAgent:()=>d(null),onToggleAgent:jr,onDeleteAgent:Er,onUpdateAgent:ma,onNewAgent:()=>ra(!0),canCreateAgent:V.length>0},void 0,!1,void 0,this),fa==="dashboard"&&Za.jsxDEV(y1,{agents:x,loading:M,runningCount:P,configuredProviders:La,onNavigate:vm,onSelectAgent:mr},void 0,!1,void 0,this),fa==="threads"&&Za.jsxDEV(dX,{agents:x,onNavigate:C},void 0,!1,void 0,this),fa==="activity"&&Za.jsxDEV(LX,{agents:x,loading:M,onNavigate:vm},void 0,!1,void 0,this),fa==="tasks"&&Za.jsxDEV(KX,{},void 0,!1,void 0,this),fa==="connections"&&Za.jsxDEV(yX,{},void 0,!1,void 0,this),fa==="mcp"&&Za.jsxDEV(HX,{},void 0,!1,void 0,this),fa==="skills"&&Za.jsxDEV(WX,{},void 0,!1,void 0,this),fa==="tests"&&Za.jsxDEV(UX,{},void 0,!1,void 0,this),fa==="analytics"&&Za.jsxDEV(RX,{},void 0,!1,void 0,this),fa==="api"&&Za.jsxDEV(OX,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L&&Za.jsxDEV(H1,{form:S,providers:e,configuredProviders:La,onFormChange:_a,onProviderChange:sa,onCreate:pr,onClose:()=>ra(!1),onGoToSettings:()=>{ra(!1),C("settings")}},void 0,!1,void 0,this),Za.jsxDEV(h9,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function kX({token:c}){let{theme:Z}=xr(),[_,U]=ua.useState("checking"),[h,y]=ua.useState("Agent");if(ua.useEffect(()=>{let H=async()=>{try{let N=await fetch(`/share/${c}/info`);if(N.ok){let I=await N.json();y(I.name||"Agent"),U(I.status==="running"?"online":"offline")}else U("offline")}catch{U("offline")}};H();let G=setInterval(H,15000);return()=>clearInterval(G)},[c]),_==="checking")return Za.jsxDEV("div",{className:"min-h-[100dvh] flex items-center justify-center",style:{backgroundColor:"var(--color-bg)"},children:Za.jsxDEV("div",{className:"text-sm",style:{color:"var(--color-text-muted)"},children:"Connecting..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(_==="offline")return Za.jsxDEV("div",{className:"min-h-[100dvh] flex items-center justify-center",style:{backgroundColor:"var(--color-bg)"},children:Za.jsxDEV("div",{className:"text-center",children:[Za.jsxDEV("div",{className:"w-2.5 h-2.5 rounded-full mx-auto mb-3",style:{backgroundColor:"var(--color-text-muted)"}},void 0,!1,void 0,this),Za.jsxDEV("div",{className:"text-base font-semibold mb-1.5",style:{color:"var(--color-text)"},children:h},void 0,!1,void 0,this),Za.jsxDEV("div",{className:"text-sm",style:{color:"var(--color-text-muted)"},children:"This agent is currently offline"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return Za.jsxDEV("div",{className:"min-h-[100dvh] flex items-center justify-center p-0 md:p-4",style:{backgroundColor:"var(--color-bg)"},children:Za.jsxDEV("div",{className:"w-full max-w-[640px] h-[100dvh] md:h-[calc(100dvh-32px)] md:max-h-[800px] md:rounded-xl overflow-hidden md:border flex flex-col",style:{backgroundColor:"var(--color-bg)",borderColor:"var(--color-border)"},children:Za.jsxDEV(ur,{agentId:"default",apiUrl:`/share/${c}`,placeholder:"Type a message...",variant:"terminal",theme:Z.id,headerTitle:h,enableMarkdown:!0,enableWidgets:!0,availableWidgets:["form","kpi"]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function NX(){let c=window.location.pathname.match(/^\/share\/([a-f0-9]{32})$/);if(c)return Za.jsxDEV(L7,{children:Za.jsxDEV(kX,{token:c[1]},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Za.jsxDEV(L7,{children:Za.jsxDEV(tz,{children:Za.jsxDEV(rz,{children:Za.jsxDEV(L9,{children:Za.jsxDEV(pz,{children:Za.jsxDEV(hX,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var MX=vz.createRoot(document.getElementById("root"));MX.render(Za.jsxDEV(NX,{},void 0,!1,void 0,this));
|
|
220
|
-
|
|
221
|
-
//# debugId=3EFF65642A30579464756E2164756E21
|