@apteva/apteva-darwin-arm64 0.4.31 → 0.4.41
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.7907h64p.js +3 -0
- package/dist/ActivityPage.7907h64p.js.map +10 -0
- package/dist/ApiDocsPage.k3jjenpq.js +4 -0
- package/dist/{ApiDocsPage.4smnt8m3.js.map → ApiDocsPage.k3jjenpq.js.map} +2 -2
- package/dist/App.01nq20st.js +4 -0
- package/dist/App.01nq20st.js.map +10 -0
- package/dist/App.1maqvamf.js +4 -0
- package/dist/{App.ca1rz1ph.js.map → App.1maqvamf.js.map} +2 -2
- package/dist/App.2yjrh32f.js +4 -0
- package/dist/App.2yjrh32f.js.map +10 -0
- package/dist/App.3qw8nben.js +20 -0
- package/dist/{App.mvtqv6qc.js.map → App.3qw8nben.js.map} +5 -5
- package/dist/App.7fb3e7mp.js +4 -0
- package/dist/{App.ncgc9cxy.js.map → App.7fb3e7mp.js.map} +3 -3
- package/dist/App.7sy3wq8c.js +4 -0
- package/dist/App.7sy3wq8c.js.map +10 -0
- package/dist/App.apjrmctz.js +57 -0
- package/dist/App.apjrmctz.js.map +383 -0
- package/dist/App.av6t2yhe.js +4 -0
- package/dist/{App.0sbax9et.js.map → App.av6t2yhe.js.map} +2 -2
- package/dist/App.jqj5a094.js +46 -0
- package/dist/App.jqj5a094.js.map +13 -0
- package/dist/App.mc7xf85h.js +4 -0
- package/dist/{App.yv87t9m5.js.map → App.mc7xf85h.js.map} +2 -2
- package/dist/App.myxqcj9x.js +4 -0
- package/dist/App.myxqcj9x.js.map +10 -0
- package/dist/App.nm91r1mp.js +13 -0
- package/dist/{App.f8g7tych.js.map → App.nm91r1mp.js.map} +2 -2
- package/dist/App.qcknavjz.js +221 -0
- package/dist/{App.af2wg84v.js.map → App.qcknavjz.js.map} +9 -15
- package/dist/App.vc7vfhg4.js +4 -0
- package/dist/App.vc7vfhg4.js.map +10 -0
- package/dist/App.z4s9zkw5.js +4 -0
- package/dist/App.z4s9zkw5.js.map +10 -0
- package/dist/ConnectionsPage.z1pw5xe2.js +3 -0
- package/dist/McpPage.8vc97z0b.js +3 -0
- package/dist/{ActivityPage.41nbye4r.js.map → McpPage.8vc97z0b.js.map} +1 -1
- package/dist/SettingsPage.p61bz8kd.js +3 -0
- package/dist/SkillsPage.r9x43g3g.js +3 -0
- package/dist/TasksPage.1e0zkye4.js +3 -0
- package/dist/{McpPage.y396h6fy.js.map → TasksPage.1e0zkye4.js.map} +1 -1
- package/dist/TelemetryPage.p9vbe4gf.js +3 -0
- package/dist/TelemetryPage.p9vbe4gf.js.map +9 -0
- package/dist/TestsPage.d4xy504e.js +3 -0
- package/dist/ThreadsPage.m016am3x.js +3 -0
- package/dist/ThreadsPage.m016am3x.js.map +9 -0
- package/dist/index.html +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/ActivityPage.41nbye4r.js +0 -3
- package/dist/ApiDocsPage.4smnt8m3.js +0 -4
- package/dist/App.0sbax9et.js +0 -4
- package/dist/App.0ws427h8.js +0 -4
- package/dist/App.0ws427h8.js.map +0 -10
- package/dist/App.6q6bar8b.js +0 -4
- package/dist/App.6q6bar8b.js.map +0 -10
- package/dist/App.80301vdb.js +0 -4
- package/dist/App.80301vdb.js.map +0 -10
- package/dist/App.af2wg84v.js +0 -267
- package/dist/App.ca1rz1ph.js +0 -4
- package/dist/App.ensa6z0r.js +0 -4
- package/dist/App.ensa6z0r.js.map +0 -10
- package/dist/App.f8g7tych.js +0 -13
- package/dist/App.mvtqv6qc.js +0 -20
- package/dist/App.ncgc9cxy.js +0 -4
- package/dist/App.p0fb1pds.js +0 -4
- package/dist/App.p0fb1pds.js.map +0 -10
- package/dist/App.pmaq48sj.js +0 -4
- package/dist/App.pmaq48sj.js.map +0 -10
- package/dist/App.yv87t9m5.js +0 -4
- package/dist/App.zjmfm8p6.js +0 -4
- package/dist/App.zjmfm8p6.js.map +0 -10
- package/dist/ConnectionsPage.anb3rv9a.js +0 -3
- package/dist/McpPage.y396h6fy.js +0 -3
- package/dist/SettingsPage.p1hc60gk.js +0 -3
- package/dist/SkillsPage.yj3xdsay.js +0 -3
- package/dist/TasksPage.sjv0khtv.js +0 -3
- package/dist/TasksPage.sjv0khtv.js.map +0 -9
- package/dist/TelemetryPage.2qm4w16r.js +0 -3
- package/dist/TelemetryPage.2qm4w16r.js.map +0 -9
- package/dist/TestsPage.zzs4qfj8.js +0 -3
- /package/dist/{ConnectionsPage.anb3rv9a.js.map → ConnectionsPage.z1pw5xe2.js.map} +0 -0
- /package/dist/{SettingsPage.p1hc60gk.js.map → SettingsPage.p61bz8kd.js.map} +0 -0
- /package/dist/{SkillsPage.yj3xdsay.js.map → SkillsPage.r9x43g3g.js.map} +0 -0
- /package/dist/{TestsPage.zzs4qfj8.js.map → TestsPage.d4xy504e.js.map} +0 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import{a as j4}from"./App.1maqvamf.js";import"./App.vc7vfhg4.js";import{f as jb,g as vJ,h as n7}from"./App.z4s9zkw5.js";import"./App.2yjrh32f.js";import"./App.myxqcj9x.js";import{A as Sb,B as hb,C as gb,D as db,E as Kw,G as ib,H as Db,I as cb,J as xb,K as ob,k as Ow,l as q2,m as MJ,n as FJ,o as yJ,p as w3,q as om,r as z3,s as $3,t as b2,u as Bw,v as J3,w as ab,x as lb,y as X3,z as Y3}from"./App.7fb3e7mp.js";import"./App.nm91r1mp.js";import"./App.av6t2yhe.js";import{N as CJ,O as yw}from"./App.mc7xf85h.js";import{Q as Eb,R as i7}from"./App.jqj5a094.js";import{T as VH}from"./App.apjrmctz.js";import{V as Q2}from"./App.7sy3wq8c.js";import"./App.01nq20st.js";import{$ as r1,X as U0,Y as WJ,_ as lm,aa as w1,ba as eb,ca as D7,da as Fw,ea as Lw,fa as bw,ga as mQ,ha as kb,ia as yb,ja as H1,ka as pQ,la as Ab,ma as J5,na as wQ}from"./App.3qw8nben.js";var Ob=WJ((uH)=>{(function(){function _(){if(p0=!1,G0){var a=uH.unstable_now();J0=a;var u=!0;try{m:{$0=!1,l&&(l=!1,n(_1),_1=-1),w0=!0;var z0=t;try{p:{k(a);for(d=L(x);d!==null&&!(d.expirationTime>a&&R());){var a0=d.callback;if(typeof a0==="function"){d.callback=null,t=d.priorityLevel;var c0=a0(d.expirationTime<=a);if(a=uH.unstable_now(),typeof c0==="function"){d.callback=c0,k(a),u=!0;break p}d===L(x)&&P(x),k(a)}else P(x);d=L(x)}if(d!==null)u=!0;else{var k5=L(j);k5!==null&&o(F,k5.startTime-a),u=!1}}break m}finally{d=null,t=z0,w0=!1}u=void 0}}finally{u?T():G0=!1}}}function U(a,u){var z0=a.length;a.push(u);m:for(;0<z0;){var a0=z0-1>>>1,c0=a[a0];if(0<S(c0,u))a[a0]=u,a[z0]=c0,z0=a0;else break m}}function L(a){return a.length===0?null:a[0]}function P(a){if(a.length===0)return null;var u=a[0],z0=a.pop();if(z0!==u){a[0]=z0;m:for(var a0=0,c0=a.length,k5=c0>>>1;a0<k5;){var n5=2*(a0+1)-1,Q5=a[n5],T1=n5+1,Q1=a[T1];if(0>S(Q5,z0))T1<c0&&0>S(Q1,Q5)?(a[a0]=Q1,a[T1]=z0,a0=T1):(a[a0]=Q5,a[n5]=z0,a0=n5);else if(T1<c0&&0>S(Q1,z0))a[a0]=Q1,a[T1]=z0,a0=T1;else break m}}return u}function S(a,u){var z0=a.sortIndex-u.sortIndex;return z0!==0?z0:a.id-u.id}function k(a){for(var u=L(j);u!==null;){if(u.callback===null)P(j);else if(u.startTime<=a)P(j),u.sortIndex=u.expirationTime,U(x,u);else break;u=L(j)}}function F(a){if(l=!1,k(a),!$0)if(L(x)!==null)$0=!0,G0||(G0=!0,T());else{var u=L(j);u!==null&&o(F,u.startTime-a)}}function R(){return p0?!0:uH.unstable_now()-J0<f?!1:!0}function o(a,u){_1=u0(function(){a(uH.unstable_now())},u)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),uH.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var D=performance;uH.unstable_now=function(){return D.now()}}else{var C=Date,i=C.now();uH.unstable_now=function(){return C.now()-i}}var x=[],j=[],g=1,d=null,t=3,w0=!1,$0=!1,l=!1,p0=!1,u0=typeof setTimeout==="function"?setTimeout:null,n=typeof clearTimeout==="function"?clearTimeout:null,M0=typeof setImmediate<"u"?setImmediate:null,G0=!1,_1=-1,f=5,J0=-1;if(typeof M0==="function")var T=function(){M0(_)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,b0=I.port2;I.port1.onmessage=_,T=function(){b0.postMessage(null)}}else T=function(){u0(_,0)};uH.unstable_IdlePriority=5,uH.unstable_ImmediatePriority=1,uH.unstable_LowPriority=4,uH.unstable_NormalPriority=3,uH.unstable_Profiling=null,uH.unstable_UserBlockingPriority=2,uH.unstable_cancelCallback=function(a){a.callback=null},uH.unstable_forceFrameRate=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):f=0<a?Math.floor(1000/a):5},uH.unstable_getCurrentPriorityLevel=function(){return t},uH.unstable_next=function(a){switch(t){case 1:case 2:case 3:var u=3;break;default:u=t}var z0=t;t=u;try{return a()}finally{t=z0}},uH.unstable_requestPaint=function(){p0=!0},uH.unstable_runWithPriority=function(a,u){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var z0=t;t=a;try{return u()}finally{t=z0}},uH.unstable_scheduleCallback=function(a,u,z0){var a0=uH.unstable_now();switch(typeof z0==="object"&&z0!==null?(z0=z0.delay,z0=typeof z0==="number"&&0<z0?a0+z0:a0):z0=a0,a){case 1:var c0=-1;break;case 2:c0=250;break;case 5:c0=1073741823;break;case 4:c0=1e4;break;default:c0=5000}return c0=z0+c0,a={id:g++,callback:u,priorityLevel:a,startTime:z0,expirationTime:c0,sortIndex:-1},z0>a0?(a.sortIndex=z0,U(j,a),L(x)===null&&a===L(j)&&(l?(n(_1),_1=-1):l=!0,o(F,z0-a0))):(a.sortIndex=c0,U(x,a),$0||w0||($0=!0,G0||(G0=!0,T()))),a},uH.unstable_shouldYield=R,uH.unstable_wrapCallback=function(a){var u=t;return function(){var z0=t;t=u;try{return a.apply(this,arguments)}finally{t=z0}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Lb=WJ((iH)=>{var A0=U0(Ob()),m3=U0(r1()),UJ=U0(VH());(function(){function _(m,p){for(m=m.memoizedState;m!==null&&0<p;)m=m.next,p--;return m}function U(m,p,w,z){if(w>=p.length)return z;var $=p[w],J=P1(m)?m.slice():C0({},m);return J[$]=U(m[$],p,w+1,z),J}function L(m,p,w){if(p.length!==w.length)console.warn("copyWithRename() expects paths of the same length");else{for(var z=0;z<w.length-1;z++)if(p[z]!==w[z]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return P(m,p,w,0)}}function P(m,p,w,z){var $=p[z],J=P1(m)?m.slice():C0({},m);return z+1===p.length?(J[w[z]]=J[$],P1(J)?J.splice($,1):delete J[$]):J[$]=P(m[$],p,w,z+1),J}function S(m,p,w){var z=p[w],$=P1(m)?m.slice():C0({},m);if(w+1===p.length)return P1($)?$.splice(z,1):delete $[z],$;return $[z]=S(m[z],p,w+1),$}function k(){return!1}function F(){return null}function R(){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 o(){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 D(){}function C(){}function i(m){var p=[];return m.forEach(function(w){p.push(w)}),p.sort().join(", ")}function x(m,p,w,z){return new TQ(m,p,w,z)}function j(m,p){m.context===o2&&(az(m.current,2,p,m,null,null),q6())}function g(m,p){if(l5!==null){var w=p.staleFamilies;p=p.updatedFamilies,l3(),CX(m.current,p,w),q6()}}function d(m){l5=m}function t(m){return!(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)}function w0(m){var p=m,w=m;if(m.alternate)for(;p.return;)p=p.return;else{m=p;do p=m,(p.flags&4098)!==0&&(w=p.return),m=p.return;while(m)}return p.tag===3?w:null}function $0(m){if(m.tag===13){var p=m.memoizedState;if(p===null&&(m=m.alternate,m!==null&&(p=m.memoizedState)),p!==null)return p.dehydrated}return null}function l(m){if(m.tag===31){var p=m.memoizedState;if(p===null&&(m=m.alternate,m!==null&&(p=m.memoizedState)),p!==null)return p.dehydrated}return null}function p0(m){if(w0(m)!==m)throw Error("Unable to find node on an unmounted component.")}function u0(m){var p=m.alternate;if(!p){if(p=w0(m),p===null)throw Error("Unable to find node on an unmounted component.");return p!==m?null:m}for(var w=m,z=p;;){var $=w.return;if($===null)break;var J=$.alternate;if(J===null){if(z=$.return,z!==null){w=z;continue}break}if($.child===J.child){for(J=$.child;J;){if(J===w)return p0($),m;if(J===z)return p0($),p;J=J.sibling}throw Error("Unable to find node on an unmounted component.")}if(w.return!==z.return)w=$,z=J;else{for(var X=!1,Y=$.child;Y;){if(Y===w){X=!0,w=$,z=J;break}if(Y===z){X=!0,z=$,w=J;break}Y=Y.sibling}if(!X){for(Y=J.child;Y;){if(Y===w){X=!0,w=J,z=$;break}if(Y===z){X=!0,z=J,w=$;break}Y=Y.sibling}if(!X)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(w.alternate!==z)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(w.tag!==3)throw Error("Unable to find node on an unmounted component.");return w.stateNode.current===w?m:p}function n(m){var p=m.tag;if(p===5||p===26||p===27||p===6)return m;for(m=m.child;m!==null;){if(p=n(m),p!==null)return p;m=m.sibling}return null}function M0(m){if(m===null||typeof m!=="object")return null;return m=AG&&m[AG]||m["@@iterator"],typeof m==="function"?m:null}function G0(m){if(m==null)return null;if(typeof m==="function")return m.$$typeof===sB?null:m.displayName||m.name||null;if(typeof m==="string")return m;switch(m){case U6:return"Fragment";case Vz:return"Profiler";case Xp:return"StrictMode";case Dz:return"Suspense";case cz:return"SuspenseList";case Ez:return"Activity"}if(typeof m==="object")switch(typeof m.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),m.$$typeof){case W6:return"Portal";case ym:return m.displayName||"Context";case iz:return(m._context.displayName||"Context")+".Consumer";case j3:var p=m.render;return m=m.displayName,m||(m=p.displayName||p.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case Yp:return p=m.displayName||null,p!==null?p:G0(m.type)||"Memo";case M5:p=m._payload,m=m._init;try{return G0(m(p))}catch(w){}}return null}function _1(m){return typeof m.tag==="number"?f(m):typeof m.name==="string"?m.name:null}function f(m){var p=m.type;switch(m.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(p._context.displayName||"Context")+".Consumer";case 10:return p.displayName||"Context";case 18:return"DehydratedFragment";case 11:return m=p.render,m=m.displayName||m.name||"",p.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return p;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return G0(p);case 8:return p===Xp?"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 p==="function")return p.displayName||p.name||null;if(typeof p==="string")return p;break;case 29:if(p=m._debugInfo,p!=null){for(var w=p.length-1;0<=w;w--)if(typeof p[w].name==="string")return p[w].name}if(m.return!==null)return f(m.return)}return null}function J0(m){return{current:m}}function T(m,p){0>jm?console.error("Unexpected pop."):(p!==rz[jm]&&console.error("Unexpected Fiber popped."),m.current=jz[jm],jz[jm]=null,rz[jm]=null,jm--)}function I(m,p,w){jm++,jz[jm]=m.current,rz[jm]=w,m.current=p}function b0(m){return m===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),m}function a(m,p){I(f2,p,m),I(r3,m,m),I(I2,null,m);var w=p.nodeType;switch(w){case 9:case 11:w=w===9?"#document":"#fragment",p=(p=p.documentElement)?(p=p.namespaceURI)?zG(p):Z2:Z2;break;default:if(w=p.tagName,p=p.namespaceURI)p=zG(p),p=$G(p,w);else switch(w){case"svg":p=s6;break;case"math":p=Jw;break;default:p=Z2}}w=w.toLowerCase(),w=tJ(null,w),w={context:p,ancestorInfo:w},T(I2,m),I(I2,w,m)}function u(m){T(I2,m),T(r3,m),T(f2,m)}function z0(){return b0(I2.current)}function a0(m){m.memoizedState!==null&&I(Zp,m,m);var p=b0(I2.current),w=m.type,z=$G(p.context,w);w=tJ(p.ancestorInfo,w),z={context:z,ancestorInfo:w},p!==z&&(I(r3,m,m),I(I2,z,m))}function c0(m){r3.current===m&&(T(I2,m),T(r3,m)),Zp.current===m&&(T(Zp,m),d7._currentValue=D4)}function k5(){}function n5(){if(n3===0){SG=console.log,hG=console.info,oG=console.warn,aG=console.error,lG=console.group,gG=console.groupCollapsed,dG=console.groupEnd;var m={configurable:!0,enumerable:!0,value:k5,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}n3++}function Q5(){if(n3--,n3===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:C0({},m,{value:SG}),info:C0({},m,{value:hG}),warn:C0({},m,{value:oG}),error:C0({},m,{value:aG}),group:C0({},m,{value:lG}),groupCollapsed:C0({},m,{value:gG}),groupEnd:C0({},m,{value:dG})})}0>n3&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function T1(m){var p=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,m=m.stack,Error.prepareStackTrace=p,m.startsWith(`Error: react-stack-top-frame
|
|
2
|
+
`)&&(m=m.slice(29)),p=m.indexOf(`
|
|
3
|
+
`),p!==-1&&(m=m.slice(p+1)),p=m.indexOf("react_stack_bottom_frame"),p!==-1&&(p=m.lastIndexOf(`
|
|
4
|
+
`,p)),p!==-1)m=m.slice(0,p);else return"";return m}function Q1(m){if(nz===void 0)try{throw Error()}catch(w){var p=w.stack.trim().match(/\n( *(at )?)/);nz=p&&p[1]||"",xG=-1<w.stack.indexOf(`
|
|
5
|
+
at`)?" (<anonymous>)":-1<w.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
6
|
+
`+nz+m+xG}function B2(m,p){if(!m||tz)return"";var w=sz.get(m);if(w!==void 0)return w;tz=!0,w=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var z=null;z=M.H,M.H=null,n5();try{var $={DetermineComponentFrameRoot:function(){try{if(p){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(V){var O=V}Reflect.construct(m,[],Q)}else{try{Q.call()}catch(V){O=V}m.call(Q.prototype)}}else{try{throw Error()}catch(V){O=V}(Q=m())&&typeof Q.catch==="function"&&Q.catch(function(){})}}catch(V){if(V&&O&&typeof V.stack==="string")return[V.stack,O.stack]}return[null,null]}};$.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var J=Object.getOwnPropertyDescriptor($.DetermineComponentFrameRoot,"name");J&&J.configurable&&Object.defineProperty($.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var X=$.DetermineComponentFrameRoot(),Y=X[0],Z=X[1];if(Y&&Z){var G=Y.split(`
|
|
7
|
+
`),H=Z.split(`
|
|
8
|
+
`);for(X=J=0;J<G.length&&!G[J].includes("DetermineComponentFrameRoot");)J++;for(;X<H.length&&!H[X].includes("DetermineComponentFrameRoot");)X++;if(J===G.length||X===H.length)for(J=G.length-1,X=H.length-1;1<=J&&0<=X&&G[J]!==H[X];)X--;for(;1<=J&&0<=X;J--,X--)if(G[J]!==H[X]){if(J!==1||X!==1)do if(J--,X--,0>X||G[J]!==H[X]){var W=`
|
|
9
|
+
`+G[J].replace(" at new "," at ");return m.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",m.displayName)),typeof m==="function"&&sz.set(m,W),W}while(1<=J&&0<=X);break}}}finally{tz=!1,M.H=z,Q5(),Error.prepareStackTrace=w}return G=(G=m?m.displayName||m.name:"")?Q1(G):"",typeof m==="function"&&sz.set(m,G),G}function v(m,p){switch(m.tag){case 26:case 27:case 5:return Q1(m.type);case 16:return Q1("Lazy");case 13:return m.child!==p&&p!==null?Q1("Suspense Fallback"):Q1("Suspense");case 19:return Q1("SuspenseList");case 0:case 15:return B2(m.type,!1);case 11:return B2(m.type.render,!1);case 1:return B2(m.type,!0);case 31:return Q1("Activity");default:return""}}function e(m){try{var p="",w=null;do{p+=v(m,w);var z=m._debugInfo;if(z)for(var $=z.length-1;0<=$;$--){var J=z[$];if(typeof J.name==="string"){var X=p;m:{var{name:Y,env:Z,debugLocation:G}=J;if(G!=null){var H=T1(G),W=H.lastIndexOf(`
|
|
10
|
+
`),Q=W===-1?H:H.slice(W+1);if(Q.indexOf(Y)!==-1){var O=`
|
|
11
|
+
`+Q;break m}}O=Q1(Y+(Z?" ["+Z+"]":""))}p=X+O}}w=m,m=m.return}while(m);return p}catch(V){return`
|
|
12
|
+
Error generating stack: `+V.message+`
|
|
13
|
+
`+V.stack}}function d0(m){return(m=m?m.displayName||m.name:"")?Q1(m):""}function k1(){if(F5===null)return null;var m=F5._debugOwner;return m!=null?_1(m):null}function K2(){if(F5===null)return"";var m=F5;try{var p="";switch(m.tag===6&&(m=m.return),m.tag){case 26:case 27:case 5:p+=Q1(m.type);break;case 13:p+=Q1("Suspense");break;case 19:p+=Q1("SuspenseList");break;case 31:p+=Q1("Activity");break;case 30:case 0:case 15:case 1:m._debugOwner||p!==""||(p+=d0(m.type));break;case 11:m._debugOwner||p!==""||(p+=d0(m.type.render))}for(;m;)if(typeof m.tag==="number"){var w=m;m=w._debugOwner;var z=w._debugStack;if(m&&z){var $=T1(z);$!==""&&(p+=`
|
|
14
|
+
`+$)}}else if(m.debugStack!=null){var J=m.debugStack;(m=m.owner)&&J&&(p+=`
|
|
15
|
+
`+T1(J))}else break;var X=p}catch(Y){X=`
|
|
16
|
+
Error generating stack: `+Y.message+`
|
|
17
|
+
`+Y.stack}return X}function h(m,p,w,z,$,J,X){var Y=F5;v1(m);try{return m!==null&&m._debugTask?m._debugTask.run(p.bind(null,w,z,$,J,X)):p(w,z,$,J,X)}finally{v1(Y)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function v1(m){M.getCurrentStack=m===null?null:K2,Cm=!1,F5=m}function A1(m){return typeof Symbol==="function"&&Symbol.toStringTag&&m[Symbol.toStringTag]||m.constructor.name||"Object"}function B5(m){try{return G3(m),!1}catch(p){return!0}}function G3(m){return""+m}function s0(m,p){if(B5(m))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",p,A1(m)),G3(m)}function fw(m,p){if(B5(m))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.",p,A1(m)),G3(m)}function Tw(m){if(B5(m))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.",A1(m)),G3(m)}function $Q(m){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var p=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(p.isDisabled)return!0;if(!p.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{O6=p.inject(m),E1=p}catch(w){console.error("React instrumentation encountered an error: %o.",w)}return p.checkDCE?!0:!1}function Y1(m){if(typeof JK==="function"&&XK(m),E1&&typeof E1.setStrictMode==="function")try{E1.setStrictMode(O6,m)}catch(p){vm||(vm=!0,console.error("React instrumentation encountered an error: %o",p))}}function JQ(m){return m>>>=0,m===0?32:31-(YK(m)/ZK|0)|0}function X4(m){var p=m&42;if(p!==0)return p;switch(m&-m){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 m&261888;case 262144:case 524288:case 1048576:case 2097152:return m&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return m&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."),m}}function t7(m,p,w){var z=m.pendingLanes;if(z===0)return 0;var $=0,J=m.suspendedLanes,X=m.pingedLanes;m=m.warmLanes;var Y=z&134217727;return Y!==0?(z=Y&~J,z!==0?$=X4(z):(X&=Y,X!==0?$=X4(X):w||(w=Y&~m,w!==0&&($=X4(w))))):(Y=z&~J,Y!==0?$=X4(Y):X!==0?$=X4(X):w||(w=z&~m,w!==0&&($=X4(w)))),$===0?0:p!==0&&p!==$&&(p&J)===0&&(J=$&-$,w=p&-p,J>=w||J===32&&(w&4194048)!==0)?p:$}function _3(m,p){return(m.pendingLanes&~(m.suspendedLanes&~m.pingedLanes)&p)===0}function XQ(m,p){switch(m){case 1:case 2:case 4:case 8:case 64:return p+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 p+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 kw(){var m=qp;return qp<<=1,(qp&62914560)===0&&(qp=4194304),m}function Aw(m){for(var p=[],w=0;31>w;w++)p.push(m);return p}function q3(m,p){m.pendingLanes|=p,p!==268435456&&(m.suspendedLanes=0,m.pingedLanes=0,m.warmLanes=0)}function YQ(m,p,w,z,$,J){var X=m.pendingLanes;m.pendingLanes=w,m.suspendedLanes=0,m.pingedLanes=0,m.warmLanes=0,m.expiredLanes&=w,m.entangledLanes&=w,m.errorRecoveryDisabledLanes&=w,m.shellSuspendCounter=0;var{entanglements:Y,expirationTimes:Z,hiddenUpdates:G}=m;for(w=X&~w;0<w;){var H=31-t1(w),W=1<<H;Y[H]=0,Z[H]=-1;var Q=G[H];if(Q!==null)for(G[H]=null,H=0;H<Q.length;H++){var O=Q[H];O!==null&&(O.lane&=-536870913)}w&=~W}z!==0&&IJ(m,z,0),J!==0&&$===0&&m.tag!==0&&(m.suspendedLanes|=J&~(X&~p))}function IJ(m,p,w){m.pendingLanes|=p,m.suspendedLanes&=~p;var z=31-t1(p);m.entangledLanes|=p,m.entanglements[z]=m.entanglements[z]|1073741824|w&261930}function fJ(m,p){var w=m.entangledLanes|=p;for(m=m.entanglements;w;){var z=31-t1(w),$=1<<z;$&p|m[z]&p&&(m[z]|=p),w&=~$}}function TJ(m,p){var w=p&-p;return w=(w&42)!==0?1:Sw(w),(w&(m.suspendedLanes|p))!==0?0:w}function Sw(m){switch(m){case 2:m=1;break;case 8:m=4;break;case 32:m=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:m=128;break;case 268435456:m=134217728;break;default:m=0}return m}function kJ(m,p,w){if(Pm)for(m=m.pendingUpdatersLaneMap;0<w;){var z=31-t1(w),$=1<<z;m[z].add(p),w&=~$}}function AJ(m,p){if(Pm)for(var{pendingUpdatersLaneMap:w,memoizedUpdaters:z}=m;0<p;){var $=31-t1(p);m=1<<$,$=w[$],0<$.size&&($.forEach(function(J){var X=J.alternate;X!==null&&z.has(X)||z.add(J)}),$.clear()),p&=~m}}function hw(m){return m&=-m,y5!==0&&y5<m?pm!==0&&pm<m?(m&134217727)!==0?Im:bp:pm:y5}function SJ(){var m=o0.p;if(m!==0)return m;return m=window.event,m===void 0?Im:CG(m.type)}function hJ(m,p){var w=o0.p;try{return o0.p=m,p()}finally{o0.p=w}}function ow(m){delete m[V1],delete m[s1],delete m[z$],delete m[GK],delete m[_K]}function r4(m){var p=m[V1];if(p)return p;for(var w=m.parentNode;w;){if(p=w[k2]||w[V1]){if(w=p.alternate,p.child!==null||w!==null&&w.child!==null)for(m=bG(m);m!==null;){if(w=m[V1])return w;m=bG(m)}return p}m=w,w=m.parentNode}return null}function H2(m){if(m=m[V1]||m[k2]){var p=m.tag;if(p===5||p===6||p===13||p===31||p===26||p===27||p===3)return m}return null}function b3(m){var p=m.tag;if(p===5||p===26||p===27||p===6)return m.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function n4(m){var p=m[uG];return p||(p=m[uG]={hoistableStyles:new Map,hoistableScripts:new Map}),p}function S1(m){m[t3]=!0}function Y4(m,p){t4(m,p),t4(m+"Capture",p)}function t4(m,p){M4[m]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",m),M4[m]=p;var w=m.toLowerCase();$$[w]=m,m==="onDoubleClick"&&($$.ondblclick=m);for(m=0;m<p.length;m++)VG.add(p[m])}function s4(m,p){qK[p.type]||p.onChange||p.onInput||p.readOnly||p.disabled||p.value==null||(m==="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`.")),p.onChange||p.readOnly||p.disabled||p.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 aw(m){if(mm.call(DG,m))return!0;if(mm.call(iG,m))return!1;if(bK.test(m))return DG[m]=!0;return iG[m]=!0,console.error("Invalid attribute name: `%s`",m),!1}function oJ(m,p,w){if(aw(p)){if(!m.hasAttribute(p)){switch(typeof w){case"symbol":case"object":return w;case"function":return w;case"boolean":if(w===!1)return w}return w===void 0?void 0:null}if(m=m.getAttribute(p),m===""&&w===!0)return!0;return s0(w,p),m===""+w?w:m}}function s7(m,p,w){if(aw(p))if(w===null)m.removeAttribute(p);else{switch(typeof w){case"undefined":case"function":case"symbol":m.removeAttribute(p);return;case"boolean":var z=p.toLowerCase().slice(0,5);if(z!=="data-"&&z!=="aria-"){m.removeAttribute(p);return}}s0(w,p),m.setAttribute(p,""+w)}}function e7(m,p,w){if(w===null)m.removeAttribute(p);else{switch(typeof w){case"undefined":case"function":case"symbol":case"boolean":m.removeAttribute(p);return}s0(w,p),m.setAttribute(p,""+w)}}function gm(m,p,w,z){if(z===null)m.removeAttribute(w);else{switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":m.removeAttribute(w);return}s0(z,w),m.setAttributeNS(p,w,""+z)}}function A5(m){switch(typeof m){case"bigint":case"boolean":case"number":case"string":case"undefined":return m;case"object":return Tw(m),m;default:return""}}function aJ(m){var p=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function ZQ(m,p,w){var z=Object.getOwnPropertyDescriptor(m.constructor.prototype,p);if(!m.hasOwnProperty(p)&&typeof z<"u"&&typeof z.get==="function"&&typeof z.set==="function"){var{get:$,set:J}=z;return Object.defineProperty(m,p,{configurable:!0,get:function(){return $.call(this)},set:function(X){Tw(X),w=""+X,J.call(this,X)}}),Object.defineProperty(m,p,{enumerable:z.enumerable}),{getValue:function(){return w},setValue:function(X){Tw(X),w=""+X},stopTracking:function(){m._valueTracker=null,delete m[p]}}}}function lw(m){if(!m._valueTracker){var p=aJ(m)?"checked":"value";m._valueTracker=ZQ(m,p,""+m[p])}}function lJ(m){if(!m)return!1;var p=m._valueTracker;if(!p)return!0;var w=p.getValue(),z="";return m&&(z=aJ(m)?m.checked?"true":"false":m.value),m=z,m!==w?(p.setValue(m),!0):!1}function m8(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch(p){return m.body}}function S5(m){return m.replace(QK,function(p){return"\\"+p.charCodeAt(0).toString(16)+" "})}function gJ(m,p){p.checked===void 0||p.defaultChecked===void 0||EG||(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",k1()||"A component",p.type),EG=!0),p.value===void 0||p.defaultValue===void 0||cG||(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",k1()||"A component",p.type),cG=!0)}function gw(m,p,w,z,$,J,X,Y){if(m.name="",X!=null&&typeof X!=="function"&&typeof X!=="symbol"&&typeof X!=="boolean"?(s0(X,"type"),m.type=X):m.removeAttribute("type"),p!=null)if(X==="number"){if(p===0&&m.value===""||m.value!=p)m.value=""+A5(p)}else m.value!==""+A5(p)&&(m.value=""+A5(p));else X!=="submit"&&X!=="reset"||m.removeAttribute("value");p!=null?dw(m,X,A5(p)):w!=null?dw(m,X,A5(w)):z!=null&&m.removeAttribute("value"),$==null&&J!=null&&(m.defaultChecked=!!J),$!=null&&(m.checked=$&&typeof $!=="function"&&typeof $!=="symbol"),Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&typeof Y!=="boolean"?(s0(Y,"name"),m.name=""+A5(Y)):m.removeAttribute("name")}function dJ(m,p,w,z,$,J,X,Y){if(J!=null&&typeof J!=="function"&&typeof J!=="symbol"&&typeof J!=="boolean"&&(s0(J,"type"),m.type=J),p!=null||w!=null){if(!(J!=="submit"&&J!=="reset"||p!==void 0&&p!==null)){lw(m);return}w=w!=null?""+A5(w):"",p=p!=null?""+A5(p):w,Y||p===m.value||(m.value=p),m.defaultValue=p}z=z!=null?z:$,z=typeof z!=="function"&&typeof z!=="symbol"&&!!z,m.checked=Y?m.checked:!!z,m.defaultChecked=!!z,X!=null&&typeof X!=="function"&&typeof X!=="symbol"&&typeof X!=="boolean"&&(s0(X,"name"),m.name=X),lw(m)}function dw(m,p,w){p==="number"&&m8(m.ownerDocument)===m||m.defaultValue===""+w||(m.defaultValue=""+w)}function xJ(m,p){p.value==null&&(typeof p.children==="object"&&p.children!==null?m3.Children.forEach(p.children,function(w){w==null||typeof w==="string"||typeof w==="number"||typeof w==="bigint"||rG||(rG=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):p.dangerouslySetInnerHTML==null||nG||(nG=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),p.selected==null||jG||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),jG=!0)}function uJ(){var m=k1();return m?`
|
|
18
|
+
|
|
19
|
+
Check the render method of \``+m+"`.":""}function e4(m,p,w,z){if(m=m.options,p){p={};for(var $=0;$<w.length;$++)p["$"+w[$]]=!0;for(w=0;w<m.length;w++)$=p.hasOwnProperty("$"+m[w].value),m[w].selected!==$&&(m[w].selected=$),$&&z&&(m[w].defaultSelected=!0)}else{w=""+A5(w),p=null;for($=0;$<m.length;$++){if(m[$].value===w){m[$].selected=!0,z&&(m[$].defaultSelected=!0);return}p!==null||m[$].disabled||(p=m[$])}p!==null&&(p.selected=!0)}}function VJ(m,p){for(m=0;m<sG.length;m++){var w=sG[m];if(p[w]!=null){var z=P1(p[w]);p.multiple&&!z?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",w,uJ()):!p.multiple&&z&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",w,uJ())}}p.value===void 0||p.defaultValue===void 0||tG||(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"),tG=!0)}function iJ(m,p){p.value===void 0||p.defaultValue===void 0||eG||(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",k1()||"A component"),eG=!0),p.children!=null&&p.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function DJ(m,p,w){if(p!=null&&(p=""+A5(p),p!==m.value&&(m.value=p),w==null)){m.defaultValue!==p&&(m.defaultValue=p);return}m.defaultValue=w!=null?""+A5(w):""}function cJ(m,p,w,z){if(p==null){if(z!=null){if(w!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(P1(z)){if(1<z.length)throw Error("<textarea> can only have at most one child.");z=z[0]}w=z}w==null&&(w=""),p=w}w=A5(p),m.defaultValue=w,z=m.textContent,z===w&&z!==""&&z!==null&&(m.value=z),lw(m)}function EJ(m,p){return m.serverProps===void 0&&m.serverTail.length===0&&m.children.length===1&&3<m.distanceFromLeaf&&m.distanceFromLeaf>15-p?EJ(m.children[0],p):m}function K5(m){return" "+" ".repeat(m)}function m6(m){return"+ "+" ".repeat(m)}function Z4(m){return"- "+" ".repeat(m)}function jJ(m){switch(m.tag){case 26:case 27:case 5:return m.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return m=m.type,m.displayName||m.name||null;case 11:return m=m.type.render,m.displayName||m.name||null;case 1:return m=m.type,m.displayName||m.name||null;default:return null}}function Q3(m,p){return m_.test(m)?(m=JSON.stringify(m),m.length>p-2?8>p?'{"..."}':"{"+m.slice(0,p-7)+'..."}':"{"+m+"}"):m.length>p?5>p?'{"..."}':m.slice(0,p-3)+"...":m}function p8(m,p,w){var z=120-2*w;if(p===null)return m6(w)+Q3(m,z)+`
|
|
20
|
+
`;if(typeof p==="string"){for(var $=0;$<p.length&&$<m.length&&p.charCodeAt($)===m.charCodeAt($);$++);return $>z-8&&10<$&&(m="..."+m.slice($-8),p="..."+p.slice($-8)),m6(w)+Q3(m,z)+`
|
|
21
|
+
`+Z4(w)+Q3(p,z)+`
|
|
22
|
+
`}return K5(w)+Q3(m,z)+`
|
|
23
|
+
`}function xw(m){return Object.prototype.toString.call(m).replace(/^\[object (.*)\]$/,function(p,w){return w})}function B3(m,p){switch(typeof m){case"string":return m=JSON.stringify(m),m.length>p?5>p?'"..."':m.slice(0,p-4)+'..."':m;case"object":if(m===null)return"null";if(P1(m))return"[...]";if(m.$$typeof===Fm)return(p=G0(m.type))?"<"+p+">":"<...>";var w=xw(m);if(w==="Object"){w="",p-=2;for(var z in m)if(m.hasOwnProperty(z)){var $=JSON.stringify(z);if($!=='"'+z+'"'&&(z=$),p-=z.length-2,$=B3(m[z],15>p?p:15),p-=$.length,0>p){w+=w===""?"...":", ...";break}w+=(w===""?"":",")+z+":"+$}return"{"+w+"}"}return w;case"function":return(p=m.displayName||m.name)?"function "+p:"function";default:return String(m)}}function p6(m,p){return typeof m!=="string"||m_.test(m)?"{"+B3(m,p-2)+"}":m.length>p-2?5>p?'"..."':'"'+m.slice(0,p-5)+'..."':'"'+m+'"'}function uw(m,p,w){var z=120-w.length-m.length,$=[],J;for(J in p)if(p.hasOwnProperty(J)&&J!=="children"){var X=p6(p[J],120-w.length-J.length-1);z-=J.length+X.length+2,$.push(J+"="+X)}return $.length===0?w+"<"+m+`>
|
|
24
|
+
`:0<z?w+"<"+m+" "+$.join(" ")+`>
|
|
25
|
+
`:w+"<"+m+`
|
|
26
|
+
`+w+" "+$.join(`
|
|
27
|
+
`+w+" ")+`
|
|
28
|
+
`+w+`>
|
|
29
|
+
`}function GQ(m,p,w){var z="",$=C0({},p),J;for(J in m)if(m.hasOwnProperty(J)){delete $[J];var X=120-2*w-J.length-2,Y=B3(m[J],X);p.hasOwnProperty(J)?(X=B3(p[J],X),z+=m6(w)+J+": "+Y+`
|
|
30
|
+
`,z+=Z4(w)+J+": "+X+`
|
|
31
|
+
`):z+=m6(w)+J+": "+Y+`
|
|
32
|
+
`}for(var Z in $)$.hasOwnProperty(Z)&&(m=B3($[Z],120-2*w-Z.length-2),z+=Z4(w)+Z+": "+m+`
|
|
33
|
+
`);return z}function _Q(m,p,w,z){var $="",J=new Map;for(G in w)w.hasOwnProperty(G)&&J.set(G.toLowerCase(),G);if(J.size===1&&J.has("children"))$+=uw(m,p,K5(z));else{for(var X in p)if(p.hasOwnProperty(X)&&X!=="children"){var Y=120-2*(z+1)-X.length-1,Z=J.get(X.toLowerCase());if(Z!==void 0){J.delete(X.toLowerCase());var G=p[X];Z=w[Z];var H=p6(G,Y);Y=p6(Z,Y),typeof G==="object"&&G!==null&&typeof Z==="object"&&Z!==null&&xw(G)==="Object"&&xw(Z)==="Object"&&(2<Object.keys(G).length||2<Object.keys(Z).length||-1<H.indexOf("...")||-1<Y.indexOf("..."))?$+=K5(z+1)+X+`={{
|
|
34
|
+
`+GQ(G,Z,z+2)+K5(z+1)+`}}
|
|
35
|
+
`:($+=m6(z+1)+X+"="+H+`
|
|
36
|
+
`,$+=Z4(z+1)+X+"="+Y+`
|
|
37
|
+
`)}else $+=K5(z+1)+X+"="+p6(p[X],Y)+`
|
|
38
|
+
`}J.forEach(function(W){if(W!=="children"){var Q=120-2*(z+1)-W.length-1;$+=Z4(z+1)+W+"="+p6(w[W],Q)+`
|
|
39
|
+
`}}),$=$===""?K5(z)+"<"+m+`>
|
|
40
|
+
`:K5(z)+"<"+m+`
|
|
41
|
+
`+$+K5(z)+`>
|
|
42
|
+
`}if(m=w.children,p=p.children,typeof m==="string"||typeof m==="number"||typeof m==="bigint"){if(J="",typeof p==="string"||typeof p==="number"||typeof p==="bigint")J=""+p;$+=p8(J,""+m,z+1)}else if(typeof p==="string"||typeof p==="number"||typeof p==="bigint")$=m==null?$+p8(""+p,null,z+1):$+p8(""+p,void 0,z+1);return $}function rJ(m,p){var w=jJ(m);if(w===null){w="";for(m=m.child;m;)w+=rJ(m,p),m=m.sibling;return w}return K5(p)+"<"+w+`>
|
|
43
|
+
`}function Vw(m,p){var w=EJ(m,p);if(w!==m&&(m.children.length!==1||m.children[0]!==w))return K5(p)+`...
|
|
44
|
+
`+Vw(w,p+1);w="";var z=m.fiber._debugInfo;if(z)for(var $=0;$<z.length;$++){var J=z[$].name;typeof J==="string"&&(w+=K5(p)+"<"+J+`>
|
|
45
|
+
`,p++)}if(z="",$=m.fiber.pendingProps,m.fiber.tag===6)z=p8($,m.serverProps,p),p++;else if(J=jJ(m.fiber),J!==null)if(m.serverProps===void 0){z=p;var X=120-2*z-J.length-2,Y="";for(G in $)if($.hasOwnProperty(G)&&G!=="children"){var Z=p6($[G],15);if(X-=G.length+Z.length+2,0>X){Y+=" ...";break}Y+=" "+G+"="+Z}z=K5(z)+"<"+J+Y+`>
|
|
46
|
+
`,p++}else m.serverProps===null?(z=uw(J,$,m6(p)),p++):typeof m.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(z=_Q(J,$,m.serverProps,p),p++);var G="";$=m.fiber.child;for(J=0;$&&J<m.children.length;)X=m.children[J],X.fiber===$?(G+=Vw(X,p),J++):G+=rJ($,p),$=$.sibling;$&&0<m.children.length&&(G+=K5(p)+`...
|
|
47
|
+
`),$=m.serverTail,m.serverProps===null&&p--;for(m=0;m<$.length;m++)J=$[m],G=typeof J==="string"?G+(Z4(p)+Q3(J,120-2*p)+`
|
|
48
|
+
`):G+uw(J.type,J.props,Z4(p));return w+z+G}function iw(m){try{return`
|
|
49
|
+
|
|
50
|
+
`+Vw(m,0)}catch(p){return""}}function nJ(m,p,w){for(var z=p,$=null,J=0;z;)z===m&&(J=0),$={fiber:z,children:$!==null?[$]:[],serverProps:z===p?w:z===m?null:void 0,serverTail:[],distanceFromLeaf:J},J++,z=z.return;return $!==null?iw($).replaceAll(/^[+-]/gm,">"):""}function tJ(m,p){var w=C0({},m||w_),z={tag:p};if(p_.indexOf(p)!==-1&&(w.aTagInScope=null,w.buttonTagInScope=null,w.nobrTagInScope=null),KK.indexOf(p)!==-1&&(w.pTagInButtonScope=null),BK.indexOf(p)!==-1&&p!=="address"&&p!=="div"&&p!=="p"&&(w.listItemTagAutoclosing=null,w.dlItemTagAutoclosing=null),w.current=z,p==="form"&&(w.formTag=z),p==="a"&&(w.aTagInScope=z),p==="button"&&(w.buttonTagInScope=z),p==="nobr"&&(w.nobrTagInScope=z),p==="p"&&(w.pTagInButtonScope=z),p==="li"&&(w.listItemTagAutoclosing=z),p==="dd"||p==="dt")w.dlItemTagAutoclosing=z;return p==="#document"||p==="html"?w.containerTagInScope=null:w.containerTagInScope||(w.containerTagInScope=z),m!==null||p!=="#document"&&p!=="html"&&p!=="body"?w.implicitRootScope===!0&&(w.implicitRootScope=!1):w.implicitRootScope=!0,w}function sJ(m,p,w){switch(p){case"select":return m==="hr"||m==="option"||m==="optgroup"||m==="script"||m==="template"||m==="#text";case"optgroup":return m==="option"||m==="#text";case"option":return m==="#text";case"tr":return m==="th"||m==="td"||m==="style"||m==="script"||m==="template";case"tbody":case"thead":case"tfoot":return m==="tr"||m==="style"||m==="script"||m==="template";case"colgroup":return m==="col"||m==="template";case"table":return m==="caption"||m==="colgroup"||m==="tbody"||m==="tfoot"||m==="thead"||m==="style"||m==="script"||m==="template";case"head":return m==="base"||m==="basefont"||m==="bgsound"||m==="link"||m==="meta"||m==="title"||m==="noscript"||m==="noframes"||m==="style"||m==="script"||m==="template";case"html":if(w)break;return m==="head"||m==="body"||m==="frameset";case"frameset":return m==="frame";case"#document":if(!w)return m==="html"}switch(m){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return p!=="h1"&&p!=="h2"&&p!=="h3"&&p!=="h4"&&p!=="h5"&&p!=="h6";case"rp":case"rt":return HK.indexOf(p)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return p==null;case"head":return w||p===null;case"html":return w&&p==="#document"||p===null;case"body":return w&&(p==="#document"||p==="html")||p===null}return!0}function qQ(m,p){switch(m){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 p.pTagInButtonScope;case"form":return p.formTag||p.pTagInButtonScope;case"li":return p.listItemTagAutoclosing;case"dd":case"dt":return p.dlItemTagAutoclosing;case"button":return p.buttonTagInScope;case"a":return p.aTagInScope;case"nobr":return p.nobrTagInScope}return null}function eJ(m,p){for(;m;){switch(m.tag){case 5:case 26:case 27:if(m.type===p)return m}m=m.return}return null}function Dw(m,p){p=p||w_;var w=p.current;if(p=(w=sJ(m,w&&w.tag,p.implicitRootScope)?null:w)?null:qQ(m,p),p=w||p,!p)return!0;var z=p.tag;if(p=String(!!w)+"|"+m+"|"+z,Qp[p])return!1;Qp[p]=!0;var $=(p=F5)?eJ(p.return,z):null,J=p!==null&&$!==null?nJ($,p,null):"",X="<"+m+">";return w?(w="",z==="table"&&m==="tr"&&(w+=" 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`,X,z,w,J)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
52
|
+
This will cause a hydration error.%s`,X,z,J),p&&(m=p.return,$===null||m===null||$===m&&m._debugOwner===p._debugOwner||h($,function(){console.error(`<%s> cannot contain a nested %s.
|
|
53
|
+
See this log for the ancestor stack trace.`,z,X)})),!1}function w8(m,p,w){if(w||sJ("#text",p,!1))return!0;if(w="#text|"+p,Qp[w])return!1;Qp[w]=!0;var z=(w=F5)?eJ(w,p):null;return w=w!==null&&z!==null?nJ(z,w,w.tag!==6?{children:null}:null):"",/\S/.test(m)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
54
|
+
This will cause a hydration error.%s`,p,w):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`,p,w),!1}function K3(m,p){if(p){var w=m.firstChild;if(w&&w===m.lastChild&&w.nodeType===3){w.nodeValue=p;return}}m.textContent=p}function bQ(m){return m.replace(RK,function(p,w){return w.toUpperCase()})}function mX(m,p,w){var z=p.indexOf("--")===0;z||(-1<p.indexOf("-")?L6.hasOwnProperty(p)&&L6[p]||(L6[p]=!0,console.error("Unsupported style property %s. Did you mean %s?",p,bQ(p.replace(UK,"ms-")))):WK.test(p)?L6.hasOwnProperty(p)&&L6[p]||(L6[p]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",p,p.charAt(0).toUpperCase()+p.slice(1))):!J_.test(w)||X$.hasOwnProperty(w)&&X$[w]||(X$[w]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,p,w.replace(J_,""))),typeof w==="number"&&(isNaN(w)?X_||(X_=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",p)):isFinite(w)||Y_||(Y_=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",p)))),w==null||typeof w==="boolean"||w===""?z?m.setProperty(p,""):p==="float"?m.cssFloat="":m[p]="":z?m.setProperty(p,w):typeof w!=="number"||w===0||Z_.has(p)?p==="float"?m.cssFloat=w:(fw(w,p),m[p]=(""+w).trim()):m[p]=w+"px"}function pX(m,p,w){if(p!=null&&typeof p!=="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(p&&Object.freeze(p),m=m.style,w!=null){if(p){var z={};if(w){for(var $ in w)if(w.hasOwnProperty($)&&!p.hasOwnProperty($))for(var J=J$[$]||[$],X=0;X<J.length;X++)z[J[X]]=$}for(var Y in p)if(p.hasOwnProperty(Y)&&(!w||w[Y]!==p[Y]))for($=J$[Y]||[Y],J=0;J<$.length;J++)z[$[J]]=Y;Y={};for(var Z in p)for($=J$[Z]||[Z],J=0;J<$.length;J++)Y[$[J]]=Z;Z={};for(var G in z)if($=z[G],(J=Y[G])&&$!==J&&(X=$+","+J,!Z[X])){Z[X]=!0,X=console;var H=p[$];X.error.call(X,"%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.",H==null||typeof H==="boolean"||H===""?"Removing":"Updating",$,J)}}for(var W in w)!w.hasOwnProperty(W)||p!=null&&p.hasOwnProperty(W)||(W.indexOf("--")===0?m.setProperty(W,""):W==="float"?m.cssFloat="":m[W]="");for(var Q in p)G=p[Q],p.hasOwnProperty(Q)&&w[Q]!==G&&mX(m,Q,G)}else for(z in p)p.hasOwnProperty(z)&&mX(m,z,p[z])}function H3(m){if(m.indexOf("-")===-1)return!1;switch(m){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 wX(m){return OK.get(m)||m}function QQ(m,p){if(mm.call(M6,p)&&M6[p])return!0;if(NK.test(p)){if(m="aria-"+p.slice(4).toLowerCase(),m=G_.hasOwnProperty(m)?m:null,m==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",p),M6[p]=!0;if(p!==m)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",p,m),M6[p]=!0}if(LK.test(p)){if(m=p.toLowerCase(),m=G_.hasOwnProperty(m)?m:null,m==null)return M6[p]=!0,!1;p!==m&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",p,m),M6[p]=!0)}return!0}function BQ(m,p){var w=[],z;for(z in p)QQ(m,z)||w.push(z);p=w.map(function($){return"`"+$+"`"}).join(", "),w.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",p,m):1<w.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",p,m)}function KQ(m,p,w,z){if(mm.call(e1,p)&&e1[p])return!0;var $=p.toLowerCase();if($==="onfocusin"||$==="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."),e1[p]=!0;if(typeof w==="function"&&(m==="form"&&p==="action"||m==="input"&&p==="formAction"||m==="button"&&p==="formAction"))return!0;if(z!=null){if(m=z.possibleRegistrationNames,z.registrationNameDependencies.hasOwnProperty(p))return!0;if(z=m.hasOwnProperty($)?m[$]:null,z!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",p,z),e1[p]=!0;if(q_.test(p))return console.error("Unknown event handler property `%s`. It will be ignored.",p),e1[p]=!0}else if(q_.test(p))return MK.test(p)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",p),e1[p]=!0;if(FK.test(p)||yK.test(p))return!0;if($==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),e1[p]=!0;if($==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),e1[p]=!0;if($==="is"&&w!==null&&w!==void 0&&typeof w!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof w),e1[p]=!0;if(typeof w==="number"&&isNaN(w))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",p),e1[p]=!0;if(Kp.hasOwnProperty($)){if($=Kp[$],$!==p)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",p,$),e1[p]=!0}else if(p!==$)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.",p,$),e1[p]=!0;switch(p){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 w){case"boolean":switch(p){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($=p.toLowerCase().slice(0,5),$==="data-"||$==="aria-")return!0;return w?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()}.',w,p,p,w,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()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',w,p,p,w,p,p,p),e1[p]=!0}case"function":case"symbol":return e1[p]=!0,!1;case"string":if(w==="false"||w==="true"){switch(p){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}?",w,p,w==="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".',p,w),e1[p]=!0}}return!0}function HQ(m,p,w){var z=[],$;for($ in p)KQ(m,$,p[$],w)||z.push($);p=z.map(function(J){return"`"+J+"`"}).join(", "),z.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 ",p,m):1<z.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 ",p,m)}function W3(m){return CK.test(""+m)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":m}function dm(){}function cw(m){return m=m.target||m.srcElement||window,m.correspondingUseElement&&(m=m.correspondingUseElement),m.nodeType===3?m.parentNode:m}function zX(m){var p=H2(m);if(p&&(m=p.stateNode)){var w=m[s1]||null;m:switch(m=p.stateNode,p.type){case"input":if(gw(m,w.value,w.defaultValue,w.defaultValue,w.checked,w.defaultChecked,w.type,w.name),p=w.name,w.type==="radio"&&p!=null){for(w=m;w.parentNode;)w=w.parentNode;s0(p,"name"),w=w.querySelectorAll('input[name="'+S5(""+p)+'"][type="radio"]');for(p=0;p<w.length;p++){var z=w[p];if(z!==m&&z.form===m.form){var $=z[s1]||null;if(!$)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");gw(z,$.value,$.defaultValue,$.defaultValue,$.checked,$.defaultChecked,$.type,$.name)}}for(p=0;p<w.length;p++)z=w[p],z.form===m.form&&lJ(z)}break m;case"textarea":DJ(m,w.value,w.defaultValue);break m;case"select":p=w.value,p!=null&&e4(m,!!w.multiple,p,!1)}}}function $X(m,p,w){if(Y$)return m(p,w);Y$=!0;try{var z=m(p);return z}finally{if(Y$=!1,F6!==null||y6!==null){if(q6(),F6&&(p=F6,m=y6,y6=F6=null,zX(p),m))for(p=0;p<m.length;p++)zX(m[p])}}}function U3(m,p){var w=m.stateNode;if(w===null)return null;var z=w[s1]||null;if(z===null)return null;w=z[p];m:switch(p){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(z=!z.disabled)||(m=m.type,z=!(m==="button"||m==="input"||m==="select"||m==="textarea")),m=!z;break m;default:m=!1}if(m)return null;if(w&&typeof w!=="function")throw Error("Expected `"+p+"` listener to be a function, instead got a value of `"+typeof w+"` type.");return w}function JX(){if(Hp)return Hp;var m,p=G$,w=p.length,z,$="value"in A2?A2.value:A2.textContent,J=$.length;for(m=0;m<w&&p[m]===$[m];m++);var X=w-m;for(z=1;z<=X&&p[w-z]===$[J-z];z++);return Hp=$.slice(m,1<z?1-z:void 0)}function z8(m){var p=m.keyCode;return"charCode"in m?(m=m.charCode,m===0&&p===13&&(m=13)):m=p,m===10&&(m=13),32<=m||m===13?m:0}function $8(){return!0}function XX(){return!1}function X5(m){function p(w,z,$,J,X){this._reactName=w,this._targetInst=$,this.type=z,this.nativeEvent=J,this.target=X,this.currentTarget=null;for(var Y in m)m.hasOwnProperty(Y)&&(w=m[Y],this[Y]=w?w(J):J[Y]);return this.isDefaultPrevented=(J.defaultPrevented!=null?J.defaultPrevented:J.returnValue===!1)?$8:XX,this.isPropagationStopped=XX,this}return C0(p.prototype,{preventDefault:function(){this.defaultPrevented=!0;var w=this.nativeEvent;w&&(w.preventDefault?w.preventDefault():typeof w.returnValue!=="unknown"&&(w.returnValue=!1),this.isDefaultPrevented=$8)},stopPropagation:function(){var w=this.nativeEvent;w&&(w.stopPropagation?w.stopPropagation():typeof w.cancelBubble!=="unknown"&&(w.cancelBubble=!0),this.isPropagationStopped=$8)},persist:function(){},isPersistent:$8}),p}function WQ(m){var p=this.nativeEvent;return p.getModifierState?p.getModifierState(m):(m=gK[m])?!!p[m]:!1}function Ew(){return WQ}function YX(m,p){switch(m){case"keyup":return tK.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==K_;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ZX(m){return m=m.detail,typeof m==="object"&&"data"in m?m.data:null}function UQ(m,p){switch(m){case"compositionend":return ZX(p);case"keypress":if(p.which!==W_)return null;return R_=!0,U_;case"textInput":return m=p.data,m===U_&&R_?null:m;default:return null}}function RQ(m,p){if(C6)return m==="compositionend"||!Q$&&YX(m,p)?(m=JX(),Hp=G$=A2=null,C6=!1,m):null;switch(m){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1<p.char.length)return p.char;if(p.which)return String.fromCharCode(p.which)}return null;case"compositionend":return H_&&p.locale!=="ko"?null:p.data;default:return null}}function GX(m){var p=m&&m.nodeName&&m.nodeName.toLowerCase();return p==="input"?!!eK[m.type]:p==="textarea"?!0:!1}function OQ(m){if(!fm)return!1;m="on"+m;var p=m in document;return p||(p=document.createElement("div"),p.setAttribute(m,"return;"),p=typeof p[m]==="function"),p}function _X(m,p,w,z){F6?y6?y6.push(z):y6=[z]:F6=z,p=n8(p,"onChange"),0<p.length&&(w=new Wp("onChange","change",null,w,z),m.push({event:w,listeners:p}))}function LQ(m){cZ(m,0)}function J8(m){var p=b3(m);if(lJ(p))return m}function qX(m,p){if(m==="change")return p}function bX(){z7&&(z7.detachEvent("onpropertychange",QX),$7=z7=null)}function QX(m){if(m.propertyName==="value"&&J8($7)){var p=[];_X(p,$7,m,cw(m)),$X(LQ,p)}}function NQ(m,p,w){m==="focusin"?(bX(),z7=p,$7=w,z7.attachEvent("onpropertychange",QX)):m==="focusout"&&bX()}function MQ(m){if(m==="selectionchange"||m==="keyup"||m==="keydown")return J8($7)}function FQ(m,p){if(m==="click")return J8(p)}function yQ(m,p){if(m==="input"||m==="change")return J8(p)}function CQ(m,p){return m===p&&(m!==0||1/m===1/p)||m!==m&&p!==p}function R3(m,p){if(m5(m,p))return!0;if(typeof m!=="object"||m===null||typeof p!=="object"||p===null)return!1;var w=Object.keys(m),z=Object.keys(p);if(w.length!==z.length)return!1;for(z=0;z<w.length;z++){var $=w[z];if(!mm.call(p,$)||!m5(m[$],p[$]))return!1}return!0}function BX(m){for(;m&&m.firstChild;)m=m.firstChild;return m}function KX(m,p){var w=BX(m);m=0;for(var z;w;){if(w.nodeType===3){if(z=m+w.textContent.length,m<=p&&z>=p)return{node:w,offset:p-m};m=z}m:{for(;w;){if(w.nextSibling){w=w.nextSibling;break m}w=w.parentNode}w=void 0}w=BX(w)}}function HX(m,p){return m&&p?m===p?!0:m&&m.nodeType===3?!1:p&&p.nodeType===3?HX(m,p.parentNode):("contains"in m)?m.contains(p):m.compareDocumentPosition?!!(m.compareDocumentPosition(p)&16):!1:!1}function WX(m){m=m!=null&&m.ownerDocument!=null&&m.ownerDocument.defaultView!=null?m.ownerDocument.defaultView:window;for(var p=m8(m.document);p instanceof m.HTMLIFrameElement;){try{var w=typeof p.contentWindow.location.href==="string"}catch(z){w=!1}if(w)m=p.contentWindow;else break;p=m8(m.document)}return p}function jw(m){var p=m&&m.nodeName&&m.nodeName.toLowerCase();return p&&(p==="input"&&(m.type==="text"||m.type==="search"||m.type==="tel"||m.type==="url"||m.type==="password")||p==="textarea"||m.contentEditable==="true")}function UX(m,p,w){var z=w.window===w?w.document:w.nodeType===9?w:w.ownerDocument;K$||v6==null||v6!==m8(z)||(z=v6,("selectionStart"in z)&&jw(z)?z={start:z.selectionStart,end:z.selectionEnd}:(z=(z.ownerDocument&&z.ownerDocument.defaultView||window).getSelection(),z={anchorNode:z.anchorNode,anchorOffset:z.anchorOffset,focusNode:z.focusNode,focusOffset:z.focusOffset}),J7&&R3(J7,z)||(J7=z,z=n8(B$,"onSelect"),0<z.length&&(p=new Wp("onSelect","select",null,p,w),m.push({event:p,listeners:z}),p.target=v6)))}function G4(m,p){var w={};return w[m.toLowerCase()]=p.toLowerCase(),w["Webkit"+m]="webkit"+p,w["Moz"+m]="moz"+p,w}function _4(m){if(H$[m])return H$[m];if(!P6[m])return m;var p=P6[m],w;for(w in p)if(p.hasOwnProperty(w)&&w in L_)return H$[m]=p[w];return m}function t5(m,p){C_.set(m,p),Y4(p,[m])}function vQ(m){for(var p=Rp,w=0;w<m.length;w++){var z=m[w];if(typeof z==="object"&&z!==null)if(P1(z)&&z.length===2&&typeof z[0]==="string"){if(p!==Rp&&p!==L$)return R$;p=L$}else return R$;else{if(typeof z==="function"||typeof z==="string"&&50<z.length||p!==Rp&&p!==O$)return R$;p=O$}}return p}function rw(m,p,w,z){for(var $ in m)mm.call(m,$)&&$[0]!=="_"&&Zm($,m[$],p,w,z)}function Zm(m,p,w,z,$){switch(typeof p){case"object":if(p===null){p="null";break}else{if(p.$$typeof===Fm){var J=G0(p.type)||"…",X=p.key;p=p.props;var Y=Object.keys(p),Z=Y.length;if(X==null&&Z===0){p="<"+J+" />";break}if(3>z||Z===1&&Y[0]==="children"&&X==null){p="<"+J+" … />";break}w.push([$+" ".repeat(z)+m,"<"+J]),X!==null&&Zm("key",X,w,z+1,$),m=!1;for(var G in p)G==="children"?p.children!=null&&(!P1(p.children)||0<p.children.length)&&(m=!0):mm.call(p,G)&&G[0]!=="_"&&Zm(G,p[G],w,z+1,$);w.push(["",m?">…</"+J+">":"/>"]);return}if(J=Object.prototype.toString.call(p),J=J.slice(8,J.length-1),J==="Array"){if(G=vQ(p),G===O$||G===Rp){p=JSON.stringify(p);break}else if(G===L$){w.push([$+" ".repeat(z)+m,""]);for(m=0;m<p.length;m++)J=p[m],Zm(J[0],J[1],w,z+1,$);return}}if(J==="Promise"){if(p.status==="fulfilled"){if(J=w.length,Zm(m,p.value,w,z,$),w.length>J){w=w[J],w[1]="Promise<"+(w[1]||"Object")+">";return}}else if(p.status==="rejected"&&(J=w.length,Zm(m,p.reason,w,z,$),w.length>J)){w=w[J],w[1]="Rejected Promise<"+w[1]+">";return}w.push([" ".repeat(z)+m,"Promise"]);return}J==="Object"&&(G=Object.getPrototypeOf(p))&&typeof G.constructor==="function"&&(J=G.constructor.name),w.push([$+" ".repeat(z)+m,J==="Object"?3>z?"":"…":J]),3>z&&rw(p,w,z+1,$);return}case"function":p=p.name===""?"() => {}":p.name+"() {}";break;case"string":p=p===XH?"…":JSON.stringify(p);break;case"undefined":p="undefined";break;case"boolean":p=p?"true":"false";break;default:p=String(p)}w.push([$+" ".repeat(z)+m,p])}function RX(m,p,w,z){var $=!0;for(X in m)X in p||(w.push([Op+" ".repeat(z)+X,"…"]),$=!1);for(var J in p)if(J in m){var X=m[J],Y=p[J];if(X!==Y){if(z===0&&J==="children")$=" ".repeat(z)+J,w.push([Op+$,"…"],[Lp+$,"…"]);else{if(!(3<=z)){if(typeof X==="object"&&typeof Y==="object"&&X!==null&&Y!==null&&X.$$typeof===Y.$$typeof)if(Y.$$typeof===Fm){if(X.type===Y.type&&X.key===Y.key){X=G0(Y.type)||"…",$=" ".repeat(z)+J,X="<"+X+" … />",w.push([Op+$,X],[Lp+$,X]),$=!1;continue}}else{var Z=Object.prototype.toString.call(X),G=Object.prototype.toString.call(Y);if(Z===G&&(G==="[object Object]"||G==="[object Array]")){Z=[I_+" ".repeat(z)+J,G==="[object Array]"?"Array":""],w.push(Z),G=w.length,RX(X,Y,w,z+1)?G===w.length&&(Z[1]="Referentially unequal but deeply equal objects. Consider memoization."):$=!1;continue}}else if(typeof X==="function"&&typeof Y==="function"&&X.name===Y.name&&X.length===Y.length&&(Z=Function.prototype.toString.call(X),G=Function.prototype.toString.call(Y),Z===G)){X=Y.name===""?"() => {}":Y.name+"() {}",w.push([I_+" ".repeat(z)+J,X+" Referentially unequal function closure. Consider memoization."]);continue}}Zm(J,X,w,z,Op),Zm(J,Y,w,z,Lp)}$=!1}}else w.push([Lp+" ".repeat(z)+J,"…"]),$=!1;return $}function H5(m){P0=m&63?"Blocking":m&64?"Gesture":m&4194176?"Transition":m&62914560?"Suspense":m&2080374784?"Idle":"Other"}function Gm(m,p,w,z){e0&&(h2.start=p,h2.end=w,rm.color="warning",rm.tooltipText=z,rm.properties=null,(m=m._debugTask)?m.run(performance.measure.bind(performance,z,h2)):performance.measure(z,h2))}function X8(m,p,w){Gm(m,p,w,"Reconnect")}function Y8(m,p,w,z,$){var J=f(m);if(J!==null&&e0){var{alternate:X,actualDuration:Y}=m;if(X===null||X.child!==m.child)for(var Z=m.child;Z!==null;Z=Z.sibling)Y-=Z.actualDuration;z=0.5>Y?z?"tertiary-light":"primary-light":10>Y?z?"tertiary":"primary":100>Y?z?"tertiary-dark":"primary-dark":"error";var G=m.memoizedProps;Y=m._debugTask,G!==null&&X!==null&&X.memoizedProps!==G?(Z=[YH],G=RX(X.memoizedProps,G,Z,0),1<Z.length&&(G&&!S2&&(X.lanes&$)===0&&100<m.actualDuration?(S2=!0,Z[0]=ZH,rm.color="warning",rm.tooltipText=f_):(rm.color=z,rm.tooltipText=J),rm.properties=Z,h2.start=p,h2.end=w,Y!=null?Y.run(performance.measure.bind(performance,""+J,h2)):performance.measure(""+J,h2))):Y!=null?Y.run(console.timeStamp.bind(console,J,p,w,o5,void 0,z)):console.timeStamp(J,p,w,o5,void 0,z)}}function nw(m,p,w,z){if(e0){var $=f(m);if($!==null){for(var J=null,X=[],Y=0;Y<z.length;Y++){var Z=z[Y];J==null&&Z.source!==null&&(J=Z.source._debugTask),Z=Z.value,X.push(["Error",typeof Z==="object"&&Z!==null&&typeof Z.message==="string"?String(Z.message):String(Z)])}m.key!==null&&Zm("key",m.key,X,0,""),m.memoizedProps!==null&&rw(m.memoizedProps,X,0,""),J==null&&(J=m._debugTask),m={start:p,end:w,detail:{devtools:{color:"error",track:o5,tooltipText:m.tag===13?"Hydration failed":"Error boundary caught an error",properties:X}}},J?J.run(performance.measure.bind(performance,""+$,m)):performance.measure(""+$,m)}}}function _m(m,p,w,z,$){if($!==null){if(e0){var J=f(m);if(J!==null){z=[];for(var X=0;X<$.length;X++){var Y=$[X].value;z.push(["Error",typeof Y==="object"&&Y!==null&&typeof Y.message==="string"?String(Y.message):String(Y)])}m.key!==null&&Zm("key",m.key,z,0,""),m.memoizedProps!==null&&rw(m.memoizedProps,z,0,""),p={start:p,end:w,detail:{devtools:{color:"error",track:o5,tooltipText:"A lifecycle or effect errored",properties:z}}},(m=m._debugTask)?m.run(performance.measure.bind(performance,""+J,p)):performance.measure(""+J,p)}}}else J=f(m),J!==null&&e0&&($=1>z?"secondary-light":100>z?"secondary":500>z?"secondary-dark":"error",(m=m._debugTask)?m.run(console.timeStamp.bind(console,J,p,w,o5,void 0,$)):console.timeStamp(J,p,w,o5,void 0,$))}function PQ(m,p,w,z){if(e0&&!(p<=m)){var $=(w&738197653)===w?"tertiary-dark":"primary-dark";w=(w&536870912)===w?"Prepared":(w&201326741)===w?"Hydrated":"Render",z?z.run(console.timeStamp.bind(console,w,m,p,P0,v0,$)):console.timeStamp(w,m,p,P0,v0,$)}}function OX(m,p,w,z){!e0||p<=m||(w=(w&738197653)===w?"tertiary-dark":"primary-dark",z?z.run(console.timeStamp.bind(console,"Prewarm",m,p,P0,v0,w)):console.timeStamp("Prewarm",m,p,P0,v0,w))}function LX(m,p,w,z){!e0||p<=m||(w=(w&738197653)===w?"tertiary-dark":"primary-dark",z?z.run(console.timeStamp.bind(console,"Suspended",m,p,P0,v0,w)):console.timeStamp("Suspended",m,p,P0,v0,w))}function IQ(m,p,w,z,$,J){if(e0&&!(p<=m)){w=[];for(var X=0;X<z.length;X++){var Y=z[X].value;w.push(["Recoverable Error",typeof Y==="object"&&Y!==null&&typeof Y.message==="string"?String(Y.message):String(Y)])}m={start:m,end:p,detail:{devtools:{color:"primary-dark",track:P0,trackGroup:v0,tooltipText:$?"Hydration Failed":"Recovered after Error",properties:w}}},J?J.run(performance.measure.bind(performance,"Recovered",m)):performance.measure("Recovered",m)}}function tw(m,p,w,z){!e0||p<=m||(z?z.run(console.timeStamp.bind(console,"Errored",m,p,P0,v0,"error")):console.timeStamp("Errored",m,p,P0,v0,"error"))}function fQ(m,p,w,z){!e0||p<=m||(z?z.run(console.timeStamp.bind(console,w,m,p,P0,v0,"secondary-light")):console.timeStamp(w,m,p,P0,v0,"secondary-light"))}function NX(m,p,w,z,$){if(e0&&!(p<=m)){for(var J=[],X=0;X<w.length;X++){var Y=w[X].value;J.push(["Error",typeof Y==="object"&&Y!==null&&typeof Y.message==="string"?String(Y.message):String(Y)])}m={start:m,end:p,detail:{devtools:{color:"error",track:P0,trackGroup:v0,tooltipText:z?"Remaining Effects Errored":"Commit Errored",properties:J}}},$?$.run(performance.measure.bind(performance,"Errored",m)):performance.measure("Errored",m)}}function O3(m,p,w){!e0||p<=m||(w?w.run(console.timeStamp.bind(console,"Animating",m,p,P0,v0,"secondary-dark")):console.timeStamp("Animating",m,p,P0,v0,"secondary-dark"))}function Z8(){for(var m=I6,p=N$=I6=0;p<m;){var w=a5[p];a5[p++]=null;var z=a5[p];a5[p++]=null;var $=a5[p];a5[p++]=null;var J=a5[p];if(a5[p++]=null,z!==null&&$!==null){var X=z.pending;X===null?$.next=$:($.next=X.next,X.next=$),z.pending=$}J!==0&&MX(w,$,J)}}function G8(m,p,w,z){a5[I6++]=m,a5[I6++]=p,a5[I6++]=w,a5[I6++]=z,N$|=z,m.lanes|=z,m=m.alternate,m!==null&&(m.lanes|=z)}function sw(m,p,w,z){return G8(m,p,w,z),_8(m)}function c1(m,p){return G8(m,null,null,p),_8(m)}function MX(m,p,w){m.lanes|=w;var z=m.alternate;z!==null&&(z.lanes|=w);for(var $=!1,J=m.return;J!==null;)J.childLanes|=w,z=J.alternate,z!==null&&(z.childLanes|=w),J.tag===22&&(m=J.stateNode,m===null||m._visibility&X7||($=!0)),m=J,J=J.return;return m.tag===3?(J=m.stateNode,$&&p!==null&&($=31-t1(w),m=J.hiddenUpdates,z=m[$],z===null?m[$]=[p]:z.push(p),p.lane=w|536870912),J):null}function _8(m){if(A7>MH)throw g4=A7=0,S7=pJ=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.");g4>FH&&(g4=0,S7=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.")),m.alternate===null&&(m.flags&4098)!==0&&gZ(m);for(var p=m,w=p.return;w!==null;)p.alternate===null&&(p.flags&4098)!==0&&gZ(m),p=w,w=p.return;return p.tag===3?p.stateNode:null}function q4(m){if(l5===null)return m;var p=l5(m);return p===void 0?m:p.current}function ew(m){if(l5===null)return m;var p=l5(m);return p===void 0?m!==null&&m!==void 0&&typeof m.render==="function"&&(p=q4(m.render),m.render!==p)?(p={$$typeof:j3,render:p},m.displayName!==void 0&&(p.displayName=m.displayName),p):m:p.current}function FX(m,p){if(l5===null)return!1;var w=m.elementType;p=p.type;var z=!1,$=typeof p==="object"&&p!==null?p.$$typeof:null;switch(m.tag){case 1:typeof p==="function"&&(z=!0);break;case 0:typeof p==="function"?z=!0:$===M5&&(z=!0);break;case 11:$===j3?z=!0:$===M5&&(z=!0);break;case 14:case 15:$===Yp?z=!0:$===M5&&(z=!0);break;default:return!1}return z&&(m=l5(w),m!==void 0&&m===l5(p))?!0:!1}function yX(m){l5!==null&&typeof WeakSet==="function"&&(f6===null&&(f6=new WeakSet),f6.add(m))}function CX(m,p,w){do{var z=m,$=z.alternate,J=z.child,X=z.sibling,Y=z.tag;z=z.type;var Z=null;switch(Y){case 0:case 15:case 1:Z=z;break;case 11:Z=z.render}if(l5===null)throw Error("Expected resolveFamily to be set during hot reload.");var G=!1;if(z=!1,Z!==null&&(Z=l5(Z),Z!==void 0&&(w.has(Z)?z=!0:p.has(Z)&&(Y===1?z=!0:G=!0))),f6!==null&&(f6.has(m)||$!==null&&f6.has($))&&(z=!0),z&&(m._debugNeedsRemount=!0),z||G)$=c1(m,2),$!==null&&q1($,m,2);if(J===null||z||CX(J,p,w),X===null)break;m=X}while(1)}function TQ(m,p,w,z){this.tag=m,this.key=w,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=z,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,T_||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function m9(m){return m=m.prototype,!(!m||!m.isReactComponent)}function xm(m,p){var w=m.alternate;switch(w===null?(w=x(m.tag,p,m.key,m.mode),w.elementType=m.elementType,w.type=m.type,w.stateNode=m.stateNode,w._debugOwner=m._debugOwner,w._debugStack=m._debugStack,w._debugTask=m._debugTask,w._debugHookTypes=m._debugHookTypes,w.alternate=m,m.alternate=w):(w.pendingProps=p,w.type=m.type,w.flags=0,w.subtreeFlags=0,w.deletions=null,w.actualDuration=-0,w.actualStartTime=-1.1),w.flags=m.flags&65011712,w.childLanes=m.childLanes,w.lanes=m.lanes,w.child=m.child,w.memoizedProps=m.memoizedProps,w.memoizedState=m.memoizedState,w.updateQueue=m.updateQueue,p=m.dependencies,w.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext,_debugThenableState:p._debugThenableState},w.sibling=m.sibling,w.index=m.index,w.ref=m.ref,w.refCleanup=m.refCleanup,w.selfBaseDuration=m.selfBaseDuration,w.treeBaseDuration=m.treeBaseDuration,w._debugInfo=m._debugInfo,w._debugNeedsRemount=m._debugNeedsRemount,w.tag){case 0:case 15:w.type=q4(m.type);break;case 1:w.type=q4(m.type);break;case 11:w.type=ew(m.type)}return w}function vX(m,p){m.flags&=65011714;var w=m.alternate;return w===null?(m.childLanes=0,m.lanes=p,m.child=null,m.subtreeFlags=0,m.memoizedProps=null,m.memoizedState=null,m.updateQueue=null,m.dependencies=null,m.stateNode=null,m.selfBaseDuration=0,m.treeBaseDuration=0):(m.childLanes=w.childLanes,m.lanes=w.lanes,m.child=w.child,m.subtreeFlags=0,m.deletions=null,m.memoizedProps=w.memoizedProps,m.memoizedState=w.memoizedState,m.updateQueue=w.updateQueue,m.type=w.type,p=w.dependencies,m.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext,_debugThenableState:p._debugThenableState},m.selfBaseDuration=w.selfBaseDuration,m.treeBaseDuration=w.treeBaseDuration),m}function p9(m,p,w,z,$,J){var X=0,Y=m;if(typeof m==="function")m9(m)&&(X=1),Y=q4(Y);else if(typeof m==="string")X=z0(),X=dB(m,w,X)?26:m==="html"||m==="head"||m==="body"?27:5;else m:switch(m){case Ez:return p=x(31,w,p,$),p.elementType=Ez,p.lanes=J,p;case U6:return b4(w.children,$,J,p);case Xp:X=8,$|=j1,$|=wm;break;case Vz:return m=w,z=$,typeof m.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof m.id),p=x(12,m,p,z|O0),p.elementType=Vz,p.lanes=J,p.stateNode={effectDuration:0,passiveEffectDuration:0},p;case Dz:return p=x(13,w,p,$),p.elementType=Dz,p.lanes=J,p;case cz:return p=x(19,w,p,$),p.elementType=cz,p.lanes=J,p;default:if(typeof m==="object"&&m!==null)switch(m.$$typeof){case ym:X=10;break m;case iz:X=9;break m;case j3:X=11,Y=ew(Y);break m;case Yp:X=14;break m;case M5:X=16,Y=null;break m}if(Y="",m===void 0||typeof m==="object"&&m!==null&&Object.keys(m).length===0)Y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";m===null?w="null":P1(m)?w="array":m!==void 0&&m.$$typeof===Fm?(w="<"+(G0(m.type)||"Unknown")+" />",Y=" Did you accidentally export a JSX literal instead of a component?"):w=typeof m,(X=z?_1(z):null)&&(Y+=`
|
|
56
|
+
|
|
57
|
+
Check the render method of \``+X+"`."),X=29,w=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(w+"."+Y)),Y=null}return p=x(X,w,p,$),p.elementType=m,p.type=Y,p.lanes=J,p._debugOwner=z,p}function q8(m,p,w){return p=p9(m.type,m.key,m.props,m._owner,p,w),p._debugOwner=m._owner,p._debugStack=m._debugStack,p._debugTask=m._debugTask,p}function b4(m,p,w,z){return m=x(7,m,z,p),m.lanes=w,m}function w9(m,p,w){return m=x(6,m,null,p),m.lanes=w,m}function PX(m){var p=x(18,null,null,Q0);return p.stateNode=m,p}function z9(m,p,w){return p=x(4,m.children!==null?m.children:[],m.key,p),p.lanes=w,p.stateNode={containerInfo:m.containerInfo,pendingChildren:null,implementation:m.implementation},p}function W5(m,p){if(typeof m==="object"&&m!==null){var w=M$.get(m);if(w!==void 0)return w;return p={value:m,source:p,stack:e(p)},M$.set(m,p),p}return{value:m,source:p,stack:e(p)}}function um(m,p){W2(),T6[k6++]=Y7,T6[k6++]=Np,Np=m,Y7=p}function IX(m,p,w){W2(),g5[d5++]=tm,g5[d5++]=sm,g5[d5++]=y4,y4=m;var z=tm;m=sm;var $=32-t1(z)-1;z&=~(1<<$),w+=1;var J=32-t1(p)+$;if(30<J){var X=$-$%5;J=(z&(1<<X)-1).toString(32),z>>=X,$-=X,tm=1<<32-t1(p)+$|w<<$|z,sm=J+m}else tm=1<<J|w<<$|z,sm=m}function $9(m){W2(),m.return!==null&&(um(m,1),IX(m,1,0))}function J9(m){for(;m===Np;)Np=T6[--k6],T6[k6]=null,Y7=T6[--k6],T6[k6]=null;for(;m===y4;)y4=g5[--d5],g5[d5]=null,sm=g5[--d5],g5[d5]=null,tm=g5[--d5],g5[d5]=null}function fX(){return W2(),y4!==null?{id:tm,overflow:sm}:null}function TX(m,p){W2(),g5[d5++]=tm,g5[d5++]=sm,g5[d5++]=y4,tm=p.id,sm=p.overflow,y4=m}function W2(){I0||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Q4(m,p){if(m.return===null){if(C5===null)C5={fiber:m,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:p};else{if(C5.fiber!==m)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");C5.distanceFromLeaf>p&&(C5.distanceFromLeaf=p)}return C5}var w=Q4(m.return,p+1).children;if(0<w.length&&w[w.length-1].fiber===m)return w=w[w.length-1],w.distanceFromLeaf>p&&(w.distanceFromLeaf=p),w;return p={fiber:m,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:p},w.push(p),p}function kX(){I0&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function b8(m,p){Tm||(m=Q4(m,0),m.serverProps=null,p!==null&&(p=_G(p),m.serverTail.push(p)))}function U2(m){var p=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,w="",z=C5;throw z!==null&&(C5=null,w=iw(z)),L3(W5(Error("Hydration failed because the server rendered "+(p?"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`+w),m)),F$}function AX(m){var{stateNode:p,type:w,memoizedProps:z}=m;switch(p[V1]=m,p[s1]=z,yz(w,z),w){case"dialog":f0("cancel",p),f0("close",p);break;case"iframe":case"object":case"embed":f0("load",p);break;case"video":case"audio":for(w=0;w<h7.length;w++)f0(h7[w],p);break;case"source":f0("error",p);break;case"img":case"image":case"link":f0("error",p),f0("load",p);break;case"details":f0("toggle",p);break;case"input":s4("input",z),f0("invalid",p),gJ(p,z),dJ(p,z.value,z.defaultValue,z.checked,z.defaultChecked,z.type,z.name,!0);break;case"option":xJ(p,z);break;case"select":s4("select",z),f0("invalid",p),VJ(p,z);break;case"textarea":s4("textarea",z),f0("invalid",p),iJ(p,z),cJ(p,z.value,z.defaultValue,z.children)}w=z.children,typeof w!=="string"&&typeof w!=="number"&&typeof w!=="bigint"||p.textContent===""+w||z.suppressHydrationWarning===!0||nZ(p.textContent,w)?(z.popover!=null&&(f0("beforetoggle",p),f0("toggle",p)),z.onScroll!=null&&f0("scroll",p),z.onScrollEnd!=null&&f0("scrollend",p),z.onClick!=null&&(p.onclick=dm),p=!0):p=!1,p||U2(m,!0)}function SX(m){for(i1=m.return;i1;)switch(i1.tag){case 5:case 31:case 13:x5=!1;return;case 27:case 3:x5=!0;return;default:i1=i1.return}}function w6(m){if(m!==i1)return!1;if(!I0)return SX(m),I0=!0,!1;var p=m.tag,w;if(w=p!==3&&p!==27){if(w=p===5)w=m.type,w=!(w!=="form"&&w!=="button")||fz(m.type,m.memoizedProps);w=!w}if(w&&m1){for(w=m1;w;){var z=Q4(m,0),$=_G(w);z.serverTail.push($),w=$.type==="Suspense"?Sz(w):N5(w.nextSibling)}U2(m)}if(SX(m),p===13){if(m=m.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");m1=Sz(m)}else if(p===31){if(m=m.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");m1=Sz(m)}else p===27?(p=m1,P2(m.type)?(m=QJ,QJ=null,m1=m):m1=p):m1=i1?N5(m.stateNode.nextSibling):null;return!0}function B4(){m1=i1=null,Tm=I0=!1}function X9(){var m=a2;return m!==null&&($5===null?$5=m:$5.push.apply($5,m),a2=null),m}function L3(m){a2===null?a2=[m]:a2.push(m)}function Y9(){var m=C5;if(m!==null){C5=null;for(var p=iw(m);0<m.children.length;)m=m.children[0];h(m.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",p)})}}function Q8(){A6=Mp=null,S6=!1}function R2(m,p,w){I(y$,p._currentValue,m),p._currentValue=w,I(C$,p._currentRenderer,m),p._currentRenderer!==void 0&&p._currentRenderer!==null&&p._currentRenderer!==A_&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),p._currentRenderer=A_}function Vm(m,p){m._currentValue=y$.current;var w=C$.current;T(C$,p),m._currentRenderer=w,T(y$,p)}function Z9(m,p,w){for(;m!==null;){var z=m.alternate;if((m.childLanes&p)!==p?(m.childLanes|=p,z!==null&&(z.childLanes|=p)):z!==null&&(z.childLanes&p)!==p&&(z.childLanes|=p),m===w)break;m=m.return}m!==w&&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 G9(m,p,w,z){var $=m.child;$!==null&&($.return=m);for(;$!==null;){var J=$.dependencies;if(J!==null){var X=$.child;J=J.firstContext;m:for(;J!==null;){var Y=J;J=$;for(var Z=0;Z<p.length;Z++)if(Y.context===p[Z]){J.lanes|=w,Y=J.alternate,Y!==null&&(Y.lanes|=w),Z9(J.return,w,m),z||(X=null);break m}J=Y.next}}else if($.tag===18){if(X=$.return,X===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");X.lanes|=w,J=X.alternate,J!==null&&(J.lanes|=w),Z9(X,w,m),X=null}else X=$.child;if(X!==null)X.return=$;else for(X=$;X!==null;){if(X===m){X=null;break}if($=X.sibling,$!==null){$.return=X.return,X=$;break}X=X.return}$=X}}function z6(m,p,w,z){m=null;for(var $=p,J=!1;$!==null;){if(!J){if(($.flags&524288)!==0)J=!0;else if(($.flags&262144)!==0)break}if($.tag===10){var X=$.alternate;if(X===null)throw Error("Should have a current fiber. This is a bug in React.");if(X=X.memoizedProps,X!==null){var Y=$.type;m5($.pendingProps.value,X.value)||(m!==null?m.push(Y):m=[Y])}}else if($===Zp.current){if(X=$.alternate,X===null)throw Error("Should have a current fiber. This is a bug in React.");X.memoizedState.memoizedState!==$.memoizedState.memoizedState&&(m!==null?m.push(d7):m=[d7])}$=$.return}m!==null&&G9(p,m,w,z),p.flags|=262144}function B8(m){for(m=m.firstContext;m!==null;){if(!m5(m.context._currentValue,m.memoizedValue))return!0;m=m.next}return!1}function K4(m){Mp=m,A6=null,m=m.dependencies,m!==null&&(m.firstContext=null)}function $1(m){return S6&&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()."),hX(Mp,m)}function K8(m,p){return Mp===null&&K4(m),hX(m,p)}function hX(m,p){var w=p._currentValue;if(p={context:p,memoizedValue:w,next:null},A6===null){if(m===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().");A6=p,m.dependencies={lanes:0,firstContext:p,_debugThenableState:null},m.flags|=524288}else A6=A6.next=p;return w}function _9(){return{controller:new qH,data:new Map,refCount:0}}function H4(m){m.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),m.refCount++}function N3(m){m.refCount--,0>m.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),m.refCount===0&&bH(QH,function(){m.controller.abort()})}function qm(m,p,w){if((m&127)!==0)0>km&&(km=O1(),G7=Fp(p),v$=p,w!=null&&(P$=f(w)),(k0&(f1|I5))!==g1&&(b1=!0,d2=Z7),m=V3(),p=u3(),m!==h6||p!==_7?h6=-1.1:p!==null&&(d2=Z7),v4=m,_7=p);else if((m&4194048)!==0&&0>u5&&(u5=O1(),q7=Fp(p),S_=p,w!=null&&(h_=f(w)),0>p2)){if(m=V3(),p=u3(),m!==u2||p!==P4)u2=-1.1;x2=m,P4=p}}function kQ(m){if(0>km){km=O1(),G7=m._debugTask!=null?m._debugTask:null,(k0&(f1|I5))!==g1&&(d2=Z7);var p=V3(),w=u3();p!==h6||w!==_7?h6=-1.1:w!==null&&(d2=Z7),v4=p,_7=w}if(0>u5&&(u5=O1(),q7=m._debugTask!=null?m._debugTask:null,0>p2)){if(m=V3(),p=u3(),m!==u2||p!==P4)u2=-1.1;x2=m,P4=p}}function im(){var m=C4;return C4=0,m}function H8(m){var p=C4;return C4=m,p}function M3(m){var p=C4;return C4+=m,p}function W8(){_0=Y0=-1.1}function U5(){var m=Y0;return Y0=-1.1,m}function R5(m){0<=m&&(Y0=m)}function bm(){var m=Z1;return Z1=-0,m}function Qm(m){0<=m&&(Z1=m)}function Bm(){var m=J1;return J1=null,m}function Km(){var m=b1;return b1=!1,m}function q9(m){p5=O1(),0>m.actualStartTime&&(m.actualStartTime=p5)}function b9(m){if(0<=p5){var p=O1()-p5;m.actualDuration+=p,m.selfBaseDuration=p,p5=-1}}function oX(m){if(0<=p5){var p=O1()-p5;m.actualDuration+=p,p5=-1}}function Hm(){if(0<=p5){var m=O1(),p=m-p5;p5=-1,C4+=p,Z1+=p,_0=m}}function aX(m){J1===null&&(J1=[]),J1.push(m),m2===null&&(m2=[]),m2.push(m)}function Wm(){p5=O1(),0>Y0&&(Y0=p5)}function F3(m){for(var p=m.child;p;)m.actualDuration+=p.actualDuration,p=p.sibling}function AQ(m,p){if(Q7===null){var w=Q7=[];f$=0,I4=Lz(),o6={status:"pending",value:void 0,then:function(z){w.push(z)}}}return f$++,p.then(lX,lX),p}function lX(){if(--f$===0&&(-1<u5||(p2=-1.1),Q7!==null)){o6!==null&&(o6.status="fulfilled");var m=Q7;Q7=null,I4=0,o6=null;for(var p=0;p<m.length;p++)(0,m[p])()}}function SQ(m,p){var w=[],z={status:"pending",value:null,reason:null,then:function($){w.push($)}};return m.then(function(){z.status="fulfilled",z.value=p;for(var $=0;$<w.length;$++)(0,w[$])(p)},function($){z.status="rejected",z.reason=$;for($=0;$<w.length;$++)(0,w[$])(void 0)}),z}function Q9(){var m=f4.current;return m!==null?m:D0.pooledCache}function U8(m,p){p===null?I(f4,f4.current,m):I(f4,p.pool,m)}function gX(){var m=Q9();return m===null?null:{parent:R1._currentValue,pool:m}}function dX(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function xX(m){return m=m.status,m==="fulfilled"||m==="rejected"}function uX(m,p,w){M.actQueue!==null&&(M.didUsePromise=!0);var z=m.thenables;if(w=z[w],w===void 0?z.push(p):w!==p&&(m.didWarnAboutUncachedPromise||(m.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.")),p.then(dm,dm),p=w),p._debugInfo===void 0){m=performance.now(),z=p.displayName;var $={name:typeof z==="string"?z:"Promise",start:m,end:m,value:p};p._debugInfo=[{awaited:$}],p.status!=="fulfilled"&&p.status!=="rejected"&&(m=function(){$.end=performance.now()},p.then(m,m))}switch(p.status){case"fulfilled":return p.value;case"rejected":throw m=p.reason,iX(m),m;default:if(typeof p.status==="string")p.then(dm,dm);else{if(m=D0,m!==null&&100<m.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.");m=p,m.status="pending",m.then(function(J){if(p.status==="pending"){var X=p;X.status="fulfilled",X.value=J}},function(J){if(p.status==="pending"){var X=p;X.status="rejected",X.reason=J}})}switch(p.status){case"fulfilled":return p.value;case"rejected":throw m=p.reason,iX(m),m}throw k4=p,O7=!0,a6}}function O2(m){try{return WH(m)}catch(p){if(p!==null&&typeof p==="object"&&typeof p.then==="function")throw k4=p,O7=!0,a6;throw p}}function VX(){if(k4===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var m=k4;return k4=null,O7=!1,m}function iX(m){if(m===a6||m===kp)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 d1(m){var p=L0;return m!=null&&(L0=p===null?m:p.concat(m)),p}function B9(){var m=L0;if(m!=null){for(var p=m.length-1;0<=p;p--)if(m[p].name!=null){var w=m[p].debugTask;if(w!=null)return w}}return null}function R8(m,p,w){for(var z=Object.keys(m.props),$=0;$<z.length;$++){var J=z[$];if(J!=="children"&&J!=="key"){p===null&&(p=q8(m,w.mode,0),p._debugInfo=L0,p.return=w),h(p,function(X){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",X)},J);break}}}function O8(m){var p=L7;return L7+=1,l6===null&&(l6=dX()),uX(l6,m,p)}function y3(m,p){p=p.props.ref,m.ref=p!==void 0?p:null}function DX(m,p){if(p.$$typeof===nB)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 m=Object.prototype.toString.call(p),Error("Objects are not valid as a React child (found: "+(m==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":m)+"). If you meant to render a collection of children, use an array instead.")}function L8(m,p){var w=B9();w!==null?w.run(DX.bind(null,m,p)):DX(m,p)}function cX(m,p){var w=f(m)||"Component";pq[w]||(pq[w]=!0,p=p.displayName||p.name||"Component",m.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)`,p,p,p):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>`,p,p,w,p,w))}function N8(m,p){var w=B9();w!==null?w.run(cX.bind(null,m,p)):cX(m,p)}function EX(m,p){var w=f(m)||"Component";wq[w]||(wq[w]=!0,p=String(p),m.tag===3?console.error(`Symbols are not valid as a React child.
|
|
83
|
+
root.render(%s)`,p):console.error(`Symbols are not valid as a React child.
|
|
84
|
+
<%s>%s</%s>`,w,p,w))}function M8(m,p){var w=B9();w!==null?w.run(EX.bind(null,m,p)):EX(m,p)}function jX(m){function p(b,B){if(m){var K=b.deletions;K===null?(b.deletions=[B],b.flags|=16):K.push(B)}}function w(b,B){if(!m)return null;for(;B!==null;)p(b,B),B=B.sibling;return null}function z(b){for(var B=new Map;b!==null;)b.key!==null?B.set(b.key,b):B.set(b.index,b),b=b.sibling;return B}function $(b,B){return b=xm(b,B),b.index=0,b.sibling=null,b}function J(b,B,K){if(b.index=K,!m)return b.flags|=1048576,B;if(K=b.alternate,K!==null)return K=K.index,K<B?(b.flags|=67108866,B):K;return b.flags|=67108866,B}function X(b){return m&&b.alternate===null&&(b.flags|=67108866),b}function Y(b,B,K,y){if(B===null||B.tag!==6)return B=w9(K,b.mode,y),B.return=b,B._debugOwner=b,B._debugTask=b._debugTask,B._debugInfo=L0,B;return B=$(B,K),B.return=b,B._debugInfo=L0,B}function Z(b,B,K,y){var E=K.type;if(E===U6)return B=H(b,B,K.props.children,y,K.key),R8(K,B,b),B;if(B!==null&&(B.elementType===E||FX(B,K)||typeof E==="object"&&E!==null&&E.$$typeof===M5&&O2(E)===B.type))return B=$(B,K.props),y3(B,K),B.return=b,B._debugOwner=K._owner,B._debugInfo=L0,B;return B=q8(K,b.mode,y),y3(B,K),B.return=b,B._debugInfo=L0,B}function G(b,B,K,y){if(B===null||B.tag!==4||B.stateNode.containerInfo!==K.containerInfo||B.stateNode.implementation!==K.implementation)return B=z9(K,b.mode,y),B.return=b,B._debugInfo=L0,B;return B=$(B,K.children||[]),B.return=b,B._debugInfo=L0,B}function H(b,B,K,y,E){if(B===null||B.tag!==7)return B=b4(K,b.mode,y,E),B.return=b,B._debugOwner=b,B._debugTask=b._debugTask,B._debugInfo=L0,B;return B=$(B,K),B.return=b,B._debugInfo=L0,B}function W(b,B,K){if(typeof B==="string"&&B!==""||typeof B==="number"||typeof B==="bigint")return B=w9(""+B,b.mode,K),B.return=b,B._debugOwner=b,B._debugTask=b._debugTask,B._debugInfo=L0,B;if(typeof B==="object"&&B!==null){switch(B.$$typeof){case Fm:return K=q8(B,b.mode,K),y3(K,B),K.return=b,b=d1(B._debugInfo),K._debugInfo=L0,L0=b,K;case W6:return B=z9(B,b.mode,K),B.return=b,B._debugInfo=L0,B;case M5:var y=d1(B._debugInfo);return B=O2(B),b=W(b,B,K),L0=y,b}if(P1(B)||M0(B))return K=b4(B,b.mode,K,null),K.return=b,K._debugOwner=b,K._debugTask=b._debugTask,b=d1(B._debugInfo),K._debugInfo=L0,L0=b,K;if(typeof B.then==="function")return y=d1(B._debugInfo),b=W(b,O8(B),K),L0=y,b;if(B.$$typeof===ym)return W(b,K8(b,B),K);L8(b,B)}return typeof B==="function"&&N8(b,B),typeof B==="symbol"&&M8(b,B),null}function Q(b,B,K,y){var E=B!==null?B.key:null;if(typeof K==="string"&&K!==""||typeof K==="number"||typeof K==="bigint")return E!==null?null:Y(b,B,""+K,y);if(typeof K==="object"&&K!==null){switch(K.$$typeof){case Fm:return K.key===E?(E=d1(K._debugInfo),b=Z(b,B,K,y),L0=E,b):null;case W6:return K.key===E?G(b,B,K,y):null;case M5:return E=d1(K._debugInfo),K=O2(K),b=Q(b,B,K,y),L0=E,b}if(P1(K)||M0(K)){if(E!==null)return null;return E=d1(K._debugInfo),b=H(b,B,K,y,null),L0=E,b}if(typeof K.then==="function")return E=d1(K._debugInfo),b=Q(b,B,O8(K),y),L0=E,b;if(K.$$typeof===ym)return Q(b,B,K8(b,K),y);L8(b,K)}return typeof K==="function"&&N8(b,K),typeof K==="symbol"&&M8(b,K),null}function O(b,B,K,y,E){if(typeof y==="string"&&y!==""||typeof y==="number"||typeof y==="bigint")return b=b.get(K)||null,Y(B,b,""+y,E);if(typeof y==="object"&&y!==null){switch(y.$$typeof){case Fm:return K=b.get(y.key===null?K:y.key)||null,b=d1(y._debugInfo),B=Z(B,K,y,E),L0=b,B;case W6:return b=b.get(y.key===null?K:y.key)||null,G(B,b,y,E);case M5:var W0=d1(y._debugInfo);return y=O2(y),B=O(b,B,K,y,E),L0=W0,B}if(P1(y)||M0(y))return K=b.get(K)||null,b=d1(y._debugInfo),B=H(B,K,y,E,null),L0=b,B;if(typeof y.then==="function")return W0=d1(y._debugInfo),B=O(b,B,K,O8(y),E),L0=W0,B;if(y.$$typeof===ym)return O(b,B,K,K8(B,y),E);L8(B,y)}return typeof y==="function"&&N8(B,y),typeof y==="symbol"&&M8(B,y),null}function V(b,B,K,y){if(typeof K!=="object"||K===null)return y;switch(K.$$typeof){case Fm:case W6:C(b,B,K);var E=K.key;if(typeof E!=="string")break;if(y===null){y=new Set,y.add(E);break}if(!y.has(E)){y.add(E);break}h(B,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.",E)});break;case M5:K=O2(K),V(b,B,K,y)}return y}function r(b,B,K,y){for(var E=null,W0=null,X0=null,m0=B,R0=B=0,p1=null;m0!==null&&R0<K.length;R0++){m0.index>R0?(p1=m0,m0=null):p1=m0.sibling;var U1=Q(b,m0,K[R0],y);if(U1===null){m0===null&&(m0=p1);break}E=V(b,U1,K[R0],E),m&&m0&&U1.alternate===null&&p(b,m0),B=J(U1,B,R0),X0===null?W0=U1:X0.sibling=U1,X0=U1,m0=p1}if(R0===K.length)return w(b,m0),I0&&um(b,R0),W0;if(m0===null){for(;R0<K.length;R0++)m0=W(b,K[R0],y),m0!==null&&(E=V(b,m0,K[R0],E),B=J(m0,B,R0),X0===null?W0=m0:X0.sibling=m0,X0=m0);return I0&&um(b,R0),W0}for(m0=z(m0);R0<K.length;R0++)p1=O(m0,b,R0,K[R0],y),p1!==null&&(E=V(b,p1,K[R0],E),m&&p1.alternate!==null&&m0.delete(p1.key===null?R0:p1.key),B=J(p1,B,R0),X0===null?W0=p1:X0.sibling=p1,X0=p1);return m&&m0.forEach(function(_2){return p(b,_2)}),I0&&um(b,R0),W0}function j0(b,B,K,y){if(K==null)throw Error("An iterable object provided no iterator.");for(var E=null,W0=null,X0=B,m0=B=0,R0=null,p1=null,U1=K.next();X0!==null&&!U1.done;m0++,U1=K.next()){X0.index>m0?(R0=X0,X0=null):R0=X0.sibling;var _2=Q(b,X0,U1.value,y);if(_2===null){X0===null&&(X0=R0);break}p1=V(b,_2,U1.value,p1),m&&X0&&_2.alternate===null&&p(b,X0),B=J(_2,B,m0),W0===null?E=_2:W0.sibling=_2,W0=_2,X0=R0}if(U1.done)return w(b,X0),I0&&um(b,m0),E;if(X0===null){for(;!U1.done;m0++,U1=K.next())X0=W(b,U1.value,y),X0!==null&&(p1=V(b,X0,U1.value,p1),B=J(X0,B,m0),W0===null?E=X0:W0.sibling=X0,W0=X0);return I0&&um(b,m0),E}for(X0=z(X0);!U1.done;m0++,U1=K.next())R0=O(X0,b,m0,U1.value,y),R0!==null&&(p1=V(b,R0,U1.value,p1),m&&R0.alternate!==null&&X0.delete(R0.key===null?m0:R0.key),B=J(R0,B,m0),W0===null?E=R0:W0.sibling=R0,W0=R0);return m&&X0.forEach(function(xH){return p(b,xH)}),I0&&um(b,m0),E}function T0(b,B,K,y){if(typeof K==="object"&&K!==null&&K.type===U6&&K.key===null&&(R8(K,null,b),K=K.props.children),typeof K==="object"&&K!==null){switch(K.$$typeof){case Fm:var E=d1(K._debugInfo);m:{for(var W0=K.key;B!==null;){if(B.key===W0){if(W0=K.type,W0===U6){if(B.tag===7){w(b,B.sibling),y=$(B,K.props.children),y.return=b,y._debugOwner=K._owner,y._debugInfo=L0,R8(K,y,b),b=y;break m}}else if(B.elementType===W0||FX(B,K)||typeof W0==="object"&&W0!==null&&W0.$$typeof===M5&&O2(W0)===B.type){w(b,B.sibling),y=$(B,K.props),y3(y,K),y.return=b,y._debugOwner=K._owner,y._debugInfo=L0,b=y;break m}w(b,B);break}else p(b,B);B=B.sibling}K.type===U6?(y=b4(K.props.children,b.mode,y,K.key),y.return=b,y._debugOwner=b,y._debugTask=b._debugTask,y._debugInfo=L0,R8(K,y,b),b=y):(y=q8(K,b.mode,y),y3(y,K),y.return=b,y._debugInfo=L0,b=y)}return b=X(b),L0=E,b;case W6:m:{E=K;for(K=E.key;B!==null;){if(B.key===K)if(B.tag===4&&B.stateNode.containerInfo===E.containerInfo&&B.stateNode.implementation===E.implementation){w(b,B.sibling),y=$(B,E.children||[]),y.return=b,b=y;break m}else{w(b,B);break}else p(b,B);B=B.sibling}y=z9(E,b.mode,y),y.return=b,b=y}return X(b);case M5:return E=d1(K._debugInfo),K=O2(K),b=T0(b,B,K,y),L0=E,b}if(P1(K))return E=d1(K._debugInfo),b=r(b,B,K,y),L0=E,b;if(M0(K)){if(E=d1(K._debugInfo),W0=M0(K),typeof W0!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var X0=W0.call(K);if(X0===K){if(b.tag!==0||Object.prototype.toString.call(b.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(X0)!=="[object Generator]")e_||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."),e_=!0}else K.entries!==W0||S$||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),S$=!0);return b=j0(b,B,X0,y),L0=E,b}if(typeof K.then==="function")return E=d1(K._debugInfo),b=T0(b,B,O8(K),y),L0=E,b;if(K.$$typeof===ym)return T0(b,B,K8(b,K),y);L8(b,K)}if(typeof K==="string"&&K!==""||typeof K==="number"||typeof K==="bigint")return E=""+K,B!==null&&B.tag===6?(w(b,B.sibling),y=$(B,E),y.return=b,b=y):(w(b,B),y=w9(E,b.mode,y),y.return=b,y._debugOwner=b,y._debugTask=b._debugTask,y._debugInfo=L0,b=y),X(b);return typeof K==="function"&&N8(b,K),typeof K==="symbol"&&M8(b,K),w(b,B)}return function(b,B,K,y){var E=L0;L0=null;try{L7=0;var W0=T0(b,B,K,y);return l6=null,W0}catch(p1){if(p1===a6||p1===kp)throw p1;var X0=x(29,p1,null,b.mode);X0.lanes=y,X0.return=b;var m0=X0._debugInfo=L0;if(X0._debugOwner=b._debugOwner,X0._debugTask=b._debugTask,m0!=null){for(var R0=m0.length-1;0<=R0;R0--)if(typeof m0[R0].stack==="string"){X0._debugOwner=m0[R0],X0._debugTask=m0[R0].debugTask;break}}return X0}finally{L0=E}}}function rX(m,p){var w=P1(m);return m=!w&&typeof M0(m)==="function",w||m?(w=w?"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>",w,p,w),!1):!0}function K9(m){m.updateQueue={baseState:m.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function H9(m,p){m=m.updateQueue,p.updateQueue===m&&(p.updateQueue={baseState:m.baseState,firstBaseUpdate:m.firstBaseUpdate,lastBaseUpdate:m.lastBaseUpdate,shared:m.shared,callbacks:null})}function L2(m){return{lane:m,tag:$q,payload:null,callback:null,next:null}}function N2(m,p,w){var z=m.updateQueue;if(z===null)return null;if(z=z.shared,o$===z&&!Yq){var $=f(m);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`,$),Yq=!0}if((k0&f1)!==g1)return $=z.pending,$===null?p.next=p:(p.next=$.next,$.next=p),z.pending=p,p=_8(m),MX(m,null,w),p;return G8(m,z,p,w),_8(m)}function C3(m,p,w){if(p=p.updateQueue,p!==null&&(p=p.shared,(w&4194048)!==0)){var z=p.lanes;z&=m.pendingLanes,w|=z,p.lanes=w,fJ(m,w)}}function F8(m,p){var{updateQueue:w,alternate:z}=m;if(z!==null&&(z=z.updateQueue,w===z)){var $=null,J=null;if(w=w.firstBaseUpdate,w!==null){do{var X={lane:w.lane,tag:w.tag,payload:w.payload,callback:null,next:null};J===null?$=J=X:J=J.next=X,w=w.next}while(w!==null);J===null?$=J=p:J=J.next=p}else $=J=p;w={baseState:z.baseState,firstBaseUpdate:$,lastBaseUpdate:J,shared:z.shared,callbacks:z.callbacks},m.updateQueue=w;return}m=w.lastBaseUpdate,m===null?w.firstBaseUpdate=p:m.next=p,w.lastBaseUpdate=p}function v3(){if(a$){var m=o6;if(m!==null)throw m}}function P3(m,p,w,z){a$=!1;var $=m.updateQueue;V2=!1,o$=$.shared;var{firstBaseUpdate:J,lastBaseUpdate:X}=$,Y=$.shared.pending;if(Y!==null){$.shared.pending=null;var Z=Y,G=Z.next;Z.next=null,X===null?J=G:X.next=G,X=Z;var H=m.alternate;H!==null&&(H=H.updateQueue,Y=H.lastBaseUpdate,Y!==X&&(Y===null?H.firstBaseUpdate=G:Y.next=G,H.lastBaseUpdate=Z))}if(J!==null){var W=$.baseState;X=0,H=G=Z=null,Y=J;do{var Q=Y.lane&-536870913,O=Q!==Y.lane;if(O?(N0&Q)===Q:(z&Q)===Q){Q!==0&&Q===I4&&(a$=!0),H!==null&&(H=H.next={lane:0,tag:Y.tag,payload:Y.payload,callback:null,next:null});m:{Q=m;var V=Y,r=p,j0=w;switch(V.tag){case Jq:if(V=V.payload,typeof V==="function"){S6=!0;var T0=V.call(j0,W,r);if(Q.mode&j1){Y1(!0);try{V.call(j0,W,r)}finally{Y1(!1)}}S6=!1,W=T0;break m}W=V;break m;case h$:Q.flags=Q.flags&-65537|128;case $q:if(T0=V.payload,typeof T0==="function"){if(S6=!0,V=T0.call(j0,W,r),Q.mode&j1){Y1(!0);try{T0.call(j0,W,r)}finally{Y1(!1)}}S6=!1}else V=T0;if(V===null||V===void 0)break m;W=C0({},W,V);break m;case Xq:V2=!0}}Q=Y.callback,Q!==null&&(m.flags|=64,O&&(m.flags|=8192),O=$.callbacks,O===null?$.callbacks=[Q]:O.push(Q))}else O={lane:Q,tag:Y.tag,payload:Y.payload,callback:Y.callback,next:null},H===null?(G=H=O,Z=W):H=H.next=O,X|=Q;if(Y=Y.next,Y===null)if(Y=$.shared.pending,Y===null)break;else O=Y,Y=O.next,O.next=null,$.lastBaseUpdate=O,$.shared.pending=null}while(1);H===null&&(Z=W),$.baseState=Z,$.firstBaseUpdate=G,$.lastBaseUpdate=H,J===null&&($.shared.lanes=0),c2|=X,m.lanes=X,m.memoizedState=W}o$=null}function nX(m,p){if(typeof m!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+m);m.call(p)}function hQ(m,p){var w=m.shared.hiddenCallbacks;if(w!==null)for(m.shared.hiddenCallbacks=null,m=0;m<w.length;m++)nX(w[m],p)}function tX(m,p){var w=m.callbacks;if(w!==null)for(m.callbacks=null,m=0;m<w.length;m++)nX(w[m],p)}function sX(m,p){var w=hm;I(Sp,w,m),I(g6,p,m),hm=w|p.baseLanes}function W9(m){I(Sp,hm,m),I(g6,g6.current,m)}function U9(m){hm=Sp.current,T(g6,m),T(Sp,m)}function M2(m){var p=m.alternate;I(W1,W1.current&d6,m),I(v5,m,m),V5===null&&(p===null||g6.current!==null?V5=m:p.memoizedState!==null&&(V5=m))}function R9(m){I(W1,W1.current,m),I(v5,m,m),V5===null&&(V5=m)}function eX(m){m.tag===22?(I(W1,W1.current,m),I(v5,m,m),V5===null&&(V5=m)):F2(m)}function F2(m){I(W1,W1.current,m),I(v5,v5.current,m)}function O5(m){T(v5,m),V5===m&&(V5=null),T(W1,m)}function y8(m){for(var p=m;p!==null;){if(p.tag===13){var w=p.memoizedState;if(w!==null&&(w=w.dehydrated,w===null||kz(w)||Az(w)))return p}else if(p.tag===19&&(p.memoizedProps.revealOrder==="forwards"||p.memoizedProps.revealOrder==="backwards"||p.memoizedProps.revealOrder==="unstable_legacy-backwards"||p.memoizedProps.revealOrder==="together")){if((p.flags&128)!==0)return p}else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===m)break;for(;p.sibling===null;){if(p.return===null||p.return===m)return null;p=p.return}p.sibling.return=p.return,p=p.sibling}return null}function y0(){var m=N;D5===null?D5=[m]:D5.push(m)}function A(){var m=N;if(D5!==null&&(J2++,D5[J2]!==m)){var p=f(H0);if(!Zq.has(p)&&(Zq.add(p),D5!==null)){for(var w="",z=0;z<=J2;z++){var $=D5[z],J=z===J2?m:$;for($=z+1+". "+$;30>$.length;)$+=" ";$+=J+`
|
|
87
|
+
`,w+=$}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
|
+
`,p,w)}}}function $6(m){m===void 0||m===null||P1(m)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",N,typeof m)}function C8(){var m=f(H0);_q.has(m)||(_q.add(m),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",m))}function B1(){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 O9(m,p){if(F7)return!1;if(p===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.",N),!1;m.length!==p.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`,N,"["+p.join(", ")+"]","["+m.join(", ")+"]");for(var w=0;w<p.length&&w<m.length;w++)if(!m5(m[w],p[w]))return!1;return!0}function L9(m,p,w,z,$,J){if(z2=J,H0=p,D5=m!==null?m._debugHookTypes:null,J2=-1,F7=m!==null&&m.type!==p.type,Object.prototype.toString.call(w)==="[object AsyncFunction]"||Object.prototype.toString.call(w)==="[object AsyncGeneratorFunction]")J=f(H0),l$.has(J)||(l$.add(J),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.",J===null?"An unknown Component":"<"+J+">"));p.memoizedState=null,p.updateQueue=null,p.lanes=0,M.H=m!==null&&m.memoizedState!==null?d$:D5!==null?qq:g$,S4=J=(p.mode&j1)!==Q0;var X=T$(w,z,$);if(S4=!1,u6&&(X=N9(p,w,z,$)),J){Y1(!0);try{X=N9(p,w,z,$)}finally{Y1(!1)}}return mY(m,p),X}function mY(m,p){p._debugHookTypes=D5,p.dependencies===null?$2!==null&&(p.dependencies={lanes:0,firstContext:null,_debugThenableState:$2}):p.dependencies._debugThenableState=$2,M.H=y7;var w=i0!==null&&i0.next!==null;if(z2=0,D5=N=L1=i0=H0=null,J2=-1,m!==null&&(m.flags&65011712)!==(p.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),op=!1,M7=0,$2=null,w)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");m===null||N1||(m=m.dependencies,m!==null&&B8(m)&&(N1=!0)),O7?(O7=!1,m=!0):m=!1,m&&(p=f(p)||"Unknown",Gq.has(p)||l$.has(p)||(Gq.add(p),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 N9(m,p,w,z){H0=m;var $=0;do{if(u6&&($2=null),M7=0,u6=!1,$>=RH)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if($+=1,F7=!1,L1=i0=null,m.updateQueue!=null){var J=m.updateQueue;J.lastEffect=null,J.events=null,J.stores=null,J.memoCache!=null&&(J.memoCache.index=0)}J2=-1,M.H=bq,J=T$(p,w,z)}while(u6);return J}function oQ(){var m=M.H,p=m.useState()[0];return p=typeof p.then==="function"?I3(p):p,m=m.useState()[0],(i0!==null?i0.memoizedState:null)!==m&&(H0.flags|=1024),p}function M9(){var m=ap!==0;return ap=0,m}function F9(m,p,w){p.updateQueue=m.updateQueue,p.flags=(p.mode&wm)!==Q0?p.flags&-402655237:p.flags&-2053,m.lanes&=~w}function y9(m){if(op){for(m=m.memoizedState;m!==null;){var p=m.queue;p!==null&&(p.pending=null),m=m.next}op=!1}z2=0,D5=L1=i0=H0=null,J2=-1,N=null,u6=!1,M7=ap=0,$2=null}function n1(){var m={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return L1===null?H0.memoizedState=L1=m:L1=L1.next=m,L1}function l0(){if(i0===null){var m=H0.alternate;m=m!==null?m.memoizedState:null}else m=i0.next;var p=L1===null?H0.memoizedState:L1.next;if(p!==null)L1=p,i0=m;else{if(m===null){if(H0.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.")}i0=m,m={memoizedState:i0.memoizedState,baseState:i0.baseState,baseQueue:i0.baseQueue,queue:i0.queue,next:null},L1===null?H0.memoizedState=L1=m:L1=L1.next=m}return L1}function v8(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function I3(m){var p=M7;return M7+=1,$2===null&&($2=dX()),m=uX($2,m,p),p=H0,(L1===null?p.memoizedState:L1.next)===null&&(p=p.alternate,M.H=p!==null&&p.memoizedState!==null?d$:g$),m}function y2(m){if(m!==null&&typeof m==="object"){if(typeof m.then==="function")return I3(m);if(m.$$typeof===ym)return $1(m)}throw Error("An unsupported type was passed to use(): "+String(m))}function W4(m){var p=null,w=H0.updateQueue;if(w!==null&&(p=w.memoCache),p==null){var z=H0.alternate;z!==null&&(z=z.updateQueue,z!==null&&(z=z.memoCache,z!=null&&(p={data:z.data.map(function($){return $.slice()}),index:0})))}if(p==null&&(p={data:[],index:0}),w===null&&(w=v8(),H0.updateQueue=w),w.memoCache=p,w=p.data[p.index],w===void 0||F7)for(w=p.data[p.index]=Array(m),z=0;z<m;z++)w[z]=tB;else w.length!==m&&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.",w.length,m);return p.index++,w}function s5(m,p){return typeof p==="function"?p(m):p}function C9(m,p,w){var z=n1();if(w!==void 0){var $=w(p);if(S4){Y1(!0);try{w(p)}finally{Y1(!1)}}}else $=p;return z.memoizedState=z.baseState=$,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:m,lastRenderedState:$},z.queue=m,m=m.dispatch=xQ.bind(null,H0,m),[z.memoizedState,m]}function J6(m){var p=l0();return v9(p,i0,m)}function v9(m,p,w){var z=m.queue;if(z===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");z.lastRenderedReducer=w;var $=m.baseQueue,J=z.pending;if(J!==null){if($!==null){var X=$.next;$.next=J.next,J.next=X}p.baseQueue!==$&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),p.baseQueue=$=J,z.pending=null}if(J=m.baseState,$===null)m.memoizedState=J;else{p=$.next;var Y=X=null,Z=null,G=p,H=!1;do{var W=G.lane&-536870913;if(W!==G.lane?(N0&W)===W:(z2&W)===W){var Q=G.revertLane;if(Q===0)Z!==null&&(Z=Z.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),W===I4&&(H=!0);else if((z2&Q)===Q){G=G.next,Q===I4&&(H=!0);continue}else W={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},Z===null?(Y=Z=W,X=J):Z=Z.next=W,H0.lanes|=Q,c2|=Q;W=G.action,S4&&w(J,W),J=G.hasEagerState?G.eagerState:w(J,W)}else Q={lane:W,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},Z===null?(Y=Z=Q,X=J):Z=Z.next=Q,H0.lanes|=W,c2|=W;G=G.next}while(G!==null&&G!==p);if(Z===null?X=J:Z.next=Y,!m5(J,m.memoizedState)&&(N1=!0,H&&(w=o6,w!==null)))throw w;m.memoizedState=J,m.baseState=X,m.baseQueue=Z,z.lastRenderedState=J}return $===null&&(z.lanes=0),[m.memoizedState,z.dispatch]}function f3(m){var p=l0(),w=p.queue;if(w===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");w.lastRenderedReducer=m;var{dispatch:z,pending:$}=w,J=p.memoizedState;if($!==null){w.pending=null;var X=$=$.next;do J=m(J,X.action),X=X.next;while(X!==$);m5(J,p.memoizedState)||(N1=!0),p.memoizedState=J,p.baseQueue===null&&(p.baseState=J),w.lastRenderedState=J}return[J,z]}function P9(m,p,w){var z=H0,$=n1();if(I0){if(w===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var J=w();x6||J===w()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),x6=!0)}else{if(J=p(),x6||(w=p(),m5(J,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),x6=!0)),D0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(N0&127)!==0||pY(z,p,J)}return $.memoizedState=J,w={value:J,getSnapshot:p},$.queue=w,T8(zY.bind(null,z,w,m),[m]),z.flags|=2048,Y6(i5|z5,{destroy:void 0},wY.bind(null,z,w,J,p),null),J}function P8(m,p,w){var z=H0,$=l0(),J=I0;if(J){if(w===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");w=w()}else if(w=p(),!x6){var X=p();m5(w,X)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),x6=!0)}if(X=!m5((i0||$).memoizedState,w))$.memoizedState=w,N1=!0;$=$.queue;var Y=zY.bind(null,z,$,m);if(Y5(2048,z5,Y,[m]),$.getSnapshot!==p||X||L1!==null&&L1.memoizedState.tag&i5){if(z.flags|=2048,Y6(i5|z5,{destroy:void 0},wY.bind(null,z,$,w,p),null),D0===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");J||(z2&127)!==0||pY(z,p,w)}return w}function pY(m,p,w){m.flags|=16384,m={getSnapshot:p,value:w},p=H0.updateQueue,p===null?(p=v8(),H0.updateQueue=p,p.stores=[m]):(w=p.stores,w===null?p.stores=[m]:w.push(m))}function wY(m,p,w,z){p.value=w,p.getSnapshot=z,$Y(p)&&JY(m)}function zY(m,p,w){return w(function(){$Y(p)&&(qm(2,"updateSyncExternalStore()",m),JY(m))})}function $Y(m){var p=m.getSnapshot;m=m.value;try{var w=p();return!m5(m,w)}catch(z){return!0}}function JY(m){var p=c1(m,2);p!==null&&q1(p,m,2)}function I9(m){var p=n1();if(typeof m==="function"){var w=m;if(m=w(),S4){Y1(!0);try{w()}finally{Y1(!1)}}}return p.memoizedState=p.baseState=m,p.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s5,lastRenderedState:m},p}function f9(m){m=I9(m);var p=m.queue,w=FY.bind(null,H0,p);return p.dispatch=w,[m.memoizedState,w]}function T9(m){var p=n1();p.memoizedState=p.baseState=m;var w={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return p.queue=w,p=D9.bind(null,H0,!0,w),w.dispatch=p,[m,p]}function XY(m,p){var w=l0();return YY(w,i0,m,p)}function YY(m,p,w,z){return m.baseState=w,v9(m,i0,typeof z==="function"?z:s5)}function ZY(m,p){var w=l0();if(i0!==null)return YY(w,i0,m,p);return w.baseState=m,[m,w.queue.dispatch]}function aQ(m,p,w,z,$){if(a8(m))throw Error("Cannot update form state while rendering.");if(m=p.action,m!==null){var J={payload:$,action:m,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(X){J.listeners.push(X)}};M.T!==null?w(!0):J.isTransition=!1,z(J),w=p.pending,w===null?(J.next=p.pending=J,GY(p,J)):(J.next=w.next,p.pending=w.next=J)}}function GY(m,p){var{action:w,payload:z}=p,$=m.state;if(p.isTransition){var J=M.T,X={};X._updatedFibers=new Set,M.T=X;try{var Y=w($,z),Z=M.S;Z!==null&&Z(X,Y),_Y(m,p,Y)}catch(G){k9(m,p,G)}finally{J!==null&&X.types!==null&&(J.types!==null&&J.types!==X.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."),J.types=X.types),M.T=J,J===null&&X._updatedFibers&&(m=X._updatedFibers.size,X._updatedFibers.clear(),10<m&&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{X=w($,z),_Y(m,p,X)}catch(G){k9(m,p,G)}}function _Y(m,p,w){w!==null&&typeof w==="object"&&typeof w.then==="function"?(M.asyncTransitions++,w.then(o8,o8),w.then(function(z){qY(m,p,z)},function(z){return k9(m,p,z)}),p.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.")):qY(m,p,w)}function qY(m,p,w){p.status="fulfilled",p.value=w,bY(p),m.state=w,p=m.pending,p!==null&&(w=p.next,w===p?m.pending=null:(w=w.next,p.next=w,GY(m,w)))}function k9(m,p,w){var z=m.pending;if(m.pending=null,z!==null){z=z.next;do p.status="rejected",p.reason=w,bY(p),p=p.next;while(p!==z)}m.action=null}function bY(m){m=m.listeners;for(var p=0;p<m.length;p++)(0,m[p])()}function QY(m,p){return p}function X6(m,p){if(I0){var w=D0.formState;if(w!==null){m:{var z=H0;if(I0){if(m1){p:{var $=m1;for(var J=x5;$.nodeType!==8;){if(!J){$=null;break p}if($=N5($.nextSibling),$===null){$=null;break p}}J=$.data,$=J===GJ||J===tq?$:null}if($){m1=N5($.nextSibling),z=$.data===GJ;break m}}U2(z)}z=!1}z&&(p=w[0])}}return w=n1(),w.memoizedState=w.baseState=p,z={pending:null,lanes:0,dispatch:null,lastRenderedReducer:QY,lastRenderedState:p},w.queue=z,w=FY.bind(null,H0,z),z.dispatch=w,z=I9(!1),J=D9.bind(null,H0,!1,z.queue),z=n1(),$={state:p,dispatch:null,action:m,pending:null},z.queue=$,w=aQ.bind(null,H0,$,J,w),$.dispatch=w,z.memoizedState=m,[p,w,!1]}function I8(m){var p=l0();return BY(p,i0,m)}function BY(m,p,w){if(p=v9(m,p,QY)[0],m=J6(s5)[0],typeof p==="object"&&p!==null&&typeof p.then==="function")try{var z=I3(p)}catch(X){if(X===a6)throw kp;throw X}else z=p;p=l0();var $=p.queue,J=$.dispatch;return w!==p.memoizedState&&(H0.flags|=2048,Y6(i5|z5,{destroy:void 0},lQ.bind(null,$,w),null)),[z,J,m]}function lQ(m,p){m.action=p}function f8(m){var p=l0(),w=i0;if(w!==null)return BY(p,w,m);l0(),p=p.memoizedState,w=l0();var z=w.queue.dispatch;return w.memoizedState=m,[p,z,!1]}function Y6(m,p,w,z){return m={tag:m,create:w,deps:z,inst:p,next:null},p=H0.updateQueue,p===null&&(p=v8(),H0.updateQueue=p),w=p.lastEffect,w===null?p.lastEffect=m.next=m:(z=w.next,w.next=m,m.next=z,p.lastEffect=m),m}function A9(m){var p=n1();return m={current:m},p.memoizedState=m}function U4(m,p,w,z){var $=n1();H0.flags|=m,$.memoizedState=Y6(i5|p,{destroy:void 0},w,z===void 0?null:z)}function Y5(m,p,w,z){var $=l0();z=z===void 0?null:z;var J=$.memoizedState.inst;i0!==null&&z!==null&&O9(z,i0.memoizedState.deps)?$.memoizedState=Y6(p,J,w,z):(H0.flags|=m,$.memoizedState=Y6(i5|p,J,w,z))}function T8(m,p){(H0.mode&wm)!==Q0?U4(276826112,z5,m,p):U4(8390656,z5,m,p)}function gQ(m){H0.flags|=4;var p=H0.updateQueue;if(p===null)p=v8(),H0.updateQueue=p,p.events=[m];else{var w=p.events;w===null?p.events=[m]:w.push(m)}}function S9(m){var p=n1(),w={impl:m};return p.memoizedState=w,function(){if((k0&f1)!==g1)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return w.impl.apply(void 0,arguments)}}function k8(m){var p=l0().memoizedState;return gQ({ref:p,nextImpl:m}),function(){if((k0&f1)!==g1)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return p.impl.apply(void 0,arguments)}}function h9(m,p){var w=4194308;return(H0.mode&wm)!==Q0&&(w|=134217728),U4(w,P5,m,p)}function KY(m,p){if(typeof p==="function"){m=m();var w=p(m);return function(){typeof w==="function"?w():p(null)}}if(p!==null&&p!==void 0)return p.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(p).join(", ")+"}"),m=m(),p.current=m,function(){p.current=null}}function o9(m,p,w){typeof p!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",p!==null?typeof p:"null"),w=w!==null&&w!==void 0?w.concat([m]):null;var z=4194308;(H0.mode&wm)!==Q0&&(z|=134217728),U4(z,P5,KY.bind(null,p,m),w)}function A8(m,p,w){typeof p!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",p!==null?typeof p:"null"),w=w!==null&&w!==void 0?w.concat([m]):null,Y5(4,P5,KY.bind(null,p,m),w)}function a9(m,p){return n1().memoizedState=[m,p===void 0?null:p],m}function S8(m,p){var w=l0();p=p===void 0?null:p;var z=w.memoizedState;if(p!==null&&O9(p,z[1]))return z[0];return w.memoizedState=[m,p],m}function l9(m,p){var w=n1();p=p===void 0?null:p;var z=m();if(S4){Y1(!0);try{m()}finally{Y1(!1)}}return w.memoizedState=[z,p],z}function h8(m,p){var w=l0();p=p===void 0?null:p;var z=w.memoizedState;if(p!==null&&O9(p,z[1]))return z[0];if(z=m(),S4){Y1(!0);try{m()}finally{Y1(!1)}}return w.memoizedState=[z,p],z}function g9(m,p){var w=n1();return d9(w,m,p)}function HY(m,p){var w=l0();return UY(w,i0.memoizedState,m,p)}function WY(m,p){var w=l0();return i0===null?d9(w,m,p):UY(w,i0.memoizedState,m,p)}function d9(m,p,w){if(w===void 0||(z2&1073741824)!==0&&(N0&261930)===0)return m.memoizedState=p;return m.memoizedState=w,m=RZ(),H0.lanes|=m,c2|=m,w}function UY(m,p,w,z){if(m5(w,p))return w;if(g6.current!==null)return m=d9(m,w,z),m5(m,p)||(N1=!0),m;if((z2&42)===0||(z2&1073741824)!==0&&(N0&261930)===0)return N1=!0,m.memoizedState=w;return m=RZ(),H0.lanes|=m,c2|=m,p}function o8(){M.asyncTransitions--}function RY(m,p,w,z,$){var J=o0.p;o0.p=J!==0&&J<pm?J:pm;var X=M.T,Y={};Y._updatedFibers=new Set,M.T=Y,D9(m,!1,p,w);try{var Z=$(),G=M.S;if(G!==null&&G(Y,Z),Z!==null&&typeof Z==="object"&&typeof Z.then==="function"){M.asyncTransitions++,Z.then(o8,o8);var H=SQ(Z,z);T3(m,p,H,L5(m))}else T3(m,p,z,L5(m))}catch(W){T3(m,p,{then:function(){},status:"rejected",reason:W},L5(m))}finally{o0.p=J,X!==null&&Y.types!==null&&(X.types!==null&&X.types!==Y.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."),X.types=Y.types),M.T=X,X===null&&Y._updatedFibers&&(m=Y._updatedFibers.size,Y._updatedFibers.clear(),10<m&&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 x9(m,p,w,z){if(m.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var $=OY(m).queue;kQ(m),RY(m,$,p,D4,w===null?D:function(){return LY(m),w(z)})}function OY(m){var p=m.memoizedState;if(p!==null)return p;p={memoizedState:D4,baseState:D4,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:s5,lastRenderedState:D4},next:null};var w={};return p.next={memoizedState:w,baseState:w,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:s5,lastRenderedState:w},next:null},m.memoizedState=p,m=m.alternate,m!==null&&(m.memoizedState=p),p}function LY(m){M.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var p=OY(m);p.next===null&&(p=m.alternate.memoizedState),T3(m,p.next.queue,{},L5(m))}function u9(){var m=I9(!1);return m=RY.bind(null,H0,m.queue,!0,!1),n1().memoizedState=m,[!1,m]}function NY(){var m=J6(s5)[0],p=l0().memoizedState;return[typeof m==="boolean"?m:I3(m),p]}function MY(){var m=f3(s5)[0],p=l0().memoizedState;return[typeof m==="boolean"?m:I3(m),p]}function R4(){return $1(d7)}function V9(){var m=n1(),p=D0.identifierPrefix;if(I0){var w=sm,z=tm;w=(z&~(1<<32-t1(z)-1)).toString(32)+w,p="_"+p+"R_"+w,w=ap++,0<w&&(p+="H"+w.toString(32)),p+="_"}else w=UH++,p="_"+p+"r_"+w.toString(32)+"_";return m.memoizedState=p}function i9(){return n1().memoizedState=dQ.bind(null,H0)}function dQ(m,p){for(var w=m.return;w!==null;){switch(w.tag){case 24:case 3:var z=L5(w),$=L2(z),J=N2(w,$,z);J!==null&&(qm(z,"refresh()",m),q1(J,w,z),C3(J,w,z)),m=_9(),p!==null&&p!==void 0&&J!==null&&console.error("The seed argument is not enabled outside experimental channels."),$.payload={cache:m};return}w=w.return}}function xQ(m,p,w){var z=arguments;typeof z[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()."),z=L5(m);var $={lane:z,revertLane:0,gesture:null,action:w,hasEagerState:!1,eagerState:null,next:null};a8(m)?yY(p,$):($=sw(m,p,$,z),$!==null&&(qm(z,"dispatch()",m),q1($,m,z),CY($,p,z)))}function FY(m,p,w){var z=arguments;typeof z[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()."),z=L5(m),T3(m,p,w,z)&&qm(z,"setState()",m)}function T3(m,p,w,z){var $={lane:z,revertLane:0,gesture:null,action:w,hasEagerState:!1,eagerState:null,next:null};if(a8(m))yY(p,$);else{var J=m.alternate;if(m.lanes===0&&(J===null||J.lanes===0)&&(J=p.lastRenderedReducer,J!==null)){var X=M.H;M.H=$m;try{var Y=p.lastRenderedState,Z=J(Y,w);if($.hasEagerState=!0,$.eagerState=Z,m5(Z,Y))return G8(m,p,$,0),D0===null&&Z8(),!1}catch(G){}finally{M.H=X}}if(w=sw(m,p,$,z),w!==null)return q1(w,m,z),CY(w,p,z),!0}return!1}function D9(m,p,w,z){if(M.T===null&&I4===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."),z={lane:2,revertLane:Lz(),gesture:null,action:z,hasEagerState:!1,eagerState:null,next:null},a8(m)){if(p)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else p=sw(m,w,z,2),p!==null&&(qm(2,"setOptimistic()",m),q1(p,m,2))}function a8(m){var p=m.alternate;return m===H0||p!==null&&p===H0}function yY(m,p){u6=op=!0;var w=m.pending;w===null?p.next=p:(p.next=w.next,w.next=p),m.pending=p}function CY(m,p,w){if((w&4194048)!==0){var z=p.lanes;z&=m.pendingLanes,w|=z,p.lanes=w,fJ(m,w)}}function c9(m){if(m!==null&&typeof m!=="function"){var p=String(m);Mq.has(p)||(Mq.add(p),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",m))}}function E9(m,p,w,z){var $=m.memoizedState,J=w(z,$);if(m.mode&j1){Y1(!0);try{J=w(z,$)}finally{Y1(!1)}}J===void 0&&(p=G0(p)||"Component",Rq.has(p)||(Rq.add(p),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",p))),$=J===null||J===void 0?$:C0({},$,J),m.memoizedState=$,m.lanes===0&&(m.updateQueue.baseState=$)}function vY(m,p,w,z,$,J,X){var Y=m.stateNode;if(typeof Y.shouldComponentUpdate==="function"){if(w=Y.shouldComponentUpdate(z,J,X),m.mode&j1){Y1(!0);try{w=Y.shouldComponentUpdate(z,J,X)}finally{Y1(!1)}}return w===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",G0(p)||"Component"),w}return p.prototype&&p.prototype.isPureReactComponent?!R3(w,z)||!R3($,J):!0}function PY(m,p,w,z){var $=p.state;typeof p.componentWillReceiveProps==="function"&&p.componentWillReceiveProps(w,z),typeof p.UNSAFE_componentWillReceiveProps==="function"&&p.UNSAFE_componentWillReceiveProps(w,z),p.state!==$&&(m=f(m)||"Component",Bq.has(m)||(Bq.add(m),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",m)),x$.enqueueReplaceState(p,p.state,null))}function O4(m,p){var w=p;if("ref"in p){w={};for(var z in p)z!=="ref"&&(w[z]=p[z])}if(m=m.defaultProps){w===p&&(w=C0({},w));for(var $ in m)w[$]===void 0&&(w[$]=m[$])}return w}function IY(m){U$(m),console.warn(`%s
|
|
100
|
+
|
|
101
|
+
%s
|
|
102
|
+
`,V6?"An error occurred in the <"+V6+"> 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 fY(m){var p=V6?"The above error occurred in the <"+V6+"> component.":"The above error occurred in one of your React components.",w="React will try to recreate this component tree from scratch using the error boundary you provided, "+((u$||"Anonymous")+".");if(typeof m==="object"&&m!==null&&typeof m.environmentName==="string"){var z=m.environmentName;m=[`%o
|
|
104
|
+
|
|
105
|
+
%s
|
|
106
|
+
|
|
107
|
+
%s
|
|
108
|
+
`,m,p,w].slice(0),typeof m[0]==="string"?m.splice(0,1,Jb+" "+m[0],Xb,Zw+z+Zw,Yb):m.splice(0,0,Jb,Xb,Zw+z+Zw,Yb),m.unshift(console),z=gH.apply(console.error,m),z()}else console.error(`%o
|
|
109
|
+
|
|
110
|
+
%s
|
|
111
|
+
|
|
112
|
+
%s
|
|
113
|
+
`,m,p,w)}function TY(m){U$(m)}function l8(m,p){try{V6=p.source?f(p.source):null,u$=null;var w=p.value;if(M.actQueue!==null)M.thrownErrors.push(w);else{var z=m.onUncaughtError;z(w,{componentStack:p.stack})}}catch($){setTimeout(function(){throw $})}}function kY(m,p,w){try{V6=w.source?f(w.source):null,u$=f(p);var z=m.onCaughtError;z(w.value,{componentStack:w.stack,errorBoundary:p.tag===1?p.stateNode:null})}catch($){setTimeout(function(){throw $})}}function j9(m,p,w){return w=L2(w),w.tag=h$,w.payload={element:null},w.callback=function(){h(p.source,l8,m,p)},w}function r9(m){return m=L2(m),m.tag=h$,m}function n9(m,p,w,z){var $=w.type.getDerivedStateFromError;if(typeof $==="function"){var J=z.value;m.payload=function(){return $(J)},m.callback=function(){yX(w),h(z.source,kY,p,w,z)}}var X=w.stateNode;X!==null&&typeof X.componentDidCatch==="function"&&(m.callback=function(){yX(w),h(z.source,kY,p,w,z),typeof $!=="function"&&(j2===null?j2=new Set([this]):j2.add(this)),BH(this,z),typeof $==="function"||(w.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.",f(w)||"Unknown")})}function uQ(m,p,w,z,$){if(w.flags|=32768,Pm&&g3(m,$),z!==null&&typeof z==="object"&&typeof z.then==="function"){if(p=w.alternate,p!==null&&z6(p,w,$,!0),I0&&(Tm=!0),w=v5.current,w!==null){switch(w.tag){case 31:case 13:return V5===null?E8():w.alternate===null&&G1===Y2&&(G1=dp),w.flags&=-257,w.flags|=65536,w.lanes=$,z===Ap?w.flags|=16384:(p=w.updateQueue,p===null?w.updateQueue=new Set([z]):p.add(z),Wz(m,z,$)),!1;case 22:return w.flags|=65536,z===Ap?w.flags|=16384:(p=w.updateQueue,p===null?(p={transitions:null,markerInstances:null,retryQueue:new Set([z])},w.updateQueue=p):(w=p.retryQueue,w===null?p.retryQueue=new Set([z]):w.add(z)),Wz(m,z,$)),!1}throw Error("Unexpected Suspense handler tag ("+w.tag+"). This is a bug in React.")}return Wz(m,z,$),E8(),!1}if(I0)return Tm=!0,p=v5.current,p!==null?((p.flags&65536)===0&&(p.flags|=256),p.flags|=65536,p.lanes=$,z!==F$&&L3(W5(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:z}),w))):(z!==F$&&L3(W5(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:z}),w)),m=m.current.alternate,m.flags|=65536,$&=-$,m.lanes|=$,z=W5(z,w),$=j9(m.stateNode,z,$),F8(m,$),G1!==i2&&(G1=h4)),!1;var J=W5(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:z}),w);if(T7===null?T7=[J]:T7.push(J),G1!==i2&&(G1=h4),p===null)return!0;z=W5(z,w),w=p;do{switch(w.tag){case 3:return w.flags|=65536,m=$&-$,w.lanes|=m,m=j9(w.stateNode,z,m),F8(w,m),!1;case 1:if(p=w.type,J=w.stateNode,(w.flags&128)===0&&(typeof p.getDerivedStateFromError==="function"||J!==null&&typeof J.componentDidCatch==="function"&&(j2===null||!j2.has(J))))return w.flags|=65536,$&=-$,w.lanes|=$,$=r9($),n9($,m,w,z),F8(w,$),!1}w=w.return}while(w!==null);return!1}function x1(m,p,w,z){p.child=m===null?zq(p,null,w,z):A4(p,m.child,w,z)}function AY(m,p,w,z,$){w=w.render;var J=p.ref;if("ref"in z){var X={};for(var Y in z)Y!=="ref"&&(X[Y]=z[Y])}else X=z;if(K4(p),z=L9(m,p,w,X,J,$),Y=M9(),m!==null&&!N1)return F9(m,p,$),Dm(m,p,$);return I0&&Y&&$9(p),p.flags|=1,x1(m,p,z,$),p.child}function SY(m,p,w,z,$){if(m===null){var J=w.type;if(typeof J==="function"&&!m9(J)&&J.defaultProps===void 0&&w.compare===null)return w=q4(J),p.tag=15,p.type=w,s9(p,J),hY(m,p,w,z,$);return m=p9(w.type,null,z,p,p.mode,$),m.ref=p.ref,m.return=p,p.child=m}if(J=m.child,!$z(m,$)){var X=J.memoizedProps;if(w=w.compare,w=w!==null?w:R3,w(X,z)&&m.ref===p.ref)return Dm(m,p,$)}return p.flags|=1,m=xm(J,z),m.ref=p.ref,m.return=p,p.child=m}function hY(m,p,w,z,$){if(m!==null){var J=m.memoizedProps;if(R3(J,z)&&m.ref===p.ref&&p.type===m.type)if(N1=!1,p.pendingProps=z=J,$z(m,$))(m.flags&131072)!==0&&(N1=!0);else return p.lanes=m.lanes,Dm(m,p,$)}return t9(m,p,w,z,$)}function oY(m,p,w,z){var $=z.children,J=m!==null?m.memoizedState:null;if(m===null&&p.stateNode===null&&(p.stateNode={_visibility:X7,_pendingMarkers:null,_retryCache:null,_transitions:null}),z.mode==="hidden"){if((p.flags&128)!==0){if(J=J!==null?J.baseLanes|w:w,m!==null){z=p.child=m.child;for($=0;z!==null;)$=$|z.lanes|z.childLanes,z=z.sibling;z=$&~J}else z=0,p.child=null;return aY(m,p,J,w,z)}if((w&536870912)!==0)p.memoizedState={baseLanes:0,cachePool:null},m!==null&&U8(p,J!==null?J.cachePool:null),J!==null?sX(p,J):W9(p),eX(p);else return z=p.lanes=536870912,aY(m,p,J!==null?J.baseLanes|w:w,w,z)}else J!==null?(U8(p,J.cachePool),sX(p,J),F2(p),p.memoizedState=null):(m!==null&&U8(p,null),W9(p),F2(p));return x1(m,p,$,w),p.child}function k3(m,p){return m!==null&&m.tag===22||p.stateNode!==null||(p.stateNode={_visibility:X7,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.sibling}function aY(m,p,w,z,$){var J=Q9();return J=J===null?null:{parent:R1._currentValue,pool:J},p.memoizedState={baseLanes:w,cachePool:J},m!==null&&U8(p,null),W9(p),eX(p),m!==null&&z6(m,p,z,!0),p.childLanes=$,null}function g8(m,p){var w=p.hidden;return w!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
114
|
+
- <Activity %s>
|
|
115
|
+
+ <Activity %s>`,w===!0?"hidden":w===!1?"hidden={false}":"hidden={...}",w?'mode="hidden"':'mode="visible"'),p=x8({mode:p.mode,children:p.children},m.mode),p.ref=m.ref,m.child=p,p.return=m,p}function lY(m,p,w){return A4(p,m.child,null,w),m=g8(p,p.pendingProps),m.flags|=2,O5(p),p.memoizedState=null,m}function VQ(m,p,w){var z=p.pendingProps,$=(p.flags&128)!==0;if(p.flags&=-129,m===null){if(I0){if(z.mode==="hidden")return m=g8(p,z),p.lanes=536870912,k3(null,m);if(R9(p),(m=m1)?(w=GG(m,x5),w=w!==null&&w.data===x4?w:null,w!==null&&(z={dehydrated:w,treeContext:fX(),retryLane:536870912,hydrationErrors:null},p.memoizedState=z,z=PX(w),z.return=p,p.child=z,i1=p,m1=null)):w=null,w===null)throw b8(p,m),U2(p);return p.lanes=536870912,null}return g8(p,z)}var J=m.memoizedState;if(J!==null){var X=J.dehydrated;if(R9(p),$)if(p.flags&256)p.flags&=-257,p=lY(m,p,w);else if(p.memoizedState!==null)p.child=m.child,p.flags|=128,p=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(kX(),(w&536870912)!==0&&c8(p),N1||z6(m,p,w,!1),$=(w&m.childLanes)!==0,N1||$){if(z=D0,z!==null&&(X=TJ(z,w),X!==0&&X!==J.retryLane))throw J.retryLane=X,c1(m,X),q1(z,m,X),V$;E8(),p=lY(m,p,w)}else m=J.treeContext,m1=N5(X.nextSibling),i1=p,I0=!0,a2=null,Tm=!1,C5=null,x5=!1,m!==null&&TX(p,m),p=g8(p,z),p.flags|=4096;return p}return J=m.child,z={mode:z.mode,children:z.children},(w&536870912)!==0&&(w&m.lanes)!==0&&c8(p),m=xm(J,z),m.ref=p.ref,p.child=m,m.return=p,m}function d8(m,p){var w=p.ref;if(w===null)m!==null&&m.ref!==null&&(p.flags|=4194816);else{if(typeof w!=="function"&&typeof w!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(m===null||m.ref!==w)p.flags|=4194816}}function t9(m,p,w,z,$){if(w.prototype&&typeof w.prototype.render==="function"){var J=G0(w)||"Unknown";Fq[J]||(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.",J,J),Fq[J]=!0)}if(p.mode&j1&&zm.recordLegacyContextWarning(p,null),m===null&&(s9(p,p.type),w.contextTypes&&(J=G0(w)||"Unknown",Cq[J]||(Cq[J]=!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)",J)))),K4(p),w=L9(m,p,w,z,void 0,$),z=M9(),m!==null&&!N1)return F9(m,p,$),Dm(m,p,$);return I0&&z&&$9(p),p.flags|=1,x1(m,p,w,$),p.child}function gY(m,p,w,z,$,J){if(K4(p),J2=-1,F7=m!==null&&m.type!==p.type,p.updateQueue=null,w=N9(p,z,w,$),mY(m,p),z=M9(),m!==null&&!N1)return F9(m,p,J),Dm(m,p,J);return I0&&z&&$9(p),p.flags|=1,x1(m,p,w,J),p.child}function dY(m,p,w,z,$){switch(F(p)){case!1:var J=p.stateNode,X=new p.type(p.memoizedProps,J.context).state;J.updater.enqueueSetState(J,X,null);break;case!0:p.flags|=128,p.flags|=65536,J=Error("Simulated error coming from DevTools");var Y=$&-$;if(p.lanes|=Y,X=D0,X===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Y=r9(Y),n9(Y,X,p,W5(J,p)),F8(p,Y)}if(K4(p),p.stateNode===null){if(X=o2,J=w.contextType,"contextType"in w&&J!==null&&(J===void 0||J.$$typeof!==ym)&&!Nq.has(w)&&(Nq.add(w),Y=J===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 J!=="object"?" However, it is set to a "+typeof J+".":J.$$typeof===iz?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(J).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",G0(w)||"Component",Y)),typeof J==="object"&&J!==null&&(X=$1(J)),J=new w(z,X),p.mode&j1){Y1(!0);try{J=new w(z,X)}finally{Y1(!1)}}if(X=p.memoizedState=J.state!==null&&J.state!==void 0?J.state:null,J.updater=x$,p.stateNode=J,J._reactInternals=p,J._reactInternalInstance=Qq,typeof w.getDerivedStateFromProps==="function"&&X===null&&(X=G0(w)||"Component",Kq.has(X)||(Kq.add(X),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.",X,J.state===null?"null":"undefined",X))),typeof w.getDerivedStateFromProps==="function"||typeof J.getSnapshotBeforeUpdate==="function"){var Z=Y=X=null;if(typeof J.componentWillMount==="function"&&J.componentWillMount.__suppressDeprecationWarning!==!0?X="componentWillMount":typeof J.UNSAFE_componentWillMount==="function"&&(X="UNSAFE_componentWillMount"),typeof J.componentWillReceiveProps==="function"&&J.componentWillReceiveProps.__suppressDeprecationWarning!==!0?Y="componentWillReceiveProps":typeof J.UNSAFE_componentWillReceiveProps==="function"&&(Y="UNSAFE_componentWillReceiveProps"),typeof J.componentWillUpdate==="function"&&J.componentWillUpdate.__suppressDeprecationWarning!==!0?Z="componentWillUpdate":typeof J.UNSAFE_componentWillUpdate==="function"&&(Z="UNSAFE_componentWillUpdate"),X!==null||Y!==null||Z!==null){J=G0(w)||"Component";var G=typeof w.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Wq.has(J)||(Wq.add(J),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`,J,G,X!==null?`
|
|
121
|
+
`+X:"",Y!==null?`
|
|
122
|
+
`+Y:"",Z!==null?`
|
|
123
|
+
`+Z:""))}}J=p.stateNode,X=G0(w)||"Component",J.render||(w.prototype&&typeof w.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",X):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",X)),!J.getInitialState||J.getInitialState.isReactClassApproved||J.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?",X),J.getDefaultProps&&!J.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.",X),J.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",X),w.childContextTypes&&!Lq.has(w)&&(Lq.add(w),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",X)),w.contextTypes&&!Oq.has(w)&&(Oq.add(w),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)",X)),typeof J.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.",X),w.prototype&&w.prototype.isPureReactComponent&&typeof J.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.",G0(w)||"A pure component"),typeof J.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",X),typeof J.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().",X),typeof J.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",X),typeof J.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",X),Y=J.props!==z,J.props!==void 0&&Y&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",X),J.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.",X,X),typeof J.getSnapshotBeforeUpdate!=="function"||typeof J.componentDidUpdate==="function"||Hq.has(w)||(Hq.add(w),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",G0(w))),typeof J.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",X),typeof J.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",X),typeof w.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",X),(Y=J.state)&&(typeof Y!=="object"||P1(Y))&&console.error("%s.state: must be set to an object or null",X),typeof J.getChildContext==="function"&&typeof w.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",X),J=p.stateNode,J.props=z,J.state=p.memoizedState,J.refs={},K9(p),X=w.contextType,J.context=typeof X==="object"&&X!==null?$1(X):o2,J.state===z&&(X=G0(w)||"Component",Uq.has(X)||(Uq.add(X),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.",X))),p.mode&j1&&zm.recordLegacyContextWarning(p,J),zm.recordUnsafeLifecycleWarnings(p,J),J.state=p.memoizedState,X=w.getDerivedStateFromProps,typeof X==="function"&&(E9(p,w,X,z),J.state=p.memoizedState),typeof w.getDerivedStateFromProps==="function"||typeof J.getSnapshotBeforeUpdate==="function"||typeof J.UNSAFE_componentWillMount!=="function"&&typeof J.componentWillMount!=="function"||(X=J.state,typeof J.componentWillMount==="function"&&J.componentWillMount(),typeof J.UNSAFE_componentWillMount==="function"&&J.UNSAFE_componentWillMount(),X!==J.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",f(p)||"Component"),x$.enqueueReplaceState(J,J.state,null)),P3(p,z,J,$),v3(),J.state=p.memoizedState),typeof J.componentDidMount==="function"&&(p.flags|=4194308),(p.mode&wm)!==Q0&&(p.flags|=134217728),J=!0}else if(m===null){J=p.stateNode;var H=p.memoizedProps;Y=O4(w,H),J.props=Y;var W=J.context;Z=w.contextType,X=o2,typeof Z==="object"&&Z!==null&&(X=$1(Z)),G=w.getDerivedStateFromProps,Z=typeof G==="function"||typeof J.getSnapshotBeforeUpdate==="function",H=p.pendingProps!==H,Z||typeof J.UNSAFE_componentWillReceiveProps!=="function"&&typeof J.componentWillReceiveProps!=="function"||(H||W!==X)&&PY(p,J,z,X),V2=!1;var Q=p.memoizedState;J.state=Q,P3(p,z,J,$),v3(),W=p.memoizedState,H||Q!==W||V2?(typeof G==="function"&&(E9(p,w,G,z),W=p.memoizedState),(Y=V2||vY(p,w,Y,z,Q,W,X))?(Z||typeof J.UNSAFE_componentWillMount!=="function"&&typeof J.componentWillMount!=="function"||(typeof J.componentWillMount==="function"&&J.componentWillMount(),typeof J.UNSAFE_componentWillMount==="function"&&J.UNSAFE_componentWillMount()),typeof J.componentDidMount==="function"&&(p.flags|=4194308),(p.mode&wm)!==Q0&&(p.flags|=134217728)):(typeof J.componentDidMount==="function"&&(p.flags|=4194308),(p.mode&wm)!==Q0&&(p.flags|=134217728),p.memoizedProps=z,p.memoizedState=W),J.props=z,J.state=W,J.context=X,J=Y):(typeof J.componentDidMount==="function"&&(p.flags|=4194308),(p.mode&wm)!==Q0&&(p.flags|=134217728),J=!1)}else{J=p.stateNode,H9(m,p),X=p.memoizedProps,Z=O4(w,X),J.props=Z,G=p.pendingProps,Q=J.context,W=w.contextType,Y=o2,typeof W==="object"&&W!==null&&(Y=$1(W)),H=w.getDerivedStateFromProps,(W=typeof H==="function"||typeof J.getSnapshotBeforeUpdate==="function")||typeof J.UNSAFE_componentWillReceiveProps!=="function"&&typeof J.componentWillReceiveProps!=="function"||(X!==G||Q!==Y)&&PY(p,J,z,Y),V2=!1,Q=p.memoizedState,J.state=Q,P3(p,z,J,$),v3();var O=p.memoizedState;X!==G||Q!==O||V2||m!==null&&m.dependencies!==null&&B8(m.dependencies)?(typeof H==="function"&&(E9(p,w,H,z),O=p.memoizedState),(Z=V2||vY(p,w,Z,z,Q,O,Y)||m!==null&&m.dependencies!==null&&B8(m.dependencies))?(W||typeof J.UNSAFE_componentWillUpdate!=="function"&&typeof J.componentWillUpdate!=="function"||(typeof J.componentWillUpdate==="function"&&J.componentWillUpdate(z,O,Y),typeof J.UNSAFE_componentWillUpdate==="function"&&J.UNSAFE_componentWillUpdate(z,O,Y)),typeof J.componentDidUpdate==="function"&&(p.flags|=4),typeof J.getSnapshotBeforeUpdate==="function"&&(p.flags|=1024)):(typeof J.componentDidUpdate!=="function"||X===m.memoizedProps&&Q===m.memoizedState||(p.flags|=4),typeof J.getSnapshotBeforeUpdate!=="function"||X===m.memoizedProps&&Q===m.memoizedState||(p.flags|=1024),p.memoizedProps=z,p.memoizedState=O),J.props=z,J.state=O,J.context=Y,J=Z):(typeof J.componentDidUpdate!=="function"||X===m.memoizedProps&&Q===m.memoizedState||(p.flags|=4),typeof J.getSnapshotBeforeUpdate!=="function"||X===m.memoizedProps&&Q===m.memoizedState||(p.flags|=1024),J=!1)}if(Y=J,d8(m,p),X=(p.flags&128)!==0,Y||X){if(Y=p.stateNode,v1(p),X&&typeof w.getDerivedStateFromError!=="function")w=null,p5=-1;else if(w=V_(Y),p.mode&j1){Y1(!0);try{V_(Y)}finally{Y1(!1)}}p.flags|=1,m!==null&&X?(p.child=A4(p,m.child,null,$),p.child=A4(p,null,w,$)):x1(m,p,w,$),p.memoizedState=Y.state,m=p.child}else m=Dm(m,p,$);return $=p.stateNode,J&&$.props!==z&&(i6||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",f(p)||"a component"),i6=!0),m}function xY(m,p,w,z){return B4(),p.flags|=256,x1(m,p,w,z),p.child}function s9(m,p){p&&p.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
124
|
+
%s.childContextTypes = ...`,p.displayName||p.name||"Component"),typeof p.getDerivedStateFromProps==="function"&&(m=G0(p)||"Unknown",vq[m]||(console.error("%s: Function components do not support getDerivedStateFromProps.",m),vq[m]=!0)),typeof p.contextType==="object"&&p.contextType!==null&&(p=G0(p)||"Unknown",yq[p]||(console.error("%s: Function components do not support contextType.",p),yq[p]=!0))}function e9(m){return{baseLanes:m,cachePool:gX()}}function mz(m,p,w){return m=m!==null?m.childLanes&~w:0,p&&(m|=b5),m}function uY(m,p,w){var z,$=p.pendingProps;k(p)&&(p.flags|=128);var J=!1,X=(p.flags&128)!==0;if((z=X)||(z=m!==null&&m.memoizedState===null?!1:(W1.current&N7)!==0),z&&(J=!0,p.flags&=-129),z=(p.flags&32)!==0,p.flags&=-33,m===null){if(I0){if(J?M2(p):F2(p),(m=m1)?(w=GG(m,x5),w=w!==null&&w.data!==x4?w:null,w!==null&&(z={dehydrated:w,treeContext:fX(),retryLane:536870912,hydrationErrors:null},p.memoizedState=z,z=PX(w),z.return=p,p.child=z,i1=p,m1=null)):w=null,w===null)throw b8(p,m),U2(p);return Az(w)?p.lanes=32:p.lanes=536870912,null}var Y=$.children;if($=$.fallback,J){F2(p);var Z=p.mode;return Y=x8({mode:"hidden",children:Y},Z),$=b4($,Z,w,null),Y.return=p,$.return=p,Y.sibling=$,p.child=Y,$=p.child,$.memoizedState=e9(w),$.childLanes=mz(m,z,w),p.memoizedState=i$,k3(null,$)}return M2(p),pz(p,Y)}var G=m.memoizedState;if(G!==null){var H=G.dehydrated;if(H!==null){if(X)p.flags&256?(M2(p),p.flags&=-257,p=wz(m,p,w)):p.memoizedState!==null?(F2(p),p.child=m.child,p.flags|=128,p=null):(F2(p),Y=$.fallback,Z=p.mode,$=x8({mode:"visible",children:$.children},Z),Y=b4(Y,Z,w,null),Y.flags|=2,$.return=p,Y.return=p,$.sibling=Y,p.child=$,A4(p,m.child,null,w),$=p.child,$.memoizedState=e9(w),$.childLanes=mz(m,z,w),p.memoizedState=i$,p=k3(null,$));else if(M2(p),kX(),(w&536870912)!==0&&c8(p),Az(H)){if(z=H.nextSibling&&H.nextSibling.dataset,z){Y=z.dgst;var W=z.msg;Z=z.stck;var Q=z.cstck}J=W,z=Y,$=Z,H=Q,Y=J,Z=H,Y=Y?Error(Y):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),Y.stack=$||"",Y.digest=z,z=Z===void 0?null:Z,$={value:Y,source:null,stack:z},typeof z==="string"&&M$.set(Y,$),L3($),p=wz(m,p,w)}else if(N1||z6(m,p,w,!1),z=(w&m.childLanes)!==0,N1||z){if(z=D0,z!==null&&($=TJ(z,w),$!==0&&$!==G.retryLane))throw G.retryLane=$,c1(m,$),q1(z,m,$),V$;kz(H)||E8(),p=wz(m,p,w)}else kz(H)?(p.flags|=192,p.child=m.child,p=null):(m=G.treeContext,m1=N5(H.nextSibling),i1=p,I0=!0,a2=null,Tm=!1,C5=null,x5=!1,m!==null&&TX(p,m),p=pz(p,$.children),p.flags|=4096);return p}}if(J)return F2(p),Y=$.fallback,Z=p.mode,Q=m.child,H=Q.sibling,$=xm(Q,{mode:"hidden",children:$.children}),$.subtreeFlags=Q.subtreeFlags&65011712,H!==null?Y=xm(H,Y):(Y=b4(Y,Z,w,null),Y.flags|=2),Y.return=p,$.return=p,$.sibling=Y,p.child=$,k3(null,$),$=p.child,Y=m.child.memoizedState,Y===null?Y=e9(w):(Z=Y.cachePool,Z!==null?(Q=R1._currentValue,Z=Z.parent!==Q?{parent:Q,pool:Q}:Z):Z=gX(),Y={baseLanes:Y.baseLanes|w,cachePool:Z}),$.memoizedState=Y,$.childLanes=mz(m,z,w),p.memoizedState=i$,k3(m.child,$);return G!==null&&(w&62914560)===w&&(w&m.lanes)!==0&&c8(p),M2(p),w=m.child,m=w.sibling,w=xm(w,{mode:"visible",children:$.children}),w.return=p,w.sibling=null,m!==null&&(z=p.deletions,z===null?(p.deletions=[m],p.flags|=16):z.push(m)),p.child=w,p.memoizedState=null,w}function pz(m,p){return p=x8({mode:"visible",children:p},m.mode),p.return=m,m.child=p}function x8(m,p){return m=x(22,m,null,p),m.lanes=0,m}function wz(m,p,w){return A4(p,m.child,null,w),m=pz(p,p.pendingProps.children),m.flags|=2,p.memoizedState=null,m}function VY(m,p,w){m.lanes|=p;var z=m.alternate;z!==null&&(z.lanes|=p),Z9(m.return,p,w)}function zz(m,p,w,z,$,J){var X=m.memoizedState;X===null?m.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:z,tail:w,tailMode:$,treeForkCount:J}:(X.isBackwards=p,X.rendering=null,X.renderingStartTime=0,X.last=z,X.tail=w,X.tailMode=$,X.treeForkCount=J)}function iY(m,p,w){var z=p.pendingProps,$=z.revealOrder,J=z.tail,X=z.children,Y=W1.current;if((z=(Y&N7)!==0)?(Y=Y&d6|N7,p.flags|=128):Y&=d6,I(W1,Y,p),Y=$==null?"null":$,$!=="forwards"&&$!=="unstable_legacy-backwards"&&$!=="together"&&$!=="independent"&&!Pq[Y])if(Pq[Y]=!0,$==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($==="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 $==="string")switch($.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.',$,$.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.',$,$.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',$)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',$);if(Y=J==null?"null":J,!gp[Y])if(J==null){if($==="forwards"||$==="backwards"||$==="unstable_legacy-backwards")gp[Y]=!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 J!=="visible"&&J!=="collapsed"&&J!=="hidden"?(gp[Y]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',J)):$!=="forwards"&&$!=="backwards"&&$!=="unstable_legacy-backwards"&&(gp[Y]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',J));m:if(($==="forwards"||$==="backwards"||$==="unstable_legacy-backwards")&&X!==void 0&&X!==null&&X!==!1)if(P1(X)){for(Y=0;Y<X.length;Y++)if(!rX(X[Y],Y))break m}else if(Y=M0(X),typeof Y==="function"){if(Y=Y.call(X))for(var Z=Y.next(),G=0;!Z.done;Z=Y.next()){if(!rX(Z.value,G))break m;G++}}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?',$);if(x1(m,p,X,w),I0?(W2(),X=Y7):X=0,!z&&m!==null&&(m.flags&128)!==0)m:for(m=p.child;m!==null;){if(m.tag===13)m.memoizedState!==null&&VY(m,w,p);else if(m.tag===19)VY(m,w,p);else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===p)break m;for(;m.sibling===null;){if(m.return===null||m.return===p)break m;m=m.return}m.sibling.return=m.return,m=m.sibling}switch($){case"forwards":w=p.child;for($=null;w!==null;)m=w.alternate,m!==null&&y8(m)===null&&($=w),w=w.sibling;w=$,w===null?($=p.child,p.child=null):($=w.sibling,w.sibling=null),zz(p,!1,$,w,J,X);break;case"backwards":case"unstable_legacy-backwards":w=null,$=p.child;for(p.child=null;$!==null;){if(m=$.alternate,m!==null&&y8(m)===null){p.child=$;break}m=$.sibling,$.sibling=w,w=$,$=m}zz(p,!0,w,null,J,X);break;case"together":zz(p,!1,null,null,void 0,X);break;default:p.memoizedState=null}return p.child}function Dm(m,p,w){if(m!==null&&(p.dependencies=m.dependencies),p5=-1,c2|=p.lanes,(w&p.childLanes)===0)if(m!==null){if(z6(m,p,w,!1),(w&p.childLanes)===0)return null}else return null;if(m!==null&&p.child!==m.child)throw Error("Resuming work not yet implemented.");if(p.child!==null){m=p.child,w=xm(m,m.pendingProps),p.child=w;for(w.return=p;m.sibling!==null;)m=m.sibling,w=w.sibling=xm(m,m.pendingProps),w.return=p;w.sibling=null}return p.child}function $z(m,p){if((m.lanes&p)!==0)return!0;return m=m.dependencies,m!==null&&B8(m)?!0:!1}function iQ(m,p,w){switch(p.tag){case 3:a(p,p.stateNode.containerInfo),R2(p,R1,m.memoizedState.cache),B4();break;case 27:case 5:a0(p);break;case 4:a(p,p.stateNode.containerInfo);break;case 10:R2(p,p.type,p.memoizedProps.value);break;case 12:(w&p.childLanes)!==0&&(p.flags|=4),p.flags|=2048;var z=p.stateNode;z.effectDuration=-0,z.passiveEffectDuration=-0;break;case 31:if(p.memoizedState!==null)return p.flags|=128,R9(p),null;break;case 13:if(z=p.memoizedState,z!==null){if(z.dehydrated!==null)return M2(p),p.flags|=128,null;if((w&p.child.childLanes)!==0)return uY(m,p,w);return M2(p),m=Dm(m,p,w),m!==null?m.sibling:null}M2(p);break;case 19:var $=(m.flags&128)!==0;if(z=(w&p.childLanes)!==0,z||(z6(m,p,w,!1),z=(w&p.childLanes)!==0),$){if(z)return iY(m,p,w);p.flags|=128}if($=p.memoizedState,$!==null&&($.rendering=null,$.tail=null,$.lastEffect=null),I(W1,W1.current,p),z)break;else return null;case 22:return p.lanes=0,oY(m,p,w,p.pendingProps);case 24:R2(p,R1,m.memoizedState.cache)}return Dm(m,p,w)}function Jz(m,p,w){if(p._debugNeedsRemount&&m!==null){w=p9(p.type,p.key,p.pendingProps,p._debugOwner||null,p.mode,p.lanes),w._debugStack=p._debugStack,w._debugTask=p._debugTask;var z=p.return;if(z===null)throw Error("Cannot swap the root fiber.");if(m.alternate=null,p.alternate=null,w.index=p.index,w.sibling=p.sibling,w.return=p.return,w.ref=p.ref,w._debugInfo=p._debugInfo,p===z.child)z.child=w;else{var $=z.child;if($===null)throw Error("Expected parent to have a child.");for(;$.sibling!==p;)if($=$.sibling,$===null)throw Error("Expected to find the previous sibling.");$.sibling=w}return p=z.deletions,p===null?(z.deletions=[m],z.flags|=16):p.push(m),w.flags|=2,w}if(m!==null)if(m.memoizedProps!==p.pendingProps||p.type!==m.type)N1=!0;else{if(!$z(m,w)&&(p.flags&128)===0)return N1=!1,iQ(m,p,w);N1=(m.flags&131072)!==0?!0:!1}else{if(N1=!1,z=I0)W2(),z=(p.flags&1048576)!==0;z&&(z=p.index,W2(),IX(p,Y7,z))}switch(p.lanes=0,p.tag){case 16:m:if(z=p.pendingProps,m=O2(p.elementType),p.type=m,typeof m==="function")m9(m)?(z=O4(m,z),p.tag=1,p.type=m=q4(m),p=dY(null,p,m,z,w)):(p.tag=0,s9(p,m),p.type=m=q4(m),p=t9(null,p,m,z,w));else{if(m!==void 0&&m!==null){if($=m.$$typeof,$===j3){p.tag=11,p.type=m=ew(m),p=AY(null,p,m,z,w);break m}else if($===Yp){p.tag=14,p=SY(null,p,m,z,w);break m}}throw p="",m!==null&&typeof m==="object"&&m.$$typeof===M5&&(p=" Did you wrap a component in React.lazy() more than once?"),w=G0(m)||m,Error("Element type is invalid. Received a promise that resolves to: "+w+". Lazy element type must resolve to a class or function."+p)}return p;case 0:return t9(m,p,p.type,p.pendingProps,w);case 1:return z=p.type,$=O4(z,p.pendingProps),dY(m,p,z,$,w);case 3:m:{if(a(p,p.stateNode.containerInfo),m===null)throw Error("Should have a current fiber. This is a bug in React.");z=p.pendingProps;var J=p.memoizedState;$=J.element,H9(m,p),P3(p,z,null,w);var X=p.memoizedState;if(z=X.cache,R2(p,R1,z),z!==J.cache&&G9(p,[R1],w,!0),v3(),z=X.element,J.isDehydrated)if(J={element:z,isDehydrated:!1,cache:X.cache},p.updateQueue.baseState=J,p.memoizedState=J,p.flags&256){p=xY(m,p,z,w);break m}else if(z!==$){$=W5(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),p),L3($),p=xY(m,p,z,w);break m}else{switch(m=p.stateNode.containerInfo,m.nodeType){case 9:m=m.body;break;default:m=m.nodeName==="HTML"?m.ownerDocument.body:m}m1=N5(m.firstChild),i1=p,I0=!0,a2=null,Tm=!1,C5=null,x5=!0,w=zq(p,null,z,w);for(p.child=w;w;)w.flags=w.flags&-3|4096,w=w.sibling}else{if(B4(),z===$){p=Dm(m,p,w);break m}x1(m,p,z,w)}p=p.child}return p;case 26:return d8(m,p),m===null?(w=KG(p.type,null,p.pendingProps,null))?p.memoizedState=w:I0||(w=p.type,m=p.pendingProps,z=b0(f2.current),z=t8(z).createElement(w),z[V1]=p,z[s1]=m,u1(z,w,m),S1(z),p.stateNode=z):p.memoizedState=KG(p.type,m.memoizedProps,p.pendingProps,m.memoizedState),null;case 27:return a0(p),m===null&&I0&&(z=b0(f2.current),$=z0(),z=p.stateNode=QG(p.type,p.pendingProps,z,$,!1),Tm||($=pG(z,p.type,p.pendingProps,$),$!==null&&(Q4(p,0).serverProps=$)),i1=p,x5=!0,$=m1,P2(p.type)?(QJ=$,m1=N5(z.firstChild)):m1=$),x1(m,p,p.pendingProps.children,w),d8(m,p),m===null&&(p.flags|=4194304),p.child;case 5:return m===null&&I0&&(J=z0(),z=Dw(p.type,J.ancestorInfo),$=m1,(X=!$)||(X=kB($,p.type,p.pendingProps,x5),X!==null?(p.stateNode=X,Tm||(J=pG(X,p.type,p.pendingProps,J),J!==null&&(Q4(p,0).serverProps=J)),i1=p,m1=N5(X.firstChild),x5=!1,J=!0):J=!1,X=!J),X&&(z&&b8(p,$),U2(p))),a0(p),$=p.type,J=p.pendingProps,X=m!==null?m.memoizedProps:null,z=J.children,fz($,J)?z=null:X!==null&&fz($,X)&&(p.flags|=32),p.memoizedState!==null&&($=L9(m,p,oQ,null,null,w),d7._currentValue=$),d8(m,p),x1(m,p,z,w),p.child;case 6:return m===null&&I0&&(w=p.pendingProps,m=z0(),z=m.ancestorInfo.current,w=z!=null?w8(w,z.tag,m.ancestorInfo.implicitRootScope):!0,m=m1,(z=!m)||(z=AB(m,p.pendingProps,x5),z!==null?(p.stateNode=z,i1=p,m1=null,z=!0):z=!1,z=!z),z&&(w&&b8(p,m),U2(p))),null;case 13:return uY(m,p,w);case 4:return a(p,p.stateNode.containerInfo),z=p.pendingProps,m===null?p.child=A4(p,null,z,w):x1(m,p,z,w),p.child;case 11:return AY(m,p,p.type,p.pendingProps,w);case 7:return x1(m,p,p.pendingProps,w),p.child;case 8:return x1(m,p,p.pendingProps.children,w),p.child;case 12:return p.flags|=4,p.flags|=2048,z=p.stateNode,z.effectDuration=-0,z.passiveEffectDuration=-0,x1(m,p,p.pendingProps.children,w),p.child;case 10:return z=p.type,$=p.pendingProps,J=$.value,"value"in $||Iq||(Iq=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),R2(p,z,J),x1(m,p,$.children,w),p.child;case 9:return $=p.type._context,z=p.pendingProps.children,typeof z!=="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."),K4(p),$=$1($),z=T$(z,$,void 0),p.flags|=1,x1(m,p,z,w),p.child;case 14:return SY(m,p,p.type,p.pendingProps,w);case 15:return hY(m,p,p.type,p.pendingProps,w);case 19:return iY(m,p,w);case 31:return VQ(m,p,w);case 22:return oY(m,p,w,p.pendingProps);case 24:return K4(p),z=$1(R1),m===null?($=Q9(),$===null&&($=D0,J=_9(),$.pooledCache=J,H4(J),J!==null&&($.pooledCacheLanes|=w),$=J),p.memoizedState={parent:z,cache:$},K9(p),R2(p,R1,$)):((m.lanes&w)!==0&&(H9(m,p),P3(p,null,null,w),v3()),$=m.memoizedState,J=p.memoizedState,$.parent!==z?($={parent:z,cache:z},p.memoizedState=$,p.lanes===0&&(p.memoizedState=p.updateQueue.baseState=$),R2(p,R1,z)):(z=J.cache,R2(p,R1,z),z!==$.cache&&G9(p,[R1],w,!0))),x1(m,p,p.pendingProps.children,w),p.child;case 29:throw p.pendingProps}throw Error("Unknown unit of work tag ("+p.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function cm(m){m.flags|=4}function Xz(m,p,w,z,$){if(p=(m.mode&_H)!==Q0)p=!1;if(p){if(m.flags|=16777216,($&335544128)===$)if(m.stateNode.complete)m.flags|=8192;else if(MZ())m.flags|=8192;else throw k4=Ap,A$}else m.flags&=-16777217}function DY(m,p){if(p.type!=="stylesheet"||(p.state.loading&c5)!==i4)m.flags&=-16777217;else if(m.flags|=16777216,!OG(p))if(MZ())m.flags|=8192;else throw k4=Ap,A$}function u8(m,p){p!==null&&(m.flags|=4),m.flags&16384&&(p=m.tag!==22?kw():536870912,m.lanes|=p,l4|=p)}function A3(m,p){if(!I0)switch(m.tailMode){case"hidden":p=m.tail;for(var w=null;p!==null;)p.alternate!==null&&(w=p),p=p.sibling;w===null?m.tail=null:w.sibling=null;break;case"collapsed":w=m.tail;for(var z=null;w!==null;)w.alternate!==null&&(z=w),w=w.sibling;z===null?p||m.tail===null?m.tail=null:m.tail.sibling=null:z.sibling=null}}function E0(m){var p=m.alternate!==null&&m.alternate.child===m.child,w=0,z=0;if(p)if((m.mode&O0)!==Q0){for(var{selfBaseDuration:$,child:J}=m;J!==null;)w|=J.lanes|J.childLanes,z|=J.subtreeFlags&65011712,z|=J.flags&65011712,$+=J.treeBaseDuration,J=J.sibling;m.treeBaseDuration=$}else for($=m.child;$!==null;)w|=$.lanes|$.childLanes,z|=$.subtreeFlags&65011712,z|=$.flags&65011712,$.return=m,$=$.sibling;else if((m.mode&O0)!==Q0){$=m.actualDuration,J=m.selfBaseDuration;for(var X=m.child;X!==null;)w|=X.lanes|X.childLanes,z|=X.subtreeFlags,z|=X.flags,$+=X.actualDuration,J+=X.treeBaseDuration,X=X.sibling;m.actualDuration=$,m.treeBaseDuration=J}else for($=m.child;$!==null;)w|=$.lanes|$.childLanes,z|=$.subtreeFlags,z|=$.flags,$.return=m,$=$.sibling;return m.subtreeFlags|=z,m.childLanes=w,p}function DQ(m,p,w){var z=p.pendingProps;switch(J9(p),p.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return E0(p),null;case 1:return E0(p),null;case 3:if(w=p.stateNode,z=null,m!==null&&(z=m.memoizedState.cache),p.memoizedState.cache!==z&&(p.flags|=2048),Vm(R1,p),u(p),w.pendingContext&&(w.context=w.pendingContext,w.pendingContext=null),m===null||m.child===null)w6(p)?(Y9(),cm(p)):m===null||m.memoizedState.isDehydrated&&(p.flags&256)===0||(p.flags|=1024,X9());return E0(p),null;case 26:var{type:$,memoizedState:J}=p;return m===null?(cm(p),J!==null?(E0(p),DY(p,J)):(E0(p),Xz(p,$,null,z,w))):J?J!==m.memoizedState?(cm(p),E0(p),DY(p,J)):(E0(p),p.flags&=-16777217):(m=m.memoizedProps,m!==z&&cm(p),E0(p),Xz(p,$,m,z,w)),null;case 27:if(c0(p),w=b0(f2.current),$=p.type,m!==null&&p.stateNode!=null)m.memoizedProps!==z&&cm(p);else{if(!z){if(p.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 E0(p),null}m=z0(),w6(p)?AX(p,m):(m=QG($,z,w,m,!0),p.stateNode=m,cm(p))}return E0(p),null;case 5:if(c0(p),$=p.type,m!==null&&p.stateNode!=null)m.memoizedProps!==z&&cm(p);else{if(!z){if(p.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 E0(p),null}var X=z0();if(w6(p))AX(p,X);else{switch(J=b0(f2.current),Dw($,X.ancestorInfo),X=X.context,J=t8(J),X){case s6:J=J.createElementNS(N6,$);break;case Jw:J=J.createElementNS(Bp,$);break;default:switch($){case"svg":J=J.createElementNS(N6,$);break;case"math":J=J.createElementNS(Bp,$);break;case"script":J=J.createElement("div"),J.innerHTML="<script></script>",J=J.removeChild(J.firstChild);break;case"select":J=typeof z.is==="string"?J.createElement("select",{is:z.is}):J.createElement("select"),z.multiple?J.multiple=!0:z.size&&(J.size=z.size);break;default:J=typeof z.is==="string"?J.createElement($,{is:z.is}):J.createElement($),$.indexOf("-")===-1&&($!==$.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",$),Object.prototype.toString.call(J)!=="[object HTMLUnknownElement]"||mm.call(eq,$)||(eq[$]=!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.",$)))}}J[V1]=p,J[s1]=z;m:for(X=p.child;X!==null;){if(X.tag===5||X.tag===6)J.appendChild(X.stateNode);else if(X.tag!==4&&X.tag!==27&&X.child!==null){X.child.return=X,X=X.child;continue}if(X===p)break m;for(;X.sibling===null;){if(X.return===null||X.return===p)break m;X=X.return}X.sibling.return=X.return,X=X.sibling}p.stateNode=J;m:switch(u1(J,$,z),$){case"button":case"input":case"select":case"textarea":z=!!z.autoFocus;break m;case"img":z=!0;break m;default:z=!1}z&&cm(p)}}return E0(p),Xz(p,p.type,m===null?null:m.memoizedProps,p.pendingProps,w),null;case 6:if(m&&p.stateNode!=null)m.memoizedProps!==z&&cm(p);else{if(typeof z!=="string"&&p.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(m=b0(f2.current),w=z0(),w6(p)){if(m=p.stateNode,w=p.memoizedProps,$=!Tm,z=null,J=i1,J!==null)switch(J.tag){case 3:$&&($=qG(m,w,z),$!==null&&(Q4(p,0).serverProps=$));break;case 27:case 5:z=J.memoizedProps,$&&($=qG(m,w,z),$!==null&&(Q4(p,0).serverProps=$))}m[V1]=p,m=m.nodeValue===w||z!==null&&z.suppressHydrationWarning===!0||nZ(m.nodeValue,w)?!0:!1,m||U2(p,!0)}else $=w.ancestorInfo.current,$!=null&&w8(z,$.tag,w.ancestorInfo.implicitRootScope),m=t8(m).createTextNode(z),m[V1]=p,p.stateNode=m}return E0(p),null;case 31:if(w=p.memoizedState,m===null||m.memoizedState!==null){if(z=w6(p),w!==null){if(m===null){if(!z)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(m=p.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");m[V1]=p,E0(p),(p.mode&O0)!==Q0&&w!==null&&(m=p.child,m!==null&&(p.treeBaseDuration-=m.treeBaseDuration))}else Y9(),B4(),(p.flags&128)===0&&(w=p.memoizedState=null),p.flags|=4,E0(p),(p.mode&O0)!==Q0&&w!==null&&(m=p.child,m!==null&&(p.treeBaseDuration-=m.treeBaseDuration));m=!1}else w=X9(),m!==null&&m.memoizedState!==null&&(m.memoizedState.hydrationErrors=w),m=!0;if(!m){if(p.flags&256)return O5(p),p;return O5(p),null}if((p.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return E0(p),null;case 13:if(z=p.memoizedState,m===null||m.memoizedState!==null&&m.memoizedState.dehydrated!==null){if($=z,J=w6(p),$!==null&&$.dehydrated!==null){if(m===null){if(!J)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(J=p.memoizedState,J=J!==null?J.dehydrated:null,!J)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");J[V1]=p,E0(p),(p.mode&O0)!==Q0&&$!==null&&($=p.child,$!==null&&(p.treeBaseDuration-=$.treeBaseDuration))}else Y9(),B4(),(p.flags&128)===0&&($=p.memoizedState=null),p.flags|=4,E0(p),(p.mode&O0)!==Q0&&$!==null&&($=p.child,$!==null&&(p.treeBaseDuration-=$.treeBaseDuration));$=!1}else $=X9(),m!==null&&m.memoizedState!==null&&(m.memoizedState.hydrationErrors=$),$=!0;if(!$){if(p.flags&256)return O5(p),p;return O5(p),null}}if(O5(p),(p.flags&128)!==0)return p.lanes=w,(p.mode&O0)!==Q0&&F3(p),p;return w=z!==null,m=m!==null&&m.memoizedState!==null,w&&(z=p.child,$=null,z.alternate!==null&&z.alternate.memoizedState!==null&&z.alternate.memoizedState.cachePool!==null&&($=z.alternate.memoizedState.cachePool.pool),J=null,z.memoizedState!==null&&z.memoizedState.cachePool!==null&&(J=z.memoizedState.cachePool.pool),J!==$&&(z.flags|=2048)),w!==m&&w&&(p.child.flags|=8192),u8(p,p.updateQueue),E0(p),(p.mode&O0)!==Q0&&w&&(m=p.child,m!==null&&(p.treeBaseDuration-=m.treeBaseDuration)),null;case 4:return u(p),m===null&&Mz(p.stateNode.containerInfo),E0(p),null;case 10:return Vm(p.type,p),E0(p),null;case 19:if(T(W1,p),z=p.memoizedState,z===null)return E0(p),null;if($=(p.flags&128)!==0,J=z.rendering,J===null)if($)A3(z,!1);else{if(G1!==Y2||m!==null&&(m.flags&128)!==0)for(m=p.child;m!==null;){if(J=y8(m),J!==null){p.flags|=128,A3(z,!1),m=J.updateQueue,p.updateQueue=m,u8(p,m),p.subtreeFlags=0,m=w;for(w=p.child;w!==null;)vX(w,m),w=w.sibling;return I(W1,W1.current&d6|N7,p),I0&&um(p,z.treeForkCount),p.child}m=m.sibling}z.tail!==null&&o1()>cp&&(p.flags|=128,$=!0,A3(z,!1),p.lanes=4194304)}else{if(!$)if(m=y8(J),m!==null){if(p.flags|=128,$=!0,m=m.updateQueue,p.updateQueue=m,u8(p,m),A3(z,!0),z.tail===null&&z.tailMode==="hidden"&&!J.alternate&&!I0)return E0(p),null}else 2*o1()-z.renderingStartTime>cp&&w!==536870912&&(p.flags|=128,$=!0,A3(z,!1),p.lanes=4194304);z.isBackwards?(J.sibling=p.child,p.child=J):(m=z.last,m!==null?m.sibling=J:p.child=J,z.last=J)}if(z.tail!==null)return m=z.tail,z.rendering=m,z.tail=m.sibling,z.renderingStartTime=o1(),m.sibling=null,w=W1.current,w=$?w&d6|N7:w&d6,I(W1,w,p),I0&&um(p,z.treeForkCount),m;return E0(p),null;case 22:case 23:return O5(p),U9(p),z=p.memoizedState!==null,m!==null?m.memoizedState!==null!==z&&(p.flags|=8192):z&&(p.flags|=8192),z?(w&536870912)!==0&&(p.flags&128)===0&&(E0(p),p.subtreeFlags&6&&(p.flags|=8192)):E0(p),w=p.updateQueue,w!==null&&u8(p,w.retryQueue),w=null,m!==null&&m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(w=m.memoizedState.cachePool.pool),z=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(z=p.memoizedState.cachePool.pool),z!==w&&(p.flags|=2048),m!==null&&T(f4,p),null;case 24:return w=null,m!==null&&(w=m.memoizedState.cache),p.memoizedState.cache!==w&&(p.flags|=2048),Vm(R1,p),E0(p),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+p.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function cQ(m,p){switch(J9(p),p.tag){case 1:return m=p.flags,m&65536?(p.flags=m&-65537|128,(p.mode&O0)!==Q0&&F3(p),p):null;case 3:return Vm(R1,p),u(p),m=p.flags,(m&65536)!==0&&(m&128)===0?(p.flags=m&-65537|128,p):null;case 26:case 27:case 5:return c0(p),null;case 31:if(p.memoizedState!==null){if(O5(p),p.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");B4()}return m=p.flags,m&65536?(p.flags=m&-65537|128,(p.mode&O0)!==Q0&&F3(p),p):null;case 13:if(O5(p),m=p.memoizedState,m!==null&&m.dehydrated!==null){if(p.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");B4()}return m=p.flags,m&65536?(p.flags=m&-65537|128,(p.mode&O0)!==Q0&&F3(p),p):null;case 19:return T(W1,p),null;case 4:return u(p),null;case 10:return Vm(p.type,p),null;case 22:case 23:return O5(p),U9(p),m!==null&&T(f4,p),m=p.flags,m&65536?(p.flags=m&-65537|128,(p.mode&O0)!==Q0&&F3(p),p):null;case 24:return Vm(R1,p),null;case 25:return null;default:return null}}function cY(m,p){switch(J9(p),p.tag){case 3:Vm(R1,p),u(p);break;case 26:case 27:case 5:c0(p);break;case 4:u(p);break;case 31:p.memoizedState!==null&&O5(p);break;case 13:O5(p);break;case 19:T(W1,p);break;case 10:Vm(p.type,p);break;case 22:case 23:O5(p),U9(p),m!==null&&T(f4,p);break;case 24:Vm(R1,p)}}function Um(m){return(m.mode&O0)!==Q0}function EY(m,p){Um(m)?(Wm(),S3(p,m),Hm()):S3(p,m)}function Yz(m,p,w){Um(m)?(Wm(),Z6(w,m,p),Hm()):Z6(w,m,p)}function S3(m,p){try{var w=p.updateQueue,z=w!==null?w.lastEffect:null;if(z!==null){var $=z.next;w=$;do{if((w.tag&m)===m&&(z=void 0,(m&w5)!==hp&&(r6=!0),z=h(p,KH,w),(m&w5)!==hp&&(r6=!1),z!==void 0&&typeof z!=="function")){var J=void 0;J=(w.tag&P5)!==0?"useLayoutEffect":(w.tag&w5)!==0?"useInsertionEffect":"useEffect";var X=void 0;X=z===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof z.then==="function"?`
|
|
125
|
+
|
|
126
|
+
It looks like you wrote `+J+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
127
|
+
|
|
128
|
+
`+J+`(() => {
|
|
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: "+z,h(p,function(Y,Z){console.error("%s must not return anything besides a function, which is used for clean-up.%s",Y,Z)},J,X)}w=w.next}while(w!==$)}}catch(Y){h0(p,p.return,Y)}}function Z6(m,p,w){try{var z=p.updateQueue,$=z!==null?z.lastEffect:null;if($!==null){var J=$.next;z=J;do{if((z.tag&m)===m){var X=z.inst,Y=X.destroy;Y!==void 0&&(X.destroy=void 0,(m&w5)!==hp&&(r6=!0),$=p,h($,HH,$,w,Y),(m&w5)!==hp&&(r6=!1))}z=z.next}while(z!==J)}}catch(Z){h0(p,p.return,Z)}}function jY(m,p){Um(m)?(Wm(),S3(p,m),Hm()):S3(p,m)}function Zz(m,p,w){Um(m)?(Wm(),Z6(w,m,p),Hm()):Z6(w,m,p)}function rY(m){var p=m.updateQueue;if(p!==null){var w=m.stateNode;m.type.defaultProps||"ref"in m.memoizedProps||i6||(w.props!==m.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.",f(m)||"instance"),w.state!==m.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.",f(m)||"instance"));try{h(m,tX,p,w)}catch(z){h0(m,m.return,z)}}}function EQ(m,p,w){return m.getSnapshotBeforeUpdate(p,w)}function jQ(m,p){var{memoizedProps:w,memoizedState:z}=p;p=m.stateNode,m.type.defaultProps||"ref"in m.memoizedProps||i6||(p.props!==m.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.",f(m)||"instance"),p.state!==m.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.",f(m)||"instance"));try{var $=O4(m.type,w),J=h(m,EQ,p,$,z);w=fq,J!==void 0||w.has(m.type)||(w.add(m.type),h(m,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",f(m))})),p.__reactInternalSnapshotBeforeUpdate=J}catch(X){h0(m,m.return,X)}}function nY(m,p,w){w.props=O4(m.type,m.memoizedProps),w.state=m.memoizedState,Um(m)?(Wm(),h(m,r_,m,p,w),Hm()):h(m,r_,m,p,w)}function rQ(m){var p=m.ref;if(p!==null){switch(m.tag){case 26:case 27:case 5:var w=m.stateNode;break;case 30:w=m.stateNode;break;default:w=m.stateNode}if(typeof p==="function")if(Um(m))try{Wm(),m.refCleanup=p(w)}finally{Hm()}else m.refCleanup=p(w);else typeof p==="string"?console.error("String refs are no longer supported."):p.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",f(m)),p.current=w}}function h3(m,p){try{h(m,rQ,m)}catch(w){h0(m,p,w)}}function Rm(m,p){var{ref:w,refCleanup:z}=m;if(w!==null)if(typeof z==="function")try{if(Um(m))try{Wm(),h(m,z)}finally{Hm(m)}else h(m,z)}catch($){h0(m,p,$)}finally{m.refCleanup=null,m=m.alternate,m!=null&&(m.refCleanup=null)}else if(typeof w==="function")try{if(Um(m))try{Wm(),h(m,w,null)}finally{Hm(m)}else h(m,w,null)}catch($){h0(m,p,$)}else w.current=null}function tY(m,p,w,z){var $=m.memoizedProps,J=$.id,X=$.onCommit;$=$.onRender,p=p===null?"mount":"update",Ip&&(p="nested-update"),typeof $==="function"&&$(J,p,m.actualDuration,m.treeBaseDuration,m.actualStartTime,w),typeof X==="function"&&X(J,p,z,w)}function nQ(m,p,w,z){var $=m.memoizedProps;m=$.id,$=$.onPostCommit,p=p===null?"mount":"update",Ip&&(p="nested-update"),typeof $==="function"&&$(m,p,z,w)}function sY(m){var{type:p,memoizedProps:w,stateNode:z}=m;try{h(m,OB,z,p,w,m)}catch($){h0(m,m.return,$)}}function Gz(m,p,w){try{h(m,NB,m.stateNode,m.type,w,p,m)}catch(z){h0(m,m.return,z)}}function eY(m){return m.tag===5||m.tag===3||m.tag===26||m.tag===27&&P2(m.type)||m.tag===4}function _z(m){m:for(;;){for(;m.sibling===null;){if(m.return===null||eY(m.return))return null;m=m.return}m.sibling.return=m.return;for(m=m.sibling;m.tag!==5&&m.tag!==6&&m.tag!==18;){if(m.tag===27&&P2(m.type))continue m;if(m.flags&2)continue m;if(m.child===null||m.tag===4)continue m;else m.child.return=m,m=m.child}if(!(m.flags&2))return m.stateNode}}function qz(m,p,w){var z=m.tag;if(z===5||z===6)m=m.stateNode,p?(XG(w),(w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w).insertBefore(m,p)):(XG(w),p=w.nodeType===9?w.body:w.nodeName==="HTML"?w.ownerDocument.body:w,p.appendChild(m),w=w._reactRootContainer,w!==null&&w!==void 0||p.onclick!==null||(p.onclick=dm));else if(z!==4&&(z===27&&P2(m.type)&&(w=m.stateNode,p=null),m=m.child,m!==null))for(qz(m,p,w),m=m.sibling;m!==null;)qz(m,p,w),m=m.sibling}function V8(m,p,w){var z=m.tag;if(z===5||z===6)m=m.stateNode,p?w.insertBefore(m,p):w.appendChild(m);else if(z!==4&&(z===27&&P2(m.type)&&(w=m.stateNode),m=m.child,m!==null))for(V8(m,p,w),m=m.sibling;m!==null;)V8(m,p,w),m=m.sibling}function tQ(m){for(var p,w=m.return;w!==null;){if(eY(w)){p=w;break}w=w.return}if(p==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(p.tag){case 27:p=p.stateNode,w=_z(m),V8(m,w,p);break;case 5:w=p.stateNode,p.flags&32&&(JG(w),p.flags&=-33),p=_z(m),V8(m,p,w);break;case 3:case 4:p=p.stateNode.containerInfo,w=_z(m),qz(m,w,p);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function mZ(m){var{stateNode:p,memoizedProps:w}=m;try{h(m,lB,m.type,w,p,m)}catch(z){h0(m,m.return,z)}}function pZ(m,p){return p.tag===31?(p=p.memoizedState,m.memoizedState!==null&&p===null):p.tag===13?(m=m.memoizedState,p=p.memoizedState,m!==null&&m.dehydrated!==null&&(p===null||p.dehydrated===null)):p.tag===3?m.memoizedState.isDehydrated&&(p.flags&256)===0:!1}function sQ(m,p){if(m=m.containerInfo,_J=Gw,m=WX(m),jw(m)){if("selectionStart"in m)var w={start:m.selectionStart,end:m.selectionEnd};else m:{w=(w=m.ownerDocument)&&w.defaultView||window;var z=w.getSelection&&w.getSelection();if(z&&z.rangeCount!==0){w=z.anchorNode;var{anchorOffset:$,focusNode:J}=z;z=z.focusOffset;try{w.nodeType,J.nodeType}catch(V){w=null;break m}var X=0,Y=-1,Z=-1,G=0,H=0,W=m,Q=null;p:for(;;){for(var O;;){if(W!==w||$!==0&&W.nodeType!==3||(Y=X+$),W!==J||z!==0&&W.nodeType!==3||(Z=X+z),W.nodeType===3&&(X+=W.nodeValue.length),(O=W.firstChild)===null)break;Q=W,W=O}for(;;){if(W===m)break p;if(Q===w&&++G===$&&(Y=X),Q===J&&++H===z&&(Z=X),(O=W.nextSibling)!==null)break;W=Q,Q=W.parentNode}W=O}w=Y===-1||Z===-1?null:{start:Y,end:Z}}else w=null}w=w||{start:0,end:0}}else w=null;qJ={focusedElem:m,selectionRange:w},Gw=!1;for(l1=p;l1!==null;)if(p=l1,m=p.child,(p.subtreeFlags&1028)!==0&&m!==null)m.return=p,l1=m;else for(;l1!==null;){switch(m=p=l1,w=m.alternate,$=m.flags,m.tag){case 0:if(($&4)!==0&&(m=m.updateQueue,m=m!==null?m.events:null,m!==null))for(w=0;w<m.length;w++)$=m[w],$.ref.impl=$.nextImpl;break;case 11:case 15:break;case 1:($&1024)!==0&&w!==null&&jQ(m,w);break;case 3:if(($&1024)!==0){if(m=m.stateNode.containerInfo,w=m.nodeType,w===9)Tz(m);else if(w===1)switch(m.nodeName){case"HEAD":case"HTML":case"BODY":Tz(m);break;default:m.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(($&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(m=p.sibling,m!==null){m.return=p.return,l1=m;break}l1=p.return}}function wZ(m,p,w){var z=U5(),$=bm(),J=Bm(),X=Km(),Y=w.flags;switch(w.tag){case 0:case 11:case 15:Om(m,w),Y&4&&EY(w,P5|i5);break;case 1:if(Om(m,w),Y&4)if(m=w.stateNode,p===null)w.type.defaultProps||"ref"in w.memoizedProps||i6||(m.props!==w.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.",f(w)||"instance"),m.state!==w.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.",f(w)||"instance")),Um(w)?(Wm(),h(w,k$,w,m),Hm()):h(w,k$,w,m);else{var Z=O4(w.type,p.memoizedProps);p=p.memoizedState,w.type.defaultProps||"ref"in w.memoizedProps||i6||(m.props!==w.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.",f(w)||"instance"),m.state!==w.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.",f(w)||"instance")),Um(w)?(Wm(),h(w,c_,w,m,Z,p,m.__reactInternalSnapshotBeforeUpdate),Hm()):h(w,c_,w,m,Z,p,m.__reactInternalSnapshotBeforeUpdate)}Y&64&&rY(w),Y&512&&h3(w,w.return);break;case 3:if(p=im(),Om(m,w),Y&64&&(Y=w.updateQueue,Y!==null)){if(Z=null,w.child!==null)switch(w.child.tag){case 27:case 5:Z=w.child.stateNode;break;case 1:Z=w.child.stateNode}try{h(w,tX,Y,Z)}catch(H){h0(w,w.return,H)}}m.effectDuration+=H8(p);break;case 27:p===null&&Y&4&&mZ(w);case 26:case 5:if(Om(m,w),p===null){if(Y&4)sY(w);else if(Y&64){m=w.type,p=w.memoizedProps,Z=w.stateNode;try{h(w,LB,Z,m,p,w)}catch(H){h0(w,w.return,H)}}}Y&512&&h3(w,w.return);break;case 12:if(Y&4){Y=im(),Om(m,w),m=w.stateNode,m.effectDuration+=M3(Y);try{h(w,tY,w,p,l2,m.effectDuration)}catch(H){h0(w,w.return,H)}}else Om(m,w);break;case 31:Om(m,w),Y&4&&JZ(m,w);break;case 13:Om(m,w),Y&4&&XZ(m,w),Y&64&&(m=w.memoizedState,m!==null&&(m=m.dehydrated,m!==null&&(Y=YB.bind(null,w),SB(m,Y))));break;case 22:if(Y=w.memoizedState!==null||X2,!Y){p=p!==null&&p.memoizedState!==null||M1,Z=X2;var G=M1;X2=Y,(M1=p)&&!G?(Lm(m,w,(w.subtreeFlags&8772)!==0),(w.mode&O0)!==Q0&&0<=Y0&&0<=_0&&0.05<_0-Y0&&X8(w,Y0,_0)):Om(m,w),X2=Z,M1=G}break;case 30:break;default:Om(m,w)}(w.mode&O0)!==Q0&&0<=Y0&&0<=_0&&((b1||0.05<Z1)&&_m(w,Y0,_0,Z1,J1),w.alternate===null&&w.return!==null&&w.return.alternate!==null&&0.05<_0-Y0&&(pZ(w.return.alternate,w.return)||Gm(w,Y0,_0,"Mount"))),R5(z),Qm($),J1=J,b1=X}function zZ(m){var p=m.alternate;p!==null&&(m.alternate=null,zZ(p)),m.child=null,m.deletions=null,m.sibling=null,m.tag===5&&(p=m.stateNode,p!==null&&ow(p)),m.stateNode=null,m._debugOwner=null,m.return=null,m.dependencies=null,m.memoizedProps=null,m.memoizedState=null,m.pendingProps=null,m.stateNode=null,m.updateQueue=null}function Em(m,p,w){for(w=w.child;w!==null;)$Z(m,p,w),w=w.sibling}function $Z(m,p,w){if(E1&&typeof E1.onCommitFiberUnmount==="function")try{E1.onCommitFiberUnmount(O6,w)}catch(G){vm||(vm=!0,console.error("React instrumentation encountered an error: %o",G))}var z=U5(),$=bm(),J=Bm(),X=Km();switch(w.tag){case 26:M1||Rm(w,p),Em(m,p,w),w.memoizedState?w.memoizedState.count--:w.stateNode&&(m=w.stateNode,m.parentNode.removeChild(m));break;case 27:M1||Rm(w,p);var Y=F1,Z=_5;P2(w.type)&&(F1=w.stateNode,_5=!1),Em(m,p,w),h(w,i3,w.stateNode),F1=Y,_5=Z;break;case 5:M1||Rm(w,p);case 6:if(Y=F1,Z=_5,F1=null,Em(m,p,w),F1=Y,_5=Z,F1!==null)if(_5)try{h(w,yB,F1,w.stateNode)}catch(G){h0(w,p,G)}else try{h(w,FB,F1,w.stateNode)}catch(G){h0(w,p,G)}break;case 18:F1!==null&&(_5?(m=F1,YG(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,w.stateNode),H6(m)):YG(F1,w.stateNode));break;case 4:Y=F1,Z=_5,F1=w.stateNode.containerInfo,_5=!0,Em(m,p,w),F1=Y,_5=Z;break;case 0:case 11:case 14:case 15:Z6(w5,w,p),M1||Yz(w,p,P5),Em(m,p,w);break;case 1:M1||(Rm(w,p),Y=w.stateNode,typeof Y.componentWillUnmount==="function"&&nY(w,p,Y)),Em(m,p,w);break;case 21:Em(m,p,w);break;case 22:M1=(Y=M1)||w.memoizedState!==null,Em(m,p,w),M1=Y;break;default:Em(m,p,w)}(w.mode&O0)!==Q0&&0<=Y0&&0<=_0&&(b1||0.05<Z1)&&_m(w,Y0,_0,Z1,J1),R5(z),Qm($),J1=J,b1=X}function JZ(m,p){if(p.memoizedState===null&&(m=p.alternate,m!==null&&(m=m.memoizedState,m!==null))){m=m.dehydrated;try{h(p,oB,m)}catch(w){h0(p,p.return,w)}}}function XZ(m,p){if(p.memoizedState===null&&(m=p.alternate,m!==null&&(m=m.memoizedState,m!==null&&(m=m.dehydrated,m!==null))))try{h(p,aB,m)}catch(w){h0(p,p.return,w)}}function eQ(m){switch(m.tag){case 31:case 13:case 19:var p=m.stateNode;return p===null&&(p=m.stateNode=new Tq),p;case 22:return m=m.stateNode,p=m._retryCache,p===null&&(p=m._retryCache=new Tq),p;default:throw Error("Unexpected Suspense handler tag ("+m.tag+"). This is a bug in React.")}}function i8(m,p){var w=eQ(m);p.forEach(function(z){if(!w.has(z)){if(w.add(z),Pm)if(D6!==null&&c6!==null)g3(c6,D6);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var $=ZB.bind(null,m,z);z.then($,$)}})}function Z5(m,p){var w=p.deletions;if(w!==null)for(var z=0;z<w.length;z++){var $=m,J=p,X=w[z],Y=U5(),Z=J;m:for(;Z!==null;){switch(Z.tag){case 27:if(P2(Z.type)){F1=Z.stateNode,_5=!1;break m}break;case 5:F1=Z.stateNode,_5=!1;break m;case 3:case 4:F1=Z.stateNode.containerInfo,_5=!0;break m}Z=Z.return}if(F1===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");$Z($,J,X),F1=null,_5=!1,(X.mode&O0)!==Q0&&0<=Y0&&0<=_0&&0.05<_0-Y0&&Gm(X,Y0,_0,"Unmount"),R5(Y),$=X,J=$.alternate,J!==null&&(J.return=null),$.return=null}if(p.subtreeFlags&13886)for(p=p.child;p!==null;)YZ(p,m),p=p.sibling}function YZ(m,p){var w=U5(),z=bm(),$=Bm(),J=Km(),X=m.alternate,Y=m.flags;switch(m.tag){case 0:case 11:case 14:case 15:Z5(p,m),G5(m),Y&4&&(Z6(w5|i5,m,m.return),S3(w5|i5,m),Yz(m,m.return,P5|i5));break;case 1:if(Z5(p,m),G5(m),Y&512&&(M1||X===null||Rm(X,X.return)),Y&64&&X2&&(Y=m.updateQueue,Y!==null&&(X=Y.callbacks,X!==null))){var Z=Y.shared.hiddenCallbacks;Y.shared.hiddenCallbacks=Z===null?X:Z.concat(X)}break;case 26:if(Z=Jm,Z5(p,m),G5(m),Y&512&&(M1||X===null||Rm(X,X.return)),Y&4){var G=X!==null?X.memoizedState:null;if(Y=m.memoizedState,X===null)if(Y===null)if(m.stateNode===null){m:{Y=m.type,X=m.memoizedProps,Z=Z.ownerDocument||Z;p:switch(Y){case"title":if(G=Z.getElementsByTagName("title")[0],!G||G[t3]||G[V1]||G.namespaceURI===N6||G.hasAttribute("itemprop"))G=Z.createElement(Y),Z.head.insertBefore(G,Z.querySelector("head > title"));u1(G,Y,X),G[V1]=m,S1(G),Y=G;break m;case"link":var H=UG("link","href",Z).get(Y+(X.href||""));if(H){for(var W=0;W<H.length;W++)if(G=H[W],G.getAttribute("href")===(X.href==null||X.href===""?null:X.href)&&G.getAttribute("rel")===(X.rel==null?null:X.rel)&&G.getAttribute("title")===(X.title==null?null:X.title)&&G.getAttribute("crossorigin")===(X.crossOrigin==null?null:X.crossOrigin)){H.splice(W,1);break p}}G=Z.createElement(Y),u1(G,Y,X),Z.head.appendChild(G);break;case"meta":if(H=UG("meta","content",Z).get(Y+(X.content||""))){for(W=0;W<H.length;W++)if(G=H[W],s0(X.content,"content"),G.getAttribute("content")===(X.content==null?null:""+X.content)&&G.getAttribute("name")===(X.name==null?null:X.name)&&G.getAttribute("property")===(X.property==null?null:X.property)&&G.getAttribute("http-equiv")===(X.httpEquiv==null?null:X.httpEquiv)&&G.getAttribute("charset")===(X.charSet==null?null:X.charSet)){H.splice(W,1);break p}}G=Z.createElement(Y),u1(G,Y,X),Z.head.appendChild(G);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+Y+'". This is a bug in React.')}G[V1]=m,S1(G),Y=G}m.stateNode=Y}else RG(Z,m.type,m.stateNode);else m.stateNode=WG(Z,Y,m.memoizedProps);else G!==Y?(G===null?X.stateNode!==null&&(X=X.stateNode,X.parentNode.removeChild(X)):G.count--,Y===null?RG(Z,m.type,m.stateNode):WG(Z,Y,m.memoizedProps)):Y===null&&m.stateNode!==null&&Gz(m,m.memoizedProps,X.memoizedProps)}break;case 27:Z5(p,m),G5(m),Y&512&&(M1||X===null||Rm(X,X.return)),X!==null&&Y&4&&Gz(m,m.memoizedProps,X.memoizedProps);break;case 5:if(Z5(p,m),G5(m),Y&512&&(M1||X===null||Rm(X,X.return)),m.flags&32){Z=m.stateNode;try{h(m,JG,Z)}catch(r){h0(m,m.return,r)}}Y&4&&m.stateNode!=null&&(Z=m.memoizedProps,Gz(m,Z,X!==null?X.memoizedProps:Z)),Y&1024&&(D$=!0,m.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Z5(p,m),G5(m),Y&4){if(m.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.");Y=m.memoizedProps,X=X!==null?X.memoizedProps:Y,Z=m.stateNode;try{h(m,MB,Z,X,Y)}catch(r){h0(m,m.return,r)}}break;case 3:if(Z=im(),Xw=null,G=Jm,Jm=s8(p.containerInfo),Z5(p,m),Jm=G,G5(m),Y&4&&X!==null&&X.memoizedState.isDehydrated)try{h(m,hB,p.containerInfo)}catch(r){h0(m,m.return,r)}D$&&(D$=!1,ZZ(m)),p.effectDuration+=H8(Z);break;case 4:Y=Jm,Jm=s8(m.stateNode.containerInfo),Z5(p,m),G5(m),Jm=Y;break;case 12:Y=im(),Z5(p,m),G5(m),m.stateNode.effectDuration+=M3(Y);break;case 31:Z5(p,m),G5(m),Y&4&&(Y=m.updateQueue,Y!==null&&(m.updateQueue=null,i8(m,Y)));break;case 13:Z5(p,m),G5(m),m.child.flags&8192&&m.memoizedState!==null!==(X!==null&&X.memoizedState!==null)&&(Dp=o1()),Y&4&&(Y=m.updateQueue,Y!==null&&(m.updateQueue=null,i8(m,Y)));break;case 22:Z=m.memoizedState!==null;var Q=X!==null&&X.memoizedState!==null,O=X2,V=M1;if(X2=O||Z,M1=V||Q,Z5(p,m),M1=V,X2=O,Q&&!Z&&!O&&!V&&(m.mode&O0)!==Q0&&0<=Y0&&0<=_0&&0.05<_0-Y0&&X8(m,Y0,_0),G5(m),Y&8192)m:for(p=m.stateNode,p._visibility=Z?p._visibility&~X7:p._visibility|X7,!Z||X===null||Q||X2||M1||(L4(m),(m.mode&O0)!==Q0&&0<=Y0&&0<=_0&&0.05<_0-Y0&&Gm(m,Y0,_0,"Disconnect")),X=null,p=m;;){if(p.tag===5||p.tag===26){if(X===null){Q=X=p;try{G=Q.stateNode,Z?h(Q,vB,G):h(Q,fB,Q.stateNode,Q.memoizedProps)}catch(r){h0(Q,Q.return,r)}}}else if(p.tag===6){if(X===null){Q=p;try{H=Q.stateNode,Z?h(Q,PB,H):h(Q,TB,H,Q.memoizedProps)}catch(r){h0(Q,Q.return,r)}}}else if(p.tag===18){if(X===null){Q=p;try{W=Q.stateNode,Z?h(Q,CB,W):h(Q,IB,Q.stateNode)}catch(r){h0(Q,Q.return,r)}}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===m)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===m)break m;for(;p.sibling===null;){if(p.return===null||p.return===m)break m;X===p&&(X=null),p=p.return}X===p&&(X=null),p.sibling.return=p.return,p=p.sibling}Y&4&&(Y=m.updateQueue,Y!==null&&(X=Y.retryQueue,X!==null&&(Y.retryQueue=null,i8(m,X))));break;case 19:Z5(p,m),G5(m),Y&4&&(Y=m.updateQueue,Y!==null&&(m.updateQueue=null,i8(m,Y)));break;case 30:break;case 21:break;default:Z5(p,m),G5(m)}(m.mode&O0)!==Q0&&0<=Y0&&0<=_0&&((b1||0.05<Z1)&&_m(m,Y0,_0,Z1,J1),m.alternate===null&&m.return!==null&&m.return.alternate!==null&&0.05<_0-Y0&&(pZ(m.return.alternate,m.return)||Gm(m,Y0,_0,"Mount"))),R5(w),Qm(z),J1=$,b1=J}function G5(m){var p=m.flags;if(p&2){try{h(m,tQ,m)}catch(w){h0(m,m.return,w)}m.flags&=-3}p&4096&&(m.flags&=-4097)}function ZZ(m){if(m.subtreeFlags&1024)for(m=m.child;m!==null;){var p=m;ZZ(p),p.tag===5&&p.flags&1024&&p.stateNode.reset(),m=m.sibling}}function Om(m,p){if(p.subtreeFlags&8772)for(p=p.child;p!==null;)wZ(m,p.alternate,p),p=p.sibling}function GZ(m){var p=U5(),w=bm(),z=Bm(),$=Km();switch(m.tag){case 0:case 11:case 14:case 15:Yz(m,m.return,P5),L4(m);break;case 1:Rm(m,m.return);var J=m.stateNode;typeof J.componentWillUnmount==="function"&&nY(m,m.return,J),L4(m);break;case 27:h(m,i3,m.stateNode);case 26:case 5:Rm(m,m.return),L4(m);break;case 22:m.memoizedState===null&&L4(m);break;case 30:L4(m);break;default:L4(m)}(m.mode&O0)!==Q0&&0<=Y0&&0<=_0&&(b1||0.05<Z1)&&_m(m,Y0,_0,Z1,J1),R5(p),Qm(w),J1=z,b1=$}function L4(m){for(m=m.child;m!==null;)GZ(m),m=m.sibling}function _Z(m,p,w,z){var $=U5(),J=bm(),X=Bm(),Y=Km(),Z=w.flags;switch(w.tag){case 0:case 11:case 15:Lm(m,w,z),EY(w,P5);break;case 1:if(Lm(m,w,z),p=w.stateNode,typeof p.componentDidMount==="function"&&h(w,k$,w,p),p=w.updateQueue,p!==null){m=w.stateNode;try{h(w,hQ,p,m)}catch(G){h0(w,w.return,G)}}z&&Z&64&&rY(w),h3(w,w.return);break;case 27:mZ(w);case 26:case 5:Lm(m,w,z),z&&p===null&&Z&4&&sY(w),h3(w,w.return);break;case 12:if(z&&Z&4){Z=im(),Lm(m,w,z),z=w.stateNode,z.effectDuration+=M3(Z);try{h(w,tY,w,p,l2,z.effectDuration)}catch(G){h0(w,w.return,G)}}else Lm(m,w,z);break;case 31:Lm(m,w,z),z&&Z&4&&JZ(m,w);break;case 13:Lm(m,w,z),z&&Z&4&&XZ(m,w);break;case 22:w.memoizedState===null&&Lm(m,w,z),h3(w,w.return);break;case 30:break;default:Lm(m,w,z)}(w.mode&O0)!==Q0&&0<=Y0&&0<=_0&&(b1||0.05<Z1)&&_m(w,Y0,_0,Z1,J1),R5($),Qm(J),J1=X,b1=Y}function Lm(m,p,w){w=w&&(p.subtreeFlags&8772)!==0;for(p=p.child;p!==null;)_Z(m,p.alternate,p,w),p=p.sibling}function bz(m,p){var w=null;m!==null&&m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(w=m.memoizedState.cachePool.pool),m=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(m=p.memoizedState.cachePool.pool),m!==w&&(m!=null&&H4(m),w!=null&&N3(w))}function Qz(m,p){m=null,p.alternate!==null&&(m=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==m&&(H4(p),m!=null&&N3(m))}function e5(m,p,w,z,$){if(p.subtreeFlags&10256||p.actualDuration!==0&&(p.alternate===null||p.alternate.child!==p.child))for(p=p.child;p!==null;){var J=p.sibling;qZ(m,p,w,z,J!==null?J.actualStartTime:$),p=J}}function qZ(m,p,w,z,$){var J=U5(),X=bm(),Y=Bm(),Z=Km(),G=S2,H=p.flags;switch(p.tag){case 0:case 11:case 15:(p.mode&O0)!==Q0&&0<p.actualStartTime&&(p.flags&1)!==0&&Y8(p,p.actualStartTime,$,I1,w),e5(m,p,w,z,$),H&2048&&jY(p,z5|i5);break;case 1:(p.mode&O0)!==Q0&&0<p.actualStartTime&&((p.flags&128)!==0?nw(p,p.actualStartTime,$,[]):(p.flags&1)!==0&&Y8(p,p.actualStartTime,$,I1,w)),e5(m,p,w,z,$);break;case 3:var W=im(),Q=I1;I1=p.alternate!==null&&p.alternate.memoizedState.isDehydrated&&(p.flags&256)===0,e5(m,p,w,z,$),I1=Q,H&2048&&(w=null,p.alternate!==null&&(w=p.alternate.memoizedState.cache),z=p.memoizedState.cache,z!==w&&(H4(z),w!=null&&N3(w))),m.passiveEffectDuration+=H8(W);break;case 12:if(H&2048){H=im(),e5(m,p,w,z,$),m=p.stateNode,m.passiveEffectDuration+=M3(H);try{h(p,nQ,p,p.alternate,l2,m.passiveEffectDuration)}catch(O){h0(p,p.return,O)}}else e5(m,p,w,z,$);break;case 31:H=I1,W=p.alternate!==null?p.alternate.memoizedState:null,Q=p.memoizedState,W!==null&&Q===null?(Q=p.deletions,Q!==null&&0<Q.length&&Q[0].tag===18?(I1=!1,W=W.hydrationErrors,W!==null&&nw(p,p.actualStartTime,$,W)):I1=!0):I1=!1,e5(m,p,w,z,$),I1=H;break;case 13:H=I1,W=p.alternate!==null?p.alternate.memoizedState:null,Q=p.memoizedState,W===null||W.dehydrated===null||Q!==null&&Q.dehydrated!==null?I1=!1:(Q=p.deletions,Q!==null&&0<Q.length&&Q[0].tag===18?(I1=!1,W=W.hydrationErrors,W!==null&&nw(p,p.actualStartTime,$,W)):I1=!0),e5(m,p,w,z,$),I1=H;break;case 23:break;case 22:Q=p.stateNode,W=p.alternate,p.memoizedState!==null?Q._visibility&nm?e5(m,p,w,z,$):o3(m,p,w,z,$):Q._visibility&nm?e5(m,p,w,z,$):(Q._visibility|=nm,G6(m,p,w,z,(p.subtreeFlags&10256)!==0||p.actualDuration!==0&&(p.alternate===null||p.alternate.child!==p.child),$),(p.mode&O0)===Q0||I1||(m=p.actualStartTime,0<=m&&0.05<$-m&&X8(p,m,$),0<=Y0&&0<=_0&&0.05<_0-Y0&&X8(p,Y0,_0))),H&2048&&bz(W,p);break;case 24:e5(m,p,w,z,$),H&2048&&Qz(p.alternate,p);break;default:e5(m,p,w,z,$)}if((p.mode&O0)!==Q0){if(m=!I1&&p.alternate===null&&p.return!==null&&p.return.alternate!==null)w=p.actualStartTime,0<=w&&0.05<$-w&&Gm(p,w,$,"Mount");0<=Y0&&0<=_0&&((b1||0.05<Z1)&&_m(p,Y0,_0,Z1,J1),m&&0.05<_0-Y0&&Gm(p,Y0,_0,"Mount"))}R5(J),Qm(X),J1=Y,b1=Z,S2=G}function G6(m,p,w,z,$,J){$=$&&((p.subtreeFlags&10256)!==0||p.actualDuration!==0&&(p.alternate===null||p.alternate.child!==p.child));for(p=p.child;p!==null;){var X=p.sibling;bZ(m,p,w,z,$,X!==null?X.actualStartTime:J),p=X}}function bZ(m,p,w,z,$,J){var X=U5(),Y=bm(),Z=Bm(),G=Km(),H=S2;$&&(p.mode&O0)!==Q0&&0<p.actualStartTime&&(p.flags&1)!==0&&Y8(p,p.actualStartTime,J,I1,w);var W=p.flags;switch(p.tag){case 0:case 11:case 15:G6(m,p,w,z,$,J),jY(p,z5);break;case 23:break;case 22:var Q=p.stateNode;p.memoizedState!==null?Q._visibility&nm?G6(m,p,w,z,$,J):o3(m,p,w,z,J):(Q._visibility|=nm,G6(m,p,w,z,$,J)),$&&W&2048&&bz(p.alternate,p);break;case 24:G6(m,p,w,z,$,J),$&&W&2048&&Qz(p.alternate,p);break;default:G6(m,p,w,z,$,J)}(p.mode&O0)!==Q0&&0<=Y0&&0<=_0&&(b1||0.05<Z1)&&_m(p,Y0,_0,Z1,J1),R5(X),Qm(Y),J1=Z,b1=G,S2=H}function o3(m,p,w,z,$){if(p.subtreeFlags&10256||p.actualDuration!==0&&(p.alternate===null||p.alternate.child!==p.child))for(var J=p.child;J!==null;){p=J.sibling;var X=m,Y=w,Z=z,G=p!==null?p.actualStartTime:$,H=S2;(J.mode&O0)!==Q0&&0<J.actualStartTime&&(J.flags&1)!==0&&Y8(J,J.actualStartTime,G,I1,Y);var W=J.flags;switch(J.tag){case 22:o3(X,J,Y,Z,G),W&2048&&bz(J.alternate,J);break;case 24:o3(X,J,Y,Z,G),W&2048&&Qz(J.alternate,J);break;default:o3(X,J,Y,Z,G)}S2=H,J=p}}function _6(m,p,w){if(m.subtreeFlags&C7)for(m=m.child;m!==null;)QZ(m,p,w),m=m.sibling}function QZ(m,p,w){switch(m.tag){case 26:_6(m,p,w),m.flags&C7&&m.memoizedState!==null&&xB(w,Jm,m.memoizedState,m.memoizedProps);break;case 5:_6(m,p,w);break;case 3:case 4:var z=Jm;Jm=s8(m.stateNode.containerInfo),_6(m,p,w),Jm=z;break;case 22:m.memoizedState===null&&(z=m.alternate,z!==null&&z.memoizedState!==null?(z=C7,C7=16777216,_6(m,p,w),C7=z):_6(m,p,w));break;default:_6(m,p,w)}}function BZ(m){var p=m.alternate;if(p!==null&&(m=p.child,m!==null)){p.child=null;do p=m.sibling,m.sibling=null,m=p;while(m!==null)}}function a3(m){var p=m.deletions;if((m.flags&16)!==0){if(p!==null)for(var w=0;w<p.length;w++){var z=p[w],$=U5();l1=z,WZ(z,m),(z.mode&O0)!==Q0&&0<=Y0&&0<=_0&&0.05<_0-Y0&&Gm(z,Y0,_0,"Unmount"),R5($)}BZ(m)}if(m.subtreeFlags&10256)for(m=m.child;m!==null;)KZ(m),m=m.sibling}function KZ(m){var p=U5(),w=bm(),z=Bm(),$=Km();switch(m.tag){case 0:case 11:case 15:a3(m),m.flags&2048&&Zz(m,m.return,z5|i5);break;case 3:var J=im();a3(m),m.stateNode.passiveEffectDuration+=H8(J);break;case 12:J=im(),a3(m),m.stateNode.passiveEffectDuration+=M3(J);break;case 22:J=m.stateNode,m.memoizedState!==null&&J._visibility&nm&&(m.return===null||m.return.tag!==13)?(J._visibility&=~nm,D8(m),(m.mode&O0)!==Q0&&0<=Y0&&0<=_0&&0.05<_0-Y0&&Gm(m,Y0,_0,"Disconnect")):a3(m);break;default:a3(m)}(m.mode&O0)!==Q0&&0<=Y0&&0<=_0&&(b1||0.05<Z1)&&_m(m,Y0,_0,Z1,J1),R5(p),Qm(w),b1=$,J1=z}function D8(m){var p=m.deletions;if((m.flags&16)!==0){if(p!==null)for(var w=0;w<p.length;w++){var z=p[w],$=U5();l1=z,WZ(z,m),(z.mode&O0)!==Q0&&0<=Y0&&0<=_0&&0.05<_0-Y0&&Gm(z,Y0,_0,"Unmount"),R5($)}BZ(m)}for(m=m.child;m!==null;)HZ(m),m=m.sibling}function HZ(m){var p=U5(),w=bm(),z=Bm(),$=Km();switch(m.tag){case 0:case 11:case 15:Zz(m,m.return,z5),D8(m);break;case 22:var J=m.stateNode;J._visibility&nm&&(J._visibility&=~nm,D8(m));break;default:D8(m)}(m.mode&O0)!==Q0&&0<=Y0&&0<=_0&&(b1||0.05<Z1)&&_m(m,Y0,_0,Z1,J1),R5(p),Qm(w),b1=$,J1=z}function WZ(m,p){for(;l1!==null;){var w=l1,z=w,$=p,J=U5(),X=bm(),Y=Bm(),Z=Km();switch(z.tag){case 0:case 11:case 15:Zz(z,$,z5);break;case 23:case 22:z.memoizedState!==null&&z.memoizedState.cachePool!==null&&($=z.memoizedState.cachePool.pool,$!=null&&H4($));break;case 24:N3(z.memoizedState.cache)}if((z.mode&O0)!==Q0&&0<=Y0&&0<=_0&&(b1||0.05<Z1)&&_m(z,Y0,_0,Z1,J1),R5(J),Qm(X),b1=Z,J1=Y,z=w.child,z!==null)z.return=w,l1=z;else m:for(w=m;l1!==null;){if(z=l1,J=z.sibling,X=z.return,zZ(z),z===w){l1=null;break m}if(J!==null){J.return=X,l1=J;break m}l1=X}}}function mB(){LH.forEach(function(m){return m()})}function UZ(){var m=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return m||M.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),m}function L5(m){if((k0&f1)!==g1&&N0!==0)return N0&-N0;var p=M.T;return p!==null?(p._updatedFibers||(p._updatedFibers=new Set),p._updatedFibers.add(m),Lz()):SJ()}function RZ(){if(b5===0)if((N0&536870912)===0||I0){var m=_p;_p<<=1,(_p&3932160)===0&&(_p=262144),b5=m}else b5=536870912;return m=v5.current,m!==null&&(m.flags|=32),b5}function q1(m,p,w){if(r6&&console.error("useInsertionEffect must not schedule updates."),wJ&&(rp=!0),m===D0&&(g0===o4||g0===a4)||m.cancelPendingCommit!==null)b6(m,0),C2(m,N0,b5,!1);if(q3(m,w),(k0&f1)!==g1&&m===D0){if(Cm)switch(p.tag){case 0:case 11:case 15:m=F0&&f(F0)||"Unknown",cq.has(m)||(cq.add(m),p=f(p)||"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",p,m,m));break;case 1:Dq||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Dq=!0)}}else Pm&&kJ(m,p,w),_B(p),m===D0&&((k0&f1)===g1&&(E2|=w),G1===i2&&C2(m,N0,b5,!1)),Nm(m)}function OZ(m,p,w){if((k0&(f1|I5))!==g1)throw Error("Should not already be working.");if(N0!==0&&F0!==null){var z=F0,$=o1();switch(l_){case I7:case o4:var J=b7;e0&&((z=z._debugTask)?z.run(console.timeStamp.bind(console,"Suspended",J,$,o5,void 0,"primary-light")):console.timeStamp("Suspended",J,$,o5,void 0,"primary-light"));break;case a4:J=b7,e0&&((z=z._debugTask)?z.run(console.timeStamp.bind(console,"Action",J,$,o5,void 0,"primary-light")):console.timeStamp("Action",J,$,o5,void 0,"primary-light"));break;default:e0&&(z=$-b7,3>z||console.timeStamp("Blocked",b7,$,o5,void 0,5>z?"primary-light":10>z?"primary":100>z?"primary-dark":"error"))}}J=(w=!w&&(p&127)===0&&(p&m.expiredLanes)===0||_3(m,p))?wB(m,p):Kz(m,p,!0);var X=w;do{if(J===Y2){E6&&!w&&C2(m,p,0,!1),p=g0,b7=O1(),l_=p;break}else{if(z=o1(),$=m.current.alternate,X&&!pB($)){H5(p),$=a1,J=z,!e0||J<=$||(K1?K1.run(console.timeStamp.bind(console,"Teared Render",$,J,P0,v0,"error")):console.timeStamp("Teared Render",$,J,P0,v0,"error")),N4(p,z),J=Kz(m,p,!1),X=!1;continue}if(J===h4){if(X=p,m.errorRecoveryDisabledLanes&X)var Y=0;else Y=m.pendingLanes&-536870913,Y=Y!==0?Y:Y&536870912?536870912:0;if(Y!==0){H5(p),tw(a1,z,p,K1),N4(p,z),p=Y;m:{z=m,J=X,X=T7;var Z=z.current.memoizedState.isDehydrated;if(Z&&(b6(z,Y).flags|=256),Y=Kz(z,Y,!1),Y!==h4){if(j$&&!Z){z.errorRecoveryDisabledLanes|=J,E2|=J,J=i2;break m}z=$5,$5=X,z!==null&&($5===null?$5=z:$5.push.apply($5,z))}J=Y}if(X=!1,J!==h4)continue;else z=o1()}}if(J===P7){H5(p),tw(a1,z,p,K1),N4(p,z),b6(m,0),C2(m,p,0,!0);break}m:{switch(w=m,J){case Y2:case P7:throw Error("Root did not complete. This is a bug in React.");case i2:if((p&4194048)!==p)break;case xp:H5(p),OX(a1,z,p,K1),N4(p,z),$=p,($&127)!==0?Cp=z:($&4194048)!==0&&(vp=z),C2(w,p,b5,!D2);break m;case h4:$5=null;break;case dp:case kq:break;default:throw Error("Unknown root exit status.")}if(M.actQueue!==null)Hz(w,$,p,$5,k7,ip,b5,E2,l4,J,null,null,a1,z);else{if((p&62914560)===p&&(X=Dp+hq-o1(),10<X)){if(C2(w,p,b5,!D2),t7(w,0,!0)!==0)break m;Xm=p,w.timeoutHandle=mb(LZ.bind(null,w,$,$5,k7,ip,p,b5,E2,l4,D2,J,"Throttled",a1,z),X);break m}LZ(w,$,$5,k7,ip,p,b5,E2,l4,D2,J,null,a1,z)}}}break}while(1);Nm(m)}function LZ(m,p,w,z,$,J,X,Y,Z,G,H,W,Q,O){m.timeoutHandle=V4;var V=p.subtreeFlags,r=null;if(V&8192||(V&16785408)===16785408){if(r={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dm},QZ(p,J,r),V=(J&62914560)===J?Dp-o1():(J&4194048)===J?Sq-o1():0,V=uB(r,V),V!==null){Xm=J,m.cancelPendingCommit=V(Hz.bind(null,m,p,J,w,z,$,X,Y,Z,H,r,r.waitingForViewTransition?"Waiting for the previous Animation":0<r.count?0<r.imgCount?"Suspended on CSS and Images":"Suspended on CSS":r.imgCount===1?"Suspended on an Image":0<r.imgCount?"Suspended on Images":null,Q,O)),C2(m,J,X,!G);return}}Hz(m,p,J,w,z,$,X,Y,Z,H,r,W,Q,O)}function pB(m){for(var p=m;;){var w=p.tag;if((w===0||w===11||w===15)&&p.flags&16384&&(w=p.updateQueue,w!==null&&(w=w.stores,w!==null)))for(var z=0;z<w.length;z++){var $=w[z],J=$.getSnapshot;$=$.value;try{if(!m5(J(),$))return!1}catch(X){return!1}}if(w=p.child,p.subtreeFlags&16384&&w!==null)w.return=p,p=w;else{if(p===m)break;for(;p.sibling===null;){if(p.return===null||p.return===m)return!0;p=p.return}p.sibling.return=p.return,p=p.sibling}}return!0}function C2(m,p,w,z){p&=~r$,p&=~E2,m.suspendedLanes|=p,m.pingedLanes&=~p,z&&(m.warmLanes|=p),z=m.expirationTimes;for(var $=p;0<$;){var J=31-t1($),X=1<<J;z[J]=-1,$&=~X}w!==0&&IJ(m,w,p)}function q6(){return(k0&(f1|I5))===g1?(d3(0,!1),!1):!0}function Bz(){if(F0!==null){if(g0===q5)var m=F0.return;else m=F0,Q8(),y9(m),l6=null,L7=0,m=F0;for(;m!==null;)cY(m.alternate,m),m=m.return;F0=null}}function N4(m,p){(m&127)!==0&&(g2=p),(m&4194048)!==0&&(Am=p),(m&62914560)!==0&&(o_=p),(m&2080374784)!==0&&(a_=p)}function b6(m,p){e0&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",v0,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",v0,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",v0,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",v0,"primary-light"));var w=a1;if(a1=O1(),N0!==0&&0<w){if(H5(N0),G1===dp||G1===i2)OX(w,a1,p,K1);else{var z=a1,$=K1;if(e0&&!(z<=w)){var J=(p&738197653)===p?"tertiary-dark":"primary-dark",X=(p&536870912)===p?"Prewarm":(p&201326741)===p?"Interrupted Hydration":"Interrupted Render";$?$.run(console.timeStamp.bind(console,X,w,z,P0,v0,J)):console.timeStamp(X,w,z,P0,v0,J)}}N4(N0,a1)}if(w=K1,K1=null,(p&127)!==0){K1=G7,$=0<=km&&km<g2?g2:km,z=0<=v4&&v4<g2?g2:v4,J=0<=z?z:0<=$?$:a1,0<=Cp?(H5(2),LX(Cp,J,p,w)):(Pp&127)!==0&&(H5(2),O3(g2,J,w2)),w=$;var Y=z,Z=_7,G=0<h6,H=d2===Z7,W=d2===yp;if($=a1,z=G7,J=v$,X=P$,e0){if(P0="Blocking",0<w?w>$&&(w=$):w=$,0<Y?Y>w&&(Y=w):Y=w,Z!==null&&w>Y){var Q=G?"secondary-light":"warning";z?z.run(console.timeStamp.bind(console,G?"Consecutive":"Event: "+Z,Y,w,P0,v0,Q)):console.timeStamp(G?"Consecutive":"Event: "+Z,Y,w,P0,v0,Q)}$>w&&(Y=H?"error":(p&738197653)===p?"tertiary-light":"primary-light",H=W?"Promise Resolved":H?"Cascading Update":5<$-w?"Update Blocked":"Update",W=[],X!=null&&W.push(["Component name",X]),J!=null&&W.push(["Method name",J]),w={start:w,end:$,detail:{devtools:{properties:W,track:P0,trackGroup:v0,color:Y}}},z?z.run(performance.measure.bind(performance,H,w)):performance.measure(H,w))}km=-1.1,d2=0,P$=v$=null,Cp=-1.1,h6=v4,v4=-1.1,g2=O1()}if((p&4194048)!==0&&(K1=q7,$=0<=p2&&p2<Am?Am:p2,w=0<=u5&&u5<Am?Am:u5,z=0<=x2&&x2<Am?Am:x2,J=0<=z?z:0<=w?w:a1,0<=vp?(H5(256),LX(vp,J,p,K1)):(Pp&4194048)!==0&&(H5(256),O3(Am,J,w2)),W=z,Y=P4,Z=0<u2,G=I$===yp,J=a1,z=q7,X=S_,H=h_,e0&&(P0="Transition",0<w?w>J&&(w=J):w=J,0<$?$>w&&($=w):$=w,0<W?W>$&&(W=$):W=$,$>W&&Y!==null&&(Q=Z?"secondary-light":"warning",z?z.run(console.timeStamp.bind(console,Z?"Consecutive":"Event: "+Y,W,$,P0,v0,Q)):console.timeStamp(Z?"Consecutive":"Event: "+Y,W,$,P0,v0,Q)),w>$&&(z?z.run(console.timeStamp.bind(console,"Action",$,w,P0,v0,"primary-dark")):console.timeStamp("Action",$,w,P0,v0,"primary-dark")),J>w&&($=G?"Promise Resolved":5<J-w?"Update Blocked":"Update",W=[],H!=null&&W.push(["Component name",H]),X!=null&&W.push(["Method name",X]),w={start:w,end:J,detail:{devtools:{properties:W,track:P0,trackGroup:v0,color:"primary-light"}}},z?z.run(performance.measure.bind(performance,$,w)):performance.measure($,w))),u5=p2=-1.1,I$=0,vp=-1.1,u2=x2,x2=-1.1,Am=O1()),(p&62914560)!==0&&(Pp&62914560)!==0&&(H5(4194304),O3(o_,a1,w2)),(p&2080374784)!==0&&(Pp&2080374784)!==0&&(H5(268435456),O3(a_,a1,w2)),w=m.timeoutHandle,w!==V4&&(m.timeoutHandle=V4,SH(w)),w=m.cancelPendingCommit,w!==null&&(m.cancelPendingCommit=null,w()),Xm=0,Bz(),D0=m,F0=w=xm(m.current,null),N0=p,g0=q5,f5=null,D2=!1,E6=_3(m,p),j$=!1,G1=Y2,l4=b5=r$=E2=c2=0,$5=T7=null,ip=!1,(p&8)!==0&&(p|=p&32),z=m.entangledLanes,z!==0)for(m=m.entanglements,z&=p;0<z;)$=31-t1(z),J=1<<$,p|=m[$],z&=~J;return hm=p,Z8(),m=P_(),1000<m-v_&&(M.recentlyCreatedOwnerStacks=0,v_=m),zm.discardPendingWarnings(),w}function NZ(m,p){H0=null,M.H=y7,M.getCurrentStack=null,Cm=!1,F5=null,p===a6||p===kp?(p=VX(),g0=I7):p===A$?(p=VX(),g0=Aq):g0=p===V$?E$:p!==null&&typeof p==="object"&&typeof p.then==="function"?f7:up,f5=p;var w=F0;w===null?(G1=P7,l8(m,W5(p,m.current))):w.mode&O0&&b9(w)}function MZ(){var m=v5.current;return m===null?!0:(N0&4194048)===N0?V5===null?!0:!1:(N0&62914560)===N0||(N0&536870912)!==0?m===V5:!1}function FZ(){var m=M.H;return M.H=y7,m===null?y7:m}function yZ(){var m=M.A;return M.A=OH,m}function c8(m){K1===null&&(K1=m._debugTask==null?null:m._debugTask)}function E8(){G1=i2,D2||(N0&4194048)!==N0&&v5.current!==null||(E6=!0),(c2&134217727)===0&&(E2&134217727)===0||D0===null||C2(D0,N0,b5,!1)}function Kz(m,p,w){var z=k0;k0|=f1;var $=FZ(),J=yZ();if(D0!==m||N0!==p){if(Pm){var X=m.memoizedUpdaters;0<X.size&&(g3(m,N0),X.clear()),AJ(m,p)}k7=null,b6(m,p)}p=!1,X=G1;m:do try{if(g0!==q5&&F0!==null){var Y=F0,Z=f5;switch(g0){case E$:Bz(),X=xp;break m;case I7:case o4:case a4:case f7:v5.current===null&&(p=!0);var G=g0;if(g0=q5,f5=null,Q6(m,Y,Z,G),w&&E6){X=Y2;break m}break;default:G=g0,g0=q5,f5=null,Q6(m,Y,Z,G)}}CZ(),X=G1;break}catch(H){NZ(m,H)}while(1);return p&&m.shellSuspendCounter++,Q8(),k0=z,M.H=$,M.A=J,F0===null&&(D0=null,N0=0,Z8()),X}function CZ(){for(;F0!==null;)vZ(F0)}function wB(m,p){var w=k0;k0|=f1;var z=FZ(),$=yZ();if(D0!==m||N0!==p){if(Pm){var J=m.memoizedUpdaters;0<J.size&&(g3(m,N0),J.clear()),AJ(m,p)}k7=null,cp=o1()+oq,b6(m,p)}else E6=_3(m,p);m:do try{if(g0!==q5&&F0!==null)p:switch(p=F0,J=f5,g0){case up:g0=q5,f5=null,Q6(m,p,J,up);break;case o4:case a4:if(xX(J)){g0=q5,f5=null,PZ(p);break}p=function(){g0!==o4&&g0!==a4||D0!==m||(g0=Vp),Nm(m)},J.then(p,p);break m;case I7:g0=Vp;break m;case Aq:g0=c$;break m;case Vp:xX(J)?(g0=q5,f5=null,PZ(p)):(g0=q5,f5=null,Q6(m,p,J,Vp));break;case c$:var X=null;switch(F0.tag){case 26:X=F0.memoizedState;case 5:case 27:var Y=F0;if(X?OG(X):Y.stateNode.complete){g0=q5,f5=null;var Z=Y.sibling;if(Z!==null)F0=Z;else{var G=Y.return;G!==null?(F0=G,j8(G)):F0=null}break p}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}g0=q5,f5=null,Q6(m,p,J,c$);break;case f7:g0=q5,f5=null,Q6(m,p,J,f7);break;case E$:Bz(),G1=xp;break m;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}M.actQueue!==null?CZ():zB();break}catch(H){NZ(m,H)}while(1);if(Q8(),M.H=z,M.A=$,k0=w,F0!==null)return Y2;return D0=null,N0=0,Z8(),G1}function zB(){for(;F0!==null&&!pK();)vZ(F0)}function vZ(m){var p=m.alternate;(m.mode&O0)!==Q0?(q9(m),p=h(m,Jz,p,m,hm),b9(m)):p=h(m,Jz,p,m,hm),m.memoizedProps=m.pendingProps,p===null?j8(m):F0=p}function PZ(m){var p=h(m,$B,m);m.memoizedProps=m.pendingProps,p===null?j8(m):F0=p}function $B(m){var p=m.alternate,w=(m.mode&O0)!==Q0;switch(w&&q9(m),m.tag){case 15:case 0:p=gY(p,m,m.pendingProps,m.type,void 0,N0);break;case 11:p=gY(p,m,m.pendingProps,m.type.render,m.ref,N0);break;case 5:y9(m);default:cY(p,m),m=F0=vX(m,hm),p=Jz(p,m,hm)}return w&&b9(m),p}function Q6(m,p,w,z){Q8(),y9(p),l6=null,L7=0;var $=p.return;try{if(uQ(m,$,p,w,N0)){G1=P7,l8(m,W5(w,m.current)),F0=null;return}}catch(J){if($!==null)throw F0=$,J;G1=P7,l8(m,W5(w,m.current)),F0=null;return}if(p.flags&32768){if(I0||z===up)m=!0;else if(E6||(N0&536870912)!==0)m=!1;else if(D2=m=!0,z===o4||z===a4||z===I7||z===f7)z=v5.current,z!==null&&z.tag===13&&(z.flags|=16384);IZ(p,m)}else j8(p)}function j8(m){var p=m;do{if((p.flags&32768)!==0){IZ(p,D2);return}var w=p.alternate;if(m=p.return,q9(p),w=h(p,DQ,w,p,hm),(p.mode&O0)!==Q0&&oX(p),w!==null){F0=w;return}if(p=p.sibling,p!==null){F0=p;return}F0=p=m}while(p!==null);G1===Y2&&(G1=kq)}function IZ(m,p){do{var w=cQ(m.alternate,m);if(w!==null){w.flags&=32767,F0=w;return}if((m.mode&O0)!==Q0){oX(m),w=m.actualDuration;for(var z=m.child;z!==null;)w+=z.actualDuration,z=z.sibling;m.actualDuration=w}if(w=m.return,w!==null&&(w.flags|=32768,w.subtreeFlags=0,w.deletions=null),!p&&(m=m.sibling,m!==null)){F0=m;return}F0=m=w}while(m!==null);G1=xp,F0=null}function Hz(m,p,w,z,$,J,X,Y,Z,G,H,W,Q,O){m.cancelPendingCommit=null;do l3();while(y1!==r2);if(zm.flushLegacyContextWarning(),zm.flushPendingUnsafeLifecycleWarnings(),(k0&(f1|I5))!==g1)throw Error("Should not already be working.");if(H5(w),G===h4?tw(Q,O,w,K1):z!==null?IQ(Q,O,w,z,p!==null&&p.alternate!==null&&p.alternate.memoizedState.isDehydrated&&(p.flags&256)!==0,K1):PQ(Q,O,w,K1),p!==null){if(w===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),p===m.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(J=p.lanes|p.childLanes,J|=N$,YQ(m,w,J,X,Y,Z),m===D0&&(F0=D0=null,N0=0),j6=p,n2=m,Xm=w,s$=J,mJ=$,uq=z,e$=O,Vq=W,Ym=Ep,iq=null,p.actualDuration!==0||(p.subtreeFlags&10256)!==0||(p.flags&10256)!==0?(m.callbackNode=null,m.callbackPriority=0,GB(R6,function(){return l7=window.event,Ym===Ep&&(Ym=t$),SZ(),null})):(m.callbackNode=null,m.callbackPriority=0),m2=null,l2=O1(),W!==null&&fQ(O,l2,W,K1),z=(p.flags&13878)!==0,(p.subtreeFlags&13878)!==0||z){z=M.T,M.T=null,$=o0.p,o0.p=y5,X=k0,k0|=I5;try{sQ(m,p,w)}finally{k0=X,o0.p=$,M.T=z}}y1=lq,fZ(),TZ(),kZ()}}function fZ(){if(y1===lq){y1=r2;var m=n2,p=j6,w=Xm,z=(p.flags&13878)!==0;if((p.subtreeFlags&13878)!==0||z){z=M.T,M.T=null;var $=o0.p;o0.p=y5;var J=k0;k0|=I5;try{D6=w,c6=m,W8(),YZ(p,m),c6=D6=null,w=qJ;var X=WX(m.containerInfo),Y=w.focusedElem,Z=w.selectionRange;if(X!==Y&&Y&&Y.ownerDocument&&HX(Y.ownerDocument.documentElement,Y)){if(Z!==null&&jw(Y)){var{start:G,end:H}=Z;if(H===void 0&&(H=G),"selectionStart"in Y)Y.selectionStart=G,Y.selectionEnd=Math.min(H,Y.value.length);else{var W=Y.ownerDocument||document,Q=W&&W.defaultView||window;if(Q.getSelection){var O=Q.getSelection(),V=Y.textContent.length,r=Math.min(Z.start,V),j0=Z.end===void 0?r:Math.min(Z.end,V);!O.extend&&r>j0&&(X=j0,j0=r,r=X);var T0=KX(Y,r),b=KX(Y,j0);if(T0&&b&&(O.rangeCount!==1||O.anchorNode!==T0.node||O.anchorOffset!==T0.offset||O.focusNode!==b.node||O.focusOffset!==b.offset)){var B=W.createRange();B.setStart(T0.node,T0.offset),O.removeAllRanges(),r>j0?(O.addRange(B),O.extend(b.node,b.offset)):(B.setEnd(b.node,b.offset),O.addRange(B))}}}}W=[];for(O=Y;O=O.parentNode;)O.nodeType===1&&W.push({element:O,left:O.scrollLeft,top:O.scrollTop});typeof Y.focus==="function"&&Y.focus();for(Y=0;Y<W.length;Y++){var K=W[Y];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Gw=!!_J,qJ=_J=null}finally{k0=J,o0.p=$,M.T=z}}m.current=p,y1=gq}}function TZ(){if(y1===gq){y1=r2;var m=iq;if(m!==null){l2=O1();var p=em,w=l2;!e0||w<=p||(w2?w2.run(console.timeStamp.bind(console,m,p,w,P0,v0,"secondary-light")):console.timeStamp(m,p,w,P0,v0,"secondary-light"))}m=n2,p=j6,w=Xm;var z=(p.flags&8772)!==0;if((p.subtreeFlags&8772)!==0||z){z=M.T,M.T=null;var $=o0.p;o0.p=y5;var J=k0;k0|=I5;try{D6=w,c6=m,W8(),wZ(m,p.alternate,p),c6=D6=null}finally{k0=J,o0.p=$,M.T=z}}m=e$,p=Vq,em=O1(),m=p===null?m:l2,p=em,w=Ym===n$,z=K1,m2!==null?NX(m,p,m2,!1,z):!e0||p<=m||(z?z.run(console.timeStamp.bind(console,w?"Commit Interrupted View Transition":"Commit",m,p,P0,v0,w?"error":"secondary-dark")):console.timeStamp(w?"Commit Interrupted View Transition":"Commit",m,p,P0,v0,w?"error":"secondary-dark")),y1=dq}}function kZ(){if(y1===xq||y1===dq){if(y1===xq){var m=em;em=O1();var p=em,w=Ym===n$;!e0||p<=m||(w2?w2.run(console.timeStamp.bind(console,w?"Interrupted View Transition":"Starting Animation",m,p,P0,v0,w?"error":"secondary-light")):console.timeStamp(w?"Interrupted View Transition":"Starting Animation",m,p,P0,v0,w?" error":"secondary-light")),Ym!==n$&&(Ym=aq)}y1=r2,wK(),m=n2;var z=j6;p=Xm,w=uq;var $=z.actualDuration!==0||(z.subtreeFlags&10256)!==0||(z.flags&10256)!==0;$?y1=jp:(y1=r2,j6=n2=null,AZ(m,m.pendingLanes),g4=0,S7=null);var J=m.pendingLanes;if(J===0&&(j2=null),$||lZ(m),J=hw(p),z=z.stateNode,E1&&typeof E1.onCommitFiberRoot==="function")try{var X=(z.current.flags&128)===128;switch(J){case y5:var Y=m$;break;case pm:Y=p$;break;case Im:Y=R6;break;case bp:Y=w$;break;default:Y=R6}E1.onCommitFiberRoot(O6,z,Y,X)}catch(W){vm||(vm=!0,console.error("React instrumentation encountered an error: %o",W))}if(Pm&&m.memoizedUpdaters.clear(),mB(),w!==null){X=M.T,Y=o0.p,o0.p=y5,M.T=null;try{var Z=m.onRecoverableError;for(z=0;z<w.length;z++){var G=w[z],H=JB(G.stack);h(G.source,Z,G.value,H)}}finally{M.T=X,o0.p=Y}}(Xm&3)!==0&&l3(),Nm(m),J=m.pendingLanes,(p&261930)!==0&&(J&42)!==0?(fp=!0,m===pJ?A7++:(A7=0,pJ=m)):A7=0,$||N4(p,em),d3(0,!1)}}function JB(m){return m={componentStack:m},Object.defineProperty(m,"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.')}}),m}function AZ(m,p){(m.pooledCacheLanes&=p)===0&&(p=m.pooledCache,p!=null&&(m.pooledCache=null,N3(p)))}function l3(){return fZ(),TZ(),kZ(),SZ()}function SZ(){if(y1!==jp)return!1;var m=n2,p=s$;s$=0;var w=hw(Xm),z=Im===0||Im>w?Im:w;w=M.T;var $=o0.p;try{o0.p=z,M.T=null;var J=mJ;mJ=null,z=n2;var X=Xm;if(y1=r2,j6=n2=null,Xm=0,(k0&(f1|I5))!==g1)throw Error("Cannot flush passive effects while already rendering.");H5(X),wJ=!0,rp=!1;var Y=0;if(m2=null,Y=o1(),Ym===aq)O3(em,Y,w2);else{var Z=em,G=Y,H=Ym===t$;!e0||G<=Z||(K1?K1.run(console.timeStamp.bind(console,H?"Waiting for Paint":"Waiting",Z,G,P0,v0,"secondary-light")):console.timeStamp(H?"Waiting for Paint":"Waiting",Z,G,P0,v0,"secondary-light"))}Z=k0,k0|=I5;var W=z.current;W8(),KZ(W);var Q=z.current;W=e$,W8(),qZ(z,Q,X,J,W),lZ(z),k0=Z;var O=o1();if(Q=Y,W=K1,m2!==null?NX(Q,O,m2,!0,W):!e0||O<=Q||(W?W.run(console.timeStamp.bind(console,"Remaining Effects",Q,O,P0,v0,"secondary-dark")):console.timeStamp("Remaining Effects",Q,O,P0,v0,"secondary-dark")),N4(X,O),d3(0,!1),rp?z===S7?g4++:(g4=0,S7=z):g4=0,rp=wJ=!1,E1&&typeof E1.onPostCommitFiberRoot==="function")try{E1.onPostCommitFiberRoot(O6,z)}catch(r){vm||(vm=!0,console.error("React instrumentation encountered an error: %o",r))}var V=z.current.stateNode;return V.effectDuration=0,V.passiveEffectDuration=0,!0}finally{o0.p=$,M.T=w,AZ(m,p)}}function hZ(m,p,w){p=W5(w,p),aX(p),p=j9(m.stateNode,p,2),m=N2(m,p,2),m!==null&&(q3(m,2),Nm(m))}function h0(m,p,w){if(r6=!1,m.tag===3)hZ(m,m,w);else{for(;p!==null;){if(p.tag===3){hZ(p,m,w);return}if(p.tag===1){var z=p.stateNode;if(typeof p.type.getDerivedStateFromError==="function"||typeof z.componentDidCatch==="function"&&(j2===null||!j2.has(z))){m=W5(w,m),aX(m),w=r9(2),z=N2(p,w,2),z!==null&&(n9(w,z,p,m),q3(z,2),Nm(z));return}}p=p.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`,w)}}function Wz(m,p,w){var z=m.pingCache;if(z===null){z=m.pingCache=new NH;var $=new Set;z.set(p,$)}else $=z.get(p),$===void 0&&($=new Set,z.set(p,$));$.has(w)||(j$=!0,$.add(w),z=XB.bind(null,m,p,w),Pm&&g3(m,w),p.then(z,z))}function XB(m,p,w){var z=m.pingCache;z!==null&&z.delete(p),m.pingedLanes|=m.suspendedLanes&w,m.warmLanes&=~w,(w&127)!==0?0>km&&(g2=km=O1(),G7=Fp("Promise Resolved"),d2=yp):(w&4194048)!==0&&0>u5&&(Am=u5=O1(),q7=Fp("Promise Resolved"),I$=yp),UZ()&&M.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`),D0===m&&(N0&w)===w&&(G1===i2||G1===dp&&(N0&62914560)===N0&&o1()-Dp<hq?(k0&f1)===g1&&b6(m,0):r$|=w,l4===N0&&(l4=0)),Nm(m)}function oZ(m,p){p===0&&(p=kw()),m=c1(m,p),m!==null&&(q3(m,p),Nm(m))}function YB(m){var p=m.memoizedState,w=0;p!==null&&(w=p.retryLane),oZ(m,w)}function ZB(m,p){var w=0;switch(m.tag){case 31:case 13:var{stateNode:z,memoizedState:$}=m;$!==null&&(w=$.retryLane);break;case 19:z=m.stateNode;break;case 22:z=m.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}z!==null&&z.delete(p),oZ(m,w)}function Uz(m,p,w){if((p.subtreeFlags&67117056)!==0)for(p=p.child;p!==null;){var z=m,$=p,J=$.type===Xp;J=w||J,$.tag!==22?$.flags&67108864?J&&h($,aZ,z,$):Uz(z,$,J):$.memoizedState===null&&(J&&$.flags&8192?h($,aZ,z,$):$.subtreeFlags&67108864&&h($,Uz,z,$,J)),p=p.sibling}}function aZ(m,p){Y1(!0);try{GZ(p),HZ(p),_Z(m,p.alternate,p,!1),bZ(m,p,0,null,!1,0)}finally{Y1(!1)}}function lZ(m){var p=!0;m.current.mode&(j1|wm)||(p=!1),Uz(m,m.current,p)}function gZ(m){if((k0&f1)===g1){var p=m.tag;if(p===3||p===1||p===0||p===11||p===14||p===15){if(p=f(m)||"ReactComponent",np!==null){if(np.has(p))return;np.add(p)}else np=new Set([p]);h(m,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 g3(m,p){Pm&&m.memoizedUpdaters.forEach(function(w){kJ(m,w,p)})}function GB(m,p){var w=M.actQueue;return w!==null?(w.push(p),yH):ez(m,p)}function _B(m){UZ()&&M.actQueue===null&&h(m,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`,f(m))})}function Nm(m){m!==n6&&m.next===null&&(n6===null?tp=n6=m:n6=n6.next=m),sp=!0,M.actQueue!==null?$J||($J=!0,VZ()):zJ||(zJ=!0,VZ())}function d3(m,p){if(!JJ&&sp){JJ=!0;do{var w=!1;for(var z=tp;z!==null;){if(!p)if(m!==0){var $=z.pendingLanes;if($===0)var J=0;else{var{suspendedLanes:X,pingedLanes:Y}=z;J=(1<<31-t1(42|m)+1)-1,J&=$&~(X&~Y),J=J&201326741?J&201326741|1:J?J|2:0}J!==0&&(w=!0,uZ(z,J))}else J=N0,J=t7(z,z===D0?J:0,z.cancelPendingCommit!==null||z.timeoutHandle!==V4),(J&3)===0||_3(z,J)||(w=!0,uZ(z,J));z=z.next}}while(w);JJ=!1}}function qB(){l7=window.event,Rz()}function Rz(){sp=$J=zJ=!1;var m=0;t2!==0&&UB()&&(m=t2);for(var p=o1(),w=null,z=tp;z!==null;){var $=z.next,J=dZ(z,p);if(J===0)z.next=null,w===null?tp=$:w.next=$,$===null&&(n6=w);else if(w=z,m!==0||(J&3)!==0)sp=!0;z=$}y1!==r2&&y1!==jp||d3(m,!1),t2!==0&&(t2=0)}function dZ(m,p){for(var{suspendedLanes:w,pingedLanes:z,expirationTimes:$}=m,J=m.pendingLanes&-62914561;0<J;){var X=31-t1(J),Y=1<<X,Z=$[X];if(Z===-1){if((Y&w)===0||(Y&z)!==0)$[X]=XQ(Y,p)}else Z<=p&&(m.expiredLanes|=Y);J&=~Y}if(p=D0,w=N0,w=t7(m,m===p?w:0,m.cancelPendingCommit!==null||m.timeoutHandle!==V4),z=m.callbackNode,w===0||m===p&&(g0===o4||g0===a4)||m.cancelPendingCommit!==null)return z!==null&&Oz(z),m.callbackNode=null,m.callbackPriority=0;if((w&3)===0||_3(m,w)){if(p=w&-w,p!==m.callbackPriority||M.actQueue!==null&&z!==XJ)Oz(z);else return p;switch(hw(w)){case y5:case pm:w=p$;break;case Im:w=R6;break;case bp:w=w$;break;default:w=R6}return z=xZ.bind(null,m),M.actQueue!==null?(M.actQueue.push(z),w=XJ):w=ez(w,z),m.callbackPriority=p,m.callbackNode=w,p}return z!==null&&Oz(z),m.callbackPriority=2,m.callbackNode=null,2}function xZ(m,p){if(fp=Ip=!1,l7=window.event,y1!==r2&&y1!==jp)return m.callbackNode=null,m.callbackPriority=0,null;var w=m.callbackNode;if(Ym===Ep&&(Ym=t$),l3()&&m.callbackNode!==w)return null;var z=N0;if(z=t7(m,m===D0?z:0,m.cancelPendingCommit!==null||m.timeoutHandle!==V4),z===0)return null;return OZ(m,z,p),dZ(m,o1()),m.callbackNode!=null&&m.callbackNode===w?xZ.bind(null,m):null}function uZ(m,p){if(l3())return null;Ip=fp,fp=!1,OZ(m,p,!0)}function Oz(m){m!==XJ&&m!==null&&mK(m)}function VZ(){M.actQueue!==null&&M.actQueue.push(function(){return Rz(),null}),hH(function(){(k0&(f1|I5))!==g1?ez(m$,qB):Rz()})}function Lz(){if(t2===0){var m=I4;m===0&&(m=Gp,Gp<<=1,(Gp&261888)===0&&(Gp=256)),t2=m}return t2}function iZ(m){if(m==null||typeof m==="symbol"||typeof m==="boolean")return null;if(typeof m==="function")return m;return s0(m,"action"),W3(""+m)}function DZ(m,p){var w=p.ownerDocument.createElement("input");return w.name=p.name,w.value=p.value,m.id&&w.setAttribute("form",m.id),p.parentNode.insertBefore(w,p),m=new FormData(m),w.parentNode.removeChild(w),m}function bB(m,p,w,z,$){if(p==="submit"&&w&&w.stateNode===$){var J=iZ(($[s1]||null).action),X=z.submitter;X&&(p=(p=X[s1]||null)?iZ(p.formAction):X.getAttribute("formAction"),p!==null&&(J=p,X=null));var Y=new Wp("action","action",null,z,$);m.push({event:Y,listeners:[{instance:null,listener:function(){if(z.defaultPrevented){if(t2!==0){var Z=X?DZ($,X):new FormData($),G={pending:!0,data:Z,method:$.method,action:J};Object.freeze(G),x9(w,G,null,Z)}}else typeof J==="function"&&(Y.preventDefault(),Z=X?DZ($,X):new FormData($),G={pending:!0,data:Z,method:$.method,action:J},Object.freeze(G),x9(w,G,J,Z))},currentTarget:$}]})}}function r8(m,p,w){m.currentTarget=w;try{p(m)}catch(z){U$(z)}m.currentTarget=null}function cZ(m,p){p=(p&4)!==0;for(var w=0;w<m.length;w++){var z=m[w];m:{var $=void 0,J=z.event;if(z=z.listeners,p)for(var X=z.length-1;0<=X;X--){var Y=z[X],Z=Y.instance,G=Y.currentTarget;if(Y=Y.listener,Z!==$&&J.isPropagationStopped())break m;Z!==null?h(Z,r8,J,Y,G):r8(J,Y,G),$=Z}else for(X=0;X<z.length;X++){if(Y=z[X],Z=Y.instance,G=Y.currentTarget,Y=Y.listener,Z!==$&&J.isPropagationStopped())break m;Z!==null?h(Z,r8,J,Y,G):r8(J,Y,G),$=Z}}}}function f0(m,p){YJ.has(m)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',m);var w=p[z$];w===void 0&&(w=p[z$]=new Set);var z=m+"__bubble";w.has(z)||(EZ(p,m,2,!1),w.add(z))}function Nz(m,p,w){YJ.has(m)&&!p&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',m);var z=0;p&&(z|=4),EZ(w,m,z,p)}function Mz(m){if(!m[ep]){m[ep]=!0,VG.forEach(function(w){w!=="selectionchange"&&(YJ.has(w)||Nz(w,!1,m),Nz(w,!0,m))});var p=m.nodeType===9?m:m.ownerDocument;p===null||p[ep]||(p[ep]=!0,Nz("selectionchange",!1,p))}}function EZ(m,p,w,z){switch(CG(p)){case y5:var $=cB;break;case pm:$=EB;break;default:$=gz}w=$.bind(null,p,w,m),$=void 0,!Z$||p!=="touchstart"&&p!=="touchmove"&&p!=="wheel"||($=!0),z?$!==void 0?m.addEventListener(p,w,{capture:!0,passive:$}):m.addEventListener(p,w,!0):$!==void 0?m.addEventListener(p,w,{passive:$}):m.addEventListener(p,w,!1)}function Fz(m,p,w,z,$){var J=z;if((p&1)===0&&(p&2)===0&&z!==null)m:for(;;){if(z===null)return;var X=z.tag;if(X===3||X===4){var Y=z.stateNode.containerInfo;if(Y===$)break;if(X===4)for(X=z.return;X!==null;){var Z=X.tag;if((Z===3||Z===4)&&X.stateNode.containerInfo===$)return;X=X.return}for(;Y!==null;){if(X=r4(Y),X===null)return;if(Z=X.tag,Z===5||Z===6||Z===26||Z===27){z=J=X;continue m}Y=Y.parentNode}}z=z.return}$X(function(){var G=J,H=cw(w),W=[];m:{var Q=C_.get(m);if(Q!==void 0){var O=Wp,V=m;switch(m){case"keypress":if(z8(w)===0)break m;case"keydown":case"keyup":O=xK;break;case"focusin":V="focus",O=b$;break;case"focusout":V="blur",O=b$;break;case"beforeblur":case"afterblur":O=b$;break;case"click":if(w.button===2)break m;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=b_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=IK;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=iK;break;case N_:case M_:case F_:O=kK;break;case y_:O=cK;break;case"scroll":case"scrollend":O=vK;break;case"wheel":O=jK;break;case"copy":case"cut":case"paste":O=SK;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=B_;break;case"toggle":case"beforetoggle":O=nK}var r=(p&4)!==0,j0=!r&&(m==="scroll"||m==="scrollend"),T0=r?Q!==null?Q+"Capture":null:Q;r=[];for(var b=G,B;b!==null;){var K=b;if(B=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||B===null||T0===null||(K=U3(b,T0),K!=null&&r.push(x3(b,K,B))),j0)break;b=b.return}0<r.length&&(Q=new O(Q,V,null,w,H),W.push({event:Q,listeners:r}))}}if((p&7)===0){m:{if(Q=m==="mouseover"||m==="pointerover",O=m==="mouseout"||m==="pointerout",Q&&w!==s3&&(V=w.relatedTarget||w.fromElement)&&(r4(V)||V[k2]))break m;if(O||Q){if(Q=H.window===H?H:(Q=H.ownerDocument)?Q.defaultView||Q.parentWindow:window,O){if(V=w.relatedTarget||w.toElement,O=G,V=V?r4(V):null,V!==null&&(j0=w0(V),r=V.tag,V!==j0||r!==5&&r!==27&&r!==6))V=null}else O=null,V=G;if(O!==V){if(r=b_,K="onMouseLeave",T0="onMouseEnter",b="mouse",m==="pointerout"||m==="pointerover")r=B_,K="onPointerLeave",T0="onPointerEnter",b="pointer";if(j0=O==null?Q:b3(O),B=V==null?Q:b3(V),Q=new r(K,b+"leave",O,w,H),Q.target=j0,Q.relatedTarget=B,K=null,r4(H)===G&&(r=new r(T0,b+"enter",V,w,H),r.target=B,r.relatedTarget=j0,K=r),j0=K,O&&V)p:{r=QB,T0=O,b=V,B=0;for(K=T0;K;K=r(K))B++;K=0;for(var y=b;y;y=r(y))K++;for(;0<B-K;)T0=r(T0),B--;for(;0<K-B;)b=r(b),K--;for(;B--;){if(T0===b||b!==null&&T0===b.alternate){r=T0;break p}T0=r(T0),b=r(b)}r=null}else r=null;O!==null&&jZ(W,Q,O,r,!1),V!==null&&j0!==null&&jZ(W,j0,V,r,!0)}}}m:{if(Q=G?b3(G):window,O=Q.nodeName&&Q.nodeName.toLowerCase(),O==="select"||O==="input"&&Q.type==="file")var E=qX;else if(GX(Q))if(O_)E=yQ;else{E=MQ;var W0=NQ}else O=Q.nodeName,!O||O.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?G&&H3(G.elementType)&&(E=qX):E=FQ;if(E&&(E=E(m,G))){_X(W,E,w,H);break m}W0&&W0(m,Q,G),m==="focusout"&&G&&Q.type==="number"&&G.memoizedProps.value!=null&&dw(Q,"number",Q.value)}switch(W0=G?b3(G):window,m){case"focusin":if(GX(W0)||W0.contentEditable==="true")v6=W0,B$=G,J7=null;break;case"focusout":J7=B$=v6=null;break;case"mousedown":K$=!0;break;case"contextmenu":case"mouseup":case"dragend":K$=!1,UX(W,w,H);break;case"selectionchange":if(mH)break;case"keydown":case"keyup":UX(W,w,H)}var X0;if(Q$)m:{switch(m){case"compositionstart":var m0="onCompositionStart";break m;case"compositionend":m0="onCompositionEnd";break m;case"compositionupdate":m0="onCompositionUpdate";break m}m0=void 0}else C6?YX(m,w)&&(m0="onCompositionEnd"):m==="keydown"&&w.keyCode===K_&&(m0="onCompositionStart");if(m0&&(H_&&w.locale!=="ko"&&(C6||m0!=="onCompositionStart"?m0==="onCompositionEnd"&&C6&&(X0=JX()):(A2=H,G$=("value"in A2)?A2.value:A2.textContent,C6=!0)),W0=n8(G,m0),0<W0.length&&(m0=new Q_(m0,m,null,w,H),W.push({event:m0,listeners:W0}),X0?m0.data=X0:(X0=ZX(w),X0!==null&&(m0.data=X0)))),X0=sK?UQ(m,w):RQ(m,w))m0=n8(G,"onBeforeInput"),0<m0.length&&(W0=new oK("onBeforeInput","beforeinput",null,w,H),W.push({event:W0,listeners:m0}),W0.data=X0);bB(W,m,G,w,H)}cZ(W,p)})}function x3(m,p,w){return{instance:m,listener:p,currentTarget:w}}function n8(m,p){for(var w=p+"Capture",z=[];m!==null;){var $=m,J=$.stateNode;if($=$.tag,$!==5&&$!==26&&$!==27||J===null||($=U3(m,w),$!=null&&z.unshift(x3(m,$,J)),$=U3(m,p),$!=null&&z.push(x3(m,$,J))),m.tag===3)return z;m=m.return}return[]}function QB(m){if(m===null)return null;do m=m.return;while(m&&m.tag!==5&&m.tag!==27);return m?m:null}function jZ(m,p,w,z,$){for(var J=p._reactName,X=[];w!==null&&w!==z;){var Y=w,Z=Y.alternate,G=Y.stateNode;if(Y=Y.tag,Z!==null&&Z===z)break;Y!==5&&Y!==26&&Y!==27||G===null||(Z=G,$?(G=U3(w,J),G!=null&&X.unshift(x3(w,G,Z))):$||(G=U3(w,J),G!=null&&X.push(x3(w,G,Z)))),w=w.return}X.length!==0&&m.push({event:p,listeners:X})}function yz(m,p){BQ(m,p),m!=="input"&&m!=="textarea"&&m!=="select"||p==null||p.value!==null||__||(__=!0,m==="select"&&p.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.",m):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",m));var w={registrationNameDependencies:M4,possibleRegistrationNames:$$};H3(m)||typeof p.is==="string"||HQ(m,p,w),p.contentEditable&&!p.suppressContentEditableWarning&&p.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 h1(m,p,w,z){p!==w&&(w=v2(w),v2(p)!==w&&(z[m]=p))}function BB(m,p,w){p.forEach(function(z){w[tZ(z)]=z==="style"?vz(m):m.getAttribute(z)})}function Mm(m,p){p===!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.",m,m,m):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",m,typeof p)}function rZ(m,p){return m=m.namespaceURI===Bp||m.namespaceURI===N6?m.ownerDocument.createElementNS(m.namespaceURI,m.tagName):m.ownerDocument.createElement(m.tagName),m.innerHTML=p,m.innerHTML}function v2(m){return B5(m)&&(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.",A1(m)),G3(m)),(typeof m==="string"?m:""+m).replace(CH,`
|
|
160
|
+
`).replace(vH,"")}function nZ(m,p){return p=v2(p),v2(m)===p?!0:!1}function V0(m,p,w,z,$,J){switch(w){case"children":if(typeof z==="string")w8(z,p,!1),p==="body"||p==="textarea"&&z===""||K3(m,z);else if(typeof z==="number"||typeof z==="bigint")w8(""+z,p,!1),p!=="body"&&K3(m,""+z);break;case"className":e7(m,"class",z);break;case"tabIndex":e7(m,"tabindex",z);break;case"dir":case"role":case"viewBox":case"width":case"height":e7(m,w,z);break;case"style":pX(m,z,J);break;case"data":if(p!=="object"){e7(m,"data",z);break}case"src":case"href":if(z===""&&(p!=="a"||w!=="href")){w==="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.',w,w):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.',w,w),m.removeAttribute(w);break}if(z==null||typeof z==="function"||typeof z==="symbol"||typeof z==="boolean"){m.removeAttribute(w);break}s0(z,w),z=W3(""+z),m.setAttribute(w,z);break;case"action":case"formAction":if(z!=null&&(p==="form"?w==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof z==="function"&&($.encType==null&&$.method==null||ww||(ww=!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.")),$.target==null||pw||(pw=!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."))):p==="input"||p==="button"?w==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):p!=="input"||$.type==="submit"||$.type==="image"||mw?p!=="button"||$.type==null||$.type==="submit"||mw?typeof z==="function"&&($.name==null||rq||(rq=!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.')),$.formEncType==null&&$.formMethod==null||ww||(ww=!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.")),$.formTarget==null||pw||(pw=!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."))):(mw=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(mw=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):w==="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 z==="function"){m.setAttribute(w,"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 J==="function"&&(w==="formAction"?(p!=="input"&&V0(m,p,"name",$.name,$,null),V0(m,p,"formEncType",$.formEncType,$,null),V0(m,p,"formMethod",$.formMethod,$,null),V0(m,p,"formTarget",$.formTarget,$,null)):(V0(m,p,"encType",$.encType,$,null),V0(m,p,"method",$.method,$,null),V0(m,p,"target",$.target,$,null)));if(z==null||typeof z==="symbol"||typeof z==="boolean"){m.removeAttribute(w);break}s0(z,w),z=W3(""+z),m.setAttribute(w,z);break;case"onClick":z!=null&&(typeof z!=="function"&&Mm(w,z),m.onclick=dm);break;case"onScroll":z!=null&&(typeof z!=="function"&&Mm(w,z),f0("scroll",m));break;case"onScrollEnd":z!=null&&(typeof z!=="function"&&Mm(w,z),f0("scrollend",m));break;case"dangerouslySetInnerHTML":if(z!=null){if(typeof z!=="object"||!("__html"in z))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(w=z.__html,w!=null){if($.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");m.innerHTML=w}}break;case"multiple":m.multiple=z&&typeof z!=="function"&&typeof z!=="symbol";break;case"muted":m.muted=z&&typeof z!=="function"&&typeof z!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(z==null||typeof z==="function"||typeof z==="boolean"||typeof z==="symbol"){m.removeAttribute("xlink:href");break}s0(z,w),w=W3(""+z),m.setAttributeNS(d4,"xlink:href",w);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":z!=null&&typeof z!=="function"&&typeof z!=="symbol"?(s0(z,w),m.setAttribute(w,""+z)):m.removeAttribute(w);break;case"inert":z!==""||zw[w]||(zw[w]=!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.",w));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":z&&typeof z!=="function"&&typeof z!=="symbol"?m.setAttribute(w,""):m.removeAttribute(w);break;case"capture":case"download":z===!0?m.setAttribute(w,""):z!==!1&&z!=null&&typeof z!=="function"&&typeof z!=="symbol"?(s0(z,w),m.setAttribute(w,z)):m.removeAttribute(w);break;case"cols":case"rows":case"size":case"span":z!=null&&typeof z!=="function"&&typeof z!=="symbol"&&!isNaN(z)&&1<=z?(s0(z,w),m.setAttribute(w,z)):m.removeAttribute(w);break;case"rowSpan":case"start":z==null||typeof z==="function"||typeof z==="symbol"||isNaN(z)?m.removeAttribute(w):(s0(z,w),m.setAttribute(w,z));break;case"popover":f0("beforetoggle",m),f0("toggle",m),s7(m,"popover",z);break;case"xlinkActuate":gm(m,d4,"xlink:actuate",z);break;case"xlinkArcrole":gm(m,d4,"xlink:arcrole",z);break;case"xlinkRole":gm(m,d4,"xlink:role",z);break;case"xlinkShow":gm(m,d4,"xlink:show",z);break;case"xlinkTitle":gm(m,d4,"xlink:title",z);break;case"xlinkType":gm(m,d4,"xlink:type",z);break;case"xmlBase":gm(m,ZJ,"xml:base",z);break;case"xmlLang":gm(m,ZJ,"xml:lang",z);break;case"xmlSpace":gm(m,ZJ,"xml:space",z);break;case"is":J!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),s7(m,"is",z);break;case"innerText":case"textContent":break;case"popoverTarget":nq||z==null||typeof z!=="object"||(nq=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",z));default:!(2<w.length)||w[0]!=="o"&&w[0]!=="O"||w[1]!=="n"&&w[1]!=="N"?(w=wX(w),s7(m,w,z)):M4.hasOwnProperty(w)&&z!=null&&typeof z!=="function"&&Mm(w,z)}}function Cz(m,p,w,z,$,J){switch(w){case"style":pX(m,z,J);break;case"dangerouslySetInnerHTML":if(z!=null){if(typeof z!=="object"||!("__html"in z))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(w=z.__html,w!=null){if($.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");m.innerHTML=w}}break;case"children":typeof z==="string"?K3(m,z):(typeof z==="number"||typeof z==="bigint")&&K3(m,""+z);break;case"onScroll":z!=null&&(typeof z!=="function"&&Mm(w,z),f0("scroll",m));break;case"onScrollEnd":z!=null&&(typeof z!=="function"&&Mm(w,z),f0("scrollend",m));break;case"onClick":z!=null&&(typeof z!=="function"&&Mm(w,z),m.onclick=dm);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(M4.hasOwnProperty(w))z!=null&&typeof z!=="function"&&Mm(w,z);else m:{if(w[0]==="o"&&w[1]==="n"&&($=w.endsWith("Capture"),p=w.slice(2,$?w.length-7:void 0),J=m[s1]||null,J=J!=null?J[w]:null,typeof J==="function"&&m.removeEventListener(p,J,$),typeof z==="function")){typeof J!=="function"&&J!==null&&(w in m?m[w]=null:m.hasAttribute(w)&&m.removeAttribute(w)),m.addEventListener(p,z,$);break m}w in m?m[w]=z:z===!0?m.setAttribute(w,""):s7(m,w,z)}}}function u1(m,p,w){switch(yz(p,w),p){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":f0("error",m),f0("load",m);var z=!1,$=!1,J;for(J in w)if(w.hasOwnProperty(J)){var X=w[J];if(X!=null)switch(J){case"src":z=!0;break;case"srcSet":$=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(p+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:V0(m,p,J,X,w,null)}}$&&V0(m,p,"srcSet",w.srcSet,w,null),z&&V0(m,p,"src",w.src,w,null);return;case"input":s4("input",w),f0("invalid",m);var Y=J=X=$=null,Z=null,G=null;for(z in w)if(w.hasOwnProperty(z)){var H=w[z];if(H!=null)switch(z){case"name":$=H;break;case"type":X=H;break;case"checked":Z=H;break;case"defaultChecked":G=H;break;case"value":J=H;break;case"defaultValue":Y=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(p+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:V0(m,p,z,H,w,null)}}gJ(m,w),dJ(m,J,Y,Z,G,X,$,!1);return;case"select":s4("select",w),f0("invalid",m),z=X=J=null;for($ in w)if(w.hasOwnProperty($)&&(Y=w[$],Y!=null))switch($){case"value":J=Y;break;case"defaultValue":X=Y;break;case"multiple":z=Y;default:V0(m,p,$,Y,w,null)}VJ(m,w),p=J,w=X,m.multiple=!!z,p!=null?e4(m,!!z,p,!1):w!=null&&e4(m,!!z,w,!0);return;case"textarea":s4("textarea",w),f0("invalid",m),J=$=z=null;for(X in w)if(w.hasOwnProperty(X)&&(Y=w[X],Y!=null))switch(X){case"value":z=Y;break;case"defaultValue":$=Y;break;case"children":J=Y;break;case"dangerouslySetInnerHTML":if(Y!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:V0(m,p,X,Y,w,null)}iJ(m,w),cJ(m,z,$,J);return;case"option":xJ(m,w);for(Z in w)if(w.hasOwnProperty(Z)&&(z=w[Z],z!=null))switch(Z){case"selected":m.selected=z&&typeof z!=="function"&&typeof z!=="symbol";break;default:V0(m,p,Z,z,w,null)}return;case"dialog":f0("beforetoggle",m),f0("toggle",m),f0("cancel",m),f0("close",m);break;case"iframe":case"object":f0("load",m);break;case"video":case"audio":for(z=0;z<h7.length;z++)f0(h7[z],m);break;case"image":f0("error",m),f0("load",m);break;case"details":f0("toggle",m);break;case"embed":case"source":case"link":f0("error",m),f0("load",m);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in w)if(w.hasOwnProperty(G)&&(z=w[G],z!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(p+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:V0(m,p,G,z,w,null)}return;default:if(H3(p)){for(H in w)w.hasOwnProperty(H)&&(z=w[H],z!==void 0&&Cz(m,p,H,z,w,void 0));return}}for(Y in w)w.hasOwnProperty(Y)&&(z=w[Y],z!=null&&V0(m,p,Y,z,w,null))}function KB(m,p,w,z){switch(yz(p,z),p){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var $=null,J=null,X=null,Y=null,Z=null,G=null,H=null;for(O in w){var W=w[O];if(w.hasOwnProperty(O)&&W!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":Z=W;default:z.hasOwnProperty(O)||V0(m,p,O,null,z,W)}}for(var Q in z){var O=z[Q];if(W=w[Q],z.hasOwnProperty(Q)&&(O!=null||W!=null))switch(Q){case"type":J=O;break;case"name":$=O;break;case"checked":G=O;break;case"defaultChecked":H=O;break;case"value":X=O;break;case"defaultValue":Y=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(p+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:O!==W&&V0(m,p,Q,O,z,W)}}p=w.type==="checkbox"||w.type==="radio"?w.checked!=null:w.value!=null,z=z.type==="checkbox"||z.type==="radio"?z.checked!=null:z.value!=null,p||!z||jq||(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"),jq=!0),!p||z||Eq||(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"),Eq=!0),gw(m,X,Y,Z,G,H,J,$);return;case"select":O=X=Y=Q=null;for(J in w)if(Z=w[J],w.hasOwnProperty(J)&&Z!=null)switch(J){case"value":break;case"multiple":O=Z;default:z.hasOwnProperty(J)||V0(m,p,J,null,z,Z)}for($ in z)if(J=z[$],Z=w[$],z.hasOwnProperty($)&&(J!=null||Z!=null))switch($){case"value":Q=J;break;case"defaultValue":Y=J;break;case"multiple":X=J;default:J!==Z&&V0(m,p,$,J,z,Z)}z=Y,p=X,w=O,Q!=null?e4(m,!!p,Q,!1):!!w!==!!p&&(z!=null?e4(m,!!p,z,!0):e4(m,!!p,p?[]:"",!1));return;case"textarea":O=Q=null;for(Y in w)if($=w[Y],w.hasOwnProperty(Y)&&$!=null&&!z.hasOwnProperty(Y))switch(Y){case"value":break;case"children":break;default:V0(m,p,Y,null,z,$)}for(X in z)if($=z[X],J=w[X],z.hasOwnProperty(X)&&($!=null||J!=null))switch(X){case"value":Q=$;break;case"defaultValue":O=$;break;case"children":break;case"dangerouslySetInnerHTML":if($!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:$!==J&&V0(m,p,X,$,z,J)}DJ(m,Q,O);return;case"option":for(var V in w)if(Q=w[V],w.hasOwnProperty(V)&&Q!=null&&!z.hasOwnProperty(V))switch(V){case"selected":m.selected=!1;break;default:V0(m,p,V,null,z,Q)}for(Z in z)if(Q=z[Z],O=w[Z],z.hasOwnProperty(Z)&&Q!==O&&(Q!=null||O!=null))switch(Z){case"selected":m.selected=Q&&typeof Q!=="function"&&typeof Q!=="symbol";break;default:V0(m,p,Z,Q,z,O)}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 r in w)Q=w[r],w.hasOwnProperty(r)&&Q!=null&&!z.hasOwnProperty(r)&&V0(m,p,r,null,z,Q);for(G in z)if(Q=z[G],O=w[G],z.hasOwnProperty(G)&&Q!==O&&(Q!=null||O!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(p+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:V0(m,p,G,Q,z,O)}return;default:if(H3(p)){for(var j0 in w)Q=w[j0],w.hasOwnProperty(j0)&&Q!==void 0&&!z.hasOwnProperty(j0)&&Cz(m,p,j0,void 0,z,Q);for(H in z)Q=z[H],O=w[H],!z.hasOwnProperty(H)||Q===O||Q===void 0&&O===void 0||Cz(m,p,H,Q,z,O);return}}for(var T0 in w)Q=w[T0],w.hasOwnProperty(T0)&&Q!=null&&!z.hasOwnProperty(T0)&&V0(m,p,T0,null,z,Q);for(W in z)Q=z[W],O=w[W],!z.hasOwnProperty(W)||Q===O||Q==null&&O==null||V0(m,p,W,Q,z,O)}function tZ(m){switch(m){case"class":return"className";case"for":return"htmlFor";default:return m}}function vz(m){var p={};m=m.style;for(var w=0;w<m.length;w++){var z=m[w];p[z]=m.getPropertyValue(z)}return p}function sZ(m,p,w){if(p!=null&&typeof p!=="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 z,$=z="",J;for(J in p)if(p.hasOwnProperty(J)){var X=p[J];X!=null&&typeof X!=="boolean"&&X!==""&&(J.indexOf("--")===0?(fw(X,J),z+=$+J+":"+(""+X).trim()):typeof X!=="number"||X===0||Z_.has(J)?(fw(X,J),z+=$+J.replace(z_,"-$1").toLowerCase().replace($_,"-ms-")+":"+(""+X).trim()):z+=$+J.replace(z_,"-$1").toLowerCase().replace($_,"-ms-")+":"+X+"px",$=";")}z=z||null,p=m.getAttribute("style"),p!==z&&(z=v2(z),v2(p)!==z&&(w.style=vz(m)))}}function h5(m,p,w,z,$,J){if($.delete(w),m=m.getAttribute(w),m===null)switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":return}else if(z!=null)switch(typeof z){case"function":case"symbol":case"boolean":break;default:if(s0(z,p),m===""+z)return}h1(p,m,z,J)}function eZ(m,p,w,z,$,J){if($.delete(w),m=m.getAttribute(w),m===null){switch(typeof z){case"function":case"symbol":return}if(!z)return}else switch(typeof z){case"function":case"symbol":break;default:if(z)return}h1(p,m,z,J)}function Pz(m,p,w,z,$,J){if($.delete(w),m=m.getAttribute(w),m===null)switch(typeof z){case"undefined":case"function":case"symbol":return}else if(z!=null)switch(typeof z){case"function":case"symbol":break;default:if(s0(z,w),m===""+z)return}h1(p,m,z,J)}function mG(m,p,w,z,$,J){if($.delete(w),m=m.getAttribute(w),m===null)switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(z))return}else if(z!=null)switch(typeof z){case"function":case"symbol":case"boolean":break;default:if(!isNaN(z)&&(s0(z,p),m===""+z))return}h1(p,m,z,J)}function Iz(m,p,w,z,$,J){if($.delete(w),m=m.getAttribute(w),m===null)switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":return}else if(z!=null)switch(typeof z){case"function":case"symbol":case"boolean":break;default:if(s0(z,p),w=W3(""+z),m===w)return}h1(p,m,z,J)}function pG(m,p,w,z){for(var $={},J=new Set,X=m.attributes,Y=0;Y<X.length;Y++)switch(X[Y].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:J.add(X[Y].name)}if(H3(p)){for(var Z in w)if(w.hasOwnProperty(Z)){var G=w[Z];if(G!=null){if(M4.hasOwnProperty(Z))typeof G!=="function"&&Mm(Z,G);else if(w.suppressHydrationWarning!==!0)switch(Z){case"children":typeof G!=="string"&&typeof G!=="number"||h1("children",m.textContent,G,$);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":X=m.innerHTML,G=G?G.__html:void 0,G!=null&&(G=rZ(m,G),h1(Z,X,G,$));continue;case"style":J.delete(Z),sZ(m,G,$);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":J.delete(Z.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",Z);continue;case"className":J.delete("class"),X=oJ(m,"class",G),h1("className",X,G,$);continue;default:z.context===Z2&&p!=="svg"&&p!=="math"?J.delete(Z.toLowerCase()):J.delete(Z),X=oJ(m,Z,G),h1(Z,X,G,$)}}}}else for(G in w)if(w.hasOwnProperty(G)&&(Z=w[G],Z!=null)){if(M4.hasOwnProperty(G))typeof Z!=="function"&&Mm(G,Z);else if(w.suppressHydrationWarning!==!0)switch(G){case"children":typeof Z!=="string"&&typeof Z!=="number"||h1("children",m.textContent,Z,$);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":X=m.innerHTML,Z=Z?Z.__html:void 0,Z!=null&&(Z=rZ(m,Z),X!==Z&&($[G]={__html:X}));continue;case"className":h5(m,G,"class",Z,J,$);continue;case"tabIndex":h5(m,G,"tabindex",Z,J,$);continue;case"style":J.delete(G),sZ(m,Z,$);continue;case"multiple":J.delete(G),h1(G,m.multiple,Z,$);continue;case"muted":J.delete(G),h1(G,m.muted,Z,$);continue;case"autoFocus":J.delete("autofocus"),h1(G,m.autofocus,Z,$);continue;case"data":if(p!=="object"){J.delete(G),X=m.getAttribute("data"),h1(G,X,Z,$);continue}case"src":case"href":if(!(Z!==""||p==="a"&&G==="href"||p==="object"&&G==="data")){G==="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.',G,G):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.',G,G);continue}Iz(m,G,G,Z,J,$);continue;case"action":case"formAction":if(X=m.getAttribute(G),typeof Z==="function"){J.delete(G.toLowerCase()),G==="formAction"?(J.delete("name"),J.delete("formenctype"),J.delete("formmethod"),J.delete("formtarget")):(J.delete("enctype"),J.delete("method"),J.delete("target"));continue}else if(X===PH){J.delete(G.toLowerCase()),h1(G,"function",Z,$);continue}Iz(m,G,G.toLowerCase(),Z,J,$);continue;case"xlinkHref":Iz(m,G,"xlink:href",Z,J,$);continue;case"contentEditable":Pz(m,G,"contenteditable",Z,J,$);continue;case"spellCheck":Pz(m,G,"spellcheck",Z,J,$);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Pz(m,G,G,Z,J,$);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":eZ(m,G,G.toLowerCase(),Z,J,$);continue;case"capture":case"download":m:{Y=m;var H=X=G,W=$;if(J.delete(H),Y=Y.getAttribute(H),Y===null)switch(typeof Z){case"undefined":case"function":case"symbol":break m;default:if(Z===!1)break m}else if(Z!=null)switch(typeof Z){case"function":case"symbol":break;case"boolean":if(Z===!0&&Y==="")break m;break;default:if(s0(Z,X),Y===""+Z)break m}h1(X,Y,Z,W)}continue;case"cols":case"rows":case"size":case"span":m:{if(Y=m,H=X=G,W=$,J.delete(H),Y=Y.getAttribute(H),Y===null)switch(typeof Z){case"undefined":case"function":case"symbol":case"boolean":break m;default:if(isNaN(Z)||1>Z)break m}else if(Z!=null)switch(typeof Z){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(Z)||1>Z)&&(s0(Z,X),Y===""+Z))break m}h1(X,Y,Z,W)}continue;case"rowSpan":mG(m,G,"rowspan",Z,J,$);continue;case"start":mG(m,G,G,Z,J,$);continue;case"xHeight":h5(m,G,"x-height",Z,J,$);continue;case"xlinkActuate":h5(m,G,"xlink:actuate",Z,J,$);continue;case"xlinkArcrole":h5(m,G,"xlink:arcrole",Z,J,$);continue;case"xlinkRole":h5(m,G,"xlink:role",Z,J,$);continue;case"xlinkShow":h5(m,G,"xlink:show",Z,J,$);continue;case"xlinkTitle":h5(m,G,"xlink:title",Z,J,$);continue;case"xlinkType":h5(m,G,"xlink:type",Z,J,$);continue;case"xmlBase":h5(m,G,"xml:base",Z,J,$);continue;case"xmlLang":h5(m,G,"xml:lang",Z,J,$);continue;case"xmlSpace":h5(m,G,"xml:space",Z,J,$);continue;case"inert":Z!==""||zw[G]||(zw[G]=!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.",G)),eZ(m,G,G,Z,J,$);continue;default:if(!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"){Y=wX(G),X=!1,z.context===Z2&&p!=="svg"&&p!=="math"?J.delete(Y.toLowerCase()):(H=G.toLowerCase(),H=Kp.hasOwnProperty(H)?Kp[H]||null:null,H!==null&&H!==G&&(X=!0,J.delete(H)),J.delete(Y));m:if(H=m,W=Y,Y=Z,aw(W))if(H.hasAttribute(W))H=H.getAttribute(W),s0(Y,W),Y=H===""+Y?Y:H;else{switch(typeof Y){case"function":case"symbol":break m;case"boolean":if(H=W.toLowerCase().slice(0,5),H!=="data-"&&H!=="aria-")break m}Y=Y===void 0?void 0:null}else Y=void 0;X||h1(G,Y,Z,$)}}}return 0<J.size&&w.suppressHydrationWarning!==!0&&BB(m,J,$),Object.keys($).length===0?null:$}function HB(m,p){switch(m.length){case 0:return"";case 1:return m[0];case 2:return m[0]+" "+p+" "+m[1];default:return m.slice(0,-1).join(", ")+", "+p+" "+m[m.length-1]}}function wG(m){switch(m){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function WB(){if(typeof performance.getEntriesByType==="function"){for(var m=0,p=0,w=performance.getEntriesByType("resource"),z=0;z<w.length;z++){var $=w[z],J=$.transferSize,X=$.initiatorType,Y=$.duration;if(J&&Y&&wG(X)){X=0,Y=$.responseEnd;for(z+=1;z<w.length;z++){var Z=w[z],G=Z.startTime;if(G>Y)break;var{transferSize:H,initiatorType:W}=Z;H&&wG(W)&&(Z=Z.responseEnd,X+=H*(Z<Y?1:(Y-G)/(Z-G)))}if(--z,p+=8*(J+X)/($.duration/1000),m++,10<m)break}}if(0<m)return p/m/1e6}return navigator.connection&&(m=navigator.connection.downlink,typeof m==="number")?m:5}function t8(m){return m.nodeType===9?m:m.ownerDocument}function zG(m){switch(m){case N6:return s6;case Bp:return Jw;default:return Z2}}function $G(m,p){if(m===Z2)switch(p){case"svg":return s6;case"math":return Jw;default:return Z2}return m===s6&&p==="foreignObject"?Z2:m}function fz(m,p){return m==="textarea"||m==="noscript"||typeof p.children==="string"||typeof p.children==="number"||typeof p.children==="bigint"||typeof p.dangerouslySetInnerHTML==="object"&&p.dangerouslySetInnerHTML!==null&&p.dangerouslySetInnerHTML.__html!=null}function UB(){var m=window.event;if(m&&m.type==="popstate"){if(m===bJ)return!1;return bJ=m,!0}return bJ=null,!1}function u3(){var m=window.event;return m&&m!==l7?m.type:null}function V3(){var m=window.event;return m&&m!==l7?m.timeStamp:-1.1}function RB(m){setTimeout(function(){throw m})}function OB(m,p,w){switch(p){case"button":case"input":case"select":case"textarea":w.autoFocus&&m.focus();break;case"img":w.src?m.src=w.src:w.srcSet&&(m.srcset=w.srcSet)}}function LB(){}function NB(m,p,w,z){KB(m,p,w,z),m[s1]=z}function JG(m){K3(m,"")}function MB(m,p,w){m.nodeValue=w}function XG(m){if(!m.__reactWarnedAboutChildrenConflict){var p=m[s1]||null;if(p!==null){var w=H2(m);w!==null&&(typeof p.children==="string"||typeof p.children==="number"?(m.__reactWarnedAboutChildrenConflict=!0,h(w,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.')})):p.dangerouslySetInnerHTML!=null&&(m.__reactWarnedAboutChildrenConflict=!0,h(w,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 P2(m){return m==="head"}function FB(m,p){m.removeChild(p)}function yB(m,p){(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).removeChild(p)}function YG(m,p){var w=p,z=0;do{var $=w.nextSibling;if(m.removeChild(w),$&&$.nodeType===8)if(w=$.data,w===a7||w===$w){if(z===0){m.removeChild($),H6(p);return}z--}else if(w===o7||w===s2||w===u4||w===t6||w===x4)z++;else if(w===fH)i3(m.ownerDocument.documentElement);else if(w===kH){w=m.ownerDocument.head,i3(w);for(var J=w.firstChild;J;){var{nextSibling:X,nodeName:Y}=J;J[t3]||Y==="SCRIPT"||Y==="STYLE"||Y==="LINK"&&J.rel.toLowerCase()==="stylesheet"||w.removeChild(J),J=X}}else w===TH&&i3(m.ownerDocument.body);w=$}while(w);H6(p)}function ZG(m,p){var w=m;m=0;do{var z=w.nextSibling;if(w.nodeType===1?p?(w._stashedDisplay=w.style.display,w.style.display="none"):(w.style.display=w._stashedDisplay||"",w.getAttribute("style")===""&&w.removeAttribute("style")):w.nodeType===3&&(p?(w._stashedText=w.nodeValue,w.nodeValue=""):w.nodeValue=w._stashedText||""),z&&z.nodeType===8)if(w=z.data,w===a7)if(m===0)break;else m--;else w!==o7&&w!==s2&&w!==u4&&w!==t6||m++;w=z}while(w)}function CB(m){ZG(m,!0)}function vB(m){m=m.style,typeof m.setProperty==="function"?m.setProperty("display","none","important"):m.display="none"}function PB(m){m.nodeValue=""}function IB(m){ZG(m,!1)}function fB(m,p){p=p[AH],p=p!==void 0&&p!==null&&p.hasOwnProperty("display")?p.display:null,m.style.display=p==null||typeof p==="boolean"?"":(""+p).trim()}function TB(m,p){m.nodeValue=p}function Tz(m){var p=m.firstChild;p&&p.nodeType===10&&(p=p.nextSibling);for(;p;){var w=p;switch(p=p.nextSibling,w.nodeName){case"HTML":case"HEAD":case"BODY":Tz(w),ow(w);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(w.rel.toLowerCase()==="stylesheet")continue}m.removeChild(w)}}function kB(m,p,w,z){for(;m.nodeType===1;){var $=w;if(m.nodeName.toLowerCase()!==p.toLowerCase()){if(!z&&(m.nodeName!=="INPUT"||m.type!=="hidden"))break}else if(!z)if(p==="input"&&m.type==="hidden"){s0($.name,"name");var J=$.name==null?null:""+$.name;if($.type==="hidden"&&m.getAttribute("name")===J)return m}else return m;else if(!m[t3])switch(p){case"meta":if(!m.hasAttribute("itemprop"))break;return m;case"link":if(J=m.getAttribute("rel"),J==="stylesheet"&&m.hasAttribute("data-precedence"))break;else if(J!==$.rel||m.getAttribute("href")!==($.href==null||$.href===""?null:$.href)||m.getAttribute("crossorigin")!==($.crossOrigin==null?null:$.crossOrigin)||m.getAttribute("title")!==($.title==null?null:$.title))break;return m;case"style":if(m.hasAttribute("data-precedence"))break;return m;case"script":if(J=m.getAttribute("src"),(J!==($.src==null?null:$.src)||m.getAttribute("type")!==($.type==null?null:$.type)||m.getAttribute("crossorigin")!==($.crossOrigin==null?null:$.crossOrigin))&&J&&m.hasAttribute("async")&&!m.hasAttribute("itemprop"))break;return m;default:return m}if(m=N5(m.nextSibling),m===null)break}return null}function AB(m,p,w){if(p==="")return null;for(;m.nodeType!==3;){if((m.nodeType!==1||m.nodeName!=="INPUT"||m.type!=="hidden")&&!w)return null;if(m=N5(m.nextSibling),m===null)return null}return m}function GG(m,p){for(;m.nodeType!==8;){if((m.nodeType!==1||m.nodeName!=="INPUT"||m.type!=="hidden")&&!p)return null;if(m=N5(m.nextSibling),m===null)return null}return m}function kz(m){return m.data===s2||m.data===u4}function Az(m){return m.data===t6||m.data===s2&&m.ownerDocument.readyState!==sq}function SB(m,p){var w=m.ownerDocument;if(m.data===u4)m._reactRetry=p;else if(m.data!==s2||w.readyState!==sq)p();else{var z=function(){p(),w.removeEventListener("DOMContentLoaded",z)};w.addEventListener("DOMContentLoaded",z),m._reactRetry=z}}function N5(m){for(;m!=null;m=m.nextSibling){var p=m.nodeType;if(p===1||p===3)break;if(p===8){if(p=m.data,p===o7||p===t6||p===s2||p===u4||p===x4||p===GJ||p===tq)break;if(p===a7||p===$w)return null}}return m}function _G(m){if(m.nodeType===1){for(var p=m.nodeName.toLowerCase(),w={},z=m.attributes,$=0;$<z.length;$++){var J=z[$];w[tZ(J.name)]=J.name.toLowerCase()==="style"?vz(m):J.value}return{type:p,props:w}}return m.nodeType===8?m.data===x4?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:m.nodeValue}function qG(m,p,w){return w===null||w[IH]!==!0?(m.nodeValue===p?m=null:(p=v2(p),m=v2(m.nodeValue)===p?null:m.nodeValue),m):null}function Sz(m){m=m.nextSibling;for(var p=0;m;){if(m.nodeType===8){var w=m.data;if(w===a7||w===$w){if(p===0)return N5(m.nextSibling);p--}else w!==o7&&w!==t6&&w!==s2&&w!==u4&&w!==x4||p++}m=m.nextSibling}return null}function bG(m){m=m.previousSibling;for(var p=0;m;){if(m.nodeType===8){var w=m.data;if(w===o7||w===t6||w===s2||w===u4||w===x4){if(p===0)return m;p--}else w!==a7&&w!==$w||p++}m=m.previousSibling}return null}function hB(m){H6(m)}function oB(m){H6(m)}function aB(m){H6(m)}function QG(m,p,w,z,$){switch($&&Dw(m,z.ancestorInfo),p=t8(w),m){case"html":if(m=p.documentElement,!m)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 m;case"head":if(m=p.head,!m)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 m;case"body":if(m=p.body,!m)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 m;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function lB(m,p,w,z){if(!w[k2]&&H2(w)){var $=w.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.",$,$,$)}switch(m){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($=w.attributes;$.length;)w.removeAttributeNode($[0]);u1(w,m,p),w[V1]=z,w[s1]=p}function i3(m){for(var p=m.attributes;p.length;)m.removeAttributeNode(p[0]);ow(m)}function s8(m){return typeof m.getRootNode==="function"?m.getRootNode():m.nodeType===9?m:m.ownerDocument}function BG(m,p,w){var z=e6;if(z&&typeof p==="string"&&p){var $=S5(p);$='link[rel="'+m+'"][href="'+$+'"]',typeof w==="string"&&($+='[crossorigin="'+w+'"]'),$b.has($)||($b.add($),m={rel:m,crossOrigin:w,href:p},z.querySelector($)===null&&(p=z.createElement("link"),u1(p,"link",m),S1(p),z.head.appendChild(p)))}}function KG(m,p,w,z){var $=($=f2.current)?s8($):null;if(!$)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(m){case"meta":case"title":return null;case"style":return typeof w.precedence==="string"&&typeof w.href==="string"?(w=B6(w.href),p=n4($).hoistableStyles,z=p.get(w),z||(z={type:"style",instance:null,count:0,state:null},p.set(w,z)),z):{type:"void",instance:null,count:0,state:null};case"link":if(w.rel==="stylesheet"&&typeof w.href==="string"&&typeof w.precedence==="string"){m=B6(w.href);var J=n4($).hoistableStyles,X=J.get(m);if(!X&&($=$.ownerDocument||$,X={type:"stylesheet",instance:null,count:0,state:{loading:i4,preload:null}},J.set(m,X),(J=$.querySelector(D3(m)))&&!J._p&&(X.instance=J,X.state.loading=g7|c5),!E5.has(m))){var Y={rel:"preload",as:"style",href:w.href,crossOrigin:w.crossOrigin,integrity:w.integrity,media:w.media,hrefLang:w.hrefLang,referrerPolicy:w.referrerPolicy};E5.set(m,Y),J||gB($,m,Y,X.state)}if(p&&z===null)throw w=`
|
|
161
|
+
|
|
162
|
+
- `+e8(p)+`
|
|
163
|
+
+ `+e8(w),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."+w);return X}if(p&&z!==null)throw w=`
|
|
164
|
+
|
|
165
|
+
- `+e8(p)+`
|
|
166
|
+
+ `+e8(w),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."+w);return null;case"script":return p=w.async,w=w.src,typeof w==="string"&&p&&typeof p!=="function"&&typeof p!=="symbol"?(w=K6(w),p=n4($).hoistableScripts,z=p.get(w),z||(z={type:"script",instance:null,count:0,state:null},p.set(w,z)),z):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+m+'". this is a bug in React.')}}function e8(m){var p=0,w="<link";return typeof m.rel==="string"?(p++,w+=' rel="'+m.rel+'"'):mm.call(m,"rel")&&(p++,w+=' rel="'+(m.rel===null?"null":"invalid type "+typeof m.rel)+'"'),typeof m.href==="string"?(p++,w+=' href="'+m.href+'"'):mm.call(m,"href")&&(p++,w+=' href="'+(m.href===null?"null":"invalid type "+typeof m.href)+'"'),typeof m.precedence==="string"?(p++,w+=' precedence="'+m.precedence+'"'):mm.call(m,"precedence")&&(p++,w+=" precedence={"+(m.precedence===null?"null":"invalid type "+typeof m.precedence)+"}"),Object.getOwnPropertyNames(m).length>p&&(w+=" ..."),w+" />"}function B6(m){return'href="'+S5(m)+'"'}function D3(m){return'link[rel="stylesheet"]['+m+"]"}function HG(m){return C0({},m,{"data-precedence":m.precedence,precedence:null})}function gB(m,p,w,z){m.querySelector('link[rel="preload"][as="style"]['+p+"]")?z.loading=g7:(p=m.createElement("link"),z.preload=p,p.addEventListener("load",function(){return z.loading|=g7}),p.addEventListener("error",function(){return z.loading|=wb}),u1(p,"link",w),S1(p),m.head.appendChild(p))}function K6(m){return'[src="'+S5(m)+'"]'}function c3(m){return"script[async]"+m}function WG(m,p,w){if(p.count++,p.instance===null)switch(p.type){case"style":var z=m.querySelector('style[data-href~="'+S5(w.href)+'"]');if(z)return p.instance=z,S1(z),z;var $=C0({},w,{"data-href":w.href,"data-precedence":w.precedence,href:null,precedence:null});return z=(m.ownerDocument||m).createElement("style"),S1(z),u1(z,"style",$),mp(z,w.precedence,m),p.instance=z;case"stylesheet":$=B6(w.href);var J=m.querySelector(D3($));if(J)return p.state.loading|=c5,p.instance=J,S1(J),J;z=HG(w),($=E5.get($))&&hz(z,$),J=(m.ownerDocument||m).createElement("link"),S1(J);var X=J;return X._p=new Promise(function(Y,Z){X.onload=Y,X.onerror=Z}),u1(J,"link",z),p.state.loading|=c5,mp(J,w.precedence,m),p.instance=J;case"script":if(J=K6(w.src),$=m.querySelector(c3(J)))return p.instance=$,S1($),$;if(z=w,$=E5.get(J))z=C0({},w),oz(z,$);return m=m.ownerDocument||m,$=m.createElement("script"),S1($),u1($,"link",z),m.head.appendChild($),p.instance=$;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+p.type+'". this is a bug in React.')}else p.type==="stylesheet"&&(p.state.loading&c5)===i4&&(z=p.instance,p.state.loading|=c5,mp(z,w.precedence,m));return p.instance}function mp(m,p,w){for(var z=w.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),$=z.length?z[z.length-1]:null,J=$,X=0;X<z.length;X++){var Y=z[X];if(Y.dataset.precedence===p)J=Y;else if(J!==$)break}J?J.parentNode.insertBefore(m,J.nextSibling):(p=w.nodeType===9?w.head:w,p.insertBefore(m,p.firstChild))}function hz(m,p){m.crossOrigin==null&&(m.crossOrigin=p.crossOrigin),m.referrerPolicy==null&&(m.referrerPolicy=p.referrerPolicy),m.title==null&&(m.title=p.title)}function oz(m,p){m.crossOrigin==null&&(m.crossOrigin=p.crossOrigin),m.referrerPolicy==null&&(m.referrerPolicy=p.referrerPolicy),m.integrity==null&&(m.integrity=p.integrity)}function UG(m,p,w){if(Xw===null){var z=new Map,$=Xw=new Map;$.set(w,z)}else $=Xw,z=$.get(w),z||(z=new Map,$.set(w,z));if(z.has(m))return z;z.set(m,null),w=w.getElementsByTagName(m);for($=0;$<w.length;$++){var J=w[$];if(!(J[t3]||J[V1]||m==="link"&&J.getAttribute("rel")==="stylesheet")&&J.namespaceURI!==N6){var X=J.getAttribute(p)||"";X=m+X;var Y=z.get(X);Y?Y.push(J):z.set(X,[J])}}return z}function RG(m,p,w){m=m.ownerDocument||m,m.head.insertBefore(w,p==="title"?m.querySelector("head > title"):null)}function dB(m,p,w){var z=!w.ancestorInfo.containerTagInScope;if(w.context===s6||p.itemProp!=null)return!z||p.itemProp==null||m!=="meta"&&m!=="title"&&m!=="style"&&m!=="link"&&m!=="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.",m,m),!1;switch(m){case"meta":case"title":return!0;case"style":if(typeof p.precedence!=="string"||typeof p.href!=="string"||p.href===""){z&&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 p.rel!=="string"||typeof p.href!=="string"||p.href===""||p.onLoad||p.onError){if(p.rel==="stylesheet"&&typeof p.precedence==="string"){m=p.href;var{onError:$,disabled:J}=p;w=[],p.onLoad&&w.push("`onLoad`"),$&&w.push("`onError`"),J!=null&&w.push("`disabled`"),$=HB(w,"and"),$+=w.length===1?" prop":" props",J=w.length===1?"an "+$:"the "+$,w.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.',m,J,$)}z&&(typeof p.rel!=="string"||typeof p.href!=="string"||p.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"):(p.onError||p.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(p.rel){case"stylesheet":return m=p.precedence,p=p.disabled,typeof m!=="string"&&z&&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 m==="string"&&p==null;default:return!0}case"script":if(m=p.async&&typeof p.async!=="function"&&typeof p.async!=="symbol",!m||p.onLoad||p.onError||!p.src||typeof p.src!=="string"){z&&(m?p.onLoad||p.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":z&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",m)}return!1}function OG(m){return m.type==="stylesheet"&&(m.state.loading&zb)===i4?!1:!0}function xB(m,p,w,z){if(w.type==="stylesheet"&&(typeof z.media!=="string"||matchMedia(z.media).matches!==!1)&&(w.state.loading&c5)===i4){if(w.instance===null){var $=B6(z.href),J=p.querySelector(D3($));if(J){p=J._p,p!==null&&typeof p==="object"&&typeof p.then==="function"&&(m.count++,m=pp.bind(m),p.then(m,m)),w.state.loading|=c5,w.instance=J,S1(J);return}J=p.ownerDocument||p,z=HG(z),($=E5.get($))&&hz(z,$),J=J.createElement("link"),S1(J);var X=J;X._p=new Promise(function(Y,Z){X.onload=Y,X.onerror=Z}),u1(J,"link",z),w.instance=J}m.stylesheets===null&&(m.stylesheets=new Map),m.stylesheets.set(w,p),(p=w.state.preload)&&(w.state.loading&zb)===i4&&(m.count++,w=pp.bind(m),p.addEventListener("load",w),p.addEventListener("error",w))}}function uB(m,p){return m.stylesheets&&m.count===0&&wp(m,m.stylesheets),0<m.count||0<m.imgCount?function(w){var z=setTimeout(function(){if(m.stylesheets&&wp(m,m.stylesheets),m.unsuspend){var J=m.unsuspend;m.unsuspend=null,J()}},oH+p);0<m.imgBytes&&BJ===0&&(BJ=125*WB()*lH);var $=setTimeout(function(){if(m.waitingForImages=!1,m.count===0&&(m.stylesheets&&wp(m,m.stylesheets),m.unsuspend)){var J=m.unsuspend;m.unsuspend=null,J()}},(m.imgBytes>BJ?50:aH)+p);return m.unsuspend=w,function(){m.unsuspend=null,clearTimeout(z),clearTimeout($)}}:null}function pp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wp(this,this.stylesheets);else if(this.unsuspend){var m=this.unsuspend;this.unsuspend=null,m()}}}function wp(m,p){m.stylesheets=null,m.unsuspend!==null&&(m.count++,Yw=new Map,p.forEach(VB,m),Yw=null,pp.call(m))}function VB(m,p){if(!(p.state.loading&c5)){var w=Yw.get(m);if(w)var z=w.get(KJ);else{w=new Map,Yw.set(m,w);for(var $=m.querySelectorAll("link[data-precedence],style[data-precedence]"),J=0;J<$.length;J++){var X=$[J];if(X.nodeName==="LINK"||X.getAttribute("media")!=="not all")w.set(X.dataset.precedence,X),z=X}z&&w.set(KJ,z)}$=p.instance,X=$.getAttribute("data-precedence"),J=w.get(X)||z,J===z&&w.set(KJ,$),w.set(X,$),this.count++,z=pp.bind(this),$.addEventListener("load",z),$.addEventListener("error",z),J?J.parentNode.insertBefore($,J.nextSibling):(m=m.nodeType===9?m.head:m,m.insertBefore($,m.firstChild)),p.state.loading|=c5}}function iB(m,p,w,z,$,J,X,Y,Z){this.tag=1,this.containerInfo=m,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=V4,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Aw(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Aw(0),this.hiddenUpdates=Aw(null),this.identifierPrefix=z,this.onUncaughtError=$,this.onCaughtError=J,this.onRecoverableError=X,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Z,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,m=this.pendingUpdatersLaneMap=[];for(p=0;31>p;p++)m.push(new Set);this._debugRootType=w?"hydrateRoot()":"createRoot()"}function LG(m,p,w,z,$,J,X,Y,Z,G,H,W){return m=new iB(m,p,w,X,Z,G,H,W,Y),p=GH,J===!0&&(p|=j1|wm),p|=O0,J=x(3,null,null,p),m.current=J,J.stateNode=m,p=_9(),H4(p),m.pooledCache=p,H4(p),J.memoizedState={element:z,isDehydrated:w,cache:p},K9(J),m}function NG(m){if(!m)return o2;return m=o2,m}function az(m,p,w,z,$,J){if(E1&&typeof E1.onScheduleFiberRoot==="function")try{E1.onScheduleFiberRoot(O6,z,w)}catch(X){vm||(vm=!0,console.error("React instrumentation encountered an error: %o",X))}$=NG($),z.context===null?z.context=$:z.pendingContext=$,Cm&&F5!==null&&!Zb&&(Zb=!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.`,f(F5)||"Unknown")),z=L2(p),z.payload={element:w},J=J===void 0?null:J,J!==null&&(typeof J!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",J),z.callback=J),w=N2(m,z,p),w!==null&&(qm(p,"root.render()",null),q1(w,m,p),C3(w,m,p))}function MG(m,p){if(m=m.memoizedState,m!==null&&m.dehydrated!==null){var w=m.retryLane;m.retryLane=w!==0&&w<p?w:p}}function lz(m,p){MG(m,p),(m=m.alternate)&&MG(m,p)}function FG(m){if(m.tag===13||m.tag===31){var p=c1(m,67108864);p!==null&&q1(p,m,67108864),lz(m,67108864)}}function yG(m){if(m.tag===13||m.tag===31){var p=L5(m);p=Sw(p);var w=c1(m,p);w!==null&&q1(w,m,p),lz(m,p)}}function DB(){return F5}function cB(m,p,w,z){var $=M.T;M.T=null;var J=o0.p;try{o0.p=y5,gz(m,p,w,z)}finally{o0.p=J,M.T=$}}function EB(m,p,w,z){var $=M.T;M.T=null;var J=o0.p;try{o0.p=pm,gz(m,p,w,z)}finally{o0.p=J,M.T=$}}function gz(m,p,w,z){if(Gw){var $=dz(z);if($===null)Fz(m,p,z,_w,w),vG(m,z);else if(jB($,m,p,w,z))z.stopPropagation();else if(vG(m,z),p&4&&-1<dH.indexOf(m)){for(;$!==null;){var J=H2($);if(J!==null)switch(J.tag){case 3:if(J=J.stateNode,J.current.memoizedState.isDehydrated){var X=X4(J.pendingLanes);if(X!==0){var Y=J;Y.pendingLanes|=2;for(Y.entangledLanes|=2;X;){var Z=1<<31-t1(X);Y.entanglements[1]|=Z,X&=~Z}Nm(J),(k0&(f1|I5))===g1&&(cp=o1()+oq,d3(0,!1))}}break;case 31:case 13:Y=c1(J,2),Y!==null&&q1(Y,J,2),q6(),lz(J,2)}if(J=dz(z),J===null&&Fz(m,p,z,_w,w),J===$)break;$=J}$!==null&&z.stopPropagation()}else Fz(m,p,z,null,w)}}function dz(m){return m=cw(m),xz(m)}function xz(m){if(_w=null,m=r4(m),m!==null){var p=w0(m);if(p===null)m=null;else{var w=p.tag;if(w===13){if(m=$0(p),m!==null)return m;m=null}else if(w===31){if(m=l(p),m!==null)return m;m=null}else if(w===3){if(p.stateNode.current.memoizedState.isDehydrated)return p.tag===3?p.stateNode.containerInfo:null;m=null}else p!==m&&(m=null)}}return _w=m,null}function CG(m){switch(m){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 y5;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 pm;case"message":switch(zK()){case m$:return y5;case p$:return pm;case R6:case $K:return Im;case w$:return bp;default:return Im}default:return Im}}function vG(m,p){switch(m){case"focusin":case"focusout":e2=null;break;case"dragenter":case"dragleave":m4=null;break;case"mouseover":case"mouseout":p4=null;break;case"pointerover":case"pointerout":x7.delete(p.pointerId);break;case"gotpointercapture":case"lostpointercapture":u7.delete(p.pointerId)}}function E3(m,p,w,z,$,J){if(m===null||m.nativeEvent!==J)return m={blockedOn:p,domEventName:w,eventSystemFlags:z,nativeEvent:J,targetContainers:[$]},p!==null&&(p=H2(p),p!==null&&FG(p)),m;return m.eventSystemFlags|=z,p=m.targetContainers,$!==null&&p.indexOf($)===-1&&p.push($),m}function jB(m,p,w,z,$){switch(p){case"focusin":return e2=E3(e2,m,p,w,z,$),!0;case"dragenter":return m4=E3(m4,m,p,w,z,$),!0;case"mouseover":return p4=E3(p4,m,p,w,z,$),!0;case"pointerover":var J=$.pointerId;return x7.set(J,E3(x7.get(J)||null,m,p,w,z,$)),!0;case"gotpointercapture":return J=$.pointerId,u7.set(J,E3(u7.get(J)||null,m,p,w,z,$)),!0}return!1}function PG(m){var p=r4(m.target);if(p!==null){var w=w0(p);if(w!==null){if(p=w.tag,p===13){if(p=$0(w),p!==null){m.blockedOn=p,hJ(m.priority,function(){yG(w)});return}}else if(p===31){if(p=l(w),p!==null){m.blockedOn=p,hJ(m.priority,function(){yG(w)});return}}else if(p===3&&w.stateNode.current.memoizedState.isDehydrated){m.blockedOn=w.tag===3?w.stateNode.containerInfo:null;return}}}m.blockedOn=null}function zp(m){if(m.blockedOn!==null)return!1;for(var p=m.targetContainers;0<p.length;){var w=dz(m.nativeEvent);if(w===null){w=m.nativeEvent;var z=new w.constructor(w.type,w),$=z;s3!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),s3=$,w.target.dispatchEvent(z),s3===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."),s3=null}else return p=H2(w),p!==null&&FG(p),m.blockedOn=w,!1;p.shift()}return!0}function IG(m,p,w){zp(m)&&w.delete(p)}function rB(){HJ=!1,e2!==null&&zp(e2)&&(e2=null),m4!==null&&zp(m4)&&(m4=null),p4!==null&&zp(p4)&&(p4=null),x7.forEach(IG),u7.forEach(IG)}function $p(m,p){m.blockedOn===p&&(m.blockedOn=null,HJ||(HJ=!0,A0.unstable_scheduleCallback(A0.unstable_NormalPriority,rB)))}function fG(m){qw!==m&&(qw=m,A0.unstable_scheduleCallback(A0.unstable_NormalPriority,function(){qw===m&&(qw=null);for(var p=0;p<m.length;p+=3){var w=m[p],z=m[p+1],$=m[p+2];if(typeof z!=="function")if(xz(z||w)===null)continue;else break;var J=H2(w);J!==null&&(m.splice(p,3),p-=3,w={pending:!0,data:$,method:w.method,action:z},Object.freeze(w),x9(J,w,z,$))}}))}function H6(m){function p(Z){return $p(Z,m)}e2!==null&&$p(e2,m),m4!==null&&$p(m4,m),p4!==null&&$p(p4,m),x7.forEach(p),u7.forEach(p);for(var w=0;w<w4.length;w++){var z=w4[w];z.blockedOn===m&&(z.blockedOn=null)}for(;0<w4.length&&(w=w4[0],w.blockedOn===null);)PG(w),w.blockedOn===null&&w4.shift();if(w=(m.ownerDocument||m).$$reactFormReplay,w!=null)for(z=0;z<w.length;z+=3){var $=w[z],J=w[z+1],X=$[s1]||null;if(typeof J==="function")X||fG(w);else if(X){var Y=null;if(J&&J.hasAttribute("formAction")){if($=J,X=J[s1]||null)Y=X.formAction;else if(xz($)!==null)continue}else Y=X.action;typeof Y==="function"?w[z+1]=Y:(w.splice(z,3),z-=3),fG(w)}}}function TG(){function m(J){J.canIntercept&&J.info==="react-transition"&&J.intercept({handler:function(){return new Promise(function(X){return $=X})},focusReset:"manual",scroll:"manual"})}function p(){$!==null&&($(),$=null),z||setTimeout(w,20)}function w(){if(!z&&!navigation.transition){var J=navigation.currentEntry;J&&J.url!=null&&navigation.navigate(J.url,{state:J.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var z=!1,$=null;return navigation.addEventListener("navigate",m),navigation.addEventListener("navigatesuccess",p),navigation.addEventListener("navigateerror",p),setTimeout(w,100),function(){z=!0,navigation.removeEventListener("navigate",m),navigation.removeEventListener("navigatesuccess",p),navigation.removeEventListener("navigateerror",p),$!==null&&($(),$=null)}}}function uz(m){this._internalRoot=m}function Jp(m){this._internalRoot=m}function kG(m){m[k2]&&(m._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 C0=Object.assign,nB=Symbol.for("react.element"),Fm=Symbol.for("react.transitional.element"),W6=Symbol.for("react.portal"),U6=Symbol.for("react.fragment"),Xp=Symbol.for("react.strict_mode"),Vz=Symbol.for("react.profiler"),iz=Symbol.for("react.consumer"),ym=Symbol.for("react.context"),j3=Symbol.for("react.forward_ref"),Dz=Symbol.for("react.suspense"),cz=Symbol.for("react.suspense_list"),Yp=Symbol.for("react.memo"),M5=Symbol.for("react.lazy"),Ez=Symbol.for("react.activity"),tB=Symbol.for("react.memo_cache_sentinel"),AG=Symbol.iterator,sB=Symbol.for("react.client.reference"),P1=Array.isArray,M=m3.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,o0=UJ.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,eB=Object.freeze({pending:!1,data:null,method:null,action:null}),jz=[],rz=[],jm=-1,I2=J0(null),r3=J0(null),f2=J0(null),Zp=J0(null),n3=0,SG,hG,oG,aG,lG,gG,dG;k5.__reactDisabledLog=!0;var nz,xG,tz=!1,sz=new(typeof WeakMap==="function"?WeakMap:Map),F5=null,Cm=!1,mm=Object.prototype.hasOwnProperty,ez=A0.unstable_scheduleCallback,mK=A0.unstable_cancelCallback,pK=A0.unstable_shouldYield,wK=A0.unstable_requestPaint,o1=A0.unstable_now,zK=A0.unstable_getCurrentPriorityLevel,m$=A0.unstable_ImmediatePriority,p$=A0.unstable_UserBlockingPriority,R6=A0.unstable_NormalPriority,$K=A0.unstable_LowPriority,w$=A0.unstable_IdlePriority,JK=A0.log,XK=A0.unstable_setDisableYieldValue,O6=null,E1=null,vm=!1,Pm=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",t1=Math.clz32?Math.clz32:JQ,YK=Math.log,ZK=Math.LN2,Gp=256,_p=262144,qp=4194304,y5=2,pm=8,Im=32,bp=268435456,T2=Math.random().toString(36).slice(2),V1="__reactFiber$"+T2,s1="__reactProps$"+T2,k2="__reactContainer$"+T2,z$="__reactEvents$"+T2,GK="__reactListeners$"+T2,_K="__reactHandles$"+T2,uG="__reactResources$"+T2,t3="__reactMarker$"+T2,VG=new Set,M4={},$$={},qK={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},bK=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]*$"),iG={},DG={},QK=/[\n"\\]/g,cG=!1,EG=!1,jG=!1,rG=!1,nG=!1,tG=!1,sG=["value","defaultValue"],eG=!1,m_=/["'&<>\n\t]|^\s|\s$/,BK="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(" "),p_="applet caption html table td th marquee object template foreignObject desc title".split(" "),KK=p_.concat(["button"]),HK="dd dt li option optgroup p rp rt".split(" "),w_={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Qp={},J$={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"]},z_=/([A-Z])/g,$_=/^ms-/,WK=/^(?:webkit|moz|o)[A-Z]/,UK=/^-ms-/,RK=/-(.)/g,J_=/;\s*$/,L6={},X$={},X_=!1,Y_=!1,Z_=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(" ")),Bp="http://www.w3.org/1998/Math/MathML",N6="http://www.w3.org/2000/svg",OK=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"]]),Kp={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"},G_={"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},M6={},LK=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]*$"),NK=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]*$"),__=!1,e1={},q_=/^on./,MK=/^on[^A-Z]/,FK=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]*$"),yK=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]*$"),CK=/^[\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,s3=null,F6=null,y6=null,Y$=!1,fm=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Z$=!1;if(fm)try{var e3={};Object.defineProperty(e3,"passive",{get:function(){Z$=!0}}),window.addEventListener("test",e3,e3),window.removeEventListener("test",e3,e3)}catch(m){Z$=!1}var A2=null,G$=null,Hp=null,F4={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(m){return m.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wp=X5(F4),m7=C0({},F4,{view:0,detail:0}),vK=X5(m7),_$,q$,p7,Up=C0({},m7,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ew,button:0,buttons:0,relatedTarget:function(m){return m.relatedTarget===void 0?m.fromElement===m.srcElement?m.toElement:m.fromElement:m.relatedTarget},movementX:function(m){if("movementX"in m)return m.movementX;return m!==p7&&(p7&&m.type==="mousemove"?(_$=m.screenX-p7.screenX,q$=m.screenY-p7.screenY):q$=_$=0,p7=m),_$},movementY:function(m){return"movementY"in m?m.movementY:q$}}),b_=X5(Up),PK=C0({},Up,{dataTransfer:0}),IK=X5(PK),fK=C0({},m7,{relatedTarget:0}),b$=X5(fK),TK=C0({},F4,{animationName:0,elapsedTime:0,pseudoElement:0}),kK=X5(TK),AK=C0({},F4,{clipboardData:function(m){return"clipboardData"in m?m.clipboardData:window.clipboardData}}),SK=X5(AK),hK=C0({},F4,{data:0}),Q_=X5(hK),oK=Q_,aK={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lK={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"},gK={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},dK=C0({},m7,{key:function(m){if(m.key){var p=aK[m.key]||m.key;if(p!=="Unidentified")return p}return m.type==="keypress"?(m=z8(m),m===13?"Enter":String.fromCharCode(m)):m.type==="keydown"||m.type==="keyup"?lK[m.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ew,charCode:function(m){return m.type==="keypress"?z8(m):0},keyCode:function(m){return m.type==="keydown"||m.type==="keyup"?m.keyCode:0},which:function(m){return m.type==="keypress"?z8(m):m.type==="keydown"||m.type==="keyup"?m.keyCode:0}}),xK=X5(dK),uK=C0({},Up,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),B_=X5(uK),VK=C0({},m7,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ew}),iK=X5(VK),DK=C0({},F4,{propertyName:0,elapsedTime:0,pseudoElement:0}),cK=X5(DK),EK=C0({},Up,{deltaX:function(m){return"deltaX"in m?m.deltaX:("wheelDeltaX"in m)?-m.wheelDeltaX:0},deltaY:function(m){return"deltaY"in m?m.deltaY:("wheelDeltaY"in m)?-m.wheelDeltaY:("wheelDelta"in m)?-m.wheelDelta:0},deltaZ:0,deltaMode:0}),jK=X5(EK),rK=C0({},F4,{newState:0,oldState:0}),nK=X5(rK),tK=[9,13,27,32],K_=229,Q$=fm&&"CompositionEvent"in window,w7=null;fm&&"documentMode"in document&&(w7=document.documentMode);var sK=fm&&"TextEvent"in window&&!w7,H_=fm&&(!Q$||w7&&8<w7&&11>=w7),W_=32,U_=String.fromCharCode(W_),R_=!1,C6=!1,eK={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},z7=null,$7=null,O_=!1;fm&&(O_=OQ("input")&&(!document.documentMode||9<document.documentMode));var m5=typeof Object.is==="function"?Object.is:CQ,mH=fm&&"documentMode"in document&&11>=document.documentMode,v6=null,B$=null,J7=null,K$=!1,P6={animationend:G4("Animation","AnimationEnd"),animationiteration:G4("Animation","AnimationIteration"),animationstart:G4("Animation","AnimationStart"),transitionrun:G4("Transition","TransitionRun"),transitionstart:G4("Transition","TransitionStart"),transitioncancel:G4("Transition","TransitionCancel"),transitionend:G4("Transition","TransitionEnd")},H$={},L_={};fm&&(L_=document.createElement("div").style,("AnimationEvent"in window)||(delete P6.animationend.animation,delete P6.animationiteration.animation,delete P6.animationstart.animation),("TransitionEvent"in window)||delete P6.transitionend.transition);var N_=_4("animationend"),M_=_4("animationiteration"),F_=_4("animationstart"),pH=_4("transitionrun"),wH=_4("transitionstart"),zH=_4("transitioncancel"),y_=_4("transitionend"),C_=new Map,W$="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(" ");W$.push("scrollEnd");var v_=0;if(typeof performance==="object"&&typeof performance.now==="function")var $H=performance,P_=function(){return $H.now()};else{var JH=Date;P_=function(){return JH.now()}}var U$=typeof reportError==="function"?reportError:function(m){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof m==="object"&&m!==null&&typeof m.message==="string"?String(m.message):String(m),error:m});if(!window.dispatchEvent(p))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",m);return}console.error(m)},XH="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.",Rp=0,R$=1,O$=2,L$=3,Op="– ",Lp="+ ",I_=" ",e0=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",o5="Components ⚛",v0="Scheduler ⚛",P0="Blocking",S2=!1,rm={color:"primary",properties:null,tooltipText:"",track:o5},h2={start:-0,end:-0,detail:{devtools:rm}},YH=["Changed Props",""],f_="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",ZH=["Changed Props",f_],X7=1,nm=2,a5=[],I6=0,N$=0,o2={};Object.freeze(o2);var l5=null,f6=null,Q0=0,GH=1,O0=2,j1=8,wm=16,_H=32,T_=!1;try{var k_=Object.preventExtensions({})}catch(m){T_=!0}var M$=new WeakMap,T6=[],k6=0,Np=null,Y7=0,g5=[],d5=0,y4=null,tm=1,sm="",i1=null,m1=null,I0=!1,Tm=!1,C5=null,a2=null,x5=!1,F$=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."),y$=J0(null),C$=J0(null),A_={},Mp=null,A6=null,S6=!1,qH=typeof AbortController<"u"?AbortController:function(){var m=[],p=this.signal={aborted:!1,addEventListener:function(w,z){m.push(z)}};this.abort=function(){p.aborted=!0,m.forEach(function(w){return w()})}},bH=A0.unstable_scheduleCallback,QH=A0.unstable_NormalPriority,R1={$$typeof:ym,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},O1=A0.unstable_now,Fp=console.createTask?console.createTask:function(){return null},Z7=1,yp=2,a1=-0,l2=-0,em=-0,m2=null,p5=-1.1,C4=-0,Z1=-0,Y0=-1.1,_0=-1.1,J1=null,b1=!1,g2=-0,km=-1.1,G7=null,d2=0,v$=null,P$=null,v4=-1.1,_7=null,h6=-1.1,Cp=-1.1,Am=-0,p2=-1.1,u5=-1.1,I$=0,q7=null,S_=null,h_=null,x2=-1.1,P4=null,u2=-1.1,vp=-1.1,o_=-0,a_=-0,Pp=0,w2=null,l_=0,b7=-1.1,Ip=!1,fp=!1,Q7=null,f$=0,I4=0,o6=null,g_=M.S;M.S=function(m,p){if(Sq=o1(),typeof p==="object"&&p!==null&&typeof p.then==="function"){if(0>p2&&0>u5){p2=O1();var w=V3(),z=u3();if(w!==u2||z!==P4)u2=-1.1;x2=w,P4=z}AQ(m,p)}g_!==null&&g_(m,p)};var f4=J0(null),zm={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},B7=[],K7=[],H7=[],W7=[],U7=[],R7=[],T4=new Set;zm.recordUnsafeLifecycleWarnings=function(m,p){T4.has(m.type)||(typeof p.componentWillMount==="function"&&p.componentWillMount.__suppressDeprecationWarning!==!0&&B7.push(m),m.mode&j1&&typeof p.UNSAFE_componentWillMount==="function"&&K7.push(m),typeof p.componentWillReceiveProps==="function"&&p.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&H7.push(m),m.mode&j1&&typeof p.UNSAFE_componentWillReceiveProps==="function"&&W7.push(m),typeof p.componentWillUpdate==="function"&&p.componentWillUpdate.__suppressDeprecationWarning!==!0&&U7.push(m),m.mode&j1&&typeof p.UNSAFE_componentWillUpdate==="function"&&R7.push(m))},zm.flushPendingUnsafeLifecycleWarnings=function(){var m=new Set;0<B7.length&&(B7.forEach(function(Y){m.add(f(Y)||"Component"),T4.add(Y.type)}),B7=[]);var p=new Set;0<K7.length&&(K7.forEach(function(Y){p.add(f(Y)||"Component"),T4.add(Y.type)}),K7=[]);var w=new Set;0<H7.length&&(H7.forEach(function(Y){w.add(f(Y)||"Component"),T4.add(Y.type)}),H7=[]);var z=new Set;0<W7.length&&(W7.forEach(function(Y){z.add(f(Y)||"Component"),T4.add(Y.type)}),W7=[]);var $=new Set;0<U7.length&&(U7.forEach(function(Y){$.add(f(Y)||"Component"),T4.add(Y.type)}),U7=[]);var J=new Set;if(0<R7.length&&(R7.forEach(function(Y){J.add(f(Y)||"Component"),T4.add(Y.type)}),R7=[]),0<p.size){var X=i(p);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`,X)}0<z.size&&(X=i(z),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`,X)),0<J.size&&(X=i(J),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`,X)),0<m.size&&(X=i(m),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`,X)),0<w.size&&(X=i(w),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`,X)),0<$.size&&(X=i($),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`,X))};var Tp=new Map,d_=new Set;zm.recordLegacyContextWarning=function(m,p){var w=null;for(var z=m;z!==null;)z.mode&j1&&(w=z),z=z.return;w===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."):!d_.has(m.type)&&(z=Tp.get(w),m.type.contextTypes!=null||m.type.childContextTypes!=null||p!==null&&typeof p.getChildContext==="function")&&(z===void 0&&(z=[],Tp.set(w,z)),z.push(m))},zm.flushLegacyContextWarning=function(){Tp.forEach(function(m){if(m.length!==0){var p=m[0],w=new Set;m.forEach(function($){w.add(f($)||"Component"),d_.add($.type)});var z=i(w);h(p,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`,z)})}})},zm.discardPendingWarnings=function(){B7=[],K7=[],H7=[],W7=[],U7=[],R7=[],Tp=new Map};var x_={react_stack_bottom_frame:function(m,p,w){var z=Cm;Cm=!0;try{return m(p,w)}finally{Cm=z}}},T$=x_.react_stack_bottom_frame.bind(x_),u_={react_stack_bottom_frame:function(m){var p=Cm;Cm=!0;try{return m.render()}finally{Cm=p}}},V_=u_.react_stack_bottom_frame.bind(u_),i_={react_stack_bottom_frame:function(m,p){try{p.componentDidMount()}catch(w){h0(m,m.return,w)}}},k$=i_.react_stack_bottom_frame.bind(i_),D_={react_stack_bottom_frame:function(m,p,w,z,$){try{p.componentDidUpdate(w,z,$)}catch(J){h0(m,m.return,J)}}},c_=D_.react_stack_bottom_frame.bind(D_),E_={react_stack_bottom_frame:function(m,p){var w=p.stack;m.componentDidCatch(p.value,{componentStack:w!==null?w:""})}},BH=E_.react_stack_bottom_frame.bind(E_),j_={react_stack_bottom_frame:function(m,p,w){try{w.componentWillUnmount()}catch(z){h0(m,p,z)}}},r_=j_.react_stack_bottom_frame.bind(j_),n_={react_stack_bottom_frame:function(m){var p=m.create;return m=m.inst,p=p(),m.destroy=p}},KH=n_.react_stack_bottom_frame.bind(n_),t_={react_stack_bottom_frame:function(m,p,w){try{w()}catch(z){h0(m,p,z)}}},HH=t_.react_stack_bottom_frame.bind(t_),s_={react_stack_bottom_frame:function(m){var p=m._init;return p(m._payload)}},WH=s_.react_stack_bottom_frame.bind(s_),a6=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`."),A$=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."),kp=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."),Ap={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.')}},k4=null,O7=!1,l6=null,L7=0,L0=null,S$,e_=S$=!1,mq={},pq={},wq={};C=function(m,p,w){if(w!==null&&typeof w==="object"&&w._store&&(!w._store.validated&&w.key==null||w._store.validated===2)){if(typeof w._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.");w._store.validated=1;var z=f(m),$=z||"null";if(!mq[$]){mq[$]=!0,w=w._owner,m=m._debugOwner;var J="";m&&typeof m.tag==="number"&&($=f(m))&&(J=`
|
|
204
|
+
|
|
205
|
+
Check the render method of \``+$+"`."),J||z&&(J=`
|
|
206
|
+
|
|
207
|
+
Check the top-level render call using <`+z+">.");var X="";w!=null&&m!==w&&(z=null,typeof w.tag==="number"?z=f(w):typeof w.name==="string"&&(z=w.name),z&&(X=" It was passed a child from "+z+".")),h(p,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.',J,X)})}}};var A4=jX(!0),zq=jX(!1),$q=0,Jq=1,Xq=2,h$=3,V2=!1,Yq=!1,o$=null,a$=!1,g6=J0(null),Sp=J0(0),v5=J0(null),V5=null,d6=1,N7=2,W1=J0(0),hp=0,i5=1,w5=2,P5=4,z5=8,x6,Zq=new Set,Gq=new Set,l$=new Set,_q=new Set,z2=0,H0=null,i0=null,L1=null,op=!1,u6=!1,S4=!1,ap=0,M7=0,$2=null,UH=0,RH=25,N=null,D5=null,J2=-1,F7=!1,y7={readContext:$1,use:y2,useCallback:B1,useContext:B1,useEffect:B1,useImperativeHandle:B1,useLayoutEffect:B1,useInsertionEffect:B1,useMemo:B1,useReducer:B1,useRef:B1,useState:B1,useDebugValue:B1,useDeferredValue:B1,useTransition:B1,useSyncExternalStore:B1,useId:B1,useHostTransitionStatus:B1,useFormState:B1,useActionState:B1,useOptimistic:B1,useMemoCache:B1,useCacheRefresh:B1};y7.useEffectEvent=B1;var g$=null,qq=null,d$=null,bq=null,Sm=null,$m=null,lp=null;g$={readContext:function(m){return $1(m)},use:y2,useCallback:function(m,p){return N="useCallback",y0(),$6(p),a9(m,p)},useContext:function(m){return N="useContext",y0(),$1(m)},useEffect:function(m,p){return N="useEffect",y0(),$6(p),T8(m,p)},useImperativeHandle:function(m,p,w){return N="useImperativeHandle",y0(),$6(w),o9(m,p,w)},useInsertionEffect:function(m,p){N="useInsertionEffect",y0(),$6(p),U4(4,w5,m,p)},useLayoutEffect:function(m,p){return N="useLayoutEffect",y0(),$6(p),h9(m,p)},useMemo:function(m,p){N="useMemo",y0(),$6(p);var w=M.H;M.H=Sm;try{return l9(m,p)}finally{M.H=w}},useReducer:function(m,p,w){N="useReducer",y0();var z=M.H;M.H=Sm;try{return C9(m,p,w)}finally{M.H=z}},useRef:function(m){return N="useRef",y0(),A9(m)},useState:function(m){N="useState",y0();var p=M.H;M.H=Sm;try{return f9(m)}finally{M.H=p}},useDebugValue:function(){N="useDebugValue",y0()},useDeferredValue:function(m,p){return N="useDeferredValue",y0(),g9(m,p)},useTransition:function(){return N="useTransition",y0(),u9()},useSyncExternalStore:function(m,p,w){return N="useSyncExternalStore",y0(),P9(m,p,w)},useId:function(){return N="useId",y0(),V9()},useFormState:function(m,p){return N="useFormState",y0(),C8(),X6(m,p)},useActionState:function(m,p){return N="useActionState",y0(),X6(m,p)},useOptimistic:function(m){return N="useOptimistic",y0(),T9(m)},useHostTransitionStatus:R4,useMemoCache:W4,useCacheRefresh:function(){return N="useCacheRefresh",y0(),i9()},useEffectEvent:function(m){return N="useEffectEvent",y0(),S9(m)}},qq={readContext:function(m){return $1(m)},use:y2,useCallback:function(m,p){return N="useCallback",A(),a9(m,p)},useContext:function(m){return N="useContext",A(),$1(m)},useEffect:function(m,p){return N="useEffect",A(),T8(m,p)},useImperativeHandle:function(m,p,w){return N="useImperativeHandle",A(),o9(m,p,w)},useInsertionEffect:function(m,p){N="useInsertionEffect",A(),U4(4,w5,m,p)},useLayoutEffect:function(m,p){return N="useLayoutEffect",A(),h9(m,p)},useMemo:function(m,p){N="useMemo",A();var w=M.H;M.H=Sm;try{return l9(m,p)}finally{M.H=w}},useReducer:function(m,p,w){N="useReducer",A();var z=M.H;M.H=Sm;try{return C9(m,p,w)}finally{M.H=z}},useRef:function(m){return N="useRef",A(),A9(m)},useState:function(m){N="useState",A();var p=M.H;M.H=Sm;try{return f9(m)}finally{M.H=p}},useDebugValue:function(){N="useDebugValue",A()},useDeferredValue:function(m,p){return N="useDeferredValue",A(),g9(m,p)},useTransition:function(){return N="useTransition",A(),u9()},useSyncExternalStore:function(m,p,w){return N="useSyncExternalStore",A(),P9(m,p,w)},useId:function(){return N="useId",A(),V9()},useActionState:function(m,p){return N="useActionState",A(),X6(m,p)},useFormState:function(m,p){return N="useFormState",A(),C8(),X6(m,p)},useOptimistic:function(m){return N="useOptimistic",A(),T9(m)},useHostTransitionStatus:R4,useMemoCache:W4,useCacheRefresh:function(){return N="useCacheRefresh",A(),i9()},useEffectEvent:function(m){return N="useEffectEvent",A(),S9(m)}},d$={readContext:function(m){return $1(m)},use:y2,useCallback:function(m,p){return N="useCallback",A(),S8(m,p)},useContext:function(m){return N="useContext",A(),$1(m)},useEffect:function(m,p){N="useEffect",A(),Y5(2048,z5,m,p)},useImperativeHandle:function(m,p,w){return N="useImperativeHandle",A(),A8(m,p,w)},useInsertionEffect:function(m,p){return N="useInsertionEffect",A(),Y5(4,w5,m,p)},useLayoutEffect:function(m,p){return N="useLayoutEffect",A(),Y5(4,P5,m,p)},useMemo:function(m,p){N="useMemo",A();var w=M.H;M.H=$m;try{return h8(m,p)}finally{M.H=w}},useReducer:function(m,p,w){N="useReducer",A();var z=M.H;M.H=$m;try{return J6(m,p,w)}finally{M.H=z}},useRef:function(){return N="useRef",A(),l0().memoizedState},useState:function(){N="useState",A();var m=M.H;M.H=$m;try{return J6(s5)}finally{M.H=m}},useDebugValue:function(){N="useDebugValue",A()},useDeferredValue:function(m,p){return N="useDeferredValue",A(),HY(m,p)},useTransition:function(){return N="useTransition",A(),NY()},useSyncExternalStore:function(m,p,w){return N="useSyncExternalStore",A(),P8(m,p,w)},useId:function(){return N="useId",A(),l0().memoizedState},useFormState:function(m){return N="useFormState",A(),C8(),I8(m)},useActionState:function(m){return N="useActionState",A(),I8(m)},useOptimistic:function(m,p){return N="useOptimistic",A(),XY(m,p)},useHostTransitionStatus:R4,useMemoCache:W4,useCacheRefresh:function(){return N="useCacheRefresh",A(),l0().memoizedState},useEffectEvent:function(m){return N="useEffectEvent",A(),k8(m)}},bq={readContext:function(m){return $1(m)},use:y2,useCallback:function(m,p){return N="useCallback",A(),S8(m,p)},useContext:function(m){return N="useContext",A(),$1(m)},useEffect:function(m,p){N="useEffect",A(),Y5(2048,z5,m,p)},useImperativeHandle:function(m,p,w){return N="useImperativeHandle",A(),A8(m,p,w)},useInsertionEffect:function(m,p){return N="useInsertionEffect",A(),Y5(4,w5,m,p)},useLayoutEffect:function(m,p){return N="useLayoutEffect",A(),Y5(4,P5,m,p)},useMemo:function(m,p){N="useMemo",A();var w=M.H;M.H=lp;try{return h8(m,p)}finally{M.H=w}},useReducer:function(m,p,w){N="useReducer",A();var z=M.H;M.H=lp;try{return f3(m,p,w)}finally{M.H=z}},useRef:function(){return N="useRef",A(),l0().memoizedState},useState:function(){N="useState",A();var m=M.H;M.H=lp;try{return f3(s5)}finally{M.H=m}},useDebugValue:function(){N="useDebugValue",A()},useDeferredValue:function(m,p){return N="useDeferredValue",A(),WY(m,p)},useTransition:function(){return N="useTransition",A(),MY()},useSyncExternalStore:function(m,p,w){return N="useSyncExternalStore",A(),P8(m,p,w)},useId:function(){return N="useId",A(),l0().memoizedState},useFormState:function(m){return N="useFormState",A(),C8(),f8(m)},useActionState:function(m){return N="useActionState",A(),f8(m)},useOptimistic:function(m,p){return N="useOptimistic",A(),ZY(m,p)},useHostTransitionStatus:R4,useMemoCache:W4,useCacheRefresh:function(){return N="useCacheRefresh",A(),l0().memoizedState},useEffectEvent:function(m){return N="useEffectEvent",A(),k8(m)}},Sm={readContext:function(m){return o(),$1(m)},use:function(m){return R(),y2(m)},useCallback:function(m,p){return N="useCallback",R(),y0(),a9(m,p)},useContext:function(m){return N="useContext",R(),y0(),$1(m)},useEffect:function(m,p){return N="useEffect",R(),y0(),T8(m,p)},useImperativeHandle:function(m,p,w){return N="useImperativeHandle",R(),y0(),o9(m,p,w)},useInsertionEffect:function(m,p){N="useInsertionEffect",R(),y0(),U4(4,w5,m,p)},useLayoutEffect:function(m,p){return N="useLayoutEffect",R(),y0(),h9(m,p)},useMemo:function(m,p){N="useMemo",R(),y0();var w=M.H;M.H=Sm;try{return l9(m,p)}finally{M.H=w}},useReducer:function(m,p,w){N="useReducer",R(),y0();var z=M.H;M.H=Sm;try{return C9(m,p,w)}finally{M.H=z}},useRef:function(m){return N="useRef",R(),y0(),A9(m)},useState:function(m){N="useState",R(),y0();var p=M.H;M.H=Sm;try{return f9(m)}finally{M.H=p}},useDebugValue:function(){N="useDebugValue",R(),y0()},useDeferredValue:function(m,p){return N="useDeferredValue",R(),y0(),g9(m,p)},useTransition:function(){return N="useTransition",R(),y0(),u9()},useSyncExternalStore:function(m,p,w){return N="useSyncExternalStore",R(),y0(),P9(m,p,w)},useId:function(){return N="useId",R(),y0(),V9()},useFormState:function(m,p){return N="useFormState",R(),y0(),X6(m,p)},useActionState:function(m,p){return N="useActionState",R(),y0(),X6(m,p)},useOptimistic:function(m){return N="useOptimistic",R(),y0(),T9(m)},useMemoCache:function(m){return R(),W4(m)},useHostTransitionStatus:R4,useCacheRefresh:function(){return N="useCacheRefresh",y0(),i9()},useEffectEvent:function(m){return N="useEffectEvent",R(),y0(),S9(m)}},$m={readContext:function(m){return o(),$1(m)},use:function(m){return R(),y2(m)},useCallback:function(m,p){return N="useCallback",R(),A(),S8(m,p)},useContext:function(m){return N="useContext",R(),A(),$1(m)},useEffect:function(m,p){N="useEffect",R(),A(),Y5(2048,z5,m,p)},useImperativeHandle:function(m,p,w){return N="useImperativeHandle",R(),A(),A8(m,p,w)},useInsertionEffect:function(m,p){return N="useInsertionEffect",R(),A(),Y5(4,w5,m,p)},useLayoutEffect:function(m,p){return N="useLayoutEffect",R(),A(),Y5(4,P5,m,p)},useMemo:function(m,p){N="useMemo",R(),A();var w=M.H;M.H=$m;try{return h8(m,p)}finally{M.H=w}},useReducer:function(m,p,w){N="useReducer",R(),A();var z=M.H;M.H=$m;try{return J6(m,p,w)}finally{M.H=z}},useRef:function(){return N="useRef",R(),A(),l0().memoizedState},useState:function(){N="useState",R(),A();var m=M.H;M.H=$m;try{return J6(s5)}finally{M.H=m}},useDebugValue:function(){N="useDebugValue",R(),A()},useDeferredValue:function(m,p){return N="useDeferredValue",R(),A(),HY(m,p)},useTransition:function(){return N="useTransition",R(),A(),NY()},useSyncExternalStore:function(m,p,w){return N="useSyncExternalStore",R(),A(),P8(m,p,w)},useId:function(){return N="useId",R(),A(),l0().memoizedState},useFormState:function(m){return N="useFormState",R(),A(),I8(m)},useActionState:function(m){return N="useActionState",R(),A(),I8(m)},useOptimistic:function(m,p){return N="useOptimistic",R(),A(),XY(m,p)},useMemoCache:function(m){return R(),W4(m)},useHostTransitionStatus:R4,useCacheRefresh:function(){return N="useCacheRefresh",A(),l0().memoizedState},useEffectEvent:function(m){return N="useEffectEvent",R(),A(),k8(m)}},lp={readContext:function(m){return o(),$1(m)},use:function(m){return R(),y2(m)},useCallback:function(m,p){return N="useCallback",R(),A(),S8(m,p)},useContext:function(m){return N="useContext",R(),A(),$1(m)},useEffect:function(m,p){N="useEffect",R(),A(),Y5(2048,z5,m,p)},useImperativeHandle:function(m,p,w){return N="useImperativeHandle",R(),A(),A8(m,p,w)},useInsertionEffect:function(m,p){return N="useInsertionEffect",R(),A(),Y5(4,w5,m,p)},useLayoutEffect:function(m,p){return N="useLayoutEffect",R(),A(),Y5(4,P5,m,p)},useMemo:function(m,p){N="useMemo",R(),A();var w=M.H;M.H=$m;try{return h8(m,p)}finally{M.H=w}},useReducer:function(m,p,w){N="useReducer",R(),A();var z=M.H;M.H=$m;try{return f3(m,p,w)}finally{M.H=z}},useRef:function(){return N="useRef",R(),A(),l0().memoizedState},useState:function(){N="useState",R(),A();var m=M.H;M.H=$m;try{return f3(s5)}finally{M.H=m}},useDebugValue:function(){N="useDebugValue",R(),A()},useDeferredValue:function(m,p){return N="useDeferredValue",R(),A(),WY(m,p)},useTransition:function(){return N="useTransition",R(),A(),MY()},useSyncExternalStore:function(m,p,w){return N="useSyncExternalStore",R(),A(),P8(m,p,w)},useId:function(){return N="useId",R(),A(),l0().memoizedState},useFormState:function(m){return N="useFormState",R(),A(),f8(m)},useActionState:function(m){return N="useActionState",R(),A(),f8(m)},useOptimistic:function(m,p){return N="useOptimistic",R(),A(),ZY(m,p)},useMemoCache:function(m){return R(),W4(m)},useHostTransitionStatus:R4,useCacheRefresh:function(){return N="useCacheRefresh",A(),l0().memoizedState},useEffectEvent:function(m){return N="useEffectEvent",R(),A(),k8(m)}};var Qq={},Bq=new Set,Kq=new Set,Hq=new Set,Wq=new Set,Uq=new Set,Rq=new Set,Oq=new Set,Lq=new Set,Nq=new Set,Mq=new Set;Object.freeze(Qq);var x$={enqueueSetState:function(m,p,w){m=m._reactInternals;var z=L5(m),$=L2(z);$.payload=p,w!==void 0&&w!==null&&(c9(w),$.callback=w),p=N2(m,$,z),p!==null&&(qm(z,"this.setState()",m),q1(p,m,z),C3(p,m,z))},enqueueReplaceState:function(m,p,w){m=m._reactInternals;var z=L5(m),$=L2(z);$.tag=Jq,$.payload=p,w!==void 0&&w!==null&&(c9(w),$.callback=w),p=N2(m,$,z),p!==null&&(qm(z,"this.replaceState()",m),q1(p,m,z),C3(p,m,z))},enqueueForceUpdate:function(m,p){m=m._reactInternals;var w=L5(m),z=L2(w);z.tag=Xq,p!==void 0&&p!==null&&(c9(p),z.callback=p),p=N2(m,z,w),p!==null&&(qm(w,"this.forceUpdate()",m),q1(p,m,w),C3(p,m,w))}},V6=null,u$=null,V$=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."),N1=!1,Fq={},yq={},Cq={},vq={},i6=!1,Pq={},gp={},i$={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Iq=!1,fq=null;fq=new Set;var X2=!1,M1=!1,D$=!1,Tq=typeof WeakSet==="function"?WeakSet:Set,l1=null,D6=null,c6=null,F1=null,_5=!1,Jm=null,I1=!1,C7=8192,OH={getCacheForType:function(m){var p=$1(R1),w=p.data.get(m);return w===void 0&&(w=m(),p.data.set(m,w)),w},cacheSignal:function(){return $1(R1).controller.signal},getOwner:function(){return F5}};if(typeof Symbol==="function"&&Symbol.for){var v7=Symbol.for;v7("selector.component"),v7("selector.has_pseudo_class"),v7("selector.role"),v7("selector.test_id"),v7("selector.text")}var LH=[],NH=typeof WeakMap==="function"?WeakMap:Map,g1=0,f1=2,I5=4,Y2=0,P7=1,h4=2,dp=3,i2=4,xp=6,kq=5,k0=g1,D0=null,F0=null,N0=0,q5=0,up=1,o4=2,I7=3,Aq=4,c$=5,f7=6,Vp=7,E$=8,a4=9,g0=q5,f5=null,D2=!1,E6=!1,j$=!1,hm=0,G1=Y2,c2=0,E2=0,r$=0,b5=0,l4=0,T7=null,$5=null,ip=!1,Dp=0,Sq=0,hq=300,cp=1/0,oq=500,k7=null,K1=null,j2=null,Ep=0,n$=1,t$=2,aq=3,r2=0,lq=1,gq=2,dq=3,xq=4,jp=5,y1=0,n2=null,j6=null,Xm=0,s$=0,e$=-0,mJ=null,uq=null,Vq=null,Ym=Ep,iq=null,MH=50,A7=0,pJ=null,wJ=!1,rp=!1,FH=50,g4=0,S7=null,r6=!1,np=null,Dq=!1,cq=new Set,yH={},tp=null,n6=null,zJ=!1,$J=!1,sp=!1,JJ=!1,t2=0,XJ={};(function(){for(var m=0;m<W$.length;m++){var p=W$[m],w=p.toLowerCase();p=p[0].toUpperCase()+p.slice(1),t5(w,"on"+p)}t5(N_,"onAnimationEnd"),t5(M_,"onAnimationIteration"),t5(F_,"onAnimationStart"),t5("dblclick","onDoubleClick"),t5("focusin","onFocus"),t5("focusout","onBlur"),t5(pH,"onTransitionRun"),t5(wH,"onTransitionStart"),t5(zH,"onTransitionCancel"),t5(y_,"onTransitionEnd")})(),t4("onMouseEnter",["mouseout","mouseover"]),t4("onMouseLeave",["mouseout","mouseover"]),t4("onPointerEnter",["pointerout","pointerover"]),t4("onPointerLeave",["pointerout","pointerover"]),Y4("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Y4("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Y4("onBeforeInput",["compositionend","keypress","textInput","paste"]),Y4("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Y4("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Y4("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var h7="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(" "),YJ=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(h7)),ep="_reactListening"+Math.random().toString(36).slice(2),Eq=!1,jq=!1,mw=!1,rq=!1,pw=!1,ww=!1,nq=!1,zw={},CH=/\r\n?/g,vH=/\u0000|\uFFFD/g,d4="http://www.w3.org/1999/xlink",ZJ="http://www.w3.org/XML/1998/namespace",PH="javascript:throw new Error('React form unexpectedly submitted.')",IH="suppressHydrationWarning",x4="&",$w="/&",o7="$",a7="/$",s2="$?",u4="$~",t6="$!",fH="html",TH="body",kH="head",GJ="F!",tq="F",sq="loading",AH="style",Z2=0,s6=1,Jw=2,_J=null,qJ=null,eq={dialog:!0,webview:!0},bJ=null,l7=void 0,mb=typeof setTimeout==="function"?setTimeout:void 0,SH=typeof clearTimeout==="function"?clearTimeout:void 0,V4=-1,pb=typeof Promise==="function"?Promise:void 0,hH=typeof queueMicrotask==="function"?queueMicrotask:typeof pb<"u"?function(m){return pb.resolve(null).then(m).catch(RB)}:mb,QJ=null,i4=0,g7=1,wb=2,zb=3,c5=4,E5=new Map,$b=new Set,G2=o0.d;o0.d={f:function(){var m=G2.f(),p=q6();return m||p},r:function(m){var p=H2(m);p!==null&&p.tag===5&&p.type==="form"?LY(p):G2.r(m)},D:function(m){G2.D(m),BG("dns-prefetch",m,null)},C:function(m,p){G2.C(m,p),BG("preconnect",m,p)},L:function(m,p,w){G2.L(m,p,w);var z=e6;if(z&&m&&p){var $='link[rel="preload"][as="'+S5(p)+'"]';p==="image"?w&&w.imageSrcSet?($+='[imagesrcset="'+S5(w.imageSrcSet)+'"]',typeof w.imageSizes==="string"&&($+='[imagesizes="'+S5(w.imageSizes)+'"]')):$+='[href="'+S5(m)+'"]':$+='[href="'+S5(m)+'"]';var J=$;switch(p){case"style":J=B6(m);break;case"script":J=K6(m)}E5.has(J)||(m=C0({rel:"preload",href:p==="image"&&w&&w.imageSrcSet?void 0:m,as:p},w),E5.set(J,m),z.querySelector($)!==null||p==="style"&&z.querySelector(D3(J))||p==="script"&&z.querySelector(c3(J))||(p=z.createElement("link"),u1(p,"link",m),S1(p),z.head.appendChild(p)))}},m:function(m,p){G2.m(m,p);var w=e6;if(w&&m){var z=p&&typeof p.as==="string"?p.as:"script",$='link[rel="modulepreload"][as="'+S5(z)+'"][href="'+S5(m)+'"]',J=$;switch(z){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":J=K6(m)}if(!E5.has(J)&&(m=C0({rel:"modulepreload",href:m},p),E5.set(J,m),w.querySelector($)===null)){switch(z){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(w.querySelector(c3(J)))return}z=w.createElement("link"),u1(z,"link",m),S1(z),w.head.appendChild(z)}}},X:function(m,p){G2.X(m,p);var w=e6;if(w&&m){var z=n4(w).hoistableScripts,$=K6(m),J=z.get($);J||(J=w.querySelector(c3($)),J||(m=C0({src:m,async:!0},p),(p=E5.get($))&&oz(m,p),J=w.createElement("script"),S1(J),u1(J,"link",m),w.head.appendChild(J)),J={type:"script",instance:J,count:1,state:null},z.set($,J))}},S:function(m,p,w){G2.S(m,p,w);var z=e6;if(z&&m){var $=n4(z).hoistableStyles,J=B6(m);p=p||"default";var X=$.get(J);if(!X){var Y={loading:i4,preload:null};if(X=z.querySelector(D3(J)))Y.loading=g7|c5;else{m=C0({rel:"stylesheet",href:m,"data-precedence":p},w),(w=E5.get(J))&&hz(m,w);var Z=X=z.createElement("link");S1(Z),u1(Z,"link",m),Z._p=new Promise(function(G,H){Z.onload=G,Z.onerror=H}),Z.addEventListener("load",function(){Y.loading|=g7}),Z.addEventListener("error",function(){Y.loading|=wb}),Y.loading|=c5,mp(X,p,z)}X={type:"stylesheet",instance:X,count:1,state:Y},$.set(J,X)}}},M:function(m,p){G2.M(m,p);var w=e6;if(w&&m){var z=n4(w).hoistableScripts,$=K6(m),J=z.get($);J||(J=w.querySelector(c3($)),J||(m=C0({src:m,async:!0,type:"module"},p),(p=E5.get($))&&oz(m,p),J=w.createElement("script"),S1(J),u1(J,"link",m),w.head.appendChild(J)),J={type:"script",instance:J,count:1,state:null},z.set($,J))}}};var e6=typeof document>"u"?null:document,Xw=null,oH=60000,aH=800,lH=500,BJ=0,KJ=null,Yw=null,D4=eB,d7={$$typeof:ym,Provider:null,Consumer:null,_currentValue:D4,_currentValue2:D4,_threadCount:0},Jb="%c%s%c",Xb="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",Yb="",Zw=" ",gH=Function.prototype.bind,Zb=!1,Gb=null,_b=null,qb=null,bb=null,Qb=null,Bb=null,Kb=null,Hb=null,Wb=null,Ub=null;Gb=function(m,p,w,z){p=_(m,p),p!==null&&(w=U(p.memoizedState,w,0,z),p.memoizedState=w,p.baseState=w,m.memoizedProps=C0({},m.memoizedProps),w=c1(m,2),w!==null&&q1(w,m,2))},_b=function(m,p,w){p=_(m,p),p!==null&&(w=S(p.memoizedState,w,0),p.memoizedState=w,p.baseState=w,m.memoizedProps=C0({},m.memoizedProps),w=c1(m,2),w!==null&&q1(w,m,2))},qb=function(m,p,w,z){p=_(m,p),p!==null&&(w=L(p.memoizedState,w,z),p.memoizedState=w,p.baseState=w,m.memoizedProps=C0({},m.memoizedProps),w=c1(m,2),w!==null&&q1(w,m,2))},bb=function(m,p,w){m.pendingProps=U(m.memoizedProps,p,0,w),m.alternate&&(m.alternate.pendingProps=m.pendingProps),p=c1(m,2),p!==null&&q1(p,m,2)},Qb=function(m,p){m.pendingProps=S(m.memoizedProps,p,0),m.alternate&&(m.alternate.pendingProps=m.pendingProps),p=c1(m,2),p!==null&&q1(p,m,2)},Bb=function(m,p,w){m.pendingProps=L(m.memoizedProps,p,w),m.alternate&&(m.alternate.pendingProps=m.pendingProps),p=c1(m,2),p!==null&&q1(p,m,2)},Kb=function(m){var p=c1(m,2);p!==null&&q1(p,m,2)},Hb=function(m){var p=kw(),w=c1(m,p);w!==null&&q1(w,m,p)},Wb=function(m){F=m},Ub=function(m){k=m};var Gw=!0,_w=null,HJ=!1,e2=null,m4=null,p4=null,x7=new Map,u7=new Map,w4=[],dH="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(" "),qw=null;if(Jp.prototype.render=uz.prototype.render=function(m){var p=this._internalRoot;if(p===null)throw Error("Cannot update an unmounted root.");var w=arguments;typeof w[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()."):t(w[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 w[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),w=m;var z=p.current,$=L5(z);az(z,$,w,p,null,null)},Jp.prototype.unmount=uz.prototype.unmount=function(){var m=arguments;if(typeof m[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()."),m=this._internalRoot,m!==null){this._internalRoot=null;var p=m.containerInfo;(k0&(f1|I5))!==g1&&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."),az(m.current,2,null,m,null,null),q6(),p[k2]=null}},Jp.prototype.unstable_scheduleHydration=function(m){if(m){var p=SJ();m={blockedOn:null,target:m,priority:p};for(var w=0;w<w4.length&&p!==0&&p<w4[w].priority;w++);w4.splice(w,0,m),w===0&&PG(m)}},function(){var m=m3.version;if(m!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
208
|
+
- react: `+(m+`
|
|
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"),o0.findDOMNode=function(m){var p=m._reactInternals;if(p===void 0){if(typeof m.render==="function")throw Error("Unable to find node on an unmounted component.");throw m=Object.keys(m).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+m)}return m=u0(p),m=m!==null?n(m):null,m=m===null?null:m.stateNode,m},!function(){var m={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};return m.overrideHookState=Gb,m.overrideHookStateDeletePath=_b,m.overrideHookStateRenamePath=qb,m.overrideProps=bb,m.overridePropsDeletePath=Qb,m.overridePropsRenamePath=Bb,m.scheduleUpdate=Kb,m.scheduleRetry=Hb,m.setErrorHandler=Wb,m.setSuspenseHandler=Ub,m.scheduleRefresh=g,m.scheduleRoot=j,m.setRefreshHandler=d,m.getCurrentFiber=DB,$Q(m)}()&&fm&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Rb=window.location.protocol;/^(https?|file):$/.test(Rb)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Rb==="file:"?`
|
|
211
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}iH.createRoot=function(m,p){if(!t(m))throw Error("Target container is not a DOM element.");kG(m);var w=!1,z="",$=IY,J=fY,X=TY;return p!==null&&p!==void 0&&(p.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof p==="object"&&p!==null&&p.$$typeof===Fm&&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 />);`),p.unstable_strictMode===!0&&(w=!0),p.identifierPrefix!==void 0&&(z=p.identifierPrefix),p.onUncaughtError!==void 0&&($=p.onUncaughtError),p.onCaughtError!==void 0&&(J=p.onCaughtError),p.onRecoverableError!==void 0&&(X=p.onRecoverableError)),p=LG(m,1,!1,null,null,w,z,null,$,J,X,TG),m[k2]=p.current,Mz(m),new uz(p)},iH.hydrateRoot=function(m,p,w){if(!t(m))throw Error("Target container is not a DOM element.");kG(m),p===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var z=!1,$="",J=IY,X=fY,Y=TY,Z=null;return w!==null&&w!==void 0&&(w.unstable_strictMode===!0&&(z=!0),w.identifierPrefix!==void 0&&($=w.identifierPrefix),w.onUncaughtError!==void 0&&(J=w.onUncaughtError),w.onCaughtError!==void 0&&(X=w.onCaughtError),w.onRecoverableError!==void 0&&(Y=w.onRecoverableError),w.formState!==void 0&&(Z=w.formState)),p=LG(m,1,!0,p,w!=null?w:null,z,$,Z,J,X,Y,TG),p.context=NG(null),w=p.current,z=L5(w),z=Sw(z),$=L2(z),$.callback=null,N2(w,$,z),qm(z,"hydrateRoot()",null),w=z,p.current.lanes=w,q3(p,w),Nm(p),m[k2]=p.current,Mz(m),new Jp(p)},iH.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var Mb=WJ((pU,Nb)=>{var DH=U0(Lb());Nb.exports=DH});var t0=U0(r1(),1),zQ=U0(Mb(),1);var RJ={memory:!0,tasks:!1,vision:!0,operator:!1,mcp:!1,realtime:!1,files:!1,agents:!1,builtinTools:{webSearch:!1,webFetch:!1}};function V7(_){let U=_.operator;if(typeof U==="boolean")return{enabled:U};return U}function p3(_,U){let L=_.agents;if(typeof L==="boolean")return{enabled:L,mode:"worker",group:U||void 0};return{...L,group:L.group||U||void 0}}var z4=U0(r1(),1);function OJ(_,U){let{accessToken:L}=H1(),[P,S]=z4.useState([]),[k,F]=z4.useState(!0),R=z4.useCallback(()=>{let d={"Content-Type":"application/json"};if(L)d.Authorization=`Bearer ${L}`;return d},[L]),o=z4.useCallback(async()=>{let d="/api/agents";if(U!==void 0&&U!==null)d+=`?project_id=${encodeURIComponent(U)}`;let w0=await(await fetch(d,{headers:R()})).json();S(w0.agents||[]),F(!1)},[R,U]),D=bw();z4.useEffect(()=>{if(_)o()},[_,D,o]);let C=async(d)=>{await fetch("/api/agents",{method:"POST",headers:R(),body:JSON.stringify(d)}),await o()},i=async(d)=>{await fetch(`/api/agents/${d}`,{method:"DELETE",headers:R()}),await o()},x=async(d,t)=>{let w0=await fetch(`/api/agents/${d}`,{method:"PUT",headers:R(),body:JSON.stringify(t)}),$0=await w0.json();if(await o(),!w0.ok&&$0.error)return{error:$0.error};return{}},j=async(d)=>{let t=d.status==="running"?"stop":"start";S(($0)=>$0.map((l)=>l.id===d.id?{...l,status:t==="start"?"starting":"stopping"}:l));let w0=await fetch(`/api/agents/${d.id}/${t}`,{method:"POST",headers:R()});if(!w0.ok){let $0=await w0.json();return S((l)=>l.map((p0)=>p0.id===d.id?{...p0,status:d.status}:p0)),{error:$0.error}}return{}},g=P.filter((d)=>d.status==="running").length;return{agents:P,loading:k,runningCount:g,fetchAgents:o,createAgent:C,updateAgent:x,deleteAgent:i,toggleAgent:j}}var E4=U0(r1(),1);function LJ(_){let{accessToken:U}=H1(),[L,P]=E4.useState([]),S=E4.useCallback(()=>{let D={"Content-Type":"application/json"};if(U)D.Authorization=`Bearer ${U}`;return D},[U]),k=E4.useCallback(async()=>{let C=await(await fetch("/api/providers",{headers:S()})).json();P(C.providers||[])},[S]);E4.useEffect(()=>{if(_)k()},[_,k]);let F=L.filter((D)=>D.hasKey);return{providers:L,configuredProviders:F,fetchProviders:k,saveKey:async(D,C)=>{let x=await(await fetch(`/api/keys/${D}/test`,{method:"POST",headers:S(),body:JSON.stringify({key:C})})).json();if(!x.valid)return{success:!1,error:x.error||"API key is invalid"};let j=await fetch(`/api/keys/${D}`,{method:"POST",headers:S(),body:JSON.stringify({key:C})});if(!j.ok)return{success:!1,error:(await j.json()).error||"Failed to save key"};return await k(),{success:!0}},deleteKey:async(D)=>{await fetch(`/api/keys/${D}`,{method:"DELETE",headers:S()}),await k()}}}var Fb=U0(r1(),1);function NJ(){let{authFetch:_,onboardingComplete:U,setOnboardingComplete:L}=H1(),P=Fb.useCallback(async()=>{await _("/api/onboarding/complete",{method:"POST"}),L(!0)},[_,L]);return{isComplete:U,setIsComplete:L,complete:P}}var D1=U0(r1(),1);var T5=U0(r1(),1);var x0=U0(w1(),1),Cb=T5.createContext(null);function vb(){return T5.useContext(Cb)}function Pb({children:_}){let{authFetch:U,isAuthenticated:L,isLoading:P}=H1(),[S,k]=T5.useState(null),[F,R]=T5.useState(!1),[o,D]=T5.useState(!1),[C,i]=T5.useState(null),x=async()=>{try{let l=await(await U("/api/meta-agent/status")).json();k(l)}catch($0){console.error("[MetaAgent] Failed to fetch status:",$0)}};T5.useEffect(()=>{if(!P&&L)x()},[U,L,P]);let j=async()=>{D(!0),i(null);try{let $0=await U("/api/meta-agent/start",{method:"POST"}),l=await $0.json();if(!$0.ok)i(l.error||"Failed to start assistant");else await x()}catch($0){i("Failed to start assistant")}D(!1)},g=!!(S?.enabled&&S?.available),d=S?.agent,t=!!(d?.status==="running"&&d?.port),w0={status:S,isOpen:F,isStarting:o,error:C,isAvailable:g,isRunning:t,agent:d,toggle:()=>R(!F),close:()=>R(!1),startAgent:j};return x0.jsxDEV(Cb.Provider,{value:w0,children:_},void 0,!1,void 0,this)}function Ib(){let _=vb();if(!_?.isAvailable)return null;return x0.jsxDEV("button",{onClick:_.toggle,className:`hidden md:flex items-center gap-2 px-3 py-2 rounded transition ${_.isOpen?"bg-[#f97316] text-white":"bg-[#151515] hover:bg-[#1a1a1a] text-[#888] hover:text-white"}`,title:"Apteva Assistant",children:[x0.jsxDEV(Tb,{className:"w-5 h-5"},void 0,!1,void 0,this),x0.jsxDEV("span",{className:"text-sm",children:"Assistant"},void 0,!1,void 0,this),_.isRunning&&x0.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 fb(){let _=vb(),{currentProjectId:U,currentProject:L}=J5(),P=yb();if(!_?.isAvailable||!_.isOpen)return null;let{agent:S,isRunning:k,error:F,isStarting:R,startAgent:o,close:D}=_,C=T5.useMemo(()=>{let i=[];if(L)i.push(`Current project: "${L.name}" (id: ${L.id})`);else if(U==="unassigned")i.push("Viewing: unassigned agents (no project)");else i.push("Viewing: All Projects");return i.join(`
|
|
215
|
+
`)},[U,L]);return x0.jsxDEV(x0.Fragment,{children:[x0.jsxDEV("div",{className:"hidden md:block fixed inset-0 bg-black/20 z-40",onClick:D},void 0,!1,void 0,this),x0.jsxDEV("div",{className:"hidden md:flex fixed top-0 right-0 h-full w-[480px] lg:w-[540px] bg-[#0a0a0a] border-l border-[#1a1a1a] shadow-2xl z-50 flex-col",children:[x0.jsxDEV("div",{className:"flex items-center justify-between px-4 py-3 border-b border-[#1a1a1a] bg-[#111]",children:[x0.jsxDEV("div",{className:"flex items-center gap-2",children:[x0.jsxDEV("div",{className:`w-2 h-2 rounded-full ${k?"bg-green-400":"bg-[#444]"}`},void 0,!1,void 0,this),x0.jsxDEV("span",{className:"font-medium text-sm",children:"Apteva Assistant"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x0.jsxDEV("button",{onClick:D,className:"text-[#666] hover:text-[#888] transition",children:x0.jsxDEV(cH,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x0.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col",children:k?x0.jsxDEV(i7,{agentId:"default",apiUrl:`/api/agents/${S.id}`,placeholder:"Ask me anything about Apteva...",variant:"terminal",showHeader:!1,context:C,onToolResult:P},void 0,!1,void 0,this):x0.jsxDEV("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center",children:[x0.jsxDEV(Tb,{className:"w-12 h-12 text-[#333] mb-4"},void 0,!1,void 0,this),x0.jsxDEV("h3",{className:"font-medium mb-2",children:"Apteva Assistant"},void 0,!1,void 0,this),x0.jsxDEV("p",{className:"text-sm text-[#666] mb-6",children:"I can help you navigate Apteva, create agents, set up MCP servers, and more."},void 0,!1,void 0,this),F&&x0.jsxDEV("p",{className:"text-sm text-red-400 mb-4",children:F},void 0,!1,void 0,this),x0.jsxDEV("button",{onClick:o,disabled:R,className:"bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 text-white px-6 py-2 rounded font-medium transition",children:R?"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 Tb({className:_="w-6 h-6"}){return x0.jsxDEV("svg",{className:_,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x0.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 cH(){return x0.jsxDEV("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:x0.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 q0=U0(w1(),1);function Qw({onMenuClick:_,agents:U=[]}){let{connected:L}=D7(),P=Ab(),{projects:S,currentProjectId:k,currentProject:F,setCurrentProjectId:R,unassignedCount:o,projectsEnabled:D}=J5(),[C,i]=D1.useState(!1),[x,j]=D1.useState(!1),[g,d]=D1.useState(0),[t,w0]=D1.useState([]),$0=kb(),{events:l}=D7(),{accessToken:p0}=H1(),u0=D1.useRef(!1),n=D1.default.useMemo(()=>{let I={};for(let b0 of U)I[b0.id]=b0.name;return I},[U]),M0=D1.default.useMemo(()=>{if(!D||k===null)return null;if(k==="unassigned")return new Set(U.filter((I)=>!I.projectId).map((I)=>I.id));return new Set(U.filter((I)=>I.projectId===k).map((I)=>I.id))},[U,k,D]);D1.useEffect(()=>{if(u0.current||!p0)return;u0.current=!0,fetch("/api/notifications/count",{headers:{Authorization:`Bearer ${p0}`}}).then((I)=>I.json()).then((I)=>d(I.count||0)).catch(()=>{})},[p0]),D1.useEffect(()=>{if($0===0)return;let I=l.find((b0)=>b0.level==="error"||b0.category==="ERROR"||b0.category==="system"&&b0.type==="agent_stopped");if(I&&(!M0||M0.has(I.agent_id)))d((b0)=>b0+1)},[$0]);let G0=D1.useRef(k);D1.useEffect(()=>{if(G0.current===k)return;if(G0.current=k,!p0)return;fetch("/api/notifications/count",{headers:{Authorization:`Bearer ${p0}`}}).then((I)=>I.json()).then((I)=>{if(!M0)d(I.count||0);else fetch("/api/notifications?limit=200",{headers:{Authorization:`Bearer ${p0}`}}).then((b0)=>b0.json()).then((b0)=>{let a=(b0.notifications||[]).filter((u)=>!u.seen&&M0.has(u.agent_id));d(a.length)}).catch(()=>{})}).catch(()=>{})},[k,p0,M0]);let _1=D1.useCallback(async()=>{if(j((I)=>!I),!x)try{let I={"Content-Type":"application/json"};if(p0)I.Authorization=`Bearer ${p0}`;let u=(await(await fetch("/api/notifications?limit=50",{headers:I})).json()).notifications||[];if(M0)u=u.filter((z0)=>M0.has(z0.agent_id));if(w0(u),g>0)await fetch("/api/notifications/mark-seen",{method:"POST",headers:I,body:JSON.stringify({all:!0})}),d(0)}catch{}},[x,g,p0,M0]),f=(I)=>{R(I),i(!1)},J0=()=>{if(k===null)return"All Projects";if(k==="unassigned")return"Unassigned";return F?.name||"Select Project"},T=()=>{if(k===null)return"#666";if(k==="unassigned")return"#888";return F?.color||"#6366f1"};return q0.jsxDEV("header",{className:"border-b border-[#1a1a1a] px-4 md:px-6 py-4 flex-shrink-0",children:q0.jsxDEV("div",{className:"flex items-center justify-between",children:[q0.jsxDEV("div",{className:"flex items-center gap-3",children:[q0.jsxDEV("button",{onClick:_,className:"p-2 -ml-2 text-[#666] hover:text-[#e0e0e0] transition md:hidden",children:q0.jsxDEV(Sb,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),q0.jsxDEV("div",{className:"flex items-center gap-2",children:[q0.jsxDEV("span",{className:"text-[#f97316]",children:">_"},void 0,!1,void 0,this),q0.jsxDEV("span",{className:"text-xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D&&S.length>0&&q0.jsxDEV("div",{className:"relative ml-2 md:ml-4",children:[q0.jsxDEV("button",{onClick:()=>i(!C),className:"flex items-center gap-2 px-3 py-1.5 rounded border border-[#222] bg-[#111] hover:bg-[#1a1a1a] transition text-sm",children:[q0.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:T()}},void 0,!1,void 0,this),q0.jsxDEV("span",{className:"hidden sm:inline max-w-[120px] md:max-w-[180px] truncate",children:J0()},void 0,!1,void 0,this),q0.jsxDEV(hb,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C&&q0.jsxDEV("div",{className:"absolute left-0 top-full mt-1 w-56 bg-[#111] border border-[#222] rounded-lg shadow-xl z-50",children:q0.jsxDEV("div",{className:"py-1 max-h-64 overflow-y-auto",children:[q0.jsxDEV("button",{onClick:()=>f(null),className:`w-full px-4 py-2 text-left text-sm flex items-center gap-2 hover:bg-[#1a1a1a] transition ${k===null?"bg-[#1a1a1a] text-[#f97316]":""}`,children:[q0.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full bg-[#666]"},void 0,!1,void 0,this),"All Projects"]},void 0,!0,void 0,this),S.map((I)=>q0.jsxDEV("button",{onClick:()=>f(I.id),className:`w-full px-4 py-2 text-left text-sm flex items-center gap-2 hover:bg-[#1a1a1a] transition ${k===I.id?"bg-[#1a1a1a] text-[#f97316]":""}`,children:[q0.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{backgroundColor:I.color}},void 0,!1,void 0,this),q0.jsxDEV("span",{className:"truncate",children:I.name},void 0,!1,void 0,this),q0.jsxDEV("span",{className:"ml-auto text-xs text-[#666]",children:I.agentCount},void 0,!1,void 0,this)]},I.id,!0,void 0,this)),o>0&&q0.jsxDEV("button",{onClick:()=>f("unassigned"),className:`w-full px-4 py-2 text-left text-sm flex items-center gap-2 hover:bg-[#1a1a1a] transition ${k==="unassigned"?"bg-[#1a1a1a] text-[#f97316]":""}`,children:[q0.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full bg-[#888]"},void 0,!1,void 0,this),q0.jsxDEV("span",{className:"truncate",children:"Unassigned"},void 0,!1,void 0,this),q0.jsxDEV("span",{className:"ml-auto text-xs text-[#666]",children:o},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),q0.jsxDEV("div",{className:"flex items-center gap-3 md:gap-4",children:[q0.jsxDEV("div",{className:"flex items-center gap-2",children:[q0.jsxDEV("span",{className:`w-2 h-2 rounded-full ${L?"bg-green-400":"bg-red-400"}`},void 0,!1,void 0,this),q0.jsxDEV("span",{className:"text-xs text-[#666] hidden sm:inline",children:L?"Live":"Offline"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q0.jsxDEV("div",{className:"relative",children:[q0.jsxDEV("button",{onClick:_1,className:"relative p-2 text-[#666] hover:text-[#e0e0e0] transition rounded hover:bg-[#1a1a1a]",children:[q0.jsxDEV(ob,{className:"w-5 h-5"},void 0,!1,void 0,this),g>0&&q0.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:g>99?"99+":g},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x&&q0.jsxDEV(q0.Fragment,{children:[q0.jsxDEV("div",{className:"fixed inset-0 z-40",onClick:()=>j(!1)},void 0,!1,void 0,this),q0.jsxDEV("div",{className:"absolute right-0 top-full mt-1 w-80 bg-[#111] border border-[#222] rounded-lg shadow-xl z-50 max-h-96 overflow-y-auto",children:[q0.jsxDEV("div",{className:"px-4 py-3 border-b border-[#222] flex items-center justify-between",children:[q0.jsxDEV("span",{className:"text-sm font-medium",children:"Notifications"},void 0,!1,void 0,this),t.length>0&&q0.jsxDEV("span",{className:"text-xs text-[#666]",children:[t.length," recent"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),t.length===0?q0.jsxDEV("div",{className:"px-4 py-8 text-center text-sm text-[#666]",children:"No notifications"},void 0,!1,void 0,this):q0.jsxDEV("div",{className:"py-1",children:t.map((I)=>q0.jsxDEV("div",{className:`px-4 py-3 hover:bg-[#1a1a1a] transition border-b border-[#1a1a1a] ${!I.seen?"bg-[#0f0f0f]":""}`,children:[q0.jsxDEV("div",{className:"flex items-center gap-2 mb-1",children:[q0.jsxDEV("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${!I.seen?I.level==="error"||I.category==="ERROR"?"bg-red-400":"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),q0.jsxDEV("span",{className:`text-xs font-medium truncate ${!I.seen?"text-[#ccc]":"text-[#666]"}`,children:I.category==="system"&&I.type==="agent_stopped"?"Agent Stopped":I.category==="ERROR"?"Error":`${I.category} / ${I.type}`},void 0,!1,void 0,this),q0.jsxDEV("span",{className:"text-[10px] text-[#555] ml-auto flex-shrink-0",children:EH(I.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q0.jsxDEV("div",{className:`text-xs truncate ${!I.seen?"text-[#aaa]":"text-[#666]"}`,children:I.error||I.data?.message||I.data?.error||`${I.type} event`},void 0,!1,void 0,this),q0.jsxDEV("div",{className:"text-[10px] text-[#555] mt-1",children:n[I.agent_id]||I.agent_id.slice(0,8)},void 0,!1,void 0,this)]},I.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),q0.jsxDEV(Ib,{},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 EH(_){let U=Date.now()-new Date(_).getTime(),L=Math.floor(U/60000);if(L<1)return"just now";if(L<60)return`${L}m ago`;let P=Math.floor(L/60);if(P<24)return`${P}h ago`;return`${Math.floor(P/24)}d ago`}var ub=U0(r1(),1);var B0=U0(w1(),1);function Hw({route:_,agentCount:U,taskCount:L,onNavigate:P,isOpen:S,onClose:k}){let{user:F,logout:R}=H1(),[o,D]=ub.useState(!1),C=(x)=>{P(x),k?.()},i=async()=>{await R(),D(!1)};return B0.jsxDEV(B0.Fragment,{children:[S&&B0.jsxDEV("div",{className:"fixed inset-0 bg-black/60 z-40 md:hidden",onClick:k},void 0,!1,void 0,this),B0.jsxDEV("aside",{className:`
|
|
216
|
+
fixed inset-y-0 left-0 z-50 w-64 bg-[#0a0a0a] border-r border-[#1a1a1a] 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
|
+
${S?"translate-x-0":"-translate-x-full"}
|
|
219
|
+
`,children:[B0.jsxDEV("div",{className:"flex items-center justify-between mb-4 md:hidden",children:[B0.jsxDEV("div",{className:"flex items-center gap-2",children:[B0.jsxDEV("span",{className:"text-[#f97316]",children:">_"},void 0,!1,void 0,this),B0.jsxDEV("span",{className:"text-lg tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B0.jsxDEV("button",{onClick:k,className:"p-2 text-[#666] hover:text-[#e0e0e0] transition",children:B0.jsxDEV(q2,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),B0.jsxDEV("nav",{className:"space-y-1 flex-1",children:[B0.jsxDEV(j5,{icon:B0.jsxDEV(MJ,{},void 0,!1,void 0,this),label:"Dashboard",active:_==="dashboard",onClick:()=>C("dashboard")},void 0,!1,void 0,this),B0.jsxDEV(j5,{icon:B0.jsxDEV(FJ,{},void 0,!1,void 0,this),label:"Agents",active:_==="agents",onClick:()=>C("agents"),badge:U>0?String(U):void 0},void 0,!1,void 0,this),B0.jsxDEV(j5,{icon:B0.jsxDEV(xb,{},void 0,!1,void 0,this),label:"Threads",active:_==="threads",onClick:()=>C("threads")},void 0,!1,void 0,this),B0.jsxDEV(j5,{icon:B0.jsxDEV(Kw,{},void 0,!1,void 0,this),label:"Activity",active:_==="activity",onClick:()=>C("activity")},void 0,!1,void 0,this),B0.jsxDEV(j5,{icon:B0.jsxDEV(om,{},void 0,!1,void 0,this),label:"Tasks",active:_==="tasks",onClick:()=>C("tasks"),badge:L&&L>0?String(L):void 0},void 0,!1,void 0,this),B0.jsxDEV(j5,{icon:B0.jsxDEV(b2,{},void 0,!1,void 0,this),label:"MCP",active:_==="mcp",onClick:()=>C("mcp")},void 0,!1,void 0,this),B0.jsxDEV(j5,{icon:B0.jsxDEV(Bw,{},void 0,!1,void 0,this),label:"Skills",active:_==="skills",onClick:()=>C("skills")},void 0,!1,void 0,this),B0.jsxDEV(j5,{icon:B0.jsxDEV(db,{},void 0,!1,void 0,this),label:"Connections",active:_==="connections",onClick:()=>C("connections")},void 0,!1,void 0,this),B0.jsxDEV(j5,{icon:B0.jsxDEV(gb,{},void 0,!1,void 0,this),label:"Tests",active:_==="tests",onClick:()=>C("tests")},void 0,!1,void 0,this),B0.jsxDEV(j5,{icon:B0.jsxDEV(ab,{},void 0,!1,void 0,this),label:"Telemetry",active:_==="telemetry",onClick:()=>C("telemetry")},void 0,!1,void 0,this),B0.jsxDEV(j5,{icon:B0.jsxDEV(lb,{},void 0,!1,void 0,this),label:"API",active:_==="api",onClick:()=>C("api")},void 0,!1,void 0,this),B0.jsxDEV(j5,{icon:B0.jsxDEV(yJ,{},void 0,!1,void 0,this),label:"Settings",active:_==="settings",onClick:()=>C("settings")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F&&B0.jsxDEV("div",{className:"relative border-t border-[#1a1a1a] pt-3 mt-3",children:[B0.jsxDEV("button",{onClick:()=>D(!o),className:"w-full flex items-center gap-3 px-3 py-2 rounded hover:bg-[#111] transition",children:[B0.jsxDEV("div",{className:"w-8 h-8 rounded-full bg-[#f97316] flex items-center justify-center text-black font-medium text-sm flex-shrink-0",children:F.username.charAt(0).toUpperCase()},void 0,!1,void 0,this),B0.jsxDEV("div",{className:"flex-1 min-w-0 text-left",children:[B0.jsxDEV("p",{className:"text-sm font-medium truncate",children:F.username},void 0,!1,void 0,this),B0.jsxDEV("p",{className:"text-xs text-[#555]",children:F.role},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),o&&B0.jsxDEV(B0.Fragment,{children:[B0.jsxDEV("div",{className:"fixed inset-0 z-40",onClick:()=>D(!1)},void 0,!1,void 0,this),B0.jsxDEV("div",{className:"absolute left-3 bottom-full mb-1 w-48 bg-[#111] border border-[#222] rounded-lg shadow-xl z-50",children:B0.jsxDEV("button",{onClick:i,className:"w-full px-4 py-2.5 text-left text-sm text-red-400 hover:bg-[#1a1a1a] transition rounded-lg",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 j5({icon:_,label:U,active:L,onClick:P,badge:S}){return B0.jsxDEV("button",{onClick:P,className:`w-full flex items-center gap-3 px-3 py-2 rounded font-medium transition ${L?"bg-[#111] text-[#e0e0e0]":"text-[#666] hover:bg-[#111] hover:text-[#888]"}`,children:[_,U,S&&B0.jsxDEV("span",{className:"ml-auto bg-[#333] text-[#888] text-xs px-2 py-0.5 rounded-full",children:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var c7=U0(w1(),1);function Ww({message:_,onDismiss:U}){return c7.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:[c7.jsxDEV("span",{children:_},void 0,!1,void 0,this),c7.jsxDEV("button",{onClick:U,className:"hover:text-red-300",children:c7.jsxDEV(q2,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var E7=U0(r1(),1);var C1=U0(w1(),1);function Uw(){let{login:_}=H1(),[U,L]=E7.useState(""),[P,S]=E7.useState(""),[k,F]=E7.useState(null),[R,o]=E7.useState(!1);return C1.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex items-center justify-center p-8",children:C1.jsxDEV("div",{className:"w-full max-w-md",children:[C1.jsxDEV("div",{className:"text-center mb-8",children:[C1.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[C1.jsxDEV("span",{className:"text-[#f97316] text-3xl",children:">_"},void 0,!1,void 0,this),C1.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C1.jsxDEV("p",{className:"text-[#666]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C1.jsxDEV("div",{className:"bg-[#111] rounded-lg border border-[#1a1a1a] p-8",children:[C1.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome back"},void 0,!1,void 0,this),C1.jsxDEV("p",{className:"text-[#666] mb-6",children:"Sign in to continue to apteva"},void 0,!1,void 0,this),C1.jsxDEV("form",{onSubmit:async(C)=>{C.preventDefault(),F(null),o(!0);let i=await _(U,P);if(!i.success)F(i.error||"Login failed");o(!1)},className:"space-y-4",children:[C1.jsxDEV("div",{children:[C1.jsxDEV("label",{htmlFor:"username",className:"block text-sm text-[#888] mb-1",children:"Username"},void 0,!1,void 0,this),C1.jsxDEV("input",{id:"username",type:"text",value:U,onChange:(C)=>L(C.target.value),placeholder:"Enter your username",autoFocus:!0,required:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C1.jsxDEV("div",{children:[C1.jsxDEV("label",{htmlFor:"password",className:"block text-sm text-[#888] mb-1",children:"Password"},void 0,!1,void 0,this),C1.jsxDEV("input",{id:"password",type:"password",value:P,onChange:(C)=>S(C.target.value),placeholder:"Enter your password",required:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k&&C1.jsxDEV("div",{className:"p-3 bg-red-500/10 border border-red-500/30 rounded text-red-400 text-sm",children:k},void 0,!1,void 0,this),C1.jsxDEV("button",{type:"submit",disabled:R||!U||!P,className:"w-full bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:R?"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 $4=U0(r1(),1),r0=U0(w1(),1);function Rw({onComplete:_}){let[U,L]=$4.useState(""),[P,S]=$4.useState(""),[k,F]=$4.useState(""),[R,o]=$4.useState(""),[D,C]=$4.useState(!1),[i,x]=$4.useState(null),[j,g]=$4.useState(!1);return r0.jsxDEV(r0.Fragment,{children:[r0.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Create your account"},void 0,!1,void 0,this),r0.jsxDEV("p",{className:"text-[#666] mb-6",children:"Set up your admin account to get started with apteva."},void 0,!1,void 0,this),r0.jsxDEV("form",{onSubmit:async(t)=>{if(t.preventDefault(),x(null),P!==k){x("Passwords do not match");return}g(!0);try{let w0=await fetch("/api/onboarding/user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:U,password:P,...R&&{email:R}})}),$0=await w0.json();if(!w0.ok){x($0.error||"Failed to create account"),g(!1);return}let l=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({username:U,password:P})});if(!l.ok){x("Account created but login failed. Please try logging in."),g(!1);return}let p0=await l.json();if(p0.accessToken)sessionStorage.setItem("accessToken",p0.accessToken);_({username:U})}catch(w0){x("Failed to create account"),g(!1)}},className:"space-y-4",children:[r0.jsxDEV("div",{children:[r0.jsxDEV("label",{htmlFor:"username",className:"block text-sm text-[#888] mb-1",children:"Username"},void 0,!1,void 0,this),r0.jsxDEV("input",{id:"username",type:"text",value:U,onChange:(t)=>L(t.target.value),placeholder:"Choose a username",autoFocus:!0,required:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this),r0.jsxDEV("p",{className:"text-xs text-[#666] mt-1",children:"3-20 characters, letters, numbers, underscore"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{children:[r0.jsxDEV("label",{htmlFor:"password",className:"block text-sm text-[#888] mb-1",children:"Password"},void 0,!1,void 0,this),r0.jsxDEV("input",{id:"password",type:"password",value:P,onChange:(t)=>S(t.target.value),placeholder:"Enter a password",required:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this),r0.jsxDEV("p",{className:"text-xs text-[#666] mt-1",children:"Min 8 characters, uppercase, lowercase, number"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("div",{children:[r0.jsxDEV("label",{htmlFor:"confirmPassword",className:"block text-sm text-[#888] mb-1",children:"Confirm Password"},void 0,!1,void 0,this),r0.jsxDEV("input",{id:"confirmPassword",type:"password",value:k,onChange:(t)=>F(t.target.value),placeholder:"Confirm your password",required:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!D?r0.jsxDEV("button",{type:"button",onClick:()=>C(!0),className:"text-sm text-[#666] hover:text-[#888] transition",children:"+ Add email for password recovery (optional)"},void 0,!1,void 0,this):r0.jsxDEV("div",{children:[r0.jsxDEV("label",{htmlFor:"email",className:"block text-sm text-[#888] mb-1",children:["Email ",r0.jsxDEV("span",{className:"text-[#666]",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("input",{id:"email",type:"email",value:R,onChange:(t)=>o(t.target.value),placeholder:"For password recovery only",className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316]"},void 0,!1,void 0,this),r0.jsxDEV("p",{className:"text-xs text-[#666] mt-1",children:"Only used for password recovery, never shared"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i&&r0.jsxDEV("div",{className:"p-3 bg-red-500/10 border border-red-500/30 rounded text-red-400 text-sm",children:i},void 0,!1,void 0,this),r0.jsxDEV("button",{type:"submit",disabled:j||!U||!P||!k,className:"w-full bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:j?"Creating account...":"Create Account"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r0.jsxDEV("p",{className:"text-xs text-[#666] 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 r5=U0(r1(),1);var s=U0(w1(),1);function j7({onComplete:_,needsAccount:U=!1}){let[L,P]=r5.useState(U?0:1),[S,k]=r5.useState([]),[F,R]=r5.useState(null),[o,D]=r5.useState(""),[C,i]=r5.useState(!1),[x,j]=r5.useState(!1),[g,d]=r5.useState(null),[t,w0]=r5.useState(null),[$0,l]=r5.useState(!1),p0=()=>{let J0=sessionStorage.getItem("accessToken");return J0?{Authorization:`Bearer ${J0}`}:{}};r5.useEffect(()=>{if(U&&!$0&&L===0)return;fetch("/api/providers",{headers:p0()}).then((J0)=>J0.json()).then((J0)=>{let T=(J0.providers||[]).filter((I)=>I.type==="llm");k(T)})},[$0,L,U]);let u0=S.filter((J0)=>J0.hasKey),n=async()=>{if(!F||!o)return;i(!0),d(null),w0(null);try{j(!0);let T=await(await fetch(`/api/keys/${F}/test`,{method:"POST",headers:{"Content-Type":"application/json",...p0()},body:JSON.stringify({key:o})})).json();if(j(!1),!T.valid){d(T.error||"API key is invalid"),i(!1);return}let I=await fetch(`/api/keys/${F}`,{method:"POST",headers:{"Content-Type":"application/json",...p0()},body:JSON.stringify({key:o})}),b0=await I.json();if(!I.ok)d(b0.error||"Failed to save key");else{w0("API key saved successfully!"),D("");let u=await(await fetch("/api/providers",{headers:p0()})).json();k(u.providers||[]),R(null)}}catch(J0){d("Failed to save key")}i(!1)},M0=async()=>{try{let J0=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json",...p0()},body:JSON.stringify({name:"My Project",description:"Default project for organizing agents",color:"#f97316"})});if(J0.ok){let T=await J0.json();if(T.project?.id)localStorage.setItem("apteva_current_project",T.project.id)}}catch(J0){console.error("Failed to create default project:",J0)}await fetch("/api/onboarding/complete",{method:"POST",headers:p0()}),_()},G0=()=>{l(!0),P(1)},_1=U?3:2,f=U?L:L-1;return s.jsxDEV("div",{className:"min-h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex items-center justify-center p-8",children:s.jsxDEV("div",{className:"w-full max-w-2xl",children:[s.jsxDEV("div",{className:"text-center mb-8",children:[s.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[s.jsxDEV("span",{className:"text-[#f97316] text-3xl",children:">_"},void 0,!1,void 0,this),s.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s.jsxDEV("p",{className:"text-[#666]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-8",children:[U&&s.jsxDEV(s.Fragment,{children:[s.jsxDEV("div",{className:`w-3 h-3 rounded-full ${L>=0?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),s.jsxDEV("div",{className:`w-16 h-0.5 ${L>=1?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s.jsxDEV("div",{className:`w-3 h-3 rounded-full ${L>=1?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),s.jsxDEV("div",{className:`w-16 h-0.5 ${L>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this),s.jsxDEV("div",{className:`w-3 h-3 rounded-full ${L>=2?"bg-[#f97316]":"bg-[#333]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),s.jsxDEV("div",{className:"bg-[#111] rounded-lg border border-[#1a1a1a] p-8",children:[L===0&&U&&s.jsxDEV(Rw,{onComplete:G0},void 0,!1,void 0,this),L===1&&s.jsxDEV(jH,{providers:S,configuredProviders:u0,selectedProvider:F,apiKey:o,saving:C,testing:x,error:g,success:t,onSelectProvider:R,onApiKeyChange:D,onSaveKey:n,onContinue:()=>P(2)},void 0,!1,void 0,this),L===2&&s.jsxDEV(nH,{configuredProviders:u0,onAddMore:()=>P(1),onComplete:M0},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 jH({providers:_,configuredProviders:U,selectedProvider:L,apiKey:P,saving:S,testing:k,error:F,success:R,onSelectProvider:o,onApiKeyChange:D,onSaveKey:C,onContinue:i}){let x=_.find((j)=>j.id===L);if(L&&x)return s.jsxDEV(s.Fragment,{children:[s.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:["Add ",x.name," Key"]},void 0,!0,void 0,this),s.jsxDEV("p",{className:"text-[#666] mb-6",children:"Enter your API key below. It will be encrypted and stored locally."},void 0,!1,void 0,this),s.jsxDEV("div",{className:"mb-6",children:[s.jsxDEV("div",{className:"p-4 rounded border border-[#f97316] bg-[#f97316]/5 mb-4",children:s.jsxDEV("div",{className:"flex items-center justify-between",children:[s.jsxDEV("div",{children:[s.jsxDEV("p",{className:"font-medium",children:x.name},void 0,!1,void 0,this),s.jsxDEV("p",{className:"text-sm text-[#666]",children:[x.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),s.jsxDEV("a",{href:x.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),s.jsxDEV("div",{className:"space-y-3",children:[s.jsxDEV("input",{type:"password",value:P,onChange:(j)=>D(j.target.value),placeholder:"Enter your API key...",autoFocus:!0,className:"w-full bg-[#0a0a0a] border border-[#333] rounded px-4 py-3 focus:outline-none focus:border-[#f97316] text-lg"},void 0,!1,void 0,this),F&&s.jsxDEV("p",{className:"text-red-400 text-sm",children:F},void 0,!1,void 0,this),R&&s.jsxDEV("p",{className:"text-green-400 text-sm",children:R},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),s.jsxDEV("div",{className:"flex gap-3",children:[s.jsxDEV("button",{onClick:()=>{o(null),D("")},className:"flex-1 border border-[#333] hover:border-[#666] px-4 py-3 rounded font-medium transition",children:"Back"},void 0,!1,void 0,this),s.jsxDEV("button",{onClick:C,disabled:!P||S,className:"flex-1 bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:k?"Testing...":S?"Saving...":"Save API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return s.jsxDEV(s.Fragment,{children:[s.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome to apteva"},void 0,!1,void 0,this),s.jsxDEV("p",{className:"text-[#666] 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),s.jsxDEV("div",{className:"space-y-3 mb-6",children:_.map((j)=>s.jsxDEV(rH,{provider:j,selected:!1,onSelect:()=>!j.hasKey&&o(j.id)},j.id,!1,void 0,this))},void 0,!1,void 0,this),s.jsxDEV("button",{onClick:i,disabled:U.length===0,className:"w-full bg-[#222] hover:bg-[#333] disabled:opacity-50 disabled:cursor-not-allowed px-4 py-3 rounded font-medium transition",children:U.length===0?"Add at least one API key to continue":`Continue with ${U.length} provider${U.length>1?"s":""}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function rH({provider:_,selected:U,onSelect:L}){return s.jsxDEV("div",{onClick:L,className:`p-4 rounded border transition cursor-pointer ${_.hasKey?"border-green-500/30 bg-green-500/5":U?"border-[#f97316] bg-[#f97316]/5":"border-[#222] hover:border-[#333]"}`,children:s.jsxDEV("div",{className:"flex items-center justify-between",children:[s.jsxDEV("div",{children:[s.jsxDEV("p",{className:"font-medium",children:_.name},void 0,!1,void 0,this),s.jsxDEV("p",{className:"text-sm text-[#666]",children:[_.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_.hasKey?s.jsxDEV("span",{className:"text-green-400 text-sm flex items-center gap-1",children:[s.jsxDEV(Ow,{},void 0,!1,void 0,this),"Configured (",_.keyHint,")"]},void 0,!0,void 0,this):s.jsxDEV("a",{href:_.docsUrl,target:"_blank",rel:"noopener noreferrer",onClick:(P)=>P.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 nH({configuredProviders:_,onAddMore:U,onComplete:L}){return s.jsxDEV(s.Fragment,{children:[s.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"You're all set!"},void 0,!1,void 0,this),s.jsxDEV("p",{className:"text-[#666] mb-6",children:["You've configured ",_.length," provider",_.length>1?"s":"",". You can add more providers later in Settings."]},void 0,!0,void 0,this),s.jsxDEV("div",{className:"space-y-2 mb-6",children:_.map((P)=>s.jsxDEV("div",{className:"flex items-center gap-3 p-3 bg-[#0a0a0a] rounded",children:[s.jsxDEV(Ow,{className:"w-5 h-5 text-green-400"},void 0,!1,void 0,this),s.jsxDEV("span",{children:P.name},void 0,!1,void 0,this),s.jsxDEV("span",{className:"text-[#666] text-sm",children:["(",P.keyHint,")"]},void 0,!0,void 0,this)]},P.id,!0,void 0,this))},void 0,!1,void 0,this),s.jsxDEV("div",{className:"flex gap-3",children:[s.jsxDEV("button",{onClick:U,className:"flex-1 border border-[#333] hover:border-[#f97316] px-4 py-3 rounded font-medium transition",children:"Add More"},void 0,!1,void 0,this),s.jsxDEV("button",{onClick:L,className:"flex-1 bg-[#f97316] hover:bg-[#fb923c] 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 Vb=U0(r1(),1);var z1=U0(w1(),1),sH=[{key:"memory",icon:w3,label:"Memory"},{key:"tasks",icon:om,label:"Tasks"},{key:"files",icon:X3,label:"Files"},{key:"vision",icon:z3,label:"Vision"},{key:"operator",icon:$3,label:"Operator"},{key:"mcp",icon:b2,label:"MCP"},{key:"realtime",icon:J3,label:"Realtime"},{key:"agents",icon:Y3,label:"Multi-Agent"}],Nw=Vb.default.memo(function({agent:U,selected:L,onSelect:P,onToggle:S,showProject:k}){let F=sH.filter((g)=>U.features?.[g.key]),R=U.mcpServerDetails||[],o=U.skillDetails||[],{isActive:D,label:C}=Lw(U.id),{projects:i}=J5(),x=U.projectId?i.find((g)=>g.id===U.projectId):null,j=U.subscriptions||[];return z1.jsxDEV("div",{onClick:P,className:`bg-[#111] rounded p-5 border transition cursor-pointer flex flex-col h-full ${L?"border-[#f97316]":"border-[#1a1a1a] hover:border-[#333]"}`,children:[z1.jsxDEV("div",{className:"flex items-start justify-between mb-3",children:[z1.jsxDEV("div",{children:[z1.jsxDEV("h3",{className:"font-semibold text-lg",children:U.name},void 0,!1,void 0,this),z1.jsxDEV("p",{className:"text-sm text-[#666]",children:[U.provider," / ",U.model,U.port&&z1.jsxDEV("span",{className:"text-[#444]",children:[" · :",U.port]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),k&&x&&z1.jsxDEV("p",{className:"text-sm text-[#666] flex items-center gap-1.5 mt-1",children:[z1.jsxDEV("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:x.color}},void 0,!1,void 0,this),x.name]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),z1.jsxDEV(eH,{status:U.status,isActive:D&&U.status==="running",activityLabel:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.length>0&&z1.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:F.map(({key:g,icon:d,label:t})=>z1.jsxDEV("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded bg-[#f97316]/10 text-[#f97316]/70 text-xs",title:t,children:[z1.jsxDEV(d,{className:"w-3 h-3"},void 0,!1,void 0,this),t]},g,!0,void 0,this))},void 0,!1,void 0,this),R.length>0&&z1.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:R.map((g)=>{let d=g.type==="http"&&g.url||g.status==="running";return z1.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${d?"bg-green-500/10 text-green-400":"bg-[#222] text-[#666]"}`,title:`MCP: ${g.name} (${d?"available":g.status})`,children:[z1.jsxDEV(b2,{className:"w-3 h-3"},void 0,!1,void 0,this),g.name]},g.id,!0,void 0,this)})},void 0,!1,void 0,this),o.length>0&&z1.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:o.map((g)=>z1.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${g.enabled?"bg-purple-500/10 text-purple-400":"bg-[#222] text-[#666]"}`,title:`Skill: ${g.name} v${g.version}`,children:[z1.jsxDEV(Bw,{className:"w-3 h-3"},void 0,!1,void 0,this),g.name]},g.id,!0,void 0,this))},void 0,!1,void 0,this),j.length>0&&z1.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:j.map((g)=>z1.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${g.enabled?"bg-cyan-500/10 text-cyan-400":"bg-[#222] text-[#666]"}`,title:`Trigger: ${g.trigger_slug.replace(/_/g," ")}`,children:[z1.jsxDEV(Kw,{className:"w-3 h-3"},void 0,!1,void 0,this),g.trigger_slug.replace(/_/g," ")]},g.id,!0,void 0,this))},void 0,!1,void 0,this),z1.jsxDEV("p",{className:"text-sm text-[#666] line-clamp-2 mb-4 flex-1",children:U.systemPrompt},void 0,!1,void 0,this),z1.jsxDEV("button",{onClick:S,disabled:U.status==="starting"||U.status==="stopping",className:`w-full px-3 py-1.5 rounded text-sm font-medium transition mt-auto ${U.status==="starting"||U.status==="stopping"?"bg-[#333] text-[#666] cursor-wait":U.status==="running"?"bg-[#f97316]/20 text-[#f97316] hover:bg-[#f97316]/30":"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30"}`,children:U.status==="starting"?"Starting...":U.status==="stopping"?"Stopping...":U.status==="running"?"Stop":"Start"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});function eH({status:_,isActive:U,activityLabel:L}){if(_==="running"&&U&&L)return z1.jsxDEV("span",{className:"px-2 py-1 rounded text-xs font-medium bg-green-500/20 text-green-400 animate-pulse",children:L},void 0,!1,void 0,this);return z1.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ${_==="starting"||_==="stopping"?"bg-yellow-500/20 text-yellow-400 animate-pulse":_==="running"?"bg-[#3b82f6]/20 text-[#3b82f6]":"bg-[#333] text-[#666]"}`,children:_},void 0,!1,void 0,this)}var r7=U0(r1(),1);var Z0=U0(w1(),1),mW=[{key:"memory",label:"Memory",description:"Persistent recall",icon:w3},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:om},{key:"files",label:"Files",description:"File storage and management",icon:X3},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:z3},{key:"operator",label:"Operator",description:"Browser automation",icon:$3},{key:"mcp",label:"MCP",description:"External tools/services",icon:b2},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:J3},{key:"agents",label:"Multi-Agent",description:"Communicate with peer agents",icon:Y3}];function Mw({form:_,providers:U,configuredProviders:L,onFormChange:P,onProviderChange:S,onCreate:k,onClose:F,onGoToSettings:R}){let{projects:o,currentProjectId:D}=J5(),C=U.find((n)=>n.id===_.provider),[i,x]=r7.default.useState([]),[j,g]=r7.default.useState(!1);r7.default.useEffect(()=>{if(_.provider==="ollama")g(!0),fetch("/api/providers/ollama/models").then((n)=>n.json()).then((n)=>{if(n.models&&n.models.length>0){if(x(n.models.map((M0)=>({value:M0.value,label:M0.label||M0.value}))),!_.model&&n.models.length>0)P({..._,model:n.models[0].value})}}).catch(()=>x([])).finally(()=>g(!1))},[_.provider]);let d=L.filter((n)=>n.type==="llm").map((n)=>({value:n.id,label:n.name})),t=_.provider==="ollama"&&i.length>0?i:C?.models.map((n)=>({value:n.value,label:n.label,recommended:n.recommended}))||[],w0=o.map((n)=>({value:n.id,label:n.name}));r7.default.useEffect(()=>{if(_.projectId===void 0&&D&&D!=="unassigned")P({..._,projectId:D})},[D]);let $0=(n)=>{if(n==="agents")if(typeof _.features.agents==="boolean"?_.features.agents:_.features.agents?.enabled??!1)P({..._,features:{..._.features,agents:!1}});else P({..._,features:{..._.features,agents:{enabled:!0,mode:"worker",group:_.projectId||void 0}}});else P({..._,features:{..._.features,[n]:!_.features[n]}})},l=()=>{let n=_.features.agents;if(typeof n==="boolean")return n;return n?.enabled??!1},p0=()=>{return p3(_.features,_.projectId).mode||"worker"},u0=(n)=>{let M0=p3(_.features,_.projectId);P({..._,features:{..._.features,agents:{...M0,enabled:!0,mode:n}}})};return Z0.jsxDEV(CJ,{children:[Z0.jsxDEV("h2",{className:"text-xl font-semibold mb-4",children:"Create New Agent"},void 0,!1,void 0,this),d.length===0?Z0.jsxDEV(pW,{onGoToSettings:R},void 0,!1,void 0,this):Z0.jsxDEV(Z0.Fragment,{children:[Z0.jsxDEV("div",{className:"space-y-4",children:[Z0.jsxDEV(J4,{label:"Name",children:Z0.jsxDEV("input",{type:"text",value:_.name,onChange:(n)=>P({..._,name:n.target.value}),className:"w-full bg-[#0a0a0a] border border-[#222] rounded px-3 py-2 focus:outline-none focus:border-[#f97316] text-[#e0e0e0]",placeholder:"My Agent"},void 0,!1,void 0,this)},void 0,!1,void 0,this),o.length>0&&Z0.jsxDEV(J4,{label:"Project",children:Z0.jsxDEV(Q2,{value:_.projectId||"",options:w0,onChange:(n)=>P({..._,projectId:n||null}),placeholder:"Select project..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z0.jsxDEV(J4,{label:"Provider",children:Z0.jsxDEV(Q2,{value:_.provider,options:d,onChange:S,placeholder:"Select provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z0.jsxDEV(J4,{label:"Model",children:j?Z0.jsxDEV("div",{className:"text-sm text-[#666] py-2",children:"Loading Ollama models..."},void 0,!1,void 0,this):_.provider==="ollama"&&t.length===0?Z0.jsxDEV("div",{className:"text-sm text-yellow-400/80 py-2",children:["No models found. Run ",Z0.jsxDEV("code",{className:"bg-[#1a1a1a] px-1 rounded",children:"ollama pull llama3.3"},void 0,!1,void 0,this)," to download a model."]},void 0,!0,void 0,this):Z0.jsxDEV(Q2,{value:_.model,options:t,onChange:(n)=>P({..._,model:n}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z0.jsxDEV(J4,{label:"System Prompt",children:Z0.jsxDEV("textarea",{value:_.systemPrompt,onChange:(n)=>P({..._,systemPrompt:n.target.value}),className:"w-full bg-[#0a0a0a] border border-[#222] rounded px-3 py-2 h-24 resize-none focus:outline-none focus:border-[#f97316] text-[#e0e0e0]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z0.jsxDEV(J4,{label:"Features",children:Z0.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:mW.map(({key:n,label:M0,description:G0,icon:_1})=>{let f=n==="agents"?l():!!_.features[n];return Z0.jsxDEV("button",{type:"button",onClick:()=>$0(n),className:`flex items-center gap-3 p-3 rounded border text-left transition ${f?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[Z0.jsxDEV(_1,{className:`w-5 h-5 flex-shrink-0 ${f?"text-[#f97316]":"text-[#666]"}`},void 0,!1,void 0,this),Z0.jsxDEV("div",{className:"flex-1 min-w-0",children:[Z0.jsxDEV("div",{className:`text-sm font-medium ${f?"text-[#f97316]":""}`,children:M0},void 0,!1,void 0,this),Z0.jsxDEV("div",{className:"text-xs text-[#666]",children:G0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},n,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),l()&&Z0.jsxDEV(J4,{label:"Multi-Agent Mode",children:[Z0.jsxDEV("div",{className:"flex gap-2",children:[Z0.jsxDEV("button",{type:"button",onClick:()=>u0("coordinator"),className:`flex-1 p-3 rounded border text-left transition ${p0()==="coordinator"?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[Z0.jsxDEV("div",{className:`text-sm font-medium ${p0()==="coordinator"?"text-[#f97316]":""}`,children:"Coordinator"},void 0,!1,void 0,this),Z0.jsxDEV("div",{className:"text-xs text-[#666]",children:"Orchestrates and delegates"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z0.jsxDEV("button",{type:"button",onClick:()=>u0("worker"),className:`flex-1 p-3 rounded border text-left transition ${p0()==="worker"?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[Z0.jsxDEV("div",{className:`text-sm font-medium ${p0()==="worker"?"text-[#f97316]":""}`,children:"Worker"},void 0,!1,void 0,this),Z0.jsxDEV("div",{className:"text-xs text-[#666]",children:"Receives delegated tasks"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_.projectId&&Z0.jsxDEV("p",{className:"text-xs text-[#555] mt-2",children:"Group: Using project as agent group"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_.provider==="anthropic"&&Z0.jsxDEV(J4,{label:"Agent Built-in Tools",children:[Z0.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[Z0.jsxDEV("button",{type:"button",onClick:()=>P({..._,features:{..._.features,builtinTools:{..._.features.builtinTools,webSearch:!_.features.builtinTools?.webSearch}}}),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${_.features.builtinTools?.webSearch?"border-[#f97316] bg-[#f97316]/10 text-[#f97316]":"border-[#222] hover:border-[#333] text-[#888]"}`,children:[Z0.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Z0.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),Z0.jsxDEV("span",{className:"text-sm",children:"Web Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z0.jsxDEV("button",{type:"button",onClick:()=>P({..._,features:{..._.features,builtinTools:{..._.features.builtinTools,webFetch:!_.features.builtinTools?.webFetch}}}),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${_.features.builtinTools?.webFetch?"border-[#f97316] bg-[#f97316]/10 text-[#f97316]":"border-[#222] hover:border-[#333] text-[#888]"}`,children:[Z0.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Z0.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),Z0.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),Z0.jsxDEV("p",{className:"text-xs text-[#555] 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),Z0.jsxDEV("div",{className:"flex gap-3 mt-6",children:[Z0.jsxDEV("button",{onClick:F,className:"flex-1 border border-[#333] hover:border-[#f97316] hover:text-[#f97316] px-4 py-2 rounded font-medium transition",children:"Cancel"},void 0,!1,void 0,this),Z0.jsxDEV("button",{onClick:k,disabled:!_.name,className:"flex-1 bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 text-black px-4 py-2 rounded 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 J4({label:_,children:U}){return Z0.jsxDEV("div",{children:[Z0.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:_},void 0,!1,void 0,this),U]},void 0,!0,void 0,this)}function pW({onGoToSettings:_}){return Z0.jsxDEV("div",{className:"text-center py-6",children:[Z0.jsxDEV("p",{className:"text-[#666] mb-4",children:"No API keys configured. Add a provider key first."},void 0,!1,void 0,this),Z0.jsxDEV("button",{onClick:_,className:"bg-[#f97316] hover:bg-[#fb923c] 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 K0=U0(r1(),1);var q=U0(w1(),1),wW=[{key:"memory",label:"Memory",description:"Persistent recall",icon:w3},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:om},{key:"files",label:"Files",description:"File storage and management",icon:X3},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:z3},{key:"operator",label:"Operator",description:"Browser automation",icon:$3},{key:"mcp",label:"MCP",description:"External tools/services",icon:b2},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:J3},{key:"agents",label:"Multi-Agent",description:"Communicate with peer agents",icon:Y3}];function Cw({agent:_,providers:U,onClose:L,onStartAgent:P,onUpdateAgent:S,onDeleteAgent:k}){let[F,R]=K0.useState("chat");return q.jsxDEV("div",{className:"w-full h-full flex flex-col overflow-hidden bg-[#0a0a0a] border-l border-[#1a1a1a]",children:[q.jsxDEV("div",{className:"border-b border-[#1a1a1a] flex items-center",children:[q.jsxDEV("div",{className:"flex-1 overflow-x-auto scrollbar-hide px-2 md:px-4",children:q.jsxDEV("div",{className:"flex gap-1",children:[q.jsxDEV(Z3,{active:F==="chat",onClick:()=>R("chat"),children:"Chat"},void 0,!1,void 0,this),q.jsxDEV(Z3,{active:F==="threads",onClick:()=>R("threads"),children:"Threads"},void 0,!1,void 0,this),q.jsxDEV(Z3,{active:F==="tasks",onClick:()=>R("tasks"),children:"Tasks"},void 0,!1,void 0,this),q.jsxDEV(Z3,{active:F==="memory",onClick:()=>R("memory"),children:"Memory"},void 0,!1,void 0,this),q.jsxDEV(Z3,{active:F==="files",onClick:()=>R("files"),children:"Files"},void 0,!1,void 0,this),q.jsxDEV(Z3,{active:F==="settings",onClick:()=>R("settings"),children:"Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q.jsxDEV("button",{onClick:L,className:"text-[#666] hover:text-[#e0e0e0] transition p-2 flex-shrink-0 mr-2",children:q.jsxDEV(q2,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[F==="chat"&&q.jsxDEV(zW,{agent:_,onStartAgent:P},void 0,!1,void 0,this),F==="threads"&&q.jsxDEV($W,{agent:_},void 0,!1,void 0,this),F==="tasks"&&q.jsxDEV(JW,{agent:_},void 0,!1,void 0,this),F==="memory"&&q.jsxDEV(XW,{agent:_},void 0,!1,void 0,this),F==="files"&&q.jsxDEV(YW,{agent:_},void 0,!1,void 0,this),F==="settings"&&q.jsxDEV(ZW,{agent:_,providers:U,onUpdateAgent:S,onDeleteAgent:k},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Z3({active:_,onClick:U,children:L}){return q.jsxDEV("button",{onClick:U,className:`px-4 py-3 text-sm font-medium border-b-2 transition ${_?"border-[#f97316] text-[#e0e0e0]":"border-transparent text-[#666] hover:text-[#888]"}`,children:L},void 0,!1,void 0,this)}function zW({agent:_,onStartAgent:U}){if(_.status==="running"&&_.port)return q.jsxDEV(i7,{agentId:"default",apiUrl:`/api/agents/${_.id}`,placeholder:"Message this agent...",context:_.systemPrompt,variant:"terminal",headerTitle:_.name},void 0,!1,void 0,this);return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:q.jsxDEV("div",{className:"text-center",children:[q.jsxDEV("p",{className:"text-lg mb-2",children:"Agent is not running"},void 0,!1,void 0,this),q.jsxDEV("button",{onClick:U,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 $W({agent:_}){let[U,L]=K0.useState([]),[P,S]=K0.useState(!0),[k,F]=K0.useState(null),[R,o]=K0.useState(null),[D,C]=K0.useState([]),[i,x]=K0.useState(!1),{confirm:j,ConfirmDialog:g}=yw();K0.useEffect(()=>{L([]),o(null),F(null),S(!0)},[_.id]),K0.useEffect(()=>{if(_.status!=="running"){S(!1);return}(async()=>{try{let $0=await fetch(`/api/agents/${_.id}/threads`);if(!$0.ok)throw Error("Failed to fetch threads");let l=await $0.json();L(l.threads||[]),F(null)}catch($0){F($0 instanceof Error?$0.message:"Failed to load threads")}finally{S(!1)}})()},[_.id,_.status]);let d=async(w0)=>{x(!0),o(w0);try{let $0=await fetch(`/api/agents/${_.id}/threads/${w0}/messages`);if($0.ok){let l=await $0.json();C(Eb(l.messages||[]))}else C([])}catch{C([])}x(!1)},t=async(w0,$0)=>{if($0.stopPropagation(),!await j("Delete this thread?",{confirmText:"Delete",title:"Delete Thread"}))return;try{if(await fetch(`/api/agents/${_.id}/threads/${w0}`,{method:"DELETE"}),L((p0)=>p0.filter((u0)=>u0.id!==w0)),R===w0)o(null)}catch{}};if(_.status!=="running")return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:q.jsxDEV("p",{children:"Start the agent to view threads"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(P)return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:q.jsxDEV("p",{children:"Loading threads..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(k)return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:q.jsxDEV("p",{children:k},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(R)return q.jsxDEV(q.Fragment,{children:[g,q.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden",children:i?q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:"Loading messages..."},void 0,!1,void 0,this):q.jsxDEV(i7,{agentId:"default",apiUrl:`/api/agents/${_.id}`,threadId:R,initialMessages:D,placeholder:"Continue this conversation...",context:_.systemPrompt,variant:"terminal",showHeader:!0,onHeaderBack:()=>{o(null),C([])}},R,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return q.jsxDEV(q.Fragment,{children:[g,q.jsxDEV("div",{className:"flex-1 overflow-auto",children:U.length===0?q.jsxDEV("div",{className:"flex items-center justify-center h-full text-[#666]",children:q.jsxDEV("p",{children:"No conversation threads yet"},void 0,!1,void 0,this)},void 0,!1,void 0,this):q.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:U.map((w0)=>q.jsxDEV("div",{onClick:()=>d(w0.id),className:"p-4 cursor-pointer hover:bg-[#111] transition flex items-center justify-between",children:[q.jsxDEV("div",{className:"flex-1 min-w-0",children:[q.jsxDEV("p",{className:"text-sm font-medium truncate",children:w0.title||`Thread ${w0.id.slice(0,8)}`},void 0,!1,void 0,this),q.jsxDEV("p",{className:"text-xs text-[#666] mt-1",children:[new Date(w0.updated_at||w0.created_at).toLocaleString(),w0.message_count!==void 0&&` • ${w0.message_count} messages`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("button",{onClick:($0)=>t(w0.id,$0),className:"text-[#666] hover:text-red-400 text-lg ml-4",children:"×"},void 0,!1,void 0,this)]},w0.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function JW({agent:_}){let{authFetch:U}=H1(),[L,P]=K0.useState([]),[S,k]=K0.useState(!0),[F,R]=K0.useState(null),[o,D]=K0.useState("all"),[C,i]=K0.useState(null),[x,j]=K0.useState(!1),{events:g}=Fw({agent_id:_.id,category:"task"});K0.useEffect(()=>{P([]),R(null),k(!0),i(null)},[_.id]);let d=async()=>{if(_.status!=="running"){k(!1);return}try{let l=await fetch(`/api/agents/${_.id}/tasks?status=${o}`);if(!l.ok)throw Error("Failed to fetch tasks");let p0=await l.json();P(p0.tasks||[]),R(null)}catch(l){R(l instanceof Error?l.message:"Failed to load tasks")}finally{k(!1)}},t=async(l)=>{i(l),j(!0);try{let p0=await U(`/api/tasks/${l.agentId||_.id}/${l.id}`);if(p0.ok){let u0=await p0.json();if(u0.task)i({...u0.task,agentId:l.agentId||_.id,agentName:l.agentName||_.name})}}catch(p0){console.error("Failed to fetch task details:",p0)}finally{j(!1)}};K0.useEffect(()=>{k(!0),d()},[_.id,_.status,o,g.length]);let w0={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(_.status!=="running")return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:q.jsxDEV("p",{children:"Start the agent to view tasks"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!_.features?.tasks)return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:q.jsxDEV("div",{className:"text-center",children:[q.jsxDEV("p",{className:"mb-2",children:"Tasks feature is not enabled"},void 0,!1,void 0,this),q.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(S)return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:q.jsxDEV("p",{children:"Loading tasks..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(F)return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:q.jsxDEV("p",{children:F},void 0,!1,void 0,this)},void 0,!1,void 0,this);let $0=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"}];if(C)return q.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden",children:[q.jsxDEV("div",{className:"px-4 pt-3 pb-2 border-b border-[#1a1a1a] shrink-0",children:q.jsxDEV("button",{onClick:()=>i(null),className:"text-sm text-[#666] hover:text-[#e0e0e0] transition flex items-center gap-1",children:[q.jsxDEV("span",{children:"←"},void 0,!1,void 0,this)," Back to tasks"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q.jsxDEV("div",{className:"flex-1 overflow-auto p-4 space-y-4",children:[q.jsxDEV("div",{children:q.jsxDEV("div",{className:"flex items-start justify-between gap-2 mb-1",children:[q.jsxDEV("h3",{className:"text-lg font-medium",children:C.title},void 0,!1,void 0,this),q.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium flex-shrink-0 ${w0[C.status]}`,children:C.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),C.description&&q.jsxDEV("div",{children:[q.jsxDEV("h4",{className:"text-xs text-[#666] uppercase tracking-wider mb-1",children:"Description"},void 0,!1,void 0,this),q.jsxDEV("p",{className:"text-sm text-[#888] whitespace-pre-wrap",children:C.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("div",{className:"grid grid-cols-2 gap-3 text-sm",children:[q.jsxDEV("div",{children:[q.jsxDEV("span",{className:"text-[#666]",children:"Type"},void 0,!1,void 0,this),q.jsxDEV("p",{className:"capitalize",children:C.type},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("div",{children:[q.jsxDEV("span",{className:"text-[#666]",children:"Priority"},void 0,!1,void 0,this),q.jsxDEV("p",{children:C.priority},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C.recurrence&&q.jsxDEV("div",{children:[q.jsxDEV("span",{className:"text-[#666]",children:"Recurrence"},void 0,!1,void 0,this),q.jsxDEV("p",{children:vJ(C.recurrence)},void 0,!1,void 0,this),q.jsxDEV("p",{className:"text-xs text-[#444] mt-0.5 font-mono",children:C.recurrence},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("div",{className:"space-y-2 text-sm",children:[q.jsxDEV("div",{className:"flex justify-between",children:[q.jsxDEV("span",{className:"text-[#666]",children:"Created"},void 0,!1,void 0,this),q.jsxDEV("span",{children:new Date(C.created_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C.execute_at&&q.jsxDEV("div",{className:"flex justify-between",children:[q.jsxDEV("span",{className:"text-[#666]",children:"Scheduled"},void 0,!1,void 0,this),q.jsxDEV("span",{className:"text-[#f97316]",children:n7(C.execute_at)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C.executed_at&&q.jsxDEV("div",{className:"flex justify-between",children:[q.jsxDEV("span",{className:"text-[#666]",children:"Started"},void 0,!1,void 0,this),q.jsxDEV("span",{children:new Date(C.executed_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C.completed_at&&q.jsxDEV("div",{className:"flex justify-between",children:[q.jsxDEV("span",{className:"text-[#666]",children:"Completed"},void 0,!1,void 0,this),q.jsxDEV("span",{children:new Date(C.completed_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C.next_run&&q.jsxDEV("div",{className:"flex justify-between",children:[q.jsxDEV("span",{className:"text-[#666]",children:"Next Run"},void 0,!1,void 0,this),q.jsxDEV("span",{className:"text-[#f97316]",children:n7(C.next_run)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),C.status==="failed"&&C.error&&q.jsxDEV("div",{className:"min-w-0",children:[q.jsxDEV("h4",{className:"text-xs text-red-400 uppercase tracking-wider mb-1",children:"Error"},void 0,!1,void 0,this),q.jsxDEV("div",{className:"bg-red-500/10 border border-red-500/20 rounded p-3 overflow-x-auto",children:q.jsxDEV("pre",{className:"text-sm text-red-400 whitespace-pre-wrap break-words",children:C.error},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C.status==="completed"&&C.result&&q.jsxDEV("div",{className:"min-w-0",children:[q.jsxDEV("h4",{className:"text-xs text-green-400 uppercase tracking-wider mb-1",children:"Result"},void 0,!1,void 0,this),q.jsxDEV("div",{className:"bg-green-500/10 border border-green-500/20 rounded p-3 overflow-x-auto",children:q.jsxDEV("pre",{className:"text-sm text-green-400 whitespace-pre-wrap break-words",children:typeof C.result==="string"?C.result:JSON.stringify(C.result,null,2)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x&&!C.trajectory&&q.jsxDEV("div",{children:[q.jsxDEV("h4",{className:"text-xs text-[#666] uppercase tracking-wider mb-2",children:"Trajectory"},void 0,!1,void 0,this),q.jsxDEV("div",{className:"text-sm text-[#555]",children:"Loading trajectory..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),C.trajectory&&C.trajectory.length>0&&q.jsxDEV("div",{children:[q.jsxDEV("h4",{className:"text-xs text-[#666] uppercase tracking-wider mb-2",children:["Trajectory (",C.trajectory.length," steps)"]},void 0,!0,void 0,this),q.jsxDEV(jb,{trajectory:C.trajectory},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return q.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:[q.jsxDEV("div",{className:"flex gap-2 mb-4",children:$0.map((l)=>q.jsxDEV("button",{onClick:()=>D(l.value),className:`px-3 py-1.5 rounded text-sm transition ${o===l.value?"bg-[#f97316] text-black":"bg-[#1a1a1a] hover:bg-[#222]"}`,children:l.label},l.value,!1,void 0,this))},void 0,!1,void 0,this),L.length===0?q.jsxDEV("div",{className:"text-center py-10",children:[q.jsxDEV(om,{className:"w-10 h-10 mx-auto mb-3 text-[#333]"},void 0,!1,void 0,this),q.jsxDEV("p",{className:"text-[#666]",children:["No ",o==="all"?"":o+" ","tasks"]},void 0,!0,void 0,this),q.jsxDEV("p",{className:"text-sm text-[#444] mt-1",children:"Tasks will appear here when created"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):q.jsxDEV("div",{className:"space-y-3",children:L.map((l)=>q.jsxDEV("div",{onClick:()=>t(l),className:"bg-[#111] border border-[#1a1a1a] rounded-lg p-4 cursor-pointer hover:border-[#333] transition",children:[q.jsxDEV("div",{className:"flex items-start justify-between mb-2",children:[q.jsxDEV("div",{className:"flex-1 min-w-0",children:q.jsxDEV("h3",{className:"font-medium",children:l.title||l.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),q.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ml-2 ${w0[l.status]||w0.pending}`,children:l.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.description&&q.jsxDEV("p",{className:"text-sm text-[#888] mb-2 line-clamp-2",children:l.description},void 0,!1,void 0,this),q.jsxDEV("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-[#555]",children:[q.jsxDEV("span",{className:"flex items-center gap-1",children:[l.type==="recurring"?q.jsxDEV(ib,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this):l.execute_at?q.jsxDEV(Db,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this):q.jsxDEV(cb,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this),l.type==="recurring"&&l.recurrence?vJ(l.recurrence):l.type||"once"]},void 0,!0,void 0,this),l.priority!==void 0&&q.jsxDEV("span",{children:["Priority: ",l.priority]},void 0,!0,void 0,this),l.next_run&&q.jsxDEV("span",{className:"text-[#f97316]",children:n7(l.next_run)},void 0,!1,void 0,this),!l.next_run&&l.execute_at&&q.jsxDEV("span",{className:"text-[#f97316]",children:n7(l.execute_at)},void 0,!1,void 0,this),q.jsxDEV("span",{children:["Created: ",new Date(l.created_at).toLocaleDateString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),l.status==="completed"&&l.result&&q.jsxDEV("div",{className:"mt-3 bg-green-500/10 border border-green-500/20 rounded p-3",children:[q.jsxDEV("h4",{className:"text-xs text-green-400 uppercase tracking-wider mb-1",children:"Result"},void 0,!1,void 0,this),q.jsxDEV("pre",{className:"text-sm text-green-400 whitespace-pre-wrap break-words",children:typeof l.result==="string"?l.result:JSON.stringify(l.result,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.status==="failed"&&l.error&&q.jsxDEV("div",{className:"mt-3 bg-red-500/10 border border-red-500/20 rounded p-3",children:[q.jsxDEV("h4",{className:"text-xs text-red-400 uppercase tracking-wider mb-1",children:"Error"},void 0,!1,void 0,this),q.jsxDEV("pre",{className:"text-sm text-red-400 whitespace-pre-wrap break-words",children:l.error},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)}function XW({agent:_}){let[U,L]=K0.useState([]),[P,S]=K0.useState(!0),[k,F]=K0.useState(null),[R,o]=K0.useState(!1),{confirm:D,ConfirmDialog:C}=yw();K0.useEffect(()=>{L([]),F(null),S(!0)},[_.id]);let i=async()=>{if(_.status!=="running"){S(!1);return}try{let g=await fetch(`/api/agents/${_.id}/memories`);if(!g.ok)throw Error("Failed to fetch memories");let d=await g.json();L(d.memories||[]),o(d.enabled??!1),F(null)}catch(g){F(g instanceof Error?g.message:"Failed to load memories")}finally{S(!1)}};K0.useEffect(()=>{i()},[_.id,_.status]);let x=async(g)=>{try{await fetch(`/api/agents/${_.id}/memories/${g}`,{method:"DELETE"}),L((d)=>d.filter((t)=>t.id!==g))}catch{}},j=async()=>{if(!await D("Clear all memories?",{confirmText:"Clear",title:"Clear Memories"}))return;try{await fetch(`/api/agents/${_.id}/memories`,{method:"DELETE"}),L([])}catch{}};if(!_.features?.memory)return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:q.jsxDEV("div",{className:"text-center",children:[q.jsxDEV("p",{className:"mb-2",children:"Memory feature is not enabled"},void 0,!1,void 0,this),q.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(_.status!=="running")return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:q.jsxDEV("p",{children:"Start the agent to view memories"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(P)return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:q.jsxDEV("p",{children:"Loading memories..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(k)return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:q.jsxDEV("p",{children:k},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!R)return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:q.jsxDEV("div",{className:"text-center",children:[q.jsxDEV("p",{className:"mb-2",children:"Memory system not initialized"},void 0,!1,void 0,this),q.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 q.jsxDEV(q.Fragment,{children:[C,q.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:[q.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[q.jsxDEV("h3",{className:"text-sm font-medium text-[#888]",children:["Stored Memories (",U.length,")"]},void 0,!0,void 0,this),U.length>0&&q.jsxDEV("button",{onClick:j,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),U.length===0?q.jsxDEV("div",{className:"text-center py-10 text-[#666]",children:[q.jsxDEV("p",{children:"No memories stored yet"},void 0,!1,void 0,this),q.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):q.jsxDEV("div",{className:"space-y-3",children:U.map((g)=>q.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded p-3",children:[q.jsxDEV("div",{className:"flex items-start justify-between gap-2",children:[q.jsxDEV("p",{className:"text-sm text-[#e0e0e0] flex-1",children:g.content},void 0,!1,void 0,this),q.jsxDEV("button",{onClick:()=>x(g.id),className:"text-[#666] hover:text-red-400 text-sm flex-shrink-0",children:"×"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("div",{className:"flex items-center gap-3 mt-2",children:[q.jsxDEV("span",{className:`text-xs px-2 py-0.5 rounded ${g.type==="preference"?"bg-purple-500/20 text-purple-400":g.type==="fact"?"bg-green-500/20 text-green-400":"bg-blue-500/20 text-blue-400"}`,children:g.type},void 0,!1,void 0,this),q.jsxDEV("span",{className:"text-xs text-[#666]",children:new Date(g.created_at).toLocaleString()},void 0,!1,void 0,this),g.importance&&q.jsxDEV("span",{className:"text-xs text-[#555]",children:["importance: ",g.importance.toFixed(1)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},g.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function YW({agent:_}){let[U,L]=K0.useState([]),[P,S]=K0.useState(!0),[k,F]=K0.useState(null),[R,o]=K0.useState(!1),[D,C]=K0.useState(null),[i,x]=K0.useState(!1),j=K0.default.useRef(null),{confirm:g,ConfirmDialog:d}=yw();K0.useEffect(()=>{L([]),F(null),S(!0)},[_.id]);let t=async()=>{if(_.status!=="running"){S(!1);return}try{let f=await fetch(`/api/agents/${_.id}/files`);if(!f.ok)throw Error("Failed to fetch files");let J0=await f.json();L(J0.files||[]),F(null)}catch(f){F(f instanceof Error?f.message:"Failed to load files")}finally{S(!1)}};K0.useEffect(()=>{t()},[_.id,_.status]);let w0=async(f)=>{if(!await g("Delete this file?",{confirmText:"Delete",title:"Delete File"}))return;try{await fetch(`/api/agents/${_.id}/files/${f}`,{method:"DELETE"}),L((T)=>T.filter((I)=>I.id!==f))}catch{}},$0=(f,J0)=>{let T=document.createElement("a");T.href=`/api/agents/${_.id}/files/${f}/download`,T.download=J0,T.click()},l=(f)=>{if(f<1024)return`${f} B`;if(f<1048576)return`${(f/1024).toFixed(1)} KB`;return`${(f/1048576).toFixed(1)} MB`},p0=async(f)=>{o(!0),C(null);try{let J0=new FormData;J0.append("file",f);let T=await fetch(`/api/agents/${_.id}/files`,{method:"POST",body:J0});if(!T.ok){let I=await T.json();throw Error(I.error||"Upload failed")}await t()}catch(J0){C(J0 instanceof Error?J0.message:"Upload failed")}finally{o(!1)}},u0=(f)=>{let J0=f.target.files?.[0];if(J0)p0(J0);f.target.value=""},n=(f)=>{f.preventDefault(),x(!1);let J0=f.dataTransfer.files?.[0];if(J0)p0(J0)},M0=(f)=>{f.preventDefault(),x(!0)},G0=(f)=>{f.preventDefault(),x(!1)},_1=(f)=>{if(f.startsWith("image/"))return"\uD83D\uDDBC";if(f.includes("pdf"))return"\uD83D\uDCD5";if(f.includes("json"))return"{}";if(f.includes("javascript")||f.includes("typescript"))return"⚡";if(f.startsWith("text/"))return"\uD83D\uDCC4";if(f.startsWith("audio/"))return"\uD83C\uDFB5";if(f.startsWith("video/"))return"\uD83C\uDFAC";return"\uD83D\uDCC1"};if(!_.features?.files)return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:q.jsxDEV("div",{className:"text-center",children:[q.jsxDEV("p",{className:"mb-2",children:"Files feature is not enabled"},void 0,!1,void 0,this),q.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(_.status!=="running")return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:q.jsxDEV("p",{children:"Start the agent to view files"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(P)return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[#666]",children:q.jsxDEV("p",{children:"Loading files..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(k)return q.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:q.jsxDEV("p",{children:k},void 0,!1,void 0,this)},void 0,!1,void 0,this);return q.jsxDEV(q.Fragment,{children:[d,q.jsxDEV("div",{className:`flex-1 overflow-auto p-4 transition ${i?"bg-[#f97316]/5":""}`,onDrop:n,onDragOver:M0,onDragLeave:G0,children:[q.jsxDEV("input",{ref:j,type:"file",className:"hidden",onChange:u0},void 0,!1,void 0,this),q.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[q.jsxDEV("h3",{className:"text-sm font-medium text-[#888]",children:["Agent Files (",U.length,")"]},void 0,!0,void 0,this),q.jsxDEV("div",{className:"flex items-center gap-2",children:[q.jsxDEV("button",{onClick:()=>j.current?.click(),disabled:R,className:"text-xs bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 text-black px-3 py-1 rounded font-medium transition",children:R?"Uploading...":"Upload"},void 0,!1,void 0,this),q.jsxDEV("button",{onClick:t,className:"text-xs text-[#666] hover:text-[#888]",children:"Refresh"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D&&q.jsxDEV("div",{className:"mb-4 text-sm bg-red-500/10 text-red-400 px-3 py-2 rounded",children:D},void 0,!1,void 0,this),i&&q.jsxDEV("div",{className:"mb-4 border-2 border-dashed border-[#f97316] rounded-lg p-8 text-center",children:q.jsxDEV("p",{className:"text-[#f97316]",children:"Drop file to upload"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U.length===0&&!i&&q.jsxDEV("div",{className:"text-center py-10 text-[#666]",children:[q.jsxDEV("p",{children:"No files stored yet"},void 0,!1,void 0,this),q.jsxDEV("p",{className:"text-sm mt-1",children:"Drop files here, click Upload, or attach files in Chat"},void 0,!1,void 0,this),_.features?.memory&&q.jsxDEV("p",{className:"text-xs mt-2 text-[#555]",children:"Files will be auto-ingested into memory"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),U.length>0&&q.jsxDEV("div",{className:"space-y-2",children:U.map((f)=>q.jsxDEV("div",{className:"bg-[#111] border border-[#1a1a1a] rounded p-3 flex items-center gap-3",children:[q.jsxDEV("div",{className:"w-10 h-10 bg-[#1a1a1a] rounded flex items-center justify-center text-[#666]",children:_1(f.mime_type)},void 0,!1,void 0,this),q.jsxDEV("div",{className:"flex-1 min-w-0",children:[q.jsxDEV("p",{className:"text-sm text-[#e0e0e0] truncate",children:f.filename},void 0,!1,void 0,this),q.jsxDEV("p",{className:"text-xs text-[#666]",children:[l(f.size_bytes)," • ",new Date(f.created_at).toLocaleString(),f.source&&f.source!=="upload"&&` • ${f.source}`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("div",{className:"flex items-center gap-2",children:[q.jsxDEV("button",{onClick:()=>$0(f.id,f.filename),className:"text-xs text-[#666] hover:text-[#f97316] px-2 py-1",children:"↓"},void 0,!1,void 0,this),q.jsxDEV("button",{onClick:()=>w0(f.id),className:"text-[#666] hover:text-red-400 text-sm",children:"×"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},f.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ZW({agent:_,providers:U,onUpdateAgent:L,onDeleteAgent:P}){let{authFetch:S,isDev:k}=H1(),[F,R]=K0.useState({name:_.name,provider:_.provider,model:_.model,systemPrompt:_.systemPrompt,features:{..._.features,builtinTools:_.features.builtinTools||{webSearch:!1,webFetch:!1}},mcpServers:[..._.mcpServers||[]],skills:[..._.skills||[]]}),[o,D]=K0.useState(!1),[C,i]=K0.useState(!1),[x,j]=K0.useState(null),[g,d]=K0.useState([]),[t,w0]=K0.useState([]),[$0,l]=K0.useState(null),[p0,u0]=K0.useState(null),[n,M0]=K0.useState(!1),[G0,_1]=K0.useState([]);K0.useEffect(()=>{S(`/api/subscriptions?agent_id=${_.id}`).then((v)=>v.ok?v.json():{subscriptions:[]}).then((v)=>_1(v.subscriptions||[])).catch(()=>{})},[_.id,S]),K0.useEffect(()=>{(async()=>{try{let d0=await(await S("/api/mcp/servers")).json();d(d0.servers||[])}catch(e){console.error("Failed to fetch MCP servers:",e)}})()},[S]),K0.useEffect(()=>{(async()=>{try{let e=await S(`/api/agents/${_.id}/api-key`);if(e.ok){let d0=await e.json();l(d0.apiKey),u0(d0.fullKey||null)}}catch(e){}})()},[_.id,S]),K0.useEffect(()=>{(async()=>{try{let d0=await(await S("/api/skills")).json();w0(d0.skills||[])}catch(e){console.error("Failed to fetch skills:",e)}})()},[S]),K0.useEffect(()=>{R({name:_.name,provider:_.provider,model:_.model,systemPrompt:_.systemPrompt,features:{..._.features,builtinTools:_.features.builtinTools||{webSearch:!1,webFetch:!1}},mcpServers:[..._.mcpServers||[]],skills:[..._.skills||[]]}),j(null)},[_.id]);let f=U.find((v)=>v.id===F.provider),J0=U.filter((v)=>v.hasKey&&v.type==="llm").map((v)=>({value:v.id,label:v.name})),T=f?.models.map((v)=>({value:v.value,label:v.label,recommended:v.recommended}))||[],I=(v)=>{let e=U.find((k1)=>k1.id===v),d0=e?.models.find((k1)=>k1.recommended)?.value||e?.models[0]?.value||"";R((k1)=>({...k1,provider:v,model:d0}))},b0=(v)=>{if(v==="agents")R((e)=>{if(typeof e.features.agents==="boolean"?e.features.agents:e.features.agents?.enabled??!1)return{...e,features:{...e.features,agents:!1}};else return{...e,features:{...e.features,agents:{enabled:!0,mode:"worker",group:_.projectId||void 0}}}});else if(v==="operator")R((e)=>{if(V7(e.features).enabled)return{...e,features:{...e.features,operator:!1}};else return{...e,features:{...e.features,operator:{enabled:!0}}}});else R((e)=>({...e,features:{...e.features,[v]:!e.features[v]}}))},a=(v)=>{R((e)=>{let d0=p3(e.features,_.projectId);return{...e,features:{...e.features,agents:{...d0,enabled:!0,mode:v}}}})},u=()=>{let v=F.features.agents;if(typeof v==="boolean")return v;return v?.enabled??!1},z0=()=>{return p3(F.features,_.projectId).mode||"worker"},a0=()=>{return V7(F.features).enabled},c0=()=>{return V7(F.features)},k5=U.filter((v)=>v.type==="browser"&&v.hasKey),n5=(v)=>{R((e)=>{let d0=V7(e.features);return{...e,features:{...e.features,operator:{...d0,enabled:!0,browser_provider:v}}}})},Q5=(v)=>{R((e)=>({...e,mcpServers:e.mcpServers.includes(v)?e.mcpServers.filter((d0)=>d0!==v):[...e.mcpServers,v]}))},T1=(v)=>{R((e)=>({...e,skills:e.skills.includes(v)?e.skills.filter((d0)=>d0!==v):[...e.skills,v]}))},Q1=async()=>{D(!0),j(null);let v=await L(F);if(D(!1),v.error)j({type:"error",text:v.error});else j({type:"success",text:"Settings saved"}),setTimeout(()=>j(null),2000)},B2=F.name!==_.name||F.provider!==_.provider||F.model!==_.model||F.systemPrompt!==_.systemPrompt||JSON.stringify(F.features)!==JSON.stringify(_.features)||JSON.stringify(F.mcpServers.sort())!==JSON.stringify((_.mcpServers||[]).sort())||JSON.stringify(F.skills.sort())!==JSON.stringify((_.skills||[]).sort());return q.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:q.jsxDEV("div",{className:"space-y-4",children:[q.jsxDEV(am,{label:"Name",children:q.jsxDEV("input",{type:"text",value:F.name,onChange:(v)=>R((e)=>({...e,name:v.target.value})),className:"w-full bg-[#0a0a0a] border border-[#222] rounded px-3 py-2 focus:outline-none focus:border-[#f97316] text-[#e0e0e0]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q.jsxDEV(am,{label:"Provider",children:q.jsxDEV(Q2,{value:F.provider,options:J0,onChange:I},void 0,!1,void 0,this)},void 0,!1,void 0,this),q.jsxDEV(am,{label:"Model",children:q.jsxDEV(Q2,{value:F.model,options:T,onChange:(v)=>R((e)=>({...e,model:v}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),q.jsxDEV(am,{label:"System Prompt",children:q.jsxDEV("textarea",{value:F.systemPrompt,onChange:(v)=>R((e)=>({...e,systemPrompt:v.target.value})),className:"w-full bg-[#0a0a0a] border border-[#222] rounded px-3 py-2 h-24 resize-none focus:outline-none focus:border-[#f97316] text-[#e0e0e0]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q.jsxDEV(am,{label:"Features",children:q.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:wW.map(({key:v,label:e,description:d0,icon:k1})=>{let K2=v==="agents"?u():v==="operator"?a0():!!F.features[v];return q.jsxDEV("button",{type:"button",onClick:()=>b0(v),className:`flex items-center gap-3 p-3 rounded border text-left transition ${K2?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[q.jsxDEV(k1,{className:`w-5 h-5 flex-shrink-0 ${K2?"text-[#f97316]":"text-[#666]"}`},void 0,!1,void 0,this),q.jsxDEV("div",{className:"flex-1 min-w-0",children:[q.jsxDEV("div",{className:`text-sm font-medium ${K2?"text-[#f97316]":""}`,children:e},void 0,!1,void 0,this),q.jsxDEV("div",{className:"text-xs text-[#666]",children:d0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},v,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),u()&&q.jsxDEV(am,{label:"Multi-Agent Mode",children:[q.jsxDEV("div",{className:"flex gap-2",children:[q.jsxDEV("button",{type:"button",onClick:()=>a("coordinator"),className:`flex-1 p-3 rounded border text-left transition ${z0()==="coordinator"?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[q.jsxDEV("div",{className:`text-sm font-medium ${z0()==="coordinator"?"text-[#f97316]":""}`,children:"Coordinator"},void 0,!1,void 0,this),q.jsxDEV("div",{className:"text-xs text-[#666]",children:"Orchestrates and delegates to other agents"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("button",{type:"button",onClick:()=>a("worker"),className:`flex-1 p-3 rounded border text-left transition ${z0()==="worker"?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[q.jsxDEV("div",{className:`text-sm font-medium ${z0()==="worker"?"text-[#f97316]":""}`,children:"Worker"},void 0,!1,void 0,this),q.jsxDEV("div",{className:"text-xs text-[#666]",children:"Receives tasks from coordinators"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_.projectId&&q.jsxDEV("p",{className:"text-xs text-[#555] mt-2",children:"Group: Using project as agent group"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),a0()&&q.jsxDEV(am,{label:"Browser Provider",children:k5.length>0?q.jsxDEV(Q2,{value:c0().browser_provider||"",options:[{value:"",label:"Auto (first available)"},...k5.map((v)=>({value:v.id,label:v.name}))],onChange:(v)=>n5(v)},void 0,!1,void 0,this):q.jsxDEV("p",{className:"text-sm text-[#666] p-3 border border-[#222] rounded bg-[#0a0a0a]",children:"No browser providers configured. Go to Settings → Providers to add one."},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.provider==="anthropic"&&q.jsxDEV(am,{label:"Agent Built-in Tools",children:[q.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[q.jsxDEV("button",{type:"button",onClick:()=>R((v)=>({...v,features:{...v.features,builtinTools:{...v.features.builtinTools,webSearch:!v.features.builtinTools?.webSearch}}})),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${F.features.builtinTools?.webSearch?"border-[#f97316] bg-[#f97316]/10 text-[#f97316]":"border-[#222] hover:border-[#333] text-[#888]"}`,children:[q.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q.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),q.jsxDEV("span",{className:"text-sm",children:"Web Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("button",{type:"button",onClick:()=>R((v)=>({...v,features:{...v.features,builtinTools:{...v.features.builtinTools,webFetch:!v.features.builtinTools?.webFetch}}})),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${F.features.builtinTools?.webFetch?"border-[#f97316] bg-[#f97316]/10 text-[#f97316]":"border-[#222] hover:border-[#333] text-[#888]"}`,children:[q.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:q.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),q.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),q.jsxDEV("p",{className:"text-xs text-[#555] mt-2",children:"Provider-native tools for real-time web access"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),F.features.mcp&&q.jsxDEV(am,{label:"MCP Servers",children:g.length===0?q.jsxDEV("p",{className:"text-sm text-[#666]",children:"No MCP servers configured. Add servers in the MCP page first."},void 0,!1,void 0,this):q.jsxDEV("div",{className:"space-y-2",children:[g.filter((v)=>v.project_id===null||v.project_id===_.projectId).map((v)=>{let e=v.type==="http"&&v.url,d0=e||v.status==="running",k1=e?`${v.source||"remote"} • http`:`${v.type} • ${v.package||v.command||"custom"}${v.status==="running"&&v.port?` • :${v.port}`:""}`;return q.jsxDEV("button",{type:"button",onClick:()=>Q5(v.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${F.mcpServers.includes(v.id)?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[q.jsxDEV("div",{className:`w-2 h-2 rounded-full flex-shrink-0 ${d0?"bg-green-400":"bg-[#444]"}`},void 0,!1,void 0,this),q.jsxDEV("div",{className:"flex-1 min-w-0",children:[q.jsxDEV("div",{className:"flex items-center gap-2",children:[q.jsxDEV("span",{className:`text-sm font-medium ${F.mcpServers.includes(v.id)?"text-[#f97316]":""}`,children:v.name},void 0,!1,void 0,this),v.project_id===null&&q.jsxDEV("span",{className:"text-[10px] text-[#666] bg-[#1a1a1a] px-1.5 py-0.5 rounded",children:"Global"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("div",{className:"text-xs text-[#666]",children:k1},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("div",{className:`text-xs px-2 py-0.5 rounded ${d0?"bg-green-500/20 text-green-400":"bg-[#222] text-[#666]"}`,children:e?"remote":v.status},void 0,!1,void 0,this)]},v.id,!0,void 0,this)}),q.jsxDEV("p",{className:"text-xs text-[#666] 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),q.jsxDEV(am,{label:"Skills",children:t.length===0?q.jsxDEV("p",{className:"text-sm text-[#666]",children:"No skills configured. Add skills in the Skills page first."},void 0,!1,void 0,this):q.jsxDEV("div",{className:"space-y-2",children:[t.filter((v)=>v.enabled&&(v.project_id===null||v.project_id===_.projectId)).map((v)=>q.jsxDEV("button",{type:"button",onClick:()=>T1(v.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${F.skills.includes(v.id)?"border-[#f97316] bg-[#f97316]/10":"border-[#222] hover:border-[#333]"}`,children:[q.jsxDEV("div",{className:"flex-1 min-w-0",children:[q.jsxDEV("div",{className:"flex items-center gap-2",children:[q.jsxDEV("span",{className:`text-sm font-medium ${F.skills.includes(v.id)?"text-[#f97316]":""}`,children:v.name},void 0,!1,void 0,this),v.project_id===null&&q.jsxDEV("span",{className:"text-[10px] text-[#666] bg-[#1a1a1a] px-1.5 py-0.5 rounded",children:"Global"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("div",{className:"text-xs text-[#666]",children:v.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("div",{className:"text-xs px-2 py-0.5 rounded bg-[#222] text-[#666]",children:["v",v.version]},void 0,!0,void 0,this)]},v.id,!0,void 0,this)),q.jsxDEV("p",{className:"text-xs text-[#666] 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),x&&q.jsxDEV("div",{className:`text-sm px-3 py-2 rounded ${x.type==="success"?"bg-green-500/10 text-green-400":"bg-red-500/10 text-red-400"}`,children:x.text},void 0,!1,void 0,this),q.jsxDEV("button",{onClick:Q1,disabled:!B2||o||!F.name,className:"w-full bg-[#f97316] hover:bg-[#fb923c] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:o?"Saving...":"Save Changes"},void 0,!1,void 0,this),_.status==="running"&&B2&&q.jsxDEV("p",{className:"text-xs text-[#666] text-center",children:"Changes will be applied to the running agent"},void 0,!1,void 0,this),q.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[#222]",children:[q.jsxDEV("p",{className:"text-sm text-[#666] mb-3",children:"Subscriptions"},void 0,!1,void 0,this),G0.length===0?q.jsxDEV("p",{className:"text-xs text-[#555]",children:"No subscriptions. Set up triggers in Connections to have this agent listen to external events."},void 0,!1,void 0,this):q.jsxDEV("div",{className:"space-y-2",children:G0.map((v)=>q.jsxDEV("div",{className:"flex items-center gap-2 px-3 py-2 bg-[#111] rounded border border-[#1a1a1a]",children:[q.jsxDEV("span",{className:`w-2 h-2 rounded-full shrink-0 ${v.enabled?"bg-cyan-400":"bg-[#444]"}`},void 0,!1,void 0,this),q.jsxDEV("span",{className:`text-sm flex-1 ${v.enabled?"text-cyan-400":"text-[#666]"}`,children:v.trigger_slug.replace(/_/g," ")},void 0,!1,void 0,this),q.jsxDEV("span",{className:`text-[10px] px-1.5 py-0.5 rounded ${v.enabled?"bg-cyan-500/10 text-cyan-400":"bg-[#222] text-[#555]"}`,children:v.enabled?"active":"disabled"},void 0,!1,void 0,this)]},v.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$0&&q.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[#222]",children:[q.jsxDEV("p",{className:"text-sm text-[#666] mb-3",children:"Developer Info"},void 0,!1,void 0,this),q.jsxDEV("div",{className:"space-y-2",children:[q.jsxDEV("div",{className:"flex items-center justify-between",children:[q.jsxDEV("span",{className:"text-xs text-[#666]",children:"Agent ID"},void 0,!1,void 0,this),q.jsxDEV("code",{className:"text-xs bg-[#1a1a1a] px-2 py-1 rounded text-[#888]",children:_.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("div",{className:"flex items-center justify-between",children:[q.jsxDEV("span",{className:"text-xs text-[#666]",children:"Port"},void 0,!1,void 0,this),q.jsxDEV("code",{className:"text-xs bg-[#1a1a1a] px-2 py-1 rounded text-[#888]",children:_.port||"N/A"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("div",{className:"flex flex-col gap-1",children:[q.jsxDEV("div",{className:"flex items-center justify-between",children:[q.jsxDEV("span",{className:"text-xs text-[#666]",children:"API Key"},void 0,!1,void 0,this),q.jsxDEV("button",{onClick:()=>M0(!n),className:"text-xs text-[#f97316] hover:text-[#fb923c]",children:n?"Hide":"Show"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q.jsxDEV("code",{className:"text-xs bg-[#1a1a1a] px-2 py-1 rounded text-[#888] break-all",children:n?p0||$0:$0},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_.status==="running"&&_.port&&q.jsxDEV("div",{className:"flex flex-col gap-1 mt-2",children:[q.jsxDEV("span",{className:"text-xs text-[#666]",children:"Test with curl"},void 0,!1,void 0,this),q.jsxDEV("code",{className:"text-xs bg-[#1a1a1a] px-2 py-1.5 rounded text-[#666] break-all",children:['curl -H "X-API-Key: ',n?p0||$0:"***",'" http://localhost:',_.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),q.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[#222]",children:[q.jsxDEV("p",{className:"text-sm text-[#666] mb-3",children:"Danger Zone"},void 0,!1,void 0,this),C?q.jsxDEV("div",{className:"flex gap-2",children:[q.jsxDEV("button",{onClick:()=>i(!1),className:"flex-1 border border-[#333] hover:border-[#444] px-4 py-2 rounded font-medium transition",children:"Cancel"},void 0,!1,void 0,this),q.jsxDEV("button",{onClick:P,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):q.jsxDEV("button",{onClick:()=>i(!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 am({label:_,children:U}){return q.jsxDEV("div",{children:[q.jsxDEV("label",{className:"block text-sm text-[#666] mb-1",children:_},void 0,!1,void 0,this),U]},void 0,!0,void 0,this)}var rb=U0(r1(),1);var n0=U0(w1(),1);function vw({agents:_,loading:U,selectedAgent:L,providers:P,onSelectAgent:S,onCloseAgent:k,onToggleAgent:F,onDeleteAgent:R,onUpdateAgent:o,onNewAgent:D,canCreateAgent:C=!0}){let{currentProjectId:i,currentProject:x}=J5(),j=rb.useMemo(()=>{if(i===null)return _;if(i==="unassigned")return _.filter((d)=>!d.projectId);return _.filter((d)=>d.projectId===i)},[_,i]),g=i===null?"Agents":i==="unassigned"?"Unassigned Agents":x?.name||"Agents";return n0.jsxDEV("div",{className:"flex-1 flex overflow-hidden relative",children:[n0.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[n0.jsxDEV("div",{className:"flex items-center justify-between mb-6",children:[n0.jsxDEV("div",{className:"flex items-center gap-3",children:[x&&n0.jsxDEV("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:x.color}},void 0,!1,void 0,this),n0.jsxDEV("h1",{className:"text-xl font-semibold",children:g},void 0,!1,void 0,this),i!==null&&n0.jsxDEV("span",{className:"text-sm text-[#666]",children:["(",j.length," agent",j.length!==1?"s":"",")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),D&&n0.jsxDEV("button",{onClick:D,disabled:!C,className:"bg-[#f97316] hover:bg-[#fb923c] 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),U?n0.jsxDEV(j4,{message:"Loading agents..."},void 0,!1,void 0,this):j.length===0?n0.jsxDEV(GW,{onNewAgent:D,canCreateAgent:C,hasProjectFilter:i!==null},void 0,!1,void 0,this):n0.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3 auto-rows-fr",children:j.map((d)=>n0.jsxDEV(Nw,{agent:d,selected:L?.id===d.id,onSelect:()=>S(d),onToggle:(t)=>F(d,t),showProject:i===null},d.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),L&&n0.jsxDEV("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-[2px] z-10",onClick:k},void 0,!1,void 0,this),L&&n0.jsxDEV("div",{className:"absolute right-0 top-0 bottom-0 w-full sm:w-[500px] lg:w-[600px] xl:w-[700px] z-20",children:n0.jsxDEV(Cw,{agent:L,providers:P,onClose:k,onStartAgent:(d)=>F(L,d),onUpdateAgent:(d)=>o(L.id,d),onDeleteAgent:()=>R(L.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function GW({onNewAgent:_,canCreateAgent:U,hasProjectFilter:L}){return n0.jsxDEV("div",{className:"text-center py-20 text-[#666]",children:[L?n0.jsxDEV(n0.Fragment,{children:[n0.jsxDEV("p",{className:"text-lg",children:"No agents in this project"},void 0,!1,void 0,this),n0.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):n0.jsxDEV(n0.Fragment,{children:[n0.jsxDEV("p",{className:"text-lg",children:"No agents yet"},void 0,!1,void 0,this),n0.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),_&&n0.jsxDEV("button",{onClick:_,disabled:!U,className:"mt-4 bg-[#f97316] hover:bg-[#fb923c] 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 X1=U0(r1(),1);var c=U0(w1(),1);function Iw({agents:_,loading:U,runningCount:L,configuredProviders:P,onNavigate:S,onSelectAgent:k}){let{authFetch:F}=H1(),{currentProjectId:R}=J5(),{events:o,statusChangeCounter:D}=D7(),{events:C}=Fw({category:"TASK"}),i=X1.useRef(null),[x,j]=X1.useState(null),[g,d]=X1.useState([]),[t,w0]=X1.useState([]),[$0,l]=X1.useState(null),p0=X1.useMemo(()=>{if(!R)return _;if(R==="unassigned")return _.filter((T)=>!T.projectId);return _.filter((T)=>T.projectId===R)},[_,R]),u0=X1.useMemo(()=>{return p0.filter((T)=>T.status==="running").length},[p0]),n=X1.useMemo(()=>{return new Set(p0.map((T)=>T.id))},[p0]),M0=X1.useCallback(async()=>{try{let T=R?`project_id=${encodeURIComponent(R)}`:"",[I,b0,a]=await Promise.all([F(`/api/dashboard${T?`?${T}`:""}`),F(`/api/tasks?status=all${T?`&${T}`:""}`),F(`/api/telemetry/events?type=thread_activity&limit=20${T?`&${T}`:""}`)]);if(I.ok){let u=await I.json();j(u)}if(b0.ok){let u=await b0.json();d(u.tasks||[])}if(a.ok){let u=await a.json();w0(u.events||[])}}catch(T){console.error("Failed to fetch dashboard data:",T)}},[F,R]);X1.useEffect(()=>{M0()},[M0,D]),X1.useEffect(()=>{if(!C.length)return;let T=C[0];if(!T||T.id===i.current)return;if(T.type==="task_created"||T.type==="task_updated"||T.type==="task_deleted")i.current=T.id,M0()},[C,M0]);let G0=X1.useMemo(()=>{let T=R?g.filter((I)=>n.has(I.agentId)):g;return KW(T)},[g,R,n]),_1=X1.useMemo(()=>{if(!R)return x?.tasks||{total:0,pending:0,running:0,completed:0};let T=G0.length,I=G0.filter((u)=>u.status==="pending").length,b0=G0.filter((u)=>u.status==="running").length,a=G0.filter((u)=>u.status==="completed").length;return{total:T,pending:I,running:b0,completed:a}},[x,R,G0]),f=X1.useMemo(()=>{let T=o.filter((u)=>u.type==="thread_activity"&&!u.data?.parent_id),I=new Set(T.map((u)=>u.id)),b0=[...T];for(let u of t)if(!I.has(u.id)&&!u.data?.parent_id)b0.push(u),I.add(u.id);let a=b0;if(R)a=b0.filter((u)=>n.has(u.agent_id));return a.sort((u,z0)=>new Date(z0.timestamp).getTime()-new Date(u.timestamp).getTime()),a.slice(0,12)},[o,t,R,n]),J0=X1.useMemo(()=>{let T=new Map;for(let I of _)T.set(I.id,I.name);return T},[_]);return c.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[c.jsxDEV("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4 mb-6",children:[c.jsxDEV(Pw,{label:"Agents",value:p0.length,subValue:`${u0} running`},void 0,!1,void 0,this),c.jsxDEV(Pw,{label:"Tasks",value:_1.total,subValue:`${_1.pending} pending`},void 0,!1,void 0,this),c.jsxDEV(Pw,{label:"Completed",value:_1.completed,color:"text-green-400"},void 0,!1,void 0,this),c.jsxDEV(Pw,{label:"Providers",value:P.length,color:"text-[#f97316]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[c.jsxDEV(PJ,{title:"Agents",actionLabel:"View All",onAction:()=>S("agents"),children:U?c.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:"Loading..."},void 0,!1,void 0,this):p0.length===0?c.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:"No agents yet"},void 0,!1,void 0,this):c.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:p0.slice(0,5).map((T)=>c.jsxDEV(_W,{agent:T,onSelect:()=>k(T),onMessage:T.status==="running"?()=>l(T):void 0,showProject:!R},T.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.jsxDEV(PJ,{title:"Activity",actionLabel:"Telemetry",onAction:()=>S("telemetry"),children:f.length===0?c.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:[c.jsxDEV("p",{children:"No activity yet"},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-sm text-[#444] mt-1",children:"Agent activity will appear here in real-time"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):c.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:f.map((T)=>c.jsxDEV(bW,{activity:T.data?.activity||"Working...",agentName:J0.get(T.agent_id)||T.agent_id,timestamp:T.timestamp},T.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.jsxDEV(PJ,{title:"Tasks",actionLabel:"View All",onAction:()=>S("tasks"),children:G0.length===0?c.jsxDEV("div",{className:"p-4 text-center text-[#666]",children:[c.jsxDEV("p",{children:"No tasks yet"},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-sm text-[#444] mt-1",children:"Tasks will appear when agents create them"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):c.jsxDEV("div",{className:"divide-y divide-[#1a1a1a]",children:G0.slice(0,5).map((T)=>c.jsxDEV("div",{className:"px-4 py-3 flex items-center justify-between",children:[c.jsxDEV("div",{className:"flex-1 min-w-0",children:[c.jsxDEV("p",{className:"font-medium truncate",children:T.title},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-sm text-[#666]",children:[T.agentName,T.recurrence&&c.jsxDEV("span",{className:"ml-1 text-[#555]",children:["· ",HW(T.recurrence)]},void 0,!0,void 0,this),T.next_run&&c.jsxDEV("span",{className:"ml-1 text-[#f97316]",children:["· ",tb(T.next_run)]},void 0,!0,void 0,this),!T.next_run&&T.execute_at&&c.jsxDEV("span",{className:"ml-1 text-[#f97316]",children:["· ",tb(T.execute_at)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV(QW,{status:T.status},void 0,!1,void 0,this)]},`${T.agentId}-${T.id}`,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$0&&c.jsxDEV(BW,{agent:$0,onClose:()=>l(null)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Pw({label:_,value:U,subValue:L,color:P}){return c.jsxDEV("div",{className:"bg-[#111] rounded p-4 border border-[#1a1a1a]",children:[c.jsxDEV("p",{className:"text-sm text-[#666] mb-1",children:_},void 0,!1,void 0,this),c.jsxDEV("p",{className:`text-2xl font-semibold ${P||""}`,children:U},void 0,!1,void 0,this),L&&c.jsxDEV("p",{className:"text-xs text-[#555] mt-1",children:L},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function PJ({title:_,actionLabel:U,onAction:L,children:P}){return c.jsxDEV("div",{className:"bg-[#111] rounded border border-[#1a1a1a] overflow-hidden",children:[c.jsxDEV("div",{className:"px-4 py-3 border-b border-[#1a1a1a] flex items-center justify-between",children:[c.jsxDEV("h3",{className:"font-semibold",children:_},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:L,className:"text-sm text-[#3b82f6] hover:text-[#60a5fa]",children:U},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P]},void 0,!0,void 0,this)}function _W({agent:_,onSelect:U,onMessage:L,showProject:P}){let{isActive:S,label:k}=Lw(_.id),{projects:F}=J5(),R=_.projectId?F.find((o)=>o.id===_.projectId):null;return c.jsxDEV("div",{onClick:U,className:"px-4 py-3 hover:bg-[#1a1a1a] cursor-pointer flex items-center justify-between group",children:[c.jsxDEV("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[c.jsxDEV("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${_.status==="running"?S?"bg-green-400 animate-pulse":"bg-[#3b82f6]":"bg-[#444]"}`},void 0,!1,void 0,this),c.jsxDEV("div",{className:"flex-1 min-w-0",children:[c.jsxDEV("p",{className:"font-medium truncate",children:_.name},void 0,!1,void 0,this),c.jsxDEV("div",{className:"flex items-center gap-2 text-sm text-[#666]",children:[S&&k?c.jsxDEV("span",{className:"text-green-400 truncate",children:k},void 0,!1,void 0,this):c.jsxDEV("span",{children:[_.provider," · ",_.status==="running"?"idle":"stopped"]},void 0,!0,void 0,this),P&&R&&c.jsxDEV(c.Fragment,{children:[c.jsxDEV("span",{className:"text-[#444]",children:"·"},void 0,!1,void 0,this),c.jsxDEV("span",{className:"flex items-center gap-1",children:[c.jsxDEV("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:R.color}},void 0,!1,void 0,this),R.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),L&&c.jsxDEV("button",{onClick:(o)=>{o.stopPropagation(),L()},className:"opacity-0 group-hover:opacity-100 transition px-2 py-1 text-xs text-[#f97316] hover:bg-[#f97316]/10 rounded",title:"Send message",children:c.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.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 qW(_){let U=Math.floor((Date.now()-new Date(_).getTime())/1000);if(U<5)return"just now";if(U<60)return`${U}s ago`;let L=Math.floor(U/60);if(L<60)return`${L}m ago`;let P=Math.floor(L/60);if(P<24)return`${P}h ago`;return`${Math.floor(P/24)}d ago`}function bW({activity:_,agentName:U,timestamp:L}){return c.jsxDEV("div",{className:"px-4 py-3",children:[c.jsxDEV("p",{className:"text-sm truncate",children:_},void 0,!1,void 0,this),c.jsxDEV("div",{className:"flex items-center gap-2 text-xs text-[#555] mt-1",children:[c.jsxDEV("span",{className:"text-[#666]",children:U},void 0,!1,void 0,this),c.jsxDEV("span",{className:"text-[#444]",children:"·"},void 0,!1,void 0,this),c.jsxDEV("span",{children:qW(L)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function QW({status:_}){let U={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 c.jsxDEV("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${U[_]||U.pending}`,children:_},void 0,!1,void 0,this)}function BW({agent:_,onClose:U}){let{authFetch:L}=H1(),[P,S]=X1.useState(""),[k,F]=X1.useState(!1),[R,o]=X1.useState(!1),D=X1.useRef(null);X1.useEffect(()=>{D.current?.focus()},[]);let C=async()=>{if(!P.trim()||k)return;F(!0);try{if((await L(`/api/agents/${_.id}/chat`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:P.trim(),agent_id:_.id})})).ok)o(!0),setTimeout(U,1200)}catch{}finally{F(!1)}};return c.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[c.jsxDEV("div",{className:"absolute inset-0 bg-black/60",onClick:U},void 0,!1,void 0,this),c.jsxDEV("div",{className:"relative bg-[#111] border border-[#222] rounded-xl shadow-2xl w-full max-w-md mx-4 p-5",children:[c.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[c.jsxDEV("div",{className:"flex items-center gap-3",children:[c.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full bg-green-400 animate-pulse"},void 0,!1,void 0,this),c.jsxDEV("h3",{className:"font-medium",children:_.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.jsxDEV("button",{onClick:U,className:"text-[#666] hover:text-[#e0e0e0] transition",children:c.jsxDEV(q2,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),R?c.jsxDEV("div",{className:"py-6 text-center",children:[c.jsxDEV("p",{className:"text-green-400 font-medium",children:"Message sent"},void 0,!1,void 0,this),c.jsxDEV("p",{className:"text-sm text-[#555] mt-1",children:"The agent will process your message"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):c.jsxDEV("div",{className:"flex gap-2",children:[c.jsxDEV("input",{ref:D,type:"text",value:P,onChange:(i)=>S(i.target.value),onKeyDown:(i)=>i.key==="Enter"&&C(),placeholder:`Message ${_.name}...`,disabled:k,className:"flex-1 bg-[#0a0a0a] border border-[#222] rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:border-[#f97316] placeholder-[#444] disabled:opacity-50"},void 0,!1,void 0,this),c.jsxDEV("button",{onClick:C,disabled:k||!P.trim(),className:"px-4 py-2.5 bg-[#f97316] text-black rounded-lg text-sm font-medium hover:bg-[#fb923c] transition disabled:opacity-30",children:k?"...":"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 nb(_){if(_.status==="running")return 0;if(_.status==="pending")return 1;if(_.status==="completed")return 2;if(_.status==="failed")return 3;return 4}function KW(_){return[..._].sort((U,L)=>{let P=nb(U),S=nb(L);if(P!==S)return P-S;if(P<=1){let R=U.next_run||U.execute_at||null,o=L.next_run||L.execute_at||null,D=R?new Date(R).getTime():1/0,C=o?new Date(o).getTime():1/0;return D-C}let k=U.completed_at||U.executed_at||U.created_at,F=L.completed_at||L.executed_at||L.created_at;return new Date(F).getTime()-new Date(k).getTime()})}var sb=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function HW(_){try{let U=_.trim().split(/\s+/);if(U.length!==5)return _;let[L,P,S,k,F]=U;if(L.startsWith("*/")&&P==="*"&&S==="*"&&k==="*"&&F==="*"){let o=parseInt(L.slice(2));return o===1?"Every min":`Every ${o}min`}if(L!=="*"&&!L.includes("/")&&P==="*"&&S==="*"&&k==="*"&&F==="*")return"Hourly";if(P.startsWith("*/")&&S==="*"&&k==="*"&&F==="*"){let o=parseInt(P.slice(2));return o===1?"Hourly":`Every ${o}h`}let R=(o,D)=>{let C=parseInt(o),i=parseInt(D);if(isNaN(C))return"";let x=C>=12?"PM":"AM";return`${C===0?12:C>12?C-12:C}:${i.toString().padStart(2,"0")} ${x}`};if(P!=="*"&&!P.includes("/")&&S==="*"&&k==="*"){let o=R(P,L);if(F==="*")return`Daily ${o}`;let D=F.split(",").map((C)=>sb[parseInt(C.trim())]||C);if(D.length===1)return`${D[0]} ${o}`;return`${D.join(" & ")} ${o}`}return _}catch{return _}}function tb(_){let U=new Date(_),L=new Date,P=U.getTime()-L.getTime(),S=P>0,k=Math.abs(P),F=Math.floor(k/60000),R=Math.floor(k/3600000),o=U.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"}),D=U.toDateString()===L.toDateString(),C=new Date(L);C.setDate(C.getDate()+1);let i=U.toDateString()===C.toDateString();if(D){if(F<1)return"now";if(F<60)return S?`in ${F}m`:`${F}m ago`;return S?`in ${R}h`:`${R}h ago`}if(i)return`Tomorrow ${o}`;return`${sb[U.getDay()]} ${o}`}var S0=U0(w1(),1),RW=t0.lazy(()=>import("./SettingsPage.p61bz8kd.js").then((_)=>({default:_.SettingsPage}))),OW=t0.lazy(()=>import("./TasksPage.1e0zkye4.js").then((_)=>({default:_.TasksPage}))),LW=t0.lazy(()=>import("./McpPage.8vc97z0b.js").then((_)=>({default:_.McpPage}))),NW=t0.lazy(()=>import("./SkillsPage.r9x43g3g.js").then((_)=>({default:_.SkillsPage}))),MW=t0.lazy(()=>import("./TestsPage.d4xy504e.js").then((_)=>({default:_.TestsPage}))),FW=t0.lazy(()=>import("./ThreadsPage.m016am3x.js").then((_)=>({default:_.ThreadsPage}))),yW=t0.lazy(()=>import("./TelemetryPage.p9vbe4gf.js").then((_)=>({default:_.TelemetryPage}))),CW=t0.lazy(()=>import("./ConnectionsPage.z1pw5xe2.js").then((_)=>({default:_.ConnectionsPage}))),vW=t0.lazy(()=>import("./ActivityPage.7907h64p.js").then((_)=>({default:_.ActivityPage}))),PW=t0.lazy(()=>import("./ApiDocsPage.k3jjenpq.js").then((_)=>({default:_.ApiDocsPage})));function IW(){let{isAuthenticated:_,isLoading:U,hasUsers:L,accessToken:P,checkAuth:S}=H1(),{currentProjectId:k,refreshProjects:F}=J5(),R=bw(),o=mQ(),{isComplete:D,setIsComplete:C}=NJ(),i=()=>{return P?{Authorization:`Bearer ${P}`}:{}},x=_&&D===!0,{agents:j,loading:g,runningCount:d,fetchAgents:t,createAgent:w0,updateAgent:$0,deleteAgent:l,toggleAgent:p0}=OJ(x,k),{providers:u0,configuredProviders:n,fetchProviders:M0}=LJ(x),G0=n.filter((h)=>h.type==="llm"),_1=t0.useMemo(()=>{if(k===null)return j.length;if(k==="unassigned")return j.filter((h)=>!h.projectId).length;return j.filter((h)=>h.projectId===k).length},[j,k]),[f,J0]=t0.useState(!1),[T,I]=t0.useState(null),[b0,a]=t0.useState("dashboard"),[u,z0]=t0.useState(null),[a0,c0]=t0.useState(0),[k5,n5]=t0.useState(!1);t0.useEffect(()=>{if(!x)return;(async()=>{try{let v1="/api/tasks?status=pending";if(k!==null)v1+=`&project_id=${encodeURIComponent(k)}`;let A1=await fetch(v1,{headers:i()});if(A1.ok){let B5=await A1.json();c0(B5.count??(B5.tasks||[]).length)}}catch{}})()},[x,P,k,R,o]);let[Q5,T1]=t0.useState({name:"",model:"",provider:"",systemPrompt:"You are a helpful assistant.",features:{...RJ},mcpServers:[],skills:[]});t0.useEffect(()=>{if(G0.length>0&&!Q5.provider){let h=G0[0],v1=h.models.find((A1)=>A1.recommended)?.value||h.models[0]?.value||"";T1((A1)=>({...A1,provider:h.id,model:v1}))}},[G0,Q5.provider]),t0.useEffect(()=>{if(T){let h=j.find((v1)=>v1.id===T.id);if(h)I(h);else I(null)}},[j,T]);let Q1=(h)=>{let v1=u0.find((B5)=>B5.id===h),A1=v1?.models.find((B5)=>B5.recommended)?.value||v1?.models[0]?.value||"";T1((B5)=>({...B5,provider:h,model:A1}))},B2=async()=>{if(!Q5.name)return;await w0(Q5),await F();let h=G0[0],v1=h?.models.find((A1)=>A1.recommended)?.value||h?.models[0]?.value||"";T1({name:"",model:v1,provider:h?.id||"",systemPrompt:"You are a helpful assistant.",features:{...RJ},mcpServers:[],skills:[]}),J0(!1)},v=async(h,v1)=>{v1?.stopPropagation(),z0(null);let A1=await p0(h);if(A1.error)z0(A1.error)},e=async(h,v1)=>{if(v1?.stopPropagation(),T?.id===h)I(null);await l(h),await F()},d0=(h)=>{I(h),z0(null),a("agents")},k1=(h)=>{a(h),I(null)},K2=()=>{C(!0),M0(),S()};if(U||L===null)return S0.jsxDEV(j4,{fullScreen:!0},void 0,!1,void 0,this);if(!L)return S0.jsxDEV(j7,{onComplete:K2,needsAccount:!0},void 0,!1,void 0,this);if(!_)return S0.jsxDEV(Uw,{},void 0,!1,void 0,this);if(D===null)return S0.jsxDEV(j4,{fullScreen:!0},void 0,!1,void 0,this);if(!D)return S0.jsxDEV(j7,{onComplete:K2,needsAccount:!1},void 0,!1,void 0,this);return S0.jsxDEV("div",{className:"h-screen bg-[#0a0a0a] text-[#e0e0e0] font-mono flex flex-col overflow-hidden",children:[S0.jsxDEV(Qw,{onMenuClick:()=>n5(!0),agents:j},void 0,!1,void 0,this),u&&S0.jsxDEV(Ww,{message:u,onDismiss:()=>z0(null)},void 0,!1,void 0,this),S0.jsxDEV("div",{className:"flex flex-1 overflow-hidden",children:[S0.jsxDEV(Hw,{route:b0,agentCount:_1,taskCount:a0,onNavigate:k1,isOpen:k5,onClose:()=>n5(!1)},void 0,!1,void 0,this),S0.jsxDEV("main",{className:"flex-1 overflow-hidden flex",children:S0.jsxDEV(t0.Suspense,{fallback:S0.jsxDEV(j4,{},void 0,!1,void 0,this),children:[b0==="settings"&&S0.jsxDEV(RW,{},void 0,!1,void 0,this),b0==="agents"&&S0.jsxDEV(vw,{agents:j,loading:g,selectedAgent:T,providers:u0,onSelectAgent:d0,onCloseAgent:()=>I(null),onToggleAgent:v,onDeleteAgent:e,onUpdateAgent:$0,onNewAgent:()=>J0(!0),canCreateAgent:G0.length>0},void 0,!1,void 0,this),b0==="dashboard"&&S0.jsxDEV(Iw,{agents:j,loading:g,runningCount:d,configuredProviders:n,onNavigate:k1,onSelectAgent:d0},void 0,!1,void 0,this),b0==="threads"&&S0.jsxDEV(FW,{agents:j,onNavigate:a},void 0,!1,void 0,this),b0==="activity"&&S0.jsxDEV(vW,{agents:j,loading:g,onNavigate:k1},void 0,!1,void 0,this),b0==="tasks"&&S0.jsxDEV(OW,{},void 0,!1,void 0,this),b0==="connections"&&S0.jsxDEV(CW,{},void 0,!1,void 0,this),b0==="mcp"&&S0.jsxDEV(LW,{},void 0,!1,void 0,this),b0==="skills"&&S0.jsxDEV(NW,{},void 0,!1,void 0,this),b0==="tests"&&S0.jsxDEV(MW,{},void 0,!1,void 0,this),b0==="telemetry"&&S0.jsxDEV(yW,{},void 0,!1,void 0,this),b0==="api"&&S0.jsxDEV(PW,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&S0.jsxDEV(Mw,{form:Q5,providers:u0,configuredProviders:n,onFormChange:T1,onProviderChange:Q1,onCreate:B2,onClose:()=>J0(!1),onGoToSettings:()=>{J0(!1),a("settings")}},void 0,!1,void 0,this),S0.jsxDEV(fb,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function fW(){return S0.jsxDEV(pQ,{children:S0.jsxDEV(wQ,{children:S0.jsxDEV(Pb,{children:S0.jsxDEV(eb,{children:S0.jsxDEV(IW,{},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 TW=zQ.createRoot(document.getElementById("root"));TW.render(S0.jsxDEV(fW,{},void 0,!1,void 0,this));
|
|
220
|
+
|
|
221
|
+
//# debugId=363C229F7320161964756E2164756E21
|